react-pptx-preview-kit 0.1.1
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.
- package/README.md +147 -0
- package/dist/chart-parser-OM57xOST.js +99 -0
- package/dist/index-BiEAfEne.js +29592 -0
- package/dist/index.d.ts +252 -0
- package/dist/index.js +5 -0
- package/dist/index.umd.cjs +77 -0
- package/package.json +53 -0
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
(function(me,tt){typeof exports=="object"&&typeof module<"u"?tt(exports,require("react/jsx-runtime"),require("react")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","react"],tt):(me=typeof globalThis<"u"?globalThis:me||self,tt(me.PptxPreview={},me.jsxRuntime,me.React))})(this,(function(me,tt,Xt){"use strict";var n$=Object.defineProperty;var i$=(me,tt,Xt)=>tt in me?n$(me,tt,{enumerable:!0,configurable:!0,writable:!0,value:Xt}):me[tt]=Xt;var wS=(me,tt,Xt)=>i$(me,typeof tt!="symbol"?tt+"":tt,Xt);var Bo=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function TS(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Fo(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var gu={exports:{}};/*!
|
|
2
|
+
|
|
3
|
+
JSZip v3.10.1 - A JavaScript class for generating and reading zip files
|
|
4
|
+
<http://stuartk.com/jszip>
|
|
5
|
+
|
|
6
|
+
(c) 2009-2016 Stuart Knightley <stuart [at] stuartk.com>
|
|
7
|
+
Dual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/jszip/main/LICENSE.markdown.
|
|
8
|
+
|
|
9
|
+
JSZip uses the library pako released under the MIT license :
|
|
10
|
+
https://github.com/nodeca/pako/blob/main/LICENSE
|
|
11
|
+
*/var ov;function CS(){return ov||(ov=1,(function(e,t){(function(r){e.exports=r()})(function(){return(function r(n,i,a){function o(u,f){if(!i[u]){if(!n[u]){var c=typeof Fo=="function"&&Fo;if(!f&&c)return c(u,!0);if(s)return s(u,!0);var d=new Error("Cannot find module '"+u+"'");throw d.code="MODULE_NOT_FOUND",d}var h=i[u]={exports:{}};n[u][0].call(h.exports,function(v){var g=n[u][1][v];return o(g||v)},h,h.exports,r,n,i,a)}return i[u].exports}for(var s=typeof Fo=="function"&&Fo,l=0;l<a.length;l++)o(a[l]);return o})({1:[function(r,n,i){var a=r("./utils"),o=r("./support"),s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";i.encode=function(l){for(var u,f,c,d,h,v,g,m=[],p=0,y=l.length,_=y,b=a.getTypeOf(l)!=="string";p<l.length;)_=y-p,c=b?(u=l[p++],f=p<y?l[p++]:0,p<y?l[p++]:0):(u=l.charCodeAt(p++),f=p<y?l.charCodeAt(p++):0,p<y?l.charCodeAt(p++):0),d=u>>2,h=(3&u)<<4|f>>4,v=1<_?(15&f)<<2|c>>6:64,g=2<_?63&c:64,m.push(s.charAt(d)+s.charAt(h)+s.charAt(v)+s.charAt(g));return m.join("")},i.decode=function(l){var u,f,c,d,h,v,g=0,m=0,p="data:";if(l.substr(0,p.length)===p)throw new Error("Invalid base64 input, it looks like a data url.");var y,_=3*(l=l.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(l.charAt(l.length-1)===s.charAt(64)&&_--,l.charAt(l.length-2)===s.charAt(64)&&_--,_%1!=0)throw new Error("Invalid base64 input, bad content length.");for(y=o.uint8array?new Uint8Array(0|_):new Array(0|_);g<l.length;)u=s.indexOf(l.charAt(g++))<<2|(d=s.indexOf(l.charAt(g++)))>>4,f=(15&d)<<4|(h=s.indexOf(l.charAt(g++)))>>2,c=(3&h)<<6|(v=s.indexOf(l.charAt(g++))),y[m++]=u,h!==64&&(y[m++]=f),v!==64&&(y[m++]=c);return y}},{"./support":30,"./utils":32}],2:[function(r,n,i){var a=r("./external"),o=r("./stream/DataWorker"),s=r("./stream/Crc32Probe"),l=r("./stream/DataLengthProbe");function u(f,c,d,h,v){this.compressedSize=f,this.uncompressedSize=c,this.crc32=d,this.compression=h,this.compressedContent=v}u.prototype={getContentWorker:function(){var f=new o(a.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new l("data_length")),c=this;return f.on("end",function(){if(this.streamInfo.data_length!==c.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),f},getCompressedWorker:function(){return new o(a.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},u.createWorkerFrom=function(f,c,d){return f.pipe(new s).pipe(new l("uncompressedSize")).pipe(c.compressWorker(d)).pipe(new l("compressedSize")).withStreamInfo("compression",c)},n.exports=u},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(r,n,i){var a=r("./stream/GenericWorker");i.STORE={magic:"\0\0",compressWorker:function(){return new a("STORE compression")},uncompressWorker:function(){return new a("STORE decompression")}},i.DEFLATE=r("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(r,n,i){var a=r("./utils"),o=(function(){for(var s,l=[],u=0;u<256;u++){s=u;for(var f=0;f<8;f++)s=1&s?3988292384^s>>>1:s>>>1;l[u]=s}return l})();n.exports=function(s,l){return s!==void 0&&s.length?a.getTypeOf(s)!=="string"?(function(u,f,c,d){var h=o,v=d+c;u^=-1;for(var g=d;g<v;g++)u=u>>>8^h[255&(u^f[g])];return-1^u})(0|l,s,s.length,0):(function(u,f,c,d){var h=o,v=d+c;u^=-1;for(var g=d;g<v;g++)u=u>>>8^h[255&(u^f.charCodeAt(g))];return-1^u})(0|l,s,s.length,0):0}},{"./utils":32}],5:[function(r,n,i){i.base64=!1,i.binary=!1,i.dir=!1,i.createFolders=!0,i.date=null,i.compression=null,i.compressionOptions=null,i.comment=null,i.unixPermissions=null,i.dosPermissions=null},{}],6:[function(r,n,i){var a=null;a=typeof Promise<"u"?Promise:r("lie"),n.exports={Promise:a}},{lie:37}],7:[function(r,n,i){var a=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Uint32Array<"u",o=r("pako"),s=r("./utils"),l=r("./stream/GenericWorker"),u=a?"uint8array":"array";function f(c,d){l.call(this,"FlateWorker/"+c),this._pako=null,this._pakoAction=c,this._pakoOptions=d,this.meta={}}i.magic="\b\0",s.inherits(f,l),f.prototype.processChunk=function(c){this.meta=c.meta,this._pako===null&&this._createPako(),this._pako.push(s.transformTo(u,c.data),!1)},f.prototype.flush=function(){l.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)},f.prototype.cleanUp=function(){l.prototype.cleanUp.call(this),this._pako=null},f.prototype._createPako=function(){this._pako=new o[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var c=this;this._pako.onData=function(d){c.push({data:d,meta:c.meta})}},i.compressWorker=function(c){return new f("Deflate",c)},i.uncompressWorker=function(){return new f("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(r,n,i){function a(h,v){var g,m="";for(g=0;g<v;g++)m+=String.fromCharCode(255&h),h>>>=8;return m}function o(h,v,g,m,p,y){var _,b,x=h.file,w=h.compression,S=y!==u.utf8encode,L=s.transformTo("string",y(x.name)),C=s.transformTo("string",u.utf8encode(x.name)),D=x.comment,I=s.transformTo("string",y(D)),A=s.transformTo("string",u.utf8encode(D)),M=C.length!==x.name.length,T=A.length!==D.length,k="",R="",z="",H=x.dir,V=x.date,Z={crc32:0,compressedSize:0,uncompressedSize:0};v&&!g||(Z.crc32=h.crc32,Z.compressedSize=h.compressedSize,Z.uncompressedSize=h.uncompressedSize);var B=0;v&&(B|=8),S||!M&&!T||(B|=2048);var $=0,X=0;H&&($|=16),p==="UNIX"?(X=798,$|=(function(Q,bt){var Et=Q;return Q||(Et=bt?16893:33204),(65535&Et)<<16})(x.unixPermissions,H)):(X=20,$|=(function(Q){return 63&(Q||0)})(x.dosPermissions)),_=V.getUTCHours(),_<<=6,_|=V.getUTCMinutes(),_<<=5,_|=V.getUTCSeconds()/2,b=V.getUTCFullYear()-1980,b<<=4,b|=V.getUTCMonth()+1,b<<=5,b|=V.getUTCDate(),M&&(R=a(1,1)+a(f(L),4)+C,k+="up"+a(R.length,2)+R),T&&(z=a(1,1)+a(f(I),4)+A,k+="uc"+a(z.length,2)+z);var j="";return j+=`
|
|
12
|
+
\0`,j+=a(B,2),j+=w.magic,j+=a(_,2),j+=a(b,2),j+=a(Z.crc32,4),j+=a(Z.compressedSize,4),j+=a(Z.uncompressedSize,4),j+=a(L.length,2),j+=a(k.length,2),{fileRecord:c.LOCAL_FILE_HEADER+j+L+k,dirRecord:c.CENTRAL_FILE_HEADER+a(X,2)+j+a(I.length,2)+"\0\0\0\0"+a($,4)+a(m,4)+L+k+I}}var s=r("../utils"),l=r("../stream/GenericWorker"),u=r("../utf8"),f=r("../crc32"),c=r("../signature");function d(h,v,g,m){l.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=v,this.zipPlatform=g,this.encodeFileName=m,this.streamFiles=h,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}s.inherits(d,l),d.prototype.push=function(h){var v=h.meta.percent||0,g=this.entriesCount,m=this._sources.length;this.accumulate?this.contentBuffer.push(h):(this.bytesWritten+=h.data.length,l.prototype.push.call(this,{data:h.data,meta:{currentFile:this.currentFile,percent:g?(v+100*(g-m-1))/g:100}}))},d.prototype.openedSource=function(h){this.currentSourceOffset=this.bytesWritten,this.currentFile=h.file.name;var v=this.streamFiles&&!h.file.dir;if(v){var g=o(h,v,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:g.fileRecord,meta:{percent:0}})}else this.accumulate=!0},d.prototype.closedSource=function(h){this.accumulate=!1;var v=this.streamFiles&&!h.file.dir,g=o(h,v,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(g.dirRecord),v)this.push({data:(function(m){return c.DATA_DESCRIPTOR+a(m.crc32,4)+a(m.compressedSize,4)+a(m.uncompressedSize,4)})(h),meta:{percent:100}});else for(this.push({data:g.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},d.prototype.flush=function(){for(var h=this.bytesWritten,v=0;v<this.dirRecords.length;v++)this.push({data:this.dirRecords[v],meta:{percent:100}});var g=this.bytesWritten-h,m=(function(p,y,_,b,x){var w=s.transformTo("string",x(b));return c.CENTRAL_DIRECTORY_END+"\0\0\0\0"+a(p,2)+a(p,2)+a(y,4)+a(_,4)+a(w.length,2)+w})(this.dirRecords.length,g,h,this.zipComment,this.encodeFileName);this.push({data:m,meta:{percent:100}})},d.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},d.prototype.registerPrevious=function(h){this._sources.push(h);var v=this;return h.on("data",function(g){v.processChunk(g)}),h.on("end",function(){v.closedSource(v.previous.streamInfo),v._sources.length?v.prepareNextSource():v.end()}),h.on("error",function(g){v.error(g)}),this},d.prototype.resume=function(){return!!l.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},d.prototype.error=function(h){var v=this._sources;if(!l.prototype.error.call(this,h))return!1;for(var g=0;g<v.length;g++)try{v[g].error(h)}catch{}return!0},d.prototype.lock=function(){l.prototype.lock.call(this);for(var h=this._sources,v=0;v<h.length;v++)h[v].lock()},n.exports=d},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(r,n,i){var a=r("../compressions"),o=r("./ZipFileWorker");i.generateWorker=function(s,l,u){var f=new o(l.streamFiles,u,l.platform,l.encodeFileName),c=0;try{s.forEach(function(d,h){c++;var v=(function(y,_){var b=y||_,x=a[b];if(!x)throw new Error(b+" is not a valid compression method !");return x})(h.options.compression,l.compression),g=h.options.compressionOptions||l.compressionOptions||{},m=h.dir,p=h.date;h._compressWorker(v,g).withStreamInfo("file",{name:d,dir:m,date:p,comment:h.comment||"",unixPermissions:h.unixPermissions,dosPermissions:h.dosPermissions}).pipe(f)}),f.entriesCount=c}catch(d){f.error(d)}return f}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(r,n,i){function a(){if(!(this instanceof a))return new a;if(arguments.length)throw new 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 o=new a;for(var s in this)typeof this[s]!="function"&&(o[s]=this[s]);return o}}(a.prototype=r("./object")).loadAsync=r("./load"),a.support=r("./support"),a.defaults=r("./defaults"),a.version="3.10.1",a.loadAsync=function(o,s){return new a().loadAsync(o,s)},a.external=r("./external"),n.exports=a},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(r,n,i){var a=r("./utils"),o=r("./external"),s=r("./utf8"),l=r("./zipEntries"),u=r("./stream/Crc32Probe"),f=r("./nodejsUtils");function c(d){return new o.Promise(function(h,v){var g=d.decompressed.getContentWorker().pipe(new u);g.on("error",function(m){v(m)}).on("end",function(){g.streamInfo.crc32!==d.decompressed.crc32?v(new Error("Corrupted zip : CRC32 mismatch")):h()}).resume()})}n.exports=function(d,h){var v=this;return h=a.extend(h||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:s.utf8decode}),f.isNode&&f.isStream(d)?o.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):a.prepareContent("the loaded zip file",d,!0,h.optimizedBinaryString,h.base64).then(function(g){var m=new l(h);return m.load(g),m}).then(function(g){var m=[o.Promise.resolve(g)],p=g.files;if(h.checkCRC32)for(var y=0;y<p.length;y++)m.push(c(p[y]));return o.Promise.all(m)}).then(function(g){for(var m=g.shift(),p=m.files,y=0;y<p.length;y++){var _=p[y],b=_.fileNameStr,x=a.resolve(_.fileNameStr);v.file(x,_.decompressed,{binary:!0,optimizedBinaryString:!0,date:_.date,dir:_.dir,comment:_.fileCommentStr.length?_.fileCommentStr:null,unixPermissions:_.unixPermissions,dosPermissions:_.dosPermissions,createFolders:h.createFolders}),_.dir||(v.file(x).unsafeOriginalName=b)}return m.zipComment.length&&(v.comment=m.zipComment),v})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(r,n,i){var a=r("../utils"),o=r("../stream/GenericWorker");function s(l,u){o.call(this,"Nodejs stream input adapter for "+l),this._upstreamEnded=!1,this._bindStream(u)}a.inherits(s,o),s.prototype._bindStream=function(l){var u=this;(this._stream=l).pause(),l.on("data",function(f){u.push({data:f,meta:{percent:0}})}).on("error",function(f){u.isPaused?this.generatedError=f:u.error(f)}).on("end",function(){u.isPaused?u._upstreamEnded=!0:u.end()})},s.prototype.pause=function(){return!!o.prototype.pause.call(this)&&(this._stream.pause(),!0)},s.prototype.resume=function(){return!!o.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},n.exports=s},{"../stream/GenericWorker":28,"../utils":32}],13:[function(r,n,i){var a=r("readable-stream").Readable;function o(s,l,u){a.call(this,l),this._helper=s;var f=this;s.on("data",function(c,d){f.push(c)||f._helper.pause(),u&&u(d)}).on("error",function(c){f.emit("error",c)}).on("end",function(){f.push(null)})}r("../utils").inherits(o,a),o.prototype._read=function(){this._helper.resume()},n.exports=o},{"../utils":32,"readable-stream":16}],14:[function(r,n,i){n.exports={isNode:typeof Buffer<"u",newBufferFrom:function(a,o){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(a,o);if(typeof a=="number")throw new Error('The "data" argument must not be a number');return new Buffer(a,o)},allocBuffer:function(a){if(Buffer.alloc)return Buffer.alloc(a);var o=new Buffer(a);return o.fill(0),o},isBuffer:function(a){return Buffer.isBuffer(a)},isStream:function(a){return a&&typeof a.on=="function"&&typeof a.pause=="function"&&typeof a.resume=="function"}}},{}],15:[function(r,n,i){function a(x,w,S){var L,C=s.getTypeOf(w),D=s.extend(S||{},f);D.date=D.date||new Date,D.compression!==null&&(D.compression=D.compression.toUpperCase()),typeof D.unixPermissions=="string"&&(D.unixPermissions=parseInt(D.unixPermissions,8)),D.unixPermissions&&16384&D.unixPermissions&&(D.dir=!0),D.dosPermissions&&16&D.dosPermissions&&(D.dir=!0),D.dir&&(x=p(x)),D.createFolders&&(L=m(x))&&y.call(this,L,!0);var I=C==="string"&&D.binary===!1&&D.base64===!1;S&&S.binary!==void 0||(D.binary=!I),(w instanceof c&&w.uncompressedSize===0||D.dir||!w||w.length===0)&&(D.base64=!1,D.binary=!0,w="",D.compression="STORE",C="string");var A=null;A=w instanceof c||w instanceof l?w:v.isNode&&v.isStream(w)?new g(x,w):s.prepareContent(x,w,D.binary,D.optimizedBinaryString,D.base64);var M=new d(x,A,D);this.files[x]=M}var o=r("./utf8"),s=r("./utils"),l=r("./stream/GenericWorker"),u=r("./stream/StreamHelper"),f=r("./defaults"),c=r("./compressedObject"),d=r("./zipObject"),h=r("./generate"),v=r("./nodejsUtils"),g=r("./nodejs/NodejsStreamInputAdapter"),m=function(x){x.slice(-1)==="/"&&(x=x.substring(0,x.length-1));var w=x.lastIndexOf("/");return 0<w?x.substring(0,w):""},p=function(x){return x.slice(-1)!=="/"&&(x+="/"),x},y=function(x,w){return w=w!==void 0?w:f.createFolders,x=p(x),this.files[x]||a.call(this,x,null,{dir:!0,createFolders:w}),this.files[x]};function _(x){return Object.prototype.toString.call(x)==="[object RegExp]"}var b={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(x){var w,S,L;for(w in this.files)L=this.files[w],(S=w.slice(this.root.length,w.length))&&w.slice(0,this.root.length)===this.root&&x(S,L)},filter:function(x){var w=[];return this.forEach(function(S,L){x(S,L)&&w.push(L)}),w},file:function(x,w,S){if(arguments.length!==1)return x=this.root+x,a.call(this,x,w,S),this;if(_(x)){var L=x;return this.filter(function(D,I){return!I.dir&&L.test(D)})}var C=this.files[this.root+x];return C&&!C.dir?C:null},folder:function(x){if(!x)return this;if(_(x))return this.filter(function(C,D){return D.dir&&x.test(C)});var w=this.root+x,S=y.call(this,w),L=this.clone();return L.root=S.name,L},remove:function(x){x=this.root+x;var w=this.files[x];if(w||(x.slice(-1)!=="/"&&(x+="/"),w=this.files[x]),w&&!w.dir)delete this.files[x];else for(var S=this.filter(function(C,D){return D.name.slice(0,x.length)===x}),L=0;L<S.length;L++)delete this.files[S[L].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(x){var w,S={};try{if((S=s.extend(x||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:o.utf8encode})).type=S.type.toLowerCase(),S.compression=S.compression.toUpperCase(),S.type==="binarystring"&&(S.type="string"),!S.type)throw new Error("No output type specified.");s.checkSupport(S.type),S.platform!=="darwin"&&S.platform!=="freebsd"&&S.platform!=="linux"&&S.platform!=="sunos"||(S.platform="UNIX"),S.platform==="win32"&&(S.platform="DOS");var L=S.comment||this.comment||"";w=h.generateWorker(this,S,L)}catch(C){(w=new l("error")).error(C)}return new u(w,S.type||"string",S.mimeType)},generateAsync:function(x,w){return this.generateInternalStream(x).accumulate(w)},generateNodeStream:function(x,w){return(x=x||{}).type||(x.type="nodebuffer"),this.generateInternalStream(x).toNodejsStream(w)}};n.exports=b},{"./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(r,n,i){n.exports=r("stream")},{stream:void 0}],17:[function(r,n,i){var a=r("./DataReader");function o(s){a.call(this,s);for(var l=0;l<this.data.length;l++)s[l]=255&s[l]}r("../utils").inherits(o,a),o.prototype.byteAt=function(s){return this.data[this.zero+s]},o.prototype.lastIndexOfSignature=function(s){for(var l=s.charCodeAt(0),u=s.charCodeAt(1),f=s.charCodeAt(2),c=s.charCodeAt(3),d=this.length-4;0<=d;--d)if(this.data[d]===l&&this.data[d+1]===u&&this.data[d+2]===f&&this.data[d+3]===c)return d-this.zero;return-1},o.prototype.readAndCheckSignature=function(s){var l=s.charCodeAt(0),u=s.charCodeAt(1),f=s.charCodeAt(2),c=s.charCodeAt(3),d=this.readData(4);return l===d[0]&&u===d[1]&&f===d[2]&&c===d[3]},o.prototype.readData=function(s){if(this.checkOffset(s),s===0)return[];var l=this.data.slice(this.zero+this.index,this.zero+this.index+s);return this.index+=s,l},n.exports=o},{"../utils":32,"./DataReader":18}],18:[function(r,n,i){var a=r("../utils");function o(s){this.data=s,this.length=s.length,this.index=0,this.zero=0}o.prototype={checkOffset:function(s){this.checkIndex(this.index+s)},checkIndex:function(s){if(this.length<this.zero+s||s<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+s+"). Corrupted zip ?")},setIndex:function(s){this.checkIndex(s),this.index=s},skip:function(s){this.setIndex(this.index+s)},byteAt:function(){},readInt:function(s){var l,u=0;for(this.checkOffset(s),l=this.index+s-1;l>=this.index;l--)u=(u<<8)+this.byteAt(l);return this.index+=s,u},readString:function(s){return a.transformTo("string",this.readData(s))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var s=this.readInt(4);return new Date(Date.UTC(1980+(s>>25&127),(s>>21&15)-1,s>>16&31,s>>11&31,s>>5&63,(31&s)<<1))}},n.exports=o},{"../utils":32}],19:[function(r,n,i){var a=r("./Uint8ArrayReader");function o(s){a.call(this,s)}r("../utils").inherits(o,a),o.prototype.readData=function(s){this.checkOffset(s);var l=this.data.slice(this.zero+this.index,this.zero+this.index+s);return this.index+=s,l},n.exports=o},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(r,n,i){var a=r("./DataReader");function o(s){a.call(this,s)}r("../utils").inherits(o,a),o.prototype.byteAt=function(s){return this.data.charCodeAt(this.zero+s)},o.prototype.lastIndexOfSignature=function(s){return this.data.lastIndexOf(s)-this.zero},o.prototype.readAndCheckSignature=function(s){return s===this.readData(4)},o.prototype.readData=function(s){this.checkOffset(s);var l=this.data.slice(this.zero+this.index,this.zero+this.index+s);return this.index+=s,l},n.exports=o},{"../utils":32,"./DataReader":18}],21:[function(r,n,i){var a=r("./ArrayReader");function o(s){a.call(this,s)}r("../utils").inherits(o,a),o.prototype.readData=function(s){if(this.checkOffset(s),s===0)return new Uint8Array(0);var l=this.data.subarray(this.zero+this.index,this.zero+this.index+s);return this.index+=s,l},n.exports=o},{"../utils":32,"./ArrayReader":17}],22:[function(r,n,i){var a=r("../utils"),o=r("../support"),s=r("./ArrayReader"),l=r("./StringReader"),u=r("./NodeBufferReader"),f=r("./Uint8ArrayReader");n.exports=function(c){var d=a.getTypeOf(c);return a.checkSupport(d),d!=="string"||o.uint8array?d==="nodebuffer"?new u(c):o.uint8array?new f(a.transformTo("uint8array",c)):new s(a.transformTo("array",c)):new l(c)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(r,n,i){i.LOCAL_FILE_HEADER="PK",i.CENTRAL_FILE_HEADER="PK",i.CENTRAL_DIRECTORY_END="PK",i.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x07",i.ZIP64_CENTRAL_DIRECTORY_END="PK",i.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(r,n,i){var a=r("./GenericWorker"),o=r("../utils");function s(l){a.call(this,"ConvertWorker to "+l),this.destType=l}o.inherits(s,a),s.prototype.processChunk=function(l){this.push({data:o.transformTo(this.destType,l.data),meta:l.meta})},n.exports=s},{"../utils":32,"./GenericWorker":28}],25:[function(r,n,i){var a=r("./GenericWorker"),o=r("../crc32");function s(){a.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}r("../utils").inherits(s,a),s.prototype.processChunk=function(l){this.streamInfo.crc32=o(l.data,this.streamInfo.crc32||0),this.push(l)},n.exports=s},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(r,n,i){var a=r("../utils"),o=r("./GenericWorker");function s(l){o.call(this,"DataLengthProbe for "+l),this.propName=l,this.withStreamInfo(l,0)}a.inherits(s,o),s.prototype.processChunk=function(l){if(l){var u=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=u+l.data.length}o.prototype.processChunk.call(this,l)},n.exports=s},{"../utils":32,"./GenericWorker":28}],27:[function(r,n,i){var a=r("../utils"),o=r("./GenericWorker");function s(l){o.call(this,"DataWorker");var u=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,l.then(function(f){u.dataIsReady=!0,u.data=f,u.max=f&&f.length||0,u.type=a.getTypeOf(f),u.isPaused||u._tickAndRepeat()},function(f){u.error(f)})}a.inherits(s,o),s.prototype.cleanUp=function(){o.prototype.cleanUp.call(this),this.data=null},s.prototype.resume=function(){return!!o.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,a.delay(this._tickAndRepeat,[],this)),!0)},s.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(a.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},s.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var l=null,u=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":l=this.data.substring(this.index,u);break;case"uint8array":l=this.data.subarray(this.index,u);break;case"array":case"nodebuffer":l=this.data.slice(this.index,u)}return this.index=u,this.push({data:l,meta:{percent:this.max?this.index/this.max*100:0}})},n.exports=s},{"../utils":32,"./GenericWorker":28}],28:[function(r,n,i){function a(o){this.name=o||"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}a.prototype={push:function(o){this.emit("data",o)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(o){this.emit("error",o)}return!0},error:function(o){return!this.isFinished&&(this.isPaused?this.generatedError=o:(this.isFinished=!0,this.emit("error",o),this.previous&&this.previous.error(o),this.cleanUp()),!0)},on:function(o,s){return this._listeners[o].push(s),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(o,s){if(this._listeners[o])for(var l=0;l<this._listeners[o].length;l++)this._listeners[o][l].call(this,s)},pipe:function(o){return o.registerPrevious(this)},registerPrevious:function(o){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=o.streamInfo,this.mergeStreamInfo(),this.previous=o;var s=this;return o.on("data",function(l){s.processChunk(l)}),o.on("end",function(){s.end()}),o.on("error",function(l){s.error(l)}),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 o=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),o=!0),this.previous&&this.previous.resume(),!o},flush:function(){},processChunk:function(o){this.push(o)},withStreamInfo:function(o,s){return this.extraStreamInfo[o]=s,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var o in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,o)&&(this.streamInfo[o]=this.extraStreamInfo[o])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var o="Worker "+this.name;return this.previous?this.previous+" -> "+o:o}},n.exports=a},{}],29:[function(r,n,i){var a=r("../utils"),o=r("./ConvertWorker"),s=r("./GenericWorker"),l=r("../base64"),u=r("../support"),f=r("../external"),c=null;if(u.nodestream)try{c=r("../nodejs/NodejsStreamOutputAdapter")}catch{}function d(v,g){return new f.Promise(function(m,p){var y=[],_=v._internalType,b=v._outputType,x=v._mimeType;v.on("data",function(w,S){y.push(w),g&&g(S)}).on("error",function(w){y=[],p(w)}).on("end",function(){try{var w=(function(S,L,C){switch(S){case"blob":return a.newBlob(a.transformTo("arraybuffer",L),C);case"base64":return l.encode(L);default:return a.transformTo(S,L)}})(b,(function(S,L){var C,D=0,I=null,A=0;for(C=0;C<L.length;C++)A+=L[C].length;switch(S){case"string":return L.join("");case"array":return Array.prototype.concat.apply([],L);case"uint8array":for(I=new Uint8Array(A),C=0;C<L.length;C++)I.set(L[C],D),D+=L[C].length;return I;case"nodebuffer":return Buffer.concat(L);default:throw new Error("concat : unsupported type '"+S+"'")}})(_,y),x);m(w)}catch(S){p(S)}y=[]}).resume()})}function h(v,g,m){var p=g;switch(g){case"blob":case"arraybuffer":p="uint8array";break;case"base64":p="string"}try{this._internalType=p,this._outputType=g,this._mimeType=m,a.checkSupport(p),this._worker=v.pipe(new o(p)),v.lock()}catch(y){this._worker=new s("error"),this._worker.error(y)}}h.prototype={accumulate:function(v){return d(this,v)},on:function(v,g){var m=this;return v==="data"?this._worker.on(v,function(p){g.call(m,p.data,p.meta)}):this._worker.on(v,function(){a.delay(g,arguments,m)}),this},resume:function(){return a.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(v){if(a.checkSupport("nodestream"),this._outputType!=="nodebuffer")throw new Error(this._outputType+" is not supported by this method");return new c(this,{objectMode:this._outputType!=="nodebuffer"},v)}},n.exports=h},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(r,n,i){if(i.base64=!0,i.array=!0,i.string=!0,i.arraybuffer=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u",i.nodebuffer=typeof Buffer<"u",i.uint8array=typeof Uint8Array<"u",typeof ArrayBuffer>"u")i.blob=!1;else{var a=new ArrayBuffer(0);try{i.blob=new Blob([a],{type:"application/zip"}).size===0}catch{try{var o=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);o.append(a),i.blob=o.getBlob("application/zip").size===0}catch{i.blob=!1}}}try{i.nodestream=!!r("readable-stream").Readable}catch{i.nodestream=!1}},{"readable-stream":16}],31:[function(r,n,i){for(var a=r("./utils"),o=r("./support"),s=r("./nodejsUtils"),l=r("./stream/GenericWorker"),u=new Array(256),f=0;f<256;f++)u[f]=252<=f?6:248<=f?5:240<=f?4:224<=f?3:192<=f?2:1;u[254]=u[254]=1;function c(){l.call(this,"utf-8 decode"),this.leftOver=null}function d(){l.call(this,"utf-8 encode")}i.utf8encode=function(h){return o.nodebuffer?s.newBufferFrom(h,"utf-8"):(function(v){var g,m,p,y,_,b=v.length,x=0;for(y=0;y<b;y++)(64512&(m=v.charCodeAt(y)))==55296&&y+1<b&&(64512&(p=v.charCodeAt(y+1)))==56320&&(m=65536+(m-55296<<10)+(p-56320),y++),x+=m<128?1:m<2048?2:m<65536?3:4;for(g=o.uint8array?new Uint8Array(x):new Array(x),y=_=0;_<x;y++)(64512&(m=v.charCodeAt(y)))==55296&&y+1<b&&(64512&(p=v.charCodeAt(y+1)))==56320&&(m=65536+(m-55296<<10)+(p-56320),y++),m<128?g[_++]=m:(m<2048?g[_++]=192|m>>>6:(m<65536?g[_++]=224|m>>>12:(g[_++]=240|m>>>18,g[_++]=128|m>>>12&63),g[_++]=128|m>>>6&63),g[_++]=128|63&m);return g})(h)},i.utf8decode=function(h){return o.nodebuffer?a.transformTo("nodebuffer",h).toString("utf-8"):(function(v){var g,m,p,y,_=v.length,b=new Array(2*_);for(g=m=0;g<_;)if((p=v[g++])<128)b[m++]=p;else if(4<(y=u[p]))b[m++]=65533,g+=y-1;else{for(p&=y===2?31:y===3?15:7;1<y&&g<_;)p=p<<6|63&v[g++],y--;1<y?b[m++]=65533:p<65536?b[m++]=p:(p-=65536,b[m++]=55296|p>>10&1023,b[m++]=56320|1023&p)}return b.length!==m&&(b.subarray?b=b.subarray(0,m):b.length=m),a.applyFromCharCode(b)})(h=a.transformTo(o.uint8array?"uint8array":"array",h))},a.inherits(c,l),c.prototype.processChunk=function(h){var v=a.transformTo(o.uint8array?"uint8array":"array",h.data);if(this.leftOver&&this.leftOver.length){if(o.uint8array){var g=v;(v=new Uint8Array(g.length+this.leftOver.length)).set(this.leftOver,0),v.set(g,this.leftOver.length)}else v=this.leftOver.concat(v);this.leftOver=null}var m=(function(y,_){var b;for((_=_||y.length)>y.length&&(_=y.length),b=_-1;0<=b&&(192&y[b])==128;)b--;return b<0||b===0?_:b+u[y[b]]>_?b:_})(v),p=v;m!==v.length&&(o.uint8array?(p=v.subarray(0,m),this.leftOver=v.subarray(m,v.length)):(p=v.slice(0,m),this.leftOver=v.slice(m,v.length))),this.push({data:i.utf8decode(p),meta:h.meta})},c.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:i.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},i.Utf8DecodeWorker=c,a.inherits(d,l),d.prototype.processChunk=function(h){this.push({data:i.utf8encode(h.data),meta:h.meta})},i.Utf8EncodeWorker=d},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(r,n,i){var a=r("./support"),o=r("./base64"),s=r("./nodejsUtils"),l=r("./external");function u(g){return g}function f(g,m){for(var p=0;p<g.length;++p)m[p]=255&g.charCodeAt(p);return m}r("setimmediate"),i.newBlob=function(g,m){i.checkSupport("blob");try{return new Blob([g],{type:m})}catch{try{var p=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return p.append(g),p.getBlob(m)}catch{throw new Error("Bug : can't construct the Blob.")}}};var c={stringifyByChunk:function(g,m,p){var y=[],_=0,b=g.length;if(b<=p)return String.fromCharCode.apply(null,g);for(;_<b;)m==="array"||m==="nodebuffer"?y.push(String.fromCharCode.apply(null,g.slice(_,Math.min(_+p,b)))):y.push(String.fromCharCode.apply(null,g.subarray(_,Math.min(_+p,b)))),_+=p;return y.join("")},stringifyByChar:function(g){for(var m="",p=0;p<g.length;p++)m+=String.fromCharCode(g[p]);return m},applyCanBeUsed:{uint8array:(function(){try{return a.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch{return!1}})(),nodebuffer:(function(){try{return a.nodebuffer&&String.fromCharCode.apply(null,s.allocBuffer(1)).length===1}catch{return!1}})()}};function d(g){var m=65536,p=i.getTypeOf(g),y=!0;if(p==="uint8array"?y=c.applyCanBeUsed.uint8array:p==="nodebuffer"&&(y=c.applyCanBeUsed.nodebuffer),y)for(;1<m;)try{return c.stringifyByChunk(g,p,m)}catch{m=Math.floor(m/2)}return c.stringifyByChar(g)}function h(g,m){for(var p=0;p<g.length;p++)m[p]=g[p];return m}i.applyFromCharCode=d;var v={};v.string={string:u,array:function(g){return f(g,new Array(g.length))},arraybuffer:function(g){return v.string.uint8array(g).buffer},uint8array:function(g){return f(g,new Uint8Array(g.length))},nodebuffer:function(g){return f(g,s.allocBuffer(g.length))}},v.array={string:d,array:u,arraybuffer:function(g){return new Uint8Array(g).buffer},uint8array:function(g){return new Uint8Array(g)},nodebuffer:function(g){return s.newBufferFrom(g)}},v.arraybuffer={string:function(g){return d(new Uint8Array(g))},array:function(g){return h(new Uint8Array(g),new Array(g.byteLength))},arraybuffer:u,uint8array:function(g){return new Uint8Array(g)},nodebuffer:function(g){return s.newBufferFrom(new Uint8Array(g))}},v.uint8array={string:d,array:function(g){return h(g,new Array(g.length))},arraybuffer:function(g){return g.buffer},uint8array:u,nodebuffer:function(g){return s.newBufferFrom(g)}},v.nodebuffer={string:d,array:function(g){return h(g,new Array(g.length))},arraybuffer:function(g){return v.nodebuffer.uint8array(g).buffer},uint8array:function(g){return h(g,new Uint8Array(g.length))},nodebuffer:u},i.transformTo=function(g,m){if(m=m||"",!g)return m;i.checkSupport(g);var p=i.getTypeOf(m);return v[p][g](m)},i.resolve=function(g){for(var m=g.split("/"),p=[],y=0;y<m.length;y++){var _=m[y];_==="."||_===""&&y!==0&&y!==m.length-1||(_===".."?p.pop():p.push(_))}return p.join("/")},i.getTypeOf=function(g){return typeof g=="string"?"string":Object.prototype.toString.call(g)==="[object Array]"?"array":a.nodebuffer&&s.isBuffer(g)?"nodebuffer":a.uint8array&&g instanceof Uint8Array?"uint8array":a.arraybuffer&&g instanceof ArrayBuffer?"arraybuffer":void 0},i.checkSupport=function(g){if(!a[g.toLowerCase()])throw new Error(g+" is not supported by this platform")},i.MAX_VALUE_16BITS=65535,i.MAX_VALUE_32BITS=-1,i.pretty=function(g){var m,p,y="";for(p=0;p<(g||"").length;p++)y+="\\x"+((m=g.charCodeAt(p))<16?"0":"")+m.toString(16).toUpperCase();return y},i.delay=function(g,m,p){setImmediate(function(){g.apply(p||null,m||[])})},i.inherits=function(g,m){function p(){}p.prototype=m.prototype,g.prototype=new p},i.extend=function(){var g,m,p={};for(g=0;g<arguments.length;g++)for(m in arguments[g])Object.prototype.hasOwnProperty.call(arguments[g],m)&&p[m]===void 0&&(p[m]=arguments[g][m]);return p},i.prepareContent=function(g,m,p,y,_){return l.Promise.resolve(m).then(function(b){return a.blob&&(b instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(b))!==-1)&&typeof FileReader<"u"?new l.Promise(function(x,w){var S=new FileReader;S.onload=function(L){x(L.target.result)},S.onerror=function(L){w(L.target.error)},S.readAsArrayBuffer(b)}):b}).then(function(b){var x=i.getTypeOf(b);return x?(x==="arraybuffer"?b=i.transformTo("uint8array",b):x==="string"&&(_?b=o.decode(b):p&&y!==!0&&(b=(function(w){return f(w,a.uint8array?new Uint8Array(w.length):new Array(w.length))})(b))),b):l.Promise.reject(new Error("Can't read the data of '"+g+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(r,n,i){var a=r("./reader/readerFor"),o=r("./utils"),s=r("./signature"),l=r("./zipEntry"),u=r("./support");function f(c){this.files=[],this.loadOptions=c}f.prototype={checkSignature:function(c){if(!this.reader.readAndCheckSignature(c)){this.reader.index-=4;var d=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+o.pretty(d)+", expected "+o.pretty(c)+")")}},isSignature:function(c,d){var h=this.reader.index;this.reader.setIndex(c);var v=this.reader.readString(4)===d;return this.reader.setIndex(h),v},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 c=this.reader.readData(this.zipCommentLength),d=u.uint8array?"uint8array":"array",h=o.transformTo(d,c);this.zipComment=this.loadOptions.decodeFileName(h)},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 c,d,h,v=this.zip64EndOfCentralSize-44;0<v;)c=this.reader.readInt(2),d=this.reader.readInt(4),h=this.reader.readData(d),this.zip64ExtensibleData[c]={id:c,length:d,value:h}},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 new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var c,d;for(c=0;c<this.files.length;c++)d=this.files[c],this.reader.setIndex(d.localHeaderOffset),this.checkSignature(s.LOCAL_FILE_HEADER),d.readLocalPart(this.reader),d.handleUTF8(),d.processAttributes()},readCentralDir:function(){var c;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(s.CENTRAL_FILE_HEADER);)(c=new l({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(c);if(this.centralDirRecords!==this.files.length&&this.centralDirRecords!==0&&this.files.length===0)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var c=this.reader.lastIndexOfSignature(s.CENTRAL_DIRECTORY_END);if(c<0)throw this.isSignature(0,s.LOCAL_FILE_HEADER)?new Error("Corrupted zip: can't find end of central directory"):new 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(c);var d=c;if(this.checkSignature(s.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===o.MAX_VALUE_16BITS||this.diskWithCentralDirStart===o.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===o.MAX_VALUE_16BITS||this.centralDirRecords===o.MAX_VALUE_16BITS||this.centralDirSize===o.MAX_VALUE_32BITS||this.centralDirOffset===o.MAX_VALUE_32BITS){if(this.zip64=!0,(c=this.reader.lastIndexOfSignature(s.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(c),this.checkSignature(s.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,s.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(s.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(s.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var h=this.centralDirOffset+this.centralDirSize;this.zip64&&(h+=20,h+=12+this.zip64EndOfCentralSize);var v=d-h;if(0<v)this.isSignature(d,s.CENTRAL_FILE_HEADER)||(this.reader.zero=v);else if(v<0)throw new Error("Corrupted zip: missing "+Math.abs(v)+" bytes.")},prepareReader:function(c){this.reader=a(c)},load:function(c){this.prepareReader(c),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},n.exports=f},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(r,n,i){var a=r("./reader/readerFor"),o=r("./utils"),s=r("./compressedObject"),l=r("./crc32"),u=r("./utf8"),f=r("./compressions"),c=r("./support");function d(h,v){this.options=h,this.loadOptions=v}d.prototype={isEncrypted:function(){return(1&this.bitFlag)==1},useUTF8:function(){return(2048&this.bitFlag)==2048},readLocalPart:function(h){var v,g;if(h.skip(22),this.fileNameLength=h.readInt(2),g=h.readInt(2),this.fileName=h.readData(this.fileNameLength),h.skip(g),this.compressedSize===-1||this.uncompressedSize===-1)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if((v=(function(m){for(var p in f)if(Object.prototype.hasOwnProperty.call(f,p)&&f[p].magic===m)return f[p];return null})(this.compressionMethod))===null)throw new Error("Corrupted zip : compression "+o.pretty(this.compressionMethod)+" unknown (inner file : "+o.transformTo("string",this.fileName)+")");this.decompressed=new s(this.compressedSize,this.uncompressedSize,this.crc32,v,h.readData(this.compressedSize))},readCentralPart:function(h){this.versionMadeBy=h.readInt(2),h.skip(2),this.bitFlag=h.readInt(2),this.compressionMethod=h.readString(2),this.date=h.readDate(),this.crc32=h.readInt(4),this.compressedSize=h.readInt(4),this.uncompressedSize=h.readInt(4);var v=h.readInt(2);if(this.extraFieldsLength=h.readInt(2),this.fileCommentLength=h.readInt(2),this.diskNumberStart=h.readInt(2),this.internalFileAttributes=h.readInt(2),this.externalFileAttributes=h.readInt(4),this.localHeaderOffset=h.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");h.skip(v),this.readExtraFields(h),this.parseZIP64ExtraField(h),this.fileComment=h.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var h=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),h==0&&(this.dosPermissions=63&this.externalFileAttributes),h==3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!=="/"||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var h=a(this.extraFields[1].value);this.uncompressedSize===o.MAX_VALUE_32BITS&&(this.uncompressedSize=h.readInt(8)),this.compressedSize===o.MAX_VALUE_32BITS&&(this.compressedSize=h.readInt(8)),this.localHeaderOffset===o.MAX_VALUE_32BITS&&(this.localHeaderOffset=h.readInt(8)),this.diskNumberStart===o.MAX_VALUE_32BITS&&(this.diskNumberStart=h.readInt(4))}},readExtraFields:function(h){var v,g,m,p=h.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});h.index+4<p;)v=h.readInt(2),g=h.readInt(2),m=h.readData(g),this.extraFields[v]={id:v,length:g,value:m};h.setIndex(p)},handleUTF8:function(){var h=c.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=u.utf8decode(this.fileName),this.fileCommentStr=u.utf8decode(this.fileComment);else{var v=this.findExtraFieldUnicodePath();if(v!==null)this.fileNameStr=v;else{var g=o.transformTo(h,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(g)}var m=this.findExtraFieldUnicodeComment();if(m!==null)this.fileCommentStr=m;else{var p=o.transformTo(h,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(p)}}},findExtraFieldUnicodePath:function(){var h=this.extraFields[28789];if(h){var v=a(h.value);return v.readInt(1)!==1||l(this.fileName)!==v.readInt(4)?null:u.utf8decode(v.readData(h.length-5))}return null},findExtraFieldUnicodeComment:function(){var h=this.extraFields[25461];if(h){var v=a(h.value);return v.readInt(1)!==1||l(this.fileComment)!==v.readInt(4)?null:u.utf8decode(v.readData(h.length-5))}return null}},n.exports=d},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(r,n,i){function a(v,g,m){this.name=v,this.dir=m.dir,this.date=m.date,this.comment=m.comment,this.unixPermissions=m.unixPermissions,this.dosPermissions=m.dosPermissions,this._data=g,this._dataBinary=m.binary,this.options={compression:m.compression,compressionOptions:m.compressionOptions}}var o=r("./stream/StreamHelper"),s=r("./stream/DataWorker"),l=r("./utf8"),u=r("./compressedObject"),f=r("./stream/GenericWorker");a.prototype={internalStream:function(v){var g=null,m="string";try{if(!v)throw new Error("No output type specified.");var p=(m=v.toLowerCase())==="string"||m==="text";m!=="binarystring"&&m!=="text"||(m="string"),g=this._decompressWorker();var y=!this._dataBinary;y&&!p&&(g=g.pipe(new l.Utf8EncodeWorker)),!y&&p&&(g=g.pipe(new l.Utf8DecodeWorker))}catch(_){(g=new f("error")).error(_)}return new o(g,m,"")},async:function(v,g){return this.internalStream(v).accumulate(g)},nodeStream:function(v,g){return this.internalStream(v||"nodebuffer").toNodejsStream(g)},_compressWorker:function(v,g){if(this._data instanceof u&&this._data.compression.magic===v.magic)return this._data.getCompressedWorker();var m=this._decompressWorker();return this._dataBinary||(m=m.pipe(new l.Utf8EncodeWorker)),u.createWorkerFrom(m,v,g)},_decompressWorker:function(){return this._data instanceof u?this._data.getContentWorker():this._data instanceof f?this._data:new s(this._data)}};for(var c=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],d=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},h=0;h<c.length;h++)a.prototype[c[h]]=d;n.exports=a},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(r,n,i){(function(a){var o,s,l=a.MutationObserver||a.WebKitMutationObserver;if(l){var u=0,f=new l(v),c=a.document.createTextNode("");f.observe(c,{characterData:!0}),o=function(){c.data=u=++u%2}}else if(a.setImmediate||a.MessageChannel===void 0)o="document"in a&&"onreadystatechange"in a.document.createElement("script")?function(){var g=a.document.createElement("script");g.onreadystatechange=function(){v(),g.onreadystatechange=null,g.parentNode.removeChild(g),g=null},a.document.documentElement.appendChild(g)}:function(){setTimeout(v,0)};else{var d=new a.MessageChannel;d.port1.onmessage=v,o=function(){d.port2.postMessage(0)}}var h=[];function v(){var g,m;s=!0;for(var p=h.length;p;){for(m=h,h=[],g=-1;++g<p;)m[g]();p=h.length}s=!1}n.exports=function(g){h.push(g)!==1||s||o()}}).call(this,typeof Bo<"u"?Bo:typeof self<"u"?self:typeof window<"u"?window:{})},{}],37:[function(r,n,i){var a=r("immediate");function o(){}var s={},l=["REJECTED"],u=["FULFILLED"],f=["PENDING"];function c(p){if(typeof p!="function")throw new TypeError("resolver must be a function");this.state=f,this.queue=[],this.outcome=void 0,p!==o&&g(this,p)}function d(p,y,_){this.promise=p,typeof y=="function"&&(this.onFulfilled=y,this.callFulfilled=this.otherCallFulfilled),typeof _=="function"&&(this.onRejected=_,this.callRejected=this.otherCallRejected)}function h(p,y,_){a(function(){var b;try{b=y(_)}catch(x){return s.reject(p,x)}b===p?s.reject(p,new TypeError("Cannot resolve promise with itself")):s.resolve(p,b)})}function v(p){var y=p&&p.then;if(p&&(typeof p=="object"||typeof p=="function")&&typeof y=="function")return function(){y.apply(p,arguments)}}function g(p,y){var _=!1;function b(S){_||(_=!0,s.reject(p,S))}function x(S){_||(_=!0,s.resolve(p,S))}var w=m(function(){y(x,b)});w.status==="error"&&b(w.value)}function m(p,y){var _={};try{_.value=p(y),_.status="success"}catch(b){_.status="error",_.value=b}return _}(n.exports=c).prototype.finally=function(p){if(typeof p!="function")return this;var y=this.constructor;return this.then(function(_){return y.resolve(p()).then(function(){return _})},function(_){return y.resolve(p()).then(function(){throw _})})},c.prototype.catch=function(p){return this.then(null,p)},c.prototype.then=function(p,y){if(typeof p!="function"&&this.state===u||typeof y!="function"&&this.state===l)return this;var _=new this.constructor(o);return this.state!==f?h(_,this.state===u?p:y,this.outcome):this.queue.push(new d(_,p,y)),_},d.prototype.callFulfilled=function(p){s.resolve(this.promise,p)},d.prototype.otherCallFulfilled=function(p){h(this.promise,this.onFulfilled,p)},d.prototype.callRejected=function(p){s.reject(this.promise,p)},d.prototype.otherCallRejected=function(p){h(this.promise,this.onRejected,p)},s.resolve=function(p,y){var _=m(v,y);if(_.status==="error")return s.reject(p,_.value);var b=_.value;if(b)g(p,b);else{p.state=u,p.outcome=y;for(var x=-1,w=p.queue.length;++x<w;)p.queue[x].callFulfilled(y)}return p},s.reject=function(p,y){p.state=l,p.outcome=y;for(var _=-1,b=p.queue.length;++_<b;)p.queue[_].callRejected(y);return p},c.resolve=function(p){return p instanceof this?p:s.resolve(new this(o),p)},c.reject=function(p){var y=new this(o);return s.reject(y,p)},c.all=function(p){var y=this;if(Object.prototype.toString.call(p)!=="[object Array]")return this.reject(new TypeError("must be an array"));var _=p.length,b=!1;if(!_)return this.resolve([]);for(var x=new Array(_),w=0,S=-1,L=new this(o);++S<_;)C(p[S],S);return L;function C(D,I){y.resolve(D).then(function(A){x[I]=A,++w!==_||b||(b=!0,s.resolve(L,x))},function(A){b||(b=!0,s.reject(L,A))})}},c.race=function(p){var y=this;if(Object.prototype.toString.call(p)!=="[object Array]")return this.reject(new TypeError("must be an array"));var _=p.length,b=!1;if(!_)return this.resolve([]);for(var x=-1,w=new this(o);++x<_;)S=p[x],y.resolve(S).then(function(L){b||(b=!0,s.resolve(w,L))},function(L){b||(b=!0,s.reject(w,L))});var S;return w}},{immediate:36}],38:[function(r,n,i){var a={};(0,r("./lib/utils/common").assign)(a,r("./lib/deflate"),r("./lib/inflate"),r("./lib/zlib/constants")),n.exports=a},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(r,n,i){var a=r("./zlib/deflate"),o=r("./utils/common"),s=r("./utils/strings"),l=r("./zlib/messages"),u=r("./zlib/zstream"),f=Object.prototype.toString,c=0,d=-1,h=0,v=8;function g(p){if(!(this instanceof g))return new g(p);this.options=o.assign({level:d,method:v,chunkSize:16384,windowBits:15,memLevel:8,strategy:h,to:""},p||{});var y=this.options;y.raw&&0<y.windowBits?y.windowBits=-y.windowBits:y.gzip&&0<y.windowBits&&y.windowBits<16&&(y.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new u,this.strm.avail_out=0;var _=a.deflateInit2(this.strm,y.level,y.method,y.windowBits,y.memLevel,y.strategy);if(_!==c)throw new Error(l[_]);if(y.header&&a.deflateSetHeader(this.strm,y.header),y.dictionary){var b;if(b=typeof y.dictionary=="string"?s.string2buf(y.dictionary):f.call(y.dictionary)==="[object ArrayBuffer]"?new Uint8Array(y.dictionary):y.dictionary,(_=a.deflateSetDictionary(this.strm,b))!==c)throw new Error(l[_]);this._dict_set=!0}}function m(p,y){var _=new g(y);if(_.push(p,!0),_.err)throw _.msg||l[_.err];return _.result}g.prototype.push=function(p,y){var _,b,x=this.strm,w=this.options.chunkSize;if(this.ended)return!1;b=y===~~y?y:y===!0?4:0,typeof p=="string"?x.input=s.string2buf(p):f.call(p)==="[object ArrayBuffer]"?x.input=new Uint8Array(p):x.input=p,x.next_in=0,x.avail_in=x.input.length;do{if(x.avail_out===0&&(x.output=new o.Buf8(w),x.next_out=0,x.avail_out=w),(_=a.deflate(x,b))!==1&&_!==c)return this.onEnd(_),!(this.ended=!0);x.avail_out!==0&&(x.avail_in!==0||b!==4&&b!==2)||(this.options.to==="string"?this.onData(s.buf2binstring(o.shrinkBuf(x.output,x.next_out))):this.onData(o.shrinkBuf(x.output,x.next_out)))}while((0<x.avail_in||x.avail_out===0)&&_!==1);return b===4?(_=a.deflateEnd(this.strm),this.onEnd(_),this.ended=!0,_===c):b!==2||(this.onEnd(c),!(x.avail_out=0))},g.prototype.onData=function(p){this.chunks.push(p)},g.prototype.onEnd=function(p){p===c&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=o.flattenChunks(this.chunks)),this.chunks=[],this.err=p,this.msg=this.strm.msg},i.Deflate=g,i.deflate=m,i.deflateRaw=function(p,y){return(y=y||{}).raw=!0,m(p,y)},i.gzip=function(p,y){return(y=y||{}).gzip=!0,m(p,y)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(r,n,i){var a=r("./zlib/inflate"),o=r("./utils/common"),s=r("./utils/strings"),l=r("./zlib/constants"),u=r("./zlib/messages"),f=r("./zlib/zstream"),c=r("./zlib/gzheader"),d=Object.prototype.toString;function h(g){if(!(this instanceof h))return new h(g);this.options=o.assign({chunkSize:16384,windowBits:0,to:""},g||{});var m=this.options;m.raw&&0<=m.windowBits&&m.windowBits<16&&(m.windowBits=-m.windowBits,m.windowBits===0&&(m.windowBits=-15)),!(0<=m.windowBits&&m.windowBits<16)||g&&g.windowBits||(m.windowBits+=32),15<m.windowBits&&m.windowBits<48&&(15&m.windowBits)==0&&(m.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new f,this.strm.avail_out=0;var p=a.inflateInit2(this.strm,m.windowBits);if(p!==l.Z_OK)throw new Error(u[p]);this.header=new c,a.inflateGetHeader(this.strm,this.header)}function v(g,m){var p=new h(m);if(p.push(g,!0),p.err)throw p.msg||u[p.err];return p.result}h.prototype.push=function(g,m){var p,y,_,b,x,w,S=this.strm,L=this.options.chunkSize,C=this.options.dictionary,D=!1;if(this.ended)return!1;y=m===~~m?m:m===!0?l.Z_FINISH:l.Z_NO_FLUSH,typeof g=="string"?S.input=s.binstring2buf(g):d.call(g)==="[object ArrayBuffer]"?S.input=new Uint8Array(g):S.input=g,S.next_in=0,S.avail_in=S.input.length;do{if(S.avail_out===0&&(S.output=new o.Buf8(L),S.next_out=0,S.avail_out=L),(p=a.inflate(S,l.Z_NO_FLUSH))===l.Z_NEED_DICT&&C&&(w=typeof C=="string"?s.string2buf(C):d.call(C)==="[object ArrayBuffer]"?new Uint8Array(C):C,p=a.inflateSetDictionary(this.strm,w)),p===l.Z_BUF_ERROR&&D===!0&&(p=l.Z_OK,D=!1),p!==l.Z_STREAM_END&&p!==l.Z_OK)return this.onEnd(p),!(this.ended=!0);S.next_out&&(S.avail_out!==0&&p!==l.Z_STREAM_END&&(S.avail_in!==0||y!==l.Z_FINISH&&y!==l.Z_SYNC_FLUSH)||(this.options.to==="string"?(_=s.utf8border(S.output,S.next_out),b=S.next_out-_,x=s.buf2string(S.output,_),S.next_out=b,S.avail_out=L-b,b&&o.arraySet(S.output,S.output,_,b,0),this.onData(x)):this.onData(o.shrinkBuf(S.output,S.next_out)))),S.avail_in===0&&S.avail_out===0&&(D=!0)}while((0<S.avail_in||S.avail_out===0)&&p!==l.Z_STREAM_END);return p===l.Z_STREAM_END&&(y=l.Z_FINISH),y===l.Z_FINISH?(p=a.inflateEnd(this.strm),this.onEnd(p),this.ended=!0,p===l.Z_OK):y!==l.Z_SYNC_FLUSH||(this.onEnd(l.Z_OK),!(S.avail_out=0))},h.prototype.onData=function(g){this.chunks.push(g)},h.prototype.onEnd=function(g){g===l.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=o.flattenChunks(this.chunks)),this.chunks=[],this.err=g,this.msg=this.strm.msg},i.Inflate=h,i.inflate=v,i.inflateRaw=function(g,m){return(m=m||{}).raw=!0,v(g,m)},i.ungzip=v},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(r,n,i){var a=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";i.assign=function(l){for(var u=Array.prototype.slice.call(arguments,1);u.length;){var f=u.shift();if(f){if(typeof f!="object")throw new TypeError(f+"must be non-object");for(var c in f)f.hasOwnProperty(c)&&(l[c]=f[c])}}return l},i.shrinkBuf=function(l,u){return l.length===u?l:l.subarray?l.subarray(0,u):(l.length=u,l)};var o={arraySet:function(l,u,f,c,d){if(u.subarray&&l.subarray)l.set(u.subarray(f,f+c),d);else for(var h=0;h<c;h++)l[d+h]=u[f+h]},flattenChunks:function(l){var u,f,c,d,h,v;for(u=c=0,f=l.length;u<f;u++)c+=l[u].length;for(v=new Uint8Array(c),u=d=0,f=l.length;u<f;u++)h=l[u],v.set(h,d),d+=h.length;return v}},s={arraySet:function(l,u,f,c,d){for(var h=0;h<c;h++)l[d+h]=u[f+h]},flattenChunks:function(l){return[].concat.apply([],l)}};i.setTyped=function(l){l?(i.Buf8=Uint8Array,i.Buf16=Uint16Array,i.Buf32=Int32Array,i.assign(i,o)):(i.Buf8=Array,i.Buf16=Array,i.Buf32=Array,i.assign(i,s))},i.setTyped(a)},{}],42:[function(r,n,i){var a=r("./common"),o=!0,s=!0;try{String.fromCharCode.apply(null,[0])}catch{o=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{s=!1}for(var l=new a.Buf8(256),u=0;u<256;u++)l[u]=252<=u?6:248<=u?5:240<=u?4:224<=u?3:192<=u?2:1;function f(c,d){if(d<65537&&(c.subarray&&s||!c.subarray&&o))return String.fromCharCode.apply(null,a.shrinkBuf(c,d));for(var h="",v=0;v<d;v++)h+=String.fromCharCode(c[v]);return h}l[254]=l[254]=1,i.string2buf=function(c){var d,h,v,g,m,p=c.length,y=0;for(g=0;g<p;g++)(64512&(h=c.charCodeAt(g)))==55296&&g+1<p&&(64512&(v=c.charCodeAt(g+1)))==56320&&(h=65536+(h-55296<<10)+(v-56320),g++),y+=h<128?1:h<2048?2:h<65536?3:4;for(d=new a.Buf8(y),g=m=0;m<y;g++)(64512&(h=c.charCodeAt(g)))==55296&&g+1<p&&(64512&(v=c.charCodeAt(g+1)))==56320&&(h=65536+(h-55296<<10)+(v-56320),g++),h<128?d[m++]=h:(h<2048?d[m++]=192|h>>>6:(h<65536?d[m++]=224|h>>>12:(d[m++]=240|h>>>18,d[m++]=128|h>>>12&63),d[m++]=128|h>>>6&63),d[m++]=128|63&h);return d},i.buf2binstring=function(c){return f(c,c.length)},i.binstring2buf=function(c){for(var d=new a.Buf8(c.length),h=0,v=d.length;h<v;h++)d[h]=c.charCodeAt(h);return d},i.buf2string=function(c,d){var h,v,g,m,p=d||c.length,y=new Array(2*p);for(h=v=0;h<p;)if((g=c[h++])<128)y[v++]=g;else if(4<(m=l[g]))y[v++]=65533,h+=m-1;else{for(g&=m===2?31:m===3?15:7;1<m&&h<p;)g=g<<6|63&c[h++],m--;1<m?y[v++]=65533:g<65536?y[v++]=g:(g-=65536,y[v++]=55296|g>>10&1023,y[v++]=56320|1023&g)}return f(y,v)},i.utf8border=function(c,d){var h;for((d=d||c.length)>c.length&&(d=c.length),h=d-1;0<=h&&(192&c[h])==128;)h--;return h<0||h===0?d:h+l[c[h]]>d?h:d}},{"./common":41}],43:[function(r,n,i){n.exports=function(a,o,s,l){for(var u=65535&a|0,f=a>>>16&65535|0,c=0;s!==0;){for(s-=c=2e3<s?2e3:s;f=f+(u=u+o[l++]|0)|0,--c;);u%=65521,f%=65521}return u|f<<16|0}},{}],44:[function(r,n,i){n.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(r,n,i){var a=(function(){for(var o,s=[],l=0;l<256;l++){o=l;for(var u=0;u<8;u++)o=1&o?3988292384^o>>>1:o>>>1;s[l]=o}return s})();n.exports=function(o,s,l,u){var f=a,c=u+l;o^=-1;for(var d=u;d<c;d++)o=o>>>8^f[255&(o^s[d])];return-1^o}},{}],46:[function(r,n,i){var a,o=r("../utils/common"),s=r("./trees"),l=r("./adler32"),u=r("./crc32"),f=r("./messages"),c=0,d=4,h=0,v=-2,g=-1,m=4,p=2,y=8,_=9,b=286,x=30,w=19,S=2*b+1,L=15,C=3,D=258,I=D+C+1,A=42,M=113,T=1,k=2,R=3,z=4;function H(E,Y){return E.msg=f[Y],Y}function V(E){return(E<<1)-(4<E?9:0)}function Z(E){for(var Y=E.length;0<=--Y;)E[Y]=0}function B(E){var Y=E.state,W=Y.pending;W>E.avail_out&&(W=E.avail_out),W!==0&&(o.arraySet(E.output,Y.pending_buf,Y.pending_out,W,E.next_out),E.next_out+=W,Y.pending_out+=W,E.total_out+=W,E.avail_out-=W,Y.pending-=W,Y.pending===0&&(Y.pending_out=0))}function $(E,Y){s._tr_flush_block(E,0<=E.block_start?E.block_start:-1,E.strstart-E.block_start,Y),E.block_start=E.strstart,B(E.strm)}function X(E,Y){E.pending_buf[E.pending++]=Y}function j(E,Y){E.pending_buf[E.pending++]=Y>>>8&255,E.pending_buf[E.pending++]=255&Y}function Q(E,Y){var W,N,P=E.max_chain_length,G=E.strstart,K=E.prev_length,J=E.nice_match,U=E.strstart>E.w_size-I?E.strstart-(E.w_size-I):0,rt=E.window,lt=E.w_mask,nt=E.prev,yt=E.strstart+D,Ut=rt[G+K-1],Dt=rt[G+K];E.prev_length>=E.good_match&&(P>>=2),J>E.lookahead&&(J=E.lookahead);do if(rt[(W=Y)+K]===Dt&&rt[W+K-1]===Ut&&rt[W]===rt[G]&&rt[++W]===rt[G+1]){G+=2,W++;do;while(rt[++G]===rt[++W]&&rt[++G]===rt[++W]&&rt[++G]===rt[++W]&&rt[++G]===rt[++W]&&rt[++G]===rt[++W]&&rt[++G]===rt[++W]&&rt[++G]===rt[++W]&&rt[++G]===rt[++W]&&G<yt);if(N=D-(yt-G),G=yt-D,K<N){if(E.match_start=Y,J<=(K=N))break;Ut=rt[G+K-1],Dt=rt[G+K]}}while((Y=nt[Y<])>U&&--P!=0);return K<=E.lookahead?K:E.lookahead}function bt(E){var Y,W,N,P,G,K,J,U,rt,lt,nt=E.w_size;do{if(P=E.window_size-E.lookahead-E.strstart,E.strstart>=nt+(nt-I)){for(o.arraySet(E.window,E.window,nt,nt,0),E.match_start-=nt,E.strstart-=nt,E.block_start-=nt,Y=W=E.hash_size;N=E.head[--Y],E.head[Y]=nt<=N?N-nt:0,--W;);for(Y=W=nt;N=E.prev[--Y],E.prev[Y]=nt<=N?N-nt:0,--W;);P+=nt}if(E.strm.avail_in===0)break;if(K=E.strm,J=E.window,U=E.strstart+E.lookahead,rt=P,lt=void 0,lt=K.avail_in,rt<lt&&(lt=rt),W=lt===0?0:(K.avail_in-=lt,o.arraySet(J,K.input,K.next_in,lt,U),K.state.wrap===1?K.adler=l(K.adler,J,lt,U):K.state.wrap===2&&(K.adler=u(K.adler,J,lt,U)),K.next_in+=lt,K.total_in+=lt,lt),E.lookahead+=W,E.lookahead+E.insert>=C)for(G=E.strstart-E.insert,E.ins_h=E.window[G],E.ins_h=(E.ins_h<<E.hash_shift^E.window[G+1])&E.hash_mask;E.insert&&(E.ins_h=(E.ins_h<<E.hash_shift^E.window[G+C-1])&E.hash_mask,E.prev[G&E.w_mask]=E.head[E.ins_h],E.head[E.ins_h]=G,G++,E.insert--,!(E.lookahead+E.insert<C)););}while(E.lookahead<I&&E.strm.avail_in!==0)}function Et(E,Y){for(var W,N;;){if(E.lookahead<I){if(bt(E),E.lookahead<I&&Y===c)return T;if(E.lookahead===0)break}if(W=0,E.lookahead>=C&&(E.ins_h=(E.ins_h<<E.hash_shift^E.window[E.strstart+C-1])&E.hash_mask,W=E.prev[E.strstart&E.w_mask]=E.head[E.ins_h],E.head[E.ins_h]=E.strstart),W!==0&&E.strstart-W<=E.w_size-I&&(E.match_length=Q(E,W)),E.match_length>=C)if(N=s._tr_tally(E,E.strstart-E.match_start,E.match_length-C),E.lookahead-=E.match_length,E.match_length<=E.max_lazy_match&&E.lookahead>=C){for(E.match_length--;E.strstart++,E.ins_h=(E.ins_h<<E.hash_shift^E.window[E.strstart+C-1])&E.hash_mask,W=E.prev[E.strstart&E.w_mask]=E.head[E.ins_h],E.head[E.ins_h]=E.strstart,--E.match_length!=0;);E.strstart++}else E.strstart+=E.match_length,E.match_length=0,E.ins_h=E.window[E.strstart],E.ins_h=(E.ins_h<<E.hash_shift^E.window[E.strstart+1])&E.hash_mask;else N=s._tr_tally(E,0,E.window[E.strstart]),E.lookahead--,E.strstart++;if(N&&($(E,!1),E.strm.avail_out===0))return T}return E.insert=E.strstart<C-1?E.strstart:C-1,Y===d?($(E,!0),E.strm.avail_out===0?R:z):E.last_lit&&($(E,!1),E.strm.avail_out===0)?T:k}function ht(E,Y){for(var W,N,P;;){if(E.lookahead<I){if(bt(E),E.lookahead<I&&Y===c)return T;if(E.lookahead===0)break}if(W=0,E.lookahead>=C&&(E.ins_h=(E.ins_h<<E.hash_shift^E.window[E.strstart+C-1])&E.hash_mask,W=E.prev[E.strstart&E.w_mask]=E.head[E.ins_h],E.head[E.ins_h]=E.strstart),E.prev_length=E.match_length,E.prev_match=E.match_start,E.match_length=C-1,W!==0&&E.prev_length<E.max_lazy_match&&E.strstart-W<=E.w_size-I&&(E.match_length=Q(E,W),E.match_length<=5&&(E.strategy===1||E.match_length===C&&4096<E.strstart-E.match_start)&&(E.match_length=C-1)),E.prev_length>=C&&E.match_length<=E.prev_length){for(P=E.strstart+E.lookahead-C,N=s._tr_tally(E,E.strstart-1-E.prev_match,E.prev_length-C),E.lookahead-=E.prev_length-1,E.prev_length-=2;++E.strstart<=P&&(E.ins_h=(E.ins_h<<E.hash_shift^E.window[E.strstart+C-1])&E.hash_mask,W=E.prev[E.strstart&E.w_mask]=E.head[E.ins_h],E.head[E.ins_h]=E.strstart),--E.prev_length!=0;);if(E.match_available=0,E.match_length=C-1,E.strstart++,N&&($(E,!1),E.strm.avail_out===0))return T}else if(E.match_available){if((N=s._tr_tally(E,0,E.window[E.strstart-1]))&&$(E,!1),E.strstart++,E.lookahead--,E.strm.avail_out===0)return T}else E.match_available=1,E.strstart++,E.lookahead--}return E.match_available&&(N=s._tr_tally(E,0,E.window[E.strstart-1]),E.match_available=0),E.insert=E.strstart<C-1?E.strstart:C-1,Y===d?($(E,!0),E.strm.avail_out===0?R:z):E.last_lit&&($(E,!1),E.strm.avail_out===0)?T:k}function gt(E,Y,W,N,P){this.good_length=E,this.max_lazy=Y,this.nice_length=W,this.max_chain=N,this.func=P}function St(){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=y,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 o.Buf16(2*S),this.dyn_dtree=new o.Buf16(2*(2*x+1)),this.bl_tree=new o.Buf16(2*(2*w+1)),Z(this.dyn_ltree),Z(this.dyn_dtree),Z(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new o.Buf16(L+1),this.heap=new o.Buf16(2*b+1),Z(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new o.Buf16(2*b+1),Z(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 at(E){var Y;return E&&E.state?(E.total_in=E.total_out=0,E.data_type=p,(Y=E.state).pending=0,Y.pending_out=0,Y.wrap<0&&(Y.wrap=-Y.wrap),Y.status=Y.wrap?A:M,E.adler=Y.wrap===2?0:1,Y.last_flush=c,s._tr_init(Y),h):H(E,v)}function mt(E){var Y=at(E);return Y===h&&(function(W){W.window_size=2*W.w_size,Z(W.head),W.max_lazy_match=a[W.level].max_lazy,W.good_match=a[W.level].good_length,W.nice_match=a[W.level].nice_length,W.max_chain_length=a[W.level].max_chain,W.strstart=0,W.block_start=0,W.lookahead=0,W.insert=0,W.match_length=W.prev_length=C-1,W.match_available=0,W.ins_h=0})(E.state),Y}function Rt(E,Y,W,N,P,G){if(!E)return v;var K=1;if(Y===g&&(Y=6),N<0?(K=0,N=-N):15<N&&(K=2,N-=16),P<1||_<P||W!==y||N<8||15<N||Y<0||9<Y||G<0||m<G)return H(E,v);N===8&&(N=9);var J=new St;return(E.state=J).strm=E,J.wrap=K,J.gzhead=null,J.w_bits=N,J.w_size=1<<J.w_bits,J.w_mask=J.w_size-1,J.hash_bits=P+7,J.hash_size=1<<J.hash_bits,J.hash_mask=J.hash_size-1,J.hash_shift=~~((J.hash_bits+C-1)/C),J.window=new o.Buf8(2*J.w_size),J.head=new o.Buf16(J.hash_size),J.prev=new o.Buf16(J.w_size),J.lit_bufsize=1<<P+6,J.pending_buf_size=4*J.lit_bufsize,J.pending_buf=new o.Buf8(J.pending_buf_size),J.d_buf=1*J.lit_bufsize,J.l_buf=3*J.lit_bufsize,J.level=Y,J.strategy=G,J.method=W,mt(E)}a=[new gt(0,0,0,0,function(E,Y){var W=65535;for(W>E.pending_buf_size-5&&(W=E.pending_buf_size-5);;){if(E.lookahead<=1){if(bt(E),E.lookahead===0&&Y===c)return T;if(E.lookahead===0)break}E.strstart+=E.lookahead,E.lookahead=0;var N=E.block_start+W;if((E.strstart===0||E.strstart>=N)&&(E.lookahead=E.strstart-N,E.strstart=N,$(E,!1),E.strm.avail_out===0)||E.strstart-E.block_start>=E.w_size-I&&($(E,!1),E.strm.avail_out===0))return T}return E.insert=0,Y===d?($(E,!0),E.strm.avail_out===0?R:z):(E.strstart>E.block_start&&($(E,!1),E.strm.avail_out),T)}),new gt(4,4,8,4,Et),new gt(4,5,16,8,Et),new gt(4,6,32,32,Et),new gt(4,4,16,16,ht),new gt(8,16,32,32,ht),new gt(8,16,128,128,ht),new gt(8,32,128,256,ht),new gt(32,128,258,1024,ht),new gt(32,258,258,4096,ht)],i.deflateInit=function(E,Y){return Rt(E,Y,y,15,8,0)},i.deflateInit2=Rt,i.deflateReset=mt,i.deflateResetKeep=at,i.deflateSetHeader=function(E,Y){return E&&E.state?E.state.wrap!==2?v:(E.state.gzhead=Y,h):v},i.deflate=function(E,Y){var W,N,P,G;if(!E||!E.state||5<Y||Y<0)return E?H(E,v):v;if(N=E.state,!E.output||!E.input&&E.avail_in!==0||N.status===666&&Y!==d)return H(E,E.avail_out===0?-5:v);if(N.strm=E,W=N.last_flush,N.last_flush=Y,N.status===A)if(N.wrap===2)E.adler=0,X(N,31),X(N,139),X(N,8),N.gzhead?(X(N,(N.gzhead.text?1:0)+(N.gzhead.hcrc?2:0)+(N.gzhead.extra?4:0)+(N.gzhead.name?8:0)+(N.gzhead.comment?16:0)),X(N,255&N.gzhead.time),X(N,N.gzhead.time>>8&255),X(N,N.gzhead.time>>16&255),X(N,N.gzhead.time>>24&255),X(N,N.level===9?2:2<=N.strategy||N.level<2?4:0),X(N,255&N.gzhead.os),N.gzhead.extra&&N.gzhead.extra.length&&(X(N,255&N.gzhead.extra.length),X(N,N.gzhead.extra.length>>8&255)),N.gzhead.hcrc&&(E.adler=u(E.adler,N.pending_buf,N.pending,0)),N.gzindex=0,N.status=69):(X(N,0),X(N,0),X(N,0),X(N,0),X(N,0),X(N,N.level===9?2:2<=N.strategy||N.level<2?4:0),X(N,3),N.status=M);else{var K=y+(N.w_bits-8<<4)<<8;K|=(2<=N.strategy||N.level<2?0:N.level<6?1:N.level===6?2:3)<<6,N.strstart!==0&&(K|=32),K+=31-K%31,N.status=M,j(N,K),N.strstart!==0&&(j(N,E.adler>>>16),j(N,65535&E.adler)),E.adler=1}if(N.status===69)if(N.gzhead.extra){for(P=N.pending;N.gzindex<(65535&N.gzhead.extra.length)&&(N.pending!==N.pending_buf_size||(N.gzhead.hcrc&&N.pending>P&&(E.adler=u(E.adler,N.pending_buf,N.pending-P,P)),B(E),P=N.pending,N.pending!==N.pending_buf_size));)X(N,255&N.gzhead.extra[N.gzindex]),N.gzindex++;N.gzhead.hcrc&&N.pending>P&&(E.adler=u(E.adler,N.pending_buf,N.pending-P,P)),N.gzindex===N.gzhead.extra.length&&(N.gzindex=0,N.status=73)}else N.status=73;if(N.status===73)if(N.gzhead.name){P=N.pending;do{if(N.pending===N.pending_buf_size&&(N.gzhead.hcrc&&N.pending>P&&(E.adler=u(E.adler,N.pending_buf,N.pending-P,P)),B(E),P=N.pending,N.pending===N.pending_buf_size)){G=1;break}G=N.gzindex<N.gzhead.name.length?255&N.gzhead.name.charCodeAt(N.gzindex++):0,X(N,G)}while(G!==0);N.gzhead.hcrc&&N.pending>P&&(E.adler=u(E.adler,N.pending_buf,N.pending-P,P)),G===0&&(N.gzindex=0,N.status=91)}else N.status=91;if(N.status===91)if(N.gzhead.comment){P=N.pending;do{if(N.pending===N.pending_buf_size&&(N.gzhead.hcrc&&N.pending>P&&(E.adler=u(E.adler,N.pending_buf,N.pending-P,P)),B(E),P=N.pending,N.pending===N.pending_buf_size)){G=1;break}G=N.gzindex<N.gzhead.comment.length?255&N.gzhead.comment.charCodeAt(N.gzindex++):0,X(N,G)}while(G!==0);N.gzhead.hcrc&&N.pending>P&&(E.adler=u(E.adler,N.pending_buf,N.pending-P,P)),G===0&&(N.status=103)}else N.status=103;if(N.status===103&&(N.gzhead.hcrc?(N.pending+2>N.pending_buf_size&&B(E),N.pending+2<=N.pending_buf_size&&(X(N,255&E.adler),X(N,E.adler>>8&255),E.adler=0,N.status=M)):N.status=M),N.pending!==0){if(B(E),E.avail_out===0)return N.last_flush=-1,h}else if(E.avail_in===0&&V(Y)<=V(W)&&Y!==d)return H(E,-5);if(N.status===666&&E.avail_in!==0)return H(E,-5);if(E.avail_in!==0||N.lookahead!==0||Y!==c&&N.status!==666){var J=N.strategy===2?(function(U,rt){for(var lt;;){if(U.lookahead===0&&(bt(U),U.lookahead===0)){if(rt===c)return T;break}if(U.match_length=0,lt=s._tr_tally(U,0,U.window[U.strstart]),U.lookahead--,U.strstart++,lt&&($(U,!1),U.strm.avail_out===0))return T}return U.insert=0,rt===d?($(U,!0),U.strm.avail_out===0?R:z):U.last_lit&&($(U,!1),U.strm.avail_out===0)?T:k})(N,Y):N.strategy===3?(function(U,rt){for(var lt,nt,yt,Ut,Dt=U.window;;){if(U.lookahead<=D){if(bt(U),U.lookahead<=D&&rt===c)return T;if(U.lookahead===0)break}if(U.match_length=0,U.lookahead>=C&&0<U.strstart&&(nt=Dt[yt=U.strstart-1])===Dt[++yt]&&nt===Dt[++yt]&&nt===Dt[++yt]){Ut=U.strstart+D;do;while(nt===Dt[++yt]&&nt===Dt[++yt]&&nt===Dt[++yt]&&nt===Dt[++yt]&&nt===Dt[++yt]&&nt===Dt[++yt]&&nt===Dt[++yt]&&nt===Dt[++yt]&&yt<Ut);U.match_length=D-(Ut-yt),U.match_length>U.lookahead&&(U.match_length=U.lookahead)}if(U.match_length>=C?(lt=s._tr_tally(U,1,U.match_length-C),U.lookahead-=U.match_length,U.strstart+=U.match_length,U.match_length=0):(lt=s._tr_tally(U,0,U.window[U.strstart]),U.lookahead--,U.strstart++),lt&&($(U,!1),U.strm.avail_out===0))return T}return U.insert=0,rt===d?($(U,!0),U.strm.avail_out===0?R:z):U.last_lit&&($(U,!1),U.strm.avail_out===0)?T:k})(N,Y):a[N.level].func(N,Y);if(J!==R&&J!==z||(N.status=666),J===T||J===R)return E.avail_out===0&&(N.last_flush=-1),h;if(J===k&&(Y===1?s._tr_align(N):Y!==5&&(s._tr_stored_block(N,0,0,!1),Y===3&&(Z(N.head),N.lookahead===0&&(N.strstart=0,N.block_start=0,N.insert=0))),B(E),E.avail_out===0))return N.last_flush=-1,h}return Y!==d?h:N.wrap<=0?1:(N.wrap===2?(X(N,255&E.adler),X(N,E.adler>>8&255),X(N,E.adler>>16&255),X(N,E.adler>>24&255),X(N,255&E.total_in),X(N,E.total_in>>8&255),X(N,E.total_in>>16&255),X(N,E.total_in>>24&255)):(j(N,E.adler>>>16),j(N,65535&E.adler)),B(E),0<N.wrap&&(N.wrap=-N.wrap),N.pending!==0?h:1)},i.deflateEnd=function(E){var Y;return E&&E.state?(Y=E.state.status)!==A&&Y!==69&&Y!==73&&Y!==91&&Y!==103&&Y!==M&&Y!==666?H(E,v):(E.state=null,Y===M?H(E,-3):h):v},i.deflateSetDictionary=function(E,Y){var W,N,P,G,K,J,U,rt,lt=Y.length;if(!E||!E.state||(G=(W=E.state).wrap)===2||G===1&&W.status!==A||W.lookahead)return v;for(G===1&&(E.adler=l(E.adler,Y,lt,0)),W.wrap=0,lt>=W.w_size&&(G===0&&(Z(W.head),W.strstart=0,W.block_start=0,W.insert=0),rt=new o.Buf8(W.w_size),o.arraySet(rt,Y,lt-W.w_size,W.w_size,0),Y=rt,lt=W.w_size),K=E.avail_in,J=E.next_in,U=E.input,E.avail_in=lt,E.next_in=0,E.input=Y,bt(W);W.lookahead>=C;){for(N=W.strstart,P=W.lookahead-(C-1);W.ins_h=(W.ins_h<<W.hash_shift^W.window[N+C-1])&W.hash_mask,W.prev[N&W.w_mask]=W.head[W.ins_h],W.head[W.ins_h]=N,N++,--P;);W.strstart=N,W.lookahead=C-1,bt(W)}return W.strstart+=W.lookahead,W.block_start=W.strstart,W.insert=W.lookahead,W.lookahead=0,W.match_length=W.prev_length=C-1,W.match_available=0,E.next_in=J,E.input=U,E.avail_in=K,W.wrap=G,h},i.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(r,n,i){n.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(r,n,i){n.exports=function(a,o){var s,l,u,f,c,d,h,v,g,m,p,y,_,b,x,w,S,L,C,D,I,A,M,T,k;s=a.state,l=a.next_in,T=a.input,u=l+(a.avail_in-5),f=a.next_out,k=a.output,c=f-(o-a.avail_out),d=f+(a.avail_out-257),h=s.dmax,v=s.wsize,g=s.whave,m=s.wnext,p=s.window,y=s.hold,_=s.bits,b=s.lencode,x=s.distcode,w=(1<<s.lenbits)-1,S=(1<<s.distbits)-1;t:do{_<15&&(y+=T[l++]<<_,_+=8,y+=T[l++]<<_,_+=8),L=b[y&w];e:for(;;){if(y>>>=C=L>>>24,_-=C,(C=L>>>16&255)===0)k[f++]=65535&L;else{if(!(16&C)){if((64&C)==0){L=b[(65535&L)+(y&(1<<C)-1)];continue e}if(32&C){s.mode=12;break t}a.msg="invalid literal/length code",s.mode=30;break t}D=65535&L,(C&=15)&&(_<C&&(y+=T[l++]<<_,_+=8),D+=y&(1<<C)-1,y>>>=C,_-=C),_<15&&(y+=T[l++]<<_,_+=8,y+=T[l++]<<_,_+=8),L=x[y&S];r:for(;;){if(y>>>=C=L>>>24,_-=C,!(16&(C=L>>>16&255))){if((64&C)==0){L=x[(65535&L)+(y&(1<<C)-1)];continue r}a.msg="invalid distance code",s.mode=30;break t}if(I=65535&L,_<(C&=15)&&(y+=T[l++]<<_,(_+=8)<C&&(y+=T[l++]<<_,_+=8)),h<(I+=y&(1<<C)-1)){a.msg="invalid distance too far back",s.mode=30;break t}if(y>>>=C,_-=C,(C=f-c)<I){if(g<(C=I-C)&&s.sane){a.msg="invalid distance too far back",s.mode=30;break t}if(M=p,(A=0)===m){if(A+=v-C,C<D){for(D-=C;k[f++]=p[A++],--C;);A=f-I,M=k}}else if(m<C){if(A+=v+m-C,(C-=m)<D){for(D-=C;k[f++]=p[A++],--C;);if(A=0,m<D){for(D-=C=m;k[f++]=p[A++],--C;);A=f-I,M=k}}}else if(A+=m-C,C<D){for(D-=C;k[f++]=p[A++],--C;);A=f-I,M=k}for(;2<D;)k[f++]=M[A++],k[f++]=M[A++],k[f++]=M[A++],D-=3;D&&(k[f++]=M[A++],1<D&&(k[f++]=M[A++]))}else{for(A=f-I;k[f++]=k[A++],k[f++]=k[A++],k[f++]=k[A++],2<(D-=3););D&&(k[f++]=k[A++],1<D&&(k[f++]=k[A++]))}break}}break}}while(l<u&&f<d);l-=D=_>>3,y&=(1<<(_-=D<<3))-1,a.next_in=l,a.next_out=f,a.avail_in=l<u?u-l+5:5-(l-u),a.avail_out=f<d?d-f+257:257-(f-d),s.hold=y,s.bits=_}},{}],49:[function(r,n,i){var a=r("../utils/common"),o=r("./adler32"),s=r("./crc32"),l=r("./inffast"),u=r("./inftrees"),f=1,c=2,d=0,h=-2,v=1,g=852,m=592;function p(A){return(A>>>24&255)+(A>>>8&65280)+((65280&A)<<8)+((255&A)<<24)}function y(){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 a.Buf16(320),this.work=new a.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function _(A){var M;return A&&A.state?(M=A.state,A.total_in=A.total_out=M.total=0,A.msg="",M.wrap&&(A.adler=1&M.wrap),M.mode=v,M.last=0,M.havedict=0,M.dmax=32768,M.head=null,M.hold=0,M.bits=0,M.lencode=M.lendyn=new a.Buf32(g),M.distcode=M.distdyn=new a.Buf32(m),M.sane=1,M.back=-1,d):h}function b(A){var M;return A&&A.state?((M=A.state).wsize=0,M.whave=0,M.wnext=0,_(A)):h}function x(A,M){var T,k;return A&&A.state?(k=A.state,M<0?(T=0,M=-M):(T=1+(M>>4),M<48&&(M&=15)),M&&(M<8||15<M)?h:(k.window!==null&&k.wbits!==M&&(k.window=null),k.wrap=T,k.wbits=M,b(A))):h}function w(A,M){var T,k;return A?(k=new y,(A.state=k).window=null,(T=x(A,M))!==d&&(A.state=null),T):h}var S,L,C=!0;function D(A){if(C){var M;for(S=new a.Buf32(512),L=new a.Buf32(32),M=0;M<144;)A.lens[M++]=8;for(;M<256;)A.lens[M++]=9;for(;M<280;)A.lens[M++]=7;for(;M<288;)A.lens[M++]=8;for(u(f,A.lens,0,288,S,0,A.work,{bits:9}),M=0;M<32;)A.lens[M++]=5;u(c,A.lens,0,32,L,0,A.work,{bits:5}),C=!1}A.lencode=S,A.lenbits=9,A.distcode=L,A.distbits=5}function I(A,M,T,k){var R,z=A.state;return z.window===null&&(z.wsize=1<<z.wbits,z.wnext=0,z.whave=0,z.window=new a.Buf8(z.wsize)),k>=z.wsize?(a.arraySet(z.window,M,T-z.wsize,z.wsize,0),z.wnext=0,z.whave=z.wsize):(k<(R=z.wsize-z.wnext)&&(R=k),a.arraySet(z.window,M,T-k,R,z.wnext),(k-=R)?(a.arraySet(z.window,M,T-k,k,0),z.wnext=k,z.whave=z.wsize):(z.wnext+=R,z.wnext===z.wsize&&(z.wnext=0),z.whave<z.wsize&&(z.whave+=R))),0}i.inflateReset=b,i.inflateReset2=x,i.inflateResetKeep=_,i.inflateInit=function(A){return w(A,15)},i.inflateInit2=w,i.inflate=function(A,M){var T,k,R,z,H,V,Z,B,$,X,j,Q,bt,Et,ht,gt,St,at,mt,Rt,E,Y,W,N,P=0,G=new a.Buf8(4),K=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!A||!A.state||!A.output||!A.input&&A.avail_in!==0)return h;(T=A.state).mode===12&&(T.mode=13),H=A.next_out,R=A.output,Z=A.avail_out,z=A.next_in,k=A.input,V=A.avail_in,B=T.hold,$=T.bits,X=V,j=Z,Y=d;t:for(;;)switch(T.mode){case v:if(T.wrap===0){T.mode=13;break}for(;$<16;){if(V===0)break t;V--,B+=k[z++]<<$,$+=8}if(2&T.wrap&&B===35615){G[T.check=0]=255&B,G[1]=B>>>8&255,T.check=s(T.check,G,2,0),$=B=0,T.mode=2;break}if(T.flags=0,T.head&&(T.head.done=!1),!(1&T.wrap)||(((255&B)<<8)+(B>>8))%31){A.msg="incorrect header check",T.mode=30;break}if((15&B)!=8){A.msg="unknown compression method",T.mode=30;break}if($-=4,E=8+(15&(B>>>=4)),T.wbits===0)T.wbits=E;else if(E>T.wbits){A.msg="invalid window size",T.mode=30;break}T.dmax=1<<E,A.adler=T.check=1,T.mode=512&B?10:12,$=B=0;break;case 2:for(;$<16;){if(V===0)break t;V--,B+=k[z++]<<$,$+=8}if(T.flags=B,(255&T.flags)!=8){A.msg="unknown compression method",T.mode=30;break}if(57344&T.flags){A.msg="unknown header flags set",T.mode=30;break}T.head&&(T.head.text=B>>8&1),512&T.flags&&(G[0]=255&B,G[1]=B>>>8&255,T.check=s(T.check,G,2,0)),$=B=0,T.mode=3;case 3:for(;$<32;){if(V===0)break t;V--,B+=k[z++]<<$,$+=8}T.head&&(T.head.time=B),512&T.flags&&(G[0]=255&B,G[1]=B>>>8&255,G[2]=B>>>16&255,G[3]=B>>>24&255,T.check=s(T.check,G,4,0)),$=B=0,T.mode=4;case 4:for(;$<16;){if(V===0)break t;V--,B+=k[z++]<<$,$+=8}T.head&&(T.head.xflags=255&B,T.head.os=B>>8),512&T.flags&&(G[0]=255&B,G[1]=B>>>8&255,T.check=s(T.check,G,2,0)),$=B=0,T.mode=5;case 5:if(1024&T.flags){for(;$<16;){if(V===0)break t;V--,B+=k[z++]<<$,$+=8}T.length=B,T.head&&(T.head.extra_len=B),512&T.flags&&(G[0]=255&B,G[1]=B>>>8&255,T.check=s(T.check,G,2,0)),$=B=0}else T.head&&(T.head.extra=null);T.mode=6;case 6:if(1024&T.flags&&(V<(Q=T.length)&&(Q=V),Q&&(T.head&&(E=T.head.extra_len-T.length,T.head.extra||(T.head.extra=new Array(T.head.extra_len)),a.arraySet(T.head.extra,k,z,Q,E)),512&T.flags&&(T.check=s(T.check,k,Q,z)),V-=Q,z+=Q,T.length-=Q),T.length))break t;T.length=0,T.mode=7;case 7:if(2048&T.flags){if(V===0)break t;for(Q=0;E=k[z+Q++],T.head&&E&&T.length<65536&&(T.head.name+=String.fromCharCode(E)),E&&Q<V;);if(512&T.flags&&(T.check=s(T.check,k,Q,z)),V-=Q,z+=Q,E)break t}else T.head&&(T.head.name=null);T.length=0,T.mode=8;case 8:if(4096&T.flags){if(V===0)break t;for(Q=0;E=k[z+Q++],T.head&&E&&T.length<65536&&(T.head.comment+=String.fromCharCode(E)),E&&Q<V;);if(512&T.flags&&(T.check=s(T.check,k,Q,z)),V-=Q,z+=Q,E)break t}else T.head&&(T.head.comment=null);T.mode=9;case 9:if(512&T.flags){for(;$<16;){if(V===0)break t;V--,B+=k[z++]<<$,$+=8}if(B!==(65535&T.check)){A.msg="header crc mismatch",T.mode=30;break}$=B=0}T.head&&(T.head.hcrc=T.flags>>9&1,T.head.done=!0),A.adler=T.check=0,T.mode=12;break;case 10:for(;$<32;){if(V===0)break t;V--,B+=k[z++]<<$,$+=8}A.adler=T.check=p(B),$=B=0,T.mode=11;case 11:if(T.havedict===0)return A.next_out=H,A.avail_out=Z,A.next_in=z,A.avail_in=V,T.hold=B,T.bits=$,2;A.adler=T.check=1,T.mode=12;case 12:if(M===5||M===6)break t;case 13:if(T.last){B>>>=7&$,$-=7&$,T.mode=27;break}for(;$<3;){if(V===0)break t;V--,B+=k[z++]<<$,$+=8}switch(T.last=1&B,$-=1,3&(B>>>=1)){case 0:T.mode=14;break;case 1:if(D(T),T.mode=20,M!==6)break;B>>>=2,$-=2;break t;case 2:T.mode=17;break;case 3:A.msg="invalid block type",T.mode=30}B>>>=2,$-=2;break;case 14:for(B>>>=7&$,$-=7&$;$<32;){if(V===0)break t;V--,B+=k[z++]<<$,$+=8}if((65535&B)!=(B>>>16^65535)){A.msg="invalid stored block lengths",T.mode=30;break}if(T.length=65535&B,$=B=0,T.mode=15,M===6)break t;case 15:T.mode=16;case 16:if(Q=T.length){if(V<Q&&(Q=V),Z<Q&&(Q=Z),Q===0)break t;a.arraySet(R,k,z,Q,H),V-=Q,z+=Q,Z-=Q,H+=Q,T.length-=Q;break}T.mode=12;break;case 17:for(;$<14;){if(V===0)break t;V--,B+=k[z++]<<$,$+=8}if(T.nlen=257+(31&B),B>>>=5,$-=5,T.ndist=1+(31&B),B>>>=5,$-=5,T.ncode=4+(15&B),B>>>=4,$-=4,286<T.nlen||30<T.ndist){A.msg="too many length or distance symbols",T.mode=30;break}T.have=0,T.mode=18;case 18:for(;T.have<T.ncode;){for(;$<3;){if(V===0)break t;V--,B+=k[z++]<<$,$+=8}T.lens[K[T.have++]]=7&B,B>>>=3,$-=3}for(;T.have<19;)T.lens[K[T.have++]]=0;if(T.lencode=T.lendyn,T.lenbits=7,W={bits:T.lenbits},Y=u(0,T.lens,0,19,T.lencode,0,T.work,W),T.lenbits=W.bits,Y){A.msg="invalid code lengths set",T.mode=30;break}T.have=0,T.mode=19;case 19:for(;T.have<T.nlen+T.ndist;){for(;gt=(P=T.lencode[B&(1<<T.lenbits)-1])>>>16&255,St=65535&P,!((ht=P>>>24)<=$);){if(V===0)break t;V--,B+=k[z++]<<$,$+=8}if(St<16)B>>>=ht,$-=ht,T.lens[T.have++]=St;else{if(St===16){for(N=ht+2;$<N;){if(V===0)break t;V--,B+=k[z++]<<$,$+=8}if(B>>>=ht,$-=ht,T.have===0){A.msg="invalid bit length repeat",T.mode=30;break}E=T.lens[T.have-1],Q=3+(3&B),B>>>=2,$-=2}else if(St===17){for(N=ht+3;$<N;){if(V===0)break t;V--,B+=k[z++]<<$,$+=8}$-=ht,E=0,Q=3+(7&(B>>>=ht)),B>>>=3,$-=3}else{for(N=ht+7;$<N;){if(V===0)break t;V--,B+=k[z++]<<$,$+=8}$-=ht,E=0,Q=11+(127&(B>>>=ht)),B>>>=7,$-=7}if(T.have+Q>T.nlen+T.ndist){A.msg="invalid bit length repeat",T.mode=30;break}for(;Q--;)T.lens[T.have++]=E}}if(T.mode===30)break;if(T.lens[256]===0){A.msg="invalid code -- missing end-of-block",T.mode=30;break}if(T.lenbits=9,W={bits:T.lenbits},Y=u(f,T.lens,0,T.nlen,T.lencode,0,T.work,W),T.lenbits=W.bits,Y){A.msg="invalid literal/lengths set",T.mode=30;break}if(T.distbits=6,T.distcode=T.distdyn,W={bits:T.distbits},Y=u(c,T.lens,T.nlen,T.ndist,T.distcode,0,T.work,W),T.distbits=W.bits,Y){A.msg="invalid distances set",T.mode=30;break}if(T.mode=20,M===6)break t;case 20:T.mode=21;case 21:if(6<=V&&258<=Z){A.next_out=H,A.avail_out=Z,A.next_in=z,A.avail_in=V,T.hold=B,T.bits=$,l(A,j),H=A.next_out,R=A.output,Z=A.avail_out,z=A.next_in,k=A.input,V=A.avail_in,B=T.hold,$=T.bits,T.mode===12&&(T.back=-1);break}for(T.back=0;gt=(P=T.lencode[B&(1<<T.lenbits)-1])>>>16&255,St=65535&P,!((ht=P>>>24)<=$);){if(V===0)break t;V--,B+=k[z++]<<$,$+=8}if(gt&&(240>)==0){for(at=ht,mt=gt,Rt=St;gt=(P=T.lencode[Rt+((B&(1<<at+mt)-1)>>at)])>>>16&255,St=65535&P,!(at+(ht=P>>>24)<=$);){if(V===0)break t;V--,B+=k[z++]<<$,$+=8}B>>>=at,$-=at,T.back+=at}if(B>>>=ht,$-=ht,T.back+=ht,T.length=St,gt===0){T.mode=26;break}if(32>){T.back=-1,T.mode=12;break}if(64>){A.msg="invalid literal/length code",T.mode=30;break}T.extra=15>,T.mode=22;case 22:if(T.extra){for(N=T.extra;$<N;){if(V===0)break t;V--,B+=k[z++]<<$,$+=8}T.length+=B&(1<<T.extra)-1,B>>>=T.extra,$-=T.extra,T.back+=T.extra}T.was=T.length,T.mode=23;case 23:for(;gt=(P=T.distcode[B&(1<<T.distbits)-1])>>>16&255,St=65535&P,!((ht=P>>>24)<=$);){if(V===0)break t;V--,B+=k[z++]<<$,$+=8}if((240>)==0){for(at=ht,mt=gt,Rt=St;gt=(P=T.distcode[Rt+((B&(1<<at+mt)-1)>>at)])>>>16&255,St=65535&P,!(at+(ht=P>>>24)<=$);){if(V===0)break t;V--,B+=k[z++]<<$,$+=8}B>>>=at,$-=at,T.back+=at}if(B>>>=ht,$-=ht,T.back+=ht,64>){A.msg="invalid distance code",T.mode=30;break}T.offset=St,T.extra=15>,T.mode=24;case 24:if(T.extra){for(N=T.extra;$<N;){if(V===0)break t;V--,B+=k[z++]<<$,$+=8}T.offset+=B&(1<<T.extra)-1,B>>>=T.extra,$-=T.extra,T.back+=T.extra}if(T.offset>T.dmax){A.msg="invalid distance too far back",T.mode=30;break}T.mode=25;case 25:if(Z===0)break t;if(Q=j-Z,T.offset>Q){if((Q=T.offset-Q)>T.whave&&T.sane){A.msg="invalid distance too far back",T.mode=30;break}bt=Q>T.wnext?(Q-=T.wnext,T.wsize-Q):T.wnext-Q,Q>T.length&&(Q=T.length),Et=T.window}else Et=R,bt=H-T.offset,Q=T.length;for(Z<Q&&(Q=Z),Z-=Q,T.length-=Q;R[H++]=Et[bt++],--Q;);T.length===0&&(T.mode=21);break;case 26:if(Z===0)break t;R[H++]=T.length,Z--,T.mode=21;break;case 27:if(T.wrap){for(;$<32;){if(V===0)break t;V--,B|=k[z++]<<$,$+=8}if(j-=Z,A.total_out+=j,T.total+=j,j&&(A.adler=T.check=T.flags?s(T.check,R,j,H-j):o(T.check,R,j,H-j)),j=Z,(T.flags?B:p(B))!==T.check){A.msg="incorrect data check",T.mode=30;break}$=B=0}T.mode=28;case 28:if(T.wrap&&T.flags){for(;$<32;){if(V===0)break t;V--,B+=k[z++]<<$,$+=8}if(B!==(4294967295&T.total)){A.msg="incorrect length check",T.mode=30;break}$=B=0}T.mode=29;case 29:Y=1;break t;case 30:Y=-3;break t;case 31:return-4;case 32:default:return h}return A.next_out=H,A.avail_out=Z,A.next_in=z,A.avail_in=V,T.hold=B,T.bits=$,(T.wsize||j!==A.avail_out&&T.mode<30&&(T.mode<27||M!==4))&&I(A,A.output,A.next_out,j-A.avail_out)?(T.mode=31,-4):(X-=A.avail_in,j-=A.avail_out,A.total_in+=X,A.total_out+=j,T.total+=j,T.wrap&&j&&(A.adler=T.check=T.flags?s(T.check,R,j,A.next_out-j):o(T.check,R,j,A.next_out-j)),A.data_type=T.bits+(T.last?64:0)+(T.mode===12?128:0)+(T.mode===20||T.mode===15?256:0),(X==0&&j===0||M===4)&&Y===d&&(Y=-5),Y)},i.inflateEnd=function(A){if(!A||!A.state)return h;var M=A.state;return M.window&&(M.window=null),A.state=null,d},i.inflateGetHeader=function(A,M){var T;return A&&A.state?(2&(T=A.state).wrap)==0?h:((T.head=M).done=!1,d):h},i.inflateSetDictionary=function(A,M){var T,k=M.length;return A&&A.state?(T=A.state).wrap!==0&&T.mode!==11?h:T.mode===11&&o(1,M,k,0)!==T.check?-3:I(A,M,k,k)?(T.mode=31,-4):(T.havedict=1,d):h},i.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(r,n,i){var a=r("../utils/common"),o=[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],s=[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],l=[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],u=[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];n.exports=function(f,c,d,h,v,g,m,p){var y,_,b,x,w,S,L,C,D,I=p.bits,A=0,M=0,T=0,k=0,R=0,z=0,H=0,V=0,Z=0,B=0,$=null,X=0,j=new a.Buf16(16),Q=new a.Buf16(16),bt=null,Et=0;for(A=0;A<=15;A++)j[A]=0;for(M=0;M<h;M++)j[c[d+M]]++;for(R=I,k=15;1<=k&&j[k]===0;k--);if(k<R&&(R=k),k===0)return v[g++]=20971520,v[g++]=20971520,p.bits=1,0;for(T=1;T<k&&j[T]===0;T++);for(R<T&&(R=T),A=V=1;A<=15;A++)if(V<<=1,(V-=j[A])<0)return-1;if(0<V&&(f===0||k!==1))return-1;for(Q[1]=0,A=1;A<15;A++)Q[A+1]=Q[A]+j[A];for(M=0;M<h;M++)c[d+M]!==0&&(m[Q[c[d+M]]++]=M);if(S=f===0?($=bt=m,19):f===1?($=o,X-=257,bt=s,Et-=257,256):($=l,bt=u,-1),A=T,w=g,H=M=B=0,b=-1,x=(Z=1<<(z=R))-1,f===1&&852<Z||f===2&&592<Z)return 1;for(;;){for(L=A-H,D=m[M]<S?(C=0,m[M]):m[M]>S?(C=bt[Et+m[M]],$[X+m[M]]):(C=96,0),y=1<<A-H,T=_=1<<z;v[w+(B>>H)+(_-=y)]=L<<24|C<<16|D|0,_!==0;);for(y=1<<A-1;B&y;)y>>=1;if(y!==0?(B&=y-1,B+=y):B=0,M++,--j[A]==0){if(A===k)break;A=c[d+m[M]]}if(R<A&&(B&x)!==b){for(H===0&&(H=R),w+=T,V=1<<(z=A-H);z+H<k&&!((V-=j[z+H])<=0);)z++,V<<=1;if(Z+=1<<z,f===1&&852<Z||f===2&&592<Z)return 1;v[b=B&x]=R<<24|z<<16|w-g|0}}return B!==0&&(v[w+B]=A-H<<24|64<<16|0),p.bits=R,0}},{"../utils/common":41}],51:[function(r,n,i){n.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(r,n,i){var a=r("../utils/common"),o=0,s=1;function l(P){for(var G=P.length;0<=--G;)P[G]=0}var u=0,f=29,c=256,d=c+1+f,h=30,v=19,g=2*d+1,m=15,p=16,y=7,_=256,b=16,x=17,w=18,S=[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],L=[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],C=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],D=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],I=new Array(2*(d+2));l(I);var A=new Array(2*h);l(A);var M=new Array(512);l(M);var T=new Array(256);l(T);var k=new Array(f);l(k);var R,z,H,V=new Array(h);function Z(P,G,K,J,U){this.static_tree=P,this.extra_bits=G,this.extra_base=K,this.elems=J,this.max_length=U,this.has_stree=P&&P.length}function B(P,G){this.dyn_tree=P,this.max_code=0,this.stat_desc=G}function $(P){return P<256?M[P]:M[256+(P>>>7)]}function X(P,G){P.pending_buf[P.pending++]=255&G,P.pending_buf[P.pending++]=G>>>8&255}function j(P,G,K){P.bi_valid>p-K?(P.bi_buf|=G<<P.bi_valid&65535,X(P,P.bi_buf),P.bi_buf=G>>p-P.bi_valid,P.bi_valid+=K-p):(P.bi_buf|=G<<P.bi_valid&65535,P.bi_valid+=K)}function Q(P,G,K){j(P,K[2*G],K[2*G+1])}function bt(P,G){for(var K=0;K|=1&P,P>>>=1,K<<=1,0<--G;);return K>>>1}function Et(P,G,K){var J,U,rt=new Array(m+1),lt=0;for(J=1;J<=m;J++)rt[J]=lt=lt+K[J-1]<<1;for(U=0;U<=G;U++){var nt=P[2*U+1];nt!==0&&(P[2*U]=bt(rt[nt]++,nt))}}function ht(P){var G;for(G=0;G<d;G++)P.dyn_ltree[2*G]=0;for(G=0;G<h;G++)P.dyn_dtree[2*G]=0;for(G=0;G<v;G++)P.bl_tree[2*G]=0;P.dyn_ltree[2*_]=1,P.opt_len=P.static_len=0,P.last_lit=P.matches=0}function gt(P){8<P.bi_valid?X(P,P.bi_buf):0<P.bi_valid&&(P.pending_buf[P.pending++]=P.bi_buf),P.bi_buf=0,P.bi_valid=0}function St(P,G,K,J){var U=2*G,rt=2*K;return P[U]<P[rt]||P[U]===P[rt]&&J[G]<=J[K]}function at(P,G,K){for(var J=P.heap[K],U=K<<1;U<=P.heap_len&&(U<P.heap_len&&St(G,P.heap[U+1],P.heap[U],P.depth)&&U++,!St(G,J,P.heap[U],P.depth));)P.heap[K]=P.heap[U],K=U,U<<=1;P.heap[K]=J}function mt(P,G,K){var J,U,rt,lt,nt=0;if(P.last_lit!==0)for(;J=P.pending_buf[P.d_buf+2*nt]<<8|P.pending_buf[P.d_buf+2*nt+1],U=P.pending_buf[P.l_buf+nt],nt++,J===0?Q(P,U,G):(Q(P,(rt=T[U])+c+1,G),(lt=S[rt])!==0&&j(P,U-=k[rt],lt),Q(P,rt=$(--J),K),(lt=L[rt])!==0&&j(P,J-=V[rt],lt)),nt<P.last_lit;);Q(P,_,G)}function Rt(P,G){var K,J,U,rt=G.dyn_tree,lt=G.stat_desc.static_tree,nt=G.stat_desc.has_stree,yt=G.stat_desc.elems,Ut=-1;for(P.heap_len=0,P.heap_max=g,K=0;K<yt;K++)rt[2*K]!==0?(P.heap[++P.heap_len]=Ut=K,P.depth[K]=0):rt[2*K+1]=0;for(;P.heap_len<2;)rt[2*(U=P.heap[++P.heap_len]=Ut<2?++Ut:0)]=1,P.depth[U]=0,P.opt_len--,nt&&(P.static_len-=lt[2*U+1]);for(G.max_code=Ut,K=P.heap_len>>1;1<=K;K--)at(P,rt,K);for(U=yt;K=P.heap[1],P.heap[1]=P.heap[P.heap_len--],at(P,rt,1),J=P.heap[1],P.heap[--P.heap_max]=K,P.heap[--P.heap_max]=J,rt[2*U]=rt[2*K]+rt[2*J],P.depth[U]=(P.depth[K]>=P.depth[J]?P.depth[K]:P.depth[J])+1,rt[2*K+1]=rt[2*J+1]=U,P.heap[1]=U++,at(P,rt,1),2<=P.heap_len;);P.heap[--P.heap_max]=P.heap[1],(function(Dt,Ke){var $o,Er,Oo,te,vu,av,Yr=Ke.dyn_tree,SS=Ke.max_code,t$=Ke.stat_desc.static_tree,e$=Ke.stat_desc.has_stree,r$=Ke.stat_desc.extra_bits,xS=Ke.stat_desc.extra_base,Ro=Ke.stat_desc.max_length,pu=0;for(te=0;te<=m;te++)Dt.bl_count[te]=0;for(Yr[2*Dt.heap[Dt.heap_max]+1]=0,$o=Dt.heap_max+1;$o<g;$o++)Ro<(te=Yr[2*Yr[2*(Er=Dt.heap[$o])+1]+1]+1)&&(te=Ro,pu++),Yr[2*Er+1]=te,SS<Er||(Dt.bl_count[te]++,vu=0,xS<=Er&&(vu=r$[Er-xS]),av=Yr[2*Er],Dt.opt_len+=av*(te+vu),e$&&(Dt.static_len+=av*(t$[2*Er+1]+vu)));if(pu!==0){do{for(te=Ro-1;Dt.bl_count[te]===0;)te--;Dt.bl_count[te]--,Dt.bl_count[te+1]+=2,Dt.bl_count[Ro]--,pu-=2}while(0<pu);for(te=Ro;te!==0;te--)for(Er=Dt.bl_count[te];Er!==0;)SS<(Oo=Dt.heap[--$o])||(Yr[2*Oo+1]!==te&&(Dt.opt_len+=(te-Yr[2*Oo+1])*Yr[2*Oo],Yr[2*Oo+1]=te),Er--)}})(P,G),Et(rt,Ut,P.bl_count)}function E(P,G,K){var J,U,rt=-1,lt=G[1],nt=0,yt=7,Ut=4;for(lt===0&&(yt=138,Ut=3),G[2*(K+1)+1]=65535,J=0;J<=K;J++)U=lt,lt=G[2*(J+1)+1],++nt<yt&&U===lt||(nt<Ut?P.bl_tree[2*U]+=nt:U!==0?(U!==rt&&P.bl_tree[2*U]++,P.bl_tree[2*b]++):nt<=10?P.bl_tree[2*x]++:P.bl_tree[2*w]++,rt=U,Ut=(nt=0)===lt?(yt=138,3):U===lt?(yt=6,3):(yt=7,4))}function Y(P,G,K){var J,U,rt=-1,lt=G[1],nt=0,yt=7,Ut=4;for(lt===0&&(yt=138,Ut=3),J=0;J<=K;J++)if(U=lt,lt=G[2*(J+1)+1],!(++nt<yt&&U===lt)){if(nt<Ut)for(;Q(P,U,P.bl_tree),--nt!=0;);else U!==0?(U!==rt&&(Q(P,U,P.bl_tree),nt--),Q(P,b,P.bl_tree),j(P,nt-3,2)):nt<=10?(Q(P,x,P.bl_tree),j(P,nt-3,3)):(Q(P,w,P.bl_tree),j(P,nt-11,7));rt=U,Ut=(nt=0)===lt?(yt=138,3):U===lt?(yt=6,3):(yt=7,4)}}l(V);var W=!1;function N(P,G,K,J){j(P,(u<<1)+(J?1:0),3),(function(U,rt,lt,nt){gt(U),X(U,lt),X(U,~lt),a.arraySet(U.pending_buf,U.window,rt,lt,U.pending),U.pending+=lt})(P,G,K)}i._tr_init=function(P){W||((function(){var G,K,J,U,rt,lt=new Array(m+1);for(U=J=0;U<f-1;U++)for(k[U]=J,G=0;G<1<<S[U];G++)T[J++]=U;for(T[J-1]=U,U=rt=0;U<16;U++)for(V[U]=rt,G=0;G<1<<L[U];G++)M[rt++]=U;for(rt>>=7;U<h;U++)for(V[U]=rt<<7,G=0;G<1<<L[U]-7;G++)M[256+rt++]=U;for(K=0;K<=m;K++)lt[K]=0;for(G=0;G<=143;)I[2*G+1]=8,G++,lt[8]++;for(;G<=255;)I[2*G+1]=9,G++,lt[9]++;for(;G<=279;)I[2*G+1]=7,G++,lt[7]++;for(;G<=287;)I[2*G+1]=8,G++,lt[8]++;for(Et(I,d+1,lt),G=0;G<h;G++)A[2*G+1]=5,A[2*G]=bt(G,5);R=new Z(I,S,c+1,d,m),z=new Z(A,L,0,h,m),H=new Z(new Array(0),C,0,v,y)})(),W=!0),P.l_desc=new B(P.dyn_ltree,R),P.d_desc=new B(P.dyn_dtree,z),P.bl_desc=new B(P.bl_tree,H),P.bi_buf=0,P.bi_valid=0,ht(P)},i._tr_stored_block=N,i._tr_flush_block=function(P,G,K,J){var U,rt,lt=0;0<P.level?(P.strm.data_type===2&&(P.strm.data_type=(function(nt){var yt,Ut=4093624447;for(yt=0;yt<=31;yt++,Ut>>>=1)if(1&Ut&&nt.dyn_ltree[2*yt]!==0)return o;if(nt.dyn_ltree[18]!==0||nt.dyn_ltree[20]!==0||nt.dyn_ltree[26]!==0)return s;for(yt=32;yt<c;yt++)if(nt.dyn_ltree[2*yt]!==0)return s;return o})(P)),Rt(P,P.l_desc),Rt(P,P.d_desc),lt=(function(nt){var yt;for(E(nt,nt.dyn_ltree,nt.l_desc.max_code),E(nt,nt.dyn_dtree,nt.d_desc.max_code),Rt(nt,nt.bl_desc),yt=v-1;3<=yt&&nt.bl_tree[2*D[yt]+1]===0;yt--);return nt.opt_len+=3*(yt+1)+5+5+4,yt})(P),U=P.opt_len+3+7>>>3,(rt=P.static_len+3+7>>>3)<=U&&(U=rt)):U=rt=K+5,K+4<=U&&G!==-1?N(P,G,K,J):P.strategy===4||rt===U?(j(P,2+(J?1:0),3),mt(P,I,A)):(j(P,4+(J?1:0),3),(function(nt,yt,Ut,Dt){var Ke;for(j(nt,yt-257,5),j(nt,Ut-1,5),j(nt,Dt-4,4),Ke=0;Ke<Dt;Ke++)j(nt,nt.bl_tree[2*D[Ke]+1],3);Y(nt,nt.dyn_ltree,yt-1),Y(nt,nt.dyn_dtree,Ut-1)})(P,P.l_desc.max_code+1,P.d_desc.max_code+1,lt+1),mt(P,P.dyn_ltree,P.dyn_dtree)),ht(P),J&>(P)},i._tr_tally=function(P,G,K){return P.pending_buf[P.d_buf+2*P.last_lit]=G>>>8&255,P.pending_buf[P.d_buf+2*P.last_lit+1]=255&G,P.pending_buf[P.l_buf+P.last_lit]=255&K,P.last_lit++,G===0?P.dyn_ltree[2*K]++:(P.matches++,G--,P.dyn_ltree[2*(T[K]+c+1)]++,P.dyn_dtree[2*$(G)]++),P.last_lit===P.lit_bufsize-1},i._tr_align=function(P){j(P,2,3),Q(P,_,I),(function(G){G.bi_valid===16?(X(G,G.bi_buf),G.bi_buf=0,G.bi_valid=0):8<=G.bi_valid&&(G.pending_buf[G.pending++]=255&G.bi_buf,G.bi_buf>>=8,G.bi_valid-=8)})(P)}},{"../utils/common":41}],53:[function(r,n,i){n.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(r,n,i){(function(a){(function(o,s){if(!o.setImmediate){var l,u,f,c,d=1,h={},v=!1,g=o.document,m=Object.getPrototypeOf&&Object.getPrototypeOf(o);m=m&&m.setTimeout?m:o,l={}.toString.call(o.process)==="[object process]"?function(b){process.nextTick(function(){y(b)})}:(function(){if(o.postMessage&&!o.importScripts){var b=!0,x=o.onmessage;return o.onmessage=function(){b=!1},o.postMessage("","*"),o.onmessage=x,b}})()?(c="setImmediate$"+Math.random()+"$",o.addEventListener?o.addEventListener("message",_,!1):o.attachEvent("onmessage",_),function(b){o.postMessage(c+b,"*")}):o.MessageChannel?((f=new MessageChannel).port1.onmessage=function(b){y(b.data)},function(b){f.port2.postMessage(b)}):g&&"onreadystatechange"in g.createElement("script")?(u=g.documentElement,function(b){var x=g.createElement("script");x.onreadystatechange=function(){y(b),x.onreadystatechange=null,u.removeChild(x),x=null},u.appendChild(x)}):function(b){setTimeout(y,0,b)},m.setImmediate=function(b){typeof b!="function"&&(b=new Function(""+b));for(var x=new Array(arguments.length-1),w=0;w<x.length;w++)x[w]=arguments[w+1];var S={callback:b,args:x};return h[d]=S,l(d),d++},m.clearImmediate=p}function p(b){delete h[b]}function y(b){if(v)setTimeout(y,0,b);else{var x=h[b];if(x){v=!0;try{(function(w){var S=w.callback,L=w.args;switch(L.length){case 0:S();break;case 1:S(L[0]);break;case 2:S(L[0],L[1]);break;case 3:S(L[0],L[1],L[2]);break;default:S.apply(s,L)}})(x)}finally{p(b),v=!1}}}}function _(b){b.source===o&&typeof b.data=="string"&&b.data.indexOf(c)===0&&y(+b.data.slice(c.length))}})(typeof self>"u"?a===void 0?this:a:self)}).call(this,typeof Bo<"u"?Bo:typeof self<"u"?self:typeof window<"u"?window:{})},{}]},{},[10])(10)})})(gu)),gu.exports}var AS=CS();const ES=TS(AS);var mu={},yu={},sv;function zo(){return sv||(sv=1,(function(e){const t=":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",r=t+"\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040",n="["+t+"]["+r+"]*",i=new RegExp("^"+n+"$"),a=function(u,f){const c=[];let d=f.exec(u);for(;d;){const h=[];h.startIndex=f.lastIndex-d[0].length;const v=d.length;for(let g=0;g<v;g++)h.push(d[g]);c.push(h),d=f.exec(u)}return c},o=function(u){const f=i.exec(u);return!(f===null||typeof f>"u")};e.isExist=function(u){return typeof u<"u"},e.isEmptyObject=function(u){return Object.keys(u).length===0},e.merge=function(u,f,c){if(f){const d=Object.keys(f),h=d.length;for(let v=0;v<h;v++)c==="strict"?u[d[v]]=[f[d[v]]]:u[d[v]]=f[d[v]]}},e.getValue=function(u){return e.isExist(u)?u:""};const s=["hasOwnProperty","toString","valueOf","__defineGetter__","__defineSetter__","__lookupGetter__","__lookupSetter__"],l=["__proto__","constructor","prototype"];e.isName=o,e.getAllMatches=a,e.nameRegexp=n,e.DANGEROUS_PROPERTY_NAMES=s,e.criticalProperties=l})(yu)),yu}var lv;function uv(){if(lv)return mu;lv=1;const e=zo(),t={allowBooleanAttributes:!1,unpairedTags:[]};mu.validate=function(p,y){y=Object.assign({},t,y);const _=[];let b=!1,x=!1;p[0]==="\uFEFF"&&(p=p.substr(1));for(let w=0;w<p.length;w++)if(p[w]==="<"&&p[w+1]==="?"){if(w+=2,w=n(p,w),w.err)return w}else if(p[w]==="<"){let S=w;if(w++,p[w]==="!"){w=i(p,w);continue}else{let L=!1;p[w]==="/"&&(L=!0,w++);let C="";for(;w<p.length&&p[w]!==">"&&p[w]!==" "&&p[w]!==" "&&p[w]!==`
|
|
13
|
+
`&&p[w]!=="\r";w++)C+=p[w];if(C=C.trim(),C[C.length-1]==="/"&&(C=C.substring(0,C.length-1),w--),!v(C)){let A;return C.trim().length===0?A="Invalid space after '<'.":A="Tag '"+C+"' is an invalid name.",d("InvalidTag",A,g(p,w))}const D=s(p,w);if(D===!1)return d("InvalidAttr","Attributes for '"+C+"' have open quote.",g(p,w));let I=D.value;if(w=D.index,I[I.length-1]==="/"){const A=w-I.length;I=I.substring(0,I.length-1);const M=u(I,y);if(M===!0)b=!0;else return d(M.err.code,M.err.msg,g(p,A+M.err.line))}else if(L)if(D.tagClosed){if(I.trim().length>0)return d("InvalidTag","Closing tag '"+C+"' can't have attributes or invalid starting.",g(p,S));if(_.length===0)return d("InvalidTag","Closing tag '"+C+"' has not been opened.",g(p,S));{const A=_.pop();if(C!==A.tagName){let M=g(p,A.tagStartPos);return d("InvalidTag","Expected closing tag '"+A.tagName+"' (opened in line "+M.line+", col "+M.col+") instead of closing tag '"+C+"'.",g(p,S))}_.length==0&&(x=!0)}}else return d("InvalidTag","Closing tag '"+C+"' doesn't have proper closing.",g(p,w));else{const A=u(I,y);if(A!==!0)return d(A.err.code,A.err.msg,g(p,w-I.length+A.err.line));if(x===!0)return d("InvalidXml","Multiple possible root nodes found.",g(p,w));y.unpairedTags.indexOf(C)!==-1||_.push({tagName:C,tagStartPos:S}),b=!0}for(w++;w<p.length;w++)if(p[w]==="<")if(p[w+1]==="!"){w++,w=i(p,w);continue}else if(p[w+1]==="?"){if(w=n(p,++w),w.err)return w}else break;else if(p[w]==="&"){const A=c(p,w);if(A==-1)return d("InvalidChar","char '&' is not expected.",g(p,w));w=A}else if(x===!0&&!r(p[w]))return d("InvalidXml","Extra text at the end",g(p,w));p[w]==="<"&&w--}}else{if(r(p[w]))continue;return d("InvalidChar","char '"+p[w]+"' is not expected.",g(p,w))}if(b){if(_.length==1)return d("InvalidTag","Unclosed tag '"+_[0].tagName+"'.",g(p,_[0].tagStartPos));if(_.length>0)return d("InvalidXml","Invalid '"+JSON.stringify(_.map(w=>w.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return d("InvalidXml","Start tag expected.",1);return!0};function r(p){return p===" "||p===" "||p===`
|
|
14
|
+
`||p==="\r"}function n(p,y){const _=y;for(;y<p.length;y++)if(p[y]=="?"||p[y]==" "){const b=p.substr(_,y-_);if(y>5&&b==="xml")return d("InvalidXml","XML declaration allowed only at the start of the document.",g(p,y));if(p[y]=="?"&&p[y+1]==">"){y++;break}else continue}return y}function i(p,y){if(p.length>y+5&&p[y+1]==="-"&&p[y+2]==="-"){for(y+=3;y<p.length;y++)if(p[y]==="-"&&p[y+1]==="-"&&p[y+2]===">"){y+=2;break}}else if(p.length>y+8&&p[y+1]==="D"&&p[y+2]==="O"&&p[y+3]==="C"&&p[y+4]==="T"&&p[y+5]==="Y"&&p[y+6]==="P"&&p[y+7]==="E"){let _=1;for(y+=8;y<p.length;y++)if(p[y]==="<")_++;else if(p[y]===">"&&(_--,_===0))break}else if(p.length>y+9&&p[y+1]==="["&&p[y+2]==="C"&&p[y+3]==="D"&&p[y+4]==="A"&&p[y+5]==="T"&&p[y+6]==="A"&&p[y+7]==="["){for(y+=8;y<p.length;y++)if(p[y]==="]"&&p[y+1]==="]"&&p[y+2]===">"){y+=2;break}}return y}const a='"',o="'";function s(p,y){let _="",b="",x=!1;for(;y<p.length;y++){if(p[y]===a||p[y]===o)b===""?b=p[y]:b!==p[y]||(b="");else if(p[y]===">"&&b===""){x=!0;break}_+=p[y]}return b!==""?!1:{value:_,index:y,tagClosed:x}}const l=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function u(p,y){const _=e.getAllMatches(p,l),b={};for(let x=0;x<_.length;x++){if(_[x][1].length===0)return d("InvalidAttr","Attribute '"+_[x][2]+"' has no space in starting.",m(_[x]));if(_[x][3]!==void 0&&_[x][4]===void 0)return d("InvalidAttr","Attribute '"+_[x][2]+"' is without value.",m(_[x]));if(_[x][3]===void 0&&!y.allowBooleanAttributes)return d("InvalidAttr","boolean attribute '"+_[x][2]+"' is not allowed.",m(_[x]));const w=_[x][2];if(!h(w))return d("InvalidAttr","Attribute '"+w+"' is an invalid name.",m(_[x]));if(!b.hasOwnProperty(w))b[w]=1;else return d("InvalidAttr","Attribute '"+w+"' is repeated.",m(_[x]))}return!0}function f(p,y){let _=/\d/;for(p[y]==="x"&&(y++,_=/[\da-fA-F]/);y<p.length;y++){if(p[y]===";")return y;if(!p[y].match(_))break}return-1}function c(p,y){if(y++,p[y]===";")return-1;if(p[y]==="#")return y++,f(p,y);let _=0;for(;y<p.length;y++,_++)if(!(p[y].match(/\w/)&&_<20)){if(p[y]===";")break;return-1}return y}function d(p,y,_){return{err:{code:p,msg:y,line:_.line||_,col:_.col}}}function h(p){return e.isName(p)}function v(p){return e.isName(p)}function g(p,y){const _=p.substring(0,y).split(/\r?\n/);return{line:_.length,col:_[_.length-1].length+1}}function m(p){return p.startIndex+p[1].length}return mu}var Vo={},fv;function LS(){if(fv)return Vo;fv=1;const{DANGEROUS_PROPERTY_NAMES:e,criticalProperties:t}=zo(),r=s=>e.includes(s)?"__"+s:s,n={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(s,l){return l},attributeValueProcessor:function(s,l){return l},stopNodes:[],alwaysCreateTextNode:!1,isArray:()=>!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function(s,l,u){return s},captureMetaData:!1,maxNestedTags:100,strictReservedNames:!0,onDangerousProperty:r};function i(s,l){if(typeof s!="string")return;const u=s.toLowerCase();if(e.some(f=>u===f.toLowerCase()))throw new Error(`[SECURITY] Invalid ${l}: "${s}" is a reserved JavaScript keyword that could cause prototype pollution`);if(t.some(f=>u===f.toLowerCase()))throw new Error(`[SECURITY] Invalid ${l}: "${s}" is a reserved JavaScript keyword that could cause prototype pollution`)}function a(s){return typeof s=="boolean"?{enabled:s,maxEntitySize:1e4,maxExpansionDepth:10,maxTotalExpansions:1e3,maxExpandedLength:1e5,allowedTags:null,tagFilter:null}:typeof s=="object"&&s!==null?{enabled:s.enabled!==!1,maxEntitySize:Math.max(1,s.maxEntitySize??1e4),maxExpansionDepth:Math.max(1,s.maxExpansionDepth??10),maxTotalExpansions:Math.max(1,s.maxTotalExpansions??1e3),maxExpandedLength:Math.max(1,s.maxExpandedLength??1e5),maxEntityCount:Math.max(1,s.maxEntityCount??100),allowedTags:s.allowedTags??null,tagFilter:s.tagFilter??null}:a(!0)}const o=function(s){const l=Object.assign({},n,s),u=[{value:l.attributeNamePrefix,name:"attributeNamePrefix"},{value:l.attributesGroupName,name:"attributesGroupName"},{value:l.textNodeName,name:"textNodeName"},{value:l.cdataPropName,name:"cdataPropName"},{value:l.commentPropName,name:"commentPropName"}];for(const{value:f,name:c}of u)f&&i(f,c);return l.onDangerousProperty===null&&(l.onDangerousProperty=r),l.processEntities=a(l.processEntities),l};return Vo.buildOptions=o,Vo.defaultOptions=n,Vo}var _u,cv;function MS(){if(cv)return _u;cv=1;class e{constructor(r){this.tagname=r,this.child=[],this[":@"]={}}add(r,n){r==="__proto__"&&(r="#__proto__"),this.child.push({[r]:n})}addChild(r){r.tagname==="__proto__"&&(r.tagname="#__proto__"),r[":@"]&&Object.keys(r[":@"]).length>0?this.child.push({[r.tagname]:r.child,":@":r[":@"]}):this.child.push({[r.tagname]:r.child})}}return _u=e,_u}var bu,hv;function DS(){if(hv)return bu;hv=1;const e=zo();class t{constructor(o){this.suppressValidationErr=!o,this.options=o||{}}readDocType(o,s){const l=Object.create(null);let u=0;if(o[s+3]==="O"&&o[s+4]==="C"&&o[s+5]==="T"&&o[s+6]==="Y"&&o[s+7]==="P"&&o[s+8]==="E"){s=s+9;let f=1,c=!1,d=!1,h="";for(;s<o.length;s++)if(o[s]==="<"&&!d){if(c&&n(o,"!ENTITY",s)){s+=7;let v,g;if([v,g,s]=this.readEntityExp(o,s+1,this.suppressValidationErr),g.indexOf("&")===-1){if(this.options.enabled!==!1&&this.options.maxEntityCount!=null&&u>=this.options.maxEntityCount)throw new Error(`Entity count (${u+1}) exceeds maximum allowed (${this.options.maxEntityCount})`);const m=v.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");l[v]={regx:RegExp(`&${m};`,"g"),val:g},u++}}else if(c&&n(o,"!ELEMENT",s)){s+=8;const{index:v}=this.readElementExp(o,s+1);s=v}else if(c&&n(o,"!ATTLIST",s))s+=8;else if(c&&n(o,"!NOTATION",s)){s+=9;const{index:v}=this.readNotationExp(o,s+1,this.suppressValidationErr);s=v}else if(n(o,"!--",s))d=!0;else throw new Error("Invalid DOCTYPE");f++,h=""}else if(o[s]===">"){if(d?o[s-1]==="-"&&o[s-2]==="-"&&(d=!1,f--):f--,f===0)break}else o[s]==="["?c=!0:h+=o[s];if(f!==0)throw new Error("Unclosed DOCTYPE")}else throw new Error("Invalid Tag instead of DOCTYPE");return{entities:l,i:s}}readEntityExp(o,s){s=r(o,s);let l="";for(;s<o.length&&!/\s/.test(o[s])&&o[s]!=='"'&&o[s]!=="'";)l+=o[s],s++;if(i(l),s=r(o,s),!this.suppressValidationErr){if(o.substring(s,s+6).toUpperCase()==="SYSTEM")throw new Error("External entities are not supported");if(o[s]==="%")throw new Error("Parameter entities are not supported")}let u="";if([s,u]=this.readIdentifierVal(o,s,"entity"),this.options.enabled!==!1&&this.options.maxEntitySize!=null&&u.length>this.options.maxEntitySize)throw new Error(`Entity "${l}" size (${u.length}) exceeds maximum allowed size (${this.options.maxEntitySize})`);return s--,[l,u,s]}readNotationExp(o,s){s=r(o,s);let l="";for(;s<o.length&&!/\s/.test(o[s]);)l+=o[s],s++;!this.suppressValidationErr&&i(l),s=r(o,s);const u=o.substring(s,s+6).toUpperCase();if(!this.suppressValidationErr&&u!=="SYSTEM"&&u!=="PUBLIC")throw new Error(`Expected SYSTEM or PUBLIC, found "${u}"`);s+=u.length,s=r(o,s);let f=null,c=null;if(u==="PUBLIC")[s,f]=this.readIdentifierVal(o,s,"publicIdentifier"),s=r(o,s),(o[s]==='"'||o[s]==="'")&&([s,c]=this.readIdentifierVal(o,s,"systemIdentifier"));else if(u==="SYSTEM"&&([s,c]=this.readIdentifierVal(o,s,"systemIdentifier"),!this.suppressValidationErr&&!c))throw new Error("Missing mandatory system identifier for SYSTEM notation");return{notationName:l,publicIdentifier:f,systemIdentifier:c,index:--s}}readIdentifierVal(o,s,l){let u="";const f=o[s];if(f!=='"'&&f!=="'")throw new Error(`Expected quoted string, found "${f}"`);for(s++;s<o.length&&o[s]!==f;)u+=o[s],s++;if(o[s]!==f)throw new Error(`Unterminated ${l} value`);return s++,[s,u]}readElementExp(o,s){s=r(o,s);let l="";for(;s<o.length&&!/\s/.test(o[s]);)l+=o[s],s++;if(!this.suppressValidationErr&&!e.isName(l))throw new Error(`Invalid element name: "${l}"`);s=r(o,s);let u="";if(o[s]==="E"&&n(o,"MPTY",s))s+=4;else if(o[s]==="A"&&n(o,"NY",s))s+=2;else if(o[s]==="("){for(s++;s<o.length&&o[s]!==")";)u+=o[s],s++;if(o[s]!==")")throw new Error("Unterminated content model")}else if(!this.suppressValidationErr)throw new Error(`Invalid Element Expression, found "${o[s]}"`);return{elementName:l,contentModel:u.trim(),index:s}}readAttlistExp(o,s){s=r(o,s);let l="";for(;s<o.length&&!/\s/.test(o[s]);)l+=o[s],s++;i(l),s=r(o,s);let u="";for(;s<o.length&&!/\s/.test(o[s]);)u+=o[s],s++;if(!i(u))throw new Error(`Invalid attribute name: "${u}"`);s=r(o,s);let f="";if(o.substring(s,s+8).toUpperCase()==="NOTATION"){if(f="NOTATION",s+=8,s=r(o,s),o[s]!=="(")throw new Error(`Expected '(', found "${o[s]}"`);s++;let d=[];for(;s<o.length&&o[s]!==")";){let h="";for(;s<o.length&&o[s]!=="|"&&o[s]!==")";)h+=o[s],s++;if(h=h.trim(),!i(h))throw new Error(`Invalid notation name: "${h}"`);d.push(h),o[s]==="|"&&(s++,s=r(o,s))}if(o[s]!==")")throw new Error("Unterminated list of notations");s++,f+=" ("+d.join("|")+")"}else{for(;s<o.length&&!/\s/.test(o[s]);)f+=o[s],s++;const d=["CDATA","ID","IDREF","IDREFS","ENTITY","ENTITIES","NMTOKEN","NMTOKENS"];if(!this.suppressValidationErr&&!d.includes(f.toUpperCase()))throw new Error(`Invalid attribute type: "${f}"`)}s=r(o,s);let c="";return o.substring(s,s+8).toUpperCase()==="#REQUIRED"?(c="#REQUIRED",s+=8):o.substring(s,s+7).toUpperCase()==="#IMPLIED"?(c="#IMPLIED",s+=7):[s,c]=this.readIdentifierVal(o,s,"ATTLIST"),{elementName:l,attributeName:u,attributeType:f,defaultValue:c,index:s}}}const r=(a,o)=>{for(;o<a.length&&/\s/.test(a[o]);)o++;return o};function n(a,o,s){for(let l=0;l<o.length;l++)if(o[l]!==a[s+l+1])return!1;return!0}function i(a){if(e.isName(a))return a;throw new Error(`Invalid entity name ${a}`)}return bu=t,bu}var Su,dv;function IS(){if(dv)return Su;dv=1;const e=/^[-+]?0x[a-fA-F0-9]+$/,t=/^([\-\+])?(0*)([0-9]*(\.[0-9]*)?)$/,r={hex:!0,leadingZeros:!0,decimalPoint:".",eNotation:!0};function n(o,s={}){if(s=Object.assign({},r,s),!o||typeof o!="string")return o;let l=o.trim();if(s.skipLike!==void 0&&s.skipLike.test(l))return o;if(o==="0")return 0;if(s.hex&&e.test(l))return a(l,16);if(l.search(/[eE]/)!==-1){const u=l.match(/^([-\+])?(0*)([0-9]*(\.[0-9]*)?[eE][-\+]?[0-9]+)$/);if(u){if(s.leadingZeros)l=(u[1]||"")+u[3];else if(!(u[2]==="0"&&u[3][0]==="."))return o;return s.eNotation?Number(l):o}else return o}else{const u=t.exec(l);if(u){const f=u[1],c=u[2];let d=i(u[3]);if(!s.leadingZeros&&c.length>0&&f&&l[2]!==".")return o;if(!s.leadingZeros&&c.length>0&&!f&&l[1]!==".")return o;if(s.leadingZeros&&c===o)return 0;{const h=Number(l),v=""+h;return v.search(/[eE]/)!==-1?s.eNotation?h:o:l.indexOf(".")!==-1?v==="0"&&d===""||v===d||f&&v==="-"+d?h:o:c?d===v||f+d===v?h:o:l===v||l===f+v?h:o}}else return o}}function i(o){return o&&o.indexOf(".")!==-1&&(o=o.replace(/0+$/,""),o==="."?o="0":o[0]==="."?o="0"+o:o[o.length-1]==="."&&(o=o.substr(0,o.length-1))),o}function a(o,s){if(parseInt)return parseInt(o,s);if(Number.parseInt)return Number.parseInt(o,s);if(window&&window.parseInt)return window.parseInt(o,s);throw new Error("parseInt, Number.parseInt, window.parseInt are not supported")}return Su=n,Su}var xu,vv;function pv(){if(vv)return xu;vv=1;function e(t){return typeof t=="function"?t:Array.isArray(t)?r=>{for(const n of t)if(typeof n=="string"&&r===n||n instanceof RegExp&&n.test(r))return!0}:()=>!1}return xu=e,xu}var wu,gv;function kS(){if(gv)return wu;gv=1;const e=zo(),t=MS(),r=DS(),n=IS(),i=pv();class a{constructor(L){if(this.options=L,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:"¢"},pound:{regex:/&(pound|#163);/g,val:"£"},yen:{regex:/&(yen|#165);/g,val:"¥"},euro:{regex:/&(euro|#8364);/g,val:"€"},copyright:{regex:/&(copy|#169);/g,val:"©"},reg:{regex:/&(reg|#174);/g,val:"®"},inr:{regex:/&(inr|#8377);/g,val:"₹"},num_dec:{regex:/&#([0-9]{1,7});/g,val:(C,D)=>x(D,10,"&#")},num_hex:{regex:/&#x([0-9a-fA-F]{1,6});/g,val:(C,D)=>x(D,16,"&#x")}},this.addExternalEntities=o,this.parseXml=c,this.parseTextData=s,this.resolveNameSpace=l,this.buildAttributesMap=f,this.isItStopNode=g,this.replaceEntitiesValue=h,this.readStopNodeData=_,this.saveTextToParentTag=v,this.addChild=d,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 C=0;C<this.options.stopNodes.length;C++){const D=this.options.stopNodes[C];typeof D=="string"&&(D.startsWith("*.")?this.stopNodesWildcard.add(D.substring(2)):this.stopNodesExact.add(D))}}}}function o(S){const L=Object.keys(S);for(let C=0;C<L.length;C++){const D=L[C],I=D.replace(/[.\-+*:]/g,"\\.");this.lastEntities[D]={regex:new RegExp("&"+I+";","g"),val:S[D]}}}function s(S,L,C,D,I,A,M){if(S!==void 0&&(this.options.trimValues&&!D&&(S=S.trim()),S.length>0)){M||(S=this.replaceEntitiesValue(S,L,C));const T=this.options.tagValueProcessor(L,S,C,I,A);return T==null?S:typeof T!=typeof S||T!==S?T:this.options.trimValues?b(S,this.options.parseTagValue,this.options.numberParseOptions):S.trim()===S?b(S,this.options.parseTagValue,this.options.numberParseOptions):S}}function l(S){if(this.options.removeNSPrefix){const L=S.split(":"),C=S.charAt(0)==="/"?"/":"";if(L[0]==="xmlns")return"";L.length===2&&(S=C+L[1])}return S}const u=new RegExp(`([^\\s=]+)\\s*(=\\s*(['"])([\\s\\S]*?)\\3)?`,"gm");function f(S,L,C){if(this.options.ignoreAttributes!==!0&&typeof S=="string"){const D=e.getAllMatches(S,u),I=D.length,A={};for(let M=0;M<I;M++){const T=this.resolveNameSpace(D[M][1]);if(this.ignoreAttributesFn(T,L))continue;let k=D[M][4],R=this.options.attributeNamePrefix+T;if(T.length)if(this.options.transformAttributeName&&(R=this.options.transformAttributeName(R)),R=w(R,this.options),k!==void 0){this.options.trimValues&&(k=k.trim()),k=this.replaceEntitiesValue(k,C,L);const z=this.options.attributeValueProcessor(T,k,L);z==null?A[R]=k:typeof z!=typeof k||z!==k?A[R]=z:A[R]=b(k,this.options.parseAttributeValue,this.options.numberParseOptions)}else this.options.allowBooleanAttributes&&(A[R]=!0)}if(!Object.keys(A).length)return;if(this.options.attributesGroupName){const M={};return M[this.options.attributesGroupName]=A,M}return A}}const c=function(S){S=S.replace(/\r\n?/g,`
|
|
15
|
+
`);const L=new t("!xml");let C=L,D="",I="";this.entityExpansionCount=0,this.currentExpandedLength=0;const A=new r(this.options.processEntities);for(let M=0;M<S.length;M++)if(S[M]==="<")if(S[M+1]==="/"){const k=p(S,">",M,"Closing Tag is not closed.");let R=S.substring(M+2,k).trim();if(this.options.removeNSPrefix){const V=R.indexOf(":");V!==-1&&(R=R.substr(V+1))}this.options.transformTagName&&(R=this.options.transformTagName(R)),C&&(D=this.saveTextToParentTag(D,C,I));const z=I.substring(I.lastIndexOf(".")+1);if(R&&this.options.unpairedTags.indexOf(R)!==-1)throw new Error(`Unpaired tag can not be used as closing tag: </${R}>`);let H=0;z&&this.options.unpairedTags.indexOf(z)!==-1?(H=I.lastIndexOf(".",I.lastIndexOf(".")-1),this.tagsNodeStack.pop()):H=I.lastIndexOf("."),I=I.substring(0,H),C=this.tagsNodeStack.pop(),D="",M=k}else if(S[M+1]==="?"){let k=y(S,M,!1,"?>");if(!k)throw new Error("Pi Tag is not closed.");if(D=this.saveTextToParentTag(D,C,I),!(this.options.ignoreDeclaration&&k.tagName==="?xml"||this.options.ignorePiTags)){const R=new t(k.tagName);R.add(this.options.textNodeName,""),k.tagName!==k.tagExp&&k.attrExpPresent&&(R[":@"]=this.buildAttributesMap(k.tagExp,I,k.tagName)),this.addChild(C,R,I,M)}M=k.closeIndex+1}else if(S.substr(M+1,3)==="!--"){const k=p(S,"-->",M+4,"Comment is not closed.");if(this.options.commentPropName){const R=S.substring(M+4,k-2);D=this.saveTextToParentTag(D,C,I),C.add(this.options.commentPropName,[{[this.options.textNodeName]:R}])}M=k}else if(S.substr(M+1,2)==="!D"){const k=A.readDocType(S,M);this.docTypeEntities=k.entities,M=k.i}else if(S.substr(M+1,2)==="!["){const k=p(S,"]]>",M,"CDATA is not closed.")-2,R=S.substring(M+9,k);D=this.saveTextToParentTag(D,C,I);let z=this.parseTextData(R,C.tagname,I,!0,!1,!0,!0);z==null&&(z=""),this.options.cdataPropName?C.add(this.options.cdataPropName,[{[this.options.textNodeName]:R}]):C.add(this.options.textNodeName,z),M=k+2}else{let k=y(S,M,this.options.removeNSPrefix),R=k.tagName;const z=k.rawTagName;let H=k.tagExp,V=k.attrExpPresent,Z=k.closeIndex;if(this.options.transformTagName){const X=this.options.transformTagName(R);H===R&&(H=X),R=X}if(this.options.strictReservedNames&&(R===this.options.commentPropName||R===this.options.cdataPropName||R===this.options.textNodeName||R===this.options.attributesGroupName))throw new Error(`Invalid tag name: ${R}`);C&&D&&C.tagname!=="!xml"&&(D=this.saveTextToParentTag(D,C,I,!1));const B=C;B&&this.options.unpairedTags.indexOf(B.tagname)!==-1&&(C=this.tagsNodeStack.pop(),I=I.substring(0,I.lastIndexOf("."))),R!==L.tagname&&(I+=I?"."+R:R);const $=M;if(this.isItStopNode(this.stopNodesExact,this.stopNodesWildcard,I,R)){let X="";if(H.length>0&&H.lastIndexOf("/")===H.length-1)R[R.length-1]==="/"?(R=R.substr(0,R.length-1),I=I.substr(0,I.length-1),H=R):H=H.substr(0,H.length-1),M=k.closeIndex;else if(this.options.unpairedTags.indexOf(R)!==-1)M=k.closeIndex;else{const Q=this.readStopNodeData(S,z,Z+1);if(!Q)throw new Error(`Unexpected end of ${z}`);M=Q.i,X=Q.tagContent}const j=new t(R);R!==H&&V&&(j[":@"]=this.buildAttributesMap(H,I,R)),X&&(X=this.parseTextData(X,R,I,!0,V,!0,!0)),I=I.substr(0,I.lastIndexOf(".")),j.add(this.options.textNodeName,X),this.addChild(C,j,I,$)}else{if(H.length>0&&H.lastIndexOf("/")===H.length-1){if(R[R.length-1]==="/"?(R=R.substr(0,R.length-1),I=I.substr(0,I.length-1),H=R):H=H.substr(0,H.length-1),this.options.transformTagName){const j=this.options.transformTagName(R);H===R&&(H=j),R=j}const X=new t(R);R!==H&&V&&(X[":@"]=this.buildAttributesMap(H,I,R)),this.addChild(C,X,I,$),I=I.substr(0,I.lastIndexOf("."))}else if(this.options.unpairedTags.indexOf(R)!==-1){const X=new t(R);R!==H&&V&&(X[":@"]=this.buildAttributesMap(H,I)),this.addChild(C,X,I,$),I=I.substr(0,I.lastIndexOf(".")),M=k.closeIndex;continue}else{const X=new t(R);if(this.tagsNodeStack.length>this.options.maxNestedTags)throw new Error("Maximum nested tags exceeded");this.tagsNodeStack.push(C),R!==H&&V&&(X[":@"]=this.buildAttributesMap(H,I,R)),this.addChild(C,X,I),C=X}D="",M=Z}}else D+=S[M];return L.child};function d(S,L,C,D){this.options.captureMetaData||(D=void 0);const I=this.options.updateTag(L.tagname,C,L[":@"]);I===!1||(typeof I=="string"&&(L.tagname=I),S.addChild(L,D))}const h=function(S,L,C){if(S.indexOf("&")===-1)return S;const D=this.options.processEntities;if(!D.enabled||D.allowedTags&&!D.allowedTags.includes(L)||D.tagFilter&&!D.tagFilter(L,C))return S;for(let I in this.docTypeEntities){const A=this.docTypeEntities[I],M=S.match(A.regx);if(M){if(this.entityExpansionCount+=M.length,D.maxTotalExpansions&&this.entityExpansionCount>D.maxTotalExpansions)throw new Error(`Entity expansion limit exceeded: ${this.entityExpansionCount} > ${D.maxTotalExpansions}`);const T=S.length;if(S=S.replace(A.regx,A.val),D.maxExpandedLength&&(this.currentExpandedLength+=S.length-T,this.currentExpandedLength>D.maxExpandedLength))throw new Error(`Total expanded content size exceeded: ${this.currentExpandedLength} > ${D.maxExpandedLength}`)}}if(S.indexOf("&")===-1)return S;for(const I of Object.keys(this.lastEntities)){const A=this.lastEntities[I],M=S.match(A.regex);if(M&&(this.entityExpansionCount+=M.length,D.maxTotalExpansions&&this.entityExpansionCount>D.maxTotalExpansions))throw new Error(`Entity expansion limit exceeded: ${this.entityExpansionCount} > ${D.maxTotalExpansions}`);S=S.replace(A.regex,A.val)}if(S.indexOf("&")===-1)return S;if(this.options.htmlEntities)for(const I of Object.keys(this.htmlEntities)){const A=this.htmlEntities[I],M=S.match(A.regex);if(M&&(this.entityExpansionCount+=M.length,D.maxTotalExpansions&&this.entityExpansionCount>D.maxTotalExpansions))throw new Error(`Entity expansion limit exceeded: ${this.entityExpansionCount} > ${D.maxTotalExpansions}`);S=S.replace(A.regex,A.val)}return S=S.replace(this.ampEntity.regex,this.ampEntity.val),S};function v(S,L,C,D){return S&&(D===void 0&&(D=L.child.length===0),S=this.parseTextData(S,L.tagname,C,!1,L[":@"]?Object.keys(L[":@"]).length!==0:!1,D),S!==void 0&&S!==""&&L.add(this.options.textNodeName,S),S=""),S}function g(S,L,C,D){return!!(L&&L.has(D)||S&&S.has(C))}function m(S,L,C=">"){let D,I="";for(let A=L;A<S.length;A++){let M=S[A];if(D)M===D&&(D="");else if(M==='"'||M==="'")D=M;else if(M===C[0])if(C[1]){if(S[A+1]===C[1])return{data:I,index:A}}else return{data:I,index:A};else M===" "&&(M=" ");I+=M}}function p(S,L,C,D){const I=S.indexOf(L,C);if(I===-1)throw new Error(D);return I+L.length-1}function y(S,L,C,D=">"){const I=m(S,L+1,D);if(!I)return;let A=I.data;const M=I.index,T=A.search(/\s/);let k=A,R=!0;T!==-1&&(k=A.substring(0,T),A=A.substring(T+1).trimStart());const z=k;if(C){const H=k.indexOf(":");H!==-1&&(k=k.substr(H+1),R=k!==I.data.substr(H+1))}return{tagName:k,tagExp:A,closeIndex:M,attrExpPresent:R,rawTagName:z}}function _(S,L,C){const D=C;let I=1;for(;C<S.length;C++)if(S[C]==="<")if(S[C+1]==="/"){const A=p(S,">",C,`${L} is not closed`);if(S.substring(C+2,A).trim()===L&&(I--,I===0))return{tagContent:S.substring(D,C),i:A};C=A}else if(S[C+1]==="?")C=p(S,"?>",C+1,"StopNode is not closed.");else if(S.substr(C+1,3)==="!--")C=p(S,"-->",C+3,"StopNode is not closed.");else if(S.substr(C+1,2)==="![")C=p(S,"]]>",C,"StopNode is not closed.")-2;else{const A=y(S,C,">");A&&((A&&A.tagName)===L&&A.tagExp[A.tagExp.length-1]!=="/"&&I++,C=A.closeIndex)}}function b(S,L,C){if(L&&typeof S=="string"){const D=S.trim();return D==="true"?!0:D==="false"?!1:n(S,C)}else return e.isExist(S)?S:""}function x(S,L,C){const D=Number.parseInt(S,L);return D>=0&&D<=1114111?String.fromCodePoint(D):C+S+";"}function w(S,L){if(e.criticalProperties.includes(S))throw new Error(`[SECURITY] Invalid name: "${S}" is a reserved JavaScript keyword that could cause prototype pollution`);return e.DANGEROUS_PROPERTY_NAMES.includes(S)?L.onDangerousProperty(S):S}return wu=a,wu}var Tu={},mv;function PS(){if(mv)return Tu;mv=1;function e(a,o){return t(a,o)}function t(a,o,s){let l;const u={};for(let f=0;f<a.length;f++){const c=a[f],d=r(c);let h="";if(s===void 0?h=d:h=s+"."+d,d===o.textNodeName)l===void 0?l=c[d]:l+=""+c[d];else{if(d===void 0)continue;if(c[d]){let v=t(c[d],o,h);const g=i(v,o);c[":@"]?n(v,c[":@"],h,o):Object.keys(v).length===1&&v[o.textNodeName]!==void 0&&!o.alwaysCreateTextNode?v=v[o.textNodeName]:Object.keys(v).length===0&&(o.alwaysCreateTextNode?v[o.textNodeName]="":v=""),u[d]!==void 0&&u.hasOwnProperty(d)?(Array.isArray(u[d])||(u[d]=[u[d]]),u[d].push(v)):o.isArray(d,h,g)?u[d]=[v]:u[d]=v}}}return typeof l=="string"?l.length>0&&(u[o.textNodeName]=l):l!==void 0&&(u[o.textNodeName]=l),u}function r(a){const o=Object.keys(a);for(let s=0;s<o.length;s++){const l=o[s];if(l!==":@")return l}}function n(a,o,s,l){if(o){const u=Object.keys(o),f=u.length;for(let c=0;c<f;c++){const d=u[c];l.isArray(d,s+"."+d,!0,!0)?a[d]=[o[d]]:a[d]=o[d]}}}function i(a,o){const{textNodeName:s}=o,l=Object.keys(a).length;return!!(l===0||l===1&&(a[s]||typeof a[s]=="boolean"||a[s]===0))}return Tu.prettify=e,Tu}var Cu,yv;function NS(){if(yv)return Cu;yv=1;const{buildOptions:e}=LS(),t=kS(),{prettify:r}=PS(),n=uv();class i{constructor(o){this.externalEntities={},this.options=e(o)}parse(o,s){if(typeof o!="string")if(o.toString)o=o.toString();else throw new Error("XML data is accepted in String or Bytes[] form.");if(s){s===!0&&(s={});const f=n.validate(o,s);if(f!==!0)throw Error(`${f.err.msg}:${f.err.line}:${f.err.col}`)}const l=new t(this.options);l.addExternalEntities(this.externalEntities);const u=l.parseXml(o);return this.options.preserveOrder||u===void 0?u:r(u,this.options)}addEntity(o,s){if(s.indexOf("&")!==-1)throw new Error("Entity value can't have '&'");if(o.indexOf("&")!==-1||o.indexOf(";")!==-1)throw new Error("An entity must be set without '&' and ';'. Eg. use '#xD' for '
'");if(s==="&")throw new Error("An entity with value '&' is not permitted");this.externalEntities[o]=s}}return Cu=i,Cu}var Au,_v;function $S(){if(_v)return Au;_v=1;const e=`
|
|
16
|
+
`;function t(s,l){let u="";return l.format&&l.indentBy.length>0&&(u=e),r(s,l,"",u)}function r(s,l,u,f){let c="",d=!1;if(!Array.isArray(s)){if(s!=null){let h=s.toString();return h=o(h,l),h}return""}for(let h=0;h<s.length;h++){const v=s[h],g=n(v);if(g===void 0)continue;let m="";if(u.length===0?m=g:m=`${u}.${g}`,g===l.textNodeName){let x=v[g];a(m,l)||(x=l.tagValueProcessor(g,x),x=o(x,l)),d&&(c+=f),c+=x,d=!1;continue}else if(g===l.cdataPropName){d&&(c+=f),c+=`<![CDATA[${v[g][0][l.textNodeName]}]]>`,d=!1;continue}else if(g===l.commentPropName){c+=f+`<!--${v[g][0][l.textNodeName]}-->`,d=!0;continue}else if(g[0]==="?"){const x=i(v[":@"],l),w=g==="?xml"?"":f;let S=v[g][0][l.textNodeName];S=S.length!==0?" "+S:"",c+=w+`<${g}${S}${x}?>`,d=!0;continue}let p=f;p!==""&&(p+=l.indentBy);const y=i(v[":@"],l),_=f+`<${g}${y}`,b=r(v[g],l,m,p);l.unpairedTags.indexOf(g)!==-1?l.suppressUnpairedNode?c+=_+">":c+=_+"/>":(!b||b.length===0)&&l.suppressEmptyNode?c+=_+"/>":b&&b.endsWith(">")?c+=_+`>${b}${f}</${g}>`:(c+=_+">",b&&f!==""&&(b.includes("/>")||b.includes("</"))?c+=f+l.indentBy+b+f:c+=b,c+=`</${g}>`),d=!0}return c}function n(s){const l=Object.keys(s);for(let u=0;u<l.length;u++){const f=l[u];if(Object.prototype.hasOwnProperty.call(s,f)&&f!==":@")return f}}function i(s,l){let u="";if(s&&!l.ignoreAttributes)for(let f in s){if(!Object.prototype.hasOwnProperty.call(s,f))continue;let c=l.attributeValueProcessor(f,s[f]);c=o(c,l),c===!0&&l.suppressBooleanAttributes?u+=` ${f.substr(l.attributeNamePrefix.length)}`:u+=` ${f.substr(l.attributeNamePrefix.length)}="${c}"`}return u}function a(s,l){s=s.substr(0,s.length-l.textNodeName.length-1);let u=s.substr(s.lastIndexOf(".")+1);for(let f in l.stopNodes)if(l.stopNodes[f]===s||l.stopNodes[f]==="*."+u)return!0;return!1}function o(s,l){if(s&&s.length>0&&l.processEntities)for(let u=0;u<l.entities.length;u++){const f=l.entities[u];s=s.replace(f.regex,f.val)}return s}return Au=t,Au}var Eu,bv;function OS(){if(bv)return Eu;bv=1;const e=$S(),t=pv(),r={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function(s,l){return l},attributeValueProcessor:function(s,l){return l},preserveOrder:!1,commentPropName:!1,unpairedTags:[],entities:[{regex:new RegExp("&","g"),val:"&"},{regex:new RegExp(">","g"),val:">"},{regex:new RegExp("<","g"),val:"<"},{regex:new RegExp("'","g"),val:"'"},{regex:new RegExp('"',"g"),val:"""}],processEntities:!0,stopNodes:[],oneListGroup:!1};function n(s){this.options=Object.assign({},r,s),this.options.ignoreAttributes===!0||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.ignoreAttributesFn=t(this.options.ignoreAttributes),this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=o),this.processTextOrObjNode=i,this.options.format?(this.indentate=a,this.tagEndChar=`>
|
|
17
|
+
`,this.newLine=`
|
|
18
|
+
`):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}n.prototype.build=function(s){return this.options.preserveOrder?e(s,this.options):(Array.isArray(s)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(s={[this.options.arrayNodeName]:s}),this.j2x(s,0,[]).val)},n.prototype.j2x=function(s,l,u){let f="",c="";const d=u.join(".");for(let h in s)if(Object.prototype.hasOwnProperty.call(s,h))if(typeof s[h]>"u")this.isAttribute(h)&&(c+="");else if(s[h]===null)this.isAttribute(h)||h===this.options.cdataPropName?c+="":h[0]==="?"?c+=this.indentate(l)+"<"+h+"?"+this.tagEndChar:c+=this.indentate(l)+"<"+h+"/"+this.tagEndChar;else if(s[h]instanceof Date)c+=this.buildTextValNode(s[h],h,"",l);else if(typeof s[h]!="object"){const v=this.isAttribute(h);if(v&&!this.ignoreAttributesFn(v,d))f+=this.buildAttrPairStr(v,""+s[h]);else if(!v)if(h===this.options.textNodeName){let g=this.options.tagValueProcessor(h,""+s[h]);c+=this.replaceEntitiesValue(g)}else c+=this.buildTextValNode(s[h],h,"",l)}else if(Array.isArray(s[h])){const v=s[h].length;let g="",m="";for(let p=0;p<v;p++){const y=s[h][p];if(!(typeof y>"u"))if(y===null)h[0]==="?"?c+=this.indentate(l)+"<"+h+"?"+this.tagEndChar:c+=this.indentate(l)+"<"+h+"/"+this.tagEndChar;else if(typeof y=="object")if(this.options.oneListGroup){const _=this.j2x(y,l+1,u.concat(h));g+=_.val,this.options.attributesGroupName&&y.hasOwnProperty(this.options.attributesGroupName)&&(m+=_.attrStr)}else g+=this.processTextOrObjNode(y,h,l,u);else if(this.options.oneListGroup){let _=this.options.tagValueProcessor(h,y);_=this.replaceEntitiesValue(_),g+=_}else g+=this.buildTextValNode(y,h,"",l)}this.options.oneListGroup&&(g=this.buildObjectNode(g,h,m,l)),c+=g}else if(this.options.attributesGroupName&&h===this.options.attributesGroupName){const v=Object.keys(s[h]),g=v.length;for(let m=0;m<g;m++)f+=this.buildAttrPairStr(v[m],""+s[h][v[m]])}else c+=this.processTextOrObjNode(s[h],h,l,u);return{attrStr:f,val:c}},n.prototype.buildAttrPairStr=function(s,l){return l=this.options.attributeValueProcessor(s,""+l),l=this.replaceEntitiesValue(l),this.options.suppressBooleanAttributes&&l==="true"?" "+s:" "+s+'="'+l+'"'};function i(s,l,u,f){const c=this.j2x(s,u+1,f.concat(l));return s[this.options.textNodeName]!==void 0&&Object.keys(s).length===1?this.buildTextValNode(s[this.options.textNodeName],l,c.attrStr,u):this.buildObjectNode(c.val,l,c.attrStr,u)}n.prototype.buildObjectNode=function(s,l,u,f){if(s==="")return l[0]==="?"?this.indentate(f)+"<"+l+u+"?"+this.tagEndChar:this.indentate(f)+"<"+l+u+this.closeTag(l)+this.tagEndChar;{let c="</"+l+this.tagEndChar,d="";return l[0]==="?"&&(d="?",c=""),(u||u==="")&&s.indexOf("<")===-1?this.indentate(f)+"<"+l+u+d+">"+s+c:this.options.commentPropName!==!1&&l===this.options.commentPropName&&d.length===0?this.indentate(f)+`<!--${s}-->`+this.newLine:this.indentate(f)+"<"+l+u+d+this.tagEndChar+s+this.indentate(f)+c}},n.prototype.closeTag=function(s){let l="";return this.options.unpairedTags.indexOf(s)!==-1?this.options.suppressUnpairedNode||(l="/"):this.options.suppressEmptyNode?l="/":l=`></${s}`,l},n.prototype.buildTextValNode=function(s,l,u,f){if(this.options.cdataPropName!==!1&&l===this.options.cdataPropName)return this.indentate(f)+`<![CDATA[${s}]]>`+this.newLine;if(this.options.commentPropName!==!1&&l===this.options.commentPropName)return this.indentate(f)+`<!--${s}-->`+this.newLine;if(l[0]==="?")return this.indentate(f)+"<"+l+u+"?"+this.tagEndChar;{let c=this.options.tagValueProcessor(l,s);return c=this.replaceEntitiesValue(c),c===""?this.indentate(f)+"<"+l+u+this.closeTag(l)+this.tagEndChar:this.indentate(f)+"<"+l+u+">"+c+"</"+l+this.tagEndChar}},n.prototype.replaceEntitiesValue=function(s){if(s&&s.length>0&&this.options.processEntities)for(let l=0;l<this.options.entities.length;l++){const u=this.options.entities[l];s=s.replace(u.regex,u.val)}return s};function a(s){return this.options.indentBy.repeat(s)}function o(s){return s.startsWith(this.options.attributeNamePrefix)&&s!==this.options.textNodeName?s.substr(this.attrPrefixLen):!1}return Eu=n,Eu}var Lu,Sv;function RS(){if(Sv)return Lu;Sv=1;const e=uv(),t=NS(),r=OS();return Lu={XMLParser:t,XMLValidator:e,XMLBuilder:r},Lu}var BS=RS();const FS=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"]),zS=new BS.XMLParser({ignoreAttributes:!1,attributeNamePrefix:"@_",isArray:e=>FS.has(e),parseTagValue:!1,trimValues:!1,textNodeName:"#text"});class VS{constructor(){wS(this,"zip")}async load(t){this.zip=await ES.loadAsync(t)}getFileCaseInsensitive(t){let r=this.zip.file(t);if(r)return r;const n=t.toLowerCase(),a=Object.keys(this.zip.files).find(o=>o.toLowerCase()===n);return a?this.zip.file(a):null}async getXml(t){const r=this.getFileCaseInsensitive(t);if(!r)return null;const n=await r.async("text");try{return zS.parse(n)}catch(i){return console.warn(`[pptx] Failed to parse XML at ${t}:`,i),null}}async getText(t){const r=this.getFileCaseInsensitive(t);return r?r.async("text"):null}async getBase64(t){const r=this.getFileCaseInsensitive(t);return r?r.async("base64"):null}async getUint8Array(t){const r=this.getFileCaseInsensitive(t);return r?r.async("uint8array"):null}fileExists(t){return this.getFileCaseInsensitive(t)!==null}getFileNames(){const t=[];return this.zip.forEach(r=>t.push(r)),t}}function F(e,t){if(!e)return;const r=e[t];return Array.isArray(r)&&t!=="a:p"&&t!=="a:r"&&t!=="a:br"&&t!=="a:fld"&&t!=="a:tc"&&t!=="p:sp"&&t!=="a:gridCol"&&t!=="p:pic"&&t!=="p:grpSp"&&t!=="p:cxnSp"&&t!=="p:graphicFrame"&&t!=="a:gs"&&t!=="Relationship"&&t!=="c:ser"&&t!=="c:pt"&&t!=="c:v"?r[0]:r}function q(e,t){if(e&&(Array.isArray(e)&&(e=e[0]),!!e))return e[`@_${t}`]}function Pt(e,t){if(!e)return[];const r=e[t];return r?Array.isArray(r)?r:[r]:[]}function GS(e){return e?typeof e=="string"?e:e["#text"]!==void 0?String(e["#text"]):"":""}function vi(e){const t={};if(!e)return t;const r=Pt(e==null?void 0:e.Relationships,"Relationship");for(const n of r)t[n["@_Id"]]=n["@_Target"];return t}function Mu(e){const t=new Map;return e&&[...e.matchAll(/<p:cNvPr[^>]*?id="([^"]+)"/g)].forEach((n,i)=>t.set(n[1],i)),t}function sa(e,t){if(t.startsWith("/"))return t.slice(1);const r=e.replace(/\\/g,"/").split("/").filter(Boolean),n=t.replace(/\\/g,"/").split("/").filter(Boolean),i=[...r];for(const a of n)a===".."?i.pop():a!=="."&&i.push(a);return i.join("/")}const HS=9525;function Vt(e){return Math.round(e/HS*100)/100}function Go(e){return Math.round(e/100*(96/72)*100)/100}function Du(e){return e/6e4}async function US(e){var f,c;const t=await e.getXml("ppt/presentation.xml"),r=await e.getXml("ppt/_rels/presentation.xml.rels"),n=vi(r),i=(f=t==null?void 0:t["p:presentation"])==null?void 0:f["p:sldSz"],a=Vt(parseInt(q(i,"cx")||"9144000")),o=Vt(parseInt(q(i,"cy")||"6858000")),l=Pt((c=t==null?void 0:t["p:presentation"])==null?void 0:c["p:sldIdLst"],"p:sldId").map(d=>{const h=q(d,"r:id"),v=n[h];return v?{rId:h,path:`ppt/${v}`}:null}).filter(Boolean);let u=null;for(const[,d]of Object.entries(n))if(d.includes("theme")){u=`ppt/${d}`;break}return{width:a,height:o,slideRefs:l,themeRef:u}}const WS=["dk1","dk2","lt1","lt2","accent1","accent2","accent3","accent4","accent5","accent6","hlink","folHlink"];async function ZS(e,t){var f;const 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(!t)return r;const n=await e.getXml(t);if(!n)return r;const i=(f=n["a:theme"])==null?void 0:f["a:themeElements"],a=F(i,"a:clrScheme"),o={};if(a)for(const c of WS){const d=a[`a:${c}`];d&&(d["a:srgbClr"]?o[c]=q(d["a:srgbClr"],"val")||"000000":d["a:sysClr"]&&(o[c]=q(d["a:sysClr"],"lastClr")||q(d["a:sysClr"],"val")||"000000"))}const s=F(i,"a:fontScheme");let l="Calibri",u="Calibri";if(s){const c=F(F(s,"a:majorFont"),"a:latin"),d=F(F(s,"a:minorFont"),"a:latin");l=q(c,"typeface")||"Calibri",u=q(d,"typeface")||"Calibri"}return{colorScheme:o,colorMap:r.colorMap,fontScheme:{majorFont:l,minorFont:u}}}function YS(e,t){var a;const r=(a=e==null?void 0:e["p:sldMaster"])==null?void 0:a["p:clrMap"];if(!r)return t;const n={...t.colorMap},i=["tx1","tx2","bg1","bg2","accent1","accent2","accent3","accent4","accent5","accent6","hlink","folHlink"];for(const o of i){const s=q(r,o);s&&(n[o]=s)}return{...t,colorMap:n}}const XS={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 lr(e,t){if(!e)return{color:"#000000",opacity:1};let r="000000",n=1;if(e["a:srgbClr"]){const i=e["a:srgbClr"];r=typeof i=="object"?i["@_val"]:i,n=la(i)}else if(e["a:schemeClr"]){const i=e["a:schemeClr"],a=typeof i=="object"?i["@_val"]:i;r=xv(a,t),n=la(i),r=qS(r,i)}else if(e["a:prstClr"]){const i=e["a:prstClr"],a=typeof i=="object"?i["@_val"]:i;r=XS[a]||"000000",n=la(i)}else if(e["a:scrgbClr"]){const i=e["a:scrgbClr"],a=Math.round(parseInt(i["@_r"])/1e5*255),o=Math.round(parseInt(i["@_g"])/1e5*255),s=Math.round(parseInt(i["@_b"])/1e5*255);r=Lr(a)+Lr(o)+Lr(s),n=la(i)}else if(e["a:hslClr"]){const i=e["a:hslClr"],a=parseInt(i["@_hue"])/6e4,o=parseInt(i["@_sat"])/1e5,s=parseInt(i["@_lum"])/1e5,l=wv(a,o,s);r=Lr(l[0])+Lr(l[1])+Lr(l[2]),n=la(i)}return{color:`#${r}`,opacity:n}}function la(e){if(!e||typeof e!="object")return 1;if(e["a:alpha"]){const t=e["a:alpha"]["@_val"]??e["a:alpha"];return parseInt(t)/1e5}return 1}function xv(e,t){const r=t.colorMap[e]||e;return t.colorScheme[r]||t.colorScheme[e]||"000000"}function qS(e,t){if(!t||typeof t!="object")return e;const r=parseInt(e.substring(0,2),16),n=parseInt(e.substring(2,4),16),i=parseInt(e.substring(4,6),16);let[a,o,s]=jS(r,n,i);if(t["a:lumMod"]){const u=parseInt(t["a:lumMod"]["@_val"]??t["a:lumMod"])/1e5;s=s*u}if(t["a:lumOff"]){const u=parseInt(t["a:lumOff"]["@_val"]??t["a:lumOff"])/1e5;s=s+u}if(t["a:tint"]){const u=parseInt(t["a:tint"]["@_val"]??t["a:tint"])/1e5;s=s+(1-s)*(1-u)}if(t["a:shade"]){const u=parseInt(t["a:shade"]["@_val"]??t["a:shade"])/1e5;s=s*u}if(t["a:satMod"]){const u=parseInt(t["a:satMod"]["@_val"]??t["a:satMod"])/1e5;o=o*u}s=Math.max(0,Math.min(1,s)),o=Math.max(0,Math.min(1,o));const l=wv(a,o,s);return Lr(l[0])+Lr(l[1])+Lr(l[2])}function Lr(e){const t=Math.max(0,Math.min(255,Math.round(e))).toString(16);return t.length<2?"0"+t:t}function jS(e,t,r){e/=255,t/=255,r/=255;const n=Math.max(e,t,r),i=Math.min(e,t,r);let a=0,o=0;const s=(n+i)/2;if(n!==i){const l=n-i;switch(o=s>.5?l/(2-n-i):l/(n+i),n){case e:a=((t-r)/l+(t<r?6:0))/6;break;case t:a=((r-e)/l+2)/6;break;case r:a=((e-t)/l+4)/6;break}}return[a,o,s]}function wv(e,t,r){if(t===0){const o=Math.round(r*255);return[o,o,o]}const n=(o,s,l)=>(l<0&&(l+=1),l>1&&(l-=1),l<1/6?o+(s-o)*6*l:l<1/2?s:l<2/3?o+(s-o)*(2/3-l)*6:o),i=r<.5?r*(1+t):r+t-r*t,a=2*r-i;return[Math.round(n(a,i,e+1/3)*255),Math.round(n(a,i,e)*255),Math.round(n(a,i,e-1/3)*255)]}function An(e,t){if(!e)return{type:"none"};const r=F(e,"a:solidFill");if(r){const{color:o,opacity:s}=lr(r,t);return{type:"solid",color:o,opacity:s}}const n=F(e,"a:gradFill");if(n){const o=F(n,"a:gsLst"),s=Pt(o,"a:gs").map(c=>{const d=parseInt(q(c,"pos")||"0")/1e3,{color:h,opacity:v}=lr(c,t);return{position:d,color:h,opacity:v}});if(s.length===0)return{type:"none"};const l=F(n,"a:path");if(l){const c=q(l,"path")||"circle",d=F(l,"a:fillToRect"),h=d?{l:parseInt(q(d,"l")||"0")/1e3,t:parseInt(q(d,"t")||"0")/1e3,r:parseInt(q(d,"r")||"0")/1e3,b:parseInt(q(d,"b")||"0")/1e3}:void 0;return{type:"gradient",gradientType:c==="rect"?"rect":"radial",stops:s,center:h}}const u=F(n,"a:lin");return{type:"gradient",gradientType:"linear",angle:u?Du(parseInt(q(u,"ang")||"0")):0,stops:s}}const i=F(e,"a:pattFill");if(i){const o=q(i,"prst")||"pct5",s=lr(F(i,"a:fgClr"),t).color,l=lr(F(i,"a:bgClr"),t).color;return{type:"pattern",preset:o,fgColor:s,bgColor:l}}return F(e,"a:noFill")!==void 0?{type:"none"}:{type:"none"}}async function Tv(e,t,r,n,i){if(!e)return{type:"none"};const a=F(e,"a:blipFill");if(a){const o=await Cv(a,r,n,i);if(o){const s=!!F(a,"a:stretch");return{type:"image",src:o,stretch:s}}}return An(e,t)}async function Cv(e,t,r,n){var h;const i=F(e,"a:blip");if(!i)return console.warn("[pptx] blipFill: no a:blip child",e),"";let a=q(i,"r:embed")||q(i,"r:link")||q(i,"embed")||q(i,"link");if(!a){const v=F(i,"a:extLst");if(v){const g=Pt(v,"a:ext");for(const m of g){const p=F(m,"asvg:svgBlip")||F(m,"svgBlip");if(p&&(a=q(p,"r:embed")||q(p,"r:link")||q(p,"embed")||q(p,"link"),a))break}}}if(!a)return console.warn("[pptx] blipFill: no r:embed/r:link attr on blip or svgBlip",i),"";if(!t[a])return console.warn(`[pptx] blipFill: rId '${a}' not in rels map`,t),"";const o=t[a],s=sa(n,o);console.debug(`[pptx] image: rId=${a} target=${o} basePath=${n} => ${s}`);const l=((h=s.split(".").pop())==null?void 0:h.toLowerCase())||"png",f={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"}[l]||"image/png",c=await r.getUint8Array(s);if(!c)return console.warn(`[pptx] image: getUint8Array returned null for path '${s}'`),"";if(typeof URL>"u"||!URL.createObjectURL){const v=await r.getBase64(s);return`data:${f};base64,${v}`}const d=new Blob([c.buffer],{type:f});return URL.createObjectURL(d)}function ua(e,t){if(!e)return null;const r=Vt(parseInt(q(e,"w")||"0"));if(r<=0)return null;const n=F(e,"a:solidFill");let i="#000000";n&&(i=lr(n,t).color);const a=F(e,"a:prstDash"),o=q(a,"val")||"solid";return{width:r,color:i,dash:o}}function Iu(e,t,r,n){if(!e)return null;const i=F(e,"a:bodyPr")||{};let a="none";F(i,"a:spAutoFit")!==void 0&&(a="autofit"),F(i,"a:normAutofit")!==void 0&&(a="normAutofit");const o={vertAlign:q(i,"anchor")||"top",wrap:q(i,"wrap")!=="none",lIns:Vt(parseInt(q(i,"lIns")||"91440")),tIns:Vt(parseInt(q(i,"tIns")||"45720")),rIns:Vt(parseInt(q(i,"rIns")||"91440")),bIns:Vt(parseInt(q(i,"bIns")||"45720")),autofit:a},s=Av(r,Ho(F(e,"a:lstStyle"),t,n));return{paragraphs:Pt(e,"a:p").map(u=>QS(u,t,s,n)),bodyProps:o,listStyle:s}}function Ho(e,t,r){if(!e)return{};const n={};for(let i=1;i<=9;i++){const a=F(e,`a:lvl${i}pPr`);if(a){const o=Lv(a,t),s=F(a,"a:defRPr"),l=s?fa(s,t,r):void 0;n[i-1]={pPr:o,rPr:l}}}return n}function Av(...e){const t={};for(const r of e)if(r)for(const n of Object.keys(r)){const i=parseInt(n);t[i]||(t[i]={}),r[i].pPr&&(t[i].pPr={...t[i].pPr,...Ev(r[i].pPr)}),r[i].rPr&&(t[i].rPr={...t[i].rPr,...Ev(r[i].rPr)})}return t}function Ev(e){const t={};for(const r of Object.keys(e))e[r]!==null&&e[r]!==void 0&&(t[r]=e[r]);return t}function QS(e,t,r,n){var v,g,m,p,y,_,b;const i=F(e,"a:pPr")||{},a=parseInt(q(i,"lvl")||"0"),o=r[a]||{},s=F(i,"a:defRPr"),l=s?fa(s,t,n):null,u=Uo(o.rPr||null,l,t),f=Lv(i,t),c={align:f.align??((v=o.pPr)==null?void 0:v.align)??"left",indent:f.indent??((g=o.pPr)==null?void 0:g.indent)??0,marginLeft:f.marginLeft??((m=o.pPr)==null?void 0:m.marginLeft)??0,lineSpacing:f.lineSpacing??((p=o.pPr)==null?void 0:p.lineSpacing)??null,spaceBefore:f.spaceBefore??((y=o.pPr)==null?void 0:y.spaceBefore)??0,spaceAfter:f.spaceAfter??((_=o.pPr)==null?void 0:_.spaceAfter)??0,bullet:f.bullet??((b=o.pPr)==null?void 0:b.bullet)??null,level:a},d=[],h=[...Pt(e,"a:r").map(x=>{var w;return{kind:"r",node:x,order:x["@_order"]??((w=x.attrs)==null?void 0:w.order)??1/0}}),...Pt(e,"a:br").map(x=>{var w;return{kind:"br",node:x,order:x["@_order"]??((w=x.attrs)==null?void 0:w.order)??1/0}}),...Pt(e,"a:fld").map(x=>{var w;return{kind:"fld",node:x,order:x["@_order"]??((w=x.attrs)==null?void 0:w.order)??1/0}})].sort((x,w)=>x.order-w.order);for(const x of h)if(x.kind==="r"){const w=x.node,S=F(w,"a:rPr"),L=S?fa(S,t,n):null;d.push({type:"text",text:w["a:t"]??"",props:Uo(u,L,t)})}else if(x.kind==="br"){const w=F(x.node,"a:rPr");d.push({type:"break",text:"",props:Uo(u,w?fa(w,t):null,t)})}else if(x.kind==="fld"){const w=x.node,S=F(w,"a:rPr");d.push({type:"field",text:w["a:t"]??q(w,"type")??"",props:Uo(u,S?fa(S,t):null,t)})}return d.length===0&&d.push({type:"text",text:"",props:u||Mv(t)}),{runs:d,props:c}}function Lv(e,t){const r={};if(!e)return r;const n=q(e,"algn");n&&(r.align=KS(n));const i=q(e,"indent");i&&(r.indent=Vt(parseInt(i)));const a=q(e,"marL");a&&(r.marginLeft=Vt(parseInt(a)));const o=tx(F(e,"a:lnSpc"));o!==null&&(r.lineSpacing=o);const s=Dv(F(e,"a:spcBef"));s!==0&&(r.spaceBefore=s);const l=Dv(F(e,"a:spcAft"));l!==0&&(r.spaceAfter=l);const u=JS(e,t);return u!==null&&(r.bullet=u),r}function KS(e){return e==="ctr"||e==="center"?"center":e==="r"||e==="right"?"right":e==="just"||e==="justify"?"justify":"left"}function Uo(e,t,r){const n=Mv(r);return!e&&!t?n:e?t?{fontFamily:t.fontFamily??e.fontFamily??n.fontFamily,fontSize:t.fontSize??e.fontSize??n.fontSize,bold:t.bold??e.bold??n.bold,italic:t.italic??e.italic??n.italic,underline:t.underline??e.underline??n.underline,strikethrough:t.strikethrough??e.strikethrough??n.strikethrough,color:t.color??e.color??n.color,highlight:t.highlight??e.highlight??n.highlight,baseline:t.baseline??e.baseline??n.baseline,hyperlink:t.hyperlink??e.hyperlink??n.hyperlink}:{...n,...e}:{...n,...t}}function Mv(e){const t=e.colorMap.tx1||"tx1",r=e.colorScheme[t]||e.colorScheme.tx1||"000000";return{fontFamily:null,fontSize:Go(1800),bold:!1,italic:!1,underline:!1,strikethrough:!1,color:`#${r}`,highlight:null}}function fa(e,t,r){let n=null;const i=F(e,"a:solidFill");i&&(n=lr(i,t).color);let a=q(F(e,"a:latin"),"typeface")||q(F(e,"a:ea"),"typeface")||null;a&&(a.startsWith("+mj")?a=t.fontScheme.majorFont||a:a.startsWith("+mn")&&(a=t.fontScheme.minorFont||a),a&&!a.includes("sans-serif")&&!a.includes("serif")&&(a=`${a}, sans-serif`));const o=q(e,"sz"),s=o?Go(parseInt(o)):null,l=q(e,"baseline"),u=l?parseInt(l)/1e3:void 0;let f;const c=F(e,"a:hlinkClick");if(c&&r){const d=q(c,"r:id")||q(c,"r:id");d&&r[d]&&(f=r[d])}return{fontFamily:a,fontSize:s,bold:q(e,"b")==="1",italic:q(e,"i")==="1",underline:q(e,"u")==="sng"||q(e,"u")==="true",strikethrough:q(e,"strike")==="sngStrike",color:n,highlight:null,baseline:u,hyperlink:f}}function JS(e,t){if(!e||F(e,"a:buNone"))return null;const r=F(e,"a:buChar");if(r){const i=F(e,"a:buClr"),a=F(e,"a:buSzPct"),o=F(e,"a:buFont");return{type:"char",char:q(r,"char")||"•",color:i?lr(i,t).color:void 0,fontSize:a?parseInt(q(a,"val")||"100000")/1e3:void 0,fontFamily:o&&q(o,"typeface")||void 0}}const n=F(e,"a:buAutoNum");if(n){const i=F(e,"a:buClr");return{type:"autoNum",autoNumType:q(n,"type")||"arabicPeriod",startAt:parseInt(q(n,"startAt")||"1"),color:i?lr(i,t).color:void 0}}return null}function tx(e){if(!e)return null;const t=F(e,"a:spcPct");if(t)return parseInt(q(t,"val")||"100000")/1e5;const r=F(e,"a:spcPts");return r?Go(parseInt(q(r,"val")||"0")):null}function Dv(e){if(!e)return 0;const t=F(e,"a:spcPts");return t?Go(parseInt(q(t,"val")||"0")):0}let Iv=0;function ca(e,t){if(!e)return Iv++;const r=F(F(e,"p:nvSpPr")||F(e,"p:nvPicPr")||F(e,"p:nvGrpSpPr")||F(e,"p:nvGraphicFramePr")||F(e,"p:nvCxnSpPr"),"p:cNvPr"),n=q(r,"id");return n&&t.orderMap&&t.orderMap.has(n)?t.orderMap.get(n):Iv++}async function Wo(e,t,r){const n=[];if(!(r!=null&&r.skipSp))for(const i of Pt(e,"p:sp")){const a=await rx(i,t,ca(i,t));a&&n.push(a)}for(const i of Pt(e,"p:pic")){const a=await ix(i,t,ca(i,t));a&&n.push(a)}for(const i of Pt(e,"p:cxnSp")){const a=await nx(i,t,ca(i,t));a&&n.push(a)}for(const i of Pt(e,"p:graphicFrame")){const a=await ax(i,t,ca(i,t));a&&n.push(a)}for(const i of Pt(e,"p:grpSp")){const a=await ox(i,t,ca(i,t));a&&n.push(a)}return n.sort((i,a)=>i.order-a.order),n}function ha(e){const t=F(e,"a:off"),r=F(e,"a:ext");return{offset:{x:Vt(parseInt(q(t,"x")||"0")),y:Vt(parseInt(q(t,"y")||"0"))},size:{w:Vt(parseInt(q(r,"cx")||"0")),h:Vt(parseInt(q(r,"cy")||"0"))},rotate:Du(parseInt(q(e,"rot")||"0")),flipH:q(e,"flipH")==="1",flipV:q(e,"flipV")==="1"}}function ex(e,t,r){if(!e)return null;const n=F(e,"a:pathLst");if(!n)return null;const i=[];for(const a of Pt(n,"a:path")){const o=parseInt(q(a,"w")||String(t*12700))||t*12700,s=parseInt(q(a,"h")||String(r*12700))||r*12700,l=t/o,u=r/s,f=p=>(parseFloat(p)*l).toFixed(2),c=p=>(parseFloat(p)*u).toFixed(2),d=p=>`${f(q(p,"x")||"0")},${c(q(p,"y")||"0")}`,h=[];let v=0;for(const p of Pt(a,"a:moveTo")){const y=F(p,"a:pt");h.push({idx:v++,fn:()=>`M${d(y)} `})}for(const p of Pt(a,"a:lnTo")){const y=F(p,"a:pt");h.push({idx:v++,fn:()=>`L${d(y)} `})}for(const p of Pt(a,"a:cubicBezTo")){const y=Pt(p,"a:pt");y.length>=3&&h.push({idx:v++,fn:()=>`C${d(y[0])} ${d(y[1])} ${d(y[2])} `})}for(const p of Pt(a,"a:quadBezTo")){const y=Pt(p,"a:pt");y.length>=2&&h.push({idx:v++,fn:()=>`Q${d(y[0])} ${d(y[1])} `})}const g=!!F(a,"a:close"),m=h.map(p=>p.fn()).join("")+(g?"Z":"");m&&i.push(m.trim())}return i.join(" ")||null}async function rx(e,t,r){const n=F(e,"p:spPr")||{},i=F(n,"a:xfrm");if(!i)return null;const a=ha(i),o=F(n,"a:prstGeom"),s=F(n,"a:custGeom"),l=q(o,"prst")||(s?"__custom__":"rect"),u=An(n,t.theme),f=ua(F(n,"a:ln"),t.theme),c=Iu(F(e,"p:txBody"),t.theme,void 0,t.rels),d=kv(F(n,"a:effectLst")),h=F(e,"p:nvSpPr"),v=F(h,"p:cNvSpPr"),g=F(h,"p:nvPr"),m=F(g,"p:ph"),p=q(v,"txBox")==="1",y=q(m,"type"),_=q(m,"idx"),b=s?ex(s,a.size.w,a.size.h):null;return p||y?{type:"shape",presetGeom:"rect",...a,order:r,fill:u,border:f,effectProps:d,phType:y,phIdx:_,textBody:c||{paragraphs:[],bodyProps:{vertAlign:"top",wrap:!0,lIns:9.6,tIns:4.8,rIns:9.6,bIns:4.8}}}:{type:"shape",...a,order:r,presetGeom:l,custGeomPath:b||void 0,fill:u,border:f,textBody:c,effectProps:d,phType:y,phIdx:_}}async function nx(e,t,r){const n=F(e,"p:spPr")||{},i=F(n,"a:xfrm");if(!i)return null;const a=ha(i),o=F(n,"a:prstGeom"),s=q(o,"prst")||"straightConnector1",l=An(n,t.theme),u=ua(F(n,"a:ln"),t.theme);return{type:"shape",...a,order:r,presetGeom:s,fill:l,border:u,textBody:null}}async function ix(e,t,r){const n=F(e,"p:spPr")||{},i=F(n,"a:xfrm");if(!i)return null;const a=ha(i),o=F(e,"p:blipFill"),s=await Cv(o,t.rels,t.zip,t.slideBasePath),l=F(o,"a:srcRect"),u=l?{top:parseInt(q(l,"t")||"0")/1e3,right:parseInt(q(l,"r")||"0")/1e3,bottom:parseInt(q(l,"b")||"0")/1e3,left:parseInt(q(l,"l")||"0")/1e3}:null,f=F(n,"a:prstGeom"),c=q(f,"prst"),d=kv(F(n,"a:effectLst")),h=F(e,"p:nvPicPr"),v=F(h,"p:nvPr"),g=F(v,"p:ph"),m=q(g,"type"),p=q(g,"idx");return{type:"picture",...a,order:r,src:s,srcRect:u,clipGeom:c||void 0,effectProps:d,phType:m,phIdx:p}}async function ax(e,t,r){var k;const n=F(e,"p:xfrm");if(!n)return null;const i=ha(n),a=F(e,"p:nvGraphicFramePr"),o=F(a,"p:nvPr"),s=F(o,"p:ph"),l=q(s,"type"),u=q(s,"idx"),f=F(e,"a:graphic"),c=F(f,"a:graphicData");if(!c)return null;const d=F(c,"c:chart");if(d){const R=q(d,"r:id");if(R){const{parseChart:z}=await Promise.resolve().then(()=>JN),H=await z(t.zip,R,t.rels,t.slideBasePath);if(H)return{type:"chart",...i,order:r,chartData:H}}}const h=F(c,"a:tbl");if(!h)return null;const v=F(h,"a:tblGrid"),g=Pt(v,"a:gridCol").map(R=>Vt(parseInt(q(R,"w")||"0"))),m=g.length,p=F(h,"a:tblPr")||{},y=An(p,t.theme),_=q(p,"firstRow")==="1",b=q(p,"lastRow")==="1",x=q(p,"firstCol")==="1",w=q(p,"lastCol")==="1",S=q(p,"bandRow")==="1",L=q(p,"bandCol")==="1",C=F(p,"a:tableStyleId"),D=(C?GS(C):"")||"{5C22544A-7EE6-4342-B048-85BDC9FD1C3A}",I=(k=t.tableStyles)==null?void 0:k[D],A=Pt(h,"a:tr"),M=A.length,T=A.map((R,z)=>{const H=Vt(parseInt(q(R,"h")||"0")),V=Pt(R,"a:tc").map((Z,B)=>{const $=F(Z,"a:tcPr")||{};let X;const j={};if(I){const Y=P=>{P&&(P.fill!==void 0&&(X=P.fill),P.borders&&(P.borders.top!==void 0&&(j.top=P.borders.top),P.borders.bottom!==void 0&&(j.bottom=P.borders.bottom),P.borders.left!==void 0&&(j.left=P.borders.left),P.borders.right!==void 0&&(j.right=P.borders.right)))};Y(I.wholeTbl);const W=_&&z>0?z+1:z;S&&Y(W%2===0?I.band1H:I.band2H);const N=x&&B>0?B+1:B;L&&Y(N%2===0?I.band1V:I.band2V),x&&B===0&&Y(I.firstCol),w&&B===m-1&&Y(I.lastCol),_&&z===0&&Y(I.firstRow),b&&z===M-1&&Y(I.lastRow)}let Q;F($,"a:solidFill")||F($,"a:gradFill")||F($,"a:noFill")||F($,"a:pattFill")?Q=An($,t.theme):X?Q=An(X,t.theme):Q={type:"none"};const bt=Y=>{const W=F($,`a:ln${Y}`);if(W)return ua(W,t.theme);const P=j[{T:"top",R:"right",B:"bottom",L:"left"}[Y]];return P?ua(P,t.theme):null},Et=Vt(parseInt(q($,"marL")||"91440")),ht=Vt(parseInt(q($,"marR")||"91440")),gt=Vt(parseInt(q($,"marT")||"45720")),St=Vt(parseInt(q($,"marB")||"45720")),at=q($,"anchor")||"top",mt=at==="ctr"?"middle":at==="b"?"bottom":"top",Rt=Iu(F(Z,"a:txBody"),t.theme);return{textBody:Rt?{...Rt,bodyProps:{...Rt.bodyProps,lIns:0,tIns:0,rIns:0,bIns:0}}:{paragraphs:[],bodyProps:{vertAlign:"top",wrap:!0,lIns:0,tIns:0,rIns:0,bIns:0}},fill:Q,borders:{top:bt("T"),right:bt("R"),bottom:bt("B"),left:bt("L")},margins:{left:Et,right:ht,top:gt,bottom:St},anchor:mt,gridSpan:parseInt(q(Z,"gridSpan")||"1"),rowSpan:parseInt(q(Z,"rowSpan")||"1"),hMerge:q(Z,"hMerge")==="1"||q(Z,"hMerge")==="true",vMerge:q(Z,"vMerge")==="1"||q(Z,"vMerge")==="true"}});return{height:H,cells:V}});return{type:"table",...i,order:r,colWidths:g,rows:T,tableFill:y,phType:l,phIdx:u}}async function ox(e,t,r){const n=F(e,"p:grpSpPr")||{},i=F(n,"a:xfrm");if(!i)return null;const a=ha(i),o=F(i,"a:chOff"),s=F(i,"a:chExt"),l={x:Vt(parseInt(q(o,"x")||"0")),y:Vt(parseInt(q(o,"y")||"0"))},u={w:Vt(parseInt(q(s,"cx")||"0")),h:Vt(parseInt(q(s,"cy")||"0"))},f=await Wo(e,t);return{type:"group",...a,order:r,childOffset:l,childExtent:u,children:f}}function kv(e){if(!e)return;const t=F(e,"a:outerShdw");if(!t)return;const r=parseInt(q(t,"blurRad")||"0"),n=parseInt(q(t,"dist")||"0"),a=parseInt(q(t,"dir")||"0")/6e4*Math.PI/180,o=n/12700*Math.cos(a),s=n/12700*Math.sin(a),l=r/12700;let u="#000000",f=.5;const c=t["a:srgbClr"];if(c){u="#"+(typeof c=="object"?c["@_val"]:c);const d=c["a:alpha"];d&&(f=parseInt(d["@_val"]||"50000")/1e5)}return{shadow:{blur:l,dx:o,dy:s,color:u,opacity:f}}}async function sx(e,t,r,n,i,a,o){const s=await e.getXml(t),l=t.substring(0,t.lastIndexOf("/")),u=t.substring(t.lastIndexOf("/")+1),f=`${l}/_rels/${u}.rels`,c=await e.getXml(f),d=vi(c),h=s==null?void 0:s["p:sld"],v=F(h,"p:cSld"),g=F(v,"p:spTree");let m=null;for(const C of Object.values(d))if(C.includes("slideLayout")){m=sa(l,C);break}const p=m?i.get(m)??null:null,y=p!=null&&p.masterPath?a.get(p.masterPath)??null:null;let _=await fx(v,n,d,e,l);_.type==="none"&&p&&(_=p.background),_.type==="none"&&y&&(_=y.background),_.type==="none"&&(_={type:"solid",color:`#${xv("bg1",n)}`,opacity:1});const b=await e.getText(t)||"",x=Mu(b),w=await lx(g,{theme:n,rels:d,zip:e,slideBasePath:l,orderMap:x,tableStyles:o},p,y),S=[];let L=0;if(y)for(const C of y.nodes)S.push({...C,order:L++});if(p)for(const C of p.nodes)S.push({...C,order:L++});for(const C of w)S.push({...C,order:L++});return{index:r,background:_,nodes:S}}async function lx(e,t,r,n){if(!e)return[];const i=[];let a=0;for(const s of Pt(e,"p:sp")){const l=await ux(s,t,a++,r,n);l&&i.push(l)}const o=await Wo(e,t,{skipSp:!0});for(const s of o)i.push({...s,order:a++});return i}async function ux(e,t,r,n,i){const a=F(e,"p:nvSpPr"),o=F(a,"p:nvPr"),s=F(o,"p:ph"),l=q(s,"type"),u=q(s,"idx"),f=F(e,"p:spPr"),c=f&&typeof f=="object",d=c?F(f,"a:xfrm"):null,h=s?ku(l,u,n,i):null;let v={x:0,y:0},g={w:0,h:0},m=0,p=!1,y=!1;if(d){const $=F(d,"a:off"),X=F(d,"a:ext");v={x:Vt(parseInt(q($,"x")||"0")),y:Vt(parseInt(q($,"y")||"0"))},g={w:Vt(parseInt(q(X,"cx")||"0")),h:Vt(parseInt(q(X,"cy")||"0"))},m=Du(parseInt(q(d,"rot")||"0")),p=q(d,"flipH")==="1",y=q(d,"flipV")==="1"}else if(h)v={...h.offset},g={...h.size},m=h.rotate,p=h.flipH,y=h.flipV;else if(s){const $=l==="title"||l==="ctrTitle";v={x:30,y:$?20:100},g={w:900,h:$?80:400}}else return console.log("Returning null because no xfrm, not resolved, not ph."),null;if(g.w===0&&g.h===0)return console.log("Skipping because size.w=0 and size.h=0"),null;const _=f&&F(f,"a:solidFill")!==void 0,b=f&&F(f,"a:noFill")!==void 0,x=f&&F(f,"a:gradFill")!==void 0,w=f&&F(f,"a:pattFill")!==void 0,S=f&&F(f,"a:blipFill")!==void 0,C=c&&(_||b||x||w||S)?An(f,t.theme):h&&h.type==="shape"?h.fill:{type:"none"},D=c&&F(f,"a:ln")?ua(F(f,"a:ln"),t.theme):h&&h.type==="shape"?h.border:null;let I=null;i&&i.txStyles&&(l==="title"||l==="ctrTitle"?I=i.txStyles.titleStyle:l==="body"?I=i.txStyles.bodyStyle:I=i.txStyles.otherStyle);const A=s?ku(l,u,null,i):null,M=(A==null?void 0:A.type)==="shape"&&A.textBody?A.textBody.listStyle:null,T=s?ku(l,u,n,null):null,k=(T==null?void 0:T.type)==="shape"&&T.textBody?T.textBody.listStyle:null,R=Av(I,M,k),z=Iu(F(e,"p:txBody"),t.theme,R,t.rels),H=F(a,"p:cNvSpPr"),V=q(H,"txBox")==="1",Z=c?F(f,"a:prstGeom"):null;return{type:"shape",presetGeom:Z?q(Z,"prst")||"rect":h&&h.type==="shape"?h.presetGeom:"rect",offset:v,size:g,rotate:m,flipH:p,flipV:y,order:r,fill:C,border:D,textBody:z||(V||s?{paragraphs:[],bodyProps:{vertAlign:"top",wrap:!0,lIns:9.6,tIns:4.8,rIns:9.6,bIns:4.8}}:null)}}function ku(e,t,r,n){if(r){const i=Pv(r.placeholders,e,t);if(i)return i.node}if(n){const i=Pv(n.placeholders,e,t);if(i)return i.node}return null}function Pv(e,t,r){if(t){const n=e.find(i=>i.type===t);if(n)return n}if(r){const n=e.find(i=>i.idx===r);if(n)return n}return null}async function fx(e,t,r,n,i){const a=F(e,"p:bg");if(!a)return{type:"none"};const o=F(a,"p:bgPr");if(o)return Tv(o,t,r,n,i);const s=F(a,"p:bgRef");if(s){const{color:l}=lr(s,t);return{type:"solid",color:l,opacity:1}}return{type:"none"}}async function cx(e,t,r){const n=await e.getXml(t),i=t.substring(0,t.lastIndexOf("/")),a=t.substring(t.lastIndexOf("/")+1),o=`${i}/_rels/${a}.rels`,s=await e.getXml(o),l=vi(s),u=n==null?void 0:n["p:sldLayout"],f=F(u,"p:cSld"),c=F(f,"p:spTree"),d=await Nv(f,r,l,e,i),h=await e.getText(t)||"",v=Mu(h),g=await Wo(c,{theme:r,rels:l,zip:e,slideBasePath:i,orderMap:v}),m=[],p=[];for(const b of g)(b.phType||b.phIdx)&&m.push({type:b.phType,idx:b.phIdx,node:b});const y=new Set(m.map(b=>b.node));for(const b of g)y.has(b)||p.push(b);let _=null;for(const b of Object.values(l))if(b.includes("slideMaster")){_=sa(i,b);break}return{path:t,background:d,nodes:p,placeholders:m,masterPath:_}}async function hx(e,t,r){const n=await e.getXml(t),i=t.substring(0,t.lastIndexOf("/")),a=t.substring(t.lastIndexOf("/")+1),o=`${i}/_rels/${a}.rels`,s=await e.getXml(o),l=vi(s),u=n==null?void 0:n["p:sldMaster"],f=F(u,"p:cSld"),c=F(f,"p:spTree"),d=await Nv(f,r,l,e,i),h=await e.getText(t)||"",v=Mu(h),g=await Wo(c,{theme:r,rels:l,zip:e,slideBasePath:i,orderMap:v}),m=[],p=[];for(const L of g)(L.phType||L.phIdx)&&m.push({type:L.phType,idx:L.phIdx,node:L});const y=new Set(m.map(L=>L.node));for(const L of g)y.has(L)||p.push(L);const _=F(u,"p:txStyles"),b=F(_,"p:titleStyle"),x=F(_,"p:bodyStyle"),w=F(_,"p:otherStyle"),S={titleStyle:b?Ho(b,r,l):null,bodyStyle:x?Ho(x,r,l):null,otherStyle:w?Ho(w,r,l):null};return{path:t,background:d,nodes:p,placeholders:m,txStyles:S}}async function Nv(e,t,r,n,i){const a=F(e,"p:bg");if(!a)return{type:"none"};const o=F(a,"p:bgPr");if(o)return Tv(o,t,r,n,i);const s=F(a,"p:bgRef");if(s){const{color:l}=lr(s,t);return{type:"solid",color:l,opacity:1}}return{type:"none"}}function Mr(e){if(!e)return;const t=F(e,"a:tcStyle");if(!t)return;let r;if(t["a:solidFill"])r={"a:solidFill":t["a:solidFill"]};else if(t["a:gradFill"])r={"a:gradFill":t["a:gradFill"]};else if(t["a:pattFill"])r={"a:pattFill":t["a:pattFill"]};else if(t["a:noFill"])r={"a:noFill":t["a:noFill"]};else if(t["a:fillRef"])r={"a:solidFill":t["a:fillRef"]};else if(F(t,"a:fill")){const a=F(t,"a:fill");a["a:solidFill"]?r={"a:solidFill":a["a:solidFill"]}:a["a:gradFill"]?r={"a:gradFill":a["a:gradFill"]}:a["a:pattFill"]?r={"a:pattFill":a["a:pattFill"]}:a["a:noFill"]?r={"a:noFill":a["a:noFill"]}:a["a:fillRef"]&&(r={"a:solidFill":a["a:fillRef"]})}const n=F(t,"a:tcBdr");let i;return n&&(i={},F(n,"a:top")&&(i.top=F(F(n,"a:top"),"a:ln")),F(n,"a:bottom")&&(i.bottom=F(F(n,"a:bottom"),"a:ln")),F(n,"a:left")&&(i.left=F(F(n,"a:left"),"a:ln")),F(n,"a:right")&&(i.right=F(F(n,"a:right"),"a:ln")),F(n,"a:insideH")&&(i.insideH=F(F(n,"a:insideH"),"a:ln")),F(n,"a:insideV")&&(i.insideV=F(F(n,"a:insideV"),"a:ln"))),{fill:r,borders:i}}async function dx(e){const t={},r=await e.getXml("ppt/tableStyles.xml");if(!r)return t;const n=F(r,"a:tblStyleLst");if(!n)return t;for(const i of Pt(n,"a:tblStyle")){const a=q(i,"styleId");a&&(t[a]={styleId:a,name:q(i,"styleName")||"",wholeTbl:Mr(F(i,"a:wholeTbl")),band1H:Mr(F(i,"a:band1H")),band2H:Mr(F(i,"a:band2H")),band1V:Mr(F(i,"a:band1V")),band2V:Mr(F(i,"a:band2V")),firstRow:Mr(F(i,"a:firstRow")),lastRow:Mr(F(i,"a:lastRow")),firstCol:Mr(F(i,"a:firstCol")),lastCol:Mr(F(i,"a:lastCol"))})}return t}async function $v(e){const t=new VS;await t.load(e);const r=await US(t);let n=await ZS(t,r.themeRef);const i=await t.getXml("ppt/slideMasters/slideMaster1.xml");i&&(n=YS(i,n));const a=new Map,o=new Map,s=new Set;for(const c of r.slideRefs){const d=c.path.substring(0,c.path.lastIndexOf("/")),h=c.path.substring(c.path.lastIndexOf("/")+1),v=`${d}/_rels/${h}.rels`,g=await t.getXml(v),m=vi(g);for(const p of Object.values(m))p.includes("slideLayout")&&s.add(sa(d,p))}const l=t.getFileNames();for(const c of l)c.match(/^ppt\/slideLayouts\/slideLayout\d+\.xml$/)&&s.add(c);for(const c of s)try{const d=await cx(t,c,n);if(a.set(c,d),d.masterPath&&!o.has(d.masterPath)){const h=await hx(t,d.masterPath,n);o.set(d.masterPath,h)}}catch(d){console.warn(`Failed to parse layout ${c}:`,d)}const u=await dx(t),f=await Promise.all(r.slideRefs.map((c,d)=>sx(t,c.path,d,n,a,o,u)));return f.forEach((c,d)=>{console.debug(`[pptx] slide ${d+1}: ${c.nodes.length} nodes, bg=${c.background.type}`,c)}),console.debug(`[pptx] presentation: ${r.width}x${r.height}px, ${f.length} slides`),{width:r.width,height:r.height,slides:f,theme:n}}function vx(e){const[t,r]=Xt.useState(null),[n,i]=Xt.useState(!1),[a,o]=Xt.useState(null);return Xt.useEffect(()=>{if(!e){r(null);return}let s=!1;return i(!0),o(null),$v(e).then(l=>{s||r(l)}).catch(l=>{s||o(l instanceof Error?l:new Error(String(l)))}).finally(()=>{s||i(!1)}),()=>{s=!0}},[e]),{data:t,loading:n,error:a}}const Ov={pct5:`<rect width="8" height="8" fill="{bg}"/><circle cx="2" cy="2" r="1" fill="{fg}"/>
|
|
19
|
+
<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}"/>
|
|
20
|
+
<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}"/>
|
|
21
|
+
<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}"/>
|
|
22
|
+
<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}"/>
|
|
23
|
+
<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}"/>
|
|
24
|
+
<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}"/>
|
|
25
|
+
<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"/>'},px=Ov.pct10;function gx(e,t,r){const n=Ov[e]||px,i=n.includes('width="16"')?16:8,o=`
|
|
26
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="${i}" height="${i}">
|
|
27
|
+
${n.replace(/\{fg\}/g,t).replace(/\{bg\}/g,r)}
|
|
28
|
+
</svg>
|
|
29
|
+
`.trim();return`data:image/svg+xml;base64,${btoa(o)}`}function Zo(e){switch(e.type){case"solid":return{backgroundColor:e.opacity<1?mx(e.color,e.opacity):e.color};case"gradient":{const t=e.stops.map(r=>`${r.color} ${r.position}%`).join(", ");if(e.gradientType==="radial"||e.gradientType==="rect"){const r=e.center||{l:.5,t:.5,r:.5,b:.5},n=(r.l+(1-r.r))/2*100,i=(r.t+(1-r.b))/2*100;return{background:`radial-gradient(ellipse at ${n}% ${i}%, ${t})`}}return{background:`linear-gradient(${(270-(e.angle||0))%360}deg, ${t})`}}case"pattern":return{backgroundImage:`url("${gx(e.preset,e.fgColor,e.bgColor)}")`,backgroundRepeat:"repeat"};case"image":return{backgroundImage:`url(${e.src})`,backgroundSize:e.stretch?"cover":"contain",backgroundPosition:"center",backgroundRepeat:"no-repeat"};case"none":return{}}}function mx(e,t){const r=e.replace("#",""),n=parseInt(r.substring(0,2),16),i=parseInt(r.substring(2,4),16),a=parseInt(r.substring(4,6),16);return`rgba(${n}, ${i}, ${a}, ${t})`}function Yo({textBody:e,width:t,height:r}){const{bodyProps:n,paragraphs:i}=e,a={width:t?`${t}px`:"100%",height:r?`${r}px`:"100%",paddingLeft:`${n.lIns}px`,paddingTop:`${n.tIns}px`,paddingRight:`${n.rIns}px`,paddingBottom:`${n.bIns}px`,display:"flex",flexDirection:"column",boxSizing:"border-box",position:"relative"};n.vertAlign==="middle"?a.justifyContent="center":n.vertAlign==="bottom"&&(a.justifyContent="flex-end"),n.wrap||(a.whiteSpace="nowrap");const o={},s=Xt.useRef(null);return Xt.useLayoutEffect(()=>{if(n.autofit==="normAutofit"&&r&&s.current){const l=s.current;l.style.setProperty("--font-scale","1");let u=1,f=20;const c=r;for(;l.scrollHeight>c&&u>.1&&f>0;)u-=.05,l.style.setProperty("--font-scale",u.toString()),f--}},[n.autofit,r,e,t]),tt.jsx("div",{ref:s,style:{...a,"--font-scale":"1"},children:i.map((l,u)=>{var m,p,y;const f=l.props.level??0,c=f*18,d={margin:0,textAlign:l.props.align,paddingLeft:l.props.marginLeft?`${l.props.marginLeft}px`:c?`${c}px`:void 0,textIndent:l.props.indent?`${l.props.indent}px`:void 0,marginTop:l.props.spaceBefore?`calc(var(--font-scale, 1) * ${l.props.spaceBefore}px)`:void 0,marginBottom:l.props.spaceAfter?`calc(var(--font-scale, 1) * ${l.props.spaceAfter}px)`:void 0};l.props.lineSpacing!==null&&l.props.lineSpacing!==void 0&&(d.lineHeight=l.props.lineSpacing<=5?l.props.lineSpacing:`calc(var(--font-scale, 1) * ${l.props.lineSpacing}px)`);const h=l.runs.some(_=>_.text.length>0);let v=null;if(l.props.bullet&&h){const _=l.props.bullet;if(_.type==="char")v=_.char||"•";else if(_.type==="autoNum"){Object.keys(o).forEach(x=>{Number(x)>f&&delete o[Number(x)]});const b=(o[f]||(_.startAt??1)-1)+1;o[f]=b,v=_x(b,_.autoNumType||"arabicPeriod")}}const g={display:"inline-block",width:l.props.indent?`${Math.abs(l.props.indent)}px`:"1.2em",textAlign:"left",color:((m=l.props.bullet)==null?void 0:m.color)??void 0,fontSize:(p=l.props.bullet)!=null&&p.fontSize?`calc(var(--font-scale, 1) * ${l.props.bullet.fontSize}px)`:void 0,fontFamily:((y=l.props.bullet)==null?void 0:y.fontFamily)??void 0};return tt.jsxs("p",{style:d,children:[v&&h&&tt.jsx("span",{style:g,children:v}),l.runs.map((_,b)=>tt.jsx(yx,{run:_},b)),!h&&tt.jsx("span",{children:" "})]},u)})})}function yx({run:e}){if(e.type==="break")return tt.jsx("br",{});const t=e.props,r={};t.fontFamily&&(r.fontFamily=t.fontFamily),t.fontSize&&(r.fontSize=`calc(var(--font-scale, 1) * ${t.fontSize}px)`),t.bold&&(r.fontWeight="bold"),t.italic&&(r.fontStyle="italic"),t.color&&(r.color=t.color),t.highlight&&(r.backgroundColor=t.highlight);const n=[];t.underline&&n.push("underline"),t.strikethrough&&n.push("line-through"),n.length&&(r.textDecoration=n.join(" ")),t.baseline&&t.baseline>0?(r.verticalAlign="super",r.fontSize=`calc(var(--font-scale, 1) * ${(t.fontSize??12)*.65}px)`):t.baseline&&t.baseline<0&&(r.verticalAlign="sub",r.fontSize=`calc(var(--font-scale, 1) * ${(t.fontSize??12)*.65}px)`);const i=tt.jsx("span",{style:r,children:e.text});return t.hyperlink?tt.jsx("a",{href:t.hyperlink,target:"_blank",rel:"noopener noreferrer",style:{color:t.color??"#0563C1",textDecoration:"underline"},children:i}):i}function _x(e,t){const r=t.includes("alpha"),n=t.includes("Lc"),i=t.includes("roman");let a=e.toString();return r?a=String.fromCharCode((n?97:65)+(e-1)%26):i&&(a=bx(e),n&&(a=a.toLowerCase())),t.includes("ParenBoth")?`(${a})`:t.includes("ParenR")?`${a})`:`${a}.`}function bx(e){const t={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};let r="";for(const n of Object.keys(t)){const i=Math.floor(e/t[n]);e-=i*t[n],r+=n.repeat(i)}return r||"0"}function $e(e,t,r,n){const i=e/2,a=t/2,o=e/2,s=t/2,l=[];for(let u=0;u<r*2;u++){const f=u*Math.PI/r-Math.PI/2,c=u%2===0?1:n;l.push(`${i+o*c*Math.cos(f)},${a+s*c*Math.sin(f)}`)}return`M${l.join(" L")} Z`}function da(e,t,r){const n=e/2,i=t/2,a=[];for(let o=0;o<r;o++){const s=o*2*Math.PI/r-Math.PI/2;a.push(`${n+e/2*Math.cos(s)},${i+t/2*Math.sin(s)}`)}return`M${a.join(" L")} Z`}const Sx={rect:(e,t)=>`M0,0 L${e},0 L${e},${t} L0,${t} Z`,roundRect:(e,t)=>{const r=Math.min(e,t)*.1;return`M${r},0 L${e-r},0 Q${e},0 ${e},${r} L${e},${t-r} Q${e},${t} ${e-r},${t} L${r},${t} Q0,${t} 0,${t-r} L0,${r} Q0,0 ${r},0 Z`},snip1Rect:(e,t)=>{const r=Math.min(e,t)*.2;return`M0,0 L${e-r},0 L${e},${r} L${e},${t} L0,${t} Z`},snip2SameRect:(e,t)=>{const r=Math.min(e,t)*.2;return`M0,0 L${e-r},0 L${e},${r} L${e},${t} L${r},${t} L0,${t-r} Z`},snipRoundRect:(e,t)=>{const r=Math.min(e,t)*.15,n=r;return`M0,0 L${e-r},0 L${e},${r} L${e},${t-n} Q${e},${t} ${e-n},${t} L${n},${t} Q0,${t} 0,${t-n} Z`},round1Rect:(e,t)=>{const r=Math.min(e,t)*.2;return`M0,0 L${e},0 L${e},${t-r} Q${e},${t} ${e-r},${t} L0,${t} Z`},round2DiagRect:(e,t)=>{const r=Math.min(e,t)*.15;return`M${r},0 L${e},0 L${e},${t-r} Q${e},${t} ${e-r},${t} L0,${t} L0,${r} Q0,0 ${r},0 Z`},triangle:(e,t)=>`M${e/2},0 L${e},${t} L0,${t} Z`,rtTriangle:(e,t)=>`M0,0 L${e},${t} L0,${t} Z`,isocelesTrapezoid:(e,t)=>`M${e*.2},0 L${e*.8},0 L${e},${t} L0,${t} Z`,trapezoid:(e,t)=>`M${e*.15},0 L${e*.85},0 L${e},${t} L0,${t} Z`,ellipse:(e,t)=>{const r=e/2,n=t/2;return`M${r},0 A${r},${n} 0 1,1 ${r},${t} A${r},${n} 0 1,1 ${r},0 Z`},flowChartConnector:(e,t)=>{const r=e/2,n=t/2;return`M${r},0 A${r},${n} 0 1,1 ${r},${t} A${r},${n} 0 1,1 ${r},0 Z`},diamond:(e,t)=>`M${e/2},0 L${e},${t/2} L${e/2},${t} L0,${t/2} Z`,parallelogram:(e,t)=>`M${e*.2},0 L${e},0 L${e*.8},${t} L0,${t} Z`,pentagon:(e,t)=>da(e,t,5),hexagon:(e,t)=>da(e,t,6),heptagon:(e,t)=>da(e,t,7),octagon:(e,t)=>{const r=e*.29;return`M${r},0 L${e-r},0 L${e},${r} L${e},${t-r} L${e-r},${t} L${r},${t} L0,${t-r} L0,${r} Z`},decagon:(e,t)=>da(e,t,10),dodecagon:(e,t)=>da(e,t,12),pie:(e,t)=>{const r=Math.min(e,t)/2,n=e/2,i=t/2;return`M${n},${i} L${n+r},${i} A${r},${r} 0 1,1 ${n},${i-r} Z`},star4:(e,t)=>$e(e,t,4,.38),star5:(e,t)=>$e(e,t,5,.38),star6:(e,t)=>$e(e,t,6,.5),star7:(e,t)=>$e(e,t,7,.42),star8:(e,t)=>$e(e,t,8,.38),star10:(e,t)=>$e(e,t,10,.38),star12:(e,t)=>$e(e,t,12,.47),star16:(e,t)=>$e(e,t,16,.47),star24:(e,t)=>$e(e,t,24,.6),star32:(e,t)=>$e(e,t,32,.65),irregularSeal1:(e,t)=>$e(e,t,8,.3),irregularSeal2:(e,t)=>$e(e,t,10,.35),rightArrow:(e,t)=>`M0,${t*.25} L${e*.6},${t*.25} L${e*.6},0 L${e},${t/2} L${e*.6},${t} L${e*.6},${t*.75} L0,${t*.75} Z`,leftArrow:(e,t)=>`M${e},${t*.25} L${e*.4},${t*.25} L${e*.4},0 L0,${t/2} L${e*.4},${t} L${e*.4},${t*.75} L${e},${t*.75} Z`,upArrow:(e,t)=>`M${e*.25},${t} L${e*.25},${t*.4} L0,${t*.4} L${e/2},0 L${e},${t*.4} L${e*.75},${t*.4} L${e*.75},${t} Z`,downArrow:(e,t)=>`M${e*.25},0 L${e*.75},0 L${e*.75},${t*.6} L${e},${t*.6} L${e/2},${t} L0,${t*.6} L${e*.25},${t*.6} Z`,leftRightArrow:(e,t)=>`M0,${t/2} L${e*.3},0 L${e*.3},${t*.25} L${e*.7},${t*.25} L${e*.7},0 L${e},${t/2} L${e*.7},${t} L${e*.7},${t*.75} L${e*.3},${t*.75} L${e*.3},${t} Z`,upDownArrow:(e,t)=>`M${e/2},0 L${e},${t*.3} L${e*.75},${t*.3} L${e*.75},${t*.7} L${e},${t*.7} L${e/2},${t} L0,${t*.7} L${e*.25},${t*.7} L${e*.25},${t*.3} L0,${t*.3} Z`,quadArrow:(e,t)=>{const r=e*.35,n=e*.25;return`M${e/2},0 L${e/2+n},${r} L${e/2+n/2},${r} L${e/2+n/2},${e/2-n/2} L${e-r},${e/2-n/2} L${e-r},${e/2-n} L${e},${e/2} L${e-r},${e/2+n} L${e-r},${e/2+n/2} L${e/2+n/2},${e/2+n/2} L${e/2+n/2},${t-r} L${e/2+n},${t-r} L${e/2},${t} L${e/2-n},${t-r} L${e/2-n/2},${t-r} L${e/2-n/2},${e/2+n/2} L${r},${e/2+n/2} L${r},${e/2+n} L0,${e/2} L${r},${e/2-n} L${r},${e/2-n/2} L${e/2-n/2},${e/2-n/2} L${e/2-n/2},${r} L${e/2-n},${r} Z`},notchedRightArrow:(e,t)=>`M0,${t*.25} L${e*.7},${t*.25} L${e*.7},0 L${e},${t/2} L${e*.7},${t} L${e*.7},${t*.75} L0,${t*.75} L${e*.2},${t/2} Z`,homePlate:(e,t)=>`M0,0 L${e*.75},0 L${e},${t/2} L${e*.75},${t} L0,${t} Z`,chevron:(e,t)=>`M0,0 L${e*.75},0 L${e},${t/2} L${e*.75},${t} L0,${t} L${e*.25},${t/2} Z`,stripedRightArrow:(e,t)=>`M0,${t*.25} L${e*.25},${t*.25} L${e*.25},0 L${e},${t/2} L${e*.25},${t} L${e*.25},${t*.75} L0,${t*.75} Z`,bentUpArrow:(e,t)=>`M0,${t} L0,${t*.35} L${e*.5},${t*.35} L${e*.5},0 L${e*.65},0 L${e*.65},${t*.35} L${e},${t*.35} L${e*.75},${t*.1} L${e*1},${t*.6} L${e*.75},${t*.85} L${e},${t*.35} L${e*.65},${t*.35} L${e*.65},${t} Z`,wedgeRectCallout:(e,t)=>`M0,0 L${e},0 L${e},${t*.7} L${e*.35},${t*.7} L${e*.2},${t} L${e*.3},${t*.7} L0,${t*.7} Z`,wedgeRoundRectCallout:(e,t)=>{const r=Math.min(e,t)*.08;return`M${r},0 L${e-r},0 Q${e},0 ${e},${r} L${e},${t*.7-r} Q${e},${t*.7} ${e-r},${t*.7} L${e*.35},${t*.7} L${e*.2},${t} L${e*.3},${t*.7} L${r},${t*.7} Q0,${t*.7} 0,${t*.7-r} L0,${r} Q0,0 ${r},0 Z`},wedgeEllipseCallout:(e,t)=>{const r=e/2,n=t*.35;return`M${r},0 A${r},${n} 0 1,1 ${e*.35},${n*2} L${e*.2},${t} L${e*.45},${n*2} A${r},${n} 0 0,1 ${r},0 Z`},cloudCallout:(e,t)=>`M${e*.25},${t*.75} Q0,${t*.75} 0,${t*.55} Q0,${t*.35} ${e*.2},${t*.3} Q${e*.15},0 ${e/2},${t*.15} Q${e*.85},0 ${e*.8},${t*.3} Q${e},${t*.35} ${e},${t*.55} Q${e},${t*.75} ${e*.75},${t*.75} L${e*.4},${t*.75} L${e*.2},${t} L${e*.35},${t*.75} Z`,borderCallout1:(e,t)=>`M0,0 L${e},0 L${e},${t} L${e*.35},${t} L${e*.1},${t*1.2} L${e*.3},${t} L0,${t} Z`,borderCallout2:(e,t)=>`M0,0 L${e},0 L${e},${t} L0,${t} L${e*.1},${t*1.3} Z`,flowChartProcess:(e,t)=>`M0,0 L${e},0 L${e},${t} L0,${t} Z`,flowChartDecision:(e,t)=>`M${e/2},0 L${e},${t/2} L${e/2},${t} L0,${t/2} Z`,flowChartInputOutput:(e,t)=>`M${e*.15},0 L${e},0 L${e*.85},${t} L0,${t} Z`,flowChartTerminator:(e,t)=>{const r=t/2;return`M${r},0 L${e-r},0 Q${e},0 ${e},${r} Q${e},${t} ${e-r},${t} L${r},${t} Q0,${t} 0,${r} Q0,0 ${r},0 Z`},flowChartPredefinedProcess:(e,t)=>`M0,0 L${e},0 L${e},${t} L0,${t} Z M${e*.1},0 L${e*.1},${t} M${e*.9},0 L${e*.9},${t}`,flowChartManualInput:(e,t)=>`M0,${t*.3} L${e},0 L${e},${t} L0,${t} Z`,flowChartManualOperation:(e,t)=>`M0,0 L${e},0 L${e*.85},${t} L${e*.15},${t} Z`,flowChartDelay:(e,t)=>{const r=t/2;return`M0,0 L${e-r},0 Q${e},0 ${e},${r} Q${e},${t} ${e-r},${t} L0,${t} Z`},flowChartDocument:(e,t)=>`M0,0 L${e},0 L${e},${t*.75} Q${e*.75},${t} ${e/2},${t*.85} Q${e*.25},${t*.7} 0,${t*.85} Z`,flowChartMultidocument:(e,t)=>`M${e*.05},${t*.1} L${e},${t*.1} L${e},${t*.8} Q${e*.8},${t*.9} ${e/2+e*.05},${t*.75} Q${e*.3},${t*.6} ${e*.05},${t*.75} Z`,flowChartAlternateProcess:(e,t)=>{const r=Math.min(e,t)*.2;return`M${r},0 L${e-r},0 Q${e},0 ${e},${r} L${e},${t-r} Q${e},${t} ${e-r},${t} L${r},${t} Q0,${t} 0,${t-r} L0,${r} Q0,0 ${r},0 Z`},flowChartOfflineStorage:(e,t)=>`M0,0 L${e},0 L${e/2},${t} Z`,flowChartOnlineStorage:(e,t)=>{const r=t/2;return`M${r},0 A${r},${r} 0 0,0 ${r},${t} L${e},${t} A${r},${r} 0 0,0 ${e},0 Z`},flowChartExtract:(e,t)=>`M${e/2},0 L${e},${t} L0,${t} Z`,flowChartMerge:(e,t)=>`M0,0 L${e},0 L${e/2},${t} Z`,flowChartCollate:(e,t)=>`M0,0 L${e},0 L${e/2},${t/2} L${e},${t} L0,${t} L${e/2},${t/2} Z`,flowChartSort:(e,t)=>`M${e/2},0 L${e},${t/2} L${e/2},${t} L0,${t/2} Z M0,${t/2} L${e},${t/2}`,flowChartSummingJunction:(e,t)=>{const r=Math.min(e,t)/2,n=e/2,i=t/2;return`M${n+r},${i} A${r},${r} 0 1,1 ${n-r},${i} A${r},${r} 0 0,1 ${n+r},${i} Z M${n-r*.7},${i-r*.7} L${n+r*.7},${i+r*.7} M${n+r*.7},${i-r*.7} L${n-r*.7},${i+r*.7}`},flowChartDatabase:(e,t)=>{const r=t*.1;return`M0,${r} Q0,0 ${e/2},0 Q${e},0 ${e},${r} L${e},${t-r} Q${e},${t} ${e/2},${t} Q0,${t} 0,${t-r} Z M0,${r} Q0,${r*2} ${e/2},${r*2} Q${e},${r*2} ${e},${r}`},cube:(e,t)=>{const r=Math.min(e,t)*.2;return`M${r},0 L${e},0 L${e},${t-r} L${e-r},${t} L0,${t} L0,${r} Z M${r},0 L0,${r} M${e},0 L${r},0 L0,${r} M${e},${t-r} L${e-r},${t}`},bevel:(e,t)=>{const r=Math.min(e,t)*.12;return`M${r},0 L${e-r},0 L${e},${r} L${e},${t-r} L${e-r},${t} L${r},${t} L0,${t-r} L0,${r} Z`},plaque:(e,t)=>{const r=Math.min(e,t)*.15;return`M0,${r} Q0,0 ${r},0 L${e-r},0 Q${e},0 ${e},${r} L${e},${t-r} Q${e},${t} ${e-r},${t} L${r},${t} Q0,${t} 0,${t-r} Z M${r},0 Q${r},${r} 0,${r} M${e-r},0 Q${e-r},${r} ${e},${r} M${e},${t-r} Q${e-r},${t-r} ${e-r},${t} M0,${t-r} Q${r},${t-r} ${r},${t}`},can:(e,t)=>{const r=t*.1;return`M0,${r} Q0,0 ${e/2},0 Q${e},0 ${e},${r} L${e},${t-r} Q${e},${t} ${e/2},${t} Q0,${t} 0,${t-r} Z M0,${r} Q0,${r*2} ${e/2},${r*2} Q${e},${r*2} ${e},${r}`},folderCorner:(e,t)=>`M0,0 L${e*.4},0 L${e*.5},${t*.15} L${e},${t*.15} L${e},${t} L0,${t} Z`,noSmoking:(e,t)=>{const r=Math.min(e,t)/2,n=e/2,i=t/2;return`M${n+r},${i} A${r},${r} 0 1,1 ${n-r},${i} A${r},${r} 0 0,1 ${n+r},${i} Z M${n-r*.65},${i-r*.35} L${n+r*.65},${i+r*.35}`},smileyFace:(e,t)=>{const r=Math.min(e,t)/2,n=e/2,i=t/2;return`M${n+r},${i} A${r},${r} 0 1,1 ${n-r},${i} A${r},${r} 0 0,1 ${n+r},${i} Z M${n-r*.3},${i-r*.2} A${r*.05},${r*.05} 0 1,1 ${n-r*.3-.1},${i-r*.2} M${n+r*.3},${i-r*.2} A${r*.05},${r*.05} 0 1,1 ${n+r*.3-.1},${i-r*.2} M${n-r*.35},${i+r*.1} Q${n},${i+r*.5} ${n+r*.35},${i+r*.1}`},heart:(e,t)=>`M${e/2},${t*.25} C${e/2},${t*.03} ${e*.85},-${t*.05} ${e},${t*.25} C${e*1.1},${t*.5} ${e/2},${t*.85} ${e/2},${t} C${e/2},${t*.85} -${e*.1},${t*.5} 0,${t*.25} C${e*.15},-${t*.05} ${e/2},${t*.03} ${e/2},${t*.25} Z`,lightningBolt:(e,t)=>`M${e*.55},0 L${e*.2},${t*.5} L${e*.45},${t*.5} L${e*.45},${t} L${e*.8},${t*.5} L${e*.55},${t*.5} Z`,moon:(e,t)=>`M${e*.5},0 A${e*.5},${t*.5} 0 1,1 ${e*.5},${t} A${e*.3},${t*.4} 0 1,0 ${e*.5},0 Z`,sun:(e,t)=>{const r=e/2,n=t/2,i=Math.min(e,t)*.25;let a=`M${r+i},${n} A${i},${i} 0 1,1 ${r-i},${n} A${i},${i} 0 0,1 ${r+i},${n} Z`;for(let o=0;o<8;o++){const s=o*Math.PI/4,l=i*1.4,u=i*1.7;a+=` M${r+l*Math.cos(s)},${n+l*Math.sin(s)} L${r+u*Math.cos(s)},${n+u*Math.sin(s)}`}return a},donut:(e,t)=>{const r=e/2,n=t/2,i=r*.5,a=n*.5;return`M${r*2},${n} A${r},${n} 0 1,1 0,${n} A${r},${n} 0 0,1 ${r*2},${n} Z M${r+i},${n} A${i},${a} 0 1,0 ${r-i},${n} A${i},${a} 0 0,0 ${r+i},${n} Z`},ribbon:(e,t)=>`M0,${t*.15} L${e*.15},0 L${e*.15},${t*.85} L0,${t} L${e*.15},${t*.7} L${e*.85},${t*.7} L${e},${t} L${e*.85},${t*.85} L${e*.85},0 L${e},${t*.15} L${e*.85},${t*.3} L${e*.15},${t*.3} Z`,ribbon2:(e,t)=>`M0,${t*.15} L${e*.15},${t*.15} L${e*.15},0 L${e*.85},0 L${e*.85},${t*.15} L${e},${t*.15} L${e*.9},${t*.5} L${e},${t*.85} L${e*.85},${t*.85} L${e*.85},${t} L${e*.15},${t} L${e*.15},${t*.85} L0,${t*.85} L${e*.1},${t*.5} Z`,ellipseRibbon:(e,t)=>`M0,${t*.3} Q${e/2},0 ${e},${t*.3} L${e},${t} L${e*.85},${t*.7} L${e*.15},${t*.7} L0,${t} Z`,wave:(e,t)=>`M0,${t*.35} Q${e*.25},0 ${e*.5},${t*.3} Q${e*.75},${t*.6} ${e},${t*.3} L${e},${t*.7} Q${e*.75},${t*.4} ${e*.5},${t*.7} Q${e*.25},${t} 0,${t*.65} Z`,doubleWave:(e,t)=>`M0,${t*.35} Q${e*.125},0 ${e*.25},${t*.3} Q${e*.375},${t*.6} ${e*.5},${t*.3} Q${e*.625},0 ${e*.75},${t*.3} Q${e*.875},${t*.6} ${e},${t*.3} L${e},${t*.7} Q${e*.875},${t*.4} ${e*.75},${t*.7} Q${e*.625},${t} ${e*.5},${t*.7} Q${e*.375},${t*.4} ${e*.25},${t*.7} Q${e*.125},${t} 0,${t*.65} Z`,mathPlus:(e,t)=>{const r=e/3;return`M${r},0 L${e-r},0 L${e-r},${r} L${e},${r} L${e},${t-r} L${e-r},${t-r} L${e-r},${t} L${r},${t} L${r},${t-r} L0,${t-r} L0,${r} L${r},${r} Z`},mathMinus:(e,t)=>`M0,${t/3} L${e},${t/3} L${e},${t*2/3} L0,${t*2/3} Z`,mathMultiply:(e,t)=>{const r=e*.25;return`M${r},0 L${e/2},${t/2-r} L${e-r},0 L${e},${r} L${e/2+r},${t/2} L${e},${t-r} L${e-r},${t} L${e/2},${t/2+r} L${r},${t} L0,${t-r} L${e/2-r},${t/2} L0,${r} Z`},mathDivide:(e,t)=>`M${e*.3},${t*.5-t*.05} L${e*.7},${t*.5-t*.05} L${e*.7},${t*.5+t*.05} L${e*.3},${t*.5+t*.05} Z M${e/2-e*.06},${t*.1} A${e*.06},${t*.1} 0 1,0 ${e/2+e*.06},${t*.1} A${e*.06},${t*.1} 0 0,0 ${e/2-e*.06},${t*.1} Z M${e/2-e*.06},${t*.9} A${e*.06},${t*.1} 0 1,0 ${e/2+e*.06},${t*.9} A${e*.06},${t*.1} 0 0,0 ${e/2-e*.06},${t*.9} Z`,mathEqual:(e,t)=>{const r=t*.12;return`M0,${t/2-r-t*.1} L${e},${t/2-r-t*.1} L${e},${t/2-r} L0,${t/2-r} Z M0,${t/2+r} L${e},${t/2+r} L${e},${t/2+r+t*.1} L0,${t/2+r+t*.1} Z`},mathNotEqual:(e,t)=>{const r=t*.1;return`M0,${t/2-r-t*.08} L${e},${t/2-r-t*.08} L${e},${t/2-r} L0,${t/2-r} Z M0,${t/2+r} L${e},${t/2+r} L${e},${t/2+r+t*.08} L0,${t/2+r+t*.08} Z M${e*.3},0 L${e*.7},${t}`},line:(e,t)=>`M0,${t/2} L${e},${t/2}`,straightConnector1:(e,t)=>`M0,${t/2} L${e},${t/2}`,bentConnector2:(e,t)=>`M0,0 L${e},${t}`,bentConnector3:(e,t)=>`M0,0 L${e/2},0 L${e/2},${t} L${e},${t}`,bentConnector4:(e,t)=>`M0,0 L${e*.33},0 L${e*.33},${t} L${e*.67},${t} L${e*.67},0 L${e},0`,bentConnector5:(e,t)=>`M0,0 L0,${t/2} L${e},${t/2} L${e},${t}`,curvedConnector2:(e,t)=>`M0,0 Q${e},0 ${e},${t}`,curvedConnector3:(e,t)=>`M0,0 C${e/2},0 ${e/2},${t} ${e},${t}`,curvedConnector4:(e,t)=>`M0,0 C${e*.33},0 ${e*.33},${t} ${e*.67},${t} S${e},0 ${e},0`,curvedConnector5:(e,t)=>`M0,0 C0,${t/3} ${e},${t/3} ${e},${t/2} C${e},${t*2/3} 0,${t*2/3} 0,${t}`,accentCallout1:(e,t)=>`M0,0 L${e},0 L${e},${t*.7} L${e*.35},${t*.7} L${e*.2},${t} L${e*.3},${t*.7} L0,${t*.7} Z`,leftBrace:(e,t)=>`M${e},${t*.1} Q${e*.6},${t*.1} ${e*.5},${t*.25} Q${e*.4},${t*.4} 0,${t/2} Q${e*.4},${t*.6} ${e*.5},${t*.75} Q${e*.6},${t*.9} ${e},${t*.9}`,rightBrace:(e,t)=>`M0,${t*.1} Q${e*.4},${t*.1} ${e*.5},${t*.25} Q${e*.6},${t*.4} ${e},${t/2} Q${e*.6},${t*.6} ${e*.5},${t*.75} Q${e*.4},${t*.9} 0,${t*.9}`,leftBracket:(e,t)=>`M${e},0 L${e*.3},0 L${e*.3},${t} L${e},${t}`,rightBracket:(e,t)=>`M0,0 L${e*.7},0 L${e*.7},${t} L0,${t}`,leftRightBrace:(e,t)=>{const r=e/2;return`M0,${t*.1} Q${r*.4},${t*.1} ${r*.5},${t*.25} Q${r*.6},${t*.4} ${r},${t/2} Q${r*.6},${t*.6} ${r*.5},${t*.75} Q${r*.4},${t*.9} 0,${t*.9} M${e},${t*.1} Q${e-r*.4},${t*.1} ${e-r*.5},${t*.25} Q${e-r*.6},${t*.4} ${r},${t/2} Q${e-r*.6},${t*.6} ${e-r*.5},${t*.75} Q${e-r*.4},${t*.9} ${e},${t*.9}`}};let xx=0;function Tx({node:e}){const{size:t,fill:r,border:n,textBody:i,presetGeom:a}=e,o=t.w,s=t.h,l=Xt.useMemo(()=>`shape-${xx++}`,[]),u=Sx[a],f=["line","straightConnector1","bentConnector2","bentConnector3","bentConnector4","bentConnector5","curvedConnector2","curvedConnector3","curvedConnector4","curvedConnector5"].includes(a);if(!e.custGeomPath&&a==="rect"&&r.type==="none"&&!n&&i)return tt.jsx(Yo,{textBody:i,width:o,height:s});const c=e.custGeomPath||(u?u(o,s):`M0,0 L${o},0 L${o},${s} L0,${s} Z`),d=r.type==="gradient",h=d?`grad-${l}`:"",v=()=>{if(r.type!=="gradient")return null;if(r.gradientType==="radial"||r.gradientType==="rect"){const S=r.center||{l:.5,t:.5,r:.5,b:.5},L=(S.l+(1-S.r))/2*100,C=(S.t+(1-S.b))/2*100;return tt.jsx("defs",{children:tt.jsx("radialGradient",{id:h,cx:`${L}%`,cy:`${C}%`,r:"70.7%",children:r.stops.map((D,I)=>tt.jsx("stop",{offset:`${D.position}%`,stopColor:D.color,stopOpacity:D.opacity},I))})})}const y=(270-(r.angle||0))%360*Math.PI/180,_=50-Math.cos(y)*50,b=50-Math.sin(y)*50,x=50+Math.cos(y)*50,w=50+Math.sin(y)*50;return tt.jsx("defs",{children:tt.jsx("linearGradient",{id:h,x1:`${_}%`,y1:`${b}%`,x2:`${x}%`,y2:`${w}%`,children:r.stops.map((S,L)=>tt.jsx("stop",{offset:`${S.position}%`,stopColor:S.color,stopOpacity:S.opacity},L))})})};if(!f&&(r.type==="image"||r.type==="pattern")){const p=Zo(r);return tt.jsxs("div",{style:{position:"relative",width:o,height:s},children:[tt.jsx("div",{style:{position:"absolute",inset:0,...p,clipPath:`path('${c}')`}}),n&&tt.jsx("svg",{width:o,height:s,viewBox:`0 0 ${o} ${s}`,style:{position:"absolute",inset:0},children:tt.jsx("path",{d:c,fill:"none",stroke:n.color,strokeWidth:n.width,strokeDasharray:Rv(n.dash)})}),i&&tt.jsx("div",{style:{position:"absolute",inset:0,overflow:"hidden"},children:tt.jsx(Yo,{textBody:i,width:o,height:s})})]})}const g=r.type==="gradient"?`url(#${h})`:Cx(r),m=r.type==="solid"?r.opacity:1;return tt.jsxs("div",{style:{position:"relative",width:o,height:s},children:[tt.jsxs("svg",{width:o,height:s,viewBox:`0 0 ${o} ${s}`,style:{position:"absolute",inset:0},overflow:"visible",children:[d&&v(),tt.jsx("path",{d:c,fill:f?"none":g,fillOpacity:f?0:m,stroke:n?n.color:"none",strokeWidth:(n==null?void 0:n.width)||0,strokeDasharray:Rv(n==null?void 0:n.dash)})]}),i&&tt.jsx("div",{style:{position:"absolute",inset:0,overflow:"hidden"},children:tt.jsx(Yo,{textBody:i,width:o,height:s})})]})}function Cx(e){switch(e.type){case"solid":return e.color;case"none":return"transparent";default:return"transparent"}}function Rv(e){if(!(!e||e==="solid")){if(e==="dash")return"8,4";if(e==="dot")return"2,2";if(e==="lgDash")return"12,4";if(e==="dashDot")return"8,4,2,4";if(e==="lgDashDot")return"12,4,2,4";if(e==="lgDashDotDot")return"12,4,2,4,2,4";if(e==="sysDash")return"6,2";if(e==="sysDot")return"2,2";if(e==="sysDashDot")return"6,2,2,2";if(e==="sysDashDotDot")return"6,2,2,2,2,2"}}function Ax({node:e}){const{size:t,src:r,srcRect:n}=e,i={width:`${t.w}px`,height:`${t.h}px`,display:"block"};return n&&(i.clipPath=`inset(${n.top}% ${n.right}% ${n.bottom}% ${n.left}%)`),r?tt.jsx("img",{src:r,alt:"",style:i,draggable:!1}):tt.jsx("div",{style:{...i,backgroundColor:"#f0f0f0",display:"flex",alignItems:"center",justifyContent:"center",color:"#999",fontSize:"12px"},children:"Image not found"})}function Ex({node:e}){const{size:t,colWidths:r,rows:n,tableFill:i}=e,a=i&&i.type!=="none"?Zo(i):{};return tt.jsx("div",{style:{width:t.w,minHeight:t.h,...a},children:tt.jsxs("table",{style:{width:`${t.w}px`,borderCollapse:"collapse",tableLayout:"fixed"},children:[tt.jsx("colgroup",{children:r.map((o,s)=>tt.jsx("col",{style:{width:`${o}px`}},s))}),tt.jsx("tbody",{children:n.map((o,s)=>tt.jsx("tr",{style:{height:`${o.height}px`},children:o.cells.map((l,u)=>{if(l.hMerge||l.vMerge)return null;const f=g=>{if(!g||g.width===0)return"none";const m=g.dash&&g.dash!=="solid"?"dashed":"solid";return`${g.width}px ${m} ${g.color}`},c=l.fill.type!=="none"?Zo(l.fill):{},d=l.anchor==="middle"?"middle":l.anchor==="bottom"?"bottom":"top",h=l.rowSpan>1?n.slice(s,s+l.rowSpan).reduce((g,m)=>g+m.height,0):o.height,v=Math.max(0,h-l.margins.top-l.margins.bottom);return tt.jsx("td",{colSpan:l.gridSpan>1?l.gridSpan:void 0,rowSpan:l.rowSpan>1?l.rowSpan:void 0,style:{height:`${h}px`,maxHeight:`${h}px`,...c,borderTop:f(l.borders.top),borderRight:f(l.borders.right),borderBottom:f(l.borders.bottom),borderLeft:f(l.borders.left),paddingTop:`${l.margins.top}px`,paddingBottom:`${l.margins.bottom}px`,paddingLeft:`${l.margins.left}px`,paddingRight:`${l.margins.right}px`,verticalAlign:d,boxSizing:"border-box"},children:tt.jsx(Yo,{textBody:l.textBody,width:void 0,height:v})},u)})},s))})]})})}function Lx({node:e}){const{size:t,childOffset:r,childExtent:n,children:i}=e,a=n.w>0?t.w/n.w:1,o=n.h>0?t.h/n.h:1;return tt.jsx("div",{style:{width:`${t.w}px`,height:`${t.h}px`,position:"relative",overflow:"hidden"},children:tt.jsx("div",{style:{position:"absolute",left:`${-r.x*a}px`,top:`${-r.y*o}px`,transform:`scale(${a}, ${o})`,transformOrigin:"0 0"},children:i.map((s,l)=>tt.jsx(mS,{node:s},l))})})}/*! *****************************************************************************
|
|
30
|
+
Copyright (c) Microsoft Corporation.
|
|
31
|
+
|
|
32
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
33
|
+
purpose with or without fee is hereby granted.
|
|
34
|
+
|
|
35
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
36
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
37
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
38
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
39
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
40
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
41
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
42
|
+
***************************************************************************** */var Pu=function(e,t){return Pu=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},Pu(e,t)};function it(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Pu(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var Mx=(function(){function e(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return e})(),Dx=(function(){function e(){this.browser=new Mx,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow=typeof window<"u"}return e})(),xt=new Dx;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(xt.wxa=!0,xt.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?xt.worker=!0:!xt.hasGlobalWindow||"Deno"in window||typeof navigator<"u"&&typeof navigator.userAgent=="string"&&navigator.userAgent.indexOf("Node.js")>-1?(xt.node=!0,xt.svgSupported=!0):Ix(navigator.userAgent,xt);function Ix(e,t){var r=t.browser,n=e.match(/Firefox\/([\d.]+)/),i=e.match(/MSIE\s([\d.]+)/)||e.match(/Trident\/.+?rv:(([\d.]+))/),a=e.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(e);n&&(r.firefox=!0,r.version=n[1]),i&&(r.ie=!0,r.version=i[1]),a&&(r.edge=!0,r.version=a[1],r.newEdge=+a[1].split(".")[0]>18),o&&(r.weChat=!0),t.svgSupported=typeof SVGRect<"u",t.touchEventsSupported="ontouchstart"in window&&!r.ie&&!r.edge,t.pointerEventsSupported="onpointerdown"in window&&(r.edge||r.ie&&+r.version>=11);var s=t.domSupported=typeof document<"u";if(s){var l=document.documentElement.style;t.transform3dSupported=(r.ie&&"transition"in l||r.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in l)&&!("OTransition"in l),t.transformSupported=t.transform3dSupported||r.ie&&+r.version>=9}}var Nu=12,Bv="sans-serif",Dr=Nu+"px "+Bv,kx=20,Px=100,Nx="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function $x(e){var t={};if(typeof JSON>"u")return t;for(var r=0;r<e.length;r++){var n=String.fromCharCode(r+32),i=(e.charCodeAt(r)-kx)/Px;t[n]=i}return t}var Ox=$x(Nx),Xr={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:(function(){var e,t;return function(r,n){if(!e){var i=Xr.createCanvas();e=i&&i.getContext("2d")}if(e)return t!==n&&(t=e.font=n||Dr),e.measureText(r);r=r||"",n=n||Dr;var a=/((?:\d+)?\.?\d*)px/.exec(n),o=a&&+a[1]||Nu,s=0;if(n.indexOf("mono")>=0)s=o*r.length;else for(var l=0;l<r.length;l++){var u=Ox[r[l]];s+=u==null?o:u*o}return{width:s}}})(),loadImage:function(e,t,r){var n=new Image;return n.onload=t,n.onerror=r,n.src=e,n}},Fv=qr(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(e,t){return e["[object "+t+"]"]=!0,e},{}),zv=qr(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(e,t){return e["[object "+t+"Array]"]=!0,e},{}),pi=Object.prototype.toString,Xo=Array.prototype,Rx=Xo.forEach,Bx=Xo.filter,$u=Xo.slice,Fx=Xo.map,Vv=(function(){}).constructor,qo=Vv?Vv.prototype:null,Ou="__proto__",zx=2311;function Gv(){return zx++}function gi(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];typeof console<"u"&&console.error.apply(console,e)}function At(e){if(e==null||typeof e!="object")return e;var t=e,r=pi.call(e);if(r==="[object Array]"){if(!va(e)){t=[];for(var n=0,i=e.length;n<i;n++)t[n]=At(e[n])}}else if(zv[r]){if(!va(e)){var a=e.constructor;if(a.from)t=a.from(e);else{t=new a(e.length);for(var n=0,i=e.length;n<i;n++)t[n]=e[n]}}}else if(!Fv[r]&&!va(e)&&!mi(e)){t={};for(var o in e)e.hasOwnProperty(o)&&o!==Ou&&(t[o]=At(e[o]))}return t}function Gt(e,t,r){if(!pt(t)||!pt(e))return r?At(t):e;for(var n in t)if(t.hasOwnProperty(n)&&n!==Ou){var i=e[n],a=t[n];pt(a)&&pt(i)&&!st(a)&&!st(i)&&!mi(a)&&!mi(i)&&!Hv(a)&&!Hv(i)&&!va(a)&&!va(i)?Gt(i,a,r):(r||!(n in e))&&(e[n]=At(t[n]))}return e}function et(e,t){if(Object.assign)Object.assign(e,t);else for(var r in t)t.hasOwnProperty(r)&&r!==Ou&&(e[r]=t[r]);return e}function Bt(e,t,r){for(var n=Mt(t),i=0,a=n.length;i<a;i++){var o=n[i];e[o]==null&&(e[o]=t[o])}return e}function Nt(e,t){if(e){if(e.indexOf)return e.indexOf(t);for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r}return-1}function Vx(e,t){var r=e.prototype;function n(){}n.prototype=t.prototype,e.prototype=new n;for(var i in r)r.hasOwnProperty(i)&&(e.prototype[i]=r[i]);e.prototype.constructor=e,e.superClass=t}function ur(e,t,r){if(e="prototype"in e?e.prototype:e,t="prototype"in t?t.prototype:t,Object.getOwnPropertyNames)for(var n=Object.getOwnPropertyNames(t),i=0;i<n.length;i++){var a=n[i];a!=="constructor"&&e[a]==null&&(e[a]=t[a])}else Bt(e,t)}function Ce(e){return!e||typeof e=="string"?!1:typeof e.length=="number"}function O(e,t,r){if(e&&t)if(e.forEach&&e.forEach===Rx)e.forEach(t,r);else if(e.length===+e.length)for(var n=0,i=e.length;n<i;n++)t.call(r,e[n],n,e);else for(var a in e)e.hasOwnProperty(a)&&t.call(r,e[a],a,e)}function ft(e,t,r){if(!e)return[];if(!t)return Bu(e);if(e.map&&e.map===Fx)return e.map(t,r);for(var n=[],i=0,a=e.length;i<a;i++)n.push(t.call(r,e[i],i,e));return n}function qr(e,t,r,n){if(e&&t){for(var i=0,a=e.length;i<a;i++)r=t.call(n,r,e[i],i,e);return r}}function re(e,t,r){if(!e)return[];if(!t)return Bu(e);if(e.filter&&e.filter===Bx)return e.filter(t,r);for(var n=[],i=0,a=e.length;i<a;i++)t.call(r,e[i],i,e)&&n.push(e[i]);return n}function Gx(e,t,r){if(e&&t){for(var n=0,i=e.length;n<i;n++)if(t.call(r,e[n],n,e))return e[n]}}function Mt(e){if(!e)return[];if(Object.keys)return Object.keys(e);var t=[];for(var r in e)e.hasOwnProperty(r)&&t.push(r);return t}function Hx(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return function(){return e.apply(t,r.concat($u.call(arguments)))}}var Ft=qo&&_t(qo.bind)?qo.call.bind(qo.bind):Hx;function Kt(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return function(){return e.apply(this,t.concat($u.call(arguments)))}}function st(e){return Array.isArray?Array.isArray(e):pi.call(e)==="[object Array]"}function _t(e){return typeof e=="function"}function ut(e){return typeof e=="string"}function jo(e){return pi.call(e)==="[object String]"}function $t(e){return typeof e=="number"}function pt(e){var t=typeof e;return t==="function"||!!e&&t==="object"}function Hv(e){return!!Fv[pi.call(e)]}function ye(e){return!!zv[pi.call(e)]}function mi(e){return typeof e=="object"&&typeof e.nodeType=="number"&&typeof e.ownerDocument=="object"}function Ru(e){return e.colorStops!=null}function Ux(e){return pi.call(e)==="[object RegExp]"}function yi(e){return e!==e}function _i(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=0,n=e.length;r<n;r++)if(e[r]!=null)return e[r]}function ct(e,t){return e??t}function Ir(e,t,r){return e??t??r}function Bu(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return $u.apply(e,t)}function Fu(e){if(typeof e=="number")return[e,e,e,e];var t=e.length;return t===2?[e[0],e[1],e[0],e[1]]:t===3?[e[0],e[1],e[2],e[1]]:e}function vt(e,t){if(!e)throw new Error(t)}function fr(e){return e==null?null:typeof e.trim=="function"?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var Uv="__ec_primitive__";function zu(e){e[Uv]=!0}function va(e){return e[Uv]}var Wx=(function(){function e(){this.data={}}return e.prototype.delete=function(t){var r=this.has(t);return r&&delete this.data[t],r},e.prototype.has=function(t){return this.data.hasOwnProperty(t)},e.prototype.get=function(t){return this.data[t]},e.prototype.set=function(t,r){return this.data[t]=r,this},e.prototype.keys=function(){return Mt(this.data)},e.prototype.forEach=function(t){var r=this.data;for(var n in r)r.hasOwnProperty(n)&&t(r[n],n)},e})(),Wv=typeof Map=="function";function Zx(){return Wv?new Map:new Wx}var Yx=(function(){function e(t){var r=st(t);this.data=Zx();var n=this;t instanceof e?t.each(i):t&&O(t,i);function i(a,o){r?n.set(a,o):n.set(o,a)}}return e.prototype.hasKey=function(t){return this.data.has(t)},e.prototype.get=function(t){return this.data.get(t)},e.prototype.set=function(t,r){return this.data.set(t,r),r},e.prototype.each=function(t,r){this.data.forEach(function(n,i){t.call(r,n,i)})},e.prototype.keys=function(){var t=this.data.keys();return Wv?Array.from(t):t},e.prototype.removeKey=function(t){this.data.delete(t)},e})();function Tt(e){return new Yx(e)}function Xx(e,t){for(var r=new e.constructor(e.length+t.length),n=0;n<e.length;n++)r[n]=e[n];for(var i=e.length,n=0;n<t.length;n++)r[n+i]=t[n];return r}function Qo(e,t){var r;if(Object.create)r=Object.create(e);else{var n=function(){};n.prototype=e,r=new n}return t&&et(r,t),r}function Je(e,t){return e.hasOwnProperty(t)}function _e(){}var Ko=180/Math.PI;function bi(e,t){return e==null&&(e=0),t==null&&(t=0),[e,t]}function qx(e){return[e[0],e[1]]}function Zv(e,t,r){return e[0]=t[0]+r[0],e[1]=t[1]+r[1],e}function jx(e,t,r){return e[0]=t[0]-r[0],e[1]=t[1]-r[1],e}function Qx(e){return Math.sqrt(Kx(e))}function Kx(e){return e[0]*e[0]+e[1]*e[1]}function Vu(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e}function Jx(e,t){var r=Qx(t);return r===0?(e[0]=0,e[1]=0):(e[0]=t[0]/r,e[1]=t[1]/r),e}function Gu(e,t){return Math.sqrt((e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1]))}var Hu=Gu;function tw(e,t){return(e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1])}var Si=tw;function Uu(e,t,r,n){return e[0]=t[0]+n*(r[0]-t[0]),e[1]=t[1]+n*(r[1]-t[1]),e}function Oe(e,t,r){var n=t[0],i=t[1];return e[0]=r[0]*n+r[2]*i+r[4],e[1]=r[1]*n+r[3]*i+r[5],e}function xi(e,t,r){return e[0]=Math.min(t[0],r[0]),e[1]=Math.min(t[1],r[1]),e}function wi(e,t,r){return e[0]=Math.max(t[0],r[0]),e[1]=Math.max(t[1],r[1]),e}var Ti=(function(){function e(t,r){this.target=t,this.topTarget=r&&r.topTarget}return e})(),ew=(function(){function e(t){this.handler=t,t.on("mousedown",this._dragStart,this),t.on("mousemove",this._drag,this),t.on("mouseup",this._dragEnd,this)}return e.prototype._dragStart=function(t){for(var r=t.target;r&&!r.draggable;)r=r.parent||r.__hostTarget;r&&(this._draggingTarget=r,r.dragging=!0,this._x=t.offsetX,this._y=t.offsetY,this.handler.dispatchToElement(new Ti(r,t),"dragstart",t.event))},e.prototype._drag=function(t){var r=this._draggingTarget;if(r){var n=t.offsetX,i=t.offsetY,a=n-this._x,o=i-this._y;this._x=n,this._y=i,r.drift(a,o,t),this.handler.dispatchToElement(new Ti(r,t),"drag",t.event);var s=this.handler.findHover(n,i,r).target,l=this._dropTarget;this._dropTarget=s,r!==s&&(l&&s!==l&&this.handler.dispatchToElement(new Ti(l,t),"dragleave",t.event),s&&s!==l&&this.handler.dispatchToElement(new Ti(s,t),"dragenter",t.event))}},e.prototype._dragEnd=function(t){var r=this._draggingTarget;r&&(r.dragging=!1),this.handler.dispatchToElement(new Ti(r,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new Ti(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},e})(),kr=(function(){function e(t){t&&(this._$eventProcessor=t)}return e.prototype.on=function(t,r,n,i){this._$handlers||(this._$handlers={});var a=this._$handlers;if(typeof r=="function"&&(i=n,n=r,r=null),!n||!t)return this;var o=this._$eventProcessor;r!=null&&o&&o.normalizeQuery&&(r=o.normalizeQuery(r)),a[t]||(a[t]=[]);for(var s=0;s<a[t].length;s++)if(a[t][s].h===n)return this;var l={h:n,query:r,ctx:i||this,callAtLast:n.zrEventfulCallAtLast},u=a[t].length-1,f=a[t][u];return f&&f.callAtLast?a[t].splice(u,0,l):a[t].push(l),this},e.prototype.isSilent=function(t){var r=this._$handlers;return!r||!r[t]||!r[t].length},e.prototype.off=function(t,r){var n=this._$handlers;if(!n)return this;if(!t)return this._$handlers={},this;if(r){if(n[t]){for(var i=[],a=0,o=n[t].length;a<o;a++)n[t][a].h!==r&&i.push(n[t][a]);n[t]=i}n[t]&&n[t].length===0&&delete n[t]}else delete n[t];return this},e.prototype.trigger=function(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];if(!this._$handlers)return this;var i=this._$handlers[t],a=this._$eventProcessor;if(i)for(var o=r.length,s=i.length,l=0;l<s;l++){var u=i[l];if(!(a&&a.filter&&u.query!=null&&!a.filter(t,u.query)))switch(o){case 0:u.h.call(u.ctx);break;case 1:u.h.call(u.ctx,r[0]);break;case 2:u.h.call(u.ctx,r[0],r[1]);break;default:u.h.apply(u.ctx,r);break}}return a&&a.afterTrigger&&a.afterTrigger(t),this},e.prototype.triggerWithContext=function(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];if(!this._$handlers)return this;var i=this._$handlers[t],a=this._$eventProcessor;if(i)for(var o=r.length,s=r[o-1],l=i.length,u=0;u<l;u++){var f=i[u];if(!(a&&a.filter&&f.query!=null&&!a.filter(t,f.query)))switch(o){case 0:f.h.call(s);break;case 1:f.h.call(s,r[0]);break;case 2:f.h.call(s,r[0],r[1]);break;default:f.h.apply(s,r.slice(1,o-1));break}}return a&&a.afterTrigger&&a.afterTrigger(t),this},e})(),rw=Math.log(2);function Wu(e,t,r,n,i,a){var o=n+"-"+i,s=e.length;if(a.hasOwnProperty(o))return a[o];if(t===1){var l=Math.round(Math.log((1<<s)-1&~i)/rw);return e[r][l]}for(var u=n|1<<r,f=r+1;n&1<<f;)f++;for(var c=0,d=0,h=0;d<s;d++){var v=1<<d;v&i||(c+=(h%2?-1:1)*e[r][d]*Wu(e,t-1,f,u,i|v,a),h++)}return a[o]=c,c}function Yv(e,t){var r=[[e[0],e[1],1,0,0,0,-t[0]*e[0],-t[0]*e[1]],[0,0,0,e[0],e[1],1,-t[1]*e[0],-t[1]*e[1]],[e[2],e[3],1,0,0,0,-t[2]*e[2],-t[2]*e[3]],[0,0,0,e[2],e[3],1,-t[3]*e[2],-t[3]*e[3]],[e[4],e[5],1,0,0,0,-t[4]*e[4],-t[4]*e[5]],[0,0,0,e[4],e[5],1,-t[5]*e[4],-t[5]*e[5]],[e[6],e[7],1,0,0,0,-t[6]*e[6],-t[6]*e[7]],[0,0,0,e[6],e[7],1,-t[7]*e[6],-t[7]*e[7]]],n={},i=Wu(r,8,0,0,0,n);if(i!==0){for(var a=[],o=0;o<8;o++)for(var s=0;s<8;s++)a[s]==null&&(a[s]=0),a[s]+=((o+s)%2?-1:1)*Wu(r,7,o===0?1:0,1<<o,1<<s,n)/i*t[o];return function(l,u,f){var c=u*a[6]+f*a[7]+1;l[0]=(u*a[0]+f*a[1]+a[2])/c,l[1]=(u*a[3]+f*a[4]+a[5])/c}}}var Jo="___zrEVENTSAVED",Zu=[];function nw(e,t,r,n,i){return Yu(Zu,t,n,i,!0)&&Yu(e,r,Zu[0],Zu[1])}function iw(e,t){e&&r(e),t&&r(t);function r(n){var i=n[Jo];i&&(i.clearMarkers&&i.clearMarkers(),delete n[Jo])}}function Yu(e,t,r,n,i){if(t.getBoundingClientRect&&xt.domSupported&&!Xv(t)){var a=t[Jo]||(t[Jo]={}),o=aw(t,a),s=ow(o,a,i);if(s)return s(e,r,n),!0}return!1}function aw(e,t){var r=t.markers;if(r)return r;r=t.markers=[];for(var n=["left","right"],i=["top","bottom"],a=0;a<4;a++){var o=document.createElement("div"),s=o.style,l=a%2,u=(a>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",n[l]+":0",i[u]+":0",n[1-l]+":auto",i[1-u]+":auto",""].join("!important;"),e.appendChild(o),r.push(o)}return t.clearMarkers=function(){O(r,function(f){f.parentNode&&f.parentNode.removeChild(f)})},r}function ow(e,t,r){for(var n=r?"invTrans":"trans",i=t[n],a=t.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var f=e[u].getBoundingClientRect(),c=2*u,d=f.left,h=f.top;o.push(d,h),l=l&&a&&d===a[c]&&h===a[c+1],s.push(e[u].offsetLeft,e[u].offsetTop)}return l&&i?i:(t.srcCoords=o,t[n]=r?Yv(s,o):Yv(o,s))}function Xv(e){return e.nodeName.toUpperCase()==="CANVAS"}var sw=/([&<>"'])/g,lw={"&":"&","<":"<",">":">",'"':""","'":"'"};function be(e){return e==null?"":(e+"").replace(sw,function(t,r){return lw[r]})}var uw=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Xu=[],fw=xt.browser.firefox&&+xt.browser.version.split(".")[0]<39;function qu(e,t,r,n){return r=r||{},n?qv(e,t,r):fw&&t.layerX!=null&&t.layerX!==t.offsetX?(r.zrX=t.layerX,r.zrY=t.layerY):t.offsetX!=null?(r.zrX=t.offsetX,r.zrY=t.offsetY):qv(e,t,r),r}function qv(e,t,r){if(xt.domSupported&&e.getBoundingClientRect){var n=t.clientX,i=t.clientY;if(Xv(e)){var a=e.getBoundingClientRect();r.zrX=n-a.left,r.zrY=i-a.top;return}else if(Yu(Xu,e,n,i)){r.zrX=Xu[0],r.zrY=Xu[1];return}}r.zrX=r.zrY=0}function ju(e){return e||window.event}function Re(e,t,r){if(t=ju(t),t.zrX!=null)return t;var n=t.type,i=n&&n.indexOf("touch")>=0;if(i){var o=n!=="touchend"?t.targetTouches[0]:t.changedTouches[0];o&&qu(e,o,t,r)}else{qu(e,t,t,r);var a=cw(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var s=t.button;return t.which==null&&s!==void 0&&uw.test(t.type)&&(t.which=s&1?1:s&2?3:s&4?2:0),t}function cw(e){var t=e.wheelDelta;if(t)return t;var r=e.deltaX,n=e.deltaY;if(r==null||n==null)return t;var i=Math.abs(n!==0?n:r),a=n>0?-1:n<0?1:r>0?-1:1;return 3*i*a}function hw(e,t,r,n){e.addEventListener(t,r,n)}function dw(e,t,r,n){e.removeEventListener(t,r,n)}var jv=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0},vw=(function(){function e(){this._track=[]}return e.prototype.recognize=function(t,r,n){return this._doTrack(t,r,n),this._recognize(t)},e.prototype.clear=function(){return this._track.length=0,this},e.prototype._doTrack=function(t,r,n){var i=t.touches;if(i){for(var a={points:[],touches:[],target:r,event:t},o=0,s=i.length;o<s;o++){var l=i[o],u=qu(n,l,{});a.points.push([u.zrX,u.zrY]),a.touches.push(l)}this._track.push(a)}},e.prototype._recognize=function(t){for(var r in Qu)if(Qu.hasOwnProperty(r)){var n=Qu[r](this._track,t);if(n)return n}},e})();function Qv(e){var t=e[1][0]-e[0][0],r=e[1][1]-e[0][1];return Math.sqrt(t*t+r*r)}function pw(e){return[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]}var Qu={pinch:function(e,t){var r=e.length;if(r){var n=(e[r-1]||{}).points,i=(e[r-2]||{}).points||n;if(i&&i.length>1&&n&&n.length>1){var a=Qv(n)/Qv(i);!isFinite(a)&&(a=1),t.pinchScale=a;var o=pw(n);return t.pinchX=o[0],t.pinchY=o[1],{type:"pinch",target:e[0].target,event:t}}}}};function Pr(){return[1,0,0,1,0,0]}function Ku(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function Kv(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function pa(e,t,r){var n=t[0]*r[0]+t[2]*r[1],i=t[1]*r[0]+t[3]*r[1],a=t[0]*r[2]+t[2]*r[3],o=t[1]*r[2]+t[3]*r[3],s=t[0]*r[4]+t[2]*r[5]+t[4],l=t[1]*r[4]+t[3]*r[5]+t[5];return e[0]=n,e[1]=i,e[2]=a,e[3]=o,e[4]=s,e[5]=l,e}function Ju(e,t,r){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4]+r[0],e[5]=t[5]+r[1],e}function tf(e,t,r,n){n===void 0&&(n=[0,0]);var i=t[0],a=t[2],o=t[4],s=t[1],l=t[3],u=t[5],f=Math.sin(r),c=Math.cos(r);return e[0]=i*c+s*f,e[1]=-i*f+s*c,e[2]=a*c+l*f,e[3]=-a*f+c*l,e[4]=c*(o-n[0])+f*(u-n[1])+n[0],e[5]=c*(u-n[1])-f*(o-n[0])+n[1],e}function gw(e,t,r){var n=r[0],i=r[1];return e[0]=t[0]*n,e[1]=t[1]*i,e[2]=t[2]*n,e[3]=t[3]*i,e[4]=t[4]*n,e[5]=t[5]*i,e}function ga(e,t){var r=t[0],n=t[2],i=t[4],a=t[1],o=t[3],s=t[5],l=r*o-a*n;return l?(l=1/l,e[0]=o*l,e[1]=-a*l,e[2]=-n*l,e[3]=r*l,e[4]=(n*s-o*i)*l,e[5]=(a*i-r*s)*l,e):null}var wt=(function(){function e(t,r){this.x=t||0,this.y=r||0}return e.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},e.prototype.clone=function(){return new e(this.x,this.y)},e.prototype.set=function(t,r){return this.x=t,this.y=r,this},e.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},e.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},e.prototype.scale=function(t){this.x*=t,this.y*=t},e.prototype.scaleAndAdd=function(t,r){this.x+=t.x*r,this.y+=t.y*r},e.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},e.prototype.dot=function(t){return this.x*t.x+this.y*t.y},e.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},e.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},e.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},e.prototype.distance=function(t){var r=this.x-t.x,n=this.y-t.y;return Math.sqrt(r*r+n*n)},e.prototype.distanceSquare=function(t){var r=this.x-t.x,n=this.y-t.y;return r*r+n*n},e.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},e.prototype.transform=function(t){if(t){var r=this.x,n=this.y;return this.x=t[0]*r+t[2]*n+t[4],this.y=t[1]*r+t[3]*n+t[5],this}},e.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},e.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},e.set=function(t,r,n){t.x=r,t.y=n},e.copy=function(t,r){t.x=r.x,t.y=r.y},e.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},e.lenSquare=function(t){return t.x*t.x+t.y*t.y},e.dot=function(t,r){return t.x*r.x+t.y*r.y},e.add=function(t,r,n){t.x=r.x+n.x,t.y=r.y+n.y},e.sub=function(t,r,n){t.x=r.x-n.x,t.y=r.y-n.y},e.scale=function(t,r,n){t.x=r.x*n,t.y=r.y*n},e.scaleAndAdd=function(t,r,n,i){t.x=r.x+n.x*i,t.y=r.y+n.y*i},e.lerp=function(t,r,n,i){var a=1-i;t.x=a*r.x+i*n.x,t.y=a*r.y+i*n.y},e})(),En=Math.min,Ci=Math.max,ef=Math.abs,Jv=["x","y"],mw=["width","height"],Ln=new wt,Mn=new wt,Dn=new wt,In=new wt,Ie=ep(),ma=Ie.minTv,rf=Ie.maxTv,ya=[0,0],Ct=(function(){function e(t,r,n,i){e.set(this,t,r,n,i)}return e.set=function(t,r,n,i,a){return i<0&&(r=r+i,i=-i),a<0&&(n=n+a,a=-a),t.x=r,t.y=n,t.width=i,t.height=a,t},e.prototype.union=function(t){var r=En(t.x,this.x),n=En(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Ci(t.x+t.width,this.x+this.width)-r:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=Ci(t.y+t.height,this.y+this.height)-n:this.height=t.height,this.x=r,this.y=n},e.prototype.applyTransform=function(t){e.applyTransform(this,this,t)},e.prototype.calculateTransform=function(t){var r=this,n=t.width/r.width,i=t.height/r.height,a=Pr();return Ju(a,a,[-r.x,-r.y]),gw(a,a,[n,i]),Ju(a,a,[t.x,t.y]),a},e.prototype.intersect=function(t,r,n){return e.intersect(this,t,r,n)},e.intersect=function(t,r,n,i){n&&wt.set(n,0,0);var a=i&&i.outIntersectRect||null,o=i&&i.clamp;if(a&&(a.x=a.y=a.width=a.height=NaN),!t||!r)return!1;t instanceof e||(t=e.set(yw,t.x,t.y,t.width,t.height)),r instanceof e||(r=e.set(_w,r.x,r.y,r.width,r.height));var s=!!n;Ie.reset(i,s);var l=Ie.touchThreshold,u=t.x+l,f=t.x+t.width-l,c=t.y+l,d=t.y+t.height-l,h=r.x+l,v=r.x+r.width-l,g=r.y+l,m=r.y+r.height-l;if(u>f||c>d||h>v||g>m)return!1;var p=!(f<h||v<u||d<g||m<c);return(s||a)&&(ya[0]=1/0,ya[1]=0,tp(u,f,h,v,0,s,a,o),tp(c,d,g,m,1,s,a,o),s&&wt.copy(n,p?Ie.useDir?Ie.dirMinTv:ma:rf)),p},e.contain=function(t,r,n){return r>=t.x&&r<=t.x+t.width&&n>=t.y&&n<=t.y+t.height},e.prototype.contain=function(t,r){return e.contain(this,t,r)},e.prototype.clone=function(){return new e(this.x,this.y,this.width,this.height)},e.prototype.copy=function(t){e.copy(this,t)},e.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},e.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},e.prototype.isZero=function(){return this.width===0||this.height===0},e.create=function(t){return new e(t.x,t.y,t.width,t.height)},e.copy=function(t,r){return t.x=r.x,t.y=r.y,t.width=r.width,t.height=r.height,t},e.applyTransform=function(t,r,n){if(!n){t!==r&&e.copy(t,r);return}if(n[1]<1e-5&&n[1]>-1e-5&&n[2]<1e-5&&n[2]>-1e-5){var i=n[0],a=n[3],o=n[4],s=n[5];t.x=r.x*i+o,t.y=r.y*a+s,t.width=r.width*i,t.height=r.height*a,t.width<0&&(t.x+=t.width,t.width=-t.width),t.height<0&&(t.y+=t.height,t.height=-t.height);return}Ln.x=Dn.x=r.x,Ln.y=In.y=r.y,Mn.x=In.x=r.x+r.width,Mn.y=Dn.y=r.y+r.height,Ln.transform(n),In.transform(n),Mn.transform(n),Dn.transform(n),t.x=En(Ln.x,Mn.x,Dn.x,In.x),t.y=En(Ln.y,Mn.y,Dn.y,In.y);var l=Ci(Ln.x,Mn.x,Dn.x,In.x),u=Ci(Ln.y,Mn.y,Dn.y,In.y);t.width=l-t.x,t.height=u-t.y},e})(),yw=new Ct(0,0,0,0),_w=new Ct(0,0,0,0);function tp(e,t,r,n,i,a,o,s){var l=ef(t-r),u=ef(n-e),f=En(l,u),c=Jv[i],d=Jv[1-i],h=mw[i];t<r||n<e?l<u?(a&&(rf[c]=-l),s&&(o[c]=t,o[h]=0)):(a&&(rf[c]=u),s&&(o[c]=e,o[h]=0)):(o&&(o[c]=Ci(e,r),o[h]=En(t,n)-o[c]),a&&(f<ya[0]||Ie.useDir)&&(ya[0]=En(f,ya[0]),(l<u||!Ie.bidirectional)&&(ma[c]=l,ma[d]=0,Ie.useDir&&Ie.calcDirMTV()),(l>=u||!Ie.bidirectional)&&(ma[c]=-u,ma[d]=0,Ie.useDir&&Ie.calcDirMTV())))}function ep(){var e=0,t=new wt,r=new wt,n={minTv:new wt,maxTv:new wt,useDir:!1,dirMinTv:new wt,touchThreshold:0,bidirectional:!0,negativeSize:!1,reset:function(a,o){n.touchThreshold=0,a&&a.touchThreshold!=null&&(n.touchThreshold=Ci(0,a.touchThreshold)),n.negativeSize=!1,o&&(n.minTv.set(1/0,1/0),n.maxTv.set(0,0),n.useDir=!1,a&&a.direction!=null&&(n.useDir=!0,n.dirMinTv.copy(n.minTv),r.copy(n.minTv),e=a.direction,n.bidirectional=a.bidirectional==null||!!a.bidirectional,n.bidirectional||t.set(Math.cos(e),Math.sin(e))))},calcDirMTV:function(){var a=n.minTv,o=n.dirMinTv,s=a.y*a.y+a.x*a.x,l=Math.sin(e),u=Math.cos(e),f=l*a.y+u*a.x;if(i(f)){i(a.x)&&i(a.y)&&o.set(0,0);return}if(r.x=s*u/f,r.y=s*l/f,i(r.x)&&i(r.y)){o.set(0,0);return}(n.bidirectional||t.dot(r)>0)&&r.len()<o.len()&&o.copy(r)}};function i(a){return ef(a)<1e-10}return n}var rp="silent";function bw(e,t,r){return{type:e,event:r,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:r.zrX,offsetY:r.zrY,gestureEvent:r.gestureEvent,pinchX:r.pinchX,pinchY:r.pinchY,pinchScale:r.pinchScale,wheelDelta:r.zrDelta,zrByTouch:r.zrByTouch,which:r.which,stop:Sw}}function Sw(){jv(this.event)}var xw=(function(e){it(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.handler=null,r}return t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t})(kr),_a=(function(){function e(t,r){this.x=t,this.y=r}return e})(),ww=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],nf=new Ct(0,0,0,0),np=(function(e){it(t,e);function t(r,n,i,a,o){var s=e.call(this)||this;return s._hovered=new _a(0,0),s.storage=r,s.painter=n,s.painterRoot=a,s._pointerSize=o,i=i||new xw,s.proxy=null,s.setHandlerProxy(i),s._draggingMgr=new ew(s),s}return t.prototype.setHandlerProxy=function(r){this.proxy&&this.proxy.dispose(),r&&(O(ww,function(n){r.on&&r.on(n,this[n],this)},this),r.handler=this),this.proxy=r},t.prototype.mousemove=function(r){var n=r.zrX,i=r.zrY,a=ap(this,n,i),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var l=this._hovered=a?new _a(n,i):this.findHover(n,i),u=l.target,f=this.proxy;f.setCursor&&f.setCursor(u?u.cursor:"default"),s&&u!==s&&this.dispatchToElement(o,"mouseout",r),this.dispatchToElement(l,"mousemove",r),u&&u!==s&&this.dispatchToElement(l,"mouseover",r)},t.prototype.mouseout=function(r){var n=r.zrEventControl;n!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",r),n!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:r})},t.prototype.resize=function(){this._hovered=new _a(0,0)},t.prototype.dispatch=function(r,n){var i=this[r];i&&i.call(this,n)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(r){var n=this.proxy;n.setCursor&&n.setCursor(r)},t.prototype.dispatchToElement=function(r,n,i){r=r||{};var a=r.target;if(!(a&&a.silent)){for(var o="on"+n,s=bw(n,r,i);a&&(a[o]&&(s.cancelBubble=!!a[o].call(a,s)),a.trigger(n,s),a=a.__hostTarget?a.__hostTarget:a.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(n,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[o]=="function"&&l[o].call(l,s),l.trigger&&l.trigger(n,s)}))}},t.prototype.findHover=function(r,n,i){var a=this.storage.getDisplayList(),o=new _a(r,n);if(ip(a,o,r,n,i),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,f=new Ct(r-u,n-u,l,l),c=a.length-1;c>=0;c--){var d=a[c];d!==i&&!d.ignore&&!d.ignoreCoarsePointer&&(!d.parent||!d.parent.ignoreCoarsePointer)&&(nf.copy(d.getBoundingRect()),d.transform&&nf.applyTransform(d.transform),nf.intersect(f)&&s.push(d))}if(s.length)for(var h=4,v=Math.PI/12,g=Math.PI*2,m=0;m<u;m+=h)for(var p=0;p<g;p+=v){var y=r+m*Math.cos(p),_=n+m*Math.sin(p);if(ip(s,o,y,_,i),o.target)return o}}return o},t.prototype.processGesture=function(r,n){this._gestureMgr||(this._gestureMgr=new vw);var i=this._gestureMgr;n==="start"&&i.clear();var a=i.recognize(r,this.findHover(r.zrX,r.zrY,null).target,this.proxy.dom);if(n==="end"&&i.clear(),a){var o=a.type;r.gestureEvent=o;var s=new _a;s.target=a.target,this.dispatchToElement(s,o,a.event)}},t})(kr);O(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(e){np.prototype[e]=function(t){var r=t.zrX,n=t.zrY,i=ap(this,r,n),a,o;if((e!=="mouseup"||!i)&&(a=this.findHover(r,n),o=a.target),e==="mousedown")this._downEl=o,this._downPoint=[t.zrX,t.zrY],this._upEl=o;else if(e==="mouseup")this._upEl=o;else if(e==="click"){if(this._downEl!==this._upEl||!this._downPoint||Hu(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(a,e,t)}});function Tw(e,t,r){if(e[e.rectHover?"rectContain":"contain"](t,r)){for(var n=e,i=void 0,a=!1;n;){if(n.ignoreClip&&(a=!0),!a){var o=n.getClipPath();if(o&&!o.contain(t,r))return!1}n.silent&&(i=!0);var s=n.__hostTarget;n=s?n.ignoreHostSilent?null:s:n.parent}return i?rp:!0}return!1}function ip(e,t,r,n,i){for(var a=e.length-1;a>=0;a--){var o=e[a],s=void 0;if(o!==i&&!o.ignore&&(s=Tw(o,r,n))&&(!t.topTarget&&(t.topTarget=o),s!==rp)){t.target=o;break}}}function ap(e,t,r){var n=e.painter;return t<0||t>n.getWidth()||r<0||r>n.getHeight()}var op=32,ba=7;function Cw(e){for(var t=0;e>=op;)t|=e&1,e>>=1;return e+t}function sp(e,t,r,n){var i=t+1;if(i===r)return 1;if(n(e[i++],e[t])<0){for(;i<r&&n(e[i],e[i-1])<0;)i++;Aw(e,t,i)}else for(;i<r&&n(e[i],e[i-1])>=0;)i++;return i-t}function Aw(e,t,r){for(r--;t<r;){var n=e[t];e[t++]=e[r],e[r--]=n}}function lp(e,t,r,n,i){for(n===t&&n++;n<r;n++){for(var a=e[n],o=t,s=n,l;o<s;)l=o+s>>>1,i(a,e[l])<0?s=l:o=l+1;var u=n-o;switch(u){case 3:e[o+3]=e[o+2];case 2:e[o+2]=e[o+1];case 1:e[o+1]=e[o];break;default:for(;u>0;)e[o+u]=e[o+u-1],u--}e[o]=a}}function af(e,t,r,n,i,a){var o=0,s=0,l=1;if(a(e,t[r+i])>0){for(s=n-i;l<s&&a(e,t[r+i+l])>0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=i,l+=i}else{for(s=i+1;l<s&&a(e,t[r+i-l])<=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=i-l,l=i-u}for(o++;o<l;){var f=o+(l-o>>>1);a(e,t[r+f])>0?o=f+1:l=f}return l}function of(e,t,r,n,i,a){var o=0,s=0,l=1;if(a(e,t[r+i])<0){for(s=i+1;l<s&&a(e,t[r+i-l])<0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=i-l,l=i-u}else{for(s=n-i;l<s&&a(e,t[r+i+l])>=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=i,l+=i}for(o++;o<l;){var f=o+(l-o>>>1);a(e,t[r+f])<0?l=f:o=f+1}return l}function Ew(e,t){var r=ba,n,i,a=0,o=[];n=[],i=[];function s(h,v){n[a]=h,i[a]=v,a+=1}function l(){for(;a>1;){var h=a-2;if(h>=1&&i[h-1]<=i[h]+i[h+1]||h>=2&&i[h-2]<=i[h]+i[h-1])i[h-1]<i[h+1]&&h--;else if(i[h]>i[h+1])break;f(h)}}function u(){for(;a>1;){var h=a-2;h>0&&i[h-1]<i[h+1]&&h--,f(h)}}function f(h){var v=n[h],g=i[h],m=n[h+1],p=i[h+1];i[h]=g+p,h===a-3&&(n[h+1]=n[h+2],i[h+1]=i[h+2]),a--;var y=of(e[m],e,v,g,0,t);v+=y,g-=y,g!==0&&(p=af(e[v+g-1],e,m,p,p-1,t),p!==0&&(g<=p?c(v,g,m,p):d(v,g,m,p)))}function c(h,v,g,m){var p=0;for(p=0;p<v;p++)o[p]=e[h+p];var y=0,_=g,b=h;if(e[b++]=e[_++],--m===0){for(p=0;p<v;p++)e[b+p]=o[y+p];return}if(v===1){for(p=0;p<m;p++)e[b+p]=e[_+p];e[b+m]=o[y];return}for(var x=r,w,S,L;;){w=0,S=0,L=!1;do if(t(e[_],o[y])<0){if(e[b++]=e[_++],S++,w=0,--m===0){L=!0;break}}else if(e[b++]=o[y++],w++,S=0,--v===1){L=!0;break}while((w|S)<x);if(L)break;do{if(w=of(e[_],o,y,v,0,t),w!==0){for(p=0;p<w;p++)e[b+p]=o[y+p];if(b+=w,y+=w,v-=w,v<=1){L=!0;break}}if(e[b++]=e[_++],--m===0){L=!0;break}if(S=af(o[y],e,_,m,0,t),S!==0){for(p=0;p<S;p++)e[b+p]=e[_+p];if(b+=S,_+=S,m-=S,m===0){L=!0;break}}if(e[b++]=o[y++],--v===1){L=!0;break}x--}while(w>=ba||S>=ba);if(L)break;x<0&&(x=0),x+=2}if(r=x,r<1&&(r=1),v===1){for(p=0;p<m;p++)e[b+p]=e[_+p];e[b+m]=o[y]}else{if(v===0)throw new Error;for(p=0;p<v;p++)e[b+p]=o[y+p]}}function d(h,v,g,m){var p=0;for(p=0;p<m;p++)o[p]=e[g+p];var y=h+v-1,_=m-1,b=g+m-1,x=0,w=0;if(e[b--]=e[y--],--v===0){for(x=b-(m-1),p=0;p<m;p++)e[x+p]=o[p];return}if(m===1){for(b-=v,y-=v,w=b+1,x=y+1,p=v-1;p>=0;p--)e[w+p]=e[x+p];e[b]=o[_];return}for(var S=r;;){var L=0,C=0,D=!1;do if(t(o[_],e[y])<0){if(e[b--]=e[y--],L++,C=0,--v===0){D=!0;break}}else if(e[b--]=o[_--],C++,L=0,--m===1){D=!0;break}while((L|C)<S);if(D)break;do{if(L=v-of(o[_],e,h,v,v-1,t),L!==0){for(b-=L,y-=L,v-=L,w=b+1,x=y+1,p=L-1;p>=0;p--)e[w+p]=e[x+p];if(v===0){D=!0;break}}if(e[b--]=o[_--],--m===1){D=!0;break}if(C=m-af(e[y],o,0,m,m-1,t),C!==0){for(b-=C,_-=C,m-=C,w=b+1,x=_+1,p=0;p<C;p++)e[w+p]=o[x+p];if(m<=1){D=!0;break}}if(e[b--]=e[y--],--v===0){D=!0;break}S--}while(L>=ba||C>=ba);if(D)break;S<0&&(S=0),S+=2}if(r=S,r<1&&(r=1),m===1){for(b-=v,y-=v,w=b+1,x=y+1,p=v-1;p>=0;p--)e[w+p]=e[x+p];e[b]=o[_]}else{if(m===0)throw new Error;for(x=b-(m-1),p=0;p<m;p++)e[x+p]=o[p]}}return{mergeRuns:l,forceMergeRuns:u,pushRun:s}}function ts(e,t,r,n){r||(r=0),n||(n=e.length);var i=n-r;if(!(i<2)){var a=0;if(i<op){a=sp(e,r,n,t),lp(e,r,n,r+a,t);return}var o=Ew(e,t),s=Cw(i);do{if(a=sp(e,r,n,t),a<s){var l=i;l>s&&(l=s),lp(e,r,r+l,r+a,t),a=l}o.pushRun(r,a),o.mergeRuns(),i-=a,r+=a}while(i!==0);o.forceMergeRuns()}}var cr=1,Sa=2,Ai=4,up=!1;function sf(){up||(up=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function fp(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var Lw=(function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=fp}return e.prototype.traverse=function(t,r){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(t,r)},e.prototype.getDisplayList=function(t,r){r=r||!1;var n=this._displayList;return(t||!n.length)&&this.updateDisplayList(r),n},e.prototype.updateDisplayList=function(t){this._displayListLen=0;for(var r=this._roots,n=this._displayList,i=0,a=r.length;i<a;i++)this._updateAndAddDisplayable(r[i],null,t);n.length=this._displayListLen,ts(n,fp)},e.prototype._updateAndAddDisplayable=function(t,r,n){if(!(t.ignore&&!n)){t.beforeUpdate(),t.update(),t.afterUpdate();var i=t.getClipPath(),a=r&&r.length,o=0,s=t.__clipPaths;if(!t.ignoreClip&&(a||i)){if(s||(s=t.__clipPaths=[]),a)for(var l=0;l<r.length;l++)s[o++]=r[l];for(var u=i,f=t;u;)u.parent=f,u.updateTransform(),s[o++]=u,f=u,u=u.getClipPath()}if(s&&(s.length=o),t.childrenRef){for(var c=t.childrenRef(),d=0;d<c.length;d++){var h=c[d];t.__dirty&&(h.__dirty|=cr),this._updateAndAddDisplayable(h,s,n)}t.__dirty=0}else{var v=t;isNaN(v.z)&&(sf(),v.z=0),isNaN(v.z2)&&(sf(),v.z2=0),isNaN(v.zlevel)&&(sf(),v.zlevel=0),this._displayList[this._displayListLen++]=v}var g=t.getDecalElement&&t.getDecalElement();g&&this._updateAndAddDisplayable(g,s,n);var m=t.getTextGuideLine();m&&this._updateAndAddDisplayable(m,s,n);var p=t.getTextContent();p&&this._updateAndAddDisplayable(p,s,n)}},e.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},e.prototype.delRoot=function(t){if(t instanceof Array){for(var r=0,n=t.length;r<n;r++)this.delRoot(t[r]);return}var i=Nt(this._roots,t);i>=0&&this._roots.splice(i,1)},e.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},e.prototype.getRoots=function(){return this._roots},e.prototype.dispose=function(){this._displayList=null,this._roots=null},e})(),lf;lf=xt.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)};var xa={linear:function(e){return e},quadraticIn:function(e){return e*e},quadraticOut:function(e){return e*(2-e)},quadraticInOut:function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)},cubicIn:function(e){return e*e*e},cubicOut:function(e){return--e*e*e+1},cubicInOut:function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},quarticIn:function(e){return e*e*e*e},quarticOut:function(e){return 1- --e*e*e*e},quarticInOut:function(e){return(e*=2)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)},quinticIn:function(e){return e*e*e*e*e},quinticOut:function(e){return--e*e*e*e*e+1},quinticInOut:function(e){return(e*=2)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},sinusoidalIn:function(e){return 1-Math.cos(e*Math.PI/2)},sinusoidalOut:function(e){return Math.sin(e*Math.PI/2)},sinusoidalInOut:function(e){return .5*(1-Math.cos(Math.PI*e))},exponentialIn:function(e){return e===0?0:Math.pow(1024,e-1)},exponentialOut:function(e){return e===1?1:1-Math.pow(2,-10*e)},exponentialInOut:function(e){return e===0?0:e===1?1:(e*=2)<1?.5*Math.pow(1024,e-1):.5*(-Math.pow(2,-10*(e-1))+2)},circularIn:function(e){return 1-Math.sqrt(1-e*e)},circularOut:function(e){return Math.sqrt(1- --e*e)},circularInOut:function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},elasticIn:function(e){var t,r=.1,n=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=n/4):t=n*Math.asin(1/r)/(2*Math.PI),-(r*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)))},elasticOut:function(e){var t,r=.1,n=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=n/4):t=n*Math.asin(1/r)/(2*Math.PI),r*Math.pow(2,-10*e)*Math.sin((e-t)*(2*Math.PI)/n)+1)},elasticInOut:function(e){var t,r=.1,n=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=n/4):t=n*Math.asin(1/r)/(2*Math.PI),(e*=2)<1?-.5*(r*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)):r*Math.pow(2,-10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)*.5+1)},backIn:function(e){var t=1.70158;return e*e*((t+1)*e-t)},backOut:function(e){var t=1.70158;return--e*e*((t+1)*e+t)+1},backInOut:function(e){var t=2.5949095;return(e*=2)<1?.5*(e*e*((t+1)*e-t)):.5*((e-=2)*e*((t+1)*e+t)+2)},bounceIn:function(e){return 1-xa.bounceOut(1-e)},bounceOut:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},bounceInOut:function(e){return e<.5?xa.bounceIn(e*2)*.5:xa.bounceOut(e*2-1)*.5+.5}},es=Math.pow,jr=Math.sqrt,rs=1e-8,cp=1e-4,hp=jr(3),ns=1/3,hr=bi(),Be=bi(),Ei=bi();function Qr(e){return e>-rs&&e<rs}function dp(e){return e>rs||e<-rs}function le(e,t,r,n,i){var a=1-i;return a*a*(a*e+3*i*t)+i*i*(i*n+3*a*r)}function vp(e,t,r,n,i){var a=1-i;return 3*(((t-e)*a+2*(r-t)*i)*a+(n-r)*i*i)}function is(e,t,r,n,i,a){var o=n+3*(t-r)-e,s=3*(r-t*2+e),l=3*(t-e),u=e-i,f=s*s-3*o*l,c=s*l-9*o*u,d=l*l-3*s*u,h=0;if(Qr(f)&&Qr(c))if(Qr(s))a[0]=0;else{var v=-l/s;v>=0&&v<=1&&(a[h++]=v)}else{var g=c*c-4*f*d;if(Qr(g)){var m=c/f,v=-s/o+m,p=-m/2;v>=0&&v<=1&&(a[h++]=v),p>=0&&p<=1&&(a[h++]=p)}else if(g>0){var y=jr(g),_=f*s+1.5*o*(-c+y),b=f*s+1.5*o*(-c-y);_<0?_=-es(-_,ns):_=es(_,ns),b<0?b=-es(-b,ns):b=es(b,ns);var v=(-s-(_+b))/(3*o);v>=0&&v<=1&&(a[h++]=v)}else{var x=(2*f*s-3*o*c)/(2*jr(f*f*f)),w=Math.acos(x)/3,S=jr(f),L=Math.cos(w),v=(-s-2*S*L)/(3*o),p=(-s+S*(L+hp*Math.sin(w)))/(3*o),C=(-s+S*(L-hp*Math.sin(w)))/(3*o);v>=0&&v<=1&&(a[h++]=v),p>=0&&p<=1&&(a[h++]=p),C>=0&&C<=1&&(a[h++]=C)}}return h}function pp(e,t,r,n,i){var a=6*r-12*t+6*e,o=9*t+3*n-3*e-9*r,s=3*t-3*e,l=0;if(Qr(o)){if(dp(a)){var u=-s/a;u>=0&&u<=1&&(i[l++]=u)}}else{var f=a*a-4*o*s;if(Qr(f))i[0]=-a/(2*o);else if(f>0){var c=jr(f),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}function as(e,t,r,n,i,a){var o=(t-e)*i+e,s=(r-t)*i+t,l=(n-r)*i+r,u=(s-o)*i+o,f=(l-s)*i+s,c=(f-u)*i+u;a[0]=e,a[1]=o,a[2]=u,a[3]=c,a[4]=c,a[5]=f,a[6]=l,a[7]=n}function Mw(e,t,r,n,i,a,o,s,l,u,f){var c,d=.005,h=1/0,v,g,m,p;hr[0]=l,hr[1]=u;for(var y=0;y<1;y+=.05)Be[0]=le(e,r,i,o,y),Be[1]=le(t,n,a,s,y),m=Si(hr,Be),m<h&&(c=y,h=m);h=1/0;for(var _=0;_<32&&!(d<cp);_++)v=c-d,g=c+d,Be[0]=le(e,r,i,o,v),Be[1]=le(t,n,a,s,v),m=Si(Be,hr),v>=0&&m<h?(c=v,h=m):(Ei[0]=le(e,r,i,o,g),Ei[1]=le(t,n,a,s,g),p=Si(Ei,hr),g<=1&&p<h?(c=g,h=p):d*=.5);return jr(h)}function Dw(e,t,r,n,i,a,o,s,l){for(var u=e,f=t,c=0,d=1/l,h=1;h<=l;h++){var v=h*d,g=le(e,r,i,o,v),m=le(t,n,a,s,v),p=g-u,y=m-f;c+=Math.sqrt(p*p+y*y),u=g,f=m}return c}function Ae(e,t,r,n){var i=1-n;return i*(i*e+2*n*t)+n*n*r}function gp(e,t,r,n){return 2*((1-n)*(t-e)+n*(r-t))}function Iw(e,t,r,n,i){var a=e-2*t+r,o=2*(t-e),s=e-n,l=0;if(Qr(a)){if(dp(o)){var u=-s/o;u>=0&&u<=1&&(i[l++]=u)}}else{var f=o*o-4*a*s;if(Qr(f)){var u=-o/(2*a);u>=0&&u<=1&&(i[l++]=u)}else if(f>0){var c=jr(f),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 mp(e,t,r){var n=e+r-2*t;return n===0?.5:(e-t)/n}function os(e,t,r,n,i){var a=(t-e)*n+e,o=(r-t)*n+t,s=(o-a)*n+a;i[0]=e,i[1]=a,i[2]=s,i[3]=s,i[4]=o,i[5]=r}function kw(e,t,r,n,i,a,o,s,l){var u,f=.005,c=1/0;hr[0]=o,hr[1]=s;for(var d=0;d<1;d+=.05){Be[0]=Ae(e,r,i,d),Be[1]=Ae(t,n,a,d);var h=Si(hr,Be);h<c&&(u=d,c=h)}c=1/0;for(var v=0;v<32&&!(f<cp);v++){var g=u-f,m=u+f;Be[0]=Ae(e,r,i,g),Be[1]=Ae(t,n,a,g);var h=Si(Be,hr);if(g>=0&&h<c)u=g,c=h;else{Ei[0]=Ae(e,r,i,m),Ei[1]=Ae(t,n,a,m);var p=Si(Ei,hr);m<=1&&p<c?(u=m,c=p):f*=.5}}return jr(c)}function Pw(e,t,r,n,i,a,o){for(var s=e,l=t,u=0,f=1/o,c=1;c<=o;c++){var d=c*f,h=Ae(e,r,i,d),v=Ae(t,n,a,d),g=h-s,m=v-l;u+=Math.sqrt(g*g+m*m),s=h,l=v}return u}var Nw=/cubic-bezier\(([0-9,\.e ]+)\)/;function uf(e){var t=e&&Nw.exec(e);if(t){var r=t[1].split(","),n=+fr(r[0]),i=+fr(r[1]),a=+fr(r[2]),o=+fr(r[3]);if(isNaN(n+i+a+o))return;var s=[];return function(l){return l<=0?0:l>=1?1:is(0,n,a,1,l,s)&&le(0,i,o,1,s[0])}}}var $w=(function(){function e(t){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=t.loop||!1,this.onframe=t.onframe||_e,this.ondestroy=t.ondestroy||_e,this.onrestart=t.onrestart||_e,t.easing&&this.setEasing(t.easing)}return e.prototype.step=function(t,r){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),this._paused){this._pausedTime+=r;return}var n=this._life,i=t-this._startTime-this._pausedTime,a=i/n;a<0&&(a=0),a=Math.min(a,1);var o=this.easingFunc,s=o?o(a):a;if(this.onframe(s),a===1)if(this.loop){var l=i%n;this._startTime=t-l,this._pausedTime=0,this.onrestart()}else return!0;return!1},e.prototype.pause=function(){this._paused=!0},e.prototype.resume=function(){this._paused=!1},e.prototype.setEasing=function(t){this.easing=t,this.easingFunc=_t(t)?t:xa[t]||uf(t)},e})(),yp=(function(){function e(t){this.value=t}return e})(),Ow=(function(){function e(){this._len=0}return e.prototype.insert=function(t){var r=new yp(t);return this.insertEntry(r),r},e.prototype.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},e.prototype.remove=function(t){var r=t.prev,n=t.next;r?r.next=n:this.head=n,n?n.prev=r:this.tail=r,t.next=t.prev=null,this._len--},e.prototype.len=function(){return this._len},e.prototype.clear=function(){this.head=this.tail=null,this._len=0},e})(),Li=(function(){function e(t){this._list=new Ow,this._maxSize=10,this._map={},this._maxSize=t}return e.prototype.put=function(t,r){var n=this._list,i=this._map,a=null;if(i[t]==null){var o=n.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=n.head;n.remove(l),delete i[l.key],a=l.value,this._lastRemovedEntry=l}s?s.value=r:s=new yp(r),s.key=t,n.insertEntry(s),i[t]=s}return a},e.prototype.get=function(t){var r=this._map[t],n=this._list;if(r!=null)return r!==n.tail&&(n.remove(r),n.insertEntry(r)),r.value},e.prototype.clear=function(){this._list.clear(),this._map={}},e.prototype.len=function(){return this._list.len()},e})(),_p={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 Kr(e){return e=Math.round(e),e<0?0:e>255?255:e}function ff(e){return e<0?0:e>1?1:e}function cf(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?Kr(parseFloat(t)/100*255):Kr(parseInt(t,10))}function kn(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?ff(parseFloat(t)/100):ff(parseFloat(t))}function hf(e,t,r){return r<0?r+=1:r>1&&(r-=1),r*6<1?e+(t-e)*r*6:r*2<1?t:r*3<2?e+(t-e)*(2/3-r)*6:e}function ss(e,t,r){return e+(t-e)*r}function Fe(e,t,r,n,i){return e[0]=t,e[1]=r,e[2]=n,e[3]=i,e}function df(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var bp=new Li(20),ls=null;function Mi(e,t){ls&&df(ls,t),ls=bp.put(e,ls||t.slice())}function tr(e,t){if(e){t=t||[];var r=bp.get(e);if(r)return df(t,r);e=e+"";var n=e.replace(/ /g,"").toLowerCase();if(n in _p)return df(t,_p[n]),Mi(e,t),t;var i=n.length;if(n.charAt(0)==="#"){if(i===4||i===5){var a=parseInt(n.slice(1,4),16);if(!(a>=0&&a<=4095)){Fe(t,0,0,0,1);return}return Fe(t,(a&3840)>>4|(a&3840)>>8,a&240|(a&240)>>4,a&15|(a&15)<<4,i===5?parseInt(n.slice(4),16)/15:1),Mi(e,t),t}else if(i===7||i===9){var a=parseInt(n.slice(1,7),16);if(!(a>=0&&a<=16777215)){Fe(t,0,0,0,1);return}return Fe(t,(a&16711680)>>16,(a&65280)>>8,a&255,i===9?parseInt(n.slice(7),16)/255:1),Mi(e,t),t}return}var o=n.indexOf("("),s=n.indexOf(")");if(o!==-1&&s+1===i){var l=n.substr(0,o),u=n.substr(o+1,s-(o+1)).split(","),f=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?Fe(t,+u[0],+u[1],+u[2],1):Fe(t,0,0,0,1);f=kn(u.pop());case"rgb":if(u.length>=3)return Fe(t,cf(u[0]),cf(u[1]),cf(u[2]),u.length===3?f:kn(u[3])),Mi(e,t),t;Fe(t,0,0,0,1);return;case"hsla":if(u.length!==4){Fe(t,0,0,0,1);return}return u[3]=kn(u[3]),vf(u,t),Mi(e,t),t;case"hsl":if(u.length!==3){Fe(t,0,0,0,1);return}return vf(u,t),Mi(e,t),t;default:return}}Fe(t,0,0,0,1)}}function vf(e,t){var r=(parseFloat(e[0])%360+360)%360/360,n=kn(e[1]),i=kn(e[2]),a=i<=.5?i*(n+1):i+n-i*n,o=i*2-a;return t=t||[],Fe(t,Kr(hf(o,a,r+1/3)*255),Kr(hf(o,a,r)*255),Kr(hf(o,a,r-1/3)*255),1),e.length===4&&(t[3]=e[3]),t}function Rw(e){if(e){var t=e[0]/255,r=e[1]/255,n=e[2]/255,i=Math.min(t,r,n),a=Math.max(t,r,n),o=a-i,s=(a+i)/2,l,u;if(o===0)l=0,u=0;else{s<.5?u=o/(a+i):u=o/(2-a-i);var f=((a-t)/6+o/2)/o,c=((a-r)/6+o/2)/o,d=((a-n)/6+o/2)/o;t===a?l=d-c:r===a?l=1/3+f-d:n===a&&(l=2/3+c-f),l<0&&(l+=1),l>1&&(l-=1)}var h=[l*360,u,s];return e[3]!=null&&h.push(e[3]),h}}function Sp(e,t){var r=tr(e);if(r){for(var n=0;n<3;n++)r[n]=r[n]*(1-t)|0,r[n]>255?r[n]=255:r[n]<0&&(r[n]=0);return wa(r,r.length===4?"rgba":"rgb")}}function Bw(e,t,r){if(!(!(t&&t.length)||!(e>=0&&e<=1))){var n=e*(t.length-1),i=Math.floor(n),a=Math.ceil(n),o=tr(t[i]),s=tr(t[a]),l=n-i,u=wa([Kr(ss(o[0],s[0],l)),Kr(ss(o[1],s[1],l)),Kr(ss(o[2],s[2],l)),ff(ss(o[3],s[3],l))],"rgba");return r?{color:u,leftIndex:i,rightIndex:a,value:n}:u}}function pf(e,t,r,n){var i=tr(e);if(e)return i=Rw(i),r!=null&&(i[1]=kn(_t(r)?r(i[1]):r)),n!=null&&(i[2]=kn(_t(n)?n(i[2]):n)),wa(vf(i),"rgba")}function wa(e,t){if(!(!e||!e.length)){var r=e[0]+","+e[1]+","+e[2];return(t==="rgba"||t==="hsva"||t==="hsla")&&(r+=","+e[3]),t+"("+r+")"}}function us(e,t){var r=tr(e);return r?(.299*r[0]+.587*r[1]+.114*r[2])*r[3]/255+(1-r[3])*t:0}var xp=new Li(100);function gf(e){if(ut(e)){var t=xp.get(e);return t||(t=Sp(e,-.1),xp.put(e,t)),t}else if(Ru(e)){var r=et({},e);return r.colorStops=ft(e.colorStops,function(n){return{offset:n.offset,color:Sp(n.color,-.1)}}),r}return e}var fs=Math.round;function Ta(e){var t;if(!e||e==="transparent")e="none";else if(typeof e=="string"&&e.indexOf("rgba")>-1){var r=tr(e);r&&(e="rgb("+r[0]+","+r[1]+","+r[2]+")",t=r[3])}return{color:e,opacity:t??1}}var wp=1e-4;function Jr(e){return e<wp&&e>-wp}function cs(e){return fs(e*1e3)/1e3}function mf(e){return fs(e*1e4)/1e4}function Fw(e){return"matrix("+cs(e[0])+","+cs(e[1])+","+cs(e[2])+","+cs(e[3])+","+mf(e[4])+","+mf(e[5])+")"}var zw={left:"start",right:"end",center:"middle",middle:"middle"};function Vw(e,t,r){return r==="top"?e+=t/2:r==="bottom"&&(e-=t/2),e}function Gw(e){return e&&(e.shadowBlur||e.shadowOffsetX||e.shadowOffsetY)}function Hw(e){var t=e.style,r=e.getGlobalScale();return[t.shadowColor,(t.shadowBlur||0).toFixed(2),(t.shadowOffsetX||0).toFixed(2),(t.shadowOffsetY||0).toFixed(2),r[0],r[1]].join(",")}function Tp(e){return e&&!!e.image}function Uw(e){return e&&!!e.svgElement}function yf(e){return Tp(e)||Uw(e)}function Cp(e){return e.type==="linear"}function Ap(e){return e.type==="radial"}function Ep(e){return e&&(e.type==="linear"||e.type==="radial")}function hs(e){return"url(#"+e+")"}function Lp(e){var t=e.getGlobalScale(),r=Math.max(t[0],t[1]);return Math.max(Math.ceil(Math.log(r)/Math.log(10)),1)}function Mp(e){var t=e.x||0,r=e.y||0,n=(e.rotation||0)*Ko,i=ct(e.scaleX,1),a=ct(e.scaleY,1),o=e.skewX||0,s=e.skewY||0,l=[];return(t||r)&&l.push("translate("+t+"px,"+r+"px)"),n&&l.push("rotate("+n+")"),(i!==1||a!==1)&&l.push("scale("+i+","+a+")"),(o||s)&&l.push("skew("+fs(o*Ko)+"deg, "+fs(s*Ko)+"deg)"),l.join(" ")}var Ww=(function(){return xt.hasGlobalWindow&&_t(window.btoa)?function(e){return window.btoa(unescape(encodeURIComponent(e)))}:typeof Buffer<"u"?function(e){return Buffer.from(e).toString("base64")}:function(e){return process.env.NODE_ENV!=="production"&&gi("Base64 isn't natively supported in the current environment."),null}})(),_f=Array.prototype.slice;function Nr(e,t,r){return(t-e)*r+e}function bf(e,t,r,n){for(var i=t.length,a=0;a<i;a++)e[a]=Nr(t[a],r[a],n);return e}function Zw(e,t,r,n){for(var i=t.length,a=i&&t[0].length,o=0;o<i;o++){e[o]||(e[o]=[]);for(var s=0;s<a;s++)e[o][s]=Nr(t[o][s],r[o][s],n)}return e}function ds(e,t,r,n){for(var i=t.length,a=0;a<i;a++)e[a]=t[a]+r[a]*n;return e}function Dp(e,t,r,n){for(var i=t.length,a=i&&t[0].length,o=0;o<i;o++){e[o]||(e[o]=[]);for(var s=0;s<a;s++)e[o][s]=t[o][s]+r[o][s]*n}return e}function Yw(e,t){for(var r=e.length,n=t.length,i=r>n?t:e,a=Math.min(r,n),o=i[a-1]||{color:[0,0,0,0],offset:0},s=a;s<Math.max(r,n);s++)i.push({offset:o.offset,color:o.color.slice()})}function Xw(e,t,r){var n=e,i=t;if(!(!n.push||!i.push)){var a=n.length,o=i.length;if(a!==o){var s=a>o;if(s)n.length=o;else for(var l=a;l<o;l++)n.push(r===1?i[l]:_f.call(i[l]))}for(var u=n[0]&&n[0].length,l=0;l<n.length;l++)if(r===1)isNaN(n[l])&&(n[l]=i[l]);else for(var f=0;f<u;f++)isNaN(n[l][f])&&(n[l][f]=i[l][f])}}function vs(e){if(Ce(e)){var t=e.length;if(Ce(e[0])){for(var r=[],n=0;n<t;n++)r.push(_f.call(e[n]));return r}return _f.call(e)}return e}function ps(e){return e[0]=Math.floor(e[0])||0,e[1]=Math.floor(e[1])||0,e[2]=Math.floor(e[2])||0,e[3]=e[3]==null?1:e[3],"rgba("+e.join(",")+")"}function qw(e){return Ce(e&&e[0])?2:1}var gs=0,ms=1,Ip=2,Ca=3,Sf=4,xf=5,kp=6;function Pp(e){return e===Sf||e===xf}function ys(e){return e===ms||e===Ip}var Aa=[0,0,0,0],jw=(function(){function e(t){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=t}return e.prototype.isFinished=function(){return this._finished},e.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},e.prototype.needsAnimate=function(){return this.keyframes.length>=1},e.prototype.getAdditiveTrack=function(){return this._additiveTrack},e.prototype.addKeyframe=function(t,r,n){this._needsSort=!0;var i=this.keyframes,a=i.length,o=!1,s=kp,l=r;if(Ce(r)){var u=qw(r);s=u,(u===1&&!$t(r[0])||u===2&&!$t(r[0][0]))&&(o=!0)}else if($t(r)&&!yi(r))s=gs;else if(ut(r))if(!isNaN(+r))s=gs;else{var f=tr(r);f&&(l=f,s=Ca)}else if(Ru(r)){var c=et({},l);c.colorStops=ft(r.colorStops,function(h){return{offset:h.offset,color:tr(h.color)}}),Cp(r)?s=Sf:Ap(r)&&(s=xf),l=c}a===0?this.valType=s:(s!==this.valType||s===kp)&&(o=!0),this.discrete=this.discrete||o;var d={time:t,value:l,rawValue:r,percent:0};return n&&(d.easing=n,d.easingFunc=_t(n)?n:xa[n]||uf(n)),i.push(d),d},e.prototype.prepare=function(t,r){var n=this.keyframes;this._needsSort&&n.sort(function(g,m){return g.time-m.time});for(var i=this.valType,a=n.length,o=n[a-1],s=this.discrete,l=ys(i),u=Pp(i),f=0;f<a;f++){var c=n[f],d=c.value,h=o.value;c.percent=c.time/t,s||(l&&f!==a-1?Xw(d,h,i):u&&Yw(d.colorStops,h.colorStops))}if(!s&&i!==xf&&r&&this.needsAnimate()&&r.needsAnimate()&&i===r.valType&&!r._finished){this._additiveTrack=r;for(var v=n[0].value,f=0;f<a;f++)i===gs?n[f].additiveValue=n[f].value-v:i===Ca?n[f].additiveValue=ds([],n[f].value,v,-1):ys(i)&&(n[f].additiveValue=i===ms?ds([],n[f].value,v,-1):Dp([],n[f].value,v,-1))}},e.prototype.step=function(t,r){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n=this._additiveTrack!=null,i=n?"additiveValue":"value",a=this.valType,o=this.keyframes,s=o.length,l=this.propName,u=a===Ca,f,c=this._lastFr,d=Math.min,h,v;if(s===1)h=v=o[0];else{if(r<0)f=0;else if(r<this._lastFrP){var g=d(c+1,s-1);for(f=g;f>=0&&!(o[f].percent<=r);f--);f=d(f,s-2)}else{for(f=c;f<s&&!(o[f].percent>r);f++);f=d(f-1,s-2)}v=o[f+1],h=o[f]}if(h&&v){this._lastFr=f,this._lastFrP=r;var m=v.percent-h.percent,p=m===0?1:d((r-h.percent)/m,1);v.easingFunc&&(p=v.easingFunc(p));var y=n?this._additiveValue:u?Aa:t[l];if((ys(a)||u)&&!y&&(y=this._additiveValue=[]),this.discrete)t[l]=p<1?h.rawValue:v.rawValue;else if(ys(a))a===ms?bf(y,h[i],v[i],p):Zw(y,h[i],v[i],p);else if(Pp(a)){var _=h[i],b=v[i],x=a===Sf;t[l]={type:x?"linear":"radial",x:Nr(_.x,b.x,p),y:Nr(_.y,b.y,p),colorStops:ft(_.colorStops,function(S,L){var C=b.colorStops[L];return{offset:Nr(S.offset,C.offset,p),color:ps(bf([],S.color,C.color,p))}}),global:b.global},x?(t[l].x2=Nr(_.x2,b.x2,p),t[l].y2=Nr(_.y2,b.y2,p)):t[l].r=Nr(_.r,b.r,p)}else if(u)bf(y,h[i],v[i],p),n||(t[l]=ps(y));else{var w=Nr(h[i],v[i],p);n?this._additiveValue=w:t[l]=w}n&&this._addToTarget(t)}}},e.prototype._addToTarget=function(t){var r=this.valType,n=this.propName,i=this._additiveValue;r===gs?t[n]=t[n]+i:r===Ca?(tr(t[n],Aa),ds(Aa,Aa,i,1),t[n]=ps(Aa)):r===ms?ds(t[n],t[n],i,1):r===Ip&&Dp(t[n],t[n],i,1)},e})(),wf=(function(){function e(t,r,n,i){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=r,r&&i){gi("Can' use additive animation on looped animation.");return}this._additiveAnimators=i,this._allowDiscrete=n}return e.prototype.getMaxTime=function(){return this._maxTime},e.prototype.getDelay=function(){return this._delay},e.prototype.getLoop=function(){return this._loop},e.prototype.getTarget=function(){return this._target},e.prototype.changeTarget=function(t){this._target=t},e.prototype.when=function(t,r,n){return this.whenWithKeys(t,r,Mt(r),n)},e.prototype.whenWithKeys=function(t,r,n,i){for(var a=this._tracks,o=0;o<n.length;o++){var s=n[o],l=a[s];if(!l){l=a[s]=new jw(s);var u=void 0,f=this._getAdditiveTrack(s);if(f){var c=f.keyframes,d=c[c.length-1];u=d&&d.value,f.valType===Ca&&u&&(u=ps(u))}else u=this._target[s];if(u==null)continue;t>0&&l.addKeyframe(0,vs(u),i),this._trackKeys.push(s)}l.addKeyframe(t,vs(r[s]),i)}return this._maxTime=Math.max(this._maxTime,t),this},e.prototype.pause=function(){this._clip.pause(),this._paused=!0},e.prototype.resume=function(){this._clip.resume(),this._paused=!1},e.prototype.isPaused=function(){return!!this._paused},e.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},e.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var r=t.length,n=0;n<r;n++)t[n].call(this)},e.prototype._abortedCallback=function(){this._setTracksFinished();var t=this.animation,r=this._abortedCbs;if(t&&t.removeClip(this._clip),this._clip=null,r)for(var n=0;n<r.length;n++)r[n].call(this)},e.prototype._setTracksFinished=function(){for(var t=this._tracks,r=this._trackKeys,n=0;n<r.length;n++)t[r[n]].setFinished()},e.prototype._getAdditiveTrack=function(t){var r,n=this._additiveAnimators;if(n)for(var i=0;i<n.length;i++){var a=n[i].getTrack(t);a&&(r=a)}return r},e.prototype.start=function(t){if(!(this._started>0)){this._started=1;for(var r=this,n=[],i=this._maxTime||0,a=0;a<this._trackKeys.length;a++){var o=this._trackKeys[a],s=this._tracks[o],l=this._getAdditiveTrack(o),u=s.keyframes,f=u.length;if(s.prepare(i,l),s.needsAnimate())if(!this._allowDiscrete&&s.discrete){var c=u[f-1];c&&(r._target[s.propName]=c.rawValue),s.setFinished()}else n.push(s)}if(n.length||this._force){var d=new $w({life:i,loop:this._loop,delay:this._delay||0,onframe:function(h){r._started=2;var v=r._additiveAnimators;if(v){for(var g=!1,m=0;m<v.length;m++)if(v[m]._clip){g=!0;break}g||(r._additiveAnimators=null)}for(var m=0;m<n.length;m++)n[m].step(r._target,h);var p=r._onframeCbs;if(p)for(var m=0;m<p.length;m++)p[m](r._target,h)},ondestroy:function(){r._doneCallback()}});this._clip=d,this.animation&&this.animation.addClip(d),t&&d.setEasing(t)}else this._doneCallback();return this}},e.prototype.stop=function(t){if(this._clip){var r=this._clip;t&&r.onframe(1),this._abortedCallback()}},e.prototype.delay=function(t){return this._delay=t,this},e.prototype.during=function(t){return t&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(t)),this},e.prototype.done=function(t){return t&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(t)),this},e.prototype.aborted=function(t){return t&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(t)),this},e.prototype.getClip=function(){return this._clip},e.prototype.getTrack=function(t){return this._tracks[t]},e.prototype.getTracks=function(){var t=this;return ft(this._trackKeys,function(r){return t._tracks[r]})},e.prototype.stopTracks=function(t,r){if(!t.length||!this._clip)return!0;for(var n=this._tracks,i=this._trackKeys,a=0;a<t.length;a++){var o=n[t[a]];o&&!o.isFinished()&&(r?o.step(this._target,1):this._started===1&&o.step(this._target,0),o.setFinished())}for(var s=!0,a=0;a<i.length;a++)if(!n[i[a]].isFinished()){s=!1;break}return s&&this._abortedCallback(),s},e.prototype.saveTo=function(t,r,n){if(t){r=r||this._trackKeys;for(var i=0;i<r.length;i++){var a=r[i],o=this._tracks[a];if(!(!o||o.isFinished())){var s=o.keyframes,l=s[n?0:s.length-1];l&&(t[a]=vs(l.rawValue))}}}},e.prototype.__changeFinalValue=function(t,r){r=r||Mt(t);for(var n=0;n<r.length;n++){var i=r[n],a=this._tracks[i];if(a){var o=a.keyframes;if(o.length>1){var s=o.pop();a.addKeyframe(s.time,t[i]),a.prepare(this._maxTime,a.getAdditiveTrack())}}}},e})();function Di(){return new Date().getTime()}var Qw=(function(e){it(t,e);function t(r){var n=e.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,r=r||{},n.stage=r.stage||{},n}return t.prototype.addClip=function(r){r.animation&&this.removeClip(r),this._head?(this._tail.next=r,r.prev=this._tail,r.next=null,this._tail=r):this._head=this._tail=r,r.animation=this},t.prototype.addAnimator=function(r){r.animation=this;var n=r.getClip();n&&this.addClip(n)},t.prototype.removeClip=function(r){if(r.animation){var n=r.prev,i=r.next;n?n.next=i:this._head=i,i?i.prev=n:this._tail=n,r.next=r.prev=r.animation=null}},t.prototype.removeAnimator=function(r){var n=r.getClip();n&&this.removeClip(n),r.animation=null},t.prototype.update=function(r){for(var n=Di()-this._pausedTime,i=n-this._time,a=this._head;a;){var o=a.next,s=a.step(n,i);s&&(a.ondestroy(),this.removeClip(a)),a=o}this._time=n,r||(this.trigger("frame",i),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var r=this;this._running=!0;function n(){r._running&&(lf(n),!r._paused&&r.update())}lf(n)},t.prototype.start=function(){this._running||(this._time=Di(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=Di(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=Di()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){for(var r=this._head;r;){var n=r.next;r.prev=r.next=r.animation=null,r=n}this._head=this._tail=null},t.prototype.isFinished=function(){return this._head==null},t.prototype.animate=function(r,n){n=n||{},this.start();var i=new wf(r,n.loop);return this.addAnimator(i),i},t})(kr),Kw=300,Tf=xt.domSupported,Cf=(function(){var e=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],t=["touchstart","touchend","touchmove"],r={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},n=ft(e,function(i){var a=i.replace("mouse","pointer");return r.hasOwnProperty(a)?a:i});return{mouse:e,touch:t,pointer:n}})(),Np={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},$p=!1;function Af(e){var t=e.pointerType;return t==="pen"||t==="touch"}function Jw(e){e.touching=!0,e.touchTimer!=null&&(clearTimeout(e.touchTimer),e.touchTimer=null),e.touchTimer=setTimeout(function(){e.touching=!1,e.touchTimer=null},700)}function Ef(e){e&&(e.zrByTouch=!0)}function t2(e,t){return Re(e.dom,new e2(e,t),!0)}function Op(e,t){for(var r=t,n=!1;r&&r.nodeType!==9&&!(n=r.domBelongToZr||r!==t&&r===e.painterRoot);)r=r.parentNode;return n}var e2=(function(){function e(t,r){this.stopPropagation=_e,this.stopImmediatePropagation=_e,this.preventDefault=_e,this.type=r.type,this.target=this.currentTarget=t.dom,this.pointerType=r.pointerType,this.clientX=r.clientX,this.clientY=r.clientY}return e})(),er={mousedown:function(e){e=Re(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger("mousedown",e)},mousemove:function(e){e=Re(this.dom,e);var t=this.__mayPointerCapture;t&&(e.zrX!==t[0]||e.zrY!==t[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",e)},mouseup:function(e){e=Re(this.dom,e),this.__togglePointerCapture(!1),this.trigger("mouseup",e)},mouseout:function(e){e=Re(this.dom,e);var t=e.toElement||e.relatedTarget;Op(this,t)||(this.__pointerCapturing&&(e.zrEventControl="no_globalout"),this.trigger("mouseout",e))},wheel:function(e){$p=!0,e=Re(this.dom,e),this.trigger("mousewheel",e)},mousewheel:function(e){$p||(e=Re(this.dom,e),this.trigger("mousewheel",e))},touchstart:function(e){e=Re(this.dom,e),Ef(e),this.__lastTouchMoment=new Date,this.handler.processGesture(e,"start"),er.mousemove.call(this,e),er.mousedown.call(this,e)},touchmove:function(e){e=Re(this.dom,e),Ef(e),this.handler.processGesture(e,"change"),er.mousemove.call(this,e)},touchend:function(e){e=Re(this.dom,e),Ef(e),this.handler.processGesture(e,"end"),er.mouseup.call(this,e),+new Date-+this.__lastTouchMoment<Kw&&er.click.call(this,e)},pointerdown:function(e){er.mousedown.call(this,e)},pointermove:function(e){Af(e)||er.mousemove.call(this,e)},pointerup:function(e){er.mouseup.call(this,e)},pointerout:function(e){Af(e)||er.mouseout.call(this,e)}};O(["click","dblclick","contextmenu"],function(e){er[e]=function(t){t=Re(this.dom,t),this.trigger(e,t)}});var Lf={pointermove:function(e){Af(e)||Lf.mousemove.call(this,e)},pointerup:function(e){Lf.mouseup.call(this,e)},mousemove:function(e){this.trigger("mousemove",e)},mouseup:function(e){var t=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",e),t&&(e.zrEventControl="only_globalout",this.trigger("mouseout",e))}};function r2(e,t){var r=t.domHandlers;xt.pointerEventsSupported?O(Cf.pointer,function(n){_s(t,n,function(i){r[n].call(e,i)})}):(xt.touchEventsSupported&&O(Cf.touch,function(n){_s(t,n,function(i){r[n].call(e,i),Jw(t)})}),O(Cf.mouse,function(n){_s(t,n,function(i){i=ju(i),t.touching||r[n].call(e,i)})}))}function n2(e,t){xt.pointerEventsSupported?O(Np.pointer,r):xt.touchEventsSupported||O(Np.mouse,r);function r(n){function i(a){a=ju(a),Op(e,a.target)||(a=t2(e,a),t.domHandlers[n].call(e,a))}_s(t,n,i,{capture:!0})}}function _s(e,t,r,n){e.mounted[t]=r,e.listenerOpts[t]=n,hw(e.domTarget,t,r,n)}function Mf(e){var t=e.mounted;for(var r in t)t.hasOwnProperty(r)&&dw(e.domTarget,r,t[r],e.listenerOpts[r]);e.mounted={}}var Rp=(function(){function e(t,r){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=r}return e})(),i2=(function(e){it(t,e);function t(r,n){var i=e.call(this)||this;return i.__pointerCapturing=!1,i.dom=r,i.painterRoot=n,i._localHandlerScope=new Rp(r,er),Tf&&(i._globalHandlerScope=new Rp(document,Lf)),r2(i,i._localHandlerScope),i}return t.prototype.dispose=function(){Mf(this._localHandlerScope),Tf&&Mf(this._globalHandlerScope)},t.prototype.setCursor=function(r){this.dom.style&&(this.dom.style.cursor=r||"default")},t.prototype.__togglePointerCapture=function(r){if(this.__mayPointerCapture=null,Tf&&+this.__pointerCapturing^+r){this.__pointerCapturing=r;var n=this._globalHandlerScope;r?n2(this,n):Mf(n)}},t})(kr),Bp=1;xt.hasGlobalWindow&&(Bp=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var Fp=Bp,Df=.4,If="#333",kf="#ccc",a2="#eee",zp=Ku,Vp=5e-5;function Pn(e){return e>Vp||e<-Vp}var Nn=[],Ii=[],Pf=Pr(),Nf=Math.abs,$f=(function(){function e(){}return e.prototype.getLocalTransform=function(t){return e.getLocalTransform(this,t)},e.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},e.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},e.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},e.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},e.prototype.needLocalTransform=function(){return Pn(this.rotation)||Pn(this.x)||Pn(this.y)||Pn(this.scaleX-1)||Pn(this.scaleY-1)||Pn(this.skewX)||Pn(this.skewY)},e.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,r=this.needLocalTransform(),n=this.transform;if(!(r||t)){n&&(zp(n),this.invTransform=null);return}n=n||Pr(),r?this.getLocalTransform(n):zp(n),t&&(r?pa(n,t,n):Kv(n,t)),this.transform=n,this._resolveGlobalScaleRatio(n)},e.prototype._resolveGlobalScaleRatio=function(t){var r=this.globalScaleRatio;if(r!=null&&r!==1){this.getGlobalScale(Nn);var n=Nn[0]<0?-1:1,i=Nn[1]<0?-1:1,a=((Nn[0]-n)*r+n)/Nn[0]||0,o=((Nn[1]-i)*r+i)/Nn[1]||0;t[0]*=a,t[1]*=a,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||Pr(),ga(this.invTransform,t)},e.prototype.getComputedTransform=function(){for(var t=this,r=[];t;)r.push(t),t=t.parent;for(;t=r.pop();)t.updateTransform();return this.transform},e.prototype.setLocalTransform=function(t){if(t){var r=t[0]*t[0]+t[1]*t[1],n=t[2]*t[2]+t[3]*t[3],i=Math.atan2(t[1],t[0]),a=Math.PI/2+i-Math.atan2(t[3],t[2]);n=Math.sqrt(n)*Math.cos(a),r=Math.sqrt(r),this.skewX=a,this.skewY=0,this.rotation=-i,this.x=+t[4],this.y=+t[5],this.scaleX=r,this.scaleY=n,this.originX=0,this.originY=0}},e.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,r=this.transform;t&&t.transform&&(t.invTransform=t.invTransform||Pr(),pa(Ii,t.invTransform,r),r=Ii);var n=this.originX,i=this.originY;(n||i)&&(Pf[4]=n,Pf[5]=i,pa(Ii,r,Pf),Ii[4]-=n,Ii[5]-=i,r=Ii),this.setLocalTransform(r)}},e.prototype.getGlobalScale=function(t){var r=this.transform;return t=t||[],r?(t[0]=Math.sqrt(r[0]*r[0]+r[1]*r[1]),t[1]=Math.sqrt(r[2]*r[2]+r[3]*r[3]),r[0]<0&&(t[0]=-t[0]),r[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},e.prototype.transformCoordToLocal=function(t,r){var n=[t,r],i=this.invTransform;return i&&Oe(n,n,i),n},e.prototype.transformCoordToGlobal=function(t,r){var n=[t,r],i=this.transform;return i&&Oe(n,n,i),n},e.prototype.getLineScale=function(){var t=this.transform;return t&&Nf(t[0]-1)>1e-10&&Nf(t[3]-1)>1e-10?Math.sqrt(Nf(t[0]*t[3]-t[2]*t[1])):1},e.prototype.copyTransform=function(t){bs(this,t)},e.getLocalTransform=function(t,r){r=r||[];var n=t.originX||0,i=t.originY||0,a=t.scaleX,o=t.scaleY,s=t.anchorX,l=t.anchorY,u=t.rotation||0,f=t.x,c=t.y,d=t.skewX?Math.tan(t.skewX):0,h=t.skewY?Math.tan(-t.skewY):0;if(n||i||s||l){var v=n+s,g=i+l;r[4]=-v*a-d*g*o,r[5]=-g*o-h*v*a}else r[4]=r[5]=0;return r[0]=a,r[3]=o,r[1]=h*a,r[2]=d*o,u&&tf(r,r,u),r[4]+=n+f,r[5]+=i+c,r},e.initDefaultProps=(function(){var t=e.prototype;t.scaleX=t.scaleY=t.globalScaleRatio=1,t.x=t.y=t.originX=t.originY=t.skewX=t.skewY=t.rotation=t.anchorX=t.anchorY=0})(),e})(),Ea=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function bs(e,t){for(var r=0;r<Ea.length;r++){var n=Ea[r];e[n]=t[n]}}function dr(e){Ss||(Ss=new Li(100)),e=e||Dr;var t=Ss.get(e);return t||(t={font:e,strWidthCache:new Li(500),asciiWidthMap:null,asciiWidthMapTried:!1,stWideCharWidth:Xr.measureText("国",e).width,asciiCharWidth:Xr.measureText("a",e).width},Ss.put(e,t)),t}var Ss;function o2(e){if(!(Of>=Gp)){e=e||Dr;for(var t=[],r=+new Date,n=0;n<=127;n++)t[n]=Xr.measureText(String.fromCharCode(n),e).width;var i=+new Date-r;return i>16?Of=Gp:i>2&&Of++,t}}var Of=0,Gp=5;function Hp(e,t){return e.asciiWidthMapTried||(e.asciiWidthMap=o2(e.font),e.asciiWidthMapTried=!0),0<=t&&t<=127?e.asciiWidthMap!=null?e.asciiWidthMap[t]:e.asciiCharWidth:e.stWideCharWidth}function vr(e,t){var r=e.strWidthCache,n=r.get(t);return n==null&&(n=Xr.measureText(t,e.font).width,r.put(t,n)),n}function Up(e,t,r,n){var i=vr(dr(t),e),a=La(t),o=ki(0,i,r),s=$n(0,a,n),l=new Ct(o,s,i,a);return l}function Wp(e,t,r,n){var i=((e||"")+"").split(`
|
|
43
|
+
`),a=i.length;if(a===1)return Up(i[0],t,r,n);for(var o=new Ct(0,0,0,0),s=0;s<i.length;s++){var l=Up(i[s],t,r,n);s===0?o.copy(l):o.union(l)}return o}function ki(e,t,r,n){return r==="right"?n?e+=t:e-=t:r==="center"&&(n?e+=t/2:e-=t/2),e}function $n(e,t,r,n){return r==="middle"?n?e+=t/2:e-=t/2:r==="bottom"&&(n?e+=t:e-=t),e}function La(e){return dr(e).stWideCharWidth}function tn(e,t){return typeof e=="string"?e.lastIndexOf("%")>=0?parseFloat(e)/100*t:parseFloat(e):e}function xs(e,t,r){var n=t.position||"inside",i=t.distance!=null?t.distance:5,a=r.height,o=r.width,s=a/2,l=r.x,u=r.y,f="left",c="top";if(n instanceof Array)l+=tn(n[0],r.width),u+=tn(n[1],r.height),f=null,c=null;else switch(n){case"left":l-=i,u+=s,f="right",c="middle";break;case"right":l+=i+o,u+=s,c="middle";break;case"top":l+=o/2,u-=i,f="center",c="bottom";break;case"bottom":l+=o/2,u+=a+i,f="center";break;case"inside":l+=o/2,u+=s,f="center",c="middle";break;case"insideLeft":l+=i,u+=s,c="middle";break;case"insideRight":l+=o-i,u+=s,f="right",c="middle";break;case"insideTop":l+=o/2,u+=i,f="center";break;case"insideBottom":l+=o/2,u+=a-i,f="center",c="bottom";break;case"insideTopLeft":l+=i,u+=i;break;case"insideTopRight":l+=o-i,u+=i,f="right";break;case"insideBottomLeft":l+=i,u+=a-i,c="bottom";break;case"insideBottomRight":l+=o-i,u+=a-i,f="right",c="bottom";break}return e=e||{},e.x=l,e.y=u,e.align=f,e.verticalAlign=c,e}var Rf="__zr_normal__",Bf=Ea.concat(["ignore"]),s2=qr(Ea,function(e,t){return e[t]=!0,e},{ignore:!1}),Pi={},l2=new Ct(0,0,0,0),ws=[],Ts=(function(){function e(t){this.id=Gv(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return e.prototype._init=function(t){this.attr(t)},e.prototype.drift=function(t,r,n){switch(this.draggable){case"horizontal":r=0;break;case"vertical":t=0;break}var i=this.transform;i||(i=this.transform=[1,0,0,1,0,0]),i[4]+=t,i[5]+=r,this.decomposeTransform(),this.markRedraw()},e.prototype.beforeUpdate=function(){},e.prototype.afterUpdate=function(){},e.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},e.prototype.updateInnerText=function(t){var r=this._textContent;if(r&&(!r.ignore||t)){this.textConfig||(this.textConfig={});var n=this.textConfig,i=n.local,a=r.innerTransformable,o=void 0,s=void 0,l=!1;a.parent=i?this:null;var u=!1;a.copyTransform(r);var f=n.position!=null,c=n.autoOverflowArea,d=void 0;if((c||f)&&(d=l2,n.layoutRect?d.copy(n.layoutRect):d.copy(this.getBoundingRect()),i||d.applyTransform(this.transform)),f){this.calculateTextPosition?this.calculateTextPosition(Pi,n,d):xs(Pi,n,d),a.x=Pi.x,a.y=Pi.y,o=Pi.align,s=Pi.verticalAlign;var h=n.origin;if(h&&n.rotation!=null){var v=void 0,g=void 0;h==="center"?(v=d.width*.5,g=d.height*.5):(v=tn(h[0],d.width),g=tn(h[1],d.height)),u=!0,a.originX=-a.x+v+(i?0:d.x),a.originY=-a.y+g+(i?0:d.y)}}n.rotation!=null&&(a.rotation=n.rotation);var m=n.offset;m&&(a.x+=m[0],a.y+=m[1],u||(a.originX=-m[0],a.originY=-m[1]));var p=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={});if(c){var y=p.overflowRect=p.overflowRect||new Ct(0,0,0,0);a.getLocalTransform(ws),ga(ws,ws),Ct.copy(y,d),y.applyTransform(ws)}else p.overflowRect=null;var _=n.inside==null?typeof n.position=="string"&&n.position.indexOf("inside")>=0:n.inside,b=void 0,x=void 0,w=void 0;_&&this.canBeInsideText()?(b=n.insideFill,x=n.insideStroke,(b==null||b==="auto")&&(b=this.getInsideTextFill()),(x==null||x==="auto")&&(x=this.getInsideTextStroke(b),w=!0)):(b=n.outsideFill,x=n.outsideStroke,(b==null||b==="auto")&&(b=this.getOutsideFill()),(x==null||x==="auto")&&(x=this.getOutsideStroke(b),w=!0)),b=b||"#000",(b!==p.fill||x!==p.stroke||w!==p.autoStroke||o!==p.align||s!==p.verticalAlign)&&(l=!0,p.fill=b,p.stroke=x,p.autoStroke=w,p.align=o,p.verticalAlign=s,r.setDefaultTextStyle(p)),r.__dirty|=cr,l&&r.dirtyStyle(!0)}},e.prototype.canBeInsideText=function(){return!0},e.prototype.getInsideTextFill=function(){return"#fff"},e.prototype.getInsideTextStroke=function(t){return"#000"},e.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?kf:If},e.prototype.getOutsideStroke=function(t){var r=this.__zr&&this.__zr.getBackgroundColor(),n=typeof r=="string"&&tr(r);n||(n=[255,255,255,1]);for(var i=n[3],a=this.__zr.isDarkMode(),o=0;o<3;o++)n[o]=n[o]*i+(a?0:255)*(1-i);return n[3]=1,wa(n,"rgba")},e.prototype.traverse=function(t,r){},e.prototype.attrKV=function(t,r){t==="textConfig"?this.setTextConfig(r):t==="textContent"?this.setTextContent(r):t==="clipPath"?this.setClipPath(r):t==="extra"?(this.extra=this.extra||{},et(this.extra,r)):this[t]=r},e.prototype.hide=function(){this.ignore=!0,this.markRedraw()},e.prototype.show=function(){this.ignore=!1,this.markRedraw()},e.prototype.attr=function(t,r){if(typeof t=="string")this.attrKV(t,r);else if(pt(t))for(var n=t,i=Mt(n),a=0;a<i.length;a++){var o=i[a];this.attrKV(o,t[o])}return this.markRedraw(),this},e.prototype.saveCurrentToNormalState=function(t){this._innerSaveToNormal(t);for(var r=this._normalState,n=0;n<this.animators.length;n++){var i=this.animators[n],a=i.__fromStateTransition;if(!(i.getLoop()||a&&a!==Rf)){var o=i.targetName,s=o?r[o]:r;i.saveTo(s)}}},e.prototype._innerSaveToNormal=function(t){var r=this._normalState;r||(r=this._normalState={}),t.textConfig&&!r.textConfig&&(r.textConfig=this.textConfig),this._savePrimaryToNormal(t,r,Bf)},e.prototype._savePrimaryToNormal=function(t,r,n){for(var i=0;i<n.length;i++){var a=n[i];t[a]!=null&&!(a in r)&&(r[a]=this[a])}},e.prototype.hasState=function(){return this.currentStates.length>0},e.prototype.getState=function(t){return this.states[t]},e.prototype.ensureState=function(t){var r=this.states;return r[t]||(r[t]={}),r[t]},e.prototype.clearStates=function(t){this.useState(Rf,!1,t)},e.prototype.useState=function(t,r,n,i){var a=t===Rf,o=this.hasState();if(!(!o&&a)){var s=this.currentStates,l=this.stateTransition;if(!(Nt(s,t)>=0&&(r||s.length===1))){var u;if(this.stateProxy&&!a&&(u=this.stateProxy(t)),u||(u=this.states&&this.states[t]),!u&&!a){gi("State "+t+" not exists.");return}a||this.saveCurrentToNormalState(u);var f=!!(u&&u.hoverLayer||i);f&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,u,this._normalState,r,!n&&!this.__inHover&&l&&l.duration>0,l);var c=this._textContent,d=this._textGuide;return c&&c.useState(t,r,n,f),d&&d.useState(t,r,n,f),a?(this.currentStates=[],this._normalState={}):r?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!f&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~cr),u}}},e.prototype.useStates=function(t,r,n){if(!t.length)this.clearStates();else{var i=[],a=this.currentStates,o=t.length,s=o===a.length;if(s){for(var l=0;l<o;l++)if(t[l]!==a[l]){s=!1;break}}if(s)return;for(var l=0;l<o;l++){var u=t[l],f=void 0;this.stateProxy&&(f=this.stateProxy(u,t)),f||(f=this.states[u]),f&&i.push(f)}var c=i[o-1],d=!!(c&&c.hoverLayer||n);d&&this._toggleHoverLayerFlag(!0);var h=this._mergeStates(i),v=this.stateTransition;this.saveCurrentToNormalState(h),this._applyStateObj(t.join(","),h,this._normalState,!1,!r&&!this.__inHover&&v&&v.duration>0,v);var g=this._textContent,m=this._textGuide;g&&g.useStates(t,r,d),m&&m.useStates(t,r,d),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!d&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~cr)}},e.prototype.isSilent=function(){for(var t=this;t;){if(t.silent)return!0;var r=t.__hostTarget;t=r?t.ignoreHostSilent?null:r:t.parent}return!1},e.prototype._updateAnimationTargets=function(){for(var t=0;t<this.animators.length;t++){var r=this.animators[t];r.targetName&&r.changeTarget(this[r.targetName])}},e.prototype.removeState=function(t){var r=Nt(this.currentStates,t);if(r>=0){var n=this.currentStates.slice();n.splice(r,1),this.useStates(n)}},e.prototype.replaceState=function(t,r,n){var i=this.currentStates.slice(),a=Nt(i,t),o=Nt(i,r)>=0;a>=0?o?i.splice(a,1):i[a]=r:n&&!o&&i.push(r),this.useStates(i)},e.prototype.toggleState=function(t,r){r?this.useState(t,!0):this.removeState(t)},e.prototype._mergeStates=function(t){for(var r={},n,i=0;i<t.length;i++){var a=t[i];et(r,a),a.textConfig&&(n=n||{},et(n,a.textConfig))}return n&&(r.textConfig=n),r},e.prototype._applyStateObj=function(t,r,n,i,a,o){var s=!(r&&i);r&&r.textConfig?(this.textConfig=et({},i?this.textConfig:n.textConfig),et(this.textConfig,r.textConfig)):s&&n.textConfig&&(this.textConfig=n.textConfig);for(var l={},u=!1,f=0;f<Bf.length;f++){var c=Bf[f],d=a&&s2[c];r&&r[c]!=null?d?(u=!0,l[c]=r[c]):this[c]=r[c]:s&&n[c]!=null&&(d?(u=!0,l[c]=n[c]):this[c]=n[c])}if(!a)for(var f=0;f<this.animators.length;f++){var h=this.animators[f],v=h.targetName;h.getLoop()||h.__changeFinalValue(v?(r||n)[v]:r||n)}u&&this._transitionState(t,l,o)},e.prototype._attachComponent=function(t){if(t.__zr&&!t.__hostTarget){if(process.env.NODE_ENV!=="production")throw new Error("Text element has been added to zrender.");return}if(t===this){if(process.env.NODE_ENV!=="production")throw new Error("Recursive component attachment.");return}var r=this.__zr;r&&t.addSelfToZr(r),t.__zr=r,t.__hostTarget=this},e.prototype._detachComponent=function(t){t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__hostTarget=null},e.prototype.getClipPath=function(){return this._clipPath},e.prototype.setClipPath=function(t){this._clipPath&&this._clipPath!==t&&this.removeClipPath(),this._attachComponent(t),this._clipPath=t,this.markRedraw()},e.prototype.removeClipPath=function(){var t=this._clipPath;t&&(this._detachComponent(t),this._clipPath=null,this.markRedraw())},e.prototype.getTextContent=function(){return this._textContent},e.prototype.setTextContent=function(t){var r=this._textContent;if(r!==t){if(r&&r!==t&&this.removeTextContent(),process.env.NODE_ENV!=="production"&&t.__zr&&!t.__hostTarget)throw new Error("Text element has been added to zrender.");t.innerTransformable=new $f,this._attachComponent(t),this._textContent=t,this.markRedraw()}},e.prototype.setTextConfig=function(t){this.textConfig||(this.textConfig={}),et(this.textConfig,t),this.markRedraw()},e.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},e.prototype.removeTextContent=function(){var t=this._textContent;t&&(t.innerTransformable=null,this._detachComponent(t),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},e.prototype.getTextGuideLine=function(){return this._textGuide},e.prototype.setTextGuideLine=function(t){this._textGuide&&this._textGuide!==t&&this.removeTextGuideLine(),this._attachComponent(t),this._textGuide=t,this.markRedraw()},e.prototype.removeTextGuideLine=function(){var t=this._textGuide;t&&(this._detachComponent(t),this._textGuide=null,this.markRedraw())},e.prototype.markRedraw=function(){this.__dirty|=cr;var t=this.__zr;t&&(this.__inHover?t.refreshHover():t.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},e.prototype.dirty=function(){this.markRedraw()},e.prototype._toggleHoverLayerFlag=function(t){this.__inHover=t;var r=this._textContent,n=this._textGuide;r&&(r.__inHover=t),n&&(n.__inHover=t)},e.prototype.addSelfToZr=function(t){if(this.__zr!==t){this.__zr=t;var r=this.animators;if(r)for(var n=0;n<r.length;n++)t.animation.addAnimator(r[n]);this._clipPath&&this._clipPath.addSelfToZr(t),this._textContent&&this._textContent.addSelfToZr(t),this._textGuide&&this._textGuide.addSelfToZr(t)}},e.prototype.removeSelfFromZr=function(t){if(this.__zr){this.__zr=null;var r=this.animators;if(r)for(var n=0;n<r.length;n++)t.animation.removeAnimator(r[n]);this._clipPath&&this._clipPath.removeSelfFromZr(t),this._textContent&&this._textContent.removeSelfFromZr(t),this._textGuide&&this._textGuide.removeSelfFromZr(t)}},e.prototype.animate=function(t,r,n){var i=t?this[t]:this;if(process.env.NODE_ENV!=="production"&&!i){gi('Property "'+t+'" is not existed in element '+this.id);return}var a=new wf(i,r,n);return t&&(a.targetName=t),this.addAnimator(a,t),a},e.prototype.addAnimator=function(t,r){var n=this.__zr,i=this;t.during(function(){i.updateDuringAnimation(r)}).done(function(){var a=i.animators,o=Nt(a,t);o>=0&&a.splice(o,1)}),this.animators.push(t),n&&n.animation.addAnimator(t),n&&n.wakeUp()},e.prototype.updateDuringAnimation=function(t){this.markRedraw()},e.prototype.stopAnimation=function(t,r){for(var n=this.animators,i=n.length,a=[],o=0;o<i;o++){var s=n[o];!t||t===s.scope?s.stop(r):a.push(s)}return this.animators=a,this},e.prototype.animateTo=function(t,r,n){Ff(this,t,r,n)},e.prototype.animateFrom=function(t,r,n){Ff(this,t,r,n,!0)},e.prototype._transitionState=function(t,r,n,i){for(var a=Ff(this,r,n,i),o=0;o<a.length;o++)a[o].__fromStateTransition=t},e.prototype.getBoundingRect=function(){return null},e.prototype.getPaintRect=function(){return null},e.initDefaultProps=(function(){var t=e.prototype;t.type="element",t.name="",t.ignore=t.silent=t.ignoreHostSilent=t.isGroup=t.draggable=t.dragging=t.ignoreClip=t.__inHover=!1,t.__dirty=cr;var r={};function n(a,o,s){r[a+o+s]||(console.warn("DEPRECATED: '"+a+"' has been deprecated. use '"+o+"', '"+s+"' instead"),r[a+o+s]=!0)}function i(a,o,s,l){Object.defineProperty(t,a,{get:function(){if(process.env.NODE_ENV!=="production"&&n(a,s,l),!this[o]){var f=this[o]=[];u(this,f)}return this[o]},set:function(f){process.env.NODE_ENV!=="production"&&n(a,s,l),this[s]=f[0],this[l]=f[1],this[o]=f,u(this,f)}});function u(f,c){Object.defineProperty(c,0,{get:function(){return f[s]},set:function(d){f[s]=d}}),Object.defineProperty(c,1,{get:function(){return f[l]},set:function(d){f[l]=d}})}}Object.defineProperty&&(i("position","_legacyPos","x","y"),i("scale","_legacyScale","scaleX","scaleY"),i("origin","_legacyOrigin","originX","originY"))})(),e})();ur(Ts,kr),ur(Ts,$f);function Ff(e,t,r,n,i){r=r||{};var a=[];Zp(e,"",e,t,r,n,a,i);var o=a.length,s=!1,l=r.done,u=r.aborted,f=function(){s=!0,o--,o<=0&&(s?l&&l():u&&u())},c=function(){o--,o<=0&&(s?l&&l():u&&u())};o||l&&l(),a.length>0&&r.during&&a[0].during(function(v,g){r.during(g)});for(var d=0;d<a.length;d++){var h=a[d];f&&h.done(f),c&&h.aborted(c),r.force&&h.duration(r.duration),h.start(r.easing)}return a}function zf(e,t,r){for(var n=0;n<r;n++)e[n]=t[n]}function u2(e){return Ce(e[0])}function f2(e,t,r){if(Ce(t[r]))if(Ce(e[r])||(e[r]=[]),ye(t[r])){var n=t[r].length;e[r].length!==n&&(e[r]=new t[r].constructor(n),zf(e[r],t[r],n))}else{var i=t[r],a=e[r],o=i.length;if(u2(i))for(var s=i[0].length,l=0;l<o;l++)a[l]?zf(a[l],i[l],s):a[l]=Array.prototype.slice.call(i[l]);else zf(a,i,o);a.length=i.length}else e[r]=t[r]}function c2(e,t){return e===t||Ce(e)&&Ce(t)&&h2(e,t)}function h2(e,t){var r=e.length;if(r!==t.length)return!1;for(var n=0;n<r;n++)if(e[n]!==t[n])return!1;return!0}function Zp(e,t,r,n,i,a,o,s){for(var l=Mt(n),u=i.duration,f=i.delay,c=i.additive,d=i.setToFinal,h=!pt(a),v=e.animators,g=[],m=0;m<l.length;m++){var p=l[m],y=n[p];if(y!=null&&r[p]!=null&&(h||a[p]))if(pt(y)&&!Ce(y)&&!Ru(y)){if(t){s||(r[p]=y,e.updateDuringAnimation(t));continue}Zp(e,p,r[p],y,i,a&&a[p],o,s)}else g.push(p);else s||(r[p]=y,e.updateDuringAnimation(t),g.push(p))}var _=g.length;if(!c&&_)for(var b=0;b<v.length;b++){var x=v[b];if(x.targetName===t){var w=x.stopTracks(g);if(w){var S=Nt(v,x);v.splice(S,1)}}}if(i.force||(g=re(g,function(I){return!c2(n[I],r[I])}),_=g.length),_>0||i.force&&!o.length){var L=void 0,C=void 0,D=void 0;if(s){C={},d&&(L={});for(var b=0;b<_;b++){var p=g[b];C[p]=r[p],d?L[p]=n[p]:r[p]=n[p]}}else if(d){D={};for(var b=0;b<_;b++){var p=g[b];D[p]=vs(r[p]),f2(r,n,p)}}var x=new wf(r,!1,!1,c?re(v,function(A){return A.targetName===t}):null);x.targetName=t,i.scope&&(x.scope=i.scope),d&&L&&x.whenWithKeys(0,L,g),D&&x.whenWithKeys(0,D,g),x.whenWithKeys(u??500,s?C:n,g).delay(f||0),e.addAnimator(x,t),o.push(x)}}var ne=(function(e){it(t,e);function t(r){var n=e.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(r),n}return t.prototype.childrenRef=function(){return this._children},t.prototype.children=function(){return this._children.slice()},t.prototype.childAt=function(r){return this._children[r]},t.prototype.childOfName=function(r){for(var n=this._children,i=0;i<n.length;i++)if(n[i].name===r)return n[i]},t.prototype.childCount=function(){return this._children.length},t.prototype.add=function(r){if(r&&(r!==this&&r.parent!==this&&(this._children.push(r),this._doAdd(r)),process.env.NODE_ENV!=="production"&&r.__hostTarget))throw"This elemenet has been used as an attachment";return this},t.prototype.addBefore=function(r,n){if(r&&r!==this&&r.parent!==this&&n&&n.parent===this){var i=this._children,a=i.indexOf(n);a>=0&&(i.splice(a,0,r),this._doAdd(r))}return this},t.prototype.replace=function(r,n){var i=Nt(this._children,r);return i>=0&&this.replaceAt(n,i),this},t.prototype.replaceAt=function(r,n){var i=this._children,a=i[n];if(r&&r!==this&&r.parent!==this&&r!==a){i[n]=r,a.parent=null;var o=this.__zr;o&&a.removeSelfFromZr(o),this._doAdd(r)}return this},t.prototype._doAdd=function(r){r.parent&&r.parent.remove(r),r.parent=this;var n=this.__zr;n&&n!==r.__zr&&r.addSelfToZr(n),n&&n.refresh()},t.prototype.remove=function(r){var n=this.__zr,i=this._children,a=Nt(i,r);return a<0?this:(i.splice(a,1),r.parent=null,n&&r.removeSelfFromZr(n),n&&n.refresh(),this)},t.prototype.removeAll=function(){for(var r=this._children,n=this.__zr,i=0;i<r.length;i++){var a=r[i];n&&a.removeSelfFromZr(n),a.parent=null}return r.length=0,this},t.prototype.eachChild=function(r,n){for(var i=this._children,a=0;a<i.length;a++){var o=i[a];r.call(n,o,a)}return this},t.prototype.traverse=function(r,n){for(var i=0;i<this._children.length;i++){var a=this._children[i],o=r.call(n,a);a.isGroup&&!o&&a.traverse(r,n)}return this},t.prototype.addSelfToZr=function(r){e.prototype.addSelfToZr.call(this,r);for(var n=0;n<this._children.length;n++){var i=this._children[n];i.addSelfToZr(r)}},t.prototype.removeSelfFromZr=function(r){e.prototype.removeSelfFromZr.call(this,r);for(var n=0;n<this._children.length;n++){var i=this._children[n];i.removeSelfFromZr(r)}},t.prototype.getBoundingRect=function(r){for(var n=new Ct(0,0,0,0),i=r||this._children,a=[],o=null,s=0;s<i.length;s++){var l=i[s];if(!(l.ignore||l.invisible)){var u=l.getBoundingRect(),f=l.getLocalTransform(a);f?(Ct.applyTransform(n,u,f),o=o||n.clone(),o.union(n)):(o=o||u.clone(),o.union(u))}}return o||n},t})(Ts);ne.prototype.type="group";/*!
|
|
44
|
+
* ZRender, a high performance 2d drawing library.
|
|
45
|
+
*
|
|
46
|
+
* Copyright (c) 2013, Baidu Inc.
|
|
47
|
+
* All rights reserved.
|
|
48
|
+
*
|
|
49
|
+
* LICENSE
|
|
50
|
+
* https://github.com/ecomfe/zrender/blob/master/LICENSE.txt
|
|
51
|
+
*/var Ma={},Yp={};function d2(e){delete Yp[e]}function v2(e){if(!e)return!1;if(typeof e=="string")return us(e,1)<Df;if(e.colorStops){for(var t=e.colorStops,r=0,n=t.length,i=0;i<n;i++)r+=us(t[i].color,1);return r/=n,r<Df}return!1}var p2=(function(){function e(t,r,n){var i=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,n=n||{},this.dom=r,this.id=t;var a=new Lw,o=n.renderer||"canvas";if(Ma[o]||(o=Mt(Ma)[0]),process.env.NODE_ENV!=="production"&&!Ma[o])throw new Error("Renderer '"+o+"' is not imported. Please import it first.");n.useDirtyRect=n.useDirtyRect==null?!1:n.useDirtyRect;var s=new Ma[o](r,a,n,t),l=n.ssr||s.ssrOnly;this.storage=a,this.painter=s;var u=!xt.node&&!xt.worker&&!l?new i2(s.getViewportRoot(),s.root):null,f=n.useCoarsePointer,c=f==null||f==="auto"?xt.touchEventsSupported:!!f,d=44,h;c&&(h=ct(n.pointerSize,d)),this.handler=new np(a,s,u,s.root,h),this.animation=new Qw({stage:{update:l?null:function(){return i._flush(!0)}}}),l||this.animation.start()}return e.prototype.add=function(t){this._disposed||!t||(this.storage.addRoot(t),t.addSelfToZr(this),this.refresh())},e.prototype.remove=function(t){this._disposed||!t||(this.storage.delRoot(t),t.removeSelfFromZr(this),this.refresh())},e.prototype.configLayer=function(t,r){this._disposed||(this.painter.configLayer&&this.painter.configLayer(t,r),this.refresh())},e.prototype.setBackgroundColor=function(t){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(t),this.refresh(),this._backgroundColor=t,this._darkMode=v2(t))},e.prototype.getBackgroundColor=function(){return this._backgroundColor},e.prototype.setDarkMode=function(t){this._darkMode=t},e.prototype.isDarkMode=function(){return this._darkMode},e.prototype.refreshImmediately=function(t){this._disposed||(t||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1)},e.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},e.prototype.flush=function(){this._disposed||this._flush(!1)},e.prototype._flush=function(t){var r,n=Di();this._needsRefresh&&(r=!0,this.refreshImmediately(t)),this._needsRefreshHover&&(r=!0,this.refreshHoverImmediately());var i=Di();r?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:i-n})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},e.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},e.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},e.prototype.refreshHover=function(){this._needsRefreshHover=!0},e.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover())},e.prototype.resize=function(t){this._disposed||(t=t||{},this.painter.resize(t.width,t.height),this.handler.resize())},e.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},e.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},e.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},e.prototype.setCursorStyle=function(t){this._disposed||this.handler.setCursorStyle(t)},e.prototype.findHover=function(t,r){if(!this._disposed)return this.handler.findHover(t,r)},e.prototype.on=function(t,r,n){return this._disposed||this.handler.on(t,r,n),this},e.prototype.off=function(t,r){this._disposed||this.handler.off(t,r)},e.prototype.trigger=function(t,r){this._disposed||this.handler.trigger(t,r)},e.prototype.clear=function(){if(!this._disposed){for(var t=this.storage.getRoots(),r=0;r<t.length;r++)t[r]instanceof ne&&t[r].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},e.prototype.dispose=function(){this._disposed||(this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,this._disposed=!0,d2(this.id))},e})();function Xp(e,t){var r=new p2(Gv(),e,t);return Yp[r.id]=r,r}function g2(e,t){Ma[e]=t}var Vf;function m2(e){if(typeof Vf=="function")return Vf(e)}function y2(e){Vf=e}var qp=1e-4,jp=20;function _2(e){return e.replace(/^\s+|\s+$/g,"")}var Da=Math.min,ke=Math.max,pr=Math.abs;function Gf(e,t,r,n){var i=t[0],a=t[1],o=r[0],s=r[1],l=a-i,u=s-o;if(l===0)return u===0?o:(o+s)/2;if(n)if(l>0){if(e<=i)return o;if(e>=a)return s}else{if(e>=i)return o;if(e<=a)return s}else{if(e===i)return o;if(e===a)return s}return(e-i)/l*u+o}var Wt=b2;function b2(e,t,r){switch(e){case"center":case"middle":e="50%";break;case"left":case"top":e="0%";break;case"right":case"bottom":e="100%";break}return Hf(e,t,r)}function Hf(e,t,r){return ut(e)?_2(e).match(/%$/)?parseFloat(e)/100*t+(r||0):parseFloat(e):e==null?NaN:+e}function ue(e,t,r){return t==null&&(t=10),t=Math.min(Math.max(0,t),jp),e=(+e).toFixed(t),r?e:+e}function $r(e){if(e=+e,isNaN(e))return 0;if(e>1e-14){for(var t=1,r=0;r<15;r++,t*=10)if(Math.round(e*t)/t===e)return r}return Uf(e)}function Uf(e){var t=e.toString().toLowerCase(),r=t.indexOf("e"),n=r>0?+t.slice(r+1):0,i=r>0?r:t.length,a=t.indexOf("."),o=a<0?0:i-1-a;return Math.max(0,o-n)}function S2(e,t){var r=Math.log,n=Math.LN10,i=Math.floor(r(e[1]-e[0])/n),a=Math.round(r(pr(t[1]-t[0]))/n),o=Math.min(Math.max(-i+a,0),20);return isFinite(o)?o:20}function x2(e,t){var r=qr(e,function(h,v){return h+(isNaN(v)?0:v)},0);if(r===0)return[];for(var n=Math.pow(10,t),i=ft(e,function(h){return(isNaN(h)?0:h)/r*n*100}),a=n*100,o=ft(i,function(h){return Math.floor(h)}),s=qr(o,function(h,v){return h+v},0),l=ft(i,function(h,v){return h-o[v]});s<a;){for(var u=Number.NEGATIVE_INFINITY,f=null,c=0,d=l.length;c<d;++c)l[c]>u&&(u=l[c],f=c);++o[f],l[f]=0,++s}return ft(o,function(h){return h/n})}function w2(e,t){var r=Math.max($r(e),$r(t)),n=e+t;return r>jp?n:ue(n,r)}function Qp(e){var t=Math.PI*2;return(e%t+t)%t}function Cs(e){return e>-qp&&e<qp}var T2=/^(?:(\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 Ni(e){if(e instanceof Date)return e;if(ut(e)){var t=T2.exec(e);if(!t)return new Date(NaN);if(t[8]){var r=+t[4]||0;return t[8].toUpperCase()!=="Z"&&(r-=+t[8].slice(0,3)),new Date(Date.UTC(+t[1],+(t[2]||1)-1,+t[3]||1,r,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0))}else return new Date(+t[1],+(t[2]||1)-1,+t[3]||1,+t[4]||0,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0)}else if(e==null)return new Date(NaN);return new Date(Math.round(e))}function C2(e){return Math.pow(10,As(e))}function As(e){if(e===0)return 0;var t=Math.floor(Math.log(e)/Math.LN10);return e/Math.pow(10,t)>=10&&t++,t}function Kp(e,t){var r=As(e),n=Math.pow(10,r),i=e/n,a;return i<1.5?a=1:i<2.5?a=2:i<4?a=3:i<7?a=5:a=10,e=a*n,r>=-20?+e.toFixed(r<0?-r:0):e}function Es(e){var t=parseFloat(e);return t==e&&(t!==0||!ut(e)||e.indexOf("x")<=0)?t:NaN}function Jp(e){return!isNaN(Es(e))}function tg(){return Math.round(Math.random()*9)}function eg(e,t){return t===0?e:eg(t,e%t)}function rg(e,t){return e==null?t:t==null?e:e*t/eg(e,t)}var A2="[ECharts] ",ng={},E2=typeof console<"u"&&console.warn&&console.log;function Ls(e,t,r){if(E2){if(r){if(ng[t])return;ng[t]=!0}console[e](A2+t)}}function ig(e,t){Ls("log",e,t)}function de(e,t){Ls("warn",e,t)}function zt(e,t){Ls("error",e,t)}function Or(e){process.env.NODE_ENV!=="production"&&Ls("warn","DEPRECATED: "+e,!0)}function ie(e,t,r){process.env.NODE_ENV!=="production"&&Or((r?"["+r+"]":"")+(e+" is deprecated; use "+t+" instead."))}function Ms(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r="";if(process.env.NODE_ENV!=="production"){var n=function(i){return i===void 0?"undefined":i===1/0?"Infinity":i===-1/0?"-Infinity":yi(i)?"NaN":i instanceof Date?"Date("+i.toISOString()+")":_t(i)?"function () { ... }":Ux(i)?i+"":null};r=ft(e,function(i){if(ut(i))return i;var a=n(i);if(a!=null)return a;if(typeof JSON<"u"&&JSON.stringify)try{return JSON.stringify(i,function(o,s){var l=n(s);return l??s})}catch{return"?"}else return"?"}).join(" ")}return r}function Ee(e){throw new Error(e)}function ag(e,t,r){return(t-e)*r+e}var og="series\0",L2="\0_ec_\0";function Se(e){return e instanceof Array?e:e==null?[]:[e]}function Wf(e,t,r){if(e){e[t]=e[t]||{},e.emphasis=e.emphasis||{},e.emphasis[t]=e.emphasis[t]||{};for(var n=0,i=r.length;n<i;n++){var a=r[n];!e.emphasis[t].hasOwnProperty(a)&&e[t].hasOwnProperty(a)&&(e.emphasis[t][a]=e[t][a])}}}var sg=["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 Ia(e){return pt(e)&&!st(e)&&!(e instanceof Date)?e.value:e}function M2(e){return pt(e)&&!(e instanceof Array)}function D2(e,t,r){var n=r==="normalMerge",i=r==="replaceMerge",a=r==="replaceAll";e=e||[],t=(t||[]).slice();var o=Tt();O(t,function(l,u){if(!pt(l)){t[u]=null;return}process.env.NODE_ENV!=="production"&&(l.id!=null&&!fg(l.id)&&ug(l.id),l.name!=null&&!fg(l.name)&&ug(l.name))});var s=I2(e,o,r);return(n||i)&&k2(s,e,o,t),n&&P2(s,t),n||i?N2(s,t,i):a&&$2(s,t),O2(s),s}function I2(e,t,r){var n=[];if(r==="replaceAll")return n;for(var i=0;i<e.length;i++){var a=e[i];a&&a.id!=null&&t.set(a.id,i),n.push({existing:r==="replaceMerge"||$i(a)?null:a,newOption:null,keyInfo:null,brandNew:null})}return n}function k2(e,t,r,n){O(n,function(i,a){if(!(!i||i.id==null)){var o=ka(i.id),s=r.get(o);if(s!=null){var l=e[s];vt(!l.newOption,'Duplicated option on id "'+o+'".'),l.newOption=i,l.existing=t[s],n[a]=null}}})}function P2(e,t){O(t,function(r,n){if(!(!r||r.name==null))for(var i=0;i<e.length;i++){var a=e[i].existing;if(!e[i].newOption&&a&&(a.id==null||r.id==null)&&!$i(r)&&!$i(a)&&lg("name",a,r)){e[i].newOption=r,t[n]=null;return}}})}function N2(e,t,r){O(t,function(n){if(n){for(var i,a=0;(i=e[a])&&(i.newOption||$i(i.existing)||i.existing&&n.id!=null&&!lg("id",n,i.existing));)a++;i?(i.newOption=n,i.brandNew=r):e.push({newOption:n,brandNew:r,existing:null,keyInfo:null}),a++}})}function $2(e,t){O(t,function(r){e.push({newOption:r,brandNew:!0,existing:null,keyInfo:null})})}function O2(e){var t=Tt();O(e,function(r){var n=r.existing;n&&t.set(n.id,r)}),O(e,function(r){var n=r.newOption;vt(!n||n.id==null||!t.get(n.id)||t.get(n.id)===r,"id duplicates: "+(n&&n.id)),n&&n.id!=null&&t.set(n.id,r),!r.keyInfo&&(r.keyInfo={})}),O(e,function(r,n){var i=r.existing,a=r.newOption,o=r.keyInfo;if(pt(a)){if(o.name=a.name!=null?ka(a.name):i?i.name:og+n,i)o.id=ka(i.id);else if(a.id!=null)o.id=ka(a.id);else{var s=0;do o.id="\0"+o.name+"\0"+s++;while(t.get(o.id))}t.set(o.id,r)}})}function lg(e,t,r){var n=gr(t[e],null),i=gr(r[e],null);return n!=null&&i!=null&&n===i}function ka(e){if(process.env.NODE_ENV!=="production"&&e==null)throw new Error;return gr(e,"")}function gr(e,t){return e==null?t:ut(e)?e:$t(e)||jo(e)?e+"":t}function ug(e){process.env.NODE_ENV!=="production"&&de("`"+e+"` is invalid id or name. Must be a string or number.")}function fg(e){return jo(e)||Jp(e)}function Zf(e){var t=e.name;return!!(t&&t.indexOf(og))}function $i(e){return e&&e.id!=null&&ka(e.id).indexOf(L2)===0}function R2(e,t,r){O(e,function(n){var i=n.newOption;pt(i)&&(n.keyInfo.mainType=t,n.keyInfo.subType=B2(t,i,n.existing,r))})}function B2(e,t,r,n){var i=t.type?t.type:r?r.subType:n.determineSubType(e,t);return i}function On(e,t){if(t.dataIndexInside!=null)return t.dataIndexInside;if(t.dataIndex!=null)return st(t.dataIndex)?ft(t.dataIndex,function(r){return e.indexOfRawIndex(r)}):e.indexOfRawIndex(t.dataIndex);if(t.name!=null)return st(t.name)?ft(t.name,function(r){return e.indexOfName(r)}):e.indexOfName(t.name)}function Zt(){var e="__ec_inner_"+F2++;return function(t){return t[e]||(t[e]={})}}var F2=tg();function Yf(e,t,r){var n=Xf(t,r),i=n.mainTypeSpecified,a=n.queryOptionMap,o=n.others,s=o,l=r?r.defaultMainType:null;return!i&&l&&a.set(l,{}),a.each(function(u,f){var c=Pa(e,f,u,{useDefault:l===f,enableAll:r&&r.enableAll!=null?r.enableAll:!0,enableNone:r&&r.enableNone!=null?r.enableNone:!0});s[f+"Models"]=c.models,s[f+"Model"]=c.models[0]}),s}function Xf(e,t){var r;if(ut(e)){var n={};n[e+"Index"]=0,r=n}else r=e;var i=Tt(),a={},o=!1;return O(r,function(s,l){if(l==="dataIndex"||l==="dataIndexInside"){a[l]=s;return}var u=l.match(/^(\w+)(Index|Id|Name)$/)||[],f=u[1],c=(u[2]||"").toLowerCase();if(!(!f||!c||t&&t.includeMainTypes&&Nt(t.includeMainTypes,f)<0)){o=o||!!f;var d=i.get(f)||i.set(f,{});d[c]=s}}),{mainTypeSpecified:o,queryOptionMap:i,others:a}}var ze={useDefault:!0,enableAll:!1,enableNone:!1};function Pa(e,t,r,n){n=n||ze;var i=r.index,a=r.id,o=r.name,s={models:null,specified:i!=null||a!=null||o!=null};if(!s.specified){var l=void 0;return s.models=n.useDefault&&(l=e.getComponent(t))?[l]:[],s}if(i==="none"||i===!1){if(n.enableNone)return s.models=[],s;process.env.NODE_ENV!=="production"&&zt('`"none"` or `false` is not a valid value on index option.'),i=-1}return i==="all"&&(n.enableAll?i=a=o=null:(process.env.NODE_ENV!=="production"&&zt('`"all"` is not a valid value on index option.'),i=-1)),s.models=e.queryComponents({mainType:t,index:i,id:a,name:o}),s}function cg(e,t,r){e.setAttribute?e.setAttribute(t,r):e[t]=r}function z2(e,t){return e.getAttribute?e.getAttribute(t):e[t]}function V2(e){return e==="auto"?xt.domSupported?"html":"richText":e||"html"}function G2(e,t,r,n,i){var a=t==null||t==="auto";if(n==null)return n;if($t(n)){var o=ag(r||0,n,i);return ue(o,a?Math.max($r(r||0),$r(n)):t)}else{if(ut(n))return i<1?r:n;for(var s=[],l=r,u=n,f=Math.max(l?l.length:0,u.length),c=0;c<f;++c){var d=e.getDimensionInfo(c);if(d&&d.type==="ordinal")s[c]=(i<1&&l?l:u)[c];else{var h=l&&l[c]?l[c]:0,v=u[c],o=ag(h,v,i);s[c]=ue(o,a?Math.max($r(h),$r(v)):t)}}return s}}var H2=".",Rn="___EC__COMPONENT__CONTAINER___",hg="___EC__EXTENDED_CLASS___";function mr(e){var t={main:"",sub:""};if(e){var r=e.split(H2);t.main=r[0]||"",t.sub=r[1]||""}return t}function U2(e){vt(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(e),'componentType "'+e+'" illegal')}function W2(e){return!!(e&&e[hg])}function qf(e,t){e.$constructor=e,e.extend=function(r){process.env.NODE_ENV!=="production"&&O(t,function(a){r[a]||console.warn("Method `"+a+"` should be implemented"+(r.type?" in "+r.type:"")+".")});var n=this,i;return Z2(n)?i=(function(a){it(o,a);function o(){return a.apply(this,arguments)||this}return o})(n):(i=function(){(r.$constructor||n).apply(this,arguments)},Vx(i,this)),et(i.prototype,r),i[hg]=!0,i.extend=this.extend,i.superCall=q2,i.superApply=j2,i.superClass=n,i}}function Z2(e){return _t(e)&&/^class\s/.test(Function.prototype.toString.call(e))}function dg(e,t){e.extend=t.extend}var Y2=Math.round(Math.random()*10);function X2(e){var t=["__\0is_clz",Y2++].join("_");e.prototype[t]=!0,process.env.NODE_ENV!=="production"&&vt(!e.isInstance,'The method "is" can not be defined.'),e.isInstance=function(r){return!!(r&&r[t])}}function q2(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return this.superClass.prototype[t].apply(e,r)}function j2(e,t,r){return this.superClass.prototype[t].apply(e,r)}function Ds(e){var t={};e.registerClass=function(n){var i=n.type||n.prototype.type;if(i){U2(i),n.prototype.type=i;var a=mr(i);if(!a.sub)process.env.NODE_ENV!=="production"&&t[a.main]&&console.warn(a.main+" exists."),t[a.main]=n;else if(a.sub!==Rn){var o=r(a);o[a.sub]=n}}return n},e.getClass=function(n,i,a){var o=t[n];if(o&&o[Rn]&&(o=i?o[i]:null),a&&!o)throw new Error(i?"Component "+n+"."+(i||"")+" is used but not imported.":n+".type should be specified.");return o},e.getClassesByMainType=function(n){var i=mr(n),a=[],o=t[i.main];return o&&o[Rn]?O(o,function(s,l){l!==Rn&&a.push(s)}):a.push(o),a},e.hasClass=function(n){var i=mr(n);return!!t[i.main]},e.getAllClassMainTypes=function(){var n=[];return O(t,function(i,a){n.push(a)}),n},e.hasSubTypes=function(n){var i=mr(n),a=t[i.main];return a&&a[Rn]};function r(n){var i=t[n.main];return(!i||!i[Rn])&&(i=t[n.main]={},i[Rn]=!0),i}}function Na(e,t){for(var r=0;r<e.length;r++)e[r][1]||(e[r][1]=e[r][0]);return t=t||!1,function(n,i,a){for(var o={},s=0;s<e.length;s++){var l=e[s][1];if(!(i&&Nt(i,l)>=0||a&&Nt(a,l)<0)){var u=n.getShallow(l,t);u!=null&&(o[e[s][0]]=u)}}return o}}var Q2=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],K2=Na(Q2),J2=(function(){function e(){}return e.prototype.getAreaStyle=function(t,r){return K2(this,t,r)},e})(),jf=new Li(50);function tT(e){if(typeof e=="string"){var t=jf.get(e);return t&&t.image}else return e}function Qf(e,t,r,n,i){if(e)if(typeof e=="string"){if(t&&t.__zrImageSrc===e||!r)return t;var a=jf.get(e),o={hostEl:r,cb:n,cbPayload:i};return a?(t=a.image,!Is(t)&&a.pending.push(o)):(t=Xr.loadImage(e,vg,vg),t.__zrImageSrc=e,jf.put(e,t.__cachedImgObj={image:t,pending:[o]})),t}else return e;else return t}function vg(){var e=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t<e.pending.length;t++){var r=e.pending[t],n=r.cb;n&&n(this,r.cbPayload),r.hostEl.dirty()}e.pending.length=0}function Is(e){return e&&e.width&&e.height}var Kf=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function eT(e,t,r,n,i,a){if(!r){e.text="",e.isTruncated=!1;return}var o=(t+"").split(`
|
|
52
|
+
`);a=pg(r,n,i,a);for(var s=!1,l={},u=0,f=o.length;u<f;u++)gg(l,o[u],a),o[u]=l.textLine,s=s||l.isTruncated;e.text=o.join(`
|
|
53
|
+
`),e.isTruncated=s}function pg(e,t,r,n){n=n||{};var i=et({},n);r=ct(r,"..."),i.maxIterations=ct(n.maxIterations,2);var a=i.minChar=ct(n.minChar,0),o=i.fontMeasureInfo=dr(t),s=o.asciiCharWidth;i.placeholder=ct(n.placeholder,"");for(var l=e=Math.max(0,e-1),u=0;u<a&&l>=s;u++)l-=s;var f=vr(o,r);return f>l&&(r="",f=0),l=e-f,i.ellipsis=r,i.ellipsisWidth=f,i.contentWidth=l,i.containerWidth=e,i}function gg(e,t,r){var n=r.containerWidth,i=r.contentWidth,a=r.fontMeasureInfo;if(!n){e.textLine="",e.isTruncated=!1;return}var o=vr(a,t);if(o<=n){e.textLine=t,e.isTruncated=!1;return}for(var s=0;;s++){if(o<=i||s>=r.maxIterations){t+=r.ellipsis;break}var l=s===0?rT(t,i,a):o>0?Math.floor(t.length*i/o):0;t=t.substr(0,l),o=vr(a,t)}t===""&&(t=r.placeholder),e.textLine=t,e.isTruncated=!0}function rT(e,t,r){for(var n=0,i=0,a=e.length;i<a&&n<t;i++)n+=Hp(r,e.charCodeAt(i));return i}function nT(e,t,r,n){var i=tc(e),a=t.overflow,o=t.padding,s=o?o[1]+o[3]:0,l=o?o[0]+o[2]:0,u=t.font,f=a==="truncate",c=La(u),d=ct(t.lineHeight,c),h=t.lineOverflow==="truncate",v=!1,g=t.width;g==null&&r!=null&&(g=r-s);var m=t.height;m==null&&n!=null&&(m=n-l);var p;g!=null&&(a==="break"||a==="breakAll")?p=i?yg(i,t.font,g,a==="breakAll",0).lines:[]:p=i?i.split(`
|
|
54
|
+
`):[];var y=p.length*d;if(m==null&&(m=y),y>m&&h){var _=Math.floor(m/d);v=v||p.length>_,p=p.slice(0,_),y=p.length*d}if(i&&f&&g!=null)for(var b=pg(g,u,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),x={},w=0;w<p.length;w++)gg(x,p[w],b),p[w]=x.textLine,v=v||x.isTruncated;for(var S=m,L=0,C=dr(u),w=0;w<p.length;w++)L=Math.max(vr(C,p[w]),L);g==null&&(g=L);var D=g;return S+=l,D+=s,{lines:p,height:m,outerWidth:D,outerHeight:S,lineHeight:d,calculatedLineHeight:c,contentWidth:L,contentHeight:y,width:g,isTruncated:v}}var iT=(function(){function e(){}return e})(),mg=(function(){function e(t){this.tokens=[],t&&(this.tokens=t)}return e})(),aT=(function(){function e(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[],this.isTruncated=!1}return e})();function oT(e,t,r,n,i){var a=new aT,o=tc(e);if(!o)return a;var s=t.padding,l=s?s[1]+s[3]:0,u=s?s[0]+s[2]:0,f=t.width;f==null&&r!=null&&(f=r-l);var c=t.height;c==null&&n!=null&&(c=n-u);for(var d=t.overflow,h=(d==="break"||d==="breakAll")&&f!=null?{width:f,accumWidth:0,breakAll:d==="breakAll"}:null,v=Kf.lastIndex=0,g;(g=Kf.exec(o))!=null;){var m=g.index;m>v&&Jf(a,o.substring(v,m),t,h),Jf(a,g[2],t,h,g[1]),v=Kf.lastIndex}v<o.length&&Jf(a,o.substring(v,o.length),t,h);var p=[],y=0,_=0,b=d==="truncate",x=t.lineOverflow==="truncate",w={};function S(bt,Et,ht){bt.width=Et,bt.lineHeight=ht,y+=ht,_=Math.max(_,Et)}t:for(var L=0;L<a.lines.length;L++){for(var C=a.lines[L],D=0,I=0,A=0;A<C.tokens.length;A++){var M=C.tokens[A],T=M.styleName&&t.rich[M.styleName]||{},k=M.textPadding=T.padding,R=k?k[1]+k[3]:0,z=M.font=T.font||t.font;M.contentHeight=La(z);var H=ct(T.height,M.contentHeight);if(M.innerHeight=H,k&&(H+=k[0]+k[2]),M.height=H,M.lineHeight=Ir(T.lineHeight,t.lineHeight,H),M.align=T&&T.align||i,M.verticalAlign=T&&T.verticalAlign||"middle",x&&c!=null&&y+M.lineHeight>c){var V=a.lines.length;A>0?(C.tokens=C.tokens.slice(0,A),S(C,I,D),a.lines=a.lines.slice(0,L+1)):a.lines=a.lines.slice(0,L),a.isTruncated=a.isTruncated||a.lines.length<V;break t}var Z=T.width,B=Z==null||Z==="auto";if(typeof Z=="string"&&Z.charAt(Z.length-1)==="%")M.percentWidth=Z,p.push(M),M.contentWidth=vr(dr(z),M.text);else{if(B){var $=T.backgroundColor,X=$&&$.image;X&&(X=tT(X),Is(X)&&(M.width=Math.max(M.width,X.width*H/X.height)))}var j=b&&f!=null?f-I:null;j!=null&&j<M.width?!B||j<R?(M.text="",M.width=M.contentWidth=0):(eT(w,M.text,j-R,z,t.ellipsis,{minChar:t.truncateMinChar}),M.text=w.text,a.isTruncated=a.isTruncated||w.isTruncated,M.width=M.contentWidth=vr(dr(z),M.text)):M.contentWidth=vr(dr(z),M.text)}M.width+=R,I+=M.width,T&&(D=Math.max(D,M.lineHeight))}S(C,I,D)}a.outerWidth=a.width=ct(f,_),a.outerHeight=a.height=ct(c,y),a.contentHeight=y,a.contentWidth=_,a.outerWidth+=l,a.outerHeight+=u;for(var L=0;L<p.length;L++){var M=p[L],Q=M.percentWidth;M.width=parseInt(Q,10)/100*a.width}return a}function Jf(e,t,r,n,i){var a=t==="",o=i&&r.rich[i]||{},s=e.lines,l=o.font||r.font,u=!1,f,c;if(n){var d=o.padding,h=d?d[1]+d[3]:0;if(o.width!=null&&o.width!=="auto"){var v=tn(o.width,n.width)+h;s.length>0&&v+n.accumWidth>n.width&&(f=t.split(`
|
|
55
|
+
`),u=!0),n.accumWidth=v}else{var g=yg(t,l,n.width,n.breakAll,n.accumWidth);n.accumWidth=g.accumWidth+h,c=g.linesWidths,f=g.lines}}f||(f=t.split(`
|
|
56
|
+
`));for(var m=dr(l),p=0;p<f.length;p++){var y=f[p],_=new iT;if(_.styleName=i,_.text=y,_.isLineHolder=!y&&!a,typeof o.width=="number"?_.width=o.width:_.width=c?c[p]:vr(m,y),!p&&!u){var b=(s[s.length-1]||(s[0]=new mg)).tokens,x=b.length;x===1&&b[0].isLineHolder?b[0]=_:(y||!x||a)&&b.push(_)}else s.push(new mg([_]))}}function sT(e){var t=e.charCodeAt(0);return t>=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var lT=qr(",&?/;] ".split(""),function(e,t){return e[t]=!0,e},{});function uT(e){return sT(e)?!!lT[e]:!0}function yg(e,t,r,n,i){for(var a=[],o=[],s="",l="",u=0,f=0,c=dr(t),d=0;d<e.length;d++){var h=e.charAt(d);if(h===`
|
|
57
|
+
`){l&&(s+=l,f+=u),a.push(s),o.push(f),s="",l="",u=0,f=0;continue}var v=Hp(c,h.charCodeAt(0)),g=n?!1:!uT(h);if(a.length?f+v>r:i+f+v>r){f?(s||l)&&(g?(s||(s=l,l="",u=0,f=u),a.push(s),o.push(f-u),l+=h,u+=v,s="",f=u):(l&&(s+=l,l="",u=0),a.push(s),o.push(f),s=h,f=v)):g?(a.push(l),o.push(u),l=h,u=v):(a.push(h),o.push(v));continue}f+=v,g?(l+=h,u+=v):(l&&(s+=l,l="",u=0),s+=h)}return l&&(s+=l),s&&(a.push(s),o.push(f)),a.length===1&&(f+=i),{accumWidth:f,lines:a,linesWidths:o}}function _g(e,t,r,n,i,a){if(e.baseX=r,e.baseY=n,e.outerWidth=e.outerHeight=null,!!t){var o=t.width*2,s=t.height*2;Ct.set(bg,ki(r,o,i),$n(n,s,a),o,s),Ct.intersect(t,bg,null,Sg);var l=Sg.outIntersectRect;e.outerWidth=l.width,e.outerHeight=l.height,e.baseX=ki(l.x,l.width,i,!0),e.baseY=$n(l.y,l.height,a,!0)}}var bg=new Ct(0,0,0,0),Sg={outIntersectRect:{},clamp:!0};function tc(e){return e!=null?e+="":e=""}function fT(e){var t=tc(e.text),r=e.font,n=vr(dr(r),t),i=La(r);return ec(e,n,i,null)}function ec(e,t,r,n){var i=new Ct(ki(e.x||0,t,e.textAlign),$n(e.y||0,r,e.textBaseline),t,r),a=n??(xg(e)?e.lineWidth:0);return a>0&&(i.x-=a/2,i.y-=a/2,i.width+=a,i.height+=a),i}function xg(e){var t=e.stroke;return t!=null&&t!=="none"&&e.lineWidth>0}var rc="__zr_style_"+Math.round(Math.random()*10),Bn={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},ks={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};Bn[rc]=!0;var wg=["z","z2","invisible"],cT=["invisible"],$a=(function(e){it(t,e);function t(r){return e.call(this,r)||this}return t.prototype._init=function(r){for(var n=Mt(r),i=0;i<n.length;i++){var a=n[i];a==="style"?this.useStyle(r[a]):e.prototype.attrKV.call(this,a,r[a])}this.style||this.useStyle({})},t.prototype.beforeBrush=function(){},t.prototype.afterBrush=function(){},t.prototype.innerBeforeBrush=function(){},t.prototype.innerAfterBrush=function(){},t.prototype.shouldBePainted=function(r,n,i,a){var o=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&hT(this,r,n)||o&&!o[0]&&!o[3])return!1;if(i&&this.__clipPaths&&this.__clipPaths.length){for(var s=0;s<this.__clipPaths.length;++s)if(this.__clipPaths[s].isZeroArea())return!1}if(a&&this.parent)for(var l=this.parent;l;){if(l.ignore)return!1;l=l.parent}return!0},t.prototype.contain=function(r,n){return this.rectContain(r,n)},t.prototype.traverse=function(r,n){r.call(n,this)},t.prototype.rectContain=function(r,n){var i=this.transformCoordToLocal(r,n),a=this.getBoundingRect();return a.contain(i[0],i[1])},t.prototype.getPaintRect=function(){var r=this._paintRect;if(!this._paintRect||this.__dirty){var n=this.transform,i=this.getBoundingRect(),a=this.style,o=a.shadowBlur||0,s=a.shadowOffsetX||0,l=a.shadowOffsetY||0;r=this._paintRect||(this._paintRect=new Ct(0,0,0,0)),n?Ct.applyTransform(r,i,n):r.copy(i),(o||s||l)&&(r.width+=o*2+Math.abs(s),r.height+=o*2+Math.abs(l),r.x=Math.min(r.x,r.x+s-o),r.y=Math.min(r.y,r.y+l-o));var u=this.dirtyRectTolerance;r.isZero()||(r.x=Math.floor(r.x-u),r.y=Math.floor(r.y-u),r.width=Math.ceil(r.width+1+u*2),r.height=Math.ceil(r.height+1+u*2))}return r},t.prototype.setPrevPaintRect=function(r){r?(this._prevPaintRect=this._prevPaintRect||new Ct(0,0,0,0),this._prevPaintRect.copy(r)):this._prevPaintRect=null},t.prototype.getPrevPaintRect=function(){return this._prevPaintRect},t.prototype.animateStyle=function(r){return this.animate("style",r)},t.prototype.updateDuringAnimation=function(r){r==="style"?this.dirtyStyle():this.markRedraw()},t.prototype.attrKV=function(r,n){r!=="style"?e.prototype.attrKV.call(this,r,n):this.style?this.setStyle(n):this.useStyle(n)},t.prototype.setStyle=function(r,n){return typeof r=="string"?this.style[r]=n:et(this.style,r),this.dirtyStyle(),this},t.prototype.dirtyStyle=function(r){r||this.markRedraw(),this.__dirty|=Sa,this._rect&&(this._rect=null)},t.prototype.dirty=function(){this.dirtyStyle()},t.prototype.styleChanged=function(){return!!(this.__dirty&Sa)},t.prototype.styleUpdated=function(){this.__dirty&=~Sa},t.prototype.createStyle=function(r){return Qo(Bn,r)},t.prototype.useStyle=function(r){r[rc]||(r=this.createStyle(r)),this.__inHover?this.__hoverStyle=r:this.style=r,this.dirtyStyle()},t.prototype.isStyleObject=function(r){return r[rc]},t.prototype._innerSaveToNormal=function(r){e.prototype._innerSaveToNormal.call(this,r);var n=this._normalState;r.style&&!n.style&&(n.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(r,n,wg)},t.prototype._applyStateObj=function(r,n,i,a,o,s){e.prototype._applyStateObj.call(this,r,n,i,a,o,s);var l=!(n&&a),u;if(n&&n.style?o?a?u=n.style:(u=this._mergeStyle(this.createStyle(),i.style),this._mergeStyle(u,n.style)):(u=this._mergeStyle(this.createStyle(),a?this.style:i.style),this._mergeStyle(u,n.style)):l&&(u=i.style),u)if(o){var f=this.style;if(this.style=this.createStyle(l?{}:f),l)for(var c=Mt(f),d=0;d<c.length;d++){var h=c[d];h in u&&(u[h]=u[h],this.style[h]=f[h])}for(var v=Mt(u),d=0;d<v.length;d++){var h=v[d];this.style[h]=this.style[h]}this._transitionState(r,{style:u},s,this.getAnimationStyleProps())}else this.useStyle(u);for(var g=this.__inHover?cT:wg,d=0;d<g.length;d++){var h=g[d];n&&n[h]!=null?this[h]=n[h]:l&&i[h]!=null&&(this[h]=i[h])}},t.prototype._mergeStates=function(r){for(var n=e.prototype._mergeStates.call(this,r),i,a=0;a<r.length;a++){var o=r[a];o.style&&(i=i||{},this._mergeStyle(i,o.style))}return i&&(n.style=i),n},t.prototype._mergeStyle=function(r,n){return et(r,n),r},t.prototype.getAnimationStyleProps=function(){return ks},t.initDefaultProps=(function(){var r=t.prototype;r.type="displayable",r.invisible=!1,r.z=0,r.z2=0,r.zlevel=0,r.culling=!1,r.cursor="pointer",r.rectHover=!1,r.incremental=!1,r._rect=null,r.dirtyRectTolerance=0,r.__dirty=cr|Sa})(),t})(Ts),nc=new Ct(0,0,0,0),ic=new Ct(0,0,0,0);function hT(e,t,r){return nc.copy(e.getBoundingRect()),e.transform&&nc.applyTransform(e.transform),ic.width=t,ic.height=r,!nc.intersect(ic)}var Ve=Math.min,Ge=Math.max,ac=Math.sin,oc=Math.cos,Fn=Math.PI*2,Ps=bi(),Ns=bi(),$s=bi();function Tg(e,t,r,n,i,a){i[0]=Ve(e,r),i[1]=Ve(t,n),a[0]=Ge(e,r),a[1]=Ge(t,n)}var Cg=[],Ag=[];function dT(e,t,r,n,i,a,o,s,l,u){var f=pp,c=le,d=f(e,r,i,o,Cg);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var h=0;h<d;h++){var v=c(e,r,i,o,Cg[h]);l[0]=Ve(v,l[0]),u[0]=Ge(v,u[0])}d=f(t,n,a,s,Ag);for(var h=0;h<d;h++){var g=c(t,n,a,s,Ag[h]);l[1]=Ve(g,l[1]),u[1]=Ge(g,u[1])}l[0]=Ve(e,l[0]),u[0]=Ge(e,u[0]),l[0]=Ve(o,l[0]),u[0]=Ge(o,u[0]),l[1]=Ve(t,l[1]),u[1]=Ge(t,u[1]),l[1]=Ve(s,l[1]),u[1]=Ge(s,u[1])}function vT(e,t,r,n,i,a,o,s){var l=mp,u=Ae,f=Ge(Ve(l(e,r,i),1),0),c=Ge(Ve(l(t,n,a),1),0),d=u(e,r,i,f),h=u(t,n,a,c);o[0]=Ve(e,i,d),o[1]=Ve(t,a,h),s[0]=Ge(e,i,d),s[1]=Ge(t,a,h)}function pT(e,t,r,n,i,a,o,s,l){var u=xi,f=wi,c=Math.abs(i-a);if(c%Fn<1e-4&&c>1e-4){s[0]=e-r,s[1]=t-n,l[0]=e+r,l[1]=t+n;return}if(Ps[0]=oc(i)*r+e,Ps[1]=ac(i)*n+t,Ns[0]=oc(a)*r+e,Ns[1]=ac(a)*n+t,u(s,Ps,Ns),f(l,Ps,Ns),i=i%Fn,i<0&&(i=i+Fn),a=a%Fn,a<0&&(a=a+Fn),i>a&&!o?a+=Fn:i<a&&o&&(i+=Fn),o){var d=a;a=i,i=d}for(var h=0;h<a;h+=Math.PI/2)h>i&&($s[0]=oc(h)*r+e,$s[1]=ac(h)*n+t,u(s,$s,s),f(l,$s,l))}var Ot={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},zn=[],Vn=[],yr=[],en=[],_r=[],br=[],sc=Math.min,lc=Math.max,Gn=Math.cos,Hn=Math.sin,Rr=Math.abs,uc=Math.PI,rn=uc*2,fc=typeof Float32Array<"u",Oa=[];function cc(e){var t=Math.round(e/uc*1e8)/1e8;return t%2*uc}function Eg(e,t){var r=cc(e[0]);r<0&&(r+=rn);var n=r-e[0],i=e[1];i+=n,!t&&i-r>=rn?i=r+rn:t&&r-i>=rn?i=r-rn:!t&&r>i?i=r+(rn-cc(r-i)):t&&r<i&&(i=r-(rn-cc(i-r))),e[0]=r,e[1]=i}var nn=(function(){function e(t){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,t&&(this._saveData=!1),this._saveData&&(this.data=[])}return e.prototype.increaseVersion=function(){this._version++},e.prototype.getVersion=function(){return this._version},e.prototype.setScale=function(t,r,n){n=n||0,n>0&&(this._ux=Rr(n/Fp/t)||0,this._uy=Rr(n/Fp/r)||0)},e.prototype.setDPR=function(t){this.dpr=t},e.prototype.setContext=function(t){this._ctx=t},e.prototype.getContext=function(){return this._ctx},e.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},e.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},e.prototype.moveTo=function(t,r){return this._drawPendingPt(),this.addData(Ot.M,t,r),this._ctx&&this._ctx.moveTo(t,r),this._x0=t,this._y0=r,this._xi=t,this._yi=r,this},e.prototype.lineTo=function(t,r){var n=Rr(t-this._xi),i=Rr(r-this._yi),a=n>this._ux||i>this._uy;if(this.addData(Ot.L,t,r),this._ctx&&a&&this._ctx.lineTo(t,r),a)this._xi=t,this._yi=r,this._pendingPtDist=0;else{var o=n*n+i*i;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=r,this._pendingPtDist=o)}return this},e.prototype.bezierCurveTo=function(t,r,n,i,a,o){return this._drawPendingPt(),this.addData(Ot.C,t,r,n,i,a,o),this._ctx&&this._ctx.bezierCurveTo(t,r,n,i,a,o),this._xi=a,this._yi=o,this},e.prototype.quadraticCurveTo=function(t,r,n,i){return this._drawPendingPt(),this.addData(Ot.Q,t,r,n,i),this._ctx&&this._ctx.quadraticCurveTo(t,r,n,i),this._xi=n,this._yi=i,this},e.prototype.arc=function(t,r,n,i,a,o){this._drawPendingPt(),Oa[0]=i,Oa[1]=a,Eg(Oa,o),i=Oa[0],a=Oa[1];var s=a-i;return this.addData(Ot.A,t,r,n,n,i,s,0,o?0:1),this._ctx&&this._ctx.arc(t,r,n,i,a,o),this._xi=Gn(a)*n+t,this._yi=Hn(a)*n+r,this},e.prototype.arcTo=function(t,r,n,i,a){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,r,n,i,a),this},e.prototype.rect=function(t,r,n,i){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,r,n,i),this.addData(Ot.R,t,r,n,i),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(Ot.Z);var t=this._ctx,r=this._x0,n=this._y0;return t&&t.closePath(),this._xi=r,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 r=t.length;!(this.data&&this.data.length===r)&&fc&&(this.data=new Float32Array(r));for(var n=0;n<r;n++)this.data[n]=t[n];this._len=r}},e.prototype.appendPath=function(t){if(this._saveData){t instanceof Array||(t=[t]);for(var r=t.length,n=0,i=this._len,a=0;a<r;a++)n+=t[a].len();var o=this.data;if(fc&&(o instanceof Float32Array||!o)&&(this.data=new Float32Array(i+n),i>0&&o))for(var s=0;s<i;s++)this.data[s]=o[s];for(var a=0;a<r;a++)for(var l=t[a].data,s=0;s<l.length;s++)this.data[i++]=l[s];this._len=i}},e.prototype.addData=function(t,r,n,i,a,o,s,l,u){if(this._saveData){var f=this.data;this._len+arguments.length>f.length&&(this._expandData(),f=this.data);for(var c=0;c<arguments.length;c++)f[this._len++]=arguments[c]}},e.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},e.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],r=0;r<this._len;r++)t[r]=this.data[r];this.data=t}},e.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var t=this.data;t instanceof Array&&(t.length=this._len,fc&&this._len>11&&(this.data=new Float32Array(t)))}},e.prototype.getBoundingRect=function(){yr[0]=yr[1]=_r[0]=_r[1]=Number.MAX_VALUE,en[0]=en[1]=br[0]=br[1]=-Number.MAX_VALUE;var t=this.data,r=0,n=0,i=0,a=0,o;for(o=0;o<this._len;){var s=t[o++],l=o===1;switch(l&&(r=t[o],n=t[o+1],i=r,a=n),s){case Ot.M:r=i=t[o++],n=a=t[o++],_r[0]=i,_r[1]=a,br[0]=i,br[1]=a;break;case Ot.L:Tg(r,n,t[o],t[o+1],_r,br),r=t[o++],n=t[o++];break;case Ot.C:dT(r,n,t[o++],t[o++],t[o++],t[o++],t[o],t[o+1],_r,br),r=t[o++],n=t[o++];break;case Ot.Q:vT(r,n,t[o++],t[o++],t[o],t[o+1],_r,br),r=t[o++],n=t[o++];break;case Ot.A:var u=t[o++],f=t[o++],c=t[o++],d=t[o++],h=t[o++],v=t[o++]+h;o+=1;var g=!t[o++];l&&(i=Gn(h)*c+u,a=Hn(h)*d+f),pT(u,f,c,d,h,v,g,_r,br),r=Gn(v)*c+u,n=Hn(v)*d+f;break;case Ot.R:i=r=t[o++],a=n=t[o++];var m=t[o++],p=t[o++];Tg(i,a,i+m,a+p,_r,br);break;case Ot.Z:r=i,n=a;break}xi(yr,yr,_r),wi(en,en,br)}return o===0&&(yr[0]=yr[1]=en[0]=en[1]=0),new Ct(yr[0],yr[1],en[0]-yr[0],en[1]-yr[1])},e.prototype._calculateLength=function(){var t=this.data,r=this._len,n=this._ux,i=this._uy,a=0,o=0,s=0,l=0;this._pathSegLen||(this._pathSegLen=[]);for(var u=this._pathSegLen,f=0,c=0,d=0;d<r;){var h=t[d++],v=d===1;v&&(a=t[d],o=t[d+1],s=a,l=o);var g=-1;switch(h){case Ot.M:a=s=t[d++],o=l=t[d++];break;case Ot.L:{var m=t[d++],p=t[d++],y=m-a,_=p-o;(Rr(y)>n||Rr(_)>i||d===r-1)&&(g=Math.sqrt(y*y+_*_),a=m,o=p);break}case Ot.C:{var b=t[d++],x=t[d++],m=t[d++],p=t[d++],w=t[d++],S=t[d++];g=Dw(a,o,b,x,m,p,w,S,10),a=w,o=S;break}case Ot.Q:{var b=t[d++],x=t[d++],m=t[d++],p=t[d++];g=Pw(a,o,b,x,m,p,10),a=m,o=p;break}case Ot.A:var L=t[d++],C=t[d++],D=t[d++],I=t[d++],A=t[d++],M=t[d++],T=M+A;d+=1,v&&(s=Gn(A)*D+L,l=Hn(A)*I+C),g=lc(D,I)*sc(rn,Math.abs(M)),a=Gn(T)*D+L,o=Hn(T)*I+C;break;case Ot.R:{s=a=t[d++],l=o=t[d++];var k=t[d++],R=t[d++];g=k*2+R*2;break}case Ot.Z:{var y=s-a,_=l-o;g=Math.sqrt(y*y+_*_),a=s,o=l;break}}g>=0&&(u[c++]=g,f+=g)}return this._pathLen=f,f},e.prototype.rebuildPath=function(t,r){var n=this.data,i=this._ux,a=this._uy,o=this._len,s,l,u,f,c,d,h=r<1,v,g,m=0,p=0,y,_=0,b,x;if(!(h&&(this._pathSegLen||this._calculateLength(),v=this._pathSegLen,g=this._pathLen,y=r*g,!y)))t:for(var w=0;w<o;){var S=n[w++],L=w===1;switch(L&&(u=n[w],f=n[w+1],s=u,l=f),S!==Ot.L&&_>0&&(t.lineTo(b,x),_=0),S){case Ot.M:s=u=n[w++],l=f=n[w++],t.moveTo(u,f);break;case Ot.L:{c=n[w++],d=n[w++];var C=Rr(c-u),D=Rr(d-f);if(C>i||D>a){if(h){var I=v[p++];if(m+I>y){var A=(y-m)/I;t.lineTo(u*(1-A)+c*A,f*(1-A)+d*A);break t}m+=I}t.lineTo(c,d),u=c,f=d,_=0}else{var M=C*C+D*D;M>_&&(b=c,x=d,_=M)}break}case Ot.C:{var T=n[w++],k=n[w++],R=n[w++],z=n[w++],H=n[w++],V=n[w++];if(h){var I=v[p++];if(m+I>y){var A=(y-m)/I;as(u,T,R,H,A,zn),as(f,k,z,V,A,Vn),t.bezierCurveTo(zn[1],Vn[1],zn[2],Vn[2],zn[3],Vn[3]);break t}m+=I}t.bezierCurveTo(T,k,R,z,H,V),u=H,f=V;break}case Ot.Q:{var T=n[w++],k=n[w++],R=n[w++],z=n[w++];if(h){var I=v[p++];if(m+I>y){var A=(y-m)/I;os(u,T,R,A,zn),os(f,k,z,A,Vn),t.quadraticCurveTo(zn[1],Vn[1],zn[2],Vn[2]);break t}m+=I}t.quadraticCurveTo(T,k,R,z),u=R,f=z;break}case Ot.A:var Z=n[w++],B=n[w++],$=n[w++],X=n[w++],j=n[w++],Q=n[w++],bt=n[w++],Et=!n[w++],ht=$>X?$:X,gt=Rr($-X)>.001,St=j+Q,at=!1;if(h){var I=v[p++];m+I>y&&(St=j+Q*(y-m)/I,at=!0),m+=I}if(gt&&t.ellipse?t.ellipse(Z,B,$,X,bt,j,St,Et):t.arc(Z,B,ht,j,St,Et),at)break t;L&&(s=Gn(j)*$+Z,l=Hn(j)*X+B),u=Gn(St)*$+Z,f=Hn(St)*X+B;break;case Ot.R:s=u=n[w],l=f=n[w+1],c=n[w++],d=n[w++];var mt=n[w++],Rt=n[w++];if(h){var I=v[p++];if(m+I>y){var E=y-m;t.moveTo(c,d),t.lineTo(c+sc(E,mt),d),E-=mt,E>0&&t.lineTo(c+mt,d+sc(E,Rt)),E-=Rt,E>0&&t.lineTo(c+lc(mt-E,0),d+Rt),E-=mt,E>0&&t.lineTo(c,d+lc(Rt-E,0));break t}m+=I}t.rect(c,d,mt,Rt);break;case Ot.Z:if(h){var I=v[p++];if(m+I>y){var A=(y-m)/I;t.lineTo(u*(1-A)+s*A,f*(1-A)+l*A);break t}m+=I}t.closePath(),u=s,f=l}}},e.prototype.clone=function(){var t=new e,r=this.data;return t.data=r.slice?r.slice():Array.prototype.slice.call(r),t._len=this._len,t},e.prototype.canSave=function(){return!!this._saveData},e.CMD=Ot,e.initDefaultProps=(function(){var t=e.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0})(),e})();function Oi(e,t,r,n,i,a,o){if(i===0)return!1;var s=i,l=0,u=e;if(o>t+s&&o>n+s||o<t-s&&o<n-s||a>e+s&&a>r+s||a<e-s&&a<r-s)return!1;if(e!==r)l=(t-n)/(e-r),u=(e*n-r*t)/(e-r);else return Math.abs(a-e)<=s/2;var f=l*a-o+u,c=f*f/(l*l+1);return c<=s/2*s/2}function gT(e,t,r,n,i,a,o,s,l,u,f){if(l===0)return!1;var c=l;if(f>t+c&&f>n+c&&f>a+c&&f>s+c||f<t-c&&f<n-c&&f<a-c&&f<s-c||u>e+c&&u>r+c&&u>i+c&&u>o+c||u<e-c&&u<r-c&&u<i-c&&u<o-c)return!1;var d=Mw(e,t,r,n,i,a,o,s,u,f);return d<=c/2}function mT(e,t,r,n,i,a,o,s,l){if(o===0)return!1;var u=o;if(l>t+u&&l>n+u&&l>a+u||l<t-u&&l<n-u&&l<a-u||s>e+u&&s>r+u&&s>i+u||s<e-u&&s<r-u&&s<i-u)return!1;var f=kw(e,t,r,n,i,a,s,l);return f<=u/2}var Lg=Math.PI*2;function Os(e){return e%=Lg,e<0&&(e+=Lg),e}var Ra=Math.PI*2;function yT(e,t,r,n,i,a,o,s,l){if(o===0)return!1;var u=o;s-=e,l-=t;var f=Math.sqrt(s*s+l*l);if(f-u>r||f+u<r)return!1;if(Math.abs(n-i)%Ra<1e-4)return!0;if(a){var c=n;n=Os(i),i=Os(c)}else n=Os(n),i=Os(i);n>i&&(i+=Ra);var d=Math.atan2(l,s);return d<0&&(d+=Ra),d>=n&&d<=i||d+Ra>=n&&d+Ra<=i}function Un(e,t,r,n,i,a){if(a>t&&a>n||a<t&&a<n||n===t)return 0;var o=(a-t)/(n-t),s=n<t?1:-1;(o===1||o===0)&&(s=n<t?.5:-.5);var l=o*(r-e)+e;return l===i?1/0:l>i?s:0}var an=nn.CMD,Wn=Math.PI*2,_T=1e-4;function bT(e,t){return Math.abs(e-t)<_T}var xe=[-1,-1,-1],He=[-1,-1];function ST(){var e=He[0];He[0]=He[1],He[1]=e}function xT(e,t,r,n,i,a,o,s,l,u){if(u>t&&u>n&&u>a&&u>s||u<t&&u<n&&u<a&&u<s)return 0;var f=is(t,n,a,s,u,xe);if(f===0)return 0;for(var c=0,d=-1,h=void 0,v=void 0,g=0;g<f;g++){var m=xe[g],p=m===0||m===1?.5:1,y=le(e,r,i,o,m);y<l||(d<0&&(d=pp(t,n,a,s,He),He[1]<He[0]&&d>1&&ST(),h=le(t,n,a,s,He[0]),d>1&&(v=le(t,n,a,s,He[1]))),d===2?m<He[0]?c+=h<t?p:-p:m<He[1]?c+=v<h?p:-p:c+=s<v?p:-p:m<He[0]?c+=h<t?p:-p:c+=s<h?p:-p)}return c}function wT(e,t,r,n,i,a,o,s){if(s>t&&s>n&&s>a||s<t&&s<n&&s<a)return 0;var l=Iw(t,n,a,s,xe);if(l===0)return 0;var u=mp(t,n,a);if(u>=0&&u<=1){for(var f=0,c=Ae(t,n,a,u),d=0;d<l;d++){var h=xe[d]===0||xe[d]===1?.5:1,v=Ae(e,r,i,xe[d]);v<o||(xe[d]<u?f+=c<t?h:-h:f+=a<c?h:-h)}return f}else{var h=xe[0]===0||xe[0]===1?.5:1,v=Ae(e,r,i,xe[0]);return v<o?0:a<t?h:-h}}function TT(e,t,r,n,i,a,o,s){if(s-=t,s>r||s<-r)return 0;var l=Math.sqrt(r*r-s*s);xe[0]=-l,xe[1]=l;var u=Math.abs(n-i);if(u<1e-4)return 0;if(u>=Wn-1e-4){n=0,i=Wn;var f=a?1:-1;return o>=xe[0]+e&&o<=xe[1]+e?f:0}if(n>i){var c=n;n=i,i=c}n<0&&(n+=Wn,i+=Wn);for(var d=0,h=0;h<2;h++){var v=xe[h];if(v+e>o){var g=Math.atan2(s,v),f=a?1:-1;g<0&&(g=Wn+g),(g>=n&&g<=i||g+Wn>=n&&g+Wn<=i)&&(g>Math.PI/2&&g<Math.PI*1.5&&(f=-f),d+=f)}}return d}function Mg(e,t,r,n,i){for(var a=e.data,o=e.len(),s=0,l=0,u=0,f=0,c=0,d,h,v=0;v<o;){var g=a[v++],m=v===1;switch(g===an.M&&v>1&&(r||(s+=Un(l,u,f,c,n,i))),m&&(l=a[v],u=a[v+1],f=l,c=u),g){case an.M:f=a[v++],c=a[v++],l=f,u=c;break;case an.L:if(r){if(Oi(l,u,a[v],a[v+1],t,n,i))return!0}else s+=Un(l,u,a[v],a[v+1],n,i)||0;l=a[v++],u=a[v++];break;case an.C:if(r){if(gT(l,u,a[v++],a[v++],a[v++],a[v++],a[v],a[v+1],t,n,i))return!0}else s+=xT(l,u,a[v++],a[v++],a[v++],a[v++],a[v],a[v+1],n,i)||0;l=a[v++],u=a[v++];break;case an.Q:if(r){if(mT(l,u,a[v++],a[v++],a[v],a[v+1],t,n,i))return!0}else s+=wT(l,u,a[v++],a[v++],a[v],a[v+1],n,i)||0;l=a[v++],u=a[v++];break;case an.A:var p=a[v++],y=a[v++],_=a[v++],b=a[v++],x=a[v++],w=a[v++];v+=1;var S=!!(1-a[v++]);d=Math.cos(x)*_+p,h=Math.sin(x)*b+y,m?(f=d,c=h):s+=Un(l,u,d,h,n,i);var L=(n-p)*b/_+p;if(r){if(yT(p,y,b,x,x+w,S,t,L,i))return!0}else s+=TT(p,y,b,x,x+w,S,L,i);l=Math.cos(x+w)*_+p,u=Math.sin(x+w)*b+y;break;case an.R:f=l=a[v++],c=u=a[v++];var C=a[v++],D=a[v++];if(d=f+C,h=c+D,r){if(Oi(f,c,d,c,t,n,i)||Oi(d,c,d,h,t,n,i)||Oi(d,h,f,h,t,n,i)||Oi(f,h,f,c,t,n,i))return!0}else s+=Un(d,c,d,h,n,i),s+=Un(f,h,f,c,n,i);break;case an.Z:if(r){if(Oi(l,u,f,c,t,n,i))return!0}else s+=Un(l,u,f,c,n,i);l=f,u=c;break}}return!r&&!bT(u,c)&&(s+=Un(l,u,f,c,n,i)||0),s!==0}function CT(e,t,r){return Mg(e,0,!1,t,r)}function AT(e,t,r,n){return Mg(e,t,!0,r,n)}var Rs=Bt({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},Bn),ET={style:Bt({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},ks.style)},hc=Ea.concat(["invisible","culling","z","z2","zlevel","parent"]),It=(function(e){it(t,e);function t(r){return e.call(this,r)||this}return t.prototype.update=function(){var r=this;e.prototype.update.call(this);var n=this.style;if(n.decal){var i=this._decalEl=this._decalEl||new t;i.buildPath===t.prototype.buildPath&&(i.buildPath=function(l){r.buildPath(l,r.shape)}),i.silent=!0;var a=i.style;for(var o in n)a[o]!==n[o]&&(a[o]=n[o]);a.fill=n.fill?n.decal:null,a.decal=null,a.shadowColor=null,n.strokeFirst&&(a.stroke=null);for(var s=0;s<hc.length;++s)i[hc[s]]=this[hc[s]];i.__dirty|=cr}else this._decalEl&&(this._decalEl=null)},t.prototype.getDecalElement=function(){return this._decalEl},t.prototype._init=function(r){var n=Mt(r);this.shape=this.getDefaultShape();var i=this.getDefaultStyle();i&&this.useStyle(i);for(var a=0;a<n.length;a++){var o=n[a],s=r[o];o==="style"?this.style?et(this.style,s):this.useStyle(s):o==="shape"?et(this.shape,s):e.prototype.attrKV.call(this,o,s)}this.style||this.useStyle({})},t.prototype.getDefaultStyle=function(){return null},t.prototype.getDefaultShape=function(){return{}},t.prototype.canBeInsideText=function(){return this.hasFill()},t.prototype.getInsideTextFill=function(){var r=this.style.fill;if(r!=="none"){if(ut(r)){var n=us(r,0);return n>.5?If:n>.2?a2:kf}else if(r)return kf}return If},t.prototype.getInsideTextStroke=function(r){var n=this.style.fill;if(ut(n)){var i=this.__zr,a=!!(i&&i.isDarkMode()),o=us(r,0)<Df;if(a===o)return n}},t.prototype.buildPath=function(r,n,i){},t.prototype.pathUpdated=function(){this.__dirty&=~Ai},t.prototype.getUpdatedPathProxy=function(r){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,r),this.path},t.prototype.createPathProxy=function(){this.path=new nn(!1)},t.prototype.hasStroke=function(){var r=this.style,n=r.stroke;return!(n==null||n==="none"||!(r.lineWidth>0))},t.prototype.hasFill=function(){var r=this.style,n=r.fill;return n!=null&&n!=="none"},t.prototype.getBoundingRect=function(){var r=this._rect,n=this.style,i=!r;if(i){var a=!1;this.path||(a=!0,this.createPathProxy());var o=this.path;(a||this.__dirty&Ai)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),r=o.getBoundingRect()}if(this._rect=r,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=r.clone());if(this.__dirty||i){s.copy(r);var l=n.strokeNoScale?this.getLineScale():1,u=n.lineWidth;if(!this.hasFill()){var f=this.strokeContainThreshold;u=Math.max(u,f??4)}l>1e-10&&(s.width+=u/l,s.height+=u/l,s.x-=u/l/2,s.y-=u/l/2)}return s}return r},t.prototype.contain=function(r,n){var i=this.transformCoordToLocal(r,n),a=this.getBoundingRect(),o=this.style;if(r=i[0],n=i[1],a.contain(r,n)){var s=this.path;if(this.hasStroke()){var l=o.lineWidth,u=o.strokeNoScale?this.getLineScale():1;if(u>1e-10&&(this.hasFill()||(l=Math.max(l,this.strokeContainThreshold)),AT(s,l/u,r,n)))return!0}if(this.hasFill())return CT(s,r,n)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=Ai,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(r){return this.animate("shape",r)},t.prototype.updateDuringAnimation=function(r){r==="style"?this.dirtyStyle():r==="shape"?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(r,n){r==="shape"?this.setShape(n):e.prototype.attrKV.call(this,r,n)},t.prototype.setShape=function(r,n){var i=this.shape;return i||(i=this.shape={}),typeof r=="string"?i[r]=n:et(i,r),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&Ai)},t.prototype.createStyle=function(r){return Qo(Rs,r)},t.prototype._innerSaveToNormal=function(r){e.prototype._innerSaveToNormal.call(this,r);var n=this._normalState;r.shape&&!n.shape&&(n.shape=et({},this.shape))},t.prototype._applyStateObj=function(r,n,i,a,o,s){e.prototype._applyStateObj.call(this,r,n,i,a,o,s);var l=!(n&&a),u;if(n&&n.shape?o?a?u=n.shape:(u=et({},i.shape),et(u,n.shape)):(u=et({},a?this.shape:i.shape),et(u,n.shape)):l&&(u=i.shape),u)if(o){this.shape=et({},this.shape);for(var f={},c=Mt(u),d=0;d<c.length;d++){var h=c[d];typeof u[h]=="object"?this.shape[h]=u[h]:f[h]=u[h]}this._transitionState(r,{shape:f},s)}else this.shape=u,this.dirtyShape()},t.prototype._mergeStates=function(r){for(var n=e.prototype._mergeStates.call(this,r),i,a=0;a<r.length;a++){var o=r[a];o.shape&&(i=i||{},this._mergeStyle(i,o.shape))}return i&&(n.shape=i),n},t.prototype.getAnimationStyleProps=function(){return ET},t.prototype.isZeroArea=function(){return!1},t.extend=function(r){var n=(function(a){it(o,a);function o(s){var l=a.call(this,s)||this;return r.init&&r.init.call(l,s),l}return o.prototype.getDefaultStyle=function(){return At(r.style)},o.prototype.getDefaultShape=function(){return At(r.shape)},o})(t);for(var i in r)typeof r[i]=="function"&&(n.prototype[i]=r[i]);return n},t.initDefaultProps=(function(){var r=t.prototype;r.type="path",r.strokeContainThreshold=5,r.segmentIgnoreThreshold=0,r.subPixelOptimize=!1,r.autoBatch=!1,r.__dirty=cr|Sa|Ai})(),t})($a),LT=Bt({strokeFirst:!0,font:Dr,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},Rs),Ba=(function(e){it(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.hasStroke=function(){return xg(this.style)},t.prototype.hasFill=function(){var r=this.style,n=r.fill;return n!=null&&n!=="none"},t.prototype.createStyle=function(r){return Qo(LT,r)},t.prototype.setBoundingRect=function(r){this._rect=r},t.prototype.getBoundingRect=function(){return this._rect||(this._rect=fT(this.style)),this._rect},t.initDefaultProps=(function(){var r=t.prototype;r.dirtyRectTolerance=10})(),t})($a);Ba.prototype.type="tspan";var MT=Bt({x:0,y:0},Bn),DT={style:Bt({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},ks.style)};function IT(e){return!!(e&&typeof e!="string"&&e.width&&e.height)}var Sr=(function(e){it(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.createStyle=function(r){return Qo(MT,r)},t.prototype._getSize=function(r){var n=this.style,i=n[r];if(i!=null)return i;var a=IT(n.image)?n.image:this.__image;if(!a)return 0;var o=r==="width"?"height":"width",s=n[o];return s==null?a[r]:a[r]/a[o]*s},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return DT},t.prototype.getBoundingRect=function(){var r=this.style;return this._rect||(this._rect=new Ct(r.x||0,r.y||0,this.getWidth(),this.getHeight())),this._rect},t})($a);Sr.prototype.type="image";function kT(e,t){var r=t.x,n=t.y,i=t.width,a=t.height,o=t.r,s,l,u,f;i<0&&(r=r+i,i=-i),a<0&&(n=n+a,a=-a),typeof o=="number"?s=l=u=f=o:o instanceof Array?o.length===1?s=l=u=f=o[0]:o.length===2?(s=u=o[0],l=f=o[1]):o.length===3?(s=o[0],l=f=o[1],u=o[2]):(s=o[0],l=o[1],u=o[2],f=o[3]):s=l=u=f=0;var c;s+l>i&&(c=s+l,s*=i/c,l*=i/c),u+f>i&&(c=u+f,u*=i/c,f*=i/c),l+u>a&&(c=l+u,l*=a/c,u*=a/c),s+f>a&&(c=s+f,s*=a/c,f*=a/c),e.moveTo(r+s,n),e.lineTo(r+i-l,n),l!==0&&e.arc(r+i-l,n+l,l,-Math.PI/2,0),e.lineTo(r+i,n+a-u),u!==0&&e.arc(r+i-u,n+a-u,u,0,Math.PI/2),e.lineTo(r+f,n+a),f!==0&&e.arc(r+f,n+a-f,f,Math.PI/2,Math.PI),e.lineTo(r,n+s),s!==0&&e.arc(r+s,n+s,s,Math.PI,Math.PI*1.5)}var Ri=Math.round;function Dg(e,t,r){if(t){var n=t.x1,i=t.x2,a=t.y1,o=t.y2;e.x1=n,e.x2=i,e.y1=a,e.y2=o;var s=r&&r.lineWidth;return s&&(Ri(n*2)===Ri(i*2)&&(e.x1=e.x2=Zn(n,s,!0)),Ri(a*2)===Ri(o*2)&&(e.y1=e.y2=Zn(a,s,!0))),e}}function Ig(e,t,r){if(t){var n=t.x,i=t.y,a=t.width,o=t.height;e.x=n,e.y=i,e.width=a,e.height=o;var s=r&&r.lineWidth;return s&&(e.x=Zn(n,s,!0),e.y=Zn(i,s,!0),e.width=Math.max(Zn(n+a,s,!1)-e.x,a===0?0:1),e.height=Math.max(Zn(i+o,s,!1)-e.y,o===0?0:1)),e}}function Zn(e,t,r){if(!t)return e;var n=Ri(e*2);return(n+Ri(t))%2===0?n/2:(n+(r?1:-1))/2}var PT=(function(){function e(){this.x=0,this.y=0,this.width=0,this.height=0}return e})(),NT={},qt=(function(e){it(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new PT},t.prototype.buildPath=function(r,n){var i,a,o,s;if(this.subPixelOptimize){var l=Ig(NT,n,this.style);i=l.x,a=l.y,o=l.width,s=l.height,l.r=n.r,n=l}else i=n.x,a=n.y,o=n.width,s=n.height;n.r?kT(r,n):r.rect(i,a,o,s)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t})(It);qt.prototype.type="rect";var kg={fill:"#000"},Pg=2,xr={},$T={style:Bt({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},ks.style)},fe=(function(e){it(t,e);function t(r){var n=e.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=kg,n.attr(r),n}return t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){e.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var r=0;r<this._children.length;r++){var n=this._children[r];n.zlevel=this.zlevel,n.z=this.z,n.z2=this.z2,n.culling=this.culling,n.cursor=this.cursor,n.invisible=this.invisible}},t.prototype.updateTransform=function(){var r=this.innerTransformable;r?(r.updateTransform(),r.transform&&(this.transform=r.transform)):e.prototype.updateTransform.call(this)},t.prototype.getLocalTransform=function(r){var n=this.innerTransformable;return n?n.getLocalTransform(r):e.prototype.getLocalTransform.call(this,r)},t.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),e.prototype.getComputedTransform.call(this)},t.prototype._updateSubTexts=function(){this._childCursor=0,BT(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},t.prototype.addSelfToZr=function(r){e.prototype.addSelfToZr.call(this,r);for(var n=0;n<this._children.length;n++)this._children[n].__zr=r},t.prototype.removeSelfFromZr=function(r){e.prototype.removeSelfFromZr.call(this,r);for(var n=0;n<this._children.length;n++)this._children[n].__zr=null},t.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var r=new Ct(0,0,0,0),n=this._children,i=[],a=null,o=0;o<n.length;o++){var s=n[o],l=s.getBoundingRect(),u=s.getLocalTransform(i);u?(r.copy(l),r.applyTransform(u),a=a||r.clone(),a.union(r)):(a=a||l.clone(),a.union(l))}this._rect=a||r}return this._rect},t.prototype.setDefaultTextStyle=function(r){this._defaultStyle=r||kg},t.prototype.setTextContent=function(r){if(process.env.NODE_ENV!=="production")throw new Error("Can't attach text on another text")},t.prototype._mergeStyle=function(r,n){if(!n)return r;var i=n.rich,a=r.rich||i&&{};return et(r,n),i&&a?(this._mergeRich(a,i),r.rich=a):a&&(r.rich=a),r},t.prototype._mergeRich=function(r,n){for(var i=Mt(n),a=0;a<i.length;a++){var o=i[a];r[o]=r[o]||{},et(r[o],n[o])}},t.prototype.getAnimationStyleProps=function(){return $T},t.prototype._getOrCreateChild=function(r){var n=this._children[this._childCursor];return(!n||!(n instanceof r))&&(n=new r),this._children[this._childCursor++]=n,n.__zr=this.__zr,n.parent=this,n},t.prototype._updatePlainTexts=function(){var r=this.style,n=r.font||Dr,i=r.padding,a=this._defaultStyle,o=r.x||0,s=r.y||0,l=r.align||a.align||"left",u=r.verticalAlign||a.verticalAlign||"top";_g(xr,a.overflowRect,o,s,l,u),o=xr.baseX,s=xr.baseY;var f=Gg(r),c=nT(f,r,xr.outerWidth,xr.outerHeight),d=dc(r),h=!!r.backgroundColor,v=c.outerHeight,g=c.outerWidth,m=c.lines,p=c.lineHeight;this.isTruncated=!!c.isTruncated;var y=o,_=$n(s,c.contentHeight,u);if(d||i){var b=ki(o,g,l),x=$n(s,v,u);d&&this._renderBackground(r,r,b,x,g,v)}_+=p/2,i&&(y=Vg(o,l,i),u==="top"?_+=i[0]:u==="bottom"&&(_-=i[2]));for(var w=0,S=!1,L=!1,C=zg("fill"in r?r.fill:(L=!0,a.fill)),D=Fg("stroke"in r?r.stroke:!h&&(!a.autoStroke||L)?(w=Pg,S=!0,a.stroke):null),I=r.textShadowBlur>0,A=0;A<m.length;A++){var M=this._getOrCreateChild(Ba),T=M.createStyle();M.useStyle(T),T.text=m[A],T.x=y,T.y=_,T.textAlign=l,T.textBaseline="middle",T.opacity=r.opacity,T.strokeFirst=!0,I&&(T.shadowBlur=r.textShadowBlur||0,T.shadowColor=r.textShadowColor||"transparent",T.shadowOffsetX=r.textShadowOffsetX||0,T.shadowOffsetY=r.textShadowOffsetY||0),T.stroke=D,T.fill=C,D&&(T.lineWidth=r.lineWidth||w,T.lineDash=r.lineDash,T.lineDashOffset=r.lineDashOffset||0),T.font=n,Og(T,r),_+=p,M.setBoundingRect(ec(T,c.contentWidth,c.calculatedLineHeight,S?0:null))}},t.prototype._updateRichTexts=function(){var r=this.style,n=this._defaultStyle,i=r.align||n.align,a=r.verticalAlign||n.verticalAlign,o=r.x||0,s=r.y||0;_g(xr,n.overflowRect,o,s,i,a),o=xr.baseX,s=xr.baseY;var l=Gg(r),u=oT(l,r,xr.outerWidth,xr.outerHeight,i),f=u.width,c=u.outerWidth,d=u.outerHeight,h=r.padding;this.isTruncated=!!u.isTruncated;var v=ki(o,c,i),g=$n(s,d,a),m=v,p=g;h&&(m+=h[3],p+=h[0]);var y=m+f;dc(r)&&this._renderBackground(r,r,v,g,c,d);for(var _=!!r.backgroundColor,b=0;b<u.lines.length;b++){for(var x=u.lines[b],w=x.tokens,S=w.length,L=x.lineHeight,C=x.width,D=0,I=m,A=y,M=S-1,T=void 0;D<S&&(T=w[D],!T.align||T.align==="left");)this._placeToken(T,r,L,p,I,"left",_),C-=T.width,I+=T.width,D++;for(;M>=0&&(T=w[M],T.align==="right");)this._placeToken(T,r,L,p,A,"right",_),C-=T.width,A-=T.width,M--;for(I+=(f-(I-m)-(y-A)-C)/2;D<=M;)T=w[D],this._placeToken(T,r,L,p,I+T.width/2,"center",_),I+=T.width,D++;p+=L}},t.prototype._placeToken=function(r,n,i,a,o,s,l){var u=n.rich[r.styleName]||{};u.text=r.text;var f=r.verticalAlign,c=a+i/2;f==="top"?c=a+r.height/2:f==="bottom"&&(c=a+i-r.height/2);var d=!r.isLineHolder&&dc(u);d&&this._renderBackground(u,n,s==="right"?o-r.width:s==="center"?o-r.width/2:o,c-r.height/2,r.width,r.height);var h=!!u.backgroundColor,v=r.textPadding;v&&(o=Vg(o,s,v),c-=r.height/2-v[0]-r.innerHeight/2);var g=this._getOrCreateChild(Ba),m=g.createStyle();g.useStyle(m);var p=this._defaultStyle,y=!1,_=0,b=!1,x=zg("fill"in u?u.fill:"fill"in n?n.fill:(y=!0,p.fill)),w=Fg("stroke"in u?u.stroke:"stroke"in n?n.stroke:!h&&!l&&(!p.autoStroke||y)?(_=Pg,b=!0,p.stroke):null),S=u.textShadowBlur>0||n.textShadowBlur>0;m.text=r.text,m.x=o,m.y=c,S&&(m.shadowBlur=u.textShadowBlur||n.textShadowBlur||0,m.shadowColor=u.textShadowColor||n.textShadowColor||"transparent",m.shadowOffsetX=u.textShadowOffsetX||n.textShadowOffsetX||0,m.shadowOffsetY=u.textShadowOffsetY||n.textShadowOffsetY||0),m.textAlign=s,m.textBaseline="middle",m.font=r.font||Dr,m.opacity=Ir(u.opacity,n.opacity,1),Og(m,u),w&&(m.lineWidth=Ir(u.lineWidth,n.lineWidth,_),m.lineDash=ct(u.lineDash,n.lineDash),m.lineDashOffset=n.lineDashOffset||0,m.stroke=w),x&&(m.fill=x),g.setBoundingRect(ec(m,r.contentWidth,r.contentHeight,b?0:null))},t.prototype._renderBackground=function(r,n,i,a,o,s){var l=r.backgroundColor,u=r.borderWidth,f=r.borderColor,c=l&&l.image,d=l&&!c,h=r.borderRadius,v=this,g,m;if(d||r.lineHeight||u&&f){g=this._getOrCreateChild(qt),g.useStyle(g.createStyle()),g.style.fill=null;var p=g.shape;p.x=i,p.y=a,p.width=o,p.height=s,p.r=h,g.dirtyShape()}if(d){var y=g.style;y.fill=l||null,y.fillOpacity=ct(r.fillOpacity,1)}else if(c){m=this._getOrCreateChild(Sr),m.onload=function(){v.dirtyStyle()};var _=m.style;_.image=l.image,_.x=i,_.y=a,_.width=o,_.height=s}if(u&&f){var y=g.style;y.lineWidth=u,y.stroke=f,y.strokeOpacity=ct(r.strokeOpacity,1),y.lineDash=r.borderDash,y.lineDashOffset=r.borderDashOffset||0,g.strokeContainThreshold=0,g.hasFill()&&g.hasStroke()&&(y.strokeFirst=!0,y.lineWidth*=2)}var b=(g||m).style;b.shadowBlur=r.shadowBlur||0,b.shadowColor=r.shadowColor||"transparent",b.shadowOffsetX=r.shadowOffsetX||0,b.shadowOffsetY=r.shadowOffsetY||0,b.opacity=Ir(r.opacity,n.opacity,1)},t.makeFont=function(r){var n="";return Rg(r)&&(n=[r.fontStyle,r.fontWeight,$g(r.fontSize),r.fontFamily||"sans-serif"].join(" ")),n&&fr(n)||r.textFont||r.font},t})($a),OT={left:!0,right:1,center:1},RT={top:1,bottom:1,middle:1},Ng=["fontStyle","fontWeight","fontSize","fontFamily"];function $g(e){return typeof e=="string"&&(e.indexOf("px")!==-1||e.indexOf("rem")!==-1||e.indexOf("em")!==-1)?e:isNaN(+e)?Nu+"px":e+"px"}function Og(e,t){for(var r=0;r<Ng.length;r++){var n=Ng[r],i=t[n];i!=null&&(e[n]=i)}}function Rg(e){return e.fontSize!=null||e.fontFamily||e.fontWeight}function BT(e){return Bg(e),O(e.rich,Bg),e}function Bg(e){if(e){e.font=fe.makeFont(e);var t=e.align;t==="middle"&&(t="center"),e.align=t==null||OT[t]?t:"left";var r=e.verticalAlign;r==="center"&&(r="middle"),e.verticalAlign=r==null||RT[r]?r:"top";var n=e.padding;n&&(e.padding=Fu(e.padding))}}function Fg(e,t){return e==null||t<=0||e==="transparent"||e==="none"?null:e.image||e.colorStops?"#000":e}function zg(e){return e==null||e==="none"?null:e.image||e.colorStops?"#000":e}function Vg(e,t,r){return t==="right"?e-r[1]:t==="center"?e+r[3]/2-r[1]/2:e+r[3]}function Gg(e){var t=e.text;return t!=null&&(t+=""),t}function dc(e){return!!(e.backgroundColor||e.lineHeight||e.borderWidth&&e.borderColor)}var Lt=Zt(),FT=function(e,t,r,n){if(n){var i=Lt(n);i.dataIndex=r,i.dataType=t,i.seriesIndex=e,i.ssrType="chart",n.type==="group"&&n.traverse(function(a){var o=Lt(a);o.seriesIndex=e,o.dataIndex=r,o.dataType=t,o.ssrType="chart"})}},Hg=1,Ug={},Wg=Zt(),vc=Zt(),pc=0,Bs=1,Fs=2,Ue=["emphasis","blur","select"],zs=["normal","emphasis","blur","select"],zT=10,VT=9,Yn="highlight",Vs="downplay",Gs="select",gc="unselect",Hs="toggleSelect",mc="selectchanged";function Bi(e){return e!=null&&e!=="none"}function Us(e,t,r){e.onHoverStateChange&&(e.hoverState||0)!==r&&e.onHoverStateChange(t),e.hoverState=r}function Zg(e){Us(e,"emphasis",Fs)}function Yg(e){e.hoverState===Fs&&Us(e,"normal",pc)}function yc(e){Us(e,"blur",Bs)}function Xg(e){e.hoverState===Bs&&Us(e,"normal",pc)}function GT(e){e.selected=!0}function HT(e){e.selected=!1}function qg(e,t,r){t(e,r)}function Br(e,t,r){qg(e,t,r),e.isGroup&&e.traverse(function(n){qg(n,t,r)})}function jg(e,t){switch(t){case"emphasis":e.hoverState=Fs;break;case"normal":e.hoverState=pc;break;case"blur":e.hoverState=Bs;break;case"select":e.selected=!0}}function UT(e,t,r,n){for(var i=e.style,a={},o=0;o<t.length;o++){var s=t[o],l=i[s];a[s]=l??(n&&n[s])}for(var o=0;o<e.animators.length;o++){var u=e.animators[o];u.__fromStateTransition&&u.__fromStateTransition.indexOf(r)<0&&u.targetName==="style"&&u.saveTo(a,t)}return a}function WT(e,t,r,n){var i=r&&Nt(r,"select")>=0,a=!1;if(e instanceof It){var o=Wg(e),s=i&&o.selectFill||o.normalFill,l=i&&o.selectStroke||o.normalStroke;if(Bi(s)||Bi(l)){n=n||{};var u=n.style||{};u.fill==="inherit"?(a=!0,n=et({},n),u=et({},u),u.fill=s):!Bi(u.fill)&&Bi(s)?(a=!0,n=et({},n),u=et({},u),u.fill=gf(s)):!Bi(u.stroke)&&Bi(l)&&(a||(n=et({},n),u=et({},u)),u.stroke=gf(l)),n.style=u}}if(n&&n.z2==null){a||(n=et({},n));var f=e.z2EmphasisLift;n.z2=e.z2+(f??zT)}return n}function ZT(e,t,r){if(r&&r.z2==null){r=et({},r);var n=e.z2SelectLift;r.z2=e.z2+(n??VT)}return r}function YT(e,t,r){var n=Nt(e.currentStates,t)>=0,i=e.style.opacity,a=n?null:UT(e,["opacity"],t,{opacity:1});r=r||{};var o=r.style||{};return o.opacity==null&&(r=et({},r),o=et({opacity:n?i:a.opacity*.1},o),r.style=o),r}function _c(e,t){var r=this.states[e];if(this.style){if(e==="emphasis")return WT(this,e,t,r);if(e==="blur")return YT(this,e,r);if(e==="select")return ZT(this,e,r)}return r}function XT(e){e.stateProxy=_c;var t=e.getTextContent(),r=e.getTextGuideLine();t&&(t.stateProxy=_c),r&&(r.stateProxy=_c)}function Qg(e,t){!r0(e,t)&&!e.__highByOuter&&Br(e,Zg)}function Kg(e,t){!r0(e,t)&&!e.__highByOuter&&Br(e,Yg)}function Ws(e,t){e.__highByOuter|=1<<(t||0),Br(e,Zg)}function Zs(e,t){!(e.__highByOuter&=~(1<<(t||0)))&&Br(e,Yg)}function qT(e){Br(e,yc)}function Jg(e){Br(e,Xg)}function t0(e){Br(e,GT)}function e0(e){Br(e,HT)}function r0(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function n0(e){var t=e.getModel(),r=[],n=[];t.eachComponent(function(i,a){var o=vc(a),s=i==="series",l=s?e.getViewOfSeriesModel(a):e.getViewOfComponentModel(a);!s&&n.push(l),o.isBlured&&(l.group.traverse(function(u){Xg(u)}),s&&r.push(a)),o.isBlured=!1}),O(n,function(i){i&&i.toggleBlurSeries&&i.toggleBlurSeries(r,!1,t)})}function bc(e,t,r,n){var i=n.getModel();r=r||"coordinateSystem";function a(u,f){for(var c=0;c<f.length;c++){var d=u.getItemGraphicEl(f[c]);d&&Jg(d)}}if(e!=null&&!(!t||t==="none")){var o=i.getSeriesByIndex(e),s=o.coordinateSystem;s&&s.master&&(s=s.master);var l=[];i.eachSeries(function(u){var f=o===u,c=u.coordinateSystem;c&&c.master&&(c=c.master);var d=c&&s?c===s:f;if(!(r==="series"&&!f||r==="coordinateSystem"&&!d||t==="series"&&f)){var h=n.getViewOfSeriesModel(u);if(h.group.traverse(function(m){m.__highByOuter&&f&&t==="self"||yc(m)}),Ce(t))a(u.getData(),t);else if(pt(t))for(var v=Mt(t),g=0;g<v.length;g++)a(u.getData(v[g]),t[v[g]]);l.push(u),vc(u).isBlured=!0}}),i.eachComponent(function(u,f){if(u!=="series"){var c=n.getViewOfComponentModel(f);c&&c.toggleBlurSeries&&c.toggleBlurSeries(l,!0,i)}})}}function Sc(e,t,r){if(!(e==null||t==null)){var n=r.getModel().getComponent(e,t);if(n){vc(n).isBlured=!0;var i=r.getViewOfComponentModel(n);!i||!i.focusBlurEnabled||i.group.traverse(function(a){yc(a)})}}}function jT(e,t,r){var n=e.seriesIndex,i=e.getData(t.dataType);if(!i){process.env.NODE_ENV!=="production"&&zt("Unknown dataType "+t.dataType);return}var a=On(i,t);a=(st(a)?a[0]:a)||0;var o=i.getItemGraphicEl(a);if(!o)for(var s=i.count(),l=0;!o&&l<s;)o=i.getItemGraphicEl(l++);if(o){var u=Lt(o);bc(n,u.focus,u.blurScope,r)}else{var f=e.get(["emphasis","focus"]),c=e.get(["emphasis","blurScope"]);f!=null&&bc(n,f,c,r)}}function xc(e,t,r,n){var i={focusSelf:!1,dispatchers:null};if(e==null||e==="series"||t==null||r==null)return i;var a=n.getModel().getComponent(e,t);if(!a)return i;var o=n.getViewOfComponentModel(a);if(!o||!o.findHighDownDispatchers)return i;for(var s=o.findHighDownDispatchers(r),l,u=0;u<s.length;u++)if(process.env.NODE_ENV!=="production"&&!Fi(s[u])&&zt("param should be highDownDispatcher"),Lt(s[u]).focus==="self"){l=!0;break}return{focusSelf:l,dispatchers:s}}function QT(e,t,r){process.env.NODE_ENV!=="production"&&!Fi(e)&&zt("param should be highDownDispatcher");var n=Lt(e),i=xc(n.componentMainType,n.componentIndex,n.componentHighDownName,r),a=i.dispatchers,o=i.focusSelf;a?(o&&Sc(n.componentMainType,n.componentIndex,r),O(a,function(s){return Qg(s,t)})):(bc(n.seriesIndex,n.focus,n.blurScope,r),n.focus==="self"&&Sc(n.componentMainType,n.componentIndex,r),Qg(e,t))}function KT(e,t,r){process.env.NODE_ENV!=="production"&&!Fi(e)&&zt("param should be highDownDispatcher"),n0(r);var n=Lt(e),i=xc(n.componentMainType,n.componentIndex,n.componentHighDownName,r).dispatchers;i?O(i,function(a){return Kg(a,t)}):Kg(e,t)}function JT(e,t,r){if(Tc(t)){var n=t.dataType,i=e.getData(n),a=On(i,t);st(a)||(a=[a]),e[t.type===Hs?"toggleSelect":t.type===Gs?"select":"unselect"](a,n)}}function i0(e){var t=e.getAllData();O(t,function(r){var n=r.data,i=r.type;n.eachItemGraphicEl(function(a,o){e.isSelected(o,i)?t0(a):e0(a)})})}function tC(e){var t=[];return e.eachSeries(function(r){var n=r.getAllData();O(n,function(i){i.data;var a=i.type,o=r.getSelectedDataIndices();if(o.length>0){var s={dataIndex:o,seriesIndex:r.seriesIndex};a!=null&&(s.dataType=a),t.push(s)}})}),t}function wc(e,t,r){o0(e,!0),Br(e,XT),rC(e,t,r)}function eC(e){o0(e,!1)}function Fa(e,t,r,n){n?eC(e):wc(e,t,r)}function rC(e,t,r){var n=Lt(e);t!=null?(n.focus=t,n.blurScope=r):n.focus&&(n.focus=null)}var a0=["emphasis","blur","select"],nC={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function Ys(e,t,r,n){r=r||"itemStyle";for(var i=0;i<a0.length;i++){var a=a0[i],o=t.getModel([a,r]),s=e.ensureState(a);s.style=o[nC[r]]()}}function o0(e,t){var r=t===!1,n=e;e.highDownSilentOnTouch&&(n.__highDownSilentOnTouch=e.highDownSilentOnTouch),(!r||n.__highDownDispatcher)&&(n.__highByOuter=n.__highByOuter||0,n.__highDownDispatcher=!r)}function Fi(e){return!!(e&&e.__highDownDispatcher)}function iC(e){var t=Ug[e];return t==null&&Hg<=32&&(t=Ug[e]=Hg++),t}function Tc(e){var t=e.type;return t===Gs||t===gc||t===Hs}function s0(e){var t=e.type;return t===Yn||t===Vs}function aC(e){var t=Wg(e);t.normalFill=e.style.fill,t.normalStroke=e.style.stroke;var r=e.states.select||{};t.selectFill=r.style&&r.style.fill||null,t.selectStroke=r.style&&r.style.stroke||null}var zi=nn.CMD,oC=[[],[],[]],l0=Math.sqrt,sC=Math.atan2;function lC(e,t){if(t){var r=e.data,n=e.len(),i,a,o,s,l,u,f=zi.M,c=zi.C,d=zi.L,h=zi.R,v=zi.A,g=zi.Q;for(o=0,s=0;o<n;){switch(i=r[o++],s=o,a=0,i){case f:a=1;break;case d:a=1;break;case c:a=3;break;case g:a=2;break;case v:var m=t[4],p=t[5],y=l0(t[0]*t[0]+t[1]*t[1]),_=l0(t[2]*t[2]+t[3]*t[3]),b=sC(-t[1]/_,t[0]/y);r[o]*=y,r[o++]+=m,r[o]*=_,r[o++]+=p,r[o++]*=y,r[o++]*=_,r[o++]+=b,r[o++]+=b,o+=2,s=o;break;case h:u[0]=r[o++],u[1]=r[o++],Oe(u,u,t),r[s++]=u[0],r[s++]=u[1],u[0]+=r[o++],u[1]+=r[o++],Oe(u,u,t),r[s++]=u[0],r[s++]=u[1]}for(l=0;l<a;l++){var x=oC[l];x[0]=r[o++],x[1]=r[o++],Oe(x,x,t),r[s++]=x[0],r[s++]=x[1]}}e.increaseVersion()}}var Cc=Math.sqrt,Xs=Math.sin,qs=Math.cos,za=Math.PI;function u0(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function Ac(e,t){return(e[0]*t[0]+e[1]*t[1])/(u0(e)*u0(t))}function f0(e,t){return(e[0]*t[1]<e[1]*t[0]?-1:1)*Math.acos(Ac(e,t))}function c0(e,t,r,n,i,a,o,s,l,u,f){var c=l*(za/180),d=qs(c)*(e-r)/2+Xs(c)*(t-n)/2,h=-1*Xs(c)*(e-r)/2+qs(c)*(t-n)/2,v=d*d/(o*o)+h*h/(s*s);v>1&&(o*=Cc(v),s*=Cc(v));var g=(i===a?-1:1)*Cc((o*o*(s*s)-o*o*(h*h)-s*s*(d*d))/(o*o*(h*h)+s*s*(d*d)))||0,m=g*o*h/s,p=g*-s*d/o,y=(e+r)/2+qs(c)*m-Xs(c)*p,_=(t+n)/2+Xs(c)*m+qs(c)*p,b=f0([1,0],[(d-m)/o,(h-p)/s]),x=[(d-m)/o,(h-p)/s],w=[(-1*d-m)/o,(-1*h-p)/s],S=f0(x,w);if(Ac(x,w)<=-1&&(S=za),Ac(x,w)>=1&&(S=0),S<0){var L=Math.round(S/za*1e6)/1e6;S=za*2+L%2*za}f.addData(u,y,_,o,s,b,S,c,a)}var uC=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,fC=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function cC(e){var t=new nn;if(!e)return t;var r=0,n=0,i=r,a=n,o,s=nn.CMD,l=e.match(uC);if(!l)return t;for(var u=0;u<l.length;u++){for(var f=l[u],c=f.charAt(0),d=void 0,h=f.match(fC)||[],v=h.length,g=0;g<v;g++)h[g]=parseFloat(h[g]);for(var m=0;m<v;){var p=void 0,y=void 0,_=void 0,b=void 0,x=void 0,w=void 0,S=void 0,L=r,C=n,D=void 0,I=void 0;switch(c){case"l":r+=h[m++],n+=h[m++],d=s.L,t.addData(d,r,n);break;case"L":r=h[m++],n=h[m++],d=s.L,t.addData(d,r,n);break;case"m":r+=h[m++],n+=h[m++],d=s.M,t.addData(d,r,n),i=r,a=n,c="l";break;case"M":r=h[m++],n=h[m++],d=s.M,t.addData(d,r,n),i=r,a=n,c="L";break;case"h":r+=h[m++],d=s.L,t.addData(d,r,n);break;case"H":r=h[m++],d=s.L,t.addData(d,r,n);break;case"v":n+=h[m++],d=s.L,t.addData(d,r,n);break;case"V":n=h[m++],d=s.L,t.addData(d,r,n);break;case"C":d=s.C,t.addData(d,h[m++],h[m++],h[m++],h[m++],h[m++],h[m++]),r=h[m-2],n=h[m-1];break;case"c":d=s.C,t.addData(d,h[m++]+r,h[m++]+n,h[m++]+r,h[m++]+n,h[m++]+r,h[m++]+n),r+=h[m-2],n+=h[m-1];break;case"S":p=r,y=n,D=t.len(),I=t.data,o===s.C&&(p+=r-I[D-4],y+=n-I[D-3]),d=s.C,L=h[m++],C=h[m++],r=h[m++],n=h[m++],t.addData(d,p,y,L,C,r,n);break;case"s":p=r,y=n,D=t.len(),I=t.data,o===s.C&&(p+=r-I[D-4],y+=n-I[D-3]),d=s.C,L=r+h[m++],C=n+h[m++],r+=h[m++],n+=h[m++],t.addData(d,p,y,L,C,r,n);break;case"Q":L=h[m++],C=h[m++],r=h[m++],n=h[m++],d=s.Q,t.addData(d,L,C,r,n);break;case"q":L=h[m++]+r,C=h[m++]+n,r+=h[m++],n+=h[m++],d=s.Q,t.addData(d,L,C,r,n);break;case"T":p=r,y=n,D=t.len(),I=t.data,o===s.Q&&(p+=r-I[D-4],y+=n-I[D-3]),r=h[m++],n=h[m++],d=s.Q,t.addData(d,p,y,r,n);break;case"t":p=r,y=n,D=t.len(),I=t.data,o===s.Q&&(p+=r-I[D-4],y+=n-I[D-3]),r+=h[m++],n+=h[m++],d=s.Q,t.addData(d,p,y,r,n);break;case"A":_=h[m++],b=h[m++],x=h[m++],w=h[m++],S=h[m++],L=r,C=n,r=h[m++],n=h[m++],d=s.A,c0(L,C,r,n,w,S,_,b,x,d,t);break;case"a":_=h[m++],b=h[m++],x=h[m++],w=h[m++],S=h[m++],L=r,C=n,r+=h[m++],n+=h[m++],d=s.A,c0(L,C,r,n,w,S,_,b,x,d,t);break}}(c==="z"||c==="Z")&&(d=s.Z,t.addData(d),r=i,n=a),o=d}return t.toStatic(),t}var h0=(function(e){it(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.applyTransform=function(r){},t})(It);function d0(e){return e.setData!=null}function v0(e,t){var r=cC(e),n=et({},t);return n.buildPath=function(i){var a=d0(i);if(a&&i.canSave()){i.appendPath(r);var o=i.getContext();o&&i.rebuildPath(o,1)}else{var o=a?i.getContext():i;o&&r.rebuildPath(o,1)}},n.applyTransform=function(i){lC(r,i),this.dirtyShape()},n}function hC(e,t){return new h0(v0(e,t))}function dC(e,t){var r=v0(e,t),n=(function(i){it(a,i);function a(o){var s=i.call(this,o)||this;return s.applyTransform=r.applyTransform,s.buildPath=r.buildPath,s}return a})(h0);return n}function vC(e,t){for(var r=[],n=e.length,i=0;i<n;i++){var a=e[i];r.push(a.getUpdatedPathProxy(!0))}var o=new It(t);return o.createPathProxy(),o.buildPath=function(s){if(d0(s)){s.appendPath(r);var l=s.getContext();l&&s.rebuildPath(l,1)}},o}var pC=(function(){function e(){this.cx=0,this.cy=0,this.r=0}return e})(),js=(function(e){it(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new pC},t.prototype.buildPath=function(r,n){r.moveTo(n.cx+n.r,n.cy),r.arc(n.cx,n.cy,n.r,0,Math.PI*2)},t})(It);js.prototype.type="circle";var gC=(function(){function e(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return e})(),Ec=(function(e){it(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new gC},t.prototype.buildPath=function(r,n){var i=.5522848,a=n.cx,o=n.cy,s=n.rx,l=n.ry,u=s*i,f=l*i;r.moveTo(a-s,o),r.bezierCurveTo(a-s,o-f,a-u,o-l,a,o-l),r.bezierCurveTo(a+u,o-l,a+s,o-f,a+s,o),r.bezierCurveTo(a+s,o+f,a+u,o+l,a,o+l),r.bezierCurveTo(a-u,o+l,a-s,o+f,a-s,o),r.closePath()},t})(It);Ec.prototype.type="ellipse";var p0=Math.PI,Lc=p0*2,Xn=Math.sin,Vi=Math.cos,mC=Math.acos,ve=Math.atan2,g0=Math.abs,Va=Math.sqrt,Ga=Math.max,wr=Math.min,rr=1e-4;function yC(e,t,r,n,i,a,o,s){var l=r-e,u=n-t,f=o-i,c=s-a,d=c*l-f*u;if(!(d*d<rr))return d=(f*(t-a)-c*(e-i))/d,[e+d*l,t+d*u]}function Qs(e,t,r,n,i,a,o){var s=e-r,l=t-n,u=(o?a:-a)/Va(s*s+l*l),f=u*l,c=-u*s,d=e+f,h=t+c,v=r+f,g=n+c,m=(d+v)/2,p=(h+g)/2,y=v-d,_=g-h,b=y*y+_*_,x=i-a,w=d*g-v*h,S=(_<0?-1:1)*Va(Ga(0,x*x*b-w*w)),L=(w*_-y*S)/b,C=(-w*y-_*S)/b,D=(w*_+y*S)/b,I=(-w*y+_*S)/b,A=L-m,M=C-p,T=D-m,k=I-p;return A*A+M*M>T*T+k*k&&(L=D,C=I),{cx:L,cy:C,x0:-f,y0:-c,x1:L*(i/x-1),y1:C*(i/x-1)}}function _C(e){var t;if(st(e)){var r=e.length;if(!r)return e;r===1?t=[e[0],e[0],0,0]:r===2?t=[e[0],e[0],e[1],e[1]]:r===3?t=e.concat(e[2]):t=e}else t=[e,e,e,e];return t}function bC(e,t){var r,n=Ga(t.r,0),i=Ga(t.r0||0,0),a=n>0,o=i>0;if(!(!a&&!o)){if(a||(n=i,i=0),i>n){var s=n;n=i,i=s}var l=t.startAngle,u=t.endAngle;if(!(isNaN(l)||isNaN(u))){var f=t.cx,c=t.cy,d=!!t.clockwise,h=g0(u-l),v=h>Lc&&h%Lc;if(v>rr&&(h=v),!(n>rr))e.moveTo(f,c);else if(h>Lc-rr)e.moveTo(f+n*Vi(l),c+n*Xn(l)),e.arc(f,c,n,l,u,!d),i>rr&&(e.moveTo(f+i*Vi(u),c+i*Xn(u)),e.arc(f,c,i,u,l,d));else{var g=void 0,m=void 0,p=void 0,y=void 0,_=void 0,b=void 0,x=void 0,w=void 0,S=void 0,L=void 0,C=void 0,D=void 0,I=void 0,A=void 0,M=void 0,T=void 0,k=n*Vi(l),R=n*Xn(l),z=i*Vi(u),H=i*Xn(u),V=h>rr;if(V){var Z=t.cornerRadius;Z&&(r=_C(Z),g=r[0],m=r[1],p=r[2],y=r[3]);var B=g0(n-i)/2;if(_=wr(B,p),b=wr(B,y),x=wr(B,g),w=wr(B,m),C=S=Ga(_,b),D=L=Ga(x,w),(S>rr||L>rr)&&(I=n*Vi(u),A=n*Xn(u),M=i*Vi(l),T=i*Xn(l),h<p0)){var $=yC(k,R,M,T,I,A,z,H);if($){var X=k-$[0],j=R-$[1],Q=I-$[0],bt=A-$[1],Et=1/Xn(mC((X*Q+j*bt)/(Va(X*X+j*j)*Va(Q*Q+bt*bt)))/2),ht=Va($[0]*$[0]+$[1]*$[1]);C=wr(S,(n-ht)/(Et+1)),D=wr(L,(i-ht)/(Et-1))}}}if(!V)e.moveTo(f+k,c+R);else if(C>rr){var gt=wr(p,C),St=wr(y,C),at=Qs(M,T,k,R,n,gt,d),mt=Qs(I,A,z,H,n,St,d);e.moveTo(f+at.cx+at.x0,c+at.cy+at.y0),C<S&>===St?e.arc(f+at.cx,c+at.cy,C,ve(at.y0,at.x0),ve(mt.y0,mt.x0),!d):(gt>0&&e.arc(f+at.cx,c+at.cy,gt,ve(at.y0,at.x0),ve(at.y1,at.x1),!d),e.arc(f,c,n,ve(at.cy+at.y1,at.cx+at.x1),ve(mt.cy+mt.y1,mt.cx+mt.x1),!d),St>0&&e.arc(f+mt.cx,c+mt.cy,St,ve(mt.y1,mt.x1),ve(mt.y0,mt.x0),!d))}else e.moveTo(f+k,c+R),e.arc(f,c,n,l,u,!d);if(!(i>rr)||!V)e.lineTo(f+z,c+H);else if(D>rr){var gt=wr(g,D),St=wr(m,D),at=Qs(z,H,I,A,i,-St,d),mt=Qs(k,R,M,T,i,-gt,d);e.lineTo(f+at.cx+at.x0,c+at.cy+at.y0),D<L&>===St?e.arc(f+at.cx,c+at.cy,D,ve(at.y0,at.x0),ve(mt.y0,mt.x0),!d):(St>0&&e.arc(f+at.cx,c+at.cy,St,ve(at.y0,at.x0),ve(at.y1,at.x1),!d),e.arc(f,c,i,ve(at.cy+at.y1,at.cx+at.x1),ve(mt.cy+mt.y1,mt.cx+mt.x1),d),gt>0&&e.arc(f+mt.cx,c+mt.cy,gt,ve(mt.y1,mt.x1),ve(mt.y0,mt.x0),!d))}else e.lineTo(f+z,c+H),e.arc(f,c,i,u,l,d)}e.closePath()}}}var SC=(function(){function e(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0,this.cornerRadius=0}return e})(),on=(function(e){it(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new SC},t.prototype.buildPath=function(r,n){bC(r,n)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t})(It);on.prototype.type="sector";var xC=(function(){function e(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return e})(),Mc=(function(e){it(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new xC},t.prototype.buildPath=function(r,n){var i=n.cx,a=n.cy,o=Math.PI*2;r.moveTo(i+n.r,a),r.arc(i,a,n.r,0,o,!1),r.moveTo(i+n.r0,a),r.arc(i,a,n.r0,0,o,!0)},t})(It);Mc.prototype.type="ring";function wC(e,t,r,n){var i=[],a=[],o=[],s=[],l,u,f,c;if(n){f=[1/0,1/0],c=[-1/0,-1/0];for(var d=0,h=e.length;d<h;d++)xi(f,f,e[d]),wi(c,c,e[d]);xi(f,f,n[0]),wi(c,c,n[1])}for(var d=0,h=e.length;d<h;d++){var v=e[d];if(r)l=e[d?d-1:h-1],u=e[(d+1)%h];else if(d===0||d===h-1){i.push(qx(e[d]));continue}else l=e[d-1],u=e[d+1];jx(a,u,l),Vu(a,a,t);var g=Gu(v,l),m=Gu(v,u),p=g+m;p!==0&&(g/=p,m/=p),Vu(o,a,-g),Vu(s,a,m);var y=Zv([],v,o),_=Zv([],v,s);n&&(wi(y,y,f),xi(y,y,c),wi(_,_,f),xi(_,_,c)),i.push(y),i.push(_)}return r&&i.push(i.shift()),i}function m0(e,t,r){var n=t.smooth,i=t.points;if(i&&i.length>=2){if(n){var a=wC(i,n,r,t.smoothConstraint);e.moveTo(i[0][0],i[0][1]);for(var o=i.length,s=0;s<(r?o:o-1);s++){var l=a[s*2],u=a[s*2+1],f=i[(s+1)%o];e.bezierCurveTo(l[0],l[1],u[0],u[1],f[0],f[1])}}else{e.moveTo(i[0][0],i[0][1]);for(var s=1,c=i.length;s<c;s++)e.lineTo(i[s][0],i[s][1])}r&&e.closePath()}}var TC=(function(){function e(){this.points=null,this.smooth=0,this.smoothConstraint=null}return e})(),Dc=(function(e){it(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new TC},t.prototype.buildPath=function(r,n){m0(r,n,!0)},t})(It);Dc.prototype.type="polygon";var CC=(function(){function e(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return e})(),Ha=(function(e){it(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new CC},t.prototype.buildPath=function(r,n){m0(r,n,!1)},t})(It);Ha.prototype.type="polyline";var AC={},EC=(function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return e})(),sn=(function(e){it(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new EC},t.prototype.buildPath=function(r,n){var i,a,o,s;if(this.subPixelOptimize){var l=Dg(AC,n,this.style);i=l.x1,a=l.y1,o=l.x2,s=l.y2}else i=n.x1,a=n.y1,o=n.x2,s=n.y2;var u=n.percent;u!==0&&(r.moveTo(i,a),u<1&&(o=i*(1-u)+o*u,s=a*(1-u)+s*u),r.lineTo(o,s))},t.prototype.pointAt=function(r){var n=this.shape;return[n.x1*(1-r)+n.x2*r,n.y1*(1-r)+n.y2*r]},t})(It);sn.prototype.type="line";var Le=[],LC=(function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return e})();function y0(e,t,r){var n=e.cpx2,i=e.cpy2;return n!=null||i!=null?[(r?vp:le)(e.x1,e.cpx1,e.cpx2,e.x2,t),(r?vp:le)(e.y1,e.cpy1,e.cpy2,e.y2,t)]:[(r?gp:Ae)(e.x1,e.cpx1,e.x2,t),(r?gp:Ae)(e.y1,e.cpy1,e.y2,t)]}var Ic=(function(e){it(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new LC},t.prototype.buildPath=function(r,n){var i=n.x1,a=n.y1,o=n.x2,s=n.y2,l=n.cpx1,u=n.cpy1,f=n.cpx2,c=n.cpy2,d=n.percent;d!==0&&(r.moveTo(i,a),f==null||c==null?(d<1&&(os(i,l,o,d,Le),l=Le[1],o=Le[2],os(a,u,s,d,Le),u=Le[1],s=Le[2]),r.quadraticCurveTo(l,u,o,s)):(d<1&&(as(i,l,f,o,d,Le),l=Le[1],f=Le[2],o=Le[3],as(a,u,c,s,d,Le),u=Le[1],c=Le[2],s=Le[3]),r.bezierCurveTo(l,u,f,c,o,s)))},t.prototype.pointAt=function(r){return y0(this.shape,r,!1)},t.prototype.tangentAt=function(r){var n=y0(this.shape,r,!0);return Jx(n,n)},t})(It);Ic.prototype.type="bezier-curve";var MC=(function(){function e(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return e})(),Ks=(function(e){it(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new MC},t.prototype.buildPath=function(r,n){var i=n.cx,a=n.cy,o=Math.max(n.r,0),s=n.startAngle,l=n.endAngle,u=n.clockwise,f=Math.cos(s),c=Math.sin(s);r.moveTo(f*o+i,c*o+a),r.arc(i,a,o,s,l,!u)},t})(It);Ks.prototype.type="arc";var _0=(function(e){it(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="compound",r}return t.prototype._updatePathDirty=function(){for(var r=this.shape.paths,n=this.shapeChanged(),i=0;i<r.length;i++)n=n||r[i].shapeChanged();n&&this.dirtyShape()},t.prototype.beforeBrush=function(){this._updatePathDirty();for(var r=this.shape.paths||[],n=this.getGlobalScale(),i=0;i<r.length;i++)r[i].path||r[i].createPathProxy(),r[i].path.setScale(n[0],n[1],r[i].segmentIgnoreThreshold)},t.prototype.buildPath=function(r,n){for(var i=n.paths||[],a=0;a<i.length;a++)i[a].buildPath(r,i[a].shape,!0)},t.prototype.afterBrush=function(){for(var r=this.shape.paths||[],n=0;n<r.length;n++)r[n].pathUpdated()},t.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),It.prototype.getBoundingRect.call(this)},t})(It),b0=(function(){function e(t){this.colorStops=t||[]}return e.prototype.addColorStop=function(t,r){this.colorStops.push({offset:t,color:r})},e})(),S0=(function(e){it(t,e);function t(r,n,i,a,o,s){var l=e.call(this,o)||this;return l.x=r??0,l.y=n??0,l.x2=i??1,l.y2=a??0,l.type="linear",l.global=s||!1,l}return t})(b0),DC=(function(e){it(t,e);function t(r,n,i,a,o){var s=e.call(this,a)||this;return s.x=r??.5,s.y=n??.5,s.r=i??.5,s.type="radial",s.global=o||!1,s}return t})(b0),kc=Math.min,IC=Math.max,Js=Math.abs,qn=[0,0],jn=[0,0],oe=ep(),tl=oe.minTv,el=oe.maxTv,x0=(function(){function e(t,r){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new wt;for(var n=0;n<2;n++)this._axes[n]=new wt;t&&this.fromBoundingRect(t,r)}return e.prototype.fromBoundingRect=function(t,r){var n=this._corners,i=this._axes,a=t.x,o=t.y,s=a+t.width,l=o+t.height;if(n[0].set(a,o),n[1].set(s,o),n[2].set(s,l),n[3].set(a,l),r)for(var u=0;u<4;u++)n[u].transform(r);wt.sub(i[0],n[1],n[0]),wt.sub(i[1],n[3],n[0]),i[0].normalize(),i[1].normalize();for(var u=0;u<2;u++)this._origin[u]=i[u].dot(n[0])},e.prototype.intersect=function(t,r,n){var i=!0,a=!r;return r&&wt.set(r,0,0),oe.reset(n,!a),!this._intersectCheckOneSide(this,t,a,1)&&(i=!1,a)||!this._intersectCheckOneSide(t,this,a,-1)&&(i=!1,a)||!a&&!oe.negativeSize&&wt.copy(r,i?oe.useDir?oe.dirMinTv:tl:el),i},e.prototype._intersectCheckOneSide=function(t,r,n,i){for(var a=!0,o=0;o<2;o++){var s=t._axes[o];if(t._getProjMinMaxOnAxis(o,t._corners,qn),t._getProjMinMaxOnAxis(o,r._corners,jn),oe.negativeSize||qn[1]<jn[0]||qn[0]>jn[1]){if(a=!1,oe.negativeSize||n)return a;var l=Js(jn[0]-qn[1]),u=Js(qn[0]-jn[1]);kc(l,u)>el.len()&&(l<u?wt.scale(el,s,-l*i):wt.scale(el,s,u*i))}else if(!n){var l=Js(jn[0]-qn[1]),u=Js(qn[0]-jn[1]);(oe.useDir||kc(l,u)<tl.len())&&((l<u||!oe.bidirectional)&&(wt.scale(tl,s,l*i),oe.useDir&&oe.calcDirMTV()),(l>=u||!oe.bidirectional)&&(wt.scale(tl,s,-u*i),oe.useDir&&oe.calcDirMTV()))}}return a},e.prototype._getProjMinMaxOnAxis=function(t,r,n){for(var i=this._axes[t],a=this._origin,o=r[0].dot(i)+a[t],s=o,l=o,u=1;u<r.length;u++){var f=r[u].dot(i)+a[t];s=kc(f,s),l=IC(f,l)}n[0]=s+oe.touchThreshold,n[1]=l-oe.touchThreshold,oe.negativeSize=n[1]<n[0]},e})(),kC=[],PC=(function(e){it(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.notClear=!0,r.incremental=!0,r._displayables=[],r._temporaryDisplayables=[],r._cursor=0,r}return t.prototype.traverse=function(r,n){r.call(n,this)},t.prototype.useStyle=function(){this.style={}},t.prototype.getCursor=function(){return this._cursor},t.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},t.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},t.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},t.prototype.addDisplayable=function(r,n){n?this._temporaryDisplayables.push(r):this._displayables.push(r),this.markRedraw()},t.prototype.addDisplayables=function(r,n){n=n||!1;for(var i=0;i<r.length;i++)this.addDisplayable(r[i],n)},t.prototype.getDisplayables=function(){return this._displayables},t.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},t.prototype.eachPendingDisplayable=function(r){for(var n=this._cursor;n<this._displayables.length;n++)r&&r(this._displayables[n]);for(var n=0;n<this._temporaryDisplayables.length;n++)r&&r(this._temporaryDisplayables[n])},t.prototype.update=function(){this.updateTransform();for(var r=this._cursor;r<this._displayables.length;r++){var n=this._displayables[r];n.parent=this,n.update(),n.parent=null}for(var r=0;r<this._temporaryDisplayables.length;r++){var n=this._temporaryDisplayables[r];n.parent=this,n.update(),n.parent=null}},t.prototype.getBoundingRect=function(){if(!this._rect){for(var r=new Ct(1/0,1/0,-1/0,-1/0),n=0;n<this._displayables.length;n++){var i=this._displayables[n],a=i.getBoundingRect().clone();i.needLocalTransform()&&a.applyTransform(i.getLocalTransform(kC)),r.union(a)}this._rect=r}return this._rect},t.prototype.contain=function(r,n){var i=this.transformCoordToLocal(r,n),a=this.getBoundingRect();if(a.contain(i[0],i[1]))for(var o=0;o<this._displayables.length;o++){var s=this._displayables[o];if(s.contain(r,n))return!0}return!1},t})($a),NC=Zt();function $C(e,t,r,n,i){var a;if(t&&t.ecModel){var o=t.ecModel.getUpdatePayload();a=o&&o.animation}var s=t&&t.isAnimationEnabled(),l=e==="update";if(s){var u=void 0,f=void 0,c=void 0;n?(u=ct(n.duration,200),f=ct(n.easing,"cubicOut"),c=0):(u=t.getShallow(l?"animationDurationUpdate":"animationDuration"),f=t.getShallow(l?"animationEasingUpdate":"animationEasing"),c=t.getShallow(l?"animationDelayUpdate":"animationDelay")),a&&(a.duration!=null&&(u=a.duration),a.easing!=null&&(f=a.easing),a.delay!=null&&(c=a.delay)),_t(c)&&(c=c(r,i)),_t(u)&&(u=u(r));var d={duration:u||0,delay:c,easing:f};return d}else return null}function Pc(e,t,r,n,i,a,o){var s=!1,l;_t(i)?(o=a,a=i,i=null):pt(i)&&(a=i.cb,o=i.during,s=i.isFrom,l=i.removeOpt,i=i.dataIndex);var u=e==="leave";u||t.stopAnimation("leave");var f=$C(e,n,i,u?l||{}:null,n&&n.getAnimationDelayParams?n.getAnimationDelayParams(t,i):null);if(f&&f.duration>0){var c=f.duration,d=f.delay,h=f.easing,v={duration:c,delay:d||0,easing:h,done:a,force:!!a||!!o,setToFinal:!u,scope:e,during:o};s?t.animateFrom(r,v):t.animateTo(r,v)}else t.stopAnimation(),!s&&t.attr(r),o&&o(1),a&&a()}function we(e,t,r,n,i,a){Pc("update",e,t,r,n,i,a)}function We(e,t,r,n,i,a){Pc("enter",e,t,r,n,i,a)}function Ua(e){if(!e.__zr)return!0;for(var t=0;t<e.animators.length;t++){var r=e.animators[t];if(r.scope==="leave")return!0}return!1}function rl(e,t,r,n,i,a){Ua(e)||Pc("leave",e,t,r,n,i,a)}function w0(e,t,r,n){e.removeTextContent(),e.removeTextGuideLine(),rl(e,{style:{opacity:0}},t,r,n)}function Wa(e,t,r){function n(){e.parent&&e.parent.remove(e)}e.isGroup?e.traverse(function(i){i.isGroup||w0(i,t,r,n)}):w0(e,t,r,n)}function Nc(e){NC(e).oldStyle=e.style}var $c={},ln=["x","y"],Gi=["width","height"];function OC(e){return It.extend(e)}var RC=dC;function BC(e,t){return RC(e,t)}function nr(e,t){$c[e]=t}function FC(e){if($c.hasOwnProperty(e))return $c[e]}function Oc(e,t,r,n){var i=hC(e,t);return r&&(n==="center"&&(r=C0(r,i.getBoundingRect())),A0(i,r)),i}function T0(e,t,r){var n=new Sr({style:{image:e,x:t.x,y:t.y,width:t.width,height:t.height},onload:function(i){if(r==="center"){var a={width:i.width,height:i.height};n.setStyle(C0(t,a))}}});return n}function C0(e,t){var r=t.width/t.height,n=e.height*r,i;n<=e.width?i=e.height:(n=e.width,i=n/r);var a=e.x+e.width/2,o=e.y+e.height/2;return{x:a-n/2,y:o-i/2,width:n,height:i}}var zC=vC;function A0(e,t){if(e.applyTransform){var r=e.getBoundingRect(),n=r.calculateTransform(t);e.applyTransform(n)}}function Za(e,t){return Dg(e,e,{lineWidth:t}),e}function VC(e,t){return Ig(e,e,t),e}var GC=Zn;function HC(e,t){for(var r=Ku([]);e&&e!==t;)pa(r,e.getLocalTransform(),r),e=e.parent;return r}function Rc(e,t,r){return t&&!Ce(t)&&(t=$f.getLocalTransform(t)),r&&(t=ga([],t)),Oe([],e,t)}function UC(e,t,r){var n=t[4]===0||t[5]===0||t[0]===0?1:pr(2*t[4]/t[0]),i=t[4]===0||t[5]===0||t[2]===0?1:pr(2*t[4]/t[2]),a=[e==="left"?-n:e==="right"?n:0,e==="top"?-i:e==="bottom"?i:0];return a=Rc(a,t,r),pr(a[0])>pr(a[1])?a[0]>0?"right":"left":a[1]>0?"bottom":"top"}function E0(e){return!e.isGroup}function WC(e){return e.shape!=null}function L0(e,t,r){if(!e||!t)return;function n(o){var s={};return o.traverse(function(l){E0(l)&&l.anid&&(s[l.anid]=l)}),s}function i(o){var s={x:o.x,y:o.y,rotation:o.rotation};return WC(o)&&(s.shape=At(o.shape)),s}var a=n(e);t.traverse(function(o){if(E0(o)&&o.anid){var s=a[o.anid];if(s){var l=i(o);o.attr(i(s)),we(o,l,r,Lt(o).dataIndex)}}})}function ZC(e,t){return ft(e,function(r){var n=r[0];n=ke(n,t.x),n=Da(n,t.x+t.width);var i=r[1];return i=ke(i,t.y),i=Da(i,t.y+t.height),[n,i]})}function YC(e,t){var r=ke(e.x,t.x),n=Da(e.x+e.width,t.x+t.width),i=ke(e.y,t.y),a=Da(e.y+e.height,t.y+t.height);if(n>=r&&a>=i)return{x:r,y:i,width:n-r,height:a-i}}function Bc(e,t,r){var n=et({rectHover:!0},t),i=n.style={strokeNoScale:!0};if(r=r||{x:-1,y:-1,width:2,height:2},e)return e.indexOf("image://")===0?(i.image=e.slice(8),Bt(i,r),new Sr(n)):Oc(e.replace("path://",""),n,r,"center")}function XC(e,t,r,n,i){for(var a=0,o=i[i.length-1];a<i.length;a++){var s=i[a];if(M0(e,t,r,n,s[0],s[1],o[0],o[1]))return!0;o=s}}function M0(e,t,r,n,i,a,o,s){var l=r-e,u=n-t,f=o-i,c=s-a,d=Fc(f,c,l,u);if(qC(d))return!1;var h=e-i,v=t-a,g=Fc(h,v,l,u)/d;if(g<0||g>1)return!1;var m=Fc(h,v,f,c)/d;return!(m<0||m>1)}function Fc(e,t,r,n){return e*n-r*t}function qC(e){return e<=1e-6&&e>=-1e-6}function nl(e,t,r,n,i){return t==null||($t(t)?Ht[0]=Ht[1]=Ht[2]=Ht[3]=t:(process.env.NODE_ENV!=="production"&&vt(t.length===4),Ht[0]=t[0],Ht[1]=t[1],Ht[2]=t[2],Ht[3]=t[3]),n&&(Ht[0]=ke(0,Ht[0]),Ht[1]=ke(0,Ht[1]),Ht[2]=ke(0,Ht[2]),Ht[3]=ke(0,Ht[3])),r&&(Ht[0]=-Ht[0],Ht[1]=-Ht[1],Ht[2]=-Ht[2],Ht[3]=-Ht[3]),D0(e,Ht,"x","width",3,1,i&&i[0]||0),D0(e,Ht,"y","height",0,2,i&&i[1]||0)),e}var Ht=[0,0,0,0];function D0(e,t,r,n,i,a,o){var s=t[a]+t[i],l=e[n];e[n]+=s,o=ke(0,Da(o,l)),e[n]<o?(e[n]=o,e[r]+=t[i]>=0?-t[i]:t[a]>=0?l+t[a]:pr(s)>1e-8?(l-o)*t[i]/s:0):e[r]-=t[i]}function il(e){var t=e.itemTooltipOption,r=e.componentModel,n=e.itemName,i=ut(t)?{formatter:t}:t,a=r.mainType,o=r.componentIndex,s={componentType:a,name:n,$vars:["name"]};s[a+"Index"]=o;var l=e.formatterParamsExtra;l&&O(Mt(l),function(f){Je(s,f)||(s[f]=l[f],s.$vars.push(f))});var u=Lt(e.el);u.componentMainType=a,u.componentIndex=o,u.tooltipConfig={name:n,option:Bt({content:n,encodeHTMLContent:!0,formatterParams:s},i)}}function zc(e,t){var r;e.isGroup&&(r=t(e)),r||e.traverse(t)}function al(e,t){if(e)if(st(e))for(var r=0;r<e.length;r++)zc(e[r],t);else zc(e,t)}function Vc(e){return!e||pr(e[1])<ol&&pr(e[2])<ol||pr(e[0])<ol&&pr(e[3])<ol}var ol=1e-5;function Ya(e,t){return e?Ct.copy(e,t):t.clone()}function Gc(e,t){return t?Kv(e||Pr(),t):void 0}function I0(e){return{z:e.get("z")||0,zlevel:e.get("zlevel")||0}}function jC(e){var t=-1/0,r=1/0;zc(e,function(a){n(a),n(a.getTextContent()),n(a.getTextGuideLine())});function n(a){if(!(!a||a.isGroup)){var o=a.currentStates;if(o.length)for(var s=0;s<o.length;s++)i(a.states[o[s]]);i(a)}}function i(a){if(a){var o=a.z2;o>t&&(t=o),o<r&&(r=o)}}return r>t&&(r=t=0),{min:r,max:t}}function k0(e,t,r){P0(e,t,r,-1/0)}function P0(e,t,r,n){if(e.ignoreModelZ)return n;var i=e.getTextContent(),a=e.getTextGuideLine(),o=e.isGroup;if(o)for(var s=e.childrenRef(),l=0;l<s.length;l++)n=ke(P0(s[l],t,r,n),n);else e.z=t,e.zlevel=r,n=ke(e.z2||0,n);if(i&&(i.z=t,i.zlevel=r,isFinite(n)&&(i.z2=n+2)),a){var u=e.textGuideLineConfig;a.z=t,a.zlevel=r,isFinite(n)&&(a.z2=n+(u&&u.showAbove?1:-1))}return n}nr("circle",js),nr("ellipse",Ec),nr("sector",on),nr("ring",Mc),nr("polygon",Dc),nr("polyline",Ha),nr("rect",qt),nr("line",sn),nr("bezierCurve",Ic),nr("arc",Ks);const QC=Object.freeze(Object.defineProperty({__proto__:null,Arc:Ks,BezierCurve:Ic,BoundingRect:Ct,Circle:js,CompoundPath:_0,Ellipse:Ec,Group:ne,Image:Sr,IncrementalDisplayable:PC,Line:sn,LinearGradient:S0,OrientedBoundingRect:x0,Path:It,Point:wt,Polygon:Dc,Polyline:Ha,RadialGradient:DC,Rect:qt,Ring:Mc,Sector:on,Text:fe,WH:Gi,XY:ln,applyTransform:Rc,calcZ2Range:jC,clipPointsByRect:ZC,clipRectByRect:YC,createIcon:Bc,ensureCopyRect:Ya,ensureCopyTransform:Gc,expandOrShrinkRect:nl,extendPath:BC,extendShape:OC,getShapeClass:FC,getTransform:HC,groupTransition:L0,initProps:We,isBoundingRectAxisAligned:Vc,isElementRemoved:Ua,lineLineIntersect:M0,linePolygonIntersect:XC,makeImage:T0,makePath:Oc,mergePath:zC,registerShape:nr,removeElement:rl,removeElementWithFadeOut:Wa,resizePath:A0,retrieveZInfo:I0,setTooltipConfig:il,subPixelOptimize:GC,subPixelOptimizeLine:Za,subPixelOptimizeRect:VC,transformDirection:UC,traverseElements:al,traverseUpdateZ:k0,updateProps:we},Symbol.toStringTag,{value:"Module"}));var sl={};function KC(e,t){for(var r=0;r<Ue.length;r++){var n=Ue[r],i=t[n],a=e.ensureState(n);a.style=a.style||{},a.style.text=i}var o=e.currentStates.slice();e.clearStates(!0),e.setStyle({text:t.normal}),e.useStates(o,!0)}function N0(e,t,r){var n=e.labelFetcher,i=e.labelDataIndex,a=e.labelDimIndex,o=t.normal,s;n&&(s=n.getFormattedLabel(i,"normal",null,a,o&&o.get("formatter"),r!=null?{interpolatedValue:r}:null)),s==null&&(s=_t(e.defaultText)?e.defaultText(i,e,r):e.defaultText);for(var l={normal:s},u=0;u<Ue.length;u++){var f=Ue[u],c=t[f];l[f]=ct(n?n.getFormattedLabel(i,f,null,a,c&&c.get("formatter")):null,s)}return l}function Xa(e,t,r,n){r=r||sl;for(var i=e instanceof fe,a=!1,o=0;o<zs.length;o++){var s=t[zs[o]];if(s&&s.getShallow("show")){a=!0;break}}var l=i?e:e.getTextContent();if(a){i||(l||(l=new fe,e.setTextContent(l)),e.stateProxy&&(l.stateProxy=e.stateProxy));var u=N0(r,t),f=t.normal,c=!!f.getShallow("show"),d=un(f,n&&n.normal,r,!1,!i);d.text=u.normal,i||e.setTextConfig($0(f,r,!1));for(var o=0;o<Ue.length;o++){var h=Ue[o],s=t[h];if(s){var v=l.ensureState(h),g=!!ct(s.getShallow("show"),c);if(g!==c&&(v.ignore=!g),v.style=un(s,n&&n[h],r,!0,!i),v.style.text=u[h],!i){var m=e.ensureState(h);m.textConfig=$0(s,r,!0)}}}l.silent=!!f.getShallow("silent"),l.style.x!=null&&(d.x=l.style.x),l.style.y!=null&&(d.y=l.style.y),l.ignore=!c,l.useStyle(d),l.dirty(),r.enableTextSetter&&(ll(l).setLabelText=function(p){var y=N0(r,t,p);KC(l,y)})}else l&&(l.ignore=!0);e.dirty()}function qa(e,t){t=t||"label";for(var r={normal:e.getModel(t)},n=0;n<Ue.length;n++){var i=Ue[n];r[i]=e.getModel([i,t])}return r}function un(e,t,r,n,i){var a={};return JC(a,e,r,n,i),t&&et(a,t),a}function $0(e,t,r){t=t||{};var n={},i,a=e.getShallow("rotate"),o=ct(e.getShallow("distance"),r?null:5),s=e.getShallow("offset");return i=e.getShallow("position")||(r?null:"inside"),i==="outside"&&(i=t.defaultOutsidePosition||"top"),i!=null&&(n.position=i),s!=null&&(n.offset=s),a!=null&&(a*=Math.PI/180,n.rotation=a),o!=null&&(n.distance=o),n.outsideFill=e.get("color")==="inherit"?t.inheritColor||null:"auto",t.autoOverflowArea!=null&&(n.autoOverflowArea=t.autoOverflowArea),t.layoutRect!=null&&(n.layoutRect=t.layoutRect),n}function JC(e,t,r,n,i){r=r||sl;var a=t.ecModel,o=a&&a.option.textStyle,s=tA(t),l;if(s){l={};var u="richInheritPlainLabel",f=ct(t.get(u),a?a.get(u):void 0);for(var c in s)if(s.hasOwnProperty(c)){var d=t.getModel(["rich",c]);F0(l[c]={},d,o,t,f,r,n,i,!1,!0)}}l&&(e.rich=l);var h=t.get("overflow");h&&(e.overflow=h);var v=t.get("lineOverflow");v&&(e.lineOverflow=v);var g=e,m=t.get("minMargin");if(m!=null)m=$t(m)?m/2:0,g.margin=[m,m,m,m],g.__marginType=Hi.minMargin;else{var p=t.get("textMargin");p!=null&&(g.margin=Fu(p),g.__marginType=Hi.textMargin)}F0(e,t,o,null,null,r,n,i,!0,!1)}function tA(e){for(var t;e&&e!==e.ecModel;){var r=(e.option||sl).rich;if(r){t=t||{};for(var n=Mt(r),i=0;i<n.length;i++){var a=n[i];t[a]=1}}e=e.parentModel}return t}var O0=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],R0=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],B0=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function F0(e,t,r,n,i,a,o,s,l,u){r=!o&&r||sl;var f=a&&a.inheritColor,c=t.getShallow("color"),d=t.getShallow("textBorderColor"),h=ct(t.getShallow("opacity"),r.opacity);(c==="inherit"||c==="auto")&&(process.env.NODE_ENV!=="production"&&c==="auto"&&ie("color: 'auto'","color: 'inherit'"),f?c=f:c=null),(d==="inherit"||d==="auto")&&(process.env.NODE_ENV!=="production"&&d==="auto"&&ie("color: 'auto'","color: 'inherit'"),f?d=f:d=null),s||(c=c||r.color,d=d||r.textBorderColor),c!=null&&(e.fill=c),d!=null&&(e.stroke=d);var v=ct(t.getShallow("textBorderWidth"),r.textBorderWidth);v!=null&&(e.lineWidth=v);var g=ct(t.getShallow("textBorderType"),r.textBorderType);g!=null&&(e.lineDash=g);var m=ct(t.getShallow("textBorderDashOffset"),r.textBorderDashOffset);m!=null&&(e.lineDashOffset=m),!o&&h==null&&!u&&(h=a&&a.defaultOpacity),h!=null&&(e.opacity=h),!o&&!s&&e.fill==null&&a.inheritColor&&(e.fill=a.inheritColor);for(var p=0;p<O0.length;p++){var y=O0[p],_=i!==!1&&n?Ir(t.getShallow(y),n.getShallow(y),r[y]):ct(t.getShallow(y),r[y]);_!=null&&(e[y]=_)}for(var p=0;p<R0.length;p++){var y=R0[p],_=t.getShallow(y);_!=null&&(e[y]=_)}if(e.verticalAlign==null){var b=t.getShallow("baseline");b!=null&&(e.verticalAlign=b)}if(!l||!a.disableBox){for(var p=0;p<B0.length;p++){var y=B0[p],_=t.getShallow(y);_!=null&&(e[y]=_)}var x=t.getShallow("borderType");x!=null&&(e.borderDash=x),(e.backgroundColor==="auto"||e.backgroundColor==="inherit")&&f&&(process.env.NODE_ENV!=="production"&&e.backgroundColor==="auto"&&ie("backgroundColor: 'auto'","backgroundColor: 'inherit'"),e.backgroundColor=f),(e.borderColor==="auto"||e.borderColor==="inherit")&&f&&(process.env.NODE_ENV!=="production"&&e.borderColor==="auto"&&ie("borderColor: 'auto'","borderColor: 'inherit'"),e.borderColor=f)}}function eA(e,t){var r=t&&t.getModel("textStyle");return fr([e.fontStyle||r&&r.getShallow("fontStyle")||"",e.fontWeight||r&&r.getShallow("fontWeight")||"",(e.fontSize||r&&r.getShallow("fontSize")||12)+"px",e.fontFamily||r&&r.getShallow("fontFamily")||"sans-serif"].join(" "))}var ll=Zt();function rA(e,t,r,n){if(e){var i=ll(e);i.prevValue=i.value,i.value=r;var a=t.normal;i.valueAnimation=a.get("valueAnimation"),i.valueAnimation&&(i.precision=a.get("precision"),i.defaultInterpolatedText=n,i.statesModels=t)}}var Hi={minMargin:1,textMargin:2},nA=["textStyle","color"],Hc=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],Uc=new fe,iA=(function(){function e(){}return e.prototype.getTextColor=function(t){var r=this.ecModel;return this.getShallow("color")||(!t&&r?r.get(nA):null)},e.prototype.getFont=function(){return eA({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},e.prototype.getTextRect=function(t){for(var r={text:t,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},n=0;n<Hc.length;n++)r[Hc[n]]=this.getShallow(Hc[n]);return Uc.useStyle(r),Uc.update(),Uc.getBoundingRect()},e})(),z0=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],aA=Na(z0),oA=(function(){function e(){}return e.prototype.getLineStyle=function(t){return aA(this,t)},e})(),V0=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],sA=Na(V0),lA=(function(){function e(){}return e.prototype.getItemStyle=function(t,r){return sA(this,t,r)},e})(),Yt=(function(){function e(t,r,n){this.parentModel=r,this.ecModel=n,this.option=t}return e.prototype.init=function(t,r,n){},e.prototype.mergeOption=function(t,r){Gt(this.option,t,!0)},e.prototype.get=function(t,r){return t==null?this.option:this._doGet(this.parsePath(t),!r&&this.parentModel)},e.prototype.getShallow=function(t,r){var n=this.option,i=n==null?n:n[t];if(i==null&&!r){var a=this.parentModel;a&&(i=a.getShallow(t))}return i},e.prototype.getModel=function(t,r){var n=t!=null,i=n?this.parsePath(t):null,a=n?this._doGet(i):this.option;return r=r||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(i)),new e(a,r,this.ecModel)},e.prototype.isEmpty=function(){return this.option==null},e.prototype.restoreData=function(){},e.prototype.clone=function(){var t=this.constructor;return new t(At(this.option))},e.prototype.parsePath=function(t){return typeof t=="string"?t.split("."):t},e.prototype.resolveParentPath=function(t){return t},e.prototype.isAnimationEnabled=function(){if(!xt.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},e.prototype._doGet=function(t,r){var n=this.option;if(!t)return n;for(var i=0;i<t.length&&!(t[i]&&(n=n&&typeof n=="object"?n[t[i]]:null,n==null));i++);return n==null&&r&&(n=r._doGet(this.resolveParentPath(t),r.parentModel)),n},e})();qf(Yt),X2(Yt),ur(Yt,oA),ur(Yt,lA),ur(Yt,J2),ur(Yt,iA);var uA=Math.round(Math.random()*10);function ul(e){return[e||"",uA++].join("_")}function fA(e){var t={};e.registerSubTypeDefaulter=function(r,n){var i=mr(r);t[i.main]=n},e.determineSubType=function(r,n){var i=n.type;if(!i){var a=mr(r).main;e.hasSubTypes(r)&&t[a]&&(i=t[a](n))}return i}}function cA(e,t){e.topologicalTravel=function(a,o,s,l){if(!a.length)return;var u=r(o),f=u.graph,c=u.noEntryList,d={};for(O(a,function(y){d[y]=!0});c.length;){var h=c.pop(),v=f[h],g=!!d[h];g&&(s.call(l,h,v.originalDeps.slice()),delete d[h]),O(v.successor,g?p:m)}O(d,function(){var y="";throw process.env.NODE_ENV!=="production"&&(y=Ms("Circular dependency may exists: ",d,a,o)),new Error(y)});function m(y){f[y].entryCount--,f[y].entryCount===0&&c.push(y)}function p(y){d[y]=!0,m(y)}};function r(a){var o={},s=[];return O(a,function(l){var u=n(o,l),f=u.originalDeps=t(l),c=i(f,a);u.entryCount=c.length,u.entryCount===0&&s.push(l),O(c,function(d){Nt(u.predecessor,d)<0&&u.predecessor.push(d);var h=n(o,d);Nt(h.successor,d)<0&&h.successor.push(l)})}),{graph:o,noEntryList:s}}function n(a,o){return a[o]||(a[o]={predecessor:[],successor:[]}),a[o]}function i(a,o){var s=[];return O(a,function(l){Nt(o,l)>=0&&s.push(l)}),s}}function G0(e,t){return Gt(Gt({},e,!0),t,!0)}const hA={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:". "}}}},dA={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 fl="ZH",Wc="EN",Ui=Wc,cl={},Zc={},H0=xt.domSupported?(function(){var e=(document.documentElement.lang||navigator.language||navigator.browserLanguage||Ui).toUpperCase();return e.indexOf(fl)>-1?fl:Ui})():Ui;function U0(e,t){e=e.toUpperCase(),Zc[e]=new Yt(t),cl[e]=t}function vA(e){if(ut(e)){var t=cl[e.toUpperCase()]||{};return e===fl||e===Wc?At(t):Gt(At(t),At(cl[Ui]),!1)}else return Gt(At(e),At(cl[Ui]),!1)}function pA(e){return Zc[e]}function gA(){return Zc[Ui]}U0(Wc,hA),U0(fl,dA);var mA=null;function hl(){return mA}var Yc=1e3,Xc=Yc*60,ja=Xc*60,Ze=ja*24,W0=Ze*365,yA={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})/},dl={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}"},_A="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}",vl="{yyyy}-{MM}-{dd}",Z0={year:"{yyyy}",month:"{yyyy}-{MM}",day:vl,hour:vl+" "+dl.hour,minute:vl+" "+dl.minute,second:vl+" "+dl.second,millisecond:_A},Qn=["year","month","day","hour","minute","second","millisecond"],bA=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function SA(e){return!ut(e)&&!_t(e)?xA(e):e}function xA(e){e=e||{};var t={},r=!0;return O(Qn,function(n){r&&(r=e[n]==null)}),O(Qn,function(n,i){var a=e[n];t[n]={};for(var o=null,s=i;s>=0;s--){var l=Qn[s],u=pt(a)&&!st(a)?a[l]:a,f=void 0;st(u)?(f=u.slice(),o=f[0]||""):ut(u)?(o=u,f=[o]):(o==null?o=dl[n]:yA[l].test(o)||(o=t[l][l][0]+" "+o),f=[o],r&&(f[1]="{primary|"+o+"}")),t[n][l]=f}}),t}function fn(e,t){return e+="","0000".substr(0,t-e.length)+e}function Qa(e){switch(e){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return e}}function wA(e){return e===Qa(e)}function TA(e){switch(e){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function pl(e,t,r,n){var i=Ni(e),a=i[Y0(r)](),o=i[jc(r)]()+1,s=Math.floor((o-1)/3)+1,l=i[Qc(r)](),u=i["get"+(r?"UTC":"")+"Day"](),f=i[Kc(r)](),c=(f-1)%12+1,d=i[Jc(r)](),h=i[th(r)](),v=i[eh(r)](),g=f>=12?"pm":"am",m=g.toUpperCase(),p=n instanceof Yt?n:pA(n||H0)||gA(),y=p.getModel("time"),_=y.get("month"),b=y.get("monthAbbr"),x=y.get("dayOfWeek"),w=y.get("dayOfWeekAbbr");return(t||"").replace(/{a}/g,g+"").replace(/{A}/g,m+"").replace(/{yyyy}/g,a+"").replace(/{yy}/g,fn(a%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,_[o-1]).replace(/{MMM}/g,b[o-1]).replace(/{MM}/g,fn(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,fn(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,x[u]).replace(/{ee}/g,w[u]).replace(/{e}/g,u+"").replace(/{HH}/g,fn(f,2)).replace(/{H}/g,f+"").replace(/{hh}/g,fn(c+"",2)).replace(/{h}/g,c+"").replace(/{mm}/g,fn(d,2)).replace(/{m}/g,d+"").replace(/{ss}/g,fn(h,2)).replace(/{s}/g,h+"").replace(/{SSS}/g,fn(v,3)).replace(/{S}/g,v+"")}function CA(e,t,r,n,i){var a=null;if(ut(r))a=r;else if(_t(r)){var o={time:e.time,level:e.time.level},s=hl();s&&s.makeAxisLabelFormatterParamBreak(o,e.break),a=r(e.value,t,o)}else{var l=e.time;if(l){var u=r[l.lowerTimeUnit][l.upperTimeUnit];a=u[Math.min(l.level,u.length-1)]||""}else{var f=gl(e.value,i);a=r[f][f][0]}}return pl(new Date(e.value),a,i,n)}function gl(e,t){var r=Ni(e),n=r[jc(t)]()+1,i=r[Qc(t)](),a=r[Kc(t)](),o=r[Jc(t)](),s=r[th(t)](),l=r[eh(t)](),u=l===0,f=u&&s===0,c=f&&o===0,d=c&&a===0,h=d&&i===1,v=h&&n===1;return v?"year":h?"month":d?"day":c?"hour":f?"minute":u?"second":"millisecond"}function qc(e,t,r){switch(t){case"year":e[X0(r)](0);case"month":e[q0(r)](1);case"day":e[j0(r)](0);case"hour":e[Q0(r)](0);case"minute":e[K0(r)](0);case"second":e[J0(r)](0)}return e}function Y0(e){return e?"getUTCFullYear":"getFullYear"}function jc(e){return e?"getUTCMonth":"getMonth"}function Qc(e){return e?"getUTCDate":"getDate"}function Kc(e){return e?"getUTCHours":"getHours"}function Jc(e){return e?"getUTCMinutes":"getMinutes"}function th(e){return e?"getUTCSeconds":"getSeconds"}function eh(e){return e?"getUTCMilliseconds":"getMilliseconds"}function AA(e){return e?"setUTCFullYear":"setFullYear"}function X0(e){return e?"setUTCMonth":"setMonth"}function q0(e){return e?"setUTCDate":"setDate"}function j0(e){return e?"setUTCHours":"setHours"}function Q0(e){return e?"setUTCMinutes":"setMinutes"}function K0(e){return e?"setUTCSeconds":"setSeconds"}function J0(e){return e?"setUTCMilliseconds":"setMilliseconds"}function tm(e){if(!Jp(e))return ut(e)?e:"-";var t=(e+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function em(e,t){return e=(e||"").toLowerCase().replace(/-(.)/g,function(r,n){return n.toUpperCase()}),t&&e&&(e=e.charAt(0).toUpperCase()+e.slice(1)),e}var ml=Fu;function rh(e,t,r){var n="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function i(f){return f&&fr(f)?f:"-"}function a(f){return!!(f!=null&&!isNaN(f)&&isFinite(f))}var o=t==="time",s=e instanceof Date;if(o||s){var l=o?Ni(e):e;if(isNaN(+l)){if(s)return"-"}else return pl(l,n,r)}if(t==="ordinal")return jo(e)?i(e):$t(e)&&a(e)?e+"":"-";var u=Es(e);return a(u)?tm(u):jo(e)?i(e):typeof e=="boolean"?e+"":"-"}var rm=["a","b","c","d","e","f","g"],nh=function(e,t){return"{"+e+(t??"")+"}"};function nm(e,t,r){st(t)||(t=[t]);var n=t.length;if(!n)return"";for(var i=t[0].$vars||[],a=0;a<i.length;a++){var o=rm[a];e=e.replace(nh(o),nh(o,0))}for(var s=0;s<n;s++)for(var l=0;l<i.length;l++){var u=t[s][i[l]];e=e.replace(nh(rm[l],s),r?be(u):u)}return e}function EA(e,t){var r=ut(e)?{color:e,extraCssText:t}:e||{},n=r.color,i=r.type;t=r.extraCssText;var a=r.renderMode||"html";if(!n)return"";if(a==="html")return i==="subItem"?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+be(n)+";"+(t||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+be(n)+";"+(t||"")+'"></span>';var o=r.markerId||"markerX";return{renderMode:a,content:"{"+o+"|} ",style:i==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:n}:{width:10,height:10,borderRadius:5,backgroundColor:n}}}function Kn(e,t){return t=t||"transparent",ut(e)?e:pt(e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}function im(e,t){if(t==="_blank"||t==="blank"){var r=window.open();r.opener=null,r.location.href=e}else window.open(e,t)}var yl={},ih={},ah=(function(){function e(){this._normalMasterList=[],this._nonSeriesBoxMasterList=[]}return e.prototype.create=function(t,r){this._nonSeriesBoxMasterList=n(yl,!0),this._normalMasterList=n(ih,!1);function n(i,a){var o=[];return O(i,function(s,l){var u=s.create(t,r);o=o.concat(u||[]),process.env.NODE_ENV!=="production"&&a&&O(u,function(f){return vt(!f.update)})}),o}},e.prototype.update=function(t,r){O(this._normalMasterList,function(n){n.update&&n.update(t,r)})},e.prototype.getCoordinateSystems=function(){return this._normalMasterList.concat(this._nonSeriesBoxMasterList)},e.register=function(t,r){if(t==="matrix"||t==="calendar"){yl[t]=r;return}ih[t]=r},e.get=function(t){return ih[t]||yl[t]},e})();function LA(e){return!!yl[e]}var oh={coord:1,coord2:2};function MA(e){process.env.NODE_ENV!=="production"&&vt(!sh.get(e.fullType)),sh.set(e.fullType,{getCoord2:void 0}).getCoord2=e.getCoord2}var sh=Tt();function DA(e){var t=e.getShallow("coord",!0),r=oh.coord;if(t==null){var n=sh.get(e.type);n&&n.getCoord2&&(r=oh.coord2,t=n.getCoord2(e))}return{coord:t,from:r}}var Fr={none:0,dataCoordSys:1,boxCoordSys:2};function IA(e,t){var r=e.getShallow("coordinateSystem"),n=e.getShallow("coordinateSystemUsage",!0),i=n!=null,a=Fr.none;if(r){var o=e.mainType==="series";n==null&&(n=o?"data":"box"),n==="data"?(a=Fr.dataCoordSys,o||(process.env.NODE_ENV!=="production"&&i&&t&&zt('coordinateSystemUsage "data" is not supported in non-series components.'),a=Fr.none)):n==="box"&&(a=Fr.boxCoordSys,!o&&!LA(r)&&(process.env.NODE_ENV!=="production"&&i&&t&&zt('coordinateSystem "'+r+'" cannot be used'+(' as coordinateSystemUsage "box" for "'+e.type+'" yet.')),a=Fr.none))}return{coordSysType:r,kind:a}}function kA(e){var t=e.targetModel,r=e.coordSysType,n=e.coordSysProvider,i=e.isDefaultDataCoordSys,a=e.allowNotFound;process.env.NODE_ENV!=="production"&&vt(!!r);var o=IA(t,!0),s=o.kind,l=o.coordSysType;if(i&&s!==Fr.dataCoordSys&&(s=Fr.dataCoordSys,l=r),s===Fr.none||l!==r)return!1;var u=n(r,t);return u?(s===Fr.dataCoordSys?(process.env.NODE_ENV!=="production"&&vt(t.mainType==="series"),t.coordinateSystem=u):t.boxCoordinateSystem=u,!0):(process.env.NODE_ENV!=="production"&&(a||zt(r+" cannot be found for"+(" "+t.type+" (index: "+t.componentIndex+")."))),!1)}var _l=O,PA=["left","right","top","bottom","width","height"],bl=[["width","left","right"],["height","top","bottom"]];function lh(e,t,r,n,i){var a=0,o=0;n==null&&(n=1/0),i==null&&(i=1/0);var s=0;t.eachChild(function(l,u){var f=l.getBoundingRect(),c=t.childAt(u+1),d=c&&c.getBoundingRect(),h,v;if(e==="horizontal"){var g=f.width+(d?-d.x+f.x:0);h=a+g,h>n||l.newline?(a=0,h=g,o+=s+r,s=f.height):s=Math.max(s,f.height)}else{var m=f.height+(d?-d.y+f.y:0);v=o+m,v>i||l.newline?(a+=s+r,o=0,v=m,s=f.width):s=Math.max(s,f.width)}l.newline||(l.x=a,l.y=o,l.markRedraw(),e==="horizontal"?a=h+r:o=v+r)})}var Ka=lh;Kt(lh,"vertical"),Kt(lh,"horizontal");function NA(e,t){return{left:e.getShallow("left",t),top:e.getShallow("top",t),right:e.getShallow("right",t),bottom:e.getShallow("bottom",t),width:e.getShallow("width",t),height:e.getShallow("height",t)}}function $A(e,t){var r=Sl(e,t,{enableLayoutOnlyByCenter:!0}),n=e.getBoxLayoutParams(),i,a;if(r.type===Ja.point)a=r.refPoint,i=cn(n,{width:t.getWidth(),height:t.getHeight()});else{var o=e.get("center"),s=st(o)?o:[o,o];i=cn(n,r.refContainer),a=r.boxCoordFrom===oh.coord2?r.refPoint:[Wt(s[0],i.width)+i.x,Wt(s[1],i.height)+i.y]}return{viewRect:i,center:a}}function OA(e,t){var r=$A(e,t),n=r.viewRect,i=r.center,a=e.get("radius");st(a)||(a=[0,a]);var o=Wt(n.width,t.getWidth()),s=Wt(n.height,t.getHeight()),l=Math.min(o,s),u=Wt(a[0],l/2),f=Wt(a[1],l/2);return{cx:i[0],cy:i[1],r0:u,r:f,viewRect:n}}function cn(e,t,r){r=ml(r||0);var n=t.width,i=t.height,a=Wt(e.left,n),o=Wt(e.top,i),s=Wt(e.right,n),l=Wt(e.bottom,i),u=Wt(e.width,n),f=Wt(e.height,i),c=r[2]+r[0],d=r[1]+r[3],h=e.aspect;switch(isNaN(u)&&(u=n-s-d-a),isNaN(f)&&(f=i-l-c-o),h!=null&&(isNaN(u)&&isNaN(f)&&(h>n/i?u=n*.8:f=i*.8),isNaN(u)&&(u=h*f),isNaN(f)&&(f=u/h)),isNaN(a)&&(a=n-s-u-d),isNaN(o)&&(o=i-l-f-c),e.left||e.right){case"center":a=n/2-u/2-r[3];break;case"right":a=n-u-d;break}switch(e.top||e.bottom){case"middle":case"center":o=i/2-f/2-r[0];break;case"bottom":o=i-f-c;break}a=a||0,o=o||0,isNaN(u)&&(u=n-d-a-(s||0)),isNaN(f)&&(f=i-c-o-(l||0));var v=new Ct((t.x||0)+a+r[3],(t.y||0)+o+r[0],u,f);return v.margin=r,v}var Ja={rect:1,point:2};function Sl(e,t,r){var n,i,a,o=e.boxCoordinateSystem,s;if(o){var l=DA(e),u=l.coord,f=l.from;if(o.dataToLayout){a=Ja.rect,s=f;var c=o.dataToLayout(u);n=c.contentRect||c.rect}else r&&r.enableLayoutOnlyByCenter&&o.dataToPoint?(a=Ja.point,s=f,i=o.dataToPoint(u)):process.env.NODE_ENV!=="production"&&zt(e.type+"["+e.componentIndex+"]"+(" layout based on "+o.type+" is not supported."))}return a==null&&(a=Ja.rect),a===Ja.rect&&(n||(n={x:0,y:0,width:t.getWidth(),height:t.getHeight()}),i=[n.x+n.width/2,n.y+n.height/2]),{type:a,refContainer:n,refPoint:i,boxCoordFrom:s}}function to(e){var t=e.layoutMode||e.constructor.layoutMode;return pt(t)?t:t?{type:t}:null}function hn(e,t,r){var n=r&&r.ignoreSize;!st(n)&&(n=[n,n]);var i=o(bl[0],0),a=o(bl[1],1);l(bl[0],e,i),l(bl[1],e,a);function o(u,f){var c={},d=0,h={},v=0,g=2;if(_l(u,function(y){h[y]=e[y]}),_l(u,function(y){Je(t,y)&&(c[y]=h[y]=t[y]),s(c,y)&&d++,s(h,y)&&v++}),n[f])return s(t,u[1])?h[u[2]]=null:s(t,u[2])&&(h[u[1]]=null),h;if(v===g||!d)return h;if(d>=g)return c;for(var m=0;m<u.length;m++){var p=u[m];if(!Je(c,p)&&Je(e,p)){c[p]=e[p];break}}return c}function s(u,f){return u[f]!=null&&u[f]!=="auto"}function l(u,f,c){_l(u,function(d){f[d]=c[d]})}}function eo(e){return RA({},e)}function RA(e,t){return t&&e&&_l(PA,function(r){Je(t,r)&&(e[r]=t[r])}),e}var BA=Zt(),kt=(function(e){it(t,e);function t(r,n,i){var a=e.call(this,r,n,i)||this;return a.uid=ul("ec_cpt_model"),a}return t.prototype.init=function(r,n,i){this.mergeDefaultAndTheme(r,i)},t.prototype.mergeDefaultAndTheme=function(r,n){var i=to(this),a=i?eo(r):{},o=n.getTheme();Gt(r,o.get(this.mainType)),Gt(r,this.getDefaultOption()),i&&hn(r,a,i)},t.prototype.mergeOption=function(r,n){Gt(this.option,r,!0);var i=to(this);i&&hn(this.option,r,i)},t.prototype.optionUpdated=function(r,n){},t.prototype.getDefaultOption=function(){var r=this.constructor;if(!W2(r))return r.defaultOption;var n=BA(this);if(!n.defaultOption){for(var i=[],a=r;a;){var o=a.prototype.defaultOption;o&&i.push(o),a=a.superClass}for(var s={},l=i.length-1;l>=0;l--)s=Gt(s,i[l],!0);n.defaultOption=s}return n.defaultOption},t.prototype.getReferringComponents=function(r,n){var i=r+"Index",a=r+"Id";return Pa(this.ecModel,r,{index:this.get(i,!0),id:this.get(a,!0)},n)},t.prototype.getBoxLayoutParams=function(){return NA(this,!1)},t.prototype.getZLevelKey=function(){return""},t.prototype.setZLevel=function(r){this.option.zlevel=r},t.protoInitialize=(function(){var r=t.prototype;r.type="component",r.id="",r.name="",r.mainType="",r.subType="",r.componentIndex=0})(),t})(Yt);dg(kt,Yt),Ds(kt),fA(kt),cA(kt,FA);function FA(e){var t=[];return O(kt.getClassesByMainType(e),function(r){t=t.concat(r.dependencies||r.prototype.dependencies||[])}),t=ft(t,function(r){return mr(r).main}),e!=="dataset"&&Nt(t,"dataset")<=0&&t.unshift("dataset"),t}var dt={color:{},darkColor:{},size:{}},jt=dt.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)"};et(jt,{primary:jt.neutral80,secondary:jt.neutral70,tertiary:jt.neutral60,quaternary:jt.neutral50,disabled:jt.neutral20,border:jt.neutral30,borderTint:jt.neutral20,borderShade:jt.neutral40,background:jt.neutral05,backgroundTint:"rgba(234,237,245,0.5)",backgroundTransparent:"rgba(255,255,255,0)",backgroundShade:jt.neutral10,shadow:"rgba(0,0,0,0.2)",shadowTint:"rgba(129,130,136,0.2)",axisLine:jt.neutral70,axisLineTint:jt.neutral40,axisTick:jt.neutral70,axisTickMinor:jt.neutral60,axisLabel:jt.neutral70,axisSplitLine:jt.neutral15,axisMinorSplitLine:jt.neutral05});for(var Jn in jt)if(jt.hasOwnProperty(Jn)){var am=jt[Jn];Jn==="theme"?dt.darkColor.theme=jt.theme.slice():Jn==="highlight"?dt.darkColor.highlight="rgba(255,231,130,0.4)":Jn.indexOf("accent")===0?dt.darkColor[Jn]=pf(am,null,function(e){return e*.5},function(e){return Math.min(1,1.3-e)}):dt.darkColor[Jn]=pf(am,null,function(e){return e*.9},function(e){return 1-Math.pow(e,1.5)})}dt.size={xxs:2,xs:5,s:10,m:15,l:20,xl:30,xxl:40,xxxl:50};var om="";typeof navigator<"u"&&(om=navigator.platform||"");var Wi="rgba(0, 0, 0, 0.2)",sm=dt.color.theme[0],zA=pf(sm,null,null,.9);const VA={darkMode:"auto",colorBy:"series",color:dt.color.theme,gradientColor:[zA,sm],aria:{decal:{decals:[{color:Wi,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Wi,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:Wi,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Wi,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Wi,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Wi,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:om.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 uh=Tt(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),Pe="original",pe="arrayRows",Ye="objectRows",ir="keyedColumns",zr="typedArray",lm="unknown",Tr="column",ti="row",ce={Must:1,Might:2,Not:3},um=Zt();function GA(e){um(e).datasetMap=Tt()}function HA(e,t,r){var n={},i=fh(t);if(!i||!e)return n;var a=[],o=[],s=t.ecModel,l=um(s).datasetMap,u=i.uid+"_"+r.seriesLayoutBy,f,c;e=e.slice(),O(e,function(g,m){var p=pt(g)?g:e[m]={name:g};p.type==="ordinal"&&f==null&&(f=m,c=v(p)),n[p.name]=[]});var d=l.get(u)||l.set(u,{categoryWayDim:c,valueWayDim:0});O(e,function(g,m){var p=g.name,y=v(g);if(f==null){var _=d.valueWayDim;h(n[p],_,y),h(o,_,y),d.valueWayDim+=y}else if(f===m)h(n[p],0,y),h(a,0,y);else{var _=d.categoryWayDim;h(n[p],_,y),h(o,_,y),d.categoryWayDim+=y}});function h(g,m,p){for(var y=0;y<p;y++)g.push(m+y)}function v(g){var m=g.dimsDef;return m?m.length:1}return a.length&&(n.itemName=a),o.length&&(n.seriesName=o),n}function UA(e,t,r){var n={},i=fh(e);if(!i)return n;var a=t.sourceFormat,o=t.dimensionsDefine,s;(a===Ye||a===ir)&&O(o,function(f,c){(pt(f)?f.name:f)==="name"&&(s=c)});var l=(function(){for(var f={},c={},d=[],h=0,v=Math.min(5,r);h<v;h++){var g=cm(t.data,a,t.seriesLayoutBy,o,t.startIndex,h);d.push(g);var m=g===ce.Not;if(m&&f.v==null&&h!==s&&(f.v=h),(f.n==null||f.n===f.v||!m&&d[f.n]===ce.Not)&&(f.n=h),p(f)&&d[f.n]!==ce.Not)return f;m||(g===ce.Might&&c.v==null&&h!==s&&(c.v=h),(c.n==null||c.n===c.v)&&(c.n=h))}function p(y){return y.v!=null&&y.n!=null}return p(f)?f:p(c)?c:null})();if(l){n.value=[l.v];var u=s??l.n;n.itemName=[u],n.seriesName=[u]}return n}function fh(e){var t=e.get("data",!0);if(!t)return Pa(e.ecModel,"dataset",{index:e.get("datasetIndex",!0),id:e.get("datasetId",!0)},ze).models[0]}function WA(e){return!e.get("transform",!0)&&!e.get("fromTransformResult",!0)?[]:Pa(e.ecModel,"dataset",{index:e.get("fromDatasetIndex",!0),id:e.get("fromDatasetId",!0)},ze).models}function fm(e,t){return cm(e.data,e.sourceFormat,e.seriesLayoutBy,e.dimensionsDefine,e.startIndex,t)}function cm(e,t,r,n,i,a){var o,s=5;if(ye(e))return ce.Not;var l,u;if(n){var f=n[a];pt(f)?(l=f.name,u=f.type):ut(f)&&(l=f)}if(u!=null)return u==="ordinal"?ce.Must:ce.Not;if(t===pe){var c=e;if(r===ti){for(var d=c[a],h=0;h<(d||[]).length&&h<s;h++)if((o=b(d[i+h]))!=null)return o}else for(var h=0;h<c.length&&h<s;h++){var v=c[i+h];if(v&&(o=b(v[a]))!=null)return o}}else if(t===Ye){var g=e;if(!l)return ce.Not;for(var h=0;h<g.length&&h<s;h++){var m=g[h];if(m&&(o=b(m[l]))!=null)return o}}else if(t===ir){var p=e;if(!l)return ce.Not;var d=p[l];if(!d||ye(d))return ce.Not;for(var h=0;h<d.length&&h<s;h++)if((o=b(d[h]))!=null)return o}else if(t===Pe)for(var y=e,h=0;h<y.length&&h<s;h++){var m=y[h],_=Ia(m);if(!st(_))return ce.Not;if((o=b(_[a]))!=null)return o}function b(x){var w=ut(x);if(x!=null&&Number.isFinite(Number(x))&&x!=="")return w?ce.Might:ce.Not;if(w&&x!=="-")return ce.Must}return ce.Not}var ZA=Tt();function YA(e,t,r){var n=ZA.get(t);if(!n)return r;var i=n(e);if(!i)return r;if(process.env.NODE_ENV!=="production")for(var a=0;a<i.length;a++)vt($i(i[a]));return r.concat(i)}var hm=Zt();Zt();var ch=(function(){function e(){}return e.prototype.getColorFromPalette=function(t,r,n){var i=Se(this.get("color",!0)),a=this.get("colorLayer",!0);return qA(this,hm,i,a,t,r,n)},e.prototype.clearColorPalette=function(){jA(this,hm)},e})();function XA(e,t){for(var r=e.length,n=0;n<r;n++)if(e[n].length>t)return e[n];return e[r-1]}function qA(e,t,r,n,i,a,o){a=a||e;var s=t(a),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(i))return u[i];var f=o==null||!n?r:XA(n,o);if(f=f||r,!(!f||!f.length)){var c=f[l];return i&&(u[i]=c),s.paletteIdx=(l+1)%f.length,c}}function jA(e,t){t(e).paletteIdx=0,t(e).paletteNameMap={}}var xl,ro,dm,hh="\0_ec_inner",vm=1,QA={grid:"GridComponent",polar:"PolarComponent",geo:"GeoComponent",singleAxis:"SingleAxisComponent",parallel:"ParallelComponent",calendar:"CalendarComponent",matrix:"MatrixComponent",graphic:"GraphicComponent",toolbox:"ToolboxComponent",tooltip:"TooltipComponent",axisPointer:"AxisPointerComponent",brush:"BrushComponent",title:"TitleComponent",timeline:"TimelineComponent",markPoint:"MarkPointComponent",markLine:"MarkLineComponent",markArea:"MarkAreaComponent",legend:"LegendComponent",dataZoom:"DataZoomComponent",visualMap:"VisualMapComponent",xAxis:"GridComponent",yAxis:"GridComponent",angleAxis:"PolarComponent",radiusAxis:"PolarComponent"},KA={line:"LineChart",bar:"BarChart",pie:"PieChart",scatter:"ScatterChart",radar:"RadarChart",map:"MapChart",tree:"TreeChart",treemap:"TreemapChart",graph:"GraphChart",chord:"ChordChart",gauge:"GaugeChart",funnel:"FunnelChart",parallel:"ParallelChart",sankey:"SankeyChart",boxplot:"BoxplotChart",candlestick:"CandlestickChart",effectScatter:"EffectScatterChart",lines:"LinesChart",heatmap:"HeatmapChart",pictorialBar:"PictorialBarChart",themeRiver:"ThemeRiverChart",sunburst:"SunburstChart",custom:"CustomChart"},wl={};function JA(e){O(e,function(t,r){if(!kt.hasClass(r)){var n=QA[r];n&&!wl[n]&&(zt("Component "+r+` is used but not imported.
|
|
58
|
+
import { `+n+` } from 'echarts/components';
|
|
59
|
+
echarts.use([`+n+"]);"),wl[n]=!0)}})}var dh=(function(e){it(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(r,n,i,a,o,s){a=a||{},this.option=null,this._theme=new Yt(a),this._locale=new Yt(o),this._optionManager=s},t.prototype.setOption=function(r,n,i){process.env.NODE_ENV!=="production"&&(vt(r!=null,"option is null/undefined"),vt(r[hh]!==vm,"please use chart.getOption()"));var a=mm(n);this._optionManager.setOption(r,i,a),this._resetOption(null,a)},t.prototype.resetOption=function(r,n){return this._resetOption(r,mm(n))},t.prototype._resetOption=function(r,n){var i=!1,a=this._optionManager;if(!r||r==="recreate"){var o=a.mountOption(r==="recreate");process.env.NODE_ENV!=="production"&&JA(o),!this.option||r==="recreate"?dm(this,o):(this.restoreData(),this._mergeOption(o,n)),i=!0}if((r==="timeline"||r==="media")&&this.restoreData(),!r||r==="recreate"||r==="timeline"){var s=a.getTimelineOption(this);s&&(i=!0,this._mergeOption(s,n))}if(!r||r==="recreate"||r==="media"){var l=a.getMediaOption(this);l.length&&O(l,function(u){i=!0,this._mergeOption(u,n)},this)}return i},t.prototype.mergeOption=function(r){this._mergeOption(r,null)},t.prototype._mergeOption=function(r,n){var i=this.option,a=this._componentsMap,o=this._componentsCount,s=[],l=Tt(),u=n&&n.replaceMergeMainTypeMap;GA(this),O(r,function(c,d){c!=null&&(kt.hasClass(d)?d&&(s.push(d),l.set(d,!0)):i[d]=i[d]==null?At(c):Gt(i[d],c,!0))}),u&&u.each(function(c,d){kt.hasClass(d)&&!l.get(d)&&(s.push(d),l.set(d,!0))}),kt.topologicalTravel(s,kt.getAllClassMainTypes(),f,this);function f(c){var d=YA(this,c,Se(r[c])),h=a.get(c),v=h?u&&u.get(c)?"replaceMerge":"normalMerge":"replaceAll",g=D2(h,d,v);R2(g,c,kt),i[c]=null,a.set(c,null),o.set(c,0);var m=[],p=[],y=0,_,b;O(g,function(x,w){var S=x.existing,L=x.newOption;if(!L)S&&(S.mergeOption({},this),S.optionUpdated({},!1));else{var C=c==="series",D=kt.getClass(c,x.keyInfo.subType,!C);if(!D){if(process.env.NODE_ENV!=="production"){var I=x.keyInfo.subType,A=KA[I];wl[I]||(wl[I]=!0,zt(A?"Series "+I+` is used but not imported.
|
|
60
|
+
import { `+A+` } from 'echarts/charts';
|
|
61
|
+
echarts.use([`+A+"]);":"Unknown series "+I))}return}if(c==="tooltip"){if(_){process.env.NODE_ENV!=="production"&&(b||(de("Currently only one tooltip component is allowed."),b=!0));return}_=!0}if(S&&S.constructor===D)S.name=x.keyInfo.name,S.mergeOption(L,this),S.optionUpdated(L,!1);else{var M=et({componentIndex:w},x.keyInfo);S=new D(L,this,this,M),et(S,M),x.brandNew&&(S.__requireNewView=!0),S.init(L,this,this),S.optionUpdated(null,!0)}}S?(m.push(S.option),p.push(S),y++):(m.push(void 0),p.push(void 0))},this),i[c]=m,a.set(c,p),o.set(c,y),c==="series"&&xl(this)}this._seriesIndices||xl(this)},t.prototype.getOption=function(){var r=At(this.option);return O(r,function(n,i){if(kt.hasClass(i)){for(var a=Se(n),o=a.length,s=!1,l=o-1;l>=0;l--)a[l]&&!$i(a[l])?s=!0:(a[l]=null,!s&&o--);a.length=o,r[i]=a}}),delete r[hh],r},t.prototype.setTheme=function(r){this._theme=new Yt(r),this._resetOption("recreate",null)},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(r){this._payload=r},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(r,n){var i=this._componentsMap.get(r);if(i){var a=i[n||0];if(a)return a;if(n==null){for(var o=0;o<i.length;o++)if(i[o])return i[o]}}},t.prototype.queryComponents=function(r){var n=r.mainType;if(!n)return[];var i=r.index,a=r.id,o=r.name,s=this._componentsMap.get(n);if(!s||!s.length)return[];var l;return i!=null?(l=[],O(Se(i),function(u){s[u]&&l.push(s[u])})):a!=null?l=pm("id",a,s):o!=null?l=pm("name",o,s):l=re(s,function(u){return!!u}),gm(l,r)},t.prototype.findComponents=function(r){var n=r.query,i=r.mainType,a=s(n),o=a?this.queryComponents(a):re(this._componentsMap.get(i),function(u){return!!u});return l(gm(o,r));function s(u){var f=i+"Index",c=i+"Id",d=i+"Name";return u&&(u[f]!=null||u[c]!=null||u[d]!=null)?{mainType:i,index:u[f],id:u[c],name:u[d]}:null}function l(u){return r.filter?re(u,r.filter):u}},t.prototype.eachComponent=function(r,n,i){var a=this._componentsMap;if(_t(r)){var o=n,s=r;a.each(function(c,d){for(var h=0;c&&h<c.length;h++){var v=c[h];v&&s.call(o,d,v,v.componentIndex)}})}else for(var l=ut(r)?a.get(r):pt(r)?this.findComponents(r):null,u=0;l&&u<l.length;u++){var f=l[u];f&&n.call(i,f,f.componentIndex)}},t.prototype.getSeriesByName=function(r){var n=gr(r,null);return re(this._componentsMap.get("series"),function(i){return!!i&&n!=null&&i.name===n})},t.prototype.getSeriesByIndex=function(r){return this._componentsMap.get("series")[r]},t.prototype.getSeriesByType=function(r){return re(this._componentsMap.get("series"),function(n){return!!n&&n.subType===r})},t.prototype.getSeries=function(){return re(this._componentsMap.get("series"),function(r){return!!r})},t.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},t.prototype.eachSeries=function(r,n){ro(this),O(this._seriesIndices,function(i){var a=this._componentsMap.get("series")[i];r.call(n,a,i)},this)},t.prototype.eachRawSeries=function(r,n){O(this._componentsMap.get("series"),function(i){i&&r.call(n,i,i.componentIndex)})},t.prototype.eachSeriesByType=function(r,n,i){ro(this),O(this._seriesIndices,function(a){var o=this._componentsMap.get("series")[a];o.subType===r&&n.call(i,o,a)},this)},t.prototype.eachRawSeriesByType=function(r,n,i){return O(this.getSeriesByType(r),n,i)},t.prototype.isSeriesFiltered=function(r){return ro(this),this._seriesIndicesMap.get(r.componentIndex)==null},t.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},t.prototype.filterSeries=function(r,n){ro(this);var i=[];O(this._seriesIndices,function(a){var o=this._componentsMap.get("series")[a];r.call(n,o,a)&&i.push(a)},this),this._seriesIndices=i,this._seriesIndicesMap=Tt(i)},t.prototype.restoreData=function(r){xl(this);var n=this._componentsMap,i=[];n.each(function(a,o){kt.hasClass(o)&&i.push(o)}),kt.topologicalTravel(i,kt.getAllClassMainTypes(),function(a){O(n.get(a),function(o){o&&(a!=="series"||!tE(o,r))&&o.restoreData()})})},t.internalField=(function(){xl=function(r){var n=r._seriesIndices=[];O(r._componentsMap.get("series"),function(i){i&&n.push(i.componentIndex)}),r._seriesIndicesMap=Tt(n)},ro=function(r){if(process.env.NODE_ENV!=="production"&&!r._seriesIndices)throw new Error("Option should contains series.")},dm=function(r,n){r.option={},r.option[hh]=vm,r._componentsMap=Tt({series:[]}),r._componentsCount=Tt();var i=n.aria;pt(i)&&i.enabled==null&&(i.enabled=!0),eE(n,r._theme.option),Gt(n,VA,!1),r._mergeOption(n,null)}})(),t})(Yt);function tE(e,t){if(t){var r=t.seriesIndex,n=t.seriesId,i=t.seriesName;return r!=null&&e.componentIndex!==r||n!=null&&e.id!==n||i!=null&&e.name!==i}}function eE(e,t){var r=e.color&&!e.colorLayer;O(t,function(n,i){i==="colorLayer"&&r||i==="color"&&e.color||kt.hasClass(i)||(typeof n=="object"?e[i]=e[i]?Gt(e[i],n,!1):At(n):e[i]==null&&(e[i]=n))})}function pm(e,t,r){if(st(t)){var n=Tt();return O(t,function(a){if(a!=null){var o=gr(a,null);o!=null&&n.set(a,!0)}}),re(r,function(a){return a&&n.get(a[e])})}else{var i=gr(t,null);return re(r,function(a){return a&&i!=null&&a[e]===i})}}function gm(e,t){return t.hasOwnProperty("subType")?re(e,function(r){return r&&r.subType===t.subType}):e}function mm(e){var t=Tt();return e&&O(Se(e.replaceMerge),function(r){process.env.NODE_ENV!=="production"&&vt(kt.hasClass(r),'"'+r+'" is not valid component main type in "replaceMerge"'),t.set(r,!0)}),{replaceMergeMainTypeMap:t}}ur(dh,ch);var rE=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],ym=(function(){function e(t){O(rE,function(r){this[r]=Ft(t[r],t)},this)}return e})(),nE=/^(min|max)?(.+)$/,iE=(function(){function e(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}return e.prototype.setOption=function(t,r,n){t&&(O(Se(t.series),function(o){o&&o.data&&ye(o.data)&&zu(o.data)}),O(Se(t.dataset),function(o){o&&o.source&&ye(o.source)&&zu(o.source)})),t=At(t);var i=this._optionBackup,a=aE(t,r,!i);this._newBaseOption=a.baseOption,i?(a.timelineOptions.length&&(i.timelineOptions=a.timelineOptions),a.mediaList.length&&(i.mediaList=a.mediaList),a.mediaDefault&&(i.mediaDefault=a.mediaDefault)):this._optionBackup=a},e.prototype.mountOption=function(t){var r=this._optionBackup;return this._timelineOptions=r.timelineOptions,this._mediaList=r.mediaList,this._mediaDefault=r.mediaDefault,this._currentMediaIndices=[],At(t?r.baseOption:this._newBaseOption)},e.prototype.getTimelineOption=function(t){var r,n=this._timelineOptions;if(n.length){var i=t.getComponent("timeline");i&&(r=At(n[i.getCurrentIndex()]))}return r},e.prototype.getMediaOption=function(t){var r=this._api.getWidth(),n=this._api.getHeight(),i=this._mediaList,a=this._mediaDefault,o=[],s=[];if(!i.length&&!a)return s;for(var l=0,u=i.length;l<u;l++)oE(i[l].query,r,n)&&o.push(l);return!o.length&&a&&(o=[-1]),o.length&&!lE(o,this._currentMediaIndices)&&(s=ft(o,function(f){return At(f===-1?a.option:i[f].option)})),this._currentMediaIndices=o,s},e})();function aE(e,t,r){var n=[],i,a,o=e.baseOption,s=e.timeline,l=e.options,u=e.media,f=!!e.media,c=!!(l||s||o&&o.timeline);o?(a=o,a.timeline||(a.timeline=s)):((c||f)&&(e.options=e.media=null),a=e),f&&(st(u)?O(u,function(h){process.env.NODE_ENV!=="production"&&h&&!h.option&&pt(h.query)&&pt(h.query.option)&&zt("Illegal media option. Must be like { media: [ { query: {}, option: {} } ] }"),h&&h.option&&(h.query?n.push(h):i||(i=h))}):process.env.NODE_ENV!=="production"&&zt("Illegal media option. Must be an array. Like { media: [ {...}, {...} ] }")),d(a),O(l,function(h){return d(h)}),O(n,function(h){return d(h.option)});function d(h){O(t,function(v){v(h,r)})}return{baseOption:a,timelineOptions:l||[],mediaDefault:i,mediaList:n}}function oE(e,t,r){var n={width:t,height:r,aspectratio:t/r},i=!0;return O(e,function(a,o){var s=o.match(nE);if(!(!s||!s[1]||!s[2])){var l=s[1],u=s[2].toLowerCase();sE(n[u],a,l)||(i=!1)}}),i}function sE(e,t,r){return r==="min"?e>=t:r==="max"?e<=t:e===t}function lE(e,t){return e.join(",")===t.join(",")}var Xe=O,no=pt,_m=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function vh(e){var t=e&&e.itemStyle;if(t)for(var r=0,n=_m.length;r<n;r++){var i=_m[r],a=t.normal,o=t.emphasis;a&&a[i]&&(process.env.NODE_ENV!=="production"&&ie("itemStyle.normal."+i,i),e[i]=e[i]||{},e[i].normal?Gt(e[i].normal,a[i]):e[i].normal=a[i],a[i]=null),o&&o[i]&&(process.env.NODE_ENV!=="production"&&ie("itemStyle.emphasis."+i,"emphasis."+i),e[i]=e[i]||{},e[i].emphasis?Gt(e[i].emphasis,o[i]):e[i].emphasis=o[i],o[i]=null)}}function ge(e,t,r){if(e&&e[t]&&(e[t].normal||e[t].emphasis)){var n=e[t].normal,i=e[t].emphasis;n&&(process.env.NODE_ENV!=="production"&&Or("'normal' hierarchy in "+t+" has been removed since 4.0. All style properties are configured in "+t+" directly now."),r?(e[t].normal=e[t].emphasis=null,Bt(e[t],n)):e[t]=n),i&&(process.env.NODE_ENV!=="production"&&Or(t+".emphasis has been changed to emphasis."+t+" since 4.0"),e.emphasis=e.emphasis||{},e.emphasis[t]=i,i.focus&&(e.emphasis.focus=i.focus),i.blurScope&&(e.emphasis.blurScope=i.blurScope))}}function io(e){ge(e,"itemStyle"),ge(e,"lineStyle"),ge(e,"areaStyle"),ge(e,"label"),ge(e,"labelLine"),ge(e,"upperLabel"),ge(e,"edgeLabel")}function Jt(e,t){var r=no(e)&&e[t],n=no(r)&&r.textStyle;if(n){process.env.NODE_ENV!=="production"&&Or("textStyle hierarchy in "+t+" has been removed since 4.0. All textStyle properties are configured in "+t+" directly now.");for(var i=0,a=sg.length;i<a;i++){var o=sg[i];n.hasOwnProperty(o)&&(r[o]=n[o])}}}function qe(e){e&&(io(e),Jt(e,"label"),e.emphasis&&Jt(e.emphasis,"label"))}function uE(e){if(no(e)){vh(e),io(e),Jt(e,"label"),Jt(e,"upperLabel"),Jt(e,"edgeLabel"),e.emphasis&&(Jt(e.emphasis,"label"),Jt(e.emphasis,"upperLabel"),Jt(e.emphasis,"edgeLabel"));var t=e.markPoint;t&&(vh(t),qe(t));var r=e.markLine;r&&(vh(r),qe(r));var n=e.markArea;n&&qe(n);var i=e.data;if(e.type==="graph"){i=i||e.nodes;var a=e.links||e.edges;if(a&&!ye(a))for(var o=0;o<a.length;o++)qe(a[o]);O(e.categories,function(u){io(u)})}if(i&&!ye(i))for(var o=0;o<i.length;o++)qe(i[o]);if(t=e.markPoint,t&&t.data)for(var s=t.data,o=0;o<s.length;o++)qe(s[o]);if(r=e.markLine,r&&r.data)for(var l=r.data,o=0;o<l.length;o++)st(l[o])?(qe(l[o][0]),qe(l[o][1])):qe(l[o]);e.type==="gauge"?(Jt(e,"axisLabel"),Jt(e,"title"),Jt(e,"detail")):e.type==="treemap"?(ge(e.breadcrumb,"itemStyle"),O(e.levels,function(u){io(u)})):e.type==="tree"&&io(e.leaves)}}function Vr(e){return st(e)?e:e?[e]:[]}function bm(e){return(st(e)?e[0]:e)||{}}function fE(e,t){Xe(Vr(e.series),function(n){no(n)&&uE(n)});var r=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];t&&r.push("valueAxis","categoryAxis","logAxis","timeAxis"),Xe(r,function(n){Xe(Vr(e[n]),function(i){i&&(Jt(i,"axisLabel"),Jt(i.axisPointer,"label"))})}),Xe(Vr(e.parallel),function(n){var i=n&&n.parallelAxisDefault;Jt(i,"axisLabel"),Jt(i&&i.axisPointer,"label")}),Xe(Vr(e.calendar),function(n){ge(n,"itemStyle"),Jt(n,"dayLabel"),Jt(n,"monthLabel"),Jt(n,"yearLabel")}),Xe(Vr(e.radar),function(n){Jt(n,"name"),n.name&&n.axisName==null&&(n.axisName=n.name,delete n.name,process.env.NODE_ENV!=="production"&&Or("name property in radar component has been changed to axisName")),n.nameGap!=null&&n.axisNameGap==null&&(n.axisNameGap=n.nameGap,delete n.nameGap,process.env.NODE_ENV!=="production"&&Or("nameGap property in radar component has been changed to axisNameGap")),process.env.NODE_ENV!=="production"&&Xe(n.indicator,function(i){i.text&&ie("text","name","radar.indicator")})}),Xe(Vr(e.geo),function(n){no(n)&&(qe(n),Xe(Vr(n.regions),function(i){qe(i)}))}),Xe(Vr(e.timeline),function(n){qe(n),ge(n,"label"),ge(n,"itemStyle"),ge(n,"controlStyle",!0);var i=n.data;st(i)&&O(i,function(a){pt(a)&&(ge(a,"label"),ge(a,"itemStyle"))})}),Xe(Vr(e.toolbox),function(n){ge(n,"iconStyle"),Xe(n.feature,function(i){ge(i,"iconStyle")})}),Jt(bm(e.axisPointer),"label"),Jt(bm(e.tooltip).axisPointer,"label")}function cE(e,t){for(var r=t.split(","),n=e,i=0;i<r.length&&(n=n&&n[r[i]],n!=null);i++);return n}function hE(e,t,r,n){for(var i=t.split(","),a=e,o,s=0;s<i.length-1;s++)o=i[s],a[o]==null&&(a[o]={}),a=a[o];a[i[s]]==null&&(a[i[s]]=r)}function Sm(e){e&&O(dE,function(t){t[0]in e&&!(t[1]in e)&&(e[t[1]]=e[t[0]])})}var dE=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],vE=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],ph=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function ao(e){var t=e&&e.itemStyle;if(t)for(var r=0;r<ph.length;r++){var n=ph[r][1],i=ph[r][0];t[n]!=null&&(t[i]=t[n],process.env.NODE_ENV!=="production"&&ie(n,i))}}function xm(e){e&&e.alignTo==="edge"&&e.margin!=null&&e.edgeDistance==null&&(process.env.NODE_ENV!=="production"&&ie("label.margin","label.edgeDistance","pie"),e.edgeDistance=e.margin)}function wm(e){e&&e.downplay&&!e.blur&&(e.blur=e.downplay,process.env.NODE_ENV!=="production"&&ie("downplay","blur","sunburst"))}function pE(e){e&&e.focusNodeAdjacency!=null&&(e.emphasis=e.emphasis||{},e.emphasis.focus==null&&(process.env.NODE_ENV!=="production"&&ie("focusNodeAdjacency","emphasis: { focus: 'adjacency'}","graph/sankey"),e.emphasis.focus="adjacency"))}function Tm(e,t){if(e)for(var r=0;r<e.length;r++)t(e[r]),e[r]&&Tm(e[r].children,t)}function Cm(e,t){fE(e,t),e.series=Se(e.series),O(e.series,function(r){if(pt(r)){var n=r.type;if(n==="line")r.clipOverflow!=null&&(r.clip=r.clipOverflow,process.env.NODE_ENV!=="production"&&ie("clipOverflow","clip","line"));else if(n==="pie"||n==="gauge"){r.clockWise!=null&&(r.clockwise=r.clockWise,process.env.NODE_ENV!=="production"&&ie("clockWise","clockwise")),xm(r.label);var i=r.data;if(i&&!ye(i))for(var a=0;a<i.length;a++)xm(i[a]);r.hoverOffset!=null&&(r.emphasis=r.emphasis||{},(r.emphasis.scaleSize=null)&&(process.env.NODE_ENV!=="production"&&ie("hoverOffset","emphasis.scaleSize"),r.emphasis.scaleSize=r.hoverOffset))}else if(n==="gauge"){var o=cE(r,"pointer.color");o!=null&&hE(r,"itemStyle.color",o)}else if(n==="bar"){ao(r),ao(r.backgroundStyle),ao(r.emphasis);var i=r.data;if(i&&!ye(i))for(var a=0;a<i.length;a++)typeof i[a]=="object"&&(ao(i[a]),ao(i[a]&&i[a].emphasis))}else if(n==="sunburst"){var s=r.highlightPolicy;s&&(r.emphasis=r.emphasis||{},r.emphasis.focus||(r.emphasis.focus=s,process.env.NODE_ENV!=="production"&&ie("highlightPolicy","emphasis.focus","sunburst"))),wm(r),Tm(r.data,wm)}else n==="graph"||n==="sankey"?pE(r):n==="map"&&(r.mapType&&!r.map&&(process.env.NODE_ENV!=="production"&&ie("mapType","map","map"),r.map=r.mapType),r.mapLocation&&(process.env.NODE_ENV!=="production"&&Or("`mapLocation` is not used anymore."),Bt(r,r.mapLocation)));r.hoverAnimation!=null&&(r.emphasis=r.emphasis||{},r.emphasis&&r.emphasis.scale==null&&(process.env.NODE_ENV!=="production"&&ie("hoverAnimation","emphasis.scale"),r.emphasis.scale=r.hoverAnimation)),Sm(r)}}),e.dataRange&&(e.visualMap=e.dataRange),O(vE,function(r){var n=e[r];n&&(st(n)||(n=[n]),O(n,function(i){Sm(i)}))})}function gE(e){var t=Tt();e.eachSeries(function(r){var n=r.get("stack");if(n){var i=t.get(n)||t.set(n,[]),a=r.getData(),o={stackResultDimension:a.getCalculationInfo("stackResultDimension"),stackedOverDimension:a.getCalculationInfo("stackedOverDimension"),stackedDimension:a.getCalculationInfo("stackedDimension"),stackedByDimension:a.getCalculationInfo("stackedByDimension"),isStackedByIndex:a.getCalculationInfo("isStackedByIndex"),data:a,seriesModel:r};if(!o.stackedDimension||!(o.isStackedByIndex||o.stackedByDimension))return;i.push(o)}}),t.each(function(r){if(r.length!==0){var n=r[0].seriesModel,i=n.get("stackOrder")||"seriesAsc";i==="seriesDesc"&&r.reverse(),O(r,function(a,o){a.data.setCalculationInfo("stackedOnSeries",o>0?r[o-1].seriesModel:null)}),mE(r)}})}function mE(e){O(e,function(t,r){var n=[],i=[NaN,NaN],a=[t.stackResultDimension,t.stackedOverDimension],o=t.data,s=t.isStackedByIndex,l=t.seriesModel.get("stackStrategy")||"samesign";o.modify(a,function(u,f,c){var d=o.get(t.stackedDimension,c);if(isNaN(d))return i;var h,v;s?v=o.getRawIndex(c):h=o.get(t.stackedByDimension,c);for(var g=NaN,m=r-1;m>=0;m--){var p=e[m];if(s||(v=p.data.rawIndexOf(p.stackedByDimension,h)),v>=0){var y=p.data.getByRawIndex(p.stackResultDimension,v);if(l==="all"||l==="positive"&&y>0||l==="negative"&&y<0||l==="samesign"&&d>=0&&y>0||l==="samesign"&&d<=0&&y<0){d=w2(d,y),g=y;break}}}return n[0]=d,n[1]=g,n})})}var Tl=(function(){function e(t){this.data=t.data||(t.sourceFormat===ir?{}:[]),this.sourceFormat=t.sourceFormat||lm,this.seriesLayoutBy=t.seriesLayoutBy||Tr,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var r=this.dimensionsDefine=t.dimensionsDefine;if(r)for(var n=0;n<r.length;n++){var i=r[n];i.type==null&&fm(this,n)===ce.Must&&(i.type="ordinal")}}return e})();function gh(e){return e instanceof Tl}function mh(e,t,r){r=r||Em(e);var n=t.seriesLayoutBy,i=_E(e,r,n,t.sourceHeader,t.dimensions),a=new Tl({data:e,sourceFormat:r,seriesLayoutBy:n,dimensionsDefine:i.dimensionsDefine,startIndex:i.startIndex,dimensionsDetectedCount:i.dimensionsDetectedCount,metaRawOption:At(t)});return a}function Am(e){return new Tl({data:e,sourceFormat:ye(e)?zr:Pe})}function yE(e){return new Tl({data:e.data,sourceFormat:e.sourceFormat,seriesLayoutBy:e.seriesLayoutBy,dimensionsDefine:At(e.dimensionsDefine),startIndex:e.startIndex,dimensionsDetectedCount:e.dimensionsDetectedCount})}function Em(e){var t=lm;if(ye(e))t=zr;else if(st(e)){e.length===0&&(t=pe);for(var r=0,n=e.length;r<n;r++){var i=e[r];if(i!=null){if(st(i)||ye(i)){t=pe;break}else if(pt(i)){t=Ye;break}}}}else if(pt(e)){for(var a in e)if(Je(e,a)&&Ce(e[a])){t=ir;break}}return t}function _E(e,t,r,n,i){var a,o;if(!e)return{dimensionsDefine:Lm(i),startIndex:o,dimensionsDetectedCount:a};if(t===pe){var s=e;n==="auto"||n==null?Mm(function(u){u!=null&&u!=="-"&&(ut(u)?o==null&&(o=1):o=0)},r,s,10):o=$t(n)?n:n?1:0,!i&&o===1&&(i=[],Mm(function(u,f){i[f]=u!=null?u+"":""},r,s,1/0)),a=i?i.length:r===ti?s.length:s[0]?s[0].length:null}else if(t===Ye)i||(i=bE(e));else if(t===ir)i||(i=[],O(e,function(u,f){i.push(f)}));else if(t===Pe){var l=Ia(e[0]);a=st(l)&&l.length||1}else t===zr&&process.env.NODE_ENV!=="production"&&vt(!!i,"dimensions must be given if data is TypedArray.");return{startIndex:o,dimensionsDefine:Lm(i),dimensionsDetectedCount:a}}function bE(e){for(var t=0,r;t<e.length&&!(r=e[t++]););if(r)return Mt(r)}function Lm(e){if(e){var t=Tt();return ft(e,function(r,n){r=pt(r)?r:{name:r};var i={name:r.name,displayName:r.displayName,type:r.type};if(i.name==null)return i;i.name+="",i.displayName==null&&(i.displayName=i.name);var a=t.get(i.name);return a?i.name+="-"+a.count++:t.set(i.name,{count:1}),i})}}function Mm(e,t,r,n){if(t===ti)for(var i=0;i<r.length&&i<n;i++)e(r[i]?r[i][0]:null,i);else for(var a=r[0]||[],i=0;i<a.length&&i<n;i++)e(a[i],i)}function Dm(e){var t=e.sourceFormat;return t===Ye||t===ir}var ei,ri,ni,ii,Im,km,Pm=(function(){function e(t,r){var n=gh(t)?t:Am(t);this._source=n;var i=this._data=n.data,a=n.sourceFormat,o=n.seriesLayoutBy;if(a===zr){if(process.env.NODE_ENV!=="production"&&r==null)throw new Error("Typed array data must specify dimension size");this._offset=0,this._dimSize=r,this._data=i}if(process.env.NODE_ENV!=="production"){var s=SE[Al(a,o)];s&&s(i,n.dimensionsDefine)}km(this,i,n)}return e.prototype.getSource=function(){return this._source},e.prototype.count=function(){return 0},e.prototype.getItem=function(t,r){},e.prototype.appendData=function(t){},e.prototype.clean=function(){},e.protoInitialize=(function(){var t=e.prototype;t.pure=!1,t.persistent=!0})(),e.internalField=(function(){var t;km=function(o,s,l){var u=l.sourceFormat,f=l.seriesLayoutBy,c=l.startIndex,d=l.dimensionsDefine,h=Im[Al(u,f)];if(process.env.NODE_ENV!=="production"&&vt(h,"Invalide sourceFormat: "+u),et(o,h),u===zr)o.getItem=r,o.count=i,o.fillStorage=n;else{var v=$m(u,f);o.getItem=Ft(v,null,s,c,d);var g=Rm(u,f);o.count=Ft(g,null,s,c,d)}};var r=function(o,s){o=o-this._offset,s=s||[];for(var l=this._data,u=this._dimSize,f=u*o,c=0;c<u;c++)s[c]=l[f+c];return s},n=function(o,s,l,u){for(var f=this._data,c=this._dimSize,d=0;d<c;d++){for(var h=u[d],v=h[0]==null?1/0:h[0],g=h[1]==null?-1/0:h[1],m=s-o,p=l[d],y=0;y<m;y++){var _=f[y*c+d];p[o+y]=_,_<v&&(v=_),_>g&&(g=_)}h[0]=v,h[1]=g}},i=function(){return this._data?this._data.length/this._dimSize:0};Im=(t={},t[pe+"_"+Tr]={pure:!0,appendData:a},t[pe+"_"+ti]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[Ye]={pure:!0,appendData:a},t[ir]={pure:!0,appendData:function(o){var s=this._data;O(o,function(l,u){for(var f=s[u]||(s[u]=[]),c=0;c<(l||[]).length;c++)f.push(l[c])})}},t[Pe]={appendData:a},t[zr]={persistent:!1,pure:!0,appendData:function(o){process.env.NODE_ENV!=="production"&&vt(ye(o),"Added data must be TypedArray if data in initialization is TypedArray"),this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},t);function a(o){for(var s=0;s<o.length;s++)this._data.push(o[s])}})(),e})(),Cl=function(e){st(e)||zt("series.data or dataset.source must be an array.")},SE=(ei={},ei[pe+"_"+Tr]=Cl,ei[pe+"_"+ti]=Cl,ei[Ye]=Cl,ei[ir]=function(e,t){for(var r=0;r<t.length;r++){var n=t[r].name;n==null&&zt("dimension name must not be null/undefined.")}},ei[Pe]=Cl,ei),Nm=function(e,t,r,n){return e[n]},xE=(ri={},ri[pe+"_"+Tr]=function(e,t,r,n){return e[n+t]},ri[pe+"_"+ti]=function(e,t,r,n,i){n+=t;for(var a=i||[],o=e,s=0;s<o.length;s++){var l=o[s];a[s]=l?l[n]:null}return a},ri[Ye]=Nm,ri[ir]=function(e,t,r,n,i){for(var a=i||[],o=0;o<r.length;o++){var s=r[o].name,l=s!=null?e[s]:null;a[o]=l?l[n]:null}return a},ri[Pe]=Nm,ri);function $m(e,t){var r=xE[Al(e,t)];return process.env.NODE_ENV!=="production"&&vt(r,'Do not support get item on "'+e+'", "'+t+'".'),r}var Om=function(e,t,r){return e.length},wE=(ni={},ni[pe+"_"+Tr]=function(e,t,r){return Math.max(0,e.length-t)},ni[pe+"_"+ti]=function(e,t,r){var n=e[0];return n?Math.max(0,n.length-t):0},ni[Ye]=Om,ni[ir]=function(e,t,r){var n=r[0].name,i=n!=null?e[n]:null;return i?i.length:0},ni[Pe]=Om,ni);function Rm(e,t){var r=wE[Al(e,t)];return process.env.NODE_ENV!=="production"&&vt(r,'Do not support count on "'+e+'", "'+t+'".'),r}var yh=function(e,t,r){return e[t]},TE=(ii={},ii[pe]=yh,ii[Ye]=function(e,t,r){return e[r]},ii[ir]=yh,ii[Pe]=function(e,t,r){var n=Ia(e);return n instanceof Array?n[t]:n},ii[zr]=yh,ii);function Bm(e){var t=TE[e];return process.env.NODE_ENV!=="production"&&vt(t,'Do not support get value on "'+e+'".'),t}function Al(e,t){return e===pe?e+"_"+t:e}function Zi(e,t,r){if(e){var n=e.getRawDataItem(t);if(n!=null){var i=e.getStore(),a=i.getSource().sourceFormat;if(r!=null){var o=e.getDimensionIndex(r),s=i.getDimensionProperty(o);return Bm(a)(n,o,s)}else{var l=n;return a===Pe&&(l=Ia(n)),l}}}}var CE=/\{@(.+?)\}/g,AE=(function(){function e(){}return e.prototype.getDataParams=function(t,r){var n=this.getData(r),i=this.getRawValue(t,r),a=n.getRawIndex(t),o=n.getName(t),s=n.getRawDataItem(t),l=n.getItemVisual(t,"style"),u=l&&l[n.getItemVisual(t,"drawType")||"fill"],f=l&&l.stroke,c=this.mainType,d=c==="series",h=n.userOutput&&n.userOutput.get();return{componentType:c,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:d?this.subType:null,seriesIndex:this.seriesIndex,seriesId:d?this.id:null,seriesName:d?this.name:null,name:o,dataIndex:a,data:s,dataType:r,value:i,color:u,borderColor:f,dimensionNames:h?h.fullDimensions:null,encode:h?h.encode:null,$vars:["seriesName","name","value"]}},e.prototype.getFormattedLabel=function(t,r,n,i,a,o){r=r||"normal";var s=this.getData(n),l=this.getDataParams(t,n);if(o&&(l.value=o.interpolatedValue),i!=null&&st(l.value)&&(l.value=l.value[i]),!a){var u=s.getItemModel(t);a=u.get(r==="normal"?["label","formatter"]:[r,"label","formatter"])}if(_t(a))return l.status=r,l.dimensionIndex=i,a(l);if(ut(a)){var f=nm(a,l);return f.replace(CE,function(c,d){var h=d.length,v=d;v.charAt(0)==="["&&v.charAt(h-1)==="]"&&(v=+v.slice(1,h-1),process.env.NODE_ENV!=="production"&&isNaN(v)&&zt("Invalide label formatter: @"+d+", only support @[0], @[1], @[2], ..."));var g=Zi(s,t,v);if(o&&st(o.interpolatedValue)){var m=s.getDimensionIndex(v);m>=0&&(g=o.interpolatedValue[m])}return g!=null?g+"":""})}},e.prototype.getRawValue=function(t,r){return Zi(this.getData(r),t)},e.prototype.formatTooltip=function(t,r,n){},e})();function Fm(e){var t,r;return pt(e)?e.type?r=e:process.env.NODE_ENV!=="production"&&console.warn("The return type of `formatTooltip` is not supported: "+Ms(e)):t=e,{text:t,frag:r}}function oo(e){return new EE(e)}var EE=(function(){function e(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return e.prototype.perform=function(t){var r=this._upstream,n=t&&t.skip;if(this._dirty&&r){var i=this.context;i.data=i.outputData=r.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var a;this._plan&&!n&&(a=this._plan(this.context));var o=f(this._modBy),s=this._modDataCount||0,l=f(t&&t.modBy),u=t&&t.modDataCount||0;(o!==l||s!==u)&&(a="reset");function f(y){return!(y>=1)&&(y=1),y}var c;(this._dirty||a==="reset")&&(this._dirty=!1,c=this._doReset(n)),this._modBy=l,this._modDataCount=u;var d=t&&t.step;if(r?(process.env.NODE_ENV!=="production"&&vt(r._outputDueEnd!=null),this._dueEnd=r._outputDueEnd):(process.env.NODE_ENV!=="production"&&vt(!this._progress||this._count),this._dueEnd=this._count?this._count(this.context):1/0),this._progress){var h=this._dueIndex,v=Math.min(d!=null?this._dueIndex+d:1/0,this._dueEnd);if(!n&&(c||h<v)){var g=this._progress;if(st(g))for(var m=0;m<g.length;m++)this._doProgress(g[m],h,v,l,u);else this._doProgress(g,h,v,l,u)}this._dueIndex=v;var p=this._settedOutputEnd!=null?this._settedOutputEnd:v;process.env.NODE_ENV!=="production"&&vt(p>=this._outputDueEnd),this._outputDueEnd=p}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd!=null?this._settedOutputEnd:this._dueEnd;return this.unfinished()},e.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},e.prototype._doProgress=function(t,r,n,i,a){zm.reset(r,n,i,a),this._callingProgress=t,this._callingProgress({start:r,end:n,count:n-r,next:zm.next},this.context)},e.prototype._doReset=function(t){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var r,n;!t&&this._reset&&(r=this._reset(this.context),r&&r.progress&&(n=r.forceFirstProgress,r=r.progress),st(r)&&!r.length&&(r=null)),this._progress=r,this._modBy=this._modDataCount=null;var i=this._downstream;return i&&i.dirty(),n},e.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},e.prototype.pipe=function(t){process.env.NODE_ENV!=="production"&&vt(t&&!t._disposed&&t!==this),(this._downstream!==t||this._dirty)&&(this._downstream=t,t._upstream=this,t.dirty())},e.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},e.prototype.getUpstream=function(){return this._upstream},e.prototype.getDownstream=function(){return this._downstream},e.prototype.setOutputEnd=function(t){this._outputDueEnd=this._settedOutputEnd=t},e})(),zm=(function(){var e,t,r,n,i,a={reset:function(l,u,f,c){t=l,e=u,r=f,n=c,i=Math.ceil(n/r),a.next=r>1&&n>0?s:o}};return a;function o(){return t<e?t++:null}function s(){var l=t%i*r+Math.ceil(t/i),u=t>=e?null:l<n?l:t;return t++,u}})();function El(e,t){var r=t&&t.type;return r==="ordinal"?e:(r==="time"&&!$t(e)&&e!=null&&e!=="-"&&(e=+Ni(e)),e==null||e===""?NaN:Number(e))}Tt({number:function(e){return parseFloat(e)},time:function(e){return+Ni(e)},trim:function(e){return ut(e)?fr(e):e}});var LE=(function(){function e(t,r){var n=t==="desc";this._resultLT=n?1:-1,r==null&&(r=n?"min":"max"),this._incomparable=r==="min"?-1/0:1/0}return e.prototype.evaluate=function(t,r){var n=$t(t)?t:Es(t),i=$t(r)?r:Es(r),a=isNaN(n),o=isNaN(i);if(a&&(n=this._incomparable),o&&(i=this._incomparable),a&&o){var s=ut(t),l=ut(r);s&&(n=l?t:0),l&&(i=s?r:0)}return n<i?this._resultLT:n>i?-this._resultLT:0},e})(),ME=(function(){function e(){}return e.prototype.getRawData=function(){throw new Error("not supported")},e.prototype.getRawDataItem=function(t){throw new Error("not supported")},e.prototype.cloneRawData=function(){},e.prototype.getDimensionInfo=function(t){},e.prototype.cloneAllDimensionInfo=function(){},e.prototype.count=function(){},e.prototype.retrieveValue=function(t,r){},e.prototype.retrieveValueFromItem=function(t,r){},e.prototype.convertValue=function(t,r){return El(t,r)},e})();function DE(e,t){var r=new ME,n=e.data,i=r.sourceFormat=e.sourceFormat,a=e.startIndex,o="";e.seriesLayoutBy!==Tr&&(process.env.NODE_ENV!=="production"&&(o='`seriesLayoutBy` of upstream dataset can only be "column" in data transform.'),Ee(o));var s=[],l={},u=e.dimensionsDefine;if(u)O(u,function(g,m){var p=g.name,y={index:m,name:p,displayName:g.displayName};if(s.push(y),p!=null){var _="";Je(l,p)&&(process.env.NODE_ENV!=="production"&&(_='dimension name "'+p+'" duplicated.'),Ee(_)),l[p]=y}});else for(var f=0;f<e.dimensionsDetectedCount;f++)s.push({index:f});var c=$m(i,Tr);t.__isBuiltIn&&(r.getRawDataItem=function(g){return c(n,a,s,g)},r.getRawData=Ft(IE,null,e)),r.cloneRawData=Ft(kE,null,e);var d=Rm(i,Tr);r.count=Ft(d,null,n,a,s);var h=Bm(i);r.retrieveValue=function(g,m){var p=c(n,a,s,g);return v(p,m)};var v=r.retrieveValueFromItem=function(g,m){if(g!=null){var p=s[m];if(p)return h(g,m,p.name)}};return r.getDimensionInfo=Ft(PE,null,s,l),r.cloneAllDimensionInfo=Ft(NE,null,s),r}function IE(e){var t=e.sourceFormat;if(!_h(t)){var r="";process.env.NODE_ENV!=="production"&&(r="`getRawData` is not supported in source format "+t),Ee(r)}return e.data}function kE(e){var t=e.sourceFormat,r=e.data;if(!_h(t)){var n="";process.env.NODE_ENV!=="production"&&(n="`cloneRawData` is not supported in source format "+t),Ee(n)}if(t===pe){for(var i=[],a=0,o=r.length;a<o;a++)i.push(r[a].slice());return i}else if(t===Ye){for(var i=[],a=0,o=r.length;a<o;a++)i.push(et({},r[a]));return i}}function PE(e,t,r){if(r!=null){if($t(r)||!isNaN(r)&&!Je(t,r))return e[r];if(Je(t,r))return t[r]}}function NE(e){return At(e)}var Vm=Tt();function $E(e){e=At(e);var t=e.type,r="";t||(process.env.NODE_ENV!=="production"&&(r="Must have a `type` when `registerTransform`."),Ee(r));var n=t.split(":");n.length!==2&&(process.env.NODE_ENV!=="production"&&(r='Name must include namespace like "ns:regression".'),Ee(r));var i=!1;n[0]==="echarts"&&(t=n[1],i=!0),e.__isBuiltIn=i,Vm.set(t,e)}function OE(e,t,r){var n=Se(e),i=n.length,a="";i||(process.env.NODE_ENV!=="production"&&(a="If `transform` declared, it should at least contain one transform."),Ee(a));for(var o=0,s=i;o<s;o++){var l=n[o];t=RE(l,t,r,i===1?null:o),o!==s-1&&(t.length=Math.max(t.length,1))}return t}function RE(e,t,r,n){var i="";t.length||(process.env.NODE_ENV!=="production"&&(i="Must have at least one upstream dataset."),Ee(i)),pt(e)||(process.env.NODE_ENV!=="production"&&(i="transform declaration must be an object rather than "+typeof e+"."),Ee(i));var a=e.type,o=Vm.get(a);o||(process.env.NODE_ENV!=="production"&&(i='Can not find transform on type "'+a+'".'),Ee(i));var s=ft(t,function(f){return DE(f,o)}),l=Se(o.transform({upstream:s[0],upstreamList:s,config:At(e.config)}));if(process.env.NODE_ENV!=="production"&&e.print){var u=ft(l,function(f){var c=n!=null?" === pipe index: "+n:"";return["=== dataset index: "+r.datasetIndex+c+" ===","- transform result data:",Ms(f.data),"- transform result dimensions:",Ms(f.dimensions)].join(`
|
|
62
|
+
`)}).join(`
|
|
63
|
+
`);ig(u)}return ft(l,function(f,c){var d="";pt(f)||(process.env.NODE_ENV!=="production"&&(d="A transform should not return some empty results."),Ee(d)),f.data||(process.env.NODE_ENV!=="production"&&(d="Transform result data should be not be null or undefined"),Ee(d));var h=Em(f.data);_h(h)||(process.env.NODE_ENV!=="production"&&(d="Transform result data should be array rows or object rows."),Ee(d));var v,g=t[0];if(g&&c===0&&!f.dimensions){var m=g.startIndex;m&&(f.data=g.data.slice(0,m).concat(f.data)),v={seriesLayoutBy:Tr,sourceHeader:m,dimensions:g.metaRawOption.dimensions}}else v={seriesLayoutBy:Tr,sourceHeader:0,dimensions:f.dimensions};return mh(f.data,v,null)})}function _h(e){return e===pe||e===Ye}var Ll="undefined",BE=typeof Uint32Array===Ll?Array:Uint32Array,FE=typeof Uint16Array===Ll?Array:Uint16Array,Gm=typeof Int32Array===Ll?Array:Int32Array,Hm=typeof Float64Array===Ll?Array:Float64Array,Um={float:Hm,int:Gm,ordinal:Array,number:Array,time:Hm},bh;function Yi(e){return e>65535?BE:FE}function Xi(){return[1/0,-1/0]}function zE(e){var t=e.constructor;return t===Array?e.slice():new t(e)}function Wm(e,t,r,n,i){var a=Um[r||"float"];if(i){var o=e[t],s=o&&o.length;if(s!==n){for(var l=new a(n),u=0;u<s;u++)l[u]=o[u];e[t]=l}}else e[t]=new a(n)}var Sh=(function(){function e(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=Tt()}return e.prototype.initData=function(t,r,n){process.env.NODE_ENV!=="production"&&vt(_t(t.getItem)&&_t(t.count),"Invalid data provider."),this._provider=t,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var i=t.getSource(),a=this.defaultDimValueGetter=bh[i.sourceFormat];this._dimValueGetter=n||a,this._rawExtent=[];var o=Dm(i);this._dimensions=ft(r,function(s){return process.env.NODE_ENV!=="production"&&o&&vt(s.property!=null),{type:s.type,property:s.property}}),this._initDataFromProvider(0,t.count())},e.prototype.getProvider=function(){return this._provider},e.prototype.getSource=function(){return this._provider.getSource()},e.prototype.ensureCalculationDimension=function(t,r){var n=this._calcDimNameToIdx,i=this._dimensions,a=n.get(t);if(a!=null){if(i[a].type===r)return a}else a=i.length;return i[a]={type:r},n.set(t,a),this._chunks[a]=new Um[r||"float"](this._rawCount),this._rawExtent[a]=Xi(),a},e.prototype.collectOrdinalMeta=function(t,r){var n=this._chunks[t],i=this._dimensions[t],a=this._rawExtent,o=i.ordinalOffset||0,s=n.length;o===0&&(a[t]=Xi());for(var l=a[t],u=o;u<s;u++){var f=n[u]=r.parseAndCollect(n[u]);isNaN(f)||(l[0]=Math.min(f,l[0]),l[1]=Math.max(f,l[1]))}i.ordinalMeta=r,i.ordinalOffset=s,i.type="ordinal"},e.prototype.getOrdinalMeta=function(t){var r=this._dimensions[t],n=r.ordinalMeta;return n},e.prototype.getDimensionProperty=function(t){var r=this._dimensions[t];return r&&r.property},e.prototype.appendData=function(t){process.env.NODE_ENV!=="production"&&vt(!this._indices,"appendData can only be called on raw data.");var r=this._provider,n=this.count();r.appendData(t);var i=r.count();return r.persistent||(i+=n),n<i&&this._initDataFromProvider(n,i,!0),[n,i]},e.prototype.appendValues=function(t,r){for(var n=this._chunks,i=this._dimensions,a=i.length,o=this._rawExtent,s=this.count(),l=s+Math.max(t.length,r||0),u=0;u<a;u++){var f=i[u];Wm(n,u,f.type,l,!0)}for(var c=[],d=s;d<l;d++)for(var h=d-s,v=0;v<a;v++){var f=i[v],g=bh.arrayRows.call(this,t[h]||c,f.property,h,v);n[v][d]=g;var m=o[v];g<m[0]&&(m[0]=g),g>m[1]&&(m[1]=g)}return this._rawCount=this._count=l,{start:s,end:l}},e.prototype._initDataFromProvider=function(t,r,n){for(var i=this._provider,a=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=ft(o,function(y){return y.property}),f=0;f<s;f++){var c=o[f];l[f]||(l[f]=Xi()),Wm(a,f,c.type,r,n)}if(i.fillStorage)i.fillStorage(t,r,a,l);else for(var d=[],h=t;h<r;h++){d=i.getItem(h,d);for(var v=0;v<s;v++){var g=a[v],m=this._dimValueGetter(d,u[v],h,v);g[h]=m;var p=l[v];m<p[0]&&(p[0]=m),m>p[1]&&(p[1]=m)}}!i.persistent&&i.clean&&i.clean(),this._rawCount=this._count=r,this._extent=[]},e.prototype.count=function(){return this._count},e.prototype.get=function(t,r){if(!(r>=0&&r<this._count))return NaN;var n=this._chunks[t];return n?n[this.getRawIndex(r)]:NaN},e.prototype.getValues=function(t,r){var n=[],i=[];if(r==null){r=t,t=[];for(var a=0;a<this._dimensions.length;a++)i.push(a)}else i=t;for(var a=0,o=i.length;a<o;a++)n.push(this.get(i[a],r));return n},e.prototype.getByRawIndex=function(t,r){if(!(r>=0&&r<this._rawCount))return NaN;var n=this._chunks[t];return n?n[r]:NaN},e.prototype.getSum=function(t){var r=this._chunks[t],n=0;if(r)for(var i=0,a=this.count();i<a;i++){var o=this.get(t,i);isNaN(o)||(n+=o)}return n},e.prototype.getMedian=function(t){var r=[];this.each([t],function(a){isNaN(a)||r.push(a)});var n=r.sort(function(a,o){return a-o}),i=this.count();return i===0?0:i%2===1?n[(i-1)/2]:(n[i/2]+n[i/2-1])/2},e.prototype.indexOfRawIndex=function(t){if(t>=this._rawCount||t<0)return-1;if(!this._indices)return t;var r=this._indices,n=r[t];if(n!=null&&n<this._count&&n===t)return t;for(var i=0,a=this._count-1;i<=a;){var o=(i+a)/2|0;if(r[o]<t)i=o+1;else if(r[o]>t)a=o-1;else return o}return-1},e.prototype.getIndices=function(){var t,r=this._indices;if(r){var n=r.constructor,i=this._count;if(n===Array){t=new n(i);for(var a=0;a<i;a++)t[a]=r[a]}else t=new n(r.buffer,0,i)}else{var n=Yi(this._rawCount);t=new n(this.count());for(var a=0;a<t.length;a++)t[a]=a}return t},e.prototype.filter=function(t,r){if(!this._count)return this;for(var n=this.clone(),i=n.count(),a=Yi(n._rawCount),o=new a(i),s=[],l=t.length,u=0,f=t[0],c=n._chunks,d=0;d<i;d++){var h=void 0,v=n.getRawIndex(d);if(l===0)h=r(d);else if(l===1){var g=c[f][v];h=r(g,d)}else{for(var m=0;m<l;m++)s[m]=c[t[m]][v];s[m]=d,h=r.apply(null,s)}h&&(o[u++]=v)}return u<i&&(n._indices=o),n._count=u,n._extent=[],n._updateGetRawIdx(),n},e.prototype.selectRange=function(t){var r=this.clone(),n=r._count;if(!n)return this;var i=Mt(t),a=i.length;if(!a)return this;var o=r.count(),s=Yi(r._rawCount),l=new s(o),u=0,f=i[0],c=t[f][0],d=t[f][1],h=r._chunks,v=!1;if(!r._indices){var g=0;if(a===1){for(var m=h[i[0]],p=0;p<n;p++){var y=m[p];(y>=c&&y<=d||isNaN(y))&&(l[u++]=g),g++}v=!0}else if(a===2){for(var m=h[i[0]],_=h[i[1]],b=t[i[1]][0],x=t[i[1]][1],p=0;p<n;p++){var y=m[p],w=_[p];(y>=c&&y<=d||isNaN(y))&&(w>=b&&w<=x||isNaN(w))&&(l[u++]=g),g++}v=!0}}if(!v)if(a===1)for(var p=0;p<o;p++){var S=r.getRawIndex(p),y=h[i[0]][S];(y>=c&&y<=d||isNaN(y))&&(l[u++]=S)}else for(var p=0;p<o;p++){for(var L=!0,S=r.getRawIndex(p),C=0;C<a;C++){var D=i[C],y=h[D][S];(y<t[D][0]||y>t[D][1])&&(L=!1)}L&&(l[u++]=r.getRawIndex(p))}return u<o&&(r._indices=l),r._count=u,r._extent=[],r._updateGetRawIdx(),r},e.prototype.map=function(t,r){var n=this.clone(t);return this._updateDims(n,t,r),n},e.prototype.modify=function(t,r){this._updateDims(this,t,r)},e.prototype._updateDims=function(t,r,n){for(var i=t._chunks,a=[],o=r.length,s=t.count(),l=[],u=t._rawExtent,f=0;f<r.length;f++)u[r[f]]=Xi();for(var c=0;c<s;c++){for(var d=t.getRawIndex(c),h=0;h<o;h++)l[h]=i[r[h]][d];l[o]=c;var v=n&&n.apply(null,l);if(v!=null){typeof v!="object"&&(a[0]=v,v=a);for(var f=0;f<v.length;f++){var g=r[f],m=v[f],p=u[g],y=i[g];y&&(y[d]=m),m<p[0]&&(p[0]=m),m>p[1]&&(p[1]=m)}}}},e.prototype.lttbDownSample=function(t,r){var n=this.clone([t],!0),i=n._chunks,a=i[t],o=this.count(),s=0,l=Math.floor(1/r),u=this.getRawIndex(0),f,c,d,h=new(Yi(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));h[s++]=u;for(var v=1;v<o-1;v+=l){for(var g=Math.min(v+l,o-1),m=Math.min(v+l*2,o),p=(m+g)/2,y=0,_=g;_<m;_++){var b=this.getRawIndex(_),x=a[b];isNaN(x)||(y+=x)}y/=m-g;var w=v,S=Math.min(v+l,o),L=v-1,C=a[u];f=-1,d=w;for(var D=-1,I=0,_=w;_<S;_++){var b=this.getRawIndex(_),x=a[b];if(isNaN(x)){I++,D<0&&(D=b);continue}c=Math.abs((L-p)*(x-C)-(L-_)*(y-C)),c>f&&(f=c,d=b)}I>0&&I<S-w&&(h[s++]=Math.min(D,d),d=Math.max(D,d)),h[s++]=d,u=d}return h[s++]=this.getRawIndex(o-1),n._count=s,n._indices=h,n.getRawIndex=this._getRawIdx,n},e.prototype.minmaxDownSample=function(t,r){for(var n=this.clone([t],!0),i=n._chunks,a=Math.floor(1/r),o=i[t],s=this.count(),l=new(Yi(this._rawCount))(Math.ceil(s/a)*2),u=0,f=0;f<s;f+=a){var c=f,d=o[this.getRawIndex(c)],h=f,v=o[this.getRawIndex(h)],g=a;f+a>s&&(g=s-f);for(var m=0;m<g;m++){var p=this.getRawIndex(f+m),y=o[p];y<d&&(d=y,c=f+m),y>v&&(v=y,h=f+m)}var _=this.getRawIndex(c),b=this.getRawIndex(h);c<h?(l[u++]=_,l[u++]=b):(l[u++]=b,l[u++]=_)}return n._count=u,n._indices=l,n._updateGetRawIdx(),n},e.prototype.downSample=function(t,r,n,i){for(var a=this.clone([t],!0),o=a._chunks,s=[],l=Math.floor(1/r),u=o[t],f=this.count(),c=a._rawExtent[t]=Xi(),d=new(Yi(this._rawCount))(Math.ceil(f/l)),h=0,v=0;v<f;v+=l){l>f-v&&(l=f-v,s.length=l);for(var g=0;g<l;g++){var m=this.getRawIndex(v+g);s[g]=u[m]}var p=n(s),y=this.getRawIndex(Math.min(v+i(s,p)||0,f-1));u[y]=p,p<c[0]&&(c[0]=p),p>c[1]&&(c[1]=p),d[h++]=y}return a._count=h,a._indices=d,a._updateGetRawIdx(),a},e.prototype.each=function(t,r){if(this._count)for(var n=t.length,i=this._chunks,a=0,o=this.count();a<o;a++){var s=this.getRawIndex(a);switch(n){case 0:r(a);break;case 1:r(i[t[0]][s],a);break;case 2:r(i[t[0]][s],i[t[1]][s],a);break;default:for(var l=0,u=[];l<n;l++)u[l]=i[t[l]][s];u[l]=a,r.apply(null,u)}}},e.prototype.getDataExtent=function(t){var r=this._chunks[t],n=Xi();if(!r)return n;var i=this.count(),a=!this._indices,o;if(a)return this._rawExtent[t].slice();if(o=this._extent[t],o)return o.slice();o=n;for(var s=o[0],l=o[1],u=0;u<i;u++){var f=this.getRawIndex(u),c=r[f];c<s&&(s=c),c>l&&(l=c)}return o=[s,l],this._extent[t]=o,o},e.prototype.getRawDataItem=function(t){var r=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(r);for(var n=[],i=this._chunks,a=0;a<i.length;a++)n.push(i[a][r]);return n},e.prototype.clone=function(t,r){var n=new e,i=this._chunks,a=t&&qr(t,function(s,l){return s[l]=!0,s},{});if(a)for(var o=0;o<i.length;o++)n._chunks[o]=a[o]?zE(i[o]):i[o];else n._chunks=i;return this._copyCommonProps(n),r||(n._indices=this._cloneIndices()),n._updateGetRawIdx(),n},e.prototype._copyCommonProps=function(t){t._count=this._count,t._rawCount=this._rawCount,t._provider=this._provider,t._dimensions=this._dimensions,t._extent=At(this._extent),t._rawExtent=At(this._rawExtent)},e.prototype._cloneIndices=function(){if(this._indices){var t=this._indices.constructor,r=void 0;if(t===Array){var n=this._indices.length;r=new t(n);for(var i=0;i<n;i++)r[i]=this._indices[i]}else r=new t(this._indices);return r}return null},e.prototype._getRawIdxIdentity=function(t){return t},e.prototype._getRawIdx=function(t){return t<this._count&&t>=0?this._indices[t]:-1},e.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},e.internalField=(function(){function t(r,n,i,a){return El(r[a],this._dimensions[a])}bh={arrayRows:t,objectRows:function(r,n,i,a){return El(r[n],this._dimensions[a])},keyedColumns:t,original:function(r,n,i,a){var o=r&&(r.value==null?r:r.value);return El(o instanceof Array?o[a]:o,this._dimensions[a])},typedArray:function(r,n,i,a){return r[a]}}})(),e})(),VE=(function(){function e(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return e.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},e.prototype._setLocalSource=function(t,r){this._sourceList=t,this._upstreamSignList=r,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},e.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},e.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},e.prototype._createSource=function(){this._setLocalSource([],[]);var t=this._sourceHost,r=this._getUpstreamSourceManagers(),n=!!r.length,i,a;if(so(t)){var o=t,s=void 0,l=void 0,u=void 0;if(n){var f=r[0];f.prepareSource(),u=f.getSource(),s=u.data,l=u.sourceFormat,a=[f._getVersionSign()]}else s=o.get("data",!0),l=ye(s)?zr:Pe,a=[];var c=this._getSourceMetaRawOption()||{},d=u&&u.metaRawOption||{},h=ct(c.seriesLayoutBy,d.seriesLayoutBy)||null,v=ct(c.sourceHeader,d.sourceHeader),g=ct(c.dimensions,d.dimensions),m=h!==d.seriesLayoutBy||!!v!=!!d.sourceHeader||g;i=m?[mh(s,{seriesLayoutBy:h,sourceHeader:v,dimensions:g},l)]:[]}else{var p=t;if(n){var y=this._applyTransform(r);i=y.sourceList,a=y.upstreamSignList}else{var _=p.get("source",!0);i=[mh(_,this._getSourceMetaRawOption(),null)],a=[]}}process.env.NODE_ENV!=="production"&&vt(i&&a),this._setLocalSource(i,a)},e.prototype._applyTransform=function(t){var r=this._sourceHost,n=r.get("transform",!0),i=r.get("fromTransformResult",!0);if(process.env.NODE_ENV!=="production"&&vt(i!=null||n!=null),i!=null){var a="";t.length!==1&&(process.env.NODE_ENV!=="production"&&(a="When using `fromTransformResult`, there should be only one upstream dataset"),Zm(a))}var o,s=[],l=[];return O(t,function(u){u.prepareSource();var f=u.getSource(i||0),c="";i!=null&&!f&&(process.env.NODE_ENV!=="production"&&(c="Can not retrieve result by `fromTransformResult`: "+i),Zm(c)),s.push(f),l.push(u._getVersionSign())}),n?o=OE(n,s,{datasetIndex:r.componentIndex}):i!=null&&(o=[yE(s[0])]),{sourceList:o,upstreamSignList:l}},e.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),r=0;r<t.length;r++){var n=t[r];if(n._isDirty()||this._upstreamSignList[r]!==n._getVersionSign())return!0}},e.prototype.getSource=function(t){t=t||0;var r=this._sourceList[t];if(!r){var n=this._getUpstreamSourceManagers();return n[0]&&n[0].getSource(t)}return r},e.prototype.getSharedDataStore=function(t){process.env.NODE_ENV!=="production"&&vt(so(this._sourceHost),"Can only call getDataStore on series source manager.");var r=t.makeStoreSchema();return this._innerGetDataStore(r.dimensions,t.source,r.hash)},e.prototype._innerGetDataStore=function(t,r,n){var i=0,a=this._storeList,o=a[i];o||(o=a[i]={});var s=o[n];if(!s){var l=this._getUpstreamSourceManagers()[0];so(this._sourceHost)&&l?s=l._innerGetDataStore(t,r,n):(s=new Sh,s.initData(new Pm(r,t.length),t)),o[n]=s}return s},e.prototype._getUpstreamSourceManagers=function(){var t=this._sourceHost;if(so(t)){var r=fh(t);return r?[r.getSourceManager()]:[]}else return ft(WA(t),function(n){return n.getSourceManager()})},e.prototype._getSourceMetaRawOption=function(){var t=this._sourceHost,r,n,i;if(so(t))r=t.get("seriesLayoutBy",!0),n=t.get("sourceHeader",!0),i=t.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var a=t;r=a.get("seriesLayoutBy",!0),n=a.get("sourceHeader",!0),i=a.get("dimensions",!0)}return{seriesLayoutBy:r,sourceHeader:n,dimensions:i}},e})();function so(e){return e.mainType==="series"}function Zm(e){throw new Error(e)}var GE="line-height:1";function Ym(e){var t=e.lineHeight;return t==null?GE:"line-height:"+be(t+"")+"px"}function Xm(e,t){var r=e.color||dt.color.tertiary,n=e.fontSize||12,i=e.fontWeight||"400",a=e.color||dt.color.secondary,o=e.fontSize||14,s=e.fontWeight||"900";return t==="html"?{nameStyle:"font-size:"+be(n+"")+"px;color:"+be(r)+";font-weight:"+be(i+""),valueStyle:"font-size:"+be(o+"")+"px;color:"+be(a)+";font-weight:"+be(s+"")}:{nameStyle:{fontSize:n,fill:r,fontWeight:i},valueStyle:{fontSize:o,fill:a,fontWeight:s}}}var HE=[0,10,20,30],UE=["",`
|
|
64
|
+
`,`
|
|
65
|
+
|
|
66
|
+
`,`
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
`];function lo(e,t){return t.type=e,t}function xh(e){return e.type==="section"}function qm(e){return xh(e)?WE:ZE}function jm(e){if(xh(e)){var t=0,r=e.blocks.length,n=r>1||r>0&&!e.noHeader;return O(e.blocks,function(i){var a=jm(i);a>=t&&(t=a+ +(n&&(!a||xh(i)&&!i.noHeader)))}),t}return 0}function WE(e,t,r,n){var i=t.noHeader,a=YE(jm(t)),o=[],s=t.blocks||[];vt(!s||st(s)),s=s||[];var l=e.orderMode;if(t.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(Je(u,l)){var f=new LE(u[l],null);s.sort(function(g,m){return f.evaluate(g.sortParam,m.sortParam)})}else l==="seriesDesc"&&s.reverse()}O(s,function(g,m){var p=t.valueFormatter,y=qm(g)(p?et(et({},e),{valueFormatter:p}):e,g,m>0?a.html:0,n);y!=null&&o.push(y)});var c=e.renderMode==="richText"?o.join(a.richText):wh(n,o.join(""),i?r:a.html);if(i)return c;var d=rh(t.header,"ordinal",e.useUTC),h=Xm(n,e.renderMode).nameStyle,v=Ym(n);return e.renderMode==="richText"?Km(e,d,h)+a.richText+c:wh(n,'<div style="'+h+";"+v+';">'+be(d)+"</div>"+c,r)}function ZE(e,t,r,n){var i=e.renderMode,a=t.noName,o=t.noValue,s=!t.markerType,l=t.name,u=e.useUTC,f=t.valueFormatter||e.valueFormatter||function(b){return b=st(b)?b:[b],ft(b,function(x,w){return rh(x,st(h)?h[w]:h,u)})};if(!(a&&o)){var c=s?"":e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||dt.color.secondary,i),d=a?"":rh(l,"ordinal",u),h=t.valueType,v=o?[]:f(t.value,t.dataIndex),g=!s||!a,m=!s&&a,p=Xm(n,i),y=p.nameStyle,_=p.valueStyle;return i==="richText"?(s?"":c)+(a?"":Km(e,d,y))+(o?"":jE(e,v,g,m,_)):wh(n,(s?"":c)+(a?"":XE(d,!s,y))+(o?"":qE(v,g,m,_)),r)}}function Qm(e,t,r,n,i,a){if(e){var o=qm(e),s={useUTC:i,renderMode:r,orderMode:n,markupStyleCreator:t,valueFormatter:e.valueFormatter};return o(s,e,0,a)}}function YE(e){return{html:HE[e],richText:UE[e]}}function wh(e,t,r){var n='<div style="clear:both"></div>',i="margin: "+r+"px 0 0",a=Ym(e);return'<div style="'+i+";"+a+';">'+t+n+"</div>"}function XE(e,t,r){var n=t?"margin-left:2px":"";return'<span style="'+r+";"+n+'">'+be(e)+"</span>"}function qE(e,t,r,n){var i=r?"10px":"20px",a=t?"float:right;margin-left:"+i:"";return e=st(e)?e:[e],'<span style="'+a+";"+n+'">'+ft(e,function(o){return be(o)}).join(" ")+"</span>"}function Km(e,t,r){return e.markupStyleCreator.wrapRichTextStyle(t,r)}function jE(e,t,r,n,i){var a=[i],o=n?10:20;return r&&a.push({padding:[0,0,0,o],align:"right"}),e.markupStyleCreator.wrapRichTextStyle(st(t)?t.join(" "):t,a)}function QE(e,t){var r=e.getData().getItemVisual(t,"style"),n=r[e.visualDrawType];return Kn(n)}function Jm(e,t){var r=e.get("padding");return r??(t==="richText"?[8,10]:10)}var Th=(function(){function e(){this.richTextStyles={},this._nextStyleNameId=tg()}return e.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},e.prototype.makeTooltipMarker=function(t,r,n){var i=n==="richText"?this._generateStyleName():null,a=EA({color:r,type:t,renderMode:n,markerId:i});return ut(a)?a:(process.env.NODE_ENV!=="production"&&vt(i),this.richTextStyles[i]=a.style,a.content)},e.prototype.wrapRichTextStyle=function(t,r){var n={};st(r)?O(r,function(a){return et(n,a)}):et(n,r);var i=this._generateStyleName();return this.richTextStyles[i]=n,"{"+i+"|"+t+"}"},e})();function KE(e){var t=e.series,r=e.dataIndex,n=e.multipleSeries,i=t.getData(),a=i.mapDimensionsAll("defaultedTooltip"),o=a.length,s=t.getRawValue(r),l=st(s),u=QE(t,r),f,c,d,h;if(o>1||l&&!o){var v=JE(s,t,r,a,u);f=v.inlineValues,c=v.inlineValueTypes,d=v.blocks,h=v.inlineValues[0]}else if(o){var g=i.getDimensionInfo(a[0]);h=f=Zi(i,r,a[0]),c=g.type}else h=f=l?s[0]:s;var m=Zf(t),p=m&&t.name||"",y=i.getName(r),_=n?p:y;return lo("section",{header:p,noHeader:n||!m,sortParam:h,blocks:[lo("nameValue",{markerType:"item",markerColor:u,name:_,noName:!fr(_),value:f,valueType:c,dataIndex:r})].concat(d||[])})}function JE(e,t,r,n,i){var a=t.getData(),o=qr(e,function(c,d,h){var v=a.getDimensionInfo(h);return c=c||v&&v.tooltip!==!1&&v.displayName!=null},!1),s=[],l=[],u=[];n.length?O(n,function(c){f(Zi(a,r,c),c)}):O(e,f);function f(c,d){var h=a.getDimensionInfo(d);!h||h.otherDims.tooltip===!1||(o?u.push(lo("nameValue",{markerType:"subItem",markerColor:i,name:h.displayName,value:c,valueType:h.type})):(s.push(c),l.push(h.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var dn=Zt();function Ml(e,t){return e.getName(t)||e.getId(t)}var tL="__universalTransitionEnabled",je=(function(e){it(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r._selectedDataIndicesMap={},r}return t.prototype.init=function(r,n,i){this.seriesIndex=this.componentIndex,this.dataTask=oo({count:rL,reset:nL}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(r,i);var a=dn(this).sourceManager=new VE(this);a.prepareSource();var o=this.getInitialData(r,i);ey(o,this),this.dataTask.context.data=o,process.env.NODE_ENV!=="production"&&vt(o,"getInitialData returned invalid data."),dn(this).dataBeforeProcessed=o,ty(this),this._initSelectedMapFromData(o)},t.prototype.mergeDefaultAndTheme=function(r,n){var i=to(this),a=i?eo(r):{},o=this.subType;kt.hasClass(o)&&(o+="Series"),Gt(r,n.getTheme().get(this.subType)),Gt(r,this.getDefaultOption()),Wf(r,"label",["show"]),this.fillDataTextStyle(r.data),i&&hn(r,a,i)},t.prototype.mergeOption=function(r,n){r=Gt(this.option,r,!0),this.fillDataTextStyle(r.data);var i=to(this);i&&hn(this.option,r,i);var a=dn(this).sourceManager;a.dirty(),a.prepareSource();var o=this.getInitialData(r,n);ey(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,dn(this).dataBeforeProcessed=o,ty(this),this._initSelectedMapFromData(o)},t.prototype.fillDataTextStyle=function(r){if(r&&!ye(r))for(var n=["show"],i=0;i<r.length;i++)r[i]&&r[i].label&&Wf(r[i],"label",n)},t.prototype.getInitialData=function(r,n){},t.prototype.appendData=function(r){var n=this.getRawData();n.appendData(r.data)},t.prototype.getData=function(r){var n=Ch(this);if(n){var i=n.context.data;return r==null||!i.getLinkedData?i:i.getLinkedData(r)}else return dn(this).data},t.prototype.getAllData=function(){var r=this.getData();return r&&r.getLinkedDataAll?r.getLinkedDataAll():[{data:r}]},t.prototype.setData=function(r){var n=Ch(this);if(n){var i=n.context;i.outputData=r,n!==this.dataTask&&(i.data=r)}dn(this).data=r},t.prototype.getEncode=function(){var r=this.get("encode",!0);if(r)return Tt(r)},t.prototype.getSourceManager=function(){return dn(this).sourceManager},t.prototype.getSource=function(){return this.getSourceManager().getSource()},t.prototype.getRawData=function(){return dn(this).dataBeforeProcessed},t.prototype.getColorBy=function(){var r=this.get("colorBy");return r||"series"},t.prototype.isColorBySeries=function(){return this.getColorBy()==="series"},t.prototype.getBaseAxis=function(){var r=this.coordinateSystem;return r&&r.getBaseAxis&&r.getBaseAxis()},t.prototype.indicesOfNearest=function(r,n,i,a){var o=this.getData(),s=this.coordinateSystem,l=s&&s.getAxis(r);if(!s||!l)return[];var u=l.dataToCoord(i);a==null&&(a=1/0);var f=[],c=1/0,d=-1,h=0;return o.each(n,function(v,g){var m=l.dataToCoord(v),p=u-m,y=Math.abs(p);y<=a&&((y<c||y===c&&p>=0&&d<0)&&(c=y,d=p,h=0),p===d&&(f[h++]=g))}),f.length=h,f},t.prototype.formatTooltip=function(r,n,i){return KE({series:this,dataIndex:r,multipleSeries:n})},t.prototype.isAnimationEnabled=function(){var r=this.ecModel;if(xt.node&&!(r&&r.ssr))return!1;var n=this.getShallow("animation");return n&&this.getData().count()>this.getShallow("animationThreshold")&&(n=!1),!!n},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(r,n,i){var a=this.ecModel,o=ch.prototype.getColorFromPalette.call(this,r,n,i);return o||(o=a.getColorFromPalette(r,n,i)),o},t.prototype.coordDimToDataDim=function(r){return this.getRawData().mapDimensionsAll(r)},t.prototype.getProgressive=function(){return this.get("progressive")},t.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},t.prototype.select=function(r,n){this._innerSelect(this.getData(n),r)},t.prototype.unselect=function(r,n){var i=this.option.selectedMap;if(i){var a=this.option.selectedMode,o=this.getData(n);if(a==="series"||i==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s<r.length;s++){var l=r[s],u=Ml(o,l);i[u]=!1,this._selectedDataIndicesMap[u]=-1}}},t.prototype.toggleSelect=function(r,n){for(var i=[],a=0;a<r.length;a++)i[0]=r[a],this.isSelected(r[a],n)?this.unselect(i,n):this.select(i,n)},t.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap==="all")return[].slice.call(this.getData().getIndices());for(var r=this._selectedDataIndicesMap,n=Mt(r),i=[],a=0;a<n.length;a++){var o=r[n[a]];o>=0&&i.push(o)}return i},t.prototype.isSelected=function(r,n){var i=this.option.selectedMap;if(!i)return!1;var a=this.getData(n);return(i==="all"||i[Ml(a,r)])&&!a.getItemModel(r).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[tL])return!0;var r=this.option.universalTransition;return r?r===!0?!0:r&&r.enabled:!1},t.prototype._innerSelect=function(r,n){var i,a,o=this.option,s=o.selectedMode,l=n.length;if(!(!s||!l)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){pt(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,f=0;f<l;f++){var c=n[f],d=Ml(r,c);u[d]=!0,this._selectedDataIndicesMap[d]=r.getRawIndex(c)}}else if(s==="single"||s===!0){var h=n[l-1],d=Ml(r,h);o.selectedMap=(i={},i[d]=!0,i),this._selectedDataIndicesMap=(a={},a[d]=r.getRawIndex(h),a)}}},t.prototype._initSelectedMapFromData=function(r){if(!this.option.selectedMap){var n=[];r.hasItemOption&&r.each(function(i){var a=r.getRawDataItem(i);a&&a.selected&&n.push(i)}),n.length>0&&this._innerSelect(r,n)}},t.registerClass=function(r){return kt.registerClass(r)},t.protoInitialize=(function(){var r=t.prototype;r.type="series.__base__",r.seriesIndex=0,r.ignoreStyleOnData=!1,r.hasSymbolVisual=!1,r.defaultSymbol="circle",r.visualStyleAccessPath="itemStyle",r.visualDrawType="fill"})(),t})(kt);ur(je,AE),ur(je,ch),dg(je,kt);function ty(e){var t=e.name;Zf(e)||(e.name=eL(e)||t)}function eL(e){var t=e.getRawData(),r=t.mapDimensionsAll("seriesName"),n=[];return O(r,function(i){var a=t.getDimensionInfo(i);a.displayName&&n.push(a.displayName)}),n.join(" ")}function rL(e){return e.model.getRawData().count()}function nL(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),iL}function iL(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function ey(e,t){O(Xx(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(r){e.wrapMethod(r,Kt(aL,t))})}function aL(e,t){var r=Ch(e);return r&&r.setOutputEnd((t||this).count()),t}function Ch(e){var t=(e.ecModel||{}).scheduler,r=t&&t.getPipeline(e.uid);if(r){var n=r.currentTask;if(n){var i=n.agentStubMap;i&&(n=i.get(e.uid))}return n}}var ar=(function(){function e(){this.group=new ne,this.uid=ul("viewComponent")}return e.prototype.init=function(t,r){},e.prototype.render=function(t,r,n,i){},e.prototype.dispose=function(t,r){},e.prototype.updateView=function(t,r,n,i){},e.prototype.updateLayout=function(t,r,n,i){},e.prototype.updateVisual=function(t,r,n,i){},e.prototype.toggleBlurSeries=function(t,r,n){},e.prototype.eachRendered=function(t){var r=this.group;r&&r.traverse(t)},e})();qf(ar),Ds(ar);function Ah(){var e=Zt();return function(t){var r=e(t),n=t.pipelineContext,i=!!r.large,a=!!r.progressiveRender,o=r.large=!!(n&&n.large),s=r.progressiveRender=!!(n&&n.progressiveRender);return(i!==o||a!==s)&&"reset"}}var ry=Zt(),oL=Ah(),Ne=(function(){function e(){this.group=new ne,this.uid=ul("viewChart"),this.renderTask=oo({plan:sL,reset:lL}),this.renderTask.context={view:this}}return e.prototype.init=function(t,r){},e.prototype.render=function(t,r,n,i){if(process.env.NODE_ENV!=="production")throw new Error("render method must been implemented")},e.prototype.highlight=function(t,r,n,i){var a=t.getData(i&&i.dataType);if(!a){process.env.NODE_ENV!=="production"&&zt("Unknown dataType "+i.dataType);return}iy(a,i,"emphasis")},e.prototype.downplay=function(t,r,n,i){var a=t.getData(i&&i.dataType);if(!a){process.env.NODE_ENV!=="production"&&zt("Unknown dataType "+i.dataType);return}iy(a,i,"normal")},e.prototype.remove=function(t,r){this.group.removeAll()},e.prototype.dispose=function(t,r){},e.prototype.updateView=function(t,r,n,i){this.render(t,r,n,i)},e.prototype.updateLayout=function(t,r,n,i){this.render(t,r,n,i)},e.prototype.updateVisual=function(t,r,n,i){this.render(t,r,n,i)},e.prototype.eachRendered=function(t){al(this.group,t)},e.markUpdateMethod=function(t,r){ry(t).updateMethod=r},e.protoInitialize=(function(){var t=e.prototype;t.type="chart"})(),e})();function ny(e,t,r){e&&Fi(e)&&(t==="emphasis"?Ws:Zs)(e,r)}function iy(e,t,r){var n=On(e,t),i=t&&t.highlightKey!=null?iC(t.highlightKey):null;n!=null?O(Se(n),function(a){ny(e.getItemGraphicEl(a),r,i)}):e.eachItemGraphicEl(function(a){ny(a,r,i)})}qf(Ne,["dispose"]),Ds(Ne);function sL(e){return oL(e.model)}function lL(e){var t=e.model,r=e.ecModel,n=e.api,i=e.payload,a=t.pipelineContext.progressiveRender,o=e.view,s=i&&ry(i).updateMethod,l=a?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](t,r,n,i),uL[l]}var uL={incrementalPrepareRender:{progress:function(e,t){t.view.incrementalRender(e,t.model,t.ecModel,t.api,t.payload)}},render:{forceFirstProgress:!0,progress:function(e,t){t.view.render(t.model,t.ecModel,t.api,t.payload)}}},Dl="\0__throttleOriginMethod",ay="\0__throttleRate",oy="\0__throttleType";function Eh(e,t,r){var n,i=0,a=0,o=null,s,l,u,f;t=t||0;function c(){a=new Date().getTime(),o=null,e.apply(l,u||[])}var d=function(){for(var h=[],v=0;v<arguments.length;v++)h[v]=arguments[v];n=new Date().getTime(),l=this,u=h;var g=f||t,m=f||r;f=null,s=n-(m?i:a)-g,clearTimeout(o),m?o=setTimeout(c,g):s>=0?c():o=setTimeout(c,-s),i=n};return d.clear=function(){o&&(clearTimeout(o),o=null)},d.debounceNextCall=function(h){f=h},d}function sy(e,t,r,n){var i=e[t];if(i){var a=i[Dl]||i,o=i[oy],s=i[ay];if(s!==r||o!==n){if(r==null||!n)return e[t]=a;i=e[t]=Eh(a,r,n==="debounce"),i[Dl]=a,i[oy]=n,i[ay]=r}return i}}function Lh(e,t){var r=e[t];r&&r[Dl]&&(r.clear&&r.clear(),e[t]=r[Dl])}var ly=Zt(),uy={itemStyle:Na(V0,!0),lineStyle:Na(z0,!0)},fL={lineStyle:"stroke",itemStyle:"fill"};function fy(e,t){var r=e.visualStyleMapper||uy[t];return r||(console.warn("Unknown style type '"+t+"'."),uy.itemStyle)}function cy(e,t){var r=e.visualDrawType||fL[t];return r||(console.warn("Unknown style type '"+t+"'."),"fill")}var cL={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var r=e.getData(),n=e.visualStyleAccessPath||"itemStyle",i=e.getModel(n),a=fy(e,n),o=a(i),s=i.getShallow("decal");s&&(r.setVisual("decal",s),s.dirty=!0);var l=cy(e,n),u=o[l],f=_t(u)?u:null,c=o.fill==="auto"||o.stroke==="auto";if(!o[l]||f||c){var d=e.getColorFromPalette(e.name,null,t.getSeriesCount());o[l]||(o[l]=d,r.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||_t(o.fill)?d:o.fill,o.stroke=o.stroke==="auto"||_t(o.stroke)?d:o.stroke}if(r.setVisual("style",o),r.setVisual("drawType",l),!t.isSeriesFiltered(e)&&f)return r.setVisual("colorFromPalette",!1),{dataEach:function(h,v){var g=e.getDataParams(v),m=et({},o);m[l]=f(g),h.setItemVisual(v,"style",m)}}}},uo=new Yt,hL={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!(e.ignoreStyleOnData||t.isSeriesFiltered(e))){var r=e.getData(),n=e.visualStyleAccessPath||"itemStyle",i=fy(e,n),a=r.getVisual("drawType");return{dataEach:r.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[n]){uo.option=l[n];var u=i(uo),f=o.ensureUniqueItemVisual(s,"style");et(f,u),uo.option.decal&&(o.setItemVisual(s,"decal",uo.option.decal),uo.option.decal.dirty=!0),a in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},dL={performRawSeries:!0,overallReset:function(e){var t=Tt();e.eachSeries(function(r){var n=r.getColorBy();if(!r.isColorBySeries()){var i=r.type+"-"+n,a=t.get(i);a||(a={},t.set(i,a)),ly(r).scope=a}}),e.eachSeries(function(r){if(!(r.isColorBySeries()||e.isSeriesFiltered(r))){var n=r.getRawData(),i={},a=r.getData(),o=ly(r).scope,s=r.visualStyleAccessPath||"itemStyle",l=cy(r,s);a.each(function(u){var f=a.getRawIndex(u);i[f]=u}),n.each(function(u){var f=i[u],c=a.getItemVisual(f,"colorFromPalette");if(c){var d=a.ensureUniqueItemVisual(f,"style"),h=n.getName(u)||u+"",v=n.count();d[l]=r.getColorFromPalette(h,o,v)}})}})}},Il=Math.PI;function vL(e,t){t=t||{},Bt(t,{text:"loading",textColor:dt.color.primary,fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255,255,255,0.8)",showSpinner:!0,color:dt.color.theme[0],spinnerRadius:10,lineWidth:5,zlevel:0});var r=new ne,n=new qt({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});r.add(n);var i=new fe({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),a=new qt({style:{fill:"none"},textContent:i,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});r.add(a);var o;return t.showSpinner&&(o=new Ks({shape:{startAngle:-Il/2,endAngle:-Il/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:"round",lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:Il*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:Il*3/2}).delay(300).start("circularInOut"),r.add(o)),r.resize=function(){var s=i.getBoundingRect().width,l=t.showSpinner?t.spinnerRadius:0,u=(e.getWidth()-l*2-(t.showSpinner&&s?10:0)-s)/2-(t.showSpinner&&s?0:5+s/2)+(t.showSpinner?0:s/2)+(s?0:l),f=e.getHeight()/2;t.showSpinner&&o.setShape({cx:u,cy:f}),a.setShape({x:u-l,y:f-l,width:l*2,height:l*2}),n.setShape({x:0,y:0,width:e.getWidth(),height:e.getHeight()})},r.resize(),r}var hy=(function(){function e(t,r,n,i){this._stageTaskMap=Tt(),this.ecInstance=t,this.api=r,n=this._dataProcessorHandlers=n.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=n.concat(i)}return e.prototype.restoreData=function(t,r){t.restoreData(r),this._stageTaskMap.each(function(n){var i=n.overallTask;i&&i.dirty()})},e.prototype.getPerformArgs=function(t,r){if(t.__pipeline){var n=this._pipelineMap.get(t.__pipeline.id),i=n.context,a=!r&&n.progressiveEnabled&&(!i||i.progressiveRender)&&t.__idxInPipeline>n.blockIndex,o=a?n.step:null,s=i&&i.modDataCount,l=s!=null?Math.ceil(s/o):null;return{step:o,modBy:l,modDataCount:s}}},e.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},e.prototype.updateStreamModes=function(t,r){var n=this._pipelineMap.get(t.uid),i=t.getData(),a=i.count(),o=n.progressiveEnabled&&r.incrementalPrepareRender&&a>=n.threshold,s=t.get("large")&&a>=t.get("largeThreshold"),l=t.get("progressiveChunkMode")==="mod"?a:null;t.pipelineContext=n.context={progressiveRender:o,modDataCount:l,large:s}},e.prototype.restorePipelines=function(t){var r=this,n=r._pipelineMap=Tt();t.eachSeries(function(i){var a=i.getProgressive(),o=i.uid;n.set(o,{id:o,head:null,tail:null,threshold:i.getProgressiveThreshold(),progressiveEnabled:a&&!(i.preventIncremental&&i.preventIncremental()),blockIndex:-1,step:Math.round(a||700),count:0}),r._pipe(i,i.dataTask)})},e.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,r=this.api.getModel(),n=this.api;O(this._allHandlers,function(i){var a=t.get(i.uid)||t.set(i.uid,{}),o="";process.env.NODE_ENV!=="production"&&(o='"reset" and "overallReset" must not be both specified.'),vt(!(i.reset&&i.overallReset),o),i.reset&&this._createSeriesStageTask(i,a,r,n),i.overallReset&&this._createOverallStageTask(i,a,r,n)},this)},e.prototype.prepareView=function(t,r,n,i){var a=t.renderTask,o=a.context;o.model=r,o.ecModel=n,o.api=i,a.__block=!t.incrementalPrepareRender,this._pipe(r,a)},e.prototype.performDataProcessorTasks=function(t,r){this._performStageTasks(this._dataProcessorHandlers,t,r,{block:!0})},e.prototype.performVisualTasks=function(t,r,n){this._performStageTasks(this._visualHandlers,t,r,n)},e.prototype._performStageTasks=function(t,r,n,i){i=i||{};var a=!1,o=this;O(t,function(l,u){if(!(i.visualType&&i.visualType!==l.visualType)){var f=o._stageTaskMap.get(l.uid),c=f.seriesTaskMap,d=f.overallTask;if(d){var h,v=d.agentStubMap;v.each(function(m){s(i,m)&&(m.dirty(),h=!0)}),h&&d.dirty(),o.updatePayload(d,n);var g=o.getPerformArgs(d,i.block);v.each(function(m){m.perform(g)}),d.perform(g)&&(a=!0)}else c&&c.each(function(m,p){s(i,m)&&m.dirty();var y=o.getPerformArgs(m,i.block);y.skip=!l.performRawSeries&&r.isSeriesFiltered(m.context.model),o.updatePayload(m,n),m.perform(y)&&(a=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=a||this.unfinished},e.prototype.performSeriesTasks=function(t){var r;t.eachSeries(function(n){r=n.dataTask.perform()||r}),this.unfinished=r||this.unfinished},e.prototype.plan=function(){this._pipelineMap.each(function(t){var r=t.tail;do{if(r.__block){t.blockIndex=r.__idxInPipeline;break}r=r.getUpstream()}while(r)})},e.prototype.updatePayload=function(t,r){r!=="remain"&&(t.context.payload=r)},e.prototype._createSeriesStageTask=function(t,r,n,i){var a=this,o=r.seriesTaskMap,s=r.seriesTaskMap=Tt(),l=t.seriesType,u=t.getTargetSeries;t.createOnAllSeries?n.eachRawSeries(f):l?n.eachRawSeriesByType(l,f):u&&u(n,i).each(f);function f(c){var d=c.uid,h=s.set(d,o&&o.get(d)||oo({plan:_L,reset:bL,count:xL}));h.context={model:c,ecModel:n,api:i,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:a},a._pipe(c,h)}},e.prototype._createOverallStageTask=function(t,r,n,i){var a=this,o=r.overallTask=r.overallTask||oo({reset:pL});o.context={ecModel:n,api:i,overallReset:t.overallReset,scheduler:a};var s=o.agentStubMap,l=o.agentStubMap=Tt(),u=t.seriesType,f=t.getTargetSeries,c=!0,d=!1,h="";process.env.NODE_ENV!=="production"&&(h='"createOnAllSeries" is not supported for "overallReset", because it will block all streams.'),vt(!t.createOnAllSeries,h),u?n.eachRawSeriesByType(u,v):f?f(n,i).each(v):(c=!1,O(n.getSeries(),v));function v(g){var m=g.uid,p=l.set(m,s&&s.get(m)||(d=!0,oo({reset:gL,onDirty:yL})));p.context={model:g,overallProgress:c},p.agent=o,p.__block=c,a._pipe(g,p)}d&&o.dirty()},e.prototype._pipe=function(t,r){var n=t.uid,i=this._pipelineMap.get(n);!i.head&&(i.head=r),i.tail&&i.tail.pipe(r),i.tail=r,r.__idxInPipeline=i.count++,r.__pipeline=i},e.wrapStageHandler=function(t,r){return _t(t)&&(t={overallReset:t,seriesType:wL(t)}),t.uid=ul("stageHandler"),r&&(t.visualType=r),t},e})();function pL(e){e.overallReset(e.ecModel,e.api,e.payload)}function gL(e){return e.overallProgress&&mL}function mL(){this.agent.dirty(),this.getDownstream().dirty()}function yL(){this.agent&&this.agent.dirty()}function _L(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function bL(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=Se(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?ft(t,function(r,n){return dy(n)}):SL}var SL=dy(0);function dy(e){return function(t,r){var n=r.data,i=r.resetDefines[e];if(i&&i.dataEach)for(var a=t.start;a<t.end;a++)i.dataEach(n,a);else i&&i.progress&&i.progress(t,n)}}function xL(e){return e.data.count()}function wL(e){kl=null;try{e(fo,vy)}catch{}return kl}var fo={},vy={},kl;py(fo,dh),py(vy,ym),fo.eachSeriesByType=fo.eachRawSeriesByType=function(e){kl=e},fo.eachComponent=function(e){e.mainType==="series"&&e.subType&&(kl=e.subType)};function py(e,t){for(var r in t.prototype)e[r]=_e}var ot=dt.darkColor,TL=ot.background,co=function(){return{axisLine:{lineStyle:{color:ot.axisLine}},splitLine:{lineStyle:{color:ot.axisSplitLine}},splitArea:{areaStyle:{color:[ot.backgroundTint,ot.backgroundTransparent]}},minorSplitLine:{lineStyle:{color:ot.axisMinorSplitLine}},axisLabel:{color:ot.axisLabel},axisName:{}}},gy={label:{color:ot.secondary},itemStyle:{borderColor:ot.borderTint},dividerLineStyle:{color:ot.border}},my={darkMode:!0,color:ot.theme,backgroundColor:TL,axisPointer:{lineStyle:{color:ot.border},crossStyle:{color:ot.borderShade},label:{color:ot.tertiary}},legend:{textStyle:{color:ot.secondary},pageTextStyle:{color:ot.tertiary}},textStyle:{color:ot.secondary},title:{textStyle:{color:ot.primary},subtextStyle:{color:ot.quaternary}},toolbox:{iconStyle:{borderColor:ot.accent50}},tooltip:{backgroundColor:ot.neutral20,defaultBorderColor:ot.border,textStyle:{color:ot.tertiary}},dataZoom:{borderColor:ot.accent10,textStyle:{color:ot.tertiary},brushStyle:{color:ot.backgroundTint},handleStyle:{color:ot.neutral00,borderColor:ot.accent20},moveHandleStyle:{color:ot.accent40},emphasis:{handleStyle:{borderColor:ot.accent50}},dataBackground:{lineStyle:{color:ot.accent30},areaStyle:{color:ot.accent20}},selectedDataBackground:{lineStyle:{color:ot.accent50},areaStyle:{color:ot.accent30}}},visualMap:{textStyle:{color:ot.secondary},handleStyle:{borderColor:ot.neutral30}},timeline:{lineStyle:{color:ot.accent10},label:{color:ot.tertiary},controlStyle:{color:ot.accent30,borderColor:ot.accent30}},calendar:{itemStyle:{color:ot.neutral00,borderColor:ot.neutral20},dayLabel:{color:ot.tertiary},monthLabel:{color:ot.secondary},yearLabel:{color:ot.secondary}},matrix:{x:gy,y:gy,backgroundColor:{borderColor:ot.axisLine},body:{itemStyle:{borderColor:ot.borderTint}}},timeAxis:co(),logAxis:co(),valueAxis:co(),categoryAxis:co(),line:{symbol:"circle"},graph:{color:ot.theme},gauge:{title:{color:ot.secondary},axisLine:{lineStyle:{color:[[1,ot.neutral05]]}},axisLabel:{color:ot.axisLabel},detail:{color:ot.primary}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}},funnel:{itemStyle:{borderColor:ot.background}},radar:(function(){var e=co();return e.axisName={color:ot.axisLabel},e.axisLine.lineStyle.color=ot.neutral20,e})(),treemap:{breadcrumb:{itemStyle:{color:ot.neutral20,textStyle:{color:ot.secondary}},emphasis:{itemStyle:{color:ot.neutral30}}}},sunburst:{itemStyle:{borderColor:ot.background}},map:{itemStyle:{borderColor:ot.border,areaColor:ot.neutral10},label:{color:ot.tertiary},emphasis:{label:{color:ot.primary},itemStyle:{areaColor:ot.highlight}},select:{label:{color:ot.primary},itemStyle:{areaColor:ot.highlight}}},geo:{itemStyle:{borderColor:ot.border,areaColor:ot.neutral10},emphasis:{label:{color:ot.primary},itemStyle:{areaColor:ot.highlight}},select:{label:{color:ot.primary},itemStyle:{color:ot.highlight}}}};my.categoryAxis.splitLine.show=!1;var CL=(function(){function e(){}return e.prototype.normalizeQuery=function(t){var r={},n={},i={};if(ut(t)){var a=mr(t);r.mainType=a.main||null,r.subType=a.sub||null}else{var o=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};O(t,function(l,u){for(var f=!1,c=0;c<o.length;c++){var d=o[c],h=u.lastIndexOf(d);if(h>0&&h===u.length-d.length){var v=u.slice(0,h);v!=="data"&&(r.mainType=v,r[d.toLowerCase()]=l,f=!0)}}s.hasOwnProperty(u)&&(n[u]=l,f=!0),f||(i[u]=l)})}return{cptQuery:r,dataQuery:n,otherQuery:i}},e.prototype.filter=function(t,r){var n=this.eventInfo;if(!n)return!0;var i=n.targetEl,a=n.packedEvent,o=n.model,s=n.view;if(!o||!s)return!0;var l=r.cptQuery,u=r.dataQuery;return f(l,o,"mainType")&&f(l,o,"subType")&&f(l,o,"index","componentIndex")&&f(l,o,"name")&&f(l,o,"id")&&f(u,a,"name")&&f(u,a,"dataIndex")&&f(u,a,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,r.otherQuery,i,a));function f(c,d,h,v){return c[h]==null||d[v||h]===c[h]}},e.prototype.afterTrigger=function(){this.eventInfo=null},e})(),Mh=["symbol","symbolSize","symbolRotate","symbolOffset"],yy=Mh.concat(["symbolKeepAspect"]),AL={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var r=e.getData();if(e.legendIcon&&r.setVisual("legendIcon",e.legendIcon),!e.hasSymbolVisual)return;for(var n={},i={},a=!1,o=0;o<Mh.length;o++){var s=Mh[o],l=e.get(s);_t(l)?(a=!0,i[s]=l):n[s]=l}if(n.symbol=n.symbol||e.defaultSymbol,r.setVisual(et({legendIcon:e.legendIcon||n.symbol,symbolKeepAspect:e.get("symbolKeepAspect")},n)),t.isSeriesFiltered(e))return;var u=Mt(i);function f(c,d){for(var h=e.getRawValue(d),v=e.getDataParams(d),g=0;g<u.length;g++){var m=u[g];c.setItemVisual(d,m,i[m](h,v))}}return{dataEach:a?f:null}}},EL={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!e.hasSymbolVisual||t.isSeriesFiltered(e))return;var r=e.getData();function n(i,a){for(var o=i.getItemModel(a),s=0;s<yy.length;s++){var l=yy[s],u=o.getShallow(l,!0);u!=null&&i.setItemVisual(a,l,u)}}return{dataEach:r.hasItemOption?n:null}}};function LL(e,t,r){switch(r){case"color":var n=e.getItemVisual(t,"style");return n[e.getVisual("drawType")];case"opacity":return e.getItemVisual(t,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return e.getItemVisual(t,r);default:process.env.NODE_ENV!=="production"&&console.warn("Unknown visual type "+r)}}function ML(e,t){switch(t){case"color":var r=e.getVisual("style");return r[e.getVisual("drawType")];case"opacity":return e.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return e.getVisual(t);default:process.env.NODE_ENV!=="production"&&console.warn("Unknown visual type "+t)}}function DL(e,t){function r(n,i){var a=[];return n.eachComponent({mainType:"series",subType:e,query:i},function(o){a.push(o.seriesIndex)}),a}O([[e+"ToggleSelect","toggleSelect"],[e+"Select","select"],[e+"UnSelect","unselect"]],function(n){t(n[0],function(i,a,o){i=et({},i),process.env.NODE_ENV!=="production"&&ie(i.type,n[1]),o.dispatchAction(et(i,{type:n[1],seriesIndex:r(a,i)}))})})}function qi(e,t,r,n,i){var a=e+t;r.isSilent(a)||(process.env.NODE_ENV!=="production"&&Or("event "+a+" is deprecated."),n.eachComponent({mainType:"series",subType:"pie"},function(o){for(var s=o.seriesIndex,l=o.option.selectedMap,u=i.selected,f=0;f<u.length;f++)if(u[f].seriesIndex===s){var c=o.getData(),d=On(c,i.fromActionPayload);r.trigger(a,{type:a,seriesId:o.id,name:st(d)?c.getName(d[0]):c.getName(d),selected:ut(l)?l:et({},l)})}}))}function IL(e,t,r){e.on("selectchanged",function(n){var i=r.getModel();n.isFromClick?(qi("map","selectchanged",t,i,n),qi("pie","selectchanged",t,i,n)):n.fromAction==="select"?(qi("map","selected",t,i,n),qi("pie","selected",t,i,n)):n.fromAction==="unselect"&&(qi("map","unselected",t,i,n),qi("pie","unselected",t,i,n))})}function ho(e,t,r){for(var n;e&&!(t(e)&&(n=e,r));)e=e.__hostTarget||e.parent;return n}var kL=Math.round(Math.random()*9),PL=typeof Object.defineProperty=="function",NL=(function(){function e(){this._id="__ec_inner_"+kL++}return e.prototype.get=function(t){return this._guard(t)[this._id]},e.prototype.set=function(t,r){var n=this._guard(t);return PL?Object.defineProperty(n,this._id,{value:r,enumerable:!1,configurable:!0}):n[this._id]=r,this},e.prototype.delete=function(t){return this.has(t)?(delete this._guard(t)[this._id],!0):!1},e.prototype.has=function(t){return!!this._guard(t)[this._id]},e.prototype._guard=function(t){if(t!==Object(t))throw TypeError("Value of WeakMap is not a non-null object.");return t},e})(),$L=It.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var r=t.cx,n=t.cy,i=t.width/2,a=t.height/2;e.moveTo(r,n-a),e.lineTo(r+i,n+a),e.lineTo(r-i,n+a),e.closePath()}}),OL=It.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var r=t.cx,n=t.cy,i=t.width/2,a=t.height/2;e.moveTo(r,n-a),e.lineTo(r+i,n),e.lineTo(r,n+a),e.lineTo(r-i,n),e.closePath()}}),RL=It.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var r=t.x,n=t.y,i=t.width/5*3,a=Math.max(i,t.height),o=i/2,s=o*o/(a-o),l=n-a+o+s,u=Math.asin(s/o),f=Math.cos(u)*o,c=Math.sin(u),d=Math.cos(u),h=o*.6,v=o*.7;e.moveTo(r-f,l+s),e.arc(r,l,o,Math.PI-u,Math.PI*2+u),e.bezierCurveTo(r+f-c*h,l+s+d*h,r,n-v,r,n),e.bezierCurveTo(r,n-v,r-f+c*h,l+s+d*h,r-f,l+s),e.closePath()}}),BL=It.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var r=t.height,n=t.width,i=t.x,a=t.y,o=n/3*2;e.moveTo(i,a),e.lineTo(i+o,a+r),e.lineTo(i,a+r/4*3),e.lineTo(i-o,a+r),e.lineTo(i,a),e.closePath()}}),FL={line:sn,rect:qt,roundRect:qt,square:qt,circle:js,diamond:OL,pin:RL,arrow:BL,triangle:$L},zL={line:function(e,t,r,n,i){i.x1=e,i.y1=t+n/2,i.x2=e+r,i.y2=t+n/2},rect:function(e,t,r,n,i){i.x=e,i.y=t,i.width=r,i.height=n},roundRect:function(e,t,r,n,i){i.x=e,i.y=t,i.width=r,i.height=n,i.r=Math.min(r,n)/4},square:function(e,t,r,n,i){var a=Math.min(r,n);i.x=e,i.y=t,i.width=a,i.height=a},circle:function(e,t,r,n,i){i.cx=e+r/2,i.cy=t+n/2,i.r=Math.min(r,n)/2},diamond:function(e,t,r,n,i){i.cx=e+r/2,i.cy=t+n/2,i.width=r,i.height=n},pin:function(e,t,r,n,i){i.x=e+r/2,i.y=t+n/2,i.width=r,i.height=n},arrow:function(e,t,r,n,i){i.x=e+r/2,i.y=t+n/2,i.width=r,i.height=n},triangle:function(e,t,r,n,i){i.cx=e+r/2,i.cy=t+n/2,i.width=r,i.height=n}},Dh={};O(FL,function(e,t){Dh[t]=new e});var VL=It.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(e,t,r){var n=xs(e,t,r),i=this.shape;return i&&i.symbolType==="pin"&&t.position==="inside"&&(n.y=r.y+r.height*.4),n},buildPath:function(e,t,r){var n=t.symbolType;if(n!=="none"){var i=Dh[n];i||(n="rect",i=Dh[n]),zL[n](t.x,t.y,t.width,t.height,i.shape),i.buildPath(e,i.shape,r)}}});function GL(e,t){if(this.type!=="image"){var r=this.style;this.__isEmptyBrush?(r.stroke=e,r.fill=t||dt.color.neutral00,r.lineWidth=2):this.shape.symbolType==="line"?r.stroke=e:r.fill=e,this.markRedraw()}}function ai(e,t,r,n,i,a,o){var s=e.indexOf("empty")===0;s&&(e=e.substr(5,1).toLowerCase()+e.substr(6));var l;return e.indexOf("image://")===0?l=T0(e.slice(8),new Ct(t,r,n,i),o?"center":"cover"):e.indexOf("path://")===0?l=Oc(e.slice(7),{},new Ct(t,r,n,i),o?"center":"cover"):l=new VL({shape:{symbolType:e,x:t,y:r,width:n,height:i}}),l.__isEmptyBrush=s,l.setColor=GL,a&&l.setColor(a),l}function HL(e){return st(e)||(e=[+e,+e]),[e[0]||0,e[1]||0]}function _y(e,t){if(e!=null)return st(e)||(e=[e,e]),[Wt(e[0],t[0])||0,Wt(ct(e[1],e[0]),t[1])||0]}function oi(e){return isFinite(e)}function UL(e,t,r){var n=t.x==null?0:t.x,i=t.x2==null?1:t.x2,a=t.y==null?0:t.y,o=t.y2==null?0:t.y2;t.global||(n=n*r.width+r.x,i=i*r.width+r.x,a=a*r.height+r.y,o=o*r.height+r.y),n=oi(n)?n:0,i=oi(i)?i:1,a=oi(a)?a:0,o=oi(o)?o:0;var s=e.createLinearGradient(n,a,i,o);return s}function WL(e,t,r){var n=r.width,i=r.height,a=Math.min(n,i),o=t.x==null?.5:t.x,s=t.y==null?.5:t.y,l=t.r==null?.5:t.r;t.global||(o=o*n+r.x,s=s*i+r.y,l=l*a),o=oi(o)?o:.5,s=oi(s)?s:.5,l=l>=0&&oi(l)?l:.5;var u=e.createRadialGradient(o,s,0,o,s,l);return u}function by(e,t,r){for(var n=t.type==="radial"?WL(e,t,r):UL(e,t,r),i=t.colorStops,a=0;a<i.length;a++)n.addColorStop(i[a].offset,i[a].color);return n}function ZL(e,t){if(e===t||!e&&!t)return!1;if(!e||!t||e.length!==t.length)return!0;for(var r=0;r<e.length;r++)if(e[r]!==t[r])return!0;return!1}function Pl(e){return parseInt(e,10)}function Sy(e,t,r){var n=["width","height"][t],i=["clientWidth","clientHeight"][t],a=["paddingLeft","paddingTop"][t],o=["paddingRight","paddingBottom"][t];if(r[n]!=null&&r[n]!=="auto")return parseFloat(r[n]);var s=document.defaultView.getComputedStyle(e);return(e[i]||Pl(s[n])||Pl(e.style[n]))-(Pl(s[a])||0)-(Pl(s[o])||0)|0}function YL(e,t){return!e||e==="solid"||!(t>0)?null:e==="dashed"?[4*t,2*t]:e==="dotted"?[t]:$t(e)?[e]:st(e)?e:null}function Ih(e){var t=e.style,r=t.lineDash&&t.lineWidth>0&&YL(t.lineDash,t.lineWidth),n=t.lineDashOffset;if(r){var i=t.strokeNoScale&&e.getLineScale?e.getLineScale():1;i&&i!==1&&(r=ft(r,function(a){return a/i}),n/=i)}return[r,n]}var XL=new nn(!0);function Nl(e){var t=e.stroke;return!(t==null||t==="none"||!(e.lineWidth>0))}function xy(e){return typeof e=="string"&&e!=="none"}function $l(e){var t=e.fill;return t!=null&&t!=="none"}function wy(e,t){if(t.fillOpacity!=null&&t.fillOpacity!==1){var r=e.globalAlpha;e.globalAlpha=t.fillOpacity*t.opacity,e.fill(),e.globalAlpha=r}else e.fill()}function Ty(e,t){if(t.strokeOpacity!=null&&t.strokeOpacity!==1){var r=e.globalAlpha;e.globalAlpha=t.strokeOpacity*t.opacity,e.stroke(),e.globalAlpha=r}else e.stroke()}function Cy(e,t,r){var n=Qf(t.image,t.__image,r);if(Is(n)){var i=e.createPattern(n,t.repeat||"repeat");if(typeof DOMMatrix=="function"&&i&&i.setTransform){var a=new DOMMatrix;a.translateSelf(t.x||0,t.y||0),a.rotateSelf(0,0,(t.rotation||0)*Ko),a.scaleSelf(t.scaleX||1,t.scaleY||1),i.setTransform(a)}return i}}function qL(e,t,r,n){var i,a=Nl(r),o=$l(r),s=r.strokePercent,l=s<1,u=!t.path;(!t.silent||l)&&u&&t.createPathProxy();var f=t.path||XL,c=t.__dirty;if(!n){var d=r.fill,h=r.stroke,v=o&&!!d.colorStops,g=a&&!!h.colorStops,m=o&&!!d.image,p=a&&!!h.image,y=void 0,_=void 0,b=void 0,x=void 0,w=void 0;(v||g)&&(w=t.getBoundingRect()),v&&(y=c?by(e,d,w):t.__canvasFillGradient,t.__canvasFillGradient=y),g&&(_=c?by(e,h,w):t.__canvasStrokeGradient,t.__canvasStrokeGradient=_),m&&(b=c||!t.__canvasFillPattern?Cy(e,d,t):t.__canvasFillPattern,t.__canvasFillPattern=b),p&&(x=c||!t.__canvasStrokePattern?Cy(e,h,t):t.__canvasStrokePattern,t.__canvasStrokePattern=x),v?e.fillStyle=y:m&&(b?e.fillStyle=b:o=!1),g?e.strokeStyle=_:p&&(x?e.strokeStyle=x:a=!1)}var S=t.getGlobalScale();f.setScale(S[0],S[1],t.segmentIgnoreThreshold);var L,C;e.setLineDash&&r.lineDash&&(i=Ih(t),L=i[0],C=i[1]);var D=!0;(u||c&Ai)&&(f.setDPR(e.dpr),l?f.setContext(null):(f.setContext(e),D=!1),f.reset(),t.buildPath(f,t.shape,n),f.toStatic(),t.pathUpdated()),D&&f.rebuildPath(e,l?s:1),L&&(e.setLineDash(L),e.lineDashOffset=C),n||(r.strokeFirst?(a&&Ty(e,r),o&&wy(e,r)):(o&&wy(e,r),a&&Ty(e,r))),L&&e.setLineDash([])}function jL(e,t,r){var n=t.__image=Qf(r.image,t.__image,t,t.onload);if(!(!n||!Is(n))){var i=r.x||0,a=r.y||0,o=t.getWidth(),s=t.getHeight(),l=n.width/n.height;if(o==null&&s!=null?o=s*l:s==null&&o!=null?s=o/l:o==null&&s==null&&(o=n.width,s=n.height),r.sWidth&&r.sHeight){var u=r.sx||0,f=r.sy||0;e.drawImage(n,u,f,r.sWidth,r.sHeight,i,a,o,s)}else if(r.sx&&r.sy){var u=r.sx,f=r.sy,c=o-u,d=s-f;e.drawImage(n,u,f,c,d,i,a,o,s)}else e.drawImage(n,i,a,o,s)}}function QL(e,t,r){var n,i=r.text;if(i!=null&&(i+=""),i){e.font=r.font||Dr,e.textAlign=r.textAlign,e.textBaseline=r.textBaseline;var a=void 0,o=void 0;e.setLineDash&&r.lineDash&&(n=Ih(t),a=n[0],o=n[1]),a&&(e.setLineDash(a),e.lineDashOffset=o),r.strokeFirst?(Nl(r)&&e.strokeText(i,r.x,r.y),$l(r)&&e.fillText(i,r.x,r.y)):($l(r)&&e.fillText(i,r.x,r.y),Nl(r)&&e.strokeText(i,r.x,r.y)),a&&e.setLineDash([])}}var Ay=["shadowBlur","shadowOffsetX","shadowOffsetY"],Ey=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function Ly(e,t,r,n,i){var a=!1;if(!n&&(r=r||{},t===r))return!1;if(n||t.opacity!==r.opacity){Me(e,i),a=!0;var o=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(o)?Bn.opacity:o}(n||t.blend!==r.blend)&&(a||(Me(e,i),a=!0),e.globalCompositeOperation=t.blend||Bn.blend);for(var s=0;s<Ay.length;s++){var l=Ay[s];(n||t[l]!==r[l])&&(a||(Me(e,i),a=!0),e[l]=e.dpr*(t[l]||0))}return(n||t.shadowColor!==r.shadowColor)&&(a||(Me(e,i),a=!0),e.shadowColor=t.shadowColor||Bn.shadowColor),a}function My(e,t,r,n,i){var a=vo(t,i.inHover),o=n?null:r&&vo(r,i.inHover)||{};if(a===o)return!1;var s=Ly(e,a,o,n,i);if((n||a.fill!==o.fill)&&(s||(Me(e,i),s=!0),xy(a.fill)&&(e.fillStyle=a.fill)),(n||a.stroke!==o.stroke)&&(s||(Me(e,i),s=!0),xy(a.stroke)&&(e.strokeStyle=a.stroke)),(n||a.opacity!==o.opacity)&&(s||(Me(e,i),s=!0),e.globalAlpha=a.opacity==null?1:a.opacity),t.hasStroke()){var l=a.lineWidth,u=l/(a.strokeNoScale&&t.getLineScale?t.getLineScale():1);e.lineWidth!==u&&(s||(Me(e,i),s=!0),e.lineWidth=u)}for(var f=0;f<Ey.length;f++){var c=Ey[f],d=c[0];(n||a[d]!==o[d])&&(s||(Me(e,i),s=!0),e[d]=a[d]||c[1])}return s}function KL(e,t,r,n,i){return Ly(e,vo(t,i.inHover),r&&vo(r,i.inHover),n,i)}function Dy(e,t){var r=t.transform,n=e.dpr||1;r?e.setTransform(n*r[0],n*r[1],n*r[2],n*r[3],n*r[4],n*r[5]):e.setTransform(n,0,0,n,0,0)}function JL(e,t,r){for(var n=!1,i=0;i<e.length;i++){var a=e[i];n=n||a.isZeroArea(),Dy(t,a),t.beginPath(),a.buildPath(t,a.shape),t.clip()}r.allClipped=n}function tM(e,t){return e&&t?e[0]!==t[0]||e[1]!==t[1]||e[2]!==t[2]||e[3]!==t[3]||e[4]!==t[4]||e[5]!==t[5]:!(!e&&!t)}var Iy=1,ky=2,Py=3,Ny=4;function eM(e){var t=$l(e),r=Nl(e);return!(e.lineDash||!(+t^+r)||t&&typeof e.fill!="string"||r&&typeof e.stroke!="string"||e.strokePercent<1||e.strokeOpacity<1||e.fillOpacity<1)}function Me(e,t){t.batchFill&&e.fill(),t.batchStroke&&e.stroke(),t.batchFill="",t.batchStroke=""}function vo(e,t){return t&&e.__hoverStyle||e.style}function rM(e,t){kh(e,t,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function kh(e,t,r,n){var i=t.transform;if(!t.shouldBePainted(r.viewWidth,r.viewHeight,!1,!1)){t.__dirty&=~cr,t.__isRendered=!1;return}var a=t.__clipPaths,o=r.prevElClipPaths,s=!1,l=!1;if((!o||ZL(a,o))&&(o&&o.length&&(Me(e,r),e.restore(),l=s=!0,r.prevElClipPaths=null,r.allClipped=!1,r.prevEl=null),a&&a.length&&(Me(e,r),e.save(),JL(a,e,r),s=!0),r.prevElClipPaths=a),r.allClipped){t.__isRendered=!1;return}t.beforeBrush&&t.beforeBrush(),t.innerBeforeBrush();var u=r.prevEl;u||(l=s=!0);var f=t instanceof It&&t.autoBatch&&eM(t.style);s||tM(i,u.transform)?(Me(e,r),Dy(e,t)):f||Me(e,r);var c=vo(t,r.inHover);t instanceof It?(r.lastDrawType!==Iy&&(l=!0,r.lastDrawType=Iy),My(e,t,u,l,r),(!f||!r.batchFill&&!r.batchStroke)&&e.beginPath(),qL(e,t,c,f),f&&(r.batchFill=c.fill||"",r.batchStroke=c.stroke||"")):t instanceof Ba?(r.lastDrawType!==Py&&(l=!0,r.lastDrawType=Py),My(e,t,u,l,r),QL(e,t,c)):t instanceof Sr?(r.lastDrawType!==ky&&(l=!0,r.lastDrawType=ky),KL(e,t,u,l,r),jL(e,t,c)):t.getTemporalDisplayables&&(r.lastDrawType!==Ny&&(l=!0,r.lastDrawType=Ny),nM(e,t,r)),f&&n&&Me(e,r),t.innerAfterBrush(),t.afterBrush&&t.afterBrush(),r.prevEl=t,t.__dirty=0,t.__isRendered=!0}function nM(e,t,r){var n=t.getDisplayables(),i=t.getTemporalDisplayables();e.save();var a={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:r.viewWidth,viewHeight:r.viewHeight,inHover:r.inHover},o,s;for(o=t.getCursor(),s=n.length;o<s;o++){var l=n[o];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),kh(e,l,a,o===s-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),a.prevEl=l}for(var u=0,f=i.length;u<f;u++){var l=i[u];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),kh(e,l,a,u===f-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),a.prevEl=l}t.clearTemporalDisplayables(),t.notClear=!0,e.restore()}var Ph=new NL,$y=new Li(100),Oy=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function Nh(e,t){if(e==="none")return null;var r=t.getDevicePixelRatio(),n=t.getZr(),i=n.painter.type==="svg";e.dirty&&Ph.delete(e);var a=Ph.get(e);if(a)return a;var o=Bt(e,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});o.backgroundColor==="none"&&(o.backgroundColor=null);var s={repeat:"repeat"};return l(s),s.rotation=o.rotation,s.scaleX=s.scaleY=i?1:1/r,Ph.set(e,s),e.dirty=!1,s;function l(u){for(var f=[r],c=!0,d=0;d<Oy.length;++d){var h=o[Oy[d]];if(h!=null&&!st(h)&&!ut(h)&&!$t(h)&&typeof h!="boolean"){c=!1;break}f.push(h)}var v;if(c){v=f.join(",")+(i?"-svg":"");var g=$y.get(v);g&&(i?u.svgElement=g:u.image=g)}var m=By(o.dashArrayX),p=iM(o.dashArrayY),y=Ry(o.symbol),_=aM(m),b=Fy(p),x=!i&&Xr.createCanvas(),w=i&&{tag:"g",attrs:{},key:"dcl",children:[]},S=C(),L;x&&(x.width=S.width*r,x.height=S.height*r,L=x.getContext("2d")),D(),c&&$y.put(v,x||w),u.image=x,u.svgElement=w,u.svgWidth=S.width,u.svgHeight=S.height;function C(){for(var I=1,A=0,M=_.length;A<M;++A)I=rg(I,_[A]);for(var T=1,A=0,M=y.length;A<M;++A)T=rg(T,y[A].length);I*=T;var k=b*_.length*y.length;if(process.env.NODE_ENV!=="production"){var R=function(z){console.warn("Calculated decal size is greater than "+z+" due to decal option settings so "+z+" is used for the decal size. Please consider changing the decal option to make a smaller decal or set "+z+" to be larger to avoid incontinuity.")};I>o.maxTileWidth&&R("maxTileWidth"),k>o.maxTileHeight&&R("maxTileHeight")}return{width:Math.max(1,Math.min(I,o.maxTileWidth)),height:Math.max(1,Math.min(k,o.maxTileHeight))}}function D(){L&&(L.clearRect(0,0,x.width,x.height),o.backgroundColor&&(L.fillStyle=o.backgroundColor,L.fillRect(0,0,x.width,x.height)));for(var I=0,A=0;A<p.length;++A)I+=p[A];if(I<=0)return;for(var M=-b,T=0,k=0,R=0;M<S.height;){if(T%2===0){for(var z=k/2%y.length,H=0,V=0,Z=0;H<S.width*2;){for(var B=0,A=0;A<m[R].length;++A)B+=m[R][A];if(B<=0)break;if(V%2===0){var $=(1-o.symbolSize)*.5,X=H+m[R][V]*$,j=M+p[T]*$,Q=m[R][V]*o.symbolSize,bt=p[T]*o.symbolSize,Et=Z/2%y[z].length;ht(X,j,Q,bt,y[z][Et])}H+=m[R][V],++Z,++V,V===m[R].length&&(V=0)}++R,R===m.length&&(R=0)}M+=p[T],++k,++T,T===p.length&&(T=0)}function ht(gt,St,at,mt,Rt){var E=i?1:r,Y=ai(Rt,gt*E,St*E,at*E,mt*E,o.color,o.symbolKeepAspect);if(i){var W=n.painter.renderOneToVNode(Y);W&&w.children.push(W)}else rM(L,Y)}}}}function Ry(e){if(!e||e.length===0)return[["rect"]];if(ut(e))return[[e]];for(var t=!0,r=0;r<e.length;++r)if(!ut(e[r])){t=!1;break}if(t)return Ry([e]);for(var n=[],r=0;r<e.length;++r)ut(e[r])?n.push([e[r]]):n.push(e[r]);return n}function By(e){if(!e||e.length===0)return[[0,0]];if($t(e)){var t=Math.ceil(e);return[[t,t]]}for(var r=!0,n=0;n<e.length;++n)if(!$t(e[n])){r=!1;break}if(r)return By([e]);for(var i=[],n=0;n<e.length;++n)if($t(e[n])){var t=Math.ceil(e[n]);i.push([t,t])}else{var t=ft(e[n],function(s){return Math.ceil(s)});t.length%2===1?i.push(t.concat(t)):i.push(t)}return i}function iM(e){if(!e||typeof e=="object"&&e.length===0)return[0,0];if($t(e)){var t=Math.ceil(e);return[t,t]}var r=ft(e,function(n){return Math.ceil(n)});return e.length%2?r.concat(r):r}function aM(e){return ft(e,function(t){return Fy(t)})}function Fy(e){for(var t=0,r=0;r<e.length;++r)t+=e[r];return e.length%2===1?t*2:t}function oM(e,t){e.eachRawSeries(function(r){if(!e.isSeriesFiltered(r)){var n=r.getData();n.hasItemVisual()&&n.each(function(o){var s=n.getItemVisual(o,"decal");if(s){var l=n.ensureUniqueItemVisual(o,"style");l.decal=Nh(s,t)}});var i=n.getVisual("decal");if(i){var a=n.getVisual("style");a.decal=Nh(i,t)}}})}var or=new kr,Ol={};function sM(e,t){process.env.NODE_ENV!=="production"&&Ol[e]&&zt("Already has an implementation of "+e+"."),Ol[e]=t}function lM(e){return process.env.NODE_ENV!=="production"&&(Ol[e]||zt("Implementation of "+e+" doesn't exists.")),Ol[e]}var uM=1,fM=800,cM=900,hM=1e3,dM=2e3,vM=5e3,zy=1e3,pM=1100,$h=2e3,Vy=3e3,gM=4e3,Rl=4500,mM=4600,yM=5e3,_M=6e3,Gy=7e3,bM={PROCESSOR:{FILTER:hM,SERIES_FILTER:fM,STATISTIC:vM},VISUAL:{LAYOUT:zy,PROGRESSIVE_LAYOUT:pM,GLOBAL:$h,CHART:Vy,POST_CHART_LAYOUT:mM,COMPONENT:gM,BRUSH:yM,CHART_ITEM:Rl,ARIA:_M,DECAL:Gy}},ee="__flagInMainProcess",Bl="__mainProcessVersion",se="__pendingUpdate",Oh="__needsUpdateStatus",Hy=/^[a-zA-Z0-9_]+$/,Rh="__connectUpdateStatus",Uy=0,SM=1,xM=2;function Wy(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];if(this.isDisposed()){De(this.id);return}return Yy(this,e,t)}}function Zy(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return Yy(this,e,t)}}function Yy(e,t,r){return r[0]=r[0]&&r[0].toLowerCase(),kr.prototype[t].apply(e,r)}var Xy=(function(e){it(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t})(kr),qy=Xy.prototype;qy.on=Zy("on"),qy.off=Zy("off");var si,Bh,Fl,Gr,zl,Fh,zh,ji,Qi,jy,Qy,Vh,Ky,Vl,Jy,t_,Qe,e_,Ki,r_=(function(e){it(t,e);function t(r,n,i){var a=e.call(this,new CL)||this;a._chartsViews=[],a._chartsMap={},a._componentsViews=[],a._componentsMap={},a._pendingActions=[],i=i||{},a._dom=r;var o="canvas",s="auto",l=!1;if(a[Bl]=1,process.env.NODE_ENV!=="production"){var u=xt.hasGlobalWindow?window:global;u&&(o=ct(u.__ECHARTS__DEFAULT__RENDERER__,o),s=ct(u.__ECHARTS__DEFAULT__COARSE_POINTER,s),l=ct(u.__ECHARTS__DEFAULT__USE_DIRTY_RECT__,l))}i.ssr&&y2(function(h){var v=Lt(h),g=v.dataIndex;if(g!=null){var m=Tt();return m.set("series_index",v.seriesIndex),m.set("data_index",g),v.ssrType&&m.set("ssr_type",v.ssrType),m}});var f=a._zr=Xp(r,{renderer:i.renderer||o,devicePixelRatio:i.devicePixelRatio,width:i.width,height:i.height,ssr:i.ssr,useDirtyRect:ct(i.useDirtyRect,l),useCoarsePointer:ct(i.useCoarsePointer,s),pointerSize:i.pointerSize});a._ssr=i.ssr,a._throttledZrFlush=Eh(Ft(f.flush,f),17),a._updateTheme(n),a._locale=vA(i.locale||H0),a._coordSysMgr=new ah;var c=a._api=Jy(a);function d(h,v){return h.__prio-v.__prio}return ts(Ul,d),ts(Uh,d),a._scheduler=new hy(a,c,Uh,Ul),a._messageCenter=new Xy,a._initEvents(),a.resize=Ft(a.resize,a),f.animation.on("frame",a._onframe,a),jy(f,a),Qy(f,a),zu(a),a}return t.prototype._onframe=function(){if(!this._disposed){e_(this);var r=this._scheduler;if(this[se]){var n=this[se].silent;this[ee]=!0,Ki(this);try{si(this),Gr.update.call(this,null,this[se].updateParams)}catch(l){throw this[ee]=!1,this[se]=null,l}this._zr.flush(),this[ee]=!1,this[se]=null,ji.call(this,n),Qi.call(this,n)}else if(r.unfinished){var i=uM,a=this._model,o=this._api;r.unfinished=!1;do{var s=+new Date;r.performSeriesTasks(a),r.performDataProcessorTasks(a),Fh(this,a),r.performVisualTasks(a),Vl(this,this._model,o,"remain",{}),i-=+new Date-s}while(i>0&&r.unfinished);r.unfinished||this._zr.flush()}}},t.prototype.getDom=function(){return this._dom},t.prototype.getId=function(){return this.id},t.prototype.getZr=function(){return this._zr},t.prototype.isSSR=function(){return this._ssr},t.prototype.setOption=function(r,n,i){if(this[ee]){process.env.NODE_ENV!=="production"&&zt("`setOption` should not be called during main process.");return}if(this._disposed){De(this.id);return}var a,o,s;if(pt(n)&&(i=n.lazyUpdate,a=n.silent,o=n.replaceMerge,s=n.transition,n=n.notMerge),this[ee]=!0,Ki(this),!this._model||n){var l=new iE(this._api),u=this._theme,f=this._model=new dh;f.scheduler=this._scheduler,f.ssr=this._ssr,f.init(null,null,null,u,this._locale,l)}this._model.setOption(r,{replaceMerge:o},Wh);var c={seriesTransition:s,optionChanged:!0};if(i)this[se]={silent:a,updateParams:c},this[ee]=!1,this.getZr().wakeUp();else{try{si(this),Gr.update.call(this,null,c)}catch(d){throw this[se]=null,this[ee]=!1,d}this._ssr||this._zr.flush(),this[se]=null,this[ee]=!1,ji.call(this,a),Qi.call(this,a)}},t.prototype.setTheme=function(r,n){if(this[ee]){process.env.NODE_ENV!=="production"&&zt("`setTheme` should not be called during main process.");return}if(this._disposed){De(this.id);return}var i=this._model;if(i){var a=n&&n.silent,o=null;this[se]&&(a==null&&(a=this[se].silent),o=this[se].updateParams,this[se]=null),this[ee]=!0,Ki(this);try{this._updateTheme(r),i.setTheme(this._theme),si(this),Gr.update.call(this,{type:"setTheme"},o)}catch(s){throw this[ee]=!1,s}this[ee]=!1,ji.call(this,a),Qi.call(this,a)}},t.prototype._updateTheme=function(r){ut(r)&&(r=n_[r]),r&&(r=At(r),r&&Cm(r,!0),this._theme=r)},t.prototype.getModel=function(){return this._model},t.prototype.getOption=function(){return this._model&&this._model.getOption()},t.prototype.getWidth=function(){return this._zr.getWidth()},t.prototype.getHeight=function(){return this._zr.getHeight()},t.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||xt.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(r){return process.env.NODE_ENV!=="production"&&ie("getRenderedCanvas","renderToCanvas"),this.renderToCanvas(r)},t.prototype.renderToCanvas=function(r){r=r||{};var n=this._zr.painter;if(process.env.NODE_ENV!=="production"&&n.type!=="canvas")throw new Error("renderToCanvas can only be used in the canvas renderer.");return n.getRenderedCanvas({backgroundColor:r.backgroundColor||this._model.get("backgroundColor"),pixelRatio:r.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(r){r=r||{};var n=this._zr.painter;if(process.env.NODE_ENV!=="production"&&n.type!=="svg")throw new Error("renderToSVGString can only be used in the svg renderer.");return n.renderToString({useViewBox:r.useViewBox})},t.prototype.getSvgDataURL=function(){var r=this._zr,n=r.storage.getDisplayList();return O(n,function(i){i.stopAnimation(null,!0)}),r.painter.toDataURL()},t.prototype.getDataURL=function(r){if(this._disposed){De(this.id);return}r=r||{};var n=r.excludeComponents,i=this._model,a=[],o=this;O(n,function(l){i.eachComponent({mainType:l},function(u){var f=o._componentsMap[u.__viewId];f.group.ignore||(a.push(f),f.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(r).toDataURL("image/"+(r&&r.type||"png"));return O(a,function(l){l.group.ignore=!1}),s},t.prototype.getConnectedDataURL=function(r){if(this._disposed){De(this.id);return}var n=r.type==="svg",i=this.group,a=Math.min,o=Math.max,s=1/0;if(i_[i]){var l=s,u=s,f=-s,c=-s,d=[],h=r&&r.pixelRatio||this.getDevicePixelRatio();O(po,function(_,b){if(_.group===i){var x=n?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas(At(r)),w=_.getDom().getBoundingClientRect();l=a(w.left,l),u=a(w.top,u),f=o(w.right,f),c=o(w.bottom,c),d.push({dom:x,left:w.left,top:w.top})}}),l*=h,u*=h,f*=h,c*=h;var v=f-l,g=c-u,m=Xr.createCanvas(),p=Xp(m,{renderer:n?"svg":"canvas"});if(p.resize({width:v,height:g}),n){var y="";return O(d,function(_){var b=_.left-l,x=_.top-u;y+='<g transform="translate('+b+","+x+')">'+_.dom+"</g>"}),p.painter.getSvgRoot().innerHTML=y,r.connectedBackgroundColor&&p.painter.setBackgroundColor(r.connectedBackgroundColor),p.refreshImmediately(),p.painter.toDataURL()}else return r.connectedBackgroundColor&&p.add(new qt({shape:{x:0,y:0,width:v,height:g},style:{fill:r.connectedBackgroundColor}})),O(d,function(_){var b=new Sr({style:{x:_.left*h-l,y:_.top*h-u,image:_.dom}});p.add(b)}),p.refreshImmediately(),m.toDataURL("image/"+(r&&r.type||"png"))}else return this.getDataURL(r)},t.prototype.convertToPixel=function(r,n,i){return zl(this,"convertToPixel",r,n,i)},t.prototype.convertToLayout=function(r,n,i){return zl(this,"convertToLayout",r,n,i)},t.prototype.convertFromPixel=function(r,n,i){return zl(this,"convertFromPixel",r,n,i)},t.prototype.containPixel=function(r,n){if(this._disposed){De(this.id);return}var i=this._model,a,o=Yf(i,r);return O(o,function(s,l){l.indexOf("Models")>=0&&O(s,function(u){var f=u.coordinateSystem;if(f&&f.containPoint)a=a||!!f.containPoint(n);else if(l==="seriesModels"){var c=this._chartsMap[u.__viewId];c&&c.containPoint?a=a||c.containPoint(n,u):process.env.NODE_ENV!=="production"&&de(l+": "+(c?"The found component do not support containPoint.":"No view mapping to the found component."))}else process.env.NODE_ENV!=="production"&&de(l+": containPoint is not supported")},this)},this),!!a},t.prototype.getVisual=function(r,n){var i=this._model,a=Yf(i,r,{defaultMainType:"series"}),o=a.seriesModel;process.env.NODE_ENV!=="production"&&(o||de("There is no specified series model"));var s=o.getData(),l=a.hasOwnProperty("dataIndexInside")?a.dataIndexInside:a.hasOwnProperty("dataIndex")?s.indexOfRawIndex(a.dataIndex):null;return l!=null?LL(s,l,n):ML(s,n)},t.prototype.getViewOfComponentModel=function(r){return this._componentsMap[r.__viewId]},t.prototype.getViewOfSeriesModel=function(r){return this._chartsMap[r.__viewId]},t.prototype._initEvents=function(){var r=this;O(wM,function(i){var a=function(o){var s=r.getModel(),l=o.target,u,f=i==="globalout";if(f?u={}:l&&ho(l,function(g){var m=Lt(g);if(m&&m.dataIndex!=null){var p=m.dataModel||s.getSeriesByIndex(m.seriesIndex);return u=p&&p.getDataParams(m.dataIndex,m.dataType,l)||{},!0}else if(m.eventData)return u=et({},m.eventData),!0},!0),u){var c=u.componentType,d=u.componentIndex;(c==="markLine"||c==="markPoint"||c==="markArea")&&(c="series",d=u.seriesIndex);var h=c&&d!=null&&s.getComponent(c,d),v=h&&r[h.mainType==="series"?"_chartsMap":"_componentsMap"][h.__viewId];process.env.NODE_ENV!=="production"&&!f&&!(h&&v)&&de("model or view can not be found by params"),u.event=o,u.type=i,r._$eventProcessor.eventInfo={targetEl:l,packedEvent:u,model:h,view:v},r.trigger(i,u)}};a.zrEventfulCallAtLast=!0,r._zr.on(i,a,r)});var n=this._messageCenter;O(Hh,function(i,a){n.on(a,function(o){r.trigger(a,o)})}),IL(n,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){if(this._disposed){De(this.id);return}this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed){De(this.id);return}this._disposed=!0;var r=this.getDom();r&&cg(this.getDom(),Yh,"");var n=this,i=n._api,a=n._model;O(n._componentsViews,function(o){o.dispose(a,i)}),O(n._chartsViews,function(o){o.dispose(a,i)}),n._zr.dispose(),n._dom=n._model=n._chartsMap=n._componentsMap=n._chartsViews=n._componentsViews=n._scheduler=n._api=n._zr=n._throttledZrFlush=n._theme=n._coordSysMgr=n._messageCenter=null,delete po[n.id]},t.prototype.resize=function(r){if(this[ee]){process.env.NODE_ENV!=="production"&&zt("`resize` should not be called during main process.");return}if(this._disposed){De(this.id);return}this._zr.resize(r);var n=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!n){var i=n.resetOption("media"),a=r&&r.silent;this[se]&&(a==null&&(a=this[se].silent),i=!0,this[se]=null),this[ee]=!0,Ki(this);try{i&&si(this),Gr.update.call(this,{type:"resize",animation:et({duration:0},r&&r.animation)})}catch(o){throw this[ee]=!1,o}this[ee]=!1,ji.call(this,a),Qi.call(this,a)}},t.prototype.showLoading=function(r,n){if(this._disposed){De(this.id);return}if(pt(r)&&(n=r,r=""),r=r||"default",this.hideLoading(),!Zh[r]){process.env.NODE_ENV!=="production"&&de("Loading effects "+r+" not exists.");return}var i=Zh[r](this._api,n),a=this._zr;this._loadingFX=i,a.add(i)},t.prototype.hideLoading=function(){if(this._disposed){De(this.id);return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},t.prototype.makeActionFromEvent=function(r){var n=et({},r);return n.type=Hl[r.type],n},t.prototype.dispatchAction=function(r,n){if(this._disposed){De(this.id);return}if(pt(n)||(n={silent:!!n}),!!Gl[r.type]&&this._model){if(this[ee]){this._pendingActions.push(r);return}var i=n.silent;zh.call(this,r,i);var a=n.flush;a?this._zr.flush():a!==!1&&xt.browser.weChat&&this._throttledZrFlush(),ji.call(this,i),Qi.call(this,i)}},t.prototype.updateLabelLayout=function(){or.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(r){if(this._disposed){De(this.id);return}var n=r.seriesIndex,i=this.getModel(),a=i.getSeriesByIndex(n);process.env.NODE_ENV!=="production"&&vt(r.data&&a),a.appendData(r),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=(function(){si=function(c){var d=c._scheduler;d.restorePipelines(c._model),d.prepareStageTasks(),Bh(c,!0),Bh(c,!1),d.plan()},Bh=function(c,d){for(var h=c._model,v=c._scheduler,g=d?c._componentsViews:c._chartsViews,m=d?c._componentsMap:c._chartsMap,p=c._zr,y=c._api,_=0;_<g.length;_++)g[_].__alive=!1;d?h.eachComponent(function(w,S){w!=="series"&&b(S)}):h.eachSeries(b);function b(w){var S=w.__requireNewView;w.__requireNewView=!1;var L="_ec_"+w.id+"_"+w.type,C=!S&&m[L];if(!C){var D=mr(w.type),I=d?ar.getClass(D.main,D.sub):Ne.getClass(D.sub);process.env.NODE_ENV!=="production"&&vt(I,D.sub+" does not exist."),C=new I,C.init(h,y),m[L]=C,g.push(C),p.add(C.group)}w.__viewId=C.__id=L,C.__alive=!0,C.__model=w,C.group.__ecComponentInfo={mainType:w.mainType,index:w.componentIndex},!d&&v.prepareView(C,w,h,y)}for(var _=0;_<g.length;){var x=g[_];x.__alive?_++:(!d&&x.renderTask.dispose(),p.remove(x.group),x.dispose(h,y),g.splice(_,1),m[x.__id]===x&&delete m[x.__id],x.__id=x.group.__ecComponentInfo=null)}},Fl=function(c,d,h,v,g){var m=c._model;if(m.setUpdatePayload(h),!v){O([].concat(c._componentsViews).concat(c._chartsViews),x);return}var p={};p[v+"Id"]=h[v+"Id"],p[v+"Index"]=h[v+"Index"],p[v+"Name"]=h[v+"Name"];var y={mainType:v,query:p};g&&(y.subType=g);var _=h.excludeSeriesId,b;_!=null&&(b=Tt(),O(Se(_),function(w){var S=gr(w,null);S!=null&&b.set(S,!0)})),m&&m.eachComponent(y,function(w){var S=b&&b.get(w.id)!=null;if(!S)if(s0(h))if(w instanceof je)h.type===Yn&&!h.notBlur&&!w.get(["emphasis","disabled"])&&jT(w,h,c._api);else{var L=xc(w.mainType,w.componentIndex,h.name,c._api),C=L.focusSelf,D=L.dispatchers;h.type===Yn&&C&&!h.notBlur&&Sc(w.mainType,w.componentIndex,c._api),D&&O(D,function(I){h.type===Yn?Ws(I):Zs(I)})}else Tc(h)&&w instanceof je&&(JT(w,h,c._api),i0(w),Qe(c))},c),m&&m.eachComponent(y,function(w){var S=b&&b.get(w.id)!=null;S||x(c[v==="series"?"_chartsMap":"_componentsMap"][w.__viewId])},c);function x(w){w&&w.__alive&&w[d]&&w[d](w.__model,m,c._api,h)}},Gr={prepareAndUpdate:function(c){si(this),Gr.update.call(this,c,c&&{optionChanged:c.newOption!=null})},update:function(c,d){var h=this._model,v=this._api,g=this._zr,m=this._coordSysMgr,p=this._scheduler;if(h){h.setUpdatePayload(c),p.restoreData(h,c),p.performSeriesTasks(h),m.create(h,v),p.performDataProcessorTasks(h,c),Fh(this,h),m.update(h,v),n(h),p.performVisualTasks(h,c);var y=h.get("backgroundColor")||"transparent";g.setBackgroundColor(y);var _=h.get("darkMode");_!=null&&_!=="auto"&&g.setDarkMode(_),Vh(this,h,v,c,d),or.trigger("afterupdate",h,v)}},updateTransform:function(c){var d=this,h=this._model,v=this._api;if(h){h.setUpdatePayload(c);var g=[];h.eachComponent(function(p,y){if(p!=="series"){var _=d.getViewOfComponentModel(y);if(_&&_.__alive)if(_.updateTransform){var b=_.updateTransform(y,h,v,c);b&&b.update&&g.push(_)}else g.push(_)}});var m=Tt();h.eachSeries(function(p){var y=d._chartsMap[p.__viewId];if(y.updateTransform){var _=y.updateTransform(p,h,v,c);_&&_.update&&m.set(p.uid,1)}else m.set(p.uid,1)}),n(h),this._scheduler.performVisualTasks(h,c,{setDirty:!0,dirtyMap:m}),Vl(this,h,v,c,{},m),or.trigger("afterupdate",h,v)}},updateView:function(c){var d=this._model;d&&(d.setUpdatePayload(c),Ne.markUpdateMethod(c,"updateView"),n(d),this._scheduler.performVisualTasks(d,c,{setDirty:!0}),Vh(this,d,this._api,c,{}),or.trigger("afterupdate",d,this._api))},updateVisual:function(c){var d=this,h=this._model;h&&(h.setUpdatePayload(c),h.eachSeries(function(v){v.getData().clearAllVisual()}),Ne.markUpdateMethod(c,"updateVisual"),n(h),this._scheduler.performVisualTasks(h,c,{visualType:"visual",setDirty:!0}),h.eachComponent(function(v,g){if(v!=="series"){var m=d.getViewOfComponentModel(g);m&&m.__alive&&m.updateVisual(g,h,d._api,c)}}),h.eachSeries(function(v){var g=d._chartsMap[v.__viewId];g.updateVisual(v,h,d._api,c)}),or.trigger("afterupdate",h,this._api))},updateLayout:function(c){Gr.update.call(this,c)}};function r(c,d,h,v,g){if(c._disposed){De(c.id);return}for(var m=c._model,p=c._coordSysMgr.getCoordinateSystems(),y,_=Yf(m,h),b=0;b<p.length;b++){var x=p[b];if(x[d]&&(y=x[d](m,_,v,g))!=null)return y}process.env.NODE_ENV!=="production"&&de("No coordinate system that supports "+d+" found by the given finder.")}zl=r,Fh=function(c,d){var h=c._chartsMap,v=c._scheduler;d.eachSeries(function(g){v.updateStreamModes(g,h[g.__viewId])})},zh=function(c,d){var h=this,v=this.getModel(),g=c.type,m=c.escapeConnect,p=Gl[g],y=(p.update||"update").split(":"),_=y.pop(),b=y[0]!=null&&mr(y[0]);this[ee]=!0,Ki(this);var x=[c],w=!1;c.batch&&(w=!0,x=ft(c.batch,function(R){return R=Bt(et({},R),c),R.batch=null,R}));var S=[],L,C=[],D=p.nonRefinedEventType,I=Tc(c),A=s0(c);if(A&&n0(this._api),O(x,function(R){var z=p.action(R,v,h._api);if(p.refineEvent?C.push(z):L=z,L=L||et({},R),L.type=D,S.push(L),A){var H=Xf(c),V=H.queryOptionMap,Z=H.mainTypeSpecified,B=Z?V.keys()[0]:"series";Fl(h,_,R,B),Qe(h)}else I?(Fl(h,_,R,"series"),Qe(h)):b&&Fl(h,_,R,b.main,b.sub)}),_!=="none"&&!A&&!I&&!b)try{this[se]?(si(this),Gr.update.call(this,c),this[se]=null):Gr[_].call(this,c)}catch(R){throw this[ee]=!1,R}if(w?L={type:D,escapeConnect:m,batch:S}:L=S[0],this[ee]=!1,!d){var M=void 0;if(p.refineEvent){var T=p.refineEvent(C,c,v,this._api).eventContent;vt(pt(T)),M=Bt({type:p.refinedEventType},T),M.fromAction=c.type,M.fromActionPayload=c,M.escapeConnect=!0}var k=this._messageCenter;k.trigger(L.type,L),M&&k.trigger(M.type,M)}},ji=function(c){for(var d=this._pendingActions;d.length;){var h=d.shift();zh.call(this,h,c)}},Qi=function(c){!c&&this.trigger("updated")},jy=function(c,d){c.on("rendered",function(h){d.trigger("rendered",h),c.animation.isFinished()&&!d[se]&&!d._scheduler.unfinished&&!d._pendingActions.length&&d.trigger("finished")})},Qy=function(c,d){c.on("mouseover",function(h){var v=h.target,g=ho(v,Fi);g&&(QT(g,h,d._api),Qe(d))}).on("mouseout",function(h){var v=h.target,g=ho(v,Fi);g&&(KT(g,h,d._api),Qe(d))}).on("click",function(h){var v=h.target,g=ho(v,function(y){return Lt(y).dataIndex!=null},!0);if(g){var m=g.selected?"unselect":"select",p=Lt(g);d._api.dispatchAction({type:m,dataType:p.dataType,dataIndexInside:p.dataIndex,seriesIndex:p.seriesIndex,isFromClick:!0})}})};function n(c){c.clearColorPalette(),c.eachSeries(function(d){d.clearColorPalette()})}function i(c){var d=[],h=[],v=!1;if(c.eachComponent(function(y,_){var b=_.get("zlevel")||0,x=_.get("z")||0,w=_.getZLevelKey();v=v||!!w,(y==="series"?h:d).push({zlevel:b,z:x,idx:_.componentIndex,type:y,key:w})}),v){var g=d.concat(h),m,p;ts(g,function(y,_){return y.zlevel===_.zlevel?y.z-_.z:y.zlevel-_.zlevel}),O(g,function(y){var _=c.getComponent(y.type,y.idx),b=y.zlevel,x=y.key;m!=null&&(b=Math.max(m,b)),x?(b===m&&x!==p&&b++,p=x):p&&(b===m&&b++,p=""),m=b,_.setZLevel(b)})}}Vh=function(c,d,h,v,g){i(d),Ky(c,d,h,v,g),O(c._chartsViews,function(m){m.__alive=!1}),Vl(c,d,h,v,g),O(c._chartsViews,function(m){m.__alive||m.remove(d,h)})},Ky=function(c,d,h,v,g,m){O(m||c._componentsViews,function(p){var y=p.__model;u(y,p),p.render(y,d,h,v),l(y,p),f(y,p)})},Vl=function(c,d,h,v,g,m){var p=c._scheduler;g=et(g||{},{updatedSeries:d.getSeries()}),or.trigger("series:beforeupdate",d,h,g);var y=!1;d.eachSeries(function(_){var b=c._chartsMap[_.__viewId];b.__alive=!0;var x=b.renderTask;p.updatePayload(x,v),u(_,b),m&&m.get(_.uid)&&x.dirty(),x.perform(p.getPerformArgs(x))&&(y=!0),b.group.silent=!!_.get("silent"),s(_,b),i0(_)}),p.unfinished=y||p.unfinished,or.trigger("series:layoutlabels",d,h,g),or.trigger("series:transition",d,h,g),d.eachSeries(function(_){var b=c._chartsMap[_.__viewId];l(_,b),f(_,b)}),o(c,d),or.trigger("series:afterupdate",d,h,g)},Qe=function(c){c[Oh]=!0,c.getZr().wakeUp()},Ki=function(c){c[Bl]=(c[Bl]+1)%1e3},e_=function(c){c[Oh]&&(c.getZr().storage.traverse(function(d){Ua(d)||a(d)}),c[Oh]=!1)};function a(c){for(var d=[],h=c.currentStates,v=0;v<h.length;v++){var g=h[v];g==="emphasis"||g==="blur"||g==="select"||d.push(g)}c.selected&&c.states.select&&d.push("select"),c.hoverState===Fs&&c.states.emphasis?d.push("emphasis"):c.hoverState===Bs&&c.states.blur&&d.push("blur"),c.useStates(d)}function o(c,d){var h=c._zr,v=h.storage,g=0;v.traverse(function(m){m.isGroup||g++}),g>d.get("hoverLayerThreshold")&&!xt.node&&!xt.worker&&d.eachSeries(function(m){if(!m.preventUsingHoverLayer){var p=c._chartsMap[m.__viewId];p.__alive&&p.eachRendered(function(y){y.states.emphasis&&(y.states.emphasis.hoverLayer=!0)})}})}function s(c,d){var h=c.get("blendMode")||null;d.eachRendered(function(v){v.isGroup||(v.style.blend=h)})}function l(c,d){if(!c.preventAutoZ){var h=I0(c);d.eachRendered(function(v){return k0(v,h.z,h.zlevel),!0})}}function u(c,d){d.eachRendered(function(h){if(!Ua(h)){var v=h.getTextContent(),g=h.getTextGuideLine();h.stateTransition&&(h.stateTransition=null),v&&v.stateTransition&&(v.stateTransition=null),g&&g.stateTransition&&(g.stateTransition=null),h.hasState()?(h.prevStates=h.currentStates,h.clearStates()):h.prevStates&&(h.prevStates=null)}})}function f(c,d){var h=c.getModel("stateAnimation"),v=c.isAnimationEnabled(),g=h.get("duration"),m=g>0?{duration:g,delay:h.get("delay"),easing:h.get("easing")}:null;d.eachRendered(function(p){if(p.states&&p.states.emphasis){if(Ua(p))return;if(p instanceof It&&aC(p),p.__dirty){var y=p.prevStates;y&&p.useStates(y)}if(v){p.stateTransition=m;var _=p.getTextContent(),b=p.getTextGuideLine();_&&(_.stateTransition=m),b&&(b.stateTransition=m)}p.__dirty&&a(p)}})}Jy=function(c){return new((function(d){it(h,d);function h(){return d!==null&&d.apply(this,arguments)||this}return h.prototype.getCoordinateSystems=function(){return c._coordSysMgr.getCoordinateSystems()},h.prototype.getComponentByElement=function(v){for(;v;){var g=v.__ecComponentInfo;if(g!=null)return c._model.getComponent(g.mainType,g.index);v=v.parent}},h.prototype.enterEmphasis=function(v,g){Ws(v,g),Qe(c)},h.prototype.leaveEmphasis=function(v,g){Zs(v,g),Qe(c)},h.prototype.enterBlur=function(v){qT(v),Qe(c)},h.prototype.leaveBlur=function(v){Jg(v),Qe(c)},h.prototype.enterSelect=function(v){t0(v),Qe(c)},h.prototype.leaveSelect=function(v){e0(v),Qe(c)},h.prototype.getModel=function(){return c.getModel()},h.prototype.getViewOfComponentModel=function(v){return c.getViewOfComponentModel(v)},h.prototype.getViewOfSeriesModel=function(v){return c.getViewOfSeriesModel(v)},h.prototype.getMainProcessVersion=function(){return c[Bl]},h})(ym))(c)},t_=function(c){function d(h,v){for(var g=0;g<h.length;g++){var m=h[g];m[Rh]=v}}O(Hl,function(h,v){c._messageCenter.on(v,function(g){if(i_[c.group]&&c[Rh]!==Uy){if(g&&g.escapeConnect)return;var m=c.makeActionFromEvent(g),p=[];O(po,function(y){y!==c&&y.group===c.group&&p.push(y)}),d(p,Uy),O(p,function(y){y[Rh]!==SM&&y.dispatchAction(m)}),d(p,xM)}})})}})(),t})(kr),Gh=r_.prototype;Gh.on=Wy("on"),Gh.off=Wy("off"),Gh.one=function(e,t,r){var n=this;Or("ECharts#one is deprecated.");function i(){for(var a=[],o=0;o<arguments.length;o++)a[o]=arguments[o];t&&t.apply&&t.apply(this,a),n.off(e,i)}this.on.call(this,e,i,r)};var wM=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];function De(e){process.env.NODE_ENV!=="production"&&de("Instance "+e+" has been disposed")}var Gl={},Hl={},Hh={},Uh=[],Wh=[],Ul=[],n_={},Zh={},po={},i_={},TM=+new Date-0,Yh="_echarts_instance_";function CM(e,t,r){var n=!(r&&r.ssr);if(n){if(process.env.NODE_ENV!=="production"&&!e)throw new Error("Initialize failed: invalid dom.");var i=AM(e);if(i)return process.env.NODE_ENV!=="production"&&de("There is a chart instance already initialized on the dom."),i;process.env.NODE_ENV!=="production"&&mi(e)&&e.nodeName.toUpperCase()!=="CANVAS"&&(!e.clientWidth&&(!r||r.width==null)||!e.clientHeight&&(!r||r.height==null))&&de("Can't get DOM width or height. Please check dom.clientWidth and dom.clientHeight. They should not be 0.For example, you may need to call this in the callback of window.onload.")}var a=new r_(e,t,r);return a.id="ec_"+TM++,po[a.id]=a,n&&cg(e,Yh,a.id),t_(a),or.trigger("afterinit",a),a}function AM(e){return po[z2(e,Yh)]}function a_(e,t){n_[e]=t}function o_(e){Nt(Wh,e)<0&&Wh.push(e)}function s_(e,t){qh(Uh,e,t,dM)}function EM(e){Xh("afterinit",e)}function LM(e){Xh("afterupdate",e)}function Xh(e,t){or.on(e,t)}function Ji(e,t,r){var n,i,a,o,s;_t(t)&&(r=t,t=""),pt(e)?(n=e.type,i=e.event,o=e.update,s=e.publishNonRefinedEvent,r||(r=e.action),a=e.refineEvent):(n=e,i=t);function l(f){return f.toLowerCase()}i=l(i||n);var u=a?l(n):i;Gl[n]||(vt(Hy.test(n)&&Hy.test(i)),a&&vt(i!==n),Gl[n]={actionType:n,refinedEventType:i,nonRefinedEventType:u,update:o,action:r,refineEvent:a},Hh[i]=1,a&&s&&(Hh[u]=1),process.env.NODE_ENV!=="production"&&Hl[u]&&zt(u+' must not be shared; use "refineEvent" if you intend to share an event name.'),Hl[u]=n)}function MM(e,t){ah.register(e,t)}function DM(e,t){qh(Ul,e,t,zy,"layout")}function li(e,t){qh(Ul,e,t,Vy,"visual")}var l_=[];function qh(e,t,r,n,i){if((_t(t)||pt(t))&&(r=t,t=n),process.env.NODE_ENV!=="production"){if(isNaN(t)||t==null)throw new Error("Illegal priority");O(e,function(o){vt(o.__raw!==r)})}if(!(Nt(l_,r)>=0)){l_.push(r);var a=hy.wrapStageHandler(r,i);a.__prio=t,a.__raw=r,e.push(a)}}function u_(e,t){Zh[e]=t}function IM(e,t,r){var n=lM("registerMap");n&&n(e,t,r)}var kM=$E;li($h,cL),li(Rl,hL),li(Rl,dL),li($h,AL),li(Rl,EL),li(Gy,oM),o_(Cm),s_(cM,gE),u_("default",vL),Ji({type:Yn,event:Yn,update:Yn},_e),Ji({type:Vs,event:Vs,update:Vs},_e),Ji({type:Gs,event:mc,update:Gs,action:_e,refineEvent:jh,publishNonRefinedEvent:!0}),Ji({type:gc,event:mc,update:gc,action:_e,refineEvent:jh,publishNonRefinedEvent:!0}),Ji({type:Hs,event:mc,update:Hs,action:_e,refineEvent:jh,publishNonRefinedEvent:!0});function jh(e,t,r,n){return{eventContent:{selected:tC(r),isFromClick:t.isFromClick||!1}}}a_("default",{}),a_("dark",my);function go(e){return e==null?0:e.length||1}function f_(e){return e}var PM=(function(){function e(t,r,n,i,a,o){this._old=t,this._new=r,this._oldKeyGetter=n||f_,this._newKeyGetter=i||f_,this.context=a,this._diffModeMultiple=o==="multiple"}return e.prototype.add=function(t){return this._add=t,this},e.prototype.update=function(t){return this._update=t,this},e.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},e.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},e.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},e.prototype.remove=function(t){return this._remove=t,this},e.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},e.prototype._executeOneToOne=function(){var t=this._old,r=this._new,n={},i=new Array(t.length),a=new Array(r.length);this._initIndexMap(t,null,i,"_oldKeyGetter"),this._initIndexMap(r,n,a,"_newKeyGetter");for(var o=0;o<t.length;o++){var s=i[o],l=n[s],u=go(l);if(u>1){var f=l.shift();l.length===1&&(n[s]=l[0]),this._update&&this._update(f,o)}else u===1?(n[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(a,n)},e.prototype._executeMultiple=function(){var t=this._old,r=this._new,n={},i={},a=[],o=[];this._initIndexMap(t,n,a,"_oldKeyGetter"),this._initIndexMap(r,i,o,"_newKeyGetter");for(var s=0;s<a.length;s++){var l=a[s],u=n[l],f=i[l],c=go(u),d=go(f);if(c>1&&d===1)this._updateManyToOne&&this._updateManyToOne(f,u),i[l]=null;else if(c===1&&d>1)this._updateOneToMany&&this._updateOneToMany(f,u),i[l]=null;else if(c===1&&d===1)this._update&&this._update(f,u),i[l]=null;else if(c>1&&d>1)this._updateManyToMany&&this._updateManyToMany(f,u),i[l]=null;else if(c>1)for(var h=0;h<c;h++)this._remove&&this._remove(u[h]);else this._remove&&this._remove(u)}this._performRestAdd(o,i)},e.prototype._performRestAdd=function(t,r){for(var n=0;n<t.length;n++){var i=t[n],a=r[i],o=go(a);if(o>1)for(var s=0;s<o;s++)this._add&&this._add(a[s]);else o===1&&this._add&&this._add(a);r[i]=null}},e.prototype._initIndexMap=function(t,r,n,i){for(var a=this._diffModeMultiple,o=0;o<t.length;o++){var s="_ec_"+this[i](t[o],o);if(a||(n[o]=s),!!r){var l=r[s],u=go(l);u===0?(r[s]=o,a&&n.push(s)):u===1?r[s]=[l,o]:l.push(o)}}},e})(),NM=(function(){function e(t,r){this._encode=t,this._schema=r}return e.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},e.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},e})();function $M(e,t){var r={},n=r.encode={},i=Tt(),a=[],o=[],s={};O(e.dimensions,function(d){var h=e.getDimensionInfo(d),v=h.coordDim;if(v){process.env.NODE_ENV!=="production"&&vt(uh.get(v)==null);var g=h.coordDimIndex;Qh(n,v)[g]=d,h.isExtraCoord||(i.set(v,1),RM(h.type)&&(a[0]=d),Qh(s,v)[g]=e.getDimensionIndex(h.name)),h.defaultTooltip&&o.push(d)}uh.each(function(m,p){var y=Qh(n,p),_=h.otherDims[p];_!=null&&_!==!1&&(y[_]=h.name)})});var l=[],u={};i.each(function(d,h){var v=n[h];u[h]=v[0],l=l.concat(v)}),r.dataDimsOnCoord=l,r.dataDimIndicesOnCoord=ft(l,function(d){return e.getDimensionInfo(d).storeDimIndex}),r.encodeFirstDimNotExtra=u;var f=n.label;f&&f.length&&(a=f.slice());var c=n.tooltip;return c&&c.length?o=c.slice():o.length||(o=a.slice()),n.defaultedLabel=a,n.defaultedTooltip=o,r.userOutput=new NM(s,t),r}function Qh(e,t){return e.hasOwnProperty(t)||(e[t]=[]),e[t]}function OM(e){return e==="category"?"ordinal":e==="time"?"time":"float"}function RM(e){return!(e==="ordinal"||e==="time")}var Wl=(function(){function e(t){this.otherDims={},t!=null&&et(this,t)}return e})(),BM=Zt(),FM={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},c_=(function(){function e(t){this.dimensions=t.dimensions,this._dimOmitted=t.dimensionOmitted,this.source=t.source,this._fullDimCount=t.fullDimensionCount,this._updateDimOmitted(t.dimensionOmitted)}return e.prototype.isDimensionOmitted=function(){return this._dimOmitted},e.prototype._updateDimOmitted=function(t){this._dimOmitted=t,t&&(this._dimNameMap||(this._dimNameMap=v_(this.source)))},e.prototype.getSourceDimensionIndex=function(t){return ct(this._dimNameMap.get(t),-1)},e.prototype.getSourceDimension=function(t){var r=this.source.dimensionsDefine;if(r)return r[t]},e.prototype.makeStoreSchema=function(){for(var t=this._fullDimCount,r=Dm(this.source),n=!p_(t),i="",a=[],o=0,s=0;o<t;o++){var l=void 0,u=void 0,f=void 0,c=this.dimensions[s];if(c&&c.storeDimIndex===o)l=r?c.name:null,u=c.type,f=c.ordinalMeta,s++;else{var d=this.getSourceDimension(o);d&&(l=r?d.name:null,u=d.type)}a.push({property:l,type:u,ordinalMeta:f}),r&&l!=null&&(!c||!c.isCalculationCoord)&&(i+=n?l.replace(/\`/g,"`1").replace(/\$/g,"`2"):l),i+="$",i+=FM[u]||"f",f&&(i+=f.uid),i+="$"}var h=this.source,v=[h.seriesLayoutBy,h.startIndex,i].join("$$");return{dimensions:a,hash:v}},e.prototype.makeOutputDimensionNames=function(){for(var t=[],r=0,n=0;r<this._fullDimCount;r++){var i=void 0,a=this.dimensions[n];if(a&&a.storeDimIndex===r)a.isCalculationCoord||(i=a.name),n++;else{var o=this.getSourceDimension(r);o&&(i=o.name)}t.push(i)}return t},e.prototype.appendCalculationDimension=function(t){this.dimensions.push(t),t.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},e})();function h_(e){return e instanceof c_}function d_(e){for(var t=Tt(),r=0;r<(e||[]).length;r++){var n=e[r],i=pt(n)?n.name:n;i!=null&&t.get(i)==null&&t.set(i,r)}return t}function v_(e){var t=BM(e);return t.dimNameMap||(t.dimNameMap=d_(e.dimensionsDefine))}function p_(e){return e>30}var mo=pt,vn=ft,zM=typeof Int32Array>"u"?Array:Int32Array,VM="e\0\0",g_=-1,GM=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],HM=["_approximateExtent"],m_,Zl,yo,ta,Kh,_o,Jh,y_=(function(){function e(t,r){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","minmaxDownSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","minmaxDownSample","lttbDownSample"];var n,i=!1;h_(t)?(n=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(i=!0,n=t),n=n||["x","y"];for(var a={},o=[],s={},l=!1,u={},f=0;f<n.length;f++){var c=n[f],d=ut(c)?new Wl({name:c}):c instanceof Wl?c:new Wl(c),h=d.name;d.type=d.type||"float",d.coordDim||(d.coordDim=h,d.coordDimIndex=0);var v=d.otherDims=d.otherDims||{};o.push(h),a[h]=d,u[h]!=null&&(l=!0),d.createInvertedIndices&&(s[h]=[]);var g=f;$t(d.storeDimIndex)&&(g=d.storeDimIndex),v.itemName===0&&(this._nameDimIdx=g),v.itemId===0&&(this._idDimIdx=g),process.env.NODE_ENV!=="production"&&vt(i||d.storeDimIndex>=0),i&&(d.storeDimIndex=f)}if(this.dimensions=o,this._dimInfos=a,this._initGetDimensionInfo(l),this.hostModel=r,this._invertedIndicesMap=s,this._dimOmitted){var m=this._dimIdxToName=Tt();O(o,function(p){m.set(a[p].storeDimIndex,p)})}}return e.prototype.getDimension=function(t){var r=this._recognizeDimIndex(t);if(r==null)return t;if(r=t,!this._dimOmitted)return this.dimensions[r];var n=this._dimIdxToName.get(r);if(n!=null)return n;var i=this._schema.getSourceDimension(r);if(i)return i.name},e.prototype.getDimensionIndex=function(t){var r=this._recognizeDimIndex(t);if(r!=null)return r;if(t==null)return-1;var n=this._getDimInfo(t);return n?n.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(t):-1},e.prototype._recognizeDimIndex=function(t){if($t(t)||t!=null&&!isNaN(t)&&!this._getDimInfo(t)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(t)<0))return+t},e.prototype._getStoreDimIndex=function(t){var r=this.getDimensionIndex(t);if(process.env.NODE_ENV!=="production"&&r==null)throw new Error("Unknown dimension "+t);return r},e.prototype.getDimensionInfo=function(t){return this._getDimInfo(this.getDimension(t))},e.prototype._initGetDimensionInfo=function(t){var r=this._dimInfos;this._getDimInfo=t?function(n){return r.hasOwnProperty(n)?r[n]:void 0}:function(n){return r[n]}},e.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},e.prototype.mapDimension=function(t,r){var n=this._dimSummary;if(r==null)return n.encodeFirstDimNotExtra[t];var i=n.encode[t];return i?i[r]:null},e.prototype.mapDimensionsAll=function(t){var r=this._dimSummary,n=r.encode[t];return(n||[]).slice()},e.prototype.getStore=function(){return this._store},e.prototype.initData=function(t,r,n){var i=this,a;if(t instanceof Sh&&(a=t),!a){var o=this.dimensions,s=gh(t)||Ce(t)?new Pm(t,o.length):t;a=new Sh;var l=vn(o,function(u){return{type:i._dimInfos[u].type,property:u}});a.initData(s,l,n)}this._store=a,this._nameList=(r||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,a.count()),this._dimSummary=$M(this,this._schema),this.userOutput=this._dimSummary.userOutput},e.prototype.appendData=function(t){var r=this._store.appendData(t);this._doInit(r[0],r[1])},e.prototype.appendValues=function(t,r){var n=this._store.appendValues(t,r&&r.length),i=n.start,a=n.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),r)for(var s=i;s<a;s++){var l=s-i;this._nameList[s]=r[l],o&&Jh(this,s)}},e.prototype._updateOrdinalMeta=function(){for(var t=this._store,r=this.dimensions,n=0;n<r.length;n++){var i=this._dimInfos[r[n]];i.ordinalMeta&&t.collectOrdinalMeta(i.storeDimIndex,i.ordinalMeta)}},e.prototype._shouldMakeIdFromName=function(){var t=this._store.getProvider();return this._idDimIdx==null&&t.getSource().sourceFormat!==zr&&!t.fillStorage},e.prototype._doInit=function(t,r){if(!(t>=r)){var n=this._store,i=n.getProvider();this._updateOrdinalMeta();var a=this._nameList,o=this._idList,s=i.getSource().sourceFormat,l=s===Pe;if(l&&!i.pure)for(var u=[],f=t;f<r;f++){var c=i.getItem(f,u);if(!this.hasItemOption&&M2(c)&&(this.hasItemOption=!0),c){var d=c.name;a[f]==null&&d!=null&&(a[f]=gr(d,null));var h=c.id;o[f]==null&&h!=null&&(o[f]=gr(h,null))}}if(this._shouldMakeIdFromName())for(var f=t;f<r;f++)Jh(this,f);m_(this)}},e.prototype.getApproximateExtent=function(t){return this._approximateExtent[t]||this._store.getDataExtent(this._getStoreDimIndex(t))},e.prototype.setApproximateExtent=function(t,r){r=this.getDimension(r),this._approximateExtent[r]=t.slice()},e.prototype.getCalculationInfo=function(t){return this._calculationInfo[t]},e.prototype.setCalculationInfo=function(t,r){mo(t)?et(this._calculationInfo,t):this._calculationInfo[t]=r},e.prototype.getName=function(t){var r=this.getRawIndex(t),n=this._nameList[r];return n==null&&this._nameDimIdx!=null&&(n=yo(this,this._nameDimIdx,r)),n==null&&(n=""),n},e.prototype._getCategory=function(t,r){var n=this._store.get(t,r),i=this._store.getOrdinalMeta(t);return i?i.categories[n]:n},e.prototype.getId=function(t){return Zl(this,this.getRawIndex(t))},e.prototype.count=function(){return this._store.count()},e.prototype.get=function(t,r){var n=this._store,i=this._dimInfos[t];if(i)return n.get(i.storeDimIndex,r)},e.prototype.getByRawIndex=function(t,r){var n=this._store,i=this._dimInfos[t];if(i)return n.getByRawIndex(i.storeDimIndex,r)},e.prototype.getIndices=function(){return this._store.getIndices()},e.prototype.getDataExtent=function(t){return this._store.getDataExtent(this._getStoreDimIndex(t))},e.prototype.getSum=function(t){return this._store.getSum(this._getStoreDimIndex(t))},e.prototype.getMedian=function(t){return this._store.getMedian(this._getStoreDimIndex(t))},e.prototype.getValues=function(t,r){var n=this,i=this._store;return st(t)?i.getValues(vn(t,function(a){return n._getStoreDimIndex(a)}),r):i.getValues(t)},e.prototype.hasValue=function(t){for(var r=this._dimSummary.dataDimIndicesOnCoord,n=0,i=r.length;n<i;n++)if(isNaN(this._store.get(r[n],t)))return!1;return!0},e.prototype.indexOfName=function(t){for(var r=0,n=this._store.count();r<n;r++)if(this.getName(r)===t)return r;return-1},e.prototype.getRawIndex=function(t){return this._store.getRawIndex(t)},e.prototype.indexOfRawIndex=function(t){return this._store.indexOfRawIndex(t)},e.prototype.rawIndexOf=function(t,r){var n=t&&this._invertedIndicesMap[t];if(process.env.NODE_ENV!=="production"&&!n)throw new Error("Do not supported yet");var i=n&&n[r];return i==null||isNaN(i)?g_:i},e.prototype.each=function(t,r,n){_t(t)&&(n=r,r=t,t=[]);var i=n||this,a=vn(ta(t),this._getStoreDimIndex,this);this._store.each(a,i?Ft(r,i):r)},e.prototype.filterSelf=function(t,r,n){_t(t)&&(n=r,r=t,t=[]);var i=n||this,a=vn(ta(t),this._getStoreDimIndex,this);return this._store=this._store.filter(a,i?Ft(r,i):r),this},e.prototype.selectRange=function(t){var r=this,n={},i=Mt(t);return O(i,function(a){var o=r._getStoreDimIndex(a);n[o]=t[a]}),this._store=this._store.selectRange(n),this},e.prototype.mapArray=function(t,r,n){_t(t)&&(n=r,r=t,t=[]),n=n||this;var i=[];return this.each(t,function(){i.push(r&&r.apply(this,arguments))},n),i},e.prototype.map=function(t,r,n,i){var a=n||i||this,o=vn(ta(t),this._getStoreDimIndex,this),s=_o(this);return s._store=this._store.map(o,a?Ft(r,a):r),s},e.prototype.modify=function(t,r,n,i){var a=this,o=n||i||this;process.env.NODE_ENV!=="production"&&O(ta(t),function(l){var u=a.getDimensionInfo(l);u.isCalculationCoord||console.error("Danger: only stack dimension can be modified")});var s=vn(ta(t),this._getStoreDimIndex,this);this._store.modify(s,o?Ft(r,o):r)},e.prototype.downSample=function(t,r,n,i){var a=_o(this);return a._store=this._store.downSample(this._getStoreDimIndex(t),r,n,i),a},e.prototype.minmaxDownSample=function(t,r){var n=_o(this);return n._store=this._store.minmaxDownSample(this._getStoreDimIndex(t),r),n},e.prototype.lttbDownSample=function(t,r){var n=_o(this);return n._store=this._store.lttbDownSample(this._getStoreDimIndex(t),r),n},e.prototype.getRawDataItem=function(t){return this._store.getRawDataItem(t)},e.prototype.getItemModel=function(t){var r=this.hostModel,n=this.getRawDataItem(t);return new Yt(n,r,r&&r.ecModel)},e.prototype.diff=function(t){var r=this;return new PM(t?t.getStore().getIndices():[],this.getStore().getIndices(),function(n){return Zl(t,n)},function(n){return Zl(r,n)})},e.prototype.getVisual=function(t){var r=this._visual;return r&&r[t]},e.prototype.setVisual=function(t,r){this._visual=this._visual||{},mo(t)?et(this._visual,t):this._visual[t]=r},e.prototype.getItemVisual=function(t,r){var n=this._itemVisuals[t],i=n&&n[r];return i??this.getVisual(r)},e.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},e.prototype.ensureUniqueItemVisual=function(t,r){var n=this._itemVisuals,i=n[t];i||(i=n[t]={});var a=i[r];return a==null&&(a=this.getVisual(r),st(a)?a=a.slice():mo(a)&&(a=et({},a)),i[r]=a),a},e.prototype.setItemVisual=function(t,r,n){var i=this._itemVisuals[t]||{};this._itemVisuals[t]=i,mo(r)?et(i,r):i[r]=n},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(t,r){mo(t)?et(this._layout,t):this._layout[t]=r},e.prototype.getLayout=function(t){return this._layout[t]},e.prototype.getItemLayout=function(t){return this._itemLayouts[t]},e.prototype.setItemLayout=function(t,r,n){this._itemLayouts[t]=n?et(this._itemLayouts[t]||{},r):r},e.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},e.prototype.setItemGraphicEl=function(t,r){var n=this.hostModel&&this.hostModel.seriesIndex;FT(n,this.dataType,t,r),this._graphicEls[t]=r},e.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},e.prototype.eachItemGraphicEl=function(t,r){O(this._graphicEls,function(n,i){n&&t&&t.call(r,n,i)})},e.prototype.cloneShallow=function(t){return t||(t=new e(this._schema?this._schema:vn(this.dimensions,this._getDimInfo,this),this.hostModel)),Kh(t,this),t._store=this._store,t},e.prototype.wrapMethod=function(t,r){var n=this[t];_t(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var i=n.apply(this,arguments);return r.apply(this,[i].concat(Bu(arguments)))})},e.internalField=(function(){m_=function(t){var r=t._invertedIndicesMap;O(r,function(n,i){var a=t._dimInfos[i],o=a.ordinalMeta,s=t._store;if(o){n=r[i]=new zM(o.categories.length);for(var l=0;l<n.length;l++)n[l]=g_;for(var l=0;l<s.count();l++)n[s.get(a.storeDimIndex,l)]=l}})},yo=function(t,r,n){return gr(t._getCategory(r,n),null)},Zl=function(t,r){var n=t._idList[r];return n==null&&t._idDimIdx!=null&&(n=yo(t,t._idDimIdx,r)),n==null&&(n=VM+r),n},ta=function(t){return st(t)||(t=t!=null?[t]:[]),t},_o=function(t){var r=new e(t._schema?t._schema:vn(t.dimensions,t._getDimInfo,t),t.hostModel);return Kh(r,t),r},Kh=function(t,r){O(GM.concat(r.__wrappedMethods||[]),function(n){r.hasOwnProperty(n)&&(t[n]=r[n])}),t.__wrappedMethods=r.__wrappedMethods,O(HM,function(n){t[n]=At(r[n])}),t._calculationInfo=et({},r._calculationInfo)},Jh=function(t,r){var n=t._nameList,i=t._idList,a=t._nameDimIdx,o=t._idDimIdx,s=n[r],l=i[r];if(s==null&&a!=null&&(n[r]=s=yo(t,a,r)),l==null&&o!=null&&(i[r]=l=yo(t,o,r)),l==null&&s!=null){var u=t._nameRepeatCount,f=u[s]=(u[s]||0)+1;l=s,f>1&&(l+="__ec__"+f),i[r]=l}}})(),e})();function __(e,t){gh(e)||(e=Am(e)),t=t||{};var r=t.coordDimensions||[],n=t.dimensionsDefine||e.dimensionsDefine||[],i=Tt(),a=[],o=WM(e,r,n,t.dimensionsCount),s=t.canOmitUnusedDimensions&&p_(o),l=n===e.dimensionsDefine,u=l?v_(e):d_(n),f=t.encodeDefine;!f&&t.encodeDefaulter&&(f=t.encodeDefaulter(e,o));for(var c=Tt(f),d=new Gm(o),h=0;h<d.length;h++)d[h]=-1;function v(C){var D=d[C];if(D<0){var I=n[C],A=pt(I)?I:{name:I},M=new Wl,T=A.name;T!=null&&u.get(T)!=null&&(M.name=M.displayName=T),A.type!=null&&(M.type=A.type),A.displayName!=null&&(M.displayName=A.displayName);var k=a.length;return d[C]=k,M.storeDimIndex=C,a.push(M),M}return a[D]}if(!s)for(var h=0;h<o;h++)v(h);c.each(function(C,D){var I=Se(C).slice();if(I.length===1&&!ut(I[0])&&I[0]<0){c.set(D,!1);return}var A=c.set(D,[]);O(I,function(M,T){var k=ut(M)?u.get(M):M;k!=null&&k<o&&(A[T]=k,m(v(k),D,T))})});var g=0;O(r,function(C){var D,I,A,M;if(ut(C))D=C,M={};else{M=C,D=M.name;var T=M.ordinalMeta;M.ordinalMeta=null,M=et({},M),M.ordinalMeta=T,I=M.dimsDef,A=M.otherDims,M.name=M.coordDim=M.coordDimIndex=M.dimsDef=M.otherDims=null}var k=c.get(D);if(k!==!1){if(k=Se(k),!k.length)for(var R=0;R<(I&&I.length||1);R++){for(;g<o&&v(g).coordDim!=null;)g++;g<o&&k.push(g++)}O(k,function(z,H){var V=v(z);if(l&&M.type!=null&&(V.type=M.type),m(Bt(V,M),D,H),V.name==null&&I){var Z=I[H];!pt(Z)&&(Z={name:Z}),V.name=V.displayName=Z.name,V.defaultTooltip=Z.defaultTooltip}A&&Bt(V.otherDims,A)})}});function m(C,D,I){uh.get(D)!=null?C.otherDims[D]=I:(C.coordDim=D,C.coordDimIndex=I,i.set(D,!0))}var p=t.generateCoord,y=t.generateCoordCount,_=y!=null;y=p?y||1:0;var b=p||"value";function x(C){C.name==null&&(C.name=C.coordDim)}if(s)O(a,function(C){x(C)}),a.sort(function(C,D){return C.storeDimIndex-D.storeDimIndex});else for(var w=0;w<o;w++){var S=v(w),L=S.coordDim;L==null&&(S.coordDim=ZM(b,i,_),S.coordDimIndex=0,(!p||y<=0)&&(S.isExtraCoord=!0),y--),x(S),S.type==null&&(fm(e,w)===ce.Must||S.isExtraCoord&&(S.otherDims.itemName!=null||S.otherDims.seriesName!=null))&&(S.type="ordinal")}return UM(a),new c_({source:e,dimensions:a,fullDimensionCount:o,dimensionOmitted:s})}function UM(e){for(var t=Tt(),r=0;r<e.length;r++){var n=e[r],i=n.name,a=t.get(i)||0;a>0&&(n.name=i+(a-1)),a++,t.set(i,a)}}function WM(e,t,r,n){var i=Math.max(e.dimensionsDetectedCount||1,t.length,r.length,n||0);return O(t,function(a){var o;pt(a)&&(o=a.dimsDef)&&(i=Math.max(i,o.length))}),i}function ZM(e,t,r){if(r||t.hasKey(e)){for(var n=0;t.hasKey(e+n);)n++;e+=n}return t.set(e,!0),e}var YM=(function(){function e(t){this.coordSysDims=[],this.axisMap=Tt(),this.categoryAxisMap=Tt(),this.coordSysName=t}return e})();function XM(e){var t=e.get("coordinateSystem"),r=new YM(t),n=qM[t];if(n)return n(e,r,r.axisMap,r.categoryAxisMap),r}var qM={cartesian2d:function(e,t,r,n){var i=e.getReferringComponents("xAxis",ze).models[0],a=e.getReferringComponents("yAxis",ze).models[0];if(process.env.NODE_ENV!=="production"){if(!i)throw new Error('xAxis "'+_i(e.get("xAxisIndex"),e.get("xAxisId"),0)+'" not found');if(!a)throw new Error('yAxis "'+_i(e.get("xAxisIndex"),e.get("yAxisId"),0)+'" not found')}t.coordSysDims=["x","y"],r.set("x",i),r.set("y",a),ea(i)&&(n.set("x",i),t.firstCategoryDimIndex=0),ea(a)&&(n.set("y",a),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(e,t,r,n){var i=e.getReferringComponents("singleAxis",ze).models[0];if(process.env.NODE_ENV!=="production"&&!i)throw new Error("singleAxis should be specified.");t.coordSysDims=["single"],r.set("single",i),ea(i)&&(n.set("single",i),t.firstCategoryDimIndex=0)},polar:function(e,t,r,n){var i=e.getReferringComponents("polar",ze).models[0],a=i.findAxisModel("radiusAxis"),o=i.findAxisModel("angleAxis");if(process.env.NODE_ENV!=="production"){if(!o)throw new Error("angleAxis option not found");if(!a)throw new Error("radiusAxis option not found")}t.coordSysDims=["radius","angle"],r.set("radius",a),r.set("angle",o),ea(a)&&(n.set("radius",a),t.firstCategoryDimIndex=0),ea(o)&&(n.set("angle",o),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},geo:function(e,t,r,n){t.coordSysDims=["lng","lat"]},parallel:function(e,t,r,n){var i=e.ecModel,a=i.getComponent("parallel",e.get("parallelIndex")),o=t.coordSysDims=a.dimensions.slice();O(a.parallelAxisIndex,function(s,l){var u=i.getComponent("parallelAxis",s),f=o[l];r.set(f,u),ea(u)&&(n.set(f,u),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=l))})},matrix:function(e,t,r,n){var i=e.getReferringComponents("matrix",ze).models[0];if(process.env.NODE_ENV!=="production"&&!i)throw new Error("matrix coordinate system should be specified.");t.coordSysDims=["x","y"];var a=i.getDimensionModel("x"),o=i.getDimensionModel("y");r.set("x",a),r.set("y",o),n.set("x",a),n.set("y",o)}};function ea(e){return e.get("type")==="category"}function jM(e,t,r){r=r||{};var n=r.byIndex,i=r.stackedCoordDimension,a,o,s;QM(t)?a=t:(o=t.schema,a=o.dimensions,s=t.store);var l=!!(e&&e.get("stack")),u,f,c,d;if(O(a,function(y,_){ut(y)&&(a[_]=y={name:y}),l&&!y.isExtraCoord&&(!n&&!u&&y.ordinalMeta&&(u=y),!f&&y.type!=="ordinal"&&y.type!=="time"&&(!i||i===y.coordDim)&&(f=y))}),f&&!n&&!u&&(n=!0),f){c="__\0ecstackresult_"+e.id,d="__\0ecstackedover_"+e.id,u&&(u.createInvertedIndices=!0);var h=f.coordDim,v=f.type,g=0;O(a,function(y){y.coordDim===h&&g++});var m={name:c,coordDim:h,coordDimIndex:g,type:v,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length},p={name:d,coordDim:d,coordDimIndex:g+1,type:v,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length+1};o?(s&&(m.storeDimIndex=s.ensureCalculationDimension(d,v),p.storeDimIndex=s.ensureCalculationDimension(c,v)),o.appendCalculationDimension(m),o.appendCalculationDimension(p)):(a.push(m),a.push(p))}return{stackedDimension:f&&f.name,stackedByDimension:u&&u.name,isStackedByIndex:n,stackedOverDimension:d,stackResultDimension:c}}function QM(e){return!h_(e.schema)}function ra(e,t){return!!t&&t===e.getCalculationInfo("stackedDimension")}function KM(e,t){return ra(e,t)?e.getCalculationInfo("stackResultDimension"):t}function JM(e,t){var r=e.get("coordinateSystem"),n=ah.get(r),i;return t&&t.coordSysDims&&(i=ft(t.coordSysDims,function(a){var o={name:a},s=t.axisMap.get(a);if(s){var l=s.get("type");o.type=OM(l)}return o})),i||(i=n&&(n.getDimensionsInfo?n.getDimensionsInfo():n.dimensions.slice())||["x","y"]),i}function tD(e,t,r){var n,i;return r&&O(e,function(a,o){var s=a.coordDim,l=r.categoryAxisMap.get(s);l&&(n==null&&(n=o),a.ordinalMeta=l.getOrdinalMeta(),t&&(a.createInvertedIndices=!0)),a.otherDims.itemName!=null&&(i=!0)}),!i&&n!=null&&(e[n].otherDims.itemName=0),n}function Yl(e,t,r){r=r||{};var n=t.getSourceManager(),i,a=!1;i=n.getSource(),a=i.sourceFormat===Pe;var o=XM(t),s=JM(t,o),l=r.useEncodeDefaulter,u=_t(l)?l:l?Kt(HA,s,t):null,f={coordDimensions:s,generateCoord:r.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!a},c=__(i,f),d=tD(c.dimensions,r.createInvertedIndices,o),h=a?null:n.getSharedDataStore(c),v=jM(t,{schema:c,store:h}),g=new y_(c,t);g.setCalculationInfo(v);var m=d!=null&&eD(i)?function(p,y,_,b){return b===d?_:this.defaultDimValueGetter(p,y,_,b)}:null;return g.hasItemOption=!1,g.initData(a?i:h,null,m),g}function eD(e){if(e.sourceFormat===Pe){var t=rD(e.data||[]);return!st(Ia(t))}}function rD(e){for(var t=0;t<e.length&&e[t]==null;)t++;return e[t]}function nD(e){var t=Math.pow(10,As(Math.abs(e))),r=Math.abs(e/t);return r===0||r===1||r===2||r===3||r===5}function td(e){return e.type==="interval"||e.type==="log"}function iD(e,t,r,n,i){var a={},o=a.interval=Kp(t/r);n!=null&&o<n&&(o=a.interval=n),i!=null&&o>i&&(o=a.interval=i);var s=a.intervalPrecision=bo(o),l=a.niceTickExtent=[ue(Math.ceil(e[0]/o)*o,s),ue(Math.floor(e[1]/o)*o,s)];return aD(l,e),a}function ed(e){var t=Math.pow(10,As(e)),r=e/t;return r?r===2?r=3:r===3?r=5:r*=2:r=1,ue(r*t)}function bo(e){return $r(e)+2}function b_(e,t,r){e[t]=Math.max(Math.min(e[t],r[1]),r[0])}function aD(e,t){!isFinite(e[0])&&(e[0]=t[0]),!isFinite(e[1])&&(e[1]=t[1]),b_(e,0,t),b_(e,1,t),e[0]>e[1]&&(e[0]=e[1])}function rd(e,t){return e>=t[0]&&e<=t[1]}var oD=(function(){function e(){this.normalize=S_,this.scale=x_}return e.prototype.updateMethods=function(t){t.hasBreaks()?(this.normalize=Ft(t.normalize,t),this.scale=Ft(t.scale,t)):(this.normalize=S_,this.scale=x_)},e})();function S_(e,t){return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])}function x_(e,t){return e*(t[1]-t[0])+t[0]}function nd(e,t,r){var n=Math.log(e);return[Math.log(r?t[0]:Math.max(0,t[0]))/n,Math.log(r?t[1]:Math.max(0,t[1]))/n]}var pn=(function(){function e(t){this._calculator=new oD,this._setting=t||{},this._extent=[1/0,-1/0]}return e.prototype.getSetting=function(t){return this._setting[t]},e.prototype._innerUnionExtent=function(t){var r=this._extent;this._innerSetExtent(t[0]<r[0]?t[0]:r[0],t[1]>r[1]?t[1]:r[1])},e.prototype.unionExtentFromData=function(t,r){this._innerUnionExtent(t.getApproximateExtent(r))},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.setExtent=function(t,r){this._innerSetExtent(t,r)},e.prototype._innerSetExtent=function(t,r){var n=this._extent;isNaN(t)||(n[0]=t),isNaN(r)||(n[1]=r),this._brkCtx&&this._brkCtx.update(n)},e.prototype.setBreaksFromOption=function(t){},e.prototype._innerSetBreak=function(t){this._brkCtx&&(this._brkCtx.setBreaks(t),this._calculator.updateMethods(this._brkCtx),this._brkCtx.update(this._extent))},e.prototype._innerGetBreaks=function(){return this._brkCtx?this._brkCtx.breaks:[]},e.prototype.hasBreaks=function(){return this._brkCtx?this._brkCtx.hasBreaks():!1},e.prototype._getExtentSpanWithBreaks=function(){return this._brkCtx&&this._brkCtx.hasBreaks()?this._brkCtx.getExtentSpan():this._extent[1]-this._extent[0]},e.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},e.prototype.isBlank=function(){return this._isBlank},e.prototype.setBlank=function(t){this._isBlank=t},e})();Ds(pn);var sD=0,id=(function(){function e(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++sD,this._onCollect=t.onCollect}return e.createByAxisModel=function(t){var r=t.option,n=r.data,i=n&&ft(n,lD);return new e({categories:i,needCollect:!i,deduplication:r.dedplication!==!1})},e.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},e.prototype.parseAndCollect=function(t){var r,n=this._needCollect;if(!ut(t)&&!n)return t;if(n&&!this._deduplication)return r=this.categories.length,this.categories[r]=t,this._onCollect&&this._onCollect(t,r),r;var i=this._getOrCreateMap();return r=i.get(t),r==null&&(n?(r=this.categories.length,this.categories[r]=t,i.set(t,r),this._onCollect&&this._onCollect(t,r)):r=NaN),r},e.prototype._getOrCreateMap=function(){return this._map||(this._map=Tt(this.categories))},e})();function lD(e){return pt(e)&&e.value!=null?e.value:e+""}var w_=(function(e){it(t,e);function t(r){var n=e.call(this,r)||this;n.type="ordinal";var i=n.getSetting("ordinalMeta");return i||(i=new id({})),st(i)&&(i=new id({categories:ft(i,function(a){return pt(a)?a.value:a})})),n._ordinalMeta=i,n._extent=n.getSetting("extent")||[0,i.categories.length-1],n}return t.prototype.parse=function(r){return r==null?NaN:ut(r)?this._ordinalMeta.getOrdinal(r):Math.round(r)},t.prototype.contain=function(r){return rd(r,this._extent)&&r>=0&&r<this._ordinalMeta.categories.length},t.prototype.normalize=function(r){return r=this._getTickNumber(r),this._calculator.normalize(r,this._extent)},t.prototype.scale=function(r){return r=Math.round(this._calculator.scale(r,this._extent)),this.getRawOrdinalNumber(r)},t.prototype.getTicks=function(){for(var r=[],n=this._extent,i=n[0];i<=n[1];)r.push({value:i}),i++;return r},t.prototype.getMinorTicks=function(r){},t.prototype.setSortInfo=function(r){if(r==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var n=r.ordinalNumbers,i=this._ordinalNumbersByTick=[],a=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,l=Math.min(s,n.length);o<l;++o){var u=n[o];i[o]=u,a[u]=o}for(var f=0;o<s;++o){for(;a[f]!=null;)f++;i.push(f),a[f]=o}},t.prototype._getTickNumber=function(r){var n=this._ticksByOrdinalNumber;return n&&r>=0&&r<n.length?n[r]:r},t.prototype.getRawOrdinalNumber=function(r){var n=this._ordinalNumbersByTick;return n&&r>=0&&r<n.length?n[r]:r},t.prototype.getLabel=function(r){if(!this.isBlank()){var n=this.getRawOrdinalNumber(r.value),i=this._ordinalMeta.categories[n];return i==null?"":i+""}},t.prototype.count=function(){return this._extent[1]-this._extent[0]+1},t.prototype.isInExtentRange=function(r){return r=this._getTickNumber(r),this._extent[0]<=r&&this._extent[1]>=r},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type="ordinal",t})(pn);pn.registerClass(w_);var gn=ue,na=(function(e){it(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="interval",r._interval=0,r._intervalPrecision=2,r}return t.prototype.parse=function(r){return r==null||r===""?NaN:Number(r)},t.prototype.contain=function(r){return rd(r,this._extent)},t.prototype.normalize=function(r){return this._calculator.normalize(r,this._extent)},t.prototype.scale=function(r){return this._calculator.scale(r,this._extent)},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(r){this._interval=r,this._niceExtent=this._extent.slice(),this._intervalPrecision=bo(r)},t.prototype.getTicks=function(r){r=r||{};var n=this._interval,i=this._extent,a=this._niceExtent,o=this._intervalPrecision,s=hl(),l=[];if(!n)return l;r.breakTicks;var u=1e4;i[0]<a[0]&&(r.expandToNicedExtent?l.push({value:gn(a[0]-n,o)}):l.push({value:i[0]}));for(var f=function(v,g){return Math.round((g-v)/n)},c=a[0];c<=a[1];){if(l.push({value:c}),c=gn(c+n,o),this._brkCtx){var d=this._brkCtx.calcNiceTickMultiple(c,f);d>=0&&(c=gn(c+d*n,o))}if(l.length>0&&c===l[l.length-1].value)break;if(l.length>u)return[]}var h=l.length?l[l.length-1].value:a[1];return i[1]>h&&(r.expandToNicedExtent?l.push({value:gn(h+n,o)}):l.push({value:i[1]})),r.breakTicks,l},t.prototype.getMinorTicks=function(r){for(var n=this.getTicks({expandToNicedExtent:!0}),i=[],a=this.getExtent(),o=1;o<n.length;o++){var s=n[o],l=n[o-1];if(!(l.break||s.break)){for(var u=0,f=[],c=s.value-l.value,d=c/r,h=bo(d);u<r-1;){var v=gn(l.value+(u+1)*d,h);v>a[0]&&v<a[1]&&f.push(v),u++}var g=hl();g&&g.pruneTicksByBreak("auto",f,this._getNonTransBreaks(),function(m){return m},this._interval,a),i.push(f)}}return i},t.prototype._getNonTransBreaks=function(){return this._brkCtx?this._brkCtx.breaks:[]},t.prototype.getLabel=function(r,n){if(r==null)return"";var i=n&&n.precision;i==null?i=$r(r.value)||0:i==="auto"&&(i=this._intervalPrecision);var a=gn(r.value,i,!0);return tm(a)},t.prototype.calcNiceTicks=function(r,n,i){r=r||5;var a=this._extent.slice(),o=this._getExtentSpanWithBreaks();if(isFinite(o)){o<0&&(o=-o,a.reverse(),this._innerSetExtent(a[0],a[1]),a=this._extent.slice());var s=iD(a,o,r,n,i);this._intervalPrecision=s.intervalPrecision,this._interval=s.interval,this._niceExtent=s.niceTickExtent}},t.prototype.calcNiceExtent=function(r){var n=this._extent.slice();if(n[0]===n[1])if(n[0]!==0){var i=Math.abs(n[0]);r.fixMax||(n[1]+=i/2),n[0]-=i/2}else n[1]=1;var a=n[1]-n[0];isFinite(a)||(n[0]=0,n[1]=1),this._innerSetExtent(n[0],n[1]),n=this._extent.slice(),this.calcNiceTicks(r.splitNumber,r.minInterval,r.maxInterval);var o=this._interval,s=this._intervalPrecision;r.fixMin||(n[0]=gn(Math.floor(n[0]/o)*o,s)),r.fixMax||(n[1]=gn(Math.ceil(n[1]/o)*o,s)),this._innerSetExtent(n[0],n[1])},t.prototype.setNiceExtent=function(r,n){this._niceExtent=[r,n]},t.type="interval",t})(pn);pn.registerClass(na);var T_=typeof Float32Array<"u",uD=T_?Float32Array:Array;function Hr(e){return st(e)?T_?new Float32Array(e):e:new uD(e)}var fD="__ec_stack_";function C_(e){return e.get("stack")||fD+e.seriesIndex}function ad(e){return e.dim+e.index}function A_(e,t){var r=[];return t.eachSeriesByType(e,function(n){L_(n)&&r.push(n)}),r}function cD(e){var t={};O(e,function(l){var u=l.coordinateSystem,f=u.getBaseAxis();if(!(f.type!=="time"&&f.type!=="value"))for(var c=l.getData(),d=f.dim+"_"+f.index,h=c.getDimensionIndex(c.mapDimension(f.dim)),v=c.getStore(),g=0,m=v.count();g<m;++g){var p=v.get(h,g);t[d]?t[d].push(p):t[d]=[p]}});var r={};for(var n in t)if(t.hasOwnProperty(n)){var i=t[n];if(i){i.sort(function(l,u){return l-u});for(var a=null,o=1;o<i.length;++o){var s=i[o]-i[o-1];s>0&&(a=a===null?s:Math.min(a,s))}r[n]=a}}return r}function E_(e){var t=cD(e),r=[];return O(e,function(n){var i=n.coordinateSystem,a=i.getBaseAxis(),o=a.getExtent(),s;if(a.type==="category")s=a.getBandWidth();else if(a.type==="value"||a.type==="time"){var l=a.dim+"_"+a.index,u=t[l],f=Math.abs(o[1]-o[0]),c=a.scale.getExtent(),d=Math.abs(c[1]-c[0]);s=u?f/d*u:f}else{var h=n.getData();s=Math.abs(o[1]-o[0])/h.count()}var v=Wt(n.get("barWidth"),s),g=Wt(n.get("barMaxWidth"),s),m=Wt(n.get("barMinWidth")||(M_(n)?.5:1),s),p=n.get("barGap"),y=n.get("barCategoryGap"),_=n.get("defaultBarGap");r.push({bandWidth:s,barWidth:v,barMaxWidth:g,barMinWidth:m,barGap:p,barCategoryGap:y,defaultBarGap:_,axisKey:ad(a),stackId:C_(n)})}),hD(r)}function hD(e){var t={};O(e,function(n,i){var a=n.axisKey,o=n.bandWidth,s=t[a]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:n.defaultBarGap||0,stacks:{}},l=s.stacks;t[a]=s;var u=n.stackId;l[u]||s.autoWidthCount++,l[u]=l[u]||{width:0,maxWidth:0};var f=n.barWidth;f&&!l[u].width&&(l[u].width=f,f=Math.min(s.remainedWidth,f),s.remainedWidth-=f);var c=n.barMaxWidth;c&&(l[u].maxWidth=c);var d=n.barMinWidth;d&&(l[u].minWidth=d);var h=n.barGap;h!=null&&(s.gap=h);var v=n.barCategoryGap;v!=null&&(s.categoryGap=v)});var r={};return O(t,function(n,i){r[i]={};var a=n.stacks,o=n.bandWidth,s=n.categoryGap;if(s==null){var l=Mt(a).length;s=Math.max(35-l*4,15)+"%"}var u=Wt(s,o),f=Wt(n.gap,1),c=n.remainedWidth,d=n.autoWidthCount,h=(c-u)/(d+(d-1)*f);h=Math.max(h,0),O(a,function(p){var y=p.maxWidth,_=p.minWidth;if(p.width){var b=p.width;y&&(b=Math.min(b,y)),_&&(b=Math.max(b,_)),p.width=b,c-=b+f*b,d--}else{var b=h;y&&y<b&&(b=Math.min(y,c)),_&&_>b&&(b=_),b!==h&&(p.width=b,c-=b+f*b,d--)}}),h=(c-u)/(d+(d-1)*f),h=Math.max(h,0);var v=0,g;O(a,function(p,y){p.width||(p.width=h),g=p,v+=p.width*(1+f)}),g&&(v-=g.width*f);var m=-v/2;O(a,function(p,y){r[i][y]=r[i][y]||{bandWidth:o,offset:m,width:p.width},m+=p.width*(1+f)})}),r}function dD(e,t,r){if(e&&t){var n=e[ad(t)];return n}}function vD(e,t){var r=A_(e,t),n=E_(r);O(r,function(i){var a=i.getData(),o=i.coordinateSystem,s=o.getBaseAxis(),l=C_(i),u=n[ad(s)][l],f=u.offset,c=u.width;a.setLayout({bandWidth:u.bandWidth,offset:f,size:c})})}function pD(e){return{seriesType:e,plan:Ah(),reset:function(t){if(L_(t)){var r=t.getData(),n=t.coordinateSystem,i=n.getBaseAxis(),a=n.getOtherAxis(i),o=r.getDimensionIndex(r.mapDimension(a.dim)),s=r.getDimensionIndex(r.mapDimension(i.dim)),l=t.get("showBackground",!0),u=r.mapDimension(a.dim),f=r.getCalculationInfo("stackResultDimension"),c=ra(r,u)&&!!r.getCalculationInfo("stackedOnSeries"),d=a.isHorizontal(),h=gD(i,a),v=M_(t),g=t.get("barMinHeight")||0,m=f&&r.getDimensionIndex(f),p=r.getLayout("size"),y=r.getLayout("offset");return{progress:function(_,b){for(var x=_.count,w=v&&Hr(x*3),S=v&&l&&Hr(x*3),L=v&&Hr(x),C=n.master.getRect(),D=d?C.width:C.height,I,A=b.getStore(),M=0;(I=_.next())!=null;){var T=A.get(c?m:o,I),k=A.get(s,I),R=h,z=void 0;c&&(z=+T-A.get(o,I));var H=void 0,V=void 0,Z=void 0,B=void 0;if(d){var $=n.dataToPoint([T,k]);if(c){var X=n.dataToPoint([z,k]);R=X[0]}H=R,V=$[1]+y,Z=$[0]-R,B=p,Math.abs(Z)<g&&(Z=(Z<0?-1:1)*g)}else{var $=n.dataToPoint([k,T]);if(c){var X=n.dataToPoint([k,z]);R=X[1]}H=$[0]+y,V=R,Z=p,B=$[1]-R,Math.abs(B)<g&&(B=(B<=0?-1:1)*g)}v?(w[M]=H,w[M+1]=V,w[M+2]=d?Z:B,S&&(S[M]=d?C.x:H,S[M+1]=d?V:C.y,S[M+2]=D),L[I]=I):b.setItemLayout(I,{x:H,y:V,width:Z,height:B}),M+=3}v&&b.setLayout({largePoints:w,largeDataIndices:L,largeBackgroundPoints:S,valueAxisHorizontal:d})}}}}}}function L_(e){return e.coordinateSystem&&e.coordinateSystem.type==="cartesian2d"}function M_(e){return e.pipelineContext&&e.pipelineContext.large}function gD(e,t){var r=t.model.get("startValue");return r||(r=0),t.toGlobalCoord(t.dataToCoord(t.type==="log"?r>0?r:1:r))}var mD=function(e,t,r,n){for(;r<n;){var i=r+n>>>1;e[i][1]<t?r=i+1:n=i}return r},D_=(function(e){it(t,e);function t(r){var n=e.call(this,r)||this;return n.type="time",n}return t.prototype.getLabel=function(r){var n=this.getSetting("useUTC");return pl(r.value,Z0[TA(Qa(this._minLevelUnit))]||Z0.second,n,this.getSetting("locale"))},t.prototype.getFormattedLabel=function(r,n,i){var a=this.getSetting("useUTC"),o=this.getSetting("locale");return CA(r,n,i,o,a)},t.prototype.getTicks=function(r){var n=this._interval,i=this._extent,a=[];if(!n)return a;var o=this.getSetting("useUTC"),s=gl(i[1],o);a.push({value:i[0],time:{level:0,upperTimeUnit:s,lowerTimeUnit:s}});var l=CD(this._minLevelUnit,this._approxInterval,o,i,this._getExtentSpanWithBreaks(),this._brkCtx);a=a.concat(l);var u=gl(i[1],o);a.push({value:i[1],time:{level:0,upperTimeUnit:u,lowerTimeUnit:u}}),this.getSetting("useUTC");var f=Qn.length-1,c=0;return O(a,function(d){f=Math.min(f,Nt(Qn,d.time.upperTimeUnit)),c=Math.max(c,d.time.level)}),a},t.prototype.calcNiceExtent=function(r){var n=this.getExtent();if(n[0]===n[1]&&(n[0]-=Ze,n[1]+=Ze),n[1]===-1/0&&n[0]===1/0){var i=new Date;n[1]=+new Date(i.getFullYear(),i.getMonth(),i.getDate()),n[0]=n[1]-Ze}this._innerSetExtent(n[0],n[1]),this.calcNiceTicks(r.splitNumber,r.minInterval,r.maxInterval)},t.prototype.calcNiceTicks=function(r,n,i){r=r||10;var a=this._getExtentSpanWithBreaks();this._approxInterval=a/r,n!=null&&this._approxInterval<n&&(this._approxInterval=n),i!=null&&this._approxInterval>i&&(this._approxInterval=i);var o=Xl.length,s=Math.min(mD(Xl,this._approxInterval,0,o),o-1);this._interval=Xl[s][1],this._intervalPrecision=bo(this._interval),this._minLevelUnit=Xl[Math.max(s-1,0)][0]},t.prototype.parse=function(r){return $t(r)?r:+Ni(r)},t.prototype.contain=function(r){return rd(r,this._extent)},t.prototype.normalize=function(r){return this._calculator.normalize(r,this._extent)},t.prototype.scale=function(r){return this._calculator.scale(r,this._extent)},t.type="time",t})(na),Xl=[["second",Yc],["minute",Xc],["hour",ja],["quarter-day",ja*6],["half-day",ja*12],["day",Ze*1.2],["half-week",Ze*3.5],["week",Ze*7],["month",Ze*31],["quarter",Ze*95],["half-year",W0/2],["year",W0]];function yD(e,t,r,n){return qc(new Date(t),e,n).getTime()===qc(new Date(r),e,n).getTime()}function _D(e,t){return e/=Ze,e>16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function bD(e){var t=30*Ze;return e/=t,e>6?6:e>3?3:e>2?2:1}function SD(e){return e/=ja,e>12?12:e>6?6:e>3.5?4:e>2?2:1}function I_(e,t){return e/=t?Xc:Yc,e>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}function xD(e){return Kp(e)}function wD(e,t,r){var n=Math.max(0,Nt(Qn,t)-1);return qc(new Date(e),Qn[n],r).getTime()}function TD(e,t){var r=new Date(0);r[e](1);var n=r.getTime();r[e](1+t);var i=r.getTime()-n;return function(a,o){return Math.max(0,Math.round((o-a)/i))}}function CD(e,t,r,n,i,a){var o=1e4,s=bA,l=0;function u(M,T,k,R,z,H,V){for(var Z=TD(z,M),B=T,$=new Date(B);B<k&&B<=n[1];){if(V.push({value:B}),l++>o){process.env.NODE_ENV!=="production"&&de("Exceed safe limit in time scale.");break}if($[z]($[R]()+M),B=$.getTime(),a){var X=a.calcNiceTickMultiple(B,Z);X>0&&($[z]($[R]()+X*M),B=$.getTime())}}V.push({value:B,notAdd:!0})}function f(M,T,k){var R=[],z=!T.length;if(!yD(Qa(M),n[0],n[1],r)){z&&(T=[{value:wD(n[0],M,r)},{value:n[1]}]);for(var H=0;H<T.length-1;H++){var V=T[H].value,Z=T[H+1].value;if(V!==Z){var B=void 0,$=void 0,X=void 0,j=!1;switch(M){case"year":B=Math.max(1,Math.round(t/Ze/365)),$=Y0(r),X=AA(r);break;case"half-year":case"quarter":case"month":B=bD(t),$=jc(r),X=X0(r);break;case"week":case"half-week":case"day":B=_D(t),$=Qc(r),X=q0(r),j=!0;break;case"half-day":case"quarter-day":case"hour":B=SD(t),$=Kc(r),X=j0(r);break;case"minute":B=I_(t,!0),$=Jc(r),X=Q0(r);break;case"second":B=I_(t,!1),$=th(r),X=K0(r);break;case"millisecond":B=xD(t),$=eh(r),X=J0(r);break}Z>=n[0]&&V<=n[1]&&u(B,V,Z,$,X,j,R),M==="year"&&k.length>1&&H===0&&k.unshift({value:k[0].value-B})}}for(var H=0;H<R.length;H++)k.push(R[H])}}for(var c=[],d=[],h=0,v=0,g=0;g<s.length;++g){var m=Qa(s[g]);if(wA(s[g])){f(s[g],c[c.length-1]||[],d);var p=s[g+1]?Qa(s[g+1]):null;if(m!==p){if(d.length){v=h,d.sort(function(M,T){return M.value-T.value});for(var y=[],_=0;_<d.length;++_){var b=d[_].value;(_===0||d[_-1].value!==b)&&(y.push(d[_]),b>=n[0]&&b<=n[1]&&h++)}var x=i/t;if(h>x*1.5&&v>x/1.5||(c.push(y),h>x||e===s[g]))break}d=[]}}}for(var w=re(ft(c,function(M){return re(M,function(T){return T.value>=n[0]&&T.value<=n[1]&&!T.notAdd})}),function(M){return M.length>0}),S=[],L=w.length-1,g=0;g<w.length;++g)for(var C=w[g],D=0;D<C.length;++D){var I=gl(C[D].value,r);S.push({value:C[D].value,time:{level:L-g,upperTimeUnit:I,lowerTimeUnit:I}})}S.sort(function(M,T){return M.value-T.value});for(var A=[],g=0;g<S.length;++g)(g===0||S[g].value!==S[g-1].value)&&A.push(S[g]);return A}pn.registerClass(D_);var od=ue,AD=Math.floor,ED=Math.ceil,ql=Math.pow,jl=Math.log,k_=(function(e){it(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="log",r.base=10,r._originalScale=new na,r}return t.prototype.getTicks=function(r){r=r||{};var n=this._extent.slice(),i=this._originalScale.getExtent(),a=e.prototype.getTicks.call(this,r),o=this.base;return this._originalScale._innerGetBreaks(),ft(a,function(s){var l=s.value,u=null,f=ql(o,l);l===n[0]&&this._fixMin?u=i[0]:l===n[1]&&this._fixMax&&(u=i[1]);var c;return u!=null&&(f=sd(f,u)),{value:f,break:c}},this)},t.prototype._getNonTransBreaks=function(){return this._originalScale._innerGetBreaks()},t.prototype.setExtent=function(r,n){this._originalScale.setExtent(r,n);var i=nd(this.base,[r,n]);e.prototype.setExtent.call(this,i[0],i[1])},t.prototype.getExtent=function(){var r=this.base,n=e.prototype.getExtent.call(this);n[0]=ql(r,n[0]),n[1]=ql(r,n[1]);var i=this._originalScale.getExtent();return this._fixMin&&(n[0]=sd(n[0],i[0])),this._fixMax&&(n[1]=sd(n[1],i[1])),n},t.prototype.unionExtentFromData=function(r,n){this._originalScale.unionExtentFromData(r,n);var i=nd(this.base,r.getApproximateExtent(n),!0);this._innerUnionExtent(i)},t.prototype.calcNiceTicks=function(r){r=r||10;var n=this._extent.slice(),i=this._getExtentSpanWithBreaks();if(!(!isFinite(i)||i<=0)){var a=C2(i),o=r/i*a;for(o<=.5&&(a*=10);!isNaN(a)&&Math.abs(a)<1&&Math.abs(a)>0;)a*=10;var s=[od(ED(n[0]/a)*a),od(AD(n[1]/a)*a)];this._interval=a,this._intervalPrecision=bo(a),this._niceExtent=s}},t.prototype.calcNiceExtent=function(r){e.prototype.calcNiceExtent.call(this,r),this._fixMin=r.fixMin,this._fixMax=r.fixMax},t.prototype.contain=function(r){return r=jl(r)/jl(this.base),e.prototype.contain.call(this,r)},t.prototype.normalize=function(r){return r=jl(r)/jl(this.base),e.prototype.normalize.call(this,r)},t.prototype.scale=function(r){return r=e.prototype.scale.call(this,r),ql(this.base,r)},t.prototype.setBreaksFromOption=function(r){},t.type="log",t})(na);function sd(e,t){return od(e,$r(t))}pn.registerClass(k_);var LD=(function(){function e(t,r,n){this._prepareParams(t,r,n)}return e.prototype._prepareParams=function(t,r,n){n[1]<n[0]&&(n=[NaN,NaN]),this._dataMin=n[0],this._dataMax=n[1];var i=this._isOrdinal=t.type==="ordinal";this._needCrossZero=t.type==="interval"&&r.getNeedCrossZero&&r.getNeedCrossZero();var a=r.get("min",!0);a==null&&(a=r.get("startValue",!0));var o=this._modelMinRaw=a;_t(o)?this._modelMinNum=Ql(t,o({min:n[0],max:n[1]})):o!=="dataMin"&&(this._modelMinNum=Ql(t,o));var s=this._modelMaxRaw=r.get("max",!0);if(_t(s)?this._modelMaxNum=Ql(t,s({min:n[0],max:n[1]})):s!=="dataMax"&&(this._modelMaxNum=Ql(t,s)),i)this._axisDataLen=r.getCategories().length;else{var l=r.get("boundaryGap"),u=st(l)?l:[l||0,l||0];typeof u[0]=="boolean"||typeof u[1]=="boolean"?(process.env.NODE_ENV!=="production"&&console.warn('Boolean type for boundaryGap is only allowed for ordinal axis. Please use string in percentage instead, e.g., "20%". Currently, boundaryGap is set to be 0.'),this._boundaryGapInner=[0,0]):this._boundaryGapInner=[tn(u[0],1),tn(u[1],1)]}},e.prototype.calculate=function(){var t=this._isOrdinal,r=this._dataMin,n=this._dataMax,i=this._axisDataLen,a=this._boundaryGapInner,o=t?null:n-r||Math.abs(r),s=this._modelMinRaw==="dataMin"?r:this._modelMinNum,l=this._modelMaxRaw==="dataMax"?n:this._modelMaxNum,u=s!=null,f=l!=null;s==null&&(s=t?i?0:NaN:r-a[0]*o),l==null&&(l=t?i?i-1:NaN:n+a[1]*o),(s==null||!isFinite(s))&&(s=NaN),(l==null||!isFinite(l))&&(l=NaN);var c=yi(s)||yi(l)||t&&!i;this._needCrossZero&&(s>0&&l>0&&!u&&(s=0),s<0&&l<0&&!f&&(l=0));var d=this._determinedMin,h=this._determinedMax;return d!=null&&(s=d,u=!0),h!=null&&(l=h,f=!0),{min:s,max:l,minFixed:u,maxFixed:f,isBlank:c}},e.prototype.modifyDataMinMax=function(t,r){process.env.NODE_ENV!=="production"&&vt(!this.frozen),this[DD[t]]=r},e.prototype.setDeterminedMinMax=function(t,r){var n=MD[t];process.env.NODE_ENV!=="production"&&vt(!this.frozen&&this[n]==null),this[n]=r},e.prototype.freeze=function(){this.frozen=!0},e})(),MD={min:"_determinedMin",max:"_determinedMax"},DD={min:"_dataMin",max:"_dataMax"};function ID(e,t,r){var n=e.rawExtentInfo;return n||(n=new LD(e,t,r),e.rawExtentInfo=n,n)}function Ql(e,t){return t==null?null:yi(t)?NaN:e.parse(t)}function P_(e,t){var r=e.type,n=ID(e,t,e.getExtent()).calculate();e.setBlank(n.isBlank);var i=n.min,a=n.max,o=t.ecModel;if(o&&r==="time"){var s=A_("bar",o),l=!1;if(O(s,function(c){l=l||c.getBaseAxis()===t.axis}),l){var u=E_(s),f=kD(i,a,t,u);i=f.min,a=f.max}}return{extent:[i,a],fixMin:n.minFixed,fixMax:n.maxFixed}}function kD(e,t,r,n){var i=r.axis.getExtent(),a=Math.abs(i[1]-i[0]),o=dD(n,r.axis);if(o===void 0)return{min:e,max:t};var s=1/0;O(o,function(h){s=Math.min(h.offset,s)});var l=-1/0;O(o,function(h){l=Math.max(h.offset+h.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,f=t-e,c=1-(s+l)/a,d=f/c-f;return t+=d*(l/u),e-=d*(s/u),{min:e,max:t}}function N_(e,t){var r=t,n=P_(e,r),i=n.extent,a=r.get("splitNumber");e instanceof k_&&(e.base=r.get("logBase"));var o=e.type,s=r.get("interval"),l=o==="interval"||o==="time";e.setBreaksFromOption(O_(r)),e.setExtent(i[0],i[1]),e.calcNiceExtent({splitNumber:a,fixMin:n.fixMin,fixMax:n.fixMax,minInterval:l?r.get("minInterval"):null,maxInterval:l?r.get("maxInterval"):null}),s!=null&&e.setInterval&&e.setInterval(s)}function PD(e,t){if(t=t||e.get("type"),t)switch(t){case"category":return new w_({ordinalMeta:e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),extent:[1/0,-1/0]});case"time":return new D_({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC")});default:return new(pn.getClass(t)||na)}}function ND(e){var t=e.scale.getExtent(),r=t[0],n=t[1];return!(r>0&&n>0||r<0&&n<0)}function So(e){var t=e.getLabelModel().get("formatter");if(e.type==="time"){var r=SA(t);return function(i,a){return e.scale.getFormattedLabel(i,a,r)}}else{if(ut(t))return function(i){var a=e.scale.getLabel(i),o=t.replace("{value}",a??"");return o};if(_t(t)){if(e.type==="category")return function(i,a){return t(Kl(e,i),i.value-e.scale.getExtent()[0],null)};var n=hl();return function(i,a){var o=null;return n&&(o=n.makeAxisLabelFormatterParamBreak(o,i.break)),t(Kl(e,i),a,o)}}else return function(i){return e.scale.getLabel(i)}}}function Kl(e,t){return e.type==="category"?e.scale.getLabel(t):t.value}function ld(e){var t=e.get("interval");return t??"auto"}function $_(e){return e.type==="category"&&ld(e.getLabelModel())===0}function $D(e,t){var r={};return O(e.mapDimensionsAll(t),function(n){r[KM(e,n)]=!0}),Mt(r)}function ia(e){return e==="middle"||e==="center"}function xo(e){return e.getShallow("show")}function O_(e){var t=e.get("breaks",!0);if(t!=null){process.env.NODE_ENV!=="production"&&zt('Must `import {AxisBreak} from "echarts/features.js"; use(AxisBreak);` first if using breaks option.');return}}var OD=(function(){function e(){}return e.prototype.getNeedCrossZero=function(){var t=this.option;return!t.scale},e.prototype.getCoordSysModel=function(){},e})(),R_=[],RD={registerPreprocessor:o_,registerProcessor:s_,registerPostInit:EM,registerPostUpdate:LM,registerUpdateLifecycle:Xh,registerAction:Ji,registerCoordinateSystem:MM,registerLayout:DM,registerVisual:li,registerTransform:kM,registerLoading:u_,registerMap:IM,registerImpl:sM,PRIORITY:bM,ComponentModel:kt,ComponentView:ar,SeriesModel:je,ChartView:Ne,registerComponentModel:function(e){kt.registerClass(e)},registerComponentView:function(e){ar.registerClass(e)},registerSeriesModel:function(e){je.registerClass(e)},registerChartView:function(e){Ne.registerClass(e)},registerCustomSeries:function(e,t){},registerSubTypeDefaulter:function(e,t){kt.registerSubTypeDefaulter(e,t)},registerPainter:function(e,t){g2(e,t)}};function Ur(e){if(st(e)){O(e,function(t){Ur(t)});return}Nt(R_,e)>=0||(R_.push(e),_t(e)&&(e={install:e}),e.install(RD))}var BD=Zt(),wo=Zt(),sr={estimate:1,determine:2};function Jl(e){return{out:{noPxChangeTryDetermine:[]},kind:e}}function B_(e,t){var r=ft(t,function(n){return e.scale.parse(n)});return e.type==="time"&&r.length>0&&(r.sort(),r.unshift(r[0]),r.push(r[r.length-1])),r}function FD(e,t){var r=e.getLabelModel().get("customValues");if(r){var n=So(e),i=e.scale.getExtent(),a=B_(e,r),o=re(a,function(s){return s>=i[0]&&s<=i[1]});return{labels:ft(o,function(s){var l={value:s};return{formattedLabel:n(l),rawLabel:e.scale.getLabel(l),tickValue:s,time:void 0,break:void 0}})}}return e.type==="category"?VD(e,t):HD(e)}function zD(e,t,r){var n=e.getTickModel().get("customValues");if(n){var i=e.scale.getExtent(),a=B_(e,n);return{ticks:re(a,function(o){return o>=i[0]&&o<=i[1]})}}return e.type==="category"?GD(e,t):{ticks:ft(e.scale.getTicks(r),function(o){return o.value})}}function VD(e,t){var r=e.getLabelModel(),n=F_(e,r,t);return!r.get("show")||e.scale.isBlank()?{labels:[]}:n}function F_(e,t,r){var n=WD(e),i=ld(t),a=r.kind===sr.estimate;if(!a){var o=V_(n,i);if(o)return o}var s,l;_t(i)?s=U_(e,i):(l=i==="auto"?ZD(e,r):i,s=H_(e,l));var u={labels:s,labelCategoryInterval:l};return a?r.out.noPxChangeTryDetermine.push(function(){return ud(n,i,u),!0}):ud(n,i,u),u}function GD(e,t){var r=UD(e),n=ld(t),i=V_(r,n);if(i)return i;var a,o;if((!t.get("show")||e.scale.isBlank())&&(a=[]),_t(n))a=U_(e,n,!0);else if(n==="auto"){var s=F_(e,e.getLabelModel(),Jl(sr.determine));o=s.labelCategoryInterval,a=ft(s.labels,function(l){return l.tickValue})}else o=n,a=H_(e,o,!0);return ud(r,n,{ticks:a,tickCategoryInterval:o})}function HD(e){var t=e.scale.getTicks(),r=So(e);return{labels:ft(t,function(n,i){return{formattedLabel:r(n,i),rawLabel:e.scale.getLabel(n),tickValue:n.value,time:n.time,break:n.break}})}}var UD=z_("axisTick"),WD=z_("axisLabel");function z_(e){return function(r){return wo(r)[e]||(wo(r)[e]={list:[]})}}function V_(e,t){for(var r=0;r<e.list.length;r++)if(e.list[r].key===t)return e.list[r].value}function ud(e,t,r){return e.list.push({key:t,value:r}),r}function ZD(e,t){if(t.kind===sr.estimate){var r=e.calculateCategoryInterval(t);return t.out.noPxChangeTryDetermine.push(function(){return wo(e).autoInterval=r,!0}),r}var n=wo(e).autoInterval;return n??(wo(e).autoInterval=e.calculateCategoryInterval(t))}function YD(e,t){var r=t.kind,n=qD(e),i=So(e),a=(n.axisRotate-n.labelRotate)/180*Math.PI,o=e.scale,s=o.getExtent(),l=o.count();if(s[1]-s[0]<1)return 0;var u=1,f=40;l>f&&(u=Math.max(1,Math.floor(l/f)));for(var c=s[0],d=e.dataToCoord(c+1)-e.dataToCoord(c),h=Math.abs(d*Math.cos(a)),v=Math.abs(d*Math.sin(a)),g=0,m=0;c<=s[1];c+=u){var p=0,y=0,_=Wp(i({value:c}),n.font,"center","top");p=_.width*1.3,y=_.height*1.3,g=Math.max(g,p,7),m=Math.max(m,y,7)}var b=g/h,x=m/v;isNaN(b)&&(b=1/0),isNaN(x)&&(x=1/0);var w=Math.max(0,Math.floor(Math.min(b,x)));if(r===sr.estimate)return t.out.noPxChangeTryDetermine.push(Ft(XD,null,e,w,l)),w;var S=G_(e,w,l);return S??w}function XD(e,t,r){return G_(e,t,r)==null}function G_(e,t,r){var n=BD(e.model),i=e.getExtent(),a=n.lastAutoInterval,o=n.lastTickCount;if(a!=null&&o!=null&&Math.abs(a-t)<=1&&Math.abs(o-r)<=1&&a>t&&n.axisExtent0===i[0]&&n.axisExtent1===i[1])return a;n.lastTickCount=r,n.lastAutoInterval=t,n.axisExtent0=i[0],n.axisExtent1=i[1]}function qD(e){var t=e.getLabelModel();return{axisRotate:e.getRotate?e.getRotate():e.isHorizontal&&!e.isHorizontal()?90:0,labelRotate:t.get("rotate")||0,font:t.getFont()}}function H_(e,t,r){var n=So(e),i=e.scale,a=i.getExtent(),o=e.getLabelModel(),s=[],l=Math.max((t||0)+1,1),u=a[0],f=i.count();u!==0&&l>1&&f/l>2&&(u=Math.round(Math.ceil(u/l)*l));var c=$_(e),d=o.get("showMinLabel")||c,h=o.get("showMaxLabel")||c;d&&u!==a[0]&&g(a[0]);for(var v=u;v<=a[1];v+=l)g(v);h&&v-l!==a[1]&&g(a[1]);function g(m){var p={value:m};s.push(r?m:{formattedLabel:n(p),rawLabel:i.getLabel(p),tickValue:m,time:void 0,break:void 0})}return s}function U_(e,t,r){var n=e.scale,i=So(e),a=[];return O(n.getTicks(),function(o){var s=n.getLabel(o),l=o.value;t(o.value,s)&&a.push(r?l:{formattedLabel:i(o),rawLabel:s,tickValue:l,time:void 0,break:void 0})}),a}var W_=[0,1],jD=(function(){function e(t,r,n){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=r,this._extent=n||[0,0]}return e.prototype.contain=function(t){var r=this._extent,n=Math.min(r[0],r[1]),i=Math.max(r[0],r[1]);return t>=n&&t<=i},e.prototype.containData=function(t){return this.scale.contain(this.scale.parse(t))},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.getPixelPrecision=function(t){return S2(t||this.scale.getExtent(),this._extent)},e.prototype.setExtent=function(t,r){var n=this._extent;n[0]=t,n[1]=r},e.prototype.dataToCoord=function(t,r){var n=this._extent,i=this.scale;return t=i.normalize(i.parse(t)),this.onBand&&i.type==="ordinal"&&(n=n.slice(),Z_(n,i.count())),Gf(t,W_,n,r)},e.prototype.coordToData=function(t,r){var n=this._extent,i=this.scale;this.onBand&&i.type==="ordinal"&&(n=n.slice(),Z_(n,i.count()));var a=Gf(t,n,W_,r);return this.scale.scale(a)},e.prototype.pointToData=function(t,r){},e.prototype.getTicksCoords=function(t){t=t||{};var r=t.tickModel||this.getTickModel(),n=zD(this,r,{breakTicks:t.breakTicks,pruneByBreak:t.pruneByBreak}),i=n.ticks,a=ft(i,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=r.get("alignWithLabel");return QD(this,a,o,t.clamp),a},e.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var t=this.model.getModel("minorTick"),r=t.get("splitNumber");r>0&&r<100||(r=5);var n=this.scale.getMinorTicks(r),i=ft(n,function(a){return ft(a,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return i},e.prototype.getViewLabels=function(t){return t=t||Jl(sr.determine),FD(this,t).labels},e.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},e.prototype.getTickModel=function(){return this.model.getModel("axisTick")},e.prototype.getBandWidth=function(){var t=this._extent,r=this.scale.getExtent(),n=r[1]-r[0]+(this.onBand?1:0);n===0&&(n=1);var i=Math.abs(t[1]-t[0]);return Math.abs(i)/n},e.prototype.calculateCategoryInterval=function(t){return t=t||Jl(sr.determine),YD(this,t)},e})();function Z_(e,t){var r=e[1]-e[0],n=t,i=r/n/2;e[0]+=i,e[1]-=i}function QD(e,t,r,n){var i=t.length;if(!e.onBand||r||!i)return;var a=e.getExtent(),o,s;if(i===1)t[0].coord=a[0],t[0].onBand=!0,o=t[1]={coord:a[1],tickValue:t[0].tickValue,onBand:!0};else{var l=t[i-1].tickValue-t[0].tickValue,u=(t[i-1].coord-t[0].coord)/l;O(t,function(h){h.coord-=u/2,h.onBand=!0});var f=e.scale.getExtent();s=1+f[1]-t[i-1].tickValue,o={coord:t[i-1].coord+u*s,tickValue:f[1]+1,onBand:!0},t.push(o)}var c=a[0]>a[1];d(t[0].coord,a[0])&&(n?t[0].coord=a[0]:t.shift()),n&&d(a[0],t[0].coord)&&t.unshift({coord:a[0],onBand:!0}),d(a[1],o.coord)&&(n?o.coord=a[1]:t.pop()),n&&d(o.coord,a[1])&&t.push({coord:a[1],onBand:!0});function d(h,v){return h=ue(h),v=ue(v),c?h>v:h<v}}function Y_(e,t,r,n,i,a,o,s){var l=i-e,u=a-t,f=r-e,c=n-t,d=Math.sqrt(f*f+c*c);f/=d,c/=d;var h=l*f+u*c,v=h/d;v*=d;var g=o[0]=e+v*f,m=o[1]=t+v*c;return Math.sqrt((g-i)*(g-i)+(m-a)*(m-a))}var mn=new wt,Qt=new wt,he=new wt,yn=new wt,Cr=new wt,tu=[],Te=new wt;function KD(e,t){if(t<=180&&t>0){t=t/180*Math.PI,mn.fromArray(e[0]),Qt.fromArray(e[1]),he.fromArray(e[2]),wt.sub(yn,mn,Qt),wt.sub(Cr,he,Qt);var r=yn.len(),n=Cr.len();if(!(r<.001||n<.001)){yn.scale(1/r),Cr.scale(1/n);var i=yn.dot(Cr),a=Math.cos(t);if(a<i){var o=Y_(Qt.x,Qt.y,he.x,he.y,mn.x,mn.y,tu);Te.fromArray(tu),Te.scaleAndAdd(Cr,o/Math.tan(Math.PI-t));var s=he.x!==Qt.x?(Te.x-Qt.x)/(he.x-Qt.x):(Te.y-Qt.y)/(he.y-Qt.y);if(isNaN(s))return;s<0?wt.copy(Te,Qt):s>1&&wt.copy(Te,he),Te.toArray(e[1])}}}}function JD(e,t,r){if(r<=180&&r>0){r=r/180*Math.PI,mn.fromArray(e[0]),Qt.fromArray(e[1]),he.fromArray(e[2]),wt.sub(yn,Qt,mn),wt.sub(Cr,he,Qt);var n=yn.len(),i=Cr.len();if(!(n<.001||i<.001)){yn.scale(1/n),Cr.scale(1/i);var a=yn.dot(t),o=Math.cos(r);if(a<o){var s=Y_(Qt.x,Qt.y,he.x,he.y,mn.x,mn.y,tu);Te.fromArray(tu);var l=Math.PI/2,u=Math.acos(Cr.dot(t)),f=l+u-r;if(f>=l)wt.copy(Te,he);else{Te.scaleAndAdd(Cr,s/Math.tan(Math.PI/2-f));var c=he.x!==Qt.x?(Te.x-Qt.x)/(he.x-Qt.x):(Te.y-Qt.y)/(he.y-Qt.y);if(isNaN(c))return;c<0?wt.copy(Te,Qt):c>1&&wt.copy(Te,he)}Te.toArray(e[1])}}}}function fd(e,t,r,n){var i=r==="normal",a=i?e:e.ensureState(r);a.ignore=t;var o=n.get("smooth");o&&o===!0&&(o=.3),a.shape=a.shape||{},o>0&&(a.shape.smooth=o);var s=n.getModel("lineStyle").getLineStyle();i?e.useStyle(s):a.style=s}function tI(e,t){var r=t.smooth,n=t.points;if(n)if(e.moveTo(n[0][0],n[0][1]),r>0&&n.length>=3){var i=Hu(n[0],n[1]),a=Hu(n[1],n[2]);if(!i||!a){e.lineTo(n[1][0],n[1][1]),e.lineTo(n[2][0],n[2][1]);return}var o=Math.min(i,a)*r,s=Uu([],n[1],n[0],o/i),l=Uu([],n[1],n[2],o/a),u=Uu([],s,l,.5);e.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),e.bezierCurveTo(l[0],l[1],l[0],l[1],n[2][0],n[2][1])}else for(var f=1;f<n.length;f++)e.lineTo(n[f][0],n[f][1])}function eI(e,t,r){var n=e.getTextGuideLine(),i=e.getTextContent();if(!i){n&&e.removeTextGuideLine();return}for(var a=t.normal,o=a.get("show"),s=i.ignore,l=0;l<zs.length;l++){var u=zs[l],f=t[u],c=u==="normal";if(f){var d=f.get("show"),h=c?s:ct(i.states[u]&&i.states[u].ignore,s);if(h||!ct(d,o)){var v=c?n:n&&n.states[u];v&&(v.ignore=!0),n&&fd(n,!0,u,f);continue}n||(n=new Ha,e.setTextGuideLine(n),!c&&(s||!o)&&fd(n,!0,"normal",t.normal),e.stateProxy&&(n.stateProxy=e.stateProxy)),fd(n,!1,u,f)}}if(n){Bt(n.style,r),n.style.fill=null;var g=a.get("showAbove"),m=e.textGuideLineConfig=e.textGuideLineConfig||{};m.showAbove=g||!1,n.buildPath=tI}}function rI(e,t){t=t||"labelLine";for(var r={normal:e.getModel(t)},n=0;n<Ue.length;n++){var i=Ue[n];r[i]=e.getModel([i,t])}return r}var X_=["label","labelLine","layoutOption","priority","defaultAttr","marginForce","minMarginForce","marginDefault","suggestIgnore"],nI=1,eu=2,q_=nI|eu;function ru(e,t,r){r=r||q_,t?e.dirty|=r:e.dirty&=~r}function j_(e,t){return t=t||q_,e.dirty==null||!!(e.dirty&t)}function _n(e){if(e)return j_(e)&&Q_(e,e.label,e),e}function Q_(e,t,r){var n=t.getComputedTransform();e.transform=Gc(e.transform,n);var i=e.localRect=Ya(e.localRect,t.getBoundingRect()),a=t.style,o=a.margin,s=r&&r.marginForce,l=r&&r.minMarginForce,u=r&&r.marginDefault,f=a.__marginType;f==null&&u&&(o=u,f=Hi.textMargin);for(var c=0;c<4;c++)cd[c]=f===Hi.minMargin&&l&&l[c]!=null?l[c]:s&&s[c]!=null?s[c]:o?o[c]:0;f===Hi.textMargin&&nl(i,cd,!1,!1);var d=e.rect=Ya(e.rect,i);return n&&d.applyTransform(n),f===Hi.minMargin&&nl(d,cd,!1,!1),e.axisAligned=Vc(n),(e.label=e.label||{}).ignore=t.ignore,ru(e,!1),ru(e,!0,eu),e}var cd=[0,0,0,0];function iI(e,t,r){return e.transform=Gc(e.transform,r),e.localRect=Ya(e.localRect,t),e.rect=Ya(e.rect,t),r&&e.rect.applyTransform(r),e.axisAligned=Vc(r),e.obb=void 0,(e.label=e.label||{}).ignore=!1,e}function aI(e,t){if(e){e.label.x+=t.x,e.label.y+=t.y,e.label.markRedraw();var r=e.transform;r&&(r[4]+=t.x,r[5]+=t.y);var n=e.rect;n&&(n.x+=t.x,n.y+=t.y);var i=e.obb;i&&i.fromBoundingRect(e.localRect,r)}}function K_(e,t){for(var r=0;r<X_.length;r++){var n=X_[r];e[n]==null&&(e[n]=t[n])}return _n(e)}function J_(e){var t=e.obb;return(!t||j_(e,eu))&&(e.obb=t=t||new x0,t.fromBoundingRect(e.localRect,e.transform),ru(e,!1,eu)),t}function oI(e,t,r,n,i){var a=e.length,o=ln[t],s=Gi[t];if(a<2)return!1;e.sort(function(S,L){return S.rect[o]-L.rect[o]});for(var l=0,u,f=!1,c=0;c<a;c++){var d=e[c],h=d.rect;u=h[o]-l,u<0&&(h[o]-=u,d.label[o]-=u,f=!0),l=h[o]+h[s]}var v=e[0],g=e[a-1],m,p;y(),m<0&&x(-m,.8),p<0&&x(p,.8),y(),_(m,p,1),_(p,m,-1),y(),m<0&&w(-m),p<0&&w(p);function y(){m=v.rect[o]-r,p=n-g.rect[o]-g.rect[s]}function _(S,L,C){if(S<0){var D=Math.min(L,-S);if(D>0){b(D*C,0,a);var I=D+S;I<0&&x(-I*C,1)}else x(-S*C,1)}}function b(S,L,C){S!==0&&(f=!0);for(var D=L;D<C;D++){var I=e[D],A=I.rect;A[o]+=S,I.label[o]+=S}}function x(S,L){for(var C=[],D=0,I=1;I<a;I++){var A=e[I-1].rect,M=Math.max(e[I].rect[o]-A[o]-A[s],0);C.push(M),D+=M}if(D){var T=Math.min(Math.abs(S)/D,L);if(S>0)for(var I=0;I<a-1;I++){var k=C[I]*T;b(k,0,I+1)}else for(var I=a-1;I>0;I--){var k=C[I-1]*T;b(-k,I,a)}}}function w(S){var L=S<0?-1:1;S=Math.abs(S);for(var C=Math.ceil(S/(a-1)),D=0;D<a-1;D++)if(L>0?b(C,0,D+1):b(-C,a-D-1,a),S-=C,S<=0)return}return f}function sI(e){var t=[];e.sort(function(u,f){return(f.suggestIgnore?1:0)-(u.suggestIgnore?1:0)||f.priority-u.priority});function r(u){if(!u.ignore){var f=u.ensureState("emphasis");f.ignore==null&&(f.ignore=!1)}u.ignore=!0}for(var n=0;n<e.length;n++){var i=_n(e[n]);if(!i.label.ignore){for(var a=i.label,o=i.labelLine,s=!1,l=0;l<t.length;l++)if(hd(i,t[l],null,{touchThreshold:.05})){s=!0;break}s?(r(a),o&&r(o)):t.push(i)}}}function hd(e,t,r,n){return!e||!t||e.label&&e.label.ignore||t.label&&t.label.ignore||!e.rect.intersect(t.rect,r,n)?!1:e.axisAligned&&t.axisAligned?!0:J_(e).intersect(J_(t),r,n)}var dd=Math.sin,vd=Math.cos,t1=Math.PI,ui=Math.PI*2,lI=180/t1,e1=(function(){function e(){}return e.prototype.reset=function(t){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,t||4)},e.prototype.moveTo=function(t,r){this._add("M",t,r)},e.prototype.lineTo=function(t,r){this._add("L",t,r)},e.prototype.bezierCurveTo=function(t,r,n,i,a,o){this._add("C",t,r,n,i,a,o)},e.prototype.quadraticCurveTo=function(t,r,n,i){this._add("Q",t,r,n,i)},e.prototype.arc=function(t,r,n,i,a,o){this.ellipse(t,r,n,n,0,i,a,o)},e.prototype.ellipse=function(t,r,n,i,a,o,s,l){var u=s-o,f=!l,c=Math.abs(u),d=Jr(c-ui)||(f?u>=ui:-u>=ui),h=u>0?u%ui:u%ui+ui,v=!1;d?v=!0:Jr(c)?v=!1:v=h>=t1==!!f;var g=t+n*vd(o),m=r+i*dd(o);this._start&&this._add("M",g,m);var p=Math.round(a*lI);if(d){var y=1/this._p,_=(f?1:-1)*(ui-y);this._add("A",n,i,p,1,+f,t+n*vd(o+_),r+i*dd(o+_)),y>.01&&this._add("A",n,i,p,0,+f,g,m)}else{var b=t+n*vd(s),x=r+i*dd(s);this._add("A",n,i,p,+v,+f,b,x)}},e.prototype.rect=function(t,r,n,i){this._add("M",t,r),this._add("l",n,0),this._add("l",0,i),this._add("l",-n,0),this._add("Z")},e.prototype.closePath=function(){this._d.length>0&&this._add("Z")},e.prototype._add=function(t,r,n,i,a,o,s,l,u){for(var f=[],c=this._p,d=1;d<arguments.length;d++){var h=arguments[d];if(isNaN(h)){this._invalid=!0;return}f.push(Math.round(h*c)/c)}this._d.push(t+f.join(" ")),this._start=t==="Z"},e.prototype.generateStr=function(){this._str=this._invalid?"":this._d.join(""),this._d=[]},e.prototype.getStr=function(){return this._str},e})(),pd="none",uI=Math.round;function fI(e){var t=e.fill;return t!=null&&t!==pd}function cI(e){var t=e.stroke;return t!=null&&t!==pd}var gd=["lineCap","miterLimit","lineJoin"],hI=ft(gd,function(e){return"stroke-"+e.toLowerCase()});function dI(e,t,r,n){var i=t.opacity==null?1:t.opacity;if(r instanceof Sr){e("opacity",i);return}if(fI(t)){var a=Ta(t.fill);e("fill",a.color);var o=t.fillOpacity!=null?t.fillOpacity*a.opacity*i:a.opacity*i;o<1&&e("fill-opacity",o)}else e("fill",pd);if(cI(t)){var s=Ta(t.stroke);e("stroke",s.color);var l=t.strokeNoScale?r.getLineScale():1,u=l?(t.lineWidth||0)/l:0,f=t.strokeOpacity!=null?t.strokeOpacity*s.opacity*i:s.opacity*i,c=t.strokeFirst;if(u!==1&&e("stroke-width",u),c&&e("paint-order",c?"stroke":"fill"),f<1&&e("stroke-opacity",f),t.lineDash){var d=Ih(r),h=d[0],v=d[1];h&&(v=uI(v||0),e("stroke-dasharray",h.join(",")),(v||n)&&e("stroke-dashoffset",v))}for(var g=0;g<gd.length;g++){var m=gd[g];if(t[m]!==Rs[m]){var p=t[m]||Rs[m];p&&e(hI[g],p)}}}}var r1="http://www.w3.org/2000/svg",n1="http://www.w3.org/1999/xlink",vI="http://www.w3.org/2000/xmlns/",pI="http://www.w3.org/XML/1998/namespace",i1="ecmeta_";function a1(e){return document.createElementNS(r1,e)}function ae(e,t,r,n,i){return{tag:e,attrs:r||{},children:n,text:i,key:t}}function gI(e,t){var r=[];if(t)for(var n in t){var i=t[n],a=n;i!==!1&&(i!==!0&&i!=null&&(a+='="'+i+'"'),r.push(a))}return"<"+e+" "+r.join(" ")+">"}function mI(e){return"</"+e+">"}function md(e,t){t=t||{};var r=t.newline?`
|
|
70
|
+
`:"";function n(i){var a=i.children,o=i.tag,s=i.attrs,l=i.text;return gI(o,s)+(o!=="style"?be(l):l||"")+(a?""+r+ft(a,function(u){return n(u)}).join(r)+r:"")+mI(o)}return n(e)}function yI(e,t,r){r=r||{};var n=r.newline?`
|
|
71
|
+
`:"",i=" {"+n,a=n+"}",o=ft(Mt(e),function(l){return l+i+ft(Mt(e[l]),function(u){return u+":"+e[l][u]+";"}).join(n)+a}).join(n),s=ft(Mt(t),function(l){return"@keyframes "+l+i+ft(Mt(t[l]),function(u){return u+i+ft(Mt(t[l][u]),function(f){var c=t[l][u][f];return f==="d"&&(c='path("'+c+'")'),f+":"+c+";"}).join(n)+a}).join(n)+a}).join(n);return!o&&!s?"":["<![CDATA[",o,s,"]]>"].join(n)}function yd(e){return{zrId:e,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function o1(e,t,r,n){return ae("svg","root",{width:e,height:t,xmlns:r1,"xmlns:xlink":n1,version:"1.1",baseProfile:"full",viewBox:n?"0 0 "+e+" "+t:!1},r)}var _I=0;function s1(){return _I++}var l1={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"},fi="transform-origin";function bI(e,t,r){var n=et({},e.shape);et(n,t),e.buildPath(r,n);var i=new e1;return i.reset(Lp(e)),r.rebuildPath(i,1),i.generateStr(),i.getStr()}function SI(e,t){var r=t.originX,n=t.originY;(r||n)&&(e[fi]=r+"px "+n+"px")}var xI={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function u1(e,t){var r=t.zrId+"-ani-"+t.cssAnimIdx++;return t.cssAnims[r]=e,r}function wI(e,t,r){var n=e.shape.paths,i={},a,o;if(O(n,function(l){var u=yd(r.zrId);u.animation=!0,nu(l,{},u,!0);var f=u.cssAnims,c=u.cssNodes,d=Mt(f),h=d.length;if(h){o=d[h-1];var v=f[o];for(var g in v){var m=v[g];i[g]=i[g]||{d:""},i[g].d+=m.d||""}for(var p in c){var y=c[p].animation;y.indexOf(o)>=0&&(a=y)}}}),!!a){t.d=!1;var s=u1(i,r);return a.replace(o,s)}}function f1(e){return ut(e)?l1[e]?"cubic-bezier("+l1[e]+")":uf(e)?e:"":""}function nu(e,t,r,n){var i=e.animators,a=i.length,o=[];if(e instanceof _0){var s=wI(e,t,r);if(s)o.push(s);else if(!a)return}else if(!a)return;for(var l={},u=0;u<a;u++){var f=i[u],c=[f.getMaxTime()/1e3+"s"],d=f1(f.getClip().easing),h=f.getDelay();d?c.push(d):c.push("linear"),h&&c.push(h/1e3+"s"),f.getLoop()&&c.push("infinite");var v=c.join(" ");l[v]=l[v]||[v,[]],l[v][1].push(f)}function g(y){var _=y[1],b=_.length,x={},w={},S={},L="animation-timing-function";function C(ht,gt,St){for(var at=ht.getTracks(),mt=ht.getMaxTime(),Rt=0;Rt<at.length;Rt++){var E=at[Rt];if(E.needsAnimate()){var Y=E.keyframes,W=E.propName;if(St&&(W=St(W)),W)for(var N=0;N<Y.length;N++){var P=Y[N],G=Math.round(P.time/mt*100)+"%",K=f1(P.easing),J=P.rawValue;(ut(J)||$t(J))&&(gt[G]=gt[G]||{},gt[G][W]=P.rawValue,K&&(gt[G][L]=K))}}}}for(var D=0;D<b;D++){var I=_[D],A=I.targetName;A?A==="shape"&&C(I,w):!n&&C(I,x)}for(var M in x){var T={};bs(T,e),et(T,x[M]);var k=Mp(T),R=x[M][L];S[M]=k?{transform:k}:{},SI(S[M],T),R&&(S[M][L]=R)}var z,H=!0;for(var M in w){S[M]=S[M]||{};var V=!z,R=w[M][L];V&&(z=new nn);var Z=z.len();z.reset(),S[M].d=bI(e,w[M],z);var B=z.len();if(!V&&Z!==B){H=!1;break}R&&(S[M][L]=R)}if(!H)for(var M in S)delete S[M].d;if(!n)for(var D=0;D<b;D++){var I=_[D],A=I.targetName;A==="style"&&C(I,S,function(at){return xI[at]})}for(var $=Mt(S),X=!0,j,D=1;D<$.length;D++){var Q=$[D-1],bt=$[D];if(S[Q][fi]!==S[bt][fi]){X=!1;break}j=S[Q][fi]}if(X&&j){for(var M in S)S[M][fi]&&delete S[M][fi];t[fi]=j}if(re($,function(ht){return Mt(S[ht]).length>0}).length){var Et=u1(S,r);return Et+" "+y[0]+" both"}}for(var m in l){var s=g(l[m]);s&&o.push(s)}if(o.length){var p=r.zrId+"-cls-"+s1();r.cssNodes["."+p]={animation:o.join(",")},t.class=p}}function TI(e,t,r){if(!e.ignore)if(e.isSilent()){var n={"pointer-events":"none"};c1(n,t,r)}else{var i=e.states.emphasis&&e.states.emphasis.style?e.states.emphasis.style:{},a=i.fill;if(!a){var o=e.style&&e.style.fill,s=e.states.select&&e.states.select.style&&e.states.select.style.fill,l=e.currentStates.indexOf("select")>=0&&s||o;l&&(a=gf(l))}var u=i.lineWidth;if(u){var f=!i.strokeNoScale&&e.transform?e.transform[0]:1;u=u/f}var n={cursor:"pointer"};a&&(n.fill=a),i.stroke&&(n.stroke=i.stroke),u&&(n["stroke-width"]=u),c1(n,t,r)}}function c1(e,t,r,n){var i=JSON.stringify(e),a=r.cssStyleCache[i];a||(a=r.zrId+"-cls-"+s1(),r.cssStyleCache[i]=a,r.cssNodes["."+a+":hover"]=e),t.class=t.class?t.class+" "+a:a}var To=Math.round;function h1(e){return e&&ut(e.src)}function d1(e){return e&&_t(e.toDataURL)}function _d(e,t,r,n){dI(function(i,a){var o=i==="fill"||i==="stroke";o&&Ep(a)?_1(t,e,i,n):o&&yf(a)?b1(r,e,i,n):e[i]=a,o&&n.ssr&&a==="none"&&(e["pointer-events"]="visible")},t,r,!1),II(r,e,n)}function bd(e,t){var r=m2(t);r&&(r.each(function(n,i){n!=null&&(e[(i1+i).toLowerCase()]=n+"")}),t.isSilent()&&(e[i1+"silent"]="true"))}function v1(e){return Jr(e[0]-1)&&Jr(e[1])&&Jr(e[2])&&Jr(e[3]-1)}function CI(e){return Jr(e[4])&&Jr(e[5])}function Sd(e,t,r){if(t&&!(CI(t)&&v1(t))){var n=1e4;e.transform=v1(t)?"translate("+To(t[4]*n)/n+" "+To(t[5]*n)/n+")":Fw(t)}}function p1(e,t,r){for(var n=e.points,i=[],a=0;a<n.length;a++)i.push(To(n[a][0]*r)/r),i.push(To(n[a][1]*r)/r);t.points=i.join(" ")}function g1(e){return!e.smooth}function AI(e){var t=ft(e,function(r){return typeof r=="string"?[r,r]:r});return function(r,n,i){for(var a=0;a<t.length;a++){var o=t[a],s=r[o[0]];s!=null&&(n[o[1]]=To(s*i)/i)}}}var EI={circle:[AI(["cx","cy","r"])],polyline:[p1,g1],polygon:[p1,g1]};function LI(e){for(var t=e.animators,r=0;r<t.length;r++)if(t[r].targetName==="shape")return!0;return!1}function m1(e,t){var r=e.style,n=e.shape,i=EI[e.type],a={},o=t.animation,s="path",l=e.style.strokePercent,u=t.compress&&Lp(e)||4;if(i&&!t.willUpdate&&!(i[1]&&!i[1](n))&&!(o&&LI(e))&&!(l<1)){s=e.type;var f=Math.pow(10,u);i[0](n,a,f)}else{var c=!e.path||e.shapeChanged();e.path||e.createPathProxy();var d=e.path;c&&(d.beginPath(),e.buildPath(d,e.shape),e.pathUpdated());var h=d.getVersion(),v=e,g=v.__svgPathBuilder;(v.__svgPathVersion!==h||!g||l!==v.__svgPathStrokePercent)&&(g||(g=v.__svgPathBuilder=new e1),g.reset(u),d.rebuildPath(g,l),g.generateStr(),v.__svgPathVersion=h,v.__svgPathStrokePercent=l),a.d=g.getStr()}return Sd(a,e.transform),_d(a,r,e,t),bd(a,e),t.animation&&nu(e,a,t),t.emphasis&&TI(e,a,t),ae(s,e.id+"",a)}function MI(e,t){var r=e.style,n=r.image;if(n&&!ut(n)&&(h1(n)?n=n.src:d1(n)&&(n=n.toDataURL())),!!n){var i=r.x||0,a=r.y||0,o=r.width,s=r.height,l={href:n,width:o,height:s};return i&&(l.x=i),a&&(l.y=a),Sd(l,e.transform),_d(l,r,e,t),bd(l,e),t.animation&&nu(e,l,t),ae("image",e.id+"",l)}}function DI(e,t){var r=e.style,n=r.text;if(n!=null&&(n+=""),!(!n||isNaN(r.x)||isNaN(r.y))){var i=r.font||Dr,a=r.x||0,o=Vw(r.y||0,La(i),r.textBaseline),s=zw[r.textAlign]||r.textAlign,l={"dominant-baseline":"central","text-anchor":s};if(Rg(r)){var u="",f=r.fontStyle,c=$g(r.fontSize);if(!parseFloat(c))return;var d=r.fontFamily||Bv,h=r.fontWeight;u+="font-size:"+c+";font-family:"+d+";",f&&f!=="normal"&&(u+="font-style:"+f+";"),h&&h!=="normal"&&(u+="font-weight:"+h+";"),l.style=u}else l.style="font: "+i;return n.match(/\s/)&&(l["xml:space"]="preserve"),a&&(l.x=a),o&&(l.y=o),Sd(l,e.transform),_d(l,r,e,t),bd(l,e),t.animation&&nu(e,l,t),ae("text",e.id+"",l,void 0,n)}}function y1(e,t){if(e instanceof It)return m1(e,t);if(e instanceof Sr)return MI(e,t);if(e instanceof Ba)return DI(e,t)}function II(e,t,r){var n=e.style;if(Gw(n)){var i=Hw(e),a=r.shadowCache,o=a[i];if(!o){var s=e.getGlobalScale(),l=s[0],u=s[1];if(!l||!u)return;var f=n.shadowOffsetX||0,c=n.shadowOffsetY||0,d=n.shadowBlur,h=Ta(n.shadowColor),v=h.opacity,g=h.color,m=d/2/l,p=d/2/u,y=m+" "+p;o=r.zrId+"-s"+r.shadowIdx++,r.defs[o]=ae("filter",o,{id:o,x:"-100%",y:"-100%",width:"300%",height:"300%"},[ae("feDropShadow","",{dx:f/l,dy:c/u,stdDeviation:y,"flood-color":g,"flood-opacity":v})]),a[i]=o}t.filter=hs(o)}}function _1(e,t,r,n){var i=e[r],a,o={gradientUnits:i.global?"userSpaceOnUse":"objectBoundingBox"};if(Cp(i))a="linearGradient",o.x1=i.x,o.y1=i.y,o.x2=i.x2,o.y2=i.y2;else if(Ap(i))a="radialGradient",o.cx=ct(i.x,.5),o.cy=ct(i.y,.5),o.r=ct(i.r,.5);else{process.env.NODE_ENV!=="production"&&gi("Illegal gradient type.");return}for(var s=i.colorStops,l=[],u=0,f=s.length;u<f;++u){var c=mf(s[u].offset)*100+"%",d=s[u].color,h=Ta(d),v=h.color,g=h.opacity,m={offset:c};m["stop-color"]=v,g<1&&(m["stop-opacity"]=g),l.push(ae("stop",u+"",m))}var p=ae(a,"",o,l),y=md(p),_=n.gradientCache,b=_[y];b||(b=n.zrId+"-g"+n.gradientIdx++,_[y]=b,o.id=b,n.defs[b]=ae(a,b,o,l)),t[r]=hs(b)}function b1(e,t,r,n){var i=e.style[r],a=e.getBoundingRect(),o={},s=i.repeat,l=s==="no-repeat",u=s==="repeat-x",f=s==="repeat-y",c;if(Tp(i)){var d=i.imageWidth,h=i.imageHeight,v=void 0,g=i.image;if(ut(g)?v=g:h1(g)?v=g.src:d1(g)&&(v=g.toDataURL()),typeof Image>"u"){var m="Image width/height must been given explictly in svg-ssr renderer.";vt(d,m),vt(h,m)}else if(d==null||h==null){var p=function(D,I){if(D){var A=D.elm,M=d||I.width,T=h||I.height;D.tag==="pattern"&&(u?(T=1,M/=a.width):f&&(M=1,T/=a.height)),D.attrs.width=M,D.attrs.height=T,A&&(A.setAttribute("width",M),A.setAttribute("height",T))}},y=Qf(v,null,e,function(D){l||p(w,D),p(c,D)});y&&y.width&&y.height&&(d=d||y.width,h=h||y.height)}c=ae("image","img",{href:v,width:d,height:h}),o.width=d,o.height=h}else i.svgElement&&(c=At(i.svgElement),o.width=i.svgWidth,o.height=i.svgHeight);if(c){var _,b;l?_=b=1:u?(b=1,_=o.width/a.width):f?(_=1,b=o.height/a.height):o.patternUnits="userSpaceOnUse",_!=null&&!isNaN(_)&&(o.width=_),b!=null&&!isNaN(b)&&(o.height=b);var x=Mp(i);x&&(o.patternTransform=x);var w=ae("pattern","",o,[c]),S=md(w),L=n.patternCache,C=L[S];C||(C=n.zrId+"-p"+n.patternIdx++,L[S]=C,o.id=C,w=n.defs[C]=ae("pattern",C,o,[c])),t[r]=hs(C)}}function kI(e,t,r){var n=r.clipPathCache,i=r.defs,a=n[e.id];if(!a){a=r.zrId+"-c"+r.clipPathIdx++;var o={id:a};n[e.id]=a,i[a]=ae("clipPath",a,o,[m1(e,r)])}t["clip-path"]=hs(a)}function S1(e){return document.createTextNode(e)}function ci(e,t,r){e.insertBefore(t,r)}function x1(e,t){e.removeChild(t)}function w1(e,t){e.appendChild(t)}function T1(e){return e.parentNode}function C1(e){return e.nextSibling}function xd(e,t){e.textContent=t}var A1=58,PI=120,NI=ae("","");function wd(e){return e===void 0}function Ar(e){return e!==void 0}function $I(e,t,r){for(var n={},i=t;i<=r;++i){var a=e[i].key;a!==void 0&&(process.env.NODE_ENV!=="production"&&n[a]!=null&&console.error("Duplicate key "+a),n[a]=i)}return n}function Co(e,t){var r=e.key===t.key,n=e.tag===t.tag;return n&&r}function Ao(e){var t,r=e.children,n=e.tag;if(Ar(n)){var i=e.elm=a1(n);if(Td(NI,e),st(r))for(t=0;t<r.length;++t){var a=r[t];a!=null&&w1(i,Ao(a))}else Ar(e.text)&&!pt(e.text)&&w1(i,S1(e.text))}else e.elm=S1(e.text);return e.elm}function E1(e,t,r,n,i){for(;n<=i;++n){var a=r[n];a!=null&&ci(e,Ao(a),t)}}function iu(e,t,r,n){for(;r<=n;++r){var i=t[r];if(i!=null)if(Ar(i.tag)){var a=T1(i.elm);x1(a,i.elm)}else x1(e,i.elm)}}function Td(e,t){var r,n=t.elm,i=e&&e.attrs||{},a=t.attrs||{};if(i!==a){for(r in a){var o=a[r],s=i[r];s!==o&&(o===!0?n.setAttribute(r,""):o===!1?n.removeAttribute(r):r==="style"?n.style.cssText=o:r.charCodeAt(0)!==PI?n.setAttribute(r,o):r==="xmlns:xlink"||r==="xmlns"?n.setAttributeNS(vI,r,o):r.charCodeAt(3)===A1?n.setAttributeNS(pI,r,o):r.charCodeAt(5)===A1?n.setAttributeNS(n1,r,o):n.setAttribute(r,o))}for(r in i)r in a||n.removeAttribute(r)}}function OI(e,t,r){for(var n=0,i=0,a=t.length-1,o=t[0],s=t[a],l=r.length-1,u=r[0],f=r[l],c,d,h,v;n<=a&&i<=l;)o==null?o=t[++n]:s==null?s=t[--a]:u==null?u=r[++i]:f==null?f=r[--l]:Co(o,u)?(aa(o,u),o=t[++n],u=r[++i]):Co(s,f)?(aa(s,f),s=t[--a],f=r[--l]):Co(o,f)?(aa(o,f),ci(e,o.elm,C1(s.elm)),o=t[++n],f=r[--l]):Co(s,u)?(aa(s,u),ci(e,s.elm,o.elm),s=t[--a],u=r[++i]):(wd(c)&&(c=$I(t,n,a)),d=c[u.key],wd(d)?ci(e,Ao(u),o.elm):(h=t[d],h.tag!==u.tag?ci(e,Ao(u),o.elm):(aa(h,u),t[d]=void 0,ci(e,h.elm,o.elm))),u=r[++i]);(n<=a||i<=l)&&(n>a?(v=r[l+1]==null?null:r[l+1].elm,E1(e,v,r,i,l)):iu(e,t,n,a))}function aa(e,t){var r=t.elm=e.elm,n=e.children,i=t.children;e!==t&&(Td(e,t),wd(t.text)?Ar(n)&&Ar(i)?n!==i&&OI(r,n,i):Ar(i)?(Ar(e.text)&&xd(r,""),E1(r,null,i,0,i.length-1)):Ar(n)?iu(r,n,0,n.length-1):Ar(e.text)&&xd(r,""):e.text!==t.text&&(Ar(n)&&iu(r,n,0,n.length-1),xd(r,t.text)))}function RI(e,t){if(Co(e,t))aa(e,t);else{var r=e.elm,n=T1(r);Ao(t),n!==null&&(ci(n,t.elm,C1(r)),iu(n,[e],0,0))}return t}var BI=0,FI=(function(){function e(t,r,n){if(this.type="svg",this.refreshHover=L1("refreshHover"),this.configLayer=L1("configLayer"),this.storage=r,this._opts=n=et({},n),this.root=t,this._id="zr"+BI++,this._oldVNode=o1(n.width,n.height),t&&!n.ssr){var i=this._viewport=document.createElement("div");i.style.cssText="position:relative;overflow:hidden";var a=this._svgDom=this._oldVNode.elm=a1("svg");Td(null,this._oldVNode),i.appendChild(a),t.appendChild(i)}this.resize(n.width,n.height)}return e.prototype.getType=function(){return this.type},e.prototype.getViewportRoot=function(){return this._viewport},e.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},e.prototype.getSvgDom=function(){return this._svgDom},e.prototype.refresh=function(){if(this.root){var t=this.renderToVNode({willUpdate:!0});t.attrs.style="position:absolute;left:0;top:0;user-select:none",RI(this._oldVNode,t),this._oldVNode=t}},e.prototype.renderOneToVNode=function(t){return y1(t,yd(this._id))},e.prototype.renderToVNode=function(t){t=t||{};var r=this.storage.getDisplayList(!0),n=this._width,i=this._height,a=yd(this._id);a.animation=t.animation,a.willUpdate=t.willUpdate,a.compress=t.compress,a.emphasis=t.emphasis,a.ssr=this._opts.ssr;var o=[],s=this._bgVNode=zI(n,i,this._backgroundColor,a);s&&o.push(s);var l=t.compress?null:this._mainVNode=ae("g","main",{},[]);this._paintList(r,a,l?l.children:o),l&&o.push(l);var u=ft(Mt(a.defs),function(d){return a.defs[d]});if(u.length&&o.push(ae("defs","defs",{},u)),t.animation){var f=yI(a.cssNodes,a.cssAnims,{newline:!0});if(f){var c=ae("style","stl",{},[],f);o.push(c)}}return o1(n,i,o,t.useViewBox)},e.prototype.renderToString=function(t){return t=t||{},md(this.renderToVNode({animation:ct(t.cssAnimation,!0),emphasis:ct(t.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:ct(t.useViewBox,!0)}),{newline:!0})},e.prototype.setBackgroundColor=function(t){this._backgroundColor=t},e.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},e.prototype._paintList=function(t,r,n){for(var i=t.length,a=[],o=0,s,l,u=0,f=0;f<i;f++){var c=t[f];if(!c.invisible){var d=c.__clipPaths,h=d&&d.length||0,v=l&&l.length||0,g=void 0;for(g=Math.max(h-1,v-1);g>=0&&!(d&&l&&d[g]===l[g]);g--);for(var m=v-1;m>g;m--)o--,s=a[o-1];for(var p=g+1;p<h;p++){var y={};kI(d[p],y,r);var _=ae("g","clip-g-"+u++,y,[]);(s?s.children:n).push(_),a[o++]=_,s=_}l=d;var b=y1(c,r);b&&(s?s.children:n).push(b)}}},e.prototype.resize=function(t,r){var n=this._opts,i=this.root,a=this._viewport;if(t!=null&&(n.width=t),r!=null&&(n.height=r),i&&a&&(a.style.display="none",t=Sy(i,0,n),r=Sy(i,1,n),a.style.display=""),this._width!==t||this._height!==r){if(this._width=t,this._height=r,a){var o=a.style;o.width=t+"px",o.height=r+"px"}if(yf(this._backgroundColor))this.refresh();else{var s=this._svgDom;s&&(s.setAttribute("width",t),s.setAttribute("height",r));var l=this._bgVNode&&this._bgVNode.elm;l&&(l.setAttribute("width",t),l.setAttribute("height",r))}}},e.prototype.getWidth=function(){return this._width},e.prototype.getHeight=function(){return this._height},e.prototype.dispose=function(){this.root&&(this.root.innerHTML=""),this._svgDom=this._viewport=this.storage=this._oldVNode=this._bgVNode=this._mainVNode=null},e.prototype.clear=function(){this._svgDom&&(this._svgDom.innerHTML=null),this._oldVNode=null},e.prototype.toDataURL=function(t){var r=this.renderToString(),n="data:image/svg+xml;";return t?(r=Ww(r),r&&n+"base64,"+r):n+"charset=UTF-8,"+encodeURIComponent(r)},e})();function L1(e){return function(){process.env.NODE_ENV!=="production"&&gi('In SVG mode painter not support method "'+e+'"')}}function zI(e,t,r,n){var i;if(r&&r!=="none")if(i=ae("rect","bg",{width:e,height:t,x:"0",y:"0"}),Ep(r))_1({fill:r},i.attrs,"fill",n);else if(yf(r))b1({style:{fill:r},dirty:_e,getBoundingRect:function(){return{width:e,height:t}}},i.attrs,"fill",n);else{var a=Ta(r),o=a.color,s=a.opacity;i.attrs.fill=o,s<1&&(i.attrs["fill-opacity"]=s)}return i}function VI(e){e.registerPainter("svg",FI)}var GI=(function(e){it(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.hasSymbolVisual=!0,r}return t.prototype.getInitialData=function(r){if(process.env.NODE_ENV!=="production"){var n=r.coordinateSystem;if(n!=="polar"&&n!=="cartesian2d")throw new Error("Line not support coordinateSystem besides cartesian and polar")}return Yl(null,this,{useEncodeDefaulter:!0})},t.prototype.getLegendIcon=function(r){var n=new ne,i=ai("line",0,r.itemHeight/2,r.itemWidth,0,r.lineStyle.stroke,!1);n.add(i),i.setStyle(r.lineStyle);var a=this.getData().getVisual("symbol"),o=this.getData().getVisual("symbolRotate"),s=a==="none"?"circle":a,l=r.itemHeight*.8,u=ai(s,(r.itemWidth-l)/2,(r.itemHeight-l)/2,l,l,r.itemStyle.fill);n.add(u),u.setStyle(r.itemStyle);var f=r.iconRotate==="inherit"?o:r.iconRotate||0;return u.rotation=f*Math.PI/180,u.setOrigin([r.itemWidth/2,r.itemHeight/2]),s.indexOf("empty")>-1&&(u.style.stroke=u.style.fill,u.style.fill=dt.color.neutral00,u.style.lineWidth=2),n},t.type="series.line",t.dependencies=["grid","polar"],t.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},t})(je);function Cd(e,t){var r=e.mapDimensionsAll("defaultedLabel"),n=r.length;if(n===1){var i=Zi(e,t,r[0]);return i!=null?i+"":null}else if(n){for(var a=[],o=0;o<r.length;o++)a.push(Zi(e,t,r[o]));return a.join(" ")}}function M1(e,t){var r=e.mapDimensionsAll("defaultedLabel");if(!st(t))return t+"";for(var n=[],i=0;i<r.length;i++){var a=e.getDimensionIndex(r[i]);a>=0&&n.push(t[a])}return n.join(" ")}var Ad=(function(e){it(t,e);function t(r,n,i,a){var o=e.call(this)||this;return o.updateData(r,n,i,a),o}return t.prototype._createSymbol=function(r,n,i,a,o,s){this.removeAll();var l=ai(r,-1,-1,2,2,null,s);l.attr({z2:ct(o,100),culling:!0,scaleX:a[0]/2,scaleY:a[1]/2}),l.drift=HI,this._symbolType=r,this.add(l)},t.prototype.stopSymbolAnimation=function(r){this.childAt(0).stopAnimation(null,r)},t.prototype.getSymbolType=function(){return this._symbolType},t.prototype.getSymbolPath=function(){return this.childAt(0)},t.prototype.highlight=function(){Ws(this.childAt(0))},t.prototype.downplay=function(){Zs(this.childAt(0))},t.prototype.setZ=function(r,n){var i=this.childAt(0);i.zlevel=r,i.z=n},t.prototype.setDraggable=function(r,n){var i=this.childAt(0);i.draggable=r,i.cursor=!n&&r?"move":i.cursor},t.prototype.updateData=function(r,n,i,a){this.silent=!1;var o=r.getItemVisual(n,"symbol")||"circle",s=r.hostModel,l=t.getSymbolSize(r,n),u=t.getSymbolZ2(r,n),f=o!==this._symbolType,c=a&&a.disableAnimation;if(f){var d=r.getItemVisual(n,"symbolKeepAspect");this._createSymbol(o,r,n,l,u,d)}else{var h=this.childAt(0);h.silent=!1;var v={scaleX:l[0]/2,scaleY:l[1]/2};c?h.attr(v):we(h,v,s,n),Nc(h)}if(this._updateCommon(r,n,l,i,a),f){var h=this.childAt(0);if(!c){var v={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:h.style.opacity}};h.scaleX=h.scaleY=0,h.style.opacity=0,We(h,v,s,n)}}c&&this.childAt(0).stopAnimation("leave")},t.prototype._updateCommon=function(r,n,i,a,o){var s=this.childAt(0),l=r.hostModel,u,f,c,d,h,v,g,m,p;if(a&&(u=a.emphasisItemStyle,f=a.blurItemStyle,c=a.selectItemStyle,d=a.focus,h=a.blurScope,g=a.labelStatesModels,m=a.hoverScale,p=a.cursorStyle,v=a.emphasisDisabled),!a||r.hasItemOption){var y=a&&a.itemModel?a.itemModel:r.getItemModel(n),_=y.getModel("emphasis");u=_.getModel("itemStyle").getItemStyle(),c=y.getModel(["select","itemStyle"]).getItemStyle(),f=y.getModel(["blur","itemStyle"]).getItemStyle(),d=_.get("focus"),h=_.get("blurScope"),v=_.get("disabled"),g=qa(y),m=_.getShallow("scale"),p=y.getShallow("cursor")}var b=r.getItemVisual(n,"symbolRotate");s.attr("rotation",(b||0)*Math.PI/180||0);var x=_y(r.getItemVisual(n,"symbolOffset"),i);x&&(s.x=x[0],s.y=x[1]),p&&s.attr("cursor",p);var w=r.getItemVisual(n,"style"),S=w.fill;if(s instanceof Sr){var L=s.style;s.useStyle(et({image:L.image,x:L.x,y:L.y,width:L.width,height:L.height},w))}else s.__isEmptyBrush?s.useStyle(et({},w)):s.useStyle(w),s.style.decal=null,s.setColor(S,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var C=r.getItemVisual(n,"liftZ"),D=this._z2;C!=null?D==null&&(this._z2=s.z2,s.z2+=C):D!=null&&(s.z2=D,this._z2=null);var I=o&&o.useNameLabel;Xa(s,g,{labelFetcher:l,labelDataIndex:n,defaultText:A,inheritColor:S,defaultOpacity:w.opacity});function A(k){return I?r.getName(k):Cd(r,k)}this._sizeX=i[0]/2,this._sizeY=i[1]/2;var M=s.ensureState("emphasis");M.style=u,s.ensureState("select").style=c,s.ensureState("blur").style=f;var T=m==null||m===!0?Math.max(1.1,3/this._sizeY):isFinite(m)&&m>0?+m:1;M.scaleX=this._sizeX*T,M.scaleY=this._sizeY*T,this.setSymbolScale(1),Fa(this,d,h,v)},t.prototype.setSymbolScale=function(r){this.scaleX=this.scaleY=r},t.prototype.fadeOut=function(r,n,i){var a=this.childAt(0),o=Lt(this).dataIndex,s=i&&i.animation;if(this.silent=a.silent=!0,i&&i.fadeLabel){var l=a.getTextContent();l&&rl(l,{style:{opacity:0}},n,{dataIndex:o,removeOpt:s,cb:function(){a.removeTextContent()}})}else a.removeTextContent();rl(a,{style:{opacity:0},scaleX:0,scaleY:0},n,{dataIndex:o,cb:r,removeOpt:s})},t.getSymbolSize=function(r,n){return HL(r.getItemVisual(n,"symbolSize"))},t.getSymbolZ2=function(r,n){return r.getItemVisual(n,"z2")},t})(ne);function HI(e,t){this.parent.drift(e,t)}function Ed(e,t,r,n){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(n.isIgnore&&n.isIgnore(r))&&!(n.clipShape&&!n.clipShape.contain(t[0],t[1]))&&e.getItemVisual(r,"symbol")!=="none"}function D1(e){return e!=null&&!pt(e)&&(e={isIgnore:e}),e||{}}function I1(e){var t=e.hostModel,r=t.getModel("emphasis");return{emphasisItemStyle:r.getModel("itemStyle").getItemStyle(),blurItemStyle:t.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:t.getModel(["select","itemStyle"]).getItemStyle(),focus:r.get("focus"),blurScope:r.get("blurScope"),emphasisDisabled:r.get("disabled"),hoverScale:r.get("scale"),labelStatesModels:qa(t),cursorStyle:t.get("cursor")}}var k1=(function(){function e(t){this.group=new ne,this._SymbolCtor=t||Ad}return e.prototype.updateData=function(t,r){this._progressiveEls=null,r=D1(r);var n=this.group,i=t.hostModel,a=this._data,o=this._SymbolCtor,s=r.disableAnimation,l=I1(t),u={disableAnimation:s},f=r.getSymbolPoint||function(c){return t.getItemLayout(c)};a||n.removeAll(),t.diff(a).add(function(c){var d=f(c);if(Ed(t,d,c,r)){var h=new o(t,c,l,u);h.setPosition(d),t.setItemGraphicEl(c,h),n.add(h)}}).update(function(c,d){var h=a.getItemGraphicEl(d),v=f(c);if(!Ed(t,v,c,r)){n.remove(h);return}var g=t.getItemVisual(c,"symbol")||"circle",m=h&&h.getSymbolType&&h.getSymbolType();if(!h||m&&m!==g)n.remove(h),h=new o(t,c,l,u),h.setPosition(v);else{h.updateData(t,c,l,u);var p={x:v[0],y:v[1]};s?h.attr(p):we(h,p,i)}n.add(h),t.setItemGraphicEl(c,h)}).remove(function(c){var d=a.getItemGraphicEl(c);d&&d.fadeOut(function(){n.remove(d)},i)}).execute(),this._getSymbolPoint=f,this._data=t},e.prototype.updateLayout=function(){var t=this,r=this._data;r&&r.eachItemGraphicEl(function(n,i){var a=t._getSymbolPoint(i);n.setPosition(a),n.markRedraw()})},e.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=I1(t),this._data=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(t,r,n){this._progressiveEls=[],n=D1(n);function i(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var a=t.start;a<t.end;a++){var o=r.getItemLayout(a);if(Ed(r,o,a,n)){var s=new this._SymbolCtor(r,a,this._seriesScope);s.traverse(i),s.setPosition(o),this.group.add(s),r.setItemGraphicEl(a,s),this._progressiveEls.push(s)}}},e.prototype.eachRendered=function(t){al(this._progressiveEls||this.group,t)},e.prototype.remove=function(t){var r=this.group,n=this._data;n&&t?n.eachItemGraphicEl(function(i){i.fadeOut(function(){r.remove(i)},n.hostModel)}):r.removeAll()},e})();function P1(e,t,r){var n=e.getBaseAxis(),i=e.getOtherAxis(n),a=UI(i,r),o=n.dim,s=i.dim,l=t.mapDimension(s),u=t.mapDimension(o),f=s==="x"||s==="radius"?1:0,c=ft(e.dimensions,function(v){return t.mapDimension(v)}),d=!1,h=t.getCalculationInfo("stackResultDimension");return ra(t,c[0])&&(d=!0,c[0]=h),ra(t,c[1])&&(d=!0,c[1]=h),{dataDimsForPoint:c,valueStart:a,valueAxisDim:s,baseAxisDim:o,stacked:!!d,valueDim:l,baseDim:u,baseDataOffset:f,stackedOverDimension:t.getCalculationInfo("stackedOverDimension")}}function UI(e,t){var r=0,n=e.scale.getExtent();return t==="start"?r=n[0]:t==="end"?r=n[1]:$t(t)&&!isNaN(t)?r=t:n[0]>0?r=n[0]:n[1]<0&&(r=n[1]),r}function N1(e,t,r,n){var i=NaN;e.stacked&&(i=r.get(r.getCalculationInfo("stackedOverDimension"),n)),isNaN(i)&&(i=e.valueStart);var a=e.baseDataOffset,o=[];return o[a]=r.get(e.baseDim,n),o[1-a]=i,t.dataToPoint(o)}function WI(e,t){var r=[];return t.diff(e).add(function(n){r.push({cmd:"+",idx:n})}).update(function(n,i){r.push({cmd:"=",idx:i,idx1:n})}).remove(function(n){r.push({cmd:"-",idx:n})}).execute(),r}function ZI(e,t,r,n,i,a,o,s){for(var l=WI(e,t),u=[],f=[],c=[],d=[],h=[],v=[],g=[],m=P1(i,t,o),p=e.getLayout("points")||[],y=t.getLayout("points")||[],_=0;_<l.length;_++){var b=l[_],x=!0,w=void 0,S=void 0;switch(b.cmd){case"=":w=b.idx*2,S=b.idx1*2;var L=p[w],C=p[w+1],D=y[S],I=y[S+1];(isNaN(L)||isNaN(C))&&(L=D,C=I),u.push(L,C),f.push(D,I),c.push(r[w],r[w+1]),d.push(n[S],n[S+1]),g.push(t.getRawIndex(b.idx1));break;case"+":var A=b.idx,M=m.dataDimsForPoint,T=i.dataToPoint([t.get(M[0],A),t.get(M[1],A)]);S=A*2,u.push(T[0],T[1]),f.push(y[S],y[S+1]);var k=N1(m,i,t,A);c.push(k[0],k[1]),d.push(n[S],n[S+1]),g.push(t.getRawIndex(A));break;case"-":x=!1}x&&(h.push(b),v.push(v.length))}v.sort(function(Q,bt){return g[Q]-g[bt]});for(var R=u.length,z=Hr(R),H=Hr(R),V=Hr(R),Z=Hr(R),B=[],_=0;_<v.length;_++){var $=v[_],X=_*2,j=$*2;z[X]=u[j],z[X+1]=u[j+1],H[X]=f[j],H[X+1]=f[j+1],V[X]=c[j],V[X+1]=c[j+1],Z[X]=d[j],Z[X+1]=d[j+1],B[_]=h[$]}return{current:z,next:H,stackedOnCurrent:V,stackedOnNext:Z,status:B}}var bn=Math.min,Sn=Math.max;function hi(e,t){return isNaN(e)||isNaN(t)}function Ld(e,t,r,n,i,a,o,s,l){for(var u,f,c,d,h,v,g=r,m=0;m<n;m++){var p=t[g*2],y=t[g*2+1];if(g>=i||g<0)break;if(hi(p,y)){if(l){g+=a;continue}break}if(g===r)e[a>0?"moveTo":"lineTo"](p,y),c=p,d=y;else{var _=p-u,b=y-f;if(_*_+b*b<.5){g+=a;continue}if(o>0){for(var x=g+a,w=t[x*2],S=t[x*2+1];w===p&&S===y&&m<n;)m++,x+=a,g+=a,w=t[x*2],S=t[x*2+1],p=t[g*2],y=t[g*2+1],_=p-u,b=y-f;var L=m+1;if(l)for(;hi(w,S)&&L<n;)L++,x+=a,w=t[x*2],S=t[x*2+1];var C=.5,D=0,I=0,A=void 0,M=void 0;if(L>=n||hi(w,S))h=p,v=y;else{D=w-u,I=S-f;var T=p-u,k=w-p,R=y-f,z=S-y,H=void 0,V=void 0;if(s==="x"){H=Math.abs(T),V=Math.abs(k);var Z=D>0?1:-1;h=p-Z*H*o,v=y,A=p+Z*V*o,M=y}else if(s==="y"){H=Math.abs(R),V=Math.abs(z);var B=I>0?1:-1;h=p,v=y-B*H*o,A=p,M=y+B*V*o}else H=Math.sqrt(T*T+R*R),V=Math.sqrt(k*k+z*z),C=V/(V+H),h=p-D*o*(1-C),v=y-I*o*(1-C),A=p+D*o*C,M=y+I*o*C,A=bn(A,Sn(w,p)),M=bn(M,Sn(S,y)),A=Sn(A,bn(w,p)),M=Sn(M,bn(S,y)),D=A-p,I=M-y,h=p-D*H/V,v=y-I*H/V,h=bn(h,Sn(u,p)),v=bn(v,Sn(f,y)),h=Sn(h,bn(u,p)),v=Sn(v,bn(f,y)),D=p-h,I=y-v,A=p+D*V/H,M=y+I*V/H}e.bezierCurveTo(c,d,h,v,p,y),c=A,d=M}else e.lineTo(p,y)}u=p,f=y,g+=a}return m}var $1=(function(){function e(){this.smooth=0,this.smoothConstraint=!0}return e})(),YI=(function(e){it(t,e);function t(r){var n=e.call(this,r)||this;return n.type="ec-polyline",n}return t.prototype.getDefaultStyle=function(){return{stroke:dt.color.neutral99,fill:null}},t.prototype.getDefaultShape=function(){return new $1},t.prototype.buildPath=function(r,n){var i=n.points,a=0,o=i.length/2;if(n.connectNulls){for(;o>0&&hi(i[o*2-2],i[o*2-1]);o--);for(;a<o&&hi(i[a*2],i[a*2+1]);a++);}for(;a<o;)a+=Ld(r,i,a,o,o,1,n.smooth,n.smoothMonotone,n.connectNulls)+1},t.prototype.getPointOn=function(r,n){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var i=this.path,a=i.data,o=nn.CMD,s,l,u=n==="x",f=[],c=0;c<a.length;){var d=a[c++],h=void 0,v=void 0,g=void 0,m=void 0,p=void 0,y=void 0,_=void 0;switch(d){case o.M:s=a[c++],l=a[c++];break;case o.L:if(h=a[c++],v=a[c++],_=u?(r-s)/(h-s):(r-l)/(v-l),_<=1&&_>=0){var b=u?(v-l)*_+l:(h-s)*_+s;return u?[r,b]:[b,r]}s=h,l=v;break;case o.C:h=a[c++],v=a[c++],g=a[c++],m=a[c++],p=a[c++],y=a[c++];var x=u?is(s,h,g,p,r,f):is(l,v,m,y,r,f);if(x>0)for(var w=0;w<x;w++){var S=f[w];if(S<=1&&S>=0){var b=u?le(l,v,m,y,S):le(s,h,g,p,S);return u?[r,b]:[b,r]}}s=p,l=y;break}}},t})(It),XI=(function(e){it(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t})($1),qI=(function(e){it(t,e);function t(r){var n=e.call(this,r)||this;return n.type="ec-polygon",n}return t.prototype.getDefaultShape=function(){return new XI},t.prototype.buildPath=function(r,n){var i=n.points,a=n.stackedOnPoints,o=0,s=i.length/2,l=n.smoothMonotone;if(n.connectNulls){for(;s>0&&hi(i[s*2-2],i[s*2-1]);s--);for(;o<s&&hi(i[o*2],i[o*2+1]);o++);}for(;o<s;){var u=Ld(r,i,o,s,s,1,n.smooth,l,n.connectNulls);Ld(r,a,o+u-1,u,s,-1,n.stackedOnSmooth,l,n.connectNulls),o+=u+1,r.closePath()}},t})(It);function O1(e,t,r,n,i){var a=e.getArea(),o=a.x,s=a.y,l=a.width,u=a.height,f=r.get(["lineStyle","width"])||0;o-=f/2,s-=f/2,l+=f,u+=f,l=Math.ceil(l),o!==Math.floor(o)&&(o=Math.floor(o),l++);var c=new qt({shape:{x:o,y:s,width:l,height:u}});if(t){var d=e.getBaseAxis(),h=d.isHorizontal(),v=d.inverse;h?(v&&(c.shape.x+=l),c.shape.width=0):(v||(c.shape.y+=u),c.shape.height=0);var g=_t(i)?function(m){i(m,c)}:null;We(c,{shape:{width:l,height:u,x:o,y:s}},r,null,n,g)}return c}function R1(e,t,r){var n=e.getArea(),i=ue(n.r0,1),a=ue(n.r,1),o=new on({shape:{cx:ue(e.cx,1),cy:ue(e.cy,1),r0:i,r:a,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}});if(t){var s=e.getBaseAxis().dim==="angle";s?o.shape.endAngle=n.startAngle:o.shape.r=i,We(o,{shape:{endAngle:n.endAngle,r:a}},r)}return o}function jI(e,t,r,n,i){if(e){if(e.type==="polar")return R1(e,t,r);if(e.type==="cartesian2d")return O1(e,t,r,n,i)}else return null;return null}function Md(e,t){return e.type===t}function B1(e,t){if(e.length===t.length){for(var r=0;r<e.length;r++)if(e[r]!==t[r])return;return!0}}function F1(e){for(var t=1/0,r=1/0,n=-1/0,i=-1/0,a=0;a<e.length;){var o=e[a++],s=e[a++];isNaN(o)||(t=Math.min(o,t),n=Math.max(o,n)),isNaN(s)||(r=Math.min(s,r),i=Math.max(s,i))}return[[t,r],[n,i]]}function z1(e,t){var r=F1(e),n=r[0],i=r[1],a=F1(t),o=a[0],s=a[1];return Math.max(Math.abs(n[0]-o[0]),Math.abs(n[1]-o[1]),Math.abs(i[0]-s[0]),Math.abs(i[1]-s[1]))}function V1(e){return $t(e)?e:e?.5:0}function QI(e,t,r){if(!r.valueDim)return[];for(var n=t.count(),i=Hr(n*2),a=0;a<n;a++){var o=N1(r,e,t,a);i[a*2]=o[0],i[a*2+1]=o[1]}return i}function xn(e,t,r,n,i){var a=r.getBaseAxis(),o=a.dim==="x"||a.dim==="radius"?0:1,s=[],l=0,u=[],f=[],c=[],d=[];if(i){for(l=0;l<e.length;l+=2){var h=t||e;!isNaN(h[l])&&!isNaN(h[l+1])&&d.push(e[l],e[l+1])}e=d}for(l=0;l<e.length-2;l+=2)switch(c[0]=e[l+2],c[1]=e[l+3],f[0]=e[l],f[1]=e[l+1],s.push(f[0],f[1]),n){case"end":u[o]=c[o],u[1-o]=f[1-o],s.push(u[0],u[1]);break;case"middle":var v=(f[o]+c[o])/2,g=[];u[o]=g[o]=v,u[1-o]=f[1-o],g[1-o]=c[1-o],s.push(u[0],u[1]),s.push(g[0],g[1]);break;default:u[o]=f[o],u[1-o]=c[1-o],s.push(u[0],u[1])}return s.push(e[l++],e[l++]),s}function KI(e,t){var r=[],n=e.length,i,a;function o(f,c,d){var h=f.coord,v=(d-h)/(c.coord-h),g=Bw(v,[f.color,c.color]);return{coord:d,color:g}}for(var s=0;s<n;s++){var l=e[s],u=l.coord;if(u<0)i=l;else if(u>t){a?r.push(o(a,l,t)):i&&r.push(o(i,l,0),o(i,l,t));break}else i&&(r.push(o(i,l,0)),i=null),r.push(l),a=l}return r}function JI(e,t,r){var n=e.getVisual("visualMeta");if(!(!n||!n.length||!e.count())){if(t.type!=="cartesian2d"){process.env.NODE_ENV!=="production"&&console.warn("Visual map on line style is only supported on cartesian2d.");return}for(var i,a,o=n.length-1;o>=0;o--){var s=e.getDimensionInfo(n[o].dimension);if(i=s&&s.coordDim,i==="x"||i==="y"){a=n[o];break}}if(!a){process.env.NODE_ENV!=="production"&&console.warn("Visual map on line style only support x or y dimension.");return}var l=t.getAxis(i),u=ft(a.stops,function(_){return{coord:l.toGlobalCoord(l.dataToCoord(_.value)),color:_.color}}),f=u.length,c=a.outerColors.slice();f&&u[0].coord>u[f-1].coord&&(u.reverse(),c.reverse());var d=KI(u,i==="x"?r.getWidth():r.getHeight()),h=d.length;if(!h&&f)return u[0].coord<0?c[1]?c[1]:u[f-1].color:c[0]?c[0]:u[0].color;var v=10,g=d[0].coord-v,m=d[h-1].coord+v,p=m-g;if(p<.001)return"transparent";O(d,function(_){_.offset=(_.coord-g)/p}),d.push({offset:h?d[h-1].offset:.5,color:c[1]||"transparent"}),d.unshift({offset:h?d[0].offset:.5,color:c[0]||"transparent"});var y=new S0(0,0,0,0,d,!0);return y[i]=g,y[i+"2"]=m,y}}function tk(e,t,r){var n=e.get("showAllSymbol"),i=n==="auto";if(!(n&&!i)){var a=r.getAxesByScale("ordinal")[0];if(a&&!(i&&ek(a,t))){var o=t.mapDimension(a.dim),s={};return O(a.getViewLabels(),function(l){var u=a.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(t.get(o,l))}}}}function ek(e,t){var r=e.getExtent(),n=Math.abs(r[1]-r[0])/e.scale.count();isNaN(n)&&(n=0);for(var i=t.count(),a=Math.max(1,Math.round(i/5)),o=0;o<i;o+=a)if(Ad.getSymbolSize(t,o)[e.isHorizontal()?1:0]*1.5>n)return!1;return!0}function rk(e,t){return isNaN(e)||isNaN(t)}function nk(e){for(var t=e.length/2;t>0&&rk(e[t*2-2],e[t*2-1]);t--);return t-1}function G1(e,t){return[e[t*2],e[t*2+1]]}function ik(e,t,r){for(var n=e.length/2,i=r==="x"?0:1,a,o,s=0,l=-1,u=0;u<n;u++)if(o=e[u*2+i],!(isNaN(o)||isNaN(e[u*2+1-i]))){if(u===0){a=o;continue}if(a<=t&&o>=t||a>=t&&o<=t){l=u;break}s=u,a=o}return{range:[s,l],t:(t-a)/(o-a)}}function H1(e){if(e.get(["endLabel","show"]))return!0;for(var t=0;t<Ue.length;t++)if(e.get([Ue[t],"endLabel","show"]))return!0;return!1}function Dd(e,t,r,n){if(Md(t,"cartesian2d")){var i=n.getModel("endLabel"),a=i.get("valueAnimation"),o=n.getData(),s={lastFrameIndex:0},l=H1(n)?function(h,v){e._endLabelOnDuring(h,v,o,s,a,i,t)}:null,u=t.getBaseAxis().isHorizontal(),f=O1(t,r,n,function(){var h=e._endLabel;h&&r&&s.originalX!=null&&h.attr({x:s.originalX,y:s.originalY})},l);if(!n.get("clip",!0)){var c=f.shape,d=Math.max(c.width,c.height);u?(c.y-=d,c.height+=d*2):(c.x-=d,c.width+=d*2)}return l&&l(1,f),f}else return process.env.NODE_ENV!=="production"&&n.get(["endLabel","show"])&&console.warn("endLabel is not supported for lines in polar systems."),R1(t,r,n)}function ak(e,t){var r=t.getBaseAxis(),n=r.isHorizontal(),i=r.inverse,a=n?i?"right":"left":"center",o=n?"middle":i?"top":"bottom";return{normal:{align:e.get("align")||a,verticalAlign:e.get("verticalAlign")||o}}}var ok=(function(e){it(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(){var r=new ne,n=new k1;this.group.add(n.group),this._symbolDraw=n,this._lineGroup=r,this._changePolyState=Ft(this._changePolyState,this)},t.prototype.render=function(r,n,i){var a=r.coordinateSystem,o=this.group,s=r.getData(),l=r.getModel("lineStyle"),u=r.getModel("areaStyle"),f=s.getLayout("points")||[],c=a.type==="polar",d=this._coordSys,h=this._symbolDraw,v=this._polyline,g=this._polygon,m=this._lineGroup,p=!n.ssr&&r.get("animation"),y=!u.isEmpty(),_=u.get("origin"),b=P1(a,s,_),x=y&&QI(a,s,b),w=r.get("showSymbol"),S=r.get("connectNulls"),L=w&&!c&&tk(r,s,a),C=this._data;C&&C.eachItemGraphicEl(function(Q,bt){Q.__temp&&(o.remove(Q),C.setItemGraphicEl(bt,null))}),w||h.remove(),o.add(m);var D=c?!1:r.get("step"),I;a&&a.getArea&&r.get("clip",!0)&&(I=a.getArea(),I.width!=null?(I.x-=.1,I.y-=.1,I.width+=.2,I.height+=.2):I.r0&&(I.r0-=.5,I.r+=.5)),this._clipShapeForSymbol=I;var A=JI(s,a,i)||s.getVisual("style")[s.getVisual("drawType")];if(!(v&&d.type===a.type&&D===this._step))w&&h.updateData(s,{isIgnore:L,clipShape:I,disableAnimation:!0,getSymbolPoint:function(Q){return[f[Q*2],f[Q*2+1]]}}),p&&this._initSymbolLabelAnimation(s,a,I),D&&(x&&(x=xn(x,f,a,D,S)),f=xn(f,null,a,D,S)),v=this._newPolyline(f),y?g=this._newPolygon(f,x):g&&(m.remove(g),g=this._polygon=null),c||this._initOrUpdateEndLabel(r,a,Kn(A)),m.setClipPath(Dd(this,a,!0,r));else{y&&!g?g=this._newPolygon(f,x):g&&!y&&(m.remove(g),g=this._polygon=null),c||this._initOrUpdateEndLabel(r,a,Kn(A));var M=m.getClipPath();if(M){var T=Dd(this,a,!1,r);We(M,{shape:T.shape},r)}else m.setClipPath(Dd(this,a,!0,r));w&&h.updateData(s,{isIgnore:L,clipShape:I,disableAnimation:!0,getSymbolPoint:function(Q){return[f[Q*2],f[Q*2+1]]}}),(!B1(this._stackedOnPoints,x)||!B1(this._points,f))&&(p?this._doUpdateAnimation(s,x,a,i,D,_,S):(D&&(x&&(x=xn(x,f,a,D,S)),f=xn(f,null,a,D,S)),v.setShape({points:f}),g&&g.setShape({points:f,stackedOnPoints:x})))}var k=r.getModel("emphasis"),R=k.get("focus"),z=k.get("blurScope"),H=k.get("disabled");if(v.useStyle(Bt(l.getLineStyle(),{fill:"none",stroke:A,lineJoin:"bevel"})),Ys(v,r,"lineStyle"),v.style.lineWidth>0&&r.get(["emphasis","lineStyle","width"])==="bolder"){var V=v.getState("emphasis").style;V.lineWidth=+v.style.lineWidth+1}Lt(v).seriesIndex=r.seriesIndex,Fa(v,R,z,H);var Z=V1(r.get("smooth")),B=r.get("smoothMonotone");if(v.setShape({smooth:Z,smoothMonotone:B,connectNulls:S}),g){var $=s.getCalculationInfo("stackedOnSeries"),X=0;g.useStyle(Bt(u.getAreaStyle(),{fill:A,opacity:.7,lineJoin:"bevel",decal:s.getVisual("style").decal})),$&&(X=V1($.get("smooth"))),g.setShape({smooth:Z,stackedOnSmooth:X,smoothMonotone:B,connectNulls:S}),Ys(g,r,"areaStyle"),Lt(g).seriesIndex=r.seriesIndex,Fa(g,R,z,H)}var j=this._changePolyState;s.eachItemGraphicEl(function(Q){Q&&(Q.onHoverStateChange=j)}),this._polyline.onHoverStateChange=j,this._data=s,this._coordSys=a,this._stackedOnPoints=x,this._points=f,this._step=D,this._valueOrigin=_,r.get("triggerLineEvent")&&(this.packEventData(r,v),g&&this.packEventData(r,g))},t.prototype.packEventData=function(r,n){Lt(n).eventData={componentType:"series",componentSubType:"line",componentIndex:r.componentIndex,seriesIndex:r.seriesIndex,seriesName:r.name,seriesType:"line"}},t.prototype.highlight=function(r,n,i,a){var o=r.getData(),s=On(o,a);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var l=o.getLayout("points"),u=o.getItemGraphicEl(s);if(!u){var f=l[s*2],c=l[s*2+1];if(isNaN(f)||isNaN(c)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(f,c))return;var d=r.get("zlevel")||0,h=r.get("z")||0;u=new Ad(o,s),u.x=f,u.y=c,u.setZ(d,h);var v=u.getSymbolPath().getTextContent();v&&(v.zlevel=d,v.z=h,v.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else Ne.prototype.highlight.call(this,r,n,i,a)},t.prototype.downplay=function(r,n,i,a){var o=r.getData(),s=On(o,a);if(this._changePolyState("normal"),s!=null&&s>=0){var l=o.getItemGraphicEl(s);l&&(l.__temp?(o.setItemGraphicEl(s,null),this.group.remove(l)):l.downplay())}else Ne.prototype.downplay.call(this,r,n,i,a)},t.prototype._changePolyState=function(r){var n=this._polygon;jg(this._polyline,r),n&&jg(n,r)},t.prototype._newPolyline=function(r){var n=this._polyline;return n&&this._lineGroup.remove(n),n=new YI({shape:{points:r},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(n),this._polyline=n,n},t.prototype._newPolygon=function(r,n){var i=this._polygon;return i&&this._lineGroup.remove(i),i=new qI({shape:{points:r,stackedOnPoints:n},segmentIgnoreThreshold:2}),this._lineGroup.add(i),this._polygon=i,i},t.prototype._initSymbolLabelAnimation=function(r,n,i){var a,o,s=n.getBaseAxis(),l=s.inverse;n.type==="cartesian2d"?(a=s.isHorizontal(),o=!1):n.type==="polar"&&(a=s.dim==="angle",o=!0);var u=r.hostModel,f=u.get("animationDuration");_t(f)&&(f=f(null));var c=u.get("animationDelay")||0,d=_t(c)?c(null):c;r.eachItemGraphicEl(function(h,v){var g=h;if(g){var m=[h.x,h.y],p=void 0,y=void 0,_=void 0;if(i)if(o){var b=i,x=n.pointToCoord(m);a?(p=b.startAngle,y=b.endAngle,_=-x[1]/180*Math.PI):(p=b.r0,y=b.r,_=x[0])}else{var w=i;a?(p=w.x,y=w.x+w.width,_=h.x):(p=w.y+w.height,y=w.y,_=h.y)}var S=y===p?0:(_-p)/(y-p);l&&(S=1-S);var L=_t(c)?c(v):f*S+d,C=g.getSymbolPath(),D=C.getTextContent();g.attr({scaleX:0,scaleY:0}),g.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:L}),D&&D.animateFrom({style:{opacity:0}},{duration:300,delay:L}),C.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(r,n,i){var a=r.getModel("endLabel");if(H1(r)){var o=r.getData(),s=this._polyline,l=o.getLayout("points");if(!l){s.removeTextContent(),this._endLabel=null;return}var u=this._endLabel;u||(u=this._endLabel=new fe({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var f=nk(l);f>=0&&(Xa(s,qa(r,"endLabel"),{inheritColor:i,labelFetcher:r,labelDataIndex:f,defaultText:function(c,d,h){return h!=null?M1(o,h):Cd(o,c)},enableTextSetter:!0},ak(a,n)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(r,n,i,a,o,s,l){var u=this._endLabel,f=this._polyline;if(u){r<1&&a.originalX==null&&(a.originalX=u.x,a.originalY=u.y);var c=i.getLayout("points"),d=i.hostModel,h=d.get("connectNulls"),v=s.get("precision"),g=s.get("distance")||0,m=l.getBaseAxis(),p=m.isHorizontal(),y=m.inverse,_=n.shape,b=y?p?_.x:_.y+_.height:p?_.x+_.width:_.y,x=(p?g:0)*(y?-1:1),w=(p?0:-g)*(y?-1:1),S=p?"x":"y",L=ik(c,b,S),C=L.range,D=C[1]-C[0],I=void 0;if(D>=1){if(D>1&&!h){var A=G1(c,C[0]);u.attr({x:A[0]+x,y:A[1]+w}),o&&(I=d.getRawValue(C[0]))}else{var A=f.getPointOn(b,S);A&&u.attr({x:A[0]+x,y:A[1]+w});var M=d.getRawValue(C[0]),T=d.getRawValue(C[1]);o&&(I=G2(i,v,M,T,L.t))}a.lastFrameIndex=C[0]}else{var k=r===1||a.lastFrameIndex>0?C[0]:0,A=G1(c,k);o&&(I=d.getRawValue(k)),u.attr({x:A[0]+x,y:A[1]+w})}if(o){var R=ll(u);typeof R.setLabelText=="function"&&R.setLabelText(I)}}},t.prototype._doUpdateAnimation=function(r,n,i,a,o,s,l){var u=this._polyline,f=this._polygon,c=r.hostModel,d=ZI(this._data,r,this._stackedOnPoints,n,this._coordSys,i,this._valueOrigin),h=d.current,v=d.stackedOnCurrent,g=d.next,m=d.stackedOnNext;if(o&&(v=xn(d.stackedOnCurrent,d.current,i,o,l),h=xn(d.current,null,i,o,l),m=xn(d.stackedOnNext,d.next,i,o,l),g=xn(d.next,null,i,o,l)),z1(h,g)>3e3||f&&z1(v,m)>3e3){u.stopAnimation(),u.setShape({points:g}),f&&(f.stopAnimation(),f.setShape({points:g,stackedOnPoints:m}));return}u.shape.__points=d.current,u.shape.points=h;var p={shape:{points:g}};d.current!==h&&(p.shape.__points=d.next),u.stopAnimation(),we(u,p,c),f&&(f.setShape({points:h,stackedOnPoints:v}),f.stopAnimation(),we(f,{shape:{stackedOnPoints:m}},c),u.shape.points!==f.shape.points&&(f.shape.points=u.shape.points));for(var y=[],_=d.status,b=0;b<_.length;b++){var x=_[b].cmd;if(x==="="){var w=r.getItemGraphicEl(_[b].idx1);w&&y.push({el:w,ptIdx:b})}}u.animators&&u.animators.length&&u.animators[0].during(function(){f&&f.dirtyShape();for(var S=u.shape.__points,L=0;L<y.length;L++){var C=y[L].el,D=y[L].ptIdx*2;C.x=S[D],C.y=S[D+1],C.markRedraw()}})},t.prototype.remove=function(r){var n=this.group,i=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),i&&i.eachItemGraphicEl(function(a,o){a.__temp&&(n.remove(a),i.setItemGraphicEl(o,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},t.type="line",t})(Ne);function Id(e,t){return{seriesType:e,plan:Ah(),reset:function(r){var n=r.getData(),i=r.coordinateSystem,a=r.pipelineContext,o=t||a.large;if(i){var s=ft(i.dimensions,function(h){return n.mapDimension(h)}).slice(0,2),l=s.length,u=n.getCalculationInfo("stackResultDimension");ra(n,s[0])&&(s[0]=u),ra(n,s[1])&&(s[1]=u);var f=n.getStore(),c=n.getDimensionIndex(s[0]),d=n.getDimensionIndex(s[1]);return l&&{progress:function(h,v){for(var g=h.end-h.start,m=o&&Hr(g*l),p=[],y=[],_=h.start,b=0;_<h.end;_++){var x=void 0;if(l===1){var w=f.get(c,_);x=i.dataToPoint(w,null,y)}else p[0]=f.get(c,_),p[1]=f.get(d,_),x=i.dataToPoint(p,null,y);o?(m[b++]=x[0],m[b++]=x[1]):v.setItemLayout(_,x.slice())}o&&v.setLayout("points",m)}}}}}}var sk={average:function(e){for(var t=0,r=0,n=0;n<e.length;n++)isNaN(e[n])||(t+=e[n],r++);return r===0?NaN:t/r},sum:function(e){for(var t=0,r=0;r<e.length;r++)t+=e[r]||0;return t},max:function(e){for(var t=-1/0,r=0;r<e.length;r++)e[r]>t&&(t=e[r]);return isFinite(t)?t:NaN},min:function(e){for(var t=1/0,r=0;r<e.length;r++)e[r]<t&&(t=e[r]);return isFinite(t)?t:NaN},nearest:function(e){return e[0]}},lk=function(e){return Math.round(e.length/2)};function U1(e){return{seriesType:e,reset:function(t,r,n){var i=t.getData(),a=t.get("sampling"),o=t.coordinateSystem,s=i.count();if(s>10&&o.type==="cartesian2d"&&a){var l=o.getBaseAxis(),u=o.getOtherAxis(l),f=l.getExtent(),c=n.getDevicePixelRatio(),d=Math.abs(f[1]-f[0])*(c||1),h=Math.round(s/d);if(isFinite(h)&&h>1){a==="lttb"?t.setData(i.lttbDownSample(i.mapDimension(u.dim),1/h)):a==="minmax"&&t.setData(i.minmaxDownSample(i.mapDimension(u.dim),1/h));var v=void 0;ut(a)?v=sk[a]:_t(a)&&(v=a),v&&t.setData(i.downSample(i.mapDimension(u.dim),1/h,v,lk))}}}}}function uk(e){e.registerChartView(ok),e.registerSeriesModel(GI),e.registerLayout(Id("line",!0)),e.registerVisual({seriesType:"line",reset:function(t){var r=t.getData(),n=t.getModel("lineStyle").getLineStyle();n&&!n.stroke&&(n.stroke=r.getVisual("style").fill),r.setVisual("legendLineStyle",n)}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,U1("line"))}var kd=(function(e){it(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.getInitialData=function(r,n){return Yl(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(r,n,i){var a=this.coordinateSystem;if(a&&a.clampData){var o=a.clampData(r),s=a.dataToPoint(o);if(i)O(a.getAxes(),function(d,h){if(d.type==="category"&&n!=null){var v=d.getTicksCoords(),g=d.getTickModel().get("alignWithLabel"),m=o[h],p=n[h]==="x1"||n[h]==="y1";if(p&&!g&&(m+=1),v.length<2)return;if(v.length===2){s[h]=d.toGlobalCoord(d.getExtent()[p?1:0]);return}for(var y=void 0,_=void 0,b=1,x=0;x<v.length;x++){var w=v[x].coord,S=x===v.length-1?v[x-1].tickValue+b:v[x].tickValue;if(S===m){_=w;break}else if(S<m)y=w;else if(y!=null&&S>m){_=(w+y)/2;break}x===1&&(b=S-v[0].tickValue)}_==null&&(y?y&&(_=v[v.length-1].coord):_=v[0].coord),s[h]=d.toGlobalCoord(_)}});else{var l=this.getData(),u=l.getLayout("offset"),f=l.getLayout("size"),c=a.getBaseAxis().isHorizontal()?0:1;s[c]+=u+f/2}return s}return[NaN,NaN]},t.type="series.__base_bar__",t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod",defaultBarGap:"10%"},t})(je);je.registerClass(kd);var fk=(function(e){it(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.getInitialData=function(){return Yl(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},t.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},t.prototype.getProgressiveThreshold=function(){var r=this.get("progressiveThreshold"),n=this.get("largeThreshold");return n>r&&(r=n),r},t.prototype.brushSelector=function(r,n,i){return i.rect(n.getItemLayout(r))},t.type="series.bar",t.dependencies=["grid","polar"],t.defaultOption=G0(kd.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:dt.color.primary,borderWidth:2}},realtimeSort:!1}),t})(kd),ck=(function(){function e(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return e})(),W1=(function(e){it(t,e);function t(r){var n=e.call(this,r)||this;return n.type="sausage",n}return t.prototype.getDefaultShape=function(){return new ck},t.prototype.buildPath=function(r,n){var i=n.cx,a=n.cy,o=Math.max(n.r0||0,0),s=Math.max(n.r,0),l=(s-o)*.5,u=o+l,f=n.startAngle,c=n.endAngle,d=n.clockwise,h=Math.PI*2,v=d?c-f<h:f-c<h;v||(f=c-(d?h:-h));var g=Math.cos(f),m=Math.sin(f),p=Math.cos(c),y=Math.sin(c);v?(r.moveTo(g*o+i,m*o+a),r.arc(g*u+i,m*u+a,l,-Math.PI+f,f,!d)):r.moveTo(g*s+i,m*s+a),r.arc(i,a,s,f,c,!d),r.arc(p*u+i,y*u+a,l,c-Math.PI*2,c-Math.PI,!d),o!==0&&r.arc(i,a,o,c,f,d)},t})(It);function hk(e,t){t=t||{};var r=t.isRoundCap;return function(n,i,a){var o=i.position;if(!o||o instanceof Array)return xs(n,i,a);var s=e(o),l=i.distance!=null?i.distance:5,u=this.shape,f=u.cx,c=u.cy,d=u.r,h=u.r0,v=(d+h)/2,g=u.startAngle,m=u.endAngle,p=(g+m)/2,y=r?Math.abs(d-h)/2:0,_=Math.cos,b=Math.sin,x=f+d*_(g),w=c+d*b(g),S="left",L="top";switch(s){case"startArc":x=f+(h-l)*_(p),w=c+(h-l)*b(p),S="center",L="top";break;case"insideStartArc":x=f+(h+l)*_(p),w=c+(h+l)*b(p),S="center",L="bottom";break;case"startAngle":x=f+v*_(g)+au(g,l+y,!1),w=c+v*b(g)+ou(g,l+y,!1),S="right",L="middle";break;case"insideStartAngle":x=f+v*_(g)+au(g,-l+y,!1),w=c+v*b(g)+ou(g,-l+y,!1),S="left",L="middle";break;case"middle":x=f+v*_(p),w=c+v*b(p),S="center",L="middle";break;case"endArc":x=f+(d+l)*_(p),w=c+(d+l)*b(p),S="center",L="bottom";break;case"insideEndArc":x=f+(d-l)*_(p),w=c+(d-l)*b(p),S="center",L="top";break;case"endAngle":x=f+v*_(m)+au(m,l+y,!0),w=c+v*b(m)+ou(m,l+y,!0),S="left",L="middle";break;case"insideEndAngle":x=f+v*_(m)+au(m,-l+y,!0),w=c+v*b(m)+ou(m,-l+y,!0),S="right",L="middle";break;default:return xs(n,i,a)}return n=n||{},n.x=x,n.y=w,n.align=S,n.verticalAlign=L,n}}function dk(e,t,r,n){if($t(n)){e.setTextConfig({rotation:n});return}else if(st(t)){e.setTextConfig({rotation:0});return}var i=e.shape,a=i.clockwise?i.startAngle:i.endAngle,o=i.clockwise?i.endAngle:i.startAngle,s=(a+o)/2,l,u=r(t);switch(u){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":l=s;break;case"startAngle":case"insideStartAngle":l=a;break;case"endAngle":case"insideEndAngle":l=o;break;default:e.setTextConfig({rotation:0});return}var f=Math.PI*1.5-l;u==="middle"&&f>Math.PI/2&&f<Math.PI*1.5&&(f-=Math.PI),e.setTextConfig({rotation:f})}function au(e,t,r){return t*Math.sin(e)*(r?-1:1)}function ou(e,t,r){return t*Math.cos(e)*(r?1:-1)}function Eo(e,t,r){var n=e.get("borderRadius");if(n==null)return r?{cornerRadius:0}:null;st(n)||(n=[n,n,n,n]);var i=Math.abs(t.r||0-t.r0||0);return{cornerRadius:ft(n,function(a){return tn(a,i)})}}var Pd=Math.max,Nd=Math.min;function vk(e,t){var r=e.getArea&&e.getArea();if(Md(e,"cartesian2d")){var n=e.getBaseAxis();if(n.type!=="category"||!n.onBand){var i=t.getLayout("bandWidth");n.isHorizontal()?(r.x-=i,r.width+=i*2):(r.y-=i,r.height+=i*2)}}return r}var pk=(function(e){it(t,e);function t(){var r=e.call(this)||this;return r.type=t.type,r._isFirstFrame=!0,r}return t.prototype.render=function(r,n,i,a){this._model=r,this._removeOnRenderedListener(i),this._updateDrawMode(r);var o=r.get("coordinateSystem");o==="cartesian2d"||o==="polar"?(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(r,n,i):this._renderNormal(r,n,i,a)):process.env.NODE_ENV!=="production"&&de("Only cartesian2d and polar supported for bar.")},t.prototype.incrementalPrepareRender=function(r){this._clear(),this._updateDrawMode(r),this._updateLargeClip(r)},t.prototype.incrementalRender=function(r,n){this._progressiveEls=[],this._incrementalRenderLarge(r,n)},t.prototype.eachRendered=function(r){al(this._progressiveEls||this.group,r)},t.prototype._updateDrawMode=function(r){var n=r.pipelineContext.large;(this._isLargeDraw==null||n!==this._isLargeDraw)&&(this._isLargeDraw=n,this._clear())},t.prototype._renderNormal=function(r,n,i,a){var o=this.group,s=r.getData(),l=this._data,u=r.coordinateSystem,f=u.getBaseAxis(),c;u.type==="cartesian2d"?c=f.isHorizontal():u.type==="polar"&&(c=f.dim==="angle");var d=r.isAnimationEnabled()?r:null,h=gk(r,u);h&&this._enableRealtimeSort(h,s,i);var v=r.get("clip",!0)||h,g=vk(u,s);o.removeClipPath();var m=r.get("roundCap",!0),p=r.get("showBackground",!0),y=r.getModel("backgroundStyle"),_=y.get("borderRadius")||0,b=[],x=this._backgroundEls,w=a&&a.isInitSort,S=a&&a.type==="changeAxisOrder";function L(I){var A=su[u.type](s,I);if(!A)return null;var M=wk(u,c,A);return M.useStyle(y.getItemStyle()),u.type==="cartesian2d"?M.setShape("r",_):M.setShape("cornerRadius",_),b[I]=M,M}s.diff(l).add(function(I){var A=s.getItemModel(I),M=su[u.type](s,I,A);if(M&&(p&&L(I),!(!s.hasValue(I)||!j1[u.type](M)))){var T=!1;v&&(T=Z1[u.type](g,M));var k=Y1[u.type](r,s,I,M,c,d,f.model,!1,m);h&&(k.forceLabelAnimation=!0),K1(k,s,I,A,M,r,c,u.type==="polar"),w?k.attr({shape:M}):h?X1(h,d,k,M,I,c,!1,!1):We(k,{shape:M},r,I),s.setItemGraphicEl(I,k),o.add(k),k.ignore=T}}).update(function(I,A){var M=s.getItemModel(I),T=su[u.type](s,I,M);if(T){if(p){var k=void 0;x.length===0?k=L(A):(k=x[A],k.useStyle(y.getItemStyle()),u.type==="cartesian2d"?k.setShape("r",_):k.setShape("cornerRadius",_),b[I]=k);var R=su[u.type](s,I),z=rb(c,R,u);we(k,{shape:z},d,I)}var H=l.getItemGraphicEl(A);if(!s.hasValue(I)||!j1[u.type](T)){o.remove(H);return}var V=!1;v&&(V=Z1[u.type](g,T),V&&o.remove(H));var Z=H&&(H.type==="sector"&&m||H.type==="sausage"&&!m);if(Z&&(H&&Wa(H,r,A),H=null),H?Nc(H):H=Y1[u.type](r,s,I,T,c,d,f.model,!0,m),h&&(H.forceLabelAnimation=!0),S){var B=H.getTextContent();if(B){var $=ll(B);$.prevValue!=null&&($.prevValue=$.value)}}else K1(H,s,I,M,T,r,c,u.type==="polar");w?H.attr({shape:T}):h?X1(h,d,H,T,I,c,!0,S):we(H,{shape:T},r,I,null),s.setItemGraphicEl(I,H),H.ignore=V,o.add(H)}}).remove(function(I){var A=l.getItemGraphicEl(I);A&&Wa(A,r,I)}).execute();var C=this._backgroundGroup||(this._backgroundGroup=new ne);C.removeAll();for(var D=0;D<b.length;++D)C.add(b[D]);o.add(C),this._backgroundEls=b,this._data=s},t.prototype._renderLarge=function(r,n,i){this._clear(),tb(r,this.group),this._updateLargeClip(r)},t.prototype._incrementalRenderLarge=function(r,n){this._removeBackground(),tb(n,this.group,this._progressiveEls,!0)},t.prototype._updateLargeClip=function(r){var n=r.get("clip",!0)&&jI(r.coordinateSystem,!1,r),i=this.group;n?i.setClipPath(n):i.removeClipPath()},t.prototype._enableRealtimeSort=function(r,n,i){var a=this;if(n.count()){var o=r.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(n,r,i),this._isFirstFrame=!1;else{var s=function(l){var u=n.getItemGraphicEl(l),f=u&&u.shape;return f&&Math.abs(o.isHorizontal()?f.height:f.width)||0};this._onRendered=function(){a._updateSortWithinSameData(n,s,o,i)},i.getZr().on("rendered",this._onRendered)}}},t.prototype._dataSort=function(r,n,i){var a=[];return r.each(r.mapDimension(n.dim),function(o,s){var l=i(s);l=l??NaN,a.push({dataIndex:s,mappedValue:l,ordinalNumber:o})}),a.sort(function(o,s){return s.mappedValue-o.mappedValue}),{ordinalNumbers:ft(a,function(o){return o.ordinalNumber})}},t.prototype._isOrderChangedWithinSameData=function(r,n,i){for(var a=i.scale,o=r.mapDimension(i.dim),s=Number.MAX_VALUE,l=0,u=a.getOrdinalMeta().categories.length;l<u;++l){var f=r.rawIndexOf(o,a.getRawOrdinalNumber(l)),c=f<0?Number.MIN_VALUE:n(r.indexOfRawIndex(f));if(c>s)return!0;s=c}return!1},t.prototype._isOrderDifferentInView=function(r,n){for(var i=n.scale,a=i.getExtent(),o=Math.max(0,a[0]),s=Math.min(a[1],i.getOrdinalMeta().categories.length-1);o<=s;++o)if(r.ordinalNumbers[o]!==i.getRawOrdinalNumber(o))return!0},t.prototype._updateSortWithinSameData=function(r,n,i,a){if(this._isOrderChangedWithinSameData(r,n,i)){var o=this._dataSort(r,i,n);this._isOrderDifferentInView(o,i)&&(this._removeOnRenderedListener(a),a.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",axisId:i.index,sortInfo:o}))}},t.prototype._dispatchInitSort=function(r,n,i){var a=n.baseAxis,o=this._dataSort(r,a,function(s){return r.get(r.mapDimension(n.otherAxis.dim),s)});i.dispatchAction({type:"changeAxisOrder",componentType:a.dim+"Axis",isInitSort:!0,axisId:a.index,sortInfo:o})},t.prototype.remove=function(r,n){this._clear(this._model),this._removeOnRenderedListener(n)},t.prototype.dispose=function(r,n){this._removeOnRenderedListener(n)},t.prototype._removeOnRenderedListener=function(r){this._onRendered&&(r.getZr().off("rendered",this._onRendered),this._onRendered=null)},t.prototype._clear=function(r){var n=this.group,i=this._data;r&&r.isAnimationEnabled()&&i&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],i.eachItemGraphicEl(function(a){Wa(a,r,Lt(a).dataIndex)})):n.removeAll(),this._data=null,this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type="bar",t})(Ne),Z1={cartesian2d:function(e,t){var r=t.width<0?-1:1,n=t.height<0?-1:1;r<0&&(t.x+=t.width,t.width=-t.width),n<0&&(t.y+=t.height,t.height=-t.height);var i=e.x+e.width,a=e.y+e.height,o=Pd(t.x,e.x),s=Nd(t.x+t.width,i),l=Pd(t.y,e.y),u=Nd(t.y+t.height,a),f=s<o,c=u<l;return t.x=f&&o>i?s:o,t.y=c&&l>a?u:l,t.width=f?0:s-o,t.height=c?0:u-l,r<0&&(t.x+=t.width,t.width=-t.width),n<0&&(t.y+=t.height,t.height=-t.height),f||c},polar:function(e,t){var r=t.r0<=t.r?1:-1;if(r<0){var n=t.r;t.r=t.r0,t.r0=n}var i=Nd(t.r,e.r),a=Pd(t.r0,e.r0);t.r=i,t.r0=a;var o=i-a<0;if(r<0){var n=t.r;t.r=t.r0,t.r0=n}return o}},Y1={cartesian2d:function(e,t,r,n,i,a,o,s,l){var u=new qt({shape:et({},n),z2:1});if(u.__dataIndex=r,u.name="item",a){var f=u.shape,c=i?"height":"width";f[c]=0}return u},polar:function(e,t,r,n,i,a,o,s,l){var u=!i&&l?W1:on,f=new u({shape:n,z2:1});f.name="item";var c=Q1(i);if(f.calculateTextPosition=hk(c,{isRoundCap:u===W1}),a){var d=f.shape,h=i?"r":"endAngle",v={};d[h]=i?n.r0:n.startAngle,v[h]=n[h],(s?we:We)(f,{shape:v},a)}return f}};function gk(e,t){var r=e.get("realtimeSort",!0),n=t.getBaseAxis();if(process.env.NODE_ENV!=="production"&&r&&(n.type!=="category"&&de("`realtimeSort` will not work because this bar series is not based on a category axis."),t.type!=="cartesian2d"&&de("`realtimeSort` will not work because this bar series is not on cartesian2d.")),r&&n.type==="category"&&t.type==="cartesian2d")return{baseAxis:n,otherAxis:t.getOtherAxis(n)}}function X1(e,t,r,n,i,a,o,s){var l,u;a?(u={x:n.x,width:n.width},l={y:n.y,height:n.height}):(u={y:n.y,height:n.height},l={x:n.x,width:n.width}),s||(o?we:We)(r,{shape:l},t,i,null);var f=t?e.baseAxis.model:null;(o?we:We)(r,{shape:u},f,i)}function q1(e,t){for(var r=0;r<t.length;r++)if(!isFinite(e[t[r]]))return!0;return!1}var mk=["x","y","width","height"],yk=["cx","cy","r","startAngle","endAngle"],j1={cartesian2d:function(e){return!q1(e,mk)},polar:function(e){return!q1(e,yk)}},su={cartesian2d:function(e,t,r){var n=e.getItemLayout(t);if(!n)return null;var i=r?bk(r,n):0,a=n.width>0?1:-1,o=n.height>0?1:-1;return{x:n.x+a*i/2,y:n.y+o*i/2,width:n.width-a*i,height:n.height-o*i}},polar:function(e,t,r){var n=e.getItemLayout(t);return{cx:n.cx,cy:n.cy,r0:n.r0,r:n.r,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}}};function _k(e){return e.startAngle!=null&&e.endAngle!=null&&e.startAngle===e.endAngle}function Q1(e){return(function(t){var r=t?"Arc":"Angle";return function(n){switch(n){case"start":case"insideStart":case"end":case"insideEnd":return n+r;default:return n}}})(e)}function K1(e,t,r,n,i,a,o,s){var l=t.getItemVisual(r,"style");if(s){if(!a.get("roundCap")){var f=e.shape,c=Eo(n.getModel("itemStyle"),f,!0);et(f,c),e.setShape(f)}}else{var u=n.get(["itemStyle","borderRadius"])||0;e.setShape("r",u)}e.useStyle(l);var d=n.getShallow("cursor");d&&e.attr("cursor",d);var h=s?o?i.r>=i.r0?"endArc":"startArc":i.endAngle>=i.startAngle?"endAngle":"startAngle":o?i.height>=0?"bottom":"top":i.width>=0?"right":"left",v=qa(n);Xa(e,v,{labelFetcher:a,labelDataIndex:r,defaultText:Cd(a.getData(),r),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:h});var g=e.getTextContent();if(s&&g){var m=n.get(["label","position"]);e.textConfig.inside=m==="middle"?!0:null,dk(e,m==="outside"?h:m,Q1(o),n.get(["label","rotate"]))}rA(g,v,a.getRawValue(r),function(y){return M1(t,y)});var p=n.getModel(["emphasis"]);Fa(e,p.get("focus"),p.get("blurScope"),p.get("disabled")),Ys(e,n),_k(i)&&(e.style.fill="none",e.style.stroke="none",O(e.states,function(y){y.style&&(y.style.fill=y.style.stroke="none")}))}function bk(e,t){var r=e.get(["itemStyle","borderColor"]);if(!r||r==="none")return 0;var n=e.get(["itemStyle","borderWidth"])||0,i=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),a=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(n,i,a)}var Sk=(function(){function e(){}return e})(),J1=(function(e){it(t,e);function t(r){var n=e.call(this,r)||this;return n.type="largeBar",n}return t.prototype.getDefaultShape=function(){return new Sk},t.prototype.buildPath=function(r,n){for(var i=n.points,a=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,f=0;f<i.length;f+=3)l[a]=u,l[o]=i[f+2],s[a]=i[f+a],s[o]=i[f+o],r.rect(s[0],s[1],l[0],l[1])},t})(It);function tb(e,t,r,n){var i=e.getData(),a=i.getLayout("valueAxisHorizontal")?1:0,o=i.getLayout("largeDataIndices"),s=i.getLayout("size"),l=e.getModel("backgroundStyle"),u=i.getLayout("largeBackgroundPoints");if(u){var f=new J1({shape:{points:u},incremental:!!n,silent:!0,z2:0});f.baseDimIdx=a,f.largeDataIndices=o,f.barWidth=s,f.useStyle(l.getItemStyle()),t.add(f),r&&r.push(f)}var c=new J1({shape:{points:i.getLayout("largePoints")},incremental:!!n,ignoreCoarsePointer:!0,z2:1});c.baseDimIdx=a,c.largeDataIndices=o,c.barWidth=s,t.add(c),c.useStyle(i.getVisual("style")),c.style.stroke=null,Lt(c).seriesIndex=e.seriesIndex,e.get("silent")||(c.on("mousedown",eb),c.on("mousemove",eb)),r&&r.push(c)}var eb=Eh(function(e){var t=this,r=xk(t,e.offsetX,e.offsetY);Lt(t).dataIndex=r>=0?r:null},30,!1);function xk(e,t,r){for(var n=e.baseDimIdx,i=1-n,a=e.shape.points,o=e.largeDataIndices,s=[],l=[],u=e.barWidth,f=0,c=a.length/3;f<c;f++){var d=f*3;if(l[n]=u,l[i]=a[d+2],s[n]=a[d+n],s[i]=a[d+i],l[i]<0&&(s[i]+=l[i],l[i]=-l[i]),t>=s[0]&&t<=s[0]+l[0]&&r>=s[1]&&r<=s[1]+l[1])return o[f]}return-1}function rb(e,t,r){if(Md(r,"cartesian2d")){var n=t,i=r.getArea();return{x:e?n.x:i.x,y:e?i.y:n.y,width:e?n.width:i.width,height:e?i.height:n.height}}else{var i=r.getArea(),a=t;return{cx:i.cx,cy:i.cy,r0:e?i.r0:a.r0,r:e?i.r:a.r,startAngle:e?a.startAngle:0,endAngle:e?a.endAngle:Math.PI*2}}}function wk(e,t,r){var n=e.type==="polar"?on:qt;return new n({shape:rb(t,r,e),silent:!0,z2:0})}function Tk(e){e.registerChartView(pk),e.registerSeriesModel(fk),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,Kt(vD,"bar")),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,pD("bar")),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,U1("bar")),e.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(t,r){var n=t.componentType||"series";r.eachComponent({mainType:n,query:t},function(i){t.sortInfo&&i.axis.setCategorySortInfo(t.sortInfo)})})}var nb=Math.PI*2,lu=Math.PI/180;function Ck(e,t,r){t.eachSeriesByType(e,function(n){var i=n.getData(),a=i.mapDimension("value"),o=OA(n,r),s=o.cx,l=o.cy,u=o.r,f=o.r0,c=o.viewRect,d=-n.get("startAngle")*lu,h=n.get("endAngle"),v=n.get("padAngle")*lu;h=h==="auto"?d-nb:-h*lu;var g=n.get("minAngle")*lu,m=g+v,p=0;i.each(a,function(z){!isNaN(z)&&p++});var y=i.getSum(a),_=Math.PI/(y||p)*2,b=n.get("clockwise"),x=n.get("roseType"),w=n.get("stillShowZeroSum"),S=i.getDataExtent(a);S[0]=0;var L=b?1:-1,C=[d,h],D=L*v/2;Eg(C,!b),d=C[0],h=C[1];var I=ib(n);I.startAngle=d,I.endAngle=h,I.clockwise=b,I.cx=s,I.cy=l,I.r=u,I.r0=f;var A=Math.abs(h-d),M=A,T=0,k=d;if(i.setLayout({viewRect:c,r:u}),i.each(a,function(z,H){var V;if(isNaN(z)){i.setItemLayout(H,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:b,cx:s,cy:l,r0:f,r:x?NaN:u});return}x!=="area"?V=y===0&&w?_:z*_:V=A/p,V<m?(V=m,M-=m):T+=z;var Z=k+L*V,B=0,$=0;v>V?(B=k+L*V/2,$=B):(B=k+D,$=Z-D),i.setItemLayout(H,{angle:V,startAngle:B,endAngle:$,clockwise:b,cx:s,cy:l,r0:f,r:x?Gf(z,S,[f,u]):u}),k=Z}),M<nb&&p)if(M<=.001){var R=A/p;i.each(a,function(z,H){if(!isNaN(z)){var V=i.getItemLayout(H);V.angle=R;var Z=0,B=0;R<v?(Z=d+L*(H+1/2)*R,B=Z):(Z=d+L*H*R+D,B=d+L*(H+1)*R-D),V.startAngle=Z,V.endAngle=B}})}else _=M/T,k=d,i.each(a,function(z,H){if(!isNaN(z)){var V=i.getItemLayout(H),Z=V.angle===m?m:z*_,B=0,$=0;Z<v?(B=k+L*Z/2,$=B):(B=k+D,$=k+L*Z-D),V.startAngle=B,V.endAngle=$,k+=L*Z}})})}var ib=Zt();function Ak(e){return{seriesType:e,reset:function(t,r){var n=r.findComponents({mainType:"legend"});if(!(!n||!n.length)){var i=t.getData();i.filterSelf(function(a){for(var o=i.getName(a),s=0;s<n.length;s++)if(!n[s].isSelected(o))return!1;return!0})}}}}var Ek=Math.PI/180;function ab(e,t,r,n,i,a,o,s,l,u){if(e.length<2)return;function f(g){for(var m=g.rB,p=m*m,y=0;y<g.list.length;y++){var _=g.list[y],b=Math.abs(_.label.y-r),x=n+_.len,w=x*x,S=Math.sqrt(Math.abs((1-b*b/p)*w)),L=t+(S+_.len2)*i,C=L-_.label.x,D=_.targetTextWidth-C*i;ob(_,D,!0),_.label.x=L}}function c(g){for(var m={list:[],maxY:0},p={list:[],maxY:0},y=0;y<g.length;y++)if(g[y].labelAlignTo==="none"){var _=g[y],b=_.label.y>r?p:m,x=Math.abs(_.label.y-r);if(x>=b.maxY){var w=_.label.x-t-_.len2*i,S=n+_.len,L=Math.abs(w)<S?Math.sqrt(x*x/(1-w*w/S/S)):S;b.rB=L,b.maxY=x}b.list.push(_)}f(m),f(p)}for(var d=e.length,h=0;h<d;h++)if(e[h].position==="outer"&&e[h].labelAlignTo==="labelLine"){var v=e[h].label.x-u;e[h].linePoints[1][0]+=v,e[h].label.x=u}oI(e,1,l,l+o)&&c(e)}function Lk(e,t,r,n,i,a,o,s){for(var l=[],u=[],f=Number.MAX_VALUE,c=-Number.MAX_VALUE,d=0;d<e.length;d++){var h=e[d].label;$d(e[d])||(h.x<t?(f=Math.min(f,h.x),l.push(e[d])):(c=Math.max(c,h.x),u.push(e[d])))}for(var d=0;d<e.length;d++){var v=e[d];if(!$d(v)&&v.linePoints){if(v.labelStyleWidth!=null)continue;var h=v.label,g=v.linePoints,m=void 0;v.labelAlignTo==="edge"?h.x<t?m=g[2][0]-v.labelDistance-o-v.edgeDistance:m=o+i-v.edgeDistance-g[2][0]-v.labelDistance:v.labelAlignTo==="labelLine"?h.x<t?m=f-o-v.bleedMargin:m=o+i-c-v.bleedMargin:h.x<t?m=h.x-o-v.bleedMargin:m=o+i-h.x-v.bleedMargin,v.targetTextWidth=m,ob(v,m,!1)}}ab(u,t,r,n,1,i,a,o,s,c),ab(l,t,r,n,-1,i,a,o,s,f);for(var d=0;d<e.length;d++){var v=e[d];if(!$d(v)&&v.linePoints){var h=v.label,g=v.linePoints,p=v.labelAlignTo==="edge",y=h.style.padding,_=y?y[1]+y[3]:0,b=h.style.backgroundColor?0:_,x=v.rect.width+b,w=g[1][0]-g[2][0];p?h.x<t?g[2][0]=o+v.edgeDistance+x+v.labelDistance:g[2][0]=o+i-v.edgeDistance-x-v.labelDistance:(h.x<t?g[2][0]=h.x+v.labelDistance:g[2][0]=h.x-v.labelDistance,g[1][0]=g[2][0]+w),g[1][1]=g[2][1]=h.y}}}function ob(e,t,r){if(e.labelStyleWidth==null){var n=e.label,i=n.style,a=e.rect,o=i.backgroundColor,s=i.padding,l=s?s[1]+s[3]:0,u=i.overflow,f=a.width+(o?0:l);if(t<f||r){if(u&&u.match("break")){n.setStyle("backgroundColor",null),n.setStyle("width",t-l);var c=n.getBoundingRect();n.setStyle("width",Math.ceil(c.width)),n.setStyle("backgroundColor",o)}else{var d=t-l,h=t<f?d:r?d>e.unconstrainedWidth?null:d:null;n.setStyle("width",h)}sb(a,n)}}}function sb(e,t){lb.rect=e,Q_(lb,t,Mk)}var Mk={minMarginForce:[null,0,null,0],marginDefault:[1,0,1,0]},lb={};function $d(e){return e.position==="center"}function Dk(e){var t=e.getData(),r=[],n,i,a=!1,o=(e.get("minShowLabelAngle")||0)*Ek,s=t.getLayout("viewRect"),l=t.getLayout("r"),u=s.width,f=s.x,c=s.y,d=s.height;function h(w){w.ignore=!0}function v(w){if(!w.ignore)return!0;for(var S in w.states)if(w.states[S].ignore===!1)return!0;return!1}t.each(function(w){var S=t.getItemGraphicEl(w),L=S.shape,C=S.getTextContent(),D=S.getTextGuideLine(),I=t.getItemModel(w),A=I.getModel("label"),M=A.get("position")||I.get(["emphasis","label","position"]),T=A.get("distanceToLabelLine"),k=A.get("alignTo"),R=Wt(A.get("edgeDistance"),u),z=A.get("bleedMargin");z==null&&(z=Math.min(u,d)>200?10:2);var H=I.getModel("labelLine"),V=H.get("length");V=Wt(V,u);var Z=H.get("length2");if(Z=Wt(Z,u),Math.abs(L.endAngle-L.startAngle)<o){O(C.states,h),C.ignore=!0,D&&(O(D.states,h),D.ignore=!0);return}if(v(C)){var B=(L.startAngle+L.endAngle)/2,$=Math.cos(B),X=Math.sin(B),j,Q,bt,Et;n=L.cx,i=L.cy;var ht=M==="inside"||M==="inner";if(M==="center")j=L.cx,Q=L.cy,Et="center";else{var gt=(ht?(L.r+L.r0)/2*$:L.r*$)+n,St=(ht?(L.r+L.r0)/2*X:L.r*X)+i;if(j=gt+$*3,Q=St+X*3,!ht){var at=gt+$*(V+l-L.r),mt=St+X*(V+l-L.r),Rt=at+($<0?-1:1)*Z,E=mt;k==="edge"?j=$<0?f+R:f+u-R:j=Rt+($<0?-T:T),Q=E,bt=[[gt,St],[at,mt],[Rt,E]]}Et=ht?"center":k==="edge"?$>0?"right":"left":$>0?"left":"right"}var Y=Math.PI,W=0,N=A.get("rotate");if($t(N))W=N*(Y/180);else if(M==="center")W=0;else if(N==="radial"||N===!0){var P=$<0?-B+Y:-B;W=P}else if(N==="tangential"&&M!=="outside"&&M!=="outer"){var G=Math.atan2($,X);G<0&&(G=Y*2+G);var K=X>0;K&&(G=Y+G),W=G-Y}if(a=!!W,C.x=j,C.y=Q,C.rotation=W,C.setStyle({verticalAlign:"middle"}),ht){C.setStyle({align:Et});var U=C.states.select;U&&(U.x+=C.x,U.y+=C.y)}else{var J=new Ct(0,0,0,0);sb(J,C),r.push({label:C,labelLine:D,position:M,len:V,len2:Z,minTurnAngle:H.get("minTurnAngle"),maxSurfaceAngle:H.get("maxSurfaceAngle"),surfaceNormal:new wt($,X),linePoints:bt,textAlign:Et,labelDistance:T,labelAlignTo:k,edgeDistance:R,bleedMargin:z,rect:J,unconstrainedWidth:J.width,labelStyleWidth:C.style.width})}S.setTextConfig({inside:ht})}}),!a&&e.get("avoidLabelOverlap")&&Lk(r,n,i,l,u,d,f,c);for(var g=0;g<r.length;g++){var m=r[g],p=m.label,y=m.labelLine,_=isNaN(p.x)||isNaN(p.y);if(p){p.setStyle({align:m.textAlign}),_&&(O(p.states,h),p.ignore=!0);var b=p.states.select;b&&(b.x+=p.x,b.y+=p.y)}if(y){var x=m.linePoints;_||!x?(O(y.states,h),y.ignore=!0):(KD(x,m.minTurnAngle),JD(x,m.surfaceNormal,m.maxSurfaceAngle),y.setShape({points:x}),p.__hostTarget.textGuideLineConfig={anchor:new wt(x[0][0],x[0][1])})}}}var Ik=(function(e){it(t,e);function t(r,n,i){var a=e.call(this)||this;a.z2=2;var o=new fe;return a.setTextContent(o),a.updateData(r,n,i,!0),a}return t.prototype.updateData=function(r,n,i,a){var o=this,s=r.hostModel,l=r.getItemModel(n),u=l.getModel("emphasis"),f=r.getItemLayout(n),c=et(Eo(l.getModel("itemStyle"),f,!0),f);if(isNaN(c.startAngle)){o.setShape(c);return}if(a){o.setShape(c);var d=s.getShallow("animationType");s.ecModel.ssr?(We(o,{scaleX:0,scaleY:0},s,{dataIndex:n,isFrom:!0}),o.originX=c.cx,o.originY=c.cy):d==="scale"?(o.shape.r=f.r0,We(o,{shape:{r:f.r}},s,n)):i!=null?(o.setShape({startAngle:i,endAngle:i}),We(o,{shape:{startAngle:f.startAngle,endAngle:f.endAngle}},s,n)):(o.shape.endAngle=f.startAngle,we(o,{shape:{endAngle:f.endAngle}},s,n))}else Nc(o),we(o,{shape:c},s,n);o.useStyle(r.getItemVisual(n,"style")),Ys(o,l);var h=(f.startAngle+f.endAngle)/2,v=s.get("selectedOffset"),g=Math.cos(h)*v,m=Math.sin(h)*v,p=l.getShallow("cursor");p&&o.attr("cursor",p),this._updateLabel(s,r,n),o.ensureState("emphasis").shape=et({r:f.r+(u.get("scale")&&u.get("scaleSize")||0)},Eo(u.getModel("itemStyle"),f)),et(o.ensureState("select"),{x:g,y:m,shape:Eo(l.getModel(["select","itemStyle"]),f)}),et(o.ensureState("blur"),{shape:Eo(l.getModel(["blur","itemStyle"]),f)});var y=o.getTextGuideLine(),_=o.getTextContent();y&&et(y.ensureState("select"),{x:g,y:m}),et(_.ensureState("select"),{x:g,y:m}),Fa(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},t.prototype._updateLabel=function(r,n,i){var a=this,o=n.getItemModel(i),s=o.getModel("labelLine"),l=n.getItemVisual(i,"style"),u=l&&l.fill,f=l&&l.opacity;Xa(a,qa(o),{labelFetcher:n.hostModel,labelDataIndex:i,inheritColor:u,defaultOpacity:f,defaultText:r.getFormattedLabel(i,"normal")||n.getName(i)});var c=a.getTextContent();a.setTextConfig({position:null,rotation:null}),c.attr({z2:10});var d=o.get(["label","position"]);if(d!=="outside"&&d!=="outer")a.removeTextGuideLine();else{var h=this.getTextGuideLine();h||(h=new Ha,this.setTextGuideLine(h)),eI(this,rI(o),{stroke:u,opacity:Ir(s.get(["lineStyle","opacity"]),f,1)})}},t})(on),kk=(function(e){it(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.ignoreLabelLineUpdate=!0,r}return t.prototype.render=function(r,n,i,a){var o=r.getData(),s=this._data,l=this.group,u;if(!s&&o.count()>0){for(var f=o.getItemLayout(0),c=1;isNaN(f&&f.startAngle)&&c<o.count();++c)f=o.getItemLayout(c);f&&(u=f.startAngle)}if(this._emptyCircleSector&&l.remove(this._emptyCircleSector),o.count()===0&&r.get("showEmptyCircle")){var d=ib(r),h=new on({shape:At(d)});h.useStyle(r.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=h,l.add(h)}o.diff(s).add(function(v){var g=new Ik(o,v,u);o.setItemGraphicEl(v,g),l.add(g)}).update(function(v,g){var m=s.getItemGraphicEl(g);m.updateData(o,v,u),m.off("click"),l.add(m),o.setItemGraphicEl(v,m)}).remove(function(v){var g=s.getItemGraphicEl(v);Wa(g,r,v)}).execute(),Dk(r),r.get("animationTypeUpdate")!=="expansion"&&(this._data=o)},t.prototype.dispose=function(){},t.prototype.containPoint=function(r,n){var i=n.getData(),a=i.getItemLayout(0);if(a){var o=r[0]-a.cx,s=r[1]-a.cy,l=Math.sqrt(o*o+s*s);return l<=a.r&&l>=a.r0}},t.type="pie",t})(Ne);function Pk(e,t,r){t=st(t)&&{coordDimensions:t}||et({encodeDefine:e.getEncode()},t);var n=e.getSource(),i=__(n,t).dimensions,a=new y_(i,e);return a.initData(n,r),a}var Nk=(function(){function e(t,r){this._getDataWithEncodedVisual=t,this._getRawData=r}return e.prototype.getAllNames=function(){var t=this._getRawData();return t.mapArray(t.getName)},e.prototype.containName=function(t){var r=this._getRawData();return r.indexOfName(t)>=0},e.prototype.indexOfName=function(t){var r=this._getDataWithEncodedVisual();return r.indexOfName(t)},e.prototype.getItemVisual=function(t,r){var n=this._getDataWithEncodedVisual();return n.getItemVisual(t,r)},e})(),$k=Zt(),ub=(function(e){it(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(r){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new Nk(Ft(this.getData,this),Ft(this.getRawData,this)),this._defaultLabelLine(r)},t.prototype.mergeOption=function(){e.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return Pk(this,{coordDimensions:["value"],encodeDefaulter:Kt(UA,this)})},t.prototype.getDataParams=function(r){var n=this.getData(),i=$k(n),a=i.seats;if(!a){var o=[];n.each(n.mapDimension("value"),function(l){o.push(l)}),a=i.seats=x2(o,n.hostModel.get("percentPrecision"))}var s=e.prototype.getDataParams.call(this,r);return s.percent=a[r]||0,s.$vars.push("percent"),s},t.prototype._defaultLabelLine=function(r){Wf(r,"labelLine",["show"]);var n=r.labelLine,i=r.emphasis.labelLine;n.show=n.show&&r.label.show,i.show=i.show&&r.emphasis.label.show},t.type="series.pie",t.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"},t})(je);MA({fullType:ub.type,getCoord2:function(e){return e.getShallow("center")}});function Ok(e){return{seriesType:e,reset:function(t,r){var n=t.getData();n.filterSelf(function(i){var a=n.mapDimension("value"),o=n.get(a,i);return!($t(o)&&!isNaN(o)&&o<0)})}}}function Rk(e){e.registerChartView(kk),e.registerSeriesModel(ub),DL("pie",e.registerAction),e.registerLayout(Kt(Ck,"pie")),e.registerProcessor(Ak("pie")),e.registerProcessor(Ok("pie"))}var Bk=(function(e){it(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.hasSymbolVisual=!0,r}return t.prototype.getInitialData=function(r,n){return Yl(null,this,{useEncodeDefaulter:!0})},t.prototype.getProgressive=function(){var r=this.option.progressive;return r??(this.option.large?5e3:this.get("progressive"))},t.prototype.getProgressiveThreshold=function(){var r=this.option.progressiveThreshold;return r??(this.option.large?1e4:this.get("progressiveThreshold"))},t.prototype.brushSelector=function(r,n,i){return i.point(n.getItemLayout(r))},t.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},t.type="series.scatter",t.dependencies=["grid","polar","geo","singleAxis","calendar","matrix"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:dt.color.primary}},universalTransition:{divideShape:"clone"}},t})(je),fb=4,Fk=(function(){function e(){}return e})(),zk=(function(e){it(t,e);function t(r){var n=e.call(this,r)||this;return n._off=0,n.hoverDataIdx=-1,n}return t.prototype.getDefaultShape=function(){return new Fk},t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.buildPath=function(r,n){var i=n.points,a=n.size,o=this.symbolProxy,s=o.shape,l=r.getContext?r.getContext():r,u=l&&a[0]<fb,f=this.softClipShape,c;if(u){this._ctx=l;return}for(this._ctx=null,c=this._off;c<i.length;){var d=i[c++],h=i[c++];isNaN(d)||isNaN(h)||f&&!f.contain(d,h)||(s.x=d-a[0]/2,s.y=h-a[1]/2,s.width=a[0],s.height=a[1],o.buildPath(r,s,!0))}this.incremental&&(this._off=c,this.notClear=!0)},t.prototype.afterBrush=function(){var r=this.shape,n=r.points,i=r.size,a=this._ctx,o=this.softClipShape,s;if(a){for(s=this._off;s<n.length;){var l=n[s++],u=n[s++];isNaN(l)||isNaN(u)||o&&!o.contain(l,u)||a.fillRect(l-i[0]/2,u-i[1]/2,i[0],i[1])}this.incremental&&(this._off=s,this.notClear=!0)}},t.prototype.findDataIndex=function(r,n){for(var i=this.shape,a=i.points,o=i.size,s=Math.max(o[0],4),l=Math.max(o[1],4),u=a.length/2-1;u>=0;u--){var f=u*2,c=a[f]-s/2,d=a[f+1]-l/2;if(r>=c&&n>=d&&r<=c+s&&n<=d+l)return u}return-1},t.prototype.contain=function(r,n){var i=this.transformCoordToLocal(r,n),a=this.getBoundingRect();if(r=i[0],n=i[1],a.contain(r,n)){var o=this.hoverDataIdx=this.findDataIndex(r,n);return o>=0}return this.hoverDataIdx=-1,!1},t.prototype.getBoundingRect=function(){var r=this._rect;if(!r){for(var n=this.shape,i=n.points,a=n.size,o=a[0],s=a[1],l=1/0,u=1/0,f=-1/0,c=-1/0,d=0;d<i.length;){var h=i[d++],v=i[d++];l=Math.min(h,l),f=Math.max(h,f),u=Math.min(v,u),c=Math.max(v,c)}r=this._rect=new Ct(l-o/2,u-s/2,f-l+o,c-u+s)}return r},t})(It),Vk=(function(){function e(){this.group=new ne}return e.prototype.updateData=function(t,r){this._clear();var n=this._create();n.setShape({points:t.getLayout("points")}),this._setCommon(n,t,r)},e.prototype.updateLayout=function(t){var r=t.getLayout("points");this.group.eachChild(function(n){if(n.startIndex!=null){var i=(n.endIndex-n.startIndex)*2,a=n.startIndex*4*2;r=new Float32Array(r.buffer,a,i)}n.setShape("points",r),n.reset()})},e.prototype.incrementalPrepareUpdate=function(t){this._clear()},e.prototype.incrementalUpdate=function(t,r,n){var i=this._newAdded[0],a=r.getLayout("points"),o=i&&i.shape.points;if(o&&o.length<2e4){var s=o.length,l=new Float32Array(s+a.length);l.set(o),l.set(a,s),i.endIndex=t.end,i.setShape({points:l})}else{this._newAdded=[];var u=this._create();u.startIndex=t.start,u.endIndex=t.end,u.incremental=!0,u.setShape({points:a}),this._setCommon(u,r,n)}},e.prototype.eachRendered=function(t){this._newAdded[0]&&t(this._newAdded[0])},e.prototype._create=function(){var t=new zk({cursor:"default"});return t.ignoreCoarsePointer=!0,this.group.add(t),this._newAdded.push(t),t},e.prototype._setCommon=function(t,r,n){var i=r.hostModel;n=n||{};var a=r.getVisual("symbolSize");t.setShape("size",a instanceof Array?a:[a,a]),t.softClipShape=n.clipShape||null,t.symbolProxy=ai(r.getVisual("symbol"),0,0,0,0),t.setColor=t.symbolProxy.setColor;var o=t.shape.size[0]<fb;t.useStyle(i.getModel("itemStyle").getItemStyle(o?["color","shadowBlur","shadowColor"]:["color"]));var s=r.getVisual("style"),l=s&&s.fill;l&&t.setColor(l);var u=Lt(t);u.seriesIndex=i.seriesIndex,t.on("mousemove",function(f){u.dataIndex=null;var c=t.hoverDataIdx;c>=0&&(u.dataIndex=c+(t.startIndex||0))})},e.prototype.remove=function(){this._clear()},e.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},e})(),Gk=(function(e){it(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,i){var a=r.getData(),o=this._updateSymbolDraw(a,r);o.updateData(a,{clipShape:this._getClipShape(r)}),this._finished=!0},t.prototype.incrementalPrepareRender=function(r,n,i){var a=r.getData(),o=this._updateSymbolDraw(a,r);o.incrementalPrepareUpdate(a),this._finished=!1},t.prototype.incrementalRender=function(r,n,i){this._symbolDraw.incrementalUpdate(r,n.getData(),{clipShape:this._getClipShape(n)}),this._finished=r.end===n.getData().count()},t.prototype.updateTransform=function(r,n,i){var a=r.getData();if(this.group.dirty(),!this._finished||a.count()>1e4)return{update:!0};var o=Id("").reset(r,n,i);o.progress&&o.progress({start:0,end:a.count(),count:a.count()},a),this._symbolDraw.updateLayout(a)},t.prototype.eachRendered=function(r){this._symbolDraw&&this._symbolDraw.eachRendered(r)},t.prototype._getClipShape=function(r){if(r.get("clip",!0)){var n=r.coordinateSystem;return n&&n.getArea&&n.getArea(.1)}},t.prototype._updateSymbolDraw=function(r,n){var i=this._symbolDraw,a=n.pipelineContext,o=a.large;return(!i||o!==this._isLargeDraw)&&(i&&i.remove(),i=this._symbolDraw=o?new Vk:new k1,this._isLargeDraw=o,this.group.removeAll()),this.group.add(i.group),i},t.prototype.remove=function(r,n){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},t.prototype.dispose=function(){},t.type="scatter",t})(Ne),cb={left:0,right:0,top:0,bottom:0},uu=["25%","25%"],Hk=(function(e){it(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.mergeDefaultAndTheme=function(r,n){var i=eo(r.outerBounds);e.prototype.mergeDefaultAndTheme.apply(this,arguments),i&&r.outerBounds&&hn(r.outerBounds,i)},t.prototype.mergeOption=function(r,n){e.prototype.mergeOption.apply(this,arguments),this.option.outerBounds&&r.outerBounds&&hn(this.option.outerBounds,r.outerBounds)},t.type="grid",t.dependencies=["xAxis","yAxis"],t.layoutMode="box",t.defaultOption={show:!1,z:0,left:"15%",top:65,right:"10%",bottom:80,containLabel:!1,outerBoundsMode:"auto",outerBounds:cb,outerBoundsContain:"all",outerBoundsClampWidth:uu[0],outerBoundsClampHeight:uu[1],backgroundColor:dt.color.transparent,borderWidth:1,borderColor:dt.color.neutral30},t})(kt),Od=(function(e){it(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",ze).models[0]},t.type="cartesian2dAxis",t})(kt);ur(Od,OD);var hb={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:dt.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:dt.color.axisLabel,textMargin:[0,3]},splitLine:{show:!0,showMinLine:!0,showMaxLine:!0,lineStyle:{color:dt.color.axisSplitLine,width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:[dt.color.backgroundTint,dt.color.backgroundTransparent]}},breakArea:{show:!0,itemStyle:{color:dt.color.neutral00,borderColor:dt.color.border,borderWidth:1,borderType:[3,3],opacity:.6},zigzagAmplitude:4,zigzagMinSpan:4,zigzagMaxSpan:20,zigzagZ:100,expandOnClick:!0},breakLabelLayout:{moveOverlap:"auto"}},Uk=Gt({boundaryGap:!0,deduplication:null,jitter:0,jitterOverlap:!0,jitterMargin:2,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto",show:"auto"},axisLabel:{interval:"auto"}},hb),Rd=Gt({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:dt.color.axisMinorSplitLine,width:1}}},hb),Wk=Gt({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},Rd),Zk=Bt({logBase:10},Rd);const Yk={category:Uk,value:Rd,time:Wk,log:Zk};var Xk={value:1,category:1,time:1,log:1},qk=null;function jk(){return qk}function db(e,t,r,n){O(Xk,function(i,a){var o=Gt(Gt({},Yk[a],!0),n,!0),s=(function(l){it(u,l);function u(){var f=l!==null&&l.apply(this,arguments)||this;return f.type=t+"Axis."+a,f}return u.prototype.mergeDefaultAndTheme=function(f,c){var d=to(this),h=d?eo(f):{},v=c.getTheme();Gt(f,v.get(a+"Axis")),Gt(f,this.getDefaultOption()),f.type=vb(f),d&&hn(f,h,d)},u.prototype.optionUpdated=function(){var f=this.option;f.type==="category"&&(this.__ordinalMeta=id.createByAxisModel(this))},u.prototype.getCategories=function(f){var c=this.option;if(c.type==="category")return f?c.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.prototype.updateAxisBreaks=function(f){return{breaks:[]}},u.type=t+"Axis."+a,u.defaultOption=o,u})(r);e.registerComponentModel(s)}),e.registerSubTypeDefaulter(t+"Axis",vb)}function vb(e){return e.type||(e.data?"category":"value")}var Qk=(function(){function e(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}return e.prototype.getAxis=function(t){return this._axes[t]},e.prototype.getAxes=function(){return ft(this._dimList,function(t){return this._axes[t]},this)},e.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),re(this.getAxes(),function(r){return r.scale.type===t})},e.prototype.addAxis=function(t){var r=t.dim;this._axes[r]=t,this._dimList.push(r)},e})(),Bd=["x","y"];function pb(e){return(e.type==="interval"||e.type==="time")&&!e.hasBreaks()}var Kk=(function(e){it(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="cartesian2d",r.dimensions=Bd,r}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var r=this.getAxis("x").scale,n=this.getAxis("y").scale;if(!(!pb(r)||!pb(n))){var i=r.getExtent(),a=n.getExtent(),o=this.dataToPoint([i[0],a[0]]),s=this.dataToPoint([i[1],a[1]]),l=i[1]-i[0],u=a[1]-a[0];if(!(!l||!u)){var f=(s[0]-o[0])/l,c=(s[1]-o[1])/u,d=o[0]-i[0]*f,h=o[1]-a[0]*c,v=this._transform=[f,0,0,c,d,h];this._invTransform=ga([],v)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},t.prototype.containPoint=function(r){var n=this.getAxis("x"),i=this.getAxis("y");return n.contain(n.toLocalCoord(r[0]))&&i.contain(i.toLocalCoord(r[1]))},t.prototype.containData=function(r){return this.getAxis("x").containData(r[0])&&this.getAxis("y").containData(r[1])},t.prototype.containZone=function(r,n){var i=this.dataToPoint(r),a=this.dataToPoint(n),o=this.getArea(),s=new Ct(i[0],i[1],a[0]-i[0],a[1]-i[1]);return o.intersect(s)},t.prototype.dataToPoint=function(r,n,i){i=i||[];var a=r[0],o=r[1];if(this._transform&&a!=null&&isFinite(a)&&o!=null&&isFinite(o))return Oe(i,r,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return i[0]=s.toGlobalCoord(s.dataToCoord(a,n)),i[1]=l.toGlobalCoord(l.dataToCoord(o,n)),i},t.prototype.clampData=function(r,n){var i=this.getAxis("x").scale,a=this.getAxis("y").scale,o=i.getExtent(),s=a.getExtent(),l=i.parse(r[0]),u=a.parse(r[1]);return n=n||[],n[0]=Math.min(Math.max(Math.min(o[0],o[1]),l),Math.max(o[0],o[1])),n[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),n},t.prototype.pointToData=function(r,n,i){if(i=i||[],this._invTransform)return Oe(i,r,this._invTransform);var a=this.getAxis("x"),o=this.getAxis("y");return i[0]=a.coordToData(a.toLocalCoord(r[0]),n),i[1]=o.coordToData(o.toLocalCoord(r[1]),n),i},t.prototype.getOtherAxis=function(r){return this.getAxis(r.dim==="x"?"y":"x")},t.prototype.getArea=function(r){r=r||0;var n=this.getAxis("x").getGlobalExtent(),i=this.getAxis("y").getGlobalExtent(),a=Math.min(n[0],n[1])-r,o=Math.min(i[0],i[1])-r,s=Math.max(n[0],n[1])-a+r,l=Math.max(i[0],i[1])-o+r;return new Ct(a,o,s,l)},t})(Qk),Jk=(function(e){it(t,e);function t(r,n,i,a,o){var s=e.call(this,r,n,i)||this;return s.index=0,s.type=a||"value",s.position=o||"bottom",s}return t.prototype.isHorizontal=function(){var r=this.position;return r==="top"||r==="bottom"},t.prototype.getGlobalExtent=function(r){var n=this.getExtent();return n[0]=this.toGlobalCoord(n[0]),n[1]=this.toGlobalCoord(n[1]),r&&n[0]>n[1]&&n.reverse(),n},t.prototype.pointToData=function(r,n){return this.coordToData(this.toLocalCoord(r[this.dim==="x"?0:1]),n)},t.prototype.setCategorySortInfo=function(r){if(this.type!=="category")return!1;this.model.option.categorySortInfo=r,this.scale.setSortInfo(r)},t})(jD),tP="expandAxisBreak",wn=Math.PI,eP=[[1,2,1,2],[5,3,5,3],[8,3,8,3]],rP=[[0,1,0,1],[0,3,0,3],[0,3,0,3]],Lo=Zt(),gb=Zt(),mb=(function(){function e(t){this.recordMap={},this.resolveAxisNameOverlap=t}return e.prototype.ensureRecord=function(t){var r=t.axis.dim,n=t.componentIndex,i=this.recordMap,a=i[r]||(i[r]=[]);return a[n]||(a[n]={ready:{}})},e})();function nP(e,t,r,n){var i=r.axis,a=t.ensureRecord(r),o=[],s,l=zd(e.axisName)&&ia(e.nameLocation);O(n,function(v){var g=_n(v);if(!(!g||g.label.ignore)){o.push(g);var m=a.transGroup;l&&(m.transform?ga(Mo,m.transform):Ku(Mo),g.transform&&pa(Mo,Mo,g.transform),Ct.copy(fu,g.localRect),fu.applyTransform(Mo),s?s.union(fu):Ct.copy(s=new Ct(0,0,0,0),fu))}});var u=Math.abs(a.dirVec.x)>.1?"x":"y",f=a.transGroup[u];if(o.sort(function(v,g){return Math.abs(v.label[u]-f)-Math.abs(g.label[u]-f)}),l&&s){var c=i.getExtent(),d=Math.min(c[0],c[1]),h=Math.max(c[0],c[1])-d;s.union(new Ct(d,0,h,1))}a.stOccupiedRect=s,a.labelInfoList=o}var Mo=Pr(),fu=new Ct(0,0,0,0),yb=function(e,t,r,n,i,a){if(ia(e.nameLocation)){var o=a.stOccupiedRect;o&&_b(iI({},o,a.transGroup.transform),n,i)}else bb(a.labelInfoList,a.dirVec,n,i)};function _b(e,t,r){var n=new wt;hd(e,t,n,{direction:Math.atan2(r.y,r.x),bidirectional:!1,touchThreshold:.05})&&aI(t,n)}function bb(e,t,r,n){for(var i=wt.dot(n,t)>=0,a=0,o=e.length;a<o;a++){var s=e[i?a:o-1-a];s.label.ignore||_b(s,r,n)}}var Tn=(function(){function e(t,r,n,i){this.group=new ne,this._axisModel=t,this._api=r,this._local={},this._shared=i||new mb(yb),this._resetCfgDetermined(n)}return e.prototype.updateCfg=function(t){if(process.env.NODE_ENV!=="production"){var r=this._shared.ensureRecord(this._axisModel).ready;vt(!r.axisLine&&!r.axisTickLabelDetermine),r.axisName=r.axisTickLabelEstimate=!1}var n=this._cfg.raw;n.position=t.position,n.labelOffset=t.labelOffset,this._resetCfgDetermined(n)},e.prototype.__getRawCfg=function(){return this._cfg.raw},e.prototype._resetCfgDetermined=function(t){var r=this._axisModel,n=r.getDefaultOption?r.getDefaultOption():{},i=ct(t.axisName,r.get("name")),a=r.get("nameMoveOverlap");(a==null||a==="auto")&&(a=ct(t.defaultNameMoveOverlap,!0));var o={raw:t,position:t.position,rotation:t.rotation,nameDirection:ct(t.nameDirection,1),tickDirection:ct(t.tickDirection,1),labelDirection:ct(t.labelDirection,1),labelOffset:ct(t.labelOffset,0),silent:ct(t.silent,!0),axisName:i,nameLocation:Ir(r.get("nameLocation"),n.nameLocation,"end"),shouldNameMoveOverlap:zd(i)&&a,optionHideOverlap:r.get(["axisLabel","hideOverlap"]),showMinorTicks:r.get(["minorTick","show"])};process.env.NODE_ENV!=="production"&&(vt(o.position!=null),vt(o.rotation!=null)),this._cfg=o;var s=new ne({x:o.position[0],y:o.position[1],rotation:o.rotation});s.updateTransform(),this._transformGroup=s;var l=this._shared.ensureRecord(r);l.transGroup=this._transformGroup,l.dirVec=new wt(Math.cos(-o.rotation),Math.sin(-o.rotation))},e.prototype.build=function(t,r){var n=this;return t||(t={axisLine:!0,axisTickLabelEstimate:!1,axisTickLabelDetermine:!0,axisName:!0}),O(iP,function(i){t[i]&&aP[i](n._cfg,n._local,n._shared,n._axisModel,n.group,n._transformGroup,n._api,r||{})}),this},e.innerTextLayout=function(t,r,n){var i=Qp(r-t),a,o;return Cs(i)?(o=n>0?"top":"bottom",a="center"):Cs(i-wn)?(o=n>0?"bottom":"top",a="center"):(o="middle",i>0&&i<wn?a=n>0?"right":"left":a=n>0?"left":"right"),{rotation:i,textAlign:a,textVerticalAlign:o}},e.makeAxisEventDataBase=function(t){var r={componentType:t.mainType,componentIndex:t.componentIndex};return r[t.mainType+"Index"]=t.componentIndex,r},e.isLabelSilent=function(t){var r=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||r&&r.show)},e})(),iP=["axisLine","axisTickLabelEstimate","axisTickLabelDetermine","axisName"],aP={axisLine:function(e,t,r,n,i,a,o){if(process.env.NODE_ENV!=="production"){var s=r.ensureRecord(n).ready;vt(!s.axisLine),s.axisLine=!0}var l=n.get(["axisLine","show"]);if(l==="auto"&&(l=!0,e.raw.axisLineAutoShow!=null&&(l=!!e.raw.axisLineAutoShow)),!!l){var u=n.axis.getExtent(),f=a.transform,c=[u[0],0],d=[u[1],0],h=c[0]>d[0];f&&(Oe(c,c,f),Oe(d,d,f));var v=et({lineCap:"round"},n.getModel(["axisLine","lineStyle"]).getLineStyle()),g={strokeContainThreshold:e.raw.strokeContainThreshold||5,silent:!0,z2:1,style:v};if(n.get(["axisLine","breakLine"])&&n.axis.scale.hasBreaks())jk().buildAxisBreakLine(n,i,a,g);else{var m=new sn(et({shape:{x1:c[0],y1:c[1],x2:d[0],y2:d[1]}},g));Za(m.shape,m.style.lineWidth),m.anid="line",i.add(m)}var p=n.get(["axisLine","symbol"]);if(p!=null){var y=n.get(["axisLine","symbolSize"]);ut(p)&&(p=[p,p]),(ut(y)||$t(y))&&(y=[y,y]);var _=_y(n.get(["axisLine","symbolOffset"])||0,y),b=y[0],x=y[1];O([{rotate:e.rotation+Math.PI/2,offset:_[0],r:0},{rotate:e.rotation-Math.PI/2,offset:_[1],r:Math.sqrt((c[0]-d[0])*(c[0]-d[0])+(c[1]-d[1])*(c[1]-d[1]))}],function(w,S){if(p[S]!=="none"&&p[S]!=null){var L=ai(p[S],-b/2,-x/2,b,x,v.stroke,!0),C=w.r+w.offset,D=h?d:c;L.attr({rotation:w.rotate,x:D[0]+C*Math.cos(e.rotation),y:D[1]-C*Math.sin(e.rotation),silent:!0,z2:11}),i.add(L)}})}}},axisTickLabelEstimate:function(e,t,r,n,i,a,o,s){if(process.env.NODE_ENV!=="production"){var l=r.ensureRecord(n).ready;vt(!l.axisTickLabelDetermine),l.axisTickLabelEstimate=!0}var u=wb(t,i,s);u&&Sb(e,t,r,n,i,a,o,sr.estimate)},axisTickLabelDetermine:function(e,t,r,n,i,a,o,s){if(process.env.NODE_ENV!=="production"){var l=r.ensureRecord(n).ready;l.axisTickLabelDetermine=!0}var u=wb(t,i,s);u&&Sb(e,t,r,n,i,a,o,sr.determine);var f=uP(e,i,a,n);lP(e,t.labelLayoutList,f),fP(e,i,a,n,e.tickDirection)},axisName:function(e,t,r,n,i,a,o,s){var l=r.ensureRecord(n);if(process.env.NODE_ENV!=="production"){var u=l.ready;vt(u.axisTickLabelEstimate||u.axisTickLabelDetermine),u.axisName=!0}t.nameEl&&(i.remove(t.nameEl),t.nameEl=l.nameLayout=l.nameLocation=null);var f=e.axisName;if(zd(f)){var c=e.nameLocation,d=e.nameDirection,h=n.getModel("nameTextStyle"),v=n.get("nameGap")||0,g=n.axis.getExtent(),m=n.axis.inverse?-1:1,p=new wt(0,0),y=new wt(0,0);c==="start"?(p.x=g[0]-m*v,y.x=-m):c==="end"?(p.x=g[1]+m*v,y.x=m):(p.x=(g[0]+g[1])/2,p.y=e.labelOffset+d*v,y.y=d);var _=Pr();y.transform(tf(_,_,e.rotation));var b=n.get("nameRotate");b!=null&&(b=b*wn/180);var x,w;ia(c)?x=Tn.innerTextLayout(e.rotation,b??e.rotation,d):(x=oP(e.rotation,c,b||0,g),w=e.raw.axisNameAvailableWidth,w!=null&&(w=Math.abs(w/Math.sin(x.rotation)),!isFinite(w)&&(w=null)));var S=h.getFont(),L=n.get("nameTruncate",!0)||{},C=L.ellipsis,D=_i(e.raw.nameTruncateMaxWidth,L.maxWidth,w),I=s.nameMarginLevel||0,A=new fe({x:p.x,y:p.y,rotation:x.rotation,silent:Tn.isLabelSilent(n),style:un(h,{text:f,font:S,overflow:"truncate",width:D,ellipsis:C,fill:h.getTextColor()||n.get(["axisLine","lineStyle","color"]),align:h.get("align")||x.textAlign,verticalAlign:h.get("verticalAlign")||x.textVerticalAlign}),z2:1});if(il({el:A,componentModel:n,itemName:f}),A.__fullText=f,A.anid="name",n.get("triggerEvent")){var M=Tn.makeAxisEventDataBase(n);M.targetType="axisName",M.name=f,Lt(A).eventData=M}a.add(A),A.updateTransform(),t.nameEl=A;var T=l.nameLayout=_n({label:A,priority:A.z2,defaultAttr:{ignore:A.ignore},marginDefault:ia(c)?eP[I]:rP[I]});if(l.nameLocation=c,i.add(A),A.decomposeTransform(),e.shouldNameMoveOverlap&&T){var k=r.ensureRecord(n);process.env.NODE_ENV!=="production"&&vt(k.labelInfoList),r.resolveAxisNameOverlap(e,r,n,T,y,k)}}}};function Sb(e,t,r,n,i,a,o,s){Tb(t)||cP(e,t,i,s,n,o);var l=t.labelLayoutList;hP(e,n,l,a),e.rotation;var u=e.optionHideOverlap;sP(n,l,u),u&&sI(re(l,function(f){return f&&!f.label.ignore})),nP(e,r,n,l)}function oP(e,t,r,n){var i=Qp(r-e),a,o,s=n[0]>n[1],l=t==="start"&&!s||t!=="start"&&s;return Cs(i-wn/2)?(o=l?"bottom":"top",a="center"):Cs(i-wn*1.5)?(o=l?"top":"bottom",a="center"):(o="middle",i<wn*1.5&&i>wn/2?a=l?"left":"right":a=l?"right":"left"),{rotation:i,textAlign:a,textVerticalAlign:o}}function sP(e,t,r){if($_(e.axis))return;function n(s,l,u){var f=_n(t[l]),c=_n(t[u]);if(!(!f||!c)){if(s===!1||f.suggestIgnore){Do(f.label);return}if(c.suggestIgnore){Do(c.label);return}var d=.1;if(!r){var h=[0,0,0,0];f=K_({marginForce:h},f),c=K_({marginForce:h},c)}hd(f,c,null,{touchThreshold:d})&&Do(s?c.label:f.label)}}var i=e.get(["axisLabel","showMinLabel"]),a=e.get(["axisLabel","showMaxLabel"]),o=t.length;n(i,0,1),n(a,o-1,o-2)}function lP(e,t,r){e.showMinorTicks||O(t,function(n){if(n&&n.label.ignore)for(var i=0;i<r.length;i++){var a=r[i],o=gb(a),s=Lo(n.label);if(o.tickValue!=null&&!o.onBand&&o.tickValue===s.tickValue){Do(a);return}}})}function Do(e){e&&(e.ignore=!0)}function xb(e,t,r,n,i){for(var a=[],o=[],s=[],l=0;l<e.length;l++){var u=e[l].coord;o[0]=u,o[1]=0,s[0]=u,s[1]=r,t&&(Oe(o,o,t),Oe(s,s,t));var f=new sn({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:n,z2:2,autoBatch:!0,silent:!0});Za(f.shape,f.style.lineWidth),f.anid=i+"_"+e[l].tickValue,a.push(f);var c=gb(f);c.onBand=!!e[l].onBand,c.tickValue=e[l].tickValue}return a}function uP(e,t,r,n){var i=n.axis,a=n.getModel("axisTick"),o=a.get("show");if(o==="auto"&&(o=!0,e.raw.axisTickAutoShow!=null&&(o=!!e.raw.axisTickAutoShow)),!o||i.scale.isBlank())return[];for(var s=a.getModel("lineStyle"),l=e.tickDirection*a.get("length"),u=i.getTicksCoords(),f=xb(u,r.transform,l,Bt(s.getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])}),"ticks"),c=0;c<f.length;c++)t.add(f[c]);return f}function fP(e,t,r,n,i){var a=n.axis,o=n.getModel("minorTick");if(!(!e.showMinorTicks||a.scale.isBlank())){var s=a.getMinorTicksCoords();if(s.length)for(var l=o.getModel("lineStyle"),u=i*o.get("length"),f=Bt(l.getLineStyle(),Bt(n.getModel("axisTick").getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])})),c=0;c<s.length;c++)for(var d=xb(s[c],r.transform,u,f,"minorticks_"+c),h=0;h<d.length;h++)t.add(d[h])}}function wb(e,t,r){if(Tb(e)){var n=e.axisLabelsCreationContext;process.env.NODE_ENV!=="production"&&vt(e.labelGroup&&n);var i=n.out.noPxChangeTryDetermine;if(r.noPxChange){for(var a=!0,o=0;o<i.length;o++)a=a&&i[o]();if(a)return!1}i.length&&(t.remove(e.labelGroup),Fd(e,null,null,null))}return!0}function cP(e,t,r,n,i,a){var o=i.axis,s=_i(e.raw.axisLabelShow,i.get(["axisLabel","show"])),l=new ne;r.add(l);var u=Jl(n);if(!s||o.scale.isBlank()){Fd(t,[],l,u);return}var f=i.getModel("axisLabel"),c=o.getViewLabels(u),d=(_i(e.raw.labelRotate,f.get("rotate"))||0)*wn/180,h=Tn.innerTextLayout(e.rotation,d,e.labelDirection),v=i.getCategories&&i.getCategories(!0),g=[],m=i.get("triggerEvent"),p=1/0,y=-1/0;O(c,function(b,x){var w,S=o.scale.type==="ordinal"?o.scale.getRawOrdinalNumber(b.tickValue):b.tickValue,L=b.formattedLabel,C=b.rawLabel,D=f;if(v&&v[S]){var I=v[S];pt(I)&&I.textStyle&&(D=new Yt(I.textStyle,f,i.ecModel))}var A=D.getTextColor()||i.get(["axisLine","lineStyle","color"]),M=D.getShallow("align",!0)||h.textAlign,T=ct(D.getShallow("alignMinLabel",!0),M),k=ct(D.getShallow("alignMaxLabel",!0),M),R=D.getShallow("verticalAlign",!0)||D.getShallow("baseline",!0)||h.textVerticalAlign,z=ct(D.getShallow("verticalAlignMinLabel",!0),R),H=ct(D.getShallow("verticalAlignMaxLabel",!0),R),V=10+(((w=b.time)===null||w===void 0?void 0:w.level)||0);p=Math.min(p,V),y=Math.max(y,V);var Z=new fe({x:0,y:0,rotation:0,silent:Tn.isLabelSilent(i),z2:V,style:un(D,{text:L,align:x===0?T:x===c.length-1?k:M,verticalAlign:x===0?z:x===c.length-1?H:R,fill:_t(A)?A(o.type==="category"?C:o.type==="value"?S+"":S,x):A})});Z.anid="label_"+S;var B=Lo(Z);if(B.break=b.break,B.tickValue=S,B.layoutRotation=h.rotation,il({el:Z,componentModel:i,itemName:L,formatterParamsExtra:{isTruncated:function(){return Z.isTruncated},value:C,tickIndex:x}}),m){var $=Tn.makeAxisEventDataBase(i);$.targetType="axisLabel",$.value=C,$.tickIndex=x,b.break&&($.break={start:b.break.parsedBreak.vmin,end:b.break.parsedBreak.vmax}),o.type==="category"&&($.dataIndex=S),Lt(Z).eventData=$,b.break&&vP(i,a,Z,b.break)}g.push(Z),l.add(Z)});var _=ft(g,function(b){return{label:b,priority:Lo(b).break?b.z2+(y-p+1):b.z2,defaultAttr:{ignore:b.ignore}}});Fd(t,_,l,u)}function Tb(e){return!!e.labelLayoutList}function Fd(e,t,r,n){e.labelLayoutList=t,e.labelGroup=r,e.axisLabelsCreationContext=n}function hP(e,t,r,n){var i=t.get(["axisLabel","margin"]);O(r,function(a,o){var s=_n(a);if(s){var l=s.label,u=Lo(l);s.suggestIgnore=l.ignore,l.ignore=!1,bs(Wr,dP),Wr.x=t.axis.dataToCoord(u.tickValue),Wr.y=e.labelOffset+e.labelDirection*i,Wr.rotation=u.layoutRotation,n.add(Wr),Wr.updateTransform(),n.remove(Wr),Wr.decomposeTransform(),bs(l,Wr),l.markRedraw(),ru(s,!0),_n(s)}})}var Wr=new qt,dP=new qt;function zd(e){return!!e}function vP(e,t,r,n){r.on("click",function(i){var a={type:tP,breaks:[{start:n.parsedBreak.breakOption.start,end:n.parsedBreak.breakOption.end}]};a[e.axis.dim+"AxisIndex"]=e.componentIndex,t.dispatchAction(a)})}function a$(e,t,r){}function cu(e,t,r){r=r||{};var n=t.axis,i={},a=n.getAxesOnZeroOf()[0],o=n.position,s=a?"onZero":o,l=n.dim,u=[e.x,e.x+e.width,e.y,e.y+e.height],f={left:0,right:1,top:0,bottom:1,onZero:2},c=t.get("offset")||0,d=l==="x"?[u[2]-c,u[3]+c]:[u[0]-c,u[1]+c];if(a){var h=a.toGlobalCoord(a.dataToCoord(0));d[f.onZero]=Math.max(Math.min(h,d[1]),d[0])}i.position=[l==="y"?d[f[s]]:u[0],l==="x"?d[f[s]]:u[3]],i.rotation=Math.PI/2*(l==="x"?0:1);var v={top:-1,bottom:1,left:-1,right:1};i.labelDirection=i.tickDirection=i.nameDirection=v[o],i.labelOffset=a?d[f[o]]-d[f.onZero]:0,t.get(["axisTick","inside"])&&(i.tickDirection=-i.tickDirection),_i(r.labelInside,t.get(["axisLabel","inside"]))&&(i.labelDirection=-i.labelDirection);var g=t.get(["axisLabel","rotate"]);return i.labelRotate=s==="top"?-g:g,i.z2=1,i}function pP(e){return e.coordinateSystem&&e.coordinateSystem.type==="cartesian2d"}function Cb(e){var t={xAxisModel:null,yAxisModel:null};return O(t,function(r,n){var i=n.replace(/Model$/,""),a=e.getReferringComponents(i,ze).models[0];if(process.env.NODE_ENV!=="production"&&!a)throw new Error(i+' "'+Ir(e.get(i+"Index"),e.get(i+"Id"),0)+'" not found');t[n]=a}),t}function gP(e,t,r,n,i,a){for(var o=cu(e,r),s=!1,l=!1,u=0;u<t.length;u++)td(t[u].getOtherAxis(r.axis).scale)&&(s=l=!0,r.axis.type==="category"&&r.axis.onBand&&(l=!1));return o.axisLineAutoShow=s,o.axisTickAutoShow=l,o.defaultNameMoveOverlap=a,new Tn(r,n,o,i)}function mP(e,t,r){var n=cu(t,r);if(process.env.NODE_ENV!=="production"){var i=e.__getRawCfg();O(Mt(n),function(a){a!=="position"&&a!=="labelOffset"&&vt(n[a]===i[a])})}e.updateCfg(n)}function yP(e,t,r){var n,i=na.prototype,a=i.getTicks.call(r),o=i.getTicks.call(r,{expandToNicedExtent:!0}),s=a.length-1,l=i.getInterval.call(r),u=P_(e,t),f=u.extent,c=u.fixMin,d=u.fixMax;e.type==="log"&&(f=nd(e.base,f,!0)),e.setBreaksFromOption(O_(t)),e.setExtent(f[0],f[1]),e.calcNiceExtent({splitNumber:s,fixMin:c,fixMax:d});var h=i.getExtent.call(e);c&&(f[0]=h[0]),d&&(f[1]=h[1]);var v=i.getInterval.call(e),g=f[0],m=f[1];if(c&&d)v=(m-g)/s;else if(c)for(m=f[0]+v*s;m<f[1]&&isFinite(m)&&isFinite(f[1]);)v=ed(v),m=f[0]+v*s;else if(d)for(g=f[1]-v*s;g>f[0]&&isFinite(g)&&isFinite(f[0]);)v=ed(v),g=f[1]-v*s;else{var p=e.getTicks().length-1;p>s&&(v=ed(v));var y=v*s;m=Math.ceil(f[1]/v)*v,g=ue(m-y),g<0&&f[0]>=0?(g=0,m=ue(y)):m>0&&f[1]<=0&&(m=0,g=-ue(y))}var _=(a[0].value-o[0].value)/l,b=(a[s].value-o[s].value)/l;if(i.setExtent.call(e,g+v*_,m+v*b),i.setInterval.call(e,v),(_||b)&&i.setNiceExtent.call(e,g+v,m-v),process.env.NODE_ENV!=="production"){var x=i.getTicks.call(e);x[1]&&(!nD(v)||Uf(x[1].value)>Uf(v))&&de("The ticks may be not readable when set min: "+t.get("min")+", max: "+t.get("max")+(" and alignTicks: true. ("+((n=t.axis)===null||n===void 0?void 0:n.dim)+"AxisIndex: "+t.componentIndex+")"),!0)}}var Ab=[[3,1],[0,2]],_P=(function(){function e(t,r,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=Bd,this._initCartesian(t,r,n),this.model=t}return e.prototype.getRect=function(){return this._rect},e.prototype.update=function(t,r){var n=this._axesMap;this._updateScale(t,this.model);function i(o){var s,l=Mt(o),u=l.length;if(u){for(var f=[],c=u-1;c>=0;c--){var d=+l[c],h=o[d],v=h.model,g=h.scale;td(g)&&v.get("alignTicks")&&v.get("interval")==null?f.push(h):(N_(g,v),td(g)&&(s=h))}f.length&&(s||(s=f.pop(),N_(s.scale,s.model)),O(f,function(m){yP(m.scale,m.model,s.scale)}))}}i(n.x),i(n.y);var a={};O(n.x,function(o){Eb(n,"y",o,a)}),O(n.y,function(o){Eb(n,"x",o,a)}),this.resize(this.model,r)},e.prototype.resize=function(t,r,n){var i=Sl(t,r),a=this._rect=cn(t.getBoxLayoutParams(),i.refContainer),o=this._axesMap,s=this._coordsList,l=t.get("containLabel");if(Mb(o,a),!n){var u=SP(a,s,o,l,r),f=void 0;if(l)process.env.NODE_ENV!=="production"&&ig("Specified `grid.containLabel` but no `use(LegacyGridContainLabel)`;use `grid.outerBounds` instead.",!0),f=Ib(a.clone(),"axisLabel",null,a,o,u,i);else{var c=xP(t,a,i),d=c.outerBoundsRect,h=c.parsedOuterBoundsContain,v=c.outerBoundsClamp;d&&(f=Ib(d,h,v,a,o,u,i))}kb(a,o,sr.determine,null,f,i)}O(this._coordsList,function(g){g.calcAffineTransform()})},e.prototype.getAxis=function(t,r){var n=this._axesMap[t];if(n!=null)return n[r||0]},e.prototype.getAxes=function(){return this._axesList.slice()},e.prototype.getCartesian=function(t,r){if(t!=null&&r!=null){var n="x"+t+"y"+r;return this._coordsMap[n]}pt(t)&&(r=t.yAxisIndex,t=t.xAxisIndex);for(var i=0,a=this._coordsList;i<a.length;i++)if(a[i].getAxis("x").index===t||a[i].getAxis("y").index===r)return a[i]},e.prototype.getCartesians=function(){return this._coordsList.slice()},e.prototype.convertToPixel=function(t,r,n){var i=this._findConvertTarget(r);return i.cartesian?i.cartesian.dataToPoint(n):i.axis?i.axis.toGlobalCoord(i.axis.dataToCoord(n)):null},e.prototype.convertFromPixel=function(t,r,n){var i=this._findConvertTarget(r);return i.cartesian?i.cartesian.pointToData(n):i.axis?i.axis.coordToData(i.axis.toLocalCoord(n)):null},e.prototype._findConvertTarget=function(t){var r=t.seriesModel,n=t.xAxisModel||r&&r.getReferringComponents("xAxis",ze).models[0],i=t.yAxisModel||r&&r.getReferringComponents("yAxis",ze).models[0],a=t.gridModel,o=this._coordsList,s,l;if(r)s=r.coordinateSystem,Nt(o,s)<0&&(s=null);else if(n&&i)s=this.getCartesian(n.componentIndex,i.componentIndex);else if(n)l=this.getAxis("x",n.componentIndex);else if(i)l=this.getAxis("y",i.componentIndex);else if(a){var u=a.coordinateSystem;u===this&&(s=this._coordsList[0])}return{cartesian:s,axis:l}},e.prototype.containPoint=function(t){var r=this._coordsList[0];if(r)return r.containPoint(t)},e.prototype._initCartesian=function(t,r,n){var i=this,a=this,o={left:!1,right:!1,top:!1,bottom:!1},s={x:{},y:{}},l={x:0,y:0};if(r.eachComponent("xAxis",u("x"),this),r.eachComponent("yAxis",u("y"),this),!l.x||!l.y){this._axesMap={},this._axesList=[];return}this._axesMap=s,O(s.x,function(f,c){O(s.y,function(d,h){var v="x"+c+"y"+h,g=new Kk(v);g.master=i,g.model=t,i._coordsMap[v]=g,i._coordsList.push(g),g.addAxis(f),g.addAxis(d)})});function u(f){return function(c,d){if(Vd(c,t)){var h=c.get("position");f==="x"?h!=="top"&&h!=="bottom"&&(h=o.bottom?"top":"bottom"):h!=="left"&&h!=="right"&&(h=o.left?"right":"left"),o[h]=!0;var v=new Jk(f,PD(c),[0,0],c.get("type"),h),g=v.type==="category";v.onBand=g&&c.get("boundaryGap"),v.inverse=c.get("inverse"),c.axis=v,v.model=c,v.grid=a,v.index=d,a._axesList.push(v),s[f][d]=v,l[f]++}}}},e.prototype._updateScale=function(t,r){O(this._axesList,function(i){if(i.scale.setExtent(1/0,-1/0),i.type==="category"){var a=i.model.get("categorySortInfo");i.scale.setSortInfo(a)}}),t.eachSeries(function(i){if(pP(i)){var a=Cb(i),o=a.xAxisModel,s=a.yAxisModel;if(!Vd(o,r)||!Vd(s,r))return;var l=this.getCartesian(o.componentIndex,s.componentIndex),u=i.getData(),f=l.getAxis("x"),c=l.getAxis("y");n(u,f),n(u,c)}},this);function n(i,a){O($D(i,a.dim),function(o){a.scale.unionExtentFromData(i,o)})}},e.prototype.getTooltipAxes=function(t){var r=[],n=[];return O(this.getCartesians(),function(i){var a=t!=null&&t!=="auto"?i.getAxis(t):i.getBaseAxis(),o=i.getOtherAxis(a);Nt(r,a)<0&&r.push(a),Nt(n,o)<0&&n.push(o)}),{baseAxes:r,otherAxes:n}},e.create=function(t,r){var n=[];return t.eachComponent("grid",function(i,a){var o=new e(i,t,r);o.name="grid_"+a,o.resize(i,r,!0),i.coordinateSystem=o,n.push(o)}),t.eachSeries(function(i){kA({targetModel:i,coordSysType:"cartesian2d",coordSysProvider:a});function a(){var o=Cb(i),s=o.xAxisModel,l=o.yAxisModel,u=s.getCoordSysModel();if(process.env.NODE_ENV!=="production"){if(!u)throw new Error('Grid "'+Ir(s.get("gridIndex"),s.get("gridId"),0)+'" not found');if(s.getCoordSysModel()!==l.getCoordSysModel())throw new Error("xAxis and yAxis must use the same grid")}var f=u.coordinateSystem;return f.getCartesian(s.componentIndex,l.componentIndex)}}),n},e.dimensions=Bd,e})();function Vd(e,t){return e.getCoordSysModel()===t}function Eb(e,t,r,n){r.getAxesOnZeroOf=function(){return a?[a]:[]};var i=e[t],a,o=r.model,s=o.get(["axisLine","onZero"]),l=o.get(["axisLine","onZeroAxisIndex"]);if(!s)return;if(l!=null)Lb(i[l])&&(a=i[l]);else for(var u in i)if(i.hasOwnProperty(u)&&Lb(i[u])&&!n[f(i[u])]){a=i[u];break}a&&(n[f(a)]=!0);function f(c){return c.dim+"_"+c.index}}function Lb(e){return e&&e.type!=="category"&&e.type!=="time"&&ND(e)}function bP(e,t){var r=e.getExtent(),n=r[0]+r[1];e.toGlobalCoord=e.dim==="x"?function(i){return i+t}:function(i){return n-i+t},e.toLocalCoord=e.dim==="x"?function(i){return i-t}:function(i){return n-i+t}}function Mb(e,t){O(e.x,function(r){return Db(r,t.x,t.width)}),O(e.y,function(r){return Db(r,t.y,t.height)})}function Db(e,t,r){var n=[0,r],i=e.inverse?1:0;e.setExtent(n[i],n[1-i]),bP(e,t)}function Ib(e,t,r,n,i,a,o){process.env.NODE_ENV!=="production"&&vt(t==="all"||t==="axisLabel"),kb(n,i,sr.estimate,t,!1,o);var s=[0,0,0,0];u(0),u(1),f(n,0,NaN),f(n,1,NaN);var l=Gx(s,function(d){return d>0})==null;return nl(n,s,!0,!0,r),Mb(i,n),l;function u(d){O(i[ln[d]],function(h){if(xo(h.model)){var v=a.ensureRecord(h.model),g=v.labelInfoList;if(g)for(var m=0;m<g.length;m++){var p=g[m],y=h.scale.normalize(Lo(p.label).tickValue);y=d===1?1-y:y,f(p.rect,d,y),f(p.rect,1-d,NaN)}var _=v.nameLayout;if(_){var y=ia(v.nameLocation)?.5:NaN;f(_.rect,d,y),f(_.rect,1-d,NaN)}}})}function f(d,h,v){var g=e[ln[h]]-d[ln[h]],m=d[Gi[h]]+d[ln[h]]-(e[Gi[h]]+e[ln[h]]);g=c(g,1-v),m=c(m,v);var p=Ab[h][0],y=Ab[h][1];s[p]=ke(s[p],g),s[y]=ke(s[y],m)}function c(d,h){return d>0&&!yi(h)&&h>1e-4&&(d/=h),d}}function SP(e,t,r,n,i){var a=new mb(wP);return O(r,function(o){return O(o,function(s){if(xo(s.model)){var l=!n;s.axisBuilder=gP(e,t,s.model,i,a,l)}})}),a}function kb(e,t,r,n,i,a){var o=r===sr.determine;O(t,function(u){return O(u,function(f){xo(f.model)&&(mP(f.axisBuilder,e,f.model),f.axisBuilder.build(o?{axisTickLabelDetermine:!0}:{axisTickLabelEstimate:!0},{noPxChange:i}))})});var s={x:0,y:0};l(0),l(1);function l(u){s[ln[1-u]]=e[Gi[u]]<=a.refContainer[Gi[u]]*.5?0:1-u===1?2:1}O(t,function(u,f){return O(u,function(c){xo(c.model)&&((n==="all"||o)&&c.axisBuilder.build({axisName:!0},{nameMarginLevel:s[f]}),o&&c.axisBuilder.build({axisLine:!0}))})})}function xP(e,t,r){var n,i=e.get("outerBoundsMode",!0);i==="same"?n=t.clone():i==null||i==="auto"?n=cn(e.get("outerBounds",!0)||cb,r.refContainer):i!=="none"&&process.env.NODE_ENV!=="production"&&zt("Invalid grid["+e.componentIndex+"].outerBoundsMode.");var a=e.get("outerBoundsContain",!0),o;a==null||a==="auto"?o="all":Nt(["all","axisLabel"],a)<0?(process.env.NODE_ENV!=="production"&&zt("Invalid grid["+e.componentIndex+"].outerBoundsContain."),o="all"):o=a;var s=[Hf(ct(e.get("outerBoundsClampWidth",!0),uu[0]),t.width),Hf(ct(e.get("outerBoundsClampHeight",!0),uu[1]),t.height)];return{outerBoundsRect:n,parsedOuterBoundsContain:o,outerBoundsClamp:s}}var wP=function(e,t,r,n,i,a){var o=r.axis.dim==="x"?"y":"x";yb(e,t,r,n,i,a),ia(e.nameLocation)||O(t.recordMap[o],function(s){s&&s.labelInfoList&&s.dirVec&&bb(s.labelInfoList,s.dirVec,n,i)})};function TP(e,t){var r={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return CP(r,e,t),r.seriesInvolved&&EP(r,e),r}function CP(e,t,r){var n=t.getComponent("tooltip"),i=t.getComponent("axisPointer"),a=i.get("link",!0)||[],o=[];O(r.getCoordinateSystems(),function(s){if(!s.axisPointerEnabled)return;var l=Io(s.model),u=e.coordSysAxesInfo[l]={};e.coordSysMap[l]=s;var f=s.model,c=f.getModel("tooltip",n);if(O(s.getAxes(),Kt(g,!1,null)),s.getTooltipAxes&&n&&c.get("show")){var d=c.get("trigger")==="axis",h=c.get(["axisPointer","type"])==="cross",v=s.getTooltipAxes(c.get(["axisPointer","axis"]));(d||h)&&O(v.baseAxes,Kt(g,h?"cross":!0,d)),h&&O(v.otherAxes,Kt(g,"cross",!1))}function g(m,p,y){var _=y.model.getModel("axisPointer",i),b=_.get("show");if(!(!b||b==="auto"&&!m&&!Ud(_))){p==null&&(p=_.get("triggerTooltip")),_=m?AP(y,c,i,t,m,p):_;var x=_.get("snap"),w=_.get("triggerEmphasis"),S=Io(y.model),L=p||x||y.type==="category",C=e.axesInfo[S]={key:S,axis:y,coordSys:s,axisPointerModel:_,triggerTooltip:p,triggerEmphasis:w,involveSeries:L,snap:x,useHandle:Ud(_),seriesModels:[],linkGroup:null};u[S]=C,e.seriesInvolved=e.seriesInvolved||L;var D=LP(a,y);if(D!=null){var I=o[D]||(o[D]={axesInfo:{}});I.axesInfo[S]=C,I.mapper=a[D].mapper,C.linkGroup=I}}}})}function AP(e,t,r,n,i,a){var o=t.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};O(s,function(d){l[d]=At(o.get(d))}),l.snap=e.type!=="category"&&!!a,o.get("type")==="cross"&&(l.type="line");var u=l.label||(l.label={});if(u.show==null&&(u.show=!1),i==="cross"){var f=o.get(["label","show"]);if(u.show=f??!0,!a){var c=l.lineStyle=o.get("crossStyle");c&&Bt(u,c.textStyle)}}return e.model.getModel("axisPointer",new Yt(l,r,n))}function EP(e,t){t.eachSeries(function(r){var n=r.coordinateSystem,i=r.get(["tooltip","trigger"],!0),a=r.get(["tooltip","show"],!0);!n||!n.model||i==="none"||i===!1||i==="item"||a===!1||r.get(["axisPointer","show"],!0)===!1||O(e.coordSysAxesInfo[Io(n.model)],function(o){var s=o.axis;n.getAxis(s.dim)===s&&(o.seriesModels.push(r),o.seriesDataCount==null&&(o.seriesDataCount=0),o.seriesDataCount+=r.getData().count())})})}function LP(e,t){for(var r=t.model,n=t.dim,i=0;i<e.length;i++){var a=e[i]||{};if(Gd(a[n+"AxisId"],r.id)||Gd(a[n+"AxisIndex"],r.componentIndex)||Gd(a[n+"AxisName"],r.name))return i}}function Gd(e,t){return e==="all"||st(e)&&Nt(e,t)>=0||e===t}function MP(e){var t=Hd(e);if(t){var r=t.axisPointerModel,n=t.axis.scale,i=r.option,a=r.get("status"),o=r.get("value");o!=null&&(o=n.parse(o));var s=Ud(r);a==null&&(i.status=s?"show":"hide");var l=n.getExtent().slice();l[0]>l[1]&&l.reverse(),(o==null||o>l[1])&&(o=l[1]),o<l[0]&&(o=l[0]),i.value=o,s&&(i.status=t.axis.scale.isBlank()?"hide":"show")}}function Hd(e){var t=(e.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return t&&t.axesInfo[Io(e)]}function DP(e){var t=Hd(e);return t&&t.axisPointerModel}function Ud(e){return!!e.get(["handle","show"])}function Io(e){return e.type+"||"+e.id}var Wd={},Pb=(function(e){it(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,i,a){this.axisPointerClass&&MP(r),e.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(r,i,!0)},t.prototype.updateAxisPointer=function(r,n,i,a){this._doUpdateAxisPointerClass(r,i,!1)},t.prototype.remove=function(r,n){var i=this._axisPointer;i&&i.remove(n)},t.prototype.dispose=function(r,n){this._disposeAxisPointer(n),e.prototype.dispose.apply(this,arguments)},t.prototype._doUpdateAxisPointerClass=function(r,n,i){var a=t.getAxisPointerClass(this.axisPointerClass);if(a){var o=DP(r);o?(this._axisPointer||(this._axisPointer=new a)).render(r,o,n,i):this._disposeAxisPointer(n)}},t.prototype._disposeAxisPointer=function(r){this._axisPointer&&this._axisPointer.dispose(r),this._axisPointer=null},t.registerAxisPointerClass=function(r,n){if(process.env.NODE_ENV!=="production"&&Wd[r])throw new Error("axisPointer "+r+" exists");Wd[r]=n},t.getAxisPointerClass=function(r){return r&&Wd[r]},t.type="axis",t})(ar),Zd=Zt();function IP(e,t,r,n){var i=r.axis;if(!i.scale.isBlank()){var a=r.getModel("splitArea"),o=a.getModel("areaStyle"),s=o.get("color"),l=n.coordinateSystem.getRect(),u=i.getTicksCoords({tickModel:a,clamp:!0,breakTicks:"none",pruneByBreak:"preserve_extent_bound"});if(u.length){var f=s.length,c=Zd(e).splitAreaColors,d=Tt(),h=0;if(c)for(var v=0;v<u.length;v++){var g=c.get(u[v].tickValue);if(g!=null){h=(g+(f-1)*v)%f;break}}var m=i.toGlobalCoord(u[0].coord),p=o.getAreaStyle();s=st(s)?s:[s];for(var v=1;v<u.length;v++){var y=i.toGlobalCoord(u[v].coord),_=void 0,b=void 0,x=void 0,w=void 0;i.isHorizontal()?(_=m,b=l.y,x=y-_,w=l.height,m=_+x):(_=l.x,b=m,x=l.width,w=y-b,m=b+w);var S=u[v-1].tickValue;S!=null&&d.set(S,h),t.add(new qt({anid:S!=null?"area_"+S:null,shape:{x:_,y:b,width:x,height:w},style:Bt({fill:s[h]},p),autoBatch:!0,silent:!0})),h=(h+1)%f}Zd(e).splitAreaColors=d}}}function kP(e){Zd(e).splitAreaColors=null}var PP=["splitArea","splitLine","minorSplitLine","breakArea"],Nb=(function(e){it(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.axisPointerClass="CartesianAxisPointer",r}return t.prototype.render=function(r,n,i,a){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new ne,this.group.add(this._axisGroup),!!xo(r)){this._axisGroup.add(r.axis.axisBuilder.group),O(PP,function(l){r.get([l,"show"])&&NP[l](this,this._axisGroup,r,r.getCoordSysModel(),i)},this);var s=a&&a.type==="changeAxisOrder"&&a.isInitSort;s||L0(o,this._axisGroup,r),e.prototype.render.call(this,r,n,i,a)}},t.prototype.remove=function(){kP(this)},t.type="cartesianAxis",t})(Pb),NP={splitLine:function(e,t,r,n,i){var a=r.axis;if(!a.scale.isBlank()){var o=r.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=o.get("showMinLine")!==!1,f=o.get("showMaxLine")!==!1;l=st(l)?l:[l];for(var c=n.coordinateSystem.getRect(),d=a.isHorizontal(),h=0,v=a.getTicksCoords({tickModel:o,breakTicks:"none",pruneByBreak:"preserve_extent_bound"}),g=[],m=[],p=s.getLineStyle(),y=0;y<v.length;y++){var _=a.toGlobalCoord(v[y].coord);if(!(y===0&&!u||y===v.length-1&&!f)){var b=v[y].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 x=h++%l.length,w=new sn({anid:b!=null?"line_"+b:null,autoBatch:!0,shape:{x1:g[0],y1:g[1],x2:m[0],y2:m[1]},style:Bt({stroke:l[x]},p),silent:!0});Za(w.shape,p.lineWidth),t.add(w)}}}},minorSplitLine:function(e,t,r,n,i){var a=r.axis,o=r.getModel("minorSplitLine"),s=o.getModel("lineStyle"),l=n.coordinateSystem.getRect(),u=a.isHorizontal(),f=a.getMinorTicksCoords();if(f.length)for(var c=[],d=[],h=s.getLineStyle(),v=0;v<f.length;v++)for(var g=0;g<f[v].length;g++){var m=a.toGlobalCoord(f[v][g].coord);u?(c[0]=m,c[1]=l.y,d[0]=m,d[1]=l.y+l.height):(c[0]=l.x,c[1]=m,d[0]=l.x+l.width,d[1]=m);var p=new sn({anid:"minor_line_"+f[v][g].tickValue,autoBatch:!0,shape:{x1:c[0],y1:c[1],x2:d[0],y2:d[1]},style:h,silent:!0});Za(p.shape,h.lineWidth),t.add(p)}},splitArea:function(e,t,r,n,i){IP(e,t,r,n)},breakArea:function(e,t,r,n,i){r.axis.scale}},$b=(function(e){it(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="xAxis",t})(Nb),$P=(function(e){it(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=$b.type,r}return t.type="yAxis",t})(Nb),OP=(function(e){it(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="grid",r}return t.prototype.render=function(r,n){this.group.removeAll(),r.get("show")&&this.group.add(new qt({shape:r.coordinateSystem.getRect(),style:Bt({fill:r.get("backgroundColor")},r.getItemStyle()),silent:!0,z2:-1}))},t.type="grid",t})(ar),Ob={offset:0};function Rb(e){e.registerComponentView(OP),e.registerComponentModel(Hk),e.registerCoordinateSystem("cartesian2d",_P),db(e,"x",Od,Ob),db(e,"y",Od,Ob),e.registerComponentView($b),e.registerComponentView($P),e.registerPreprocessor(function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})})}function RP(e){Ur(Rb),e.registerSeriesModel(Bk),e.registerChartView(Gk),e.registerLayout(Id("scatter"))}var di=Zt(),Bb=At,Yd=Ft,BP=(function(){function e(){this._dragging=!1,this.animationThreshold=15}return e.prototype.render=function(t,r,n,i){var a=r.get("value"),o=r.get("status");if(this._axisModel=t,this._axisPointerModel=r,this._api=n,!(!i&&this._lastValue===a&&this._lastStatus===o)){this._lastValue=a,this._lastStatus=o;var s=this._group,l=this._handle;if(!o||o==="hide"){s&&s.hide(),l&&l.hide();return}s&&s.show(),l&&l.show();var u={};this.makeElOption(u,a,t,r,n);var f=u.graphicKey;f!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=f;var c=this._moveAnimation=this.determineAnimation(t,r);if(!s)s=this._group=new ne,this.createPointerEl(s,u,t,r),this.createLabelEl(s,u,t,r),n.getZr().add(s);else{var d=Kt(Fb,r,c);this.updatePointerEl(s,u,d),this.updateLabelEl(s,u,d,r)}Gb(s,r,!0),this._renderHandle(a)}},e.prototype.remove=function(t){this.clear(t)},e.prototype.dispose=function(t){this.clear(t)},e.prototype.determineAnimation=function(t,r){var n=r.get("animation"),i=t.axis,a=i.type==="category",o=r.get("snap");if(!o&&!a)return!1;if(n==="auto"||n==null){var s=this.animationThreshold;if(a&&i.getBandWidth()>s)return!0;if(o){var l=Hd(t).seriesDataCount,u=i.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return n===!0},e.prototype.makeElOption=function(t,r,n,i,a){},e.prototype.createPointerEl=function(t,r,n,i){var a=r.pointer;if(a){var o=di(t).pointerEl=new QC[a.type](Bb(r.pointer));t.add(o)}},e.prototype.createLabelEl=function(t,r,n,i){if(r.label){var a=di(t).labelEl=new fe(Bb(r.label));t.add(a),Vb(a,i)}},e.prototype.updatePointerEl=function(t,r,n){var i=di(t).pointerEl;i&&r.pointer&&(i.setStyle(r.pointer.style),n(i,{shape:r.pointer.shape}))},e.prototype.updateLabelEl=function(t,r,n,i){var a=di(t).labelEl;a&&(a.setStyle(r.label.style),n(a,{x:r.label.x,y:r.label.y}),Vb(a,i))},e.prototype._renderHandle=function(t){if(!(this._dragging||!this.updateHandleTransform)){var r=this._axisPointerModel,n=this._api.getZr(),i=this._handle,a=r.getModel("handle"),o=r.get("status");if(!a.get("show")||!o||o==="hide"){i&&n.remove(i),this._handle=null;return}var s;this._handle||(s=!0,i=this._handle=Bc(a.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){jv(u.event)},onmousedown:Yd(this._onHandleDragMove,this,0,0),drift:Yd(this._onHandleDragMove,this),ondragend:Yd(this._onHandleDragEnd,this)}),n.add(i)),Gb(i,r,!1),i.setStyle(a.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=a.get("size");st(l)||(l=[l,l]),i.scaleX=l[0]/2,i.scaleY=l[1]/2,sy(this,"_doDispatchAxisPointer",a.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,s)}},e.prototype._moveHandleToValue=function(t,r){Fb(this._axisPointerModel,!r&&this._moveAnimation,this._handle,Xd(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},e.prototype._onHandleDragMove=function(t,r){var n=this._handle;if(n){this._dragging=!0;var i=this.updateHandleTransform(Xd(n),[t,r],this._axisModel,this._axisPointerModel);this._payloadInfo=i,n.stopAnimation(),n.attr(Xd(i)),di(n).lastProp=null,this._doDispatchAxisPointer()}},e.prototype._doDispatchAxisPointer=function(){var t=this._handle;if(t){var r=this._payloadInfo,n=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:r.cursorPoint[0],y:r.cursorPoint[1],tooltipOption:r.tooltipOption,axesInfo:[{axisDim:n.axis.dim,axisIndex:n.componentIndex}]})}},e.prototype._onHandleDragEnd=function(){this._dragging=!1;var t=this._handle;if(t){var r=this._axisPointerModel.get("value");this._moveHandleToValue(r),this._api.dispatchAction({type:"hideTip"})}},e.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var r=t.getZr(),n=this._group,i=this._handle;r&&n&&(this._lastGraphicKey=null,n&&r.remove(n),i&&r.remove(i),this._group=null,this._handle=null,this._payloadInfo=null),Lh(this,"_doDispatchAxisPointer")},e.prototype.doClear=function(){},e.prototype.buildLabel=function(t,r,n){return n=n||0,{x:t[n],y:t[1-n],width:r[n],height:r[1-n]}},e})();function Fb(e,t,r,n){zb(di(r).lastProp,n)||(di(r).lastProp=n,t?we(r,n,e):(r.stopAnimation(),r.attr(n)))}function zb(e,t){if(pt(e)&&pt(t)){var r=!0;return O(t,function(n,i){r=r&&zb(e[i],n)}),!!r}else return e===t}function Vb(e,t){e[t.get(["label","show"])?"show":"hide"]()}function Xd(e){return{x:e.x||0,y:e.y||0,rotation:e.rotation||0}}function Gb(e,t,r){var n=t.get("z"),i=t.get("zlevel");e&&e.traverse(function(a){a.type!=="group"&&(n!=null&&(a.z=n),i!=null&&(a.zlevel=i),a.silent=r)})}function FP(e){var t=e.get("type"),r=e.getModel(t+"Style"),n;return t==="line"?(n=r.getLineStyle(),n.fill=null):t==="shadow"&&(n=r.getAreaStyle(),n.stroke=null),n}function zP(e,t,r,n,i){var a=r.get("value"),o=Hb(a,t.axis,t.ecModel,r.get("seriesDataIndices"),{precision:r.get(["label","precision"]),formatter:r.get(["label","formatter"])}),s=r.getModel("label"),l=ml(s.get("padding")||0),u=s.getFont(),f=Wp(o,u),c=i.position,d=f.width+l[1]+l[3],h=f.height+l[0]+l[2],v=i.align;v==="right"&&(c[0]-=d),v==="center"&&(c[0]-=d/2);var g=i.verticalAlign;g==="bottom"&&(c[1]-=h),g==="middle"&&(c[1]-=h/2),VP(c,d,h,n);var m=s.get("backgroundColor");(!m||m==="auto")&&(m=t.get(["axisLine","lineStyle","color"])),e.label={x:c[0],y:c[1],style:un(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:m}),z2:10}}function VP(e,t,r,n){var i=n.getWidth(),a=n.getHeight();e[0]=Math.min(e[0]+t,i)-t,e[1]=Math.min(e[1]+r,a)-r,e[0]=Math.max(e[0],0),e[1]=Math.max(e[1],0)}function Hb(e,t,r,n,i){e=t.scale.parse(e);var a=t.scale.getLabel({value:e},{precision:i.precision}),o=i.formatter;if(o){var s={value:Kl(t,{value:e}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};O(n,function(l){var u=r.getSeriesByIndex(l.seriesIndex),f=l.dataIndexInside,c=u&&u.getDataParams(f);c&&s.seriesData.push(c)}),ut(o)?a=o.replace("{value}",a):_t(o)&&(a=o(s))}return a}function Ub(e,t,r){var n=Pr();return tf(n,n,r.rotation),Ju(n,n,r.position),Rc([e.dataToCoord(t),(r.labelOffset||0)+(r.labelDirection||1)*(r.labelMargin||0)],n)}function GP(e,t,r,n,i,a){var o=Tn.innerTextLayout(r.rotation,0,r.labelDirection);r.labelMargin=i.get(["label","margin"]),zP(t,n,i,a,{position:Ub(n.axis,e,r),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function HP(e,t,r){return r=r||0,{x1:e[r],y1:e[1-r],x2:t[r],y2:t[1-r]}}function UP(e,t,r){return r=r||0,{x:e[r],y:e[1-r],width:t[r],height:t[1-r]}}var WP=(function(e){it(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.makeElOption=function(r,n,i,a,o){var s=i.axis,l=s.grid,u=a.get("type"),f=Wb(l,s).getOtherAxis(s).getGlobalExtent(),c=s.toGlobalCoord(s.dataToCoord(n,!0));if(u&&u!=="none"){var d=FP(a),h=ZP[u](s,c,f);h.style=d,r.graphicKey=h.type,r.pointer=h}var v=cu(l.getRect(),i);GP(n,r,v,i,a,o)},t.prototype.getHandleTransform=function(r,n,i){var a=cu(n.axis.grid.getRect(),n,{labelInside:!1});a.labelMargin=i.get(["handle","margin"]);var o=Ub(n.axis,r,a);return{x:o[0],y:o[1],rotation:a.rotation+(a.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(r,n,i,a){var o=i.axis,s=o.grid,l=o.getGlobalExtent(!0),u=Wb(s,o).getOtherAxis(o).getGlobalExtent(),f=o.dim==="x"?0:1,c=[r.x,r.y];c[f]+=n[f],c[f]=Math.min(l[1],c[f]),c[f]=Math.max(l[0],c[f]);var d=(u[1]+u[0])/2,h=[d,d];h[f]=c[f];var v=[{verticalAlign:"middle"},{align:"center"}];return{x:c[0],y:c[1],rotation:r.rotation,cursorPoint:h,tooltipOption:v[f]}},t})(BP);function Wb(e,t){var r={};return r[t.dim+"AxisIndex"]=t.index,e.getCartesian(r)}var ZP={line:function(e,t,r){var n=HP([t,r[0]],[t,r[1]],Zb(e));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(e,t,r){var n=Math.max(1,e.getBandWidth()),i=r[1]-r[0];return{type:"Rect",shape:UP([t-n/2,r[0]],[n,i],Zb(e))}}};function Zb(e){return e.dim==="x"?0:1}var YP=(function(e){it(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="axisPointer",t.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:dt.color.border,width:1,type:"dashed"},shadowStyle:{color:dt.color.shadowTint},label:{show:!0,formatter:null,precision:"auto",margin:3,color:dt.color.neutral00,padding:[5,7,5,7],backgroundColor:dt.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:dt.color.accent40,throttle:40}},t})(kt),Zr=Zt(),XP=O;function Yb(e,t,r){if(!xt.node){var n=t.getZr();Zr(n).records||(Zr(n).records={}),qP(n,t);var i=Zr(n).records[e]||(Zr(n).records[e]={});i.handler=r}}function qP(e,t){if(Zr(e).initialized)return;Zr(e).initialized=!0,r("click",Kt(Xb,"click")),r("mousemove",Kt(Xb,"mousemove")),r("globalout",QP);function r(n,i){e.on(n,function(a){var o=KP(t);XP(Zr(e).records,function(s){s&&i(s,a,o.dispatchAction)}),jP(o.pendings,t)})}}function jP(e,t){var r=e.showTip.length,n=e.hideTip.length,i;r?i=e.showTip[r-1]:n&&(i=e.hideTip[n-1]),i&&(i.dispatchAction=null,t.dispatchAction(i))}function QP(e,t,r){e.handler("leave",null,r)}function Xb(e,t,r,n){t.handler(e,r,n)}function KP(e){var t={showTip:[],hideTip:[]},r=function(n){var i=t[n.type];i?i.push(n):(n.dispatchAction=r,e.dispatchAction(n))};return{dispatchAction:r,pendings:t}}function qd(e,t){if(!xt.node){var r=t.getZr(),n=(Zr(r).records||{})[e];n&&(Zr(r).records[e]=null)}}var JP=(function(e){it(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,i){var a=n.getComponent("tooltip"),o=r.get("triggerOn")||a&&a.get("triggerOn")||"mousemove|click";Yb("axisPointer",i,function(s,l,u){o!=="none"&&(s==="leave"||o.indexOf(s)>=0)&&u({type:"updateAxisPointer",currTrigger:s,x:l&&l.offsetX,y:l&&l.offsetY})})},t.prototype.remove=function(r,n){qd("axisPointer",n)},t.prototype.dispose=function(r,n){qd("axisPointer",n)},t.type="axisPointer",t})(ar);function qb(e,t){var r=[],n=e.seriesIndex,i;if(n==null||!(i=t.getSeriesByIndex(n)))return{point:[]};var a=i.getData(),o=On(a,e);if(o==null||o<0||st(o))return{point:[]};var s=a.getItemGraphicEl(o),l=i.coordinateSystem;if(i.getTooltipPosition)r=i.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(e.isStacked){var u=l.getBaseAxis(),f=l.getOtherAxis(u),c=f.dim,d=u.dim,h=c==="x"||c==="radius"?1:0,v=a.mapDimension(d),g=[];g[h]=a.get(v,o),g[1-h]=a.get(a.getCalculationInfo("stackResultDimension"),o),r=l.dataToPoint(g)||[]}else r=l.dataToPoint(a.getValues(ft(l.dimensions,function(p){return a.mapDimension(p)}),o))||[];else if(s){var m=s.getBoundingRect().clone();m.applyTransform(s.transform),r=[m.x+m.width/2,m.y+m.height/2]}return{point:r,el:s}}var jb=Zt();function tN(e,t,r){var n=e.currTrigger,i=[e.x,e.y],a=e,o=e.dispatchAction||Ft(r.dispatchAction,r),s=t.getComponent("axisPointer").coordSysAxesInfo;if(s){hu(i)&&(i=qb({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},t).point);var l=hu(i),u=a.axesInfo,f=s.axesInfo,c=n==="leave"||hu(i),d={},h={},v={list:[],map:{}},g={showPointer:Kt(rN,h),showTooltip:Kt(nN,v)};O(s.coordSysMap,function(p,y){var _=l||p.containPoint(i);O(s.coordSysAxesInfo[y],function(b,x){var w=b.axis,S=sN(u,b);if(!c&&_&&(!u||S)){var L=S&&S.value;L==null&&!l&&(L=w.pointToData(i)),L!=null&&Qb(b,L,g,!1,d)}})});var m={};return O(f,function(p,y){var _=p.linkGroup;_&&!h[y]&&O(_.axesInfo,function(b,x){var w=h[x];if(b!==p&&w){var S=w.value;_.mapper&&(S=p.axis.scale.parse(_.mapper(S,Kb(b),Kb(p)))),m[p.key]=S}})}),O(m,function(p,y){Qb(f[y],p,g,!0,d)}),iN(h,f,d),aN(v,i,e,o),oN(f,o,r),d}}function Qb(e,t,r,n,i){var a=e.axis;if(!(a.scale.isBlank()||!a.containData(t))){if(!e.involveSeries){r.showPointer(e,t);return}var o=eN(t,e),s=o.payloadBatch,l=o.snapToValue;s[0]&&i.seriesIndex==null&&et(i,s[0]),!n&&e.snap&&a.containData(l)&&l!=null&&(t=l),r.showPointer(e,t,s),r.showTooltip(e,o,l)}}function eN(e,t){var r=t.axis,n=r.dim,i=e,a=[],o=Number.MAX_VALUE,s=-1;return O(t.seriesModels,function(l,u){var f=l.getData().mapDimensionsAll(n),c,d;if(l.getAxisTooltipData){var h=l.getAxisTooltipData(f,e,r);d=h.dataIndices,c=h.nestestValue}else{if(d=l.indicesOfNearest(n,f[0],e,r.type==="category"?.5:null),!d.length)return;c=l.getData().get(f[0],d[0])}if(!(c==null||!isFinite(c))){var v=e-c,g=Math.abs(v);g<=o&&((g<o||v>=0&&s<0)&&(o=g,s=v,i=c,a.length=0),O(d,function(m){a.push({seriesIndex:l.seriesIndex,dataIndexInside:m,dataIndex:l.getData().getRawIndex(m)})}))}}),{payloadBatch:a,snapToValue:i}}function rN(e,t,r,n){e[t.key]={value:r,payloadBatch:n}}function nN(e,t,r,n){var i=r.payloadBatch,a=t.axis,o=a.model,s=t.axisPointerModel;if(!(!t.triggerTooltip||!i.length)){var l=t.coordSys.model,u=Io(l),f=e.map[u];f||(f=e.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},e.list.push(f)),f.dataByAxis.push({axisDim:a.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:n,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:i.slice()})}}function iN(e,t,r){var n=r.axesInfo=[];O(t,function(i,a){var o=i.axisPointerModel.option,s=e[a];s?(!i.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!i.useHandle&&(o.status="hide"),o.status==="show"&&n.push({axisDim:i.axis.dim,axisIndex:i.axis.model.componentIndex,value:o.value})})}function aN(e,t,r,n){if(hu(t)||!e.list.length){n({type:"hideTip"});return}var i=((e.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};n({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:r.tooltipOption,position:r.position,dataIndexInside:i.dataIndexInside,dataIndex:i.dataIndex,seriesIndex:i.seriesIndex,dataByCoordSys:e.list})}function oN(e,t,r){var n=r.getZr(),i="axisPointerLastHighlights",a=jb(n)[i]||{},o=jb(n)[i]={};O(e,function(u,f){var c=u.axisPointerModel.option;c.status==="show"&&u.triggerEmphasis&&O(c.seriesDataIndices,function(d){var h=d.seriesIndex+" | "+d.dataIndex;o[h]=d})});var s=[],l=[];O(a,function(u,f){!o[f]&&l.push(u)}),O(o,function(u,f){!a[f]&&s.push(u)}),l.length&&r.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&r.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function sN(e,t){for(var r=0;r<(e||[]).length;r++){var n=e[r];if(t.axis.dim===n.axisDim&&t.axis.model.componentIndex===n.axisIndex)return n}}function Kb(e){var t=e.axis.model,r={},n=r.axisDim=e.axis.dim;return r.axisIndex=r[n+"AxisIndex"]=t.componentIndex,r.axisName=r[n+"AxisName"]=t.name,r.axisId=r[n+"AxisId"]=t.id,r}function hu(e){return!e||e[0]==null||isNaN(e[0])||e[1]==null||isNaN(e[1])}function Jb(e){Pb.registerAxisPointerClass("CartesianAxisPointer",WP),e.registerComponentModel(YP),e.registerComponentView(JP),e.registerPreprocessor(function(t){if(t){(!t.axisPointer||t.axisPointer.length===0)&&(t.axisPointer={});var r=t.axisPointer.link;r&&!st(r)&&(t.axisPointer.link=[r])}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,function(t,r){t.getComponent("axisPointer").coordSysAxesInfo=TP(t,r)}),e.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},tN)}function lN(e){Ur(Rb),Ur(Jb)}function uN(e,t){var r=ml(t.get("padding")),n=t.getItemStyle(["color","opacity"]);n.fill=t.get("backgroundColor");var i=new qt({shape:{x:e.x-r[3],y:e.y-r[0],width:e.width+r[1]+r[3],height:e.height+r[0]+r[2],r:t.get("borderRadius")},style:n,silent:!0,z2:-1});return i}var fN=(function(e){it(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="tooltip",t.dependencies=["axisPointer"],t.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,displayTransition:!0,enterable:!1,backgroundColor:dt.color.neutral00,shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,defaultBorderColor:dt.color.border,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:dt.color.borderShade,width:1,type:"dashed",textStyle:{}}},textStyle:{color:dt.color.tertiary,fontSize:14}},t})(kt);function tS(e){var t=e.get("confine");return t!=null?!!t:e.get("renderMode")==="richText"}function eS(e){if(xt.domSupported){for(var t=document.documentElement.style,r=0,n=e.length;r<n;r++)if(e[r]in t)return e[r]}}var rS=eS(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),cN=eS(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function nS(e,t){if(!e)return t;t=em(t,!0);var r=e.indexOf(t);return e=r===-1?t:"-"+e.slice(0,r)+"-"+t,e.toLowerCase()}function hN(e,t){var r=e.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(e);return r?r[t]:null}var dN=nS(cN,"transition"),jd=nS(rS,"transform"),vN="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(xt.transform3dSupported?"will-change:transform;":"");function pN(e){return e=e==="left"?"right":e==="right"?"left":e==="top"?"bottom":"top",e}function gN(e,t,r){if(!ut(r)||r==="inside")return"";var n=e.get("backgroundColor"),i=e.get("borderWidth");t=Kn(t);var a=pN(r),o=Math.max(Math.round(i)*1.5,6),s="",l=jd+":",u;Nt(["left","right"],a)>-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u=a==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u=a==="top"?225:45)+"deg)");var f=u*Math.PI/180,c=o+i,d=c*Math.abs(Math.cos(f))+c*Math.abs(Math.sin(f)),h=Math.round(((d-Math.SQRT2*i)/2+Math.SQRT2*i-(d-c)/2)*100)/100;s+=";"+a+":-"+h+"px";var v=t+" solid "+i+"px;",g=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+l+";","border-bottom:"+v,"border-right:"+v,"background-color:"+n+";"];return'<div style="'+g.join("")+'"></div>'}function mN(e,t,r){var n="cubic-bezier(0.23,1,0.32,1)",i="",a="";return r&&(i=" "+e/2+"s "+n,a="opacity"+i+",visibility"+i),t||(i=" "+e+"s "+n,a+=(a.length?",":"")+(xt.transformSupported?""+jd+i:",left"+i+",top"+i)),dN+":"+a}function iS(e,t,r){var n=e.toFixed(0)+"px",i=t.toFixed(0)+"px";if(!xt.transformSupported)return r?"top:"+i+";left:"+n+";":[["top",i],["left",n]];var a=xt.transform3dSupported,o="translate"+(a?"3d":"")+"("+n+","+i+(a?",0":"")+")";return r?"top:0;left:0;"+jd+":"+o+";":[["top",0],["left",0],[rS,o]]}function yN(e){var t=[],r=e.get("fontSize"),n=e.getTextColor();n&&t.push("color:"+n),t.push("font:"+e.getFont());var i=ct(e.get("lineHeight"),Math.round(r*3/2));r&&t.push("line-height:"+i+"px");var a=e.get("textShadowColor"),o=e.get("textShadowBlur")||0,s=e.get("textShadowOffsetX")||0,l=e.get("textShadowOffsetY")||0;return a&&o&&t.push("text-shadow:"+s+"px "+l+"px "+o+"px "+a),O(["decoration","align"],function(u){var f=e.get(u);f&&t.push("text-"+u+":"+f)}),t.join(";")}function _N(e,t,r,n){var i=[],a=e.get("transitionDuration"),o=e.get("backgroundColor"),s=e.get("shadowBlur"),l=e.get("shadowColor"),u=e.get("shadowOffsetX"),f=e.get("shadowOffsetY"),c=e.getModel("textStyle"),d=Jm(e,"html"),h=u+"px "+f+"px "+s+"px "+l;return i.push("box-shadow:"+h),t&&a>0&&i.push(mN(a,r,n)),o&&i.push("background-color:"+o),O(["width","color","radius"],function(v){var g="border-"+v,m=em(g),p=e.get(m);p!=null&&i.push(g+":"+p+(v==="color"?"":"px"))}),i.push(yN(c)),d!=null&&i.push("padding:"+ml(d).join("px ")+"px"),i.join(";")+";"}function aS(e,t,r,n,i){var a=t&&t.painter;if(r){var o=a&&a.getViewportRoot();o&&nw(e,o,r,n,i)}else{e[0]=n,e[1]=i;var s=a&&a.getViewportRootOffset();s&&(e[0]+=s.offsetLeft,e[1]+=s.offsetTop)}e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var bN=(function(){function e(t,r){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,xt.wxa)return null;var n=document.createElement("div");n.domBelongToZr=!0,this.el=n;var i=this._zr=t.getZr(),a=r.appendTo,o=a&&(ut(a)?document.querySelector(a):mi(a)?a:_t(a)&&a(t.getDom()));aS(this._styleCoord,i,o,t.getWidth()/2,t.getHeight()/2),(o||t.getDom()).appendChild(n),this._api=t,this._container=o;var s=this;n.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},n.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=i.handler,f=i.painter.getViewportRoot();Re(f,l,!0),u.dispatch("mousemove",l)}},n.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return e.prototype.update=function(t){if(!this._container){var r=this._api.getDom(),n=hN(r,"position"),i=r.style;i.position!=="absolute"&&n!=="absolute"&&(i.position="relative")}var a=t.get("alwaysShowContent");a&&this._moveIfResized(),this._alwaysShowContent=a,this._enableDisplayTransition=t.get("displayTransition")&&t.get("transitionDuration")>0,this.el.className=t.get("className")||""},e.prototype.show=function(t,r){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,i=n.style,a=this._styleCoord;n.innerHTML?i.cssText=vN+_N(t,!this._firstShow,this._longHide,this._enableDisplayTransition)+iS(a[0],a[1],!0)+("border-color:"+Kn(r)+";")+(t.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):i.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},e.prototype.setContent=function(t,r,n,i,a){var o=this.el;if(t==null){o.innerHTML="";return}var s="";if(ut(a)&&n.get("trigger")==="item"&&!tS(n)&&(s=gN(n,i,a)),ut(t))o.innerHTML=t+s;else if(t){o.innerHTML="",st(t)||(t=[t]);for(var l=0;l<t.length;l++)mi(t[l])&&t[l].parentNode!==o&&o.appendChild(t[l]);if(s&&o.childNodes.length){var u=document.createElement("div");u.innerHTML=s,o.appendChild(u)}}},e.prototype.setEnterable=function(t){this._enterable=t},e.prototype.getSize=function(){var t=this.el;return t?[t.offsetWidth,t.offsetHeight]:[0,0]},e.prototype.moveTo=function(t,r){if(this.el){var n=this._styleCoord;if(aS(n,this._zr,this._container,t,r),n[0]!=null&&n[1]!=null){var i=this.el.style,a=iS(n[0],n[1]);O(a,function(o){i[o[0]]=o[1]})}}},e.prototype._moveIfResized=function(){var t=this._styleCoord[2],r=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),r*this._zr.getHeight())},e.prototype.hide=function(){var t=this,r=this.el.style;this._enableDisplayTransition?(r.visibility="hidden",r.opacity="0"):r.display="none",xt.transform3dSupported&&(r.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return t._longHide=!0},500)},e.prototype.hideLater=function(t){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(Ft(this.hide,this),t)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var t=this._zr;iw(t&&t.painter&&t.painter.getViewportRoot(),this._container);var r=this.el;if(r){r.onmouseenter=r.onmousemove=r.onmouseleave=null;var n=r.parentNode;n&&n.removeChild(r)}this.el=this._container=null},e})(),SN=(function(){function e(t){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=t.getZr(),sS(this._styleCoord,this._zr,t.getWidth()/2,t.getHeight()/2)}return e.prototype.update=function(t){var r=t.get("alwaysShowContent");r&&this._moveIfResized(),this._alwaysShowContent=r},e.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},e.prototype.setContent=function(t,r,n,i,a){var o=this;pt(t)&&Ee(process.env.NODE_ENV!=="production"?"Passing DOM nodes as content is not supported in richText tooltip!":""),this.el&&this._zr.remove(this.el);var s=n.getModel("textStyle");this.el=new fe({style:{rich:r.richTextStyles,text:t,lineHeight:22,borderWidth:1,borderColor:i,textShadowColor:s.get("textShadowColor"),fill:n.get(["textStyle","color"]),padding:Jm(n,"richText"),verticalAlign:"top",align:"left"},z:n.get("z")}),O(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(u){o.el.style[u]=n.get(u)}),O(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(u){o.el.style[u]=s.get(u)||0}),this._zr.add(this.el);var l=this;this.el.on("mouseover",function(){l._enterable&&(clearTimeout(l._hideTimeout),l._show=!0),l._inContent=!0}),this.el.on("mouseout",function(){l._enterable&&l._show&&l.hideLater(l._hideDelay),l._inContent=!1})},e.prototype.setEnterable=function(t){this._enterable=t},e.prototype.getSize=function(){var t=this.el,r=this.el.getBoundingRect(),n=oS(t.style);return[r.width+n.left+n.right,r.height+n.top+n.bottom]},e.prototype.moveTo=function(t,r){var n=this.el;if(n){var i=this._styleCoord;sS(i,this._zr,t,r),t=i[0],r=i[1];var a=n.style,o=Cn(a.borderWidth||0),s=oS(a);n.x=t+o+s.left,n.y=r+o+s.top,n.markRedraw()}},e.prototype._moveIfResized=function(){var t=this._styleCoord[2],r=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),r*this._zr.getHeight())},e.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},e.prototype.hideLater=function(t){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(Ft(this.hide,this),t)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){this._zr.remove(this.el)},e})();function Cn(e){return Math.max(0,e)}function oS(e){var t=Cn(e.shadowBlur||0),r=Cn(e.shadowOffsetX||0),n=Cn(e.shadowOffsetY||0);return{left:Cn(t-r),right:Cn(t+r),top:Cn(t-n),bottom:Cn(t+n)}}function sS(e,t,r,n){e[0]=r,e[1]=n,e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var xN=new qt({shape:{x:-1,y:-1,width:2,height:2}}),wN=(function(e){it(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(r,n){if(!(xt.node||!n.getDom())){var i=r.getComponent("tooltip"),a=this._renderMode=V2(i.get("renderMode"));this._tooltipContent=a==="richText"?new SN(n):new bN(n,{appendTo:i.get("appendToBody",!0)?"body":i.get("appendTo",!0)})}},t.prototype.render=function(r,n,i){if(!(xt.node||!i.getDom())){this.group.removeAll(),this._tooltipModel=r,this._ecModel=n,this._api=i;var a=this._tooltipContent;a.update(r),a.setEnterable(r.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&r.get("transitionDuration")?sy(this,"_updatePosition",50,"fixRate"):Lh(this,"_updatePosition")}},t.prototype._initGlobalListener=function(){var r=this._tooltipModel,n=r.get("triggerOn");Yb("itemTooltip",this._api,Ft(function(i,a,o){n!=="none"&&(n.indexOf(i)>=0?this._tryShow(a,o):i==="leave"&&this._hide(o))},this))},t.prototype._keepShow=function(){var r=this._tooltipModel,n=this._ecModel,i=this._api,a=r.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&a!=="none"&&a!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!i.isDisposed()&&o.manuallyShowTip(r,n,i,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(r,n,i,a){if(!(a.from===this.uid||xt.node||!i.getDom())){var o=lS(a,i);this._ticket="";var s=a.dataByCoordSys,l=EN(a,n,i);if(l){var u=l.el.getBoundingRect().clone();u.applyTransform(l.el.transform),this._tryShow({offsetX:u.x+u.width/2,offsetY:u.y+u.height/2,target:l.el,position:a.position,positionDefault:"bottom"},o)}else if(a.tooltip&&a.x!=null&&a.y!=null){var f=xN;f.x=a.x,f.y=a.y,f.update(),Lt(f).tooltipConfig={name:null,option:a.tooltip},this._tryShow({offsetX:a.x,offsetY:a.y,target:f},o)}else if(s)this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,dataByCoordSys:s,tooltipOption:a.tooltipOption},o);else if(a.seriesIndex!=null){if(this._manuallyAxisShowTip(r,n,i,a))return;var c=qb(a,n),d=c.point[0],h=c.point[1];d!=null&&h!=null&&this._tryShow({offsetX:d,offsetY:h,target:c.el,position:a.position,positionDefault:"bottom"},o)}else a.x!=null&&a.y!=null&&(i.dispatchAction({type:"updateAxisPointer",x:a.x,y:a.y}),this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,target:i.getZr().findHover(a.x,a.y).target},o))}},t.prototype.manuallyHideTip=function(r,n,i,a){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,a.from!==this.uid&&this._hide(lS(a,i))},t.prototype._manuallyAxisShowTip=function(r,n,i,a){var o=a.seriesIndex,s=a.dataIndex,l=n.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||l==null)){var u=n.getSeriesByIndex(o);if(u){var f=u.getData(),c=ko([f.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(c.get("trigger")==="axis")return i.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:a.position}),!0}}},t.prototype._tryShow=function(r,n){var i=r.target,a=this._tooltipModel;if(a){this._lastX=r.offsetX,this._lastY=r.offsetY;var o=r.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,r);else if(i){var s=Lt(i);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null;var l,u;ho(i,function(f){if(f.tooltipDisabled)return l=u=null,!0;l||u||(Lt(f).dataIndex!=null?l=f:Lt(f).tooltipConfig!=null&&(u=f))},!0),l?this._showSeriesItemTooltip(r,l,n):u?this._showComponentItemTooltip(r,u,n):this._hide(n)}else this._lastDataByCoordSys=null,this._hide(n)}},t.prototype._showOrMove=function(r,n){var i=r.get("showDelay");n=Ft(n,this),clearTimeout(this._showTimout),i>0?this._showTimout=setTimeout(n,i):n()},t.prototype._showAxisTooltip=function(r,n){var i=this._ecModel,a=this._tooltipModel,o=[n.offsetX,n.offsetY],s=ko([n.tooltipOption],a),l=this._renderMode,u=[],f=lo("section",{blocks:[],noHeader:!0}),c=[],d=new Th;O(r,function(y){O(y.dataByAxis,function(_){var b=i.getComponent(_.axisDim+"Axis",_.axisIndex),x=_.value;if(!(!b||x==null)){var w=Hb(x,b.axis,i,_.seriesDataIndices,_.valueLabelOpt),S=lo("section",{header:w,noHeader:!fr(w),sortBlocks:!0,blocks:[]});f.blocks.push(S),O(_.seriesDataIndices,function(L){var C=i.getSeriesByIndex(L.seriesIndex),D=L.dataIndexInside,I=C.getDataParams(D);if(!(I.dataIndex<0)){I.axisDim=_.axisDim,I.axisIndex=_.axisIndex,I.axisType=_.axisType,I.axisId=_.axisId,I.axisValue=Kl(b.axis,{value:x}),I.axisValueLabel=w,I.marker=d.makeTooltipMarker("item",Kn(I.color),l);var A=Fm(C.formatTooltip(D,!0,null)),M=A.frag;if(M){var T=ko([C],a).get("valueFormatter");S.blocks.push(T?et({valueFormatter:T},M):M)}A.text&&c.push(A.text),u.push(I)}})}})}),f.blocks.reverse(),c.reverse();var h=n.position,v=s.get("order"),g=Qm(f,d,l,v,i.get("useUTC"),s.get("textStyle"));g&&c.unshift(g);var m=l==="richText"?`
|
|
72
|
+
|
|
73
|
+
`:"<br/>",p=c.join(m);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(r,u)?this._updatePosition(s,h,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,p,u,Math.random()+"",o[0],o[1],h,null,d)})},t.prototype._showSeriesItemTooltip=function(r,n,i){var a=this._ecModel,o=Lt(n),s=o.seriesIndex,l=a.getSeriesByIndex(s),u=o.dataModel||l,f=o.dataIndex,c=o.dataType,d=u.getData(c),h=this._renderMode,v=r.positionDefault,g=ko([d.getItemModel(f),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,v?{position:v}:null),m=g.get("trigger");if(!(m!=null&&m!=="item")){var p=u.getDataParams(f,c),y=new Th;p.marker=y.makeTooltipMarker("item",Kn(p.color),h);var _=Fm(u.formatTooltip(f,!1,c)),b=g.get("order"),x=g.get("valueFormatter"),w=_.frag,S=w?Qm(x?et({valueFormatter:x},w):w,y,h,b,a.get("useUTC"),g.get("textStyle")):_.text,L="item_"+u.name+"_"+f;this._showOrMove(g,function(){this._showTooltipContent(g,S,p,L,r.offsetX,r.offsetY,r.position,r.target,y)}),i({type:"showTip",dataIndexInside:f,dataIndex:d.getRawIndex(f),seriesIndex:s,from:this.uid})}},t.prototype._showComponentItemTooltip=function(r,n,i){var a=this._renderMode==="html",o=Lt(n),s=o.tooltipConfig,l=s.option||{},u=l.encodeHTMLContent;if(ut(l)){var f=l;l={content:f,formatter:f},u=!0}u&&a&&l.content&&(l=At(l),l.content=be(l.content));var c=[l],d=this._ecModel.getComponent(o.componentMainType,o.componentIndex);d&&c.push(d),c.push({formatter:l.content});var h=r.positionDefault,v=ko(c,this._tooltipModel,h?{position:h}:null),g=v.get("content"),m=Math.random()+"",p=new Th;this._showOrMove(v,function(){var y=At(v.get("formatterParams")||{});this._showTooltipContent(v,g,y,m,r.offsetX,r.offsetY,r.position,n,p)}),i({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(r,n,i,a,o,s,l,u,f){if(this._ticket="",!(!r.get("showContent")||!r.get("show"))){var c=this._tooltipContent;c.setEnterable(r.get("enterable"));var d=r.get("formatter");l=l||r.get("position");var h=n,v=this._getNearestPoint([o,s],i,r.get("trigger"),r.get("borderColor"),r.get("defaultBorderColor",!0)),g=v.color;if(d)if(ut(d)){var m=r.ecModel.get("useUTC"),p=st(i)?i[0]:i,y=p&&p.axisType&&p.axisType.indexOf("time")>=0;h=d,y&&(h=pl(p.axisValue,h,m)),h=nm(h,i,!0)}else if(_t(d)){var _=Ft(function(b,x){b===this._ticket&&(c.setContent(x,f,r,g,l),this._updatePosition(r,l,o,s,c,i,u))},this);this._ticket=a,h=d(i,a,_)}else h=d;c.setContent(h,f,r,g,l),c.show(r,g),this._updatePosition(r,l,o,s,c,i,u)}},t.prototype._getNearestPoint=function(r,n,i,a,o){if(i==="axis"||st(n))return{color:a||o};if(!st(n))return{color:a||n.color||n.borderColor}},t.prototype._updatePosition=function(r,n,i,a,o,s,l){var u=this._api.getWidth(),f=this._api.getHeight();n=n||r.get("position");var c=o.getSize(),d=r.get("align"),h=r.get("verticalAlign"),v=l&&l.getBoundingRect().clone();if(l&&v.applyTransform(l.transform),_t(n)&&(n=n([i,a],s,o.el,v,{viewSize:[u,f],contentSize:c.slice()})),st(n))i=Wt(n[0],u),a=Wt(n[1],f);else if(pt(n)){var g=n;g.width=c[0],g.height=c[1];var m=cn(g,{width:u,height:f});i=m.x,a=m.y,d=null,h=null}else if(ut(n)&&l){var p=AN(n,v,c,r.get("borderWidth"));i=p[0],a=p[1]}else{var p=TN(i,a,o,u,f,d?null:20,h?null:20);i=p[0],a=p[1]}if(d&&(i-=uS(d)?c[0]/2:d==="right"?c[0]:0),h&&(a-=uS(h)?c[1]/2:h==="bottom"?c[1]:0),tS(r)){var p=CN(i,a,o,u,f);i=p[0],a=p[1]}o.moveTo(i,a)},t.prototype._updateContentNotChangedOnAxis=function(r,n){var i=this._lastDataByCoordSys,a=this._cbParamsList,o=!!i&&i.length===r.length;return o&&O(i,function(s,l){var u=s.dataByAxis||[],f=r[l]||{},c=f.dataByAxis||[];o=o&&u.length===c.length,o&&O(u,function(d,h){var v=c[h]||{},g=d.seriesDataIndices||[],m=v.seriesDataIndices||[];o=o&&d.value===v.value&&d.axisType===v.axisType&&d.axisId===v.axisId&&g.length===m.length,o&&O(g,function(p,y){var _=m[y];o=o&&p.seriesIndex===_.seriesIndex&&p.dataIndex===_.dataIndex}),a&&O(d.seriesDataIndices,function(p){var y=p.seriesIndex,_=n[y],b=a[y];_&&b&&b.data!==_.data&&(o=!1)})})}),this._lastDataByCoordSys=r,this._cbParamsList=n,!!o},t.prototype._hide=function(r){this._lastDataByCoordSys=null,r({type:"hideTip",from:this.uid})},t.prototype.dispose=function(r,n){xt.node||!n.getDom()||(Lh(this,"_updatePosition"),this._tooltipContent.dispose(),qd("itemTooltip",n))},t.type="tooltip",t})(ar);function ko(e,t,r){var n=t.ecModel,i;r?(i=new Yt(r,n,n),i=new Yt(t.option,i,n)):i=t;for(var a=e.length-1;a>=0;a--){var o=e[a];o&&(o instanceof Yt&&(o=o.get("tooltip",!0)),ut(o)&&(o={formatter:o}),o&&(i=new Yt(o,i,n)))}return i}function lS(e,t){return e.dispatchAction||Ft(t.dispatchAction,t)}function TN(e,t,r,n,i,a,o){var s=r.getSize(),l=s[0],u=s[1];return a!=null&&(e+l+a+2>n?e-=l+a:e+=a),o!=null&&(t+u+o>i?t-=u+o:t+=o),[e,t]}function CN(e,t,r,n,i){var a=r.getSize(),o=a[0],s=a[1];return e=Math.min(e+o,n)-o,t=Math.min(t+s,i)-s,e=Math.max(e,0),t=Math.max(t,0),[e,t]}function AN(e,t,r,n){var i=r[0],a=r[1],o=Math.ceil(Math.SQRT2*n)+8,s=0,l=0,u=t.width,f=t.height;switch(e){case"inside":s=t.x+u/2-i/2,l=t.y+f/2-a/2;break;case"top":s=t.x+u/2-i/2,l=t.y-a-o;break;case"bottom":s=t.x+u/2-i/2,l=t.y+f+o;break;case"left":s=t.x-i-o,l=t.y+f/2-a/2;break;case"right":s=t.x+u+o,l=t.y+f/2-a/2}return[s,l]}function uS(e){return e==="center"||e==="middle"}function EN(e,t,r){var n=Xf(e).queryOptionMap,i=n.keys()[0];if(!(!i||i==="series")){var a=Pa(t,i,n.get(i),{useDefault:!1,enableAll:!1,enableNone:!1}),o=a.models[0];if(o){var s=r.getViewOfComponentModel(o),l;if(s.group.traverse(function(u){var f=Lt(u).tooltipConfig;if(f&&f.name===e.name)return l=u,!0}),l)return{componentMainType:i,componentIndex:o.componentIndex,el:l}}}}function LN(e){Ur(Jb),e.registerComponentModel(fN),e.registerComponentView(wN),e.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},_e),e.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},_e)}var MN=(function(e){it(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.layoutMode={type:"box",ignoreSize:!0},r}return t.type="title",t.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:"center",top:dt.size.m,backgroundColor:dt.color.transparent,borderColor:dt.color.primary,borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:dt.color.primary},subtextStyle:{fontSize:12,color:dt.color.quaternary}},t})(kt),DN=(function(e){it(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,i){if(this.group.removeAll(),!!r.get("show")){var a=this.group,o=r.getModel("textStyle"),s=r.getModel("subtextStyle"),l=r.get("textAlign"),u=ct(r.get("textBaseline"),r.get("textVerticalAlign")),f=new fe({style:un(o,{text:r.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),c=f.getBoundingRect(),d=r.get("subtext"),h=new fe({style:un(s,{text:d,fill:s.getTextColor(),y:c.height+r.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),v=r.get("link"),g=r.get("sublink"),m=r.get("triggerEvent",!0);f.silent=!v&&!m,h.silent=!g&&!m,v&&f.on("click",function(){im(v,"_"+r.get("target"))}),g&&h.on("click",function(){im(g,"_"+r.get("subtarget"))}),Lt(f).eventData=Lt(h).eventData=m?{componentType:"title",componentIndex:r.componentIndex}:null,a.add(f),d&&a.add(h);var p=a.getBoundingRect(),y=r.getBoxLayoutParams();y.width=p.width,y.height=p.height;var _=Sl(r,i),b=cn(y,_.refContainer,r.get("padding"));l||(l=r.get("left")||r.get("right"),l==="middle"&&(l="center"),l==="right"?b.x+=b.width:l==="center"&&(b.x+=b.width/2)),u||(u=r.get("top")||r.get("bottom"),u==="center"&&(u="middle"),u==="bottom"?b.y+=b.height:u==="middle"&&(b.y+=b.height/2),u=u||"top"),a.x=b.x,a.y=b.y,a.markRedraw();var x={align:l,verticalAlign:u};f.setStyle(x),h.setStyle(x),p=a.getBoundingRect();var w=b.margin,S=r.getItemStyle(["color","opacity"]);S.fill=r.get("backgroundColor");var L=new qt({shape:{x:p.x-w[3],y:p.y-w[0],width:p.width+w[1]+w[3],height:p.height+w[0]+w[2],r:r.get("borderRadius")},style:S,subPixelOptimize:!0,silent:!0});a.add(L)}},t.type="title",t})(ar);function IN(e){e.registerComponentModel(MN),e.registerComponentView(DN)}var kN=function(e,t){if(t==="all")return{type:"all",title:e.getLocaleModel().get(["legend","selector","all"])};if(t==="inverse")return{type:"inverse",title:e.getLocaleModel().get(["legend","selector","inverse"])}},Qd=(function(e){it(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.layoutMode={type:"box",ignoreSize:!0},r}return t.prototype.init=function(r,n,i){this.mergeDefaultAndTheme(r,i),r.selected=r.selected||{},this._updateSelector(r)},t.prototype.mergeOption=function(r,n){e.prototype.mergeOption.call(this,r,n),this._updateSelector(r)},t.prototype._updateSelector=function(r){var n=r.selector,i=this.ecModel;n===!0&&(n=r.selector=["all","inverse"]),st(n)&&O(n,function(a,o){ut(a)&&(a={type:a}),n[o]=Gt(a,kN(i,a.type))})},t.prototype.optionUpdated=function(){this._updateData(this.ecModel);var r=this._data;if(r[0]&&this.get("selectedMode")==="single"){for(var n=!1,i=0;i<r.length;i++){var a=r[i].get("name");if(this.isSelected(a)){this.select(a),n=!0;break}}!n&&this.select(r[0].get("name"))}},t.prototype._updateData=function(r){var n=[],i=[];r.eachRawSeries(function(l){var u=l.name;i.push(u);var f;if(l.legendVisualProvider){var c=l.legendVisualProvider,d=c.getAllNames();r.isSeriesFiltered(l)||(i=i.concat(d)),d.length?n=n.concat(d):f=!0}else f=!0;f&&Zf(l)&&n.push(l.name)}),this._availableNames=i;var a=this.get("data")||n,o=Tt(),s=ft(a,function(l){return(ut(l)||$t(l))&&(l={name:l}),o.get(l.name)?null:(o.set(l.name,!0),new Yt(l,this,this.ecModel))},this);this._data=re(s,function(l){return!!l})},t.prototype.getData=function(){return this._data},t.prototype.select=function(r){var n=this.option.selected,i=this.get("selectedMode");if(i==="single"){var a=this._data;O(a,function(o){n[o.get("name")]=!1})}n[r]=!0},t.prototype.unSelect=function(r){this.get("selectedMode")!=="single"&&(this.option.selected[r]=!1)},t.prototype.toggleSelected=function(r){var n=this.option.selected;n.hasOwnProperty(r)||(n[r]=!0),this[n[r]?"unSelect":"select"](r)},t.prototype.allSelect=function(){var r=this._data,n=this.option.selected;O(r,function(i){n[i.get("name",!0)]=!0})},t.prototype.inverseSelect=function(){var r=this._data,n=this.option.selected;O(r,function(i){var a=i.get("name",!0);n.hasOwnProperty(a)||(n[a]=!0),n[a]=!n[a]})},t.prototype.isSelected=function(r){var n=this.option.selected;return!(n.hasOwnProperty(r)&&!n[r])&&Nt(this._availableNames,r)>=0},t.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},t.type="legend.plain",t.dependencies=["series"],t.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",bottom:dt.size.m,align:"auto",backgroundColor:dt.color.transparent,borderColor:dt.color.border,borderRadius:0,borderWidth:0,padding:5,itemGap:8,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:dt.color.disabled,inactiveBorderColor:dt.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:dt.color.disabled,inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:dt.color.secondary},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:dt.color.tertiary,borderWidth:1,borderColor:dt.color.border},emphasis:{selectorLabel:{show:!0,color:dt.color.quaternary}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1},triggerEvent:!1},t})(kt),oa=Kt,Kd=O,du=ne,fS=(function(e){it(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.newlineDisabled=!1,r}return t.prototype.init=function(){this.group.add(this._contentGroup=new du),this.group.add(this._selectorGroup=new du),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(r,n,i){var a=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!r.get("show",!0)){var o=r.get("align"),s=r.get("orient");(!o||o==="auto")&&(o=r.get("left")==="right"&&s==="vertical"?"right":"left");var l=r.get("selector",!0),u=r.get("selectorPosition",!0);l&&(!u||u==="auto")&&(u=s==="horizontal"?"end":"start"),this.renderInner(o,r,n,i,l,s,u);var f=Sl(r,i).refContainer,c=r.getBoxLayoutParams(),d=r.get("padding"),h=cn(c,f,d),v=this.layoutInner(r,o,h,a,l,u),g=cn(Bt({width:v.width,height:v.height},c),f,d);this.group.x=g.x-v.x,this.group.y=g.y-v.y,this.group.markRedraw(),this.group.add(this._backgroundEl=uN(v,r))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(r,n,i,a,o,s,l){var u=this.getContentGroup(),f=Tt(),c=n.get("selectedMode"),d=n.get("triggerEvent"),h=[];i.eachRawSeries(function(v){!v.get("legendHoverLink")&&h.push(v.id)}),Kd(n.getData(),function(v,g){var m=this,p=v.get("name");if(!this.newlineDisabled&&(p===""||p===`
|
|
74
|
+
`)){var y=new du;y.newline=!0,u.add(y);return}var _=i.getSeriesByName(p)[0];if(!f.get(p)){if(_){var b=_.getData(),x=b.getVisual("legendLineStyle")||{},w=b.getVisual("legendIcon"),S=b.getVisual("style"),L=this._createItem(_,p,g,v,n,r,x,S,w,c,a);L.on("click",oa(cS,p,null,a,h)).on("mouseover",oa(Jd,_.name,null,a,h)).on("mouseout",oa(tv,_.name,null,a,h)),i.ssr&&L.eachChild(function(C){var D=Lt(C);D.seriesIndex=_.seriesIndex,D.dataIndex=g,D.ssrType="legend"}),d&&L.eachChild(function(C){m.packEventData(C,n,_,g,p)}),f.set(p,!0)}else i.eachRawSeries(function(C){var D=this;if(!f.get(p)&&C.legendVisualProvider){var I=C.legendVisualProvider;if(!I.containName(p))return;var A=I.indexOfName(p),M=I.getItemVisual(A,"style"),T=I.getItemVisual(A,"legendIcon"),k=tr(M.fill);k&&k[3]===0&&(k[3]=.2,M=et(et({},M),{fill:wa(k,"rgba")}));var R=this._createItem(C,p,g,v,n,r,{},M,T,c,a);R.on("click",oa(cS,null,p,a,h)).on("mouseover",oa(Jd,null,p,a,h)).on("mouseout",oa(tv,null,p,a,h)),i.ssr&&R.eachChild(function(z){var H=Lt(z);H.seriesIndex=C.seriesIndex,H.dataIndex=g,H.ssrType="legend"}),d&&R.eachChild(function(z){D.packEventData(z,n,C,g,p)}),f.set(p,!0)}},this);process.env.NODE_ENV!=="production"&&(f.get(p)||console.warn(p+" series not exists. Legend data should be same with series name or data name."))}},this),o&&this._createSelector(o,n,a,s,l)},t.prototype.packEventData=function(r,n,i,a,o){var s={componentType:"legend",componentIndex:n.componentIndex,dataIndex:a,value:o,seriesIndex:i.seriesIndex};Lt(r).eventData=s},t.prototype._createSelector=function(r,n,i,a,o){var s=this.getSelectorGroup();Kd(r,function(u){var f=u.type,c=new fe({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){i.dispatchAction({type:f==="all"?"legendAllSelect":"legendInverseSelect",legendId:n.id})}});s.add(c);var d=n.getModel("selectorLabel"),h=n.getModel(["emphasis","selectorLabel"]);Xa(c,{normal:d,emphasis:h},{defaultText:u.title}),wc(c)})},t.prototype._createItem=function(r,n,i,a,o,s,l,u,f,c,d){var h=r.visualDrawType,v=o.get("itemWidth"),g=o.get("itemHeight"),m=o.isSelected(n),p=a.get("symbolRotate"),y=a.get("symbolKeepAspect"),_=a.get("icon");f=_||f||"roundRect";var b=PN(f,a,l,u,h,m,d),x=new du,w=a.getModel("textStyle");if(_t(r.getLegendIcon)&&(!_||_==="inherit"))x.add(r.getLegendIcon({itemWidth:v,itemHeight:g,icon:f,iconRotate:p,itemStyle:b.itemStyle,lineStyle:b.lineStyle,symbolKeepAspect:y}));else{var S=_==="inherit"&&r.getData().getVisual("symbol")?p==="inherit"?r.getData().getVisual("symbolRotate"):p:0;x.add(NN({itemWidth:v,itemHeight:g,icon:f,iconRotate:S,itemStyle:b.itemStyle,symbolKeepAspect:y}))}var L=s==="left"?v+5:-5,C=s,D=o.get("formatter"),I=n;ut(D)&&D?I=D.replace("{name}",n??""):_t(D)&&(I=D(n));var A=m?w.getTextColor():a.get("inactiveColor");x.add(new fe({style:un(w,{text:I,x:L,y:g/2,fill:A,align:C,verticalAlign:"middle"},{inheritColor:A})}));var M=new qt({shape:x.getBoundingRect(),style:{fill:"transparent"}}),T=a.getModel("tooltip");return T.get("show")&&il({el:M,componentModel:o,itemName:n,itemTooltipOption:T.option}),x.add(M),x.eachChild(function(k){k.silent=!0}),M.silent=!c,this.getContentGroup().add(x),wc(x),x.__legendDataIndex=i,x},t.prototype.layoutInner=function(r,n,i,a,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();Ka(r.get("orient"),l,r.get("itemGap"),i.width,i.height);var f=l.getBoundingRect(),c=[-f.x,-f.y];if(u.markRedraw(),l.markRedraw(),o){Ka("horizontal",u,r.get("selectorItemGap",!0));var d=u.getBoundingRect(),h=[-d.x,-d.y],v=r.get("selectorButtonGap",!0),g=r.getOrient().index,m=g===0?"width":"height",p=g===0?"height":"width",y=g===0?"y":"x";s==="end"?h[g]+=f[m]+v:c[g]+=d[m]+v,h[1-g]+=f[p]/2-d[p]/2,u.x=h[0],u.y=h[1],l.x=c[0],l.y=c[1];var _={x:0,y:0};return _[m]=f[m]+v+d[m],_[p]=Math.max(f[p],d[p]),_[y]=Math.min(0,d[y]+h[1-g]),_}else return l.x=c[0],l.y=c[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t})(ar);function PN(e,t,r,n,i,a,o){function s(m,p){m.lineWidth==="auto"&&(m.lineWidth=p.lineWidth>0?2:0),Kd(m,function(y,_){m[_]==="inherit"&&(m[_]=p[_])})}var l=t.getModel("itemStyle"),u=l.getItemStyle(),f=e.lastIndexOf("empty",0)===0?"fill":"stroke",c=l.getShallow("decal");u.decal=!c||c==="inherit"?n.decal:Nh(c,o),u.fill==="inherit"&&(u.fill=n[i]),u.stroke==="inherit"&&(u.stroke=n[f]),u.opacity==="inherit"&&(u.opacity=(i==="fill"?n:r).opacity),s(u,n);var d=t.getModel("lineStyle"),h=d.getLineStyle();if(s(h,r),u.fill==="auto"&&(u.fill=n.fill),u.stroke==="auto"&&(u.stroke=n.fill),h.stroke==="auto"&&(h.stroke=n.fill),!a){var v=t.get("inactiveBorderWidth"),g=u[f];u.lineWidth=v==="auto"?n.lineWidth>0&&g?2:0:u.lineWidth,u.fill=t.get("inactiveColor"),u.stroke=t.get("inactiveBorderColor"),h.stroke=d.get("inactiveColor"),h.lineWidth=d.get("inactiveWidth")}return{itemStyle:u,lineStyle:h}}function NN(e){var t=e.icon||"roundRect",r=ai(t,0,0,e.itemWidth,e.itemHeight,e.itemStyle.fill,e.symbolKeepAspect);return r.setStyle(e.itemStyle),r.rotation=(e.iconRotate||0)*Math.PI/180,r.setOrigin([e.itemWidth/2,e.itemHeight/2]),t.indexOf("empty")>-1&&(r.style.stroke=r.style.fill,r.style.fill=dt.color.neutral00,r.style.lineWidth=2),r}function cS(e,t,r,n){tv(e,t,r,n),r.dispatchAction({type:"legendToggleSelect",name:e??t}),Jd(e,t,r,n)}function hS(e){for(var t=e.getZr().storage.getDisplayList(),r,n=0,i=t.length;n<i&&!(r=t[n].states.emphasis);)n++;return r&&r.hoverLayer}function Jd(e,t,r,n){hS(r)||r.dispatchAction({type:"highlight",seriesName:e,name:t,excludeSeriesId:n})}function tv(e,t,r,n){hS(r)||r.dispatchAction({type:"downplay",seriesName:e,name:t,excludeSeriesId:n})}function $N(e){var t=e.findComponents({mainType:"legend"});t&&t.length&&e.filterSeries(function(r){for(var n=0;n<t.length;n++)if(!t[n].isSelected(r.name))return!1;return!0})}function Po(e,t,r){var n=e==="allSelect"||e==="inverseSelect",i={},a=[];r.eachComponent({mainType:"legend",query:t},function(s){n?s[e]():s[e](t.name),dS(s,i),a.push(s.componentIndex)});var o={};return r.eachComponent("legend",function(s){O(i,function(l,u){s[l?"select":"unSelect"](u)}),dS(s,o)}),n?{selected:o,legendIndex:a}:{name:t.name,selected:o}}function dS(e,t){var r=t||{};return O(e.getData(),function(n){var i=n.get("name");if(!(i===`
|
|
75
|
+
`||i==="")){var a=e.isSelected(i);Je(r,i)?r[i]=r[i]&&a:r[i]=a}}),r}function ON(e){e.registerAction("legendToggleSelect","legendselectchanged",Kt(Po,"toggleSelected")),e.registerAction("legendAllSelect","legendselectall",Kt(Po,"allSelect")),e.registerAction("legendInverseSelect","legendinverseselect",Kt(Po,"inverseSelect")),e.registerAction("legendSelect","legendselected",Kt(Po,"select")),e.registerAction("legendUnSelect","legendunselected",Kt(Po,"unSelect"))}function vS(e){e.registerComponentModel(Qd),e.registerComponentView(fS),e.registerProcessor(e.PRIORITY.PROCESSOR.SERIES_FILTER,$N),e.registerSubTypeDefaulter("legend",function(){return"plain"}),ON(e)}var RN=(function(e){it(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.setScrollDataIndex=function(r){this.option.scrollDataIndex=r},t.prototype.init=function(r,n,i){var a=eo(r);e.prototype.init.call(this,r,n,i),pS(this,r,a)},t.prototype.mergeOption=function(r,n){e.prototype.mergeOption.call(this,r,n),pS(this,this.option,r)},t.type="legend.scroll",t.defaultOption=G0(Qd.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:dt.color.accent50,pageIconInactiveColor:dt.color.accent10,pageIconSize:15,pageTextStyle:{color:dt.color.tertiary},animationDurationUpdate:800}),t})(Qd);function pS(e,t,r){var n=e.getOrient(),i=[1,1];i[n.index]=0,hn(t,r,{type:"box",ignoreSize:!!i})}var gS=ne,ev=["width","height"],rv=["x","y"],BN=(function(e){it(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.newlineDisabled=!0,r._currentIndex=0,r}return t.prototype.init=function(){e.prototype.init.call(this),this.group.add(this._containerGroup=new gS),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new gS)},t.prototype.resetInner=function(){e.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},t.prototype.renderInner=function(r,n,i,a,o,s,l){var u=this;e.prototype.renderInner.call(this,r,n,i,a,o,s,l);var f=this._controllerGroup,c=n.get("pageIconSize",!0),d=st(c)?c:[c,c];v("pagePrev",0);var h=n.getModel("pageTextStyle");f.add(new fe({name:"pageText",style:{text:"xx/xx",fill:h.getTextColor(),font:h.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),v("pageNext",1);function v(g,m){var p=g+"DataIndex",y=Bc(n.get("pageIcons",!0)[n.getOrient().name][m],{onclick:Ft(u._pageGo,u,p,n,a)},{x:-d[0]/2,y:-d[1]/2,width:d[0],height:d[1]});y.name=g,f.add(y)}},t.prototype.layoutInner=function(r,n,i,a,o,s){var l=this.getSelectorGroup(),u=r.getOrient().index,f=ev[u],c=rv[u],d=ev[1-u],h=rv[1-u];o&&Ka("horizontal",l,r.get("selectorItemGap",!0));var v=r.get("selectorButtonGap",!0),g=l.getBoundingRect(),m=[-g.x,-g.y],p=At(i);o&&(p[f]=i[f]-g[f]-v);var y=this._layoutContentAndController(r,a,p,u,f,d,h,c);if(o){if(s==="end")m[u]+=y[f]+v;else{var _=g[f]+v;m[u]-=_,y[c]-=_}y[f]+=g[f]+v,m[1-u]+=y[h]+y[d]/2-g[d]/2,y[d]=Math.max(y[d],g[d]),y[h]=Math.min(y[h],g[h]+m[1-u]),l.x=m[0],l.y=m[1],l.markRedraw()}return y},t.prototype._layoutContentAndController=function(r,n,i,a,o,s,l,u){var f=this.getContentGroup(),c=this._containerGroup,d=this._controllerGroup;Ka(r.get("orient"),f,r.get("itemGap"),a?i.width:null,a?null:i.height),Ka("horizontal",d,r.get("pageButtonItemGap",!0));var h=f.getBoundingRect(),v=d.getBoundingRect(),g=this._showController=h[o]>i[o],m=[-h.x,-h.y];n||(m[a]=f[u]);var p=[0,0],y=[-v.x,-v.y],_=ct(r.get("pageButtonGap",!0),r.get("itemGap",!0));if(g){var b=r.get("pageButtonPosition",!0);b==="end"?y[a]+=i[o]-v[o]:p[a]+=v[o]+_}y[1-a]+=h[s]/2-v[s]/2,f.setPosition(m),c.setPosition(p),d.setPosition(y);var x={x:0,y:0};if(x[o]=g?i[o]:h[o],x[s]=Math.max(h[s],v[s]),x[l]=Math.min(0,v[l]+y[1-a]),c.__rectSize=i[o],g){var w={x:0,y:0};w[o]=Math.max(i[o]-v[o]-_,0),w[s]=x[s],c.setClipPath(new qt({shape:w})),c.__rectSize=w[o]}else d.eachChild(function(L){L.attr({invisible:!0,silent:!0})});var S=this._getPageInfo(r);return S.pageIndex!=null&&we(f,{x:S.contentPosition[0],y:S.contentPosition[1]},g?r:null),this._updatePageInfoView(r,S),x},t.prototype._pageGo=function(r,n,i){var a=this._getPageInfo(n)[r];a!=null&&i.dispatchAction({type:"legendScroll",scrollDataIndex:a,legendId:n.id})},t.prototype._updatePageInfoView=function(r,n){var i=this._controllerGroup;O(["pagePrev","pageNext"],function(f){var c=f+"DataIndex",d=n[c]!=null,h=i.childOfName(f);h&&(h.setStyle("fill",d?r.get("pageIconColor",!0):r.get("pageIconInactiveColor",!0)),h.cursor=d?"pointer":"default")});var a=i.childOfName("pageText"),o=r.get("pageFormatter"),s=n.pageIndex,l=s!=null?s+1:0,u=n.pageCount;a&&o&&a.setStyle("text",ut(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},t.prototype._getPageInfo=function(r){var n=r.get("scrollDataIndex",!0),i=this.getContentGroup(),a=this._containerGroup.__rectSize,o=r.getOrient().index,s=ev[o],l=rv[o],u=this._findTargetItemIndex(n),f=i.children(),c=f[u],d=f.length,h=d?1:0,v={contentPosition:[i.x,i.y],pageCount:h,pageIndex:h-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!c)return v;var g=b(c);v.contentPosition[o]=-g.s;for(var m=u+1,p=g,y=g,_=null;m<=d;++m)_=b(f[m]),(!_&&y.e>p.s+a||_&&!x(_,p.s))&&(y.i>p.i?p=y:p=_,p&&(v.pageNextDataIndex==null&&(v.pageNextDataIndex=p.i),++v.pageCount)),y=_;for(var m=u-1,p=g,y=g,_=null;m>=-1;--m)_=b(f[m]),(!_||!x(y,_.s))&&p.i<y.i&&(y=p,v.pagePrevDataIndex==null&&(v.pagePrevDataIndex=p.i),++v.pageCount,++v.pageIndex),p=_;return v;function b(w){if(w){var S=w.getBoundingRect(),L=S[l]+w[l];return{s:L,e:L+S[s],i:w.__legendDataIndex}}}function x(w,S){return w.e>=S&&w.s<=S+a}},t.prototype._findTargetItemIndex=function(r){if(!this._showController)return 0;var n,i=this.getContentGroup(),a;return i.eachChild(function(o,s){var l=o.__legendDataIndex;a==null&&l!=null&&(a=s),l===r&&(n=s)}),n??a},t.type="legend.scroll",t})(fS);function FN(e){e.registerAction("legendScroll","legendscroll",function(t,r){var n=t.scrollDataIndex;n!=null&&r.eachComponent({mainType:"legend",subType:"scroll",query:t},function(i){i.setScrollDataIndex(n)})})}function zN(e){Ur(vS),e.registerComponentModel(RN),e.registerComponentView(BN),FN(e)}function VN(e){Ur(vS),Ur(zN)}Ur([VI,Tk,uk,Rk,RP,lN,LN,VN,IN]);function GN({node:e}){const t=Xt.useRef(null);return Xt.useEffect(()=>{var l,u;if(!t.current)return;const r=CM(t.current,null,{renderer:"svg"}),{chartData:n}=e;if(!n)return;let i=n.type;i==="area"&&(i="line"),i==="unknown"&&(i="bar");const a={show:n.hasLegend};n.legendPos==="top"?(a.top=0,a.left="center"):n.legendPos==="bottom"?(a.bottom=0,a.left="center"):n.legendPos==="left"?(a.left=0,a.top="middle",a.orient="vertical"):n.legendPos==="right"&&(a.right=0,a.top="middle",a.orient="vertical");const o={left:n.legendPos==="left"?"20%":"10%",right:n.legendPos==="right"?"20%":"10%",bottom:n.legendPos==="bottom"?"15%":"10%",top:n.legendPos==="top"||n.title?"15%":"10%",containLabel:!0},s={title:n.title?{text:n.title,left:"center",textStyle:{fontSize:14,fontWeight:"normal"}}:void 0,tooltip:{trigger:"axis"},legend:a,grid:o,series:n.series.map(f=>({name:f.name,type:i,data:n.type==="pie"?f.values.map((c,d)=>({value:c,name:n.categories[d]})):f.values,areaStyle:n.type==="area"?{}:void 0,itemStyle:f.color?{color:f.color}:void 0}))};if(n.type!=="pie"){const f=((l=n.axes)==null?void 0:l.x)||{showLabels:!0,showGrid:!1},c=((u=n.axes)==null?void 0:u.y)||{showLabels:!1,showGrid:!1},d=h=>{var m;if(!h)return;let v="",g="";if((h.includes("$")||h.includes("€")||h.includes("£"))&&(v=((m=h.match(/[$€£]/))==null?void 0:m[0])||""),h.includes("%")&&(g="%"),v||g)return p=>`${v}${p}${g}`};s.xAxis={type:"category",data:n.categories,name:f.title,nameLocation:"middle",nameGap:25,axisLabel:{show:f.showLabels!==!1,interval:0,rotate:n.categories.length>5?45:0,formatter:d(f.formatCode)},splitLine:{show:f.showGrid===!0},axisLine:{show:!0,lineStyle:{color:"#ccc"}},axisTick:{show:!1},min:f.min!==void 0?f.min:void 0,max:f.max!==void 0?f.max:void 0},s.yAxis={type:"value",name:c.title,nameLocation:"middle",nameGap:30,axisLabel:{show:c.showLabels!==!1,formatter:d(c.formatCode)},splitLine:{show:c.showGrid===!0},axisLine:{show:!0,lineStyle:{color:"#ccc"}},axisTick:{show:!1},min:c.min!==void 0?c.min:void 0,max:c.max!==void 0?c.max:void 0}}else s.tooltip.trigger="item",s.series.forEach(f=>{f.radius="60%",f.center=["50%","50%"],f.label={show:!0,formatter:"{b}: {d}%"}});return r.setOption(s),()=>r.dispose()},[e]),tt.jsx("div",{ref:t,style:{width:"100%",height:"100%"}})}function mS({node:e}){var a;const t=(a=e.effectProps)==null?void 0:a.shadow,r={position:"absolute",left:`${e.offset.x}px`,top:`${e.offset.y}px`,width:`${e.size.w}px`,height:`${e.size.h}px`,zIndex:e.order,overflow:e.type==="table"?"hidden":void 0},n=[];e.rotate&&n.push(`rotate(${e.rotate}deg)`),e.flipH&&n.push("scaleX(-1)"),e.flipV&&n.push("scaleY(-1)"),n.length>0&&(r.transform=n.join(" "),r.transformOrigin="center center"),t&&(r.filter=`drop-shadow(${t.dx.toFixed(1)}px ${t.dy.toFixed(1)}px ${t.blur.toFixed(1)}px ${HN(t.color,t.opacity)})`);let i=null;switch(e.type){case"shape":i=tt.jsx(Tx,{node:e});break;case"picture":i=tt.jsx(Ax,{node:e});break;case"table":i=tt.jsx(Ex,{node:e});break;case"chart":i=tt.jsx(GN,{node:e});break;case"group":i=tt.jsx(Lx,{node:e});break}return tt.jsx("div",{style:r,children:i})}function HN(e,t){const r=parseInt(e.slice(1,3),16),n=parseInt(e.slice(3,5),16),i=parseInt(e.slice(5,7),16);return`rgba(${r},${n},${i},${t.toFixed(2)})`}function yS({slide:e,width:t,height:r}){const n=Zo(e.background);return tt.jsx("div",{style:{width:`${t}px`,height:`${r}px`,position:"relative",overflow:"hidden",...n},children:[...e.nodes].sort((i,a)=>i.order-a.order).map((i,a)=>tt.jsx(mS,{node:i},a))})}function UN({slide:e,slideWidth:t,slideHeight:r,userZoom:n=1,onZoomChange:i}){const a=Xt.useRef(null),[o,s]=Xt.useState(1);Xt.useEffect(()=>{window.myNodes=e.nodes;const f=()=>{if(!a.current)return;const d=a.current.clientWidth-40,h=a.current.clientHeight-40,v=Math.max(.1,d/t),g=Math.max(.1,h/r);s(Math.min(v,g))};f();const c=new ResizeObserver(f);return a.current&&c.observe(a.current),()=>c.disconnect()},[t,r]);const l=o*n,u=Xt.useCallback(f=>{if(f.ctrlKey||f.metaKey){f.preventDefault();const c=f.deltaY>0?-.08:.08;i==null||i(Math.max(.25,Math.min(3,n+c)))}},[n,i]);return tt.jsx("div",{ref:a,onWheel:u,style:{flex:1,display:"flex",alignItems:"center",justifyContent:"center",overflow:"auto",padding:20,backgroundColor:"#d8dce3"},children:tt.jsx("div",{style:{width:t*l,height:r*l,flexShrink:0,position:"relative",boxShadow:"0 4px 24px rgba(0,0,0,0.22)",backgroundColor:"#fff"},children:tt.jsx("div",{style:{position:"absolute",top:0,left:0,width:t,height:r,transform:`scale(${l})`,transformOrigin:"top left"},children:tt.jsx(yS,{slide:e,width:t,height:r})})})})}const nv=180;function WN({slides:e,slideWidth:t,slideHeight:r,currentIndex:n,onSelect:i}){const a=nv/t,o=r*a;return tt.jsx("div",{style:{width:`${nv+32}px`,overflowY:"auto",padding:"12px 16px",backgroundColor:"#f5f5f5",borderRight:"1px solid #ddd",flexShrink:0},children:e.map((s,l)=>tt.jsxs("div",{onClick:()=>i(l),style:{marginBottom:"12px",cursor:"pointer",border:l===n?"2px solid #4285f4":"2px solid transparent",borderRadius:"4px",overflow:"hidden",position:"relative"},children:[tt.jsx("div",{style:{width:`${nv}px`,height:`${o}px`,overflow:"hidden",position:"relative"},children:tt.jsx("div",{style:{transform:`scale(${a})`,transformOrigin:"0 0",pointerEvents:"none"},children:tt.jsx(yS,{slide:s,width:t,height:r})})}),tt.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))})}const iv={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 ZN(e,t){let r=e;return r.startsWith("+")&&t&&(r.includes("mj")&&(r=t.majorFont),r.includes("mn")&&(r=t.minorFont)),iv[r]?iv[r]:r}function YN(e){const t=new Set,r=n=>{var i;(n.type==="shape"||n.type==="table")&&"textBody"in n&&(i=n.textBody)!=null&&i.paragraphs&&n.textBody.paragraphs.forEach(a=>{a.runs.forEach(o=>{var s;(s=o.props)!=null&&s.fontFamily&&t.add(o.props.fontFamily)})}),n.type==="table"&&n.rows.forEach(o=>o.cells.forEach(s=>{var l;(l=s.textBody)!=null&&l.paragraphs&&s.textBody.paragraphs.forEach(u=>{u.runs.forEach(f=>{var c;(c=f.props)!=null&&c.fontFamily&&t.add(f.props.fontFamily)})})})),n.type==="group"&&n.children.forEach(r)};return e.forEach(n=>n.nodes.forEach(r)),t}function XN({slides:e,themeFonts:t}){return Xt.useEffect(()=>{if(!e||e.length===0)return;const r=YN(e),n=new Set;let i="";for(const a of Array.from(r)){const o=ZN(a,t);o&&iv[a]===o&&(n.add(o),i+=`@font-face { font-family: "${a}"; src: local("${o}"); }
|
|
76
|
+
`)}if(n.size>0||i){const a="pptx-dynamic-font-loader";if(!document.getElementById(a)){const o=document.createElement("style");o.id=a;let s="";n.size>0&&(s=`@import url('https://fonts.googleapis.com/css2?family=${Array.from(n).map(u=>u.replace(/\s+/g,"+")).join("&family=")}&display=swap');
|
|
77
|
+
`),o.innerHTML=s+i,document.head.appendChild(o)}}},[e,t]),null}function qN({file:e}){var f;const{data:t,loading:r,error:n}=vx(e),[i,a]=Xt.useState(0),[o,s]=Xt.useState(1),l=Xt.useCallback(c=>{t&&(c.key==="ArrowRight"||c.key==="ArrowDown"?a(d=>Math.min(d+1,t.slides.length-1)):c.key==="ArrowLeft"||c.key==="ArrowUp"?a(d=>Math.max(d-1,0)):c.key==="Home"?a(0):c.key==="End"?a(t.slides.length-1):c.key==="+"||c.key==="="?s(d=>Math.min(d+.1,3)):c.key==="-"&&s(d=>Math.max(d-.1,.25)))},[t]);if(r)return tt.jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%"},children:tt.jsxs("div",{style:{textAlign:"center"},children:[tt.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"}}),tt.jsx("p",{style:{color:"#888"},children:"Parsing presentation..."})]})});if(n)return tt.jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%"},children:tt.jsxs("div",{style:{textAlign:"center",color:"#e53935",padding:24,background:"#fff",borderRadius:12,boxShadow:"0 2px 12px rgba(0,0,0,.1)"},children:[tt.jsx("p",{style:{fontSize:18,fontWeight:"bold"},children:"Failed to parse PPTX"}),tt.jsx("p",{style:{fontSize:13,marginTop:8,color:"#666"},children:n.message})]})});if(!t||t.slides.length===0)return tt.jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%"},children:tt.jsx("p",{style:{color:"#999"},children:"No slides to display"})});const u=Math.min(i,t.slides.length-1);return tt.jsxs("div",{tabIndex:0,onKeyDown:l,style:{display:"flex",flexDirection:"column",height:"100%",outline:"none"},children:[tt.jsx(XN,{slides:t.slides,themeFonts:(f=t.theme)==null?void 0:f.fontScheme}),tt.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"6px 16px",background:"#fff",borderBottom:"1px solid #e5e5e5",flexShrink:0},children:[tt.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8},children:[tt.jsx("button",{onClick:()=>a(c=>Math.max(c-1,0)),disabled:u===0,style:No,children:"‹"}),tt.jsxs("span",{style:{fontSize:13,color:"#555",minWidth:70,textAlign:"center"},children:[u+1," / ",t.slides.length]}),tt.jsx("button",{onClick:()=>a(c=>Math.min(c+1,t.slides.length-1)),disabled:u===t.slides.length-1,style:No,children:"›"})]}),tt.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8},children:[tt.jsx("button",{onClick:()=>s(c=>Math.max(c-.1,.25)),style:No,children:"−"}),tt.jsxs("span",{style:{fontSize:13,color:"#555",minWidth:44,textAlign:"center"},children:[Math.round(o*100),"%"]}),tt.jsx("button",{onClick:()=>s(c=>Math.min(c+.1,3)),style:No,children:"+"}),tt.jsx("button",{onClick:()=>s(1),style:{...No,fontSize:11},children:"Fit"})]})]}),tt.jsxs("div",{style:{display:"flex",flex:1,overflow:"hidden"},children:[tt.jsx(WN,{slides:t.slides,slideWidth:t.width,slideHeight:t.height,currentIndex:u,onSelect:a}),tt.jsx(UN,{slide:t.slides[u],slideWidth:t.width,slideHeight:t.height,userZoom:o,onZoomChange:s})]})]})}const No={padding:"3px 10px",background:"#f5f5f5",border:"1px solid #ddd",borderRadius:6,cursor:"pointer",fontSize:14,color:"#333"};async function jN(e,t,r,n){var _;const i=r[t];if(!i)return null;const a=sa(n,i),o=await e.getXml(a);if(!o)return null;const s=a.substring(0,a.lastIndexOf("/")),l=a.substring(a.lastIndexOf("/")+1),u=`${s}/_rels/${l}.rels`,f=await e.getXml(u);vi(f);const c=(_=o==null?void 0:o["c:chartSpace"])==null?void 0:_["c:chart"];if(!c)return null;const d=_S(c),h=F(c,"c:plotArea"),v=F(c,"c:legend"),g=!!v;let m="bottom";if(g){const b=q(F(v,"c:legendPos"),"val");b==="r"?m="right":b==="l"?m="left":b==="t"||b==="tr"?m="top":b==="b"&&(m="bottom")}else m="none";const p=KN(h),y=["c:barChart","c:lineChart","c:pieChart","c:scatterChart","c:areaChart","c:doughnutChart"];for(const b of y){const x=F(h,b);if(x){const w=QN(b,x,d);return w.hasLegend=g,w.legendPos=m,w.axes=p,w}}return{type:"unknown",title:d,categories:[],series:[],hasLegend:g}}function _S(e){const t=F(e,"c:title");if(!t)return;const r=F(t,"c:tx"),n=F(r,"c:rich");return n&&Pt(n,"a:p").map(a=>Pt(a,"a:r").map(s=>s["a:t"]??"").join("")).join(" ").trim()||void 0}function QN(e,t,r){const i={"c:barChart":"bar","c:lineChart":"line","c:pieChart":"pie","c:scatterChart":"scatter","c:areaChart":"area","c:doughnutChart":"pie"}[e]||"unknown",a=[],o=[],s=Pt(t,"c:ser");for(const l of s){const u=F(l,"c:tx");let f="";if(u){const p=F(u,"c:strRef");if(p){const y=F(p,"c:strCache"),_=y?F(y,"c:pt"):null;f=_&&_["c:v"]?String(_["c:v"]):""}if(!f){const y=F(u,"c:v");f=y?String(y):q(u,"val")||""}}let c;const d=F(l,"c:spPr"),h=d?F(d,"a:solidFill"):null,v=h?h["a:srgbClr"]:null;if(v&&(c="#"+(typeof v=="object"?v["@_val"]:v)),a.length===0){const p=F(l,"c:cat")||F(l,"c:xVal");if(p){const y=F(p,"c:strRef"),_=F(p,"c:numRef"),b=F(y,"c:strCache"),x=F(_,"c:numCache"),w=b||x;if(w)for(const S of Pt(w,"c:pt"))a.push(S["c:v"]??String(q(S,"idx")))}}const g=F(l,"c:val")||F(l,"c:yVal"),m=[];if(g){const p=F(g,"c:numRef"),y=F(p,"c:numCache");if(y)for(const _ of Pt(y,"c:pt"))m.push(parseFloat(_["c:v"]??"0")||0)}m.length>0&&o.push({name:f,values:m,color:c})}return{type:i,title:r,categories:a,series:o}}function KN(e){const t={},r=F(e,"c:catAx");r&&(t.x=bS(r));const n=F(e,"c:valAx");return n&&(t.y=bS(n)),t}function bS(e){const t=_S(e),n=q(F(e,"c:tickLblPos"),"val")!=="none",a=!!F(e,"c:majorGridlines"),o=F(e,"c:scaling"),s=q(F(o,"c:min"),"val"),l=q(F(o,"c:max"),"val"),u=F(e,"c:numFmt"),f=q(u,"formatCode");return{title:t,showLabels:n,showGrid:a,min:s!==void 0?parseFloat(s):void 0,max:l!==void 0?parseFloat(l):void 0,formatCode:f||void 0}}const JN=Object.freeze(Object.defineProperty({__proto__:null,parseChart:jN},Symbol.toStringTag,{value:"Module"}));me.PptxPreview=qN,me.parsePptx=$v,Object.defineProperty(me,Symbol.toStringTag,{value:"Module"})}));
|