ywb-office-preview 1.0.3
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/LICENSE +21 -0
- package/README.md +198 -0
- package/lib/index.cjs.js +135 -0
- package/lib/index.css +5 -0
- package/lib/index.js +135 -0
- package/lib/types/index.d.ts +88 -0
- package/office-preview/assets/deps-Db5o6o29.js +5 -0
- package/office-preview/assets/index-CayzP9YK.css +1 -0
- package/office-preview/assets/index-D5bO9emD.js +1 -0
- package/office-preview/assets/vue-office-docx-Bx6VTAU0.js +33 -0
- package/office-preview/assets/vue-office-docx-DlzDd1un.css +1 -0
- package/office-preview/assets/vue-office-excel-BGtZg_F9.js +198 -0
- package/office-preview/assets/vue-office-excel-D2SrlbN3.css +1 -0
- package/office-preview/assets/vue-office-pdf-Dz0sk0VW.js +5 -0
- package/office-preview/assets/vue-office-pptx-ox0f8gib.js +98 -0
- package/office-preview/favicon.svg +7 -0
- package/office-preview/index.html +21 -0
- package/package.json +67 -0
- package/webpack.js +21 -0
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import{r as vot,c as Bb,g as yot}from"./deps-Db5o6o29.js";var gz={exports:{}};(function(vz,_ot){(function(xu,bu){vz.exports=bu(vot())})(Bb,function(xu){var bu=function(n,e){return bu=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])},bu(n,e)};function wu(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");bu(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}var kt=function(){return kt=Object.assign||function(n){for(var e,t=1,i=arguments.length;t<i;t++){e=arguments[t];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r])}return n},kt.apply(this,arguments)};function hn(n,e,t,i){function r(a){return a instanceof t?a:new t(function(o){o(a)})}return new(t||(t=Promise))(function(a,o){function s(c){try{u(i.next(c))}catch(h){o(h)}}function l(c){try{u(i.throw(c))}catch(h){o(h)}}function u(c){c.done?a(c.value):r(c.value).then(s,l)}u((i=i.apply(n,[])).next())})}function pn(n,e){var t={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},i,r,a,o=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return o.next=s(0),o.throw=s(1),o.return=s(2),typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(u){return function(c){return l([u,c])}}function l(u){if(i)throw new TypeError("Generator is already executing.");for(;o&&(o=0,u[0]&&(t=0)),t;)try{if(i=1,r&&(a=u[0]&2?r.return:u[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,u[1])).done)return a;switch(r=0,a&&(u=[u[0]&2,a.value]),u[0]){case 0:case 1:a=u;break;case 4:return t.label++,{value:u[1],done:!1};case 5:t.label++,r=u[1],u=[0];continue;case 7:u=t.ops.pop(),t.trys.pop();continue;default:if(a=t.trys,!(a=a.length>0&&a[a.length-1])&&(u[0]===6||u[0]===2)){t=0;continue}if(u[0]===3&&(!a||u[1]>a[0]&&u[1]<a[3])){t.label=u[1];break}if(u[0]===6&&t.label<a[1]){t.label=a[1],a=u;break}if(a&&t.label<a[2]){t.label=a[2],t.ops.push(u);break}a[2]&&t.ops.pop(),t.trys.pop();continue}u=e.call(n,t)}catch(c){u=[6,c],r=0}finally{i=a=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}function Su(n,e,t){for(var i=0,r=e.length,a;i<r;i++)(a||!(i in e))&&(a||(a=Array.prototype.slice.call(e,0,i)),a[i]=e[i]);return n.concat(a||Array.prototype.slice.call(e))}typeof SuppressedError=="function"&&SuppressedError;var Jr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof Bb<"u"?Bb:typeof self<"u"?self:{};function yz(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}function qh(n){throw new Error('Could not dynamically require "'+n+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Vb={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
|
+
*/(function(n,e){(function(t){n.exports=t()})(function(){return function t(i,r,a){function o(u,c){if(!r[u]){if(!i[u]){var h=typeof qh=="function"&&qh;if(!c&&h)return h(u,!0);if(s)return s(u,!0);var f=new Error("Cannot find module '"+u+"'");throw f.code="MODULE_NOT_FOUND",f}var d=r[u]={exports:{}};i[u][0].call(d.exports,function(g){var y=i[u][1][g];return o(y||g)},d,d.exports,t,i,r,a)}return r[u].exports}for(var s=typeof qh=="function"&&qh,l=0;l<a.length;l++)o(a[l]);return o}({1:[function(t,i,r){var a=t("./utils"),o=t("./support"),s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";r.encode=function(l){for(var u,c,h,f,d,g,y,_=[],v=0,p=l.length,x=p,b=a.getTypeOf(l)!=="string";v<l.length;)x=p-v,h=b?(u=l[v++],c=v<p?l[v++]:0,v<p?l[v++]:0):(u=l.charCodeAt(v++),c=v<p?l.charCodeAt(v++):0,v<p?l.charCodeAt(v++):0),f=u>>2,d=(3&u)<<4|c>>4,g=1<x?(15&c)<<2|h>>6:64,y=2<x?63&h:64,_.push(s.charAt(f)+s.charAt(d)+s.charAt(g)+s.charAt(y));return _.join("")},r.decode=function(l){var u,c,h,f,d,g,y=0,_=0,v="data:";if(l.substr(0,v.length)===v)throw new Error("Invalid base64 input, it looks like a data url.");var p,x=3*(l=l.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(l.charAt(l.length-1)===s.charAt(64)&&x--,l.charAt(l.length-2)===s.charAt(64)&&x--,x%1!=0)throw new Error("Invalid base64 input, bad content length.");for(p=o.uint8array?new Uint8Array(0|x):new Array(0|x);y<l.length;)u=s.indexOf(l.charAt(y++))<<2|(f=s.indexOf(l.charAt(y++)))>>4,c=(15&f)<<4|(d=s.indexOf(l.charAt(y++)))>>2,h=(3&d)<<6|(g=s.indexOf(l.charAt(y++))),p[_++]=u,d!==64&&(p[_++]=c),g!==64&&(p[_++]=h);return p}},{"./support":30,"./utils":32}],2:[function(t,i,r){var a=t("./external"),o=t("./stream/DataWorker"),s=t("./stream/Crc32Probe"),l=t("./stream/DataLengthProbe");function u(c,h,f,d,g){this.compressedSize=c,this.uncompressedSize=h,this.crc32=f,this.compression=d,this.compressedContent=g}u.prototype={getContentWorker:function(){var c=new o(a.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new l("data_length")),h=this;return c.on("end",function(){if(this.streamInfo.data_length!==h.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),c},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(c,h,f){return c.pipe(new s).pipe(new l("uncompressedSize")).pipe(h.compressWorker(f)).pipe(new l("compressedSize")).withStreamInfo("compression",h)},i.exports=u},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(t,i,r){var a=t("./stream/GenericWorker");r.STORE={magic:"\0\0",compressWorker:function(){return new a("STORE compression")},uncompressWorker:function(){return new a("STORE decompression")}},r.DEFLATE=t("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(t,i,r){var a=t("./utils"),o=function(){for(var s,l=[],u=0;u<256;u++){s=u;for(var c=0;c<8;c++)s=1&s?3988292384^s>>>1:s>>>1;l[u]=s}return l}();i.exports=function(s,l){return s!==void 0&&s.length?a.getTypeOf(s)!=="string"?function(u,c,h,f){var d=o,g=f+h;u^=-1;for(var y=f;y<g;y++)u=u>>>8^d[255&(u^c[y])];return-1^u}(0|l,s,s.length,0):function(u,c,h,f){var d=o,g=f+h;u^=-1;for(var y=f;y<g;y++)u=u>>>8^d[255&(u^c.charCodeAt(y))];return-1^u}(0|l,s,s.length,0):0}},{"./utils":32}],5:[function(t,i,r){r.base64=!1,r.binary=!1,r.dir=!1,r.createFolders=!0,r.date=null,r.compression=null,r.compressionOptions=null,r.comment=null,r.unixPermissions=null,r.dosPermissions=null},{}],6:[function(t,i,r){var a=null;a=typeof Promise<"u"?Promise:t("lie"),i.exports={Promise:a}},{lie:37}],7:[function(t,i,r){var a=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Uint32Array<"u",o=t("pako"),s=t("./utils"),l=t("./stream/GenericWorker"),u=a?"uint8array":"array";function c(h,f){l.call(this,"FlateWorker/"+h),this._pako=null,this._pakoAction=h,this._pakoOptions=f,this.meta={}}r.magic="\b\0",s.inherits(c,l),c.prototype.processChunk=function(h){this.meta=h.meta,this._pako===null&&this._createPako(),this._pako.push(s.transformTo(u,h.data),!1)},c.prototype.flush=function(){l.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)},c.prototype.cleanUp=function(){l.prototype.cleanUp.call(this),this._pako=null},c.prototype._createPako=function(){this._pako=new o[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var h=this;this._pako.onData=function(f){h.push({data:f,meta:h.meta})}},r.compressWorker=function(h){return new c("Deflate",h)},r.uncompressWorker=function(){return new c("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(t,i,r){function a(d,g){var y,_="";for(y=0;y<g;y++)_+=String.fromCharCode(255&d),d>>>=8;return _}function o(d,g,y,_,v,p){var x,b,S=d.file,M=d.compression,I=p!==u.utf8encode,A=s.transformTo("string",p(S.name)),C=s.transformTo("string",u.utf8encode(S.name)),L=S.comment,R=s.transformTo("string",p(L)),D=s.transformTo("string",u.utf8encode(L)),N=C.length!==S.name.length,k=D.length!==L.length,O="",F="",G="",q=S.dir,j=S.date,J={crc32:0,compressedSize:0,uncompressedSize:0};g&&!y||(J.crc32=d.crc32,J.compressedSize=d.compressedSize,J.uncompressedSize=d.uncompressedSize);var H=0;g&&(H|=8),I||!N&&!k||(H|=2048);var K=0,ut=0;q&&(K|=16),v==="UNIX"?(ut=798,K|=function(at,Nt){var Yt=at;return at||(Yt=Nt?16893:33204),(65535&Yt)<<16}(S.unixPermissions,q)):(ut=20,K|=function(at){return 63&(at||0)}(S.dosPermissions)),x=j.getUTCHours(),x<<=6,x|=j.getUTCMinutes(),x<<=5,x|=j.getUTCSeconds()/2,b=j.getUTCFullYear()-1980,b<<=4,b|=j.getUTCMonth()+1,b<<=5,b|=j.getUTCDate(),N&&(F=a(1,1)+a(c(A),4)+C,O+="up"+a(F.length,2)+F),k&&(G=a(1,1)+a(c(R),4)+D,O+="uc"+a(G.length,2)+G);var ot="";return ot+=`
|
|
12
|
+
\0`,ot+=a(H,2),ot+=M.magic,ot+=a(x,2),ot+=a(b,2),ot+=a(J.crc32,4),ot+=a(J.compressedSize,4),ot+=a(J.uncompressedSize,4),ot+=a(A.length,2),ot+=a(O.length,2),{fileRecord:h.LOCAL_FILE_HEADER+ot+A+O,dirRecord:h.CENTRAL_FILE_HEADER+a(ut,2)+ot+a(R.length,2)+"\0\0\0\0"+a(K,4)+a(_,4)+A+O+R}}var s=t("../utils"),l=t("../stream/GenericWorker"),u=t("../utf8"),c=t("../crc32"),h=t("../signature");function f(d,g,y,_){l.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=g,this.zipPlatform=y,this.encodeFileName=_,this.streamFiles=d,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}s.inherits(f,l),f.prototype.push=function(d){var g=d.meta.percent||0,y=this.entriesCount,_=this._sources.length;this.accumulate?this.contentBuffer.push(d):(this.bytesWritten+=d.data.length,l.prototype.push.call(this,{data:d.data,meta:{currentFile:this.currentFile,percent:y?(g+100*(y-_-1))/y:100}}))},f.prototype.openedSource=function(d){this.currentSourceOffset=this.bytesWritten,this.currentFile=d.file.name;var g=this.streamFiles&&!d.file.dir;if(g){var y=o(d,g,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:y.fileRecord,meta:{percent:0}})}else this.accumulate=!0},f.prototype.closedSource=function(d){this.accumulate=!1;var g=this.streamFiles&&!d.file.dir,y=o(d,g,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(y.dirRecord),g)this.push({data:function(_){return h.DATA_DESCRIPTOR+a(_.crc32,4)+a(_.compressedSize,4)+a(_.uncompressedSize,4)}(d),meta:{percent:100}});else for(this.push({data:y.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},f.prototype.flush=function(){for(var d=this.bytesWritten,g=0;g<this.dirRecords.length;g++)this.push({data:this.dirRecords[g],meta:{percent:100}});var y=this.bytesWritten-d,_=function(v,p,x,b,S){var M=s.transformTo("string",S(b));return h.CENTRAL_DIRECTORY_END+"\0\0\0\0"+a(v,2)+a(v,2)+a(p,4)+a(x,4)+a(M.length,2)+M}(this.dirRecords.length,y,d,this.zipComment,this.encodeFileName);this.push({data:_,meta:{percent:100}})},f.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},f.prototype.registerPrevious=function(d){this._sources.push(d);var g=this;return d.on("data",function(y){g.processChunk(y)}),d.on("end",function(){g.closedSource(g.previous.streamInfo),g._sources.length?g.prepareNextSource():g.end()}),d.on("error",function(y){g.error(y)}),this},f.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))},f.prototype.error=function(d){var g=this._sources;if(!l.prototype.error.call(this,d))return!1;for(var y=0;y<g.length;y++)try{g[y].error(d)}catch{}return!0},f.prototype.lock=function(){l.prototype.lock.call(this);for(var d=this._sources,g=0;g<d.length;g++)d[g].lock()},i.exports=f},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(t,i,r){var a=t("../compressions"),o=t("./ZipFileWorker");r.generateWorker=function(s,l,u){var c=new o(l.streamFiles,u,l.platform,l.encodeFileName),h=0;try{s.forEach(function(f,d){h++;var g=function(p,x){var b=p||x,S=a[b];if(!S)throw new Error(b+" is not a valid compression method !");return S}(d.options.compression,l.compression),y=d.options.compressionOptions||l.compressionOptions||{},_=d.dir,v=d.date;d._compressWorker(g,y).withStreamInfo("file",{name:f,dir:_,date:v,comment:d.comment||"",unixPermissions:d.unixPermissions,dosPermissions:d.dosPermissions}).pipe(c)}),c.entriesCount=h}catch(f){c.error(f)}return c}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(t,i,r){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=t("./object")).loadAsync=t("./load"),a.support=t("./support"),a.defaults=t("./defaults"),a.version="3.10.1",a.loadAsync=function(o,s){return new a().loadAsync(o,s)},a.external=t("./external"),i.exports=a},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(t,i,r){var a=t("./utils"),o=t("./external"),s=t("./utf8"),l=t("./zipEntries"),u=t("./stream/Crc32Probe"),c=t("./nodejsUtils");function h(f){return new o.Promise(function(d,g){var y=f.decompressed.getContentWorker().pipe(new u);y.on("error",function(_){g(_)}).on("end",function(){y.streamInfo.crc32!==f.decompressed.crc32?g(new Error("Corrupted zip : CRC32 mismatch")):d()}).resume()})}i.exports=function(f,d){var g=this;return d=a.extend(d||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:s.utf8decode}),c.isNode&&c.isStream(f)?o.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):a.prepareContent("the loaded zip file",f,!0,d.optimizedBinaryString,d.base64).then(function(y){var _=new l(d);return _.load(y),_}).then(function(y){var _=[o.Promise.resolve(y)],v=y.files;if(d.checkCRC32)for(var p=0;p<v.length;p++)_.push(h(v[p]));return o.Promise.all(_)}).then(function(y){for(var _=y.shift(),v=_.files,p=0;p<v.length;p++){var x=v[p],b=x.fileNameStr,S=a.resolve(x.fileNameStr);g.file(S,x.decompressed,{binary:!0,optimizedBinaryString:!0,date:x.date,dir:x.dir,comment:x.fileCommentStr.length?x.fileCommentStr:null,unixPermissions:x.unixPermissions,dosPermissions:x.dosPermissions,createFolders:d.createFolders}),x.dir||(g.file(S).unsafeOriginalName=b)}return _.zipComment.length&&(g.comment=_.zipComment),g})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(t,i,r){var a=t("../utils"),o=t("../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(c){u.push({data:c,meta:{percent:0}})}).on("error",function(c){u.isPaused?this.generatedError=c:u.error(c)}).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)},i.exports=s},{"../stream/GenericWorker":28,"../utils":32}],13:[function(t,i,r){var a=t("readable-stream").Readable;function o(s,l,u){a.call(this,l),this._helper=s;var c=this;s.on("data",function(h,f){c.push(h)||c._helper.pause(),u&&u(f)}).on("error",function(h){c.emit("error",h)}).on("end",function(){c.push(null)})}t("../utils").inherits(o,a),o.prototype._read=function(){this._helper.resume()},i.exports=o},{"../utils":32,"readable-stream":16}],14:[function(t,i,r){i.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(t,i,r){function a(S,M,I){var A,C=s.getTypeOf(M),L=s.extend(I||{},c);L.date=L.date||new Date,L.compression!==null&&(L.compression=L.compression.toUpperCase()),typeof L.unixPermissions=="string"&&(L.unixPermissions=parseInt(L.unixPermissions,8)),L.unixPermissions&&16384&L.unixPermissions&&(L.dir=!0),L.dosPermissions&&16&L.dosPermissions&&(L.dir=!0),L.dir&&(S=v(S)),L.createFolders&&(A=_(S))&&p.call(this,A,!0);var R=C==="string"&&L.binary===!1&&L.base64===!1;I&&I.binary!==void 0||(L.binary=!R),(M instanceof h&&M.uncompressedSize===0||L.dir||!M||M.length===0)&&(L.base64=!1,L.binary=!0,M="",L.compression="STORE",C="string");var D=null;D=M instanceof h||M instanceof l?M:g.isNode&&g.isStream(M)?new y(S,M):s.prepareContent(S,M,L.binary,L.optimizedBinaryString,L.base64);var N=new f(S,D,L);this.files[S]=N}var o=t("./utf8"),s=t("./utils"),l=t("./stream/GenericWorker"),u=t("./stream/StreamHelper"),c=t("./defaults"),h=t("./compressedObject"),f=t("./zipObject"),d=t("./generate"),g=t("./nodejsUtils"),y=t("./nodejs/NodejsStreamInputAdapter"),_=function(S){S.slice(-1)==="/"&&(S=S.substring(0,S.length-1));var M=S.lastIndexOf("/");return 0<M?S.substring(0,M):""},v=function(S){return S.slice(-1)!=="/"&&(S+="/"),S},p=function(S,M){return M=M!==void 0?M:c.createFolders,S=v(S),this.files[S]||a.call(this,S,null,{dir:!0,createFolders:M}),this.files[S]};function x(S){return Object.prototype.toString.call(S)==="[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(S){var M,I,A;for(M in this.files)A=this.files[M],(I=M.slice(this.root.length,M.length))&&M.slice(0,this.root.length)===this.root&&S(I,A)},filter:function(S){var M=[];return this.forEach(function(I,A){S(I,A)&&M.push(A)}),M},file:function(S,M,I){if(arguments.length!==1)return S=this.root+S,a.call(this,S,M,I),this;if(x(S)){var A=S;return this.filter(function(L,R){return!R.dir&&A.test(L)})}var C=this.files[this.root+S];return C&&!C.dir?C:null},folder:function(S){if(!S)return this;if(x(S))return this.filter(function(C,L){return L.dir&&S.test(C)});var M=this.root+S,I=p.call(this,M),A=this.clone();return A.root=I.name,A},remove:function(S){S=this.root+S;var M=this.files[S];if(M||(S.slice(-1)!=="/"&&(S+="/"),M=this.files[S]),M&&!M.dir)delete this.files[S];else for(var I=this.filter(function(C,L){return L.name.slice(0,S.length)===S}),A=0;A<I.length;A++)delete this.files[I[A].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(S){var M,I={};try{if((I=s.extend(S||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:o.utf8encode})).type=I.type.toLowerCase(),I.compression=I.compression.toUpperCase(),I.type==="binarystring"&&(I.type="string"),!I.type)throw new Error("No output type specified.");s.checkSupport(I.type),I.platform!=="darwin"&&I.platform!=="freebsd"&&I.platform!=="linux"&&I.platform!=="sunos"||(I.platform="UNIX"),I.platform==="win32"&&(I.platform="DOS");var A=I.comment||this.comment||"";M=d.generateWorker(this,I,A)}catch(C){(M=new l("error")).error(C)}return new u(M,I.type||"string",I.mimeType)},generateAsync:function(S,M){return this.generateInternalStream(S).accumulate(M)},generateNodeStream:function(S,M){return(S=S||{}).type||(S.type="nodebuffer"),this.generateInternalStream(S).toNodejsStream(M)}};i.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(t,i,r){i.exports=t("stream")},{stream:void 0}],17:[function(t,i,r){var a=t("./DataReader");function o(s){a.call(this,s);for(var l=0;l<this.data.length;l++)s[l]=255&s[l]}t("../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),c=s.charCodeAt(2),h=s.charCodeAt(3),f=this.length-4;0<=f;--f)if(this.data[f]===l&&this.data[f+1]===u&&this.data[f+2]===c&&this.data[f+3]===h)return f-this.zero;return-1},o.prototype.readAndCheckSignature=function(s){var l=s.charCodeAt(0),u=s.charCodeAt(1),c=s.charCodeAt(2),h=s.charCodeAt(3),f=this.readData(4);return l===f[0]&&u===f[1]&&c===f[2]&&h===f[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},i.exports=o},{"../utils":32,"./DataReader":18}],18:[function(t,i,r){var a=t("../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))}},i.exports=o},{"../utils":32}],19:[function(t,i,r){var a=t("./Uint8ArrayReader");function o(s){a.call(this,s)}t("../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},i.exports=o},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(t,i,r){var a=t("./DataReader");function o(s){a.call(this,s)}t("../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},i.exports=o},{"../utils":32,"./DataReader":18}],21:[function(t,i,r){var a=t("./ArrayReader");function o(s){a.call(this,s)}t("../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},i.exports=o},{"../utils":32,"./ArrayReader":17}],22:[function(t,i,r){var a=t("../utils"),o=t("../support"),s=t("./ArrayReader"),l=t("./StringReader"),u=t("./NodeBufferReader"),c=t("./Uint8ArrayReader");i.exports=function(h){var f=a.getTypeOf(h);return a.checkSupport(f),f!=="string"||o.uint8array?f==="nodebuffer"?new u(h):o.uint8array?new c(a.transformTo("uint8array",h)):new s(a.transformTo("array",h)):new l(h)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(t,i,r){r.LOCAL_FILE_HEADER="PK",r.CENTRAL_FILE_HEADER="PK",r.CENTRAL_DIRECTORY_END="PK",r.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x07",r.ZIP64_CENTRAL_DIRECTORY_END="PK",r.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(t,i,r){var a=t("./GenericWorker"),o=t("../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})},i.exports=s},{"../utils":32,"./GenericWorker":28}],25:[function(t,i,r){var a=t("./GenericWorker"),o=t("../crc32");function s(){a.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}t("../utils").inherits(s,a),s.prototype.processChunk=function(l){this.streamInfo.crc32=o(l.data,this.streamInfo.crc32||0),this.push(l)},i.exports=s},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(t,i,r){var a=t("../utils"),o=t("./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)},i.exports=s},{"../utils":32,"./GenericWorker":28}],27:[function(t,i,r){var a=t("../utils"),o=t("./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(c){u.dataIsReady=!0,u.data=c,u.max=c&&c.length||0,u.type=a.getTypeOf(c),u.isPaused||u._tickAndRepeat()},function(c){u.error(c)})}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}})},i.exports=s},{"../utils":32,"./GenericWorker":28}],28:[function(t,i,r){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}},i.exports=a},{}],29:[function(t,i,r){var a=t("../utils"),o=t("./ConvertWorker"),s=t("./GenericWorker"),l=t("../base64"),u=t("../support"),c=t("../external"),h=null;if(u.nodestream)try{h=t("../nodejs/NodejsStreamOutputAdapter")}catch{}function f(g,y){return new c.Promise(function(_,v){var p=[],x=g._internalType,b=g._outputType,S=g._mimeType;g.on("data",function(M,I){p.push(M),y&&y(I)}).on("error",function(M){p=[],v(M)}).on("end",function(){try{var M=function(I,A,C){switch(I){case"blob":return a.newBlob(a.transformTo("arraybuffer",A),C);case"base64":return l.encode(A);default:return a.transformTo(I,A)}}(b,function(I,A){var C,L=0,R=null,D=0;for(C=0;C<A.length;C++)D+=A[C].length;switch(I){case"string":return A.join("");case"array":return Array.prototype.concat.apply([],A);case"uint8array":for(R=new Uint8Array(D),C=0;C<A.length;C++)R.set(A[C],L),L+=A[C].length;return R;case"nodebuffer":return Buffer.concat(A);default:throw new Error("concat : unsupported type '"+I+"'")}}(x,p),S);_(M)}catch(I){v(I)}p=[]}).resume()})}function d(g,y,_){var v=y;switch(y){case"blob":case"arraybuffer":v="uint8array";break;case"base64":v="string"}try{this._internalType=v,this._outputType=y,this._mimeType=_,a.checkSupport(v),this._worker=g.pipe(new o(v)),g.lock()}catch(p){this._worker=new s("error"),this._worker.error(p)}}d.prototype={accumulate:function(g){return f(this,g)},on:function(g,y){var _=this;return g==="data"?this._worker.on(g,function(v){y.call(_,v.data,v.meta)}):this._worker.on(g,function(){a.delay(y,arguments,_)}),this},resume:function(){return a.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(g){if(a.checkSupport("nodestream"),this._outputType!=="nodebuffer")throw new Error(this._outputType+" is not supported by this method");return new h(this,{objectMode:this._outputType!=="nodebuffer"},g)}},i.exports=d},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(t,i,r){if(r.base64=!0,r.array=!0,r.string=!0,r.arraybuffer=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u",r.nodebuffer=typeof Buffer<"u",r.uint8array=typeof Uint8Array<"u",typeof ArrayBuffer>"u")r.blob=!1;else{var a=new ArrayBuffer(0);try{r.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),r.blob=o.getBlob("application/zip").size===0}catch{r.blob=!1}}}try{r.nodestream=!!t("readable-stream").Readable}catch{r.nodestream=!1}},{"readable-stream":16}],31:[function(t,i,r){for(var a=t("./utils"),o=t("./support"),s=t("./nodejsUtils"),l=t("./stream/GenericWorker"),u=new Array(256),c=0;c<256;c++)u[c]=252<=c?6:248<=c?5:240<=c?4:224<=c?3:192<=c?2:1;u[254]=u[254]=1;function h(){l.call(this,"utf-8 decode"),this.leftOver=null}function f(){l.call(this,"utf-8 encode")}r.utf8encode=function(d){return o.nodebuffer?s.newBufferFrom(d,"utf-8"):function(g){var y,_,v,p,x,b=g.length,S=0;for(p=0;p<b;p++)(64512&(_=g.charCodeAt(p)))==55296&&p+1<b&&(64512&(v=g.charCodeAt(p+1)))==56320&&(_=65536+(_-55296<<10)+(v-56320),p++),S+=_<128?1:_<2048?2:_<65536?3:4;for(y=o.uint8array?new Uint8Array(S):new Array(S),p=x=0;x<S;p++)(64512&(_=g.charCodeAt(p)))==55296&&p+1<b&&(64512&(v=g.charCodeAt(p+1)))==56320&&(_=65536+(_-55296<<10)+(v-56320),p++),_<128?y[x++]=_:(_<2048?y[x++]=192|_>>>6:(_<65536?y[x++]=224|_>>>12:(y[x++]=240|_>>>18,y[x++]=128|_>>>12&63),y[x++]=128|_>>>6&63),y[x++]=128|63&_);return y}(d)},r.utf8decode=function(d){return o.nodebuffer?a.transformTo("nodebuffer",d).toString("utf-8"):function(g){var y,_,v,p,x=g.length,b=new Array(2*x);for(y=_=0;y<x;)if((v=g[y++])<128)b[_++]=v;else if(4<(p=u[v]))b[_++]=65533,y+=p-1;else{for(v&=p===2?31:p===3?15:7;1<p&&y<x;)v=v<<6|63&g[y++],p--;1<p?b[_++]=65533:v<65536?b[_++]=v:(v-=65536,b[_++]=55296|v>>10&1023,b[_++]=56320|1023&v)}return b.length!==_&&(b.subarray?b=b.subarray(0,_):b.length=_),a.applyFromCharCode(b)}(d=a.transformTo(o.uint8array?"uint8array":"array",d))},a.inherits(h,l),h.prototype.processChunk=function(d){var g=a.transformTo(o.uint8array?"uint8array":"array",d.data);if(this.leftOver&&this.leftOver.length){if(o.uint8array){var y=g;(g=new Uint8Array(y.length+this.leftOver.length)).set(this.leftOver,0),g.set(y,this.leftOver.length)}else g=this.leftOver.concat(g);this.leftOver=null}var _=function(p,x){var b;for((x=x||p.length)>p.length&&(x=p.length),b=x-1;0<=b&&(192&p[b])==128;)b--;return b<0||b===0?x:b+u[p[b]]>x?b:x}(g),v=g;_!==g.length&&(o.uint8array?(v=g.subarray(0,_),this.leftOver=g.subarray(_,g.length)):(v=g.slice(0,_),this.leftOver=g.slice(_,g.length))),this.push({data:r.utf8decode(v),meta:d.meta})},h.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:r.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},r.Utf8DecodeWorker=h,a.inherits(f,l),f.prototype.processChunk=function(d){this.push({data:r.utf8encode(d.data),meta:d.meta})},r.Utf8EncodeWorker=f},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(t,i,r){var a=t("./support"),o=t("./base64"),s=t("./nodejsUtils"),l=t("./external");function u(y){return y}function c(y,_){for(var v=0;v<y.length;++v)_[v]=255&y.charCodeAt(v);return _}t("setimmediate"),r.newBlob=function(y,_){r.checkSupport("blob");try{return new Blob([y],{type:_})}catch{try{var v=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return v.append(y),v.getBlob(_)}catch{throw new Error("Bug : can't construct the Blob.")}}};var h={stringifyByChunk:function(y,_,v){var p=[],x=0,b=y.length;if(b<=v)return String.fromCharCode.apply(null,y);for(;x<b;)_==="array"||_==="nodebuffer"?p.push(String.fromCharCode.apply(null,y.slice(x,Math.min(x+v,b)))):p.push(String.fromCharCode.apply(null,y.subarray(x,Math.min(x+v,b)))),x+=v;return p.join("")},stringifyByChar:function(y){for(var _="",v=0;v<y.length;v++)_+=String.fromCharCode(y[v]);return _},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 f(y){var _=65536,v=r.getTypeOf(y),p=!0;if(v==="uint8array"?p=h.applyCanBeUsed.uint8array:v==="nodebuffer"&&(p=h.applyCanBeUsed.nodebuffer),p)for(;1<_;)try{return h.stringifyByChunk(y,v,_)}catch{_=Math.floor(_/2)}return h.stringifyByChar(y)}function d(y,_){for(var v=0;v<y.length;v++)_[v]=y[v];return _}r.applyFromCharCode=f;var g={};g.string={string:u,array:function(y){return c(y,new Array(y.length))},arraybuffer:function(y){return g.string.uint8array(y).buffer},uint8array:function(y){return c(y,new Uint8Array(y.length))},nodebuffer:function(y){return c(y,s.allocBuffer(y.length))}},g.array={string:f,array:u,arraybuffer:function(y){return new Uint8Array(y).buffer},uint8array:function(y){return new Uint8Array(y)},nodebuffer:function(y){return s.newBufferFrom(y)}},g.arraybuffer={string:function(y){return f(new Uint8Array(y))},array:function(y){return d(new Uint8Array(y),new Array(y.byteLength))},arraybuffer:u,uint8array:function(y){return new Uint8Array(y)},nodebuffer:function(y){return s.newBufferFrom(new Uint8Array(y))}},g.uint8array={string:f,array:function(y){return d(y,new Array(y.length))},arraybuffer:function(y){return y.buffer},uint8array:u,nodebuffer:function(y){return s.newBufferFrom(y)}},g.nodebuffer={string:f,array:function(y){return d(y,new Array(y.length))},arraybuffer:function(y){return g.nodebuffer.uint8array(y).buffer},uint8array:function(y){return d(y,new Uint8Array(y.length))},nodebuffer:u},r.transformTo=function(y,_){if(_=_||"",!y)return _;r.checkSupport(y);var v=r.getTypeOf(_);return g[v][y](_)},r.resolve=function(y){for(var _=y.split("/"),v=[],p=0;p<_.length;p++){var x=_[p];x==="."||x===""&&p!==0&&p!==_.length-1||(x===".."?v.pop():v.push(x))}return v.join("/")},r.getTypeOf=function(y){return typeof y=="string"?"string":Object.prototype.toString.call(y)==="[object Array]"?"array":a.nodebuffer&&s.isBuffer(y)?"nodebuffer":a.uint8array&&y instanceof Uint8Array?"uint8array":a.arraybuffer&&y instanceof ArrayBuffer?"arraybuffer":void 0},r.checkSupport=function(y){if(!a[y.toLowerCase()])throw new Error(y+" is not supported by this platform")},r.MAX_VALUE_16BITS=65535,r.MAX_VALUE_32BITS=-1,r.pretty=function(y){var _,v,p="";for(v=0;v<(y||"").length;v++)p+="\\x"+((_=y.charCodeAt(v))<16?"0":"")+_.toString(16).toUpperCase();return p},r.delay=function(y,_,v){setImmediate(function(){y.apply(v||null,_||[])})},r.inherits=function(y,_){function v(){}v.prototype=_.prototype,y.prototype=new v},r.extend=function(){var y,_,v={};for(y=0;y<arguments.length;y++)for(_ in arguments[y])Object.prototype.hasOwnProperty.call(arguments[y],_)&&v[_]===void 0&&(v[_]=arguments[y][_]);return v},r.prepareContent=function(y,_,v,p,x){return l.Promise.resolve(_).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(S,M){var I=new FileReader;I.onload=function(A){S(A.target.result)},I.onerror=function(A){M(A.target.error)},I.readAsArrayBuffer(b)}):b}).then(function(b){var S=r.getTypeOf(b);return S?(S==="arraybuffer"?b=r.transformTo("uint8array",b):S==="string"&&(x?b=o.decode(b):v&&p!==!0&&(b=function(M){return c(M,a.uint8array?new Uint8Array(M.length):new Array(M.length))}(b))),b):l.Promise.reject(new Error("Can't read the data of '"+y+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(t,i,r){var a=t("./reader/readerFor"),o=t("./utils"),s=t("./signature"),l=t("./zipEntry"),u=t("./support");function c(h){this.files=[],this.loadOptions=h}c.prototype={checkSignature:function(h){if(!this.reader.readAndCheckSignature(h)){this.reader.index-=4;var f=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+o.pretty(f)+", expected "+o.pretty(h)+")")}},isSignature:function(h,f){var d=this.reader.index;this.reader.setIndex(h);var g=this.reader.readString(4)===f;return this.reader.setIndex(d),g},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 h=this.reader.readData(this.zipCommentLength),f=u.uint8array?"uint8array":"array",d=o.transformTo(f,h);this.zipComment=this.loadOptions.decodeFileName(d)},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 h,f,d,g=this.zip64EndOfCentralSize-44;0<g;)h=this.reader.readInt(2),f=this.reader.readInt(4),d=this.reader.readData(f),this.zip64ExtensibleData[h]={id:h,length:f,value:d}},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 h,f;for(h=0;h<this.files.length;h++)f=this.files[h],this.reader.setIndex(f.localHeaderOffset),this.checkSignature(s.LOCAL_FILE_HEADER),f.readLocalPart(this.reader),f.handleUTF8(),f.processAttributes()},readCentralDir:function(){var h;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(s.CENTRAL_FILE_HEADER);)(h=new l({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(h);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 h=this.reader.lastIndexOfSignature(s.CENTRAL_DIRECTORY_END);if(h<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(h);var f=h;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,(h=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(h),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 d=this.centralDirOffset+this.centralDirSize;this.zip64&&(d+=20,d+=12+this.zip64EndOfCentralSize);var g=f-d;if(0<g)this.isSignature(f,s.CENTRAL_FILE_HEADER)||(this.reader.zero=g);else if(g<0)throw new Error("Corrupted zip: missing "+Math.abs(g)+" bytes.")},prepareReader:function(h){this.reader=a(h)},load:function(h){this.prepareReader(h),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},i.exports=c},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(t,i,r){var a=t("./reader/readerFor"),o=t("./utils"),s=t("./compressedObject"),l=t("./crc32"),u=t("./utf8"),c=t("./compressions"),h=t("./support");function f(d,g){this.options=d,this.loadOptions=g}f.prototype={isEncrypted:function(){return(1&this.bitFlag)==1},useUTF8:function(){return(2048&this.bitFlag)==2048},readLocalPart:function(d){var g,y;if(d.skip(22),this.fileNameLength=d.readInt(2),y=d.readInt(2),this.fileName=d.readData(this.fileNameLength),d.skip(y),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((g=function(_){for(var v in c)if(Object.prototype.hasOwnProperty.call(c,v)&&c[v].magic===_)return c[v];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,g,d.readData(this.compressedSize))},readCentralPart:function(d){this.versionMadeBy=d.readInt(2),d.skip(2),this.bitFlag=d.readInt(2),this.compressionMethod=d.readString(2),this.date=d.readDate(),this.crc32=d.readInt(4),this.compressedSize=d.readInt(4),this.uncompressedSize=d.readInt(4);var g=d.readInt(2);if(this.extraFieldsLength=d.readInt(2),this.fileCommentLength=d.readInt(2),this.diskNumberStart=d.readInt(2),this.internalFileAttributes=d.readInt(2),this.externalFileAttributes=d.readInt(4),this.localHeaderOffset=d.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");d.skip(g),this.readExtraFields(d),this.parseZIP64ExtraField(d),this.fileComment=d.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var d=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),d==0&&(this.dosPermissions=63&this.externalFileAttributes),d==3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!=="/"||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var d=a(this.extraFields[1].value);this.uncompressedSize===o.MAX_VALUE_32BITS&&(this.uncompressedSize=d.readInt(8)),this.compressedSize===o.MAX_VALUE_32BITS&&(this.compressedSize=d.readInt(8)),this.localHeaderOffset===o.MAX_VALUE_32BITS&&(this.localHeaderOffset=d.readInt(8)),this.diskNumberStart===o.MAX_VALUE_32BITS&&(this.diskNumberStart=d.readInt(4))}},readExtraFields:function(d){var g,y,_,v=d.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});d.index+4<v;)g=d.readInt(2),y=d.readInt(2),_=d.readData(y),this.extraFields[g]={id:g,length:y,value:_};d.setIndex(v)},handleUTF8:function(){var d=h.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=u.utf8decode(this.fileName),this.fileCommentStr=u.utf8decode(this.fileComment);else{var g=this.findExtraFieldUnicodePath();if(g!==null)this.fileNameStr=g;else{var y=o.transformTo(d,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(y)}var _=this.findExtraFieldUnicodeComment();if(_!==null)this.fileCommentStr=_;else{var v=o.transformTo(d,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(v)}}},findExtraFieldUnicodePath:function(){var d=this.extraFields[28789];if(d){var g=a(d.value);return g.readInt(1)!==1||l(this.fileName)!==g.readInt(4)?null:u.utf8decode(g.readData(d.length-5))}return null},findExtraFieldUnicodeComment:function(){var d=this.extraFields[25461];if(d){var g=a(d.value);return g.readInt(1)!==1||l(this.fileComment)!==g.readInt(4)?null:u.utf8decode(g.readData(d.length-5))}return null}},i.exports=f},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(t,i,r){function a(g,y,_){this.name=g,this.dir=_.dir,this.date=_.date,this.comment=_.comment,this.unixPermissions=_.unixPermissions,this.dosPermissions=_.dosPermissions,this._data=y,this._dataBinary=_.binary,this.options={compression:_.compression,compressionOptions:_.compressionOptions}}var o=t("./stream/StreamHelper"),s=t("./stream/DataWorker"),l=t("./utf8"),u=t("./compressedObject"),c=t("./stream/GenericWorker");a.prototype={internalStream:function(g){var y=null,_="string";try{if(!g)throw new Error("No output type specified.");var v=(_=g.toLowerCase())==="string"||_==="text";_!=="binarystring"&&_!=="text"||(_="string"),y=this._decompressWorker();var p=!this._dataBinary;p&&!v&&(y=y.pipe(new l.Utf8EncodeWorker)),!p&&v&&(y=y.pipe(new l.Utf8DecodeWorker))}catch(x){(y=new c("error")).error(x)}return new o(y,_,"")},async:function(g,y){return this.internalStream(g).accumulate(y)},nodeStream:function(g,y){return this.internalStream(g||"nodebuffer").toNodejsStream(y)},_compressWorker:function(g,y){if(this._data instanceof u&&this._data.compression.magic===g.magic)return this._data.getCompressedWorker();var _=this._decompressWorker();return this._dataBinary||(_=_.pipe(new l.Utf8EncodeWorker)),u.createWorkerFrom(_,g,y)},_decompressWorker:function(){return this._data instanceof u?this._data.getContentWorker():this._data instanceof c?this._data:new s(this._data)}};for(var h=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],f=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},d=0;d<h.length;d++)a.prototype[h[d]]=f;i.exports=a},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(t,i,r){(function(a){var o,s,l=a.MutationObserver||a.WebKitMutationObserver;if(l){var u=0,c=new l(g),h=a.document.createTextNode("");c.observe(h,{characterData:!0}),o=function(){h.data=u=++u%2}}else if(a.setImmediate||a.MessageChannel===void 0)o="document"in a&&"onreadystatechange"in a.document.createElement("script")?function(){var y=a.document.createElement("script");y.onreadystatechange=function(){g(),y.onreadystatechange=null,y.parentNode.removeChild(y),y=null},a.document.documentElement.appendChild(y)}:function(){setTimeout(g,0)};else{var f=new a.MessageChannel;f.port1.onmessage=g,o=function(){f.port2.postMessage(0)}}var d=[];function g(){var y,_;s=!0;for(var v=d.length;v;){for(_=d,d=[],y=-1;++y<v;)_[y]();v=d.length}s=!1}i.exports=function(y){d.push(y)!==1||s||o()}}).call(this,typeof Jr<"u"?Jr:typeof self<"u"?self:typeof window<"u"?window:{})},{}],37:[function(t,i,r){var a=t("immediate");function o(){}var s={},l=["REJECTED"],u=["FULFILLED"],c=["PENDING"];function h(v){if(typeof v!="function")throw new TypeError("resolver must be a function");this.state=c,this.queue=[],this.outcome=void 0,v!==o&&y(this,v)}function f(v,p,x){this.promise=v,typeof p=="function"&&(this.onFulfilled=p,this.callFulfilled=this.otherCallFulfilled),typeof x=="function"&&(this.onRejected=x,this.callRejected=this.otherCallRejected)}function d(v,p,x){a(function(){var b;try{b=p(x)}catch(S){return s.reject(v,S)}b===v?s.reject(v,new TypeError("Cannot resolve promise with itself")):s.resolve(v,b)})}function g(v){var p=v&&v.then;if(v&&(typeof v=="object"||typeof v=="function")&&typeof p=="function")return function(){p.apply(v,arguments)}}function y(v,p){var x=!1;function b(I){x||(x=!0,s.reject(v,I))}function S(I){x||(x=!0,s.resolve(v,I))}var M=_(function(){p(S,b)});M.status==="error"&&b(M.value)}function _(v,p){var x={};try{x.value=v(p),x.status="success"}catch(b){x.status="error",x.value=b}return x}(i.exports=h).prototype.finally=function(v){if(typeof v!="function")return this;var p=this.constructor;return this.then(function(x){return p.resolve(v()).then(function(){return x})},function(x){return p.resolve(v()).then(function(){throw x})})},h.prototype.catch=function(v){return this.then(null,v)},h.prototype.then=function(v,p){if(typeof v!="function"&&this.state===u||typeof p!="function"&&this.state===l)return this;var x=new this.constructor(o);return this.state!==c?d(x,this.state===u?v:p,this.outcome):this.queue.push(new f(x,v,p)),x},f.prototype.callFulfilled=function(v){s.resolve(this.promise,v)},f.prototype.otherCallFulfilled=function(v){d(this.promise,this.onFulfilled,v)},f.prototype.callRejected=function(v){s.reject(this.promise,v)},f.prototype.otherCallRejected=function(v){d(this.promise,this.onRejected,v)},s.resolve=function(v,p){var x=_(g,p);if(x.status==="error")return s.reject(v,x.value);var b=x.value;if(b)y(v,b);else{v.state=u,v.outcome=p;for(var S=-1,M=v.queue.length;++S<M;)v.queue[S].callFulfilled(p)}return v},s.reject=function(v,p){v.state=l,v.outcome=p;for(var x=-1,b=v.queue.length;++x<b;)v.queue[x].callRejected(p);return v},h.resolve=function(v){return v instanceof this?v:s.resolve(new this(o),v)},h.reject=function(v){var p=new this(o);return s.reject(p,v)},h.all=function(v){var p=this;if(Object.prototype.toString.call(v)!=="[object Array]")return this.reject(new TypeError("must be an array"));var x=v.length,b=!1;if(!x)return this.resolve([]);for(var S=new Array(x),M=0,I=-1,A=new this(o);++I<x;)C(v[I],I);return A;function C(L,R){p.resolve(L).then(function(D){S[R]=D,++M!==x||b||(b=!0,s.resolve(A,S))},function(D){b||(b=!0,s.reject(A,D))})}},h.race=function(v){var p=this;if(Object.prototype.toString.call(v)!=="[object Array]")return this.reject(new TypeError("must be an array"));var x=v.length,b=!1;if(!x)return this.resolve([]);for(var S=-1,M=new this(o);++S<x;)I=v[S],p.resolve(I).then(function(A){b||(b=!0,s.resolve(M,A))},function(A){b||(b=!0,s.reject(M,A))});var I;return M}},{immediate:36}],38:[function(t,i,r){var a={};(0,t("./lib/utils/common").assign)(a,t("./lib/deflate"),t("./lib/inflate"),t("./lib/zlib/constants")),i.exports=a},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(t,i,r){var a=t("./zlib/deflate"),o=t("./utils/common"),s=t("./utils/strings"),l=t("./zlib/messages"),u=t("./zlib/zstream"),c=Object.prototype.toString,h=0,f=-1,d=0,g=8;function y(v){if(!(this instanceof y))return new y(v);this.options=o.assign({level:f,method:g,chunkSize:16384,windowBits:15,memLevel:8,strategy:d,to:""},v||{});var p=this.options;p.raw&&0<p.windowBits?p.windowBits=-p.windowBits:p.gzip&&0<p.windowBits&&p.windowBits<16&&(p.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new u,this.strm.avail_out=0;var x=a.deflateInit2(this.strm,p.level,p.method,p.windowBits,p.memLevel,p.strategy);if(x!==h)throw new Error(l[x]);if(p.header&&a.deflateSetHeader(this.strm,p.header),p.dictionary){var b;if(b=typeof p.dictionary=="string"?s.string2buf(p.dictionary):c.call(p.dictionary)==="[object ArrayBuffer]"?new Uint8Array(p.dictionary):p.dictionary,(x=a.deflateSetDictionary(this.strm,b))!==h)throw new Error(l[x]);this._dict_set=!0}}function _(v,p){var x=new y(p);if(x.push(v,!0),x.err)throw x.msg||l[x.err];return x.result}y.prototype.push=function(v,p){var x,b,S=this.strm,M=this.options.chunkSize;if(this.ended)return!1;b=p===~~p?p:p===!0?4:0,typeof v=="string"?S.input=s.string2buf(v):c.call(v)==="[object ArrayBuffer]"?S.input=new Uint8Array(v):S.input=v,S.next_in=0,S.avail_in=S.input.length;do{if(S.avail_out===0&&(S.output=new o.Buf8(M),S.next_out=0,S.avail_out=M),(x=a.deflate(S,b))!==1&&x!==h)return this.onEnd(x),!(this.ended=!0);S.avail_out!==0&&(S.avail_in!==0||b!==4&&b!==2)||(this.options.to==="string"?this.onData(s.buf2binstring(o.shrinkBuf(S.output,S.next_out))):this.onData(o.shrinkBuf(S.output,S.next_out)))}while((0<S.avail_in||S.avail_out===0)&&x!==1);return b===4?(x=a.deflateEnd(this.strm),this.onEnd(x),this.ended=!0,x===h):b!==2||(this.onEnd(h),!(S.avail_out=0))},y.prototype.onData=function(v){this.chunks.push(v)},y.prototype.onEnd=function(v){v===h&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=o.flattenChunks(this.chunks)),this.chunks=[],this.err=v,this.msg=this.strm.msg},r.Deflate=y,r.deflate=_,r.deflateRaw=function(v,p){return(p=p||{}).raw=!0,_(v,p)},r.gzip=function(v,p){return(p=p||{}).gzip=!0,_(v,p)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(t,i,r){var a=t("./zlib/inflate"),o=t("./utils/common"),s=t("./utils/strings"),l=t("./zlib/constants"),u=t("./zlib/messages"),c=t("./zlib/zstream"),h=t("./zlib/gzheader"),f=Object.prototype.toString;function d(y){if(!(this instanceof d))return new d(y);this.options=o.assign({chunkSize:16384,windowBits:0,to:""},y||{});var _=this.options;_.raw&&0<=_.windowBits&&_.windowBits<16&&(_.windowBits=-_.windowBits,_.windowBits===0&&(_.windowBits=-15)),!(0<=_.windowBits&&_.windowBits<16)||y&&y.windowBits||(_.windowBits+=32),15<_.windowBits&&_.windowBits<48&&!(15&_.windowBits)&&(_.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new c,this.strm.avail_out=0;var v=a.inflateInit2(this.strm,_.windowBits);if(v!==l.Z_OK)throw new Error(u[v]);this.header=new h,a.inflateGetHeader(this.strm,this.header)}function g(y,_){var v=new d(_);if(v.push(y,!0),v.err)throw v.msg||u[v.err];return v.result}d.prototype.push=function(y,_){var v,p,x,b,S,M,I=this.strm,A=this.options.chunkSize,C=this.options.dictionary,L=!1;if(this.ended)return!1;p=_===~~_?_:_===!0?l.Z_FINISH:l.Z_NO_FLUSH,typeof y=="string"?I.input=s.binstring2buf(y):f.call(y)==="[object ArrayBuffer]"?I.input=new Uint8Array(y):I.input=y,I.next_in=0,I.avail_in=I.input.length;do{if(I.avail_out===0&&(I.output=new o.Buf8(A),I.next_out=0,I.avail_out=A),(v=a.inflate(I,l.Z_NO_FLUSH))===l.Z_NEED_DICT&&C&&(M=typeof C=="string"?s.string2buf(C):f.call(C)==="[object ArrayBuffer]"?new Uint8Array(C):C,v=a.inflateSetDictionary(this.strm,M)),v===l.Z_BUF_ERROR&&L===!0&&(v=l.Z_OK,L=!1),v!==l.Z_STREAM_END&&v!==l.Z_OK)return this.onEnd(v),!(this.ended=!0);I.next_out&&(I.avail_out!==0&&v!==l.Z_STREAM_END&&(I.avail_in!==0||p!==l.Z_FINISH&&p!==l.Z_SYNC_FLUSH)||(this.options.to==="string"?(x=s.utf8border(I.output,I.next_out),b=I.next_out-x,S=s.buf2string(I.output,x),I.next_out=b,I.avail_out=A-b,b&&o.arraySet(I.output,I.output,x,b,0),this.onData(S)):this.onData(o.shrinkBuf(I.output,I.next_out)))),I.avail_in===0&&I.avail_out===0&&(L=!0)}while((0<I.avail_in||I.avail_out===0)&&v!==l.Z_STREAM_END);return v===l.Z_STREAM_END&&(p=l.Z_FINISH),p===l.Z_FINISH?(v=a.inflateEnd(this.strm),this.onEnd(v),this.ended=!0,v===l.Z_OK):p!==l.Z_SYNC_FLUSH||(this.onEnd(l.Z_OK),!(I.avail_out=0))},d.prototype.onData=function(y){this.chunks.push(y)},d.prototype.onEnd=function(y){y===l.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=o.flattenChunks(this.chunks)),this.chunks=[],this.err=y,this.msg=this.strm.msg},r.Inflate=d,r.inflate=g,r.inflateRaw=function(y,_){return(_=_||{}).raw=!0,g(y,_)},r.ungzip=g},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(t,i,r){var a=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";r.assign=function(l){for(var u=Array.prototype.slice.call(arguments,1);u.length;){var c=u.shift();if(c){if(typeof c!="object")throw new TypeError(c+"must be non-object");for(var h in c)c.hasOwnProperty(h)&&(l[h]=c[h])}}return l},r.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,c,h,f){if(u.subarray&&l.subarray)l.set(u.subarray(c,c+h),f);else for(var d=0;d<h;d++)l[f+d]=u[c+d]},flattenChunks:function(l){var u,c,h,f,d,g;for(u=h=0,c=l.length;u<c;u++)h+=l[u].length;for(g=new Uint8Array(h),u=f=0,c=l.length;u<c;u++)d=l[u],g.set(d,f),f+=d.length;return g}},s={arraySet:function(l,u,c,h,f){for(var d=0;d<h;d++)l[f+d]=u[c+d]},flattenChunks:function(l){return[].concat.apply([],l)}};r.setTyped=function(l){l?(r.Buf8=Uint8Array,r.Buf16=Uint16Array,r.Buf32=Int32Array,r.assign(r,o)):(r.Buf8=Array,r.Buf16=Array,r.Buf32=Array,r.assign(r,s))},r.setTyped(a)},{}],42:[function(t,i,r){var a=t("./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 c(h,f){if(f<65537&&(h.subarray&&s||!h.subarray&&o))return String.fromCharCode.apply(null,a.shrinkBuf(h,f));for(var d="",g=0;g<f;g++)d+=String.fromCharCode(h[g]);return d}l[254]=l[254]=1,r.string2buf=function(h){var f,d,g,y,_,v=h.length,p=0;for(y=0;y<v;y++)(64512&(d=h.charCodeAt(y)))==55296&&y+1<v&&(64512&(g=h.charCodeAt(y+1)))==56320&&(d=65536+(d-55296<<10)+(g-56320),y++),p+=d<128?1:d<2048?2:d<65536?3:4;for(f=new a.Buf8(p),y=_=0;_<p;y++)(64512&(d=h.charCodeAt(y)))==55296&&y+1<v&&(64512&(g=h.charCodeAt(y+1)))==56320&&(d=65536+(d-55296<<10)+(g-56320),y++),d<128?f[_++]=d:(d<2048?f[_++]=192|d>>>6:(d<65536?f[_++]=224|d>>>12:(f[_++]=240|d>>>18,f[_++]=128|d>>>12&63),f[_++]=128|d>>>6&63),f[_++]=128|63&d);return f},r.buf2binstring=function(h){return c(h,h.length)},r.binstring2buf=function(h){for(var f=new a.Buf8(h.length),d=0,g=f.length;d<g;d++)f[d]=h.charCodeAt(d);return f},r.buf2string=function(h,f){var d,g,y,_,v=f||h.length,p=new Array(2*v);for(d=g=0;d<v;)if((y=h[d++])<128)p[g++]=y;else if(4<(_=l[y]))p[g++]=65533,d+=_-1;else{for(y&=_===2?31:_===3?15:7;1<_&&d<v;)y=y<<6|63&h[d++],_--;1<_?p[g++]=65533:y<65536?p[g++]=y:(y-=65536,p[g++]=55296|y>>10&1023,p[g++]=56320|1023&y)}return c(p,g)},r.utf8border=function(h,f){var d;for((f=f||h.length)>h.length&&(f=h.length),d=f-1;0<=d&&(192&h[d])==128;)d--;return d<0||d===0?f:d+l[h[d]]>f?d:f}},{"./common":41}],43:[function(t,i,r){i.exports=function(a,o,s,l){for(var u=65535&a|0,c=a>>>16&65535|0,h=0;s!==0;){for(s-=h=2e3<s?2e3:s;c=c+(u=u+o[l++]|0)|0,--h;);u%=65521,c%=65521}return u|c<<16|0}},{}],44:[function(t,i,r){i.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],45:[function(t,i,r){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}();i.exports=function(o,s,l,u){var c=a,h=u+l;o^=-1;for(var f=u;f<h;f++)o=o>>>8^c[255&(o^s[f])];return-1^o}},{}],46:[function(t,i,r){var a,o=t("../utils/common"),s=t("./trees"),l=t("./adler32"),u=t("./crc32"),c=t("./messages"),h=0,f=4,d=0,g=-2,y=-1,_=4,v=2,p=8,x=9,b=286,S=30,M=19,I=2*b+1,A=15,C=3,L=258,R=L+C+1,D=42,N=113,k=1,O=2,F=3,G=4;function q(z,st){return z.msg=c[st],st}function j(z){return(z<<1)-(4<z?9:0)}function J(z){for(var st=z.length;0<=--st;)z[st]=0}function H(z){var st=z.state,rt=st.pending;rt>z.avail_out&&(rt=z.avail_out),rt!==0&&(o.arraySet(z.output,st.pending_buf,st.pending_out,rt,z.next_out),z.next_out+=rt,st.pending_out+=rt,z.total_out+=rt,z.avail_out-=rt,st.pending-=rt,st.pending===0&&(st.pending_out=0))}function K(z,st){s._tr_flush_block(z,0<=z.block_start?z.block_start:-1,z.strstart-z.block_start,st),z.block_start=z.strstart,H(z.strm)}function ut(z,st){z.pending_buf[z.pending++]=st}function ot(z,st){z.pending_buf[z.pending++]=st>>>8&255,z.pending_buf[z.pending++]=255&st}function at(z,st){var rt,Z,U=z.max_chain_length,tt=z.strstart,ft=z.prev_length,gt=z.nice_match,it=z.strstart>z.w_size-R?z.strstart-(z.w_size-R):0,It=z.window,Et=z.w_mask,At=z.prev,Xt=z.strstart+L,Ie=It[tt+ft-1],ue=It[tt+ft];z.prev_length>=z.good_match&&(U>>=2),gt>z.lookahead&&(gt=z.lookahead);do if(It[(rt=st)+ft]===ue&&It[rt+ft-1]===Ie&&It[rt]===It[tt]&&It[++rt]===It[tt+1]){tt+=2,rt++;do;while(It[++tt]===It[++rt]&&It[++tt]===It[++rt]&&It[++tt]===It[++rt]&&It[++tt]===It[++rt]&&It[++tt]===It[++rt]&&It[++tt]===It[++rt]&&It[++tt]===It[++rt]&&It[++tt]===It[++rt]&&tt<Xt);if(Z=L-(Xt-tt),tt=Xt-L,ft<Z){if(z.match_start=st,gt<=(ft=Z))break;Ie=It[tt+ft-1],ue=It[tt+ft]}}while((st=At[st&Et])>it&&--U!=0);return ft<=z.lookahead?ft:z.lookahead}function Nt(z){var st,rt,Z,U,tt,ft,gt,it,It,Et,At=z.w_size;do{if(U=z.window_size-z.lookahead-z.strstart,z.strstart>=At+(At-R)){for(o.arraySet(z.window,z.window,At,At,0),z.match_start-=At,z.strstart-=At,z.block_start-=At,st=rt=z.hash_size;Z=z.head[--st],z.head[st]=At<=Z?Z-At:0,--rt;);for(st=rt=At;Z=z.prev[--st],z.prev[st]=At<=Z?Z-At:0,--rt;);U+=At}if(z.strm.avail_in===0)break;if(ft=z.strm,gt=z.window,it=z.strstart+z.lookahead,It=U,Et=void 0,Et=ft.avail_in,It<Et&&(Et=It),rt=Et===0?0:(ft.avail_in-=Et,o.arraySet(gt,ft.input,ft.next_in,Et,it),ft.state.wrap===1?ft.adler=l(ft.adler,gt,Et,it):ft.state.wrap===2&&(ft.adler=u(ft.adler,gt,Et,it)),ft.next_in+=Et,ft.total_in+=Et,Et),z.lookahead+=rt,z.lookahead+z.insert>=C)for(tt=z.strstart-z.insert,z.ins_h=z.window[tt],z.ins_h=(z.ins_h<<z.hash_shift^z.window[tt+1])&z.hash_mask;z.insert&&(z.ins_h=(z.ins_h<<z.hash_shift^z.window[tt+C-1])&z.hash_mask,z.prev[tt&z.w_mask]=z.head[z.ins_h],z.head[z.ins_h]=tt,tt++,z.insert--,!(z.lookahead+z.insert<C)););}while(z.lookahead<R&&z.strm.avail_in!==0)}function Yt(z,st){for(var rt,Z;;){if(z.lookahead<R){if(Nt(z),z.lookahead<R&&st===h)return k;if(z.lookahead===0)break}if(rt=0,z.lookahead>=C&&(z.ins_h=(z.ins_h<<z.hash_shift^z.window[z.strstart+C-1])&z.hash_mask,rt=z.prev[z.strstart&z.w_mask]=z.head[z.ins_h],z.head[z.ins_h]=z.strstart),rt!==0&&z.strstart-rt<=z.w_size-R&&(z.match_length=at(z,rt)),z.match_length>=C)if(Z=s._tr_tally(z,z.strstart-z.match_start,z.match_length-C),z.lookahead-=z.match_length,z.match_length<=z.max_lazy_match&&z.lookahead>=C){for(z.match_length--;z.strstart++,z.ins_h=(z.ins_h<<z.hash_shift^z.window[z.strstart+C-1])&z.hash_mask,rt=z.prev[z.strstart&z.w_mask]=z.head[z.ins_h],z.head[z.ins_h]=z.strstart,--z.match_length!=0;);z.strstart++}else z.strstart+=z.match_length,z.match_length=0,z.ins_h=z.window[z.strstart],z.ins_h=(z.ins_h<<z.hash_shift^z.window[z.strstart+1])&z.hash_mask;else Z=s._tr_tally(z,0,z.window[z.strstart]),z.lookahead--,z.strstart++;if(Z&&(K(z,!1),z.strm.avail_out===0))return k}return z.insert=z.strstart<C-1?z.strstart:C-1,st===f?(K(z,!0),z.strm.avail_out===0?F:G):z.last_lit&&(K(z,!1),z.strm.avail_out===0)?k:O}function wt(z,st){for(var rt,Z,U;;){if(z.lookahead<R){if(Nt(z),z.lookahead<R&&st===h)return k;if(z.lookahead===0)break}if(rt=0,z.lookahead>=C&&(z.ins_h=(z.ins_h<<z.hash_shift^z.window[z.strstart+C-1])&z.hash_mask,rt=z.prev[z.strstart&z.w_mask]=z.head[z.ins_h],z.head[z.ins_h]=z.strstart),z.prev_length=z.match_length,z.prev_match=z.match_start,z.match_length=C-1,rt!==0&&z.prev_length<z.max_lazy_match&&z.strstart-rt<=z.w_size-R&&(z.match_length=at(z,rt),z.match_length<=5&&(z.strategy===1||z.match_length===C&&4096<z.strstart-z.match_start)&&(z.match_length=C-1)),z.prev_length>=C&&z.match_length<=z.prev_length){for(U=z.strstart+z.lookahead-C,Z=s._tr_tally(z,z.strstart-1-z.prev_match,z.prev_length-C),z.lookahead-=z.prev_length-1,z.prev_length-=2;++z.strstart<=U&&(z.ins_h=(z.ins_h<<z.hash_shift^z.window[z.strstart+C-1])&z.hash_mask,rt=z.prev[z.strstart&z.w_mask]=z.head[z.ins_h],z.head[z.ins_h]=z.strstart),--z.prev_length!=0;);if(z.match_available=0,z.match_length=C-1,z.strstart++,Z&&(K(z,!1),z.strm.avail_out===0))return k}else if(z.match_available){if((Z=s._tr_tally(z,0,z.window[z.strstart-1]))&&K(z,!1),z.strstart++,z.lookahead--,z.strm.avail_out===0)return k}else z.match_available=1,z.strstart++,z.lookahead--}return z.match_available&&(Z=s._tr_tally(z,0,z.window[z.strstart-1]),z.match_available=0),z.insert=z.strstart<C-1?z.strstart:C-1,st===f?(K(z,!0),z.strm.avail_out===0?F:G):z.last_lit&&(K(z,!1),z.strm.avail_out===0)?k:O}function xt(z,st,rt,Z,U){this.good_length=z,this.max_lazy=st,this.nice_length=rt,this.max_chain=Z,this.func=U}function zt(){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=p,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*I),this.dyn_dtree=new o.Buf16(2*(2*S+1)),this.bl_tree=new o.Buf16(2*(2*M+1)),J(this.dyn_ltree),J(this.dyn_dtree),J(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new o.Buf16(A+1),this.heap=new o.Buf16(2*b+1),J(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new o.Buf16(2*b+1),J(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 bt(z){var st;return z&&z.state?(z.total_in=z.total_out=0,z.data_type=v,(st=z.state).pending=0,st.pending_out=0,st.wrap<0&&(st.wrap=-st.wrap),st.status=st.wrap?D:N,z.adler=st.wrap===2?0:1,st.last_flush=h,s._tr_init(st),d):q(z,g)}function Pt(z){var st=bt(z);return st===d&&function(rt){rt.window_size=2*rt.w_size,J(rt.head),rt.max_lazy_match=a[rt.level].max_lazy,rt.good_match=a[rt.level].good_length,rt.nice_match=a[rt.level].nice_length,rt.max_chain_length=a[rt.level].max_chain,rt.strstart=0,rt.block_start=0,rt.lookahead=0,rt.insert=0,rt.match_length=rt.prev_length=C-1,rt.match_available=0,rt.ins_h=0}(z.state),st}function ae(z,st,rt,Z,U,tt){if(!z)return g;var ft=1;if(st===y&&(st=6),Z<0?(ft=0,Z=-Z):15<Z&&(ft=2,Z-=16),U<1||x<U||rt!==p||Z<8||15<Z||st<0||9<st||tt<0||_<tt)return q(z,g);Z===8&&(Z=9);var gt=new zt;return(z.state=gt).strm=z,gt.wrap=ft,gt.gzhead=null,gt.w_bits=Z,gt.w_size=1<<gt.w_bits,gt.w_mask=gt.w_size-1,gt.hash_bits=U+7,gt.hash_size=1<<gt.hash_bits,gt.hash_mask=gt.hash_size-1,gt.hash_shift=~~((gt.hash_bits+C-1)/C),gt.window=new o.Buf8(2*gt.w_size),gt.head=new o.Buf16(gt.hash_size),gt.prev=new o.Buf16(gt.w_size),gt.lit_bufsize=1<<U+6,gt.pending_buf_size=4*gt.lit_bufsize,gt.pending_buf=new o.Buf8(gt.pending_buf_size),gt.d_buf=1*gt.lit_bufsize,gt.l_buf=3*gt.lit_bufsize,gt.level=st,gt.strategy=tt,gt.method=rt,Pt(z)}a=[new xt(0,0,0,0,function(z,st){var rt=65535;for(rt>z.pending_buf_size-5&&(rt=z.pending_buf_size-5);;){if(z.lookahead<=1){if(Nt(z),z.lookahead===0&&st===h)return k;if(z.lookahead===0)break}z.strstart+=z.lookahead,z.lookahead=0;var Z=z.block_start+rt;if((z.strstart===0||z.strstart>=Z)&&(z.lookahead=z.strstart-Z,z.strstart=Z,K(z,!1),z.strm.avail_out===0)||z.strstart-z.block_start>=z.w_size-R&&(K(z,!1),z.strm.avail_out===0))return k}return z.insert=0,st===f?(K(z,!0),z.strm.avail_out===0?F:G):(z.strstart>z.block_start&&(K(z,!1),z.strm.avail_out),k)}),new xt(4,4,8,4,Yt),new xt(4,5,16,8,Yt),new xt(4,6,32,32,Yt),new xt(4,4,16,16,wt),new xt(8,16,32,32,wt),new xt(8,16,128,128,wt),new xt(8,32,128,256,wt),new xt(32,128,258,1024,wt),new xt(32,258,258,4096,wt)],r.deflateInit=function(z,st){return ae(z,st,p,15,8,0)},r.deflateInit2=ae,r.deflateReset=Pt,r.deflateResetKeep=bt,r.deflateSetHeader=function(z,st){return z&&z.state?z.state.wrap!==2?g:(z.state.gzhead=st,d):g},r.deflate=function(z,st){var rt,Z,U,tt;if(!z||!z.state||5<st||st<0)return z?q(z,g):g;if(Z=z.state,!z.output||!z.input&&z.avail_in!==0||Z.status===666&&st!==f)return q(z,z.avail_out===0?-5:g);if(Z.strm=z,rt=Z.last_flush,Z.last_flush=st,Z.status===D)if(Z.wrap===2)z.adler=0,ut(Z,31),ut(Z,139),ut(Z,8),Z.gzhead?(ut(Z,(Z.gzhead.text?1:0)+(Z.gzhead.hcrc?2:0)+(Z.gzhead.extra?4:0)+(Z.gzhead.name?8:0)+(Z.gzhead.comment?16:0)),ut(Z,255&Z.gzhead.time),ut(Z,Z.gzhead.time>>8&255),ut(Z,Z.gzhead.time>>16&255),ut(Z,Z.gzhead.time>>24&255),ut(Z,Z.level===9?2:2<=Z.strategy||Z.level<2?4:0),ut(Z,255&Z.gzhead.os),Z.gzhead.extra&&Z.gzhead.extra.length&&(ut(Z,255&Z.gzhead.extra.length),ut(Z,Z.gzhead.extra.length>>8&255)),Z.gzhead.hcrc&&(z.adler=u(z.adler,Z.pending_buf,Z.pending,0)),Z.gzindex=0,Z.status=69):(ut(Z,0),ut(Z,0),ut(Z,0),ut(Z,0),ut(Z,0),ut(Z,Z.level===9?2:2<=Z.strategy||Z.level<2?4:0),ut(Z,3),Z.status=N);else{var ft=p+(Z.w_bits-8<<4)<<8;ft|=(2<=Z.strategy||Z.level<2?0:Z.level<6?1:Z.level===6?2:3)<<6,Z.strstart!==0&&(ft|=32),ft+=31-ft%31,Z.status=N,ot(Z,ft),Z.strstart!==0&&(ot(Z,z.adler>>>16),ot(Z,65535&z.adler)),z.adler=1}if(Z.status===69)if(Z.gzhead.extra){for(U=Z.pending;Z.gzindex<(65535&Z.gzhead.extra.length)&&(Z.pending!==Z.pending_buf_size||(Z.gzhead.hcrc&&Z.pending>U&&(z.adler=u(z.adler,Z.pending_buf,Z.pending-U,U)),H(z),U=Z.pending,Z.pending!==Z.pending_buf_size));)ut(Z,255&Z.gzhead.extra[Z.gzindex]),Z.gzindex++;Z.gzhead.hcrc&&Z.pending>U&&(z.adler=u(z.adler,Z.pending_buf,Z.pending-U,U)),Z.gzindex===Z.gzhead.extra.length&&(Z.gzindex=0,Z.status=73)}else Z.status=73;if(Z.status===73)if(Z.gzhead.name){U=Z.pending;do{if(Z.pending===Z.pending_buf_size&&(Z.gzhead.hcrc&&Z.pending>U&&(z.adler=u(z.adler,Z.pending_buf,Z.pending-U,U)),H(z),U=Z.pending,Z.pending===Z.pending_buf_size)){tt=1;break}tt=Z.gzindex<Z.gzhead.name.length?255&Z.gzhead.name.charCodeAt(Z.gzindex++):0,ut(Z,tt)}while(tt!==0);Z.gzhead.hcrc&&Z.pending>U&&(z.adler=u(z.adler,Z.pending_buf,Z.pending-U,U)),tt===0&&(Z.gzindex=0,Z.status=91)}else Z.status=91;if(Z.status===91)if(Z.gzhead.comment){U=Z.pending;do{if(Z.pending===Z.pending_buf_size&&(Z.gzhead.hcrc&&Z.pending>U&&(z.adler=u(z.adler,Z.pending_buf,Z.pending-U,U)),H(z),U=Z.pending,Z.pending===Z.pending_buf_size)){tt=1;break}tt=Z.gzindex<Z.gzhead.comment.length?255&Z.gzhead.comment.charCodeAt(Z.gzindex++):0,ut(Z,tt)}while(tt!==0);Z.gzhead.hcrc&&Z.pending>U&&(z.adler=u(z.adler,Z.pending_buf,Z.pending-U,U)),tt===0&&(Z.status=103)}else Z.status=103;if(Z.status===103&&(Z.gzhead.hcrc?(Z.pending+2>Z.pending_buf_size&&H(z),Z.pending+2<=Z.pending_buf_size&&(ut(Z,255&z.adler),ut(Z,z.adler>>8&255),z.adler=0,Z.status=N)):Z.status=N),Z.pending!==0){if(H(z),z.avail_out===0)return Z.last_flush=-1,d}else if(z.avail_in===0&&j(st)<=j(rt)&&st!==f)return q(z,-5);if(Z.status===666&&z.avail_in!==0)return q(z,-5);if(z.avail_in!==0||Z.lookahead!==0||st!==h&&Z.status!==666){var gt=Z.strategy===2?function(it,It){for(var Et;;){if(it.lookahead===0&&(Nt(it),it.lookahead===0)){if(It===h)return k;break}if(it.match_length=0,Et=s._tr_tally(it,0,it.window[it.strstart]),it.lookahead--,it.strstart++,Et&&(K(it,!1),it.strm.avail_out===0))return k}return it.insert=0,It===f?(K(it,!0),it.strm.avail_out===0?F:G):it.last_lit&&(K(it,!1),it.strm.avail_out===0)?k:O}(Z,st):Z.strategy===3?function(it,It){for(var Et,At,Xt,Ie,ue=it.window;;){if(it.lookahead<=L){if(Nt(it),it.lookahead<=L&&It===h)return k;if(it.lookahead===0)break}if(it.match_length=0,it.lookahead>=C&&0<it.strstart&&(At=ue[Xt=it.strstart-1])===ue[++Xt]&&At===ue[++Xt]&&At===ue[++Xt]){Ie=it.strstart+L;do;while(At===ue[++Xt]&&At===ue[++Xt]&&At===ue[++Xt]&&At===ue[++Xt]&&At===ue[++Xt]&&At===ue[++Xt]&&At===ue[++Xt]&&At===ue[++Xt]&&Xt<Ie);it.match_length=L-(Ie-Xt),it.match_length>it.lookahead&&(it.match_length=it.lookahead)}if(it.match_length>=C?(Et=s._tr_tally(it,1,it.match_length-C),it.lookahead-=it.match_length,it.strstart+=it.match_length,it.match_length=0):(Et=s._tr_tally(it,0,it.window[it.strstart]),it.lookahead--,it.strstart++),Et&&(K(it,!1),it.strm.avail_out===0))return k}return it.insert=0,It===f?(K(it,!0),it.strm.avail_out===0?F:G):it.last_lit&&(K(it,!1),it.strm.avail_out===0)?k:O}(Z,st):a[Z.level].func(Z,st);if(gt!==F&>!==G||(Z.status=666),gt===k||gt===F)return z.avail_out===0&&(Z.last_flush=-1),d;if(gt===O&&(st===1?s._tr_align(Z):st!==5&&(s._tr_stored_block(Z,0,0,!1),st===3&&(J(Z.head),Z.lookahead===0&&(Z.strstart=0,Z.block_start=0,Z.insert=0))),H(z),z.avail_out===0))return Z.last_flush=-1,d}return st!==f?d:Z.wrap<=0?1:(Z.wrap===2?(ut(Z,255&z.adler),ut(Z,z.adler>>8&255),ut(Z,z.adler>>16&255),ut(Z,z.adler>>24&255),ut(Z,255&z.total_in),ut(Z,z.total_in>>8&255),ut(Z,z.total_in>>16&255),ut(Z,z.total_in>>24&255)):(ot(Z,z.adler>>>16),ot(Z,65535&z.adler)),H(z),0<Z.wrap&&(Z.wrap=-Z.wrap),Z.pending!==0?d:1)},r.deflateEnd=function(z){var st;return z&&z.state?(st=z.state.status)!==D&&st!==69&&st!==73&&st!==91&&st!==103&&st!==N&&st!==666?q(z,g):(z.state=null,st===N?q(z,-3):d):g},r.deflateSetDictionary=function(z,st){var rt,Z,U,tt,ft,gt,it,It,Et=st.length;if(!z||!z.state||(tt=(rt=z.state).wrap)===2||tt===1&&rt.status!==D||rt.lookahead)return g;for(tt===1&&(z.adler=l(z.adler,st,Et,0)),rt.wrap=0,Et>=rt.w_size&&(tt===0&&(J(rt.head),rt.strstart=0,rt.block_start=0,rt.insert=0),It=new o.Buf8(rt.w_size),o.arraySet(It,st,Et-rt.w_size,rt.w_size,0),st=It,Et=rt.w_size),ft=z.avail_in,gt=z.next_in,it=z.input,z.avail_in=Et,z.next_in=0,z.input=st,Nt(rt);rt.lookahead>=C;){for(Z=rt.strstart,U=rt.lookahead-(C-1);rt.ins_h=(rt.ins_h<<rt.hash_shift^rt.window[Z+C-1])&rt.hash_mask,rt.prev[Z&rt.w_mask]=rt.head[rt.ins_h],rt.head[rt.ins_h]=Z,Z++,--U;);rt.strstart=Z,rt.lookahead=C-1,Nt(rt)}return rt.strstart+=rt.lookahead,rt.block_start=rt.strstart,rt.insert=rt.lookahead,rt.lookahead=0,rt.match_length=rt.prev_length=C-1,rt.match_available=0,z.next_in=gt,z.input=it,z.avail_in=ft,rt.wrap=tt,d},r.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(t,i,r){i.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},{}],48:[function(t,i,r){i.exports=function(a,o){var s,l,u,c,h,f,d,g,y,_,v,p,x,b,S,M,I,A,C,L,R,D,N,k,O;s=a.state,l=a.next_in,k=a.input,u=l+(a.avail_in-5),c=a.next_out,O=a.output,h=c-(o-a.avail_out),f=c+(a.avail_out-257),d=s.dmax,g=s.wsize,y=s.whave,_=s.wnext,v=s.window,p=s.hold,x=s.bits,b=s.lencode,S=s.distcode,M=(1<<s.lenbits)-1,I=(1<<s.distbits)-1;t:do{x<15&&(p+=k[l++]<<x,x+=8,p+=k[l++]<<x,x+=8),A=b[p&M];e:for(;;){if(p>>>=C=A>>>24,x-=C,(C=A>>>16&255)===0)O[c++]=65535&A;else{if(!(16&C)){if(!(64&C)){A=b[(65535&A)+(p&(1<<C)-1)];continue e}if(32&C){s.mode=12;break t}a.msg="invalid literal/length code",s.mode=30;break t}L=65535&A,(C&=15)&&(x<C&&(p+=k[l++]<<x,x+=8),L+=p&(1<<C)-1,p>>>=C,x-=C),x<15&&(p+=k[l++]<<x,x+=8,p+=k[l++]<<x,x+=8),A=S[p&I];n:for(;;){if(p>>>=C=A>>>24,x-=C,!(16&(C=A>>>16&255))){if(!(64&C)){A=S[(65535&A)+(p&(1<<C)-1)];continue n}a.msg="invalid distance code",s.mode=30;break t}if(R=65535&A,x<(C&=15)&&(p+=k[l++]<<x,(x+=8)<C&&(p+=k[l++]<<x,x+=8)),d<(R+=p&(1<<C)-1)){a.msg="invalid distance too far back",s.mode=30;break t}if(p>>>=C,x-=C,(C=c-h)<R){if(y<(C=R-C)&&s.sane){a.msg="invalid distance too far back",s.mode=30;break t}if(N=v,(D=0)===_){if(D+=g-C,C<L){for(L-=C;O[c++]=v[D++],--C;);D=c-R,N=O}}else if(_<C){if(D+=g+_-C,(C-=_)<L){for(L-=C;O[c++]=v[D++],--C;);if(D=0,_<L){for(L-=C=_;O[c++]=v[D++],--C;);D=c-R,N=O}}}else if(D+=_-C,C<L){for(L-=C;O[c++]=v[D++],--C;);D=c-R,N=O}for(;2<L;)O[c++]=N[D++],O[c++]=N[D++],O[c++]=N[D++],L-=3;L&&(O[c++]=N[D++],1<L&&(O[c++]=N[D++]))}else{for(D=c-R;O[c++]=O[D++],O[c++]=O[D++],O[c++]=O[D++],2<(L-=3););L&&(O[c++]=O[D++],1<L&&(O[c++]=O[D++]))}break}}break}}while(l<u&&c<f);l-=L=x>>3,p&=(1<<(x-=L<<3))-1,a.next_in=l,a.next_out=c,a.avail_in=l<u?u-l+5:5-(l-u),a.avail_out=c<f?f-c+257:257-(c-f),s.hold=p,s.bits=x}},{}],49:[function(t,i,r){var a=t("../utils/common"),o=t("./adler32"),s=t("./crc32"),l=t("./inffast"),u=t("./inftrees"),c=1,h=2,f=0,d=-2,g=1,y=852,_=592;function v(D){return(D>>>24&255)+(D>>>8&65280)+((65280&D)<<8)+((255&D)<<24)}function p(){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 x(D){var N;return D&&D.state?(N=D.state,D.total_in=D.total_out=N.total=0,D.msg="",N.wrap&&(D.adler=1&N.wrap),N.mode=g,N.last=0,N.havedict=0,N.dmax=32768,N.head=null,N.hold=0,N.bits=0,N.lencode=N.lendyn=new a.Buf32(y),N.distcode=N.distdyn=new a.Buf32(_),N.sane=1,N.back=-1,f):d}function b(D){var N;return D&&D.state?((N=D.state).wsize=0,N.whave=0,N.wnext=0,x(D)):d}function S(D,N){var k,O;return D&&D.state?(O=D.state,N<0?(k=0,N=-N):(k=1+(N>>4),N<48&&(N&=15)),N&&(N<8||15<N)?d:(O.window!==null&&O.wbits!==N&&(O.window=null),O.wrap=k,O.wbits=N,b(D))):d}function M(D,N){var k,O;return D?(O=new p,(D.state=O).window=null,(k=S(D,N))!==f&&(D.state=null),k):d}var I,A,C=!0;function L(D){if(C){var N;for(I=new a.Buf32(512),A=new a.Buf32(32),N=0;N<144;)D.lens[N++]=8;for(;N<256;)D.lens[N++]=9;for(;N<280;)D.lens[N++]=7;for(;N<288;)D.lens[N++]=8;for(u(c,D.lens,0,288,I,0,D.work,{bits:9}),N=0;N<32;)D.lens[N++]=5;u(h,D.lens,0,32,A,0,D.work,{bits:5}),C=!1}D.lencode=I,D.lenbits=9,D.distcode=A,D.distbits=5}function R(D,N,k,O){var F,G=D.state;return G.window===null&&(G.wsize=1<<G.wbits,G.wnext=0,G.whave=0,G.window=new a.Buf8(G.wsize)),O>=G.wsize?(a.arraySet(G.window,N,k-G.wsize,G.wsize,0),G.wnext=0,G.whave=G.wsize):(O<(F=G.wsize-G.wnext)&&(F=O),a.arraySet(G.window,N,k-O,F,G.wnext),(O-=F)?(a.arraySet(G.window,N,k-O,O,0),G.wnext=O,G.whave=G.wsize):(G.wnext+=F,G.wnext===G.wsize&&(G.wnext=0),G.whave<G.wsize&&(G.whave+=F))),0}r.inflateReset=b,r.inflateReset2=S,r.inflateResetKeep=x,r.inflateInit=function(D){return M(D,15)},r.inflateInit2=M,r.inflate=function(D,N){var k,O,F,G,q,j,J,H,K,ut,ot,at,Nt,Yt,wt,xt,zt,bt,Pt,ae,z,st,rt,Z,U=0,tt=new a.Buf8(4),ft=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!D||!D.state||!D.output||!D.input&&D.avail_in!==0)return d;(k=D.state).mode===12&&(k.mode=13),q=D.next_out,F=D.output,J=D.avail_out,G=D.next_in,O=D.input,j=D.avail_in,H=k.hold,K=k.bits,ut=j,ot=J,st=f;t:for(;;)switch(k.mode){case g:if(k.wrap===0){k.mode=13;break}for(;K<16;){if(j===0)break t;j--,H+=O[G++]<<K,K+=8}if(2&k.wrap&&H===35615){tt[k.check=0]=255&H,tt[1]=H>>>8&255,k.check=s(k.check,tt,2,0),K=H=0,k.mode=2;break}if(k.flags=0,k.head&&(k.head.done=!1),!(1&k.wrap)||(((255&H)<<8)+(H>>8))%31){D.msg="incorrect header check",k.mode=30;break}if((15&H)!=8){D.msg="unknown compression method",k.mode=30;break}if(K-=4,z=8+(15&(H>>>=4)),k.wbits===0)k.wbits=z;else if(z>k.wbits){D.msg="invalid window size",k.mode=30;break}k.dmax=1<<z,D.adler=k.check=1,k.mode=512&H?10:12,K=H=0;break;case 2:for(;K<16;){if(j===0)break t;j--,H+=O[G++]<<K,K+=8}if(k.flags=H,(255&k.flags)!=8){D.msg="unknown compression method",k.mode=30;break}if(57344&k.flags){D.msg="unknown header flags set",k.mode=30;break}k.head&&(k.head.text=H>>8&1),512&k.flags&&(tt[0]=255&H,tt[1]=H>>>8&255,k.check=s(k.check,tt,2,0)),K=H=0,k.mode=3;case 3:for(;K<32;){if(j===0)break t;j--,H+=O[G++]<<K,K+=8}k.head&&(k.head.time=H),512&k.flags&&(tt[0]=255&H,tt[1]=H>>>8&255,tt[2]=H>>>16&255,tt[3]=H>>>24&255,k.check=s(k.check,tt,4,0)),K=H=0,k.mode=4;case 4:for(;K<16;){if(j===0)break t;j--,H+=O[G++]<<K,K+=8}k.head&&(k.head.xflags=255&H,k.head.os=H>>8),512&k.flags&&(tt[0]=255&H,tt[1]=H>>>8&255,k.check=s(k.check,tt,2,0)),K=H=0,k.mode=5;case 5:if(1024&k.flags){for(;K<16;){if(j===0)break t;j--,H+=O[G++]<<K,K+=8}k.length=H,k.head&&(k.head.extra_len=H),512&k.flags&&(tt[0]=255&H,tt[1]=H>>>8&255,k.check=s(k.check,tt,2,0)),K=H=0}else k.head&&(k.head.extra=null);k.mode=6;case 6:if(1024&k.flags&&(j<(at=k.length)&&(at=j),at&&(k.head&&(z=k.head.extra_len-k.length,k.head.extra||(k.head.extra=new Array(k.head.extra_len)),a.arraySet(k.head.extra,O,G,at,z)),512&k.flags&&(k.check=s(k.check,O,at,G)),j-=at,G+=at,k.length-=at),k.length))break t;k.length=0,k.mode=7;case 7:if(2048&k.flags){if(j===0)break t;for(at=0;z=O[G+at++],k.head&&z&&k.length<65536&&(k.head.name+=String.fromCharCode(z)),z&&at<j;);if(512&k.flags&&(k.check=s(k.check,O,at,G)),j-=at,G+=at,z)break t}else k.head&&(k.head.name=null);k.length=0,k.mode=8;case 8:if(4096&k.flags){if(j===0)break t;for(at=0;z=O[G+at++],k.head&&z&&k.length<65536&&(k.head.comment+=String.fromCharCode(z)),z&&at<j;);if(512&k.flags&&(k.check=s(k.check,O,at,G)),j-=at,G+=at,z)break t}else k.head&&(k.head.comment=null);k.mode=9;case 9:if(512&k.flags){for(;K<16;){if(j===0)break t;j--,H+=O[G++]<<K,K+=8}if(H!==(65535&k.check)){D.msg="header crc mismatch",k.mode=30;break}K=H=0}k.head&&(k.head.hcrc=k.flags>>9&1,k.head.done=!0),D.adler=k.check=0,k.mode=12;break;case 10:for(;K<32;){if(j===0)break t;j--,H+=O[G++]<<K,K+=8}D.adler=k.check=v(H),K=H=0,k.mode=11;case 11:if(k.havedict===0)return D.next_out=q,D.avail_out=J,D.next_in=G,D.avail_in=j,k.hold=H,k.bits=K,2;D.adler=k.check=1,k.mode=12;case 12:if(N===5||N===6)break t;case 13:if(k.last){H>>>=7&K,K-=7&K,k.mode=27;break}for(;K<3;){if(j===0)break t;j--,H+=O[G++]<<K,K+=8}switch(k.last=1&H,K-=1,3&(H>>>=1)){case 0:k.mode=14;break;case 1:if(L(k),k.mode=20,N!==6)break;H>>>=2,K-=2;break t;case 2:k.mode=17;break;case 3:D.msg="invalid block type",k.mode=30}H>>>=2,K-=2;break;case 14:for(H>>>=7&K,K-=7&K;K<32;){if(j===0)break t;j--,H+=O[G++]<<K,K+=8}if((65535&H)!=(H>>>16^65535)){D.msg="invalid stored block lengths",k.mode=30;break}if(k.length=65535&H,K=H=0,k.mode=15,N===6)break t;case 15:k.mode=16;case 16:if(at=k.length){if(j<at&&(at=j),J<at&&(at=J),at===0)break t;a.arraySet(F,O,G,at,q),j-=at,G+=at,J-=at,q+=at,k.length-=at;break}k.mode=12;break;case 17:for(;K<14;){if(j===0)break t;j--,H+=O[G++]<<K,K+=8}if(k.nlen=257+(31&H),H>>>=5,K-=5,k.ndist=1+(31&H),H>>>=5,K-=5,k.ncode=4+(15&H),H>>>=4,K-=4,286<k.nlen||30<k.ndist){D.msg="too many length or distance symbols",k.mode=30;break}k.have=0,k.mode=18;case 18:for(;k.have<k.ncode;){for(;K<3;){if(j===0)break t;j--,H+=O[G++]<<K,K+=8}k.lens[ft[k.have++]]=7&H,H>>>=3,K-=3}for(;k.have<19;)k.lens[ft[k.have++]]=0;if(k.lencode=k.lendyn,k.lenbits=7,rt={bits:k.lenbits},st=u(0,k.lens,0,19,k.lencode,0,k.work,rt),k.lenbits=rt.bits,st){D.msg="invalid code lengths set",k.mode=30;break}k.have=0,k.mode=19;case 19:for(;k.have<k.nlen+k.ndist;){for(;xt=(U=k.lencode[H&(1<<k.lenbits)-1])>>>16&255,zt=65535&U,!((wt=U>>>24)<=K);){if(j===0)break t;j--,H+=O[G++]<<K,K+=8}if(zt<16)H>>>=wt,K-=wt,k.lens[k.have++]=zt;else{if(zt===16){for(Z=wt+2;K<Z;){if(j===0)break t;j--,H+=O[G++]<<K,K+=8}if(H>>>=wt,K-=wt,k.have===0){D.msg="invalid bit length repeat",k.mode=30;break}z=k.lens[k.have-1],at=3+(3&H),H>>>=2,K-=2}else if(zt===17){for(Z=wt+3;K<Z;){if(j===0)break t;j--,H+=O[G++]<<K,K+=8}K-=wt,z=0,at=3+(7&(H>>>=wt)),H>>>=3,K-=3}else{for(Z=wt+7;K<Z;){if(j===0)break t;j--,H+=O[G++]<<K,K+=8}K-=wt,z=0,at=11+(127&(H>>>=wt)),H>>>=7,K-=7}if(k.have+at>k.nlen+k.ndist){D.msg="invalid bit length repeat",k.mode=30;break}for(;at--;)k.lens[k.have++]=z}}if(k.mode===30)break;if(k.lens[256]===0){D.msg="invalid code -- missing end-of-block",k.mode=30;break}if(k.lenbits=9,rt={bits:k.lenbits},st=u(c,k.lens,0,k.nlen,k.lencode,0,k.work,rt),k.lenbits=rt.bits,st){D.msg="invalid literal/lengths set",k.mode=30;break}if(k.distbits=6,k.distcode=k.distdyn,rt={bits:k.distbits},st=u(h,k.lens,k.nlen,k.ndist,k.distcode,0,k.work,rt),k.distbits=rt.bits,st){D.msg="invalid distances set",k.mode=30;break}if(k.mode=20,N===6)break t;case 20:k.mode=21;case 21:if(6<=j&&258<=J){D.next_out=q,D.avail_out=J,D.next_in=G,D.avail_in=j,k.hold=H,k.bits=K,l(D,ot),q=D.next_out,F=D.output,J=D.avail_out,G=D.next_in,O=D.input,j=D.avail_in,H=k.hold,K=k.bits,k.mode===12&&(k.back=-1);break}for(k.back=0;xt=(U=k.lencode[H&(1<<k.lenbits)-1])>>>16&255,zt=65535&U,!((wt=U>>>24)<=K);){if(j===0)break t;j--,H+=O[G++]<<K,K+=8}if(xt&&!(240&xt)){for(bt=wt,Pt=xt,ae=zt;xt=(U=k.lencode[ae+((H&(1<<bt+Pt)-1)>>bt)])>>>16&255,zt=65535&U,!(bt+(wt=U>>>24)<=K);){if(j===0)break t;j--,H+=O[G++]<<K,K+=8}H>>>=bt,K-=bt,k.back+=bt}if(H>>>=wt,K-=wt,k.back+=wt,k.length=zt,xt===0){k.mode=26;break}if(32&xt){k.back=-1,k.mode=12;break}if(64&xt){D.msg="invalid literal/length code",k.mode=30;break}k.extra=15&xt,k.mode=22;case 22:if(k.extra){for(Z=k.extra;K<Z;){if(j===0)break t;j--,H+=O[G++]<<K,K+=8}k.length+=H&(1<<k.extra)-1,H>>>=k.extra,K-=k.extra,k.back+=k.extra}k.was=k.length,k.mode=23;case 23:for(;xt=(U=k.distcode[H&(1<<k.distbits)-1])>>>16&255,zt=65535&U,!((wt=U>>>24)<=K);){if(j===0)break t;j--,H+=O[G++]<<K,K+=8}if(!(240&xt)){for(bt=wt,Pt=xt,ae=zt;xt=(U=k.distcode[ae+((H&(1<<bt+Pt)-1)>>bt)])>>>16&255,zt=65535&U,!(bt+(wt=U>>>24)<=K);){if(j===0)break t;j--,H+=O[G++]<<K,K+=8}H>>>=bt,K-=bt,k.back+=bt}if(H>>>=wt,K-=wt,k.back+=wt,64&xt){D.msg="invalid distance code",k.mode=30;break}k.offset=zt,k.extra=15&xt,k.mode=24;case 24:if(k.extra){for(Z=k.extra;K<Z;){if(j===0)break t;j--,H+=O[G++]<<K,K+=8}k.offset+=H&(1<<k.extra)-1,H>>>=k.extra,K-=k.extra,k.back+=k.extra}if(k.offset>k.dmax){D.msg="invalid distance too far back",k.mode=30;break}k.mode=25;case 25:if(J===0)break t;if(at=ot-J,k.offset>at){if((at=k.offset-at)>k.whave&&k.sane){D.msg="invalid distance too far back",k.mode=30;break}Nt=at>k.wnext?(at-=k.wnext,k.wsize-at):k.wnext-at,at>k.length&&(at=k.length),Yt=k.window}else Yt=F,Nt=q-k.offset,at=k.length;for(J<at&&(at=J),J-=at,k.length-=at;F[q++]=Yt[Nt++],--at;);k.length===0&&(k.mode=21);break;case 26:if(J===0)break t;F[q++]=k.length,J--,k.mode=21;break;case 27:if(k.wrap){for(;K<32;){if(j===0)break t;j--,H|=O[G++]<<K,K+=8}if(ot-=J,D.total_out+=ot,k.total+=ot,ot&&(D.adler=k.check=k.flags?s(k.check,F,ot,q-ot):o(k.check,F,ot,q-ot)),ot=J,(k.flags?H:v(H))!==k.check){D.msg="incorrect data check",k.mode=30;break}K=H=0}k.mode=28;case 28:if(k.wrap&&k.flags){for(;K<32;){if(j===0)break t;j--,H+=O[G++]<<K,K+=8}if(H!==(4294967295&k.total)){D.msg="incorrect length check",k.mode=30;break}K=H=0}k.mode=29;case 29:st=1;break t;case 30:st=-3;break t;case 31:return-4;case 32:default:return d}return D.next_out=q,D.avail_out=J,D.next_in=G,D.avail_in=j,k.hold=H,k.bits=K,(k.wsize||ot!==D.avail_out&&k.mode<30&&(k.mode<27||N!==4))&&R(D,D.output,D.next_out,ot-D.avail_out)?(k.mode=31,-4):(ut-=D.avail_in,ot-=D.avail_out,D.total_in+=ut,D.total_out+=ot,k.total+=ot,k.wrap&&ot&&(D.adler=k.check=k.flags?s(k.check,F,ot,D.next_out-ot):o(k.check,F,ot,D.next_out-ot)),D.data_type=k.bits+(k.last?64:0)+(k.mode===12?128:0)+(k.mode===20||k.mode===15?256:0),(ut==0&&ot===0||N===4)&&st===f&&(st=-5),st)},r.inflateEnd=function(D){if(!D||!D.state)return d;var N=D.state;return N.window&&(N.window=null),D.state=null,f},r.inflateGetHeader=function(D,N){var k;return D&&D.state&&2&(k=D.state).wrap?((k.head=N).done=!1,f):d},r.inflateSetDictionary=function(D,N){var k,O=N.length;return D&&D.state?(k=D.state).wrap!==0&&k.mode!==11?d:k.mode===11&&o(1,N,O,0)!==k.check?-3:R(D,N,O,O)?(k.mode=31,-4):(k.havedict=1,f):d},r.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(t,i,r){var a=t("../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];i.exports=function(c,h,f,d,g,y,_,v){var p,x,b,S,M,I,A,C,L,R=v.bits,D=0,N=0,k=0,O=0,F=0,G=0,q=0,j=0,J=0,H=0,K=null,ut=0,ot=new a.Buf16(16),at=new a.Buf16(16),Nt=null,Yt=0;for(D=0;D<=15;D++)ot[D]=0;for(N=0;N<d;N++)ot[h[f+N]]++;for(F=R,O=15;1<=O&&ot[O]===0;O--);if(O<F&&(F=O),O===0)return g[y++]=20971520,g[y++]=20971520,v.bits=1,0;for(k=1;k<O&&ot[k]===0;k++);for(F<k&&(F=k),D=j=1;D<=15;D++)if(j<<=1,(j-=ot[D])<0)return-1;if(0<j&&(c===0||O!==1))return-1;for(at[1]=0,D=1;D<15;D++)at[D+1]=at[D]+ot[D];for(N=0;N<d;N++)h[f+N]!==0&&(_[at[h[f+N]]++]=N);if(I=c===0?(K=Nt=_,19):c===1?(K=o,ut-=257,Nt=s,Yt-=257,256):(K=l,Nt=u,-1),D=k,M=y,q=N=H=0,b=-1,S=(J=1<<(G=F))-1,c===1&&852<J||c===2&&592<J)return 1;for(;;){for(A=D-q,L=_[N]<I?(C=0,_[N]):_[N]>I?(C=Nt[Yt+_[N]],K[ut+_[N]]):(C=96,0),p=1<<D-q,k=x=1<<G;g[M+(H>>q)+(x-=p)]=A<<24|C<<16|L|0,x!==0;);for(p=1<<D-1;H&p;)p>>=1;if(p!==0?(H&=p-1,H+=p):H=0,N++,--ot[D]==0){if(D===O)break;D=h[f+_[N]]}if(F<D&&(H&S)!==b){for(q===0&&(q=F),M+=k,j=1<<(G=D-q);G+q<O&&!((j-=ot[G+q])<=0);)G++,j<<=1;if(J+=1<<G,c===1&&852<J||c===2&&592<J)return 1;g[b=H&S]=F<<24|G<<16|M-y|0}}return H!==0&&(g[M+H]=D-q<<24|64<<16|0),v.bits=F,0}},{"../utils/common":41}],51:[function(t,i,r){i.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],52:[function(t,i,r){var a=t("../utils/common"),o=0,s=1;function l(U){for(var tt=U.length;0<=--tt;)U[tt]=0}var u=0,c=29,h=256,f=h+1+c,d=30,g=19,y=2*f+1,_=15,v=16,p=7,x=256,b=16,S=17,M=18,I=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],A=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],C=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],L=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],R=new Array(2*(f+2));l(R);var D=new Array(2*d);l(D);var N=new Array(512);l(N);var k=new Array(256);l(k);var O=new Array(c);l(O);var F,G,q,j=new Array(d);function J(U,tt,ft,gt,it){this.static_tree=U,this.extra_bits=tt,this.extra_base=ft,this.elems=gt,this.max_length=it,this.has_stree=U&&U.length}function H(U,tt){this.dyn_tree=U,this.max_code=0,this.stat_desc=tt}function K(U){return U<256?N[U]:N[256+(U>>>7)]}function ut(U,tt){U.pending_buf[U.pending++]=255&tt,U.pending_buf[U.pending++]=tt>>>8&255}function ot(U,tt,ft){U.bi_valid>v-ft?(U.bi_buf|=tt<<U.bi_valid&65535,ut(U,U.bi_buf),U.bi_buf=tt>>v-U.bi_valid,U.bi_valid+=ft-v):(U.bi_buf|=tt<<U.bi_valid&65535,U.bi_valid+=ft)}function at(U,tt,ft){ot(U,ft[2*tt],ft[2*tt+1])}function Nt(U,tt){for(var ft=0;ft|=1&U,U>>>=1,ft<<=1,0<--tt;);return ft>>>1}function Yt(U,tt,ft){var gt,it,It=new Array(_+1),Et=0;for(gt=1;gt<=_;gt++)It[gt]=Et=Et+ft[gt-1]<<1;for(it=0;it<=tt;it++){var At=U[2*it+1];At!==0&&(U[2*it]=Nt(It[At]++,At))}}function wt(U){var tt;for(tt=0;tt<f;tt++)U.dyn_ltree[2*tt]=0;for(tt=0;tt<d;tt++)U.dyn_dtree[2*tt]=0;for(tt=0;tt<g;tt++)U.bl_tree[2*tt]=0;U.dyn_ltree[2*x]=1,U.opt_len=U.static_len=0,U.last_lit=U.matches=0}function xt(U){8<U.bi_valid?ut(U,U.bi_buf):0<U.bi_valid&&(U.pending_buf[U.pending++]=U.bi_buf),U.bi_buf=0,U.bi_valid=0}function zt(U,tt,ft,gt){var it=2*tt,It=2*ft;return U[it]<U[It]||U[it]===U[It]&>[tt]<=gt[ft]}function bt(U,tt,ft){for(var gt=U.heap[ft],it=ft<<1;it<=U.heap_len&&(it<U.heap_len&&zt(tt,U.heap[it+1],U.heap[it],U.depth)&&it++,!zt(tt,gt,U.heap[it],U.depth));)U.heap[ft]=U.heap[it],ft=it,it<<=1;U.heap[ft]=gt}function Pt(U,tt,ft){var gt,it,It,Et,At=0;if(U.last_lit!==0)for(;gt=U.pending_buf[U.d_buf+2*At]<<8|U.pending_buf[U.d_buf+2*At+1],it=U.pending_buf[U.l_buf+At],At++,gt===0?at(U,it,tt):(at(U,(It=k[it])+h+1,tt),(Et=I[It])!==0&&ot(U,it-=O[It],Et),at(U,It=K(--gt),ft),(Et=A[It])!==0&&ot(U,gt-=j[It],Et)),At<U.last_lit;);at(U,x,tt)}function ae(U,tt){var ft,gt,it,It=tt.dyn_tree,Et=tt.stat_desc.static_tree,At=tt.stat_desc.has_stree,Xt=tt.stat_desc.elems,Ie=-1;for(U.heap_len=0,U.heap_max=y,ft=0;ft<Xt;ft++)It[2*ft]!==0?(U.heap[++U.heap_len]=Ie=ft,U.depth[ft]=0):It[2*ft+1]=0;for(;U.heap_len<2;)It[2*(it=U.heap[++U.heap_len]=Ie<2?++Ie:0)]=1,U.depth[it]=0,U.opt_len--,At&&(U.static_len-=Et[2*it+1]);for(tt.max_code=Ie,ft=U.heap_len>>1;1<=ft;ft--)bt(U,It,ft);for(it=Xt;ft=U.heap[1],U.heap[1]=U.heap[U.heap_len--],bt(U,It,1),gt=U.heap[1],U.heap[--U.heap_max]=ft,U.heap[--U.heap_max]=gt,It[2*it]=It[2*ft]+It[2*gt],U.depth[it]=(U.depth[ft]>=U.depth[gt]?U.depth[ft]:U.depth[gt])+1,It[2*ft+1]=It[2*gt+1]=it,U.heap[1]=it++,bt(U,It,1),2<=U.heap_len;);U.heap[--U.heap_max]=U.heap[1],function(ue,cn){var xi,Mn,bi,Ve,Zi,vr,Dn=cn.dyn_tree,Zr=cn.max_code,Vs=cn.stat_desc.static_tree,be=cn.stat_desc.has_stree,an=cn.stat_desc.extra_bits,Ph=cn.stat_desc.extra_base,vo=cn.stat_desc.max_length,au=0;for(Ve=0;Ve<=_;Ve++)ue.bl_count[Ve]=0;for(Dn[2*ue.heap[ue.heap_max]+1]=0,xi=ue.heap_max+1;xi<y;xi++)vo<(Ve=Dn[2*Dn[2*(Mn=ue.heap[xi])+1]+1]+1)&&(Ve=vo,au++),Dn[2*Mn+1]=Ve,Zr<Mn||(ue.bl_count[Ve]++,Zi=0,Ph<=Mn&&(Zi=an[Mn-Ph]),vr=Dn[2*Mn],ue.opt_len+=vr*(Ve+Zi),be&&(ue.static_len+=vr*(Vs[2*Mn+1]+Zi)));if(au!==0){do{for(Ve=vo-1;ue.bl_count[Ve]===0;)Ve--;ue.bl_count[Ve]--,ue.bl_count[Ve+1]+=2,ue.bl_count[vo]--,au-=2}while(0<au);for(Ve=vo;Ve!==0;Ve--)for(Mn=ue.bl_count[Ve];Mn!==0;)Zr<(bi=ue.heap[--xi])||(Dn[2*bi+1]!==Ve&&(ue.opt_len+=(Ve-Dn[2*bi+1])*Dn[2*bi],Dn[2*bi+1]=Ve),Mn--)}}(U,tt),Yt(It,Ie,U.bl_count)}function z(U,tt,ft){var gt,it,It=-1,Et=tt[1],At=0,Xt=7,Ie=4;for(Et===0&&(Xt=138,Ie=3),tt[2*(ft+1)+1]=65535,gt=0;gt<=ft;gt++)it=Et,Et=tt[2*(gt+1)+1],++At<Xt&&it===Et||(At<Ie?U.bl_tree[2*it]+=At:it!==0?(it!==It&&U.bl_tree[2*it]++,U.bl_tree[2*b]++):At<=10?U.bl_tree[2*S]++:U.bl_tree[2*M]++,It=it,Ie=(At=0)===Et?(Xt=138,3):it===Et?(Xt=6,3):(Xt=7,4))}function st(U,tt,ft){var gt,it,It=-1,Et=tt[1],At=0,Xt=7,Ie=4;for(Et===0&&(Xt=138,Ie=3),gt=0;gt<=ft;gt++)if(it=Et,Et=tt[2*(gt+1)+1],!(++At<Xt&&it===Et)){if(At<Ie)for(;at(U,it,U.bl_tree),--At!=0;);else it!==0?(it!==It&&(at(U,it,U.bl_tree),At--),at(U,b,U.bl_tree),ot(U,At-3,2)):At<=10?(at(U,S,U.bl_tree),ot(U,At-3,3)):(at(U,M,U.bl_tree),ot(U,At-11,7));It=it,Ie=(At=0)===Et?(Xt=138,3):it===Et?(Xt=6,3):(Xt=7,4)}}l(j);var rt=!1;function Z(U,tt,ft,gt){ot(U,(u<<1)+(gt?1:0),3),function(it,It,Et,At){xt(it),ut(it,Et),ut(it,~Et),a.arraySet(it.pending_buf,it.window,It,Et,it.pending),it.pending+=Et}(U,tt,ft)}r._tr_init=function(U){rt||(function(){var tt,ft,gt,it,It,Et=new Array(_+1);for(it=gt=0;it<c-1;it++)for(O[it]=gt,tt=0;tt<1<<I[it];tt++)k[gt++]=it;for(k[gt-1]=it,it=It=0;it<16;it++)for(j[it]=It,tt=0;tt<1<<A[it];tt++)N[It++]=it;for(It>>=7;it<d;it++)for(j[it]=It<<7,tt=0;tt<1<<A[it]-7;tt++)N[256+It++]=it;for(ft=0;ft<=_;ft++)Et[ft]=0;for(tt=0;tt<=143;)R[2*tt+1]=8,tt++,Et[8]++;for(;tt<=255;)R[2*tt+1]=9,tt++,Et[9]++;for(;tt<=279;)R[2*tt+1]=7,tt++,Et[7]++;for(;tt<=287;)R[2*tt+1]=8,tt++,Et[8]++;for(Yt(R,f+1,Et),tt=0;tt<d;tt++)D[2*tt+1]=5,D[2*tt]=Nt(tt,5);F=new J(R,I,h+1,f,_),G=new J(D,A,0,d,_),q=new J(new Array(0),C,0,g,p)}(),rt=!0),U.l_desc=new H(U.dyn_ltree,F),U.d_desc=new H(U.dyn_dtree,G),U.bl_desc=new H(U.bl_tree,q),U.bi_buf=0,U.bi_valid=0,wt(U)},r._tr_stored_block=Z,r._tr_flush_block=function(U,tt,ft,gt){var it,It,Et=0;0<U.level?(U.strm.data_type===2&&(U.strm.data_type=function(At){var Xt,Ie=4093624447;for(Xt=0;Xt<=31;Xt++,Ie>>>=1)if(1&Ie&&At.dyn_ltree[2*Xt]!==0)return o;if(At.dyn_ltree[18]!==0||At.dyn_ltree[20]!==0||At.dyn_ltree[26]!==0)return s;for(Xt=32;Xt<h;Xt++)if(At.dyn_ltree[2*Xt]!==0)return s;return o}(U)),ae(U,U.l_desc),ae(U,U.d_desc),Et=function(At){var Xt;for(z(At,At.dyn_ltree,At.l_desc.max_code),z(At,At.dyn_dtree,At.d_desc.max_code),ae(At,At.bl_desc),Xt=g-1;3<=Xt&&At.bl_tree[2*L[Xt]+1]===0;Xt--);return At.opt_len+=3*(Xt+1)+5+5+4,Xt}(U),it=U.opt_len+3+7>>>3,(It=U.static_len+3+7>>>3)<=it&&(it=It)):it=It=ft+5,ft+4<=it&&tt!==-1?Z(U,tt,ft,gt):U.strategy===4||It===it?(ot(U,2+(gt?1:0),3),Pt(U,R,D)):(ot(U,4+(gt?1:0),3),function(At,Xt,Ie,ue){var cn;for(ot(At,Xt-257,5),ot(At,Ie-1,5),ot(At,ue-4,4),cn=0;cn<ue;cn++)ot(At,At.bl_tree[2*L[cn]+1],3);st(At,At.dyn_ltree,Xt-1),st(At,At.dyn_dtree,Ie-1)}(U,U.l_desc.max_code+1,U.d_desc.max_code+1,Et+1),Pt(U,U.dyn_ltree,U.dyn_dtree)),wt(U),gt&&xt(U)},r._tr_tally=function(U,tt,ft){return U.pending_buf[U.d_buf+2*U.last_lit]=tt>>>8&255,U.pending_buf[U.d_buf+2*U.last_lit+1]=255&tt,U.pending_buf[U.l_buf+U.last_lit]=255&ft,U.last_lit++,tt===0?U.dyn_ltree[2*ft]++:(U.matches++,tt--,U.dyn_ltree[2*(k[ft]+h+1)]++,U.dyn_dtree[2*K(tt)]++),U.last_lit===U.lit_bufsize-1},r._tr_align=function(U){ot(U,2,3),at(U,x,R),function(tt){tt.bi_valid===16?(ut(tt,tt.bi_buf),tt.bi_buf=0,tt.bi_valid=0):8<=tt.bi_valid&&(tt.pending_buf[tt.pending++]=255&tt.bi_buf,tt.bi_buf>>=8,tt.bi_valid-=8)}(U)}},{"../utils/common":41}],53:[function(t,i,r){i.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(t,i,r){(function(a){(function(o,s){if(!o.setImmediate){var l,u,c,h,f=1,d={},g=!1,y=o.document,_=Object.getPrototypeOf&&Object.getPrototypeOf(o);_=_&&_.setTimeout?_:o,l={}.toString.call(o.process)==="[object process]"?function(b){process.nextTick(function(){p(b)})}:function(){if(o.postMessage&&!o.importScripts){var b=!0,S=o.onmessage;return o.onmessage=function(){b=!1},o.postMessage("","*"),o.onmessage=S,b}}()?(h="setImmediate$"+Math.random()+"$",o.addEventListener?o.addEventListener("message",x,!1):o.attachEvent("onmessage",x),function(b){o.postMessage(h+b,"*")}):o.MessageChannel?((c=new MessageChannel).port1.onmessage=function(b){p(b.data)},function(b){c.port2.postMessage(b)}):y&&"onreadystatechange"in y.createElement("script")?(u=y.documentElement,function(b){var S=y.createElement("script");S.onreadystatechange=function(){p(b),S.onreadystatechange=null,u.removeChild(S),S=null},u.appendChild(S)}):function(b){setTimeout(p,0,b)},_.setImmediate=function(b){typeof b!="function"&&(b=new Function(""+b));for(var S=new Array(arguments.length-1),M=0;M<S.length;M++)S[M]=arguments[M+1];var I={callback:b,args:S};return d[f]=I,l(f),f++},_.clearImmediate=v}function v(b){delete d[b]}function p(b){if(g)setTimeout(p,0,b);else{var S=d[b];if(S){g=!0;try{(function(M){var I=M.callback,A=M.args;switch(A.length){case 0:I();break;case 1:I(A[0]);break;case 2:I(A[0],A[1]);break;case 3:I(A[0],A[1],A[2]);break;default:I.apply(s,A)}})(S)}finally{v(b),g=!1}}}}function x(b){b.source===o&&typeof b.data=="string"&&b.data.indexOf(h)===0&&p(+b.data.slice(h.length))}})(typeof self>"u"?a===void 0?this:a:self)}).call(this,typeof Jr<"u"?Jr:typeof self<"u"?self:typeof window<"u"?window:{})},{}]},{},[10])(10)})})(Vb);var mz=Vb.exports;const _z=yz(mz);var Kh={exports:{}};/**
|
|
13
|
+
* @license
|
|
14
|
+
* Lodash <https://lodash.com/>
|
|
15
|
+
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
|
16
|
+
* Released under MIT license <https://lodash.com/license>
|
|
17
|
+
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
18
|
+
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
19
|
+
*/Kh.exports,function(n,e){(function(){var t,i="4.17.21",r=200,a="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",o="Expected a function",s="Invalid `variable` option passed into `_.template`",l="__lodash_hash_undefined__",u=500,c="__lodash_placeholder__",h=1,f=2,d=4,g=1,y=2,_=1,v=2,p=4,x=8,b=16,S=32,M=64,I=128,A=256,C=512,L=30,R="...",D=800,N=16,k=1,O=2,F=3,G=1/0,q=9007199254740991,j=17976931348623157e292,J=NaN,H=4294967295,K=H-1,ut=H>>>1,ot=[["ary",I],["bind",_],["bindKey",v],["curry",x],["curryRight",b],["flip",C],["partial",S],["partialRight",M],["rearg",A]],at="[object Arguments]",Nt="[object Array]",Yt="[object AsyncFunction]",wt="[object Boolean]",xt="[object Date]",zt="[object DOMException]",bt="[object Error]",Pt="[object Function]",ae="[object GeneratorFunction]",z="[object Map]",st="[object Number]",rt="[object Null]",Z="[object Object]",U="[object Promise]",tt="[object Proxy]",ft="[object RegExp]",gt="[object Set]",it="[object String]",It="[object Symbol]",Et="[object Undefined]",At="[object WeakMap]",Xt="[object WeakSet]",Ie="[object ArrayBuffer]",ue="[object DataView]",cn="[object Float32Array]",xi="[object Float64Array]",Mn="[object Int8Array]",bi="[object Int16Array]",Ve="[object Int32Array]",Zi="[object Uint8Array]",vr="[object Uint8ClampedArray]",Dn="[object Uint16Array]",Zr="[object Uint32Array]",Vs=/\b__p \+= '';/g,be=/\b(__p \+=) '' \+/g,an=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Ph=/&(?:amp|lt|gt|quot|#39);/g,vo=/[&<>"']/g,au=RegExp(Ph.source),F$=RegExp(vo.source),W$=/<%-([\s\S]+?)%>/g,G$=/<%([\s\S]+?)%>/g,GR=/<%=([\s\S]+?)%>/g,j$=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,H$=/^\w*$/,U$=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Tx=/[\\^$.*+?()[\]{}|]/g,X$=RegExp(Tx.source),Ax=/^\s+/,Z$=/\s/,q$=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,K$=/\{\n\/\* \[wrapped with (.+)\] \*/,Y$=/,? & /,J$=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,$$=/[()=,{}\[\]\/\s]/,Q$=/\\(\\)?/g,tQ=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,jR=/\w*$/,eQ=/^[-+]0x[0-9a-f]+$/i,nQ=/^0b[01]+$/i,iQ=/^\[object .+?Constructor\]$/,rQ=/^0o[0-7]+$/i,aQ=/^(?:0|[1-9]\d*)$/,oQ=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,lg=/($^)/,sQ=/['\n\r\u2028\u2029\\]/g,ug="\\ud800-\\udfff",lQ="\\u0300-\\u036f",uQ="\\ufe20-\\ufe2f",cQ="\\u20d0-\\u20ff",HR=lQ+uQ+cQ,UR="\\u2700-\\u27bf",XR="a-z\\xdf-\\xf6\\xf8-\\xff",hQ="\\xac\\xb1\\xd7\\xf7",pQ="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",dQ="\\u2000-\\u206f",fQ=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",ZR="A-Z\\xc0-\\xd6\\xd8-\\xde",qR="\\ufe0e\\ufe0f",KR=hQ+pQ+dQ+fQ,Cx="['’]",gQ="["+ug+"]",YR="["+KR+"]",cg="["+HR+"]",JR="\\d+",vQ="["+UR+"]",$R="["+XR+"]",QR="[^"+ug+KR+JR+UR+XR+ZR+"]",kx="\\ud83c[\\udffb-\\udfff]",yQ="(?:"+cg+"|"+kx+")",t3="[^"+ug+"]",Lx="(?:\\ud83c[\\udde6-\\uddff]){2}",Dx="[\\ud800-\\udbff][\\udc00-\\udfff]",ou="["+ZR+"]",e3="\\u200d",n3="(?:"+$R+"|"+QR+")",mQ="(?:"+ou+"|"+QR+")",i3="(?:"+Cx+"(?:d|ll|m|re|s|t|ve))?",r3="(?:"+Cx+"(?:D|LL|M|RE|S|T|VE))?",a3=yQ+"?",o3="["+qR+"]?",_Q="(?:"+e3+"(?:"+[t3,Lx,Dx].join("|")+")"+o3+a3+")*",xQ="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",bQ="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",s3=o3+a3+_Q,wQ="(?:"+[vQ,Lx,Dx].join("|")+")"+s3,SQ="(?:"+[t3+cg+"?",cg,Lx,Dx,gQ].join("|")+")",MQ=RegExp(Cx,"g"),IQ=RegExp(cg,"g"),Px=RegExp(kx+"(?="+kx+")|"+SQ+s3,"g"),TQ=RegExp([ou+"?"+$R+"+"+i3+"(?="+[YR,ou,"$"].join("|")+")",mQ+"+"+r3+"(?="+[YR,ou+n3,"$"].join("|")+")",ou+"?"+n3+"+"+i3,ou+"+"+r3,bQ,xQ,JR,wQ].join("|"),"g"),AQ=RegExp("["+e3+ug+HR+qR+"]"),CQ=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,kQ=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],LQ=-1,Xe={};Xe[cn]=Xe[xi]=Xe[Mn]=Xe[bi]=Xe[Ve]=Xe[Zi]=Xe[vr]=Xe[Dn]=Xe[Zr]=!0,Xe[at]=Xe[Nt]=Xe[Ie]=Xe[wt]=Xe[ue]=Xe[xt]=Xe[bt]=Xe[Pt]=Xe[z]=Xe[st]=Xe[Z]=Xe[ft]=Xe[gt]=Xe[it]=Xe[At]=!1;var He={};He[at]=He[Nt]=He[Ie]=He[ue]=He[wt]=He[xt]=He[cn]=He[xi]=He[Mn]=He[bi]=He[Ve]=He[z]=He[st]=He[Z]=He[ft]=He[gt]=He[it]=He[It]=He[Zi]=He[vr]=He[Dn]=He[Zr]=!0,He[bt]=He[Pt]=He[At]=!1;var DQ={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},PQ={"&":"&","<":"<",">":">",'"':""","'":"'"},RQ={"&":"&","<":"<",">":">",""":'"',"'":"'"},NQ={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},zQ=parseFloat,EQ=parseInt,l3=typeof Jr=="object"&&Jr&&Jr.Object===Object&&Jr,OQ=typeof self=="object"&&self&&self.Object===Object&&self,Pn=l3||OQ||Function("return this")(),Rx=e&&!e.nodeType&&e,Fs=Rx&&!0&&n&&!n.nodeType&&n,u3=Fs&&Fs.exports===Rx,Nx=u3&&l3.process,qi=function(){try{var et=Fs&&Fs.require&&Fs.require("util").types;return et||Nx&&Nx.binding&&Nx.binding("util")}catch{}}(),c3=qi&&qi.isArrayBuffer,h3=qi&&qi.isDate,p3=qi&&qi.isMap,d3=qi&&qi.isRegExp,f3=qi&&qi.isSet,g3=qi&&qi.isTypedArray;function wi(et,dt,ct){switch(ct.length){case 0:return et.call(dt);case 1:return et.call(dt,ct[0]);case 2:return et.call(dt,ct[0],ct[1]);case 3:return et.call(dt,ct[0],ct[1],ct[2])}return et.apply(dt,ct)}function BQ(et,dt,ct,Ft){for(var ce=-1,Re=et==null?0:et.length;++ce<Re;){var _n=et[ce];dt(Ft,_n,ct(_n),et)}return Ft}function Ki(et,dt){for(var ct=-1,Ft=et==null?0:et.length;++ct<Ft&&dt(et[ct],ct,et)!==!1;);return et}function VQ(et,dt){for(var ct=et==null?0:et.length;ct--&&dt(et[ct],ct,et)!==!1;);return et}function v3(et,dt){for(var ct=-1,Ft=et==null?0:et.length;++ct<Ft;)if(!dt(et[ct],ct,et))return!1;return!0}function yo(et,dt){for(var ct=-1,Ft=et==null?0:et.length,ce=0,Re=[];++ct<Ft;){var _n=et[ct];dt(_n,ct,et)&&(Re[ce++]=_n)}return Re}function hg(et,dt){var ct=et==null?0:et.length;return!!ct&&su(et,dt,0)>-1}function zx(et,dt,ct){for(var Ft=-1,ce=et==null?0:et.length;++Ft<ce;)if(ct(dt,et[Ft]))return!0;return!1}function Ze(et,dt){for(var ct=-1,Ft=et==null?0:et.length,ce=Array(Ft);++ct<Ft;)ce[ct]=dt(et[ct],ct,et);return ce}function mo(et,dt){for(var ct=-1,Ft=dt.length,ce=et.length;++ct<Ft;)et[ce+ct]=dt[ct];return et}function Ex(et,dt,ct,Ft){var ce=-1,Re=et==null?0:et.length;for(Ft&&Re&&(ct=et[++ce]);++ce<Re;)ct=dt(ct,et[ce],ce,et);return ct}function FQ(et,dt,ct,Ft){var ce=et==null?0:et.length;for(Ft&&ce&&(ct=et[--ce]);ce--;)ct=dt(ct,et[ce],ce,et);return ct}function Ox(et,dt){for(var ct=-1,Ft=et==null?0:et.length;++ct<Ft;)if(dt(et[ct],ct,et))return!0;return!1}var WQ=Bx("length");function GQ(et){return et.split("")}function jQ(et){return et.match(J$)||[]}function y3(et,dt,ct){var Ft;return ct(et,function(ce,Re,_n){if(dt(ce,Re,_n))return Ft=Re,!1}),Ft}function pg(et,dt,ct,Ft){for(var ce=et.length,Re=ct+(Ft?1:-1);Ft?Re--:++Re<ce;)if(dt(et[Re],Re,et))return Re;return-1}function su(et,dt,ct){return dt===dt?ett(et,dt,ct):pg(et,m3,ct)}function HQ(et,dt,ct,Ft){for(var ce=ct-1,Re=et.length;++ce<Re;)if(Ft(et[ce],dt))return ce;return-1}function m3(et){return et!==et}function _3(et,dt){var ct=et==null?0:et.length;return ct?Fx(et,dt)/ct:J}function Bx(et){return function(dt){return dt==null?t:dt[et]}}function Vx(et){return function(dt){return et==null?t:et[dt]}}function x3(et,dt,ct,Ft,ce){return ce(et,function(Re,_n,Ge){ct=Ft?(Ft=!1,Re):dt(ct,Re,_n,Ge)}),ct}function UQ(et,dt){var ct=et.length;for(et.sort(dt);ct--;)et[ct]=et[ct].value;return et}function Fx(et,dt){for(var ct,Ft=-1,ce=et.length;++Ft<ce;){var Re=dt(et[Ft]);Re!==t&&(ct=ct===t?Re:ct+Re)}return ct}function Wx(et,dt){for(var ct=-1,Ft=Array(et);++ct<et;)Ft[ct]=dt(ct);return Ft}function XQ(et,dt){return Ze(dt,function(ct){return[ct,et[ct]]})}function b3(et){return et&&et.slice(0,I3(et)+1).replace(Ax,"")}function Si(et){return function(dt){return et(dt)}}function Gx(et,dt){return Ze(dt,function(ct){return et[ct]})}function Rh(et,dt){return et.has(dt)}function w3(et,dt){for(var ct=-1,Ft=et.length;++ct<Ft&&su(dt,et[ct],0)>-1;);return ct}function S3(et,dt){for(var ct=et.length;ct--&&su(dt,et[ct],0)>-1;);return ct}function ZQ(et,dt){for(var ct=et.length,Ft=0;ct--;)et[ct]===dt&&++Ft;return Ft}var qQ=Vx(DQ),KQ=Vx(PQ);function YQ(et){return"\\"+NQ[et]}function JQ(et,dt){return et==null?t:et[dt]}function lu(et){return AQ.test(et)}function $Q(et){return CQ.test(et)}function QQ(et){for(var dt,ct=[];!(dt=et.next()).done;)ct.push(dt.value);return ct}function jx(et){var dt=-1,ct=Array(et.size);return et.forEach(function(Ft,ce){ct[++dt]=[ce,Ft]}),ct}function M3(et,dt){return function(ct){return et(dt(ct))}}function _o(et,dt){for(var ct=-1,Ft=et.length,ce=0,Re=[];++ct<Ft;){var _n=et[ct];(_n===dt||_n===c)&&(et[ct]=c,Re[ce++]=ct)}return Re}function dg(et){var dt=-1,ct=Array(et.size);return et.forEach(function(Ft){ct[++dt]=Ft}),ct}function ttt(et){var dt=-1,ct=Array(et.size);return et.forEach(function(Ft){ct[++dt]=[Ft,Ft]}),ct}function ett(et,dt,ct){for(var Ft=ct-1,ce=et.length;++Ft<ce;)if(et[Ft]===dt)return Ft;return-1}function ntt(et,dt,ct){for(var Ft=ct+1;Ft--;)if(et[Ft]===dt)return Ft;return Ft}function uu(et){return lu(et)?rtt(et):WQ(et)}function yr(et){return lu(et)?att(et):GQ(et)}function I3(et){for(var dt=et.length;dt--&&Z$.test(et.charAt(dt)););return dt}var itt=Vx(RQ);function rtt(et){for(var dt=Px.lastIndex=0;Px.test(et);)++dt;return dt}function att(et){return et.match(Px)||[]}function ott(et){return et.match(TQ)||[]}var stt=function et(dt){dt=dt==null?Pn:cu.defaults(Pn.Object(),dt,cu.pick(Pn,kQ));var ct=dt.Array,Ft=dt.Date,ce=dt.Error,Re=dt.Function,_n=dt.Math,Ge=dt.Object,Hx=dt.RegExp,ltt=dt.String,Yi=dt.TypeError,fg=ct.prototype,utt=Re.prototype,hu=Ge.prototype,gg=dt["__core-js_shared__"],vg=utt.toString,Fe=hu.hasOwnProperty,ctt=0,T3=function(){var m=/[^.]+$/.exec(gg&&gg.keys&&gg.keys.IE_PROTO||"");return m?"Symbol(src)_1."+m:""}(),yg=hu.toString,htt=vg.call(Ge),ptt=Pn._,dtt=Hx("^"+vg.call(Fe).replace(Tx,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),mg=u3?dt.Buffer:t,xo=dt.Symbol,_g=dt.Uint8Array,A3=mg?mg.allocUnsafe:t,xg=M3(Ge.getPrototypeOf,Ge),C3=Ge.create,k3=hu.propertyIsEnumerable,bg=fg.splice,L3=xo?xo.isConcatSpreadable:t,Nh=xo?xo.iterator:t,Ws=xo?xo.toStringTag:t,wg=function(){try{var m=Xs(Ge,"defineProperty");return m({},"",{}),m}catch{}}(),ftt=dt.clearTimeout!==Pn.clearTimeout&&dt.clearTimeout,gtt=Ft&&Ft.now!==Pn.Date.now&&Ft.now,vtt=dt.setTimeout!==Pn.setTimeout&&dt.setTimeout,Sg=_n.ceil,Mg=_n.floor,Ux=Ge.getOwnPropertySymbols,ytt=mg?mg.isBuffer:t,D3=dt.isFinite,mtt=fg.join,_tt=M3(Ge.keys,Ge),xn=_n.max,Wn=_n.min,xtt=Ft.now,btt=dt.parseInt,P3=_n.random,wtt=fg.reverse,Xx=Xs(dt,"DataView"),zh=Xs(dt,"Map"),Zx=Xs(dt,"Promise"),pu=Xs(dt,"Set"),Eh=Xs(dt,"WeakMap"),Oh=Xs(Ge,"create"),Ig=Eh&&new Eh,du={},Stt=Zs(Xx),Mtt=Zs(zh),Itt=Zs(Zx),Ttt=Zs(pu),Att=Zs(Eh),Tg=xo?xo.prototype:t,Bh=Tg?Tg.valueOf:t,R3=Tg?Tg.toString:t;function V(m){if(Qe(m)&&!he(m)&&!(m instanceof Te)){if(m instanceof Ji)return m;if(Fe.call(m,"__wrapped__"))return NN(m)}return new Ji(m)}var fu=function(){function m(){}return function(w){if(!Ye(w))return{};if(C3)return C3(w);m.prototype=w;var T=new m;return m.prototype=t,T}}();function Ag(){}function Ji(m,w){this.__wrapped__=m,this.__actions__=[],this.__chain__=!!w,this.__index__=0,this.__values__=t}V.templateSettings={escape:W$,evaluate:G$,interpolate:GR,variable:"",imports:{_:V}},V.prototype=Ag.prototype,V.prototype.constructor=V,Ji.prototype=fu(Ag.prototype),Ji.prototype.constructor=Ji;function Te(m){this.__wrapped__=m,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=H,this.__views__=[]}function Ctt(){var m=new Te(this.__wrapped__);return m.__actions__=ci(this.__actions__),m.__dir__=this.__dir__,m.__filtered__=this.__filtered__,m.__iteratees__=ci(this.__iteratees__),m.__takeCount__=this.__takeCount__,m.__views__=ci(this.__views__),m}function ktt(){if(this.__filtered__){var m=new Te(this);m.__dir__=-1,m.__filtered__=!0}else m=this.clone(),m.__dir__*=-1;return m}function Ltt(){var m=this.__wrapped__.value(),w=this.__dir__,T=he(m),P=w<0,B=T?m.length:0,W=jet(0,B,this.__views__),Y=W.start,$=W.end,nt=$-Y,yt=P?$:Y-1,_t=this.__iteratees__,St=_t.length,Rt=0,Ht=Wn(nt,this.__takeCount__);if(!T||!P&&B==nt&&Ht==nt)return iN(m,this.__actions__);var ee=[];t:for(;nt--&&Rt<Ht;){yt+=w;for(var ye=-1,ne=m[yt];++ye<St;){var we=_t[ye],Le=we.iteratee,Ti=we.type,ii=Le(ne);if(Ti==O)ne=ii;else if(!ii){if(Ti==k)continue t;break t}}ee[Rt++]=ne}return ee}Te.prototype=fu(Ag.prototype),Te.prototype.constructor=Te;function Gs(m){var w=-1,T=m==null?0:m.length;for(this.clear();++w<T;){var P=m[w];this.set(P[0],P[1])}}function Dtt(){this.__data__=Oh?Oh(null):{},this.size=0}function Ptt(m){var w=this.has(m)&&delete this.__data__[m];return this.size-=w?1:0,w}function Rtt(m){var w=this.__data__;if(Oh){var T=w[m];return T===l?t:T}return Fe.call(w,m)?w[m]:t}function Ntt(m){var w=this.__data__;return Oh?w[m]!==t:Fe.call(w,m)}function ztt(m,w){var T=this.__data__;return this.size+=this.has(m)?0:1,T[m]=Oh&&w===t?l:w,this}Gs.prototype.clear=Dtt,Gs.prototype.delete=Ptt,Gs.prototype.get=Rtt,Gs.prototype.has=Ntt,Gs.prototype.set=ztt;function Sa(m){var w=-1,T=m==null?0:m.length;for(this.clear();++w<T;){var P=m[w];this.set(P[0],P[1])}}function Ett(){this.__data__=[],this.size=0}function Ott(m){var w=this.__data__,T=Cg(w,m);if(T<0)return!1;var P=w.length-1;return T==P?w.pop():bg.call(w,T,1),--this.size,!0}function Btt(m){var w=this.__data__,T=Cg(w,m);return T<0?t:w[T][1]}function Vtt(m){return Cg(this.__data__,m)>-1}function Ftt(m,w){var T=this.__data__,P=Cg(T,m);return P<0?(++this.size,T.push([m,w])):T[P][1]=w,this}Sa.prototype.clear=Ett,Sa.prototype.delete=Ott,Sa.prototype.get=Btt,Sa.prototype.has=Vtt,Sa.prototype.set=Ftt;function Ma(m){var w=-1,T=m==null?0:m.length;for(this.clear();++w<T;){var P=m[w];this.set(P[0],P[1])}}function Wtt(){this.size=0,this.__data__={hash:new Gs,map:new(zh||Sa),string:new Gs}}function Gtt(m){var w=Fg(this,m).delete(m);return this.size-=w?1:0,w}function jtt(m){return Fg(this,m).get(m)}function Htt(m){return Fg(this,m).has(m)}function Utt(m,w){var T=Fg(this,m),P=T.size;return T.set(m,w),this.size+=T.size==P?0:1,this}Ma.prototype.clear=Wtt,Ma.prototype.delete=Gtt,Ma.prototype.get=jtt,Ma.prototype.has=Htt,Ma.prototype.set=Utt;function js(m){var w=-1,T=m==null?0:m.length;for(this.__data__=new Ma;++w<T;)this.add(m[w])}function Xtt(m){return this.__data__.set(m,l),this}function Ztt(m){return this.__data__.has(m)}js.prototype.add=js.prototype.push=Xtt,js.prototype.has=Ztt;function mr(m){var w=this.__data__=new Sa(m);this.size=w.size}function qtt(){this.__data__=new Sa,this.size=0}function Ktt(m){var w=this.__data__,T=w.delete(m);return this.size=w.size,T}function Ytt(m){return this.__data__.get(m)}function Jtt(m){return this.__data__.has(m)}function $tt(m,w){var T=this.__data__;if(T instanceof Sa){var P=T.__data__;if(!zh||P.length<r-1)return P.push([m,w]),this.size=++T.size,this;T=this.__data__=new Ma(P)}return T.set(m,w),this.size=T.size,this}mr.prototype.clear=qtt,mr.prototype.delete=Ktt,mr.prototype.get=Ytt,mr.prototype.has=Jtt,mr.prototype.set=$tt;function N3(m,w){var T=he(m),P=!T&&qs(m),B=!T&&!P&&Io(m),W=!T&&!P&&!B&&mu(m),Y=T||P||B||W,$=Y?Wx(m.length,ltt):[],nt=$.length;for(var yt in m)(w||Fe.call(m,yt))&&!(Y&&(yt=="length"||B&&(yt=="offset"||yt=="parent")||W&&(yt=="buffer"||yt=="byteLength"||yt=="byteOffset")||Ca(yt,nt)))&&$.push(yt);return $}function z3(m){var w=m.length;return w?m[rb(0,w-1)]:t}function Qtt(m,w){return Wg(ci(m),Hs(w,0,m.length))}function tet(m){return Wg(ci(m))}function qx(m,w,T){(T!==t&&!_r(m[w],T)||T===t&&!(w in m))&&Ia(m,w,T)}function Vh(m,w,T){var P=m[w];(!(Fe.call(m,w)&&_r(P,T))||T===t&&!(w in m))&&Ia(m,w,T)}function Cg(m,w){for(var T=m.length;T--;)if(_r(m[T][0],w))return T;return-1}function eet(m,w,T,P){return bo(m,function(B,W,Y){w(P,B,T(B),Y)}),P}function E3(m,w){return m&&Kr(w,In(w),m)}function net(m,w){return m&&Kr(w,pi(w),m)}function Ia(m,w,T){w=="__proto__"&&wg?wg(m,w,{configurable:!0,enumerable:!0,value:T,writable:!0}):m[w]=T}function Kx(m,w){for(var T=-1,P=w.length,B=ct(P),W=m==null;++T<P;)B[T]=W?t:kb(m,w[T]);return B}function Hs(m,w,T){return m===m&&(T!==t&&(m=m<=T?m:T),w!==t&&(m=m>=w?m:w)),m}function $i(m,w,T,P,B,W){var Y,$=w&h,nt=w&f,yt=w&d;if(T&&(Y=B?T(m,P,B,W):T(m)),Y!==t)return Y;if(!Ye(m))return m;var _t=he(m);if(_t){if(Y=Uet(m),!$)return ci(m,Y)}else{var St=Gn(m),Rt=St==Pt||St==ae;if(Io(m))return oN(m,$);if(St==Z||St==at||Rt&&!B){if(Y=nt||Rt?{}:IN(m),!$)return nt?Net(m,net(Y,m)):Ret(m,E3(Y,m))}else{if(!He[St])return B?m:{};Y=Xet(m,St,$)}}W||(W=new mr);var Ht=W.get(m);if(Ht)return Ht;W.set(m,Y),tz(m)?m.forEach(function(ne){Y.add($i(ne,w,T,ne,m,W))}):$N(m)&&m.forEach(function(ne,we){Y.set(we,$i(ne,w,T,we,m,W))});var ee=yt?nt?gb:fb:nt?pi:In,ye=_t?t:ee(m);return Ki(ye||m,function(ne,we){ye&&(we=ne,ne=m[we]),Vh(Y,we,$i(ne,w,T,we,m,W))}),Y}function iet(m){var w=In(m);return function(T){return O3(T,m,w)}}function O3(m,w,T){var P=T.length;if(m==null)return!P;for(m=Ge(m);P--;){var B=T[P],W=w[B],Y=m[B];if(Y===t&&!(B in m)||!W(Y))return!1}return!0}function B3(m,w,T){if(typeof m!="function")throw new Yi(o);return Xh(function(){m.apply(t,T)},w)}function Fh(m,w,T,P){var B=-1,W=hg,Y=!0,$=m.length,nt=[],yt=w.length;if(!$)return nt;T&&(w=Ze(w,Si(T))),P?(W=zx,Y=!1):w.length>=r&&(W=Rh,Y=!1,w=new js(w));t:for(;++B<$;){var _t=m[B],St=T==null?_t:T(_t);if(_t=P||_t!==0?_t:0,Y&&St===St){for(var Rt=yt;Rt--;)if(w[Rt]===St)continue t;nt.push(_t)}else W(w,St,P)||nt.push(_t)}return nt}var bo=hN(qr),V3=hN(Jx,!0);function ret(m,w){var T=!0;return bo(m,function(P,B,W){return T=!!w(P,B,W),T}),T}function kg(m,w,T){for(var P=-1,B=m.length;++P<B;){var W=m[P],Y=w(W);if(Y!=null&&($===t?Y===Y&&!Ii(Y):T(Y,$)))var $=Y,nt=W}return nt}function aet(m,w,T,P){var B=m.length;for(T=ge(T),T<0&&(T=-T>B?0:B+T),P=P===t||P>B?B:ge(P),P<0&&(P+=B),P=T>P?0:nz(P);T<P;)m[T++]=w;return m}function F3(m,w){var T=[];return bo(m,function(P,B,W){w(P,B,W)&&T.push(P)}),T}function Rn(m,w,T,P,B){var W=-1,Y=m.length;for(T||(T=qet),B||(B=[]);++W<Y;){var $=m[W];w>0&&T($)?w>1?Rn($,w-1,T,P,B):mo(B,$):P||(B[B.length]=$)}return B}var Yx=pN(),W3=pN(!0);function qr(m,w){return m&&Yx(m,w,In)}function Jx(m,w){return m&&W3(m,w,In)}function Lg(m,w){return yo(w,function(T){return ka(m[T])})}function Us(m,w){w=So(w,m);for(var T=0,P=w.length;m!=null&&T<P;)m=m[Yr(w[T++])];return T&&T==P?m:t}function G3(m,w,T){var P=w(m);return he(m)?P:mo(P,T(m))}function ei(m){return m==null?m===t?Et:rt:Ws&&Ws in Ge(m)?Get(m):ent(m)}function $x(m,w){return m>w}function oet(m,w){return m!=null&&Fe.call(m,w)}function set(m,w){return m!=null&&w in Ge(m)}function uet(m,w,T){return m>=Wn(w,T)&&m<xn(w,T)}function Qx(m,w,T){for(var P=T?zx:hg,B=m[0].length,W=m.length,Y=W,$=ct(W),nt=1/0,yt=[];Y--;){var _t=m[Y];Y&&w&&(_t=Ze(_t,Si(w))),nt=Wn(_t.length,nt),$[Y]=!T&&(w||B>=120&&_t.length>=120)?new js(Y&&_t):t}_t=m[0];var St=-1,Rt=$[0];t:for(;++St<B&&yt.length<nt;){var Ht=_t[St],ee=w?w(Ht):Ht;if(Ht=T||Ht!==0?Ht:0,!(Rt?Rh(Rt,ee):P(yt,ee,T))){for(Y=W;--Y;){var ye=$[Y];if(!(ye?Rh(ye,ee):P(m[Y],ee,T)))continue t}Rt&&Rt.push(ee),yt.push(Ht)}}return yt}function cet(m,w,T,P){return qr(m,function(B,W,Y){w(P,T(B),W,Y)}),P}function Wh(m,w,T){w=So(w,m),m=kN(m,w);var P=m==null?m:m[Yr(tr(w))];return P==null?t:wi(P,m,T)}function j3(m){return Qe(m)&&ei(m)==at}function het(m){return Qe(m)&&ei(m)==Ie}function pet(m){return Qe(m)&&ei(m)==xt}function Gh(m,w,T,P,B){return m===w?!0:m==null||w==null||!Qe(m)&&!Qe(w)?m!==m&&w!==w:det(m,w,T,P,Gh,B)}function det(m,w,T,P,B,W){var Y=he(m),$=he(w),nt=Y?Nt:Gn(m),yt=$?Nt:Gn(w);nt=nt==at?Z:nt,yt=yt==at?Z:yt;var _t=nt==Z,St=yt==Z,Rt=nt==yt;if(Rt&&Io(m)){if(!Io(w))return!1;Y=!0,_t=!1}if(Rt&&!_t)return W||(W=new mr),Y||mu(m)?wN(m,w,T,P,B,W):Fet(m,w,nt,T,P,B,W);if(!(T&g)){var Ht=_t&&Fe.call(m,"__wrapped__"),ee=St&&Fe.call(w,"__wrapped__");if(Ht||ee){var ye=Ht?m.value():m,ne=ee?w.value():w;return W||(W=new mr),B(ye,ne,T,P,W)}}return Rt?(W||(W=new mr),Wet(m,w,T,P,B,W)):!1}function fet(m){return Qe(m)&&Gn(m)==z}function tb(m,w,T,P){var B=T.length,W=B,Y=!P;if(m==null)return!W;for(m=Ge(m);B--;){var $=T[B];if(Y&&$[2]?$[1]!==m[$[0]]:!($[0]in m))return!1}for(;++B<W;){$=T[B];var nt=$[0],yt=m[nt],_t=$[1];if(Y&&$[2]){if(yt===t&&!(nt in m))return!1}else{var St=new mr;if(P)var Rt=P(yt,_t,nt,m,w,St);if(!(Rt===t?Gh(_t,yt,g|y,P,St):Rt))return!1}}return!0}function H3(m){if(!Ye(m)||Yet(m))return!1;var w=ka(m)?dtt:iQ;return w.test(Zs(m))}function get(m){return Qe(m)&&ei(m)==ft}function vet(m){return Qe(m)&&Gn(m)==gt}function yet(m){return Qe(m)&&Zg(m.length)&&!!Xe[ei(m)]}function U3(m){return typeof m=="function"?m:m==null?di:typeof m=="object"?he(m)?q3(m[0],m[1]):Z3(m):dz(m)}function eb(m){if(!Uh(m))return _tt(m);var w=[];for(var T in Ge(m))Fe.call(m,T)&&T!="constructor"&&w.push(T);return w}function met(m){if(!Ye(m))return tnt(m);var w=Uh(m),T=[];for(var P in m)P=="constructor"&&(w||!Fe.call(m,P))||T.push(P);return T}function nb(m,w){return m<w}function X3(m,w){var T=-1,P=hi(m)?ct(m.length):[];return bo(m,function(B,W,Y){P[++T]=w(B,W,Y)}),P}function Z3(m){var w=yb(m);return w.length==1&&w[0][2]?AN(w[0][0],w[0][1]):function(T){return T===m||tb(T,m,w)}}function q3(m,w){return _b(m)&&TN(w)?AN(Yr(m),w):function(T){var P=kb(T,m);return P===t&&P===w?Lb(T,m):Gh(w,P,g|y)}}function Dg(m,w,T,P,B){m!==w&&Yx(w,function(W,Y){if(B||(B=new mr),Ye(W))_et(m,w,Y,T,Dg,P,B);else{var $=P?P(bb(m,Y),W,Y+"",m,w,B):t;$===t&&($=W),qx(m,Y,$)}},pi)}function _et(m,w,T,P,B,W,Y){var $=bb(m,T),nt=bb(w,T),yt=Y.get(nt);if(yt){qx(m,T,yt);return}var _t=W?W($,nt,T+"",m,w,Y):t,St=_t===t;if(St){var Rt=he(nt),Ht=!Rt&&Io(nt),ee=!Rt&&!Ht&&mu(nt);_t=nt,Rt||Ht||ee?he($)?_t=$:on($)?_t=ci($):Ht?(St=!1,_t=oN(nt,!0)):ee?(St=!1,_t=sN(nt,!0)):_t=[]:Zh(nt)||qs(nt)?(_t=$,qs($)?_t=iz($):(!Ye($)||ka($))&&(_t=IN(nt))):St=!1}St&&(Y.set(nt,_t),B(_t,nt,P,W,Y),Y.delete(nt)),qx(m,T,_t)}function K3(m,w){var T=m.length;if(T)return w+=w<0?T:0,Ca(w,T)?m[w]:t}function Y3(m,w,T){w.length?w=Ze(w,function(W){return he(W)?function(Y){return Us(Y,W.length===1?W[0]:W)}:W}):w=[di];var P=-1;w=Ze(w,Si(te()));var B=X3(m,function(W,Y,$){var nt=Ze(w,function(yt){return yt(W)});return{criteria:nt,index:++P,value:W}});return UQ(B,function(W,Y){return Pet(W,Y,T)})}function xet(m,w){return J3(m,w,function(T,P){return Lb(m,P)})}function J3(m,w,T){for(var P=-1,B=w.length,W={};++P<B;){var Y=w[P],$=Us(m,Y);T($,Y)&&jh(W,So(Y,m),$)}return W}function bet(m){return function(w){return Us(w,m)}}function ib(m,w,T,P){var B=P?HQ:su,W=-1,Y=w.length,$=m;for(m===w&&(w=ci(w)),T&&($=Ze(m,Si(T)));++W<Y;)for(var nt=0,yt=w[W],_t=T?T(yt):yt;(nt=B($,_t,nt,P))>-1;)$!==m&&bg.call($,nt,1),bg.call(m,nt,1);return m}function $3(m,w){for(var T=m?w.length:0,P=T-1;T--;){var B=w[T];if(T==P||B!==W){var W=B;Ca(B)?bg.call(m,B,1):sb(m,B)}}return m}function rb(m,w){return m+Mg(P3()*(w-m+1))}function wet(m,w,T,P){for(var B=-1,W=xn(Sg((w-m)/(T||1)),0),Y=ct(W);W--;)Y[P?W:++B]=m,m+=T;return Y}function ab(m,w){var T="";if(!m||w<1||w>q)return T;do w%2&&(T+=m),w=Mg(w/2),w&&(m+=m);while(w);return T}function _e(m,w){return wb(CN(m,w,di),m+"")}function Set(m){return z3(_u(m))}function Met(m,w){var T=_u(m);return Wg(T,Hs(w,0,T.length))}function jh(m,w,T,P){if(!Ye(m))return m;w=So(w,m);for(var B=-1,W=w.length,Y=W-1,$=m;$!=null&&++B<W;){var nt=Yr(w[B]),yt=T;if(nt==="__proto__"||nt==="constructor"||nt==="prototype")return m;if(B!=Y){var _t=$[nt];yt=P?P(_t,nt,$):t,yt===t&&(yt=Ye(_t)?_t:Ca(w[B+1])?[]:{})}Vh($,nt,yt),$=$[nt]}return m}var Q3=Ig?function(m,w){return Ig.set(m,w),m}:di,Iet=wg?function(m,w){return wg(m,"toString",{configurable:!0,enumerable:!1,value:Pb(w),writable:!0})}:di;function Tet(m){return Wg(_u(m))}function Qi(m,w,T){var P=-1,B=m.length;w<0&&(w=-w>B?0:B+w),T=T>B?B:T,T<0&&(T+=B),B=w>T?0:T-w>>>0,w>>>=0;for(var W=ct(B);++P<B;)W[P]=m[P+w];return W}function Aet(m,w){var T;return bo(m,function(P,B,W){return T=w(P,B,W),!T}),!!T}function Pg(m,w,T){var P=0,B=m==null?P:m.length;if(typeof w=="number"&&w===w&&B<=ut){for(;P<B;){var W=P+B>>>1,Y=m[W];Y!==null&&!Ii(Y)&&(T?Y<=w:Y<w)?P=W+1:B=W}return B}return ob(m,w,di,T)}function ob(m,w,T,P){var B=0,W=m==null?0:m.length;if(W===0)return 0;w=T(w);for(var Y=w!==w,$=w===null,nt=Ii(w),yt=w===t;B<W;){var _t=Mg((B+W)/2),St=T(m[_t]),Rt=St!==t,Ht=St===null,ee=St===St,ye=Ii(St);if(Y)var ne=P||ee;else yt?ne=ee&&(P||Rt):$?ne=ee&&Rt&&(P||!Ht):nt?ne=ee&&Rt&&!Ht&&(P||!ye):Ht||ye?ne=!1:ne=P?St<=w:St<w;ne?B=_t+1:W=_t}return Wn(W,K)}function tN(m,w){for(var T=-1,P=m.length,B=0,W=[];++T<P;){var Y=m[T],$=w?w(Y):Y;if(!T||!_r($,nt)){var nt=$;W[B++]=Y===0?0:Y}}return W}function eN(m){return typeof m=="number"?m:Ii(m)?J:+m}function Mi(m){if(typeof m=="string")return m;if(he(m))return Ze(m,Mi)+"";if(Ii(m))return R3?R3.call(m):"";var w=m+"";return w=="0"&&1/m==-1/0?"-0":w}function wo(m,w,T){var P=-1,B=hg,W=m.length,Y=!0,$=[],nt=$;if(T)Y=!1,B=zx;else if(W>=r){var yt=w?null:Bet(m);if(yt)return dg(yt);Y=!1,B=Rh,nt=new js}else nt=w?[]:$;t:for(;++P<W;){var _t=m[P],St=w?w(_t):_t;if(_t=T||_t!==0?_t:0,Y&&St===St){for(var Rt=nt.length;Rt--;)if(nt[Rt]===St)continue t;w&&nt.push(St),$.push(_t)}else B(nt,St,T)||(nt!==$&&nt.push(St),$.push(_t))}return $}function sb(m,w){return w=So(w,m),m=kN(m,w),m==null||delete m[Yr(tr(w))]}function nN(m,w,T,P){return jh(m,w,T(Us(m,w)),P)}function Rg(m,w,T,P){for(var B=m.length,W=P?B:-1;(P?W--:++W<B)&&w(m[W],W,m););return T?Qi(m,P?0:W,P?W+1:B):Qi(m,P?W+1:0,P?B:W)}function iN(m,w){var T=m;return T instanceof Te&&(T=T.value()),Ex(w,function(P,B){return B.func.apply(B.thisArg,mo([P],B.args))},T)}function lb(m,w,T){var P=m.length;if(P<2)return P?wo(m[0]):[];for(var B=-1,W=ct(P);++B<P;)for(var Y=m[B],$=-1;++$<P;)$!=B&&(W[B]=Fh(W[B]||Y,m[$],w,T));return wo(Rn(W,1),w,T)}function rN(m,w,T){for(var P=-1,B=m.length,W=w.length,Y={};++P<B;){var $=P<W?w[P]:t;T(Y,m[P],$)}return Y}function ub(m){return on(m)?m:[]}function cb(m){return typeof m=="function"?m:di}function So(m,w){return he(m)?m:_b(m,w)?[m]:RN(ze(m))}var Cet=_e;function Mo(m,w,T){var P=m.length;return T=T===t?P:T,!w&&T>=P?m:Qi(m,w,T)}var aN=ftt||function(m){return Pn.clearTimeout(m)};function oN(m,w){if(w)return m.slice();var T=m.length,P=A3?A3(T):new m.constructor(T);return m.copy(P),P}function hb(m){var w=new m.constructor(m.byteLength);return new _g(w).set(new _g(m)),w}function ket(m,w){var T=w?hb(m.buffer):m.buffer;return new m.constructor(T,m.byteOffset,m.byteLength)}function Let(m){var w=new m.constructor(m.source,jR.exec(m));return w.lastIndex=m.lastIndex,w}function Det(m){return Bh?Ge(Bh.call(m)):{}}function sN(m,w){var T=w?hb(m.buffer):m.buffer;return new m.constructor(T,m.byteOffset,m.length)}function lN(m,w){if(m!==w){var T=m!==t,P=m===null,B=m===m,W=Ii(m),Y=w!==t,$=w===null,nt=w===w,yt=Ii(w);if(!$&&!yt&&!W&&m>w||W&&Y&&nt&&!$&&!yt||P&&Y&&nt||!T&&nt||!B)return 1;if(!P&&!W&&!yt&&m<w||yt&&T&&B&&!P&&!W||$&&T&&B||!Y&&B||!nt)return-1}return 0}function Pet(m,w,T){for(var P=-1,B=m.criteria,W=w.criteria,Y=B.length,$=T.length;++P<Y;){var nt=lN(B[P],W[P]);if(nt){if(P>=$)return nt;var yt=T[P];return nt*(yt=="desc"?-1:1)}}return m.index-w.index}function uN(m,w,T,P){for(var B=-1,W=m.length,Y=T.length,$=-1,nt=w.length,yt=xn(W-Y,0),_t=ct(nt+yt),St=!P;++$<nt;)_t[$]=w[$];for(;++B<Y;)(St||B<W)&&(_t[T[B]]=m[B]);for(;yt--;)_t[$++]=m[B++];return _t}function cN(m,w,T,P){for(var B=-1,W=m.length,Y=-1,$=T.length,nt=-1,yt=w.length,_t=xn(W-$,0),St=ct(_t+yt),Rt=!P;++B<_t;)St[B]=m[B];for(var Ht=B;++nt<yt;)St[Ht+nt]=w[nt];for(;++Y<$;)(Rt||B<W)&&(St[Ht+T[Y]]=m[B++]);return St}function ci(m,w){var T=-1,P=m.length;for(w||(w=ct(P));++T<P;)w[T]=m[T];return w}function Kr(m,w,T,P){var B=!T;T||(T={});for(var W=-1,Y=w.length;++W<Y;){var $=w[W],nt=P?P(T[$],m[$],$,T,m):t;nt===t&&(nt=m[$]),B?Ia(T,$,nt):Vh(T,$,nt)}return T}function Ret(m,w){return Kr(m,mb(m),w)}function Net(m,w){return Kr(m,SN(m),w)}function Ng(m,w){return function(T,P){var B=he(T)?BQ:eet,W=w?w():{};return B(T,m,te(P,2),W)}}function gu(m){return _e(function(w,T){var P=-1,B=T.length,W=B>1?T[B-1]:t,Y=B>2?T[2]:t;for(W=m.length>3&&typeof W=="function"?(B--,W):t,Y&&ni(T[0],T[1],Y)&&(W=B<3?t:W,B=1),w=Ge(w);++P<B;){var $=T[P];$&&m(w,$,P,W)}return w})}function hN(m,w){return function(T,P){if(T==null)return T;if(!hi(T))return m(T,P);for(var B=T.length,W=w?B:-1,Y=Ge(T);(w?W--:++W<B)&&P(Y[W],W,Y)!==!1;);return T}}function pN(m){return function(w,T,P){for(var B=-1,W=Ge(w),Y=P(w),$=Y.length;$--;){var nt=Y[m?$:++B];if(T(W[nt],nt,W)===!1)break}return w}}function zet(m,w,T){var P=w&_,B=Hh(m);function W(){var Y=this&&this!==Pn&&this instanceof W?B:m;return Y.apply(P?T:this,arguments)}return W}function dN(m){return function(w){w=ze(w);var T=lu(w)?yr(w):t,P=T?T[0]:w.charAt(0),B=T?Mo(T,1).join(""):w.slice(1);return P[m]()+B}}function vu(m){return function(w){return Ex(hz(cz(w).replace(MQ,"")),m,"")}}function Hh(m){return function(){var w=arguments;switch(w.length){case 0:return new m;case 1:return new m(w[0]);case 2:return new m(w[0],w[1]);case 3:return new m(w[0],w[1],w[2]);case 4:return new m(w[0],w[1],w[2],w[3]);case 5:return new m(w[0],w[1],w[2],w[3],w[4]);case 6:return new m(w[0],w[1],w[2],w[3],w[4],w[5]);case 7:return new m(w[0],w[1],w[2],w[3],w[4],w[5],w[6])}var T=fu(m.prototype),P=m.apply(T,w);return Ye(P)?P:T}}function Eet(m,w,T){var P=Hh(m);function B(){for(var W=arguments.length,Y=ct(W),$=W,nt=yu(B);$--;)Y[$]=arguments[$];var yt=W<3&&Y[0]!==nt&&Y[W-1]!==nt?[]:_o(Y,nt);if(W-=yt.length,W<T)return mN(m,w,zg,B.placeholder,t,Y,yt,t,t,T-W);var _t=this&&this!==Pn&&this instanceof B?P:m;return wi(_t,this,Y)}return B}function fN(m){return function(w,T,P){var B=Ge(w);if(!hi(w)){var W=te(T,3);w=In(w),T=function($){return W(B[$],$,B)}}var Y=m(w,T,P);return Y>-1?B[W?w[Y]:Y]:t}}function gN(m){return Aa(function(w){var T=w.length,P=T,B=Ji.prototype.thru;for(m&&w.reverse();P--;){var W=w[P];if(typeof W!="function")throw new Yi(o);if(B&&!Y&&Vg(W)=="wrapper")var Y=new Ji([],!0)}for(P=Y?P:T;++P<T;){W=w[P];var $=Vg(W),nt=$=="wrapper"?vb(W):t;nt&&xb(nt[0])&&nt[1]==(I|x|S|A)&&!nt[4].length&&nt[9]==1?Y=Y[Vg(nt[0])].apply(Y,nt[3]):Y=W.length==1&&xb(W)?Y[$]():Y.thru(W)}return function(){var yt=arguments,_t=yt[0];if(Y&&yt.length==1&&he(_t))return Y.plant(_t).value();for(var St=0,Rt=T?w[St].apply(this,yt):_t;++St<T;)Rt=w[St].call(this,Rt);return Rt}})}function zg(m,w,T,P,B,W,Y,$,nt,yt){var _t=w&I,St=w&_,Rt=w&v,Ht=w&(x|b),ee=w&C,ye=Rt?t:Hh(m);function ne(){for(var we=arguments.length,Le=ct(we),Ti=we;Ti--;)Le[Ti]=arguments[Ti];if(Ht)var ii=yu(ne),Ai=ZQ(Le,ii);if(P&&(Le=uN(Le,P,B,Ht)),W&&(Le=cN(Le,W,Y,Ht)),we-=Ai,Ht&&we<yt){var sn=_o(Le,ii);return mN(m,w,zg,ne.placeholder,T,Le,sn,$,nt,yt-we)}var xr=St?T:this,Da=Rt?xr[m]:m;return we=Le.length,$?Le=nnt(Le,$):ee&&we>1&&Le.reverse(),_t&&nt<we&&(Le.length=nt),this&&this!==Pn&&this instanceof ne&&(Da=ye||Hh(Da)),Da.apply(xr,Le)}return ne}function vN(m,w){return function(T,P){return cet(T,m,w(P),{})}}function Eg(m,w){return function(T,P){var B;if(T===t&&P===t)return w;if(T!==t&&(B=T),P!==t){if(B===t)return P;typeof T=="string"||typeof P=="string"?(T=Mi(T),P=Mi(P)):(T=eN(T),P=eN(P)),B=m(T,P)}return B}}function pb(m){return Aa(function(w){return w=Ze(w,Si(te())),_e(function(T){var P=this;return m(w,function(B){return wi(B,P,T)})})})}function Og(m,w){w=w===t?" ":Mi(w);var T=w.length;if(T<2)return T?ab(w,m):w;var P=ab(w,Sg(m/uu(w)));return lu(w)?Mo(yr(P),0,m).join(""):P.slice(0,m)}function Oet(m,w,T,P){var B=w&_,W=Hh(m);function Y(){for(var $=-1,nt=arguments.length,yt=-1,_t=P.length,St=ct(_t+nt),Rt=this&&this!==Pn&&this instanceof Y?W:m;++yt<_t;)St[yt]=P[yt];for(;nt--;)St[yt++]=arguments[++$];return wi(Rt,B?T:this,St)}return Y}function yN(m){return function(w,T,P){return P&&typeof P!="number"&&ni(w,T,P)&&(T=P=t),w=La(w),T===t?(T=w,w=0):T=La(T),P=P===t?w<T?1:-1:La(P),wet(w,T,P,m)}}function Bg(m){return function(w,T){return typeof w=="string"&&typeof T=="string"||(w=er(w),T=er(T)),m(w,T)}}function mN(m,w,T,P,B,W,Y,$,nt,yt){var _t=w&x,St=_t?Y:t,Rt=_t?t:Y,Ht=_t?W:t,ee=_t?t:W;w|=_t?S:M,w&=~(_t?M:S),w&p||(w&=-4);var ye=[m,w,B,Ht,St,ee,Rt,$,nt,yt],ne=T.apply(t,ye);return xb(m)&&LN(ne,ye),ne.placeholder=P,DN(ne,m,w)}function db(m){var w=_n[m];return function(T,P){if(T=er(T),P=P==null?0:Wn(ge(P),292),P&&D3(T)){var B=(ze(T)+"e").split("e"),W=w(B[0]+"e"+(+B[1]+P));return B=(ze(W)+"e").split("e"),+(B[0]+"e"+(+B[1]-P))}return w(T)}}var Bet=pu&&1/dg(new pu([,-0]))[1]==G?function(m){return new pu(m)}:zb;function _N(m){return function(w){var T=Gn(w);return T==z?jx(w):T==gt?ttt(w):XQ(w,m(w))}}function Ta(m,w,T,P,B,W,Y,$){var nt=w&v;if(!nt&&typeof m!="function")throw new Yi(o);var yt=P?P.length:0;if(yt||(w&=-97,P=B=t),Y=Y===t?Y:xn(ge(Y),0),$=$===t?$:ge($),yt-=B?B.length:0,w&M){var _t=P,St=B;P=B=t}var Rt=nt?t:vb(m),Ht=[m,w,T,P,B,_t,St,W,Y,$];if(Rt&&Qet(Ht,Rt),m=Ht[0],w=Ht[1],T=Ht[2],P=Ht[3],B=Ht[4],$=Ht[9]=Ht[9]===t?nt?0:m.length:xn(Ht[9]-yt,0),!$&&w&(x|b)&&(w&=-25),!w||w==_)var ee=zet(m,w,T);else w==x||w==b?ee=Eet(m,w,$):(w==S||w==(_|S))&&!B.length?ee=Oet(m,w,T,P):ee=zg.apply(t,Ht);var ye=Rt?Q3:LN;return DN(ye(ee,Ht),m,w)}function xN(m,w,T,P){return m===t||_r(m,hu[T])&&!Fe.call(P,T)?w:m}function bN(m,w,T,P,B,W){return Ye(m)&&Ye(w)&&(W.set(w,m),Dg(m,w,t,bN,W),W.delete(w)),m}function Vet(m){return Zh(m)?t:m}function wN(m,w,T,P,B,W){var Y=T&g,$=m.length,nt=w.length;if($!=nt&&!(Y&&nt>$))return!1;var yt=W.get(m),_t=W.get(w);if(yt&&_t)return yt==w&&_t==m;var St=-1,Rt=!0,Ht=T&y?new js:t;for(W.set(m,w),W.set(w,m);++St<$;){var ee=m[St],ye=w[St];if(P)var ne=Y?P(ye,ee,St,w,m,W):P(ee,ye,St,m,w,W);if(ne!==t){if(ne)continue;Rt=!1;break}if(Ht){if(!Ox(w,function(we,Le){if(!Rh(Ht,Le)&&(ee===we||B(ee,we,T,P,W)))return Ht.push(Le)})){Rt=!1;break}}else if(!(ee===ye||B(ee,ye,T,P,W))){Rt=!1;break}}return W.delete(m),W.delete(w),Rt}function Fet(m,w,T,P,B,W,Y){switch(T){case ue:if(m.byteLength!=w.byteLength||m.byteOffset!=w.byteOffset)return!1;m=m.buffer,w=w.buffer;case Ie:return!(m.byteLength!=w.byteLength||!W(new _g(m),new _g(w)));case wt:case xt:case st:return _r(+m,+w);case bt:return m.name==w.name&&m.message==w.message;case ft:case it:return m==w+"";case z:var $=jx;case gt:var nt=P&g;if($||($=dg),m.size!=w.size&&!nt)return!1;var yt=Y.get(m);if(yt)return yt==w;P|=y,Y.set(m,w);var _t=wN($(m),$(w),P,B,W,Y);return Y.delete(m),_t;case It:if(Bh)return Bh.call(m)==Bh.call(w)}return!1}function Wet(m,w,T,P,B,W){var Y=T&g,$=fb(m),nt=$.length,yt=fb(w),_t=yt.length;if(nt!=_t&&!Y)return!1;for(var St=nt;St--;){var Rt=$[St];if(!(Y?Rt in w:Fe.call(w,Rt)))return!1}var Ht=W.get(m),ee=W.get(w);if(Ht&&ee)return Ht==w&&ee==m;var ye=!0;W.set(m,w),W.set(w,m);for(var ne=Y;++St<nt;){Rt=$[St];var we=m[Rt],Le=w[Rt];if(P)var Ti=Y?P(Le,we,Rt,w,m,W):P(we,Le,Rt,m,w,W);if(!(Ti===t?we===Le||B(we,Le,T,P,W):Ti)){ye=!1;break}ne||(ne=Rt=="constructor")}if(ye&&!ne){var ii=m.constructor,Ai=w.constructor;ii!=Ai&&"constructor"in m&&"constructor"in w&&!(typeof ii=="function"&&ii instanceof ii&&typeof Ai=="function"&&Ai instanceof Ai)&&(ye=!1)}return W.delete(m),W.delete(w),ye}function Aa(m){return wb(CN(m,t,ON),m+"")}function fb(m){return G3(m,In,mb)}function gb(m){return G3(m,pi,SN)}var vb=Ig?function(m){return Ig.get(m)}:zb;function Vg(m){for(var w=m.name+"",T=du[w],P=Fe.call(du,w)?T.length:0;P--;){var B=T[P],W=B.func;if(W==null||W==m)return B.name}return w}function yu(m){var w=Fe.call(V,"placeholder")?V:m;return w.placeholder}function te(){var m=V.iteratee||Rb;return m=m===Rb?U3:m,arguments.length?m(arguments[0],arguments[1]):m}function Fg(m,w){var T=m.__data__;return Ket(w)?T[typeof w=="string"?"string":"hash"]:T.map}function yb(m){for(var w=In(m),T=w.length;T--;){var P=w[T],B=m[P];w[T]=[P,B,TN(B)]}return w}function Xs(m,w){var T=JQ(m,w);return H3(T)?T:t}function Get(m){var w=Fe.call(m,Ws),T=m[Ws];try{m[Ws]=t;var P=!0}catch{}var B=yg.call(m);return P&&(w?m[Ws]=T:delete m[Ws]),B}var mb=Ux?function(m){return m==null?[]:(m=Ge(m),yo(Ux(m),function(w){return k3.call(m,w)}))}:Eb,SN=Ux?function(m){for(var w=[];m;)mo(w,mb(m)),m=xg(m);return w}:Eb,Gn=ei;(Xx&&Gn(new Xx(new ArrayBuffer(1)))!=ue||zh&&Gn(new zh)!=z||Zx&&Gn(Zx.resolve())!=U||pu&&Gn(new pu)!=gt||Eh&&Gn(new Eh)!=At)&&(Gn=function(m){var w=ei(m),T=w==Z?m.constructor:t,P=T?Zs(T):"";if(P)switch(P){case Stt:return ue;case Mtt:return z;case Itt:return U;case Ttt:return gt;case Att:return At}return w});function jet(m,w,T){for(var P=-1,B=T.length;++P<B;){var W=T[P],Y=W.size;switch(W.type){case"drop":m+=Y;break;case"dropRight":w-=Y;break;case"take":w=Wn(w,m+Y);break;case"takeRight":m=xn(m,w-Y);break}}return{start:m,end:w}}function Het(m){var w=m.match(K$);return w?w[1].split(Y$):[]}function MN(m,w,T){w=So(w,m);for(var P=-1,B=w.length,W=!1;++P<B;){var Y=Yr(w[P]);if(!(W=m!=null&&T(m,Y)))break;m=m[Y]}return W||++P!=B?W:(B=m==null?0:m.length,!!B&&Zg(B)&&Ca(Y,B)&&(he(m)||qs(m)))}function Uet(m){var w=m.length,T=new m.constructor(w);return w&&typeof m[0]=="string"&&Fe.call(m,"index")&&(T.index=m.index,T.input=m.input),T}function IN(m){return typeof m.constructor=="function"&&!Uh(m)?fu(xg(m)):{}}function Xet(m,w,T){var P=m.constructor;switch(w){case Ie:return hb(m);case wt:case xt:return new P(+m);case ue:return ket(m,T);case cn:case xi:case Mn:case bi:case Ve:case Zi:case vr:case Dn:case Zr:return sN(m,T);case z:return new P;case st:case it:return new P(m);case ft:return Let(m);case gt:return new P;case It:return Det(m)}}function Zet(m,w){var T=w.length;if(!T)return m;var P=T-1;return w[P]=(T>1?"& ":"")+w[P],w=w.join(T>2?", ":" "),m.replace(q$,`{
|
|
20
|
+
/* [wrapped with `+w+`] */
|
|
21
|
+
`)}function qet(m){return he(m)||qs(m)||!!(L3&&m&&m[L3])}function Ca(m,w){var T=typeof m;return w=w??q,!!w&&(T=="number"||T!="symbol"&&aQ.test(m))&&m>-1&&m%1==0&&m<w}function ni(m,w,T){if(!Ye(T))return!1;var P=typeof w;return(P=="number"?hi(T)&&Ca(w,T.length):P=="string"&&w in T)?_r(T[w],m):!1}function _b(m,w){if(he(m))return!1;var T=typeof m;return T=="number"||T=="symbol"||T=="boolean"||m==null||Ii(m)?!0:H$.test(m)||!j$.test(m)||w!=null&&m in Ge(w)}function Ket(m){var w=typeof m;return w=="string"||w=="number"||w=="symbol"||w=="boolean"?m!=="__proto__":m===null}function xb(m){var w=Vg(m),T=V[w];if(typeof T!="function"||!(w in Te.prototype))return!1;if(m===T)return!0;var P=vb(T);return!!P&&m===P[0]}function Yet(m){return!!T3&&T3 in m}var Jet=gg?ka:Ob;function Uh(m){var w=m&&m.constructor,T=typeof w=="function"&&w.prototype||hu;return m===T}function TN(m){return m===m&&!Ye(m)}function AN(m,w){return function(T){return T==null?!1:T[m]===w&&(w!==t||m in Ge(T))}}function $et(m){var w=Ug(m,function(P){return T.size===u&&T.clear(),P}),T=w.cache;return w}function Qet(m,w){var T=m[1],P=w[1],B=T|P,W=B<(_|v|I),Y=P==I&&T==x||P==I&&T==A&&m[7].length<=w[8]||P==(I|A)&&w[7].length<=w[8]&&T==x;if(!(W||Y))return m;P&_&&(m[2]=w[2],B|=T&_?0:p);var $=w[3];if($){var nt=m[3];m[3]=nt?uN(nt,$,w[4]):$,m[4]=nt?_o(m[3],c):w[4]}return $=w[5],$&&(nt=m[5],m[5]=nt?cN(nt,$,w[6]):$,m[6]=nt?_o(m[5],c):w[6]),$=w[7],$&&(m[7]=$),P&I&&(m[8]=m[8]==null?w[8]:Wn(m[8],w[8])),m[9]==null&&(m[9]=w[9]),m[0]=w[0],m[1]=B,m}function tnt(m){var w=[];if(m!=null)for(var T in Ge(m))w.push(T);return w}function ent(m){return yg.call(m)}function CN(m,w,T){return w=xn(w===t?m.length-1:w,0),function(){for(var P=arguments,B=-1,W=xn(P.length-w,0),Y=ct(W);++B<W;)Y[B]=P[w+B];B=-1;for(var $=ct(w+1);++B<w;)$[B]=P[B];return $[w]=T(Y),wi(m,this,$)}}function kN(m,w){return w.length<2?m:Us(m,Qi(w,0,-1))}function nnt(m,w){for(var T=m.length,P=Wn(w.length,T),B=ci(m);P--;){var W=w[P];m[P]=Ca(W,T)?B[W]:t}return m}function bb(m,w){if(!(w==="constructor"&&typeof m[w]=="function")&&w!="__proto__")return m[w]}var LN=PN(Q3),Xh=vtt||function(m,w){return Pn.setTimeout(m,w)},wb=PN(Iet);function DN(m,w,T){var P=w+"";return wb(m,Zet(P,int(Het(P),T)))}function PN(m){var w=0,T=0;return function(){var P=xtt(),B=N-(P-T);if(T=P,B>0){if(++w>=D)return arguments[0]}else w=0;return m.apply(t,arguments)}}function Wg(m,w){var T=-1,P=m.length,B=P-1;for(w=w===t?P:w;++T<w;){var W=rb(T,B),Y=m[W];m[W]=m[T],m[T]=Y}return m.length=w,m}var RN=$et(function(m){var w=[];return m.charCodeAt(0)===46&&w.push(""),m.replace(U$,function(T,P,B,W){w.push(B?W.replace(Q$,"$1"):P||T)}),w});function Yr(m){if(typeof m=="string"||Ii(m))return m;var w=m+"";return w=="0"&&1/m==-1/0?"-0":w}function Zs(m){if(m!=null){try{return vg.call(m)}catch{}try{return m+""}catch{}}return""}function int(m,w){return Ki(ot,function(T){var P="_."+T[0];w&T[1]&&!hg(m,P)&&m.push(P)}),m.sort()}function NN(m){if(m instanceof Te)return m.clone();var w=new Ji(m.__wrapped__,m.__chain__);return w.__actions__=ci(m.__actions__),w.__index__=m.__index__,w.__values__=m.__values__,w}function rnt(m,w,T){(T?ni(m,w,T):w===t)?w=1:w=xn(ge(w),0);var P=m==null?0:m.length;if(!P||w<1)return[];for(var B=0,W=0,Y=ct(Sg(P/w));B<P;)Y[W++]=Qi(m,B,B+=w);return Y}function ant(m){for(var w=-1,T=m==null?0:m.length,P=0,B=[];++w<T;){var W=m[w];W&&(B[P++]=W)}return B}function ont(){var m=arguments.length;if(!m)return[];for(var w=ct(m-1),T=arguments[0],P=m;P--;)w[P-1]=arguments[P];return mo(he(T)?ci(T):[T],Rn(w,1))}var snt=_e(function(m,w){return on(m)?Fh(m,Rn(w,1,on,!0)):[]}),lnt=_e(function(m,w){var T=tr(w);return on(T)&&(T=t),on(m)?Fh(m,Rn(w,1,on,!0),te(T,2)):[]}),unt=_e(function(m,w){var T=tr(w);return on(T)&&(T=t),on(m)?Fh(m,Rn(w,1,on,!0),t,T):[]});function cnt(m,w,T){var P=m==null?0:m.length;return P?(w=T||w===t?1:ge(w),Qi(m,w<0?0:w,P)):[]}function hnt(m,w,T){var P=m==null?0:m.length;return P?(w=T||w===t?1:ge(w),w=P-w,Qi(m,0,w<0?0:w)):[]}function pnt(m,w){return m&&m.length?Rg(m,te(w,3),!0,!0):[]}function dnt(m,w){return m&&m.length?Rg(m,te(w,3),!0):[]}function fnt(m,w,T,P){var B=m==null?0:m.length;return B?(T&&typeof T!="number"&&ni(m,w,T)&&(T=0,P=B),aet(m,w,T,P)):[]}function zN(m,w,T){var P=m==null?0:m.length;if(!P)return-1;var B=T==null?0:ge(T);return B<0&&(B=xn(P+B,0)),pg(m,te(w,3),B)}function EN(m,w,T){var P=m==null?0:m.length;if(!P)return-1;var B=P-1;return T!==t&&(B=ge(T),B=T<0?xn(P+B,0):Wn(B,P-1)),pg(m,te(w,3),B,!0)}function ON(m){var w=m==null?0:m.length;return w?Rn(m,1):[]}function gnt(m){var w=m==null?0:m.length;return w?Rn(m,G):[]}function vnt(m,w){var T=m==null?0:m.length;return T?(w=w===t?1:ge(w),Rn(m,w)):[]}function ynt(m){for(var w=-1,T=m==null?0:m.length,P={};++w<T;){var B=m[w];P[B[0]]=B[1]}return P}function BN(m){return m&&m.length?m[0]:t}function mnt(m,w,T){var P=m==null?0:m.length;if(!P)return-1;var B=T==null?0:ge(T);return B<0&&(B=xn(P+B,0)),su(m,w,B)}function _nt(m){var w=m==null?0:m.length;return w?Qi(m,0,-1):[]}var xnt=_e(function(m){var w=Ze(m,ub);return w.length&&w[0]===m[0]?Qx(w):[]}),bnt=_e(function(m){var w=tr(m),T=Ze(m,ub);return w===tr(T)?w=t:T.pop(),T.length&&T[0]===m[0]?Qx(T,te(w,2)):[]}),wnt=_e(function(m){var w=tr(m),T=Ze(m,ub);return w=typeof w=="function"?w:t,w&&T.pop(),T.length&&T[0]===m[0]?Qx(T,t,w):[]});function Snt(m,w){return m==null?"":mtt.call(m,w)}function tr(m){var w=m==null?0:m.length;return w?m[w-1]:t}function Mnt(m,w,T){var P=m==null?0:m.length;if(!P)return-1;var B=P;return T!==t&&(B=ge(T),B=B<0?xn(P+B,0):Wn(B,P-1)),w===w?ntt(m,w,B):pg(m,m3,B,!0)}function Int(m,w){return m&&m.length?K3(m,ge(w)):t}var Tnt=_e(VN);function VN(m,w){return m&&m.length&&w&&w.length?ib(m,w):m}function Ant(m,w,T){return m&&m.length&&w&&w.length?ib(m,w,te(T,2)):m}function Cnt(m,w,T){return m&&m.length&&w&&w.length?ib(m,w,t,T):m}var knt=Aa(function(m,w){var T=m==null?0:m.length,P=Kx(m,w);return $3(m,Ze(w,function(B){return Ca(B,T)?+B:B}).sort(lN)),P});function Lnt(m,w){var T=[];if(!(m&&m.length))return T;var P=-1,B=[],W=m.length;for(w=te(w,3);++P<W;){var Y=m[P];w(Y,P,m)&&(T.push(Y),B.push(P))}return $3(m,B),T}function Sb(m){return m==null?m:wtt.call(m)}function Dnt(m,w,T){var P=m==null?0:m.length;return P?(T&&typeof T!="number"&&ni(m,w,T)?(w=0,T=P):(w=w==null?0:ge(w),T=T===t?P:ge(T)),Qi(m,w,T)):[]}function Pnt(m,w){return Pg(m,w)}function Rnt(m,w,T){return ob(m,w,te(T,2))}function Nnt(m,w){var T=m==null?0:m.length;if(T){var P=Pg(m,w);if(P<T&&_r(m[P],w))return P}return-1}function znt(m,w){return Pg(m,w,!0)}function Ent(m,w,T){return ob(m,w,te(T,2),!0)}function Ont(m,w){var T=m==null?0:m.length;if(T){var P=Pg(m,w,!0)-1;if(_r(m[P],w))return P}return-1}function Bnt(m){return m&&m.length?tN(m):[]}function Vnt(m,w){return m&&m.length?tN(m,te(w,2)):[]}function Fnt(m){var w=m==null?0:m.length;return w?Qi(m,1,w):[]}function Wnt(m,w,T){return m&&m.length?(w=T||w===t?1:ge(w),Qi(m,0,w<0?0:w)):[]}function Gnt(m,w,T){var P=m==null?0:m.length;return P?(w=T||w===t?1:ge(w),w=P-w,Qi(m,w<0?0:w,P)):[]}function jnt(m,w){return m&&m.length?Rg(m,te(w,3),!1,!0):[]}function Hnt(m,w){return m&&m.length?Rg(m,te(w,3)):[]}var Unt=_e(function(m){return wo(Rn(m,1,on,!0))}),Xnt=_e(function(m){var w=tr(m);return on(w)&&(w=t),wo(Rn(m,1,on,!0),te(w,2))}),Znt=_e(function(m){var w=tr(m);return w=typeof w=="function"?w:t,wo(Rn(m,1,on,!0),t,w)});function qnt(m){return m&&m.length?wo(m):[]}function Knt(m,w){return m&&m.length?wo(m,te(w,2)):[]}function Ynt(m,w){return w=typeof w=="function"?w:t,m&&m.length?wo(m,t,w):[]}function Mb(m){if(!(m&&m.length))return[];var w=0;return m=yo(m,function(T){if(on(T))return w=xn(T.length,w),!0}),Wx(w,function(T){return Ze(m,Bx(T))})}function FN(m,w){if(!(m&&m.length))return[];var T=Mb(m);return w==null?T:Ze(T,function(P){return wi(w,t,P)})}var Jnt=_e(function(m,w){return on(m)?Fh(m,w):[]}),$nt=_e(function(m){return lb(yo(m,on))}),Qnt=_e(function(m){var w=tr(m);return on(w)&&(w=t),lb(yo(m,on),te(w,2))}),tit=_e(function(m){var w=tr(m);return w=typeof w=="function"?w:t,lb(yo(m,on),t,w)}),eit=_e(Mb);function nit(m,w){return rN(m||[],w||[],Vh)}function iit(m,w){return rN(m||[],w||[],jh)}var rit=_e(function(m){var w=m.length,T=w>1?m[w-1]:t;return T=typeof T=="function"?(m.pop(),T):t,FN(m,T)});function WN(m){var w=V(m);return w.__chain__=!0,w}function ait(m,w){return w(m),m}function Gg(m,w){return w(m)}var oit=Aa(function(m){var w=m.length,T=w?m[0]:0,P=this.__wrapped__,B=function(W){return Kx(W,m)};return w>1||this.__actions__.length||!(P instanceof Te)||!Ca(T)?this.thru(B):(P=P.slice(T,+T+(w?1:0)),P.__actions__.push({func:Gg,args:[B],thisArg:t}),new Ji(P,this.__chain__).thru(function(W){return w&&!W.length&&W.push(t),W}))});function sit(){return WN(this)}function lit(){return new Ji(this.value(),this.__chain__)}function uit(){this.__values__===t&&(this.__values__=ez(this.value()));var m=this.__index__>=this.__values__.length,w=m?t:this.__values__[this.__index__++];return{done:m,value:w}}function cit(){return this}function hit(m){for(var w,T=this;T instanceof Ag;){var P=NN(T);P.__index__=0,P.__values__=t,w?B.__wrapped__=P:w=P;var B=P;T=T.__wrapped__}return B.__wrapped__=m,w}function pit(){var m=this.__wrapped__;if(m instanceof Te){var w=m;return this.__actions__.length&&(w=new Te(this)),w=w.reverse(),w.__actions__.push({func:Gg,args:[Sb],thisArg:t}),new Ji(w,this.__chain__)}return this.thru(Sb)}function dit(){return iN(this.__wrapped__,this.__actions__)}var fit=Ng(function(m,w,T){Fe.call(m,T)?++m[T]:Ia(m,T,1)});function git(m,w,T){var P=he(m)?v3:ret;return T&&ni(m,w,T)&&(w=t),P(m,te(w,3))}function vit(m,w){var T=he(m)?yo:F3;return T(m,te(w,3))}var yit=fN(zN),mit=fN(EN);function _it(m,w){return Rn(jg(m,w),1)}function xit(m,w){return Rn(jg(m,w),G)}function bit(m,w,T){return T=T===t?1:ge(T),Rn(jg(m,w),T)}function GN(m,w){var T=he(m)?Ki:bo;return T(m,te(w,3))}function jN(m,w){var T=he(m)?VQ:V3;return T(m,te(w,3))}var wit=Ng(function(m,w,T){Fe.call(m,T)?m[T].push(w):Ia(m,T,[w])});function Sit(m,w,T,P){m=hi(m)?m:_u(m),T=T&&!P?ge(T):0;var B=m.length;return T<0&&(T=xn(B+T,0)),qg(m)?T<=B&&m.indexOf(w,T)>-1:!!B&&su(m,w,T)>-1}var Mit=_e(function(m,w,T){var P=-1,B=typeof w=="function",W=hi(m)?ct(m.length):[];return bo(m,function(Y){W[++P]=B?wi(w,Y,T):Wh(Y,w,T)}),W}),Iit=Ng(function(m,w,T){Ia(m,T,w)});function jg(m,w){var T=he(m)?Ze:X3;return T(m,te(w,3))}function Tit(m,w,T,P){return m==null?[]:(he(w)||(w=w==null?[]:[w]),T=P?t:T,he(T)||(T=T==null?[]:[T]),Y3(m,w,T))}var Ait=Ng(function(m,w,T){m[T?0:1].push(w)},function(){return[[],[]]});function Cit(m,w,T){var P=he(m)?Ex:x3,B=arguments.length<3;return P(m,te(w,4),T,B,bo)}function kit(m,w,T){var P=he(m)?FQ:x3,B=arguments.length<3;return P(m,te(w,4),T,B,V3)}function Lit(m,w){var T=he(m)?yo:F3;return T(m,Xg(te(w,3)))}function Dit(m){var w=he(m)?z3:Set;return w(m)}function Pit(m,w,T){(T?ni(m,w,T):w===t)?w=1:w=ge(w);var P=he(m)?Qtt:Met;return P(m,w)}function Rit(m){var w=he(m)?tet:Tet;return w(m)}function Nit(m){if(m==null)return 0;if(hi(m))return qg(m)?uu(m):m.length;var w=Gn(m);return w==z||w==gt?m.size:eb(m).length}function zit(m,w,T){var P=he(m)?Ox:Aet;return T&&ni(m,w,T)&&(w=t),P(m,te(w,3))}var Eit=_e(function(m,w){if(m==null)return[];var T=w.length;return T>1&&ni(m,w[0],w[1])?w=[]:T>2&&ni(w[0],w[1],w[2])&&(w=[w[0]]),Y3(m,Rn(w,1),[])}),Hg=gtt||function(){return Pn.Date.now()};function Oit(m,w){if(typeof w!="function")throw new Yi(o);return m=ge(m),function(){if(--m<1)return w.apply(this,arguments)}}function HN(m,w,T){return w=T?t:w,w=m&&w==null?m.length:w,Ta(m,I,t,t,t,t,w)}function UN(m,w){var T;if(typeof w!="function")throw new Yi(o);return m=ge(m),function(){return--m>0&&(T=w.apply(this,arguments)),m<=1&&(w=t),T}}var Ib=_e(function(m,w,T){var P=_;if(T.length){var B=_o(T,yu(Ib));P|=S}return Ta(m,P,w,T,B)}),XN=_e(function(m,w,T){var P=_|v;if(T.length){var B=_o(T,yu(XN));P|=S}return Ta(w,P,m,T,B)});function ZN(m,w,T){w=T?t:w;var P=Ta(m,x,t,t,t,t,t,w);return P.placeholder=ZN.placeholder,P}function qN(m,w,T){w=T?t:w;var P=Ta(m,b,t,t,t,t,t,w);return P.placeholder=qN.placeholder,P}function KN(m,w,T){var P,B,W,Y,$,nt,yt=0,_t=!1,St=!1,Rt=!0;if(typeof m!="function")throw new Yi(o);w=er(w)||0,Ye(T)&&(_t=!!T.leading,St="maxWait"in T,W=St?xn(er(T.maxWait)||0,w):W,Rt="trailing"in T?!!T.trailing:Rt);function Ht(sn){var xr=P,Da=B;return P=B=t,yt=sn,Y=m.apply(Da,xr),Y}function ee(sn){return yt=sn,$=Xh(we,w),_t?Ht(sn):Y}function ye(sn){var xr=sn-nt,Da=sn-yt,fz=w-xr;return St?Wn(fz,W-Da):fz}function ne(sn){var xr=sn-nt,Da=sn-yt;return nt===t||xr>=w||xr<0||St&&Da>=W}function we(){var sn=Hg();if(ne(sn))return Le(sn);$=Xh(we,ye(sn))}function Le(sn){return $=t,Rt&&P?Ht(sn):(P=B=t,Y)}function Ti(){$!==t&&aN($),yt=0,P=nt=B=$=t}function ii(){return $===t?Y:Le(Hg())}function Ai(){var sn=Hg(),xr=ne(sn);if(P=arguments,B=this,nt=sn,xr){if($===t)return ee(nt);if(St)return aN($),$=Xh(we,w),Ht(nt)}return $===t&&($=Xh(we,w)),Y}return Ai.cancel=Ti,Ai.flush=ii,Ai}var Bit=_e(function(m,w){return B3(m,1,w)}),Vit=_e(function(m,w,T){return B3(m,er(w)||0,T)});function Fit(m){return Ta(m,C)}function Ug(m,w){if(typeof m!="function"||w!=null&&typeof w!="function")throw new Yi(o);var T=function(){var P=arguments,B=w?w.apply(this,P):P[0],W=T.cache;if(W.has(B))return W.get(B);var Y=m.apply(this,P);return T.cache=W.set(B,Y)||W,Y};return T.cache=new(Ug.Cache||Ma),T}Ug.Cache=Ma;function Xg(m){if(typeof m!="function")throw new Yi(o);return function(){var w=arguments;switch(w.length){case 0:return!m.call(this);case 1:return!m.call(this,w[0]);case 2:return!m.call(this,w[0],w[1]);case 3:return!m.call(this,w[0],w[1],w[2])}return!m.apply(this,w)}}function Wit(m){return UN(2,m)}var Git=Cet(function(m,w){w=w.length==1&&he(w[0])?Ze(w[0],Si(te())):Ze(Rn(w,1),Si(te()));var T=w.length;return _e(function(P){for(var B=-1,W=Wn(P.length,T);++B<W;)P[B]=w[B].call(this,P[B]);return wi(m,this,P)})}),Tb=_e(function(m,w){var T=_o(w,yu(Tb));return Ta(m,S,t,w,T)}),YN=_e(function(m,w){var T=_o(w,yu(YN));return Ta(m,M,t,w,T)}),jit=Aa(function(m,w){return Ta(m,A,t,t,t,w)});function Hit(m,w){if(typeof m!="function")throw new Yi(o);return w=w===t?w:ge(w),_e(m,w)}function Uit(m,w){if(typeof m!="function")throw new Yi(o);return w=w==null?0:xn(ge(w),0),_e(function(T){var P=T[w],B=Mo(T,0,w);return P&&mo(B,P),wi(m,this,B)})}function Xit(m,w,T){var P=!0,B=!0;if(typeof m!="function")throw new Yi(o);return Ye(T)&&(P="leading"in T?!!T.leading:P,B="trailing"in T?!!T.trailing:B),KN(m,w,{leading:P,maxWait:w,trailing:B})}function Zit(m){return HN(m,1)}function qit(m,w){return Tb(cb(w),m)}function Kit(){if(!arguments.length)return[];var m=arguments[0];return he(m)?m:[m]}function Yit(m){return $i(m,d)}function Jit(m,w){return w=typeof w=="function"?w:t,$i(m,d,w)}function $it(m){return $i(m,h|d)}function Qit(m,w){return w=typeof w=="function"?w:t,$i(m,h|d,w)}function trt(m,w){return w==null||O3(m,w,In(w))}function _r(m,w){return m===w||m!==m&&w!==w}var ert=Bg($x),nrt=Bg(function(m,w){return m>=w}),qs=j3(function(){return arguments}())?j3:function(m){return Qe(m)&&Fe.call(m,"callee")&&!k3.call(m,"callee")},he=ct.isArray,irt=c3?Si(c3):het;function hi(m){return m!=null&&Zg(m.length)&&!ka(m)}function on(m){return Qe(m)&&hi(m)}function rrt(m){return m===!0||m===!1||Qe(m)&&ei(m)==wt}var Io=ytt||Ob,art=h3?Si(h3):pet;function ort(m){return Qe(m)&&m.nodeType===1&&!Zh(m)}function srt(m){if(m==null)return!0;if(hi(m)&&(he(m)||typeof m=="string"||typeof m.splice=="function"||Io(m)||mu(m)||qs(m)))return!m.length;var w=Gn(m);if(w==z||w==gt)return!m.size;if(Uh(m))return!eb(m).length;for(var T in m)if(Fe.call(m,T))return!1;return!0}function lrt(m,w){return Gh(m,w)}function urt(m,w,T){T=typeof T=="function"?T:t;var P=T?T(m,w):t;return P===t?Gh(m,w,t,T):!!P}function Ab(m){if(!Qe(m))return!1;var w=ei(m);return w==bt||w==zt||typeof m.message=="string"&&typeof m.name=="string"&&!Zh(m)}function crt(m){return typeof m=="number"&&D3(m)}function ka(m){if(!Ye(m))return!1;var w=ei(m);return w==Pt||w==ae||w==Yt||w==tt}function JN(m){return typeof m=="number"&&m==ge(m)}function Zg(m){return typeof m=="number"&&m>-1&&m%1==0&&m<=q}function Ye(m){var w=typeof m;return m!=null&&(w=="object"||w=="function")}function Qe(m){return m!=null&&typeof m=="object"}var $N=p3?Si(p3):fet;function hrt(m,w){return m===w||tb(m,w,yb(w))}function prt(m,w,T){return T=typeof T=="function"?T:t,tb(m,w,yb(w),T)}function drt(m){return QN(m)&&m!=+m}function frt(m){if(Jet(m))throw new ce(a);return H3(m)}function grt(m){return m===null}function vrt(m){return m==null}function QN(m){return typeof m=="number"||Qe(m)&&ei(m)==st}function Zh(m){if(!Qe(m)||ei(m)!=Z)return!1;var w=xg(m);if(w===null)return!0;var T=Fe.call(w,"constructor")&&w.constructor;return typeof T=="function"&&T instanceof T&&vg.call(T)==htt}var Cb=d3?Si(d3):get;function yrt(m){return JN(m)&&m>=-9007199254740991&&m<=q}var tz=f3?Si(f3):vet;function qg(m){return typeof m=="string"||!he(m)&&Qe(m)&&ei(m)==it}function Ii(m){return typeof m=="symbol"||Qe(m)&&ei(m)==It}var mu=g3?Si(g3):yet;function mrt(m){return m===t}function _rt(m){return Qe(m)&&Gn(m)==At}function xrt(m){return Qe(m)&&ei(m)==Xt}var brt=Bg(nb),wrt=Bg(function(m,w){return m<=w});function ez(m){if(!m)return[];if(hi(m))return qg(m)?yr(m):ci(m);if(Nh&&m[Nh])return QQ(m[Nh]());var w=Gn(m),T=w==z?jx:w==gt?dg:_u;return T(m)}function La(m){if(!m)return m===0?m:0;if(m=er(m),m===G||m===-1/0){var w=m<0?-1:1;return w*j}return m===m?m:0}function ge(m){var w=La(m),T=w%1;return w===w?T?w-T:w:0}function nz(m){return m?Hs(ge(m),0,H):0}function er(m){if(typeof m=="number")return m;if(Ii(m))return J;if(Ye(m)){var w=typeof m.valueOf=="function"?m.valueOf():m;m=Ye(w)?w+"":w}if(typeof m!="string")return m===0?m:+m;m=b3(m);var T=nQ.test(m);return T||rQ.test(m)?EQ(m.slice(2),T?2:8):eQ.test(m)?J:+m}function iz(m){return Kr(m,pi(m))}function Srt(m){return m?Hs(ge(m),-9007199254740991,q):m===0?m:0}function ze(m){return m==null?"":Mi(m)}var Mrt=gu(function(m,w){if(Uh(w)||hi(w)){Kr(w,In(w),m);return}for(var T in w)Fe.call(w,T)&&Vh(m,T,w[T])}),rz=gu(function(m,w){Kr(w,pi(w),m)}),Kg=gu(function(m,w,T,P){Kr(w,pi(w),m,P)}),Irt=gu(function(m,w,T,P){Kr(w,In(w),m,P)}),Trt=Aa(Kx);function Art(m,w){var T=fu(m);return w==null?T:E3(T,w)}var Crt=_e(function(m,w){m=Ge(m);var T=-1,P=w.length,B=P>2?w[2]:t;for(B&&ni(w[0],w[1],B)&&(P=1);++T<P;)for(var W=w[T],Y=pi(W),$=-1,nt=Y.length;++$<nt;){var yt=Y[$],_t=m[yt];(_t===t||_r(_t,hu[yt])&&!Fe.call(m,yt))&&(m[yt]=W[yt])}return m}),krt=_e(function(m){return m.push(t,bN),wi(az,t,m)});function Lrt(m,w){return y3(m,te(w,3),qr)}function Drt(m,w){return y3(m,te(w,3),Jx)}function Prt(m,w){return m==null?m:Yx(m,te(w,3),pi)}function Rrt(m,w){return m==null?m:W3(m,te(w,3),pi)}function Nrt(m,w){return m&&qr(m,te(w,3))}function zrt(m,w){return m&&Jx(m,te(w,3))}function Ert(m){return m==null?[]:Lg(m,In(m))}function Ort(m){return m==null?[]:Lg(m,pi(m))}function kb(m,w,T){var P=m==null?t:Us(m,w);return P===t?T:P}function Brt(m,w){return m!=null&&MN(m,w,oet)}function Lb(m,w){return m!=null&&MN(m,w,set)}var Vrt=vN(function(m,w,T){w!=null&&typeof w.toString!="function"&&(w=yg.call(w)),m[w]=T},Pb(di)),Frt=vN(function(m,w,T){w!=null&&typeof w.toString!="function"&&(w=yg.call(w)),Fe.call(m,w)?m[w].push(T):m[w]=[T]},te),Wrt=_e(Wh);function In(m){return hi(m)?N3(m):eb(m)}function pi(m){return hi(m)?N3(m,!0):met(m)}function Grt(m,w){var T={};return w=te(w,3),qr(m,function(P,B,W){Ia(T,w(P,B,W),P)}),T}function jrt(m,w){var T={};return w=te(w,3),qr(m,function(P,B,W){Ia(T,B,w(P,B,W))}),T}var Hrt=gu(function(m,w,T){Dg(m,w,T)}),az=gu(function(m,w,T,P){Dg(m,w,T,P)}),Urt=Aa(function(m,w){var T={};if(m==null)return T;var P=!1;w=Ze(w,function(W){return W=So(W,m),P||(P=W.length>1),W}),Kr(m,gb(m),T),P&&(T=$i(T,h|f|d,Vet));for(var B=w.length;B--;)sb(T,w[B]);return T});function Xrt(m,w){return oz(m,Xg(te(w)))}var Zrt=Aa(function(m,w){return m==null?{}:xet(m,w)});function oz(m,w){if(m==null)return{};var T=Ze(gb(m),function(P){return[P]});return w=te(w),J3(m,T,function(P,B){return w(P,B[0])})}function qrt(m,w,T){w=So(w,m);var P=-1,B=w.length;for(B||(B=1,m=t);++P<B;){var W=m==null?t:m[Yr(w[P])];W===t&&(P=B,W=T),m=ka(W)?W.call(m):W}return m}function Krt(m,w,T){return m==null?m:jh(m,w,T)}function Yrt(m,w,T,P){return P=typeof P=="function"?P:t,m==null?m:jh(m,w,T,P)}var sz=_N(In),lz=_N(pi);function Jrt(m,w,T){var P=he(m),B=P||Io(m)||mu(m);if(w=te(w,4),T==null){var W=m&&m.constructor;B?T=P?new W:[]:Ye(m)?T=ka(W)?fu(xg(m)):{}:T={}}return(B?Ki:qr)(m,function(Y,$,nt){return w(T,Y,$,nt)}),T}function $rt(m,w){return m==null?!0:sb(m,w)}function Qrt(m,w,T){return m==null?m:nN(m,w,cb(T))}function tat(m,w,T,P){return P=typeof P=="function"?P:t,m==null?m:nN(m,w,cb(T),P)}function _u(m){return m==null?[]:Gx(m,In(m))}function eat(m){return m==null?[]:Gx(m,pi(m))}function nat(m,w,T){return T===t&&(T=w,w=t),T!==t&&(T=er(T),T=T===T?T:0),w!==t&&(w=er(w),w=w===w?w:0),Hs(er(m),w,T)}function iat(m,w,T){return w=La(w),T===t?(T=w,w=0):T=La(T),m=er(m),uet(m,w,T)}function rat(m,w,T){if(T&&typeof T!="boolean"&&ni(m,w,T)&&(w=T=t),T===t&&(typeof w=="boolean"?(T=w,w=t):typeof m=="boolean"&&(T=m,m=t)),m===t&&w===t?(m=0,w=1):(m=La(m),w===t?(w=m,m=0):w=La(w)),m>w){var P=m;m=w,w=P}if(T||m%1||w%1){var B=P3();return Wn(m+B*(w-m+zQ("1e-"+((B+"").length-1))),w)}return rb(m,w)}var aat=vu(function(m,w,T){return w=w.toLowerCase(),m+(T?uz(w):w)});function uz(m){return Db(ze(m).toLowerCase())}function cz(m){return m=ze(m),m&&m.replace(oQ,qQ).replace(IQ,"")}function oat(m,w,T){m=ze(m),w=Mi(w);var P=m.length;T=T===t?P:Hs(ge(T),0,P);var B=T;return T-=w.length,T>=0&&m.slice(T,B)==w}function sat(m){return m=ze(m),m&&F$.test(m)?m.replace(vo,KQ):m}function lat(m){return m=ze(m),m&&X$.test(m)?m.replace(Tx,"\\$&"):m}var uat=vu(function(m,w,T){return m+(T?"-":"")+w.toLowerCase()}),cat=vu(function(m,w,T){return m+(T?" ":"")+w.toLowerCase()}),hat=dN("toLowerCase");function pat(m,w,T){m=ze(m),w=ge(w);var P=w?uu(m):0;if(!w||P>=w)return m;var B=(w-P)/2;return Og(Mg(B),T)+m+Og(Sg(B),T)}function dat(m,w,T){m=ze(m),w=ge(w);var P=w?uu(m):0;return w&&P<w?m+Og(w-P,T):m}function fat(m,w,T){m=ze(m),w=ge(w);var P=w?uu(m):0;return w&&P<w?Og(w-P,T)+m:m}function gat(m,w,T){return T||w==null?w=0:w&&(w=+w),btt(ze(m).replace(Ax,""),w||0)}function vat(m,w,T){return(T?ni(m,w,T):w===t)?w=1:w=ge(w),ab(ze(m),w)}function yat(){var m=arguments,w=ze(m[0]);return m.length<3?w:w.replace(m[1],m[2])}var mat=vu(function(m,w,T){return m+(T?"_":"")+w.toLowerCase()});function _at(m,w,T){return T&&typeof T!="number"&&ni(m,w,T)&&(w=T=t),T=T===t?H:T>>>0,T?(m=ze(m),m&&(typeof w=="string"||w!=null&&!Cb(w))&&(w=Mi(w),!w&&lu(m))?Mo(yr(m),0,T):m.split(w,T)):[]}var xat=vu(function(m,w,T){return m+(T?" ":"")+Db(w)});function bat(m,w,T){return m=ze(m),T=T==null?0:Hs(ge(T),0,m.length),w=Mi(w),m.slice(T,T+w.length)==w}function wat(m,w,T){var P=V.templateSettings;T&&ni(m,w,T)&&(w=t),m=ze(m),w=Kg({},w,P,xN);var B=Kg({},w.imports,P.imports,xN),W=In(B),Y=Gx(B,W),$,nt,yt=0,_t=w.interpolate||lg,St="__p += '",Rt=Hx((w.escape||lg).source+"|"+_t.source+"|"+(_t===GR?tQ:lg).source+"|"+(w.evaluate||lg).source+"|$","g"),Ht="//# sourceURL="+(Fe.call(w,"sourceURL")?(w.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++LQ+"]")+`
|
|
22
|
+
`;m.replace(Rt,function(ne,we,Le,Ti,ii,Ai){return Le||(Le=Ti),St+=m.slice(yt,Ai).replace(sQ,YQ),we&&($=!0,St+=`' +
|
|
23
|
+
__e(`+we+`) +
|
|
24
|
+
'`),ii&&(nt=!0,St+=`';
|
|
25
|
+
`+ii+`;
|
|
26
|
+
__p += '`),Le&&(St+=`' +
|
|
27
|
+
((__t = (`+Le+`)) == null ? '' : __t) +
|
|
28
|
+
'`),yt=Ai+ne.length,ne}),St+=`';
|
|
29
|
+
`;var ee=Fe.call(w,"variable")&&w.variable;if(!ee)St=`with (obj) {
|
|
30
|
+
`+St+`
|
|
31
|
+
}
|
|
32
|
+
`;else if($$.test(ee))throw new ce(s);St=(nt?St.replace(Vs,""):St).replace(be,"$1").replace(an,"$1;"),St="function("+(ee||"obj")+`) {
|
|
33
|
+
`+(ee?"":`obj || (obj = {});
|
|
34
|
+
`)+"var __t, __p = ''"+($?", __e = _.escape":"")+(nt?`, __j = Array.prototype.join;
|
|
35
|
+
function print() { __p += __j.call(arguments, '') }
|
|
36
|
+
`:`;
|
|
37
|
+
`)+St+`return __p
|
|
38
|
+
}`;var ye=pz(function(){return Re(W,Ht+"return "+St).apply(t,Y)});if(ye.source=St,Ab(ye))throw ye;return ye}function Sat(m){return ze(m).toLowerCase()}function Mat(m){return ze(m).toUpperCase()}function Iat(m,w,T){if(m=ze(m),m&&(T||w===t))return b3(m);if(!m||!(w=Mi(w)))return m;var P=yr(m),B=yr(w),W=w3(P,B),Y=S3(P,B)+1;return Mo(P,W,Y).join("")}function Tat(m,w,T){if(m=ze(m),m&&(T||w===t))return m.slice(0,I3(m)+1);if(!m||!(w=Mi(w)))return m;var P=yr(m),B=S3(P,yr(w))+1;return Mo(P,0,B).join("")}function Aat(m,w,T){if(m=ze(m),m&&(T||w===t))return m.replace(Ax,"");if(!m||!(w=Mi(w)))return m;var P=yr(m),B=w3(P,yr(w));return Mo(P,B).join("")}function Cat(m,w){var T=L,P=R;if(Ye(w)){var B="separator"in w?w.separator:B;T="length"in w?ge(w.length):T,P="omission"in w?Mi(w.omission):P}m=ze(m);var W=m.length;if(lu(m)){var Y=yr(m);W=Y.length}if(T>=W)return m;var $=T-uu(P);if($<1)return P;var nt=Y?Mo(Y,0,$).join(""):m.slice(0,$);if(B===t)return nt+P;if(Y&&($+=nt.length-$),Cb(B)){if(m.slice($).search(B)){var yt,_t=nt;for(B.global||(B=Hx(B.source,ze(jR.exec(B))+"g")),B.lastIndex=0;yt=B.exec(_t);)var St=yt.index;nt=nt.slice(0,St===t?$:St)}}else if(m.indexOf(Mi(B),$)!=$){var Rt=nt.lastIndexOf(B);Rt>-1&&(nt=nt.slice(0,Rt))}return nt+P}function kat(m){return m=ze(m),m&&au.test(m)?m.replace(Ph,itt):m}var Lat=vu(function(m,w,T){return m+(T?" ":"")+w.toUpperCase()}),Db=dN("toUpperCase");function hz(m,w,T){return m=ze(m),w=T?t:w,w===t?$Q(m)?ott(m):jQ(m):m.match(w)||[]}var pz=_e(function(m,w){try{return wi(m,t,w)}catch(T){return Ab(T)?T:new ce(T)}}),Dat=Aa(function(m,w){return Ki(w,function(T){T=Yr(T),Ia(m,T,Ib(m[T],m))}),m});function Pat(m){var w=m==null?0:m.length,T=te();return m=w?Ze(m,function(P){if(typeof P[1]!="function")throw new Yi(o);return[T(P[0]),P[1]]}):[],_e(function(P){for(var B=-1;++B<w;){var W=m[B];if(wi(W[0],this,P))return wi(W[1],this,P)}})}function Rat(m){return iet($i(m,h))}function Pb(m){return function(){return m}}function Nat(m,w){return m==null||m!==m?w:m}var zat=gN(),Eat=gN(!0);function di(m){return m}function Rb(m){return U3(typeof m=="function"?m:$i(m,h))}function Oat(m){return Z3($i(m,h))}function Bat(m,w){return q3(m,$i(w,h))}var Vat=_e(function(m,w){return function(T){return Wh(T,m,w)}}),Fat=_e(function(m,w){return function(T){return Wh(m,T,w)}});function Nb(m,w,T){var P=In(w),B=Lg(w,P);T==null&&!(Ye(w)&&(B.length||!P.length))&&(T=w,w=m,m=this,B=Lg(w,In(w)));var W=!(Ye(T)&&"chain"in T)||!!T.chain,Y=ka(m);return Ki(B,function($){var nt=w[$];m[$]=nt,Y&&(m.prototype[$]=function(){var yt=this.__chain__;if(W||yt){var _t=m(this.__wrapped__),St=_t.__actions__=ci(this.__actions__);return St.push({func:nt,args:arguments,thisArg:m}),_t.__chain__=yt,_t}return nt.apply(m,mo([this.value()],arguments))})}),m}function Wat(){return Pn._===this&&(Pn._=ptt),this}function zb(){}function Gat(m){return m=ge(m),_e(function(w){return K3(w,m)})}var jat=pb(Ze),Hat=pb(v3),Uat=pb(Ox);function dz(m){return _b(m)?Bx(Yr(m)):bet(m)}function Xat(m){return function(w){return m==null?t:Us(m,w)}}var Zat=yN(),qat=yN(!0);function Eb(){return[]}function Ob(){return!1}function Kat(){return{}}function Yat(){return""}function Jat(){return!0}function $at(m,w){if(m=ge(m),m<1||m>q)return[];var T=H,P=Wn(m,H);w=te(w),m-=H;for(var B=Wx(P,w);++T<m;)w(T);return B}function Qat(m){return he(m)?Ze(m,Yr):Ii(m)?[m]:ci(RN(ze(m)))}function tot(m){var w=++ctt;return ze(m)+w}var eot=Eg(function(m,w){return m+w},0),not=db("ceil"),iot=Eg(function(m,w){return m/w},1),rot=db("floor");function aot(m){return m&&m.length?kg(m,di,$x):t}function oot(m,w){return m&&m.length?kg(m,te(w,2),$x):t}function sot(m){return _3(m,di)}function lot(m,w){return _3(m,te(w,2))}function uot(m){return m&&m.length?kg(m,di,nb):t}function cot(m,w){return m&&m.length?kg(m,te(w,2),nb):t}var hot=Eg(function(m,w){return m*w},1),pot=db("round"),dot=Eg(function(m,w){return m-w},0);function fot(m){return m&&m.length?Fx(m,di):0}function got(m,w){return m&&m.length?Fx(m,te(w,2)):0}return V.after=Oit,V.ary=HN,V.assign=Mrt,V.assignIn=rz,V.assignInWith=Kg,V.assignWith=Irt,V.at=Trt,V.before=UN,V.bind=Ib,V.bindAll=Dat,V.bindKey=XN,V.castArray=Kit,V.chain=WN,V.chunk=rnt,V.compact=ant,V.concat=ont,V.cond=Pat,V.conforms=Rat,V.constant=Pb,V.countBy=fit,V.create=Art,V.curry=ZN,V.curryRight=qN,V.debounce=KN,V.defaults=Crt,V.defaultsDeep=krt,V.defer=Bit,V.delay=Vit,V.difference=snt,V.differenceBy=lnt,V.differenceWith=unt,V.drop=cnt,V.dropRight=hnt,V.dropRightWhile=pnt,V.dropWhile=dnt,V.fill=fnt,V.filter=vit,V.flatMap=_it,V.flatMapDeep=xit,V.flatMapDepth=bit,V.flatten=ON,V.flattenDeep=gnt,V.flattenDepth=vnt,V.flip=Fit,V.flow=zat,V.flowRight=Eat,V.fromPairs=ynt,V.functions=Ert,V.functionsIn=Ort,V.groupBy=wit,V.initial=_nt,V.intersection=xnt,V.intersectionBy=bnt,V.intersectionWith=wnt,V.invert=Vrt,V.invertBy=Frt,V.invokeMap=Mit,V.iteratee=Rb,V.keyBy=Iit,V.keys=In,V.keysIn=pi,V.map=jg,V.mapKeys=Grt,V.mapValues=jrt,V.matches=Oat,V.matchesProperty=Bat,V.memoize=Ug,V.merge=Hrt,V.mergeWith=az,V.method=Vat,V.methodOf=Fat,V.mixin=Nb,V.negate=Xg,V.nthArg=Gat,V.omit=Urt,V.omitBy=Xrt,V.once=Wit,V.orderBy=Tit,V.over=jat,V.overArgs=Git,V.overEvery=Hat,V.overSome=Uat,V.partial=Tb,V.partialRight=YN,V.partition=Ait,V.pick=Zrt,V.pickBy=oz,V.property=dz,V.propertyOf=Xat,V.pull=Tnt,V.pullAll=VN,V.pullAllBy=Ant,V.pullAllWith=Cnt,V.pullAt=knt,V.range=Zat,V.rangeRight=qat,V.rearg=jit,V.reject=Lit,V.remove=Lnt,V.rest=Hit,V.reverse=Sb,V.sampleSize=Pit,V.set=Krt,V.setWith=Yrt,V.shuffle=Rit,V.slice=Dnt,V.sortBy=Eit,V.sortedUniq=Bnt,V.sortedUniqBy=Vnt,V.split=_at,V.spread=Uit,V.tail=Fnt,V.take=Wnt,V.takeRight=Gnt,V.takeRightWhile=jnt,V.takeWhile=Hnt,V.tap=ait,V.throttle=Xit,V.thru=Gg,V.toArray=ez,V.toPairs=sz,V.toPairsIn=lz,V.toPath=Qat,V.toPlainObject=iz,V.transform=Jrt,V.unary=Zit,V.union=Unt,V.unionBy=Xnt,V.unionWith=Znt,V.uniq=qnt,V.uniqBy=Knt,V.uniqWith=Ynt,V.unset=$rt,V.unzip=Mb,V.unzipWith=FN,V.update=Qrt,V.updateWith=tat,V.values=_u,V.valuesIn=eat,V.without=Jnt,V.words=hz,V.wrap=qit,V.xor=$nt,V.xorBy=Qnt,V.xorWith=tit,V.zip=eit,V.zipObject=nit,V.zipObjectDeep=iit,V.zipWith=rit,V.entries=sz,V.entriesIn=lz,V.extend=rz,V.extendWith=Kg,Nb(V,V),V.add=eot,V.attempt=pz,V.camelCase=aat,V.capitalize=uz,V.ceil=not,V.clamp=nat,V.clone=Yit,V.cloneDeep=$it,V.cloneDeepWith=Qit,V.cloneWith=Jit,V.conformsTo=trt,V.deburr=cz,V.defaultTo=Nat,V.divide=iot,V.endsWith=oat,V.eq=_r,V.escape=sat,V.escapeRegExp=lat,V.every=git,V.find=yit,V.findIndex=zN,V.findKey=Lrt,V.findLast=mit,V.findLastIndex=EN,V.findLastKey=Drt,V.floor=rot,V.forEach=GN,V.forEachRight=jN,V.forIn=Prt,V.forInRight=Rrt,V.forOwn=Nrt,V.forOwnRight=zrt,V.get=kb,V.gt=ert,V.gte=nrt,V.has=Brt,V.hasIn=Lb,V.head=BN,V.identity=di,V.includes=Sit,V.indexOf=mnt,V.inRange=iat,V.invoke=Wrt,V.isArguments=qs,V.isArray=he,V.isArrayBuffer=irt,V.isArrayLike=hi,V.isArrayLikeObject=on,V.isBoolean=rrt,V.isBuffer=Io,V.isDate=art,V.isElement=ort,V.isEmpty=srt,V.isEqual=lrt,V.isEqualWith=urt,V.isError=Ab,V.isFinite=crt,V.isFunction=ka,V.isInteger=JN,V.isLength=Zg,V.isMap=$N,V.isMatch=hrt,V.isMatchWith=prt,V.isNaN=drt,V.isNative=frt,V.isNil=vrt,V.isNull=grt,V.isNumber=QN,V.isObject=Ye,V.isObjectLike=Qe,V.isPlainObject=Zh,V.isRegExp=Cb,V.isSafeInteger=yrt,V.isSet=tz,V.isString=qg,V.isSymbol=Ii,V.isTypedArray=mu,V.isUndefined=mrt,V.isWeakMap=_rt,V.isWeakSet=xrt,V.join=Snt,V.kebabCase=uat,V.last=tr,V.lastIndexOf=Mnt,V.lowerCase=cat,V.lowerFirst=hat,V.lt=brt,V.lte=wrt,V.max=aot,V.maxBy=oot,V.mean=sot,V.meanBy=lot,V.min=uot,V.minBy=cot,V.stubArray=Eb,V.stubFalse=Ob,V.stubObject=Kat,V.stubString=Yat,V.stubTrue=Jat,V.multiply=hot,V.nth=Int,V.noConflict=Wat,V.noop=zb,V.now=Hg,V.pad=pat,V.padEnd=dat,V.padStart=fat,V.parseInt=gat,V.random=rat,V.reduce=Cit,V.reduceRight=kit,V.repeat=vat,V.replace=yat,V.result=qrt,V.round=pot,V.runInContext=et,V.sample=Dit,V.size=Nit,V.snakeCase=mat,V.some=zit,V.sortedIndex=Pnt,V.sortedIndexBy=Rnt,V.sortedIndexOf=Nnt,V.sortedLastIndex=znt,V.sortedLastIndexBy=Ent,V.sortedLastIndexOf=Ont,V.startCase=xat,V.startsWith=bat,V.subtract=dot,V.sum=fot,V.sumBy=got,V.template=wat,V.times=$at,V.toFinite=La,V.toInteger=ge,V.toLength=nz,V.toLower=Sat,V.toNumber=er,V.toSafeInteger=Srt,V.toString=ze,V.toUpper=Mat,V.trim=Iat,V.trimEnd=Tat,V.trimStart=Aat,V.truncate=Cat,V.unescape=kat,V.uniqueId=tot,V.upperCase=Lat,V.upperFirst=Db,V.each=GN,V.eachRight=jN,V.first=BN,Nb(V,function(){var m={};return qr(V,function(w,T){Fe.call(V.prototype,T)||(m[T]=w)}),m}(),{chain:!1}),V.VERSION=i,Ki(["bind","bindKey","curry","curryRight","partial","partialRight"],function(m){V[m].placeholder=V}),Ki(["drop","take"],function(m,w){Te.prototype[m]=function(T){T=T===t?1:xn(ge(T),0);var P=this.__filtered__&&!w?new Te(this):this.clone();return P.__filtered__?P.__takeCount__=Wn(T,P.__takeCount__):P.__views__.push({size:Wn(T,H),type:m+(P.__dir__<0?"Right":"")}),P},Te.prototype[m+"Right"]=function(T){return this.reverse()[m](T).reverse()}}),Ki(["filter","map","takeWhile"],function(m,w){var T=w+1,P=T==k||T==F;Te.prototype[m]=function(B){var W=this.clone();return W.__iteratees__.push({iteratee:te(B,3),type:T}),W.__filtered__=W.__filtered__||P,W}}),Ki(["head","last"],function(m,w){var T="take"+(w?"Right":"");Te.prototype[m]=function(){return this[T](1).value()[0]}}),Ki(["initial","tail"],function(m,w){var T="drop"+(w?"":"Right");Te.prototype[m]=function(){return this.__filtered__?new Te(this):this[T](1)}}),Te.prototype.compact=function(){return this.filter(di)},Te.prototype.find=function(m){return this.filter(m).head()},Te.prototype.findLast=function(m){return this.reverse().find(m)},Te.prototype.invokeMap=_e(function(m,w){return typeof m=="function"?new Te(this):this.map(function(T){return Wh(T,m,w)})}),Te.prototype.reject=function(m){return this.filter(Xg(te(m)))},Te.prototype.slice=function(m,w){m=ge(m);var T=this;return T.__filtered__&&(m>0||w<0)?new Te(T):(m<0?T=T.takeRight(-m):m&&(T=T.drop(m)),w!==t&&(w=ge(w),T=w<0?T.dropRight(-w):T.take(w-m)),T)},Te.prototype.takeRightWhile=function(m){return this.reverse().takeWhile(m).reverse()},Te.prototype.toArray=function(){return this.take(H)},qr(Te.prototype,function(m,w){var T=/^(?:filter|find|map|reject)|While$/.test(w),P=/^(?:head|last)$/.test(w),B=V[P?"take"+(w=="last"?"Right":""):w],W=P||/^find/.test(w);B&&(V.prototype[w]=function(){var Y=this.__wrapped__,$=P?[1]:arguments,nt=Y instanceof Te,yt=$[0],_t=nt||he(Y),St=function(we){var Le=B.apply(V,mo([we],$));return P&&Rt?Le[0]:Le};_t&&T&&typeof yt=="function"&&yt.length!=1&&(nt=_t=!1);var Rt=this.__chain__,Ht=!!this.__actions__.length,ee=W&&!Rt,ye=nt&&!Ht;if(!W&&_t){Y=ye?Y:new Te(this);var ne=m.apply(Y,$);return ne.__actions__.push({func:Gg,args:[St],thisArg:t}),new Ji(ne,Rt)}return ee&&ye?m.apply(this,$):(ne=this.thru(St),ee?P?ne.value()[0]:ne.value():ne)})}),Ki(["pop","push","shift","sort","splice","unshift"],function(m){var w=fg[m],T=/^(?:push|sort|unshift)$/.test(m)?"tap":"thru",P=/^(?:pop|shift)$/.test(m);V.prototype[m]=function(){var B=arguments;if(P&&!this.__chain__){var W=this.value();return w.apply(he(W)?W:[],B)}return this[T](function(Y){return w.apply(he(Y)?Y:[],B)})}}),qr(Te.prototype,function(m,w){var T=V[w];if(T){var P=T.name+"";Fe.call(du,P)||(du[P]=[]),du[P].push({name:w,func:T})}}),du[zg(t,v).name]=[{name:"wrapper",func:t}],Te.prototype.clone=Ctt,Te.prototype.reverse=ktt,Te.prototype.value=Ltt,V.prototype.at=oit,V.prototype.chain=sit,V.prototype.commit=lit,V.prototype.next=uit,V.prototype.plant=hit,V.prototype.reverse=pit,V.prototype.toJSON=V.prototype.valueOf=V.prototype.value=dit,V.prototype.first=V.prototype.head,Nh&&(V.prototype[Nh]=cit),V},cu=stt();Fs?((Fs.exports=cu)._=cu,Rx._=cu):Pn._=cu}).call(Jr)}(Kh,Kh.exports);for(var X=Kh.exports,Tn=[],Yg=0;Yg<256;++Yg)Tn.push((Yg+256).toString(16).slice(1));function xz(n,e=0){return(Tn[n[e+0]]+Tn[n[e+1]]+Tn[n[e+2]]+Tn[n[e+3]]+"-"+Tn[n[e+4]]+Tn[n[e+5]]+"-"+Tn[n[e+6]]+Tn[n[e+7]]+"-"+Tn[n[e+8]]+Tn[n[e+9]]+"-"+Tn[n[e+10]]+Tn[n[e+11]]+Tn[n[e+12]]+Tn[n[e+13]]+Tn[n[e+14]]+Tn[n[e+15]]).toLowerCase()}var Yh,bz=new Uint8Array(16);function wz(){if(!Yh&&(Yh=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Yh))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Yh(bz)}var Sz=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);const Fb={randomUUID:Sz};function Mz(n,e,t){if(Fb.randomUUID&&!n)return Fb.randomUUID();n=n||{};var i=n.random||(n.rng||wz)();return i[6]=i[6]&15|64,i[8]=i[8]&63|128,xz(i)}/*! *****************************************************************************
|
|
39
|
+
Copyright (c) Microsoft Corporation.
|
|
40
|
+
|
|
41
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
42
|
+
purpose with or without fee is hereby granted.
|
|
43
|
+
|
|
44
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
45
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
46
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
47
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
48
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
49
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
50
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
51
|
+
***************************************************************************** */var Jg=function(n,e){return Jg=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])},Jg(n,e)};function Q(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");Jg(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}var Iz=function(){function n(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return n}(),Tz=function(){function n(){this.browser=new Iz,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 n}(),oe=new Tz;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(oe.wxa=!0,oe.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?oe.worker=!0:!oe.hasGlobalWindow||"Deno"in window?(oe.node=!0,oe.svgSupported=!0):Az(navigator.userAgent,oe);function Az(n,e){var t=e.browser,i=n.match(/Firefox\/([\d.]+)/),r=n.match(/MSIE\s([\d.]+)/)||n.match(/Trident\/.+?rv:(([\d.]+))/),a=n.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(n);i&&(t.firefox=!0,t.version=i[1]),r&&(t.ie=!0,t.version=r[1]),a&&(t.edge=!0,t.version=a[1],t.newEdge=+a[1].split(".")[0]>18),o&&(t.weChat=!0),e.svgSupported=typeof SVGRect<"u",e.touchEventsSupported="ontouchstart"in window&&!t.ie&&!t.edge,e.pointerEventsSupported="onpointerdown"in window&&(t.edge||t.ie&&+t.version>=11),e.domSupported=typeof document<"u";var s=document.documentElement.style;e.transform3dSupported=(t.ie&&"transition"in s||t.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),e.transformSupported=e.transform3dSupported||t.ie&&+t.version>=9}var $g=12,Wb="sans-serif",Pa=$g+"px "+Wb,Cz=20,kz=100,Lz="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function Dz(n){var e={};if(typeof JSON>"u")return e;for(var t=0;t<n.length;t++){var i=String.fromCharCode(t+32),r=(n.charCodeAt(t)-Cz)/kz;e[i]=r}return e}var Pz=Dz(Lz),Ra={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:function(){var n,e;return function(t,i){if(!n){var r=Ra.createCanvas();n=r&&r.getContext("2d")}if(n)return e!==i&&(e=n.font=i||Pa),n.measureText(t);t=t||"",i=i||Pa;var a=/((?:\d+)?\.?\d*)px/.exec(i),o=a&&+a[1]||$g,s=0;if(i.indexOf("mono")>=0)s=o*t.length;else for(var l=0;l<t.length;l++){var u=Pz[t[l]];s+=u==null?o:u*o}return{width:s}}}(),loadImage:function(n,e,t){var i=new Image;return i.onload=e,i.onerror=t,i.src=n,i}},Gb=br(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(n,e){return n["[object "+e+"]"]=!0,n},{}),jb=br(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(n,e){return n["[object "+e+"Array]"]=!0,n},{}),Ks=Object.prototype.toString,Jh=Array.prototype,Rz=Jh.forEach,Nz=Jh.filter,Qg=Jh.slice,zz=Jh.map,Hb=(function(){}).constructor,$h=Hb?Hb.prototype:null,tv="__proto__",Ez=2311;function Ub(){return Ez++}function ev(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];typeof console<"u"&&console.error.apply(console,n)}function Wt(n){if(n==null||typeof n!="object")return n;var e=n,t=Ks.call(n);if(t==="[object Array]"){if(!Iu(n)){e=[];for(var i=0,r=n.length;i<r;i++)e[i]=Wt(n[i])}}else if(jb[t]){if(!Iu(n)){var a=n.constructor;if(a.from)e=a.from(n);else{e=new a(n.length);for(var i=0,r=n.length;i<r;i++)e[i]=n[i]}}}else if(!Gb[t]&&!Iu(n)&&!Ys(n)){e={};for(var o in n)n.hasOwnProperty(o)&&o!==tv&&(e[o]=Wt(n[o]))}return e}function Kt(n,e,t){if(!Vt(e)||!Vt(n))return t?Wt(e):n;for(var i in e)if(e.hasOwnProperty(i)&&i!==tv){var r=n[i],a=e[i];Vt(a)&&Vt(r)&&!ht(a)&&!ht(r)&&!Ys(a)&&!Ys(r)&&!Xb(a)&&!Xb(r)&&!Iu(a)&&!Iu(r)?Kt(r,a,t):(t||!(i in n))&&(n[i]=Wt(e[i]))}return n}function nv(n,e){for(var t=n[0],i=1,r=n.length;i<r;i++)t=Kt(t,n[i],e);return t}function lt(n,e){if(Object.assign)Object.assign(n,e);else for(var t in e)e.hasOwnProperty(t)&&t!==tv&&(n[t]=e[t]);return n}function Bt(n,e,t){for(var i=se(e),r=0,a=i.length;r<a;r++){var o=i[r];(t?e[o]!=null:n[o]==null)&&(n[o]=e[o])}return n}function Qt(n,e){if(n){if(n.indexOf)return n.indexOf(e);for(var t=0,i=n.length;t<i;t++)if(n[t]===e)return t}return-1}function Oz(n,e){var t=n.prototype;function i(){}i.prototype=e.prototype,n.prototype=new i;for(var r in t)t.hasOwnProperty(r)&&(n.prototype[r]=t[r]);n.prototype.constructor=n,n.superClass=e}function tn(n,e,t){if(n="prototype"in n?n.prototype:n,e="prototype"in e?e.prototype:e,Object.getOwnPropertyNames)for(var i=Object.getOwnPropertyNames(e),r=0;r<i.length;r++){var a=i[r];a!=="constructor"&&(t?e[a]!=null:n[a]==null)&&(n[a]=e[a])}else Bt(n,e,t)}function Nn(n){return!n||typeof n=="string"?!1:typeof n.length=="number"}function E(n,e,t){if(n&&e)if(n.forEach&&n.forEach===Rz)n.forEach(e,t);else if(n.length===+n.length)for(var i=0,r=n.length;i<r;i++)e.call(t,n[i],i,n);else for(var a in n)n.hasOwnProperty(a)&&e.call(t,n[a],a,n)}function pt(n,e,t){if(!n)return[];if(!e)return rv(n);if(n.map&&n.map===zz)return n.map(e,t);for(var i=[],r=0,a=n.length;r<a;r++)i.push(e.call(t,n[r],r,n));return i}function br(n,e,t,i){if(n&&e){for(var r=0,a=n.length;r<a;r++)t=e.call(i,t,n[r],r,n);return t}}function Se(n,e,t){if(!n)return[];if(!e)return rv(n);if(n.filter&&n.filter===Nz)return n.filter(e,t);for(var i=[],r=0,a=n.length;r<a;r++)e.call(t,n[r],r,n)&&i.push(n[r]);return i}function Bz(n,e,t){if(n&&e){for(var i=0,r=n.length;i<r;i++)if(e.call(t,n[i],i,n))return n[i]}}function se(n){if(!n)return[];if(Object.keys)return Object.keys(n);var e=[];for(var t in n)n.hasOwnProperty(t)&&e.push(t);return e}function Vz(n,e){for(var t=[],i=2;i<arguments.length;i++)t[i-2]=arguments[i];return function(){return n.apply(e,t.concat(Qg.call(arguments)))}}var Ct=$h&&Ot($h.bind)?$h.call.bind($h.bind):Vz;function Zt(n){for(var e=[],t=1;t<arguments.length;t++)e[t-1]=arguments[t];return function(){return n.apply(this,e.concat(Qg.call(arguments)))}}function ht(n){return Array.isArray?Array.isArray(n):Ks.call(n)==="[object Array]"}function Ot(n){return typeof n=="function"}function Tt(n){return typeof n=="string"}function iv(n){return Ks.call(n)==="[object String]"}function ve(n){return typeof n=="number"}function Vt(n){var e=typeof n;return e==="function"||!!n&&e==="object"}function Xb(n){return!!Gb[Ks.call(n)]}function ri(n){return!!jb[Ks.call(n)]}function Ys(n){return typeof n=="object"&&typeof n.nodeType=="number"&&typeof n.ownerDocument=="object"}function Qh(n){return n.colorStops!=null}function Fz(n){return n.image!=null}function Wz(n){return Ks.call(n)==="[object RegExp]"}function Mu(n){return n!==n}function bn(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];for(var t=0,i=n.length;t<i;t++)if(n[t]!=null)return n[t]}function Ut(n,e){return n??e}function wr(n,e,t){return n??e??t}function rv(n){for(var e=[],t=1;t<arguments.length;t++)e[t-1]=arguments[t];return Qg.apply(n,e)}function av(n){if(typeof n=="number")return[n,n,n,n];var e=n.length;return e===2?[n[0],n[1],n[0],n[1]]:e===3?[n[0],n[1],n[2],n[1]]:n}function jn(n,e){if(!n)throw new Error(e)}function nr(n){return n==null?null:typeof n.trim=="function"?n.trim():n.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var Zb="__ec_primitive__";function tp(n){n[Zb]=!0}function Iu(n){return n[Zb]}var Gz=function(){function n(){this.data={}}return n.prototype.delete=function(e){var t=this.has(e);return t&&delete this.data[e],t},n.prototype.has=function(e){return this.data.hasOwnProperty(e)},n.prototype.get=function(e){return this.data[e]},n.prototype.set=function(e,t){return this.data[e]=t,this},n.prototype.keys=function(){return se(this.data)},n.prototype.forEach=function(e){var t=this.data;for(var i in t)t.hasOwnProperty(i)&&e(t[i],i)},n}(),qb=typeof Map=="function";function jz(){return qb?new Map:new Gz}var Hz=function(){function n(e){var t=ht(e);this.data=jz();var i=this;e instanceof n?e.each(r):e&&E(e,r);function r(a,o){t?i.set(a,o):i.set(o,a)}}return n.prototype.hasKey=function(e){return this.data.has(e)},n.prototype.get=function(e){return this.data.get(e)},n.prototype.set=function(e,t){return this.data.set(e,t),t},n.prototype.each=function(e,t){this.data.forEach(function(i,r){e.call(t,i,r)})},n.prototype.keys=function(){var e=this.data.keys();return qb?Array.from(e):e},n.prototype.removeKey=function(e){this.data.delete(e)},n}();function Dt(n){return new Hz(n)}function Tu(n,e){for(var t=new n.constructor(n.length+e.length),i=0;i<n.length;i++)t[i]=n[i];for(var r=n.length,i=0;i<e.length;i++)t[i+r]=e[i];return t}function ep(n,e){var t;if(Object.create)t=Object.create(n);else{var i=function(){};i.prototype=n,t=new i}return e&<(t,e),t}function Kb(n){var e=n.style;e.webkitUserSelect="none",e.userSelect="none",e.webkitTapHighlightColor="rgba(0,0,0,0)",e["-webkit-touch-callout"]="none"}function Lt(n,e){return n.hasOwnProperty(e)}function Je(){}var np=180/Math.PI;function To(n,e){return n==null&&(n=0),e==null&&(e=0),[n,e]}function Hn(n,e){return n[0]=e[0],n[1]=e[1],n}function $r(n){return[n[0],n[1]]}function Uz(n,e,t){return n[0]=e,n[1]=t,n}function Yb(n,e,t){return n[0]=e[0]+t[0],n[1]=e[1]+t[1],n}function ov(n,e,t,i){return n[0]=e[0]+t[0]*i,n[1]=e[1]+t[1]*i,n}function Ao(n,e,t){return n[0]=e[0]-t[0],n[1]=e[1]-t[1],n}function sv(n){return Math.sqrt(Xz(n))}function Xz(n){return n[0]*n[0]+n[1]*n[1]}function ip(n,e,t){return n[0]=e[0]*t,n[1]=e[1]*t,n}function Js(n,e){var t=sv(e);return t===0?(n[0]=0,n[1]=0):(n[0]=e[0]/t,n[1]=e[1]/t),n}function lv(n,e){return Math.sqrt((n[0]-e[0])*(n[0]-e[0])+(n[1]-e[1])*(n[1]-e[1]))}var Na=lv;function Zz(n,e){return(n[0]-e[0])*(n[0]-e[0])+(n[1]-e[1])*(n[1]-e[1])}var Co=Zz;function rp(n,e,t,i){return n[0]=e[0]+i*(t[0]-e[0]),n[1]=e[1]+i*(t[1]-e[1]),n}function An(n,e,t){var i=e[0],r=e[1];return n[0]=t[0]*i+t[2]*r+t[4],n[1]=t[1]*i+t[3]*r+t[5],n}function za(n,e,t){return n[0]=Math.min(e[0],t[0]),n[1]=Math.min(e[1],t[1]),n}function Ea(n,e,t){return n[0]=Math.max(e[0],t[0]),n[1]=Math.max(e[1],t[1]),n}var $s=function(){function n(e,t){this.target=e,this.topTarget=t&&t.topTarget}return n}(),qz=function(){function n(e){this.handler=e,e.on("mousedown",this._dragStart,this),e.on("mousemove",this._drag,this),e.on("mouseup",this._dragEnd,this)}return n.prototype._dragStart=function(e){for(var t=e.target;t&&!t.draggable;)t=t.parent||t.__hostTarget;t&&(this._draggingTarget=t,t.dragging=!0,this._x=e.offsetX,this._y=e.offsetY,this.handler.dispatchToElement(new $s(t,e),"dragstart",e.event))},n.prototype._drag=function(e){var t=this._draggingTarget;if(t){var i=e.offsetX,r=e.offsetY,a=i-this._x,o=r-this._y;this._x=i,this._y=r,t.drift(a,o,e),this.handler.dispatchToElement(new $s(t,e),"drag",e.event);var s=this.handler.findHover(i,r,t).target,l=this._dropTarget;this._dropTarget=s,t!==s&&(l&&s!==l&&this.handler.dispatchToElement(new $s(l,e),"dragleave",e.event),s&&s!==l&&this.handler.dispatchToElement(new $s(s,e),"dragenter",e.event))}},n.prototype._dragEnd=function(e){var t=this._draggingTarget;t&&(t.dragging=!1),this.handler.dispatchToElement(new $s(t,e),"dragend",e.event),this._dropTarget&&this.handler.dispatchToElement(new $s(this._dropTarget,e),"drop",e.event),this._draggingTarget=null,this._dropTarget=null},n}(),Ci=function(){function n(e){e&&(this._$eventProcessor=e)}return n.prototype.on=function(e,t,i,r){this._$handlers||(this._$handlers={});var a=this._$handlers;if(typeof t=="function"&&(r=i,i=t,t=null),!i||!e)return this;var o=this._$eventProcessor;t!=null&&o&&o.normalizeQuery&&(t=o.normalizeQuery(t)),a[e]||(a[e]=[]);for(var s=0;s<a[e].length;s++)if(a[e][s].h===i)return this;var l={h:i,query:t,ctx:r||this,callAtLast:i.zrEventfulCallAtLast},u=a[e].length-1,c=a[e][u];return c&&c.callAtLast?a[e].splice(u,0,l):a[e].push(l),this},n.prototype.isSilent=function(e){var t=this._$handlers;return!t||!t[e]||!t[e].length},n.prototype.off=function(e,t){var i=this._$handlers;if(!i)return this;if(!e)return this._$handlers={},this;if(t){if(i[e]){for(var r=[],a=0,o=i[e].length;a<o;a++)i[e][a].h!==t&&r.push(i[e][a]);i[e]=r}i[e]&&i[e].length===0&&delete i[e]}else delete i[e];return this},n.prototype.trigger=function(e){for(var t=[],i=1;i<arguments.length;i++)t[i-1]=arguments[i];if(!this._$handlers)return this;var r=this._$handlers[e],a=this._$eventProcessor;if(r)for(var o=t.length,s=r.length,l=0;l<s;l++){var u=r[l];if(!(a&&a.filter&&u.query!=null&&!a.filter(e,u.query)))switch(o){case 0:u.h.call(u.ctx);break;case 1:u.h.call(u.ctx,t[0]);break;case 2:u.h.call(u.ctx,t[0],t[1]);break;default:u.h.apply(u.ctx,t);break}}return a&&a.afterTrigger&&a.afterTrigger(e),this},n.prototype.triggerWithContext=function(e){for(var t=[],i=1;i<arguments.length;i++)t[i-1]=arguments[i];if(!this._$handlers)return this;var r=this._$handlers[e],a=this._$eventProcessor;if(r)for(var o=t.length,s=t[o-1],l=r.length,u=0;u<l;u++){var c=r[u];if(!(a&&a.filter&&c.query!=null&&!a.filter(e,c.query)))switch(o){case 0:c.h.call(s);break;case 1:c.h.call(s,t[0]);break;case 2:c.h.call(s,t[0],t[1]);break;default:c.h.apply(s,t.slice(1,o-1));break}}return a&&a.afterTrigger&&a.afterTrigger(e),this},n}(),Kz=Math.log(2);function uv(n,e,t,i,r,a){var o=i+"-"+r,s=n.length;if(a.hasOwnProperty(o))return a[o];if(e===1){var l=Math.round(Math.log((1<<s)-1&~r)/Kz);return n[t][l]}for(var u=i|1<<t,c=t+1;i&1<<c;)c++;for(var h=0,f=0,d=0;f<s;f++){var g=1<<f;g&r||(h+=(d%2?-1:1)*n[t][f]*uv(n,e-1,c,u,r|g,a),d++)}return a[o]=h,h}function Jb(n,e){var t=[[n[0],n[1],1,0,0,0,-e[0]*n[0],-e[0]*n[1]],[0,0,0,n[0],n[1],1,-e[1]*n[0],-e[1]*n[1]],[n[2],n[3],1,0,0,0,-e[2]*n[2],-e[2]*n[3]],[0,0,0,n[2],n[3],1,-e[3]*n[2],-e[3]*n[3]],[n[4],n[5],1,0,0,0,-e[4]*n[4],-e[4]*n[5]],[0,0,0,n[4],n[5],1,-e[5]*n[4],-e[5]*n[5]],[n[6],n[7],1,0,0,0,-e[6]*n[6],-e[6]*n[7]],[0,0,0,n[6],n[7],1,-e[7]*n[6],-e[7]*n[7]]],i={},r=uv(t,8,0,0,0,i);if(r!==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)*uv(t,7,o===0?1:0,1<<o,1<<s,i)/r*e[o];return function(l,u,c){var h=u*a[6]+c*a[7]+1;l[0]=(u*a[0]+c*a[1]+a[2])/h,l[1]=(u*a[3]+c*a[4]+a[5])/h}}}var $b="___zrEVENTSAVED",cv=[];function Yz(n,e,t,i,r){return hv(cv,e,i,r,!0)&&hv(n,t,cv[0],cv[1])}function hv(n,e,t,i,r){if(e.getBoundingClientRect&&oe.domSupported&&!Qb(e)){var a=e[$b]||(e[$b]={}),o=Jz(e,a),s=$z(o,a,r);if(s)return s(n,t,i),!0}return!1}function Jz(n,e){var t=e.markers;if(t)return t;t=e.markers=[];for(var i=["left","right"],r=["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",i[l]+":0",r[u]+":0",i[1-l]+":auto",r[1-u]+":auto",""].join("!important;"),n.appendChild(o),t.push(o)}return t}function $z(n,e,t){for(var i=t?"invTrans":"trans",r=e[i],a=e.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var c=n[u].getBoundingClientRect(),h=2*u,f=c.left,d=c.top;o.push(f,d),l=l&&a&&f===a[h]&&d===a[h+1],s.push(n[u].offsetLeft,n[u].offsetTop)}return l&&r?r:(e.srcCoords=o,e[i]=t?Jb(s,o):Jb(o,s))}function Qb(n){return n.nodeName.toUpperCase()==="CANVAS"}var Qz=/([&<>"'])/g,tE={"&":"&","<":"<",">":">",'"':""","'":"'"};function Un(n){return n==null?"":(n+"").replace(Qz,function(e,t){return tE[t]})}var eE=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,pv=[],nE=oe.browser.firefox&&+oe.browser.version.split(".")[0]<39;function dv(n,e,t,i){return t=t||{},i?tw(n,e,t):nE&&e.layerX!=null&&e.layerX!==e.offsetX?(t.zrX=e.layerX,t.zrY=e.layerY):e.offsetX!=null?(t.zrX=e.offsetX,t.zrY=e.offsetY):tw(n,e,t),t}function tw(n,e,t){if(oe.domSupported&&n.getBoundingClientRect){var i=e.clientX,r=e.clientY;if(Qb(n)){var a=n.getBoundingClientRect();t.zrX=i-a.left,t.zrY=r-a.top;return}else if(hv(pv,n,i,r)){t.zrX=pv[0],t.zrY=pv[1];return}}t.zrX=t.zrY=0}function fv(n){return n||window.event}function ki(n,e,t){if(e=fv(e),e.zrX!=null)return e;var i=e.type,r=i&&i.indexOf("touch")>=0;if(r){var a=i!=="touchend"?e.targetTouches[0]:e.changedTouches[0];a&&dv(n,a,e,t)}else{dv(n,e,e,t);var o=iE(e);e.zrDelta=o?o/120:-(e.detail||0)/3}var s=e.button;return e.which==null&&s!==void 0&&eE.test(e.type)&&(e.which=s&1?1:s&2?3:s&4?2:0),e}function iE(n){var e=n.wheelDelta;if(e)return e;var t=n.deltaX,i=n.deltaY;if(t==null||i==null)return e;var r=Math.abs(i!==0?i:t),a=i>0?-1:i<0?1:t>0?-1:1;return 3*r*a}function gv(n,e,t,i){n.addEventListener(e,t,i)}function rE(n,e,t,i){n.removeEventListener(e,t,i)}var Qr=function(n){n.preventDefault(),n.stopPropagation(),n.cancelBubble=!0};function ew(n){return n.which===2||n.which===3}var aE=function(){function n(){this._track=[]}return n.prototype.recognize=function(e,t,i){return this._doTrack(e,t,i),this._recognize(e)},n.prototype.clear=function(){return this._track.length=0,this},n.prototype._doTrack=function(e,t,i){var r=e.touches;if(r){for(var a={points:[],touches:[],target:t,event:e},o=0,s=r.length;o<s;o++){var l=r[o],u=dv(i,l,{});a.points.push([u.zrX,u.zrY]),a.touches.push(l)}this._track.push(a)}},n.prototype._recognize=function(e){for(var t in vv)if(vv.hasOwnProperty(t)){var i=vv[t](this._track,e);if(i)return i}},n}();function nw(n){var e=n[1][0]-n[0][0],t=n[1][1]-n[0][1];return Math.sqrt(e*e+t*t)}function oE(n){return[(n[0][0]+n[1][0])/2,(n[0][1]+n[1][1])/2]}var vv={pinch:function(n,e){var t=n.length;if(t){var i=(n[t-1]||{}).points,r=(n[t-2]||{}).points||i;if(r&&r.length>1&&i&&i.length>1){var a=nw(i)/nw(r);!isFinite(a)&&(a=1),e.pinchScale=a;var o=oE(i);return e.pinchX=o[0],e.pinchY=o[1],{type:"pinch",target:n[0].target,event:e}}}}};function fi(){return[1,0,0,1,0,0]}function ap(n){return n[0]=1,n[1]=0,n[2]=0,n[3]=1,n[4]=0,n[5]=0,n}function yv(n,e){return n[0]=e[0],n[1]=e[1],n[2]=e[2],n[3]=e[3],n[4]=e[4],n[5]=e[5],n}function ta(n,e,t){var i=e[0]*t[0]+e[2]*t[1],r=e[1]*t[0]+e[3]*t[1],a=e[0]*t[2]+e[2]*t[3],o=e[1]*t[2]+e[3]*t[3],s=e[0]*t[4]+e[2]*t[5]+e[4],l=e[1]*t[4]+e[3]*t[5]+e[5];return n[0]=i,n[1]=r,n[2]=a,n[3]=o,n[4]=s,n[5]=l,n}function Sr(n,e,t){return n[0]=e[0],n[1]=e[1],n[2]=e[2],n[3]=e[3],n[4]=e[4]+t[0],n[5]=e[5]+t[1],n}function ko(n,e,t,i){i===void 0&&(i=[0,0]);var r=e[0],a=e[2],o=e[4],s=e[1],l=e[3],u=e[5],c=Math.sin(t),h=Math.cos(t);return n[0]=r*h+s*c,n[1]=-r*c+s*h,n[2]=a*h+l*c,n[3]=-a*c+h*l,n[4]=h*(o-i[0])+c*(u-i[1])+i[0],n[5]=h*(u-i[1])-c*(o-i[0])+i[1],n}function mv(n,e,t){var i=t[0],r=t[1];return n[0]=e[0]*i,n[1]=e[1]*r,n[2]=e[2]*i,n[3]=e[3]*r,n[4]=e[4]*i,n[5]=e[5]*r,n}function Qs(n,e){var t=e[0],i=e[2],r=e[4],a=e[1],o=e[3],s=e[5],l=t*o-a*i;return l?(l=1/l,n[0]=o*l,n[1]=-a*l,n[2]=-i*l,n[3]=t*l,n[4]=(i*s-o*r)*l,n[5]=(a*r-t*s)*l,n):null}function sE(n){var e=fi();return yv(e,n),e}var Jt=function(){function n(e,t){this.x=e||0,this.y=t||0}return n.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},n.prototype.clone=function(){return new n(this.x,this.y)},n.prototype.set=function(e,t){return this.x=e,this.y=t,this},n.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},n.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},n.prototype.scale=function(e){this.x*=e,this.y*=e},n.prototype.scaleAndAdd=function(e,t){this.x+=e.x*t,this.y+=e.y*t},n.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},n.prototype.dot=function(e){return this.x*e.x+this.y*e.y},n.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},n.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},n.prototype.normalize=function(){var e=this.len();return this.x/=e,this.y/=e,this},n.prototype.distance=function(e){var t=this.x-e.x,i=this.y-e.y;return Math.sqrt(t*t+i*i)},n.prototype.distanceSquare=function(e){var t=this.x-e.x,i=this.y-e.y;return t*t+i*i},n.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},n.prototype.transform=function(e){if(e){var t=this.x,i=this.y;return this.x=e[0]*t+e[2]*i+e[4],this.y=e[1]*t+e[3]*i+e[5],this}},n.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},n.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},n.set=function(e,t,i){e.x=t,e.y=i},n.copy=function(e,t){e.x=t.x,e.y=t.y},n.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},n.lenSquare=function(e){return e.x*e.x+e.y*e.y},n.dot=function(e,t){return e.x*t.x+e.y*t.y},n.add=function(e,t,i){e.x=t.x+i.x,e.y=t.y+i.y},n.sub=function(e,t,i){e.x=t.x-i.x,e.y=t.y-i.y},n.scale=function(e,t,i){e.x=t.x*i,e.y=t.y*i},n.scaleAndAdd=function(e,t,i,r){e.x=t.x+i.x*r,e.y=t.y+i.y*r},n.lerp=function(e,t,i,r){var a=1-r;e.x=a*t.x+r*i.x,e.y=a*t.y+r*i.y},n}(),op=Math.min,sp=Math.max,Lo=new Jt,Do=new Jt,Po=new Jt,Ro=new Jt,Au=new Jt,Cu=new Jt,$t=function(){function n(e,t,i,r){i<0&&(e=e+i,i=-i),r<0&&(t=t+r,r=-r),this.x=e,this.y=t,this.width=i,this.height=r}return n.prototype.union=function(e){var t=op(e.x,this.x),i=op(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=sp(e.x+e.width,this.x+this.width)-t:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=sp(e.y+e.height,this.y+this.height)-i:this.height=e.height,this.x=t,this.y=i},n.prototype.applyTransform=function(e){n.applyTransform(this,this,e)},n.prototype.calculateTransform=function(e){var t=this,i=e.width/t.width,r=e.height/t.height,a=fi();return Sr(a,a,[-t.x,-t.y]),mv(a,a,[i,r]),Sr(a,a,[e.x,e.y]),a},n.prototype.intersect=function(e,t){if(!e)return!1;e instanceof n||(e=n.create(e));var i=this,r=i.x,a=i.x+i.width,o=i.y,s=i.y+i.height,l=e.x,u=e.x+e.width,c=e.y,h=e.y+e.height,f=!(a<l||u<r||s<c||h<o);if(t){var d=1/0,g=0,y=Math.abs(a-l),_=Math.abs(u-r),v=Math.abs(s-c),p=Math.abs(h-o),x=Math.min(y,_),b=Math.min(v,p);a<l||u<r?x>g&&(g=x,y<_?Jt.set(Cu,-y,0):Jt.set(Cu,_,0)):x<d&&(d=x,y<_?Jt.set(Au,y,0):Jt.set(Au,-_,0)),s<c||h<o?b>g&&(g=b,v<p?Jt.set(Cu,0,-v):Jt.set(Cu,0,p)):x<d&&(d=x,v<p?Jt.set(Au,0,v):Jt.set(Au,0,-p))}return t&&Jt.copy(t,f?Au:Cu),f},n.prototype.contain=function(e,t){var i=this;return e>=i.x&&e<=i.x+i.width&&t>=i.y&&t<=i.y+i.height},n.prototype.clone=function(){return new n(this.x,this.y,this.width,this.height)},n.prototype.copy=function(e){n.copy(this,e)},n.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},n.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},n.prototype.isZero=function(){return this.width===0||this.height===0},n.create=function(e){return new n(e.x,e.y,e.width,e.height)},n.copy=function(e,t){e.x=t.x,e.y=t.y,e.width=t.width,e.height=t.height},n.applyTransform=function(e,t,i){if(!i){e!==t&&n.copy(e,t);return}if(i[1]<1e-5&&i[1]>-1e-5&&i[2]<1e-5&&i[2]>-1e-5){var r=i[0],a=i[3],o=i[4],s=i[5];e.x=t.x*r+o,e.y=t.y*a+s,e.width=t.width*r,e.height=t.height*a,e.width<0&&(e.x+=e.width,e.width=-e.width),e.height<0&&(e.y+=e.height,e.height=-e.height);return}Lo.x=Po.x=t.x,Lo.y=Ro.y=t.y,Do.x=Ro.x=t.x+t.width,Do.y=Po.y=t.y+t.height,Lo.transform(i),Ro.transform(i),Do.transform(i),Po.transform(i),e.x=op(Lo.x,Do.x,Po.x,Ro.x),e.y=op(Lo.y,Do.y,Po.y,Ro.y);var l=sp(Lo.x,Do.x,Po.x,Ro.x),u=sp(Lo.y,Do.y,Po.y,Ro.y);e.width=l-e.x,e.height=u-e.y},n}(),iw="silent";function lE(n,e,t){return{type:n,event:t,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:t.zrX,offsetY:t.zrY,gestureEvent:t.gestureEvent,pinchX:t.pinchX,pinchY:t.pinchY,pinchScale:t.pinchScale,wheelDelta:t.zrDelta,zrByTouch:t.zrByTouch,which:t.which,stop:uE}}function uE(){Qr(this.event)}var cE=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.handler=null,t}return e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e}(Ci),ku=function(){function n(e,t){this.x=e,this.y=t}return n}(),hE=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],_v=new $t(0,0,0,0),rw=function(n){Q(e,n);function e(t,i,r,a,o){var s=n.call(this)||this;return s._hovered=new ku(0,0),s.storage=t,s.painter=i,s.painterRoot=a,s._pointerSize=o,r=r||new cE,s.proxy=null,s.setHandlerProxy(r),s._draggingMgr=new qz(s),s}return e.prototype.setHandlerProxy=function(t){this.proxy&&this.proxy.dispose(),t&&(E(hE,function(i){t.on&&t.on(i,this[i],this)},this),t.handler=this),this.proxy=t},e.prototype.mousemove=function(t){var i=t.zrX,r=t.zrY,a=ow(this,i,r),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 ku(i,r):this.findHover(i,r),u=l.target,c=this.proxy;c.setCursor&&c.setCursor(u?u.cursor:"default"),s&&u!==s&&this.dispatchToElement(o,"mouseout",t),this.dispatchToElement(l,"mousemove",t),u&&u!==s&&this.dispatchToElement(l,"mouseover",t)},e.prototype.mouseout=function(t){var i=t.zrEventControl;i!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",t),i!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:t})},e.prototype.resize=function(){this._hovered=new ku(0,0)},e.prototype.dispatch=function(t,i){var r=this[t];r&&r.call(this,i)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(t){var i=this.proxy;i.setCursor&&i.setCursor(t)},e.prototype.dispatchToElement=function(t,i,r){t=t||{};var a=t.target;if(!(a&&a.silent)){for(var o="on"+i,s=lE(i,t,r);a&&(a[o]&&(s.cancelBubble=!!a[o].call(a,s)),a.trigger(i,s),a=a.__hostTarget?a.__hostTarget:a.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(i,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[o]=="function"&&l[o].call(l,s),l.trigger&&l.trigger(i,s)}))}},e.prototype.findHover=function(t,i,r){var a=this.storage.getDisplayList(),o=new ku(t,i);if(aw(a,o,t,i,r),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,c=new $t(t-u,i-u,l,l),h=a.length-1;h>=0;h--){var f=a[h];f!==r&&!f.ignore&&!f.ignoreCoarsePointer&&(!f.parent||!f.parent.ignoreCoarsePointer)&&(_v.copy(f.getBoundingRect()),f.transform&&_v.applyTransform(f.transform),_v.intersect(c)&&s.push(f))}if(s.length)for(var d=4,g=Math.PI/12,y=Math.PI*2,_=0;_<u;_+=d)for(var v=0;v<y;v+=g){var p=t+_*Math.cos(v),x=i+_*Math.sin(v);if(aw(s,o,p,x,r),o.target)return o}}return o},e.prototype.processGesture=function(t,i){this._gestureMgr||(this._gestureMgr=new aE);var r=this._gestureMgr;i==="start"&&r.clear();var a=r.recognize(t,this.findHover(t.zrX,t.zrY,null).target,this.proxy.dom);if(i==="end"&&r.clear(),a){var o=a.type;t.gestureEvent=o;var s=new ku;s.target=a.target,this.dispatchToElement(s,o,a.event)}},e}(Ci);E(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(n){rw.prototype[n]=function(e){var t=e.zrX,i=e.zrY,r=ow(this,t,i),a,o;if((n!=="mouseup"||!r)&&(a=this.findHover(t,i),o=a.target),n==="mousedown")this._downEl=o,this._downPoint=[e.zrX,e.zrY],this._upEl=o;else if(n==="mouseup")this._upEl=o;else if(n==="click"){if(this._downEl!==this._upEl||!this._downPoint||Na(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(a,n,e)}});function pE(n,e,t){if(n[n.rectHover?"rectContain":"contain"](e,t)){for(var i=n,r=void 0,a=!1;i;){if(i.ignoreClip&&(a=!0),!a){var o=i.getClipPath();if(o&&!o.contain(e,t))return!1}i.silent&&(r=!0);var s=i.__hostTarget;i=s||i.parent}return r?iw:!0}return!1}function aw(n,e,t,i,r){for(var a=n.length-1;a>=0;a--){var o=n[a],s=void 0;if(o!==r&&!o.ignore&&(s=pE(o,t,i))&&(!e.topTarget&&(e.topTarget=o),s!==iw)){e.target=o;break}}}function ow(n,e,t){var i=n.painter;return e<0||e>i.getWidth()||t<0||t>i.getHeight()}var sw=32,Lu=7;function dE(n){for(var e=0;n>=sw;)e|=n&1,n>>=1;return n+e}function lw(n,e,t,i){var r=e+1;if(r===t)return 1;if(i(n[r++],n[e])<0){for(;r<t&&i(n[r],n[r-1])<0;)r++;fE(n,e,r)}else for(;r<t&&i(n[r],n[r-1])>=0;)r++;return r-e}function fE(n,e,t){for(t--;e<t;){var i=n[e];n[e++]=n[t],n[t--]=i}}function uw(n,e,t,i,r){for(i===e&&i++;i<t;i++){for(var a=n[i],o=e,s=i,l;o<s;)l=o+s>>>1,r(a,n[l])<0?s=l:o=l+1;var u=i-o;switch(u){case 3:n[o+3]=n[o+2];case 2:n[o+2]=n[o+1];case 1:n[o+1]=n[o];break;default:for(;u>0;)n[o+u]=n[o+u-1],u--}n[o]=a}}function xv(n,e,t,i,r,a){var o=0,s=0,l=1;if(a(n,e[t+r])>0){for(s=i-r;l<s&&a(n,e[t+r+l])>0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=r,l+=r}else{for(s=r+1;l<s&&a(n,e[t+r-l])<=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=r-l,l=r-u}for(o++;o<l;){var c=o+(l-o>>>1);a(n,e[t+c])>0?o=c+1:l=c}return l}function bv(n,e,t,i,r,a){var o=0,s=0,l=1;if(a(n,e[t+r])<0){for(s=r+1;l<s&&a(n,e[t+r-l])<0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=r-l,l=r-u}else{for(s=i-r;l<s&&a(n,e[t+r+l])>=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=r,l+=r}for(o++;o<l;){var c=o+(l-o>>>1);a(n,e[t+c])<0?l=c:o=c+1}return l}function gE(n,e){var t=Lu,i,r,a=0,o=[];i=[],r=[];function s(d,g){i[a]=d,r[a]=g,a+=1}function l(){for(;a>1;){var d=a-2;if(d>=1&&r[d-1]<=r[d]+r[d+1]||d>=2&&r[d-2]<=r[d]+r[d-1])r[d-1]<r[d+1]&&d--;else if(r[d]>r[d+1])break;c(d)}}function u(){for(;a>1;){var d=a-2;d>0&&r[d-1]<r[d+1]&&d--,c(d)}}function c(d){var g=i[d],y=r[d],_=i[d+1],v=r[d+1];r[d]=y+v,d===a-3&&(i[d+1]=i[d+2],r[d+1]=r[d+2]),a--;var p=bv(n[_],n,g,y,0,e);g+=p,y-=p,y!==0&&(v=xv(n[g+y-1],n,_,v,v-1,e),v!==0&&(y<=v?h(g,y,_,v):f(g,y,_,v)))}function h(d,g,y,_){var v=0;for(v=0;v<g;v++)o[v]=n[d+v];var p=0,x=y,b=d;if(n[b++]=n[x++],--_===0){for(v=0;v<g;v++)n[b+v]=o[p+v];return}if(g===1){for(v=0;v<_;v++)n[b+v]=n[x+v];n[b+_]=o[p];return}for(var S=t,M,I,A;;){M=0,I=0,A=!1;do if(e(n[x],o[p])<0){if(n[b++]=n[x++],I++,M=0,--_===0){A=!0;break}}else if(n[b++]=o[p++],M++,I=0,--g===1){A=!0;break}while((M|I)<S);if(A)break;do{if(M=bv(n[x],o,p,g,0,e),M!==0){for(v=0;v<M;v++)n[b+v]=o[p+v];if(b+=M,p+=M,g-=M,g<=1){A=!0;break}}if(n[b++]=n[x++],--_===0){A=!0;break}if(I=xv(o[p],n,x,_,0,e),I!==0){for(v=0;v<I;v++)n[b+v]=n[x+v];if(b+=I,x+=I,_-=I,_===0){A=!0;break}}if(n[b++]=o[p++],--g===1){A=!0;break}S--}while(M>=Lu||I>=Lu);if(A)break;S<0&&(S=0),S+=2}if(t=S,t<1&&(t=1),g===1){for(v=0;v<_;v++)n[b+v]=n[x+v];n[b+_]=o[p]}else{if(g===0)throw new Error;for(v=0;v<g;v++)n[b+v]=o[p+v]}}function f(d,g,y,_){var v=0;for(v=0;v<_;v++)o[v]=n[y+v];var p=d+g-1,x=_-1,b=y+_-1,S=0,M=0;if(n[b--]=n[p--],--g===0){for(S=b-(_-1),v=0;v<_;v++)n[S+v]=o[v];return}if(_===1){for(b-=g,p-=g,M=b+1,S=p+1,v=g-1;v>=0;v--)n[M+v]=n[S+v];n[b]=o[x];return}for(var I=t;;){var A=0,C=0,L=!1;do if(e(o[x],n[p])<0){if(n[b--]=n[p--],A++,C=0,--g===0){L=!0;break}}else if(n[b--]=o[x--],C++,A=0,--_===1){L=!0;break}while((A|C)<I);if(L)break;do{if(A=g-bv(o[x],n,d,g,g-1,e),A!==0){for(b-=A,p-=A,g-=A,M=b+1,S=p+1,v=A-1;v>=0;v--)n[M+v]=n[S+v];if(g===0){L=!0;break}}if(n[b--]=o[x--],--_===1){L=!0;break}if(C=_-xv(n[p],o,0,_,_-1,e),C!==0){for(b-=C,x-=C,_-=C,M=b+1,S=x+1,v=0;v<C;v++)n[M+v]=o[S+v];if(_<=1){L=!0;break}}if(n[b--]=n[p--],--g===0){L=!0;break}I--}while(A>=Lu||C>=Lu);if(L)break;I<0&&(I=0),I+=2}if(t=I,t<1&&(t=1),_===1){for(b-=g,p-=g,M=b+1,S=p+1,v=g-1;v>=0;v--)n[M+v]=n[S+v];n[b]=o[x]}else{if(_===0)throw new Error;for(S=b-(_-1),v=0;v<_;v++)n[S+v]=o[v]}}return{mergeRuns:l,forceMergeRuns:u,pushRun:s}}function lp(n,e,t,i){t||(t=0),i||(i=n.length);var r=i-t;if(!(r<2)){var a=0;if(r<sw){a=lw(n,t,i,e),uw(n,t,i,t+a,e);return}var o=gE(n,e),s=dE(r);do{if(a=lw(n,t,i,e),a<s){var l=r;l>s&&(l=s),uw(n,t,t+l,t+a,e),a=l}o.pushRun(t,a),o.mergeRuns(),r-=a,t+=a}while(r!==0);o.forceMergeRuns()}}var Mr=1,up=2,Du=4,cw=!1;function wv(){cw||(cw=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function hw(n,e){return n.zlevel===e.zlevel?n.z===e.z?n.z2-e.z2:n.z-e.z:n.zlevel-e.zlevel}var vE=function(){function n(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=hw}return n.prototype.traverse=function(e,t){for(var i=0;i<this._roots.length;i++)this._roots[i].traverse(e,t)},n.prototype.getDisplayList=function(e,t){t=t||!1;var i=this._displayList;return(e||!i.length)&&this.updateDisplayList(t),i},n.prototype.updateDisplayList=function(e){this._displayListLen=0;for(var t=this._roots,i=this._displayList,r=0,a=t.length;r<a;r++)this._updateAndAddDisplayable(t[r],null,e);i.length=this._displayListLen,lp(i,hw)},n.prototype._updateAndAddDisplayable=function(e,t,i){if(!(e.ignore&&!i)){e.beforeUpdate(),e.update(),e.afterUpdate();var r=e.getClipPath();if(e.ignoreClip)t=null;else if(r){t?t=t.slice():t=[];for(var a=r,o=e;a;)a.parent=o,a.updateTransform(),t.push(a),o=a,a=a.getClipPath()}if(e.childrenRef){for(var s=e.childrenRef(),l=0;l<s.length;l++){var u=s[l];e.__dirty&&(u.__dirty|=Mr),this._updateAndAddDisplayable(u,t,i)}e.__dirty=0}else{var c=e;t&&t.length?c.__clipPaths=t:c.__clipPaths&&c.__clipPaths.length>0&&(c.__clipPaths=[]),isNaN(c.z)&&(wv(),c.z=0),isNaN(c.z2)&&(wv(),c.z2=0),isNaN(c.zlevel)&&(wv(),c.zlevel=0),this._displayList[this._displayListLen++]=c}var h=e.getDecalElement&&e.getDecalElement();h&&this._updateAndAddDisplayable(h,t,i);var f=e.getTextGuideLine();f&&this._updateAndAddDisplayable(f,t,i);var d=e.getTextContent();d&&this._updateAndAddDisplayable(d,t,i)}},n.prototype.addRoot=function(e){e.__zr&&e.__zr.storage===this||this._roots.push(e)},n.prototype.delRoot=function(e){if(e instanceof Array){for(var t=0,i=e.length;t<i;t++)this.delRoot(e[t]);return}var r=Qt(this._roots,e);r>=0&&this._roots.splice(r,1)},n.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},n.prototype.getRoots=function(){return this._roots},n.prototype.dispose=function(){this._displayList=null,this._roots=null},n}(),cp;cp=oe.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(n){return setTimeout(n,16)};var Pu={linear:function(n){return n},quadraticIn:function(n){return n*n},quadraticOut:function(n){return n*(2-n)},quadraticInOut:function(n){return(n*=2)<1?.5*n*n:-.5*(--n*(n-2)-1)},cubicIn:function(n){return n*n*n},cubicOut:function(n){return--n*n*n+1},cubicInOut:function(n){return(n*=2)<1?.5*n*n*n:.5*((n-=2)*n*n+2)},quarticIn:function(n){return n*n*n*n},quarticOut:function(n){return 1- --n*n*n*n},quarticInOut:function(n){return(n*=2)<1?.5*n*n*n*n:-.5*((n-=2)*n*n*n-2)},quinticIn:function(n){return n*n*n*n*n},quinticOut:function(n){return--n*n*n*n*n+1},quinticInOut:function(n){return(n*=2)<1?.5*n*n*n*n*n:.5*((n-=2)*n*n*n*n+2)},sinusoidalIn:function(n){return 1-Math.cos(n*Math.PI/2)},sinusoidalOut:function(n){return Math.sin(n*Math.PI/2)},sinusoidalInOut:function(n){return .5*(1-Math.cos(Math.PI*n))},exponentialIn:function(n){return n===0?0:Math.pow(1024,n-1)},exponentialOut:function(n){return n===1?1:1-Math.pow(2,-10*n)},exponentialInOut:function(n){return n===0?0:n===1?1:(n*=2)<1?.5*Math.pow(1024,n-1):.5*(-Math.pow(2,-10*(n-1))+2)},circularIn:function(n){return 1-Math.sqrt(1-n*n)},circularOut:function(n){return Math.sqrt(1- --n*n)},circularInOut:function(n){return(n*=2)<1?-.5*(Math.sqrt(1-n*n)-1):.5*(Math.sqrt(1-(n-=2)*n)+1)},elasticIn:function(n){var e,t=.1,i=.4;return n===0?0:n===1?1:(!t||t<1?(t=1,e=i/4):e=i*Math.asin(1/t)/(2*Math.PI),-(t*Math.pow(2,10*(n-=1))*Math.sin((n-e)*(2*Math.PI)/i)))},elasticOut:function(n){var e,t=.1,i=.4;return n===0?0:n===1?1:(!t||t<1?(t=1,e=i/4):e=i*Math.asin(1/t)/(2*Math.PI),t*Math.pow(2,-10*n)*Math.sin((n-e)*(2*Math.PI)/i)+1)},elasticInOut:function(n){var e,t=.1,i=.4;return n===0?0:n===1?1:(!t||t<1?(t=1,e=i/4):e=i*Math.asin(1/t)/(2*Math.PI),(n*=2)<1?-.5*(t*Math.pow(2,10*(n-=1))*Math.sin((n-e)*(2*Math.PI)/i)):t*Math.pow(2,-10*(n-=1))*Math.sin((n-e)*(2*Math.PI)/i)*.5+1)},backIn:function(n){var e=1.70158;return n*n*((e+1)*n-e)},backOut:function(n){var e=1.70158;return--n*n*((e+1)*n+e)+1},backInOut:function(n){var e=2.5949095;return(n*=2)<1?.5*(n*n*((e+1)*n-e)):.5*((n-=2)*n*((e+1)*n+e)+2)},bounceIn:function(n){return 1-Pu.bounceOut(1-n)},bounceOut:function(n){return n<1/2.75?7.5625*n*n:n<2/2.75?7.5625*(n-=1.5/2.75)*n+.75:n<2.5/2.75?7.5625*(n-=2.25/2.75)*n+.9375:7.5625*(n-=2.625/2.75)*n+.984375},bounceInOut:function(n){return n<.5?Pu.bounceIn(n*2)*.5:Pu.bounceOut(n*2-1)*.5+.5}},hp=Math.pow,Oa=Math.sqrt,pw=1e-8,dw=1e-4,fw=Oa(3),pp=1/3,Ir=To(),Li=To(),tl=To();function Ba(n){return n>-1e-8&&n<pw}function gw(n){return n>pw||n<-1e-8}function dn(n,e,t,i,r){var a=1-r;return a*a*(a*n+3*r*e)+r*r*(r*i+3*a*t)}function vw(n,e,t,i,r){var a=1-r;return 3*(((e-n)*a+2*(t-e)*r)*a+(i-t)*r*r)}function dp(n,e,t,i,r,a){var o=i+3*(e-t)-n,s=3*(t-e*2+n),l=3*(e-n),u=n-r,c=s*s-3*o*l,h=s*l-9*o*u,f=l*l-3*s*u,d=0;if(Ba(c)&&Ba(h))if(Ba(s))a[0]=0;else{var g=-l/s;g>=0&&g<=1&&(a[d++]=g)}else{var y=h*h-4*c*f;if(Ba(y)){var _=h/c,g=-s/o+_,v=-_/2;g>=0&&g<=1&&(a[d++]=g),v>=0&&v<=1&&(a[d++]=v)}else if(y>0){var p=Oa(y),x=c*s+1.5*o*(-h+p),b=c*s+1.5*o*(-h-p);x<0?x=-hp(-x,pp):x=hp(x,pp),b<0?b=-hp(-b,pp):b=hp(b,pp);var g=(-s-(x+b))/(3*o);g>=0&&g<=1&&(a[d++]=g)}else{var S=(2*c*s-3*o*h)/(2*Oa(c*c*c)),M=Math.acos(S)/3,I=Oa(c),A=Math.cos(M),g=(-s-2*I*A)/(3*o),v=(-s+I*(A+fw*Math.sin(M)))/(3*o),C=(-s+I*(A-fw*Math.sin(M)))/(3*o);g>=0&&g<=1&&(a[d++]=g),v>=0&&v<=1&&(a[d++]=v),C>=0&&C<=1&&(a[d++]=C)}}return d}function yw(n,e,t,i,r){var a=6*t-12*e+6*n,o=9*e+3*i-3*n-9*t,s=3*e-3*n,l=0;if(Ba(o)){if(gw(a)){var u=-s/a;u>=0&&u<=1&&(r[l++]=u)}}else{var c=a*a-4*o*s;if(Ba(c))r[0]=-a/(2*o);else if(c>0){var h=Oa(c),u=(-a+h)/(2*o),f=(-a-h)/(2*o);u>=0&&u<=1&&(r[l++]=u),f>=0&&f<=1&&(r[l++]=f)}}return l}function Va(n,e,t,i,r,a){var o=(e-n)*r+n,s=(t-e)*r+e,l=(i-t)*r+t,u=(s-o)*r+o,c=(l-s)*r+s,h=(c-u)*r+u;a[0]=n,a[1]=o,a[2]=u,a[3]=h,a[4]=h,a[5]=c,a[6]=l,a[7]=i}function mw(n,e,t,i,r,a,o,s,l,u,c){var h,f=.005,d=1/0,g,y,_,v;Ir[0]=l,Ir[1]=u;for(var p=0;p<1;p+=.05)Li[0]=dn(n,t,r,o,p),Li[1]=dn(e,i,a,s,p),_=Co(Ir,Li),_<d&&(h=p,d=_);d=1/0;for(var x=0;x<32&&!(f<dw);x++)g=h-f,y=h+f,Li[0]=dn(n,t,r,o,g),Li[1]=dn(e,i,a,s,g),_=Co(Li,Ir),g>=0&&_<d?(h=g,d=_):(tl[0]=dn(n,t,r,o,y),tl[1]=dn(e,i,a,s,y),v=Co(tl,Ir),y<=1&&v<d?(h=y,d=v):f*=.5);return c&&(c[0]=dn(n,t,r,o,h),c[1]=dn(e,i,a,s,h)),Oa(d)}function yE(n,e,t,i,r,a,o,s,l){for(var u=n,c=e,h=0,f=1/l,d=1;d<=l;d++){var g=d*f,y=dn(n,t,r,o,g),_=dn(e,i,a,s,g),v=y-u,p=_-c;h+=Math.sqrt(v*v+p*p),u=y,c=_}return h}function wn(n,e,t,i){var r=1-i;return r*(r*n+2*i*e)+i*i*t}function Sv(n,e,t,i){return 2*((1-i)*(e-n)+i*(t-e))}function mE(n,e,t,i,r){var a=n-2*e+t,o=2*(e-n),s=n-i,l=0;if(Ba(a)){if(gw(o)){var u=-s/o;u>=0&&u<=1&&(r[l++]=u)}}else{var c=o*o-4*a*s;if(Ba(c)){var u=-o/(2*a);u>=0&&u<=1&&(r[l++]=u)}else if(c>0){var h=Oa(c),u=(-o+h)/(2*a),f=(-o-h)/(2*a);u>=0&&u<=1&&(r[l++]=u),f>=0&&f<=1&&(r[l++]=f)}}return l}function _w(n,e,t){var i=n+t-2*e;return i===0?.5:(n-e)/i}function Ru(n,e,t,i,r){var a=(e-n)*i+n,o=(t-e)*i+e,s=(o-a)*i+a;r[0]=n,r[1]=a,r[2]=s,r[3]=s,r[4]=o,r[5]=t}function xw(n,e,t,i,r,a,o,s,l){var u,c=.005,h=1/0;Ir[0]=o,Ir[1]=s;for(var f=0;f<1;f+=.05){Li[0]=wn(n,t,r,f),Li[1]=wn(e,i,a,f);var d=Co(Ir,Li);d<h&&(u=f,h=d)}h=1/0;for(var g=0;g<32&&!(c<dw);g++){var y=u-c,_=u+c;Li[0]=wn(n,t,r,y),Li[1]=wn(e,i,a,y);var d=Co(Li,Ir);if(y>=0&&d<h)u=y,h=d;else{tl[0]=wn(n,t,r,_),tl[1]=wn(e,i,a,_);var v=Co(tl,Ir);_<=1&&v<h?(u=_,h=v):c*=.5}}return l&&(l[0]=wn(n,t,r,u),l[1]=wn(e,i,a,u)),Oa(h)}function _E(n,e,t,i,r,a,o){for(var s=n,l=e,u=0,c=1/o,h=1;h<=o;h++){var f=h*c,d=wn(n,t,r,f),g=wn(e,i,a,f),y=d-s,_=g-l;u+=Math.sqrt(y*y+_*_),s=d,l=g}return u}var xE=/cubic-bezier\(([0-9,\.e ]+)\)/;function Mv(n){var e=n&&xE.exec(n);if(e){var t=e[1].split(","),i=+nr(t[0]),r=+nr(t[1]),a=+nr(t[2]),o=+nr(t[3]);if(isNaN(i+r+a+o))return;var s=[];return function(l){return l<=0?0:l>=1?1:dp(0,i,a,1,l,s)&&dn(0,r,o,1,s[0])}}}var bE=function(){function n(e){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=e.life||1e3,this._delay=e.delay||0,this.loop=e.loop||!1,this.onframe=e.onframe||Je,this.ondestroy=e.ondestroy||Je,this.onrestart=e.onrestart||Je,e.easing&&this.setEasing(e.easing)}return n.prototype.step=function(e,t){if(this._inited||(this._startTime=e+this._delay,this._inited=!0),this._paused){this._pausedTime+=t;return}var i=this._life,r=e-this._startTime-this._pausedTime,a=r/i;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=r%i;this._startTime=e-l,this._pausedTime=0,this.onrestart()}else return!0;return!1},n.prototype.pause=function(){this._paused=!0},n.prototype.resume=function(){this._paused=!1},n.prototype.setEasing=function(e){this.easing=e,this.easingFunc=Ot(e)?e:Pu[e]||Mv(e)},n}(),bw=function(){function n(e){this.value=e}return n}(),wE=function(){function n(){this._len=0}return n.prototype.insert=function(e){var t=new bw(e);return this.insertEntry(t),t},n.prototype.insertEntry=function(e){this.head?(this.tail.next=e,e.prev=this.tail,e.next=null,this.tail=e):this.head=this.tail=e,this._len++},n.prototype.remove=function(e){var t=e.prev,i=e.next;t?t.next=i:this.head=i,i?i.prev=t:this.tail=t,e.next=e.prev=null,this._len--},n.prototype.len=function(){return this._len},n.prototype.clear=function(){this.head=this.tail=null,this._len=0},n}(),Nu=function(){function n(e){this._list=new wE,this._maxSize=10,this._map={},this._maxSize=e}return n.prototype.put=function(e,t){var i=this._list,r=this._map,a=null;if(r[e]==null){var o=i.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=i.head;i.remove(l),delete r[l.key],a=l.value,this._lastRemovedEntry=l}s?s.value=t:s=new bw(t),s.key=e,i.insertEntry(s),r[e]=s}return a},n.prototype.get=function(e){var t=this._map[e],i=this._list;if(t!=null)return t!==i.tail&&(i.remove(t),i.insertEntry(t)),t.value},n.prototype.clear=function(){this._list.clear(),this._map={}},n.prototype.len=function(){return this._list.len()},n}(),ww={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 ir(n){return n=Math.round(n),n<0?0:n>255?255:n}function SE(n){return n=Math.round(n),n<0?0:n>360?360:n}function zu(n){return n<0?0:n>1?1:n}function Iv(n){var e=n;return e.length&&e.charAt(e.length-1)==="%"?ir(parseFloat(e)/100*255):ir(parseInt(e,10))}function No(n){var e=n;return e.length&&e.charAt(e.length-1)==="%"?zu(parseFloat(e)/100):zu(parseFloat(e))}function Tv(n,e,t){return t<0?t+=1:t>1&&(t-=1),t*6<1?n+(e-n)*t*6:t*2<1?e:t*3<2?n+(e-n)*(2/3-t)*6:n}function Fa(n,e,t){return n+(e-n)*t}function Di(n,e,t,i,r){return n[0]=e,n[1]=t,n[2]=i,n[3]=r,n}function Av(n,e){return n[0]=e[0],n[1]=e[1],n[2]=e[2],n[3]=e[3],n}var Sw=new Nu(20),fp=null;function el(n,e){fp&&Av(fp,e),fp=Sw.put(n,fp||e.slice())}function gi(n,e){if(n){e=e||[];var t=Sw.get(n);if(t)return Av(e,t);n=n+"";var i=n.replace(/ /g,"").toLowerCase();if(i in ww)return Av(e,ww[i]),el(n,e),e;var r=i.length;if(i.charAt(0)==="#"){if(r===4||r===5){var a=parseInt(i.slice(1,4),16);if(!(a>=0&&a<=4095)){Di(e,0,0,0,1);return}return Di(e,(a&3840)>>4|(a&3840)>>8,a&240|(a&240)>>4,a&15|(a&15)<<4,r===5?parseInt(i.slice(4),16)/15:1),el(n,e),e}else if(r===7||r===9){var a=parseInt(i.slice(1,7),16);if(!(a>=0&&a<=16777215)){Di(e,0,0,0,1);return}return Di(e,(a&16711680)>>16,(a&65280)>>8,a&255,r===9?parseInt(i.slice(7),16)/255:1),el(n,e),e}return}var o=i.indexOf("("),s=i.indexOf(")");if(o!==-1&&s+1===r){var l=i.substr(0,o),u=i.substr(o+1,s-(o+1)).split(","),c=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?Di(e,+u[0],+u[1],+u[2],1):Di(e,0,0,0,1);c=No(u.pop());case"rgb":if(u.length>=3)return Di(e,Iv(u[0]),Iv(u[1]),Iv(u[2]),u.length===3?c:No(u[3])),el(n,e),e;Di(e,0,0,0,1);return;case"hsla":if(u.length!==4){Di(e,0,0,0,1);return}return u[3]=No(u[3]),Cv(u,e),el(n,e),e;case"hsl":if(u.length!==3){Di(e,0,0,0,1);return}return Cv(u,e),el(n,e),e;default:return}}Di(e,0,0,0,1)}}function Cv(n,e){var t=(parseFloat(n[0])%360+360)%360/360,i=No(n[1]),r=No(n[2]),a=r<=.5?r*(i+1):r+i-r*i,o=r*2-a;return e=e||[],Di(e,ir(Tv(o,a,t+1/3)*255),ir(Tv(o,a,t)*255),ir(Tv(o,a,t-1/3)*255),1),n.length===4&&(e[3]=n[3]),e}function ME(n){if(n){var e=n[0]/255,t=n[1]/255,i=n[2]/255,r=Math.min(e,t,i),a=Math.max(e,t,i),o=a-r,s=(a+r)/2,l,u;if(o===0)l=0,u=0;else{s<.5?u=o/(a+r):u=o/(2-a-r);var c=((a-e)/6+o/2)/o,h=((a-t)/6+o/2)/o,f=((a-i)/6+o/2)/o;e===a?l=f-h:t===a?l=1/3+c-f:i===a&&(l=2/3+h-c),l<0&&(l+=1),l>1&&(l-=1)}var d=[l*360,u,s];return n[3]!=null&&d.push(n[3]),d}}function kv(n,e){var t=gi(n);if(t){for(var i=0;i<3;i++)e<0?t[i]=t[i]*(1-e)|0:t[i]=(255-t[i])*e+t[i]|0,t[i]>255?t[i]=255:t[i]<0&&(t[i]=0);return ea(t,t.length===4?"rgba":"rgb")}}function Lv(n,e,t){if(!(!(e&&e.length)||!(n>=0&&n<=1))){t=t||[];var i=n*(e.length-1),r=Math.floor(i),a=Math.ceil(i),o=e[r],s=e[a],l=i-r;return t[0]=ir(Fa(o[0],s[0],l)),t[1]=ir(Fa(o[1],s[1],l)),t[2]=ir(Fa(o[2],s[2],l)),t[3]=zu(Fa(o[3],s[3],l)),t}}function IE(n,e,t){if(!(!(e&&e.length)||!(n>=0&&n<=1))){var i=n*(e.length-1),r=Math.floor(i),a=Math.ceil(i),o=gi(e[r]),s=gi(e[a]),l=i-r,u=ea([ir(Fa(o[0],s[0],l)),ir(Fa(o[1],s[1],l)),ir(Fa(o[2],s[2],l)),zu(Fa(o[3],s[3],l))],"rgba");return t?{color:u,leftIndex:r,rightIndex:a,value:i}:u}}function Eu(n,e,t,i){var r=gi(n);if(n)return r=ME(r),e!=null&&(r[0]=SE(e)),t!=null&&(r[1]=No(t)),i!=null&&(r[2]=No(i)),ea(Cv(r),"rgba")}function gp(n,e){var t=gi(n);if(t&&e!=null)return t[3]=zu(e),ea(t,"rgba")}function ea(n,e){if(!(!n||!n.length)){var t=n[0]+","+n[1]+","+n[2];return(e==="rgba"||e==="hsva"||e==="hsla")&&(t+=","+n[3]),e+"("+t+")"}}function vp(n,e){var t=gi(n);return t?(.299*t[0]+.587*t[1]+.114*t[2])*t[3]/255+(1-t[3])*e:0}var Mw=new Nu(100);function Dv(n){if(Tt(n)){var e=Mw.get(n);return e||(e=kv(n,-.1),Mw.put(n,e)),e}else if(Qh(n)){var t=lt({},n);return t.colorStops=pt(n.colorStops,function(i){return{offset:i.offset,color:kv(i.color,-.1)}}),t}return n}var yp=Math.round;function Ou(n){var e;if(!n||n==="transparent")n="none";else if(typeof n=="string"&&n.indexOf("rgba")>-1){var t=gi(n);t&&(n="rgb("+t[0]+","+t[1]+","+t[2]+")",e=t[3])}return{color:n,opacity:e??1}}var TE=1e-4;function Wa(n){return n<TE&&n>-1e-4}function mp(n){return yp(n*1e3)/1e3}function Pv(n){return yp(n*1e4)/1e4}function AE(n){return"matrix("+mp(n[0])+","+mp(n[1])+","+mp(n[2])+","+mp(n[3])+","+Pv(n[4])+","+Pv(n[5])+")"}var CE={left:"start",right:"end",center:"middle",middle:"middle"};function kE(n,e,t){return t==="top"?n+=e/2:t==="bottom"&&(n-=e/2),n}function LE(n){return n&&(n.shadowBlur||n.shadowOffsetX||n.shadowOffsetY)}function DE(n){var e=n.style,t=n.getGlobalScale();return[e.shadowColor,(e.shadowBlur||0).toFixed(2),(e.shadowOffsetX||0).toFixed(2),(e.shadowOffsetY||0).toFixed(2),t[0],t[1]].join(",")}function Iw(n){return n&&!!n.image}function PE(n){return n&&!!n.svgElement}function Rv(n){return Iw(n)||PE(n)}function Tw(n){return n.type==="linear"}function Aw(n){return n.type==="radial"}function Cw(n){return n&&(n.type==="linear"||n.type==="radial")}function _p(n){return"url(#"+n+")"}function kw(n){var e=n.getGlobalScale(),t=Math.max(e[0],e[1]);return Math.max(Math.ceil(Math.log(t)/Math.log(10)),1)}function Lw(n){var e=n.x||0,t=n.y||0,i=(n.rotation||0)*np,r=Ut(n.scaleX,1),a=Ut(n.scaleY,1),o=n.skewX||0,s=n.skewY||0,l=[];return(e||t)&&l.push("translate("+e+"px,"+t+"px)"),i&&l.push("rotate("+i+")"),(r!==1||a!==1)&&l.push("scale("+r+","+a+")"),(o||s)&&l.push("skew("+yp(o*np)+"deg, "+yp(s*np)+"deg)"),l.join(" ")}var RE=function(){return oe.hasGlobalWindow&&Ot(window.btoa)?function(n){return window.btoa(unescape(encodeURIComponent(n)))}:typeof Buffer<"u"?function(n){return Buffer.from(n).toString("base64")}:function(n){return null}}(),Nv=Array.prototype.slice;function na(n,e,t){return(e-n)*t+n}function zv(n,e,t,i){for(var r=e.length,a=0;a<r;a++)n[a]=na(e[a],t[a],i);return n}function NE(n,e,t,i){for(var r=e.length,a=r&&e[0].length,o=0;o<r;o++){n[o]||(n[o]=[]);for(var s=0;s<a;s++)n[o][s]=na(e[o][s],t[o][s],i)}return n}function xp(n,e,t,i){for(var r=e.length,a=0;a<r;a++)n[a]=e[a]+t[a]*i;return n}function Dw(n,e,t,i){for(var r=e.length,a=r&&e[0].length,o=0;o<r;o++){n[o]||(n[o]=[]);for(var s=0;s<a;s++)n[o][s]=e[o][s]+t[o][s]*i}return n}function zE(n,e){for(var t=n.length,i=e.length,r=t>i?e:n,a=Math.min(t,i),o=r[a-1]||{color:[0,0,0,0],offset:0},s=a;s<Math.max(t,i);s++)r.push({offset:o.offset,color:o.color.slice()})}function EE(n,e,t){var i=n,r=e;if(!(!i.push||!r.push)){var a=i.length,o=r.length;if(a!==o){var s=a>o;if(s)i.length=o;else for(var l=a;l<o;l++)i.push(t===1?r[l]:Nv.call(r[l]))}for(var u=i[0]&&i[0].length,l=0;l<i.length;l++)if(t===1)isNaN(i[l])&&(i[l]=r[l]);else for(var c=0;c<u;c++)isNaN(i[l][c])&&(i[l][c]=r[l][c])}}function Bu(n){if(Nn(n)){var e=n.length;if(Nn(n[0])){for(var t=[],i=0;i<e;i++)t.push(Nv.call(n[i]));return t}return Nv.call(n)}return n}function bp(n){return n[0]=Math.floor(n[0])||0,n[1]=Math.floor(n[1])||0,n[2]=Math.floor(n[2])||0,n[3]=n[3]==null?1:n[3],"rgba("+n.join(",")+")"}function OE(n){return Nn(n&&n[0])?2:1}var wp=0,Sp=1,Pw=2,Vu=3,Ev=4,Ov=5,Rw=6;function Nw(n){return n===Ev||n===Ov}function Mp(n){return n===Sp||n===Pw}var Fu=[0,0,0,0],BE=function(){function n(e){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=e}return n.prototype.isFinished=function(){return this._finished},n.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},n.prototype.needsAnimate=function(){return this.keyframes.length>=1},n.prototype.getAdditiveTrack=function(){return this._additiveTrack},n.prototype.addKeyframe=function(e,t,i){this._needsSort=!0;var r=this.keyframes,a=r.length,o=!1,s=Rw,l=t;if(Nn(t)){var u=OE(t);s=u,(u===1&&!ve(t[0])||u===2&&!ve(t[0][0]))&&(o=!0)}else if(ve(t)&&!Mu(t))s=wp;else if(Tt(t))if(!isNaN(+t))s=wp;else{var c=gi(t);c&&(l=c,s=Vu)}else if(Qh(t)){var h=lt({},l);h.colorStops=pt(t.colorStops,function(d){return{offset:d.offset,color:gi(d.color)}}),Tw(t)?s=Ev:Aw(t)&&(s=Ov),l=h}a===0?this.valType=s:(s!==this.valType||s===Rw)&&(o=!0),this.discrete=this.discrete||o;var f={time:e,value:l,rawValue:t,percent:0};return i&&(f.easing=i,f.easingFunc=Ot(i)?i:Pu[i]||Mv(i)),r.push(f),f},n.prototype.prepare=function(e,t){var i=this.keyframes;this._needsSort&&i.sort(function(y,_){return y.time-_.time});for(var r=this.valType,a=i.length,o=i[a-1],s=this.discrete,l=Mp(r),u=Nw(r),c=0;c<a;c++){var h=i[c],f=h.value,d=o.value;h.percent=h.time/e,s||(l&&c!==a-1?EE(f,d,r):u&&zE(f.colorStops,d.colorStops))}if(!s&&r!==Ov&&t&&this.needsAnimate()&&t.needsAnimate()&&r===t.valType&&!t._finished){this._additiveTrack=t;for(var g=i[0].value,c=0;c<a;c++)r===wp?i[c].additiveValue=i[c].value-g:r===Vu?i[c].additiveValue=xp([],i[c].value,g,-1):Mp(r)&&(i[c].additiveValue=r===Sp?xp([],i[c].value,g,-1):Dw([],i[c].value,g,-1))}},n.prototype.step=function(e,t){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var i=this._additiveTrack!=null,r=i?"additiveValue":"value",a=this.valType,o=this.keyframes,s=o.length,l=this.propName,u=a===Vu,c,h=this._lastFr,f=Math.min,d,g;if(s===1)d=g=o[0];else{if(t<0)c=0;else if(t<this._lastFrP){var y=f(h+1,s-1);for(c=y;c>=0&&!(o[c].percent<=t);c--);c=f(c,s-2)}else{for(c=h;c<s&&!(o[c].percent>t);c++);c=f(c-1,s-2)}g=o[c+1],d=o[c]}if(d&&g){this._lastFr=c,this._lastFrP=t;var _=g.percent-d.percent,v=_===0?1:f((t-d.percent)/_,1);g.easingFunc&&(v=g.easingFunc(v));var p=i?this._additiveValue:u?Fu:e[l];if((Mp(a)||u)&&!p&&(p=this._additiveValue=[]),this.discrete)e[l]=v<1?d.rawValue:g.rawValue;else if(Mp(a))a===Sp?zv(p,d[r],g[r],v):NE(p,d[r],g[r],v);else if(Nw(a)){var x=d[r],b=g[r],S=a===Ev;e[l]={type:S?"linear":"radial",x:na(x.x,b.x,v),y:na(x.y,b.y,v),colorStops:pt(x.colorStops,function(I,A){var C=b.colorStops[A];return{offset:na(I.offset,C.offset,v),color:bp(zv([],I.color,C.color,v))}}),global:b.global},S?(e[l].x2=na(x.x2,b.x2,v),e[l].y2=na(x.y2,b.y2,v)):e[l].r=na(x.r,b.r,v)}else if(u)zv(p,d[r],g[r],v),i||(e[l]=bp(p));else{var M=na(d[r],g[r],v);i?this._additiveValue=M:e[l]=M}i&&this._addToTarget(e)}}},n.prototype._addToTarget=function(e){var t=this.valType,i=this.propName,r=this._additiveValue;t===wp?e[i]=e[i]+r:t===Vu?(gi(e[i],Fu),xp(Fu,Fu,r,1),e[i]=bp(Fu)):t===Sp?xp(e[i],e[i],r,1):t===Pw&&Dw(e[i],e[i],r,1)},n}(),Bv=function(){function n(e,t,i,r){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=t,t&&r){ev("Can' use additive animation on looped animation.");return}this._additiveAnimators=r,this._allowDiscrete=i}return n.prototype.getMaxTime=function(){return this._maxTime},n.prototype.getDelay=function(){return this._delay},n.prototype.getLoop=function(){return this._loop},n.prototype.getTarget=function(){return this._target},n.prototype.changeTarget=function(e){this._target=e},n.prototype.when=function(e,t,i){return this.whenWithKeys(e,t,se(t),i)},n.prototype.whenWithKeys=function(e,t,i,r){for(var a=this._tracks,o=0;o<i.length;o++){var s=i[o],l=a[s];if(!l){l=a[s]=new BE(s);var u=void 0,c=this._getAdditiveTrack(s);if(c){var h=c.keyframes,f=h[h.length-1];u=f&&f.value,c.valType===Vu&&u&&(u=bp(u))}else u=this._target[s];if(u==null)continue;e>0&&l.addKeyframe(0,Bu(u),r),this._trackKeys.push(s)}l.addKeyframe(e,Bu(t[s]),r)}return this._maxTime=Math.max(this._maxTime,e),this},n.prototype.pause=function(){this._clip.pause(),this._paused=!0},n.prototype.resume=function(){this._clip.resume(),this._paused=!1},n.prototype.isPaused=function(){return!!this._paused},n.prototype.duration=function(e){return this._maxTime=e,this._force=!0,this},n.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var t=e.length,i=0;i<t;i++)e[i].call(this)},n.prototype._abortedCallback=function(){this._setTracksFinished();var e=this.animation,t=this._abortedCbs;if(e&&e.removeClip(this._clip),this._clip=null,t)for(var i=0;i<t.length;i++)t[i].call(this)},n.prototype._setTracksFinished=function(){for(var e=this._tracks,t=this._trackKeys,i=0;i<t.length;i++)e[t[i]].setFinished()},n.prototype._getAdditiveTrack=function(e){var t,i=this._additiveAnimators;if(i)for(var r=0;r<i.length;r++){var a=i[r].getTrack(e);a&&(t=a)}return t},n.prototype.start=function(e){if(!(this._started>0)){this._started=1;for(var t=this,i=[],r=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,c=u.length;if(s.prepare(r,l),s.needsAnimate())if(!this._allowDiscrete&&s.discrete){var h=u[c-1];h&&(t._target[s.propName]=h.rawValue),s.setFinished()}else i.push(s)}if(i.length||this._force){var f=new bE({life:r,loop:this._loop,delay:this._delay||0,onframe:function(d){t._started=2;var g=t._additiveAnimators;if(g){for(var y=!1,_=0;_<g.length;_++)if(g[_]._clip){y=!0;break}y||(t._additiveAnimators=null)}for(var _=0;_<i.length;_++)i[_].step(t._target,d);var v=t._onframeCbs;if(v)for(var _=0;_<v.length;_++)v[_](t._target,d)},ondestroy:function(){t._doneCallback()}});this._clip=f,this.animation&&this.animation.addClip(f),e&&f.setEasing(e)}else this._doneCallback();return this}},n.prototype.stop=function(e){if(this._clip){var t=this._clip;e&&t.onframe(1),this._abortedCallback()}},n.prototype.delay=function(e){return this._delay=e,this},n.prototype.during=function(e){return e&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(e)),this},n.prototype.done=function(e){return e&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(e)),this},n.prototype.aborted=function(e){return e&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(e)),this},n.prototype.getClip=function(){return this._clip},n.prototype.getTrack=function(e){return this._tracks[e]},n.prototype.getTracks=function(){var e=this;return pt(this._trackKeys,function(t){return e._tracks[t]})},n.prototype.stopTracks=function(e,t){if(!e.length||!this._clip)return!0;for(var i=this._tracks,r=this._trackKeys,a=0;a<e.length;a++){var o=i[e[a]];o&&!o.isFinished()&&(t?o.step(this._target,1):this._started===1&&o.step(this._target,0),o.setFinished())}for(var s=!0,a=0;a<r.length;a++)if(!i[r[a]].isFinished()){s=!1;break}return s&&this._abortedCallback(),s},n.prototype.saveTo=function(e,t,i){if(e){t=t||this._trackKeys;for(var r=0;r<t.length;r++){var a=t[r],o=this._tracks[a];if(!(!o||o.isFinished())){var s=o.keyframes,l=s[i?0:s.length-1];l&&(e[a]=Bu(l.rawValue))}}}},n.prototype.__changeFinalValue=function(e,t){t=t||se(e);for(var i=0;i<t.length;i++){var r=t[i],a=this._tracks[r];if(a){var o=a.keyframes;if(o.length>1){var s=o.pop();a.addKeyframe(s.time,e[r]),a.prepare(this._maxTime,a.getAdditiveTrack())}}}},n}();function nl(){return new Date().getTime()}var VE=function(n){Q(e,n);function e(t){var i=n.call(this)||this;return i._running=!1,i._time=0,i._pausedTime=0,i._pauseStart=0,i._paused=!1,t=t||{},i.stage=t.stage||{},i}return e.prototype.addClip=function(t){t.animation&&this.removeClip(t),this._head?(this._tail.next=t,t.prev=this._tail,t.next=null,this._tail=t):this._head=this._tail=t,t.animation=this},e.prototype.addAnimator=function(t){t.animation=this;var i=t.getClip();i&&this.addClip(i)},e.prototype.removeClip=function(t){if(t.animation){var i=t.prev,r=t.next;i?i.next=r:this._head=r,r?r.prev=i:this._tail=i,t.next=t.prev=t.animation=null}},e.prototype.removeAnimator=function(t){var i=t.getClip();i&&this.removeClip(i),t.animation=null},e.prototype.update=function(t){for(var i=nl()-this._pausedTime,r=i-this._time,a=this._head;a;){var o=a.next,s=a.step(i,r);s&&(a.ondestroy(),this.removeClip(a)),a=o}this._time=i,t||(this.trigger("frame",r),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var t=this;this._running=!0;function i(){t._running&&(cp(i),!t._paused&&t.update())}cp(i)},e.prototype.start=function(){this._running||(this._time=nl(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=nl(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=nl()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){for(var t=this._head;t;){var i=t.next;t.prev=t.next=t.animation=null,t=i}this._head=this._tail=null},e.prototype.isFinished=function(){return this._head==null},e.prototype.animate=function(t,i){i=i||{},this.start();var r=new Bv(t,i.loop);return this.addAnimator(r),r},e}(Ci),FE=300,Vv=oe.domSupported,Fv=function(){var n=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],e=["touchstart","touchend","touchmove"],t={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},i=pt(n,function(r){var a=r.replace("mouse","pointer");return t.hasOwnProperty(a)?a:r});return{mouse:n,touch:e,pointer:i}}(),zw={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},Ew=!1;function Wv(n){var e=n.pointerType;return e==="pen"||e==="touch"}function WE(n){n.touching=!0,n.touchTimer!=null&&(clearTimeout(n.touchTimer),n.touchTimer=null),n.touchTimer=setTimeout(function(){n.touching=!1,n.touchTimer=null},700)}function Gv(n){n&&(n.zrByTouch=!0)}function GE(n,e){return ki(n.dom,new jE(n,e),!0)}function Ow(n,e){for(var t=e,i=!1;t&&t.nodeType!==9&&!(i=t.domBelongToZr||t!==e&&t===n.painterRoot);)t=t.parentNode;return i}var jE=function(){function n(e,t){this.stopPropagation=Je,this.stopImmediatePropagation=Je,this.preventDefault=Je,this.type=t.type,this.target=this.currentTarget=e.dom,this.pointerType=t.pointerType,this.clientX=t.clientX,this.clientY=t.clientY}return n}(),rr={mousedown:function(n){n=ki(this.dom,n),this.__mayPointerCapture=[n.zrX,n.zrY],this.trigger("mousedown",n)},mousemove:function(n){n=ki(this.dom,n);var e=this.__mayPointerCapture;e&&(n.zrX!==e[0]||n.zrY!==e[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",n)},mouseup:function(n){n=ki(this.dom,n),this.__togglePointerCapture(!1),this.trigger("mouseup",n)},mouseout:function(n){n=ki(this.dom,n);var e=n.toElement||n.relatedTarget;Ow(this,e)||(this.__pointerCapturing&&(n.zrEventControl="no_globalout"),this.trigger("mouseout",n))},wheel:function(n){Ew=!0,n=ki(this.dom,n),this.trigger("mousewheel",n)},mousewheel:function(n){Ew||(n=ki(this.dom,n),this.trigger("mousewheel",n))},touchstart:function(n){n=ki(this.dom,n),Gv(n),this.__lastTouchMoment=new Date,this.handler.processGesture(n,"start"),rr.mousemove.call(this,n),rr.mousedown.call(this,n)},touchmove:function(n){n=ki(this.dom,n),Gv(n),this.handler.processGesture(n,"change"),rr.mousemove.call(this,n)},touchend:function(n){n=ki(this.dom,n),Gv(n),this.handler.processGesture(n,"end"),rr.mouseup.call(this,n),+new Date-+this.__lastTouchMoment<FE&&rr.click.call(this,n)},pointerdown:function(n){rr.mousedown.call(this,n)},pointermove:function(n){Wv(n)||rr.mousemove.call(this,n)},pointerup:function(n){rr.mouseup.call(this,n)},pointerout:function(n){Wv(n)||rr.mouseout.call(this,n)}};E(["click","dblclick","contextmenu"],function(n){rr[n]=function(e){e=ki(this.dom,e),this.trigger(n,e)}});var jv={pointermove:function(n){Wv(n)||jv.mousemove.call(this,n)},pointerup:function(n){jv.mouseup.call(this,n)},mousemove:function(n){this.trigger("mousemove",n)},mouseup:function(n){var e=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",n),e&&(n.zrEventControl="only_globalout",this.trigger("mouseout",n))}};function HE(n,e){var t=e.domHandlers;oe.pointerEventsSupported?E(Fv.pointer,function(i){Ip(e,i,function(r){t[i].call(n,r)})}):(oe.touchEventsSupported&&E(Fv.touch,function(i){Ip(e,i,function(r){t[i].call(n,r),WE(e)})}),E(Fv.mouse,function(i){Ip(e,i,function(r){r=fv(r),e.touching||t[i].call(n,r)})}))}function UE(n,e){oe.pointerEventsSupported?E(zw.pointer,t):oe.touchEventsSupported||E(zw.mouse,t);function t(i){function r(a){a=fv(a),Ow(n,a.target)||(a=GE(n,a),e.domHandlers[i].call(n,a))}Ip(e,i,r,{capture:!0})}}function Ip(n,e,t,i){n.mounted[e]=t,n.listenerOpts[e]=i,gv(n.domTarget,e,t,i)}function Hv(n){var e=n.mounted;for(var t in e)e.hasOwnProperty(t)&&rE(n.domTarget,t,e[t],n.listenerOpts[t]);n.mounted={}}var Bw=function(){function n(e,t){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=e,this.domHandlers=t}return n}(),XE=function(n){Q(e,n);function e(t,i){var r=n.call(this)||this;return r.__pointerCapturing=!1,r.dom=t,r.painterRoot=i,r._localHandlerScope=new Bw(t,rr),Vv&&(r._globalHandlerScope=new Bw(document,jv)),HE(r,r._localHandlerScope),r}return e.prototype.dispose=function(){Hv(this._localHandlerScope),Vv&&Hv(this._globalHandlerScope)},e.prototype.setCursor=function(t){this.dom.style&&(this.dom.style.cursor=t||"default")},e.prototype.__togglePointerCapture=function(t){if(this.__mayPointerCapture=null,Vv&&+this.__pointerCapturing^+t){this.__pointerCapturing=t;var i=this._globalHandlerScope;t?UE(this,i):Hv(i)}},e}(Ci),Vw=1;oe.hasGlobalWindow&&(Vw=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var Tp=Vw,Uv=.4,Xv="#333",Zv="#ccc",ZE="#eee",Fw=ap,qE=5e-5;function zo(n){return n>qE||n<-5e-5}var Eo=[],il=[],qv=fi(),Kv=Math.abs,ia=function(){function n(){}return n.prototype.getLocalTransform=function(e){return n.getLocalTransform(this,e)},n.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},n.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},n.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},n.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},n.prototype.needLocalTransform=function(){return zo(this.rotation)||zo(this.x)||zo(this.y)||zo(this.scaleX-1)||zo(this.scaleY-1)||zo(this.skewX)||zo(this.skewY)},n.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,t=this.needLocalTransform(),i=this.transform;if(!(t||e)){i&&(Fw(i),this.invTransform=null);return}i=i||fi(),t?this.getLocalTransform(i):Fw(i),e&&(t?ta(i,e,i):yv(i,e)),this.transform=i,this._resolveGlobalScaleRatio(i)},n.prototype._resolveGlobalScaleRatio=function(e){var t=this.globalScaleRatio;if(t!=null&&t!==1){this.getGlobalScale(Eo);var i=Eo[0]<0?-1:1,r=Eo[1]<0?-1:1,a=((Eo[0]-i)*t+i)/Eo[0]||0,o=((Eo[1]-r)*t+r)/Eo[1]||0;e[0]*=a,e[1]*=a,e[2]*=o,e[3]*=o}this.invTransform=this.invTransform||fi(),Qs(this.invTransform,e)},n.prototype.getComputedTransform=function(){for(var e=this,t=[];e;)t.push(e),e=e.parent;for(;e=t.pop();)e.updateTransform();return this.transform},n.prototype.setLocalTransform=function(e){if(e){var t=e[0]*e[0]+e[1]*e[1],i=e[2]*e[2]+e[3]*e[3],r=Math.atan2(e[1],e[0]),a=Math.PI/2+r-Math.atan2(e[3],e[2]);i=Math.sqrt(i)*Math.cos(a),t=Math.sqrt(t),this.skewX=a,this.skewY=0,this.rotation=-r,this.x=+e[4],this.y=+e[5],this.scaleX=t,this.scaleY=i,this.originX=0,this.originY=0}},n.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,t=this.transform;e&&e.transform&&(e.invTransform=e.invTransform||fi(),ta(il,e.invTransform,t),t=il);var i=this.originX,r=this.originY;(i||r)&&(qv[4]=i,qv[5]=r,ta(il,t,qv),il[4]-=i,il[5]-=r,t=il),this.setLocalTransform(t)}},n.prototype.getGlobalScale=function(e){var t=this.transform;return e=e||[],t?(e[0]=Math.sqrt(t[0]*t[0]+t[1]*t[1]),e[1]=Math.sqrt(t[2]*t[2]+t[3]*t[3]),t[0]<0&&(e[0]=-e[0]),t[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},n.prototype.transformCoordToLocal=function(e,t){var i=[e,t],r=this.invTransform;return r&&An(i,i,r),i},n.prototype.transformCoordToGlobal=function(e,t){var i=[e,t],r=this.transform;return r&&An(i,i,r),i},n.prototype.getLineScale=function(){var e=this.transform;return e&&Kv(e[0]-1)>1e-10&&Kv(e[3]-1)>1e-10?Math.sqrt(Kv(e[0]*e[3]-e[2]*e[1])):1},n.prototype.copyTransform=function(e){Ww(this,e)},n.getLocalTransform=function(e,t){t=t||[];var i=e.originX||0,r=e.originY||0,a=e.scaleX,o=e.scaleY,s=e.anchorX,l=e.anchorY,u=e.rotation||0,c=e.x,h=e.y,f=e.skewX?Math.tan(e.skewX):0,d=e.skewY?Math.tan(-e.skewY):0;if(i||r||s||l){var g=i+s,y=r+l;t[4]=-g*a-f*y*o,t[5]=-y*o-d*g*a}else t[4]=t[5]=0;return t[0]=a,t[3]=o,t[1]=d*a,t[2]=f*o,u&&ko(t,t,u),t[4]+=i+c,t[5]+=r+h,t},n.initDefaultProps=function(){var e=n.prototype;e.scaleX=e.scaleY=e.globalScaleRatio=1,e.x=e.y=e.originX=e.originY=e.skewX=e.skewY=e.rotation=e.anchorX=e.anchorY=0}(),n}(),Tr=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function Ww(n,e){for(var t=0;t<Tr.length;t++){var i=Tr[t];n[i]=e[i]}}var Gw={};function vi(n,e){e=e||Pa;var t=Gw[e];t||(t=Gw[e]=new Nu(500));var i=t.get(n);return i==null&&(i=Ra.measureText(n,e).width,t.put(n,i)),i}function jw(n,e,t,i){var r=vi(n,e),a=Ap(e),o=Gu(0,r,t),s=rl(0,a,i),l=new $t(o,s,r,a);return l}function Wu(n,e,t,i){var r=((n||"")+"").split(`
|
|
52
|
+
`),a=r.length;if(a===1)return jw(r[0],e,t,i);for(var o=new $t(0,0,0,0),s=0;s<r.length;s++){var l=jw(r[s],e,t,i);s===0?o.copy(l):o.union(l)}return o}function Gu(n,e,t){return t==="right"?n-=e:t==="center"&&(n-=e/2),n}function rl(n,e,t){return t==="middle"?n-=e/2:t==="bottom"&&(n-=e),n}function Ap(n){return vi("国",n)}function ar(n,e){return typeof n=="string"?n.lastIndexOf("%")>=0?parseFloat(n)/100*e:parseFloat(n):n}function Cp(n,e,t){var i=e.position||"inside",r=e.distance!=null?e.distance:5,a=t.height,o=t.width,s=a/2,l=t.x,u=t.y,c="left",h="top";if(i instanceof Array)l+=ar(i[0],t.width),u+=ar(i[1],t.height),c=null,h=null;else switch(i){case"left":l-=r,u+=s,c="right",h="middle";break;case"right":l+=r+o,u+=s,h="middle";break;case"top":l+=o/2,u-=r,c="center",h="bottom";break;case"bottom":l+=o/2,u+=a+r,c="center";break;case"inside":l+=o/2,u+=s,c="center",h="middle";break;case"insideLeft":l+=r,u+=s,h="middle";break;case"insideRight":l+=o-r,u+=s,c="right",h="middle";break;case"insideTop":l+=o/2,u+=r,c="center";break;case"insideBottom":l+=o/2,u+=a-r,c="center",h="bottom";break;case"insideTopLeft":l+=r,u+=r;break;case"insideTopRight":l+=o-r,u+=r,c="right";break;case"insideBottomLeft":l+=r,u+=a-r,h="bottom";break;case"insideBottomRight":l+=o-r,u+=a-r,c="right",h="bottom";break}return n=n||{},n.x=l,n.y=u,n.align=c,n.verticalAlign=h,n}var Yv="__zr_normal__",Jv=Tr.concat(["ignore"]),KE=br(Tr,function(n,e){return n[e]=!0,n},{ignore:!1}),al={},YE=new $t(0,0,0,0),kp=function(){function n(e){this.id=Ub(),this.animators=[],this.currentStates=[],this.states={},this._init(e)}return n.prototype._init=function(e){this.attr(e)},n.prototype.drift=function(e,t,i){switch(this.draggable){case"horizontal":t=0;break;case"vertical":e=0;break}var r=this.transform;r||(r=this.transform=[1,0,0,1,0,0]),r[4]+=e,r[5]+=t,this.decomposeTransform(),this.markRedraw()},n.prototype.beforeUpdate=function(){},n.prototype.afterUpdate=function(){},n.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},n.prototype.updateInnerText=function(e){var t=this._textContent;if(t&&(!t.ignore||e)){this.textConfig||(this.textConfig={});var i=this.textConfig,r=i.local,a=t.innerTransformable,o=void 0,s=void 0,l=!1;a.parent=r?this:null;var u=!1;if(a.copyTransform(t),i.position!=null){var c=YE;i.layoutRect?c.copy(i.layoutRect):c.copy(this.getBoundingRect()),r||c.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(al,i,c):Cp(al,i,c),a.x=al.x,a.y=al.y,o=al.align,s=al.verticalAlign;var h=i.origin;if(h&&i.rotation!=null){var f=void 0,d=void 0;h==="center"?(f=c.width*.5,d=c.height*.5):(f=ar(h[0],c.width),d=ar(h[1],c.height)),u=!0,a.originX=-a.x+f+(r?0:c.x),a.originY=-a.y+d+(r?0:c.y)}}i.rotation!=null&&(a.rotation=i.rotation);var g=i.offset;g&&(a.x+=g[0],a.y+=g[1],u||(a.originX=-g[0],a.originY=-g[1]));var y=i.inside==null?typeof i.position=="string"&&i.position.indexOf("inside")>=0:i.inside,_=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),v=void 0,p=void 0,x=void 0;y&&this.canBeInsideText()?(v=i.insideFill,p=i.insideStroke,(v==null||v==="auto")&&(v=this.getInsideTextFill()),(p==null||p==="auto")&&(p=this.getInsideTextStroke(v),x=!0)):(v=i.outsideFill,p=i.outsideStroke,(v==null||v==="auto")&&(v=this.getOutsideFill()),(p==null||p==="auto")&&(p=this.getOutsideStroke(v),x=!0)),v=v||"#000",(v!==_.fill||p!==_.stroke||x!==_.autoStroke||o!==_.align||s!==_.verticalAlign)&&(l=!0,_.fill=v,_.stroke=p,_.autoStroke=x,_.align=o,_.verticalAlign=s,t.setDefaultTextStyle(_)),t.__dirty|=Mr,l&&t.dirtyStyle(!0)}},n.prototype.canBeInsideText=function(){return!0},n.prototype.getInsideTextFill=function(){return"#fff"},n.prototype.getInsideTextStroke=function(e){return"#000"},n.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?Zv:Xv},n.prototype.getOutsideStroke=function(e){var t=this.__zr&&this.__zr.getBackgroundColor(),i=typeof t=="string"&&gi(t);i||(i=[255,255,255,1]);for(var r=i[3],a=this.__zr.isDarkMode(),o=0;o<3;o++)i[o]=i[o]*r+(a?0:255)*(1-r);return i[3]=1,ea(i,"rgba")},n.prototype.traverse=function(e,t){},n.prototype.attrKV=function(e,t){e==="textConfig"?this.setTextConfig(t):e==="textContent"?this.setTextContent(t):e==="clipPath"?this.setClipPath(t):e==="extra"?(this.extra=this.extra||{},lt(this.extra,t)):this[e]=t},n.prototype.hide=function(){this.ignore=!0,this.markRedraw()},n.prototype.show=function(){this.ignore=!1,this.markRedraw()},n.prototype.attr=function(e,t){if(typeof e=="string")this.attrKV(e,t);else if(Vt(e))for(var i=e,r=se(i),a=0;a<r.length;a++){var o=r[a];this.attrKV(o,e[o])}return this.markRedraw(),this},n.prototype.saveCurrentToNormalState=function(e){this._innerSaveToNormal(e);for(var t=this._normalState,i=0;i<this.animators.length;i++){var r=this.animators[i],a=r.__fromStateTransition;if(!(r.getLoop()||a&&a!==Yv)){var o=r.targetName,s=o?t[o]:t;r.saveTo(s)}}},n.prototype._innerSaveToNormal=function(e){var t=this._normalState;t||(t=this._normalState={}),e.textConfig&&!t.textConfig&&(t.textConfig=this.textConfig),this._savePrimaryToNormal(e,t,Jv)},n.prototype._savePrimaryToNormal=function(e,t,i){for(var r=0;r<i.length;r++){var a=i[r];e[a]!=null&&!(a in t)&&(t[a]=this[a])}},n.prototype.hasState=function(){return this.currentStates.length>0},n.prototype.getState=function(e){return this.states[e]},n.prototype.ensureState=function(e){var t=this.states;return t[e]||(t[e]={}),t[e]},n.prototype.clearStates=function(e){this.useState(Yv,!1,e)},n.prototype.useState=function(e,t,i,r){var a=e===Yv,o=this.hasState();if(!(!o&&a)){var s=this.currentStates,l=this.stateTransition;if(!(Qt(s,e)>=0&&(t||s.length===1))){var u;if(this.stateProxy&&!a&&(u=this.stateProxy(e)),u||(u=this.states&&this.states[e]),!u&&!a){ev("State "+e+" not exists.");return}a||this.saveCurrentToNormalState(u);var c=!!(u&&u.hoverLayer||r);c&&this._toggleHoverLayerFlag(!0),this._applyStateObj(e,u,this._normalState,t,!i&&!this.__inHover&&l&&l.duration>0,l);var h=this._textContent,f=this._textGuide;return h&&h.useState(e,t,i,c),f&&f.useState(e,t,i,c),a?(this.currentStates=[],this._normalState={}):t?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!c&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=-2),u}}},n.prototype.useStates=function(e,t,i){if(!e.length)this.clearStates();else{var r=[],a=this.currentStates,o=e.length,s=o===a.length;if(s){for(var l=0;l<o;l++)if(e[l]!==a[l]){s=!1;break}}if(s)return;for(var l=0;l<o;l++){var u=e[l],c=void 0;this.stateProxy&&(c=this.stateProxy(u,e)),c||(c=this.states[u]),c&&r.push(c)}var h=r[o-1],f=!!(h&&h.hoverLayer||i);f&&this._toggleHoverLayerFlag(!0);var d=this._mergeStates(r),g=this.stateTransition;this.saveCurrentToNormalState(d),this._applyStateObj(e.join(","),d,this._normalState,!1,!t&&!this.__inHover&&g&&g.duration>0,g);var y=this._textContent,_=this._textGuide;y&&y.useStates(e,t,f),_&&_.useStates(e,t,f),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!f&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=-2)}},n.prototype.isSilent=function(){for(var e=this.silent,t=this.parent;!e&&t;){if(t.silent){e=!0;break}t=t.parent}return e},n.prototype._updateAnimationTargets=function(){for(var e=0;e<this.animators.length;e++){var t=this.animators[e];t.targetName&&t.changeTarget(this[t.targetName])}},n.prototype.removeState=function(e){var t=Qt(this.currentStates,e);if(t>=0){var i=this.currentStates.slice();i.splice(t,1),this.useStates(i)}},n.prototype.replaceState=function(e,t,i){var r=this.currentStates.slice(),a=Qt(r,e),o=Qt(r,t)>=0;a>=0?o?r.splice(a,1):r[a]=t:i&&!o&&r.push(t),this.useStates(r)},n.prototype.toggleState=function(e,t){t?this.useState(e,!0):this.removeState(e)},n.prototype._mergeStates=function(e){for(var t={},i,r=0;r<e.length;r++){var a=e[r];lt(t,a),a.textConfig&&(i=i||{},lt(i,a.textConfig))}return i&&(t.textConfig=i),t},n.prototype._applyStateObj=function(e,t,i,r,a,o){var s=!(t&&r);t&&t.textConfig?(this.textConfig=lt({},r?this.textConfig:i.textConfig),lt(this.textConfig,t.textConfig)):s&&i.textConfig&&(this.textConfig=i.textConfig);for(var l={},u=!1,c=0;c<Jv.length;c++){var h=Jv[c],f=a&&KE[h];t&&t[h]!=null?f?(u=!0,l[h]=t[h]):this[h]=t[h]:s&&i[h]!=null&&(f?(u=!0,l[h]=i[h]):this[h]=i[h])}if(!a)for(var c=0;c<this.animators.length;c++){var d=this.animators[c],g=d.targetName;d.getLoop()||d.__changeFinalValue(g?(t||i)[g]:t||i)}u&&this._transitionState(e,l,o)},n.prototype._attachComponent=function(e){if(!(e.__zr&&!e.__hostTarget)&&e!==this){var t=this.__zr;t&&e.addSelfToZr(t),e.__zr=t,e.__hostTarget=this}},n.prototype._detachComponent=function(e){e.__zr&&e.removeSelfFromZr(e.__zr),e.__zr=null,e.__hostTarget=null},n.prototype.getClipPath=function(){return this._clipPath},n.prototype.setClipPath=function(e){this._clipPath&&this._clipPath!==e&&this.removeClipPath(),this._attachComponent(e),this._clipPath=e,this.markRedraw()},n.prototype.removeClipPath=function(){var e=this._clipPath;e&&(this._detachComponent(e),this._clipPath=null,this.markRedraw())},n.prototype.getTextContent=function(){return this._textContent},n.prototype.setTextContent=function(e){var t=this._textContent;t!==e&&(t&&t!==e&&this.removeTextContent(),e.innerTransformable=new ia,this._attachComponent(e),this._textContent=e,this.markRedraw())},n.prototype.setTextConfig=function(e){this.textConfig||(this.textConfig={}),lt(this.textConfig,e),this.markRedraw()},n.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},n.prototype.removeTextContent=function(){var e=this._textContent;e&&(e.innerTransformable=null,this._detachComponent(e),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},n.prototype.getTextGuideLine=function(){return this._textGuide},n.prototype.setTextGuideLine=function(e){this._textGuide&&this._textGuide!==e&&this.removeTextGuideLine(),this._attachComponent(e),this._textGuide=e,this.markRedraw()},n.prototype.removeTextGuideLine=function(){var e=this._textGuide;e&&(this._detachComponent(e),this._textGuide=null,this.markRedraw())},n.prototype.markRedraw=function(){this.__dirty|=Mr;var e=this.__zr;e&&(this.__inHover?e.refreshHover():e.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},n.prototype.dirty=function(){this.markRedraw()},n.prototype._toggleHoverLayerFlag=function(e){this.__inHover=e;var t=this._textContent,i=this._textGuide;t&&(t.__inHover=e),i&&(i.__inHover=e)},n.prototype.addSelfToZr=function(e){if(this.__zr!==e){this.__zr=e;var t=this.animators;if(t)for(var i=0;i<t.length;i++)e.animation.addAnimator(t[i]);this._clipPath&&this._clipPath.addSelfToZr(e),this._textContent&&this._textContent.addSelfToZr(e),this._textGuide&&this._textGuide.addSelfToZr(e)}},n.prototype.removeSelfFromZr=function(e){if(this.__zr){this.__zr=null;var t=this.animators;if(t)for(var i=0;i<t.length;i++)e.animation.removeAnimator(t[i]);this._clipPath&&this._clipPath.removeSelfFromZr(e),this._textContent&&this._textContent.removeSelfFromZr(e),this._textGuide&&this._textGuide.removeSelfFromZr(e)}},n.prototype.animate=function(e,t,i){var r=e?this[e]:this,a=new Bv(r,t,i);return e&&(a.targetName=e),this.addAnimator(a,e),a},n.prototype.addAnimator=function(e,t){var i=this.__zr,r=this;e.during(function(){r.updateDuringAnimation(t)}).done(function(){var a=r.animators,o=Qt(a,e);o>=0&&a.splice(o,1)}),this.animators.push(e),i&&i.animation.addAnimator(e),i&&i.wakeUp()},n.prototype.updateDuringAnimation=function(e){this.markRedraw()},n.prototype.stopAnimation=function(e,t){for(var i=this.animators,r=i.length,a=[],o=0;o<r;o++){var s=i[o];!e||e===s.scope?s.stop(t):a.push(s)}return this.animators=a,this},n.prototype.animateTo=function(e,t,i){$v(this,e,t,i)},n.prototype.animateFrom=function(e,t,i){$v(this,e,t,i,!0)},n.prototype._transitionState=function(e,t,i,r){for(var a=$v(this,t,i,r),o=0;o<a.length;o++)a[o].__fromStateTransition=e},n.prototype.getBoundingRect=function(){return null},n.prototype.getPaintRect=function(){return null},n.initDefaultProps=function(){var e=n.prototype;e.type="element",e.name="",e.ignore=e.silent=e.isGroup=e.draggable=e.dragging=e.ignoreClip=e.__inHover=!1,e.__dirty=Mr;function t(i,r,a,o){Object.defineProperty(e,i,{get:function(){if(!this[r]){var l=this[r]=[];s(this,l)}return this[r]},set:function(l){this[a]=l[0],this[o]=l[1],this[r]=l,s(this,l)}});function s(l,u){Object.defineProperty(u,0,{get:function(){return l[a]},set:function(c){l[a]=c}}),Object.defineProperty(u,1,{get:function(){return l[o]},set:function(c){l[o]=c}})}}Object.defineProperty&&(t("position","_legacyPos","x","y"),t("scale","_legacyScale","scaleX","scaleY"),t("origin","_legacyOrigin","originX","originY"))}(),n}();tn(kp,Ci),tn(kp,ia);function $v(n,e,t,i,r){t=t||{};var a=[];Hw(n,"",n,e,t,i,a,r);var o=a.length,s=!1,l=t.done,u=t.aborted,c=function(){s=!0,o--,o<=0&&(s?l&&l():u&&u())},h=function(){o--,o<=0&&(s?l&&l():u&&u())};o||l&&l(),a.length>0&&t.during&&a[0].during(function(g,y){t.during(y)});for(var f=0;f<a.length;f++){var d=a[f];d.done(c),d.aborted(h),t.force&&d.duration(t.duration),d.start(t.easing)}return a}function Qv(n,e,t){for(var i=0;i<t;i++)n[i]=e[i]}function JE(n){return Nn(n[0])}function $E(n,e,t){if(Nn(e[t]))if(Nn(n[t])||(n[t]=[]),ri(e[t])){var i=e[t].length;n[t].length!==i&&(n[t]=new e[t].constructor(i),Qv(n[t],e[t],i))}else{var r=e[t],a=n[t],o=r.length;if(JE(r))for(var s=r[0].length,l=0;l<o;l++)a[l]?Qv(a[l],r[l],s):a[l]=Array.prototype.slice.call(r[l]);else Qv(a,r,o);a.length=r.length}else n[t]=e[t]}function QE(n,e){return n===e||Nn(n)&&Nn(e)&&tO(n,e)}function tO(n,e){var t=n.length;if(t!==e.length)return!1;for(var i=0;i<t;i++)if(n[i]!==e[i])return!1;return!0}function Hw(n,e,t,i,r,a,o,s){for(var l=se(i),u=r.duration,c=r.delay,h=r.additive,f=r.setToFinal,d=!Vt(a),g=n.animators,y=[],_=0;_<l.length;_++){var v=l[_],p=i[v];if(p!=null&&t[v]!=null&&(d||a[v]))if(Vt(p)&&!Nn(p)&&!Qh(p)){if(e){s||(t[v]=p,n.updateDuringAnimation(e));continue}Hw(n,v,t[v],p,r,a&&a[v],o,s)}else y.push(v);else s||(t[v]=p,n.updateDuringAnimation(e),y.push(v))}var x=y.length;if(!h&&x)for(var b=0;b<g.length;b++){var S=g[b];if(S.targetName===e){var M=S.stopTracks(y);if(M){var I=Qt(g,S);g.splice(I,1)}}}if(r.force||(y=Se(y,function(R){return!QE(i[R],t[R])}),x=y.length),x>0||r.force&&!o.length){var A=void 0,C=void 0,L=void 0;if(s){C={},f&&(A={});for(var b=0;b<x;b++){var v=y[b];C[v]=t[v],f?A[v]=i[v]:t[v]=i[v]}}else if(f){L={};for(var b=0;b<x;b++){var v=y[b];L[v]=Bu(t[v]),$E(t,i,v)}}var S=new Bv(t,!1,!1,h?Se(g,function(D){return D.targetName===e}):null);S.targetName=e,r.scope&&(S.scope=r.scope),f&&A&&S.whenWithKeys(0,A,y),L&&S.whenWithKeys(0,L,y),S.whenWithKeys(u??500,s?C:i,y).delay(c||0),n.addAnimator(S,e),o.push(S)}}var Gt=function(n){Q(e,n);function e(t){var i=n.call(this)||this;return i.isGroup=!0,i._children=[],i.attr(t),i}return e.prototype.childrenRef=function(){return this._children},e.prototype.children=function(){return this._children.slice()},e.prototype.childAt=function(t){return this._children[t]},e.prototype.childOfName=function(t){for(var i=this._children,r=0;r<i.length;r++)if(i[r].name===t)return i[r]},e.prototype.childCount=function(){return this._children.length},e.prototype.add=function(t){return t&&(t!==this&&t.parent!==this&&(this._children.push(t),this._doAdd(t))),this},e.prototype.addBefore=function(t,i){if(t&&t!==this&&t.parent!==this&&i&&i.parent===this){var r=this._children,a=r.indexOf(i);a>=0&&(r.splice(a,0,t),this._doAdd(t))}return this},e.prototype.replace=function(t,i){var r=Qt(this._children,t);return r>=0&&this.replaceAt(i,r),this},e.prototype.replaceAt=function(t,i){var r=this._children,a=r[i];if(t&&t!==this&&t.parent!==this&&t!==a){r[i]=t,a.parent=null;var o=this.__zr;o&&a.removeSelfFromZr(o),this._doAdd(t)}return this},e.prototype._doAdd=function(t){t.parent&&t.parent.remove(t),t.parent=this;var i=this.__zr;i&&i!==t.__zr&&t.addSelfToZr(i),i&&i.refresh()},e.prototype.remove=function(t){var i=this.__zr,r=this._children,a=Qt(r,t);return a<0?this:(r.splice(a,1),t.parent=null,i&&t.removeSelfFromZr(i),i&&i.refresh(),this)},e.prototype.removeAll=function(){for(var t=this._children,i=this.__zr,r=0;r<t.length;r++){var a=t[r];i&&a.removeSelfFromZr(i),a.parent=null}return t.length=0,this},e.prototype.eachChild=function(t,i){for(var r=this._children,a=0;a<r.length;a++){var o=r[a];t.call(i,o,a)}return this},e.prototype.traverse=function(t,i){for(var r=0;r<this._children.length;r++){var a=this._children[r],o=t.call(i,a);a.isGroup&&!o&&a.traverse(t,i)}return this},e.prototype.addSelfToZr=function(t){n.prototype.addSelfToZr.call(this,t);for(var i=0;i<this._children.length;i++){var r=this._children[i];r.addSelfToZr(t)}},e.prototype.removeSelfFromZr=function(t){n.prototype.removeSelfFromZr.call(this,t);for(var i=0;i<this._children.length;i++){var r=this._children[i];r.removeSelfFromZr(t)}},e.prototype.getBoundingRect=function(t){for(var i=new $t(0,0,0,0),r=t||this._children,a=[],o=null,s=0;s<r.length;s++){var l=r[s];if(!(l.ignore||l.invisible)){var u=l.getBoundingRect(),c=l.getLocalTransform(a);c?($t.applyTransform(i,u,c),o=o||i.clone(),o.union(i)):(o=o||u.clone(),o.union(u))}}return o||i},e}(kp);Gt.prototype.type="group";/*!
|
|
53
|
+
* ZRender, a high performance 2d drawing library.
|
|
54
|
+
*
|
|
55
|
+
* Copyright (c) 2013, Baidu Inc.
|
|
56
|
+
* All rights reserved.
|
|
57
|
+
*
|
|
58
|
+
* LICENSE
|
|
59
|
+
* https://github.com/ecomfe/zrender/blob/master/LICENSE.txt
|
|
60
|
+
*/var Lp={},Uw={};function eO(n){delete Uw[n]}function nO(n){if(!n)return!1;if(typeof n=="string")return vp(n,1)<Uv;if(n.colorStops){for(var e=n.colorStops,t=0,i=e.length,r=0;r<i;r++)t+=vp(e[r].color,1);return t/=i,t<Uv}return!1}var iO=function(){function n(e,t,i){var r=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,i=i||{},this.dom=t,this.id=e;var a=new vE,o=i.renderer||"canvas";Lp[o]||(o=se(Lp)[0]),i.useDirtyRect=i.useDirtyRect==null?!1:i.useDirtyRect;var s=new Lp[o](t,a,i,e),l=i.ssr||s.ssrOnly;this.storage=a,this.painter=s;var u=!oe.node&&!oe.worker&&!l?new XE(s.getViewportRoot(),s.root):null,c=i.useCoarsePointer,h=c==null||c==="auto"?oe.touchEventsSupported:!!c,f=44,d;h&&(d=Ut(i.pointerSize,f)),this.handler=new rw(a,s,u,s.root,d),this.animation=new VE({stage:{update:l?null:function(){return r._flush(!0)}}}),l||this.animation.start()}return n.prototype.add=function(e){this._disposed||!e||(this.storage.addRoot(e),e.addSelfToZr(this),this.refresh())},n.prototype.remove=function(e){this._disposed||!e||(this.storage.delRoot(e),e.removeSelfFromZr(this),this.refresh())},n.prototype.configLayer=function(e,t){this._disposed||(this.painter.configLayer&&this.painter.configLayer(e,t),this.refresh())},n.prototype.setBackgroundColor=function(e){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(e),this.refresh(),this._backgroundColor=e,this._darkMode=nO(e))},n.prototype.getBackgroundColor=function(){return this._backgroundColor},n.prototype.setDarkMode=function(e){this._darkMode=e},n.prototype.isDarkMode=function(){return this._darkMode},n.prototype.refreshImmediately=function(e){this._disposed||(e||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1)},n.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},n.prototype.flush=function(){this._disposed||this._flush(!1)},n.prototype._flush=function(e){var t,i=nl();this._needsRefresh&&(t=!0,this.refreshImmediately(e)),this._needsRefreshHover&&(t=!0,this.refreshHoverImmediately());var r=nl();t?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:r-i})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},n.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},n.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},n.prototype.refreshHover=function(){this._needsRefreshHover=!0},n.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover())},n.prototype.resize=function(e){this._disposed||(e=e||{},this.painter.resize(e.width,e.height),this.handler.resize())},n.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},n.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},n.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},n.prototype.setCursorStyle=function(e){this._disposed||this.handler.setCursorStyle(e)},n.prototype.findHover=function(e,t){if(!this._disposed)return this.handler.findHover(e,t)},n.prototype.on=function(e,t,i){return this._disposed||this.handler.on(e,t,i),this},n.prototype.off=function(e,t){this._disposed||this.handler.off(e,t)},n.prototype.trigger=function(e,t){this._disposed||this.handler.trigger(e,t)},n.prototype.clear=function(){if(!this._disposed){for(var e=this.storage.getRoots(),t=0;t<e.length;t++)e[t]instanceof Gt&&e[t].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},n.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,eO(this.id))},n}();function Xw(n,e){var t=new iO(Ub(),n,e);return Uw[t.id]=t,t}function rO(n,e){Lp[n]=e}var ty;function aO(n){if(typeof ty=="function")return ty(n)}function oO(n){ty=n}var sO=1e-4,Zw=20;function lO(n){return n.replace(/^\s+|\s+$/g,"")}function Ae(n,e,t,i){var r=e[0],a=e[1],o=t[0],s=t[1],l=a-r,u=s-o;if(l===0)return u===0?o:(o+s)/2;if(i)if(l>0){if(n<=r)return o;if(n>=a)return s}else{if(n>=r)return o;if(n<=a)return s}else{if(n===r)return o;if(n===a)return s}return(n-r)/l*u+o}function Mt(n,e){switch(n){case"center":case"middle":n="50%";break;case"left":case"top":n="0%";break;case"right":case"bottom":n="100%";break}return Tt(n)?lO(n).match(/%$/)?parseFloat(n)/100*e:parseFloat(n):n==null?NaN:+n}function qe(n,e,t){return e==null&&(e=10),e=Math.min(Math.max(0,e),Zw),n=(+n).toFixed(e),t?n:+n}function Pi(n){return n.sort(function(e,t){return e-t}),n}function Ar(n){if(n=+n,isNaN(n))return 0;if(n>1e-14){for(var e=1,t=0;t<15;t++,e*=10)if(Math.round(n*e)/e===n)return t}return uO(n)}function uO(n){var e=n.toString().toLowerCase(),t=e.indexOf("e"),i=t>0?+e.slice(t+1):0,r=t>0?t:e.length,a=e.indexOf("."),o=a<0?0:r-1-a;return Math.max(0,o-i)}function qw(n,e){var t=Math.log,i=Math.LN10,r=Math.floor(t(n[1]-n[0])/i),a=Math.round(t(Math.abs(e[1]-e[0]))/i),o=Math.min(Math.max(-r+a,0),20);return isFinite(o)?o:20}function cO(n,e){var t=br(n,function(d,g){return d+(isNaN(g)?0:g)},0);if(t===0)return[];for(var i=Math.pow(10,e),r=pt(n,function(d){return(isNaN(d)?0:d)/t*i*100}),a=i*100,o=pt(r,function(d){return Math.floor(d)}),s=br(o,function(d,g){return d+g},0),l=pt(r,function(d,g){return d-o[g]});s<a;){for(var u=Number.NEGATIVE_INFINITY,c=null,h=0,f=l.length;h<f;++h)l[h]>u&&(u=l[h],c=h);++o[c],l[c]=0,++s}return pt(o,function(d){return d/i})}function hO(n,e){var t=Math.max(Ar(n),Ar(e)),i=n+e;return t>Zw?i:qe(i,t)}var Kw=9007199254740991;function Yw(n){var e=Math.PI*2;return(n%e+e)%e}function ju(n){return n>-1e-4&&n<sO}var pO=/^(?:(\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 Cr(n){if(n instanceof Date)return n;if(Tt(n)){var e=pO.exec(n);if(!e)return new Date(NaN);if(e[8]){var t=+e[4]||0;return e[8].toUpperCase()!=="Z"&&(t-=+e[8].slice(0,3)),new Date(Date.UTC(+e[1],+(e[2]||1)-1,+e[3]||1,t,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0))}else return new Date(+e[1],+(e[2]||1)-1,+e[3]||1,+e[4]||0,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0)}else if(n==null)return new Date(NaN);return new Date(Math.round(n))}function dO(n){return Math.pow(10,ey(n))}function ey(n){if(n===0)return 0;var e=Math.floor(Math.log(n)/Math.LN10);return n/Math.pow(10,e)>=10&&e++,e}function Jw(n,e){var t=ey(n),i=Math.pow(10,t),r=n/i,a;return r<1.5?a=1:r<2.5?a=2:r<4?a=3:r<7?a=5:a=10,n=a*i,t>=-20?+n.toFixed(t<0?-t:0):n}function ny(n,e){var t=(n.length-1)*e+1,i=Math.floor(t),r=+n[i-1],a=t-i;return a?r+a*(n[i]-r):r}function $w(n){n.sort(function(l,u){return s(l,u,0)?-1:1});for(var e=-1/0,t=1,i=0;i<n.length;){for(var r=n[i].interval,a=n[i].close,o=0;o<2;o++)r[o]<=e&&(r[o]=e,a[o]=o?1:1-t),e=r[o],t=a[o];r[0]===r[1]&&a[0]*a[1]!==1?n.splice(i,1):i++}return n;function s(l,u,c){return l.interval[c]<u.interval[c]||l.interval[c]===u.interval[c]&&(l.close[c]-u.close[c]===(c?-1:1)||!c&&s(l,u,1))}}function ra(n){var e=parseFloat(n);return e==n&&(e!==0||!Tt(n)||n.indexOf("x")<=0)?e:NaN}function Qw(n){return!isNaN(ra(n))}function t2(){return Math.round(Math.random()*9)}function e2(n,e){return e===0?n:e2(e,n%e)}function n2(n,e){return n==null?e:e==null?n:n*e/e2(n,e)}function Me(n){throw new Error(n)}function i2(n,e,t){return(e-n)*t+n}var r2="series\0",a2="\0_ec_\0";function De(n){return n instanceof Array?n:n==null?[]:[n]}function Oo(n,e,t){if(n){n[e]=n[e]||{},n.emphasis=n.emphasis||{},n.emphasis[e]=n.emphasis[e]||{};for(var i=0,r=t.length;i<r;i++){var a=t[i];!n.emphasis[e].hasOwnProperty(a)&&n[e].hasOwnProperty(a)&&(n.emphasis[e][a]=n[e][a])}}}var o2=["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 ol(n){return Vt(n)&&!ht(n)&&!(n instanceof Date)?n.value:n}function fO(n){return Vt(n)&&!(n instanceof Array)}function s2(n,e,t){var i=t==="normalMerge",r=t==="replaceMerge",a=t==="replaceAll";n=n||[],e=(e||[]).slice();var o=Dt();E(e,function(l,u){if(!Vt(l)){e[u]=null;return}});var s=gO(n,o,t);return(i||r)&&vO(s,n,o,e),i&&yO(s,e),i||r?mO(s,e,r):a&&_O(s,e),xO(s),s}function gO(n,e,t){var i=[];if(t==="replaceAll")return i;for(var r=0;r<n.length;r++){var a=n[r];a&&a.id!=null&&e.set(a.id,r),i.push({existing:t==="replaceMerge"||Uu(a)?null:a,newOption:null,keyInfo:null,brandNew:null})}return i}function vO(n,e,t,i){E(i,function(r,a){if(!(!r||r.id==null)){var o=Hu(r.id),s=t.get(o);if(s!=null){var l=n[s];jn(!l.newOption,'Duplicated option on id "'+o+'".'),l.newOption=r,l.existing=e[s],i[a]=null}}})}function yO(n,e){E(e,function(t,i){if(!(!t||t.name==null))for(var r=0;r<n.length;r++){var a=n[r].existing;if(!n[r].newOption&&a&&(a.id==null||t.id==null)&&!Uu(t)&&!Uu(a)&&l2("name",a,t)){n[r].newOption=t,e[i]=null;return}}})}function mO(n,e,t){E(e,function(i){if(i){for(var r,a=0;(r=n[a])&&(r.newOption||Uu(r.existing)||r.existing&&i.id!=null&&!l2("id",i,r.existing));)a++;r?(r.newOption=i,r.brandNew=t):n.push({newOption:i,brandNew:t,existing:null,keyInfo:null}),a++}})}function _O(n,e){E(e,function(t){n.push({newOption:t,brandNew:!0,existing:null,keyInfo:null})})}function xO(n){var e=Dt();E(n,function(t){var i=t.existing;i&&e.set(i.id,t)}),E(n,function(t){var i=t.newOption;jn(!i||i.id==null||!e.get(i.id)||e.get(i.id)===t,"id duplicates: "+(i&&i.id)),i&&i.id!=null&&e.set(i.id,t),!t.keyInfo&&(t.keyInfo={})}),E(n,function(t,i){var r=t.existing,a=t.newOption,o=t.keyInfo;if(Vt(a)){if(o.name=a.name!=null?Hu(a.name):r?r.name:r2+i,r)o.id=Hu(r.id);else if(a.id!=null)o.id=Hu(a.id);else{var s=0;do o.id="\0"+o.name+"\0"+s++;while(e.get(o.id))}e.set(o.id,t)}})}function l2(n,e,t){var i=ln(e[n],null),r=ln(t[n],null);return i!=null&&r!=null&&i===r}function Hu(n){return ln(n,"")}function ln(n,e){return n==null?e:Tt(n)?n:ve(n)||iv(n)?n+"":e}function iy(n){var e=n.name;return!!(e&&e.indexOf(r2))}function Uu(n){return n&&n.id!=null&&Hu(n.id).indexOf(a2)===0}function bO(n){return a2+n}function wO(n,e,t){E(n,function(i){var r=i.newOption;Vt(r)&&(i.keyInfo.mainType=e,i.keyInfo.subType=SO(e,r,i.existing,t))})}function SO(n,e,t,i){var r=e.type?e.type:t?t.subType:i.determineSubType(n,e);return r}function MO(n,e){var t={},i={};return r(n||[],t),r(e||[],i,t),[a(t),a(i)];function r(o,s,l){for(var u=0,c=o.length;u<c;u++){var h=ln(o[u].seriesId,null);if(h==null)return;for(var f=De(o[u].dataIndex),d=l&&l[h],g=0,y=f.length;g<y;g++){var _=f[g];d&&d[_]?d[_]=null:(s[h]||(s[h]={}))[_]=1}}}function a(o,s){var l=[];for(var u in o)if(o.hasOwnProperty(u)&&o[u]!=null)if(s)l.push(+u);else{var c=a(o[u],!0);c.length&&l.push({seriesId:u,dataIndex:c})}return l}}function Bo(n,e){if(e.dataIndexInside!=null)return e.dataIndexInside;if(e.dataIndex!=null)return ht(e.dataIndex)?pt(e.dataIndex,function(t){return n.indexOfRawIndex(t)}):n.indexOfRawIndex(e.dataIndex);if(e.name!=null)return ht(e.name)?pt(e.name,function(t){return n.indexOfName(t)}):n.indexOfName(e.name)}function pe(){var n="__ec_inner_"+IO++;return function(e){return e[n]||(e[n]={})}}var IO=t2();function Xu(n,e,t){var i=ry(e,t),r=i.mainTypeSpecified,a=i.queryOptionMap,o=i.others,s=o,l=t?t.defaultMainType:null;return!r&&l&&a.set(l,{}),a.each(function(u,c){var h=Zu(n,c,u,{useDefault:l===c,enableAll:t&&t.enableAll!=null?t.enableAll:!0,enableNone:t&&t.enableNone!=null?t.enableNone:!0});s[c+"Models"]=h.models,s[c+"Model"]=h.models[0]}),s}function ry(n,e){var t;if(Tt(n)){var i={};i[n+"Index"]=0,t=i}else t=n;var r=Dt(),a={},o=!1;return E(t,function(s,l){if(l==="dataIndex"||l==="dataIndexInside"){a[l]=s;return}var u=l.match(/^(\w+)(Index|Id|Name)$/)||[],c=u[1],h=(u[2]||"").toLowerCase();if(!(!c||!h||e&&e.includeMainTypes&&Qt(e.includeMainTypes,c)<0)){o=o||!!c;var f=r.get(c)||r.set(c,{});f[h]=s}}),{mainTypeSpecified:o,queryOptionMap:r,others:a}}var en={useDefault:!0,enableAll:!1,enableNone:!1},TO={useDefault:!1,enableAll:!0,enableNone:!0};function Zu(n,e,t,i){i=i||en;var r=t.index,a=t.id,o=t.name,s={models:null,specified:r!=null||a!=null||o!=null};if(!s.specified){var l=void 0;return s.models=i.useDefault&&(l=n.getComponent(e))?[l]:[],s}return r==="none"||r===!1?(jn(i.enableNone,'`"none"` or `false` is not a valid value on index option.'),s.models=[],s):(r==="all"&&(jn(i.enableAll,'`"all"` is not a valid value on index option.'),r=a=o=null),s.models=n.queryComponents({mainType:e,index:r,id:a,name:o}),s)}function u2(n,e,t){n.setAttribute?n.setAttribute(e,t):n[e]=t}function AO(n,e){return n.getAttribute?n.getAttribute(e):n[e]}function CO(n){return n==="auto"?oe.domSupported?"html":"richText":n||"html"}function ay(n,e){var t=Dt(),i=[];return E(n,function(r){var a=e(r);(t.get(a)||(i.push(a),t.set(a,[]))).push(r)}),{keys:i,buckets:t}}function c2(n,e,t,i,r){var a=e==null||e==="auto";if(i==null)return i;if(ve(i)){var o=i2(t||0,i,r);return qe(o,a?Math.max(Ar(t||0),Ar(i)):e)}else{if(Tt(i))return r<1?t:i;for(var s=[],l=t,u=i,c=Math.max(l?l.length:0,u.length),h=0;h<c;++h){var f=n.getDimensionInfo(h);if(f&&f.type==="ordinal")s[h]=(r<1&&l?l:u)[h];else{var d=l&&l[h]?l[h]:0,g=u[h],o=i2(d,g,r);s[h]=qe(o,a?Math.max(Ar(d),Ar(g)):e)}}return s}}var kO=".",Vo="___EC__COMPONENT__CONTAINER___",h2="___EC__EXTENDED_CLASS___";function kr(n){var e={main:"",sub:""};if(n){var t=n.split(kO);e.main=t[0]||"",e.sub=t[1]||""}return e}function LO(n){jn(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(n),'componentType "'+n+'" illegal')}function DO(n){return!!(n&&n[h2])}function oy(n,e){n.$constructor=n,n.extend=function(t){var i=this,r;return PO(i)?r=function(a){Q(o,a);function o(){return a.apply(this,arguments)||this}return o}(i):(r=function(){(t.$constructor||i).apply(this,arguments)},Oz(r,this)),lt(r.prototype,t),r[h2]=!0,r.extend=this.extend,r.superCall=zO,r.superApply=EO,r.superClass=i,r}}function PO(n){return Ot(n)&&/^class\s/.test(Function.prototype.toString.call(n))}function p2(n,e){n.extend=e.extend}var RO=Math.round(Math.random()*10);function NO(n){var e=["__\0is_clz",RO++].join("_");n.prototype[e]=!0,n.isInstance=function(t){return!!(t&&t[e])}}function zO(n,e){for(var t=[],i=2;i<arguments.length;i++)t[i-2]=arguments[i];return this.superClass.prototype[e].apply(n,t)}function EO(n,e,t){return this.superClass.prototype[e].apply(n,t)}function Dp(n){var e={};n.registerClass=function(i){var r=i.type||i.prototype.type;if(r){LO(r),i.prototype.type=r;var a=kr(r);if(!a.sub)e[a.main]=i;else if(a.sub!==Vo){var o=t(a);o[a.sub]=i}}return i},n.getClass=function(i,r,a){var o=e[i];if(o&&o[Vo]&&(o=r?o[r]:null),a&&!o)throw new Error(r?"Component "+i+"."+(r||"")+" is used but not imported.":i+".type should be specified.");return o},n.getClassesByMainType=function(i){var r=kr(i),a=[],o=e[r.main];return o&&o[Vo]?E(o,function(s,l){l!==Vo&&a.push(s)}):a.push(o),a},n.hasClass=function(i){var r=kr(i);return!!e[r.main]},n.getAllClassMainTypes=function(){var i=[];return E(e,function(r,a){i.push(a)}),i},n.hasSubTypes=function(i){var r=kr(i),a=e[r.main];return a&&a[Vo]};function t(i){var r=e[i.main];return(!r||!r[Vo])&&(r=e[i.main]={},r[Vo]=!0),r}}function Fo(n,e){for(var t=0;t<n.length;t++)n[t][1]||(n[t][1]=n[t][0]);return e=e||!1,function(i,r,a){for(var o={},s=0;s<n.length;s++){var l=n[s][1];if(!(r&&Qt(r,l)>=0||a&&Qt(a,l)<0)){var u=i.getShallow(l,e);u!=null&&(o[n[s][0]]=u)}}return o}}var OO=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],BO=Fo(OO),VO=function(){function n(){}return n.prototype.getAreaStyle=function(e,t){return BO(this,e,t)},n}(),sy=new Nu(50);function FO(n){if(typeof n=="string"){var e=sy.get(n);return e&&e.image}else return n}function ly(n,e,t,i,r){if(n)if(typeof n=="string"){if(e&&e.__zrImageSrc===n||!t)return e;var a=sy.get(n),o={hostEl:t,cb:i,cbPayload:r};return a?(e=a.image,!Pp(e)&&a.pending.push(o)):(e=Ra.loadImage(n,d2,d2),e.__zrImageSrc=n,sy.put(n,e.__cachedImgObj={image:e,pending:[o]})),e}else return n;else return e}function d2(){var n=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e<n.pending.length;e++){var t=n.pending[e],i=t.cb;i&&i(this,t.cbPayload),t.hostEl.dirty()}n.pending.length=0}function Pp(n){return n&&n.width&&n.height}var uy=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function WO(n,e,t,i,r,a){if(!t){n.text="",n.isTruncated=!1;return}var o=(e+"").split(`
|
|
61
|
+
`);a=f2(t,i,r,a);for(var s=!1,l={},u=0,c=o.length;u<c;u++)g2(l,o[u],a),o[u]=l.textLine,s=s||l.isTruncated;n.text=o.join(`
|
|
62
|
+
`),n.isTruncated=s}function f2(n,e,t,i){i=i||{};var r=lt({},i);r.font=e,t=Ut(t,"..."),r.maxIterations=Ut(i.maxIterations,2);var a=r.minChar=Ut(i.minChar,0);r.cnCharWidth=vi("国",e);var o=r.ascCharWidth=vi("a",e);r.placeholder=Ut(i.placeholder,"");for(var s=n=Math.max(0,n-1),l=0;l<a&&s>=o;l++)s-=o;var u=vi(t,e);return u>s&&(t="",u=0),s=n-u,r.ellipsis=t,r.ellipsisWidth=u,r.contentWidth=s,r.containerWidth=n,r}function g2(n,e,t){var i=t.containerWidth,r=t.font,a=t.contentWidth;if(!i){n.textLine="",n.isTruncated=!1;return}var o=vi(e,r);if(o<=i){n.textLine=e,n.isTruncated=!1;return}for(var s=0;;s++){if(o<=a||s>=t.maxIterations){e+=t.ellipsis;break}var l=s===0?GO(e,a,t.ascCharWidth,t.cnCharWidth):o>0?Math.floor(e.length*a/o):0;e=e.substr(0,l),o=vi(e,r)}e===""&&(e=t.placeholder),n.textLine=e,n.isTruncated=!0}function GO(n,e,t,i){for(var r=0,a=0,o=n.length;a<o&&r<e;a++){var s=n.charCodeAt(a);r+=0<=s&&s<=127?t:i}return a}function jO(n,e){n!=null&&(n+="");var t=e.overflow,i=e.padding,r=e.font,a=t==="truncate",o=Ap(r),s=Ut(e.lineHeight,o),l=!!e.backgroundColor,u=e.lineOverflow==="truncate",c=!1,h=e.width,f;h!=null&&(t==="break"||t==="breakAll")?f=n?y2(n,e.font,h,t==="breakAll",0).lines:[]:f=n?n.split(`
|
|
63
|
+
`):[];var d=f.length*s,g=Ut(e.height,d);if(d>g&&u){var y=Math.floor(g/s);c=c||f.length>y,f=f.slice(0,y)}if(n&&a&&h!=null)for(var _=f2(h,r,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),v={},p=0;p<f.length;p++)g2(v,f[p],_),f[p]=v.textLine,c=c||v.isTruncated;for(var x=g,b=0,p=0;p<f.length;p++)b=Math.max(vi(f[p],r),b);h==null&&(h=b);var S=b;return i&&(x+=i[0]+i[2],S+=i[1]+i[3],h+=i[1]+i[3]),l&&(S=h),{lines:f,height:g,outerWidth:S,outerHeight:x,lineHeight:s,calculatedLineHeight:o,contentWidth:b,contentHeight:d,width:h,isTruncated:c}}var HO=function(){function n(){}return n}(),v2=function(){function n(e){this.tokens=[],e&&(this.tokens=e)}return n}(),UO=function(){function n(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[],this.isTruncated=!1}return n}();function XO(n,e){var t=new UO;if(n!=null&&(n+=""),!n)return t;for(var i=e.width,r=e.height,a=e.overflow,o=(a==="break"||a==="breakAll")&&i!=null?{width:i,accumWidth:0,breakAll:a==="breakAll"}:null,s=uy.lastIndex=0,l;(l=uy.exec(n))!=null;){var u=l.index;u>s&&cy(t,n.substring(s,u),e,o),cy(t,l[2],e,o,l[1]),s=uy.lastIndex}s<n.length&&cy(t,n.substring(s,n.length),e,o);var c=[],h=0,f=0,d=e.padding,g=a==="truncate",y=e.lineOverflow==="truncate",_={};function v(J,H,K){J.width=H,J.lineHeight=K,h+=K,f=Math.max(f,H)}t:for(var p=0;p<t.lines.length;p++){for(var x=t.lines[p],b=0,S=0,M=0;M<x.tokens.length;M++){var I=x.tokens[M],A=I.styleName&&e.rich[I.styleName]||{},C=I.textPadding=A.padding,L=C?C[1]+C[3]:0,R=I.font=A.font||e.font;I.contentHeight=Ap(R);var D=Ut(A.height,I.contentHeight);if(I.innerHeight=D,C&&(D+=C[0]+C[2]),I.height=D,I.lineHeight=wr(A.lineHeight,e.lineHeight,D),I.align=A&&A.align||e.align,I.verticalAlign=A&&A.verticalAlign||"middle",y&&r!=null&&h+I.lineHeight>r){var N=t.lines.length;M>0?(x.tokens=x.tokens.slice(0,M),v(x,S,b),t.lines=t.lines.slice(0,p+1)):t.lines=t.lines.slice(0,p),t.isTruncated=t.isTruncated||t.lines.length<N;break t}var k=A.width,O=k==null||k==="auto";if(typeof k=="string"&&k.charAt(k.length-1)==="%")I.percentWidth=k,c.push(I),I.contentWidth=vi(I.text,R);else{if(O){var F=A.backgroundColor,G=F&&F.image;G&&(G=FO(G),Pp(G)&&(I.width=Math.max(I.width,G.width*D/G.height)))}var q=g&&i!=null?i-S:null;q!=null&&q<I.width?!O||q<L?(I.text="",I.width=I.contentWidth=0):(WO(_,I.text,q-L,R,e.ellipsis,{minChar:e.truncateMinChar}),I.text=_.text,t.isTruncated=t.isTruncated||_.isTruncated,I.width=I.contentWidth=vi(I.text,R)):I.contentWidth=vi(I.text,R)}I.width+=L,S+=I.width,A&&(b=Math.max(b,I.lineHeight))}v(x,S,b)}t.outerWidth=t.width=Ut(i,f),t.outerHeight=t.height=Ut(r,h),t.contentHeight=h,t.contentWidth=f,d&&(t.outerWidth+=d[1]+d[3],t.outerHeight+=d[0]+d[2]);for(var p=0;p<c.length;p++){var I=c[p],j=I.percentWidth;I.width=parseInt(j,10)/100*t.width}return t}function cy(n,e,t,i,r){var a=e==="",o=r&&t.rich[r]||{},s=n.lines,l=o.font||t.font,u=!1,c,h;if(i){var f=o.padding,d=f?f[1]+f[3]:0;if(o.width!=null&&o.width!=="auto"){var g=ar(o.width,i.width)+d;s.length>0&&g+i.accumWidth>i.width&&(c=e.split(`
|
|
64
|
+
`),u=!0),i.accumWidth=g}else{var y=y2(e,l,i.width,i.breakAll,i.accumWidth);i.accumWidth=y.accumWidth+d,h=y.linesWidths,c=y.lines}}else c=e.split(`
|
|
65
|
+
`);for(var _=0;_<c.length;_++){var v=c[_],p=new HO;if(p.styleName=r,p.text=v,p.isLineHolder=!v&&!a,typeof o.width=="number"?p.width=o.width:p.width=h?h[_]:vi(v,l),!_&&!u){var x=(s[s.length-1]||(s[0]=new v2)).tokens,b=x.length;b===1&&x[0].isLineHolder?x[0]=p:(v||!b||a)&&x.push(p)}else s.push(new v2([p]))}}function ZO(n){var e=n.charCodeAt(0);return e>=32&&e<=591||e>=880&&e<=4351||e>=4608&&e<=5119||e>=7680&&e<=8303}var qO=br(",&?/;] ".split(""),function(n,e){return n[e]=!0,n},{});function KO(n){return ZO(n)?!!qO[n]:!0}function y2(n,e,t,i,r){for(var a=[],o=[],s="",l="",u=0,c=0,h=0;h<n.length;h++){var f=n.charAt(h);if(f===`
|
|
66
|
+
`){l&&(s+=l,c+=u),a.push(s),o.push(c),s="",l="",u=0,c=0;continue}var d=vi(f,e),g=i?!1:!KO(f);if(a.length?c+d>t:r+c+d>t){c?(s||l)&&(g?(s||(s=l,l="",u=0,c=u),a.push(s),o.push(c-u),l+=f,u+=d,s="",c=u):(l&&(s+=l,l="",u=0),a.push(s),o.push(c),s=f,c=d)):g?(a.push(l),o.push(u),l=f,u=d):(a.push(f),o.push(d));continue}c+=d,g?(l+=f,u+=d):(l&&(s+=l,l="",u=0),s+=f)}return!a.length&&!s&&(s=n,l="",u=0),l&&(s+=l),s&&(a.push(s),o.push(c)),a.length===1&&(c+=r),{accumWidth:c,lines:a,linesWidths:o}}var hy="__zr_style_"+Math.round(Math.random()*10),Wo={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Rp={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};Wo[hy]=!0;var m2=["z","z2","invisible"],YO=["invisible"],Ri=function(n){Q(e,n);function e(t){return n.call(this,t)||this}return e.prototype._init=function(t){for(var i=se(t),r=0;r<i.length;r++){var a=i[r];a==="style"?this.useStyle(t[a]):n.prototype.attrKV.call(this,a,t[a])}this.style||this.useStyle({})},e.prototype.beforeBrush=function(){},e.prototype.afterBrush=function(){},e.prototype.innerBeforeBrush=function(){},e.prototype.innerAfterBrush=function(){},e.prototype.shouldBePainted=function(t,i,r,a){var o=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&JO(this,t,i)||o&&!o[0]&&!o[3])return!1;if(r&&this.__clipPaths){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},e.prototype.contain=function(t,i){return this.rectContain(t,i)},e.prototype.traverse=function(t,i){t.call(i,this)},e.prototype.rectContain=function(t,i){var r=this.transformCoordToLocal(t,i),a=this.getBoundingRect();return a.contain(r[0],r[1])},e.prototype.getPaintRect=function(){var t=this._paintRect;if(!this._paintRect||this.__dirty){var i=this.transform,r=this.getBoundingRect(),a=this.style,o=a.shadowBlur||0,s=a.shadowOffsetX||0,l=a.shadowOffsetY||0;t=this._paintRect||(this._paintRect=new $t(0,0,0,0)),i?$t.applyTransform(t,r,i):t.copy(r),(o||s||l)&&(t.width+=o*2+Math.abs(s),t.height+=o*2+Math.abs(l),t.x=Math.min(t.x,t.x+s-o),t.y=Math.min(t.y,t.y+l-o));var u=this.dirtyRectTolerance;t.isZero()||(t.x=Math.floor(t.x-u),t.y=Math.floor(t.y-u),t.width=Math.ceil(t.width+1+u*2),t.height=Math.ceil(t.height+1+u*2))}return t},e.prototype.setPrevPaintRect=function(t){t?(this._prevPaintRect=this._prevPaintRect||new $t(0,0,0,0),this._prevPaintRect.copy(t)):this._prevPaintRect=null},e.prototype.getPrevPaintRect=function(){return this._prevPaintRect},e.prototype.animateStyle=function(t){return this.animate("style",t)},e.prototype.updateDuringAnimation=function(t){t==="style"?this.dirtyStyle():this.markRedraw()},e.prototype.attrKV=function(t,i){t!=="style"?n.prototype.attrKV.call(this,t,i):this.style?this.setStyle(i):this.useStyle(i)},e.prototype.setStyle=function(t,i){return typeof t=="string"?this.style[t]=i:lt(this.style,t),this.dirtyStyle(),this},e.prototype.dirtyStyle=function(t){t||this.markRedraw(),this.__dirty|=up,this._rect&&(this._rect=null)},e.prototype.dirty=function(){this.dirtyStyle()},e.prototype.styleChanged=function(){return!!(this.__dirty&up)},e.prototype.styleUpdated=function(){this.__dirty&=-3},e.prototype.createStyle=function(t){return ep(Wo,t)},e.prototype.useStyle=function(t){t[hy]||(t=this.createStyle(t)),this.__inHover?this.__hoverStyle=t:this.style=t,this.dirtyStyle()},e.prototype.isStyleObject=function(t){return t[hy]},e.prototype._innerSaveToNormal=function(t){n.prototype._innerSaveToNormal.call(this,t);var i=this._normalState;t.style&&!i.style&&(i.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(t,i,m2)},e.prototype._applyStateObj=function(t,i,r,a,o,s){n.prototype._applyStateObj.call(this,t,i,r,a,o,s);var l=!(i&&a),u;if(i&&i.style?o?a?u=i.style:(u=this._mergeStyle(this.createStyle(),r.style),this._mergeStyle(u,i.style)):(u=this._mergeStyle(this.createStyle(),a?this.style:r.style),this._mergeStyle(u,i.style)):l&&(u=r.style),u)if(o){var c=this.style;if(this.style=this.createStyle(l?{}:c),l)for(var h=se(c),f=0;f<h.length;f++){var d=h[f];d in u&&(u[d]=u[d],this.style[d]=c[d])}for(var g=se(u),f=0;f<g.length;f++){var d=g[f];this.style[d]=this.style[d]}this._transitionState(t,{style:u},s,this.getAnimationStyleProps())}else this.useStyle(u);for(var y=this.__inHover?YO:m2,f=0;f<y.length;f++){var d=y[f];i&&i[d]!=null?this[d]=i[d]:l&&r[d]!=null&&(this[d]=r[d])}},e.prototype._mergeStates=function(t){for(var i=n.prototype._mergeStates.call(this,t),r,a=0;a<t.length;a++){var o=t[a];o.style&&(r=r||{},this._mergeStyle(r,o.style))}return r&&(i.style=r),i},e.prototype._mergeStyle=function(t,i){return lt(t,i),t},e.prototype.getAnimationStyleProps=function(){return Rp},e.initDefaultProps=function(){var t=e.prototype;t.type="displayable",t.invisible=!1,t.z=0,t.z2=0,t.zlevel=0,t.culling=!1,t.cursor="pointer",t.rectHover=!1,t.incremental=!1,t._rect=null,t.dirtyRectTolerance=0,t.__dirty=Mr|up}(),e}(kp),py=new $t(0,0,0,0),dy=new $t(0,0,0,0);function JO(n,e,t){return py.copy(n.getBoundingRect()),n.transform&&py.applyTransform(n.transform),dy.width=e,dy.height=t,!py.intersect(dy)}var ai=Math.min,oi=Math.max,fy=Math.sin,gy=Math.cos,Go=Math.PI*2,Np=To(),zp=To(),Ep=To();function Op(n,e,t){if(n.length!==0){for(var i=n[0],r=i[0],a=i[0],o=i[1],s=i[1],l=1;l<n.length;l++)i=n[l],r=ai(r,i[0]),a=oi(a,i[0]),o=ai(o,i[1]),s=oi(s,i[1]);e[0]=r,e[1]=o,t[0]=a,t[1]=s}}function _2(n,e,t,i,r,a){r[0]=ai(n,t),r[1]=ai(e,i),a[0]=oi(n,t),a[1]=oi(e,i)}var x2=[],b2=[];function $O(n,e,t,i,r,a,o,s,l,u){var c=yw,h=dn,f=c(n,t,r,o,x2);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var d=0;d<f;d++){var g=h(n,t,r,o,x2[d]);l[0]=ai(g,l[0]),u[0]=oi(g,u[0])}f=c(e,i,a,s,b2);for(var d=0;d<f;d++){var y=h(e,i,a,s,b2[d]);l[1]=ai(y,l[1]),u[1]=oi(y,u[1])}l[0]=ai(n,l[0]),u[0]=oi(n,u[0]),l[0]=ai(o,l[0]),u[0]=oi(o,u[0]),l[1]=ai(e,l[1]),u[1]=oi(e,u[1]),l[1]=ai(s,l[1]),u[1]=oi(s,u[1])}function QO(n,e,t,i,r,a,o,s){var l=_w,u=wn,c=oi(ai(l(n,t,r),1),0),h=oi(ai(l(e,i,a),1),0),f=u(n,t,r,c),d=u(e,i,a,h);o[0]=ai(n,r,f),o[1]=ai(e,a,d),s[0]=oi(n,r,f),s[1]=oi(e,a,d)}function tB(n,e,t,i,r,a,o,s,l){var u=za,c=Ea,h=Math.abs(r-a);if(h%Go<1e-4&&h>1e-4){s[0]=n-t,s[1]=e-i,l[0]=n+t,l[1]=e+i;return}if(Np[0]=gy(r)*t+n,Np[1]=fy(r)*i+e,zp[0]=gy(a)*t+n,zp[1]=fy(a)*i+e,u(s,Np,zp),c(l,Np,zp),r=r%Go,r<0&&(r=r+Go),a=a%Go,a<0&&(a=a+Go),r>a&&!o?a+=Go:r<a&&o&&(r+=Go),o){var f=a;a=r,r=f}for(var d=0;d<a;d+=Math.PI/2)d>r&&(Ep[0]=gy(d)*t+n,Ep[1]=fy(d)*i+e,u(s,Ep,s),c(l,Ep,l))}var Ne={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},jo=[],Ho=[],Lr=[],Ga=[],Dr=[],Pr=[],vy=Math.min,yy=Math.max,Uo=Math.cos,Xo=Math.sin,aa=Math.abs,my=Math.PI,ja=my*2,_y=typeof Float32Array<"u",qu=[];function xy(n){var e=Math.round(n/my*1e8)/1e8;return e%2*my}function by(n,e){var t=xy(n[0]);t<0&&(t+=ja);var i=t-n[0],r=n[1];r+=i,!e&&r-t>=ja?r=t+ja:e&&t-r>=ja?r=t-ja:!e&&t>r?r=t+(ja-xy(t-r)):e&&t<r&&(r=t-(ja-xy(r-t))),n[0]=t,n[1]=r}var Rr=function(){function n(e){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,e&&(this._saveData=!1),this._saveData&&(this.data=[])}return n.prototype.increaseVersion=function(){this._version++},n.prototype.getVersion=function(){return this._version},n.prototype.setScale=function(e,t,i){i=i||0,i>0&&(this._ux=aa(i/Tp/e)||0,this._uy=aa(i/Tp/t)||0)},n.prototype.setDPR=function(e){this.dpr=e},n.prototype.setContext=function(e){this._ctx=e},n.prototype.getContext=function(){return this._ctx},n.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},n.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},n.prototype.moveTo=function(e,t){return this._drawPendingPt(),this.addData(Ne.M,e,t),this._ctx&&this._ctx.moveTo(e,t),this._x0=e,this._y0=t,this._xi=e,this._yi=t,this},n.prototype.lineTo=function(e,t){var i=aa(e-this._xi),r=aa(t-this._yi),a=i>this._ux||r>this._uy;if(this.addData(Ne.L,e,t),this._ctx&&a&&this._ctx.lineTo(e,t),a)this._xi=e,this._yi=t,this._pendingPtDist=0;else{var o=i*i+r*r;o>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=t,this._pendingPtDist=o)}return this},n.prototype.bezierCurveTo=function(e,t,i,r,a,o){return this._drawPendingPt(),this.addData(Ne.C,e,t,i,r,a,o),this._ctx&&this._ctx.bezierCurveTo(e,t,i,r,a,o),this._xi=a,this._yi=o,this},n.prototype.quadraticCurveTo=function(e,t,i,r){return this._drawPendingPt(),this.addData(Ne.Q,e,t,i,r),this._ctx&&this._ctx.quadraticCurveTo(e,t,i,r),this._xi=i,this._yi=r,this},n.prototype.arc=function(e,t,i,r,a,o){this._drawPendingPt(),qu[0]=r,qu[1]=a,by(qu,o),r=qu[0],a=qu[1];var s=a-r;return this.addData(Ne.A,e,t,i,i,r,s,0,o?0:1),this._ctx&&this._ctx.arc(e,t,i,r,a,o),this._xi=Uo(a)*i+e,this._yi=Xo(a)*i+t,this},n.prototype.arcTo=function(e,t,i,r,a){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,t,i,r,a),this},n.prototype.rect=function(e,t,i,r){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,t,i,r),this.addData(Ne.R,e,t,i,r),this},n.prototype.closePath=function(){this._drawPendingPt(),this.addData(Ne.Z);var e=this._ctx,t=this._x0,i=this._y0;return e&&e.closePath(),this._xi=t,this._yi=i,this},n.prototype.fill=function(e){e&&e.fill(),this.toStatic()},n.prototype.stroke=function(e){e&&e.stroke(),this.toStatic()},n.prototype.len=function(){return this._len},n.prototype.setData=function(e){var t=e.length;!(this.data&&this.data.length===t)&&_y&&(this.data=new Float32Array(t));for(var i=0;i<t;i++)this.data[i]=e[i];this._len=t},n.prototype.appendPath=function(e){e instanceof Array||(e=[e]);for(var t=e.length,i=0,r=this._len,a=0;a<t;a++)i+=e[a].len();_y&&this.data instanceof Float32Array&&(this.data=new Float32Array(r+i));for(var a=0;a<t;a++)for(var o=e[a].data,s=0;s<o.length;s++)this.data[r++]=o[s];this._len=r},n.prototype.addData=function(e,t,i,r,a,o,s,l,u){if(this._saveData){var c=this.data;this._len+arguments.length>c.length&&(this._expandData(),c=this.data);for(var h=0;h<arguments.length;h++)c[this._len++]=arguments[h]}},n.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},n.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var e=[],t=0;t<this._len;t++)e[t]=this.data[t];this.data=e}},n.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var e=this.data;e instanceof Array&&(e.length=this._len,_y&&this._len>11&&(this.data=new Float32Array(e)))}},n.prototype.getBoundingRect=function(){Lr[0]=Lr[1]=Dr[0]=Dr[1]=Number.MAX_VALUE,Ga[0]=Ga[1]=Pr[0]=Pr[1]=-Number.MAX_VALUE;var e=this.data,t=0,i=0,r=0,a=0,o;for(o=0;o<this._len;){var s=e[o++],l=o===1;switch(l&&(t=e[o],i=e[o+1],r=t,a=i),s){case Ne.M:t=r=e[o++],i=a=e[o++],Dr[0]=r,Dr[1]=a,Pr[0]=r,Pr[1]=a;break;case Ne.L:_2(t,i,e[o],e[o+1],Dr,Pr),t=e[o++],i=e[o++];break;case Ne.C:$O(t,i,e[o++],e[o++],e[o++],e[o++],e[o],e[o+1],Dr,Pr),t=e[o++],i=e[o++];break;case Ne.Q:QO(t,i,e[o++],e[o++],e[o],e[o+1],Dr,Pr),t=e[o++],i=e[o++];break;case Ne.A:var u=e[o++],c=e[o++],h=e[o++],f=e[o++],d=e[o++],g=e[o++]+d;o+=1;var y=!e[o++];l&&(r=Uo(d)*h+u,a=Xo(d)*f+c),tB(u,c,h,f,d,g,y,Dr,Pr),t=Uo(g)*h+u,i=Xo(g)*f+c;break;case Ne.R:r=t=e[o++],a=i=e[o++];var _=e[o++],v=e[o++];_2(r,a,r+_,a+v,Dr,Pr);break;case Ne.Z:t=r,i=a;break}za(Lr,Lr,Dr),Ea(Ga,Ga,Pr)}return o===0&&(Lr[0]=Lr[1]=Ga[0]=Ga[1]=0),new $t(Lr[0],Lr[1],Ga[0]-Lr[0],Ga[1]-Lr[1])},n.prototype._calculateLength=function(){var e=this.data,t=this._len,i=this._ux,r=this._uy,a=0,o=0,s=0,l=0;this._pathSegLen||(this._pathSegLen=[]);for(var u=this._pathSegLen,c=0,h=0,f=0;f<t;){var d=e[f++],g=f===1;g&&(a=e[f],o=e[f+1],s=a,l=o);var y=-1;switch(d){case Ne.M:a=s=e[f++],o=l=e[f++];break;case Ne.L:{var _=e[f++],v=e[f++],p=_-a,x=v-o;(aa(p)>i||aa(x)>r||f===t-1)&&(y=Math.sqrt(p*p+x*x),a=_,o=v);break}case Ne.C:{var b=e[f++],S=e[f++],_=e[f++],v=e[f++],M=e[f++],I=e[f++];y=yE(a,o,b,S,_,v,M,I,10),a=M,o=I;break}case Ne.Q:{var b=e[f++],S=e[f++],_=e[f++],v=e[f++];y=_E(a,o,b,S,_,v,10),a=_,o=v;break}case Ne.A:var A=e[f++],C=e[f++],L=e[f++],R=e[f++],D=e[f++],N=e[f++],k=N+D;f+=1,g&&(s=Uo(D)*L+A,l=Xo(D)*R+C),y=yy(L,R)*vy(ja,Math.abs(N)),a=Uo(k)*L+A,o=Xo(k)*R+C;break;case Ne.R:{s=a=e[f++],l=o=e[f++];var O=e[f++],F=e[f++];y=O*2+F*2;break}case Ne.Z:{var p=s-a,x=l-o;y=Math.sqrt(p*p+x*x),a=s,o=l;break}}y>=0&&(u[h++]=y,c+=y)}return this._pathLen=c,c},n.prototype.rebuildPath=function(e,t){var i=this.data,r=this._ux,a=this._uy,o=this._len,s,l,u,c,h,f,d=t<1,g,y,_=0,v=0,p,x=0,b,S;if(!(d&&(this._pathSegLen||this._calculateLength(),g=this._pathSegLen,y=this._pathLen,p=t*y,!p)))t:for(var M=0;M<o;){var I=i[M++],A=M===1;switch(A&&(u=i[M],c=i[M+1],s=u,l=c),I!==Ne.L&&x>0&&(e.lineTo(b,S),x=0),I){case Ne.M:s=u=i[M++],l=c=i[M++],e.moveTo(u,c);break;case Ne.L:{h=i[M++],f=i[M++];var C=aa(h-u),L=aa(f-c);if(C>r||L>a){if(d){var R=g[v++];if(_+R>p){var D=(p-_)/R;e.lineTo(u*(1-D)+h*D,c*(1-D)+f*D);break t}_+=R}e.lineTo(h,f),u=h,c=f,x=0}else{var N=C*C+L*L;N>x&&(b=h,S=f,x=N)}break}case Ne.C:{var k=i[M++],O=i[M++],F=i[M++],G=i[M++],q=i[M++],j=i[M++];if(d){var R=g[v++];if(_+R>p){var D=(p-_)/R;Va(u,k,F,q,D,jo),Va(c,O,G,j,D,Ho),e.bezierCurveTo(jo[1],Ho[1],jo[2],Ho[2],jo[3],Ho[3]);break t}_+=R}e.bezierCurveTo(k,O,F,G,q,j),u=q,c=j;break}case Ne.Q:{var k=i[M++],O=i[M++],F=i[M++],G=i[M++];if(d){var R=g[v++];if(_+R>p){var D=(p-_)/R;Ru(u,k,F,D,jo),Ru(c,O,G,D,Ho),e.quadraticCurveTo(jo[1],Ho[1],jo[2],Ho[2]);break t}_+=R}e.quadraticCurveTo(k,O,F,G),u=F,c=G;break}case Ne.A:var J=i[M++],H=i[M++],K=i[M++],ut=i[M++],ot=i[M++],at=i[M++],Nt=i[M++],Yt=!i[M++],wt=K>ut?K:ut,xt=aa(K-ut)>.001,zt=ot+at,bt=!1;if(d){var R=g[v++];_+R>p&&(zt=ot+at*(p-_)/R,bt=!0),_+=R}if(xt&&e.ellipse?e.ellipse(J,H,K,ut,Nt,ot,zt,Yt):e.arc(J,H,wt,ot,zt,Yt),bt)break t;A&&(s=Uo(ot)*K+J,l=Xo(ot)*ut+H),u=Uo(zt)*K+J,c=Xo(zt)*ut+H;break;case Ne.R:s=u=i[M],l=c=i[M+1],h=i[M++],f=i[M++];var Pt=i[M++],ae=i[M++];if(d){var R=g[v++];if(_+R>p){var z=p-_;e.moveTo(h,f),e.lineTo(h+vy(z,Pt),f),z-=Pt,z>0&&e.lineTo(h+Pt,f+vy(z,ae)),z-=ae,z>0&&e.lineTo(h+yy(Pt-z,0),f+ae),z-=Pt,z>0&&e.lineTo(h,f+yy(ae-z,0));break t}_+=R}e.rect(h,f,Pt,ae);break;case Ne.Z:if(d){var R=g[v++];if(_+R>p){var D=(p-_)/R;e.lineTo(u*(1-D)+s*D,c*(1-D)+l*D);break t}_+=R}e.closePath(),u=s,c=l}}},n.prototype.clone=function(){var e=new n,t=this.data;return e.data=t.slice?t.slice():Array.prototype.slice.call(t),e._len=this._len,e},n.CMD=Ne,n.initDefaultProps=function(){var e=n.prototype;e._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,e._version=0}(),n}();function Ha(n,e,t,i,r,a,o){if(r===0)return!1;var s=r,l=0,u=n;if(o>e+s&&o>i+s||o<e-s&&o<i-s||a>n+s&&a>t+s||a<n-s&&a<t-s)return!1;if(n!==t)l=(e-i)/(n-t),u=(n*i-t*e)/(n-t);else return Math.abs(a-n)<=s/2;var c=l*a-o+u,h=c*c/(l*l+1);return h<=s/2*s/2}function eB(n,e,t,i,r,a,o,s,l,u,c){if(l===0)return!1;var h=l;if(c>e+h&&c>i+h&&c>a+h&&c>s+h||c<e-h&&c<i-h&&c<a-h&&c<s-h||u>n+h&&u>t+h&&u>r+h&&u>o+h||u<n-h&&u<t-h&&u<r-h&&u<o-h)return!1;var f=mw(n,e,t,i,r,a,o,s,u,c,null);return f<=h/2}function w2(n,e,t,i,r,a,o,s,l){if(o===0)return!1;var u=o;if(l>e+u&&l>i+u&&l>a+u||l<e-u&&l<i-u&&l<a-u||s>n+u&&s>t+u&&s>r+u||s<n-u&&s<t-u&&s<r-u)return!1;var c=xw(n,e,t,i,r,a,s,l,null);return c<=u/2}var S2=Math.PI*2;function yi(n){return n%=S2,n<0&&(n+=S2),n}var Ku=Math.PI*2;function nB(n,e,t,i,r,a,o,s,l){if(o===0)return!1;var u=o;s-=n,l-=e;var c=Math.sqrt(s*s+l*l);if(c-u>t||c+u<t)return!1;if(Math.abs(i-r)%Ku<1e-4)return!0;if(a){var h=i;i=yi(r),r=yi(h)}else i=yi(i),r=yi(r);i>r&&(r+=Ku);var f=Math.atan2(l,s);return f<0&&(f+=Ku),f>=i&&f<=r||f+Ku>=i&&f+Ku<=r}function oa(n,e,t,i,r,a){if(a>e&&a>i||a<e&&a<i||i===e)return 0;var o=(a-e)/(i-e),s=i<e?1:-1;(o===1||o===0)&&(s=i<e?.5:-.5);var l=o*(t-n)+n;return l===r?1/0:l>r?s:0}var Ua=Rr.CMD,Zo=Math.PI*2,iB=1e-4;function rB(n,e){return Math.abs(n-e)<iB}var Xn=[-1,-1,-1],Ni=[-1,-1];function aB(){var n=Ni[0];Ni[0]=Ni[1],Ni[1]=n}function oB(n,e,t,i,r,a,o,s,l,u){if(u>e&&u>i&&u>a&&u>s||u<e&&u<i&&u<a&&u<s)return 0;var c=dp(e,i,a,s,u,Xn);if(c===0)return 0;for(var h=0,f=-1,d=void 0,g=void 0,y=0;y<c;y++){var _=Xn[y],v=_===0||_===1?.5:1,p=dn(n,t,r,o,_);p<l||(f<0&&(f=yw(e,i,a,s,Ni),Ni[1]<Ni[0]&&f>1&&aB(),d=dn(e,i,a,s,Ni[0]),f>1&&(g=dn(e,i,a,s,Ni[1]))),f===2?_<Ni[0]?h+=d<e?v:-v:_<Ni[1]?h+=g<d?v:-v:h+=s<g?v:-v:_<Ni[0]?h+=d<e?v:-v:h+=s<d?v:-v)}return h}function sB(n,e,t,i,r,a,o,s){if(s>e&&s>i&&s>a||s<e&&s<i&&s<a)return 0;var l=mE(e,i,a,s,Xn);if(l===0)return 0;var u=_w(e,i,a);if(u>=0&&u<=1){for(var c=0,h=wn(e,i,a,u),f=0;f<l;f++){var d=Xn[f]===0||Xn[f]===1?.5:1,g=wn(n,t,r,Xn[f]);g<o||(Xn[f]<u?c+=h<e?d:-d:c+=a<h?d:-d)}return c}else{var d=Xn[0]===0||Xn[0]===1?.5:1,g=wn(n,t,r,Xn[0]);return g<o?0:a<e?d:-d}}function lB(n,e,t,i,r,a,o,s){if(s-=e,s>t||s<-t)return 0;var l=Math.sqrt(t*t-s*s);Xn[0]=-l,Xn[1]=l;var u=Math.abs(i-r);if(u<1e-4)return 0;if(u>=Zo-1e-4){i=0,r=Zo;var c=a?1:-1;return o>=Xn[0]+n&&o<=Xn[1]+n?c:0}if(i>r){var h=i;i=r,r=h}i<0&&(i+=Zo,r+=Zo);for(var f=0,d=0;d<2;d++){var g=Xn[d];if(g+n>o){var y=Math.atan2(s,g),c=a?1:-1;y<0&&(y=Zo+y),(y>=i&&y<=r||y+Zo>=i&&y+Zo<=r)&&(y>Math.PI/2&&y<Math.PI*1.5&&(c=-c),f+=c)}}return f}function M2(n,e,t,i,r){for(var a=n.data,o=n.len(),s=0,l=0,u=0,c=0,h=0,f,d,g=0;g<o;){var y=a[g++],_=g===1;switch(y===Ua.M&&g>1&&(t||(s+=oa(l,u,c,h,i,r))),_&&(l=a[g],u=a[g+1],c=l,h=u),y){case Ua.M:c=a[g++],h=a[g++],l=c,u=h;break;case Ua.L:if(t){if(Ha(l,u,a[g],a[g+1],e,i,r))return!0}else s+=oa(l,u,a[g],a[g+1],i,r)||0;l=a[g++],u=a[g++];break;case Ua.C:if(t){if(eB(l,u,a[g++],a[g++],a[g++],a[g++],a[g],a[g+1],e,i,r))return!0}else s+=oB(l,u,a[g++],a[g++],a[g++],a[g++],a[g],a[g+1],i,r)||0;l=a[g++],u=a[g++];break;case Ua.Q:if(t){if(w2(l,u,a[g++],a[g++],a[g],a[g+1],e,i,r))return!0}else s+=sB(l,u,a[g++],a[g++],a[g],a[g+1],i,r)||0;l=a[g++],u=a[g++];break;case Ua.A:var v=a[g++],p=a[g++],x=a[g++],b=a[g++],S=a[g++],M=a[g++];g+=1;var I=!!(1-a[g++]);f=Math.cos(S)*x+v,d=Math.sin(S)*b+p,_?(c=f,h=d):s+=oa(l,u,f,d,i,r);var A=(i-v)*b/x+v;if(t){if(nB(v,p,b,S,S+M,I,e,A,r))return!0}else s+=lB(v,p,b,S,S+M,I,A,r);l=Math.cos(S+M)*x+v,u=Math.sin(S+M)*b+p;break;case Ua.R:c=l=a[g++],h=u=a[g++];var C=a[g++],L=a[g++];if(f=c+C,d=h+L,t){if(Ha(c,h,f,h,e,i,r)||Ha(f,h,f,d,e,i,r)||Ha(f,d,c,d,e,i,r)||Ha(c,d,c,h,e,i,r))return!0}else s+=oa(f,h,f,d,i,r),s+=oa(c,d,c,h,i,r);break;case Ua.Z:if(t){if(Ha(l,u,c,h,e,i,r))return!0}else s+=oa(l,u,c,h,i,r);l=c,u=h;break}}return!t&&!rB(u,h)&&(s+=oa(l,u,c,h,i,r)||0),s!==0}function uB(n,e,t){return M2(n,0,!1,e,t)}function cB(n,e,t,i){return M2(n,e,!0,t,i)}var Bp=Bt({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},Wo),hB={style:Bt({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Rp.style)},wy=Tr.concat(["invisible","culling","z","z2","zlevel","parent"]),re=function(n){Q(e,n);function e(t){return n.call(this,t)||this}return e.prototype.update=function(){var t=this;n.prototype.update.call(this);var i=this.style;if(i.decal){var r=this._decalEl=this._decalEl||new e;r.buildPath===e.prototype.buildPath&&(r.buildPath=function(l){t.buildPath(l,t.shape)}),r.silent=!0;var a=r.style;for(var o in i)a[o]!==i[o]&&(a[o]=i[o]);a.fill=i.fill?i.decal:null,a.decal=null,a.shadowColor=null,i.strokeFirst&&(a.stroke=null);for(var s=0;s<wy.length;++s)r[wy[s]]=this[wy[s]];r.__dirty|=Mr}else this._decalEl&&(this._decalEl=null)},e.prototype.getDecalElement=function(){return this._decalEl},e.prototype._init=function(t){var i=se(t);this.shape=this.getDefaultShape();var r=this.getDefaultStyle();r&&this.useStyle(r);for(var a=0;a<i.length;a++){var o=i[a],s=t[o];o==="style"?this.style?lt(this.style,s):this.useStyle(s):o==="shape"?lt(this.shape,s):n.prototype.attrKV.call(this,o,s)}this.style||this.useStyle({})},e.prototype.getDefaultStyle=function(){return null},e.prototype.getDefaultShape=function(){return{}},e.prototype.canBeInsideText=function(){return this.hasFill()},e.prototype.getInsideTextFill=function(){var t=this.style.fill;if(t!=="none"){if(Tt(t)){var i=vp(t,0);return i>.5?Xv:i>.2?ZE:Zv}else if(t)return Zv}return Xv},e.prototype.getInsideTextStroke=function(t){var i=this.style.fill;if(Tt(i)){var r=this.__zr,a=!!(r&&r.isDarkMode()),o=vp(t,0)<Uv;if(a===o)return i}},e.prototype.buildPath=function(t,i,r){},e.prototype.pathUpdated=function(){this.__dirty&=-5},e.prototype.getUpdatedPathProxy=function(t){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,t),this.path},e.prototype.createPathProxy=function(){this.path=new Rr(!1)},e.prototype.hasStroke=function(){var t=this.style,i=t.stroke;return!(i==null||i==="none"||!(t.lineWidth>0))},e.prototype.hasFill=function(){var t=this.style,i=t.fill;return i!=null&&i!=="none"},e.prototype.getBoundingRect=function(){var t=this._rect,i=this.style,r=!t;if(r){var a=!1;this.path||(a=!0,this.createPathProxy());var o=this.path;(a||this.__dirty&Du)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),t=o.getBoundingRect()}if(this._rect=t,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=t.clone());if(this.__dirty||r){s.copy(t);var l=i.strokeNoScale?this.getLineScale():1,u=i.lineWidth;if(!this.hasFill()){var c=this.strokeContainThreshold;u=Math.max(u,c??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 t},e.prototype.contain=function(t,i){var r=this.transformCoordToLocal(t,i),a=this.getBoundingRect(),o=this.style;if(t=r[0],i=r[1],a.contain(t,i)){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)),cB(s,l/u,t,i)))return!0}if(this.hasFill())return uB(s,t,i)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=Du,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},e.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},e.prototype.animateShape=function(t){return this.animate("shape",t)},e.prototype.updateDuringAnimation=function(t){t==="style"?this.dirtyStyle():t==="shape"?this.dirtyShape():this.markRedraw()},e.prototype.attrKV=function(t,i){t==="shape"?this.setShape(i):n.prototype.attrKV.call(this,t,i)},e.prototype.setShape=function(t,i){var r=this.shape;return r||(r=this.shape={}),typeof t=="string"?r[t]=i:lt(r,t),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(this.__dirty&Du)},e.prototype.createStyle=function(t){return ep(Bp,t)},e.prototype._innerSaveToNormal=function(t){n.prototype._innerSaveToNormal.call(this,t);var i=this._normalState;t.shape&&!i.shape&&(i.shape=lt({},this.shape))},e.prototype._applyStateObj=function(t,i,r,a,o,s){n.prototype._applyStateObj.call(this,t,i,r,a,o,s);var l=!(i&&a),u;if(i&&i.shape?o?a?u=i.shape:(u=lt({},r.shape),lt(u,i.shape)):(u=lt({},a?this.shape:r.shape),lt(u,i.shape)):l&&(u=r.shape),u)if(o){this.shape=lt({},this.shape);for(var c={},h=se(u),f=0;f<h.length;f++){var d=h[f];typeof u[d]=="object"?this.shape[d]=u[d]:c[d]=u[d]}this._transitionState(t,{shape:c},s)}else this.shape=u,this.dirtyShape()},e.prototype._mergeStates=function(t){for(var i=n.prototype._mergeStates.call(this,t),r,a=0;a<t.length;a++){var o=t[a];o.shape&&(r=r||{},this._mergeStyle(r,o.shape))}return r&&(i.shape=r),i},e.prototype.getAnimationStyleProps=function(){return hB},e.prototype.isZeroArea=function(){return!1},e.extend=function(t){var i=function(a){Q(o,a);function o(s){var l=a.call(this,s)||this;return t.init&&t.init.call(l,s),l}return o.prototype.getDefaultStyle=function(){return Wt(t.style)},o.prototype.getDefaultShape=function(){return Wt(t.shape)},o}(e);for(var r in t)typeof t[r]=="function"&&(i.prototype[r]=t[r]);return i},e.initDefaultProps=function(){var t=e.prototype;t.type="path",t.strokeContainThreshold=5,t.segmentIgnoreThreshold=0,t.subPixelOptimize=!1,t.autoBatch=!1,t.__dirty=Mr|up|Du}(),e}(Ri),pB=Bt({strokeFirst:!0,font:Pa,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},Bp),sl=function(n){Q(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.hasStroke=function(){var t=this.style,i=t.stroke;return i!=null&&i!=="none"&&t.lineWidth>0},e.prototype.hasFill=function(){var t=this.style,i=t.fill;return i!=null&&i!=="none"},e.prototype.createStyle=function(t){return ep(pB,t)},e.prototype.setBoundingRect=function(t){this._rect=t},e.prototype.getBoundingRect=function(){var t=this.style;if(!this._rect){var i=t.text;i!=null?i+="":i="";var r=Wu(i,t.font,t.textAlign,t.textBaseline);if(r.x+=t.x||0,r.y+=t.y||0,this.hasStroke()){var a=t.lineWidth;r.x-=a/2,r.y-=a/2,r.width+=a,r.height+=a}this._rect=r}return this._rect},e.initDefaultProps=function(){var t=e.prototype;t.dirtyRectTolerance=10}(),e}(Ri);sl.prototype.type="tspan";var dB=Bt({x:0,y:0},Wo),fB={style:Bt({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Rp.style)};function gB(n){return!!(n&&typeof n!="string"&&n.width&&n.height)}var Sn=function(n){Q(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.createStyle=function(t){return ep(dB,t)},e.prototype._getSize=function(t){var i=this.style,r=i[t];if(r!=null)return r;var a=gB(i.image)?i.image:this.__image;if(!a)return 0;var o=t==="width"?"height":"width",s=i[o];return s==null?a[t]:a[t]/a[o]*s},e.prototype.getWidth=function(){return this._getSize("width")},e.prototype.getHeight=function(){return this._getSize("height")},e.prototype.getAnimationStyleProps=function(){return fB},e.prototype.getBoundingRect=function(){var t=this.style;return this._rect||(this._rect=new $t(t.x||0,t.y||0,this.getWidth(),this.getHeight())),this._rect},e}(Ri);Sn.prototype.type="image";function vB(n,e){var t=e.x,i=e.y,r=e.width,a=e.height,o=e.r,s,l,u,c;r<0&&(t=t+r,r=-r),a<0&&(i=i+a,a=-a),typeof o=="number"?s=l=u=c=o:o instanceof Array?o.length===1?s=l=u=c=o[0]:o.length===2?(s=u=o[0],l=c=o[1]):o.length===3?(s=o[0],l=c=o[1],u=o[2]):(s=o[0],l=o[1],u=o[2],c=o[3]):s=l=u=c=0;var h;s+l>r&&(h=s+l,s*=r/h,l*=r/h),u+c>r&&(h=u+c,u*=r/h,c*=r/h),l+u>a&&(h=l+u,l*=a/h,u*=a/h),s+c>a&&(h=s+c,s*=a/h,c*=a/h),n.moveTo(t+s,i),n.lineTo(t+r-l,i),l!==0&&n.arc(t+r-l,i+l,l,-Math.PI/2,0),n.lineTo(t+r,i+a-u),u!==0&&n.arc(t+r-u,i+a-u,u,0,Math.PI/2),n.lineTo(t+c,i+a),c!==0&&n.arc(t+c,i+a-c,c,Math.PI/2,Math.PI),n.lineTo(t,i+s),s!==0&&n.arc(t+s,i+s,s,Math.PI,Math.PI*1.5)}var ll=Math.round;function I2(n,e,t){if(e){var i=e.x1,r=e.x2,a=e.y1,o=e.y2;n.x1=i,n.x2=r,n.y1=a,n.y2=o;var s=t&&t.lineWidth;return s&&(ll(i*2)===ll(r*2)&&(n.x1=n.x2=qo(i,s,!0)),ll(a*2)===ll(o*2)&&(n.y1=n.y2=qo(a,s,!0))),n}}function T2(n,e,t){if(e){var i=e.x,r=e.y,a=e.width,o=e.height;n.x=i,n.y=r,n.width=a,n.height=o;var s=t&&t.lineWidth;return s&&(n.x=qo(i,s,!0),n.y=qo(r,s,!0),n.width=Math.max(qo(i+a,s,!1)-n.x,a===0?0:1),n.height=Math.max(qo(r+o,s,!1)-n.y,o===0?0:1)),n}}function qo(n,e,t){if(!e)return n;var i=ll(n*2);return(i+ll(e))%2===0?i/2:(i+(t?1:-1))/2}var yB=function(){function n(){this.x=0,this.y=0,this.width=0,this.height=0}return n}(),mB={},de=function(n){Q(e,n);function e(t){return n.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new yB},e.prototype.buildPath=function(t,i){var r,a,o,s;if(this.subPixelOptimize){var l=T2(mB,i,this.style);r=l.x,a=l.y,o=l.width,s=l.height,l.r=i.r,i=l}else r=i.x,a=i.y,o=i.width,s=i.height;i.r?vB(t,i):t.rect(r,a,o,s)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e}(re);de.prototype.type="rect";var A2={fill:"#000"},C2=2,_B={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},Rp.style)},fe=function(n){Q(e,n);function e(t){var i=n.call(this)||this;return i.type="text",i._children=[],i._defaultStyle=A2,i.attr(t),i}return e.prototype.childrenRef=function(){return this._children},e.prototype.update=function(){n.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var t=0;t<this._children.length;t++){var i=this._children[t];i.zlevel=this.zlevel,i.z=this.z,i.z2=this.z2,i.culling=this.culling,i.cursor=this.cursor,i.invisible=this.invisible}},e.prototype.updateTransform=function(){var t=this.innerTransformable;t?(t.updateTransform(),t.transform&&(this.transform=t.transform)):n.prototype.updateTransform.call(this)},e.prototype.getLocalTransform=function(t){var i=this.innerTransformable;return i?i.getLocalTransform(t):n.prototype.getLocalTransform.call(this,t)},e.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),n.prototype.getComputedTransform.call(this)},e.prototype._updateSubTexts=function(){this._childCursor=0,wB(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},e.prototype.addSelfToZr=function(t){n.prototype.addSelfToZr.call(this,t);for(var i=0;i<this._children.length;i++)this._children[i].__zr=t},e.prototype.removeSelfFromZr=function(t){n.prototype.removeSelfFromZr.call(this,t);for(var i=0;i<this._children.length;i++)this._children[i].__zr=null},e.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var t=new $t(0,0,0,0),i=this._children,r=[],a=null,o=0;o<i.length;o++){var s=i[o],l=s.getBoundingRect(),u=s.getLocalTransform(r);u?(t.copy(l),t.applyTransform(u),a=a||t.clone(),a.union(t)):(a=a||l.clone(),a.union(l))}this._rect=a||t}return this._rect},e.prototype.setDefaultTextStyle=function(t){this._defaultStyle=t||A2},e.prototype.setTextContent=function(t){},e.prototype._mergeStyle=function(t,i){if(!i)return t;var r=i.rich,a=t.rich||r&&{};return lt(t,i),r&&a?(this._mergeRich(a,r),t.rich=a):a&&(t.rich=a),t},e.prototype._mergeRich=function(t,i){for(var r=se(i),a=0;a<r.length;a++){var o=r[a];t[o]=t[o]||{},lt(t[o],i[o])}},e.prototype.getAnimationStyleProps=function(){return _B},e.prototype._getOrCreateChild=function(t){var i=this._children[this._childCursor];return(!i||!(i instanceof t))&&(i=new t),this._children[this._childCursor++]=i,i.__zr=this.__zr,i.parent=this,i},e.prototype._updatePlainTexts=function(){var t=this.style,i=t.font||Pa,r=t.padding,a=O2(t),o=jO(a,t),s=Sy(t),l=!!t.backgroundColor,u=o.outerHeight,c=o.outerWidth,h=o.contentWidth,f=o.lines,d=o.lineHeight,g=this._defaultStyle;this.isTruncated=!!o.isTruncated;var y=t.x||0,_=t.y||0,v=t.align||g.align||"left",p=t.verticalAlign||g.verticalAlign||"top",x=y,b=rl(_,o.contentHeight,p);if(s||r){var S=Gu(y,c,v),M=rl(_,u,p);s&&this._renderBackground(t,t,S,M,c,u)}b+=d/2,r&&(x=E2(y,v,r),p==="top"?b+=r[0]:p==="bottom"&&(b-=r[2]));for(var I=0,A=!1,C=z2("fill"in t?t.fill:(A=!0,g.fill)),L=N2("stroke"in t?t.stroke:!l&&(!g.autoStroke||A)?(I=C2,g.stroke):null),R=t.textShadowBlur>0,D=t.width!=null&&(t.overflow==="truncate"||t.overflow==="break"||t.overflow==="breakAll"),N=o.calculatedLineHeight,k=0;k<f.length;k++){var O=this._getOrCreateChild(sl),F=O.createStyle();O.useStyle(F),F.text=f[k],F.x=x,F.y=b,F.textAlign=v,F.textBaseline="middle",F.opacity=t.opacity,F.strokeFirst=!0,R&&(F.shadowBlur=t.textShadowBlur||0,F.shadowColor=t.textShadowColor||"transparent",F.shadowOffsetX=t.textShadowOffsetX||0,F.shadowOffsetY=t.textShadowOffsetY||0),F.stroke=L,F.fill=C,L&&(F.lineWidth=t.lineWidth||I,F.lineDash=t.lineDash,F.lineDashOffset=t.lineDashOffset||0),F.font=i,D2(F,t),b+=d,D&&O.setBoundingRect(new $t(Gu(F.x,h,F.textAlign),rl(F.y,N,F.textBaseline),h,N))}},e.prototype._updateRichTexts=function(){var t=this.style,i=O2(t),r=XO(i,t),a=r.width,o=r.outerWidth,s=r.outerHeight,l=t.padding,u=t.x||0,c=t.y||0,h=this._defaultStyle,f=t.align||h.align,d=t.verticalAlign||h.verticalAlign;this.isTruncated=!!r.isTruncated;var g=Gu(u,o,f),y=rl(c,s,d),_=g,v=y;l&&(_+=l[3],v+=l[0]);var p=_+a;Sy(t)&&this._renderBackground(t,t,g,y,o,s);for(var x=!!t.backgroundColor,b=0;b<r.lines.length;b++){for(var S=r.lines[b],M=S.tokens,I=M.length,A=S.lineHeight,C=S.width,L=0,R=_,D=p,N=I-1,k=void 0;L<I&&(k=M[L],!k.align||k.align==="left");)this._placeToken(k,t,A,v,R,"left",x),C-=k.width,R+=k.width,L++;for(;N>=0&&(k=M[N],k.align==="right");)this._placeToken(k,t,A,v,D,"right",x),C-=k.width,D-=k.width,N--;for(R+=(a-(R-_)-(p-D)-C)/2;L<=N;)k=M[L],this._placeToken(k,t,A,v,R+k.width/2,"center",x),R+=k.width,L++;v+=A}},e.prototype._placeToken=function(t,i,r,a,o,s,l){var u=i.rich[t.styleName]||{};u.text=t.text;var c=t.verticalAlign,h=a+r/2;c==="top"?h=a+t.height/2:c==="bottom"&&(h=a+r-t.height/2);var f=!t.isLineHolder&&Sy(u);f&&this._renderBackground(u,i,s==="right"?o-t.width:s==="center"?o-t.width/2:o,h-t.height/2,t.width,t.height);var d=!!u.backgroundColor,g=t.textPadding;g&&(o=E2(o,s,g),h-=t.height/2-g[0]-t.innerHeight/2);var y=this._getOrCreateChild(sl),_=y.createStyle();y.useStyle(_);var v=this._defaultStyle,p=!1,x=0,b=z2("fill"in u?u.fill:"fill"in i?i.fill:(p=!0,v.fill)),S=N2("stroke"in u?u.stroke:"stroke"in i?i.stroke:!d&&!l&&(!v.autoStroke||p)?(x=C2,v.stroke):null),M=u.textShadowBlur>0||i.textShadowBlur>0;_.text=t.text,_.x=o,_.y=h,M&&(_.shadowBlur=u.textShadowBlur||i.textShadowBlur||0,_.shadowColor=u.textShadowColor||i.textShadowColor||"transparent",_.shadowOffsetX=u.textShadowOffsetX||i.textShadowOffsetX||0,_.shadowOffsetY=u.textShadowOffsetY||i.textShadowOffsetY||0),_.textAlign=s,_.textBaseline="middle",_.font=t.font||Pa,_.opacity=wr(u.opacity,i.opacity,1),D2(_,u),S&&(_.lineWidth=wr(u.lineWidth,i.lineWidth,x),_.lineDash=Ut(u.lineDash,i.lineDash),_.lineDashOffset=i.lineDashOffset||0,_.stroke=S),b&&(_.fill=b);var I=t.contentWidth,A=t.contentHeight;y.setBoundingRect(new $t(Gu(_.x,I,_.textAlign),rl(_.y,A,_.textBaseline),I,A))},e.prototype._renderBackground=function(t,i,r,a,o,s){var l=t.backgroundColor,u=t.borderWidth,c=t.borderColor,h=l&&l.image,f=l&&!h,d=t.borderRadius,g=this,y,_;if(f||t.lineHeight||u&&c){y=this._getOrCreateChild(de),y.useStyle(y.createStyle()),y.style.fill=null;var v=y.shape;v.x=r,v.y=a,v.width=o,v.height=s,v.r=d,y.dirtyShape()}if(f){var p=y.style;p.fill=l||null,p.fillOpacity=Ut(t.fillOpacity,1)}else if(h){_=this._getOrCreateChild(Sn),_.onload=function(){g.dirtyStyle()};var x=_.style;x.image=l.image,x.x=r,x.y=a,x.width=o,x.height=s}if(u&&c){var p=y.style;p.lineWidth=u,p.stroke=c,p.strokeOpacity=Ut(t.strokeOpacity,1),p.lineDash=t.borderDash,p.lineDashOffset=t.borderDashOffset||0,y.strokeContainThreshold=0,y.hasFill()&&y.hasStroke()&&(p.strokeFirst=!0,p.lineWidth*=2)}var b=(y||_).style;b.shadowBlur=t.shadowBlur||0,b.shadowColor=t.shadowColor||"transparent",b.shadowOffsetX=t.shadowOffsetX||0,b.shadowOffsetY=t.shadowOffsetY||0,b.opacity=wr(t.opacity,i.opacity,1)},e.makeFont=function(t){var i="";return P2(t)&&(i=[t.fontStyle,t.fontWeight,L2(t.fontSize),t.fontFamily||"sans-serif"].join(" ")),i&&nr(i)||t.textFont||t.font},e}(Ri),xB={left:!0,right:1,center:1},bB={top:1,bottom:1,middle:1},k2=["fontStyle","fontWeight","fontSize","fontFamily"];function L2(n){return typeof n=="string"&&(n.indexOf("px")!==-1||n.indexOf("rem")!==-1||n.indexOf("em")!==-1)?n:isNaN(+n)?$g+"px":n+"px"}function D2(n,e){for(var t=0;t<k2.length;t++){var i=k2[t],r=e[i];r!=null&&(n[i]=r)}}function P2(n){return n.fontSize!=null||n.fontFamily||n.fontWeight}function wB(n){return R2(n),E(n.rich,R2),n}function R2(n){if(n){n.font=fe.makeFont(n);var e=n.align;e==="middle"&&(e="center"),n.align=e==null||xB[e]?e:"left";var t=n.verticalAlign;t==="center"&&(t="middle"),n.verticalAlign=t==null||bB[t]?t:"top";var i=n.padding;i&&(n.padding=av(n.padding))}}function N2(n,e){return n==null||e<=0||n==="transparent"||n==="none"?null:n.image||n.colorStops?"#000":n}function z2(n){return n==null||n==="none"?null:n.image||n.colorStops?"#000":n}function E2(n,e,t){return e==="right"?n-t[1]:e==="center"?n+t[3]/2-t[1]/2:n+t[3]}function O2(n){var e=n.text;return e!=null&&(e+=""),e}function Sy(n){return!!(n.backgroundColor||n.lineHeight||n.borderWidth&&n.borderColor)}var jt=pe(),My=function(n,e,t,i){if(i){var r=jt(i);r.dataIndex=t,r.dataType=e,r.seriesIndex=n,r.ssrType="chart",i.type==="group"&&i.traverse(function(a){var o=jt(a);o.seriesIndex=n,o.dataIndex=t,o.dataType=e,o.ssrType="chart"})}},B2=1,V2={},F2=pe(),Iy=pe(),Ty=0,Yu=1,Vp=2,Zn=["emphasis","blur","select"],Ju=["normal","emphasis","blur","select"],ul=10,SB=9,Ko="highlight",Fp="downplay",$u="select",Wp="unselect",Qu="toggleSelect";function cl(n){return n!=null&&n!=="none"}function Gp(n,e,t){n.onHoverStateChange&&(n.hoverState||0)!==t&&n.onHoverStateChange(e),n.hoverState=t}function W2(n){Gp(n,"emphasis",Vp)}function G2(n){n.hoverState===Vp&&Gp(n,"normal",Ty)}function Ay(n){Gp(n,"blur",Yu)}function j2(n){n.hoverState===Yu&&Gp(n,"normal",Ty)}function MB(n){n.selected=!0}function IB(n){n.selected=!1}function H2(n,e,t){e(n,t)}function sa(n,e,t){H2(n,e,t),n.isGroup&&n.traverse(function(i){H2(i,e,t)})}function jp(n,e){switch(e){case"emphasis":n.hoverState=Vp;break;case"normal":n.hoverState=Ty;break;case"blur":n.hoverState=Yu;break;case"select":n.selected=!0}}function TB(n,e,t,i){for(var r=n.style,a={},o=0;o<e.length;o++){var s=e[o],l=r[s];a[s]=l??i[s]}for(var o=0;o<n.animators.length;o++){var u=n.animators[o];u.__fromStateTransition&&u.__fromStateTransition.indexOf(t)<0&&u.targetName==="style"&&u.saveTo(a,e)}return a}function AB(n,e,t,i){var r=t&&Qt(t,"select")>=0,a=!1;if(n instanceof re){var o=F2(n),s=r&&o.selectFill||o.normalFill,l=r&&o.selectStroke||o.normalStroke;if(cl(s)||cl(l)){i=i||{};var u=i.style||{};u.fill==="inherit"?(a=!0,i=lt({},i),u=lt({},u),u.fill=s):!cl(u.fill)&&cl(s)?(a=!0,i=lt({},i),u=lt({},u),u.fill=Dv(s)):!cl(u.stroke)&&cl(l)&&(a||(i=lt({},i),u=lt({},u)),u.stroke=Dv(l)),i.style=u}}if(i&&i.z2==null){a||(i=lt({},i));var c=n.z2EmphasisLift;i.z2=n.z2+(c??ul)}return i}function CB(n,e,t){if(t&&t.z2==null){t=lt({},t);var i=n.z2SelectLift;t.z2=n.z2+(i??SB)}return t}function kB(n,e,t){var i=Qt(n.currentStates,e)>=0,r=n.style.opacity,a=i?null:TB(n,["opacity"],e,{opacity:1});t=t||{};var o=t.style||{};return o.opacity==null&&(t=lt({},t),o=lt({opacity:i?r:a.opacity*.1},o),t.style=o),t}function Cy(n,e){var t=this.states[n];if(this.style){if(n==="emphasis")return AB(this,n,e,t);if(n==="blur")return kB(this,n,t);if(n==="select")return CB(this,n,t)}return t}function Yo(n){n.stateProxy=Cy;var e=n.getTextContent(),t=n.getTextGuideLine();e&&(e.stateProxy=Cy),t&&(t.stateProxy=Cy)}function U2(n,e){!Y2(n,e)&&!n.__highByOuter&&sa(n,W2)}function X2(n,e){!Y2(n,e)&&!n.__highByOuter&&sa(n,G2)}function la(n,e){n.__highByOuter|=1<<(e||0),sa(n,W2)}function ua(n,e){!(n.__highByOuter&=~(1<<(e||0)))&&sa(n,G2)}function Z2(n){sa(n,Ay)}function ky(n){sa(n,j2)}function q2(n){sa(n,MB)}function K2(n){sa(n,IB)}function Y2(n,e){return n.__highDownSilentOnTouch&&e.zrByTouch}function J2(n){var e=n.getModel(),t=[],i=[];e.eachComponent(function(r,a){var o=Iy(a),s=r==="series",l=s?n.getViewOfSeriesModel(a):n.getViewOfComponentModel(a);!s&&i.push(l),o.isBlured&&(l.group.traverse(function(u){j2(u)}),s&&t.push(a)),o.isBlured=!1}),E(i,function(r){r&&r.toggleBlurSeries&&r.toggleBlurSeries(t,!1,e)})}function Ly(n,e,t,i){var r=i.getModel();t=t||"coordinateSystem";function a(u,c){for(var h=0;h<c.length;h++){var f=u.getItemGraphicEl(c[h]);f&&ky(f)}}if(n!=null&&!(!e||e==="none")){var o=r.getSeriesByIndex(n),s=o.coordinateSystem;s&&s.master&&(s=s.master);var l=[];r.eachSeries(function(u){var c=o===u,h=u.coordinateSystem;h&&h.master&&(h=h.master);var f=h&&s?h===s:c;if(!(t==="series"&&!c||t==="coordinateSystem"&&!f||e==="series"&&c)){var d=i.getViewOfSeriesModel(u);if(d.group.traverse(function(_){_.__highByOuter&&c&&e==="self"||Ay(_)}),Nn(e))a(u.getData(),e);else if(Vt(e))for(var g=se(e),y=0;y<g.length;y++)a(u.getData(g[y]),e[g[y]]);l.push(u),Iy(u).isBlured=!0}}),r.eachComponent(function(u,c){if(u!=="series"){var h=i.getViewOfComponentModel(c);h&&h.toggleBlurSeries&&h.toggleBlurSeries(l,!0,r)}})}}function Dy(n,e,t){if(!(n==null||e==null)){var i=t.getModel().getComponent(n,e);if(i){Iy(i).isBlured=!0;var r=t.getViewOfComponentModel(i);!r||!r.focusBlurEnabled||r.group.traverse(function(a){Ay(a)})}}}function LB(n,e,t){var i=n.seriesIndex,r=n.getData(e.dataType);if(r){var a=Bo(r,e);a=(ht(a)?a[0]:a)||0;var o=r.getItemGraphicEl(a);if(!o)for(var s=r.count(),l=0;!o&&l<s;)o=r.getItemGraphicEl(l++);if(o){var u=jt(o);Ly(i,u.focus,u.blurScope,t)}else{var c=n.get(["emphasis","focus"]),h=n.get(["emphasis","blurScope"]);c!=null&&Ly(i,c,h,t)}}}function Py(n,e,t,i){var r={focusSelf:!1,dispatchers:null};if(n==null||n==="series"||e==null||t==null)return r;var a=i.getModel().getComponent(n,e);if(!a)return r;var o=i.getViewOfComponentModel(a);if(!o||!o.findHighDownDispatchers)return r;for(var s=o.findHighDownDispatchers(t),l,u=0;u<s.length;u++)if(jt(s[u]).focus==="self"){l=!0;break}return{focusSelf:l,dispatchers:s}}function DB(n,e,t){var i=jt(n),r=Py(i.componentMainType,i.componentIndex,i.componentHighDownName,t),a=r.dispatchers,o=r.focusSelf;a?(o&&Dy(i.componentMainType,i.componentIndex,t),E(a,function(s){return U2(s,e)})):(Ly(i.seriesIndex,i.focus,i.blurScope,t),i.focus==="self"&&Dy(i.componentMainType,i.componentIndex,t),U2(n,e))}function PB(n,e,t){J2(t);var i=jt(n),r=Py(i.componentMainType,i.componentIndex,i.componentHighDownName,t).dispatchers;r?E(r,function(a){return X2(a,e)}):X2(n,e)}function RB(n,e,t){if(Ny(e)){var i=e.dataType,r=n.getData(i),a=Bo(r,e);ht(a)||(a=[a]),n[e.type===Qu?"toggleSelect":e.type===$u?"select":"unselect"](a,i)}}function $2(n){var e=n.getAllData();E(e,function(t){var i=t.data,r=t.type;i.eachItemGraphicEl(function(a,o){n.isSelected(o,r)?q2(a):K2(a)})})}function NB(n){var e=[];return n.eachSeries(function(t){var i=t.getAllData();E(i,function(r){r.data;var a=r.type,o=t.getSelectedDataIndices();if(o.length>0){var s={dataIndex:o,seriesIndex:t.seriesIndex};a!=null&&(s.dataType=a),e.push(s)}})}),e}function Jo(n,e,t){$o(n,!0),sa(n,Yo),Ry(n,e,t)}function zB(n){$o(n,!1)}function Ue(n,e,t,i){i?zB(n):Jo(n,e,t)}function Ry(n,e,t){var i=jt(n);e!=null?(i.focus=e,i.blurScope=t):i.focus&&(i.focus=null)}var Q2=["emphasis","blur","select"],EB={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function Cn(n,e,t,i){t=t||"itemStyle";for(var r=0;r<Q2.length;r++){var a=Q2[r],o=e.getModel([a,t]),s=n.ensureState(a);s.style=i?i(o):o[EB[t]]()}}function $o(n,e){var t=e===!1,i=n;n.highDownSilentOnTouch&&(i.__highDownSilentOnTouch=n.highDownSilentOnTouch),(!t||i.__highDownDispatcher)&&(i.__highByOuter=i.__highByOuter||0,i.__highDownDispatcher=!t)}function tc(n){return!!(n&&n.__highDownDispatcher)}function OB(n,e,t){var i=jt(n);i.componentMainType=e.mainType,i.componentIndex=e.componentIndex,i.componentHighDownName=t}function BB(n){var e=V2[n];return e==null&&B2<=32&&(e=V2[n]=B2++),e}function Ny(n){var e=n.type;return e===$u||e===Wp||e===Qu}function tS(n){var e=n.type;return e===Ko||e===Fp}function VB(n){var e=F2(n);e.normalFill=n.style.fill,e.normalStroke=n.style.stroke;var t=n.states.select||{};e.selectFill=t.style&&t.style.fill||null,e.selectStroke=t.style&&t.style.stroke||null}var hl=Rr.CMD,FB=[[],[],[]],eS=Math.sqrt,WB=Math.atan2;function nS(n,e){if(e){var t=n.data,i=n.len(),r,a,o,s,l,u,c=hl.M,h=hl.C,f=hl.L,d=hl.R,g=hl.A,y=hl.Q;for(o=0,s=0;o<i;){switch(r=t[o++],s=o,a=0,r){case c:a=1;break;case f:a=1;break;case h:a=3;break;case y:a=2;break;case g:var _=e[4],v=e[5],p=eS(e[0]*e[0]+e[1]*e[1]),x=eS(e[2]*e[2]+e[3]*e[3]),b=WB(-e[1]/x,e[0]/p);t[o]*=p,t[o++]+=_,t[o]*=x,t[o++]+=v,t[o++]*=p,t[o++]*=x,t[o++]+=b,t[o++]+=b,o+=2,s=o;break;case d:u[0]=t[o++],u[1]=t[o++],An(u,u,e),t[s++]=u[0],t[s++]=u[1],u[0]+=t[o++],u[1]+=t[o++],An(u,u,e),t[s++]=u[0],t[s++]=u[1]}for(l=0;l<a;l++){var S=FB[l];S[0]=t[o++],S[1]=t[o++],An(S,S,e),t[s++]=S[0],t[s++]=S[1]}}n.increaseVersion()}}var zy=Math.sqrt,Hp=Math.sin,Up=Math.cos,ec=Math.PI;function iS(n){return Math.sqrt(n[0]*n[0]+n[1]*n[1])}function Ey(n,e){return(n[0]*e[0]+n[1]*e[1])/(iS(n)*iS(e))}function rS(n,e){return(n[0]*e[1]<n[1]*e[0]?-1:1)*Math.acos(Ey(n,e))}function aS(n,e,t,i,r,a,o,s,l,u,c){var h=l*(ec/180),f=Up(h)*(n-t)/2+Hp(h)*(e-i)/2,d=-1*Hp(h)*(n-t)/2+Up(h)*(e-i)/2,g=f*f/(o*o)+d*d/(s*s);g>1&&(o*=zy(g),s*=zy(g));var y=(r===a?-1:1)*zy((o*o*(s*s)-o*o*(d*d)-s*s*(f*f))/(o*o*(d*d)+s*s*(f*f)))||0,_=y*o*d/s,v=y*-s*f/o,p=(n+t)/2+Up(h)*_-Hp(h)*v,x=(e+i)/2+Hp(h)*_+Up(h)*v,b=rS([1,0],[(f-_)/o,(d-v)/s]),S=[(f-_)/o,(d-v)/s],M=[(-1*f-_)/o,(-1*d-v)/s],I=rS(S,M);if(Ey(S,M)<=-1&&(I=ec),Ey(S,M)>=1&&(I=0),I<0){var A=Math.round(I/ec*1e6)/1e6;I=ec*2+A%2*ec}c.addData(u,p,x,o,s,b,I,h,a)}var GB=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,jB=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function HB(n){var e=new Rr;if(!n)return e;var t=0,i=0,r=t,a=i,o,s=Rr.CMD,l=n.match(GB);if(!l)return e;for(var u=0;u<l.length;u++){for(var c=l[u],h=c.charAt(0),f=void 0,d=c.match(jB)||[],g=d.length,y=0;y<g;y++)d[y]=parseFloat(d[y]);for(var _=0;_<g;){var v=void 0,p=void 0,x=void 0,b=void 0,S=void 0,M=void 0,I=void 0,A=t,C=i,L=void 0,R=void 0;switch(h){case"l":t+=d[_++],i+=d[_++],f=s.L,e.addData(f,t,i);break;case"L":t=d[_++],i=d[_++],f=s.L,e.addData(f,t,i);break;case"m":t+=d[_++],i+=d[_++],f=s.M,e.addData(f,t,i),r=t,a=i,h="l";break;case"M":t=d[_++],i=d[_++],f=s.M,e.addData(f,t,i),r=t,a=i,h="L";break;case"h":t+=d[_++],f=s.L,e.addData(f,t,i);break;case"H":t=d[_++],f=s.L,e.addData(f,t,i);break;case"v":i+=d[_++],f=s.L,e.addData(f,t,i);break;case"V":i=d[_++],f=s.L,e.addData(f,t,i);break;case"C":f=s.C,e.addData(f,d[_++],d[_++],d[_++],d[_++],d[_++],d[_++]),t=d[_-2],i=d[_-1];break;case"c":f=s.C,e.addData(f,d[_++]+t,d[_++]+i,d[_++]+t,d[_++]+i,d[_++]+t,d[_++]+i),t+=d[_-2],i+=d[_-1];break;case"S":v=t,p=i,L=e.len(),R=e.data,o===s.C&&(v+=t-R[L-4],p+=i-R[L-3]),f=s.C,A=d[_++],C=d[_++],t=d[_++],i=d[_++],e.addData(f,v,p,A,C,t,i);break;case"s":v=t,p=i,L=e.len(),R=e.data,o===s.C&&(v+=t-R[L-4],p+=i-R[L-3]),f=s.C,A=t+d[_++],C=i+d[_++],t+=d[_++],i+=d[_++],e.addData(f,v,p,A,C,t,i);break;case"Q":A=d[_++],C=d[_++],t=d[_++],i=d[_++],f=s.Q,e.addData(f,A,C,t,i);break;case"q":A=d[_++]+t,C=d[_++]+i,t+=d[_++],i+=d[_++],f=s.Q,e.addData(f,A,C,t,i);break;case"T":v=t,p=i,L=e.len(),R=e.data,o===s.Q&&(v+=t-R[L-4],p+=i-R[L-3]),t=d[_++],i=d[_++],f=s.Q,e.addData(f,v,p,t,i);break;case"t":v=t,p=i,L=e.len(),R=e.data,o===s.Q&&(v+=t-R[L-4],p+=i-R[L-3]),t+=d[_++],i+=d[_++],f=s.Q,e.addData(f,v,p,t,i);break;case"A":x=d[_++],b=d[_++],S=d[_++],M=d[_++],I=d[_++],A=t,C=i,t=d[_++],i=d[_++],f=s.A,aS(A,C,t,i,M,I,x,b,S,f,e);break;case"a":x=d[_++],b=d[_++],S=d[_++],M=d[_++],I=d[_++],A=t,C=i,t+=d[_++],i+=d[_++],f=s.A,aS(A,C,t,i,M,I,x,b,S,f,e);break}}(h==="z"||h==="Z")&&(f=s.Z,e.addData(f),t=r,i=a),o=f}return e.toStatic(),e}var oS=function(n){Q(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.applyTransform=function(t){},e}(re);function sS(n){return n.setData!=null}function lS(n,e){var t=HB(n),i=lt({},e);return i.buildPath=function(r){if(sS(r)){r.setData(t.data);var a=r.getContext();a&&r.rebuildPath(a,1)}else{var a=r;t.rebuildPath(a,1)}},i.applyTransform=function(r){nS(t,r),this.dirtyShape()},i}function uS(n,e){return new oS(lS(n,e))}function UB(n,e){var t=lS(n,e),i=function(r){Q(a,r);function a(o){var s=r.call(this,o)||this;return s.applyTransform=t.applyTransform,s.buildPath=t.buildPath,s}return a}(oS);return i}function XB(n,e){for(var t=[],i=n.length,r=0;r<i;r++){var a=n[r];t.push(a.getUpdatedPathProxy(!0))}var o=new re(e);return o.createPathProxy(),o.buildPath=function(s){if(sS(s)){s.appendPath(t);var l=s.getContext();l&&s.rebuildPath(l,1)}},o}function Oy(n,e){e=e||{};var t=new re;return n.shape&&t.setShape(n.shape),t.setStyle(n.style),e.bakeTransform?nS(t.path,n.getComputedTransform()):e.toLocal?t.setLocalTransform(n.getComputedTransform()):t.copyTransform(n),t.buildPath=n.buildPath,t.applyTransform=t.applyTransform,t.z=n.z,t.z2=n.z2,t.zlevel=n.zlevel,t}var ZB=function(){function n(){this.cx=0,this.cy=0,this.r=0}return n}(),ca=function(n){Q(e,n);function e(t){return n.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new ZB},e.prototype.buildPath=function(t,i){t.moveTo(i.cx+i.r,i.cy),t.arc(i.cx,i.cy,i.r,0,Math.PI*2)},e}(re);ca.prototype.type="circle";var qB=function(){function n(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return n}(),Xp=function(n){Q(e,n);function e(t){return n.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new qB},e.prototype.buildPath=function(t,i){var r=.5522848,a=i.cx,o=i.cy,s=i.rx,l=i.ry,u=s*r,c=l*r;t.moveTo(a-s,o),t.bezierCurveTo(a-s,o-c,a-u,o-l,a,o-l),t.bezierCurveTo(a+u,o-l,a+s,o-c,a+s,o),t.bezierCurveTo(a+s,o+c,a+u,o+l,a,o+l),t.bezierCurveTo(a-u,o+l,a-s,o+c,a-s,o),t.closePath()},e}(re);Xp.prototype.type="ellipse";var cS=Math.PI,By=cS*2,Qo=Math.sin,pl=Math.cos,KB=Math.acos,zn=Math.atan2,hS=Math.abs,nc=Math.sqrt,ic=Math.max,Nr=Math.min,or=1e-4;function YB(n,e,t,i,r,a,o,s){var l=t-n,u=i-e,c=o-r,h=s-a,f=h*l-c*u;if(!(f*f<or))return f=(c*(e-a)-h*(n-r))/f,[n+f*l,e+f*u]}function Zp(n,e,t,i,r,a,o){var s=n-t,l=e-i,u=(o?a:-a)/nc(s*s+l*l),c=u*l,h=-u*s,f=n+c,d=e+h,g=t+c,y=i+h,_=(f+g)/2,v=(d+y)/2,p=g-f,x=y-d,b=p*p+x*x,S=r-a,M=f*y-g*d,I=(x<0?-1:1)*nc(ic(0,S*S*b-M*M)),A=(M*x-p*I)/b,C=(-M*p-x*I)/b,L=(M*x+p*I)/b,R=(-M*p+x*I)/b,D=A-_,N=C-v,k=L-_,O=R-v;return D*D+N*N>k*k+O*O&&(A=L,C=R),{cx:A,cy:C,x0:-c,y0:-h,x1:A*(r/S-1),y1:C*(r/S-1)}}function JB(n){var e;if(ht(n)){var t=n.length;if(!t)return n;t===1?e=[n[0],n[0],0,0]:t===2?e=[n[0],n[0],n[1],n[1]]:t===3?e=n.concat(n[2]):e=n}else e=[n,n,n,n];return e}function $B(n,e){var t,i=ic(e.r,0),r=ic(e.r0||0,0),a=i>0,o=r>0;if(!(!a&&!o)){if(a||(i=r,r=0),r>i){var s=i;i=r,r=s}var l=e.startAngle,u=e.endAngle;if(!(isNaN(l)||isNaN(u))){var c=e.cx,h=e.cy,f=!!e.clockwise,d=hS(u-l),g=d>By&&d%By;if(g>or&&(d=g),!(i>or))n.moveTo(c,h);else if(d>By-or)n.moveTo(c+i*pl(l),h+i*Qo(l)),n.arc(c,h,i,l,u,!f),r>or&&(n.moveTo(c+r*pl(u),h+r*Qo(u)),n.arc(c,h,r,u,l,f));else{var y=void 0,_=void 0,v=void 0,p=void 0,x=void 0,b=void 0,S=void 0,M=void 0,I=void 0,A=void 0,C=void 0,L=void 0,R=void 0,D=void 0,N=void 0,k=void 0,O=i*pl(l),F=i*Qo(l),G=r*pl(u),q=r*Qo(u),j=d>or;if(j){var J=e.cornerRadius;J&&(t=JB(J),y=t[0],_=t[1],v=t[2],p=t[3]);var H=hS(i-r)/2;if(x=Nr(H,v),b=Nr(H,p),S=Nr(H,y),M=Nr(H,_),C=I=ic(x,b),L=A=ic(S,M),(I>or||A>or)&&(R=i*pl(u),D=i*Qo(u),N=r*pl(l),k=r*Qo(l),d<cS)){var K=YB(O,F,N,k,R,D,G,q);if(K){var ut=O-K[0],ot=F-K[1],at=R-K[0],Nt=D-K[1],Yt=1/Qo(KB((ut*at+ot*Nt)/(nc(ut*ut+ot*ot)*nc(at*at+Nt*Nt)))/2),wt=nc(K[0]*K[0]+K[1]*K[1]);C=Nr(I,(i-wt)/(Yt+1)),L=Nr(A,(r-wt)/(Yt-1))}}}if(!j)n.moveTo(c+O,h+F);else if(C>or){var xt=Nr(v,C),zt=Nr(p,C),bt=Zp(N,k,O,F,i,xt,f),Pt=Zp(R,D,G,q,i,zt,f);n.moveTo(c+bt.cx+bt.x0,h+bt.cy+bt.y0),C<I&&xt===zt?n.arc(c+bt.cx,h+bt.cy,C,zn(bt.y0,bt.x0),zn(Pt.y0,Pt.x0),!f):(xt>0&&n.arc(c+bt.cx,h+bt.cy,xt,zn(bt.y0,bt.x0),zn(bt.y1,bt.x1),!f),n.arc(c,h,i,zn(bt.cy+bt.y1,bt.cx+bt.x1),zn(Pt.cy+Pt.y1,Pt.cx+Pt.x1),!f),zt>0&&n.arc(c+Pt.cx,h+Pt.cy,zt,zn(Pt.y1,Pt.x1),zn(Pt.y0,Pt.x0),!f))}else n.moveTo(c+O,h+F),n.arc(c,h,i,l,u,!f);if(!(r>or)||!j)n.lineTo(c+G,h+q);else if(L>or){var xt=Nr(y,L),zt=Nr(_,L),bt=Zp(G,q,R,D,r,-zt,f),Pt=Zp(O,F,N,k,r,-xt,f);n.lineTo(c+bt.cx+bt.x0,h+bt.cy+bt.y0),L<A&&xt===zt?n.arc(c+bt.cx,h+bt.cy,L,zn(bt.y0,bt.x0),zn(Pt.y0,Pt.x0),!f):(zt>0&&n.arc(c+bt.cx,h+bt.cy,zt,zn(bt.y0,bt.x0),zn(bt.y1,bt.x1),!f),n.arc(c,h,r,zn(bt.cy+bt.y1,bt.cx+bt.x1),zn(Pt.cy+Pt.y1,Pt.cx+Pt.x1),f),xt>0&&n.arc(c+Pt.cx,h+Pt.cy,xt,zn(Pt.y1,Pt.x1),zn(Pt.y0,Pt.x0),!f))}else n.lineTo(c+G,h+q),n.arc(c,h,r,u,l,f)}n.closePath()}}}var QB=function(){function n(){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 n}(),qn=function(n){Q(e,n);function e(t){return n.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new QB},e.prototype.buildPath=function(t,i){$B(t,i)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e}(re);qn.prototype.type="sector";var t4=function(){function n(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return n}(),rc=function(n){Q(e,n);function e(t){return n.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new t4},e.prototype.buildPath=function(t,i){var r=i.cx,a=i.cy,o=Math.PI*2;t.moveTo(r+i.r,a),t.arc(r,a,i.r,0,o,!1),t.moveTo(r+i.r0,a),t.arc(r,a,i.r0,0,o,!0)},e}(re);rc.prototype.type="ring";function e4(n,e,t,i){var r=[],a=[],o=[],s=[],l,u,c,h;if(i){c=[1/0,1/0],h=[-1/0,-1/0];for(var f=0,d=n.length;f<d;f++)za(c,c,n[f]),Ea(h,h,n[f]);za(c,c,i[0]),Ea(h,h,i[1])}for(var f=0,d=n.length;f<d;f++){var g=n[f];if(t)l=n[f?f-1:d-1],u=n[(f+1)%d];else if(f===0||f===d-1){r.push($r(n[f]));continue}else l=n[f-1],u=n[f+1];Ao(a,u,l),ip(a,a,e);var y=lv(g,l),_=lv(g,u),v=y+_;v!==0&&(y/=v,_/=v),ip(o,a,-y),ip(s,a,_);var p=Yb([],g,o),x=Yb([],g,s);i&&(Ea(p,p,c),za(p,p,h),Ea(x,x,c),za(x,x,h)),r.push(p),r.push(x)}return t&&r.push(r.shift()),r}function pS(n,e,t){var i=e.smooth,r=e.points;if(r&&r.length>=2){if(i){var a=e4(r,i,t,e.smoothConstraint);n.moveTo(r[0][0],r[0][1]);for(var o=r.length,s=0;s<(t?o:o-1);s++){var l=a[s*2],u=a[s*2+1],c=r[(s+1)%o];n.bezierCurveTo(l[0],l[1],u[0],u[1],c[0],c[1])}}else{n.moveTo(r[0][0],r[0][1]);for(var s=1,h=r.length;s<h;s++)n.lineTo(r[s][0],r[s][1])}t&&n.closePath()}}var n4=function(){function n(){this.points=null,this.smooth=0,this.smoothConstraint=null}return n}(),Kn=function(n){Q(e,n);function e(t){return n.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new n4},e.prototype.buildPath=function(t,i){pS(t,i,!0)},e}(re);Kn.prototype.type="polygon";var i4=function(){function n(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return n}(),Yn=function(n){Q(e,n);function e(t){return n.call(this,t)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new i4},e.prototype.buildPath=function(t,i){pS(t,i,!1)},e}(re);Yn.prototype.type="polyline";var r4={},a4=function(){function n(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return n}(),fn=function(n){Q(e,n);function e(t){return n.call(this,t)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new a4},e.prototype.buildPath=function(t,i){var r,a,o,s;if(this.subPixelOptimize){var l=I2(r4,i,this.style);r=l.x1,a=l.y1,o=l.x2,s=l.y2}else r=i.x1,a=i.y1,o=i.x2,s=i.y2;var u=i.percent;u!==0&&(t.moveTo(r,a),u<1&&(o=r*(1-u)+o*u,s=a*(1-u)+s*u),t.lineTo(o,s))},e.prototype.pointAt=function(t){var i=this.shape;return[i.x1*(1-t)+i.x2*t,i.y1*(1-t)+i.y2*t]},e}(re);fn.prototype.type="line";var si=[],o4=function(){function n(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return n}();function dS(n,e,t){var i=n.cpx2,r=n.cpy2;return i!=null||r!=null?[(t?vw:dn)(n.x1,n.cpx1,n.cpx2,n.x2,e),(t?vw:dn)(n.y1,n.cpy1,n.cpy2,n.y2,e)]:[(t?Sv:wn)(n.x1,n.cpx1,n.x2,e),(t?Sv:wn)(n.y1,n.cpy1,n.y2,e)]}var ac=function(n){Q(e,n);function e(t){return n.call(this,t)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new o4},e.prototype.buildPath=function(t,i){var r=i.x1,a=i.y1,o=i.x2,s=i.y2,l=i.cpx1,u=i.cpy1,c=i.cpx2,h=i.cpy2,f=i.percent;f!==0&&(t.moveTo(r,a),c==null||h==null?(f<1&&(Ru(r,l,o,f,si),l=si[1],o=si[2],Ru(a,u,s,f,si),u=si[1],s=si[2]),t.quadraticCurveTo(l,u,o,s)):(f<1&&(Va(r,l,c,o,f,si),l=si[1],c=si[2],o=si[3],Va(a,u,h,s,f,si),u=si[1],h=si[2],s=si[3]),t.bezierCurveTo(l,u,c,h,o,s)))},e.prototype.pointAt=function(t){return dS(this.shape,t,!1)},e.prototype.tangentAt=function(t){var i=dS(this.shape,t,!0);return Js(i,i)},e}(re);ac.prototype.type="bezier-curve";var s4=function(){function n(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return n}(),qp=function(n){Q(e,n);function e(t){return n.call(this,t)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new s4},e.prototype.buildPath=function(t,i){var r=i.cx,a=i.cy,o=Math.max(i.r,0),s=i.startAngle,l=i.endAngle,u=i.clockwise,c=Math.cos(s),h=Math.sin(s);t.moveTo(c*o+r,h*o+a),t.arc(r,a,o,s,l,!u)},e}(re);qp.prototype.type="arc";var Vy=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type="compound",t}return e.prototype._updatePathDirty=function(){for(var t=this.shape.paths,i=this.shapeChanged(),r=0;r<t.length;r++)i=i||t[r].shapeChanged();i&&this.dirtyShape()},e.prototype.beforeBrush=function(){this._updatePathDirty();for(var t=this.shape.paths||[],i=this.getGlobalScale(),r=0;r<t.length;r++)t[r].path||t[r].createPathProxy(),t[r].path.setScale(i[0],i[1],t[r].segmentIgnoreThreshold)},e.prototype.buildPath=function(t,i){for(var r=i.paths||[],a=0;a<r.length;a++)r[a].buildPath(t,r[a].shape,!0)},e.prototype.afterBrush=function(){for(var t=this.shape.paths||[],i=0;i<t.length;i++)t[i].pathUpdated()},e.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),re.prototype.getBoundingRect.call(this)},e}(re),fS=function(){function n(e){this.colorStops=e||[]}return n.prototype.addColorStop=function(e,t){this.colorStops.push({offset:e,color:t})},n}(),oc=function(n){Q(e,n);function e(t,i,r,a,o,s){var l=n.call(this,o)||this;return l.x=t??0,l.y=i??0,l.x2=r??1,l.y2=a??0,l.type="linear",l.global=s||!1,l}return e}(fS),gS=function(n){Q(e,n);function e(t,i,r,a,o){var s=n.call(this,a)||this;return s.x=t??.5,s.y=i??.5,s.r=r??.5,s.type="radial",s.global=o||!1,s}return e}(fS),ts=[0,0],es=[0,0],Kp=new Jt,Yp=new Jt,Jp=function(){function n(e,t){this._corners=[],this._axes=[],this._origin=[0,0];for(var i=0;i<4;i++)this._corners[i]=new Jt;for(var i=0;i<2;i++)this._axes[i]=new Jt;e&&this.fromBoundingRect(e,t)}return n.prototype.fromBoundingRect=function(e,t){var i=this._corners,r=this._axes,a=e.x,o=e.y,s=a+e.width,l=o+e.height;if(i[0].set(a,o),i[1].set(s,o),i[2].set(s,l),i[3].set(a,l),t)for(var u=0;u<4;u++)i[u].transform(t);Jt.sub(r[0],i[1],i[0]),Jt.sub(r[1],i[3],i[0]),r[0].normalize(),r[1].normalize();for(var u=0;u<2;u++)this._origin[u]=r[u].dot(i[0])},n.prototype.intersect=function(e,t){var i=!0,r=!t;return Kp.set(1/0,1/0),Yp.set(0,0),!this._intersectCheckOneSide(this,e,Kp,Yp,r,1)&&(i=!1,r)||!this._intersectCheckOneSide(e,this,Kp,Yp,r,-1)&&(i=!1,r)||r||Jt.copy(t,i?Kp:Yp),i},n.prototype._intersectCheckOneSide=function(e,t,i,r,a,o){for(var s=!0,l=0;l<2;l++){var u=this._axes[l];if(this._getProjMinMaxOnAxis(l,e._corners,ts),this._getProjMinMaxOnAxis(l,t._corners,es),ts[1]<es[0]||ts[0]>es[1]){if(s=!1,a)return s;var c=Math.abs(es[0]-ts[1]),h=Math.abs(ts[0]-es[1]);Math.min(c,h)>r.len()&&(c<h?Jt.scale(r,u,-c*o):Jt.scale(r,u,h*o))}else if(i){var c=Math.abs(es[0]-ts[1]),h=Math.abs(ts[0]-es[1]);Math.min(c,h)<i.len()&&(c<h?Jt.scale(i,u,c*o):Jt.scale(i,u,-h*o))}}return s},n.prototype._getProjMinMaxOnAxis=function(e,t,i){for(var r=this._axes[e],a=this._origin,o=t[0].dot(r)+a[e],s=o,l=o,u=1;u<t.length;u++){var c=t[u].dot(r)+a[e];s=Math.min(c,s),l=Math.max(c,l)}i[0]=s,i[1]=l},n}(),l4=[],u4=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.notClear=!0,t.incremental=!0,t._displayables=[],t._temporaryDisplayables=[],t._cursor=0,t}return e.prototype.traverse=function(t,i){t.call(i,this)},e.prototype.useStyle=function(){this.style={}},e.prototype.getCursor=function(){return this._cursor},e.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},e.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},e.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},e.prototype.addDisplayable=function(t,i){i?this._temporaryDisplayables.push(t):this._displayables.push(t),this.markRedraw()},e.prototype.addDisplayables=function(t,i){i=i||!1;for(var r=0;r<t.length;r++)this.addDisplayable(t[r],i)},e.prototype.getDisplayables=function(){return this._displayables},e.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},e.prototype.eachPendingDisplayable=function(t){for(var i=this._cursor;i<this._displayables.length;i++)t&&t(this._displayables[i]);for(var i=0;i<this._temporaryDisplayables.length;i++)t&&t(this._temporaryDisplayables[i])},e.prototype.update=function(){this.updateTransform();for(var t=this._cursor;t<this._displayables.length;t++){var i=this._displayables[t];i.parent=this,i.update(),i.parent=null}for(var t=0;t<this._temporaryDisplayables.length;t++){var i=this._temporaryDisplayables[t];i.parent=this,i.update(),i.parent=null}},e.prototype.getBoundingRect=function(){if(!this._rect){for(var t=new $t(1/0,1/0,-1/0,-1/0),i=0;i<this._displayables.length;i++){var r=this._displayables[i],a=r.getBoundingRect().clone();r.needLocalTransform()&&a.applyTransform(r.getLocalTransform(l4)),t.union(a)}this._rect=t}return this._rect},e.prototype.contain=function(t,i){var r=this.transformCoordToLocal(t,i),a=this.getBoundingRect();if(a.contain(r[0],r[1]))for(var o=0;o<this._displayables.length;o++){var s=this._displayables[o];if(s.contain(t,i))return!0}return!1},e}(Ri),vS=pe();function dl(n,e,t,i,r){var a;if(e&&e.ecModel){var o=e.ecModel.getUpdatePayload();a=o&&o.animation}var s=e&&e.isAnimationEnabled(),l=n==="update";if(s){var u=void 0,c=void 0,h=void 0;i?(u=Ut(i.duration,200),c=Ut(i.easing,"cubicOut"),h=0):(u=e.getShallow(l?"animationDurationUpdate":"animationDuration"),c=e.getShallow(l?"animationEasingUpdate":"animationEasing"),h=e.getShallow(l?"animationDelayUpdate":"animationDelay")),a&&(a.duration!=null&&(u=a.duration),a.easing!=null&&(c=a.easing),a.delay!=null&&(h=a.delay)),Ot(h)&&(h=h(t,r)),Ot(u)&&(u=u(t));var f={duration:u||0,delay:h,easing:c};return f}else return null}function Fy(n,e,t,i,r,a,o){var s=!1,l;Ot(r)?(o=a,a=r,r=null):Vt(r)&&(a=r.cb,o=r.during,s=r.isFrom,l=r.removeOpt,r=r.dataIndex);var u=n==="leave";u||e.stopAnimation("leave");var c=dl(n,i,r,u?l||{}:null,i&&i.getAnimationDelayParams?i.getAnimationDelayParams(e,r):null);if(c&&c.duration>0){var h=c.duration,f=c.delay,d=c.easing,g={duration:h,delay:f||0,easing:d,done:a,force:!!a||!!o,setToFinal:!u,scope:n,during:o};s?e.animateFrom(t,g):e.animateTo(t,g)}else e.stopAnimation(),!s&&e.attr(t),o&&o(1),a&&a()}function me(n,e,t,i,r,a){Fy("update",n,e,t,i,r,a)}function We(n,e,t,i,r,a){Fy("enter",n,e,t,i,r,a)}function fl(n){if(!n.__zr)return!0;for(var e=0;e<n.animators.length;e++){var t=n.animators[e];if(t.scope==="leave")return!0}return!1}function Xa(n,e,t,i,r,a){fl(n)||Fy("leave",n,e,t,i,r,a)}function yS(n,e,t,i){n.removeTextContent(),n.removeTextGuideLine(),Xa(n,{style:{opacity:0}},e,t,i)}function sc(n,e,t){function i(){n.parent&&n.parent.remove(n)}n.isGroup?n.traverse(function(r){r.isGroup||yS(r,e,t,i)}):yS(n,e,t,i)}function sr(n){vS(n).oldStyle=n.style}function c4(n){return vS(n).oldStyle}var $p=Math.max,Qp=Math.min,Wy={};function h4(n){return re.extend(n)}var p4=UB;function d4(n,e){return p4(n,e)}function lr(n,e){Wy[n]=e}function Gy(n){if(Wy.hasOwnProperty(n))return Wy[n]}function td(n,e,t,i){var r=uS(n,e);return t&&(i==="center"&&(t=_S(t,r.getBoundingRect())),xS(r,t)),r}function mS(n,e,t){var i=new Sn({style:{image:n,x:e.x,y:e.y,width:e.width,height:e.height},onload:function(r){if(t==="center"){var a={width:r.width,height:r.height};i.setStyle(_S(e,a))}}});return i}function _S(n,e){var t=e.width/e.height,i=n.height*t,r;i<=n.width?r=n.height:(i=n.width,r=i/t);var a=n.x+n.width/2,o=n.y+n.height/2;return{x:a-i/2,y:o-r/2,width:i,height:r}}var zi=XB;function xS(n,e){if(n.applyTransform){var t=n.getBoundingRect(),i=t.calculateTransform(e);n.applyTransform(i)}}function gl(n,e){return I2(n,n,{lineWidth:e}),n}function f4(n){return T2(n.shape,n.shape,n.style),n}var ed=qo;function ns(n,e){for(var t=ap([]);n&&n!==e;)ta(t,n.getLocalTransform(),t),n=n.parent;return t}function ur(n,e,t){return e&&!Nn(e)&&(e=ia.getLocalTransform(e)),t&&(e=Qs([],e)),An([],n,e)}function nd(n,e,t){var i=e[4]===0||e[5]===0||e[0]===0?1:Math.abs(2*e[4]/e[0]),r=e[4]===0||e[5]===0||e[2]===0?1:Math.abs(2*e[4]/e[2]),a=[n==="left"?-i:n==="right"?i:0,n==="top"?-r:n==="bottom"?r:0];return a=ur(a,e,t),Math.abs(a[0])>Math.abs(a[1])?a[0]>0?"right":"left":a[1]>0?"bottom":"top"}function bS(n){return!n.isGroup}function g4(n){return n.shape!=null}function lc(n,e,t){if(!n||!e)return;function i(o){var s={};return o.traverse(function(l){bS(l)&&l.anid&&(s[l.anid]=l)}),s}function r(o){var s={x:o.x,y:o.y,rotation:o.rotation};return g4(o)&&(s.shape=lt({},o.shape)),s}var a=i(n);e.traverse(function(o){if(bS(o)&&o.anid){var s=a[o.anid];if(s){var l=r(o);o.attr(r(s)),me(o,l,t,jt(o).dataIndex)}}})}function wS(n,e){return pt(n,function(t){var i=t[0];i=$p(i,e.x),i=Qp(i,e.x+e.width);var r=t[1];return r=$p(r,e.y),r=Qp(r,e.y+e.height),[i,r]})}function v4(n,e){var t=$p(n.x,e.x),i=Qp(n.x+n.width,e.x+e.width),r=$p(n.y,e.y),a=Qp(n.y+n.height,e.y+e.height);if(i>=t&&a>=r)return{x:t,y:r,width:i-t,height:a-r}}function uc(n,e,t){var i=lt({rectHover:!0},e),r=i.style={strokeNoScale:!0};if(t=t||{x:-1,y:-1,width:2,height:2},n)return n.indexOf("image://")===0?(r.image=n.slice(8),Bt(r,t),new Sn(i)):td(n.replace("path://",""),i,t,"center")}function cc(n,e,t,i,r){for(var a=0,o=r[r.length-1];a<r.length;a++){var s=r[a];if(SS(n,e,t,i,s[0],s[1],o[0],o[1]))return!0;o=s}}function SS(n,e,t,i,r,a,o,s){var l=t-n,u=i-e,c=o-r,h=s-a,f=jy(c,h,l,u);if(y4(f))return!1;var d=n-r,g=e-a,y=jy(d,g,l,u)/f;if(y<0||y>1)return!1;var _=jy(d,g,c,h)/f;return!(_<0||_>1)}function jy(n,e,t,i){return n*i-t*e}function y4(n){return n<=1e-6&&n>=-1e-6}function is(n){var e=n.itemTooltipOption,t=n.componentModel,i=n.itemName,r=Tt(e)?{formatter:e}:e,a=t.mainType,o=t.componentIndex,s={componentType:a,name:i,$vars:["name"]};s[a+"Index"]=o;var l=n.formatterParamsExtra;l&&E(se(l),function(c){Lt(s,c)||(s[c]=l[c],s.$vars.push(c))});var u=jt(n.el);u.componentMainType=a,u.componentIndex=o,u.tooltipConfig={name:i,option:Bt({content:i,encodeHTMLContent:!0,formatterParams:s},r)}}function MS(n,e){var t;n.isGroup&&(t=e(n)),t||n.traverse(e)}function Za(n,e){if(n)if(ht(n))for(var t=0;t<n.length;t++)MS(n[t],e);else MS(n,e)}lr("circle",ca),lr("ellipse",Xp),lr("sector",qn),lr("ring",rc),lr("polygon",Kn),lr("polyline",Yn),lr("rect",de),lr("line",fn),lr("bezierCurve",ac),lr("arc",qp);const rs=Object.freeze(Object.defineProperty({__proto__:null,Arc:qp,BezierCurve:ac,BoundingRect:$t,Circle:ca,CompoundPath:Vy,Ellipse:Xp,Group:Gt,Image:Sn,IncrementalDisplayable:u4,Line:fn,LinearGradient:oc,OrientedBoundingRect:Jp,Path:re,Point:Jt,Polygon:Kn,Polyline:Yn,RadialGradient:gS,Rect:de,Ring:rc,Sector:qn,Text:fe,applyTransform:ur,clipPointsByRect:wS,clipRectByRect:v4,createIcon:uc,extendPath:d4,extendShape:h4,getShapeClass:Gy,getTransform:ns,groupTransition:lc,initProps:We,isElementRemoved:fl,lineLineIntersect:SS,linePolygonIntersect:cc,makeImage:mS,makePath:td,mergePath:zi,registerShape:lr,removeElement:Xa,removeElementWithFadeOut:sc,resizePath:xS,setTooltipConfig:is,subPixelOptimize:ed,subPixelOptimizeLine:gl,subPixelOptimizeRect:f4,transformDirection:nd,traverseElements:Za,updateProps:me},Symbol.toStringTag,{value:"Module"}));var id={};function IS(n,e){for(var t=0;t<Zn.length;t++){var i=Zn[t],r=e[i],a=n.ensureState(i);a.style=a.style||{},a.style.text=r}var o=n.currentStates.slice();n.clearStates(!0),n.setStyle({text:e.normal}),n.useStates(o,!0)}function Hy(n,e,t){var i=n.labelFetcher,r=n.labelDataIndex,a=n.labelDimIndex,o=e.normal,s;i&&(s=i.getFormattedLabel(r,"normal",null,a,o&&o.get("formatter"),t!=null?{interpolatedValue:t}:null)),s==null&&(s=Ot(n.defaultText)?n.defaultText(r,n,t):n.defaultText);for(var l={normal:s},u=0;u<Zn.length;u++){var c=Zn[u],h=e[c];l[c]=Ut(i?i.getFormattedLabel(r,c,null,a,h&&h.get("formatter")):null,s)}return l}function kn(n,e,t,i){t=t||id;for(var r=n instanceof fe,a=!1,o=0;o<Ju.length;o++){var s=e[Ju[o]];if(s&&s.getShallow("show")){a=!0;break}}var l=r?n:n.getTextContent();if(a){r||(l||(l=new fe,n.setTextContent(l)),n.stateProxy&&(l.stateProxy=n.stateProxy));var u=Hy(t,e),c=e.normal,h=!!c.getShallow("show"),f=Ee(c,i&&i.normal,t,!1,!r);f.text=u.normal,r||n.setTextConfig(rd(c,t,!1));for(var o=0;o<Zn.length;o++){var d=Zn[o],s=e[d];if(s){var g=l.ensureState(d),y=!!Ut(s.getShallow("show"),h);if(y!==h&&(g.ignore=!y),g.style=Ee(s,i&&i[d],t,!0,!r),g.style.text=u[d],!r){var _=n.ensureState(d);_.textConfig=rd(s,t,!0)}}}l.silent=!!c.getShallow("silent"),l.style.x!=null&&(f.x=l.style.x),l.style.y!=null&&(f.y=l.style.y),l.ignore=!h,l.useStyle(f),l.dirty(),t.enableTextSetter&&(vl(l).setLabelText=function(v){var p=Hy(t,e,v);IS(l,p)})}else l&&(l.ignore=!0);n.dirty()}function gn(n,e){e=e||"label";for(var t={normal:n.getModel(e)},i=0;i<Zn.length;i++){var r=Zn[i];t[r]=n.getModel([r,e])}return t}function Ee(n,e,t,i,r){var a={};return m4(a,n,t,i,r),e&<(a,e),a}function rd(n,e,t){e=e||{};var i={},r,a=n.getShallow("rotate"),o=Ut(n.getShallow("distance"),t?null:5),s=n.getShallow("offset");return r=n.getShallow("position")||(t?null:"inside"),r==="outside"&&(r=e.defaultOutsidePosition||"top"),r!=null&&(i.position=r),s!=null&&(i.offset=s),a!=null&&(a*=Math.PI/180,i.rotation=a),o!=null&&(i.distance=o),i.outsideFill=n.get("color")==="inherit"?e.inheritColor||null:"auto",i}function m4(n,e,t,i,r){t=t||id;var a=e.ecModel,o=a&&a.option.textStyle,s=_4(e),l;if(s){l={};for(var u in s)if(s.hasOwnProperty(u)){var c=e.getModel(["rich",u]);kS(l[u]={},c,o,t,i,r,!1,!0)}}l&&(n.rich=l);var h=e.get("overflow");h&&(n.overflow=h);var f=e.get("minMargin");f!=null&&(n.margin=f),kS(n,e,o,t,i,r,!0,!1)}function _4(n){for(var e;n&&n!==n.ecModel;){var t=(n.option||id).rich;if(t){e=e||{};for(var i=se(t),r=0;r<i.length;r++){var a=i[r];e[a]=1}}n=n.parentModel}return e}var TS=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],AS=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],CS=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function kS(n,e,t,i,r,a,o,s){t=!r&&t||id;var l=i&&i.inheritColor,u=e.getShallow("color"),c=e.getShallow("textBorderColor"),h=Ut(e.getShallow("opacity"),t.opacity);(u==="inherit"||u==="auto")&&(l?u=l:u=null),(c==="inherit"||c==="auto")&&(l?c=l:c=null),a||(u=u||t.color,c=c||t.textBorderColor),u!=null&&(n.fill=u),c!=null&&(n.stroke=c);var f=Ut(e.getShallow("textBorderWidth"),t.textBorderWidth);f!=null&&(n.lineWidth=f);var d=Ut(e.getShallow("textBorderType"),t.textBorderType);d!=null&&(n.lineDash=d);var g=Ut(e.getShallow("textBorderDashOffset"),t.textBorderDashOffset);g!=null&&(n.lineDashOffset=g),!r&&h==null&&!s&&(h=i&&i.defaultOpacity),h!=null&&(n.opacity=h),!r&&!a&&n.fill==null&&i.inheritColor&&(n.fill=i.inheritColor);for(var y=0;y<TS.length;y++){var _=TS[y],v=Ut(e.getShallow(_),t[_]);v!=null&&(n[_]=v)}for(var y=0;y<AS.length;y++){var _=AS[y],v=e.getShallow(_);v!=null&&(n[_]=v)}if(n.verticalAlign==null){var p=e.getShallow("baseline");p!=null&&(n.verticalAlign=p)}if(!o||!i.disableBox){for(var y=0;y<CS.length;y++){var _=CS[y],v=e.getShallow(_);v!=null&&(n[_]=v)}var x=e.getShallow("borderType");x!=null&&(n.borderDash=x),(n.backgroundColor==="auto"||n.backgroundColor==="inherit")&&l&&(n.backgroundColor=l),(n.borderColor==="auto"||n.borderColor==="inherit")&&l&&(n.borderColor=l)}}function Uy(n,e){var t=e&&e.getModel("textStyle");return nr([n.fontStyle||t&&t.getShallow("fontStyle")||"",n.fontWeight||t&&t.getShallow("fontWeight")||"",(n.fontSize||t&&t.getShallow("fontSize")||12)+"px",n.fontFamily||t&&t.getShallow("fontFamily")||"sans-serif"].join(" "))}var vl=pe();function LS(n,e,t,i){if(n){var r=vl(n);r.prevValue=r.value,r.value=t;var a=e.normal;r.valueAnimation=a.get("valueAnimation"),r.valueAnimation&&(r.precision=a.get("precision"),r.defaultInterpolatedText=i,r.statesModels=e)}}function DS(n,e,t,i,r){var a=vl(n);if(!a.valueAnimation||a.prevValue===a.value)return;var o=a.defaultInterpolatedText,s=Ut(a.interpolatedValue,a.prevValue),l=a.value;function u(c){var h=c2(t,a.precision,s,l,c);a.interpolatedValue=c===1?null:h;var f=Hy({labelDataIndex:e,labelFetcher:r,defaultText:o?o(h):h+""},a.statesModels,h);IS(n,f)}n.percent=0,(a.prevValue==null?We:me)(n,{percent:1},i,e,null,u)}var x4=["textStyle","color"],Xy=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],Zy=new fe,b4=function(){function n(){}return n.prototype.getTextColor=function(e){var t=this.ecModel;return this.getShallow("color")||(!e&&t?t.get(x4):null)},n.prototype.getFont=function(){return Uy({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},n.prototype.getTextRect=function(e){for(var t={text:e,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},i=0;i<Xy.length;i++)t[Xy[i]]=this.getShallow(Xy[i]);return Zy.useStyle(t),Zy.update(),Zy.getBoundingRect()},n}(),PS=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],w4=Fo(PS),S4=function(){function n(){}return n.prototype.getLineStyle=function(e){return w4(this,e)},n}(),RS=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],M4=Fo(RS),I4=function(){function n(){}return n.prototype.getItemStyle=function(e,t){return M4(this,e,t)},n}(),Ce=function(){function n(e,t,i){this.parentModel=t,this.ecModel=i,this.option=e}return n.prototype.init=function(e,t,i){},n.prototype.mergeOption=function(e,t){Kt(this.option,e,!0)},n.prototype.get=function(e,t){return e==null?this.option:this._doGet(this.parsePath(e),!t&&this.parentModel)},n.prototype.getShallow=function(e,t){var i=this.option,r=i==null?i:i[e];if(r==null&&!t){var a=this.parentModel;a&&(r=a.getShallow(e))}return r},n.prototype.getModel=function(e,t){var i=e!=null,r=i?this.parsePath(e):null,a=i?this._doGet(r):this.option;return t=t||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(r)),new n(a,t,this.ecModel)},n.prototype.isEmpty=function(){return this.option==null},n.prototype.restoreData=function(){},n.prototype.clone=function(){var e=this.constructor;return new e(Wt(this.option))},n.prototype.parsePath=function(e){return typeof e=="string"?e.split("."):e},n.prototype.resolveParentPath=function(e){return e},n.prototype.isAnimationEnabled=function(){if(!oe.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},n.prototype._doGet=function(e,t){var i=this.option;if(!e)return i;for(var r=0;r<e.length&&!(e[r]&&(i=i&&typeof i=="object"?i[e[r]]:null,i==null));r++);return i==null&&t&&(i=t._doGet(this.resolveParentPath(e),t.parentModel)),i},n}();oy(Ce),NO(Ce),tn(Ce,S4),tn(Ce,I4),tn(Ce,VO),tn(Ce,b4);var T4=Math.round(Math.random()*10);function yl(n){return[n||"",T4++].join("_")}function A4(n){var e={};n.registerSubTypeDefaulter=function(t,i){var r=kr(t);e[r.main]=i},n.determineSubType=function(t,i){var r=i.type;if(!r){var a=kr(t).main;n.hasSubTypes(t)&&e[a]&&(r=e[a](i))}return r}}function C4(n,e){n.topologicalTravel=function(a,o,s,l){if(!a.length)return;var u=t(o),c=u.graph,h=u.noEntryList,f={};for(E(a,function(p){f[p]=!0});h.length;){var d=h.pop(),g=c[d],y=!!f[d];y&&(s.call(l,d,g.originalDeps.slice()),delete f[d]),E(g.successor,y?v:_)}E(f,function(){var p="";throw new Error(p)});function _(p){c[p].entryCount--,c[p].entryCount===0&&h.push(p)}function v(p){f[p]=!0,_(p)}};function t(a){var o={},s=[];return E(a,function(l){var u=i(o,l),c=u.originalDeps=e(l),h=r(c,a);u.entryCount=h.length,u.entryCount===0&&s.push(l),E(h,function(f){Qt(u.predecessor,f)<0&&u.predecessor.push(f);var d=i(o,f);Qt(d.successor,f)<0&&d.successor.push(l)})}),{graph:o,noEntryList:s}}function i(a,o){return a[o]||(a[o]={predecessor:[],successor:[]}),a[o]}function r(a,o){var s=[];return E(a,function(l){Qt(o,l)>=0&&s.push(l)}),s}}function qa(n,e){return Kt(Kt({},n,!0),e,!0)}const k4={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:". "}}}},L4={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 ad="ZH",qy="EN",ml=qy,od={},Ky={},NS=oe.domSupported?function(){var n=(document.documentElement.lang||navigator.language||navigator.browserLanguage||ml).toUpperCase();return n.indexOf(ad)>-1?ad:ml}():ml;function zS(n,e){n=n.toUpperCase(),Ky[n]=new Ce(e),od[n]=e}function D4(n){if(Tt(n)){var e=od[n.toUpperCase()]||{};return n===ad||n===qy?Wt(e):Kt(Wt(e),Wt(od[ml]),!1)}else return Kt(Wt(n),Wt(od[ml]),!1)}function Yy(n){return Ky[n]}function P4(){return Ky[ml]}zS(qy,k4),zS(ad,L4);var Jy=1e3,$y=Jy*60,hc=$y*60,Ei=hc*24,ES=Ei*365,pc={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},sd="{yyyy}-{MM}-{dd}",OS={year:"{yyyy}",month:"{yyyy}-{MM}",day:sd,hour:sd+" "+pc.hour,minute:sd+" "+pc.minute,second:sd+" "+pc.second,millisecond:pc.none},Qy=["year","month","day","hour","minute","second","millisecond"],BS=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function Ka(n,e){return n+="","0000".substr(0,e-n.length)+n}function _l(n){switch(n){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return n}}function R4(n){return n===_l(n)}function N4(n){switch(n){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function ld(n,e,t,i){var r=Cr(n),a=r[tm(t)](),o=r[xl(t)]()+1,s=Math.floor((o-1)/3)+1,l=r[ud(t)](),u=r["get"+(t?"UTC":"")+"Day"](),c=r[dc(t)](),h=(c-1)%12+1,f=r[cd(t)](),d=r[hd(t)](),g=r[pd(t)](),y=c>=12?"pm":"am",_=y.toUpperCase(),v=i instanceof Ce?i:Yy(i||NS)||P4(),p=v.getModel("time"),x=p.get("month"),b=p.get("monthAbbr"),S=p.get("dayOfWeek"),M=p.get("dayOfWeekAbbr");return(e||"").replace(/{a}/g,y+"").replace(/{A}/g,_+"").replace(/{yyyy}/g,a+"").replace(/{yy}/g,Ka(a%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,x[o-1]).replace(/{MMM}/g,b[o-1]).replace(/{MM}/g,Ka(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,Ka(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,S[u]).replace(/{ee}/g,M[u]).replace(/{e}/g,u+"").replace(/{HH}/g,Ka(c,2)).replace(/{H}/g,c+"").replace(/{hh}/g,Ka(h+"",2)).replace(/{h}/g,h+"").replace(/{mm}/g,Ka(f,2)).replace(/{m}/g,f+"").replace(/{ss}/g,Ka(d,2)).replace(/{s}/g,d+"").replace(/{SSS}/g,Ka(g,3)).replace(/{S}/g,g+"")}function z4(n,e,t,i,r){var a=null;if(Tt(t))a=t;else if(Ot(t))a=t(n.value,e,{level:n.level});else{var o=lt({},pc);if(n.level>0)for(var s=0;s<Qy.length;++s)o[Qy[s]]="{primary|"+o[Qy[s]]+"}";var l=t?t.inherit===!1?t:Bt(t,o):o,u=VS(n.value,r);if(l[u])a=l[u];else if(l.inherit){for(var c=BS.indexOf(u),s=c-1;s>=0;--s)if(l[u]){a=l[u];break}a=a||o.none}if(ht(a)){var h=n.level==null?0:n.level>=0?n.level:a.length+n.level;h=Math.min(h,a.length-1),a=a[h]}}return ld(new Date(n.value),a,r,i)}function VS(n,e){var t=Cr(n),i=t[xl(e)]()+1,r=t[ud(e)](),a=t[dc(e)](),o=t[cd(e)](),s=t[hd(e)](),l=t[pd(e)](),u=l===0,c=u&&s===0,h=c&&o===0,f=h&&a===0,d=f&&r===1,g=d&&i===1;return g?"year":d?"month":f?"day":h?"hour":c?"minute":u?"second":"millisecond"}function FS(n,e,t){var i=ve(n)?Cr(n):n;switch(e=e||VS(n,t),e){case"year":return i[tm(t)]();case"half-year":return i[xl(t)]()>=6?1:0;case"quarter":return Math.floor((i[xl(t)]()+1)/4);case"month":return i[xl(t)]();case"day":return i[ud(t)]();case"half-day":return i[dc(t)]()/24;case"hour":return i[dc(t)]();case"minute":return i[cd(t)]();case"second":return i[hd(t)]();case"millisecond":return i[pd(t)]()}}function tm(n){return n?"getUTCFullYear":"getFullYear"}function xl(n){return n?"getUTCMonth":"getMonth"}function ud(n){return n?"getUTCDate":"getDate"}function dc(n){return n?"getUTCHours":"getHours"}function cd(n){return n?"getUTCMinutes":"getMinutes"}function hd(n){return n?"getUTCSeconds":"getSeconds"}function pd(n){return n?"getUTCMilliseconds":"getMilliseconds"}function E4(n){return n?"setUTCFullYear":"setFullYear"}function WS(n){return n?"setUTCMonth":"setMonth"}function GS(n){return n?"setUTCDate":"setDate"}function jS(n){return n?"setUTCHours":"setHours"}function HS(n){return n?"setUTCMinutes":"setMinutes"}function US(n){return n?"setUTCSeconds":"setSeconds"}function XS(n){return n?"setUTCMilliseconds":"setMilliseconds"}function ZS(n){if(!Qw(n))return Tt(n)?n:"-";var e=(n+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function qS(n,e){return n=(n||"").toLowerCase().replace(/-(.)/g,function(t,i){return i.toUpperCase()}),e&&n&&(n=n.charAt(0).toUpperCase()+n.slice(1)),n}var bl=av;function em(n,e,t){var i="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function r(c){return c&&nr(c)?c:"-"}function a(c){return!!(c!=null&&!isNaN(c)&&isFinite(c))}var o=e==="time",s=n instanceof Date;if(o||s){var l=o?Cr(n):n;if(isNaN(+l)){if(s)return"-"}else return ld(l,i,t)}if(e==="ordinal")return iv(n)?r(n):ve(n)&&a(n)?n+"":"-";var u=ra(n);return a(u)?ZS(u):iv(n)?r(n):typeof n=="boolean"?n+"":"-"}var KS=["a","b","c","d","e","f","g"],nm=function(n,e){return"{"+n+(e??"")+"}"};function YS(n,e,t){ht(e)||(e=[e]);var i=e.length;if(!i)return"";for(var r=e[0].$vars||[],a=0;a<r.length;a++){var o=KS[a];n=n.replace(nm(o),nm(o,0))}for(var s=0;s<i;s++)for(var l=0;l<r.length;l++){var u=e[s][r[l]];n=n.replace(nm(KS[l],s),t?Un(u):u)}return n}function O4(n,e,t){return E(e,function(i,r){n=n.replace("{"+r+"}",i)}),n}function B4(n,e){var t=Tt(n)?{color:n,extraCssText:e}:n||{},i=t.color,r=t.type;e=t.extraCssText;var a=t.renderMode||"html";if(!i)return"";if(a==="html")return r==="subItem"?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+Un(i)+";"+(e||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+Un(i)+";"+(e||"")+'"></span>';var o=t.markerId||"markerX";return{renderMode:a,content:"{"+o+"|} ",style:r==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:i}:{width:10,height:10,borderRadius:5,backgroundColor:i}}}function as(n,e){return e=e||"transparent",Tt(n)?n:Vt(n)&&n.colorStops&&(n.colorStops[0]||{}).color||e}function dd(n,e){if(e==="_blank"||e==="blank"){var t=window.open();t.opener=null,t.location.href=n}else window.open(n,e)}var fd=E,JS=["left","right","top","bottom","width","height"],os=[["width","left","right"],["height","top","bottom"]];function im(n,e,t,i,r){var a=0,o=0;i==null&&(i=1/0),r==null&&(r=1/0);var s=0;e.eachChild(function(l,u){var c=l.getBoundingRect(),h=e.childAt(u+1),f=h&&h.getBoundingRect(),d,g;if(n==="horizontal"){var y=c.width+(f?-f.x+c.x:0);d=a+y,d>i||l.newline?(a=0,d=y,o+=s+t,s=c.height):s=Math.max(s,c.height)}else{var _=c.height+(f?-f.y+c.y:0);g=o+_,g>r||l.newline?(a+=s+t,o=0,g=_,s=c.width):s=Math.max(s,c.width)}l.newline||(l.x=a,l.y=o,l.markRedraw(),n==="horizontal"?a=d+t:o=g+t)})}var ss=im;Zt(im,"vertical"),Zt(im,"horizontal");function V4(n,e,t){var i=e.width,r=e.height,a=Mt(n.left,i),o=Mt(n.top,r),s=Mt(n.right,i),l=Mt(n.bottom,r);return(isNaN(a)||isNaN(parseFloat(n.left)))&&(a=0),(isNaN(s)||isNaN(parseFloat(n.right)))&&(s=i),(isNaN(o)||isNaN(parseFloat(n.top)))&&(o=0),(isNaN(l)||isNaN(parseFloat(n.bottom)))&&(l=r),t=bl(t||0),{width:Math.max(s-a-t[1]-t[3],0),height:Math.max(l-o-t[0]-t[2],0)}}function un(n,e,t){t=bl(t||0);var i=e.width,r=e.height,a=Mt(n.left,i),o=Mt(n.top,r),s=Mt(n.right,i),l=Mt(n.bottom,r),u=Mt(n.width,i),c=Mt(n.height,r),h=t[2]+t[0],f=t[1]+t[3],d=n.aspect;switch(isNaN(u)&&(u=i-s-f-a),isNaN(c)&&(c=r-l-h-o),d!=null&&(isNaN(u)&&isNaN(c)&&(d>i/r?u=i*.8:c=r*.8),isNaN(u)&&(u=d*c),isNaN(c)&&(c=u/d)),isNaN(a)&&(a=i-s-u-f),isNaN(o)&&(o=r-l-c-h),n.left||n.right){case"center":a=i/2-u/2-t[3];break;case"right":a=i-u-f;break}switch(n.top||n.bottom){case"middle":case"center":o=r/2-c/2-t[0];break;case"bottom":o=r-c-h;break}a=a||0,o=o||0,isNaN(u)&&(u=i-f-a-(s||0)),isNaN(c)&&(c=r-h-o-(l||0));var g=new $t(a+t[3],o+t[0],u,c);return g.margin=t,g}function gd(n,e,t,i,r,a){var o=!r||!r.hv||r.hv[0],s=!r||!r.hv||r.hv[1],l=r&&r.boundingMode||"all";if(a=a||n,a.x=n.x,a.y=n.y,!o&&!s)return!1;var u;if(l==="raw")u=n.type==="group"?new $t(0,0,+e.width||0,+e.height||0):n.getBoundingRect();else if(u=n.getBoundingRect(),n.needLocalTransform()){var c=n.getLocalTransform();u=u.clone(),u.applyTransform(c)}var h=un(Bt({width:u.width,height:u.height},e),t,i),f=o?h.x-u.x:0,d=s?h.y-u.y:0;return l==="raw"?(a.x=f,a.y=d):(a.x+=f,a.y+=d),a===n&&n.markRedraw(),!0}function F4(n,e){return n[os[e][0]]!=null||n[os[e][1]]!=null&&n[os[e][2]]!=null}function fc(n){var e=n.layoutMode||n.constructor.layoutMode;return Vt(e)?e:e?{type:e}:null}function Ya(n,e,t){var i=t&&t.ignoreSize;!ht(i)&&(i=[i,i]);var r=o(os[0],0),a=o(os[1],1);u(os[0],n,r),u(os[1],n,a);function o(c,h){var f={},d=0,g={},y=0,_=2;if(fd(c,function(x){g[x]=n[x]}),fd(c,function(x){s(e,x)&&(f[x]=g[x]=e[x]),l(f,x)&&d++,l(g,x)&&y++}),i[h])return l(e,c[1])?g[c[2]]=null:l(e,c[2])&&(g[c[1]]=null),g;if(y===_||!d)return g;if(d>=_)return f;for(var v=0;v<c.length;v++){var p=c[v];if(!s(f,p)&&s(n,p)){f[p]=n[p];break}}return f}function s(c,h){return c.hasOwnProperty(h)}function l(c,h){return c[h]!=null&&c[h]!=="auto"}function u(c,h,f){fd(c,function(d){h[d]=f[d]})}}function wl(n){return $S({},n)}function $S(n,e){return e&&n&&fd(JS,function(t){e.hasOwnProperty(t)&&(n[t]=e[t])}),n}var W4=pe(),le=function(n){Q(e,n);function e(t,i,r){var a=n.call(this,t,i,r)||this;return a.uid=yl("ec_cpt_model"),a}return e.prototype.init=function(t,i,r){this.mergeDefaultAndTheme(t,r)},e.prototype.mergeDefaultAndTheme=function(t,i){var r=fc(this),a=r?wl(t):{},o=i.getTheme();Kt(t,o.get(this.mainType)),Kt(t,this.getDefaultOption()),r&&Ya(t,a,r)},e.prototype.mergeOption=function(t,i){Kt(this.option,t,!0);var r=fc(this);r&&Ya(this.option,t,r)},e.prototype.optionUpdated=function(t,i){},e.prototype.getDefaultOption=function(){var t=this.constructor;if(!DO(t))return t.defaultOption;var i=W4(this);if(!i.defaultOption){for(var r=[],a=t;a;){var o=a.prototype.defaultOption;o&&r.push(o),a=a.superClass}for(var s={},l=r.length-1;l>=0;l--)s=Kt(s,r[l],!0);i.defaultOption=s}return i.defaultOption},e.prototype.getReferringComponents=function(t,i){var r=t+"Index",a=t+"Id";return Zu(this.ecModel,t,{index:this.get(r,!0),id:this.get(a,!0)},i)},e.prototype.getBoxLayoutParams=function(){var t=this;return{left:t.get("left"),top:t.get("top"),right:t.get("right"),bottom:t.get("bottom"),width:t.get("width"),height:t.get("height")}},e.prototype.getZLevelKey=function(){return""},e.prototype.setZLevel=function(t){this.option.zlevel=t},e.protoInitialize=function(){var t=e.prototype;t.type="component",t.id="",t.name="",t.mainType="",t.subType="",t.componentIndex=0}(),e}(Ce);p2(le,Ce),Dp(le),A4(le),C4(le,G4);function G4(n){var e=[];return E(le.getClassesByMainType(n),function(t){e=e.concat(t.dependencies||t.prototype.dependencies||[])}),e=pt(e,function(t){return kr(t).main}),n!=="dataset"&&Qt(e,"dataset")<=0&&e.unshift("dataset"),e}var QS="";typeof navigator<"u"&&(QS=navigator.platform||"");var Sl="rgba(0, 0, 0, 0.2)";const j4={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:Sl,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Sl,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:Sl,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Sl,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Sl,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Sl,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:QS.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 tM=Dt(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),Oi="original",En="arrayRows",Bi="objectRows",zr="keyedColumns",Ja="typedArray",eM="unknown",Er="column",Ml="row",Ln={Must:1,Might:2,Not:3},nM=pe();function H4(n){nM(n).datasetMap=Dt()}function iM(n,e,t){var i={},r=am(e);if(!r||!n)return i;var a=[],o=[],s=e.ecModel,l=nM(s).datasetMap,u=r.uid+"_"+t.seriesLayoutBy,c,h;n=n.slice(),E(n,function(y,_){var v=Vt(y)?y:n[_]={name:y};v.type==="ordinal"&&c==null&&(c=_,h=g(v)),i[v.name]=[]});var f=l.get(u)||l.set(u,{categoryWayDim:h,valueWayDim:0});E(n,function(y,_){var v=y.name,p=g(y);if(c==null){var x=f.valueWayDim;d(i[v],x,p),d(o,x,p),f.valueWayDim+=p}else if(c===_)d(i[v],0,p),d(a,0,p);else{var x=f.categoryWayDim;d(i[v],x,p),d(o,x,p),f.categoryWayDim+=p}});function d(y,_,v){for(var p=0;p<v;p++)y.push(_+p)}function g(y){var _=y.dimsDef;return _?_.length:1}return a.length&&(i.itemName=a),o.length&&(i.seriesName=o),i}function rm(n,e,t){var i={},r=am(n);if(!r)return i;var a=e.sourceFormat,o=e.dimensionsDefine,s;(a===Bi||a===zr)&&E(o,function(c,h){(Vt(c)?c.name:c)==="name"&&(s=h)});var l=function(){for(var c={},h={},f=[],d=0,g=Math.min(5,t);d<g;d++){var y=aM(e.data,a,e.seriesLayoutBy,o,e.startIndex,d);f.push(y);var _=y===Ln.Not;if(_&&c.v==null&&d!==s&&(c.v=d),(c.n==null||c.n===c.v||!_&&f[c.n]===Ln.Not)&&(c.n=d),v(c)&&f[c.n]!==Ln.Not)return c;_||(y===Ln.Might&&h.v==null&&d!==s&&(h.v=d),(h.n==null||h.n===h.v)&&(h.n=d))}function v(p){return p.v!=null&&p.n!=null}return v(c)?c:v(h)?h:null}();if(l){i.value=[l.v];var u=s??l.n;i.itemName=[u],i.seriesName=[u]}return i}function am(n){var e=n.get("data",!0);if(!e)return Zu(n.ecModel,"dataset",{index:n.get("datasetIndex",!0),id:n.get("datasetId",!0)},en).models[0]}function U4(n){return!n.get("transform",!0)&&!n.get("fromTransformResult",!0)?[]:Zu(n.ecModel,"dataset",{index:n.get("fromDatasetIndex",!0),id:n.get("fromDatasetId",!0)},en).models}function rM(n,e){return aM(n.data,n.sourceFormat,n.seriesLayoutBy,n.dimensionsDefine,n.startIndex,e)}function aM(n,e,t,i,r,a){var o,s=5;if(ri(n))return Ln.Not;var l,u;if(i){var c=i[a];Vt(c)?(l=c.name,u=c.type):Tt(c)&&(l=c)}if(u!=null)return u==="ordinal"?Ln.Must:Ln.Not;if(e===En){var h=n;if(t===Ml){for(var f=h[a],d=0;d<(f||[]).length&&d<s;d++)if((o=b(f[r+d]))!=null)return o}else for(var d=0;d<h.length&&d<s;d++){var g=h[r+d];if(g&&(o=b(g[a]))!=null)return o}}else if(e===Bi){var y=n;if(!l)return Ln.Not;for(var d=0;d<y.length&&d<s;d++){var _=y[d];if(_&&(o=b(_[l]))!=null)return o}}else if(e===zr){var v=n;if(!l)return Ln.Not;var f=v[l];if(!f||ri(f))return Ln.Not;for(var d=0;d<f.length&&d<s;d++)if((o=b(f[d]))!=null)return o}else if(e===Oi)for(var p=n,d=0;d<p.length&&d<s;d++){var _=p[d],x=ol(_);if(!ht(x))return Ln.Not;if((o=b(x[a]))!=null)return o}function b(S){var M=Tt(S);if(S!=null&&Number.isFinite(Number(S))&&S!=="")return M?Ln.Might:Ln.Not;if(M&&S!=="-")return Ln.Must}return Ln.Not}var om=Dt();function X4(n,e){jn(om.get(n)==null&&e),om.set(n,e)}function Z4(n,e,t){var i=om.get(e);if(!i)return t;var r=i(n);return r?t.concat(r):t}var oM=pe(),q4=pe(),sm=function(){function n(){}return n.prototype.getColorFromPalette=function(e,t,i){var r=De(this.get("color",!0)),a=this.get("colorLayer",!0);return sM(this,oM,r,a,e,t,i)},n.prototype.clearColorPalette=function(){Y4(this,oM)},n}();function lm(n,e,t,i){var r=De(n.get(["aria","decal","decals"]));return sM(n,q4,r,null,e,t,i)}function K4(n,e){for(var t=n.length,i=0;i<t;i++)if(n[i].length>e)return n[i];return n[t-1]}function sM(n,e,t,i,r,a,o){a=a||n;var s=e(a),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(r))return u[r];var c=o==null||!i?t:K4(i,o);if(c=c||t,!(!c||!c.length)){var h=c[l];return r&&(u[r]=h),s.paletteIdx=(l+1)%c.length,h}}function Y4(n,e){e(n).paletteIdx=0,e(n).paletteNameMap={}}var vd,gc,lM,uM="\0_ec_inner",J4=1,um=function(n){Q(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.init=function(t,i,r,a,o,s){a=a||{},this.option=null,this._theme=new Ce(a),this._locale=new Ce(o),this._optionManager=s},e.prototype.setOption=function(t,i,r){var a=pM(i);this._optionManager.setOption(t,r,a),this._resetOption(null,a)},e.prototype.resetOption=function(t,i){return this._resetOption(t,pM(i))},e.prototype._resetOption=function(t,i){var r=!1,a=this._optionManager;if(!t||t==="recreate"){var o=a.mountOption(t==="recreate");!this.option||t==="recreate"?lM(this,o):(this.restoreData(),this._mergeOption(o,i)),r=!0}if((t==="timeline"||t==="media")&&this.restoreData(),!t||t==="recreate"||t==="timeline"){var s=a.getTimelineOption(this);s&&(r=!0,this._mergeOption(s,i))}if(!t||t==="recreate"||t==="media"){var l=a.getMediaOption(this);l.length&&E(l,function(u){r=!0,this._mergeOption(u,i)},this)}return r},e.prototype.mergeOption=function(t){this._mergeOption(t,null)},e.prototype._mergeOption=function(t,i){var r=this.option,a=this._componentsMap,o=this._componentsCount,s=[],l=Dt(),u=i&&i.replaceMergeMainTypeMap;H4(this),E(t,function(h,f){h!=null&&(le.hasClass(f)?f&&(s.push(f),l.set(f,!0)):r[f]=r[f]==null?Wt(h):Kt(r[f],h,!0))}),u&&u.each(function(h,f){le.hasClass(f)&&!l.get(f)&&(s.push(f),l.set(f,!0))}),le.topologicalTravel(s,le.getAllClassMainTypes(),c,this);function c(h){var f=Z4(this,h,De(t[h])),d=a.get(h),g=d?u&&u.get(h)?"replaceMerge":"normalMerge":"replaceAll",y=s2(d,f,g);wO(y,h,le),r[h]=null,a.set(h,null),o.set(h,0);var _=[],v=[],p=0,x;E(y,function(b,S){var M=b.existing,I=b.newOption;if(!I)M&&(M.mergeOption({},this),M.optionUpdated({},!1));else{var A=h==="series",C=le.getClass(h,b.keyInfo.subType,!A);if(!C)return;if(h==="tooltip"){if(x)return;x=!0}if(M&&M.constructor===C)M.name=b.keyInfo.name,M.mergeOption(I,this),M.optionUpdated(I,!1);else{var L=lt({componentIndex:S},b.keyInfo);M=new C(I,this,this,L),lt(M,L),b.brandNew&&(M.__requireNewView=!0),M.init(I,this,this),M.optionUpdated(null,!0)}}M?(_.push(M.option),v.push(M),p++):(_.push(void 0),v.push(void 0))},this),r[h]=_,a.set(h,v),o.set(h,p),h==="series"&&vd(this)}this._seriesIndices||vd(this)},e.prototype.getOption=function(){var t=Wt(this.option);return E(t,function(i,r){if(le.hasClass(r)){for(var a=De(i),o=a.length,s=!1,l=o-1;l>=0;l--)a[l]&&!Uu(a[l])?s=!0:(a[l]=null,!s&&o--);a.length=o,t[r]=a}}),delete t[uM],t},e.prototype.getTheme=function(){return this._theme},e.prototype.getLocaleModel=function(){return this._locale},e.prototype.setUpdatePayload=function(t){this._payload=t},e.prototype.getUpdatePayload=function(){return this._payload},e.prototype.getComponent=function(t,i){var r=this._componentsMap.get(t);if(r){var a=r[i||0];if(a)return a;if(i==null){for(var o=0;o<r.length;o++)if(r[o])return r[o]}}},e.prototype.queryComponents=function(t){var i=t.mainType;if(!i)return[];var r=t.index,a=t.id,o=t.name,s=this._componentsMap.get(i);if(!s||!s.length)return[];var l;return r!=null?(l=[],E(De(r),function(u){s[u]&&l.push(s[u])})):a!=null?l=cM("id",a,s):o!=null?l=cM("name",o,s):l=Se(s,function(u){return!!u}),hM(l,t)},e.prototype.findComponents=function(t){var i=t.query,r=t.mainType,a=s(i),o=a?this.queryComponents(a):Se(this._componentsMap.get(r),function(u){return!!u});return l(hM(o,t));function s(u){var c=r+"Index",h=r+"Id",f=r+"Name";return u&&(u[c]!=null||u[h]!=null||u[f]!=null)?{mainType:r,index:u[c],id:u[h],name:u[f]}:null}function l(u){return t.filter?Se(u,t.filter):u}},e.prototype.eachComponent=function(t,i,r){var a=this._componentsMap;if(Ot(t)){var o=i,s=t;a.each(function(h,f){for(var d=0;h&&d<h.length;d++){var g=h[d];g&&s.call(o,f,g,g.componentIndex)}})}else for(var l=Tt(t)?a.get(t):Vt(t)?this.findComponents(t):null,u=0;l&&u<l.length;u++){var c=l[u];c&&i.call(r,c,c.componentIndex)}},e.prototype.getSeriesByName=function(t){var i=ln(t,null);return Se(this._componentsMap.get("series"),function(r){return!!r&&i!=null&&r.name===i})},e.prototype.getSeriesByIndex=function(t){return this._componentsMap.get("series")[t]},e.prototype.getSeriesByType=function(t){return Se(this._componentsMap.get("series"),function(i){return!!i&&i.subType===t})},e.prototype.getSeries=function(){return Se(this._componentsMap.get("series"),function(t){return!!t})},e.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},e.prototype.eachSeries=function(t,i){gc(this),E(this._seriesIndices,function(r){var a=this._componentsMap.get("series")[r];t.call(i,a,r)},this)},e.prototype.eachRawSeries=function(t,i){E(this._componentsMap.get("series"),function(r){r&&t.call(i,r,r.componentIndex)})},e.prototype.eachSeriesByType=function(t,i,r){gc(this),E(this._seriesIndices,function(a){var o=this._componentsMap.get("series")[a];o.subType===t&&i.call(r,o,a)},this)},e.prototype.eachRawSeriesByType=function(t,i,r){return E(this.getSeriesByType(t),i,r)},e.prototype.isSeriesFiltered=function(t){return gc(this),this._seriesIndicesMap.get(t.componentIndex)==null},e.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},e.prototype.filterSeries=function(t,i){gc(this);var r=[];E(this._seriesIndices,function(a){var o=this._componentsMap.get("series")[a];t.call(i,o,a)&&r.push(a)},this),this._seriesIndices=r,this._seriesIndicesMap=Dt(r)},e.prototype.restoreData=function(t){vd(this);var i=this._componentsMap,r=[];i.each(function(a,o){le.hasClass(o)&&r.push(o)}),le.topologicalTravel(r,le.getAllClassMainTypes(),function(a){E(i.get(a),function(o){o&&(a!=="series"||!$4(o,t))&&o.restoreData()})})},e.internalField=function(){vd=function(t){var i=t._seriesIndices=[];E(t._componentsMap.get("series"),function(r){r&&i.push(r.componentIndex)}),t._seriesIndicesMap=Dt(i)},gc=function(t){},lM=function(t,i){t.option={},t.option[uM]=J4,t._componentsMap=Dt({series:[]}),t._componentsCount=Dt();var r=i.aria;Vt(r)&&r.enabled==null&&(r.enabled=!0),Q4(i,t._theme.option),Kt(i,j4,!1),t._mergeOption(i,null)}}(),e}(Ce);function $4(n,e){if(e){var t=e.seriesIndex,i=e.seriesId,r=e.seriesName;return t!=null&&n.componentIndex!==t||i!=null&&n.id!==i||r!=null&&n.name!==r}}function Q4(n,e){var t=n.color&&!n.colorLayer;E(e,function(i,r){r==="colorLayer"&&t||le.hasClass(r)||(typeof i=="object"?n[r]=n[r]?Kt(n[r],i,!1):Wt(i):n[r]==null&&(n[r]=i))})}function cM(n,e,t){if(ht(e)){var i=Dt();return E(e,function(a){if(a!=null){var o=ln(a,null);o!=null&&i.set(a,!0)}}),Se(t,function(a){return a&&i.get(a[n])})}else{var r=ln(e,null);return Se(t,function(a){return a&&r!=null&&a[n]===r})}}function hM(n,e){return e.hasOwnProperty("subType")?Se(n,function(t){return t&&t.subType===e.subType}):n}function pM(n){var e=Dt();return n&&E(De(n.replaceMerge),function(t){e.set(t,!0)}),{replaceMergeMainTypeMap:e}}tn(um,sm);var tV=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],dM=function(){function n(e){E(tV,function(t){this[t]=Ct(e[t],e)},this)}return n}(),cm={},vc=function(){function n(){this._coordinateSystems=[]}return n.prototype.create=function(e,t){var i=[];E(cm,function(r,a){var o=r.create(e,t);i=i.concat(o||[])}),this._coordinateSystems=i},n.prototype.update=function(e,t){E(this._coordinateSystems,function(i){i.update&&i.update(e,t)})},n.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},n.register=function(e,t){cm[e]=t},n.get=function(e){return cm[e]},n}(),eV=/^(min|max)?(.+)$/,nV=function(){function n(e){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=e}return n.prototype.setOption=function(e,t,i){e&&(E(De(e.series),function(o){o&&o.data&&ri(o.data)&&tp(o.data)}),E(De(e.dataset),function(o){o&&o.source&&ri(o.source)&&tp(o.source)})),e=Wt(e);var r=this._optionBackup,a=iV(e,t,!r);this._newBaseOption=a.baseOption,r?(a.timelineOptions.length&&(r.timelineOptions=a.timelineOptions),a.mediaList.length&&(r.mediaList=a.mediaList),a.mediaDefault&&(r.mediaDefault=a.mediaDefault)):this._optionBackup=a},n.prototype.mountOption=function(e){var t=this._optionBackup;return this._timelineOptions=t.timelineOptions,this._mediaList=t.mediaList,this._mediaDefault=t.mediaDefault,this._currentMediaIndices=[],Wt(e?t.baseOption:this._newBaseOption)},n.prototype.getTimelineOption=function(e){var t,i=this._timelineOptions;if(i.length){var r=e.getComponent("timeline");r&&(t=Wt(i[r.getCurrentIndex()]))}return t},n.prototype.getMediaOption=function(e){var t=this._api.getWidth(),i=this._api.getHeight(),r=this._mediaList,a=this._mediaDefault,o=[],s=[];if(!r.length&&!a)return s;for(var l=0,u=r.length;l<u;l++)rV(r[l].query,t,i)&&o.push(l);return!o.length&&a&&(o=[-1]),o.length&&!oV(o,this._currentMediaIndices)&&(s=pt(o,function(c){return Wt(c===-1?a.option:r[c].option)})),this._currentMediaIndices=o,s},n}();function iV(n,e,t){var i=[],r,a,o=n.baseOption,s=n.timeline,l=n.options,u=n.media,c=!!n.media,h=!!(l||s||o&&o.timeline);o?(a=o,a.timeline||(a.timeline=s)):((h||c)&&(n.options=n.media=null),a=n),c&&(ht(u)&&E(u,function(d){d&&d.option&&(d.query?i.push(d):r||(r=d))})),f(a),E(l,function(d){return f(d)}),E(i,function(d){return f(d.option)});function f(d){E(e,function(g){g(d,t)})}return{baseOption:a,timelineOptions:l||[],mediaDefault:r,mediaList:i}}function rV(n,e,t){var i={width:e,height:t,aspectratio:e/t},r=!0;return E(n,function(a,o){var s=o.match(eV);if(!(!s||!s[1]||!s[2])){var l=s[1],u=s[2].toLowerCase();aV(i[u],a,l)||(r=!1)}}),r}function aV(n,e,t){return t==="min"?n>=e:t==="max"?n<=e:n===e}function oV(n,e){return n.join(",")===e.join(",")}var cr=E,yc=Vt,fM=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function hm(n){var e=n&&n.itemStyle;if(e)for(var t=0,i=fM.length;t<i;t++){var r=fM[t],a=e.normal,o=e.emphasis;a&&a[r]&&(n[r]=n[r]||{},n[r].normal?Kt(n[r].normal,a[r]):n[r].normal=a[r],a[r]=null),o&&o[r]&&(n[r]=n[r]||{},n[r].emphasis?Kt(n[r].emphasis,o[r]):n[r].emphasis=o[r],o[r]=null)}}function On(n,e,t){if(n&&n[e]&&(n[e].normal||n[e].emphasis)){var i=n[e].normal,r=n[e].emphasis;i&&(t?(n[e].normal=n[e].emphasis=null,Bt(n[e],i)):n[e]=i),r&&(n.emphasis=n.emphasis||{},n.emphasis[e]=r,r.focus&&(n.emphasis.focus=r.focus),r.blurScope&&(n.emphasis.blurScope=r.blurScope))}}function mc(n){On(n,"itemStyle"),On(n,"lineStyle"),On(n,"areaStyle"),On(n,"label"),On(n,"labelLine"),On(n,"upperLabel"),On(n,"edgeLabel")}function nn(n,e){var t=yc(n)&&n[e],i=yc(t)&&t.textStyle;if(i)for(var r=0,a=o2.length;r<a;r++){var o=o2[r];i.hasOwnProperty(o)&&(t[o]=i[o])}}function Vi(n){n&&(mc(n),nn(n,"label"),n.emphasis&&nn(n.emphasis,"label"))}function sV(n){if(yc(n)){hm(n),mc(n),nn(n,"label"),nn(n,"upperLabel"),nn(n,"edgeLabel"),n.emphasis&&(nn(n.emphasis,"label"),nn(n.emphasis,"upperLabel"),nn(n.emphasis,"edgeLabel"));var e=n.markPoint;e&&(hm(e),Vi(e));var t=n.markLine;t&&(hm(t),Vi(t));var i=n.markArea;i&&Vi(i);var r=n.data;if(n.type==="graph"){r=r||n.nodes;var a=n.links||n.edges;if(a&&!ri(a))for(var o=0;o<a.length;o++)Vi(a[o]);E(n.categories,function(u){mc(u)})}if(r&&!ri(r))for(var o=0;o<r.length;o++)Vi(r[o]);if(e=n.markPoint,e&&e.data)for(var s=e.data,o=0;o<s.length;o++)Vi(s[o]);if(t=n.markLine,t&&t.data)for(var l=t.data,o=0;o<l.length;o++)ht(l[o])?(Vi(l[o][0]),Vi(l[o][1])):Vi(l[o]);n.type==="gauge"?(nn(n,"axisLabel"),nn(n,"title"),nn(n,"detail")):n.type==="treemap"?(On(n.breadcrumb,"itemStyle"),E(n.levels,function(u){mc(u)})):n.type==="tree"&&mc(n.leaves)}}function ha(n){return ht(n)?n:n?[n]:[]}function gM(n){return(ht(n)?n[0]:n)||{}}function lV(n,e){cr(ha(n.series),function(i){yc(i)&&sV(i)});var t=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];e&&t.push("valueAxis","categoryAxis","logAxis","timeAxis"),cr(t,function(i){cr(ha(n[i]),function(r){r&&(nn(r,"axisLabel"),nn(r.axisPointer,"label"))})}),cr(ha(n.parallel),function(i){var r=i&&i.parallelAxisDefault;nn(r,"axisLabel"),nn(r&&r.axisPointer,"label")}),cr(ha(n.calendar),function(i){On(i,"itemStyle"),nn(i,"dayLabel"),nn(i,"monthLabel"),nn(i,"yearLabel")}),cr(ha(n.radar),function(i){nn(i,"name"),i.name&&i.axisName==null&&(i.axisName=i.name,delete i.name),i.nameGap!=null&&i.axisNameGap==null&&(i.axisNameGap=i.nameGap,delete i.nameGap)}),cr(ha(n.geo),function(i){yc(i)&&(Vi(i),cr(ha(i.regions),function(r){Vi(r)}))}),cr(ha(n.timeline),function(i){Vi(i),On(i,"label"),On(i,"itemStyle"),On(i,"controlStyle",!0);var r=i.data;ht(r)&&E(r,function(a){Vt(a)&&(On(a,"label"),On(a,"itemStyle"))})}),cr(ha(n.toolbox),function(i){On(i,"iconStyle"),cr(i.feature,function(r){On(r,"iconStyle")})}),nn(gM(n.axisPointer),"label"),nn(gM(n.tooltip).axisPointer,"label")}function uV(n,e){for(var t=e.split(","),i=n,r=0;r<t.length&&(i=i&&i[t[r]],i!=null);r++);return i}function cV(n,e,t,i){for(var r=e.split(","),a=n,o,s=0;s<r.length-1;s++)o=r[s],a[o]==null&&(a[o]={}),a=a[o];a[r[s]]==null&&(a[r[s]]=t)}function vM(n){n&&E(hV,function(e){e[0]in n&&!(e[1]in n)&&(n[e[1]]=n[e[0]])})}var hV=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],pV=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],pm=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function _c(n){var e=n&&n.itemStyle;if(e)for(var t=0;t<pm.length;t++){var i=pm[t][1],r=pm[t][0];e[i]!=null&&(e[r]=e[i])}}function yM(n){n&&n.alignTo==="edge"&&n.margin!=null&&n.edgeDistance==null&&(n.edgeDistance=n.margin)}function mM(n){n&&n.downplay&&!n.blur&&(n.blur=n.downplay)}function dV(n){n&&n.focusNodeAdjacency!=null&&(n.emphasis=n.emphasis||{},n.emphasis.focus==null&&(n.emphasis.focus="adjacency"))}function _M(n,e){if(n)for(var t=0;t<n.length;t++)e(n[t]),n[t]&&_M(n[t].children,e)}function xM(n,e){lV(n,e),n.series=De(n.series),E(n.series,function(t){if(Vt(t)){var i=t.type;if(i==="line")t.clipOverflow!=null&&(t.clip=t.clipOverflow);else if(i==="pie"||i==="gauge"){t.clockWise!=null&&(t.clockwise=t.clockWise),yM(t.label);var r=t.data;if(r&&!ri(r))for(var a=0;a<r.length;a++)yM(r[a]);t.hoverOffset!=null&&(t.emphasis=t.emphasis||{},(t.emphasis.scaleSize=null)&&(t.emphasis.scaleSize=t.hoverOffset))}else if(i==="gauge"){var o=uV(t,"pointer.color");o!=null&&cV(t,"itemStyle.color",o)}else if(i==="bar"){_c(t),_c(t.backgroundStyle),_c(t.emphasis);var r=t.data;if(r&&!ri(r))for(var a=0;a<r.length;a++)typeof r[a]=="object"&&(_c(r[a]),_c(r[a]&&r[a].emphasis))}else if(i==="sunburst"){var s=t.highlightPolicy;s&&(t.emphasis=t.emphasis||{},t.emphasis.focus||(t.emphasis.focus=s)),mM(t),_M(t.data,mM)}else i==="graph"||i==="sankey"?dV(t):i==="map"&&(t.mapType&&!t.map&&(t.map=t.mapType),t.mapLocation&&Bt(t,t.mapLocation));t.hoverAnimation!=null&&(t.emphasis=t.emphasis||{},t.emphasis&&t.emphasis.scale==null&&(t.emphasis.scale=t.hoverAnimation)),vM(t)}}),n.dataRange&&(n.visualMap=n.dataRange),E(pV,function(t){var i=n[t];i&&(ht(i)||(i=[i]),E(i,function(r){vM(r)}))})}function fV(n){var e=Dt();n.eachSeries(function(t){var i=t.get("stack");if(i){var r=e.get(i)||e.set(i,[]),a=t.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:t};if(!o.stackedDimension||!(o.isStackedByIndex||o.stackedByDimension))return;r.length&&a.setCalculationInfo("stackedOnSeries",r[r.length-1].seriesModel),r.push(o)}}),e.each(gV)}function gV(n){E(n,function(e,t){var i=[],r=[NaN,NaN],a=[e.stackResultDimension,e.stackedOverDimension],o=e.data,s=e.isStackedByIndex,l=e.seriesModel.get("stackStrategy")||"samesign";o.modify(a,function(u,c,h){var f=o.get(e.stackedDimension,h);if(isNaN(f))return r;var d,g;s?g=o.getRawIndex(h):d=o.get(e.stackedByDimension,h);for(var y=NaN,_=t-1;_>=0;_--){var v=n[_];if(s||(g=v.data.rawIndexOf(v.stackedByDimension,d)),g>=0){var p=v.data.getByRawIndex(v.stackResultDimension,g);if(l==="all"||l==="positive"&&p>0||l==="negative"&&p<0||l==="samesign"&&f>=0&&p>0||l==="samesign"&&f<=0&&p<0){f=hO(f,p),y=p;break}}}return i[0]=f,i[1]=y,i})})}var yd=function(){function n(e){this.data=e.data||(e.sourceFormat===zr?{}:[]),this.sourceFormat=e.sourceFormat||eM,this.seriesLayoutBy=e.seriesLayoutBy||Er,this.startIndex=e.startIndex||0,this.dimensionsDetectedCount=e.dimensionsDetectedCount,this.metaRawOption=e.metaRawOption;var t=this.dimensionsDefine=e.dimensionsDefine;if(t)for(var i=0;i<t.length;i++){var r=t[i];r.type==null&&rM(this,i)===Ln.Must&&(r.type="ordinal")}}return n}();function dm(n){return n instanceof yd}function fm(n,e,t){t=t||bM(n);var i=e.seriesLayoutBy,r=yV(n,t,i,e.sourceHeader,e.dimensions),a=new yd({data:n,sourceFormat:t,seriesLayoutBy:i,dimensionsDefine:r.dimensionsDefine,startIndex:r.startIndex,dimensionsDetectedCount:r.dimensionsDetectedCount,metaRawOption:Wt(e)});return a}function gm(n){return new yd({data:n,sourceFormat:ri(n)?Ja:Oi})}function vV(n){return new yd({data:n.data,sourceFormat:n.sourceFormat,seriesLayoutBy:n.seriesLayoutBy,dimensionsDefine:Wt(n.dimensionsDefine),startIndex:n.startIndex,dimensionsDetectedCount:n.dimensionsDetectedCount})}function bM(n){var e=eM;if(ri(n))e=Ja;else if(ht(n)){n.length===0&&(e=En);for(var t=0,i=n.length;t<i;t++){var r=n[t];if(r!=null){if(ht(r)||ri(r)){e=En;break}else if(Vt(r)){e=Bi;break}}}}else if(Vt(n)){for(var a in n)if(Lt(n,a)&&Nn(n[a])){e=zr;break}}return e}function yV(n,e,t,i,r){var a,o;if(!n)return{dimensionsDefine:wM(r),startIndex:o,dimensionsDetectedCount:a};if(e===En){var s=n;i==="auto"||i==null?SM(function(u){u!=null&&u!=="-"&&(Tt(u)?o==null&&(o=1):o=0)},t,s,10):o=ve(i)?i:i?1:0,!r&&o===1&&(r=[],SM(function(u,c){r[c]=u!=null?u+"":""},t,s,1/0)),a=r?r.length:t===Ml?s.length:s[0]?s[0].length:null}else if(e===Bi)r||(r=mV(n));else if(e===zr)r||(r=[],E(n,function(u,c){r.push(c)}));else if(e===Oi){var l=ol(n[0]);a=ht(l)&&l.length||1}return{startIndex:o,dimensionsDefine:wM(r),dimensionsDetectedCount:a}}function mV(n){for(var e=0,t;e<n.length&&!(t=n[e++]););if(t)return se(t)}function wM(n){if(n){var e=Dt();return pt(n,function(t,i){t=Vt(t)?t:{name:t};var r={name:t.name,displayName:t.displayName,type:t.type};if(r.name==null)return r;r.name+="",r.displayName==null&&(r.displayName=r.name);var a=e.get(r.name);return a?r.name+="-"+a.count++:e.set(r.name,{count:1}),r})}}function SM(n,e,t,i){if(e===Ml)for(var r=0;r<t.length&&r<i;r++)n(t[r]?t[r][0]:null,r);else for(var a=t[0]||[],r=0;r<a.length&&r<i;r++)n(a[r],r)}function MM(n){var e=n.sourceFormat;return e===Bi||e===zr}var ls,us,cs,IM,TM,AM=function(){function n(e,t){var i=dm(e)?e:gm(e);this._source=i;var r=this._data=i.data;i.sourceFormat===Ja&&(this._offset=0,this._dimSize=t,this._data=r),TM(this,r,i)}return n.prototype.getSource=function(){return this._source},n.prototype.count=function(){return 0},n.prototype.getItem=function(e,t){},n.prototype.appendData=function(e){},n.prototype.clean=function(){},n.protoInitialize=function(){var e=n.prototype;e.pure=!1,e.persistent=!0}(),n.internalField=function(){var e;TM=function(o,s,l){var u=l.sourceFormat,c=l.seriesLayoutBy,h=l.startIndex,f=l.dimensionsDefine,d=IM[ym(u,c)];if(lt(o,d),u===Ja)o.getItem=t,o.count=r,o.fillStorage=i;else{var g=kM(u,c);o.getItem=Ct(g,null,s,h,f);var y=DM(u,c);o.count=Ct(y,null,s,h,f)}};var t=function(o,s){o=o-this._offset,s=s||[];for(var l=this._data,u=this._dimSize,c=u*o,h=0;h<u;h++)s[h]=l[c+h];return s},i=function(o,s,l,u){for(var c=this._data,h=this._dimSize,f=0;f<h;f++){for(var d=u[f],g=d[0]==null?1/0:d[0],y=d[1]==null?-1/0:d[1],_=s-o,v=l[f],p=0;p<_;p++){var x=c[p*h+f];v[o+p]=x,x<g&&(g=x),x>y&&(y=x)}d[0]=g,d[1]=y}},r=function(){return this._data?this._data.length/this._dimSize:0};IM=(e={},e[En+"_"+Er]={pure:!0,appendData:a},e[En+"_"+Ml]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},e[Bi]={pure:!0,appendData:a},e[zr]={pure:!0,appendData:function(o){var s=this._data;E(o,function(l,u){for(var c=s[u]||(s[u]=[]),h=0;h<(l||[]).length;h++)c.push(l[h])})}},e[Oi]={appendData:a},e[Ja]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},e);function a(o){for(var s=0;s<o.length;s++)this._data.push(o[s])}}(),n}(),CM=function(n,e,t,i){return n[i]},_V=(ls={},ls[En+"_"+Er]=function(n,e,t,i){return n[i+e]},ls[En+"_"+Ml]=function(n,e,t,i,r){i+=e;for(var a=r||[],o=n,s=0;s<o.length;s++){var l=o[s];a[s]=l?l[i]:null}return a},ls[Bi]=CM,ls[zr]=function(n,e,t,i,r){for(var a=r||[],o=0;o<t.length;o++){var s=t[o].name,l=n[s];a[o]=l?l[i]:null}return a},ls[Oi]=CM,ls);function kM(n,e){var t=_V[ym(n,e)];return t}var LM=function(n,e,t){return n.length},xV=(us={},us[En+"_"+Er]=function(n,e,t){return Math.max(0,n.length-e)},us[En+"_"+Ml]=function(n,e,t){var i=n[0];return i?Math.max(0,i.length-e):0},us[Bi]=LM,us[zr]=function(n,e,t){var i=t[0].name,r=n[i];return r?r.length:0},us[Oi]=LM,us);function DM(n,e){var t=xV[ym(n,e)];return t}var vm=function(n,e,t){return n[e]},bV=(cs={},cs[En]=vm,cs[Bi]=function(n,e,t){return n[t]},cs[zr]=vm,cs[Oi]=function(n,e,t){var i=ol(n);return i instanceof Array?i[e]:i},cs[Ja]=vm,cs);function PM(n){var e=bV[n];return e}function ym(n,e){return n===En?n+"_"+e:n}function Il(n,e,t){if(n){var i=n.getRawDataItem(e);if(i!=null){var r=n.getStore(),a=r.getSource().sourceFormat;if(t!=null){var o=n.getDimensionIndex(t),s=r.getDimensionProperty(o);return PM(a)(i,o,s)}else{var l=i;return a===Oi&&(l=ol(i)),l}}}}var wV=/\{@(.+?)\}/g,md=function(){function n(){}return n.prototype.getDataParams=function(e,t){var i=this.getData(t),r=this.getRawValue(e,t),a=i.getRawIndex(e),o=i.getName(e),s=i.getRawDataItem(e),l=i.getItemVisual(e,"style"),u=l&&l[i.getItemVisual(e,"drawType")||"fill"],c=l&&l.stroke,h=this.mainType,f=h==="series",d=i.userOutput&&i.userOutput.get();return{componentType:h,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:f?this.subType:null,seriesIndex:this.seriesIndex,seriesId:f?this.id:null,seriesName:f?this.name:null,name:o,dataIndex:a,data:s,dataType:t,value:r,color:u,borderColor:c,dimensionNames:d?d.fullDimensions:null,encode:d?d.encode:null,$vars:["seriesName","name","value"]}},n.prototype.getFormattedLabel=function(e,t,i,r,a,o){t=t||"normal";var s=this.getData(i),l=this.getDataParams(e,i);if(o&&(l.value=o.interpolatedValue),r!=null&&ht(l.value)&&(l.value=l.value[r]),!a){var u=s.getItemModel(e);a=u.get(t==="normal"?["label","formatter"]:[t,"label","formatter"])}if(Ot(a))return l.status=t,l.dimensionIndex=r,a(l);if(Tt(a)){var c=YS(a,l);return c.replace(wV,function(h,f){var d=f.length,g=f;g.charAt(0)==="["&&g.charAt(d-1)==="]"&&(g=+g.slice(1,d-1));var y=Il(s,e,g);if(o&&ht(o.interpolatedValue)){var _=s.getDimensionIndex(g);_>=0&&(y=o.interpolatedValue[_])}return y!=null?y+"":""})}},n.prototype.getRawValue=function(e,t){return Il(this.getData(t),e)},n.prototype.formatTooltip=function(e,t,i){},n}();function RM(n){var e,t;return Vt(n)?n.type&&(t=n):e=n,{text:e,frag:t}}function xc(n){return new SV(n)}var SV=function(){function n(e){e=e||{},this._reset=e.reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0}return n.prototype.perform=function(e){var t=this._upstream,i=e&&e.skip;if(this._dirty&&t){var r=this.context;r.data=r.outputData=t.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var a;this._plan&&!i&&(a=this._plan(this.context));var o=c(this._modBy),s=this._modDataCount||0,l=c(e&&e.modBy),u=e&&e.modDataCount||0;(o!==l||s!==u)&&(a="reset");function c(p){return!(p>=1)&&(p=1),p}var h;(this._dirty||a==="reset")&&(this._dirty=!1,h=this._doReset(i)),this._modBy=l,this._modDataCount=u;var f=e&&e.step;if(t?this._dueEnd=t._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var d=this._dueIndex,g=Math.min(f!=null?this._dueIndex+f:1/0,this._dueEnd);if(!i&&(h||d<g)){var y=this._progress;if(ht(y))for(var _=0;_<y.length;_++)this._doProgress(y[_],d,g,l,u);else this._doProgress(y,d,g,l,u)}this._dueIndex=g;var v=this._settedOutputEnd!=null?this._settedOutputEnd:g;this._outputDueEnd=v}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd!=null?this._settedOutputEnd:this._dueEnd;return this.unfinished()},n.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},n.prototype._doProgress=function(e,t,i,r,a){NM.reset(t,i,r,a),this._callingProgress=e,this._callingProgress({start:t,end:i,count:i-t,next:NM.next},this.context)},n.prototype._doReset=function(e){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var t,i;!e&&this._reset&&(t=this._reset(this.context),t&&t.progress&&(i=t.forceFirstProgress,t=t.progress),ht(t)&&!t.length&&(t=null)),this._progress=t,this._modBy=this._modDataCount=null;var r=this._downstream;return r&&r.dirty(),i},n.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},n.prototype.pipe=function(e){(this._downstream!==e||this._dirty)&&(this._downstream=e,e._upstream=this,e.dirty())},n.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},n.prototype.getUpstream=function(){return this._upstream},n.prototype.getDownstream=function(){return this._downstream},n.prototype.setOutputEnd=function(e){this._outputDueEnd=this._settedOutputEnd=e},n}(),NM=function(){var n,e,t,i,r,a={reset:function(l,u,c,h){e=l,n=u,t=c,i=h,r=Math.ceil(i/t),a.next=t>1&&i>0?s:o}};return a;function o(){return e<n?e++:null}function s(){var l=e%r*t+Math.ceil(e/r),u=e>=n?null:l<i?l:e;return e++,u}}();function $a(n,e){var t=e&&e.type;return t==="ordinal"?n:(t==="time"&&!ve(n)&&n!=null&&n!=="-"&&(n=+Cr(n)),n==null||n===""?NaN:Number(n))}var MV=Dt({number:function(n){return parseFloat(n)},time:function(n){return+Cr(n)},trim:function(n){return Tt(n)?nr(n):n}});function zM(n){return MV.get(n)}var EM={lt:function(n,e){return n<e},lte:function(n,e){return n<=e},gt:function(n,e){return n>e},gte:function(n,e){return n>=e}},IV=function(){function n(e,t){if(!ve(t)){var i="";Me(i)}this._opFn=EM[e],this._rvalFloat=ra(t)}return n.prototype.evaluate=function(e){return ve(e)?this._opFn(e,this._rvalFloat):this._opFn(ra(e),this._rvalFloat)},n}(),OM=function(){function n(e,t){var i=e==="desc";this._resultLT=i?1:-1,t==null&&(t=i?"min":"max"),this._incomparable=t==="min"?-1/0:1/0}return n.prototype.evaluate=function(e,t){var i=ve(e)?e:ra(e),r=ve(t)?t:ra(t),a=isNaN(i),o=isNaN(r);if(a&&(i=this._incomparable),o&&(r=this._incomparable),a&&o){var s=Tt(e),l=Tt(t);s&&(i=l?e:0),l&&(r=s?t:0)}return i<r?this._resultLT:i>r?-this._resultLT:0},n}(),TV=function(){function n(e,t){this._rval=t,this._isEQ=e,this._rvalTypeof=typeof t,this._rvalFloat=ra(t)}return n.prototype.evaluate=function(e){var t=e===this._rval;if(!t){var i=typeof e;i!==this._rvalTypeof&&(i==="number"||this._rvalTypeof==="number")&&(t=ra(e)===this._rvalFloat)}return this._isEQ?t:!t},n}();function AV(n,e){return n==="eq"||n==="ne"?new TV(n==="eq",e):Lt(EM,n)?new IV(n,e):null}var CV=function(){function n(){}return n.prototype.getRawData=function(){throw new Error("not supported")},n.prototype.getRawDataItem=function(e){throw new Error("not supported")},n.prototype.cloneRawData=function(){},n.prototype.getDimensionInfo=function(e){},n.prototype.cloneAllDimensionInfo=function(){},n.prototype.count=function(){},n.prototype.retrieveValue=function(e,t){},n.prototype.retrieveValueFromItem=function(e,t){},n.prototype.convertValue=function(e,t){return $a(e,t)},n}();function kV(n,e){var t=new CV,i=n.data,r=t.sourceFormat=n.sourceFormat,a=n.startIndex,o="";n.seriesLayoutBy!==Er&&Me(o);var s=[],l={},u=n.dimensionsDefine;if(u)E(u,function(y,_){var v=y.name,p={index:_,name:v,displayName:y.displayName};if(s.push(p),v!=null){var x="";Lt(l,v)&&Me(x),l[v]=p}});else for(var c=0;c<n.dimensionsDetectedCount;c++)s.push({index:c});var h=kM(r,Er);e.__isBuiltIn&&(t.getRawDataItem=function(y){return h(i,a,s,y)},t.getRawData=Ct(LV,null,n)),t.cloneRawData=Ct(DV,null,n);var f=DM(r,Er);t.count=Ct(f,null,i,a,s);var d=PM(r);t.retrieveValue=function(y,_){var v=h(i,a,s,y);return g(v,_)};var g=t.retrieveValueFromItem=function(y,_){if(y!=null){var v=s[_];if(v)return d(y,_,v.name)}};return t.getDimensionInfo=Ct(PV,null,s,l),t.cloneAllDimensionInfo=Ct(RV,null,s),t}function LV(n){var e=n.sourceFormat;if(!mm(e)){var t="";Me(t)}return n.data}function DV(n){var e=n.sourceFormat,t=n.data;if(!mm(e)){var i="";Me(i)}if(e===En){for(var r=[],a=0,o=t.length;a<o;a++)r.push(t[a].slice());return r}else if(e===Bi){for(var r=[],a=0,o=t.length;a<o;a++)r.push(lt({},t[a]));return r}}function PV(n,e,t){if(t!=null){if(ve(t)||!isNaN(t)&&!Lt(e,t))return n[t];if(Lt(e,t))return e[t]}}function RV(n){return Wt(n)}var BM=Dt();function NV(n){n=Wt(n);var e=n.type,t="";e||Me(t);var i=e.split(":");i.length!==2&&Me(t);var r=!1;i[0]==="echarts"&&(e=i[1],r=!0),n.__isBuiltIn=r,BM.set(e,n)}function zV(n,e,t){var i=De(n),r=i.length,a="";r||Me(a);for(var o=0,s=r;o<s;o++){var l=i[o];e=EV(l,e),o!==s-1&&(e.length=Math.max(e.length,1))}return e}function EV(n,e,t,i){var r="";e.length||Me(r),Vt(n)||Me(r);var a=n.type,o=BM.get(a);o||Me(r);var s=pt(e,function(u){return kV(u,o)}),l=De(o.transform({upstream:s[0],upstreamList:s,config:Wt(n.config)}));return pt(l,function(u,c){var h="";Vt(u)||Me(h),u.data||Me(h);var f=bM(u.data);mm(f)||Me(h);var d,g=e[0];if(g&&c===0&&!u.dimensions){var y=g.startIndex;y&&(u.data=g.data.slice(0,y).concat(u.data)),d={seriesLayoutBy:Er,sourceHeader:y,dimensions:g.metaRawOption.dimensions}}else d={seriesLayoutBy:Er,sourceHeader:0,dimensions:u.dimensions};return fm(u.data,d,null)})}function mm(n){return n===En||n===Bi}var _d="undefined",OV=typeof Uint32Array===_d?Array:Uint32Array,BV=typeof Uint16Array===_d?Array:Uint16Array,VM=typeof Int32Array===_d?Array:Int32Array,FM=typeof Float64Array===_d?Array:Float64Array,WM={float:FM,int:VM,ordinal:Array,number:Array,time:FM},_m;function Tl(n){return n>65535?OV:BV}function Al(){return[1/0,-1/0]}function VV(n){var e=n.constructor;return e===Array?n.slice():new e(n)}function GM(n,e,t,i,r){var a=WM[t||"float"];if(r){var o=n[e],s=o&&o.length;if(s!==i){for(var l=new a(i),u=0;u<s;u++)l[u]=o[u];n[e]=l}}else n[e]=new a(i)}var xm=function(){function n(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=Dt()}return n.prototype.initData=function(e,t,i){this._provider=e,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var r=e.getSource(),a=this.defaultDimValueGetter=_m[r.sourceFormat];this._dimValueGetter=i||a,this._rawExtent=[],MM(r),this._dimensions=pt(t,function(o){return{type:o.type,property:o.property}}),this._initDataFromProvider(0,e.count())},n.prototype.getProvider=function(){return this._provider},n.prototype.getSource=function(){return this._provider.getSource()},n.prototype.ensureCalculationDimension=function(e,t){var i=this._calcDimNameToIdx,r=this._dimensions,a=i.get(e);if(a!=null){if(r[a].type===t)return a}else a=r.length;return r[a]={type:t},i.set(e,a),this._chunks[a]=new WM[t||"float"](this._rawCount),this._rawExtent[a]=Al(),a},n.prototype.collectOrdinalMeta=function(e,t){var i=this._chunks[e],r=this._dimensions[e],a=this._rawExtent,o=r.ordinalOffset||0,s=i.length;o===0&&(a[e]=Al());for(var l=a[e],u=o;u<s;u++){var c=i[u]=t.parseAndCollect(i[u]);isNaN(c)||(l[0]=Math.min(c,l[0]),l[1]=Math.max(c,l[1]))}r.ordinalMeta=t,r.ordinalOffset=s,r.type="ordinal"},n.prototype.getOrdinalMeta=function(e){var t=this._dimensions[e],i=t.ordinalMeta;return i},n.prototype.getDimensionProperty=function(e){var t=this._dimensions[e];return t&&t.property},n.prototype.appendData=function(e){var t=this._provider,i=this.count();t.appendData(e);var r=t.count();return t.persistent||(r+=i),i<r&&this._initDataFromProvider(i,r,!0),[i,r]},n.prototype.appendValues=function(e,t){for(var i=this._chunks,r=this._dimensions,a=r.length,o=this._rawExtent,s=this.count(),l=s+Math.max(e.length,t||0),u=0;u<a;u++){var c=r[u];GM(i,u,c.type,l,!0)}for(var h=[],f=s;f<l;f++)for(var d=f-s,g=0;g<a;g++){var c=r[g],y=_m.arrayRows.call(this,e[d]||h,c.property,d,g);i[g][f]=y;var _=o[g];y<_[0]&&(_[0]=y),y>_[1]&&(_[1]=y)}return this._rawCount=this._count=l,{start:s,end:l}},n.prototype._initDataFromProvider=function(e,t,i){for(var r=this._provider,a=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=pt(o,function(p){return p.property}),c=0;c<s;c++){var h=o[c];l[c]||(l[c]=Al()),GM(a,c,h.type,t,i)}if(r.fillStorage)r.fillStorage(e,t,a,l);else for(var f=[],d=e;d<t;d++){f=r.getItem(d,f);for(var g=0;g<s;g++){var y=a[g],_=this._dimValueGetter(f,u[g],d,g);y[d]=_;var v=l[g];_<v[0]&&(v[0]=_),_>v[1]&&(v[1]=_)}}!r.persistent&&r.clean&&r.clean(),this._rawCount=this._count=t,this._extent=[]},n.prototype.count=function(){return this._count},n.prototype.get=function(e,t){if(!(t>=0&&t<this._count))return NaN;var i=this._chunks[e];return i?i[this.getRawIndex(t)]:NaN},n.prototype.getValues=function(e,t){var i=[],r=[];if(t==null){t=e,e=[];for(var a=0;a<this._dimensions.length;a++)r.push(a)}else r=e;for(var a=0,o=r.length;a<o;a++)i.push(this.get(r[a],t));return i},n.prototype.getByRawIndex=function(e,t){if(!(t>=0&&t<this._rawCount))return NaN;var i=this._chunks[e];return i?i[t]:NaN},n.prototype.getSum=function(e){var t=this._chunks[e],i=0;if(t)for(var r=0,a=this.count();r<a;r++){var o=this.get(e,r);isNaN(o)||(i+=o)}return i},n.prototype.getMedian=function(e){var t=[];this.each([e],function(a){isNaN(a)||t.push(a)});var i=t.sort(function(a,o){return a-o}),r=this.count();return r===0?0:r%2===1?i[(r-1)/2]:(i[r/2]+i[r/2-1])/2},n.prototype.indexOfRawIndex=function(e){if(e>=this._rawCount||e<0)return-1;if(!this._indices)return e;var t=this._indices,i=t[e];if(i!=null&&i<this._count&&i===e)return e;for(var r=0,a=this._count-1;r<=a;){var o=(r+a)/2|0;if(t[o]<e)r=o+1;else if(t[o]>e)a=o-1;else return o}return-1},n.prototype.indicesOfNearest=function(e,t,i){var r=this._chunks,a=r[e],o=[];if(!a)return o;i==null&&(i=1/0);for(var s=1/0,l=-1,u=0,c=0,h=this.count();c<h;c++){var f=this.getRawIndex(c),d=t-a[f],g=Math.abs(d);g<=i&&((g<s||g===s&&d>=0&&l<0)&&(s=g,l=d,u=0),d===l&&(o[u++]=c))}return o.length=u,o},n.prototype.getIndices=function(){var e,t=this._indices;if(t){var i=t.constructor,r=this._count;if(i===Array){e=new i(r);for(var a=0;a<r;a++)e[a]=t[a]}else e=new i(t.buffer,0,r)}else{var i=Tl(this._rawCount);e=new i(this.count());for(var a=0;a<e.length;a++)e[a]=a}return e},n.prototype.filter=function(e,t){if(!this._count)return this;for(var i=this.clone(),r=i.count(),a=Tl(i._rawCount),o=new a(r),s=[],l=e.length,u=0,c=e[0],h=i._chunks,f=0;f<r;f++){var d=void 0,g=i.getRawIndex(f);if(l===0)d=t(f);else if(l===1){var y=h[c][g];d=t(y,f)}else{for(var _=0;_<l;_++)s[_]=h[e[_]][g];s[_]=f,d=t.apply(null,s)}d&&(o[u++]=g)}return u<r&&(i._indices=o),i._count=u,i._extent=[],i._updateGetRawIdx(),i},n.prototype.selectRange=function(e){var t=this.clone(),i=t._count;if(!i)return this;var r=se(e),a=r.length;if(!a)return this;var o=t.count(),s=Tl(t._rawCount),l=new s(o),u=0,c=r[0],h=e[c][0],f=e[c][1],d=t._chunks,g=!1;if(!t._indices){var y=0;if(a===1){for(var _=d[r[0]],v=0;v<i;v++){var p=_[v];(p>=h&&p<=f||isNaN(p))&&(l[u++]=y),y++}g=!0}else if(a===2){for(var _=d[r[0]],x=d[r[1]],b=e[r[1]][0],S=e[r[1]][1],v=0;v<i;v++){var p=_[v],M=x[v];(p>=h&&p<=f||isNaN(p))&&(M>=b&&M<=S||isNaN(M))&&(l[u++]=y),y++}g=!0}}if(!g)if(a===1)for(var v=0;v<o;v++){var I=t.getRawIndex(v),p=d[r[0]][I];(p>=h&&p<=f||isNaN(p))&&(l[u++]=I)}else for(var v=0;v<o;v++){for(var A=!0,I=t.getRawIndex(v),C=0;C<a;C++){var L=r[C],p=d[L][I];(p<e[L][0]||p>e[L][1])&&(A=!1)}A&&(l[u++]=t.getRawIndex(v))}return u<o&&(t._indices=l),t._count=u,t._extent=[],t._updateGetRawIdx(),t},n.prototype.map=function(e,t){var i=this.clone(e);return this._updateDims(i,e,t),i},n.prototype.modify=function(e,t){this._updateDims(this,e,t)},n.prototype._updateDims=function(e,t,i){for(var r=e._chunks,a=[],o=t.length,s=e.count(),l=[],u=e._rawExtent,c=0;c<t.length;c++)u[t[c]]=Al();for(var h=0;h<s;h++){for(var f=e.getRawIndex(h),d=0;d<o;d++)l[d]=r[t[d]][f];l[o]=h;var g=i&&i.apply(null,l);if(g!=null){typeof g!="object"&&(a[0]=g,g=a);for(var c=0;c<g.length;c++){var y=t[c],_=g[c],v=u[y],p=r[y];p&&(p[f]=_),_<v[0]&&(v[0]=_),_>v[1]&&(v[1]=_)}}}},n.prototype.lttbDownSample=function(e,t){var i=this.clone([e],!0),r=i._chunks,a=r[e],o=this.count(),s=0,l=Math.floor(1/t),u=this.getRawIndex(0),c,h,f,d=new(Tl(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));d[s++]=u;for(var g=1;g<o-1;g+=l){for(var y=Math.min(g+l,o-1),_=Math.min(g+l*2,o),v=(_+y)/2,p=0,x=y;x<_;x++){var b=this.getRawIndex(x),S=a[b];isNaN(S)||(p+=S)}p/=_-y;var M=g,I=Math.min(g+l,o),A=g-1,C=a[u];c=-1,f=M;for(var L=-1,R=0,x=M;x<I;x++){var b=this.getRawIndex(x),S=a[b];if(isNaN(S)){R++,L<0&&(L=b);continue}h=Math.abs((A-v)*(S-C)-(A-x)*(p-C)),h>c&&(c=h,f=b)}R>0&&R<I-M&&(d[s++]=Math.min(L,f),f=Math.max(L,f)),d[s++]=f,u=f}return d[s++]=this.getRawIndex(o-1),i._count=s,i._indices=d,i.getRawIndex=this._getRawIdx,i},n.prototype.minmaxDownSample=function(e,t){for(var i=this.clone([e],!0),r=i._chunks,a=Math.floor(1/t),o=r[e],s=this.count(),l=new(Tl(this._rawCount))(Math.ceil(s/a)*2),u=0,c=0;c<s;c+=a){var h=c,f=o[this.getRawIndex(h)],d=c,g=o[this.getRawIndex(d)],y=a;c+a>s&&(y=s-c);for(var _=0;_<y;_++){var v=this.getRawIndex(c+_),p=o[v];p<f&&(f=p,h=c+_),p>g&&(g=p,d=c+_)}var x=this.getRawIndex(h),b=this.getRawIndex(d);h<d?(l[u++]=x,l[u++]=b):(l[u++]=b,l[u++]=x)}return i._count=u,i._indices=l,i._updateGetRawIdx(),i},n.prototype.downSample=function(e,t,i,r){for(var a=this.clone([e],!0),o=a._chunks,s=[],l=Math.floor(1/t),u=o[e],c=this.count(),h=a._rawExtent[e]=Al(),f=new(Tl(this._rawCount))(Math.ceil(c/l)),d=0,g=0;g<c;g+=l){l>c-g&&(l=c-g,s.length=l);for(var y=0;y<l;y++){var _=this.getRawIndex(g+y);s[y]=u[_]}var v=i(s),p=this.getRawIndex(Math.min(g+r(s,v)||0,c-1));u[p]=v,v<h[0]&&(h[0]=v),v>h[1]&&(h[1]=v),f[d++]=p}return a._count=d,a._indices=f,a._updateGetRawIdx(),a},n.prototype.each=function(e,t){if(this._count)for(var i=e.length,r=this._chunks,a=0,o=this.count();a<o;a++){var s=this.getRawIndex(a);switch(i){case 0:t(a);break;case 1:t(r[e[0]][s],a);break;case 2:t(r[e[0]][s],r[e[1]][s],a);break;default:for(var l=0,u=[];l<i;l++)u[l]=r[e[l]][s];u[l]=a,t.apply(null,u)}}},n.prototype.getDataExtent=function(e){var t=this._chunks[e],i=Al();if(!t)return i;var r=this.count(),a=!this._indices,o;if(a)return this._rawExtent[e].slice();if(o=this._extent[e],o)return o.slice();o=i;for(var s=o[0],l=o[1],u=0;u<r;u++){var c=this.getRawIndex(u),h=t[c];h<s&&(s=h),h>l&&(l=h)}return o=[s,l],this._extent[e]=o,o},n.prototype.getRawDataItem=function(e){var t=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(t);for(var i=[],r=this._chunks,a=0;a<r.length;a++)i.push(r[a][t]);return i},n.prototype.clone=function(e,t){var i=new n,r=this._chunks,a=e&&br(e,function(s,l){return s[l]=!0,s},{});if(a)for(var o=0;o<r.length;o++)i._chunks[o]=a[o]?VV(r[o]):r[o];else i._chunks=r;return this._copyCommonProps(i),t||(i._indices=this._cloneIndices()),i._updateGetRawIdx(),i},n.prototype._copyCommonProps=function(e){e._count=this._count,e._rawCount=this._rawCount,e._provider=this._provider,e._dimensions=this._dimensions,e._extent=Wt(this._extent),e._rawExtent=Wt(this._rawExtent)},n.prototype._cloneIndices=function(){if(this._indices){var e=this._indices.constructor,t=void 0;if(e===Array){var i=this._indices.length;t=new e(i);for(var r=0;r<i;r++)t[r]=this._indices[r]}else t=new e(this._indices);return t}return null},n.prototype._getRawIdxIdentity=function(e){return e},n.prototype._getRawIdx=function(e){return e<this._count&&e>=0?this._indices[e]:-1},n.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},n.internalField=function(){function e(t,i,r,a){return $a(t[a],this._dimensions[a])}_m={arrayRows:e,objectRows:function(t,i,r,a){return $a(t[i],this._dimensions[a])},keyedColumns:e,original:function(t,i,r,a){var o=t&&(t.value==null?t:t.value);return $a(o instanceof Array?o[a]:o,this._dimensions[a])},typedArray:function(t,i,r,a){return t[a]}}}(),n}(),jM=function(){function n(e){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=e}return n.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},n.prototype._setLocalSource=function(e,t){this._sourceList=e,this._upstreamSignList=t,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},n.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},n.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},n.prototype._createSource=function(){this._setLocalSource([],[]);var e=this._sourceHost,t=this._getUpstreamSourceManagers(),i=!!t.length,r,a;if(xd(e)){var o=e,s=void 0,l=void 0,u=void 0;if(i){var c=t[0];c.prepareSource(),u=c.getSource(),s=u.data,l=u.sourceFormat,a=[c._getVersionSign()]}else s=o.get("data",!0),l=ri(s)?Ja:Oi,a=[];var h=this._getSourceMetaRawOption()||{},f=u&&u.metaRawOption||{},d=Ut(h.seriesLayoutBy,f.seriesLayoutBy)||null,g=Ut(h.sourceHeader,f.sourceHeader),y=Ut(h.dimensions,f.dimensions),_=d!==f.seriesLayoutBy||!!g!=!!f.sourceHeader||y;r=_?[fm(s,{seriesLayoutBy:d,sourceHeader:g,dimensions:y},l)]:[]}else{var v=e;if(i){var p=this._applyTransform(t);r=p.sourceList,a=p.upstreamSignList}else{var x=v.get("source",!0);r=[fm(x,this._getSourceMetaRawOption(),null)],a=[]}}this._setLocalSource(r,a)},n.prototype._applyTransform=function(e){var t=this._sourceHost,i=t.get("transform",!0),r=t.get("fromTransformResult",!0);if(r!=null){var a="";e.length!==1&&UM(a)}var o,s=[],l=[];return E(e,function(u){u.prepareSource();var c=u.getSource(r||0),h="";r!=null&&!c&&UM(h),s.push(c),l.push(u._getVersionSign())}),i?o=zV(i,s,{datasetIndex:t.componentIndex}):r!=null&&(o=[vV(s[0])]),{sourceList:o,upstreamSignList:l}},n.prototype._isDirty=function(){if(this._dirty)return!0;for(var e=this._getUpstreamSourceManagers(),t=0;t<e.length;t++){var i=e[t];if(i._isDirty()||this._upstreamSignList[t]!==i._getVersionSign())return!0}},n.prototype.getSource=function(e){e=e||0;var t=this._sourceList[e];if(!t){var i=this._getUpstreamSourceManagers();return i[0]&&i[0].getSource(e)}return t},n.prototype.getSharedDataStore=function(e){var t=e.makeStoreSchema();return this._innerGetDataStore(t.dimensions,e.source,t.hash)},n.prototype._innerGetDataStore=function(e,t,i){var r=0,a=this._storeList,o=a[r];o||(o=a[r]={});var s=o[i];if(!s){var l=this._getUpstreamSourceManagers()[0];xd(this._sourceHost)&&l?s=l._innerGetDataStore(e,t,i):(s=new xm,s.initData(new AM(t,e.length),e)),o[i]=s}return s},n.prototype._getUpstreamSourceManagers=function(){var e=this._sourceHost;if(xd(e)){var t=am(e);return t?[t.getSourceManager()]:[]}else return pt(U4(e),function(i){return i.getSourceManager()})},n.prototype._getSourceMetaRawOption=function(){var e=this._sourceHost,t,i,r;if(xd(e))t=e.get("seriesLayoutBy",!0),i=e.get("sourceHeader",!0),r=e.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var a=e;t=a.get("seriesLayoutBy",!0),i=a.get("sourceHeader",!0),r=a.get("dimensions",!0)}return{seriesLayoutBy:t,sourceHeader:i,dimensions:r}},n}();function HM(n){var e=n.option.transform;e&&tp(n.option.transform)}function xd(n){return n.mainType==="series"}function UM(n){throw new Error(n)}var FV="line-height:1";function XM(n){var e=n.lineHeight;return e==null?FV:"line-height:"+Un(e+"")+"px"}function ZM(n,e){var t=n.color||"#6e7079",i=n.fontSize||12,r=n.fontWeight||"400",a=n.color||"#464646",o=n.fontSize||14,s=n.fontWeight||"900";return e==="html"?{nameStyle:"font-size:"+Un(i+"")+"px;color:"+Un(t)+";font-weight:"+Un(r+""),valueStyle:"font-size:"+Un(o+"")+"px;color:"+Un(a)+";font-weight:"+Un(s+"")}:{nameStyle:{fontSize:i,fill:t,fontWeight:r},valueStyle:{fontSize:o,fill:a,fontWeight:s}}}var WV=[0,10,20,30],GV=["",`
|
|
67
|
+
`,`
|
|
68
|
+
|
|
69
|
+
`,`
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
`];function vn(n,e){return e.type=n,e}function bm(n){return n.type==="section"}function qM(n){return bm(n)?jV:HV}function KM(n){if(bm(n)){var e=0,t=n.blocks.length,i=t>1||t>0&&!n.noHeader;return E(n.blocks,function(r){var a=KM(r);a>=e&&(e=a+ +(i&&(!a||bm(r)&&!r.noHeader)))}),e}return 0}function jV(n,e,t,i){var r=e.noHeader,a=UV(KM(e)),o=[],s=e.blocks||[];jn(!s||ht(s)),s=s||[];var l=n.orderMode;if(e.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(Lt(u,l)){var c=new OM(u[l],null);s.sort(function(y,_){return c.evaluate(y.sortParam,_.sortParam)})}else l==="seriesDesc"&&s.reverse()}E(s,function(y,_){var v=e.valueFormatter,p=qM(y)(v?lt(lt({},n),{valueFormatter:v}):n,y,_>0?a.html:0,i);p!=null&&o.push(p)});var h=n.renderMode==="richText"?o.join(a.richText):wm(i,o.join(""),r?t:a.html);if(r)return h;var f=em(e.header,"ordinal",n.useUTC),d=ZM(i,n.renderMode).nameStyle,g=XM(i);return n.renderMode==="richText"?JM(n,f,d)+a.richText+h:wm(i,'<div style="'+d+";"+g+';">'+Un(f)+"</div>"+h,t)}function HV(n,e,t,i){var r=n.renderMode,a=e.noName,o=e.noValue,s=!e.markerType,l=e.name,u=n.useUTC,c=e.valueFormatter||n.valueFormatter||function(b){return b=ht(b)?b:[b],pt(b,function(S,M){return em(S,ht(d)?d[M]:d,u)})};if(!(a&&o)){var h=s?"":n.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||"#333",r),f=a?"":em(l,"ordinal",u),d=e.valueType,g=o?[]:c(e.value,e.dataIndex),y=!s||!a,_=!s&&a,v=ZM(i,r),p=v.nameStyle,x=v.valueStyle;return r==="richText"?(s?"":h)+(a?"":JM(n,f,p))+(o?"":qV(n,g,y,_,x)):wm(i,(s?"":h)+(a?"":XV(f,!s,p))+(o?"":ZV(g,y,_,x)),t)}}function YM(n,e,t,i,r,a){if(n){var o=qM(n),s={useUTC:r,renderMode:t,orderMode:i,markupStyleCreator:e,valueFormatter:n.valueFormatter};return o(s,n,0,a)}}function UV(n){return{html:WV[n],richText:GV[n]}}function wm(n,e,t){var i='<div style="clear:both"></div>',r="margin: "+t+"px 0 0",a=XM(n);return'<div style="'+r+";"+a+';">'+e+i+"</div>"}function XV(n,e,t){var i=e?"margin-left:2px":"";return'<span style="'+t+";"+i+'">'+Un(n)+"</span>"}function ZV(n,e,t,i){var r=t?"10px":"20px",a=e?"float:right;margin-left:"+r:"";return n=ht(n)?n:[n],'<span style="'+a+";"+i+'">'+pt(n,function(o){return Un(o)}).join(" ")+"</span>"}function JM(n,e,t){return n.markupStyleCreator.wrapRichTextStyle(e,t)}function qV(n,e,t,i,r){var a=[r],o=i?10:20;return t&&a.push({padding:[0,0,0,o],align:"right"}),n.markupStyleCreator.wrapRichTextStyle(ht(e)?e.join(" "):e,a)}function $M(n,e){var t=n.getData().getItemVisual(e,"style"),i=t[n.visualDrawType];return as(i)}function QM(n,e){var t=n.get("padding");return t??(e==="richText"?[8,10]:10)}var Sm=function(){function n(){this.richTextStyles={},this._nextStyleNameId=t2()}return n.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},n.prototype.makeTooltipMarker=function(e,t,i){var r=i==="richText"?this._generateStyleName():null,a=B4({color:t,type:e,renderMode:i,markerId:r});return Tt(a)?a:(this.richTextStyles[r]=a.style,a.content)},n.prototype.wrapRichTextStyle=function(e,t){var i={};ht(t)?E(t,function(a){return lt(i,a)}):lt(i,t);var r=this._generateStyleName();return this.richTextStyles[r]=i,"{"+r+"|"+e+"}"},n}();function tI(n){var e=n.series,t=n.dataIndex,i=n.multipleSeries,r=e.getData(),a=r.mapDimensionsAll("defaultedTooltip"),o=a.length,s=e.getRawValue(t),l=ht(s),u=$M(e,t),c,h,f,d;if(o>1||l&&!o){var g=KV(s,e,t,a,u);c=g.inlineValues,h=g.inlineValueTypes,f=g.blocks,d=g.inlineValues[0]}else if(o){var y=r.getDimensionInfo(a[0]);d=c=Il(r,t,a[0]),h=y.type}else d=c=l?s[0]:s;var _=iy(e),v=_&&e.name||"",p=r.getName(t),x=i?v:p;return vn("section",{header:v,noHeader:i||!_,sortParam:d,blocks:[vn("nameValue",{markerType:"item",markerColor:u,name:x,noName:!nr(x),value:c,valueType:h,dataIndex:t})].concat(f||[])})}function KV(n,e,t,i,r){var a=e.getData(),o=br(n,function(h,f,d){var g=a.getDimensionInfo(d);return h=h||g&&g.tooltip!==!1&&g.displayName!=null},!1),s=[],l=[],u=[];i.length?E(i,function(h){c(Il(a,t,h),h)}):E(n,c);function c(h,f){var d=a.getDimensionInfo(f);!d||d.otherDims.tooltip===!1||(o?u.push(vn("nameValue",{markerType:"subItem",markerColor:r,name:d.displayName,value:h,valueType:d.type})):(s.push(h),l.push(d.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var Qa=pe();function bd(n,e){return n.getName(e)||n.getId(e)}var wd="__universalTransitionEnabled",Oe=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t._selectedDataIndicesMap={},t}return e.prototype.init=function(t,i,r){this.seriesIndex=this.componentIndex,this.dataTask=xc({count:JV,reset:$V}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,r);var a=Qa(this).sourceManager=new jM(this);a.prepareSource();var o=this.getInitialData(t,r);nI(o,this),this.dataTask.context.data=o,Qa(this).dataBeforeProcessed=o,eI(this),this._initSelectedMapFromData(o)},e.prototype.mergeDefaultAndTheme=function(t,i){var r=fc(this),a=r?wl(t):{},o=this.subType;le.hasClass(o)&&(o+="Series"),Kt(t,i.getTheme().get(this.subType)),Kt(t,this.getDefaultOption()),Oo(t,"label",["show"]),this.fillDataTextStyle(t.data),r&&Ya(t,a,r)},e.prototype.mergeOption=function(t,i){t=Kt(this.option,t,!0),this.fillDataTextStyle(t.data);var r=fc(this);r&&Ya(this.option,t,r);var a=Qa(this).sourceManager;a.dirty(),a.prepareSource();var o=this.getInitialData(t,i);nI(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,Qa(this).dataBeforeProcessed=o,eI(this),this._initSelectedMapFromData(o)},e.prototype.fillDataTextStyle=function(t){if(t&&!ri(t))for(var i=["show"],r=0;r<t.length;r++)t[r]&&t[r].label&&Oo(t[r],"label",i)},e.prototype.getInitialData=function(t,i){},e.prototype.appendData=function(t){var i=this.getRawData();i.appendData(t.data)},e.prototype.getData=function(t){var i=Mm(this);if(i){var r=i.context.data;return t==null||!r.getLinkedData?r:r.getLinkedData(t)}else return Qa(this).data},e.prototype.getAllData=function(){var t=this.getData();return t&&t.getLinkedDataAll?t.getLinkedDataAll():[{data:t}]},e.prototype.setData=function(t){var i=Mm(this);if(i){var r=i.context;r.outputData=t,i!==this.dataTask&&(r.data=t)}Qa(this).data=t},e.prototype.getEncode=function(){var t=this.get("encode",!0);if(t)return Dt(t)},e.prototype.getSourceManager=function(){return Qa(this).sourceManager},e.prototype.getSource=function(){return this.getSourceManager().getSource()},e.prototype.getRawData=function(){return Qa(this).dataBeforeProcessed},e.prototype.getColorBy=function(){var t=this.get("colorBy");return t||"series"},e.prototype.isColorBySeries=function(){return this.getColorBy()==="series"},e.prototype.getBaseAxis=function(){var t=this.coordinateSystem;return t&&t.getBaseAxis&&t.getBaseAxis()},e.prototype.formatTooltip=function(t,i,r){return tI({series:this,dataIndex:t,multipleSeries:i})},e.prototype.isAnimationEnabled=function(){var t=this.ecModel;if(oe.node&&!(t&&t.ssr))return!1;var i=this.getShallow("animation");return i&&this.getData().count()>this.getShallow("animationThreshold")&&(i=!1),!!i},e.prototype.restoreData=function(){this.dataTask.dirty()},e.prototype.getColorFromPalette=function(t,i,r){var a=this.ecModel,o=sm.prototype.getColorFromPalette.call(this,t,i,r);return o||(o=a.getColorFromPalette(t,i,r)),o},e.prototype.coordDimToDataDim=function(t){return this.getRawData().mapDimensionsAll(t)},e.prototype.getProgressive=function(){return this.get("progressive")},e.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},e.prototype.select=function(t,i){this._innerSelect(this.getData(i),t)},e.prototype.unselect=function(t,i){var r=this.option.selectedMap;if(r){var a=this.option.selectedMode,o=this.getData(i);if(a==="series"||r==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s<t.length;s++){var l=t[s],u=bd(o,l);r[u]=!1,this._selectedDataIndicesMap[u]=-1}}},e.prototype.toggleSelect=function(t,i){for(var r=[],a=0;a<t.length;a++)r[0]=t[a],this.isSelected(t[a],i)?this.unselect(r,i):this.select(r,i)},e.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap==="all")return[].slice.call(this.getData().getIndices());for(var t=this._selectedDataIndicesMap,i=se(t),r=[],a=0;a<i.length;a++){var o=t[i[a]];o>=0&&r.push(o)}return r},e.prototype.isSelected=function(t,i){var r=this.option.selectedMap;if(!r)return!1;var a=this.getData(i);return(r==="all"||r[bd(a,t)])&&!a.getItemModel(t).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this[wd])return!0;var t=this.option.universalTransition;return t?t===!0?!0:t&&t.enabled:!1},e.prototype._innerSelect=function(t,i){var r,a,o=this.option,s=o.selectedMode,l=i.length;if(!(!s||!l)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){Vt(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,c=0;c<l;c++){var h=i[c],f=bd(t,h);u[f]=!0,this._selectedDataIndicesMap[f]=t.getRawIndex(h)}}else if(s==="single"||s===!0){var d=i[l-1],f=bd(t,d);o.selectedMap=(r={},r[f]=!0,r),this._selectedDataIndicesMap=(a={},a[f]=t.getRawIndex(d),a)}}},e.prototype._initSelectedMapFromData=function(t){if(!this.option.selectedMap){var i=[];t.hasItemOption&&t.each(function(r){var a=t.getRawDataItem(r);a&&a.selected&&i.push(r)}),i.length>0&&this._innerSelect(t,i)}},e.registerClass=function(t){return le.registerClass(t)},e.protoInitialize=function(){var t=e.prototype;t.type="series.__base__",t.seriesIndex=0,t.ignoreStyleOnData=!1,t.hasSymbolVisual=!1,t.defaultSymbol="circle",t.visualStyleAccessPath="itemStyle",t.visualDrawType="fill"}(),e}(le);tn(Oe,md),tn(Oe,sm),p2(Oe,le);function eI(n){var e=n.name;iy(n)||(n.name=YV(n)||e)}function YV(n){var e=n.getRawData(),t=e.mapDimensionsAll("seriesName"),i=[];return E(t,function(r){var a=e.getDimensionInfo(r);a.displayName&&i.push(a.displayName)}),i.join(" ")}function JV(n){return n.model.getRawData().count()}function $V(n){var e=n.model;return e.setData(e.getRawData().cloneShallow()),QV}function QV(n,e){e.outputData&&n.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function nI(n,e){E(Tu(n.CHANGABLE_METHODS,n.DOWNSAMPLE_METHODS),function(t){n.wrapMethod(t,Zt(t6,e))})}function t6(n,e){var t=Mm(n);return t&&t.setOutputEnd((e||this).count()),e}function Mm(n){var e=(n.ecModel||{}).scheduler,t=e&&e.getPipeline(n.uid);if(t){var i=t.currentTask;if(i){var r=i.agentStubMap;r&&(i=r.get(n.uid))}return i}}var je=function(){function n(){this.group=new Gt,this.uid=yl("viewComponent")}return n.prototype.init=function(e,t){},n.prototype.render=function(e,t,i,r){},n.prototype.dispose=function(e,t){},n.prototype.updateView=function(e,t,i,r){},n.prototype.updateLayout=function(e,t,i,r){},n.prototype.updateVisual=function(e,t,i,r){},n.prototype.toggleBlurSeries=function(e,t,i){},n.prototype.eachRendered=function(e){var t=this.group;t&&t.traverse(e)},n}();oy(je),Dp(je);function Cl(){var n=pe();return function(e){var t=n(e),i=e.pipelineContext,r=!!t.large,a=!!t.progressiveRender,o=t.large=!!(i&&i.large),s=t.progressiveRender=!!(i&&i.progressiveRender);return(r!==o||a!==s)&&"reset"}}var iI=pe(),e6=Cl(),Pe=function(){function n(){this.group=new Gt,this.uid=yl("viewChart"),this.renderTask=xc({plan:n6,reset:i6}),this.renderTask.context={view:this}}return n.prototype.init=function(e,t){},n.prototype.render=function(e,t,i,r){},n.prototype.highlight=function(e,t,i,r){var a=e.getData(r&&r.dataType);a&&aI(a,r,"emphasis")},n.prototype.downplay=function(e,t,i,r){var a=e.getData(r&&r.dataType);a&&aI(a,r,"normal")},n.prototype.remove=function(e,t){this.group.removeAll()},n.prototype.dispose=function(e,t){},n.prototype.updateView=function(e,t,i,r){this.render(e,t,i,r)},n.prototype.updateLayout=function(e,t,i,r){this.render(e,t,i,r)},n.prototype.updateVisual=function(e,t,i,r){this.render(e,t,i,r)},n.prototype.eachRendered=function(e){Za(this.group,e)},n.markUpdateMethod=function(e,t){iI(e).updateMethod=t},n.protoInitialize=function(){var e=n.prototype;e.type="chart"}(),n}();function rI(n,e,t){n&&tc(n)&&(e==="emphasis"?la:ua)(n,t)}function aI(n,e,t){var i=Bo(n,e),r=e&&e.highlightKey!=null?BB(e.highlightKey):null;i!=null?E(De(i),function(a){rI(n.getItemGraphicEl(a),t,r)}):n.eachItemGraphicEl(function(a){rI(a,t,r)})}oy(Pe),Dp(Pe);function n6(n){return e6(n.model)}function i6(n){var e=n.model,t=n.ecModel,i=n.api,r=n.payload,a=e.pipelineContext.progressiveRender,o=n.view,s=r&&iI(r).updateMethod,l=a?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](e,t,i,r),r6[l]}var r6={incrementalPrepareRender:{progress:function(n,e){e.view.incrementalRender(n,e.model,e.ecModel,e.api,e.payload)}},render:{forceFirstProgress:!0,progress:function(n,e){e.view.render(e.model,e.ecModel,e.api,e.payload)}}},Sd="\0__throttleOriginMethod",oI="\0__throttleRate",sI="\0__throttleType";function Im(n,e,t){var i,r=0,a=0,o=null,s,l,u,c;e=e||0;function h(){a=new Date().getTime(),o=null,n.apply(l,u||[])}var f=function(){for(var d=[],g=0;g<arguments.length;g++)d[g]=arguments[g];i=new Date().getTime(),l=this,u=d;var y=c||e,_=c||t;c=null,s=i-(_?r:a)-y,clearTimeout(o),_?o=setTimeout(h,y):s>=0?h():o=setTimeout(h,-s),r=i};return f.clear=function(){o&&(clearTimeout(o),o=null)},f.debounceNextCall=function(d){c=d},f}function kl(n,e,t,i){var r=n[e];if(r){var a=r[Sd]||r,o=r[sI],s=r[oI];if(s!==t||o!==i){if(t==null||!i)return n[e]=a;r=n[e]=Im(a,t,i==="debounce"),r[Sd]=a,r[sI]=i,r[oI]=t}return r}}function bc(n,e){var t=n[e];t&&t[Sd]&&(t.clear&&t.clear(),n[e]=t[Sd])}var lI=pe(),uI={itemStyle:Fo(RS,!0),lineStyle:Fo(PS,!0)},a6={lineStyle:"stroke",itemStyle:"fill"};function cI(n,e){var t=n.visualStyleMapper||uI[e];return t||(console.warn("Unknown style type '"+e+"'."),uI.itemStyle)}function hI(n,e){var t=n.visualDrawType||a6[e];return t||(console.warn("Unknown style type '"+e+"'."),"fill")}var o6={createOnAllSeries:!0,performRawSeries:!0,reset:function(n,e){var t=n.getData(),i=n.visualStyleAccessPath||"itemStyle",r=n.getModel(i),a=cI(n,i),o=a(r),s=r.getShallow("decal");s&&(t.setVisual("decal",s),s.dirty=!0);var l=hI(n,i),u=o[l],c=Ot(u)?u:null,h=o.fill==="auto"||o.stroke==="auto";if(!o[l]||c||h){var f=n.getColorFromPalette(n.name,null,e.getSeriesCount());o[l]||(o[l]=f,t.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||Ot(o.fill)?f:o.fill,o.stroke=o.stroke==="auto"||Ot(o.stroke)?f:o.stroke}if(t.setVisual("style",o),t.setVisual("drawType",l),!e.isSeriesFiltered(n)&&c)return t.setVisual("colorFromPalette",!1),{dataEach:function(d,g){var y=n.getDataParams(g),_=lt({},o);_[l]=c(y),d.setItemVisual(g,"style",_)}}}},wc=new Ce,s6={createOnAllSeries:!0,performRawSeries:!0,reset:function(n,e){if(!(n.ignoreStyleOnData||e.isSeriesFiltered(n))){var t=n.getData(),i=n.visualStyleAccessPath||"itemStyle",r=cI(n,i),a=t.getVisual("drawType");return{dataEach:t.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[i]){wc.option=l[i];var u=r(wc),c=o.ensureUniqueItemVisual(s,"style");lt(c,u),wc.option.decal&&(o.setItemVisual(s,"decal",wc.option.decal),wc.option.decal.dirty=!0),a in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},l6={performRawSeries:!0,overallReset:function(n){var e=Dt();n.eachSeries(function(t){var i=t.getColorBy();if(!t.isColorBySeries()){var r=t.type+"-"+i,a=e.get(r);a||(a={},e.set(r,a)),lI(t).scope=a}}),n.eachSeries(function(t){if(!(t.isColorBySeries()||n.isSeriesFiltered(t))){var i=t.getRawData(),r={},a=t.getData(),o=lI(t).scope,s=t.visualStyleAccessPath||"itemStyle",l=hI(t,s);a.each(function(u){var c=a.getRawIndex(u);r[c]=u}),i.each(function(u){var c=r[u],h=a.getItemVisual(c,"colorFromPalette");if(h){var f=a.ensureUniqueItemVisual(c,"style"),d=i.getName(u)||u+"",g=i.count();f[l]=t.getColorFromPalette(d,o,g)}})}})}},Md=Math.PI;function u6(n,e){e=e||{},Bt(e,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var t=new Gt,i=new de({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});t.add(i);var r=new fe({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001}),a=new de({style:{fill:"none"},textContent:r,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});t.add(a);var o;return e.showSpinner&&(o=new qp({shape:{startAngle:-Md/2,endAngle:-Md/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:Md*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:Md*3/2}).delay(300).start("circularInOut"),t.add(o)),t.resize=function(){var s=r.getBoundingRect().width,l=e.showSpinner?e.spinnerRadius:0,u=(n.getWidth()-l*2-(e.showSpinner&&s?10:0)-s)/2-(e.showSpinner&&s?0:5+s/2)+(e.showSpinner?0:s/2)+(s?0:l),c=n.getHeight()/2;e.showSpinner&&o.setShape({cx:u,cy:c}),a.setShape({x:u-l,y:c-l,width:l*2,height:l*2}),i.setShape({x:0,y:0,width:n.getWidth(),height:n.getHeight()})},t.resize(),t}var pI=function(){function n(e,t,i,r){this._stageTaskMap=Dt(),this.ecInstance=e,this.api=t,i=this._dataProcessorHandlers=i.slice(),r=this._visualHandlers=r.slice(),this._allHandlers=i.concat(r)}return n.prototype.restoreData=function(e,t){e.restoreData(t),this._stageTaskMap.each(function(i){var r=i.overallTask;r&&r.dirty()})},n.prototype.getPerformArgs=function(e,t){if(e.__pipeline){var i=this._pipelineMap.get(e.__pipeline.id),r=i.context,a=!t&&i.progressiveEnabled&&(!r||r.progressiveRender)&&e.__idxInPipeline>i.blockIndex,o=a?i.step:null,s=r&&r.modDataCount,l=s!=null?Math.ceil(s/o):null;return{step:o,modBy:l,modDataCount:s}}},n.prototype.getPipeline=function(e){return this._pipelineMap.get(e)},n.prototype.updateStreamModes=function(e,t){var i=this._pipelineMap.get(e.uid),r=e.getData(),a=r.count(),o=i.progressiveEnabled&&t.incrementalPrepareRender&&a>=i.threshold,s=e.get("large")&&a>=e.get("largeThreshold"),l=e.get("progressiveChunkMode")==="mod"?a:null;e.pipelineContext=i.context={progressiveRender:o,modDataCount:l,large:s}},n.prototype.restorePipelines=function(e){var t=this,i=t._pipelineMap=Dt();e.eachSeries(function(r){var a=r.getProgressive(),o=r.uid;i.set(o,{id:o,head:null,tail:null,threshold:r.getProgressiveThreshold(),progressiveEnabled:a&&!(r.preventIncremental&&r.preventIncremental()),blockIndex:-1,step:Math.round(a||700),count:0}),t._pipe(r,r.dataTask)})},n.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,t=this.api.getModel(),i=this.api;E(this._allHandlers,function(r){var a=e.get(r.uid)||e.set(r.uid,{}),o="";jn(!(r.reset&&r.overallReset),o),r.reset&&this._createSeriesStageTask(r,a,t,i),r.overallReset&&this._createOverallStageTask(r,a,t,i)},this)},n.prototype.prepareView=function(e,t,i,r){var a=e.renderTask,o=a.context;o.model=t,o.ecModel=i,o.api=r,a.__block=!e.incrementalPrepareRender,this._pipe(t,a)},n.prototype.performDataProcessorTasks=function(e,t){this._performStageTasks(this._dataProcessorHandlers,e,t,{block:!0})},n.prototype.performVisualTasks=function(e,t,i){this._performStageTasks(this._visualHandlers,e,t,i)},n.prototype._performStageTasks=function(e,t,i,r){r=r||{};var a=!1,o=this;E(e,function(l,u){if(!(r.visualType&&r.visualType!==l.visualType)){var c=o._stageTaskMap.get(l.uid),h=c.seriesTaskMap,f=c.overallTask;if(f){var d,g=f.agentStubMap;g.each(function(_){s(r,_)&&(_.dirty(),d=!0)}),d&&f.dirty(),o.updatePayload(f,i);var y=o.getPerformArgs(f,r.block);g.each(function(_){_.perform(y)}),f.perform(y)&&(a=!0)}else h&&h.each(function(_,v){s(r,_)&&_.dirty();var p=o.getPerformArgs(_,r.block);p.skip=!l.performRawSeries&&t.isSeriesFiltered(_.context.model),o.updatePayload(_,i),_.perform(p)&&(a=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=a||this.unfinished},n.prototype.performSeriesTasks=function(e){var t;e.eachSeries(function(i){t=i.dataTask.perform()||t}),this.unfinished=t||this.unfinished},n.prototype.plan=function(){this._pipelineMap.each(function(e){var t=e.tail;do{if(t.__block){e.blockIndex=t.__idxInPipeline;break}t=t.getUpstream()}while(t)})},n.prototype.updatePayload=function(e,t){t!=="remain"&&(e.context.payload=t)},n.prototype._createSeriesStageTask=function(e,t,i,r){var a=this,o=t.seriesTaskMap,s=t.seriesTaskMap=Dt(),l=e.seriesType,u=e.getTargetSeries;e.createOnAllSeries?i.eachRawSeries(c):l?i.eachRawSeriesByType(l,c):u&&u(i,r).each(c);function c(h){var f=h.uid,d=s.set(f,o&&o.get(f)||xc({plan:f6,reset:g6,count:y6}));d.context={model:h,ecModel:i,api:r,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:a},a._pipe(h,d)}},n.prototype._createOverallStageTask=function(e,t,i,r){var a=this,o=t.overallTask=t.overallTask||xc({reset:c6});o.context={ecModel:i,api:r,overallReset:e.overallReset,scheduler:a};var s=o.agentStubMap,l=o.agentStubMap=Dt(),u=e.seriesType,c=e.getTargetSeries,h=!0,f=!1,d="";jn(!e.createOnAllSeries,d),u?i.eachRawSeriesByType(u,g):c?c(i,r).each(g):(h=!1,E(i.getSeries(),g));function g(y){var _=y.uid,v=l.set(_,s&&s.get(_)||(f=!0,xc({reset:h6,onDirty:d6})));v.context={model:y,overallProgress:h},v.agent=o,v.__block=h,a._pipe(y,v)}f&&o.dirty()},n.prototype._pipe=function(e,t){var i=e.uid,r=this._pipelineMap.get(i);!r.head&&(r.head=t),r.tail&&r.tail.pipe(t),r.tail=t,t.__idxInPipeline=r.count++,t.__pipeline=r},n.wrapStageHandler=function(e,t){return Ot(e)&&(e={overallReset:e,seriesType:m6(e)}),e.uid=yl("stageHandler"),t&&(e.visualType=t),e},n}();function c6(n){n.overallReset(n.ecModel,n.api,n.payload)}function h6(n){return n.overallProgress&&p6}function p6(){this.agent.dirty(),this.getDownstream().dirty()}function d6(){this.agent&&this.agent.dirty()}function f6(n){return n.plan?n.plan(n.model,n.ecModel,n.api,n.payload):null}function g6(n){n.useClearVisual&&n.data.clearAllVisual();var e=n.resetDefines=De(n.reset(n.model,n.ecModel,n.api,n.payload));return e.length>1?pt(e,function(t,i){return dI(i)}):v6}var v6=dI(0);function dI(n){return function(e,t){var i=t.data,r=t.resetDefines[n];if(r&&r.dataEach)for(var a=e.start;a<e.end;a++)r.dataEach(i,a);else r&&r.progress&&r.progress(e,i)}}function y6(n){return n.data.count()}function m6(n){Id=null;try{n(Sc,fI)}catch{}return Id}var Sc={},fI={},Id;gI(Sc,um),gI(fI,dM),Sc.eachSeriesByType=Sc.eachRawSeriesByType=function(n){Id=n},Sc.eachComponent=function(n){n.mainType==="series"&&n.subType&&(Id=n.subType)};function gI(n,e){for(var t in e.prototype)n[t]=Je}var vI=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"];const _6={color:vI,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],vI]};var Bn="#B9B8CE",yI="#100C2A",Td=function(){return{axisLine:{lineStyle:{color:Bn}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},mI=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],_I={darkMode:!0,color:mI,backgroundColor:yI,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:Bn},pageTextStyle:{color:Bn}},textStyle:{color:Bn},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:Bn}},dataZoom:{borderColor:"#71708A",textStyle:{color:Bn},brushStyle:{color:"rgba(135,163,206,0.3)"},handleStyle:{color:"#353450",borderColor:"#C5CBE3"},moveHandleStyle:{color:"#B0B6C3",opacity:.3},fillerColor:"rgba(135,163,206,0.2)",emphasis:{handleStyle:{borderColor:"#91B7F2",color:"#4D587D"},moveHandleStyle:{color:"#636D9A",opacity:.7}},dataBackground:{lineStyle:{color:"#71708A",width:1},areaStyle:{color:"#71708A"}},selectedDataBackground:{lineStyle:{color:"#87A3CE"},areaStyle:{color:"#87A3CE"}}},visualMap:{textStyle:{color:Bn}},timeline:{lineStyle:{color:Bn},label:{color:Bn},controlStyle:{color:Bn,borderColor:Bn}},calendar:{itemStyle:{color:yI},dayLabel:{color:Bn},monthLabel:{color:Bn},yearLabel:{color:Bn}},timeAxis:Td(),logAxis:Td(),valueAxis:Td(),categoryAxis:Td(),line:{symbol:"circle"},graph:{color:mI},gauge:{title:{color:Bn},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:Bn},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};_I.categoryAxis.splitLine.show=!1;var x6=function(){function n(){}return n.prototype.normalizeQuery=function(e){var t={},i={},r={};if(Tt(e)){var a=kr(e);t.mainType=a.main||null,t.subType=a.sub||null}else{var o=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};E(e,function(l,u){for(var c=!1,h=0;h<o.length;h++){var f=o[h],d=u.lastIndexOf(f);if(d>0&&d===u.length-f.length){var g=u.slice(0,d);g!=="data"&&(t.mainType=g,t[f.toLowerCase()]=l,c=!0)}}s.hasOwnProperty(u)&&(i[u]=l,c=!0),c||(r[u]=l)})}return{cptQuery:t,dataQuery:i,otherQuery:r}},n.prototype.filter=function(e,t){var i=this.eventInfo;if(!i)return!0;var r=i.targetEl,a=i.packedEvent,o=i.model,s=i.view;if(!o||!s)return!0;var l=t.cptQuery,u=t.dataQuery;return c(l,o,"mainType")&&c(l,o,"subType")&&c(l,o,"index","componentIndex")&&c(l,o,"name")&&c(l,o,"id")&&c(u,a,"name")&&c(u,a,"dataIndex")&&c(u,a,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(e,t.otherQuery,r,a));function c(h,f,d,g){return h[d]==null||f[g||d]===h[d]}},n.prototype.afterTrigger=function(){this.eventInfo=null},n}(),Tm=["symbol","symbolSize","symbolRotate","symbolOffset"],xI=Tm.concat(["symbolKeepAspect"]),b6={createOnAllSeries:!0,performRawSeries:!0,reset:function(n,e){var t=n.getData();if(n.legendIcon&&t.setVisual("legendIcon",n.legendIcon),!n.hasSymbolVisual)return;for(var i={},r={},a=!1,o=0;o<Tm.length;o++){var s=Tm[o],l=n.get(s);Ot(l)?(a=!0,r[s]=l):i[s]=l}if(i.symbol=i.symbol||n.defaultSymbol,t.setVisual(lt({legendIcon:n.legendIcon||i.symbol,symbolKeepAspect:n.get("symbolKeepAspect")},i)),e.isSeriesFiltered(n))return;var u=se(r);function c(h,f){for(var d=n.getRawValue(f),g=n.getDataParams(f),y=0;y<u.length;y++){var _=u[y];h.setItemVisual(f,_,r[_](d,g))}}return{dataEach:a?c:null}}},w6={createOnAllSeries:!0,performRawSeries:!0,reset:function(n,e){if(!n.hasSymbolVisual||e.isSeriesFiltered(n))return;var t=n.getData();function i(r,a){for(var o=r.getItemModel(a),s=0;s<xI.length;s++){var l=xI[s],u=o.getShallow(l,!0);u!=null&&r.setItemVisual(a,l,u)}}return{dataEach:t.hasItemOption?i:null}}};function Am(n,e,t){switch(t){case"color":var i=n.getItemVisual(e,"style");return i[n.getVisual("drawType")];case"opacity":return n.getItemVisual(e,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return n.getItemVisual(e,t)}}function Mc(n,e){switch(e){case"color":var t=n.getVisual("style");return t[n.getVisual("drawType")];case"opacity":return n.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return n.getVisual(e)}}function bI(n,e,t,i){switch(t){case"color":var r=n.ensureUniqueItemVisual(e,"style");r[n.getVisual("drawType")]=i,n.setItemVisual(e,"colorFromPalette",!1);break;case"opacity":n.ensureUniqueItemVisual(e,"style").opacity=i;break;case"symbol":case"symbolSize":case"liftZ":n.setItemVisual(e,t,i);break}}function wI(n,e){function t(i,r){var a=[];return i.eachComponent({mainType:"series",subType:n,query:r},function(o){a.push(o.seriesIndex)}),a}E([[n+"ToggleSelect","toggleSelect"],[n+"Select","select"],[n+"UnSelect","unselect"]],function(i){e(i[0],function(r,a,o){r=lt({},r),o.dispatchAction(lt(r,{type:i[1],seriesIndex:t(a,r)}))})})}function Ll(n,e,t,i,r){var a=n+e;t.isSilent(a)||i.eachComponent({mainType:"series",subType:"pie"},function(o){for(var s=o.seriesIndex,l=o.option.selectedMap,u=r.selected,c=0;c<u.length;c++)if(u[c].seriesIndex===s){var h=o.getData(),f=Bo(h,r.fromActionPayload);t.trigger(a,{type:a,seriesId:o.id,name:ht(f)?h.getName(f[0]):h.getName(f),selected:Tt(l)?l:lt({},l)})}})}function S6(n,e,t){n.on("selectchanged",function(i){var r=t.getModel();i.isFromClick?(Ll("map","selectchanged",e,r,i),Ll("pie","selectchanged",e,r,i)):i.fromAction==="select"?(Ll("map","selected",e,r,i),Ll("pie","selected",e,r,i)):i.fromAction==="unselect"&&(Ll("map","unselected",e,r,i),Ll("pie","unselected",e,r,i))})}function hs(n,e,t){for(var i;n&&!(e(n)&&(i=n,t));)n=n.__hostTarget||n.parent;return i}var M6=Math.round(Math.random()*9),I6=typeof Object.defineProperty=="function",T6=function(){function n(){this._id="__ec_inner_"+M6++}return n.prototype.get=function(e){return this._guard(e)[this._id]},n.prototype.set=function(e,t){var i=this._guard(e);return I6?Object.defineProperty(i,this._id,{value:t,enumerable:!1,configurable:!0}):i[this._id]=t,this},n.prototype.delete=function(e){return this.has(e)?(delete this._guard(e)[this._id],!0):!1},n.prototype.has=function(e){return!!this._guard(e)[this._id]},n.prototype._guard=function(e){if(e!==Object(e))throw TypeError("Value of WeakMap is not a non-null object.");return e},n}(),A6=re.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(n,e){var t=e.cx,i=e.cy,r=e.width/2,a=e.height/2;n.moveTo(t,i-a),n.lineTo(t+r,i+a),n.lineTo(t-r,i+a),n.closePath()}}),C6=re.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(n,e){var t=e.cx,i=e.cy,r=e.width/2,a=e.height/2;n.moveTo(t,i-a),n.lineTo(t+r,i),n.lineTo(t,i+a),n.lineTo(t-r,i),n.closePath()}}),k6=re.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(n,e){var t=e.x,i=e.y,r=e.width/5*3,a=Math.max(r,e.height),o=r/2,s=o*o/(a-o),l=i-a+o+s,u=Math.asin(s/o),c=Math.cos(u)*o,h=Math.sin(u),f=Math.cos(u),d=o*.6,g=o*.7;n.moveTo(t-c,l+s),n.arc(t,l,o,Math.PI-u,Math.PI*2+u),n.bezierCurveTo(t+c-h*d,l+s+f*d,t,i-g,t,i),n.bezierCurveTo(t,i-g,t-c+h*d,l+s+f*d,t-c,l+s),n.closePath()}}),L6=re.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(n,e){var t=e.height,i=e.width,r=e.x,a=e.y,o=i/3*2;n.moveTo(r,a),n.lineTo(r+o,a+t),n.lineTo(r,a+t/4*3),n.lineTo(r-o,a+t),n.lineTo(r,a),n.closePath()}}),D6={line:fn,rect:de,roundRect:de,square:de,circle:ca,diamond:C6,pin:k6,arrow:L6,triangle:A6},P6={line:function(n,e,t,i,r){r.x1=n,r.y1=e+i/2,r.x2=n+t,r.y2=e+i/2},rect:function(n,e,t,i,r){r.x=n,r.y=e,r.width=t,r.height=i},roundRect:function(n,e,t,i,r){r.x=n,r.y=e,r.width=t,r.height=i,r.r=Math.min(t,i)/4},square:function(n,e,t,i,r){var a=Math.min(t,i);r.x=n,r.y=e,r.width=a,r.height=a},circle:function(n,e,t,i,r){r.cx=n+t/2,r.cy=e+i/2,r.r=Math.min(t,i)/2},diamond:function(n,e,t,i,r){r.cx=n+t/2,r.cy=e+i/2,r.width=t,r.height=i},pin:function(n,e,t,i,r){r.x=n+t/2,r.y=e+i/2,r.width=t,r.height=i},arrow:function(n,e,t,i,r){r.x=n+t/2,r.y=e+i/2,r.width=t,r.height=i},triangle:function(n,e,t,i,r){r.cx=n+t/2,r.cy=e+i/2,r.width=t,r.height=i}},Ad={};E(D6,function(n,e){Ad[e]=new n});var R6=re.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(n,e,t){var i=Cp(n,e,t),r=this.shape;return r&&r.symbolType==="pin"&&e.position==="inside"&&(i.y=t.y+t.height*.4),i},buildPath:function(n,e,t){var i=e.symbolType;if(i!=="none"){var r=Ad[i];r||(i="rect",r=Ad[i]),P6[i](e.x,e.y,e.width,e.height,r.shape),r.buildPath(n,r.shape,t)}}});function N6(n,e){if(this.type!=="image"){var t=this.style;this.__isEmptyBrush?(t.stroke=n,t.fill=e||"#fff",t.lineWidth=2):this.shape.symbolType==="line"?t.stroke=n:t.fill=n,this.markRedraw()}}function rn(n,e,t,i,r,a,o){var s=n.indexOf("empty")===0;s&&(n=n.substr(5,1).toLowerCase()+n.substr(6));var l;return n.indexOf("image://")===0?l=mS(n.slice(8),new $t(e,t,i,r),o?"center":"cover"):n.indexOf("path://")===0?l=td(n.slice(7),{},new $t(e,t,i,r),o?"center":"cover"):l=new R6({shape:{symbolType:n,x:e,y:t,width:i,height:r}}),l.__isEmptyBrush=s,l.setColor=N6,a&&l.setColor(a),l}function Dl(n){return ht(n)||(n=[+n,+n]),[n[0]||0,n[1]||0]}function ps(n,e){if(n!=null)return ht(n)||(n=[n,n]),[Mt(n[0],e[0])||0,Mt(Ut(n[1],n[0]),e[1])||0]}function ds(n){return isFinite(n)}function z6(n,e,t){var i=e.x==null?0:e.x,r=e.x2==null?1:e.x2,a=e.y==null?0:e.y,o=e.y2==null?0:e.y2;e.global||(i=i*t.width+t.x,r=r*t.width+t.x,a=a*t.height+t.y,o=o*t.height+t.y),i=ds(i)?i:0,r=ds(r)?r:1,a=ds(a)?a:0,o=ds(o)?o:0;var s=n.createLinearGradient(i,a,r,o);return s}function E6(n,e,t){var i=t.width,r=t.height,a=Math.min(i,r),o=e.x==null?.5:e.x,s=e.y==null?.5:e.y,l=e.r==null?.5:e.r;e.global||(o=o*i+t.x,s=s*r+t.y,l=l*a),o=ds(o)?o:.5,s=ds(s)?s:.5,l=l>=0&&ds(l)?l:.5;var u=n.createRadialGradient(o,s,0,o,s,l);return u}function Cm(n,e,t){for(var i=e.type==="radial"?E6(n,e,t):z6(n,e,t),r=e.colorStops,a=0;a<r.length;a++)i.addColorStop(r[a].offset,r[a].color);return i}function O6(n,e){if(n===e||!n&&!e)return!1;if(!n||!e||n.length!==e.length)return!0;for(var t=0;t<n.length;t++)if(n[t]!==e[t])return!0;return!1}function Cd(n){return parseInt(n,10)}function Pl(n,e,t){var i=["width","height"][e],r=["clientWidth","clientHeight"][e],a=["paddingLeft","paddingTop"][e],o=["paddingRight","paddingBottom"][e];if(t[i]!=null&&t[i]!=="auto")return parseFloat(t[i]);var s=document.defaultView.getComputedStyle(n);return(n[r]||Cd(s[i])||Cd(n.style[i]))-(Cd(s[a])||0)-(Cd(s[o])||0)|0}function B6(n,e){return!n||n==="solid"||!(e>0)?null:n==="dashed"?[4*e,2*e]:n==="dotted"?[e]:ve(n)?[n]:ht(n)?n:null}function km(n){var e=n.style,t=e.lineDash&&e.lineWidth>0&&B6(e.lineDash,e.lineWidth),i=e.lineDashOffset;if(t){var r=e.strokeNoScale&&n.getLineScale?n.getLineScale():1;r&&r!==1&&(t=pt(t,function(a){return a/r}),i/=r)}return[t,i]}var V6=new Rr(!0);function kd(n){var e=n.stroke;return!(e==null||e==="none"||!(n.lineWidth>0))}function SI(n){return typeof n=="string"&&n!=="none"}function Ld(n){var e=n.fill;return e!=null&&e!=="none"}function MI(n,e){if(e.fillOpacity!=null&&e.fillOpacity!==1){var t=n.globalAlpha;n.globalAlpha=e.fillOpacity*e.opacity,n.fill(),n.globalAlpha=t}else n.fill()}function II(n,e){if(e.strokeOpacity!=null&&e.strokeOpacity!==1){var t=n.globalAlpha;n.globalAlpha=e.strokeOpacity*e.opacity,n.stroke(),n.globalAlpha=t}else n.stroke()}function Lm(n,e,t){var i=ly(e.image,e.__image,t);if(Pp(i)){var r=n.createPattern(i,e.repeat||"repeat");if(typeof DOMMatrix=="function"&&r&&r.setTransform){var a=new DOMMatrix;a.translateSelf(e.x||0,e.y||0),a.rotateSelf(0,0,(e.rotation||0)*np),a.scaleSelf(e.scaleX||1,e.scaleY||1),r.setTransform(a)}return r}}function F6(n,e,t,i){var r,a=kd(t),o=Ld(t),s=t.strokePercent,l=s<1,u=!e.path;(!e.silent||l)&&u&&e.createPathProxy();var c=e.path||V6,h=e.__dirty;if(!i){var f=t.fill,d=t.stroke,g=o&&!!f.colorStops,y=a&&!!d.colorStops,_=o&&!!f.image,v=a&&!!d.image,p=void 0,x=void 0,b=void 0,S=void 0,M=void 0;(g||y)&&(M=e.getBoundingRect()),g&&(p=h?Cm(n,f,M):e.__canvasFillGradient,e.__canvasFillGradient=p),y&&(x=h?Cm(n,d,M):e.__canvasStrokeGradient,e.__canvasStrokeGradient=x),_&&(b=h||!e.__canvasFillPattern?Lm(n,f,e):e.__canvasFillPattern,e.__canvasFillPattern=b),v&&(S=h||!e.__canvasStrokePattern?Lm(n,d,e):e.__canvasStrokePattern,e.__canvasStrokePattern=b),g?n.fillStyle=p:_&&(b?n.fillStyle=b:o=!1),y?n.strokeStyle=x:v&&(S?n.strokeStyle=S:a=!1)}var I=e.getGlobalScale();c.setScale(I[0],I[1],e.segmentIgnoreThreshold);var A,C;n.setLineDash&&t.lineDash&&(r=km(e),A=r[0],C=r[1]);var L=!0;(u||h&Du)&&(c.setDPR(n.dpr),l?c.setContext(null):(c.setContext(n),L=!1),c.reset(),e.buildPath(c,e.shape,i),c.toStatic(),e.pathUpdated()),L&&c.rebuildPath(n,l?s:1),A&&(n.setLineDash(A),n.lineDashOffset=C),i||(t.strokeFirst?(a&&II(n,t),o&&MI(n,t)):(o&&MI(n,t),a&&II(n,t))),A&&n.setLineDash([])}function W6(n,e,t){var i=e.__image=ly(t.image,e.__image,e,e.onload);if(!(!i||!Pp(i))){var r=t.x||0,a=t.y||0,o=e.getWidth(),s=e.getHeight(),l=i.width/i.height;if(o==null&&s!=null?o=s*l:s==null&&o!=null?s=o/l:o==null&&s==null&&(o=i.width,s=i.height),t.sWidth&&t.sHeight){var u=t.sx||0,c=t.sy||0;n.drawImage(i,u,c,t.sWidth,t.sHeight,r,a,o,s)}else if(t.sx&&t.sy){var u=t.sx,c=t.sy,h=o-u,f=s-c;n.drawImage(i,u,c,h,f,r,a,o,s)}else n.drawImage(i,r,a,o,s)}}function G6(n,e,t){var i,r=t.text;if(r!=null&&(r+=""),r){n.font=t.font||Pa,n.textAlign=t.textAlign,n.textBaseline=t.textBaseline;var a=void 0,o=void 0;n.setLineDash&&t.lineDash&&(i=km(e),a=i[0],o=i[1]),a&&(n.setLineDash(a),n.lineDashOffset=o),t.strokeFirst?(kd(t)&&n.strokeText(r,t.x,t.y),Ld(t)&&n.fillText(r,t.x,t.y)):(Ld(t)&&n.fillText(r,t.x,t.y),kd(t)&&n.strokeText(r,t.x,t.y)),a&&n.setLineDash([])}}var TI=["shadowBlur","shadowOffsetX","shadowOffsetY"],AI=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function CI(n,e,t,i,r){var a=!1;if(!i&&(t=t||{},e===t))return!1;if(i||e.opacity!==t.opacity){li(n,r),a=!0;var o=Math.max(Math.min(e.opacity,1),0);n.globalAlpha=isNaN(o)?Wo.opacity:o}(i||e.blend!==t.blend)&&(a||(li(n,r),a=!0),n.globalCompositeOperation=e.blend||Wo.blend);for(var s=0;s<TI.length;s++){var l=TI[s];(i||e[l]!==t[l])&&(a||(li(n,r),a=!0),n[l]=n.dpr*(e[l]||0))}return(i||e.shadowColor!==t.shadowColor)&&(a||(li(n,r),a=!0),n.shadowColor=e.shadowColor||Wo.shadowColor),a}function kI(n,e,t,i,r){var a=Ic(e,r.inHover),o=i?null:t&&Ic(t,r.inHover)||{};if(a===o)return!1;var s=CI(n,a,o,i,r);if((i||a.fill!==o.fill)&&(s||(li(n,r),s=!0),SI(a.fill)&&(n.fillStyle=a.fill)),(i||a.stroke!==o.stroke)&&(s||(li(n,r),s=!0),SI(a.stroke)&&(n.strokeStyle=a.stroke)),(i||a.opacity!==o.opacity)&&(s||(li(n,r),s=!0),n.globalAlpha=a.opacity==null?1:a.opacity),e.hasStroke()){var l=a.lineWidth,u=l/(a.strokeNoScale&&e.getLineScale?e.getLineScale():1);n.lineWidth!==u&&(s||(li(n,r),s=!0),n.lineWidth=u)}for(var c=0;c<AI.length;c++){var h=AI[c],f=h[0];(i||a[f]!==o[f])&&(s||(li(n,r),s=!0),n[f]=a[f]||h[1])}return s}function j6(n,e,t,i,r){return CI(n,Ic(e,r.inHover),t&&Ic(t,r.inHover),i,r)}function LI(n,e){var t=e.transform,i=n.dpr||1;t?n.setTransform(i*t[0],i*t[1],i*t[2],i*t[3],i*t[4],i*t[5]):n.setTransform(i,0,0,i,0,0)}function H6(n,e,t){for(var i=!1,r=0;r<n.length;r++){var a=n[r];i=i||a.isZeroArea(),LI(e,a),e.beginPath(),a.buildPath(e,a.shape),e.clip()}t.allClipped=i}function U6(n,e){return n&&e?n[0]!==e[0]||n[1]!==e[1]||n[2]!==e[2]||n[3]!==e[3]||n[4]!==e[4]||n[5]!==e[5]:!(!n&&!e)}var DI=1,PI=2,RI=3,NI=4;function X6(n){var e=Ld(n),t=kd(n);return!(n.lineDash||!(+e^+t)||e&&typeof n.fill!="string"||t&&typeof n.stroke!="string"||n.strokePercent<1||n.strokeOpacity<1||n.fillOpacity<1)}function li(n,e){e.batchFill&&n.fill(),e.batchStroke&&n.stroke(),e.batchFill="",e.batchStroke=""}function Ic(n,e){return e&&n.__hoverStyle||n.style}function zI(n,e){fs(n,e,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function fs(n,e,t,i){var r=e.transform;if(!e.shouldBePainted(t.viewWidth,t.viewHeight,!1,!1)){e.__dirty&=-2,e.__isRendered=!1;return}var a=e.__clipPaths,o=t.prevElClipPaths,s=!1,l=!1;if((!o||O6(a,o))&&(o&&o.length&&(li(n,t),n.restore(),l=s=!0,t.prevElClipPaths=null,t.allClipped=!1,t.prevEl=null),a&&a.length&&(li(n,t),n.save(),H6(a,n,t),s=!0),t.prevElClipPaths=a),t.allClipped){e.__isRendered=!1;return}e.beforeBrush&&e.beforeBrush(),e.innerBeforeBrush();var u=t.prevEl;u||(l=s=!0);var c=e instanceof re&&e.autoBatch&&X6(e.style);s||U6(r,u.transform)?(li(n,t),LI(n,e)):c||li(n,t);var h=Ic(e,t.inHover);e instanceof re?(t.lastDrawType!==DI&&(l=!0,t.lastDrawType=DI),kI(n,e,u,l,t),(!c||!t.batchFill&&!t.batchStroke)&&n.beginPath(),F6(n,e,h,c),c&&(t.batchFill=h.fill||"",t.batchStroke=h.stroke||"")):e instanceof sl?(t.lastDrawType!==RI&&(l=!0,t.lastDrawType=RI),kI(n,e,u,l,t),G6(n,e,h)):e instanceof Sn?(t.lastDrawType!==PI&&(l=!0,t.lastDrawType=PI),j6(n,e,u,l,t),W6(n,e,h)):e.getTemporalDisplayables&&(t.lastDrawType!==NI&&(l=!0,t.lastDrawType=NI),Z6(n,e,t)),c&&i&&li(n,t),e.innerAfterBrush(),e.afterBrush&&e.afterBrush(),t.prevEl=e,e.__dirty=0,e.__isRendered=!0}function Z6(n,e,t){var i=e.getDisplayables(),r=e.getTemporalDisplayables();n.save();var a={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:t.viewWidth,viewHeight:t.viewHeight,inHover:t.inHover},o,s;for(o=e.getCursor(),s=i.length;o<s;o++){var l=i[o];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),fs(n,l,a,o===s-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),a.prevEl=l}for(var u=0,c=r.length;u<c;u++){var l=r[u];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),fs(n,l,a,u===c-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),a.prevEl=l}e.clearTemporalDisplayables(),e.notClear=!0,n.restore()}var Dm=new T6,EI=new Nu(100),OI=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function Rl(n,e){if(n==="none")return null;var t=e.getDevicePixelRatio(),i=e.getZr(),r=i.painter.type==="svg";n.dirty&&Dm.delete(n);var a=Dm.get(n);if(a)return a;var o=Bt(n,{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=r?1:1/t,Dm.set(n,s),n.dirty=!1,s;function l(u){for(var c=[t],h=!0,f=0;f<OI.length;++f){var d=o[OI[f]];if(d!=null&&!ht(d)&&!Tt(d)&&!ve(d)&&typeof d!="boolean"){h=!1;break}c.push(d)}var g;if(h){g=c.join(",")+(r?"-svg":"");var y=EI.get(g);y&&(r?u.svgElement=y:u.image=y)}var _=VI(o.dashArrayX),v=q6(o.dashArrayY),p=BI(o.symbol),x=K6(_),b=FI(v),S=!r&&Ra.createCanvas(),M=r&&{tag:"g",attrs:{},key:"dcl",children:[]},I=C(),A;S&&(S.width=I.width*t,S.height=I.height*t,A=S.getContext("2d")),L(),h&&EI.put(g,S||M),u.image=S,u.svgElement=M,u.svgWidth=I.width,u.svgHeight=I.height;function C(){for(var R=1,D=0,N=x.length;D<N;++D)R=n2(R,x[D]);for(var k=1,D=0,N=p.length;D<N;++D)k=n2(k,p[D].length);R*=k;var O=b*x.length*p.length;return{width:Math.max(1,Math.min(R,o.maxTileWidth)),height:Math.max(1,Math.min(O,o.maxTileHeight))}}function L(){A&&(A.clearRect(0,0,S.width,S.height),o.backgroundColor&&(A.fillStyle=o.backgroundColor,A.fillRect(0,0,S.width,S.height)));for(var R=0,D=0;D<v.length;++D)R+=v[D];if(R<=0)return;for(var N=-b,k=0,O=0,F=0;N<I.height;){if(k%2===0){for(var G=O/2%p.length,q=0,j=0,J=0;q<I.width*2;){for(var H=0,D=0;D<_[F].length;++D)H+=_[F][D];if(H<=0)break;if(j%2===0){var K=(1-o.symbolSize)*.5,ut=q+_[F][j]*K,ot=N+v[k]*K,at=_[F][j]*o.symbolSize,Nt=v[k]*o.symbolSize,Yt=J/2%p[G].length;wt(ut,ot,at,Nt,p[G][Yt])}q+=_[F][j],++J,++j,j===_[F].length&&(j=0)}++F,F===_.length&&(F=0)}N+=v[k],++O,++k,k===v.length&&(k=0)}function wt(xt,zt,bt,Pt,ae){var z=r?1:t,st=rn(ae,xt*z,zt*z,bt*z,Pt*z,o.color,o.symbolKeepAspect);if(r){var rt=i.painter.renderOneToVNode(st);rt&&M.children.push(rt)}else zI(A,st)}}}}function BI(n){if(!n||n.length===0)return[["rect"]];if(Tt(n))return[[n]];for(var e=!0,t=0;t<n.length;++t)if(!Tt(n[t])){e=!1;break}if(e)return BI([n]);for(var i=[],t=0;t<n.length;++t)Tt(n[t])?i.push([n[t]]):i.push(n[t]);return i}function VI(n){if(!n||n.length===0)return[[0,0]];if(ve(n)){var e=Math.ceil(n);return[[e,e]]}for(var t=!0,i=0;i<n.length;++i)if(!ve(n[i])){t=!1;break}if(t)return VI([n]);for(var r=[],i=0;i<n.length;++i)if(ve(n[i])){var e=Math.ceil(n[i]);r.push([e,e])}else{var e=pt(n[i],function(s){return Math.ceil(s)});e.length%2===1?r.push(e.concat(e)):r.push(e)}return r}function q6(n){if(!n||typeof n=="object"&&n.length===0)return[0,0];if(ve(n)){var e=Math.ceil(n);return[e,e]}var t=pt(n,function(i){return Math.ceil(i)});return n.length%2?t.concat(t):t}function K6(n){return pt(n,function(e){return FI(e)})}function FI(n){for(var e=0,t=0;t<n.length;++t)e+=n[t];return n.length%2===1?e*2:e}function Y6(n,e){n.eachRawSeries(function(t){if(!n.isSeriesFiltered(t)){var i=t.getData();i.hasItemVisual()&&i.each(function(o){var s=i.getItemVisual(o,"decal");if(s){var l=i.ensureUniqueItemVisual(o,"style");l.decal=Rl(s,e)}});var r=i.getVisual("decal");if(r){var a=i.getVisual("style");a.decal=Rl(r,e)}}})}var hr=new Ci,WI={};function J6(n,e){WI[n]=e}function $6(n){return WI[n]}var Q6=1,t8=800,e8=900,n8=1e3,i8=2e3,r8=5e3,GI=1e3,a8=1100,Pm=2e3,jI=3e3,o8=4e3,Dd=4500,s8=4600,l8=5e3,u8=6e3,HI=7e3,c8={PROCESSOR:{FILTER:n8,SERIES_FILTER:t8,STATISTIC:r8},VISUAL:{LAYOUT:GI,PROGRESSIVE_LAYOUT:a8,GLOBAL:Pm,CHART:jI,POST_CHART_LAYOUT:s8,COMPONENT:o8,BRUSH:l8,CHART_ITEM:Dd,ARIA:u8,DECAL:HI}},Vn="__flagInMainProcess",ui="__pendingUpdate",Rm="__needsUpdateStatus",UI=/^[a-zA-Z0-9_]+$/,Nm="__connectUpdateStatus",XI=0,h8=1,p8=2;function ZI(n){return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(this.isDisposed()){this.id;return}return KI(this,n,e)}}function qI(n){return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return KI(this,n,e)}}function KI(n,e,t){return t[0]=t[0]&&t[0].toLowerCase(),Ci.prototype[e].apply(n,t)}var YI=function(n){Q(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e}(Ci),JI=YI.prototype;JI.on=qI("on"),JI.off=qI("off");var Nl,zm,Pd,to,Em,Om,Bm,Tc,Ac,$I,QI,Vm,tT,Rd,eT,nT,Fi,iT,rT=function(n){Q(e,n);function e(t,i,r){var a=n.call(this,new x6)||this;a._chartsViews=[],a._chartsMap={},a._componentsViews=[],a._componentsMap={},a._pendingActions=[],r=r||{},Tt(i)&&(i=aT[i]),a._dom=t;var o="canvas",s="auto",l=!1;r.ssr&&oO(function(f){var d=jt(f),g=d.dataIndex;if(g!=null){var y=Dt();return y.set("series_index",d.seriesIndex),y.set("data_index",g),d.ssrType&&y.set("ssr_type",d.ssrType),y}});var u=a._zr=Xw(t,{renderer:r.renderer||o,devicePixelRatio:r.devicePixelRatio,width:r.width,height:r.height,ssr:r.ssr,useDirtyRect:Ut(r.useDirtyRect,l),useCoarsePointer:Ut(r.useCoarsePointer,s),pointerSize:r.pointerSize});a._ssr=r.ssr,a._throttledZrFlush=Im(Ct(u.flush,u),17),i=Wt(i),i&&xM(i,!0),a._theme=i,a._locale=D4(r.locale||NS),a._coordSysMgr=new vc;var c=a._api=eT(a);function h(f,d){return f.__prio-d.__prio}return lp(zd,h),lp(Wm,h),a._scheduler=new pI(a,c,Wm,zd),a._messageCenter=new YI,a._initEvents(),a.resize=Ct(a.resize,a),u.animation.on("frame",a._onframe,a),$I(u,a),QI(u,a),tp(a),a}return e.prototype._onframe=function(){if(!this._disposed){iT(this);var t=this._scheduler;if(this[ui]){var i=this[ui].silent;this[Vn]=!0;try{Nl(this),to.update.call(this,null,this[ui].updateParams)}catch(l){throw this[Vn]=!1,this[ui]=null,l}this._zr.flush(),this[Vn]=!1,this[ui]=null,Tc.call(this,i),Ac.call(this,i)}else if(t.unfinished){var r=Q6,a=this._model,o=this._api;t.unfinished=!1;do{var s=+new Date;t.performSeriesTasks(a),t.performDataProcessorTasks(a),Om(this,a),t.performVisualTasks(a),Rd(this,this._model,o,"remain",{}),r-=+new Date-s}while(r>0&&t.unfinished);t.unfinished||this._zr.flush()}}},e.prototype.getDom=function(){return this._dom},e.prototype.getId=function(){return this.id},e.prototype.getZr=function(){return this._zr},e.prototype.isSSR=function(){return this._ssr},e.prototype.setOption=function(t,i,r){if(!this[Vn]){if(this._disposed){this.id;return}var a,o,s;if(Vt(i)&&(r=i.lazyUpdate,a=i.silent,o=i.replaceMerge,s=i.transition,i=i.notMerge),this[Vn]=!0,!this._model||i){var l=new nV(this._api),u=this._theme,c=this._model=new um;c.scheduler=this._scheduler,c.ssr=this._ssr,c.init(null,null,null,u,this._locale,l)}this._model.setOption(t,{replaceMerge:o},Gm);var h={seriesTransition:s,optionChanged:!0};if(r)this[ui]={silent:a,updateParams:h},this[Vn]=!1,this.getZr().wakeUp();else{try{Nl(this),to.update.call(this,null,h)}catch(f){throw this[ui]=null,this[Vn]=!1,f}this._ssr||this._zr.flush(),this[ui]=null,this[Vn]=!1,Tc.call(this,a),Ac.call(this,a)}}},e.prototype.setTheme=function(){},e.prototype.getModel=function(){return this._model},e.prototype.getOption=function(){return this._model&&this._model.getOption()},e.prototype.getWidth=function(){return this._zr.getWidth()},e.prototype.getHeight=function(){return this._zr.getHeight()},e.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||oe.hasGlobalWindow&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(t){return this.renderToCanvas(t)},e.prototype.renderToCanvas=function(t){t=t||{};var i=this._zr.painter;return i.getRenderedCanvas({backgroundColor:t.backgroundColor||this._model.get("backgroundColor"),pixelRatio:t.pixelRatio||this.getDevicePixelRatio()})},e.prototype.renderToSVGString=function(t){t=t||{};var i=this._zr.painter;return i.renderToString({useViewBox:t.useViewBox})},e.prototype.getSvgDataURL=function(){if(oe.svgSupported){var t=this._zr,i=t.storage.getDisplayList();return E(i,function(r){r.stopAnimation(null,!0)}),t.painter.toDataURL()}},e.prototype.getDataURL=function(t){if(this._disposed){this.id;return}t=t||{};var i=t.excludeComponents,r=this._model,a=[],o=this;E(i,function(l){r.eachComponent({mainType:l},function(u){var c=o._componentsMap[u.__viewId];c.group.ignore||(a.push(c),c.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(t).toDataURL("image/"+(t&&t.type||"png"));return E(a,function(l){l.group.ignore=!1}),s},e.prototype.getConnectedDataURL=function(t){if(this._disposed){this.id;return}var i=t.type==="svg",r=this.group,a=Math.min,o=Math.max,s=1/0;if(oT[r]){var l=s,u=s,c=-1/0,h=-1/0,f=[],d=t&&t.pixelRatio||this.getDevicePixelRatio();E(kc,function(x,b){if(x.group===r){var S=i?x.getZr().painter.getSvgDom().innerHTML:x.renderToCanvas(Wt(t)),M=x.getDom().getBoundingClientRect();l=a(M.left,l),u=a(M.top,u),c=o(M.right,c),h=o(M.bottom,h),f.push({dom:S,left:M.left,top:M.top})}}),l*=d,u*=d,c*=d,h*=d;var g=c-l,y=h-u,_=Ra.createCanvas(),v=Xw(_,{renderer:i?"svg":"canvas"});if(v.resize({width:g,height:y}),i){var p="";return E(f,function(x){var b=x.left-l,S=x.top-u;p+='<g transform="translate('+b+","+S+')">'+x.dom+"</g>"}),v.painter.getSvgRoot().innerHTML=p,t.connectedBackgroundColor&&v.painter.setBackgroundColor(t.connectedBackgroundColor),v.refreshImmediately(),v.painter.toDataURL()}else return t.connectedBackgroundColor&&v.add(new de({shape:{x:0,y:0,width:g,height:y},style:{fill:t.connectedBackgroundColor}})),E(f,function(x){var b=new Sn({style:{x:x.left*d-l,y:x.top*d-u,image:x.dom}});v.add(b)}),v.refreshImmediately(),_.toDataURL("image/"+(t&&t.type||"png"))}else return this.getDataURL(t)},e.prototype.convertToPixel=function(t,i){return Em(this,"convertToPixel",t,i)},e.prototype.convertFromPixel=function(t,i){return Em(this,"convertFromPixel",t,i)},e.prototype.containPixel=function(t,i){if(this._disposed){this.id;return}var r=this._model,a,o=Xu(r,t);return E(o,function(s,l){l.indexOf("Models")>=0&&E(s,function(u){var c=u.coordinateSystem;if(c&&c.containPoint)a=a||!!c.containPoint(i);else if(l==="seriesModels"){var h=this._chartsMap[u.__viewId];h&&h.containPoint&&(a=a||h.containPoint(i,u))}},this)},this),!!a},e.prototype.getVisual=function(t,i){var r=this._model,a=Xu(r,t,{defaultMainType:"series"}),o=a.seriesModel,s=o.getData(),l=a.hasOwnProperty("dataIndexInside")?a.dataIndexInside:a.hasOwnProperty("dataIndex")?s.indexOfRawIndex(a.dataIndex):null;return l!=null?Am(s,l,i):Mc(s,i)},e.prototype.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},e.prototype.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]},e.prototype._initEvents=function(){var t=this;E(d8,function(i){var r=function(a){var o=t.getModel(),s=a.target,l,u=i==="globalout";if(u?l={}:s&&hs(s,function(g){var y=jt(g);if(y&&y.dataIndex!=null){var _=y.dataModel||o.getSeriesByIndex(y.seriesIndex);return l=_&&_.getDataParams(y.dataIndex,y.dataType,s)||{},!0}else if(y.eventData)return l=lt({},y.eventData),!0},!0),l){var c=l.componentType,h=l.componentIndex;(c==="markLine"||c==="markPoint"||c==="markArea")&&(c="series",h=l.seriesIndex);var f=c&&h!=null&&o.getComponent(c,h),d=f&&t[f.mainType==="series"?"_chartsMap":"_componentsMap"][f.__viewId];l.event=a,l.type=i,t._$eventProcessor.eventInfo={targetEl:s,packedEvent:l,model:f,view:d},t.trigger(i,l)}};r.zrEventfulCallAtLast=!0,t._zr.on(i,r,t)}),E(Cc,function(i,r){t._messageCenter.on(r,function(a){this.trigger(r,a)},t)}),E(["selectchanged"],function(i){t._messageCenter.on(i,function(r){this.trigger(i,r)},t)}),S6(this._messageCenter,this,this._api)},e.prototype.isDisposed=function(){return this._disposed},e.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},e.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var t=this.getDom();t&&u2(this.getDom(),Hm,"");var i=this,r=i._api,a=i._model;E(i._componentsViews,function(o){o.dispose(a,r)}),E(i._chartsViews,function(o){o.dispose(a,r)}),i._zr.dispose(),i._dom=i._model=i._chartsMap=i._componentsMap=i._chartsViews=i._componentsViews=i._scheduler=i._api=i._zr=i._throttledZrFlush=i._theme=i._coordSysMgr=i._messageCenter=null,delete kc[i.id]},e.prototype.resize=function(t){if(!this[Vn]){if(this._disposed){this.id;return}this._zr.resize(t);var i=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!i){var r=i.resetOption("media"),a=t&&t.silent;this[ui]&&(a==null&&(a=this[ui].silent),r=!0,this[ui]=null),this[Vn]=!0;try{r&&Nl(this),to.update.call(this,{type:"resize",animation:lt({duration:0},t&&t.animation)})}catch(o){throw this[Vn]=!1,o}this[Vn]=!1,Tc.call(this,a),Ac.call(this,a)}}},e.prototype.showLoading=function(t,i){if(this._disposed){this.id;return}if(Vt(t)&&(i=t,t=""),t=t||"default",this.hideLoading(),!!jm[t]){var r=jm[t](this._api,i),a=this._zr;this._loadingFX=r,a.add(r)}},e.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},e.prototype.makeActionFromEvent=function(t){var i=lt({},t);return i.type=Cc[t.type],i},e.prototype.dispatchAction=function(t,i){if(this._disposed){this.id;return}if(Vt(i)||(i={silent:!!i}),!!Nd[t.type]&&this._model){if(this[Vn]){this._pendingActions.push(t);return}var r=i.silent;Bm.call(this,t,r);var a=i.flush;a?this._zr.flush():a!==!1&&oe.browser.weChat&&this._throttledZrFlush(),Tc.call(this,r),Ac.call(this,r)}},e.prototype.updateLabelLayout=function(){hr.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(t){if(this._disposed){this.id;return}var i=t.seriesIndex,r=this.getModel(),a=r.getSeriesByIndex(i);a.appendData(t),this._scheduler.unfinished=!0,this.getZr().wakeUp()},e.internalField=function(){Nl=function(h){var f=h._scheduler;f.restorePipelines(h._model),f.prepareStageTasks(),zm(h,!0),zm(h,!1),f.plan()},zm=function(h,f){for(var d=h._model,g=h._scheduler,y=f?h._componentsViews:h._chartsViews,_=f?h._componentsMap:h._chartsMap,v=h._zr,p=h._api,x=0;x<y.length;x++)y[x].__alive=!1;f?d.eachComponent(function(M,I){M!=="series"&&b(I)}):d.eachSeries(b);function b(M){var I=M.__requireNewView;M.__requireNewView=!1;var A="_ec_"+M.id+"_"+M.type,C=!I&&_[A];if(!C){var L=kr(M.type),R=f?je.getClass(L.main,L.sub):Pe.getClass(L.sub);C=new R,C.init(d,p),_[A]=C,y.push(C),v.add(C.group)}M.__viewId=C.__id=A,C.__alive=!0,C.__model=M,C.group.__ecComponentInfo={mainType:M.mainType,index:M.componentIndex},!f&&g.prepareView(C,M,d,p)}for(var x=0;x<y.length;){var S=y[x];S.__alive?x++:(!f&&S.renderTask.dispose(),v.remove(S.group),S.dispose(d,p),y.splice(x,1),_[S.__id]===S&&delete _[S.__id],S.__id=S.group.__ecComponentInfo=null)}},Pd=function(h,f,d,g,y){var _=h._model;if(_.setUpdatePayload(d),!g){E([].concat(h._componentsViews).concat(h._chartsViews),S);return}var v={};v[g+"Id"]=d[g+"Id"],v[g+"Index"]=d[g+"Index"],v[g+"Name"]=d[g+"Name"];var p={mainType:g,query:v};y&&(p.subType=y);var x=d.excludeSeriesId,b;x!=null&&(b=Dt(),E(De(x),function(M){var I=ln(M,null);I!=null&&b.set(I,!0)})),_&&_.eachComponent(p,function(M){var I=b&&b.get(M.id)!=null;if(!I)if(tS(d))if(M instanceof Oe)d.type===Ko&&!d.notBlur&&!M.get(["emphasis","disabled"])&&LB(M,d,h._api);else{var A=Py(M.mainType,M.componentIndex,d.name,h._api),C=A.focusSelf,L=A.dispatchers;d.type===Ko&&C&&!d.notBlur&&Dy(M.mainType,M.componentIndex,h._api),L&&E(L,function(R){d.type===Ko?la(R):ua(R)})}else Ny(d)&&M instanceof Oe&&(RB(M,d,h._api),$2(M),Fi(h))},h),_&&_.eachComponent(p,function(M){var I=b&&b.get(M.id)!=null;I||S(h[g==="series"?"_chartsMap":"_componentsMap"][M.__viewId])},h);function S(M){M&&M.__alive&&M[f]&&M[f](M.__model,_,h._api,d)}},to={prepareAndUpdate:function(h){Nl(this),to.update.call(this,h,{optionChanged:h.newOption!=null})},update:function(h,f){var d=this._model,g=this._api,y=this._zr,_=this._coordSysMgr,v=this._scheduler;if(d){d.setUpdatePayload(h),v.restoreData(d,h),v.performSeriesTasks(d),_.create(d,g),v.performDataProcessorTasks(d,h),Om(this,d),_.update(d,g),t(d),v.performVisualTasks(d,h),Vm(this,d,g,h,f);var p=d.get("backgroundColor")||"transparent",x=d.get("darkMode");y.setBackgroundColor(p),x!=null&&x!=="auto"&&y.setDarkMode(x),hr.trigger("afterupdate",d,g)}},updateTransform:function(h){var f=this,d=this._model,g=this._api;if(d){d.setUpdatePayload(h);var y=[];d.eachComponent(function(v,p){if(v!=="series"){var x=f.getViewOfComponentModel(p);if(x&&x.__alive)if(x.updateTransform){var b=x.updateTransform(p,d,g,h);b&&b.update&&y.push(x)}else y.push(x)}});var _=Dt();d.eachSeries(function(v){var p=f._chartsMap[v.__viewId];if(p.updateTransform){var x=p.updateTransform(v,d,g,h);x&&x.update&&_.set(v.uid,1)}else _.set(v.uid,1)}),t(d),this._scheduler.performVisualTasks(d,h,{setDirty:!0,dirtyMap:_}),Rd(this,d,g,h,{},_),hr.trigger("afterupdate",d,g)}},updateView:function(h){var f=this._model;f&&(f.setUpdatePayload(h),Pe.markUpdateMethod(h,"updateView"),t(f),this._scheduler.performVisualTasks(f,h,{setDirty:!0}),Vm(this,f,this._api,h,{}),hr.trigger("afterupdate",f,this._api))},updateVisual:function(h){var f=this,d=this._model;d&&(d.setUpdatePayload(h),d.eachSeries(function(g){g.getData().clearAllVisual()}),Pe.markUpdateMethod(h,"updateVisual"),t(d),this._scheduler.performVisualTasks(d,h,{visualType:"visual",setDirty:!0}),d.eachComponent(function(g,y){if(g!=="series"){var _=f.getViewOfComponentModel(y);_&&_.__alive&&_.updateVisual(y,d,f._api,h)}}),d.eachSeries(function(g){var y=f._chartsMap[g.__viewId];y.updateVisual(g,d,f._api,h)}),hr.trigger("afterupdate",d,this._api))},updateLayout:function(h){to.update.call(this,h)}},Em=function(h,f,d,g){if(h._disposed){h.id;return}for(var y=h._model,_=h._coordSysMgr.getCoordinateSystems(),v,p=Xu(y,d),x=0;x<_.length;x++){var b=_[x];if(b[f]&&(v=b[f](y,p,g))!=null)return v}},Om=function(h,f){var d=h._chartsMap,g=h._scheduler;f.eachSeries(function(y){g.updateStreamModes(y,d[y.__viewId])})},Bm=function(h,f){var d=this,g=this.getModel(),y=h.type,_=h.escapeConnect,v=Nd[y],p=v.actionInfo,x=(p.update||"update").split(":"),b=x.pop(),S=x[0]!=null&&kr(x[0]);this[Vn]=!0;var M=[h],I=!1;h.batch&&(I=!0,M=pt(h.batch,function(k){return k=Bt(lt({},k),h),k.batch=null,k}));var A=[],C,L=Ny(h),R=tS(h);if(R&&J2(this._api),E(M,function(k){if(C=v.action(k,d._model,d._api),C=C||lt({},k),C.type=p.event||C.type,A.push(C),R){var O=ry(h),F=O.queryOptionMap,G=O.mainTypeSpecified,q=G?F.keys()[0]:"series";Pd(d,b,k,q),Fi(d)}else L?(Pd(d,b,k,"series"),Fi(d)):S&&Pd(d,b,k,S.main,S.sub)}),b!=="none"&&!R&&!L&&!S)try{this[ui]?(Nl(this),to.update.call(this,h),this[ui]=null):to[b].call(this,h)}catch(k){throw this[Vn]=!1,k}if(I?C={type:p.event||y,escapeConnect:_,batch:A}:C=A[0],this[Vn]=!1,!f){var D=this._messageCenter;if(D.trigger(C.type,C),L){var N={type:"selectchanged",escapeConnect:_,selected:NB(g),isFromClick:h.isFromClick||!1,fromAction:h.type,fromActionPayload:h};D.trigger(N.type,N)}}},Tc=function(h){for(var f=this._pendingActions;f.length;){var d=f.shift();Bm.call(this,d,h)}},Ac=function(h){!h&&this.trigger("updated")},$I=function(h,f){h.on("rendered",function(d){f.trigger("rendered",d),h.animation.isFinished()&&!f[ui]&&!f._scheduler.unfinished&&!f._pendingActions.length&&f.trigger("finished")})},QI=function(h,f){h.on("mouseover",function(d){var g=d.target,y=hs(g,tc);y&&(DB(y,d,f._api),Fi(f))}).on("mouseout",function(d){var g=d.target,y=hs(g,tc);y&&(PB(y,d,f._api),Fi(f))}).on("click",function(d){var g=d.target,y=hs(g,function(p){return jt(p).dataIndex!=null},!0);if(y){var _=y.selected?"unselect":"select",v=jt(y);f._api.dispatchAction({type:_,dataType:v.dataType,dataIndexInside:v.dataIndex,seriesIndex:v.seriesIndex,isFromClick:!0})}})};function t(h){h.clearColorPalette(),h.eachSeries(function(f){f.clearColorPalette()})}function i(h){var f=[],d=[],g=!1;if(h.eachComponent(function(p,x){var b=x.get("zlevel")||0,S=x.get("z")||0,M=x.getZLevelKey();g=g||!!M,(p==="series"?d:f).push({zlevel:b,z:S,idx:x.componentIndex,type:p,key:M})}),g){var y=f.concat(d),_,v;lp(y,function(p,x){return p.zlevel===x.zlevel?p.z-x.z:p.zlevel-x.zlevel}),E(y,function(p){var x=h.getComponent(p.type,p.idx),b=p.zlevel,S=p.key;_!=null&&(b=Math.max(_,b)),S?(b===_&&S!==v&&b++,v=S):v&&(b===_&&b++,v=""),_=b,x.setZLevel(b)})}}Vm=function(h,f,d,g,y){i(f),tT(h,f,d,g,y),E(h._chartsViews,function(_){_.__alive=!1}),Rd(h,f,d,g,y),E(h._chartsViews,function(_){_.__alive||_.remove(f,d)})},tT=function(h,f,d,g,y,_){E(_||h._componentsViews,function(v){var p=v.__model;u(p,v),v.render(p,f,d,g),s(p,v),c(p,v)})},Rd=function(h,f,d,g,y,_){var v=h._scheduler;y=lt(y||{},{updatedSeries:f.getSeries()}),hr.trigger("series:beforeupdate",f,d,y);var p=!1;f.eachSeries(function(x){var b=h._chartsMap[x.__viewId];b.__alive=!0;var S=b.renderTask;v.updatePayload(S,g),u(x,b),_&&_.get(x.uid)&&S.dirty(),S.perform(v.getPerformArgs(S))&&(p=!0),b.group.silent=!!x.get("silent"),o(x,b),$2(x)}),v.unfinished=p||v.unfinished,hr.trigger("series:layoutlabels",f,d,y),hr.trigger("series:transition",f,d,y),f.eachSeries(function(x){var b=h._chartsMap[x.__viewId];s(x,b),c(x,b)}),a(h,f),hr.trigger("series:afterupdate",f,d,y)},Fi=function(h){h[Rm]=!0,h.getZr().wakeUp()},iT=function(h){h[Rm]&&(h.getZr().storage.traverse(function(f){fl(f)||r(f)}),h[Rm]=!1)};function r(h){for(var f=[],d=h.currentStates,g=0;g<d.length;g++){var y=d[g];y==="emphasis"||y==="blur"||y==="select"||f.push(y)}h.selected&&h.states.select&&f.push("select"),h.hoverState===Vp&&h.states.emphasis?f.push("emphasis"):h.hoverState===Yu&&h.states.blur&&f.push("blur"),h.useStates(f)}function a(h,f){var d=h._zr,g=d.storage,y=0;g.traverse(function(_){_.isGroup||y++}),y>f.get("hoverLayerThreshold")&&!oe.node&&!oe.worker&&f.eachSeries(function(_){if(!_.preventUsingHoverLayer){var v=h._chartsMap[_.__viewId];v.__alive&&v.eachRendered(function(p){p.states.emphasis&&(p.states.emphasis.hoverLayer=!0)})}})}function o(h,f){var d=h.get("blendMode")||null;f.eachRendered(function(g){g.isGroup||(g.style.blend=d)})}function s(h,f){if(!h.preventAutoZ){var d=h.get("z")||0,g=h.get("zlevel")||0;f.eachRendered(function(y){return l(y,d,g,-1/0),!0})}}function l(h,f,d,g){var y=h.getTextContent(),_=h.getTextGuideLine(),v=h.isGroup;if(v)for(var p=h.childrenRef(),x=0;x<p.length;x++)g=Math.max(l(p[x],f,d,g),g);else h.z=f,h.zlevel=d,g=Math.max(h.z2,g);if(y&&(y.z=f,y.zlevel=d,isFinite(g)&&(y.z2=g+2)),_){var b=h.textGuideLineConfig;_.z=f,_.zlevel=d,isFinite(g)&&(_.z2=g+(b&&b.showAbove?1:-1))}return g}function u(h,f){f.eachRendered(function(d){if(!fl(d)){var g=d.getTextContent(),y=d.getTextGuideLine();d.stateTransition&&(d.stateTransition=null),g&&g.stateTransition&&(g.stateTransition=null),y&&y.stateTransition&&(y.stateTransition=null),d.hasState()?(d.prevStates=d.currentStates,d.clearStates()):d.prevStates&&(d.prevStates=null)}})}function c(h,f){var d=h.getModel("stateAnimation"),g=h.isAnimationEnabled(),y=d.get("duration"),_=y>0?{duration:y,delay:d.get("delay"),easing:d.get("easing")}:null;f.eachRendered(function(v){if(v.states&&v.states.emphasis){if(fl(v))return;if(v instanceof re&&VB(v),v.__dirty){var p=v.prevStates;p&&v.useStates(p)}if(g){v.stateTransition=_;var x=v.getTextContent(),b=v.getTextGuideLine();x&&(x.stateTransition=_),b&&(b.stateTransition=_)}v.__dirty&&r(v)}})}eT=function(h){return new(function(f){Q(d,f);function d(){return f!==null&&f.apply(this,arguments)||this}return d.prototype.getCoordinateSystems=function(){return h._coordSysMgr.getCoordinateSystems()},d.prototype.getComponentByElement=function(g){for(;g;){var y=g.__ecComponentInfo;if(y!=null)return h._model.getComponent(y.mainType,y.index);g=g.parent}},d.prototype.enterEmphasis=function(g,y){la(g,y),Fi(h)},d.prototype.leaveEmphasis=function(g,y){ua(g,y),Fi(h)},d.prototype.enterBlur=function(g){Z2(g),Fi(h)},d.prototype.leaveBlur=function(g){ky(g),Fi(h)},d.prototype.enterSelect=function(g){q2(g),Fi(h)},d.prototype.leaveSelect=function(g){K2(g),Fi(h)},d.prototype.getModel=function(){return h.getModel()},d.prototype.getViewOfComponentModel=function(g){return h.getViewOfComponentModel(g)},d.prototype.getViewOfSeriesModel=function(g){return h.getViewOfSeriesModel(g)},d}(dM))(h)},nT=function(h){function f(d,g){for(var y=0;y<d.length;y++){var _=d[y];_[Nm]=g}}E(Cc,function(d,g){h._messageCenter.on(g,function(y){if(oT[h.group]&&h[Nm]!==XI){if(y&&y.escapeConnect)return;var _=h.makeActionFromEvent(y),v=[];E(kc,function(p){p!==h&&p.group===h.group&&v.push(p)}),f(v,XI),E(v,function(p){p[Nm]!==h8&&p.dispatchAction(_)}),f(v,p8)}})})}}(),e}(Ci),Fm=rT.prototype;Fm.on=ZI("on"),Fm.off=ZI("off"),Fm.one=function(n,e,t){var i=this;function r(){for(var a=[],o=0;o<arguments.length;o++)a[o]=arguments[o];e&&e.apply&&e.apply(this,a),i.off(n,r)}this.on.call(this,n,r,t)};var d8=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];function xot(n){}var Nd={},Cc={},Wm=[],Gm=[],zd=[],aT={},jm={},kc={},oT={},f8=+new Date-0,Hm="_echarts_instance_";function g8(n,e,t){var i=!t.ssr;if(i){var r=v8(n);if(r)return r}var a=new rT(n,e,t);return a.id="ec_"+f8++,kc[a.id]=a,i&&u2(n,Hm,a.id),nT(a),hr.trigger("afterinit",a),a}function v8(n){return kc[AO(n,Hm)]}function sT(n,e){aT[n]=e}function lT(n){Qt(Gm,n)<0&&Gm.push(n)}function uT(n,e){Xm(Wm,n,e,i8)}function y8(n){Um("afterinit",n)}function m8(n){Um("afterupdate",n)}function Um(n,e){hr.on(n,e)}function Or(n,e,t){Ot(e)&&(t=e,e="");var i=Vt(n)?n.type:[n,n={event:e}][0];n.event=(n.event||i).toLowerCase(),e=n.event,!Cc[e]&&(jn(UI.test(i)&&UI.test(e)),Nd[i]||(Nd[i]={action:t,actionInfo:n}),Cc[e]=i)}function _8(n,e){vc.register(n,e)}function x8(n,e){Xm(zd,n,e,GI,"layout")}function gs(n,e){Xm(zd,n,e,jI,"visual")}var cT=[];function Xm(n,e,t,i,r){if((Ot(e)||Vt(e))&&(t=e,e=i),!(Qt(cT,t)>=0)){cT.push(t);var a=pI.wrapStageHandler(t,r);a.__prio=e,a.__raw=t,n.push(a)}}function hT(n,e){jm[n]=e}function b8(n,e,t){var i=$6("registerMap");i&&i(n,e,t)}var w8=NV;gs(Pm,o6),gs(Dd,s6),gs(Dd,l6),gs(Pm,b6),gs(Dd,w6),gs(HI,Y6),lT(xM),uT(e8,fV),hT("default",u6),Or({type:Ko,event:Ko,update:Ko},Je),Or({type:Fp,event:Fp,update:Fp},Je),Or({type:$u,event:$u,update:$u},Je),Or({type:Wp,event:Wp,update:Wp},Je),Or({type:Qu,event:Qu,update:Qu},Je),sT("light",_6),sT("dark",_I);var pT=[],S8={registerPreprocessor:lT,registerProcessor:uT,registerPostInit:y8,registerPostUpdate:m8,registerUpdateLifecycle:Um,registerAction:Or,registerCoordinateSystem:_8,registerLayout:x8,registerVisual:gs,registerTransform:w8,registerLoading:hT,registerMap:b8,registerImpl:J6,PRIORITY:c8,ComponentModel:le,ComponentView:je,SeriesModel:Oe,ChartView:Pe,registerComponentModel:function(n){le.registerClass(n)},registerComponentView:function(n){je.registerClass(n)},registerSeriesModel:function(n){Oe.registerClass(n)},registerChartView:function(n){Pe.registerClass(n)},registerSubTypeDefaulter:function(n,e){le.registerSubTypeDefaulter(n,e)},registerPainter:function(n,e){rO(n,e)}};function ie(n){if(ht(n)){E(n,function(e){ie(e)});return}Qt(pT,n)>=0||(pT.push(n),Ot(n)&&(n={install:n}),n.install(S8))}function Lc(n){return n==null?0:n.length||1}function dT(n){return n}var pa=function(){function n(e,t,i,r,a,o){this._old=e,this._new=t,this._oldKeyGetter=i||dT,this._newKeyGetter=r||dT,this.context=a,this._diffModeMultiple=o==="multiple"}return n.prototype.add=function(e){return this._add=e,this},n.prototype.update=function(e){return this._update=e,this},n.prototype.updateManyToOne=function(e){return this._updateManyToOne=e,this},n.prototype.updateOneToMany=function(e){return this._updateOneToMany=e,this},n.prototype.updateManyToMany=function(e){return this._updateManyToMany=e,this},n.prototype.remove=function(e){return this._remove=e,this},n.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},n.prototype._executeOneToOne=function(){var e=this._old,t=this._new,i={},r=new Array(e.length),a=new Array(t.length);this._initIndexMap(e,null,r,"_oldKeyGetter"),this._initIndexMap(t,i,a,"_newKeyGetter");for(var o=0;o<e.length;o++){var s=r[o],l=i[s],u=Lc(l);if(u>1){var c=l.shift();l.length===1&&(i[s]=l[0]),this._update&&this._update(c,o)}else u===1?(i[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(a,i)},n.prototype._executeMultiple=function(){var e=this._old,t=this._new,i={},r={},a=[],o=[];this._initIndexMap(e,i,a,"_oldKeyGetter"),this._initIndexMap(t,r,o,"_newKeyGetter");for(var s=0;s<a.length;s++){var l=a[s],u=i[l],c=r[l],h=Lc(u),f=Lc(c);if(h>1&&f===1)this._updateManyToOne&&this._updateManyToOne(c,u),r[l]=null;else if(h===1&&f>1)this._updateOneToMany&&this._updateOneToMany(c,u),r[l]=null;else if(h===1&&f===1)this._update&&this._update(c,u),r[l]=null;else if(h>1&&f>1)this._updateManyToMany&&this._updateManyToMany(c,u),r[l]=null;else if(h>1)for(var d=0;d<h;d++)this._remove&&this._remove(u[d]);else this._remove&&this._remove(u)}this._performRestAdd(o,r)},n.prototype._performRestAdd=function(e,t){for(var i=0;i<e.length;i++){var r=e[i],a=t[r],o=Lc(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);t[r]=null}},n.prototype._initIndexMap=function(e,t,i,r){for(var a=this._diffModeMultiple,o=0;o<e.length;o++){var s="_ec_"+this[r](e[o],o);if(a||(i[o]=s),!!t){var l=t[s],u=Lc(l);u===0?(t[s]=o,a&&i.push(s)):u===1?t[s]=[l,o]:l.push(o)}}},n}(),M8=function(){function n(e,t){this._encode=e,this._schema=t}return n.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},n.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},n}();function I8(n,e){var t={},i=t.encode={},r=Dt(),a=[],o=[],s={};E(n.dimensions,function(f){var d=n.getDimensionInfo(f),g=d.coordDim;if(g){var y=d.coordDimIndex;Zm(i,g)[y]=f,d.isExtraCoord||(r.set(g,1),T8(d.type)&&(a[0]=f),Zm(s,g)[y]=n.getDimensionIndex(d.name)),d.defaultTooltip&&o.push(f)}tM.each(function(_,v){var p=Zm(i,v),x=d.otherDims[v];x!=null&&x!==!1&&(p[x]=d.name)})});var l=[],u={};r.each(function(f,d){var g=i[d];u[d]=g[0],l=l.concat(g)}),t.dataDimsOnCoord=l,t.dataDimIndicesOnCoord=pt(l,function(f){return n.getDimensionInfo(f).storeDimIndex}),t.encodeFirstDimNotExtra=u;var c=i.label;c&&c.length&&(a=c.slice());var h=i.tooltip;return h&&h.length?o=h.slice():o.length||(o=a.slice()),i.defaultedLabel=a,i.defaultedTooltip=o,t.userOutput=new M8(s,e),t}function Zm(n,e){return n.hasOwnProperty(e)||(n[e]=[]),n[e]}function Ed(n){return n==="category"?"ordinal":n==="time"?"time":"float"}function T8(n){return!(n==="ordinal"||n==="time")}var Od=function(){function n(e){this.otherDims={},e!=null&<(this,e)}return n}(),A8=pe(),C8={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},fT=function(){function n(e){this.dimensions=e.dimensions,this._dimOmitted=e.dimensionOmitted,this.source=e.source,this._fullDimCount=e.fullDimensionCount,this._updateDimOmitted(e.dimensionOmitted)}return n.prototype.isDimensionOmitted=function(){return this._dimOmitted},n.prototype._updateDimOmitted=function(e){this._dimOmitted=e,e&&(this._dimNameMap||(this._dimNameMap=yT(this.source)))},n.prototype.getSourceDimensionIndex=function(e){return Ut(this._dimNameMap.get(e),-1)},n.prototype.getSourceDimension=function(e){var t=this.source.dimensionsDefine;if(t)return t[e]},n.prototype.makeStoreSchema=function(){for(var e=this._fullDimCount,t=MM(this.source),i=!mT(e),r="",a=[],o=0,s=0;o<e;o++){var l=void 0,u=void 0,c=void 0,h=this.dimensions[s];if(h&&h.storeDimIndex===o)l=t?h.name:null,u=h.type,c=h.ordinalMeta,s++;else{var f=this.getSourceDimension(o);f&&(l=t?f.name:null,u=f.type)}a.push({property:l,type:u,ordinalMeta:c}),t&&l!=null&&(!h||!h.isCalculationCoord)&&(r+=i?l.replace(/\`/g,"`1").replace(/\$/g,"`2"):l),r+="$",r+=C8[u]||"f",c&&(r+=c.uid),r+="$"}var d=this.source,g=[d.seriesLayoutBy,d.startIndex,r].join("$$");return{dimensions:a,hash:g}},n.prototype.makeOutputDimensionNames=function(){for(var e=[],t=0,i=0;t<this._fullDimCount;t++){var r=void 0,a=this.dimensions[i];if(a&&a.storeDimIndex===t)a.isCalculationCoord||(r=a.name),i++;else{var o=this.getSourceDimension(t);o&&(r=o.name)}e.push(r)}return e},n.prototype.appendCalculationDimension=function(e){this.dimensions.push(e),e.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},n}();function gT(n){return n instanceof fT}function vT(n){for(var e=Dt(),t=0;t<(n||[]).length;t++){var i=n[t],r=Vt(i)?i.name:i;r!=null&&e.get(r)==null&&e.set(r,t)}return e}function yT(n){var e=A8(n);return e.dimNameMap||(e.dimNameMap=vT(n.dimensionsDefine))}function mT(n){return n>30}var Dc=Vt,eo=pt,k8=typeof Int32Array>"u"?Array:Int32Array,L8="e\0\0",_T=-1,D8=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],P8=["_approximateExtent"],xT,Bd,Pc,Rc,qm,Nc,Km,Jn=function(){function n(e,t){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 i,r=!1;gT(e)?(i=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(r=!0,i=e),i=i||["x","y"];for(var a={},o=[],s={},l=!1,u={},c=0;c<i.length;c++){var h=i[c],f=Tt(h)?new Od({name:h}):h instanceof Od?h:new Od(h),d=f.name;f.type=f.type||"float",f.coordDim||(f.coordDim=d,f.coordDimIndex=0);var g=f.otherDims=f.otherDims||{};o.push(d),a[d]=f,u[d]!=null&&(l=!0),f.createInvertedIndices&&(s[d]=[]),g.itemName===0&&(this._nameDimIdx=c),g.itemId===0&&(this._idDimIdx=c),r&&(f.storeDimIndex=c)}if(this.dimensions=o,this._dimInfos=a,this._initGetDimensionInfo(l),this.hostModel=t,this._invertedIndicesMap=s,this._dimOmitted){var y=this._dimIdxToName=Dt();E(o,function(_){y.set(a[_].storeDimIndex,_)})}}return n.prototype.getDimension=function(e){var t=this._recognizeDimIndex(e);if(t==null)return e;if(t=e,!this._dimOmitted)return this.dimensions[t];var i=this._dimIdxToName.get(t);if(i!=null)return i;var r=this._schema.getSourceDimension(t);if(r)return r.name},n.prototype.getDimensionIndex=function(e){var t=this._recognizeDimIndex(e);if(t!=null)return t;if(e==null)return-1;var i=this._getDimInfo(e);return i?i.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(e):-1},n.prototype._recognizeDimIndex=function(e){if(ve(e)||e!=null&&!isNaN(e)&&!this._getDimInfo(e)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(e)<0))return+e},n.prototype._getStoreDimIndex=function(e){var t=this.getDimensionIndex(e);return t},n.prototype.getDimensionInfo=function(e){return this._getDimInfo(this.getDimension(e))},n.prototype._initGetDimensionInfo=function(e){var t=this._dimInfos;this._getDimInfo=e?function(i){return t.hasOwnProperty(i)?t[i]:void 0}:function(i){return t[i]}},n.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},n.prototype.mapDimension=function(e,t){var i=this._dimSummary;if(t==null)return i.encodeFirstDimNotExtra[e];var r=i.encode[e];return r?r[t]:null},n.prototype.mapDimensionsAll=function(e){var t=this._dimSummary,i=t.encode[e];return(i||[]).slice()},n.prototype.getStore=function(){return this._store},n.prototype.initData=function(e,t,i){var r=this,a;if(e instanceof xm&&(a=e),!a){var o=this.dimensions,s=dm(e)||Nn(e)?new AM(e,o.length):e;a=new xm;var l=eo(o,function(u){return{type:r._dimInfos[u].type,property:u}});a.initData(s,l,i)}this._store=a,this._nameList=(t||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,a.count()),this._dimSummary=I8(this,this._schema),this.userOutput=this._dimSummary.userOutput},n.prototype.appendData=function(e){var t=this._store.appendData(e);this._doInit(t[0],t[1])},n.prototype.appendValues=function(e,t){var i=this._store.appendValues(e,t&&t.length),r=i.start,a=i.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),t)for(var s=r;s<a;s++){var l=s-r;this._nameList[s]=t[l],o&&Km(this,s)}},n.prototype._updateOrdinalMeta=function(){for(var e=this._store,t=this.dimensions,i=0;i<t.length;i++){var r=this._dimInfos[t[i]];r.ordinalMeta&&e.collectOrdinalMeta(r.storeDimIndex,r.ordinalMeta)}},n.prototype._shouldMakeIdFromName=function(){var e=this._store.getProvider();return this._idDimIdx==null&&e.getSource().sourceFormat!==Ja&&!e.fillStorage},n.prototype._doInit=function(e,t){if(!(e>=t)){var i=this._store,r=i.getProvider();this._updateOrdinalMeta();var a=this._nameList,o=this._idList,s=r.getSource().sourceFormat,l=s===Oi;if(l&&!r.pure)for(var u=[],c=e;c<t;c++){var h=r.getItem(c,u);if(!this.hasItemOption&&fO(h)&&(this.hasItemOption=!0),h){var f=h.name;a[c]==null&&f!=null&&(a[c]=ln(f,null));var d=h.id;o[c]==null&&d!=null&&(o[c]=ln(d,null))}}if(this._shouldMakeIdFromName())for(var c=e;c<t;c++)Km(this,c);xT(this)}},n.prototype.getApproximateExtent=function(e){return this._approximateExtent[e]||this._store.getDataExtent(this._getStoreDimIndex(e))},n.prototype.setApproximateExtent=function(e,t){t=this.getDimension(t),this._approximateExtent[t]=e.slice()},n.prototype.getCalculationInfo=function(e){return this._calculationInfo[e]},n.prototype.setCalculationInfo=function(e,t){Dc(e)?lt(this._calculationInfo,e):this._calculationInfo[e]=t},n.prototype.getName=function(e){var t=this.getRawIndex(e),i=this._nameList[t];return i==null&&this._nameDimIdx!=null&&(i=Pc(this,this._nameDimIdx,t)),i==null&&(i=""),i},n.prototype._getCategory=function(e,t){var i=this._store.get(e,t),r=this._store.getOrdinalMeta(e);return r?r.categories[i]:i},n.prototype.getId=function(e){return Bd(this,this.getRawIndex(e))},n.prototype.count=function(){return this._store.count()},n.prototype.get=function(e,t){var i=this._store,r=this._dimInfos[e];if(r)return i.get(r.storeDimIndex,t)},n.prototype.getByRawIndex=function(e,t){var i=this._store,r=this._dimInfos[e];if(r)return i.getByRawIndex(r.storeDimIndex,t)},n.prototype.getIndices=function(){return this._store.getIndices()},n.prototype.getDataExtent=function(e){return this._store.getDataExtent(this._getStoreDimIndex(e))},n.prototype.getSum=function(e){return this._store.getSum(this._getStoreDimIndex(e))},n.prototype.getMedian=function(e){return this._store.getMedian(this._getStoreDimIndex(e))},n.prototype.getValues=function(e,t){var i=this,r=this._store;return ht(e)?r.getValues(eo(e,function(a){return i._getStoreDimIndex(a)}),t):r.getValues(e)},n.prototype.hasValue=function(e){for(var t=this._dimSummary.dataDimIndicesOnCoord,i=0,r=t.length;i<r;i++)if(isNaN(this._store.get(t[i],e)))return!1;return!0},n.prototype.indexOfName=function(e){for(var t=0,i=this._store.count();t<i;t++)if(this.getName(t)===e)return t;return-1},n.prototype.getRawIndex=function(e){return this._store.getRawIndex(e)},n.prototype.indexOfRawIndex=function(e){return this._store.indexOfRawIndex(e)},n.prototype.rawIndexOf=function(e,t){var i=e&&this._invertedIndicesMap[e],r=i&&i[t];return r==null||isNaN(r)?_T:r},n.prototype.indicesOfNearest=function(e,t,i){return this._store.indicesOfNearest(this._getStoreDimIndex(e),t,i)},n.prototype.each=function(e,t,i){Ot(e)&&(i=t,t=e,e=[]);var r=i||this,a=eo(Rc(e),this._getStoreDimIndex,this);this._store.each(a,r?Ct(t,r):t)},n.prototype.filterSelf=function(e,t,i){Ot(e)&&(i=t,t=e,e=[]);var r=i||this,a=eo(Rc(e),this._getStoreDimIndex,this);return this._store=this._store.filter(a,r?Ct(t,r):t),this},n.prototype.selectRange=function(e){var t=this,i={},r=se(e);return E(r,function(a){var o=t._getStoreDimIndex(a);i[o]=e[a]}),this._store=this._store.selectRange(i),this},n.prototype.mapArray=function(e,t,i){Ot(e)&&(i=t,t=e,e=[]),i=i||this;var r=[];return this.each(e,function(){r.push(t&&t.apply(this,arguments))},i),r},n.prototype.map=function(e,t,i,r){var a=i||r||this,o=eo(Rc(e),this._getStoreDimIndex,this),s=Nc(this);return s._store=this._store.map(o,a?Ct(t,a):t),s},n.prototype.modify=function(e,t,i,r){var a=i||r||this,o=eo(Rc(e),this._getStoreDimIndex,this);this._store.modify(o,a?Ct(t,a):t)},n.prototype.downSample=function(e,t,i,r){var a=Nc(this);return a._store=this._store.downSample(this._getStoreDimIndex(e),t,i,r),a},n.prototype.minmaxDownSample=function(e,t){var i=Nc(this);return i._store=this._store.minmaxDownSample(this._getStoreDimIndex(e),t),i},n.prototype.lttbDownSample=function(e,t){var i=Nc(this);return i._store=this._store.lttbDownSample(this._getStoreDimIndex(e),t),i},n.prototype.getRawDataItem=function(e){return this._store.getRawDataItem(e)},n.prototype.getItemModel=function(e){var t=this.hostModel,i=this.getRawDataItem(e);return new Ce(i,t,t&&t.ecModel)},n.prototype.diff=function(e){var t=this;return new pa(e?e.getStore().getIndices():[],this.getStore().getIndices(),function(i){return Bd(e,i)},function(i){return Bd(t,i)})},n.prototype.getVisual=function(e){var t=this._visual;return t&&t[e]},n.prototype.setVisual=function(e,t){this._visual=this._visual||{},Dc(e)?lt(this._visual,e):this._visual[e]=t},n.prototype.getItemVisual=function(e,t){var i=this._itemVisuals[e],r=i&&i[t];return r??this.getVisual(t)},n.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},n.prototype.ensureUniqueItemVisual=function(e,t){var i=this._itemVisuals,r=i[e];r||(r=i[e]={});var a=r[t];return a==null&&(a=this.getVisual(t),ht(a)?a=a.slice():Dc(a)&&(a=lt({},a)),r[t]=a),a},n.prototype.setItemVisual=function(e,t,i){var r=this._itemVisuals[e]||{};this._itemVisuals[e]=r,Dc(t)?lt(r,t):r[t]=i},n.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},n.prototype.setLayout=function(e,t){Dc(e)?lt(this._layout,e):this._layout[e]=t},n.prototype.getLayout=function(e){return this._layout[e]},n.prototype.getItemLayout=function(e){return this._itemLayouts[e]},n.prototype.setItemLayout=function(e,t,i){this._itemLayouts[e]=i?lt(this._itemLayouts[e]||{},t):t},n.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},n.prototype.setItemGraphicEl=function(e,t){var i=this.hostModel&&this.hostModel.seriesIndex;My(i,this.dataType,e,t),this._graphicEls[e]=t},n.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},n.prototype.eachItemGraphicEl=function(e,t){E(this._graphicEls,function(i,r){i&&e&&e.call(t,i,r)})},n.prototype.cloneShallow=function(e){return e||(e=new n(this._schema?this._schema:eo(this.dimensions,this._getDimInfo,this),this.hostModel)),qm(e,this),e._store=this._store,e},n.prototype.wrapMethod=function(e,t){var i=this[e];Ot(i)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var r=i.apply(this,arguments);return t.apply(this,[r].concat(rv(arguments)))})},n.internalField=function(){xT=function(e){var t=e._invertedIndicesMap;E(t,function(i,r){var a=e._dimInfos[r],o=a.ordinalMeta,s=e._store;if(o){i=t[r]=new k8(o.categories.length);for(var l=0;l<i.length;l++)i[l]=_T;for(var l=0;l<s.count();l++)i[s.get(a.storeDimIndex,l)]=l}})},Pc=function(e,t,i){return ln(e._getCategory(t,i),null)},Bd=function(e,t){var i=e._idList[t];return i==null&&e._idDimIdx!=null&&(i=Pc(e,e._idDimIdx,t)),i==null&&(i=L8+t),i},Rc=function(e){return ht(e)||(e=e!=null?[e]:[]),e},Nc=function(e){var t=new n(e._schema?e._schema:eo(e.dimensions,e._getDimInfo,e),e.hostModel);return qm(t,e),t},qm=function(e,t){E(D8.concat(t.__wrappedMethods||[]),function(i){t.hasOwnProperty(i)&&(e[i]=t[i])}),e.__wrappedMethods=t.__wrappedMethods,E(P8,function(i){e[i]=Wt(t[i])}),e._calculationInfo=lt({},t._calculationInfo)},Km=function(e,t){var i=e._nameList,r=e._idList,a=e._nameDimIdx,o=e._idDimIdx,s=i[t],l=r[t];if(s==null&&a!=null&&(i[t]=s=Pc(e,a,t)),l==null&&o!=null&&(r[t]=l=Pc(e,o,t)),l==null&&s!=null){var u=e._nameRepeatCount,c=u[s]=(u[s]||0)+1;l=s,c>1&&(l+="__ec__"+c),r[t]=l}}}(),n}();function zc(n,e){dm(n)||(n=gm(n)),e=e||{};var t=e.coordDimensions||[],i=e.dimensionsDefine||n.dimensionsDefine||[],r=Dt(),a=[],o=N8(n,t,i,e.dimensionsCount),s=e.canOmitUnusedDimensions&&mT(o),l=i===n.dimensionsDefine,u=l?yT(n):vT(i),c=e.encodeDefine;!c&&e.encodeDefaulter&&(c=e.encodeDefaulter(n,o));for(var h=Dt(c),f=new VM(o),d=0;d<f.length;d++)f[d]=-1;function g(C){var L=f[C];if(L<0){var R=i[C],D=Vt(R)?R:{name:R},N=new Od,k=D.name;k!=null&&u.get(k)!=null&&(N.name=N.displayName=k),D.type!=null&&(N.type=D.type),D.displayName!=null&&(N.displayName=D.displayName);var O=a.length;return f[C]=O,N.storeDimIndex=C,a.push(N),N}return a[L]}if(!s)for(var d=0;d<o;d++)g(d);h.each(function(C,L){var R=De(C).slice();if(R.length===1&&!Tt(R[0])&&R[0]<0){h.set(L,!1);return}var D=h.set(L,[]);E(R,function(N,k){var O=Tt(N)?u.get(N):N;O!=null&&O<o&&(D[k]=O,_(g(O),L,k))})});var y=0;E(t,function(C){var L,R,D,N;if(Tt(C))L=C,N={};else{N=C,L=N.name;var k=N.ordinalMeta;N.ordinalMeta=null,N=lt({},N),N.ordinalMeta=k,R=N.dimsDef,D=N.otherDims,N.name=N.coordDim=N.coordDimIndex=N.dimsDef=N.otherDims=null}var O=h.get(L);if(O!==!1){if(O=De(O),!O.length)for(var F=0;F<(R&&R.length||1);F++){for(;y<o&&g(y).coordDim!=null;)y++;y<o&&O.push(y++)}E(O,function(G,q){var j=g(G);if(l&&N.type!=null&&(j.type=N.type),_(Bt(j,N),L,q),j.name==null&&R){var J=R[q];!Vt(J)&&(J={name:J}),j.name=j.displayName=J.name,j.defaultTooltip=J.defaultTooltip}D&&Bt(j.otherDims,D)})}});function _(C,L,R){tM.get(L)!=null?C.otherDims[L]=R:(C.coordDim=L,C.coordDimIndex=R,r.set(L,!0))}var v=e.generateCoord,p=e.generateCoordCount,x=p!=null;p=v?p||1:0;var b=v||"value";function S(C){C.name==null&&(C.name=C.coordDim)}if(s)E(a,function(C){S(C)}),a.sort(function(C,L){return C.storeDimIndex-L.storeDimIndex});else for(var M=0;M<o;M++){var I=g(M),A=I.coordDim;A==null&&(I.coordDim=z8(b,r,x),I.coordDimIndex=0,(!v||p<=0)&&(I.isExtraCoord=!0),p--),S(I),I.type==null&&(rM(n,M)===Ln.Must||I.isExtraCoord&&(I.otherDims.itemName!=null||I.otherDims.seriesName!=null))&&(I.type="ordinal")}return R8(a),new fT({source:n,dimensions:a,fullDimensionCount:o,dimensionOmitted:s})}function R8(n){for(var e=Dt(),t=0;t<n.length;t++){var i=n[t],r=i.name,a=e.get(r)||0;a>0&&(i.name=r+(a-1)),a++,e.set(r,a)}}function N8(n,e,t,i){var r=Math.max(n.dimensionsDetectedCount||1,e.length,t.length,i||0);return E(e,function(a){var o;Vt(a)&&(o=a.dimsDef)&&(r=Math.max(r,o.length))}),r}function z8(n,e,t){if(t||e.hasKey(n)){for(var i=0;e.hasKey(n+i);)i++;n+=i}return e.set(n,!0),n}var E8=function(){function n(e){this.coordSysDims=[],this.axisMap=Dt(),this.categoryAxisMap=Dt(),this.coordSysName=e}return n}();function O8(n){var e=n.get("coordinateSystem"),t=new E8(e),i=B8[e];if(i)return i(n,t,t.axisMap,t.categoryAxisMap),t}var B8={cartesian2d:function(n,e,t,i){var r=n.getReferringComponents("xAxis",en).models[0],a=n.getReferringComponents("yAxis",en).models[0];e.coordSysDims=["x","y"],t.set("x",r),t.set("y",a),zl(r)&&(i.set("x",r),e.firstCategoryDimIndex=0),zl(a)&&(i.set("y",a),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},singleAxis:function(n,e,t,i){var r=n.getReferringComponents("singleAxis",en).models[0];e.coordSysDims=["single"],t.set("single",r),zl(r)&&(i.set("single",r),e.firstCategoryDimIndex=0)},polar:function(n,e,t,i){var r=n.getReferringComponents("polar",en).models[0],a=r.findAxisModel("radiusAxis"),o=r.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],t.set("radius",a),t.set("angle",o),zl(a)&&(i.set("radius",a),e.firstCategoryDimIndex=0),zl(o)&&(i.set("angle",o),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},geo:function(n,e,t,i){e.coordSysDims=["lng","lat"]},parallel:function(n,e,t,i){var r=n.ecModel,a=r.getComponent("parallel",n.get("parallelIndex")),o=e.coordSysDims=a.dimensions.slice();E(a.parallelAxisIndex,function(s,l){var u=r.getComponent("parallelAxis",s),c=o[l];t.set(c,u),zl(u)&&(i.set(c,u),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=l))})}};function zl(n){return n.get("type")==="category"}function V8(n,e,t){t=t||{};var i=t.byIndex,r=t.stackedCoordDimension,a,o,s;F8(e)?a=e:(o=e.schema,a=o.dimensions,s=e.store);var l=!!(n&&n.get("stack")),u,c,h,f;if(E(a,function(p,x){Tt(p)&&(a[x]=p={name:p}),l&&!p.isExtraCoord&&(!i&&!u&&p.ordinalMeta&&(u=p),!c&&p.type!=="ordinal"&&p.type!=="time"&&(!r||r===p.coordDim)&&(c=p))}),c&&!i&&!u&&(i=!0),c){h="__\0ecstackresult_"+n.id,f="__\0ecstackedover_"+n.id,u&&(u.createInvertedIndices=!0);var d=c.coordDim,g=c.type,y=0;E(a,function(p){p.coordDim===d&&y++});var _={name:h,coordDim:d,coordDimIndex:y,type:g,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length},v={name:f,coordDim:f,coordDimIndex:y+1,type:g,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length+1};o?(s&&(_.storeDimIndex=s.ensureCalculationDimension(f,g),v.storeDimIndex=s.ensureCalculationDimension(h,g)),o.appendCalculationDimension(_),o.appendCalculationDimension(v)):(a.push(_),a.push(v))}return{stackedDimension:c&&c.name,stackedByDimension:u&&u.name,isStackedByIndex:i,stackedOverDimension:f,stackResultDimension:h}}function F8(n){return!gT(n.schema)}function no(n,e){return!!e&&e===n.getCalculationInfo("stackedDimension")}function bT(n,e){return no(n,e)?n.getCalculationInfo("stackResultDimension"):e}function W8(n,e){var t=n.get("coordinateSystem"),i=vc.get(t),r;return e&&e.coordSysDims&&(r=pt(e.coordSysDims,function(a){var o={name:a},s=e.axisMap.get(a);if(s){var l=s.get("type");o.type=Ed(l)}return o})),r||(r=i&&(i.getDimensionsInfo?i.getDimensionsInfo():i.dimensions.slice())||["x","y"]),r}function G8(n,e,t){var i,r;return t&&E(n,function(a,o){var s=a.coordDim,l=t.categoryAxisMap.get(s);l&&(i==null&&(i=o),a.ordinalMeta=l.getOrdinalMeta(),e&&(a.createInvertedIndices=!0)),a.otherDims.itemName!=null&&(r=!0)}),!r&&i!=null&&(n[i].otherDims.itemName=0),i}function da(n,e,t){t=t||{};var i=e.getSourceManager(),r,a=!1;n?(a=!0,r=gm(n)):(r=i.getSource(),a=r.sourceFormat===Oi);var o=O8(e),s=W8(e,o),l=t.useEncodeDefaulter,u=Ot(l)?l:l?Zt(iM,s,e):null,c={coordDimensions:s,generateCoord:t.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!a},h=zc(r,c),f=G8(h.dimensions,t.createInvertedIndices,o),d=a?null:i.getSharedDataStore(h),g=V8(e,{schema:h,store:d}),y=new Jn(h,e);y.setCalculationInfo(g);var _=f!=null&&j8(r)?function(v,p,x,b){return b===f?x:this.defaultDimValueGetter(v,p,x,b)}:null;return y.hasItemOption=!1,y.initData(a?r:d,null,_),y}function j8(n){if(n.sourceFormat===Oi){var e=H8(n.data||[]);return!ht(ol(e))}}function H8(n){for(var e=0;e<n.length&&n[e]==null;)e++;return n[e]}var Br=function(){function n(e){this._setting=e||{},this._extent=[1/0,-1/0]}return n.prototype.getSetting=function(e){return this._setting[e]},n.prototype.unionExtent=function(e){var t=this._extent;e[0]<t[0]&&(t[0]=e[0]),e[1]>t[1]&&(t[1]=e[1])},n.prototype.unionExtentFromData=function(e,t){this.unionExtent(e.getApproximateExtent(t))},n.prototype.getExtent=function(){return this._extent.slice()},n.prototype.setExtent=function(e,t){var i=this._extent;isNaN(e)||(i[0]=e),isNaN(t)||(i[1]=t)},n.prototype.isInExtentRange=function(e){return this._extent[0]<=e&&this._extent[1]>=e},n.prototype.isBlank=function(){return this._isBlank},n.prototype.setBlank=function(e){this._isBlank=e},n}();Dp(Br);var U8=0,Ym=function(){function n(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++U8}return n.createByAxisModel=function(e){var t=e.option,i=t.data,r=i&&pt(i,X8);return new n({categories:r,needCollect:!r,deduplication:t.dedplication!==!1})},n.prototype.getOrdinal=function(e){return this._getOrCreateMap().get(e)},n.prototype.parseAndCollect=function(e){var t,i=this._needCollect;if(!Tt(e)&&!i)return e;if(i&&!this._deduplication)return t=this.categories.length,this.categories[t]=e,t;var r=this._getOrCreateMap();return t=r.get(e),t==null&&(i?(t=this.categories.length,this.categories[t]=e,r.set(e,t)):t=NaN),t},n.prototype._getOrCreateMap=function(){return this._map||(this._map=Dt(this.categories))},n}();function X8(n){return Vt(n)&&n.value!=null?n.value:n+""}function Jm(n){return n.type==="interval"||n.type==="log"}function Z8(n,e,t,i){var r={},a=n[1]-n[0],o=r.interval=Jw(a/e);t!=null&&o<t&&(o=r.interval=t),i!=null&&o>i&&(o=r.interval=i);var s=r.intervalPrecision=wT(o),l=r.niceTickExtent=[qe(Math.ceil(n[0]/o)*o,s),qe(Math.floor(n[1]/o)*o,s)];return q8(l,n),r}function $m(n){var e=Math.pow(10,ey(n)),t=n/e;return t?t===2?t=3:t===3?t=5:t*=2:t=1,qe(t*e)}function wT(n){return Ar(n)+2}function ST(n,e,t){n[e]=Math.max(Math.min(n[e],t[1]),t[0])}function q8(n,e){!isFinite(n[0])&&(n[0]=e[0]),!isFinite(n[1])&&(n[1]=e[1]),ST(n,0,e),ST(n,1,e),n[0]>n[1]&&(n[0]=n[1])}function Vd(n,e){return n>=e[0]&&n<=e[1]}function Fd(n,e){return e[1]===e[0]?.5:(n-e[0])/(e[1]-e[0])}function Wd(n,e){return n*(e[1]-e[0])+e[0]}var Gd=function(n){Q(e,n);function e(t){var i=n.call(this,t)||this;i.type="ordinal";var r=i.getSetting("ordinalMeta");return r||(r=new Ym({})),ht(r)&&(r=new Ym({categories:pt(r,function(a){return Vt(a)?a.value:a})})),i._ordinalMeta=r,i._extent=i.getSetting("extent")||[0,r.categories.length-1],i}return e.prototype.parse=function(t){return t==null?NaN:Tt(t)?this._ordinalMeta.getOrdinal(t):Math.round(t)},e.prototype.contain=function(t){return t=this.parse(t),Vd(t,this._extent)&&this._ordinalMeta.categories[t]!=null},e.prototype.normalize=function(t){return t=this._getTickNumber(this.parse(t)),Fd(t,this._extent)},e.prototype.scale=function(t){return t=Math.round(Wd(t,this._extent)),this.getRawOrdinalNumber(t)},e.prototype.getTicks=function(){for(var t=[],i=this._extent,r=i[0];r<=i[1];)t.push({value:r}),r++;return t},e.prototype.getMinorTicks=function(t){},e.prototype.setSortInfo=function(t){if(t==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var i=t.ordinalNumbers,r=this._ordinalNumbersByTick=[],a=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,l=Math.min(s,i.length);o<l;++o){var u=i[o];r[o]=u,a[u]=o}for(var c=0;o<s;++o){for(;a[c]!=null;)c++;r.push(c),a[c]=o}},e.prototype._getTickNumber=function(t){var i=this._ticksByOrdinalNumber;return i&&t>=0&&t<i.length?i[t]:t},e.prototype.getRawOrdinalNumber=function(t){var i=this._ordinalNumbersByTick;return i&&t>=0&&t<i.length?i[t]:t},e.prototype.getLabel=function(t){if(!this.isBlank()){var i=this.getRawOrdinalNumber(t.value),r=this._ordinalMeta.categories[i];return r==null?"":r+""}},e.prototype.count=function(){return this._extent[1]-this._extent[0]+1},e.prototype.unionExtentFromData=function(t,i){this.unionExtent(t.getApproximateExtent(i))},e.prototype.isInExtentRange=function(t){return t=this._getTickNumber(t),this._extent[0]<=t&&this._extent[1]>=t},e.prototype.getOrdinalMeta=function(){return this._ordinalMeta},e.prototype.calcNiceTicks=function(){},e.prototype.calcNiceExtent=function(){},e.type="ordinal",e}(Br);Br.registerClass(Gd);var vs=qe,fa=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type="interval",t._interval=0,t._intervalPrecision=2,t}return e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return Vd(t,this._extent)},e.prototype.normalize=function(t){return Fd(t,this._extent)},e.prototype.scale=function(t){return Wd(t,this._extent)},e.prototype.setExtent=function(t,i){var r=this._extent;isNaN(t)||(r[0]=parseFloat(t)),isNaN(i)||(r[1]=parseFloat(i))},e.prototype.unionExtent=function(t){var i=this._extent;t[0]<i[0]&&(i[0]=t[0]),t[1]>i[1]&&(i[1]=t[1]),this.setExtent(i[0],i[1])},e.prototype.getInterval=function(){return this._interval},e.prototype.setInterval=function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=wT(t)},e.prototype.getTicks=function(t){var i=this._interval,r=this._extent,a=this._niceExtent,o=this._intervalPrecision,s=[];if(!i)return s;var l=1e4;r[0]<a[0]&&(t?s.push({value:vs(a[0]-i,o)}):s.push({value:r[0]}));for(var u=a[0];u<=a[1]&&(s.push({value:u}),u=vs(u+i,o),u!==s[s.length-1].value);)if(s.length>l)return[];var c=s.length?s[s.length-1].value:a[1];return r[1]>c&&(t?s.push({value:vs(c+i,o)}):s.push({value:r[1]})),s},e.prototype.getMinorTicks=function(t){for(var i=this.getTicks(!0),r=[],a=this.getExtent(),o=1;o<i.length;o++){for(var s=i[o],l=i[o-1],u=0,c=[],h=s.value-l.value,f=h/t;u<t-1;){var d=vs(l.value+(u+1)*f);d>a[0]&&d<a[1]&&c.push(d),u++}r.push(c)}return r},e.prototype.getLabel=function(t,i){if(t==null)return"";var r=i&&i.precision;r==null?r=Ar(t.value)||0:r==="auto"&&(r=this._intervalPrecision);var a=vs(t.value,r,!0);return ZS(a)},e.prototype.calcNiceTicks=function(t,i,r){t=t||5;var a=this._extent,o=a[1]-a[0];if(isFinite(o)){o<0&&(o=-o,a.reverse());var s=Z8(a,t,i,r);this._intervalPrecision=s.intervalPrecision,this._interval=s.interval,this._niceExtent=s.niceTickExtent}},e.prototype.calcNiceExtent=function(t){var i=this._extent;if(i[0]===i[1])if(i[0]!==0){var r=Math.abs(i[0]);t.fixMax||(i[1]+=r/2),i[0]-=r/2}else i[1]=1;var a=i[1]-i[0];isFinite(a)||(i[0]=0,i[1]=1),this.calcNiceTicks(t.splitNumber,t.minInterval,t.maxInterval);var o=this._interval;t.fixMin||(i[0]=vs(Math.floor(i[0]/o)*o)),t.fixMax||(i[1]=vs(Math.ceil(i[1]/o)*o))},e.prototype.setNiceExtent=function(t,i){this._niceExtent=[t,i]},e.type="interval",e}(Br);Br.registerClass(fa);var MT=typeof Float32Array<"u",K8=MT?Float32Array:Array;function Vr(n){return ht(n)?MT?new Float32Array(n):n:new K8(n)}var Qm="__ec_stack_";function IT(n){return n.get("stack")||Qm+n.seriesIndex}function t0(n){return n.dim+n.index}function Y8(n){var e=[],t=n.axis,i="axis0";if(t.type==="category"){for(var r=t.getBandWidth(),a=0;a<n.count;a++)e.push(Bt({bandWidth:r,axisKey:i,stackId:Qm+a},n));for(var o=CT(e),s=[],a=0;a<n.count;a++){var l=o[i][Qm+a];l.offsetCenter=l.offset+l.width/2,s.push(l)}return s}}function TT(n,e){var t=[];return e.eachSeriesByType(n,function(i){DT(i)&&t.push(i)}),t}function J8(n){var e={};E(n,function(l){var u=l.coordinateSystem,c=u.getBaseAxis();if(!(c.type!=="time"&&c.type!=="value"))for(var h=l.getData(),f=c.dim+"_"+c.index,d=h.getDimensionIndex(h.mapDimension(c.dim)),g=h.getStore(),y=0,_=g.count();y<_;++y){var v=g.get(d,y);e[f]?e[f].push(v):e[f]=[v]}});var t={};for(var i in e)if(e.hasOwnProperty(i)){var r=e[i];if(r){r.sort(function(l,u){return l-u});for(var a=null,o=1;o<r.length;++o){var s=r[o]-r[o-1];s>0&&(a=a===null?s:Math.min(a,s))}t[i]=a}}return t}function AT(n){var e=J8(n),t=[];return E(n,function(i){var r=i.coordinateSystem,a=r.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=e[l],c=Math.abs(o[1]-o[0]),h=a.scale.getExtent(),f=Math.abs(h[1]-h[0]);s=u?c/f*u:c}else{var d=i.getData();s=Math.abs(o[1]-o[0])/d.count()}var g=Mt(i.get("barWidth"),s),y=Mt(i.get("barMaxWidth"),s),_=Mt(i.get("barMinWidth")||(PT(i)?.5:1),s),v=i.get("barGap"),p=i.get("barCategoryGap");t.push({bandWidth:s,barWidth:g,barMaxWidth:y,barMinWidth:_,barGap:v,barCategoryGap:p,axisKey:t0(a),stackId:IT(i)})}),CT(t)}function CT(n){var e={};E(n,function(i,r){var a=i.axisKey,o=i.bandWidth,s=e[a]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},l=s.stacks;e[a]=s;var u=i.stackId;l[u]||s.autoWidthCount++,l[u]=l[u]||{width:0,maxWidth:0};var c=i.barWidth;c&&!l[u].width&&(l[u].width=c,c=Math.min(s.remainedWidth,c),s.remainedWidth-=c);var h=i.barMaxWidth;h&&(l[u].maxWidth=h);var f=i.barMinWidth;f&&(l[u].minWidth=f);var d=i.barGap;d!=null&&(s.gap=d);var g=i.barCategoryGap;g!=null&&(s.categoryGap=g)});var t={};return E(e,function(i,r){t[r]={};var a=i.stacks,o=i.bandWidth,s=i.categoryGap;if(s==null){var l=se(a).length;s=Math.max(35-l*4,15)+"%"}var u=Mt(s,o),c=Mt(i.gap,1),h=i.remainedWidth,f=i.autoWidthCount,d=(h-u)/(f+(f-1)*c);d=Math.max(d,0),E(a,function(v){var p=v.maxWidth,x=v.minWidth;if(v.width){var b=v.width;p&&(b=Math.min(b,p)),x&&(b=Math.max(b,x)),v.width=b,h-=b+c*b,f--}else{var b=d;p&&p<b&&(b=Math.min(p,h)),x&&x>b&&(b=x),b!==d&&(v.width=b,h-=b+c*b,f--)}}),d=(h-u)/(f+(f-1)*c),d=Math.max(d,0);var g=0,y;E(a,function(v,p){v.width||(v.width=d),y=v,g+=v.width*(1+c)}),y&&(g-=y.width*c);var _=-g/2;E(a,function(v,p){t[r][p]=t[r][p]||{bandWidth:o,offset:_,width:v.width},_+=v.width*(1+c)})}),t}function $8(n,e,t){if(n&&e){var i=n[t0(e)];return i}}function kT(n,e){var t=TT(n,e),i=AT(t);E(t,function(r){var a=r.getData(),o=r.coordinateSystem,s=o.getBaseAxis(),l=IT(r),u=i[t0(s)][l],c=u.offset,h=u.width;a.setLayout({bandWidth:u.bandWidth,offset:c,size:h})})}function LT(n){return{seriesType:n,plan:Cl(),reset:function(e){if(DT(e)){var t=e.getData(),i=e.coordinateSystem,r=i.getBaseAxis(),a=i.getOtherAxis(r),o=t.getDimensionIndex(t.mapDimension(a.dim)),s=t.getDimensionIndex(t.mapDimension(r.dim)),l=e.get("showBackground",!0),u=t.mapDimension(a.dim),c=t.getCalculationInfo("stackResultDimension"),h=no(t,u)&&!!t.getCalculationInfo("stackedOnSeries"),f=a.isHorizontal(),d=Q8(r,a),g=PT(e),y=e.get("barMinHeight")||0,_=c&&t.getDimensionIndex(c),v=t.getLayout("size"),p=t.getLayout("offset");return{progress:function(x,b){for(var S=x.count,M=g&&Vr(S*3),I=g&&l&&Vr(S*3),A=g&&Vr(S),C=i.master.getRect(),L=f?C.width:C.height,R,D=b.getStore(),N=0;(R=x.next())!=null;){var k=D.get(h?_:o,R),O=D.get(s,R),F=d,G=void 0;h&&(G=+k-D.get(o,R));var q=void 0,j=void 0,J=void 0,H=void 0;if(f){var K=i.dataToPoint([k,O]);if(h){var ut=i.dataToPoint([G,O]);F=ut[0]}q=F,j=K[1]+p,J=K[0]-F,H=v,Math.abs(J)<y&&(J=(J<0?-1:1)*y)}else{var K=i.dataToPoint([O,k]);if(h){var ut=i.dataToPoint([O,G]);F=ut[1]}q=K[0]+p,j=F,J=v,H=K[1]-F,Math.abs(H)<y&&(H=(H<=0?-1:1)*y)}g?(M[N]=q,M[N+1]=j,M[N+2]=f?J:H,I&&(I[N]=f?C.x:q,I[N+1]=f?j:C.y,I[N+2]=L),A[R]=R):b.setItemLayout(R,{x:q,y:j,width:J,height:H}),N+=3}g&&b.setLayout({largePoints:M,largeDataIndices:A,largeBackgroundPoints:I,valueAxisHorizontal:f})}}}}}}function DT(n){return n.coordinateSystem&&n.coordinateSystem.type==="cartesian2d"}function PT(n){return n.pipelineContext&&n.pipelineContext.large}function Q8(n,e){var t=e.model.get("startValue");return t||(t=0),e.toGlobalCoord(e.dataToCoord(e.type==="log"?t>0?t:1:t))}var tF=function(n,e,t,i){for(;t<i;){var r=t+i>>>1;n[r][1]<e?t=r+1:i=r}return t},e0=function(n){Q(e,n);function e(t){var i=n.call(this,t)||this;return i.type="time",i}return e.prototype.getLabel=function(t){var i=this.getSetting("useUTC");return ld(t.value,OS[N4(_l(this._minLevelUnit))]||OS.second,i,this.getSetting("locale"))},e.prototype.getFormattedLabel=function(t,i,r){var a=this.getSetting("useUTC"),o=this.getSetting("locale");return z4(t,i,r,o,a)},e.prototype.getTicks=function(){var t=this._interval,i=this._extent,r=[];if(!t)return r;r.push({value:i[0],level:0});var a=this.getSetting("useUTC"),o=sF(this._minLevelUnit,this._approxInterval,a,i);return r=r.concat(o),r.push({value:i[1],level:0}),r},e.prototype.calcNiceExtent=function(t){var i=this._extent;if(i[0]===i[1]&&(i[0]-=Ei,i[1]+=Ei),i[1]===-1/0&&i[0]===1/0){var r=new Date;i[1]=+new Date(r.getFullYear(),r.getMonth(),r.getDate()),i[0]=i[1]-Ei}this.calcNiceTicks(t.splitNumber,t.minInterval,t.maxInterval)},e.prototype.calcNiceTicks=function(t,i,r){t=t||10;var a=this._extent,o=a[1]-a[0];this._approxInterval=o/t,i!=null&&this._approxInterval<i&&(this._approxInterval=i),r!=null&&this._approxInterval>r&&(this._approxInterval=r);var s=jd.length,l=Math.min(tF(jd,this._approxInterval,0,s),s-1);this._interval=jd[l][1],this._minLevelUnit=jd[Math.max(l-1,0)][0]},e.prototype.parse=function(t){return ve(t)?t:+Cr(t)},e.prototype.contain=function(t){return Vd(this.parse(t),this._extent)},e.prototype.normalize=function(t){return Fd(this.parse(t),this._extent)},e.prototype.scale=function(t){return Wd(t,this._extent)},e.type="time",e}(fa),jd=[["second",Jy],["minute",$y],["hour",hc],["quarter-day",hc*6],["half-day",hc*12],["day",Ei*1.2],["half-week",Ei*3.5],["week",Ei*7],["month",Ei*31],["quarter",Ei*95],["half-year",ES/2],["year",ES]];function eF(n,e,t,i){var r=Cr(e),a=Cr(t),o=function(g){return FS(r,g,i)===FS(a,g,i)},s=function(){return o("year")},l=function(){return s()&&o("month")},u=function(){return l()&&o("day")},c=function(){return u()&&o("hour")},h=function(){return c()&&o("minute")},f=function(){return h()&&o("second")},d=function(){return f()&&o("millisecond")};switch(n){case"year":return s();case"month":return l();case"day":return u();case"hour":return c();case"minute":return h();case"second":return f();case"millisecond":return d()}}function nF(n,e){return n/=Ei,n>16?16:n>7.5?7:n>3.5?4:n>1.5?2:1}function iF(n){var e=30*Ei;return n/=e,n>6?6:n>3?3:n>2?2:1}function rF(n){return n/=hc,n>12?12:n>6?6:n>3.5?4:n>2?2:1}function RT(n,e){return n/=e?$y:Jy,n>30?30:n>20?20:n>15?15:n>10?10:n>5?5:n>2?2:1}function aF(n){return Jw(n)}function oF(n,e,t){var i=new Date(n);switch(_l(e)){case"year":case"month":i[WS(t)](0);case"day":i[GS(t)](1);case"hour":i[jS(t)](0);case"minute":i[HS(t)](0);case"second":i[US(t)](0),i[XS(t)](0)}return i.getTime()}function sF(n,e,t,i){var r=1e4,a=BS,o=0;function s(L,R,D,N,k,O,F){for(var G=new Date(R),q=R,j=G[N]();q<D&&q<=i[1];)F.push({value:q}),j+=L,G[k](j),q=G.getTime();F.push({value:q,notAdd:!0})}function l(L,R,D){var N=[],k=!R.length;if(!eF(_l(L),i[0],i[1],t)){k&&(R=[{value:oF(new Date(i[0]),L,t)},{value:i[1]}]);for(var O=0;O<R.length-1;O++){var F=R[O].value,G=R[O+1].value;if(F!==G){var q=void 0,j=void 0,J=void 0,H=!1;switch(L){case"year":q=Math.max(1,Math.round(e/Ei/365)),j=tm(t),J=E4(t);break;case"half-year":case"quarter":case"month":q=iF(e),j=xl(t),J=WS(t);break;case"week":case"half-week":case"day":q=nF(e),j=ud(t),J=GS(t),H=!0;break;case"half-day":case"quarter-day":case"hour":q=rF(e),j=dc(t),J=jS(t);break;case"minute":q=RT(e,!0),j=cd(t),J=HS(t);break;case"second":q=RT(e,!1),j=hd(t),J=US(t);break;case"millisecond":q=aF(e),j=pd(t),J=XS(t);break}s(q,F,G,j,J,H,N),L==="year"&&D.length>1&&O===0&&D.unshift({value:D[0].value-q})}}for(var O=0;O<N.length;O++)D.push(N[O]);return N}}for(var u=[],c=[],h=0,f=0,d=0;d<a.length&&o++<r;++d){var g=_l(a[d]);if(R4(a[d])){l(a[d],u[u.length-1]||[],c);var y=a[d+1]?_l(a[d+1]):null;if(g!==y){if(c.length){f=h,c.sort(function(L,R){return L.value-R.value});for(var _=[],v=0;v<c.length;++v){var p=c[v].value;(v===0||c[v-1].value!==p)&&(_.push(c[v]),p>=i[0]&&p<=i[1]&&h++)}var x=(i[1]-i[0])/e;if(h>x*1.5&&f>x/1.5||(u.push(_),h>x||n===a[d]))break}c=[]}}}for(var b=Se(pt(u,function(R){return Se(R,function(D){return D.value>=i[0]&&D.value<=i[1]&&!D.notAdd})}),function(R){return R.length>0}),S=[],M=b.length-1,d=0;d<b.length;++d)for(var I=b[d],A=0;A<I.length;++A)S.push({value:I[A].value,level:M-d});S.sort(function(L,R){return L.value-R.value});for(var C=[],d=0;d<S.length;++d)(d===0||S[d].value!==S[d-1].value)&&C.push(S[d]);return C}Br.registerClass(e0);var NT=Br.prototype,Ec=fa.prototype,lF=qe,uF=Math.floor,cF=Math.ceil,Hd=Math.pow,pr=Math.log,n0=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type="log",t.base=10,t._originalScale=new fa,t._interval=0,t}return e.prototype.getTicks=function(t){var i=this._originalScale,r=this._extent,a=i.getExtent(),o=Ec.getTicks.call(this,t);return pt(o,function(s){var l=s.value,u=qe(Hd(this.base,l));return u=l===r[0]&&this._fixMin?Ud(u,a[0]):u,u=l===r[1]&&this._fixMax?Ud(u,a[1]):u,{value:u}},this)},e.prototype.setExtent=function(t,i){var r=pr(this.base);t=pr(Math.max(0,t))/r,i=pr(Math.max(0,i))/r,Ec.setExtent.call(this,t,i)},e.prototype.getExtent=function(){var t=this.base,i=NT.getExtent.call(this);i[0]=Hd(t,i[0]),i[1]=Hd(t,i[1]);var r=this._originalScale,a=r.getExtent();return this._fixMin&&(i[0]=Ud(i[0],a[0])),this._fixMax&&(i[1]=Ud(i[1],a[1])),i},e.prototype.unionExtent=function(t){this._originalScale.unionExtent(t);var i=this.base;t[0]=pr(t[0])/pr(i),t[1]=pr(t[1])/pr(i),NT.unionExtent.call(this,t)},e.prototype.unionExtentFromData=function(t,i){this.unionExtent(t.getApproximateExtent(i))},e.prototype.calcNiceTicks=function(t){t=t||10;var i=this._extent,r=i[1]-i[0];if(!(r===1/0||r<=0)){var a=dO(r),o=t/r*a;for(o<=.5&&(a*=10);!isNaN(a)&&Math.abs(a)<1&&Math.abs(a)>0;)a*=10;var s=[qe(cF(i[0]/a)*a),qe(uF(i[1]/a)*a)];this._interval=a,this._niceExtent=s}},e.prototype.calcNiceExtent=function(t){Ec.calcNiceExtent.call(this,t),this._fixMin=t.fixMin,this._fixMax=t.fixMax},e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return t=pr(t)/pr(this.base),Vd(t,this._extent)},e.prototype.normalize=function(t){return t=pr(t)/pr(this.base),Fd(t,this._extent)},e.prototype.scale=function(t){return t=Wd(t,this._extent),Hd(this.base,t)},e.type="log",e}(Br),zT=n0.prototype;zT.getMinorTicks=Ec.getMinorTicks,zT.getLabel=Ec.getLabel;function Ud(n,e){return lF(n,Ar(e))}Br.registerClass(n0);var hF=function(){function n(e,t,i){this._prepareParams(e,t,i)}return n.prototype._prepareParams=function(e,t,i){i[1]<i[0]&&(i=[NaN,NaN]),this._dataMin=i[0],this._dataMax=i[1];var r=this._isOrdinal=e.type==="ordinal";this._needCrossZero=e.type==="interval"&&t.getNeedCrossZero&&t.getNeedCrossZero();var a=t.get("min",!0);a==null&&(a=t.get("startValue",!0));var o=this._modelMinRaw=a;Ot(o)?this._modelMinNum=Xd(e,o({min:i[0],max:i[1]})):o!=="dataMin"&&(this._modelMinNum=Xd(e,o));var s=this._modelMaxRaw=t.get("max",!0);if(Ot(s)?this._modelMaxNum=Xd(e,s({min:i[0],max:i[1]})):s!=="dataMax"&&(this._modelMaxNum=Xd(e,s)),r)this._axisDataLen=t.getCategories().length;else{var l=t.get("boundaryGap"),u=ht(l)?l:[l||0,l||0];typeof u[0]=="boolean"||typeof u[1]=="boolean"?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[ar(u[0],1),ar(u[1],1)]}},n.prototype.calculate=function(){var e=this._isOrdinal,t=this._dataMin,i=this._dataMax,r=this._axisDataLen,a=this._boundaryGapInner,o=e?null:i-t||Math.abs(t),s=this._modelMinRaw==="dataMin"?t:this._modelMinNum,l=this._modelMaxRaw==="dataMax"?i:this._modelMaxNum,u=s!=null,c=l!=null;s==null&&(s=e?r?0:NaN:t-a[0]*o),l==null&&(l=e?r?r-1:NaN:i+a[1]*o),(s==null||!isFinite(s))&&(s=NaN),(l==null||!isFinite(l))&&(l=NaN);var h=Mu(s)||Mu(l)||e&&!r;this._needCrossZero&&(s>0&&l>0&&!u&&(s=0),s<0&&l<0&&!c&&(l=0));var f=this._determinedMin,d=this._determinedMax;return f!=null&&(s=f,u=!0),d!=null&&(l=d,c=!0),{min:s,max:l,minFixed:u,maxFixed:c,isBlank:h}},n.prototype.modifyDataMinMax=function(e,t){this[dF[e]]=t},n.prototype.setDeterminedMinMax=function(e,t){var i=pF[e];this[i]=t},n.prototype.freeze=function(){this.frozen=!0},n}(),pF={min:"_determinedMin",max:"_determinedMax"},dF={min:"_dataMin",max:"_dataMax"};function ET(n,e,t){var i=n.rawExtentInfo;return i||(i=new hF(n,e,t),n.rawExtentInfo=i,i)}function Xd(n,e){return e==null?null:Mu(e)?NaN:n.parse(e)}function OT(n,e){var t=n.type,i=ET(n,e,n.getExtent()).calculate();n.setBlank(i.isBlank);var r=i.min,a=i.max,o=e.ecModel;if(o&&t==="time"){var s=TT("bar",o),l=!1;if(E(s,function(h){l=l||h.getBaseAxis()===e.axis}),l){var u=AT(s),c=fF(r,a,e,u);r=c.min,a=c.max}}return{extent:[r,a],fixMin:i.minFixed,fixMax:i.maxFixed}}function fF(n,e,t,i){var r=t.axis.getExtent(),a=Math.abs(r[1]-r[0]),o=$8(i,t.axis);if(o===void 0)return{min:n,max:e};var s=1/0;E(o,function(d){s=Math.min(d.offset,s)});var l=-1/0;E(o,function(d){l=Math.max(d.offset+d.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,c=e-n,h=1-(s+l)/a,f=c/h-c;return e+=f*(l/u),n-=f*(s/u),{min:n,max:e}}function El(n,e){var t=e,i=OT(n,t),r=i.extent,a=t.get("splitNumber");n instanceof n0&&(n.base=t.get("logBase"));var o=n.type,s=t.get("interval"),l=o==="interval"||o==="time";n.setExtent(r[0],r[1]),n.calcNiceExtent({splitNumber:a,fixMin:i.fixMin,fixMax:i.fixMax,minInterval:l?t.get("minInterval"):null,maxInterval:l?t.get("maxInterval"):null}),s!=null&&n.setInterval&&n.setInterval(s)}function Zd(n,e){if(e=e||n.get("type"),e)switch(e){case"category":return new Gd({ordinalMeta:n.getOrdinalMeta?n.getOrdinalMeta():n.getCategories(),extent:[1/0,-1/0]});case"time":return new e0({locale:n.ecModel.getLocaleModel(),useUTC:n.ecModel.get("useUTC")});default:return new(Br.getClass(e)||fa)}}function gF(n){var e=n.scale.getExtent(),t=e[0],i=e[1];return!(t>0&&i>0||t<0&&i<0)}function Ol(n){var e=n.getLabelModel().get("formatter"),t=n.type==="category"?n.scale.getExtent()[0]:null;return n.scale.type==="time"?function(i){return function(r,a){return n.scale.getFormattedLabel(r,a,i)}}(e):Tt(e)?function(i){return function(r){var a=n.scale.getLabel(r),o=i.replace("{value}",a??"");return o}}(e):Ot(e)?function(i){return function(r,a){return t!=null&&(a=r.value-t),i(i0(n,r),a,r.level!=null?{level:r.level}:null)}}(e):function(i){return n.scale.getLabel(i)}}function i0(n,e){return n.type==="category"?n.scale.getLabel(e):e.value}function vF(n){var e=n.model,t=n.scale;if(!(!e.get(["axisLabel","show"])||t.isBlank())){var i,r,a=t.getExtent();t instanceof Gd?r=t.count():(i=t.getTicks(),r=i.length);var o=n.getLabelModel(),s=Ol(n),l,u=1;r>40&&(u=Math.ceil(r/40));for(var c=0;c<r;c+=u){var h=i?i[c]:{value:a[0]+c},f=s(h,c),d=o.getTextRect(f),g=yF(d,o.get("rotate")||0);l?l.union(g):l=g}return l}}function yF(n,e){var t=e*Math.PI/180,i=n.width,r=n.height,a=i*Math.abs(Math.cos(t))+Math.abs(r*Math.sin(t)),o=i*Math.abs(Math.sin(t))+Math.abs(r*Math.cos(t)),s=new $t(n.x,n.y,a,o);return s}function r0(n){var e=n.get("interval");return e??"auto"}function BT(n){return n.type==="category"&&r0(n.getLabelModel())===0}function qd(n,e){var t={};return E(n.mapDimensionsAll(e),function(i){t[bT(n,i)]=!0}),se(t)}function mF(n,e,t){e&&E(qd(e,t),function(i){var r=e.getApproximateExtent(i);r[0]<n[0]&&(n[0]=r[0]),r[1]>n[1]&&(n[1]=r[1])})}var Oc=function(){function n(){}return n.prototype.getNeedCrossZero=function(){var e=this.option;return!e.scale},n.prototype.getCoordSysModel=function(){},n}(),_F=1e-8;function VT(n,e){return Math.abs(n-e)<_F}function ys(n,e,t){var i=0,r=n[0];if(!r)return!1;for(var a=1;a<n.length;a++){var o=n[a];i+=oa(r[0],r[1],o[0],o[1],e,t),r=o}var s=n[0];return(!VT(r[0],s[0])||!VT(r[1],s[1]))&&(i+=oa(r[0],r[1],s[0],s[1],e,t)),i!==0}var xF=[];function a0(n,e){for(var t=0;t<n.length;t++)An(n[t],n[t],e)}function FT(n,e,t,i){for(var r=0;r<n.length;r++){var a=n[r];i&&(a=i.project(a)),a&&isFinite(a[0])&&isFinite(a[1])&&(za(e,e,a),Ea(t,t,a))}}function bF(n){for(var e=0,t=0,i=0,r=n.length,a=n[r-1][0],o=n[r-1][1],s=0;s<r;s++){var l=n[s][0],u=n[s][1],c=a*u-l*o;e+=c,t+=(a+l)*c,i+=(o+u)*c,a=l,o=u}return e?[t/e/3,i/e/3,e]:[n[0][0]||0,n[0][1]||0]}var WT=function(){function n(e){this.name=e}return n.prototype.setCenter=function(e){this._center=e},n.prototype.getCenter=function(){var e=this._center;return e||(e=this._center=this.calcCenter()),e},n}(),GT=function(){function n(e,t){this.type="polygon",this.exterior=e,this.interiors=t}return n}(),jT=function(){function n(e){this.type="linestring",this.points=e}return n}(),HT=function(n){Q(e,n);function e(t,i,r){var a=n.call(this,t)||this;return a.type="geoJSON",a.geometries=i,a._center=r&&[r[0],r[1]],a}return e.prototype.calcCenter=function(){for(var t=this.geometries,i,r=0,a=0;a<t.length;a++){var o=t[a],s=o.exterior,l=s&&s.length;l>r&&(i=o,r=l)}if(i)return bF(i.exterior);var u=this.getBoundingRect();return[u.x+u.width/2,u.y+u.height/2]},e.prototype.getBoundingRect=function(t){var i=this._rect;if(i&&!t)return i;var r=[1/0,1/0],a=[-1/0,-1/0],o=this.geometries;return E(o,function(s){s.type==="polygon"?FT(s.exterior,r,a,t):E(s.points,function(l){FT(l,r,a,t)})}),isFinite(r[0])&&isFinite(r[1])&&isFinite(a[0])&&isFinite(a[1])||(r[0]=r[1]=a[0]=a[1]=0),i=new $t(r[0],r[1],a[0]-r[0],a[1]-r[1]),t||(this._rect=i),i},e.prototype.contain=function(t){var i=this.getBoundingRect(),r=this.geometries;if(!i.contain(t[0],t[1]))return!1;t:for(var a=0,o=r.length;a<o;a++){var s=r[a];if(s.type==="polygon"){var l=s.exterior,u=s.interiors;if(ys(l,t[0],t[1])){for(var c=0;c<(u?u.length:0);c++)if(ys(u[c],t[0],t[1]))continue t;return!0}}}return!1},e.prototype.transformTo=function(t,i,r,a){var o=this.getBoundingRect(),s=o.width/o.height;r?a||(a=r/s):r=s*a;for(var l=new $t(t,i,r,a),u=o.calculateTransform(l),c=this.geometries,h=0;h<c.length;h++){var f=c[h];f.type==="polygon"?(a0(f.exterior,u),E(f.interiors,function(d){a0(d,u)})):E(f.points,function(d){a0(d,u)})}o=this._rect,o.copy(l),this._center=[o.x+o.width/2,o.y+o.height/2]},e.prototype.cloneShallow=function(t){t==null&&(t=this.name);var i=new e(t,this.geometries,this._center);return i._rect=this._rect,i.transformTo=null,i},e}(WT),wF=function(n){Q(e,n);function e(t,i){var r=n.call(this,t)||this;return r.type="geoSVG",r._elOnlyForCalculate=i,r}return e.prototype.calcCenter=function(){for(var t=this._elOnlyForCalculate,i=t.getBoundingRect(),r=[i.x+i.width/2,i.y+i.height/2],a=ap(xF),o=t;o&&!o.isGeoSVGGraphicRoot;)ta(a,o.getLocalTransform(),a),o=o.parent;return Qs(a,a),An(r,r,a),r},e}(WT);function SF(n){if(!n.UTF8Encoding)return n;var e=n,t=e.UTF8Scale;t==null&&(t=1024);var i=e.features;return E(i,function(r){var a=r.geometry,o=a.encodeOffsets,s=a.coordinates;if(o)switch(a.type){case"LineString":a.coordinates=UT(s,o,t);break;case"Polygon":o0(s,o,t);break;case"MultiLineString":o0(s,o,t);break;case"MultiPolygon":E(s,function(l,u){return o0(l,o[u],t)})}}),e.UTF8Encoding=!1,e}function o0(n,e,t){for(var i=0;i<n.length;i++)n[i]=UT(n[i],e[i],t)}function UT(n,e,t){for(var i=[],r=e[0],a=e[1],o=0;o<n.length;o+=2){var s=n.charCodeAt(o)-64,l=n.charCodeAt(o+1)-64;s=s>>1^-(s&1),l=l>>1^-(l&1),s+=r,l+=a,r=s,a=l,i.push([s/t,l/t])}return i}function MF(n,e){return n=SF(n),pt(Se(n.features,function(t){return t.geometry&&t.properties&&t.geometry.coordinates.length>0}),function(t){var i=t.properties,r=t.geometry,a=[];switch(r.type){case"Polygon":var o=r.coordinates;a.push(new GT(o[0],o.slice(1)));break;case"MultiPolygon":E(r.coordinates,function(l){l[0]&&a.push(new GT(l[0],l.slice(1)))});break;case"LineString":a.push(new jT([r.coordinates]));break;case"MultiLineString":a.push(new jT(r.coordinates))}var s=new HT(i[e||"name"],a,i.cp);return s.properties=i,s})}var Bc=pe();function XT(n,e){var t=pt(e,function(i){return n.scale.parse(i)});return n.type==="time"&&t.length>0&&(t.sort(),t.unshift(t[0]),t.push(t[t.length-1])),t}function IF(n){var e=n.getLabelModel().get("customValues");if(e){var t=Ol(n),i=n.scale.getExtent(),r=XT(n,e),a=Se(r,function(o){return o>=i[0]&&o<=i[1]});return{labels:pt(a,function(o){var s={value:o};return{formattedLabel:t(s),rawLabel:n.scale.getLabel(s),tickValue:o}})}}return n.type==="category"?AF(n):kF(n)}function TF(n,e){var t=n.getTickModel().get("customValues");if(t){var i=n.scale.getExtent(),r=XT(n,t);return{ticks:Se(r,function(a){return a>=i[0]&&a<=i[1]})}}return n.type==="category"?CF(n,e):{ticks:pt(n.scale.getTicks(),function(a){return a.value})}}function AF(n){var e=n.getLabelModel(),t=ZT(n,e);return!e.get("show")||n.scale.isBlank()?{labels:[],labelCategoryInterval:t.labelCategoryInterval}:t}function ZT(n,e){var t=qT(n,"labels"),i=r0(e),r=KT(t,i);if(r)return r;var a,o;return Ot(i)?a=$T(n,i):(o=i==="auto"?LF(n):i,a=JT(n,o)),YT(t,i,{labels:a,labelCategoryInterval:o})}function CF(n,e){var t=qT(n,"ticks"),i=r0(e),r=KT(t,i);if(r)return r;var a,o;if((!e.get("show")||n.scale.isBlank())&&(a=[]),Ot(i))a=$T(n,i,!0);else if(i==="auto"){var s=ZT(n,n.getLabelModel());o=s.labelCategoryInterval,a=pt(s.labels,function(l){return l.tickValue})}else o=i,a=JT(n,o,!0);return YT(t,i,{ticks:a,tickCategoryInterval:o})}function kF(n){var e=n.scale.getTicks(),t=Ol(n);return{labels:pt(e,function(i,r){return{level:i.level,formattedLabel:t(i,r),rawLabel:n.scale.getLabel(i),tickValue:i.value}})}}function qT(n,e){return Bc(n)[e]||(Bc(n)[e]=[])}function KT(n,e){for(var t=0;t<n.length;t++)if(n[t].key===e)return n[t].value}function YT(n,e,t){return n.push({key:e,value:t}),t}function LF(n){var e=Bc(n).autoInterval;return e??(Bc(n).autoInterval=n.calculateCategoryInterval())}function DF(n){var e=PF(n),t=Ol(n),i=(e.axisRotate-e.labelRotate)/180*Math.PI,r=n.scale,a=r.getExtent(),o=r.count();if(a[1]-a[0]<1)return 0;var s=1;o>40&&(s=Math.max(1,Math.floor(o/40)));for(var l=a[0],u=n.dataToCoord(l+1)-n.dataToCoord(l),c=Math.abs(u*Math.cos(i)),h=Math.abs(u*Math.sin(i)),f=0,d=0;l<=a[1];l+=s){var g=0,y=0,_=Wu(t({value:l}),e.font,"center","top");g=_.width*1.3,y=_.height*1.3,f=Math.max(f,g,7),d=Math.max(d,y,7)}var v=f/c,p=d/h;isNaN(v)&&(v=1/0),isNaN(p)&&(p=1/0);var x=Math.max(0,Math.floor(Math.min(v,p))),b=Bc(n.model),S=n.getExtent(),M=b.lastAutoInterval,I=b.lastTickCount;return M!=null&&I!=null&&Math.abs(M-x)<=1&&Math.abs(I-o)<=1&&M>x&&b.axisExtent0===S[0]&&b.axisExtent1===S[1]?x=M:(b.lastTickCount=o,b.lastAutoInterval=x,b.axisExtent0=S[0],b.axisExtent1=S[1]),x}function PF(n){var e=n.getLabelModel();return{axisRotate:n.getRotate?n.getRotate():n.isHorizontal&&!n.isHorizontal()?90:0,labelRotate:e.get("rotate")||0,font:e.getFont()}}function JT(n,e,t){var i=Ol(n),r=n.scale,a=r.getExtent(),o=n.getLabelModel(),s=[],l=Math.max((e||0)+1,1),u=a[0],c=r.count();u!==0&&l>1&&c/l>2&&(u=Math.round(Math.ceil(u/l)*l));var h=BT(n),f=o.get("showMinLabel")||h,d=o.get("showMaxLabel")||h;f&&u!==a[0]&&y(a[0]);for(var g=u;g<=a[1];g+=l)y(g);d&&g-l!==a[1]&&y(a[1]);function y(_){var v={value:_};s.push(t?_:{formattedLabel:i(v),rawLabel:r.getLabel(v),tickValue:_})}return s}function $T(n,e,t){var i=n.scale,r=Ol(n),a=[];return E(i.getTicks(),function(o){var s=i.getLabel(o),l=o.value;e(o.value,s)&&a.push(t?l:{formattedLabel:r(o),rawLabel:s,tickValue:l})}),a}var QT=[0,1],dr=function(){function n(e,t,i){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=t,this._extent=i||[0,0]}return n.prototype.contain=function(e){var t=this._extent,i=Math.min(t[0],t[1]),r=Math.max(t[0],t[1]);return e>=i&&e<=r},n.prototype.containData=function(e){return this.scale.contain(e)},n.prototype.getExtent=function(){return this._extent.slice()},n.prototype.getPixelPrecision=function(e){return qw(e||this.scale.getExtent(),this._extent)},n.prototype.setExtent=function(e,t){var i=this._extent;i[0]=e,i[1]=t},n.prototype.dataToCoord=function(e,t){var i=this._extent,r=this.scale;return e=r.normalize(e),this.onBand&&r.type==="ordinal"&&(i=i.slice(),tA(i,r.count())),Ae(e,QT,i,t)},n.prototype.coordToData=function(e,t){var i=this._extent,r=this.scale;this.onBand&&r.type==="ordinal"&&(i=i.slice(),tA(i,r.count()));var a=Ae(e,i,QT,t);return this.scale.scale(a)},n.prototype.pointToData=function(e,t){},n.prototype.getTicksCoords=function(e){e=e||{};var t=e.tickModel||this.getTickModel(),i=TF(this,t),r=i.ticks,a=pt(r,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=t.get("alignWithLabel");return RF(this,a,o,e.clamp),a},n.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var e=this.model.getModel("minorTick"),t=e.get("splitNumber");t>0&&t<100||(t=5);var i=this.scale.getMinorTicks(t),r=pt(i,function(a){return pt(a,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return r},n.prototype.getViewLabels=function(){return IF(this).labels},n.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},n.prototype.getTickModel=function(){return this.model.getModel("axisTick")},n.prototype.getBandWidth=function(){var e=this._extent,t=this.scale.getExtent(),i=t[1]-t[0]+(this.onBand?1:0);i===0&&(i=1);var r=Math.abs(e[1]-e[0]);return Math.abs(r)/i},n.prototype.calculateCategoryInterval=function(){return DF(this)},n}();function tA(n,e){var t=n[1]-n[0],i=e,r=t/i/2;n[0]+=r,n[1]-=r}function RF(n,e,t,i){var r=e.length;if(!n.onBand||t||!r)return;var a=n.getExtent(),o,s;if(r===1)e[0].coord=a[0],o=e[1]={coord:a[1],tickValue:e[0].tickValue};else{var l=e[r-1].tickValue-e[0].tickValue,u=(e[r-1].coord-e[0].coord)/l;E(e,function(d){d.coord-=u/2});var c=n.scale.getExtent();s=1+c[1]-e[r-1].tickValue,o={coord:e[r-1].coord+u*s,tickValue:c[1]+1},e.push(o)}var h=a[0]>a[1];f(e[0].coord,a[0])&&(i?e[0].coord=a[0]:e.shift()),i&&f(a[0],e[0].coord)&&e.unshift({coord:a[0]}),f(a[1],o.coord)&&(i?o.coord=a[1]:e.pop()),i&&f(o.coord,a[1])&&e.push({coord:a[1]});function f(d,g){return d=qe(d),g=qe(g),h?d>g:d<g}}var Vc=Math.PI*2,ms=Rr.CMD,NF=["top","right","bottom","left"];function zF(n,e,t,i,r){var a=t.width,o=t.height;switch(n){case"top":i.set(t.x+a/2,t.y-e),r.set(0,-1);break;case"bottom":i.set(t.x+a/2,t.y+o+e),r.set(0,1);break;case"left":i.set(t.x-e,t.y+o/2),r.set(-1,0);break;case"right":i.set(t.x+a+e,t.y+o/2),r.set(1,0);break}}function EF(n,e,t,i,r,a,o,s,l){o-=n,s-=e;var u=Math.sqrt(o*o+s*s);o/=u,s/=u;var c=o*t+n,h=s*t+e;if(Math.abs(i-r)%Vc<1e-4)return l[0]=c,l[1]=h,u-t;if(a){var f=i;i=yi(r),r=yi(f)}else i=yi(i),r=yi(r);i>r&&(r+=Vc);var d=Math.atan2(s,o);if(d<0&&(d+=Vc),d>=i&&d<=r||d+Vc>=i&&d+Vc<=r)return l[0]=c,l[1]=h,u-t;var g=t*Math.cos(i)+n,y=t*Math.sin(i)+e,_=t*Math.cos(r)+n,v=t*Math.sin(r)+e,p=(g-o)*(g-o)+(y-s)*(y-s),x=(_-o)*(_-o)+(v-s)*(v-s);return p<x?(l[0]=g,l[1]=y,Math.sqrt(p)):(l[0]=_,l[1]=v,Math.sqrt(x))}function Kd(n,e,t,i,r,a,o,s){var l=r-n,u=a-e,c=t-n,h=i-e,f=Math.sqrt(c*c+h*h);c/=f,h/=f;var d=l*c+u*h,g=d/f;s&&(g=Math.min(Math.max(g,0),1)),g*=f;var y=o[0]=n+g*c,_=o[1]=e+g*h;return Math.sqrt((y-r)*(y-r)+(_-a)*(_-a))}function eA(n,e,t,i,r,a,o){t<0&&(n=n+t,t=-t),i<0&&(e=e+i,i=-i);var s=n+t,l=e+i,u=o[0]=Math.min(Math.max(r,n),s),c=o[1]=Math.min(Math.max(a,e),l);return Math.sqrt((u-r)*(u-r)+(c-a)*(c-a))}var fr=[];function OF(n,e,t){var i=eA(e.x,e.y,e.width,e.height,n.x,n.y,fr);return t.set(fr[0],fr[1]),i}function BF(n,e,t){for(var i=0,r=0,a=0,o=0,s,l,u=1/0,c=e.data,h=n.x,f=n.y,d=0;d<c.length;){var g=c[d++];d===1&&(i=c[d],r=c[d+1],a=i,o=r);var y=u;switch(g){case ms.M:a=c[d++],o=c[d++],i=a,r=o;break;case ms.L:y=Kd(i,r,c[d],c[d+1],h,f,fr,!0),i=c[d++],r=c[d++];break;case ms.C:y=mw(i,r,c[d++],c[d++],c[d++],c[d++],c[d],c[d+1],h,f,fr),i=c[d++],r=c[d++];break;case ms.Q:y=xw(i,r,c[d++],c[d++],c[d],c[d+1],h,f,fr),i=c[d++],r=c[d++];break;case ms.A:var _=c[d++],v=c[d++],p=c[d++],x=c[d++],b=c[d++],S=c[d++];d+=1;var M=!!(1-c[d++]);s=Math.cos(b)*p+_,l=Math.sin(b)*x+v,d<=1&&(a=s,o=l);var I=(h-_)*x/p+_;y=EF(_,v,x,b,b+S,M,I,f,fr),i=Math.cos(b+S)*p+_,r=Math.sin(b+S)*x+v;break;case ms.R:a=i=c[d++],o=r=c[d++];var A=c[d++],C=c[d++];y=eA(a,o,A,C,h,f,fr);break;case ms.Z:y=Kd(i,r,a,o,h,f,fr,!0),i=a,r=o;break}y<u&&(u=y,t.set(fr[0],fr[1]))}return u}var gr=new Jt,Be=new Jt,$e=new Jt,Fr=new Jt,Wr=new Jt;function nA(n,e){if(n){var t=n.getTextGuideLine(),i=n.getTextContent();if(i&&t){var r=n.textGuideLineConfig||{},a=[[0,0],[0,0],[0,0]],o=r.candidates||NF,s=i.getBoundingRect().clone();s.applyTransform(i.getComputedTransform());var l=1/0,u=r.anchor,c=n.getComputedTransform(),h=c&&Qs([],c),f=e.get("length2")||0;u&&$e.copy(u);for(var d=0;d<o.length;d++){var g=o[d];zF(g,0,s,gr,Fr),Jt.scaleAndAdd(Be,gr,Fr,f),Be.transform(h);var y=n.getBoundingRect(),_=u?u.distance(Be):n instanceof re?BF(Be,n.path,$e):OF(Be,y,$e);_<l&&(l=_,Be.transform(c),$e.transform(c),$e.toArray(a[0]),Be.toArray(a[1]),gr.toArray(a[2]))}iA(a,e.get("minTurnAngle")),t.setShape({points:a})}}}var Yd=[],$n=new Jt;function iA(n,e){if(e<=180&&e>0){e=e/180*Math.PI,gr.fromArray(n[0]),Be.fromArray(n[1]),$e.fromArray(n[2]),Jt.sub(Fr,gr,Be),Jt.sub(Wr,$e,Be);var t=Fr.len(),i=Wr.len();if(!(t<.001||i<.001)){Fr.scale(1/t),Wr.scale(1/i);var r=Fr.dot(Wr),a=Math.cos(e);if(a<r){var o=Kd(Be.x,Be.y,$e.x,$e.y,gr.x,gr.y,Yd,!1);$n.fromArray(Yd),$n.scaleAndAdd(Wr,o/Math.tan(Math.PI-e));var s=$e.x!==Be.x?($n.x-Be.x)/($e.x-Be.x):($n.y-Be.y)/($e.y-Be.y);if(isNaN(s))return;s<0?Jt.copy($n,Be):s>1&&Jt.copy($n,$e),$n.toArray(n[1])}}}}function VF(n,e,t){if(t<=180&&t>0){t=t/180*Math.PI,gr.fromArray(n[0]),Be.fromArray(n[1]),$e.fromArray(n[2]),Jt.sub(Fr,Be,gr),Jt.sub(Wr,$e,Be);var i=Fr.len(),r=Wr.len();if(!(i<.001||r<.001)){Fr.scale(1/i),Wr.scale(1/r);var a=Fr.dot(e),o=Math.cos(t);if(a<o){var s=Kd(Be.x,Be.y,$e.x,$e.y,gr.x,gr.y,Yd,!1);$n.fromArray(Yd);var l=Math.PI/2,u=Math.acos(Wr.dot(e)),c=l+u-t;if(c>=l)Jt.copy($n,$e);else{$n.scaleAndAdd(Wr,s/Math.tan(Math.PI/2-c));var h=$e.x!==Be.x?($n.x-Be.x)/($e.x-Be.x):($n.y-Be.y)/($e.y-Be.y);if(isNaN(h))return;h<0?Jt.copy($n,Be):h>1&&Jt.copy($n,$e)}$n.toArray(n[1])}}}}function s0(n,e,t,i){var r=t==="normal",a=r?n:n.ensureState(t);a.ignore=e;var o=i.get("smooth");o&&o===!0&&(o=.3),a.shape=a.shape||{},o>0&&(a.shape.smooth=o);var s=i.getModel("lineStyle").getLineStyle();r?n.useStyle(s):a.style=s}function FF(n,e){var t=e.smooth,i=e.points;if(i)if(n.moveTo(i[0][0],i[0][1]),t>0&&i.length>=3){var r=Na(i[0],i[1]),a=Na(i[1],i[2]);if(!r||!a){n.lineTo(i[1][0],i[1][1]),n.lineTo(i[2][0],i[2][1]);return}var o=Math.min(r,a)*t,s=rp([],i[1],i[0],o/r),l=rp([],i[1],i[2],o/a),u=rp([],s,l,.5);n.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),n.bezierCurveTo(l[0],l[1],l[0],l[1],i[2][0],i[2][1])}else for(var c=1;c<i.length;c++)n.lineTo(i[c][0],i[c][1])}function l0(n,e,t){var i=n.getTextGuideLine(),r=n.getTextContent();if(!r){i&&n.removeTextGuideLine();return}for(var a=e.normal,o=a.get("show"),s=r.ignore,l=0;l<Ju.length;l++){var u=Ju[l],c=e[u],h=u==="normal";if(c){var f=c.get("show"),d=h?s:Ut(r.states[u]&&r.states[u].ignore,s);if(d||!Ut(f,o)){var g=h?i:i&&i.states[u];g&&(g.ignore=!0),i&&s0(i,!0,u,c);continue}i||(i=new Yn,n.setTextGuideLine(i),!h&&(s||!o)&&s0(i,!0,"normal",e.normal),n.stateProxy&&(i.stateProxy=n.stateProxy)),s0(i,!1,u,c)}}if(i){Bt(i.style,t),i.style.fill=null;var y=a.get("showAbove"),_=n.textGuideLineConfig=n.textGuideLineConfig||{};_.showAbove=y||!1,i.buildPath=FF}}function u0(n,e){e=e||"labelLine";for(var t={normal:n.getModel(e)},i=0;i<Zn.length;i++){var r=Zn[i];t[r]=n.getModel([r,e])}return t}function rA(n){for(var e=[],t=0;t<n.length;t++){var i=n[t];if(!i.defaultAttr.ignore){var r=i.label,a=r.getComputedTransform(),o=r.getBoundingRect(),s=!a||a[1]<1e-5&&a[2]<1e-5,l=r.style.margin||0,u=o.clone();u.applyTransform(a),u.x-=l/2,u.y-=l/2,u.width+=l,u.height+=l;var c=s?new Jp(o,a):null;e.push({label:r,labelLine:i.labelLine,rect:u,localRect:o,obb:c,priority:i.priority,defaultAttr:i.defaultAttr,layoutOption:i.computedLayoutOption,axisAligned:s,transform:a})}}return e}function aA(n,e,t,i,r,a){var o=n.length;if(o<2)return;n.sort(function(M,I){return M.rect[e]-I.rect[e]});for(var s=0,l,u=!1,c=0;c<o;c++){var h=n[c],f=h.rect;l=f[e]-s,l<0&&(f[e]-=l,h.label[e]-=l,u=!0),s=f[e]+f[t]}var d=n[0],g=n[o-1],y,_;v(),y<0&&b(-y,.8),_<0&&b(_,.8),v(),p(y,_,1),p(_,y,-1),v(),y<0&&S(-y),_<0&&S(_);function v(){y=d.rect[e]-i,_=r-g.rect[e]-g.rect[t]}function p(M,I,A){if(M<0){var C=Math.min(I,-M);if(C>0){x(C*A,0,o);var L=C+M;L<0&&b(-L*A,1)}else b(-M*A,1)}}function x(M,I,A){M!==0&&(u=!0);for(var C=I;C<A;C++){var L=n[C],R=L.rect;R[e]+=M,L.label[e]+=M}}function b(M,I){for(var A=[],C=0,L=1;L<o;L++){var R=n[L-1].rect,D=Math.max(n[L].rect[e]-R[e]-R[t],0);A.push(D),C+=D}if(C){var N=Math.min(Math.abs(M)/C,I);if(M>0)for(var L=0;L<o-1;L++){var k=A[L]*N;x(k,0,L+1)}else for(var L=o-1;L>0;L--){var k=A[L-1]*N;x(-k,L,o)}}}function S(M){var I=M<0?-1:1;M=Math.abs(M);for(var A=Math.ceil(M/(o-1)),C=0;C<o-1;C++)if(I>0?x(A,0,C+1):x(-A,o-C-1,o),M-=A,M<=0)return}return u}function WF(n,e,t,i){return aA(n,"x","width",e,t)}function oA(n,e,t,i){return aA(n,"y","height",e,t)}function sA(n){var e=[];n.sort(function(y,_){return _.priority-y.priority});var t=new $t(0,0,0,0);function i(y){if(!y.ignore){var _=y.ensureState("emphasis");_.ignore==null&&(_.ignore=!1)}y.ignore=!0}for(var r=0;r<n.length;r++){var a=n[r],o=a.axisAligned,s=a.localRect,l=a.transform,u=a.label,c=a.labelLine;t.copy(a.rect),t.width-=.1,t.height-=.1,t.x+=.05,t.y+=.05;for(var h=a.obb,f=!1,d=0;d<e.length;d++){var g=e[d];if(t.intersect(g.rect)){if(o&&g.axisAligned){f=!0;break}if(g.obb||(g.obb=new Jp(g.localRect,g.transform)),h||(h=new Jp(s,l)),h.intersect(g.obb)){f=!0;break}}}f?(i(u),c&&i(c)):(u.attr("ignore",a.defaultAttr.ignore),c&&c.attr("ignore",a.defaultAttr.labelGuideIgnore),e.push(a))}}function GF(n){if(n){for(var e=[],t=0;t<n.length;t++)e.push(n[t].slice());return e}}function jF(n,e){var t=n.label,i=e&&e.getTextGuideLine();return{dataIndex:n.dataIndex,dataType:n.dataType,seriesIndex:n.seriesModel.seriesIndex,text:n.label.style.text,rect:n.hostRect,labelRect:n.rect,align:t.style.align,verticalAlign:t.style.verticalAlign,labelLinePoints:GF(i&&i.shape.points)}}var lA=["align","verticalAlign","width","height","fontSize"],Qn=new ia,c0=pe(),HF=pe();function Jd(n,e,t){for(var i=0;i<t.length;i++){var r=t[i];e[r]!=null&&(n[r]=e[r])}}var $d=["x","y","rotation"],UF=function(){function n(){this._labelList=[],this._chartViewList=[]}return n.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},n.prototype._addLabel=function(e,t,i,r,a){var o=r.style,s=r.__hostTarget,l=s.textConfig||{},u=r.getComputedTransform(),c=r.getBoundingRect().plain();$t.applyTransform(c,c,u),u?Qn.setLocalTransform(u):(Qn.x=Qn.y=Qn.rotation=Qn.originX=Qn.originY=0,Qn.scaleX=Qn.scaleY=1),Qn.rotation=yi(Qn.rotation);var h=r.__hostTarget,f;if(h){f=h.getBoundingRect().plain();var d=h.getComputedTransform();$t.applyTransform(f,f,d)}var g=f&&h.getTextGuideLine();this._labelList.push({label:r,labelLine:g,seriesModel:i,dataIndex:e,dataType:t,layoutOption:a,computedLayoutOption:null,rect:c,hostRect:f,priority:f?f.width*f.height:0,defaultAttr:{ignore:r.ignore,labelGuideIgnore:g&&g.ignore,x:Qn.x,y:Qn.y,scaleX:Qn.scaleX,scaleY:Qn.scaleY,rotation:Qn.rotation,style:{x:o.x,y:o.y,align:o.align,verticalAlign:o.verticalAlign,width:o.width,height:o.height,fontSize:o.fontSize},cursor:r.cursor,attachedPos:l.position,attachedRot:l.rotation}})},n.prototype.addLabelsOfSeries=function(e){var t=this;this._chartViewList.push(e);var i=e.__model,r=i.get("labelLayout");(Ot(r)||se(r).length)&&e.group.traverse(function(a){if(a.ignore)return!0;var o=a.getTextContent(),s=jt(a);o&&!o.disableLabelLayout&&t._addLabel(s.dataIndex,s.dataType,i,o,r)})},n.prototype.updateLayoutConfig=function(e){var t=e.getWidth(),i=e.getHeight();function r(x,b){return function(){nA(x,b)}}for(var a=0;a<this._labelList.length;a++){var o=this._labelList[a],s=o.label,l=s.__hostTarget,u=o.defaultAttr,c=void 0;Ot(o.layoutOption)?c=o.layoutOption(jF(o,l)):c=o.layoutOption,c=c||{},o.computedLayoutOption=c;var h=Math.PI/180;l&&l.setTextConfig({local:!1,position:c.x!=null||c.y!=null?null:u.attachedPos,rotation:c.rotate!=null?c.rotate*h:u.attachedRot,offset:[c.dx||0,c.dy||0]});var f=!1;if(c.x!=null?(s.x=Mt(c.x,t),s.setStyle("x",0),f=!0):(s.x=u.x,s.setStyle("x",u.style.x)),c.y!=null?(s.y=Mt(c.y,i),s.setStyle("y",0),f=!0):(s.y=u.y,s.setStyle("y",u.style.y)),c.labelLinePoints){var d=l.getTextGuideLine();d&&(d.setShape({points:c.labelLinePoints}),f=!1)}var g=c0(s);g.needsUpdateLabelLine=f,s.rotation=c.rotate!=null?c.rotate*h:u.rotation,s.scaleX=u.scaleX,s.scaleY=u.scaleY;for(var y=0;y<lA.length;y++){var _=lA[y];s.setStyle(_,c[_]!=null?c[_]:u.style[_])}if(c.draggable){if(s.draggable=!0,s.cursor="move",l){var v=o.seriesModel;if(o.dataIndex!=null){var p=o.seriesModel.getData(o.dataType);v=p.getItemModel(o.dataIndex)}s.on("drag",r(l,v.getModel("labelLine")))}}else s.off("drag"),s.cursor=u.cursor}},n.prototype.layout=function(e){var t=e.getWidth(),i=e.getHeight(),r=rA(this._labelList),a=Se(r,function(l){return l.layoutOption.moveOverlap==="shiftX"}),o=Se(r,function(l){return l.layoutOption.moveOverlap==="shiftY"});WF(a,0,t),oA(o,0,i);var s=Se(r,function(l){return l.layoutOption.hideOverlap});sA(s)},n.prototype.processLabelsOverall=function(){var e=this;E(this._chartViewList,function(t){var i=t.__model,r=t.ignoreLabelLineUpdate,a=i.isAnimationEnabled();t.group.traverse(function(o){if(o.ignore&&!o.forceLabelAnimation)return!0;var s=!r,l=o.getTextContent();!s&&l&&(s=c0(l).needsUpdateLabelLine),s&&e._updateLabelLine(o,i),a&&e._animateLabels(o,i)})})},n.prototype._updateLabelLine=function(e,t){var i=e.getTextContent(),r=jt(e),a=r.dataIndex;if(i&&a!=null){var o=t.getData(r.dataType),s=o.getItemModel(a),l={},u=o.getItemVisual(a,"style");if(u){var c=o.getVisual("drawType");l.stroke=u[c]}var h=s.getModel("labelLine");l0(e,u0(s),l),nA(e,h)}},n.prototype._animateLabels=function(e,t){var i=e.getTextContent(),r=e.getTextGuideLine();if(i&&(e.forceLabelAnimation||!i.ignore&&!i.invisible&&!e.disableLabelAnimation&&!fl(e))){var a=c0(i),o=a.oldLayout,s=jt(e),l=s.dataIndex,u={x:i.x,y:i.y,rotation:i.rotation},c=t.getData(s.dataType);if(o){i.attr(o);var h=e.prevStates;h&&(Qt(h,"select")>=0&&i.attr(a.oldLayoutSelect),Qt(h,"emphasis")>=0&&i.attr(a.oldLayoutEmphasis)),me(i,u,t,l)}else if(i.attr(u),!vl(i).valueAnimation){var f=Ut(i.style.opacity,1);i.style.opacity=0,We(i,{style:{opacity:f}},t,l)}if(a.oldLayout=u,i.states.select){var d=a.oldLayoutSelect={};Jd(d,u,$d),Jd(d,i.states.select,$d)}if(i.states.emphasis){var g=a.oldLayoutEmphasis={};Jd(g,u,$d),Jd(g,i.states.emphasis,$d)}DS(i,l,c,t,t)}if(r&&!r.ignore&&!r.invisible){var a=HF(r),o=a.oldLayout,y={points:r.shape.points};o?(r.attr({shape:o}),me(r,{shape:y},t)):(r.setShape(y),r.style.strokePercent=0,We(r,{style:{strokePercent:1}},t)),a.oldLayout=y}},n}(),h0=pe();function XF(n){n.registerUpdateLifecycle("series:beforeupdate",function(e,t,i){var r=h0(t).labelManager;r||(r=h0(t).labelManager=new UF),r.clearLabels()}),n.registerUpdateLifecycle("series:layoutlabels",function(e,t,i){var r=h0(t).labelManager;i.updatedSeries.forEach(function(a){r.addLabelsOfSeries(t.getViewOfSeriesModel(a))}),r.updateLayoutConfig(t),r.layout(t),r.processLabelsOverall()})}var p0=Math.sin,d0=Math.cos,uA=Math.PI,_s=Math.PI*2,ZF=180/uA,cA=function(){function n(){}return n.prototype.reset=function(e){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,e||4)},n.prototype.moveTo=function(e,t){this._add("M",e,t)},n.prototype.lineTo=function(e,t){this._add("L",e,t)},n.prototype.bezierCurveTo=function(e,t,i,r,a,o){this._add("C",e,t,i,r,a,o)},n.prototype.quadraticCurveTo=function(e,t,i,r){this._add("Q",e,t,i,r)},n.prototype.arc=function(e,t,i,r,a,o){this.ellipse(e,t,i,i,0,r,a,o)},n.prototype.ellipse=function(e,t,i,r,a,o,s,l){var u=s-o,c=!l,h=Math.abs(u),f=Wa(h-_s)||(c?u>=_s:-u>=_s),d=u>0?u%_s:u%_s+_s,g=!1;f?g=!0:Wa(h)?g=!1:g=d>=uA==!!c;var y=e+i*d0(o),_=t+r*p0(o);this._start&&this._add("M",y,_);var v=Math.round(a*ZF);if(f){var p=1/this._p,x=(c?1:-1)*(_s-p);this._add("A",i,r,v,1,+c,e+i*d0(o+x),t+r*p0(o+x)),p>.01&&this._add("A",i,r,v,0,+c,y,_)}else{var b=e+i*d0(s),S=t+r*p0(s);this._add("A",i,r,v,+g,+c,b,S)}},n.prototype.rect=function(e,t,i,r){this._add("M",e,t),this._add("l",i,0),this._add("l",0,r),this._add("l",-i,0),this._add("Z")},n.prototype.closePath=function(){this._d.length>0&&this._add("Z")},n.prototype._add=function(e,t,i,r,a,o,s,l,u){for(var c=[],h=this._p,f=1;f<arguments.length;f++){var d=arguments[f];if(isNaN(d)){this._invalid=!0;return}c.push(Math.round(d*h)/h)}this._d.push(e+c.join(" ")),this._start=e==="Z"},n.prototype.generateStr=function(){this._str=this._invalid?"":this._d.join(""),this._d=[]},n.prototype.getStr=function(){return this._str},n}(),f0="none",qF=Math.round;function KF(n){var e=n.fill;return e!=null&&e!==f0}function YF(n){var e=n.stroke;return e!=null&&e!==f0}var g0=["lineCap","miterLimit","lineJoin"],JF=pt(g0,function(n){return"stroke-"+n.toLowerCase()});function $F(n,e,t,i){var r=e.opacity==null?1:e.opacity;if(t instanceof Sn){n("opacity",r);return}if(KF(e)){var a=Ou(e.fill);n("fill",a.color);var o=e.fillOpacity!=null?e.fillOpacity*a.opacity*r:a.opacity*r;o<1&&n("fill-opacity",o)}else n("fill",f0);if(YF(e)){var s=Ou(e.stroke);n("stroke",s.color);var l=e.strokeNoScale?t.getLineScale():1,u=l?(e.lineWidth||0)/l:0,c=e.strokeOpacity!=null?e.strokeOpacity*s.opacity*r:s.opacity*r,h=e.strokeFirst;if(u!==1&&n("stroke-width",u),h&&n("paint-order",h?"stroke":"fill"),c<1&&n("stroke-opacity",c),e.lineDash){var f=km(t),d=f[0],g=f[1];d&&(g=qF(g||0),n("stroke-dasharray",d.join(",")),(g||i)&&n("stroke-dashoffset",g))}for(var y=0;y<g0.length;y++){var _=g0[y];if(e[_]!==Bp[_]){var v=e[_]||Bp[_];v&&n(JF[y],v)}}}}var hA="http://www.w3.org/2000/svg",pA="http://www.w3.org/1999/xlink",QF="http://www.w3.org/2000/xmlns/",tW="http://www.w3.org/XML/1998/namespace",dA="ecmeta_";function fA(n){return document.createElementNS(hA,n)}function yn(n,e,t,i,r){return{tag:n,attrs:t||{},children:i,text:r,key:e}}function eW(n,e){var t=[];if(e)for(var i in e){var r=e[i],a=i;r!==!1&&(r!==!0&&r!=null&&(a+='="'+r+'"'),t.push(a))}return"<"+n+" "+t.join(" ")+">"}function nW(n){return"</"+n+">"}function v0(n,e){e=e||{};var t=e.newline?`
|
|
73
|
+
`:"";function i(r){var a=r.children,o=r.tag,s=r.attrs,l=r.text;return eW(o,s)+(o!=="style"?Un(l):l||"")+(a?""+t+pt(a,function(u){return i(u)}).join(t)+t:"")+nW(o)}return i(n)}function iW(n,e,t){t=t||{};var i=t.newline?`
|
|
74
|
+
`:"",r=" {"+i,a=i+"}",o=pt(se(n),function(l){return l+r+pt(se(n[l]),function(u){return u+":"+n[l][u]+";"}).join(i)+a}).join(i),s=pt(se(e),function(l){return"@keyframes "+l+r+pt(se(e[l]),function(u){return u+r+pt(se(e[l][u]),function(c){var h=e[l][u][c];return c==="d"&&(h='path("'+h+'")'),c+":"+h+";"}).join(i)+a}).join(i)+a}).join(i);return!o&&!s?"":["<![CDATA[",o,s,"]]>"].join(i)}function y0(n){return{zrId:n,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function gA(n,e,t,i){return yn("svg","root",{width:n,height:e,xmlns:hA,"xmlns:xlink":pA,version:"1.1",baseProfile:"full",viewBox:i?"0 0 "+n+" "+e:!1},t)}var rW=0;function vA(){return rW++}var yA={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"},xs="transform-origin";function aW(n,e,t){var i=lt({},n.shape);lt(i,e),n.buildPath(t,i);var r=new cA;return r.reset(kw(n)),t.rebuildPath(r,1),r.generateStr(),r.getStr()}function oW(n,e){var t=e.originX,i=e.originY;(t||i)&&(n[xs]=t+"px "+i+"px")}var sW={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function mA(n,e){var t=e.zrId+"-ani-"+e.cssAnimIdx++;return e.cssAnims[t]=n,t}function lW(n,e,t){var i=n.shape.paths,r={},a,o;if(E(i,function(l){var u=y0(t.zrId);u.animation=!0,Qd(l,{},u,!0);var c=u.cssAnims,h=u.cssNodes,f=se(c),d=f.length;if(d){o=f[d-1];var g=c[o];for(var y in g){var _=g[y];r[y]=r[y]||{d:""},r[y].d+=_.d||""}for(var v in h){var p=h[v].animation;p.indexOf(o)>=0&&(a=p)}}}),!!a){e.d=!1;var s=mA(r,t);return a.replace(o,s)}}function _A(n){return Tt(n)?yA[n]?"cubic-bezier("+yA[n]+")":Mv(n)?n:"":""}function Qd(n,e,t,i){var r=n.animators,a=r.length,o=[];if(n instanceof Vy){var s=lW(n,e,t);if(s)o.push(s);else if(!a)return}else if(!a)return;for(var l={},u=0;u<a;u++){var c=r[u],h=[c.getMaxTime()/1e3+"s"],f=_A(c.getClip().easing),d=c.getDelay();f?h.push(f):h.push("linear"),d&&h.push(d/1e3+"s"),c.getLoop()&&h.push("infinite");var g=h.join(" ");l[g]=l[g]||[g,[]],l[g][1].push(c)}function y(p){var x=p[1],b=x.length,S={},M={},I={},A="animation-timing-function";function C(wt,xt,zt){for(var bt=wt.getTracks(),Pt=wt.getMaxTime(),ae=0;ae<bt.length;ae++){var z=bt[ae];if(z.needsAnimate()){var st=z.keyframes,rt=z.propName;if(zt&&(rt=zt(rt)),rt)for(var Z=0;Z<st.length;Z++){var U=st[Z],tt=Math.round(U.time/Pt*100)+"%",ft=_A(U.easing),gt=U.rawValue;(Tt(gt)||ve(gt))&&(xt[tt]=xt[tt]||{},xt[tt][rt]=U.rawValue,ft&&(xt[tt][A]=ft))}}}}for(var L=0;L<b;L++){var R=x[L],D=R.targetName;D?D==="shape"&&C(R,M):!i&&C(R,S)}for(var N in S){var k={};Ww(k,n),lt(k,S[N]);var O=Lw(k),F=S[N][A];I[N]=O?{transform:O}:{},oW(I[N],k),F&&(I[N][A]=F)}var G,q=!0;for(var N in M){I[N]=I[N]||{};var j=!G,F=M[N][A];j&&(G=new Rr);var J=G.len();G.reset(),I[N].d=aW(n,M[N],G);var H=G.len();if(!j&&J!==H){q=!1;break}F&&(I[N][A]=F)}if(!q)for(var N in I)delete I[N].d;if(!i)for(var L=0;L<b;L++){var R=x[L],D=R.targetName;D==="style"&&C(R,I,function(bt){return sW[bt]})}for(var K=se(I),ut=!0,ot,L=1;L<K.length;L++){var at=K[L-1],Nt=K[L];if(I[at][xs]!==I[Nt][xs]){ut=!1;break}ot=I[at][xs]}if(ut&&ot){for(var N in I)I[N][xs]&&delete I[N][xs];e[xs]=ot}if(Se(K,function(wt){return se(I[wt]).length>0}).length){var Yt=mA(I,t);return Yt+" "+p[0]+" both"}}for(var _ in l){var s=y(l[_]);s&&o.push(s)}if(o.length){var v=t.zrId+"-cls-"+vA();t.cssNodes["."+v]={animation:o.join(",")},e.class=v}}function uW(n,e,t){if(!n.ignore)if(n.isSilent()){var i={"pointer-events":"none"};xA(i,e,t)}else{var r=n.states.emphasis&&n.states.emphasis.style?n.states.emphasis.style:{},a=r.fill;if(!a){var o=n.style&&n.style.fill,s=n.states.select&&n.states.select.style&&n.states.select.style.fill,l=n.currentStates.indexOf("select")>=0&&s||o;l&&(a=Dv(l))}var u=r.lineWidth;if(u){var c=!r.strokeNoScale&&n.transform?n.transform[0]:1;u=u/c}var i={cursor:"pointer"};a&&(i.fill=a),r.stroke&&(i.stroke=r.stroke),u&&(i["stroke-width"]=u),xA(i,e,t)}}function xA(n,e,t,i){var r=JSON.stringify(n),a=t.cssStyleCache[r];a||(a=t.zrId+"-cls-"+vA(),t.cssStyleCache[r]=a,t.cssNodes["."+a+":hover"]=n),e.class=e.class?e.class+" "+a:a}var Fc=Math.round;function bA(n){return n&&Tt(n.src)}function wA(n){return n&&Ot(n.toDataURL)}function m0(n,e,t,i){$F(function(r,a){var o=r==="fill"||r==="stroke";o&&Cw(a)?CA(e,n,r,i):o&&Rv(a)?kA(t,n,r,i):n[r]=a,o&&i.ssr&&a==="none"&&(n["pointer-events"]="visible")},e,t,!1),vW(t,n,i)}function _0(n,e){var t=aO(e);t&&(t.each(function(i,r){i!=null&&(n[(dA+r).toLowerCase()]=i+"")}),e.isSilent()&&(n[dA+"silent"]="true"))}function SA(n){return Wa(n[0]-1)&&Wa(n[1])&&Wa(n[2])&&Wa(n[3]-1)}function cW(n){return Wa(n[4])&&Wa(n[5])}function x0(n,e,t){if(e&&!(cW(e)&&SA(e))){var i=1e4;n.transform=SA(e)?"translate("+Fc(e[4]*i)/i+" "+Fc(e[5]*i)/i+")":AE(e)}}function MA(n,e,t){for(var i=n.points,r=[],a=0;a<i.length;a++)r.push(Fc(i[a][0]*t)/t),r.push(Fc(i[a][1]*t)/t);e.points=r.join(" ")}function IA(n){return!n.smooth}function hW(n){var e=pt(n,function(t){return typeof t=="string"?[t,t]:t});return function(t,i,r){for(var a=0;a<e.length;a++){var o=e[a],s=t[o[0]];s!=null&&(i[o[1]]=Fc(s*r)/r)}}}var pW={circle:[hW(["cx","cy","r"])],polyline:[MA,IA],polygon:[MA,IA]};function dW(n){for(var e=n.animators,t=0;t<e.length;t++)if(e[t].targetName==="shape")return!0;return!1}function TA(n,e){var t=n.style,i=n.shape,r=pW[n.type],a={},o=e.animation,s="path",l=n.style.strokePercent,u=e.compress&&kw(n)||4;if(r&&!e.willUpdate&&!(r[1]&&!r[1](i))&&!(o&&dW(n))&&!(l<1)){s=n.type;var c=Math.pow(10,u);r[0](i,a,c)}else{var h=!n.path||n.shapeChanged();n.path||n.createPathProxy();var f=n.path;h&&(f.beginPath(),n.buildPath(f,n.shape),n.pathUpdated());var d=f.getVersion(),g=n,y=g.__svgPathBuilder;(g.__svgPathVersion!==d||!y||l!==g.__svgPathStrokePercent)&&(y||(y=g.__svgPathBuilder=new cA),y.reset(u),f.rebuildPath(y,l),y.generateStr(),g.__svgPathVersion=d,g.__svgPathStrokePercent=l),a.d=y.getStr()}return x0(a,n.transform),m0(a,t,n,e),_0(a,n),e.animation&&Qd(n,a,e),e.emphasis&&uW(n,a,e),yn(s,n.id+"",a)}function fW(n,e){var t=n.style,i=t.image;if(i&&!Tt(i)&&(bA(i)?i=i.src:wA(i)&&(i=i.toDataURL())),!!i){var r=t.x||0,a=t.y||0,o=t.width,s=t.height,l={href:i,width:o,height:s};return r&&(l.x=r),a&&(l.y=a),x0(l,n.transform),m0(l,t,n,e),_0(l,n),e.animation&&Qd(n,l,e),yn("image",n.id+"",l)}}function gW(n,e){var t=n.style,i=t.text;if(i!=null&&(i+=""),!(!i||isNaN(t.x)||isNaN(t.y))){var r=t.font||Pa,a=t.x||0,o=kE(t.y||0,Ap(r),t.textBaseline),s=CE[t.textAlign]||t.textAlign,l={"dominant-baseline":"central","text-anchor":s};if(P2(t)){var u="",c=t.fontStyle,h=L2(t.fontSize);if(!parseFloat(h))return;var f=t.fontFamily||Wb,d=t.fontWeight;u+="font-size:"+h+";font-family:"+f+";",c&&c!=="normal"&&(u+="font-style:"+c+";"),d&&d!=="normal"&&(u+="font-weight:"+d+";"),l.style=u}else l.style="font: "+r;return i.match(/\s/)&&(l["xml:space"]="preserve"),a&&(l.x=a),o&&(l.y=o),x0(l,n.transform),m0(l,t,n,e),_0(l,n),e.animation&&Qd(n,l,e),yn("text",n.id+"",l,void 0,i)}}function AA(n,e){if(n instanceof re)return TA(n,e);if(n instanceof Sn)return fW(n,e);if(n instanceof sl)return gW(n,e)}function vW(n,e,t){var i=n.style;if(LE(i)){var r=DE(n),a=t.shadowCache,o=a[r];if(!o){var s=n.getGlobalScale(),l=s[0],u=s[1];if(!l||!u)return;var c=i.shadowOffsetX||0,h=i.shadowOffsetY||0,f=i.shadowBlur,d=Ou(i.shadowColor),g=d.opacity,y=d.color,_=f/2/l,v=f/2/u,p=_+" "+v;o=t.zrId+"-s"+t.shadowIdx++,t.defs[o]=yn("filter",o,{id:o,x:"-100%",y:"-100%",width:"300%",height:"300%"},[yn("feDropShadow","",{dx:c/l,dy:h/u,stdDeviation:p,"flood-color":y,"flood-opacity":g})]),a[r]=o}e.filter=_p(o)}}function CA(n,e,t,i){var r=n[t],a,o={gradientUnits:r.global?"userSpaceOnUse":"objectBoundingBox"};if(Tw(r))a="linearGradient",o.x1=r.x,o.y1=r.y,o.x2=r.x2,o.y2=r.y2;else if(Aw(r))a="radialGradient",o.cx=Ut(r.x,.5),o.cy=Ut(r.y,.5),o.r=Ut(r.r,.5);else return;for(var s=r.colorStops,l=[],u=0,c=s.length;u<c;++u){var h=Pv(s[u].offset)*100+"%",f=s[u].color,d=Ou(f),g=d.color,y=d.opacity,_={offset:h};_["stop-color"]=g,y<1&&(_["stop-opacity"]=y),l.push(yn("stop",u+"",_))}var v=yn(a,"",o,l),p=v0(v),x=i.gradientCache,b=x[p];b||(b=i.zrId+"-g"+i.gradientIdx++,x[p]=b,o.id=b,i.defs[b]=yn(a,b,o,l)),e[t]=_p(b)}function kA(n,e,t,i){var r=n.style[t],a=n.getBoundingRect(),o={},s=r.repeat,l=s==="no-repeat",u=s==="repeat-x",c=s==="repeat-y",h;if(Iw(r)){var f=r.imageWidth,d=r.imageHeight,g=void 0,y=r.image;if(Tt(y)?g=y:bA(y)?g=y.src:wA(y)&&(g=y.toDataURL()),typeof Image>"u"){var _="Image width/height must been given explictly in svg-ssr renderer.";jn(f,_),jn(d,_)}else if(f==null||d==null){var v=function(L,R){if(L){var D=L.elm,N=f||R.width,k=d||R.height;L.tag==="pattern"&&(u?(k=1,N/=a.width):c&&(N=1,k/=a.height)),L.attrs.width=N,L.attrs.height=k,D&&(D.setAttribute("width",N),D.setAttribute("height",k))}},p=ly(g,null,n,function(L){l||v(M,L),v(h,L)});p&&p.width&&p.height&&(f=f||p.width,d=d||p.height)}h=yn("image","img",{href:g,width:f,height:d}),o.width=f,o.height=d}else r.svgElement&&(h=Wt(r.svgElement),o.width=r.svgWidth,o.height=r.svgHeight);if(h){var x,b;l?x=b=1:u?(b=1,x=o.width/a.width):c?(x=1,b=o.height/a.height):o.patternUnits="userSpaceOnUse",x!=null&&!isNaN(x)&&(o.width=x),b!=null&&!isNaN(b)&&(o.height=b);var S=Lw(r);S&&(o.patternTransform=S);var M=yn("pattern","",o,[h]),I=v0(M),A=i.patternCache,C=A[I];C||(C=i.zrId+"-p"+i.patternIdx++,A[I]=C,o.id=C,M=i.defs[C]=yn("pattern",C,o,[h])),e[t]=_p(C)}}function yW(n,e,t){var i=t.clipPathCache,r=t.defs,a=i[n.id];if(!a){a=t.zrId+"-c"+t.clipPathIdx++;var o={id:a};i[n.id]=a,r[a]=yn("clipPath",a,o,[TA(n,t)])}e["clip-path"]=_p(a)}function LA(n){return document.createTextNode(n)}function bs(n,e,t){n.insertBefore(e,t)}function DA(n,e){n.removeChild(e)}function PA(n,e){n.appendChild(e)}function RA(n){return n.parentNode}function NA(n){return n.nextSibling}function b0(n,e){n.textContent=e}var zA=58,mW=120,_W=yn("","");function w0(n){return n===void 0}function Gr(n){return n!==void 0}function xW(n,e,t){for(var i={},r=e;r<=t;++r){var a=n[r].key;a!==void 0&&(i[a]=r)}return i}function Wc(n,e){var t=n.key===e.key,i=n.tag===e.tag;return i&&t}function Gc(n){var e,t=n.children,i=n.tag;if(Gr(i)){var r=n.elm=fA(i);if(S0(_W,n),ht(t))for(e=0;e<t.length;++e){var a=t[e];a!=null&&PA(r,Gc(a))}else Gr(n.text)&&!Vt(n.text)&&PA(r,LA(n.text))}else n.elm=LA(n.text);return n.elm}function EA(n,e,t,i,r){for(;i<=r;++i){var a=t[i];a!=null&&bs(n,Gc(a),e)}}function tf(n,e,t,i){for(;t<=i;++t){var r=e[t];if(r!=null)if(Gr(r.tag)){var a=RA(r.elm);DA(a,r.elm)}else DA(n,r.elm)}}function S0(n,e){var t,i=e.elm,r=n&&n.attrs||{},a=e.attrs||{};if(r!==a){for(t in a){var o=a[t],s=r[t];s!==o&&(o===!0?i.setAttribute(t,""):o===!1?i.removeAttribute(t):t==="style"?i.style.cssText=o:t.charCodeAt(0)!==mW?i.setAttribute(t,o):t==="xmlns:xlink"||t==="xmlns"?i.setAttributeNS(QF,t,o):t.charCodeAt(3)===zA?i.setAttributeNS(tW,t,o):t.charCodeAt(5)===zA?i.setAttributeNS(pA,t,o):i.setAttribute(t,o))}for(t in r)t in a||i.removeAttribute(t)}}function bW(n,e,t){for(var i=0,r=0,a=e.length-1,o=e[0],s=e[a],l=t.length-1,u=t[0],c=t[l],h,f,d,g;i<=a&&r<=l;)o==null?o=e[++i]:s==null?s=e[--a]:u==null?u=t[++r]:c==null?c=t[--l]:Wc(o,u)?(Bl(o,u),o=e[++i],u=t[++r]):Wc(s,c)?(Bl(s,c),s=e[--a],c=t[--l]):Wc(o,c)?(Bl(o,c),bs(n,o.elm,NA(s.elm)),o=e[++i],c=t[--l]):Wc(s,u)?(Bl(s,u),bs(n,s.elm,o.elm),s=e[--a],u=t[++r]):(w0(h)&&(h=xW(e,i,a)),f=h[u.key],w0(f)?bs(n,Gc(u),o.elm):(d=e[f],d.tag!==u.tag?bs(n,Gc(u),o.elm):(Bl(d,u),e[f]=void 0,bs(n,d.elm,o.elm))),u=t[++r]);(i<=a||r<=l)&&(i>a?(g=t[l+1]==null?null:t[l+1].elm,EA(n,g,t,r,l)):tf(n,e,i,a))}function Bl(n,e){var t=e.elm=n.elm,i=n.children,r=e.children;n!==e&&(S0(n,e),w0(e.text)?Gr(i)&&Gr(r)?i!==r&&bW(t,i,r):Gr(r)?(Gr(n.text)&&b0(t,""),EA(t,null,r,0,r.length-1)):Gr(i)?tf(t,i,0,i.length-1):Gr(n.text)&&b0(t,""):n.text!==e.text&&(Gr(i)&&tf(t,i,0,i.length-1),b0(t,e.text)))}function wW(n,e){if(Wc(n,e))Bl(n,e);else{var t=n.elm,i=RA(t);Gc(e),i!==null&&(bs(i,e.elm,NA(t)),tf(i,[n],0,0))}return e}var SW=0,MW=function(){function n(e,t,i){if(this.type="svg",this.refreshHover=OA(),this.configLayer=OA(),this.storage=t,this._opts=i=lt({},i),this.root=e,this._id="zr"+SW++,this._oldVNode=gA(i.width,i.height),e&&!i.ssr){var r=this._viewport=document.createElement("div");r.style.cssText="position:relative;overflow:hidden";var a=this._svgDom=this._oldVNode.elm=fA("svg");S0(null,this._oldVNode),r.appendChild(a),e.appendChild(r)}this.resize(i.width,i.height)}return n.prototype.getType=function(){return this.type},n.prototype.getViewportRoot=function(){return this._viewport},n.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},n.prototype.getSvgDom=function(){return this._svgDom},n.prototype.refresh=function(){if(this.root){var e=this.renderToVNode({willUpdate:!0});e.attrs.style="position:absolute;left:0;top:0;user-select:none",wW(this._oldVNode,e),this._oldVNode=e}},n.prototype.renderOneToVNode=function(e){return AA(e,y0(this._id))},n.prototype.renderToVNode=function(e){e=e||{};var t=this.storage.getDisplayList(!0),i=this._width,r=this._height,a=y0(this._id);a.animation=e.animation,a.willUpdate=e.willUpdate,a.compress=e.compress,a.emphasis=e.emphasis,a.ssr=this._opts.ssr;var o=[],s=this._bgVNode=IW(i,r,this._backgroundColor,a);s&&o.push(s);var l=e.compress?null:this._mainVNode=yn("g","main",{},[]);this._paintList(t,a,l?l.children:o),l&&o.push(l);var u=pt(se(a.defs),function(f){return a.defs[f]});if(u.length&&o.push(yn("defs","defs",{},u)),e.animation){var c=iW(a.cssNodes,a.cssAnims,{newline:!0});if(c){var h=yn("style","stl",{},[],c);o.push(h)}}return gA(i,r,o,e.useViewBox)},n.prototype.renderToString=function(e){return e=e||{},v0(this.renderToVNode({animation:Ut(e.cssAnimation,!0),emphasis:Ut(e.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:Ut(e.useViewBox,!0)}),{newline:!0})},n.prototype.setBackgroundColor=function(e){this._backgroundColor=e},n.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},n.prototype._paintList=function(e,t,i){for(var r=e.length,a=[],o=0,s,l,u=0,c=0;c<r;c++){var h=e[c];if(!h.invisible){var f=h.__clipPaths,d=f&&f.length||0,g=l&&l.length||0,y=void 0;for(y=Math.max(d-1,g-1);y>=0&&!(f&&l&&f[y]===l[y]);y--);for(var _=g-1;_>y;_--)o--,s=a[o-1];for(var v=y+1;v<d;v++){var p={};yW(f[v],p,t);var x=yn("g","clip-g-"+u++,p,[]);(s?s.children:i).push(x),a[o++]=x,s=x}l=f;var b=AA(h,t);b&&(s?s.children:i).push(b)}}},n.prototype.resize=function(e,t){var i=this._opts,r=this.root,a=this._viewport;if(e!=null&&(i.width=e),t!=null&&(i.height=t),r&&a&&(a.style.display="none",e=Pl(r,0,i),t=Pl(r,1,i),a.style.display=""),this._width!==e||this._height!==t){if(this._width=e,this._height=t,a){var o=a.style;o.width=e+"px",o.height=t+"px"}if(Rv(this._backgroundColor))this.refresh();else{var s=this._svgDom;s&&(s.setAttribute("width",e),s.setAttribute("height",t));var l=this._bgVNode&&this._bgVNode.elm;l&&(l.setAttribute("width",e),l.setAttribute("height",t))}}},n.prototype.getWidth=function(){return this._width},n.prototype.getHeight=function(){return this._height},n.prototype.dispose=function(){this.root&&(this.root.innerHTML=""),this._svgDom=this._viewport=this.storage=this._oldVNode=this._bgVNode=this._mainVNode=null},n.prototype.clear=function(){this._svgDom&&(this._svgDom.innerHTML=null),this._oldVNode=null},n.prototype.toDataURL=function(e){var t=this.renderToString(),i="data:image/svg+xml;";return e?(t=RE(t),t&&i+"base64,"+t):i+"charset=UTF-8,"+encodeURIComponent(t)},n}();function OA(n){return function(){}}function IW(n,e,t,i){var r;if(t&&t!=="none")if(r=yn("rect","bg",{width:n,height:e,x:"0",y:"0"}),Cw(t))CA({fill:t},r.attrs,"fill",i);else if(Rv(t))kA({style:{fill:t},dirty:Je,getBoundingRect:function(){return{width:n,height:e}}},r.attrs,"fill",i);else{var a=Ou(t),o=a.color,s=a.opacity;r.attrs.fill=o,s<1&&(r.attrs["fill-opacity"]=s)}return r}function TW(n){n.registerPainter("svg",MW)}function BA(n,e,t){var i=Ra.createCanvas(),r=e.getWidth(),a=e.getHeight(),o=i.style;return o&&(o.position="absolute",o.left="0",o.top="0",o.width=r+"px",o.height=a+"px",i.setAttribute("data-zr-dom-id",n)),i.width=r*t,i.height=a*t,i}var M0=function(n){Q(e,n);function e(t,i,r){var a=n.call(this)||this;a.motionBlur=!1,a.lastFrameAlpha=.7,a.dpr=1,a.virtual=!1,a.config={},a.incremental=!1,a.zlevel=0,a.maxRepaintRectCount=5,a.__dirty=!0,a.__firstTimePaint=!0,a.__used=!1,a.__drawIndex=0,a.__startIndex=0,a.__endIndex=0,a.__prevStartIndex=null,a.__prevEndIndex=null;var o;r=r||Tp,typeof t=="string"?o=BA(t,i,r):Vt(t)&&(o=t,t=o.id),a.id=t,a.dom=o;var s=o.style;return s&&(Kb(o),o.onselectstart=function(){return!1},s.padding="0",s.margin="0",s.borderWidth="0"),a.painter=i,a.dpr=r,a}return e.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},e.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},e.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},e.prototype.setUnpainted=function(){this.__firstTimePaint=!0},e.prototype.createBackBuffer=function(){var t=this.dpr;this.domBack=BA("back-"+this.id,this.painter,t),this.ctxBack=this.domBack.getContext("2d"),t!==1&&this.ctxBack.scale(t,t)},e.prototype.createRepaintRects=function(t,i,r,a){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var o=[],s=this.maxRepaintRectCount,l=!1,u=new $t(0,0,0,0);function c(p){if(!(!p.isFinite()||p.isZero()))if(o.length===0){var x=new $t(0,0,0,0);x.copy(p),o.push(x)}else{for(var b=!1,S=1/0,M=0,I=0;I<o.length;++I){var A=o[I];if(A.intersect(p)){var C=new $t(0,0,0,0);C.copy(A),C.union(p),o[I]=C,b=!0;break}else if(l){u.copy(p),u.union(A);var L=p.width*p.height,R=A.width*A.height,D=u.width*u.height,N=D-L-R;N<S&&(S=N,M=I)}}if(l&&(o[M].union(p),b=!0),!b){var x=new $t(0,0,0,0);x.copy(p),o.push(x)}l||(l=o.length>=s)}}for(var h=this.__startIndex;h<this.__endIndex;++h){var f=t[h];if(f){var d=f.shouldBePainted(r,a,!0,!0),g=f.__isRendered&&(f.__dirty&Mr||!d)?f.getPrevPaintRect():null;g&&c(g);var y=d&&(f.__dirty&Mr||!f.__isRendered)?f.getPaintRect():null;y&&c(y)}}for(var h=this.__prevStartIndex;h<this.__prevEndIndex;++h){var f=i[h],d=f&&f.shouldBePainted(r,a,!0,!0);if(f&&(!d||!f.__zr)&&f.__isRendered){var g=f.getPrevPaintRect();g&&c(g)}}var _;do{_=!1;for(var h=0;h<o.length;){if(o[h].isZero()){o.splice(h,1);continue}for(var v=h+1;v<o.length;)o[h].intersect(o[v])?(_=!0,o[h].union(o[v]),o.splice(v,1)):v++;h++}}while(_);return this._paintRects=o,o},e.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},e.prototype.resize=function(t,i){var r=this.dpr,a=this.dom,o=a.style,s=this.domBack;o&&(o.width=t+"px",o.height=i+"px"),a.width=t*r,a.height=i*r,s&&(s.width=t*r,s.height=i*r,r!==1&&this.ctxBack.scale(r,r))},e.prototype.clear=function(t,i,r){var a=this.dom,o=this.ctx,s=a.width,l=a.height;i=i||this.clearColor;var u=this.motionBlur&&!t,c=this.lastFrameAlpha,h=this.dpr,f=this;u&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(a,0,0,s/h,l/h));var d=this.domBack;function g(y,_,v,p){if(o.clearRect(y,_,v,p),i&&i!=="transparent"){var x=void 0;if(Qh(i)){var b=i.global||i.__width===v&&i.__height===p;x=b&&i.__canvasGradient||Cm(o,i,{x:0,y:0,width:v,height:p}),i.__canvasGradient=x,i.__width=v,i.__height=p}else Fz(i)&&(i.scaleX=i.scaleX||h,i.scaleY=i.scaleY||h,x=Lm(o,i,{dirty:function(){f.setUnpainted(),f.painter.refresh()}}));o.save(),o.fillStyle=x||i,o.fillRect(y,_,v,p),o.restore()}u&&(o.save(),o.globalAlpha=c,o.drawImage(d,y,_,v,p),o.restore())}!r||u?g(0,0,s,l):r.length&&E(r,function(y){g(y.x*h,y.y*h,y.width*h,y.height*h)})},e}(Ci),VA=1e5,ws=314159,ef=.01,AW=.001;function CW(n){return n?n.__builtin__?!0:!(typeof n.resize!="function"||typeof n.refresh!="function"):!1}function kW(n,e){var t=document.createElement("div");return t.style.cssText=["position:relative","width:"+n+"px","height:"+e+"px","padding:0","margin:0","border-width:0"].join(";")+";",t}var LW=function(){function n(e,t,i,r){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var a=!e.nodeName||e.nodeName.toUpperCase()==="CANVAS";this._opts=i=lt({},i||{}),this.dpr=i.devicePixelRatio||Tp,this._singleCanvas=a,this.root=e;var o=e.style;o&&(Kb(e),e.innerHTML=""),this.storage=t;var s=this._zlevelList;this._prevDisplayList=[];var l=this._layers;if(a){var u=e,c=u.width,h=u.height;i.width!=null&&(c=i.width),i.height!=null&&(h=i.height),this.dpr=i.devicePixelRatio||1,u.width=c*this.dpr,u.height=h*this.dpr,this._width=c,this._height=h;var f=new M0(u,this,this.dpr);f.__builtin__=!0,f.initContext(),l[ws]=f,f.zlevel=ws,s.push(ws),this._domRoot=e}else{this._width=Pl(e,0,i),this._height=Pl(e,1,i);var d=this._domRoot=kW(this._width,this._height);e.appendChild(d)}}return n.prototype.getType=function(){return"canvas"},n.prototype.isSingleCanvas=function(){return this._singleCanvas},n.prototype.getViewportRoot=function(){return this._domRoot},n.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},n.prototype.refresh=function(e){var t=this.storage.getDisplayList(!0),i=this._prevDisplayList,r=this._zlevelList;this._redrawId=Math.random(),this._paintList(t,i,e,this._redrawId);for(var a=0;a<r.length;a++){var o=r[a],s=this._layers[o];if(!s.__builtin__&&s.refresh){var l=a===0?this._backgroundColor:null;s.refresh(l)}}return this._opts.useDirtyRect&&(this._prevDisplayList=t.slice()),this},n.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},n.prototype._paintHoverList=function(e){var t=e.length,i=this._hoverlayer;if(i&&i.clear(),!!t){for(var r={inHover:!0,viewWidth:this._width,viewHeight:this._height},a,o=0;o<t;o++){var s=e[o];s.__inHover&&(i||(i=this._hoverlayer=this.getLayer(VA)),a||(a=i.ctx,a.save()),fs(a,s,r,o===t-1))}a&&a.restore()}},n.prototype.getHoverLayer=function(){return this.getLayer(VA)},n.prototype.paintOne=function(e,t){zI(e,t)},n.prototype._paintList=function(e,t,i,r){if(this._redrawId===r){i=i||!1,this._updateLayerStatus(e);var a=this._doPaintList(e,t,i),o=a.finished,s=a.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),s&&this._paintHoverList(e),o)this.eachLayer(function(u){u.afterBrush&&u.afterBrush()});else{var l=this;cp(function(){l._paintList(e,t,i,r)})}}},n.prototype._compositeManually=function(){var e=this.getLayer(ws).ctx,t=this._domRoot.width,i=this._domRoot.height;e.clearRect(0,0,t,i),this.eachBuiltinLayer(function(r){r.virtual&&e.drawImage(r.dom,0,0,t,i)})},n.prototype._doPaintList=function(e,t,i){for(var r=this,a=[],o=this._opts.useDirtyRect,s=0;s<this._zlevelList.length;s++){var l=this._zlevelList[s],u=this._layers[l];u.__builtin__&&u!==this._hoverlayer&&(u.__dirty||i)&&a.push(u)}for(var c=!0,h=!1,f=function(y){var _=a[y],v=_.ctx,p=o&&_.createRepaintRects(e,t,d._width,d._height),x=i?_.__startIndex:_.__drawIndex,b=!i&&_.incremental&&Date.now,S=b&&Date.now(),M=_.zlevel===d._zlevelList[0]?d._backgroundColor:null;if(_.__startIndex===_.__endIndex)_.clear(!1,M,p);else if(x===_.__startIndex){var I=e[x];(!I.incremental||!I.notClear||i)&&_.clear(!1,M,p)}x===-1&&(console.error("For some unknown reason. drawIndex is -1"),x=_.__startIndex);var A,C=function(N){var k={inHover:!1,allClipped:!1,prevEl:null,viewWidth:r._width,viewHeight:r._height};for(A=x;A<_.__endIndex;A++){var O=e[A];if(O.__inHover&&(h=!0),r._doPaintEl(O,_,o,N,k,A===_.__endIndex-1),b){var F=Date.now()-S;if(F>15)break}}k.prevElClipPaths&&v.restore()};if(p)if(p.length===0)A=_.__endIndex;else for(var L=d.dpr,R=0;R<p.length;++R){var D=p[R];v.save(),v.beginPath(),v.rect(D.x*L,D.y*L,D.width*L,D.height*L),v.clip(),C(D),v.restore()}else v.save(),C(),v.restore();_.__drawIndex=A,_.__drawIndex<_.__endIndex&&(c=!1)},d=this,g=0;g<a.length;g++)f(g);return oe.wxa&&E(this._layers,function(y){y&&y.ctx&&y.ctx.draw&&y.ctx.draw()}),{finished:c,needsRefreshHover:h}},n.prototype._doPaintEl=function(e,t,i,r,a,o){var s=t.ctx;if(i){var l=e.getPaintRect();(!r||l&&l.intersect(r))&&(fs(s,e,a,o),e.setPrevPaintRect(l))}else fs(s,e,a,o)},n.prototype.getLayer=function(e,t){this._singleCanvas&&!this._needsManuallyCompositing&&(e=ws);var i=this._layers[e];return i||(i=new M0("zr_"+e,this,this.dpr),i.zlevel=e,i.__builtin__=!0,this._layerConfig[e]?Kt(i,this._layerConfig[e],!0):this._layerConfig[e-ef]&&Kt(i,this._layerConfig[e-ef],!0),t&&(i.virtual=t),this.insertLayer(e,i),i.initContext()),i},n.prototype.insertLayer=function(e,t){var i=this._layers,r=this._zlevelList,a=r.length,o=this._domRoot,s=null,l=-1;if(!i[e]&&CW(t)){if(a>0&&e>r[0]){for(l=0;l<a-1&&!(r[l]<e&&r[l+1]>e);l++);s=i[r[l]]}if(r.splice(l+1,0,e),i[e]=t,!t.virtual)if(s){var u=s.dom;u.nextSibling?o.insertBefore(t.dom,u.nextSibling):o.appendChild(t.dom)}else o.firstChild?o.insertBefore(t.dom,o.firstChild):o.appendChild(t.dom);t.painter||(t.painter=this)}},n.prototype.eachLayer=function(e,t){for(var i=this._zlevelList,r=0;r<i.length;r++){var a=i[r];e.call(t,this._layers[a],a)}},n.prototype.eachBuiltinLayer=function(e,t){for(var i=this._zlevelList,r=0;r<i.length;r++){var a=i[r],o=this._layers[a];o.__builtin__&&e.call(t,o,a)}},n.prototype.eachOtherLayer=function(e,t){for(var i=this._zlevelList,r=0;r<i.length;r++){var a=i[r],o=this._layers[a];o.__builtin__||e.call(t,o,a)}},n.prototype.getLayers=function(){return this._layers},n.prototype._updateLayerStatus=function(e){this.eachBuiltinLayer(function(h,f){h.__dirty=h.__used=!1});function t(h){a&&(a.__endIndex!==h&&(a.__dirty=!0),a.__endIndex=h)}if(this._singleCanvas)for(var i=1;i<e.length;i++){var r=e[i];if(r.zlevel!==e[i-1].zlevel||r.incremental){this._needsManuallyCompositing=!0;break}}var a=null,o=0,s,l;for(l=0;l<e.length;l++){var r=e[l],u=r.zlevel,c=void 0;s!==u&&(s=u,o=0),r.incremental?(c=this.getLayer(u+AW,this._needsManuallyCompositing),c.incremental=!0,o=1):c=this.getLayer(u+(o>0?ef:0),this._needsManuallyCompositing),c.__builtin__||ev("ZLevel "+u+" has been used by unkown layer "+c.id),c!==a&&(c.__used=!0,c.__startIndex!==l&&(c.__dirty=!0),c.__startIndex=l,c.incremental?c.__drawIndex=-1:c.__drawIndex=l,t(l),a=c),r.__dirty&Mr&&!r.__inHover&&(c.__dirty=!0,c.incremental&&c.__drawIndex<0&&(c.__drawIndex=l))}t(l),this.eachBuiltinLayer(function(h,f){!h.__used&&h.getElementCount()>0&&(h.__dirty=!0,h.__startIndex=h.__endIndex=h.__drawIndex=0),h.__dirty&&h.__drawIndex<0&&(h.__drawIndex=h.__startIndex)})},n.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},n.prototype._clearLayer=function(e){e.clear()},n.prototype.setBackgroundColor=function(e){this._backgroundColor=e,E(this._layers,function(t){t.setUnpainted()})},n.prototype.configLayer=function(e,t){if(t){var i=this._layerConfig;i[e]?Kt(i[e],t,!0):i[e]=t;for(var r=0;r<this._zlevelList.length;r++){var a=this._zlevelList[r];if(a===e||a===e+ef){var o=this._layers[a];Kt(o,i[e],!0)}}}},n.prototype.delLayer=function(e){var t=this._layers,i=this._zlevelList,r=t[e];r&&(r.dom.parentNode.removeChild(r.dom),delete t[e],i.splice(Qt(i,e),1))},n.prototype.resize=function(e,t){if(this._domRoot.style){var i=this._domRoot;i.style.display="none";var r=this._opts,a=this.root;if(e!=null&&(r.width=e),t!=null&&(r.height=t),e=Pl(a,0,r),t=Pl(a,1,r),i.style.display="",this._width!==e||t!==this._height){i.style.width=e+"px",i.style.height=t+"px";for(var o in this._layers)this._layers.hasOwnProperty(o)&&this._layers[o].resize(e,t);this.refresh(!0)}this._width=e,this._height=t}else{if(e==null||t==null)return;this._width=e,this._height=t,this.getLayer(ws).resize(e,t)}return this},n.prototype.clearLayer=function(e){var t=this._layers[e];t&&t.clear()},n.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},n.prototype.getRenderedCanvas=function(e){if(e=e||{},this._singleCanvas&&!this._compositeManually)return this._layers[ws].dom;var t=new M0("image",this,e.pixelRatio||this.dpr);t.initContext(),t.clear(!1,e.backgroundColor||this._backgroundColor);var i=t.ctx;if(e.pixelRatio<=this.dpr){this.refresh();var r=t.dom.width,a=t.dom.height;this.eachLayer(function(h){h.__builtin__?i.drawImage(h.dom,0,0,r,a):h.renderToCanvas&&(i.save(),h.renderToCanvas(i),i.restore())})}else for(var o={inHover:!1,viewWidth:this._width,viewHeight:this._height},s=this.storage.getDisplayList(!0),l=0,u=s.length;l<u;l++){var c=s[l];fs(i,c,o,l===u-1)}return t.dom},n.prototype.getWidth=function(){return this._width},n.prototype.getHeight=function(){return this._height},n}();function DW(n){n.registerPainter("canvas",LW)}var PW=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.getInitialData=function(t){return da(null,this,{useEncodeDefaulter:!0})},e.prototype.getLegendIcon=function(t){var i=new Gt,r=rn("line",0,t.itemHeight/2,t.itemWidth,0,t.lineStyle.stroke,!1);i.add(r),r.setStyle(t.lineStyle);var a=this.getData().getVisual("symbol"),o=this.getData().getVisual("symbolRotate"),s=a==="none"?"circle":a,l=t.itemHeight*.8,u=rn(s,(t.itemWidth-l)/2,(t.itemHeight-l)/2,l,l,t.itemStyle.fill);i.add(u),u.setStyle(t.itemStyle);var c=t.iconRotate==="inherit"?o:t.iconRotate||0;return u.rotation=c*Math.PI/180,u.setOrigin([t.itemWidth/2,t.itemHeight/2]),s.indexOf("empty")>-1&&(u.style.stroke=u.style.fill,u.style.fill="#fff",u.style.lineWidth=2),i},e.type="series.line",e.dependencies=["grid","polar"],e.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},e}(Oe);function Vl(n,e){var t=n.mapDimensionsAll("defaultedLabel"),i=t.length;if(i===1){var r=Il(n,e,t[0]);return r!=null?r+"":null}else if(i){for(var a=[],o=0;o<t.length;o++)a.push(Il(n,e,t[o]));return a.join(" ")}}function FA(n,e){var t=n.mapDimensionsAll("defaultedLabel");if(!ht(e))return e+"";for(var i=[],r=0;r<t.length;r++){var a=n.getDimensionIndex(t[r]);a>=0&&i.push(e[a])}return i.join(" ")}var jc=function(n){Q(e,n);function e(t,i,r,a){var o=n.call(this)||this;return o.updateData(t,i,r,a),o}return e.prototype._createSymbol=function(t,i,r,a,o){this.removeAll();var s=rn(t,-1,-1,2,2,null,o);s.attr({z2:100,culling:!0,scaleX:a[0]/2,scaleY:a[1]/2}),s.drift=RW,this._symbolType=t,this.add(s)},e.prototype.stopSymbolAnimation=function(t){this.childAt(0).stopAnimation(null,t)},e.prototype.getSymbolType=function(){return this._symbolType},e.prototype.getSymbolPath=function(){return this.childAt(0)},e.prototype.highlight=function(){la(this.childAt(0))},e.prototype.downplay=function(){ua(this.childAt(0))},e.prototype.setZ=function(t,i){var r=this.childAt(0);r.zlevel=t,r.z=i},e.prototype.setDraggable=function(t,i){var r=this.childAt(0);r.draggable=t,r.cursor=!i&&t?"move":r.cursor},e.prototype.updateData=function(t,i,r,a){this.silent=!1;var o=t.getItemVisual(i,"symbol")||"circle",s=t.hostModel,l=e.getSymbolSize(t,i),u=o!==this._symbolType,c=a&&a.disableAnimation;if(u){var h=t.getItemVisual(i,"symbolKeepAspect");this._createSymbol(o,t,i,l,h)}else{var f=this.childAt(0);f.silent=!1;var d={scaleX:l[0]/2,scaleY:l[1]/2};c?f.attr(d):me(f,d,s,i),sr(f)}if(this._updateCommon(t,i,l,r,a),u){var f=this.childAt(0);if(!c){var d={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:f.style.opacity}};f.scaleX=f.scaleY=0,f.style.opacity=0,We(f,d,s,i)}}c&&this.childAt(0).stopAnimation("leave")},e.prototype._updateCommon=function(t,i,r,a,o){var s=this.childAt(0),l=t.hostModel,u,c,h,f,d,g,y,_,v;if(a&&(u=a.emphasisItemStyle,c=a.blurItemStyle,h=a.selectItemStyle,f=a.focus,d=a.blurScope,y=a.labelStatesModels,_=a.hoverScale,v=a.cursorStyle,g=a.emphasisDisabled),!a||t.hasItemOption){var p=a&&a.itemModel?a.itemModel:t.getItemModel(i),x=p.getModel("emphasis");u=x.getModel("itemStyle").getItemStyle(),h=p.getModel(["select","itemStyle"]).getItemStyle(),c=p.getModel(["blur","itemStyle"]).getItemStyle(),f=x.get("focus"),d=x.get("blurScope"),g=x.get("disabled"),y=gn(p),_=x.getShallow("scale"),v=p.getShallow("cursor")}var b=t.getItemVisual(i,"symbolRotate");s.attr("rotation",(b||0)*Math.PI/180||0);var S=ps(t.getItemVisual(i,"symbolOffset"),r);S&&(s.x=S[0],s.y=S[1]),v&&s.attr("cursor",v);var M=t.getItemVisual(i,"style"),I=M.fill;if(s instanceof Sn){var A=s.style;s.useStyle(lt({image:A.image,x:A.x,y:A.y,width:A.width,height:A.height},M))}else s.__isEmptyBrush?s.useStyle(lt({},M)):s.useStyle(M),s.style.decal=null,s.setColor(I,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var C=t.getItemVisual(i,"liftZ"),L=this._z2;C!=null?L==null&&(this._z2=s.z2,s.z2+=C):L!=null&&(s.z2=L,this._z2=null);var R=o&&o.useNameLabel;kn(s,y,{labelFetcher:l,labelDataIndex:i,defaultText:D,inheritColor:I,defaultOpacity:M.opacity});function D(O){return R?t.getName(O):Vl(t,O)}this._sizeX=r[0]/2,this._sizeY=r[1]/2;var N=s.ensureState("emphasis");N.style=u,s.ensureState("select").style=h,s.ensureState("blur").style=c;var k=_==null||_===!0?Math.max(1.1,3/this._sizeY):isFinite(_)&&_>0?+_:1;N.scaleX=this._sizeX*k,N.scaleY=this._sizeY*k,this.setSymbolScale(1),Ue(this,f,d,g)},e.prototype.setSymbolScale=function(t){this.scaleX=this.scaleY=t},e.prototype.fadeOut=function(t,i,r){var a=this.childAt(0),o=jt(this).dataIndex,s=r&&r.animation;if(this.silent=a.silent=!0,r&&r.fadeLabel){var l=a.getTextContent();l&&Xa(l,{style:{opacity:0}},i,{dataIndex:o,removeOpt:s,cb:function(){a.removeTextContent()}})}else a.removeTextContent();Xa(a,{style:{opacity:0},scaleX:0,scaleY:0},i,{dataIndex:o,cb:t,removeOpt:s})},e.getSymbolSize=function(t,i){return Dl(t.getItemVisual(i,"symbolSize"))},e}(Gt);function RW(n,e){this.parent.drift(n,e)}function I0(n,e,t,i){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(i.isIgnore&&i.isIgnore(t))&&!(i.clipShape&&!i.clipShape.contain(e[0],e[1]))&&n.getItemVisual(t,"symbol")!=="none"}function WA(n){return n!=null&&!Vt(n)&&(n={isIgnore:n}),n||{}}function GA(n){var e=n.hostModel,t=e.getModel("emphasis");return{emphasisItemStyle:t.getModel("itemStyle").getItemStyle(),blurItemStyle:e.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:e.getModel(["select","itemStyle"]).getItemStyle(),focus:t.get("focus"),blurScope:t.get("blurScope"),emphasisDisabled:t.get("disabled"),hoverScale:t.get("scale"),labelStatesModels:gn(e),cursorStyle:e.get("cursor")}}var Hc=function(){function n(e){this.group=new Gt,this._SymbolCtor=e||jc}return n.prototype.updateData=function(e,t){this._progressiveEls=null,t=WA(t);var i=this.group,r=e.hostModel,a=this._data,o=this._SymbolCtor,s=t.disableAnimation,l=GA(e),u={disableAnimation:s},c=t.getSymbolPoint||function(h){return e.getItemLayout(h)};a||i.removeAll(),e.diff(a).add(function(h){var f=c(h);if(I0(e,f,h,t)){var d=new o(e,h,l,u);d.setPosition(f),e.setItemGraphicEl(h,d),i.add(d)}}).update(function(h,f){var d=a.getItemGraphicEl(f),g=c(h);if(!I0(e,g,h,t)){i.remove(d);return}var y=e.getItemVisual(h,"symbol")||"circle",_=d&&d.getSymbolType&&d.getSymbolType();if(!d||_&&_!==y)i.remove(d),d=new o(e,h,l,u),d.setPosition(g);else{d.updateData(e,h,l,u);var v={x:g[0],y:g[1]};s?d.attr(v):me(d,v,r)}i.add(d),e.setItemGraphicEl(h,d)}).remove(function(h){var f=a.getItemGraphicEl(h);f&&f.fadeOut(function(){i.remove(f)},r)}).execute(),this._getSymbolPoint=c,this._data=e},n.prototype.updateLayout=function(){var e=this,t=this._data;t&&t.eachItemGraphicEl(function(i,r){var a=e._getSymbolPoint(r);i.setPosition(a),i.markRedraw()})},n.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=GA(e),this._data=null,this.group.removeAll()},n.prototype.incrementalUpdate=function(e,t,i){this._progressiveEls=[],i=WA(i);function r(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var a=e.start;a<e.end;a++){var o=t.getItemLayout(a);if(I0(t,o,a,i)){var s=new this._SymbolCtor(t,a,this._seriesScope);s.traverse(r),s.setPosition(o),this.group.add(s),t.setItemGraphicEl(a,s),this._progressiveEls.push(s)}}},n.prototype.eachRendered=function(e){Za(this._progressiveEls||this.group,e)},n.prototype.remove=function(e){var t=this.group,i=this._data;i&&e?i.eachItemGraphicEl(function(r){r.fadeOut(function(){t.remove(r)},i.hostModel)}):t.removeAll()},n}();function jA(n,e,t){var i=n.getBaseAxis(),r=n.getOtherAxis(i),a=NW(r,t),o=i.dim,s=r.dim,l=e.mapDimension(s),u=e.mapDimension(o),c=s==="x"||s==="radius"?1:0,h=pt(n.dimensions,function(g){return e.mapDimension(g)}),f=!1,d=e.getCalculationInfo("stackResultDimension");return no(e,h[0])&&(f=!0,h[0]=d),no(e,h[1])&&(f=!0,h[1]=d),{dataDimsForPoint:h,valueStart:a,valueAxisDim:s,baseAxisDim:o,stacked:!!f,valueDim:l,baseDim:u,baseDataOffset:c,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}}function NW(n,e){var t=0,i=n.scale.getExtent();return e==="start"?t=i[0]:e==="end"?t=i[1]:ve(e)&&!isNaN(e)?t=e:i[0]>0?t=i[0]:i[1]<0&&(t=i[1]),t}function HA(n,e,t,i){var r=NaN;n.stacked&&(r=t.get(t.getCalculationInfo("stackedOverDimension"),i)),isNaN(r)&&(r=n.valueStart);var a=n.baseDataOffset,o=[];return o[a]=t.get(n.baseDim,i),o[1-a]=r,e.dataToPoint(o)}function zW(n,e){var t=[];return e.diff(n).add(function(i){t.push({cmd:"+",idx:i})}).update(function(i,r){t.push({cmd:"=",idx:r,idx1:i})}).remove(function(i){t.push({cmd:"-",idx:i})}).execute(),t}function EW(n,e,t,i,r,a,o,s){for(var l=zW(n,e),u=[],c=[],h=[],f=[],d=[],g=[],y=[],_=jA(r,e,o),v=n.getLayout("points")||[],p=e.getLayout("points")||[],x=0;x<l.length;x++){var b=l[x],S=!0,M=void 0,I=void 0;switch(b.cmd){case"=":M=b.idx*2,I=b.idx1*2;var A=v[M],C=v[M+1],L=p[I],R=p[I+1];(isNaN(A)||isNaN(C))&&(A=L,C=R),u.push(A,C),c.push(L,R),h.push(t[M],t[M+1]),f.push(i[I],i[I+1]),y.push(e.getRawIndex(b.idx1));break;case"+":var D=b.idx,N=_.dataDimsForPoint,k=r.dataToPoint([e.get(N[0],D),e.get(N[1],D)]);I=D*2,u.push(k[0],k[1]),c.push(p[I],p[I+1]);var O=HA(_,r,e,D);h.push(O[0],O[1]),f.push(i[I],i[I+1]),y.push(e.getRawIndex(D));break;case"-":S=!1}S&&(d.push(b),g.push(g.length))}g.sort(function(at,Nt){return y[at]-y[Nt]});for(var F=u.length,G=Vr(F),q=Vr(F),j=Vr(F),J=Vr(F),H=[],x=0;x<g.length;x++){var K=g[x],ut=x*2,ot=K*2;G[ut]=u[ot],G[ut+1]=u[ot+1],q[ut]=c[ot],q[ut+1]=c[ot+1],j[ut]=h[ot],j[ut+1]=h[ot+1],J[ut]=f[ot],J[ut+1]=f[ot+1],H[x]=d[K]}return{current:G,next:q,stackedOnCurrent:j,stackedOnNext:J,status:H}}var io=Math.min,ro=Math.max;function Ss(n,e){return isNaN(n)||isNaN(e)}function T0(n,e,t,i,r,a,o,s,l){for(var u,c,h,f,d,g,y=t,_=0;_<i;_++){var v=e[y*2],p=e[y*2+1];if(y>=r||y<0)break;if(Ss(v,p)){if(l){y+=a;continue}break}if(y===t)n[a>0?"moveTo":"lineTo"](v,p),h=v,f=p;else{var x=v-u,b=p-c;if(x*x+b*b<.5){y+=a;continue}if(o>0){for(var S=y+a,M=e[S*2],I=e[S*2+1];M===v&&I===p&&_<i;)_++,S+=a,y+=a,M=e[S*2],I=e[S*2+1],v=e[y*2],p=e[y*2+1],x=v-u,b=p-c;var A=_+1;if(l)for(;Ss(M,I)&&A<i;)A++,S+=a,M=e[S*2],I=e[S*2+1];var C=.5,L=0,R=0,D=void 0,N=void 0;if(A>=i||Ss(M,I))d=v,g=p;else{L=M-u,R=I-c;var k=v-u,O=M-v,F=p-c,G=I-p,q=void 0,j=void 0;if(s==="x"){q=Math.abs(k),j=Math.abs(O);var J=L>0?1:-1;d=v-J*q*o,g=p,D=v+J*j*o,N=p}else if(s==="y"){q=Math.abs(F),j=Math.abs(G);var H=R>0?1:-1;d=v,g=p-H*q*o,D=v,N=p+H*j*o}else q=Math.sqrt(k*k+F*F),j=Math.sqrt(O*O+G*G),C=j/(j+q),d=v-L*o*(1-C),g=p-R*o*(1-C),D=v+L*o*C,N=p+R*o*C,D=io(D,ro(M,v)),N=io(N,ro(I,p)),D=ro(D,io(M,v)),N=ro(N,io(I,p)),L=D-v,R=N-p,d=v-L*q/j,g=p-R*q/j,d=io(d,ro(u,v)),g=io(g,ro(c,p)),d=ro(d,io(u,v)),g=ro(g,io(c,p)),L=v-d,R=p-g,D=v+L*j/q,N=p+R*j/q}n.bezierCurveTo(h,f,d,g,v,p),h=D,f=N}else n.lineTo(v,p)}u=v,c=p,y+=a}return _}var UA=function(){function n(){this.smooth=0,this.smoothConstraint=!0}return n}(),OW=function(n){Q(e,n);function e(t){var i=n.call(this,t)||this;return i.type="ec-polyline",i}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new UA},e.prototype.buildPath=function(t,i){var r=i.points,a=0,o=r.length/2;if(i.connectNulls){for(;o>0&&Ss(r[o*2-2],r[o*2-1]);o--);for(;a<o&&Ss(r[a*2],r[a*2+1]);a++);}for(;a<o;)a+=T0(t,r,a,o,o,1,i.smooth,i.smoothMonotone,i.connectNulls)+1},e.prototype.getPointOn=function(t,i){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var r=this.path,a=r.data,o=Rr.CMD,s,l,u=i==="x",c=[],h=0;h<a.length;){var f=a[h++],d=void 0,g=void 0,y=void 0,_=void 0,v=void 0,p=void 0,x=void 0;switch(f){case o.M:s=a[h++],l=a[h++];break;case o.L:if(d=a[h++],g=a[h++],x=u?(t-s)/(d-s):(t-l)/(g-l),x<=1&&x>=0){var b=u?(g-l)*x+l:(d-s)*x+s;return u?[t,b]:[b,t]}s=d,l=g;break;case o.C:d=a[h++],g=a[h++],y=a[h++],_=a[h++],v=a[h++],p=a[h++];var S=u?dp(s,d,y,v,t,c):dp(l,g,_,p,t,c);if(S>0)for(var M=0;M<S;M++){var I=c[M];if(I<=1&&I>=0){var b=u?dn(l,g,_,p,I):dn(s,d,y,v,I);return u?[t,b]:[b,t]}}s=v,l=p;break}}},e}(re),BW=function(n){Q(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e}(UA),XA=function(n){Q(e,n);function e(t){var i=n.call(this,t)||this;return i.type="ec-polygon",i}return e.prototype.getDefaultShape=function(){return new BW},e.prototype.buildPath=function(t,i){var r=i.points,a=i.stackedOnPoints,o=0,s=r.length/2,l=i.smoothMonotone;if(i.connectNulls){for(;s>0&&Ss(r[s*2-2],r[s*2-1]);s--);for(;o<s&&Ss(r[o*2],r[o*2+1]);o++);}for(;o<s;){var u=T0(t,r,o,s,s,1,i.smooth,l,i.connectNulls);T0(t,a,o+u-1,u,s,-1,i.stackedOnSmooth,l,i.connectNulls),o+=u+1,t.closePath()}},e}(re);function ZA(n,e,t,i,r){var a=n.getArea(),o=a.x,s=a.y,l=a.width,u=a.height,c=t.get(["lineStyle","width"])||0;o-=c/2,s-=c/2,l+=c,u+=c,l=Math.ceil(l),o!==Math.floor(o)&&(o=Math.floor(o),l++);var h=new de({shape:{x:o,y:s,width:l,height:u}});if(e){var f=n.getBaseAxis(),d=f.isHorizontal(),g=f.inverse;d?(g&&(h.shape.x+=l),h.shape.width=0):(g||(h.shape.y+=u),h.shape.height=0);var y=Ot(r)?function(_){r(_,h)}:null;We(h,{shape:{width:l,height:u,x:o,y:s}},t,null,i,y)}return h}function qA(n,e,t){var i=n.getArea(),r=qe(i.r0,1),a=qe(i.r,1),o=new qn({shape:{cx:qe(n.cx,1),cy:qe(n.cy,1),r0:r,r:a,startAngle:i.startAngle,endAngle:i.endAngle,clockwise:i.clockwise}});if(e){var s=n.getBaseAxis().dim==="angle";s?o.shape.endAngle=i.startAngle:o.shape.r=r,We(o,{shape:{endAngle:i.endAngle,r:a}},t)}return o}function Uc(n,e,t,i,r){if(n){if(n.type==="polar")return qA(n,e,t);if(n.type==="cartesian2d")return ZA(n,e,t,i,r)}else return null;return null}function Ms(n,e){return n.type===e}function KA(n,e){if(n.length===e.length){for(var t=0;t<n.length;t++)if(n[t]!==e[t])return;return!0}}function YA(n){for(var e=1/0,t=1/0,i=-1/0,r=-1/0,a=0;a<n.length;){var o=n[a++],s=n[a++];isNaN(o)||(e=Math.min(o,e),i=Math.max(o,i)),isNaN(s)||(t=Math.min(s,t),r=Math.max(s,r))}return[[e,t],[i,r]]}function JA(n,e){var t=YA(n),i=t[0],r=t[1],a=YA(e),o=a[0],s=a[1];return Math.max(Math.abs(i[0]-o[0]),Math.abs(i[1]-o[1]),Math.abs(r[0]-s[0]),Math.abs(r[1]-s[1]))}function $A(n){return ve(n)?n:n?.5:0}function VW(n,e,t){if(!t.valueDim)return[];for(var i=e.count(),r=Vr(i*2),a=0;a<i;a++){var o=HA(t,n,e,a);r[a*2]=o[0],r[a*2+1]=o[1]}return r}function ao(n,e,t,i,r){var a=t.getBaseAxis(),o=a.dim==="x"||a.dim==="radius"?0:1,s=[],l=0,u=[],c=[],h=[],f=[];if(r){for(l=0;l<n.length;l+=2){var d=e||n;!isNaN(d[l])&&!isNaN(d[l+1])&&f.push(n[l],n[l+1])}n=f}for(l=0;l<n.length-2;l+=2)switch(h[0]=n[l+2],h[1]=n[l+3],c[0]=n[l],c[1]=n[l+1],s.push(c[0],c[1]),i){case"end":u[o]=h[o],u[1-o]=c[1-o],s.push(u[0],u[1]);break;case"middle":var g=(c[o]+h[o])/2,y=[];u[o]=y[o]=g,u[1-o]=c[1-o],y[1-o]=h[1-o],s.push(u[0],u[1]),s.push(y[0],y[1]);break;default:u[o]=c[o],u[1-o]=h[1-o],s.push(u[0],u[1])}return s.push(n[l++],n[l++]),s}function FW(n,e){var t=[],i=n.length,r,a;function o(c,h,f){var d=c.coord,g=(f-d)/(h.coord-d),y=IE(g,[c.color,h.color]);return{coord:f,color:y}}for(var s=0;s<i;s++){var l=n[s],u=l.coord;if(u<0)r=l;else if(u>e){a?t.push(o(a,l,e)):r&&t.push(o(r,l,0),o(r,l,e));break}else r&&(t.push(o(r,l,0)),r=null),t.push(l),a=l}return t}function WW(n,e,t){var i=n.getVisual("visualMeta");if(!(!i||!i.length||!n.count())){if(e.type!=="cartesian2d")return;for(var r,a,o=i.length-1;o>=0;o--){var s=n.getDimensionInfo(i[o].dimension);if(r=s&&s.coordDim,r==="x"||r==="y"){a=i[o];break}}if(!a)return;var l=e.getAxis(r),u=pt(a.stops,function(x){return{coord:l.toGlobalCoord(l.dataToCoord(x.value)),color:x.color}}),c=u.length,h=a.outerColors.slice();c&&u[0].coord>u[c-1].coord&&(u.reverse(),h.reverse());var f=FW(u,r==="x"?t.getWidth():t.getHeight()),d=f.length;if(!d&&c)return u[0].coord<0?h[1]?h[1]:u[c-1].color:h[0]?h[0]:u[0].color;var g=10,y=f[0].coord-g,_=f[d-1].coord+g,v=_-y;if(v<.001)return"transparent";E(f,function(x){x.offset=(x.coord-y)/v}),f.push({offset:d?f[d-1].offset:.5,color:h[1]||"transparent"}),f.unshift({offset:d?f[0].offset:.5,color:h[0]||"transparent"});var p=new oc(0,0,0,0,f,!0);return p[r]=y,p[r+"2"]=_,p}}function GW(n,e,t){var i=n.get("showAllSymbol"),r=i==="auto";if(!(i&&!r)){var a=t.getAxesByScale("ordinal")[0];if(a&&!(r&&jW(a,e))){var o=e.mapDimension(a.dim),s={};return E(a.getViewLabels(),function(l){var u=a.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(e.get(o,l))}}}}function jW(n,e){var t=n.getExtent(),i=Math.abs(t[1]-t[0])/n.scale.count();isNaN(i)&&(i=0);for(var r=e.count(),a=Math.max(1,Math.round(r/5)),o=0;o<r;o+=a)if(jc.getSymbolSize(e,o)[n.isHorizontal()?1:0]*1.5>i)return!1;return!0}function HW(n,e){return isNaN(n)||isNaN(e)}function UW(n){for(var e=n.length/2;e>0&&HW(n[e*2-2],n[e*2-1]);e--);return e-1}function QA(n,e){return[n[e*2],n[e*2+1]]}function XW(n,e,t){for(var i=n.length/2,r=t==="x"?0:1,a,o,s=0,l=-1,u=0;u<i;u++)if(o=n[u*2+r],!(isNaN(o)||isNaN(n[u*2+1-r]))){if(u===0){a=o;continue}if(a<=e&&o>=e||a>=e&&o<=e){l=u;break}s=u,a=o}return{range:[s,l],t:(e-a)/(o-a)}}function tC(n){if(n.get(["endLabel","show"]))return!0;for(var e=0;e<Zn.length;e++)if(n.get([Zn[e],"endLabel","show"]))return!0;return!1}function A0(n,e,t,i){if(Ms(e,"cartesian2d")){var r=i.getModel("endLabel"),a=r.get("valueAnimation"),o=i.getData(),s={lastFrameIndex:0},l=tC(i)?function(d,g){n._endLabelOnDuring(d,g,o,s,a,r,e)}:null,u=e.getBaseAxis().isHorizontal(),c=ZA(e,t,i,function(){var d=n._endLabel;d&&t&&s.originalX!=null&&d.attr({x:s.originalX,y:s.originalY})},l);if(!i.get("clip",!0)){var h=c.shape,f=Math.max(h.width,h.height);u?(h.y-=f,h.height+=f*2):(h.x-=f,h.width+=f*2)}return l&&l(1,c),c}else return qA(e,t,i)}function ZW(n,e){var t=e.getBaseAxis(),i=t.isHorizontal(),r=t.inverse,a=i?r?"right":"left":"center",o=i?"middle":r?"top":"bottom";return{normal:{align:n.get("align")||a,verticalAlign:n.get("verticalAlign")||o}}}var qW=function(n){Q(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.init=function(){var t=new Gt,i=new Hc;this.group.add(i.group),this._symbolDraw=i,this._lineGroup=t,this._changePolyState=Ct(this._changePolyState,this)},e.prototype.render=function(t,i,r){var a=t.coordinateSystem,o=this.group,s=t.getData(),l=t.getModel("lineStyle"),u=t.getModel("areaStyle"),c=s.getLayout("points")||[],h=a.type==="polar",f=this._coordSys,d=this._symbolDraw,g=this._polyline,y=this._polygon,_=this._lineGroup,v=!i.ssr&&t.get("animation"),p=!u.isEmpty(),x=u.get("origin"),b=jA(a,s,x),S=p&&VW(a,s,b),M=t.get("showSymbol"),I=t.get("connectNulls"),A=M&&!h&&GW(t,s,a),C=this._data;C&&C.eachItemGraphicEl(function(at,Nt){at.__temp&&(o.remove(at),C.setItemGraphicEl(Nt,null))}),M||d.remove(),o.add(_);var L=h?!1:t.get("step"),R;a&&a.getArea&&t.get("clip",!0)&&(R=a.getArea(),R.width!=null?(R.x-=.1,R.y-=.1,R.width+=.2,R.height+=.2):R.r0&&(R.r0-=.5,R.r+=.5)),this._clipShapeForSymbol=R;var D=WW(s,a,r)||s.getVisual("style")[s.getVisual("drawType")];if(!(g&&f.type===a.type&&L===this._step))M&&d.updateData(s,{isIgnore:A,clipShape:R,disableAnimation:!0,getSymbolPoint:function(at){return[c[at*2],c[at*2+1]]}}),v&&this._initSymbolLabelAnimation(s,a,R),L&&(S&&(S=ao(S,c,a,L,I)),c=ao(c,null,a,L,I)),g=this._newPolyline(c),p?y=this._newPolygon(c,S):y&&(_.remove(y),y=this._polygon=null),h||this._initOrUpdateEndLabel(t,a,as(D)),_.setClipPath(A0(this,a,!0,t));else{p&&!y?y=this._newPolygon(c,S):y&&!p&&(_.remove(y),y=this._polygon=null),h||this._initOrUpdateEndLabel(t,a,as(D));var N=_.getClipPath();if(N){var k=A0(this,a,!1,t);We(N,{shape:k.shape},t)}else _.setClipPath(A0(this,a,!0,t));M&&d.updateData(s,{isIgnore:A,clipShape:R,disableAnimation:!0,getSymbolPoint:function(at){return[c[at*2],c[at*2+1]]}}),(!KA(this._stackedOnPoints,S)||!KA(this._points,c))&&(v?this._doUpdateAnimation(s,S,a,r,L,x,I):(L&&(S&&(S=ao(S,c,a,L,I)),c=ao(c,null,a,L,I)),g.setShape({points:c}),y&&y.setShape({points:c,stackedOnPoints:S})))}var O=t.getModel("emphasis"),F=O.get("focus"),G=O.get("blurScope"),q=O.get("disabled");if(g.useStyle(Bt(l.getLineStyle(),{fill:"none",stroke:D,lineJoin:"bevel"})),Cn(g,t,"lineStyle"),g.style.lineWidth>0&&t.get(["emphasis","lineStyle","width"])==="bolder"){var j=g.getState("emphasis").style;j.lineWidth=+g.style.lineWidth+1}jt(g).seriesIndex=t.seriesIndex,Ue(g,F,G,q);var J=$A(t.get("smooth")),H=t.get("smoothMonotone");if(g.setShape({smooth:J,smoothMonotone:H,connectNulls:I}),y){var K=s.getCalculationInfo("stackedOnSeries"),ut=0;y.useStyle(Bt(u.getAreaStyle(),{fill:D,opacity:.7,lineJoin:"bevel",decal:s.getVisual("style").decal})),K&&(ut=$A(K.get("smooth"))),y.setShape({smooth:J,stackedOnSmooth:ut,smoothMonotone:H,connectNulls:I}),Cn(y,t,"areaStyle"),jt(y).seriesIndex=t.seriesIndex,Ue(y,F,G,q)}var ot=this._changePolyState;s.eachItemGraphicEl(function(at){at&&(at.onHoverStateChange=ot)}),this._polyline.onHoverStateChange=ot,this._data=s,this._coordSys=a,this._stackedOnPoints=S,this._points=c,this._step=L,this._valueOrigin=x,t.get("triggerLineEvent")&&(this.packEventData(t,g),y&&this.packEventData(t,y))},e.prototype.packEventData=function(t,i){jt(i).eventData={componentType:"series",componentSubType:"line",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"line"}},e.prototype.highlight=function(t,i,r,a){var o=t.getData(),s=Bo(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 c=l[s*2],h=l[s*2+1];if(isNaN(c)||isNaN(h)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(c,h))return;var f=t.get("zlevel")||0,d=t.get("z")||0;u=new jc(o,s),u.x=c,u.y=h,u.setZ(f,d);var g=u.getSymbolPath().getTextContent();g&&(g.zlevel=f,g.z=d,g.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else Pe.prototype.highlight.call(this,t,i,r,a)},e.prototype.downplay=function(t,i,r,a){var o=t.getData(),s=Bo(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 Pe.prototype.downplay.call(this,t,i,r,a)},e.prototype._changePolyState=function(t){var i=this._polygon;jp(this._polyline,t),i&&jp(i,t)},e.prototype._newPolyline=function(t){var i=this._polyline;return i&&this._lineGroup.remove(i),i=new OW({shape:{points:t},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(i),this._polyline=i,i},e.prototype._newPolygon=function(t,i){var r=this._polygon;return r&&this._lineGroup.remove(r),r=new XA({shape:{points:t,stackedOnPoints:i},segmentIgnoreThreshold:2}),this._lineGroup.add(r),this._polygon=r,r},e.prototype._initSymbolLabelAnimation=function(t,i,r){var a,o,s=i.getBaseAxis(),l=s.inverse;i.type==="cartesian2d"?(a=s.isHorizontal(),o=!1):i.type==="polar"&&(a=s.dim==="angle",o=!0);var u=t.hostModel,c=u.get("animationDuration");Ot(c)&&(c=c(null));var h=u.get("animationDelay")||0,f=Ot(h)?h(null):h;t.eachItemGraphicEl(function(d,g){var y=d;if(y){var _=[d.x,d.y],v=void 0,p=void 0,x=void 0;if(r)if(o){var b=r,S=i.pointToCoord(_);a?(v=b.startAngle,p=b.endAngle,x=-S[1]/180*Math.PI):(v=b.r0,p=b.r,x=S[0])}else{var M=r;a?(v=M.x,p=M.x+M.width,x=d.x):(v=M.y+M.height,p=M.y,x=d.y)}var I=p===v?0:(x-v)/(p-v);l&&(I=1-I);var A=Ot(h)?h(g):c*I+f,C=y.getSymbolPath(),L=C.getTextContent();y.attr({scaleX:0,scaleY:0}),y.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:A}),L&&L.animateFrom({style:{opacity:0}},{duration:300,delay:A}),C.disableLabelAnimation=!0}})},e.prototype._initOrUpdateEndLabel=function(t,i,r){var a=t.getModel("endLabel");if(tC(t)){var o=t.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 c=UW(l);c>=0&&(kn(s,gn(t,"endLabel"),{inheritColor:r,labelFetcher:t,labelDataIndex:c,defaultText:function(h,f,d){return d!=null?FA(o,d):Vl(o,h)},enableTextSetter:!0},ZW(a,i)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},e.prototype._endLabelOnDuring=function(t,i,r,a,o,s,l){var u=this._endLabel,c=this._polyline;if(u){t<1&&a.originalX==null&&(a.originalX=u.x,a.originalY=u.y);var h=r.getLayout("points"),f=r.hostModel,d=f.get("connectNulls"),g=s.get("precision"),y=s.get("distance")||0,_=l.getBaseAxis(),v=_.isHorizontal(),p=_.inverse,x=i.shape,b=p?v?x.x:x.y+x.height:v?x.x+x.width:x.y,S=(v?y:0)*(p?-1:1),M=(v?0:-y)*(p?-1:1),I=v?"x":"y",A=XW(h,b,I),C=A.range,L=C[1]-C[0],R=void 0;if(L>=1){if(L>1&&!d){var D=QA(h,C[0]);u.attr({x:D[0]+S,y:D[1]+M}),o&&(R=f.getRawValue(C[0]))}else{var D=c.getPointOn(b,I);D&&u.attr({x:D[0]+S,y:D[1]+M});var N=f.getRawValue(C[0]),k=f.getRawValue(C[1]);o&&(R=c2(r,g,N,k,A.t))}a.lastFrameIndex=C[0]}else{var O=t===1||a.lastFrameIndex>0?C[0]:0,D=QA(h,O);o&&(R=f.getRawValue(O)),u.attr({x:D[0]+S,y:D[1]+M})}if(o){var F=vl(u);typeof F.setLabelText=="function"&&F.setLabelText(R)}}},e.prototype._doUpdateAnimation=function(t,i,r,a,o,s,l){var u=this._polyline,c=this._polygon,h=t.hostModel,f=EW(this._data,t,this._stackedOnPoints,i,this._coordSys,r,this._valueOrigin),d=f.current,g=f.stackedOnCurrent,y=f.next,_=f.stackedOnNext;if(o&&(g=ao(f.stackedOnCurrent,f.current,r,o,l),d=ao(f.current,null,r,o,l),_=ao(f.stackedOnNext,f.next,r,o,l),y=ao(f.next,null,r,o,l)),JA(d,y)>3e3||c&&JA(g,_)>3e3){u.stopAnimation(),u.setShape({points:y}),c&&(c.stopAnimation(),c.setShape({points:y,stackedOnPoints:_}));return}u.shape.__points=f.current,u.shape.points=d;var v={shape:{points:y}};f.current!==d&&(v.shape.__points=f.next),u.stopAnimation(),me(u,v,h),c&&(c.setShape({points:d,stackedOnPoints:g}),c.stopAnimation(),me(c,{shape:{stackedOnPoints:_}},h),u.shape.points!==c.shape.points&&(c.shape.points=u.shape.points));for(var p=[],x=f.status,b=0;b<x.length;b++){var S=x[b].cmd;if(S==="="){var M=t.getItemGraphicEl(x[b].idx1);M&&p.push({el:M,ptIdx:b})}}u.animators&&u.animators.length&&u.animators[0].during(function(){c&&c.dirtyShape();for(var I=u.shape.__points,A=0;A<p.length;A++){var C=p[A].el,L=p[A].ptIdx*2;C.x=I[L],C.y=I[L+1],C.markRedraw()}})},e.prototype.remove=function(t){var i=this.group,r=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),r&&r.eachItemGraphicEl(function(a,o){a.__temp&&(i.remove(a),r.setItemGraphicEl(o,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},e.type="line",e}(Pe);function Xc(n,e){return{seriesType:n,plan:Cl(),reset:function(t){var i=t.getData(),r=t.coordinateSystem,a=t.pipelineContext,o=e||a.large;if(r){var s=pt(r.dimensions,function(d){return i.mapDimension(d)}).slice(0,2),l=s.length,u=i.getCalculationInfo("stackResultDimension");no(i,s[0])&&(s[0]=u),no(i,s[1])&&(s[1]=u);var c=i.getStore(),h=i.getDimensionIndex(s[0]),f=i.getDimensionIndex(s[1]);return l&&{progress:function(d,g){for(var y=d.end-d.start,_=o&&Vr(y*l),v=[],p=[],x=d.start,b=0;x<d.end;x++){var S=void 0;if(l===1){var M=c.get(h,x);S=r.dataToPoint(M,null,p)}else v[0]=c.get(h,x),v[1]=c.get(f,x),S=r.dataToPoint(v,null,p);o?(_[b++]=S[0],_[b++]=S[1]):g.setItemLayout(x,S.slice())}o&&g.setLayout("points",_)}}}}}}var KW={average:function(n){for(var e=0,t=0,i=0;i<n.length;i++)isNaN(n[i])||(e+=n[i],t++);return t===0?NaN:e/t},sum:function(n){for(var e=0,t=0;t<n.length;t++)e+=n[t]||0;return e},max:function(n){for(var e=-1/0,t=0;t<n.length;t++)n[t]>e&&(e=n[t]);return isFinite(e)?e:NaN},min:function(n){for(var e=1/0,t=0;t<n.length;t++)n[t]<e&&(e=n[t]);return isFinite(e)?e:NaN},nearest:function(n){return n[0]}},YW=function(n){return Math.round(n.length/2)};function eC(n){return{seriesType:n,reset:function(e,t,i){var r=e.getData(),a=e.get("sampling"),o=e.coordinateSystem,s=r.count();if(s>10&&o.type==="cartesian2d"&&a){var l=o.getBaseAxis(),u=o.getOtherAxis(l),c=l.getExtent(),h=i.getDevicePixelRatio(),f=Math.abs(c[1]-c[0])*(h||1),d=Math.round(s/f);if(isFinite(d)&&d>1){a==="lttb"?e.setData(r.lttbDownSample(r.mapDimension(u.dim),1/d)):a==="minmax"&&e.setData(r.minmaxDownSample(r.mapDimension(u.dim),1/d));var g=void 0;Tt(a)?g=KW[a]:Ot(a)&&(g=a),g&&e.setData(r.downSample(r.mapDimension(u.dim),1/d,g,YW))}}}}}function JW(n){n.registerChartView(qW),n.registerSeriesModel(PW),n.registerLayout(Xc("line",!0)),n.registerVisual({seriesType:"line",reset:function(e){var t=e.getData(),i=e.getModel("lineStyle").getLineStyle();i&&!i.stroke&&(i.stroke=t.getVisual("style").fill),t.setVisual("legendLineStyle",i)}}),n.registerProcessor(n.PRIORITY.PROCESSOR.STATISTIC,eC("line"))}var Zc=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(t,i){return da(null,this,{useEncodeDefaulter:!0})},e.prototype.getMarkerPosition=function(t,i,r){var a=this.coordinateSystem;if(a&&a.clampData){var o=a.clampData(t),s=a.dataToPoint(o);if(r)E(a.getAxes(),function(f,d){if(f.type==="category"&&i!=null){var g=f.getTicksCoords(),y=f.getTickModel().get("alignWithLabel"),_=o[d],v=i[d]==="x1"||i[d]==="y1";if(v&&!y&&(_+=1),g.length<2)return;if(g.length===2){s[d]=f.toGlobalCoord(f.getExtent()[v?1:0]);return}for(var p=void 0,x=void 0,b=1,S=0;S<g.length;S++){var M=g[S].coord,I=S===g.length-1?g[S-1].tickValue+b:g[S].tickValue;if(I===_){x=M;break}else if(I<_)p=M;else if(p!=null&&I>_){x=(M+p)/2;break}S===1&&(b=I-g[0].tickValue)}x==null&&(p?p&&(x=g[g.length-1].coord):x=g[0].coord),s[d]=f.toGlobalCoord(x)}});else{var l=this.getData(),u=l.getLayout("offset"),c=l.getLayout("size"),h=a.getBaseAxis().isHorizontal()?0:1;s[h]+=u+c/2}return s}return[NaN,NaN]},e.type="series.__base_bar__",e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},e}(Oe);Oe.registerClass(Zc);var $W=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(){return da(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},e.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},e.prototype.getProgressiveThreshold=function(){var t=this.get("progressiveThreshold"),i=this.get("largeThreshold");return i>t&&(t=i),t},e.prototype.brushSelector=function(t,i,r){return r.rect(i.getItemLayout(t))},e.type="series.bar",e.dependencies=["grid","polar"],e.defaultOption=qa(Zc.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:"#212121"}},realtimeSort:!1}),e}(Zc),QW=function(){function n(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return n}(),nf=function(n){Q(e,n);function e(t){var i=n.call(this,t)||this;return i.type="sausage",i}return e.prototype.getDefaultShape=function(){return new QW},e.prototype.buildPath=function(t,i){var r=i.cx,a=i.cy,o=Math.max(i.r0||0,0),s=Math.max(i.r,0),l=(s-o)*.5,u=o+l,c=i.startAngle,h=i.endAngle,f=i.clockwise,d=Math.PI*2,g=f?h-c<d:c-h<d;g||(c=h-(f?d:-d));var y=Math.cos(c),_=Math.sin(c),v=Math.cos(h),p=Math.sin(h);g?(t.moveTo(y*o+r,_*o+a),t.arc(y*u+r,_*u+a,l,-Math.PI+c,c,!f)):t.moveTo(y*s+r,_*s+a),t.arc(r,a,s,c,h,!f),t.arc(v*u+r,p*u+a,l,h-Math.PI*2,h-Math.PI,!f),o!==0&&t.arc(r,a,o,h,c,f)},e}(re);function tG(n,e){e=e||{};var t=e.isRoundCap;return function(i,r,a){var o=r.position;if(!o||o instanceof Array)return Cp(i,r,a);var s=n(o),l=r.distance!=null?r.distance:5,u=this.shape,c=u.cx,h=u.cy,f=u.r,d=u.r0,g=(f+d)/2,y=u.startAngle,_=u.endAngle,v=(y+_)/2,p=t?Math.abs(f-d)/2:0,x=Math.cos,b=Math.sin,S=c+f*x(y),M=h+f*b(y),I="left",A="top";switch(s){case"startArc":S=c+(d-l)*x(v),M=h+(d-l)*b(v),I="center",A="top";break;case"insideStartArc":S=c+(d+l)*x(v),M=h+(d+l)*b(v),I="center",A="bottom";break;case"startAngle":S=c+g*x(y)+rf(y,l+p,!1),M=h+g*b(y)+af(y,l+p,!1),I="right",A="middle";break;case"insideStartAngle":S=c+g*x(y)+rf(y,-l+p,!1),M=h+g*b(y)+af(y,-l+p,!1),I="left",A="middle";break;case"middle":S=c+g*x(v),M=h+g*b(v),I="center",A="middle";break;case"endArc":S=c+(f+l)*x(v),M=h+(f+l)*b(v),I="center",A="bottom";break;case"insideEndArc":S=c+(f-l)*x(v),M=h+(f-l)*b(v),I="center",A="top";break;case"endAngle":S=c+g*x(_)+rf(_,l+p,!0),M=h+g*b(_)+af(_,l+p,!0),I="left",A="middle";break;case"insideEndAngle":S=c+g*x(_)+rf(_,-l+p,!0),M=h+g*b(_)+af(_,-l+p,!0),I="right",A="middle";break;default:return Cp(i,r,a)}return i=i||{},i.x=S,i.y=M,i.align=I,i.verticalAlign=A,i}}function eG(n,e,t,i){if(ve(i)){n.setTextConfig({rotation:i});return}else if(ht(e)){n.setTextConfig({rotation:0});return}var r=n.shape,a=r.clockwise?r.startAngle:r.endAngle,o=r.clockwise?r.endAngle:r.startAngle,s=(a+o)/2,l,u=t(e);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:n.setTextConfig({rotation:0});return}var c=Math.PI*1.5-l;u==="middle"&&c>Math.PI/2&&c<Math.PI*1.5&&(c-=Math.PI),n.setTextConfig({rotation:c})}function rf(n,e,t){return e*Math.sin(n)*(t?-1:1)}function af(n,e,t){return e*Math.cos(n)*(t?1:-1)}function Is(n,e,t){var i=n.get("borderRadius");if(i==null)return t?{cornerRadius:0}:null;ht(i)||(i=[i,i,i,i]);var r=Math.abs(e.r||0-e.r0||0);return{cornerRadius:pt(i,function(a){return ar(a,r)})}}var C0=Math.max,k0=Math.min;function nG(n,e){var t=n.getArea&&n.getArea();if(Ms(n,"cartesian2d")){var i=n.getBaseAxis();if(i.type!=="category"||!i.onBand){var r=e.getLayout("bandWidth");i.isHorizontal()?(t.x-=r,t.width+=r*2):(t.y-=r,t.height+=r*2)}}return t}var iG=function(n){Q(e,n);function e(){var t=n.call(this)||this;return t.type=e.type,t._isFirstFrame=!0,t}return e.prototype.render=function(t,i,r,a){this._model=t,this._removeOnRenderedListener(r),this._updateDrawMode(t);var o=t.get("coordinateSystem");(o==="cartesian2d"||o==="polar")&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(t,i,r):this._renderNormal(t,i,r,a))},e.prototype.incrementalPrepareRender=function(t){this._clear(),this._updateDrawMode(t),this._updateLargeClip(t)},e.prototype.incrementalRender=function(t,i){this._progressiveEls=[],this._incrementalRenderLarge(t,i)},e.prototype.eachRendered=function(t){Za(this._progressiveEls||this.group,t)},e.prototype._updateDrawMode=function(t){var i=t.pipelineContext.large;(this._isLargeDraw==null||i!==this._isLargeDraw)&&(this._isLargeDraw=i,this._clear())},e.prototype._renderNormal=function(t,i,r,a){var o=this.group,s=t.getData(),l=this._data,u=t.coordinateSystem,c=u.getBaseAxis(),h;u.type==="cartesian2d"?h=c.isHorizontal():u.type==="polar"&&(h=c.dim==="angle");var f=t.isAnimationEnabled()?t:null,d=rG(t,u);d&&this._enableRealtimeSort(d,s,r);var g=t.get("clip",!0)||d,y=nG(u,s);o.removeClipPath();var _=t.get("roundCap",!0),v=t.get("showBackground",!0),p=t.getModel("backgroundStyle"),x=p.get("borderRadius")||0,b=[],S=this._backgroundEls,M=a&&a.isInitSort,I=a&&a.type==="changeAxisOrder";function A(R){var D=of[u.type](s,R),N=hG(u,h,D);return N.useStyle(p.getItemStyle()),u.type==="cartesian2d"?N.setShape("r",x):N.setShape("cornerRadius",x),b[R]=N,N}s.diff(l).add(function(R){var D=s.getItemModel(R),N=of[u.type](s,R,D);if(v&&A(R),!(!s.hasValue(R)||!oC[u.type](N))){var k=!1;g&&(k=nC[u.type](y,N));var O=iC[u.type](t,s,R,N,h,f,c.model,!1,_);d&&(O.forceLabelAnimation=!0),lC(O,s,R,D,N,t,h,u.type==="polar"),M?O.attr({shape:N}):d?rC(d,f,O,N,R,h,!1,!1):We(O,{shape:N},t,R),s.setItemGraphicEl(R,O),o.add(O),O.ignore=k}}).update(function(R,D){var N=s.getItemModel(R),k=of[u.type](s,R,N);if(v){var O=void 0;S.length===0?O=A(D):(O=S[D],O.useStyle(p.getItemStyle()),u.type==="cartesian2d"?O.setShape("r",x):O.setShape("cornerRadius",x),b[R]=O);var F=of[u.type](s,R),G=pC(h,F,u);me(O,{shape:G},f,R)}var q=l.getItemGraphicEl(D);if(!s.hasValue(R)||!oC[u.type](k)){o.remove(q);return}var j=!1;if(g&&(j=nC[u.type](y,k),j&&o.remove(q)),q?sr(q):q=iC[u.type](t,s,R,k,h,f,c.model,!!q,_),d&&(q.forceLabelAnimation=!0),I){var J=q.getTextContent();if(J){var H=vl(J);H.prevValue!=null&&(H.prevValue=H.value)}}else lC(q,s,R,N,k,t,h,u.type==="polar");M?q.attr({shape:k}):d?rC(d,f,q,k,R,h,!0,I):me(q,{shape:k},t,R,null),s.setItemGraphicEl(R,q),q.ignore=j,o.add(q)}).remove(function(R){var D=l.getItemGraphicEl(R);D&&sc(D,t,R)}).execute();var C=this._backgroundGroup||(this._backgroundGroup=new Gt);C.removeAll();for(var L=0;L<b.length;++L)C.add(b[L]);o.add(C),this._backgroundEls=b,this._data=s},e.prototype._renderLarge=function(t,i,r){this._clear(),cC(t,this.group),this._updateLargeClip(t)},e.prototype._incrementalRenderLarge=function(t,i){this._removeBackground(),cC(i,this.group,this._progressiveEls,!0)},e.prototype._updateLargeClip=function(t){var i=t.get("clip",!0)&&Uc(t.coordinateSystem,!1,t),r=this.group;i?r.setClipPath(i):r.removeClipPath()},e.prototype._enableRealtimeSort=function(t,i,r){var a=this;if(i.count()){var o=t.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(i,t,r),this._isFirstFrame=!1;else{var s=function(l){var u=i.getItemGraphicEl(l),c=u&&u.shape;return c&&Math.abs(o.isHorizontal()?c.height:c.width)||0};this._onRendered=function(){a._updateSortWithinSameData(i,s,o,r)},r.getZr().on("rendered",this._onRendered)}}},e.prototype._dataSort=function(t,i,r){var a=[];return t.each(t.mapDimension(i.dim),function(o,s){var l=r(s);l=l??NaN,a.push({dataIndex:s,mappedValue:l,ordinalNumber:o})}),a.sort(function(o,s){return s.mappedValue-o.mappedValue}),{ordinalNumbers:pt(a,function(o){return o.ordinalNumber})}},e.prototype._isOrderChangedWithinSameData=function(t,i,r){for(var a=r.scale,o=t.mapDimension(r.dim),s=Number.MAX_VALUE,l=0,u=a.getOrdinalMeta().categories.length;l<u;++l){var c=t.rawIndexOf(o,a.getRawOrdinalNumber(l)),h=c<0?Number.MIN_VALUE:i(t.indexOfRawIndex(c));if(h>s)return!0;s=h}return!1},e.prototype._isOrderDifferentInView=function(t,i){for(var r=i.scale,a=r.getExtent(),o=Math.max(0,a[0]),s=Math.min(a[1],r.getOrdinalMeta().categories.length-1);o<=s;++o)if(t.ordinalNumbers[o]!==r.getRawOrdinalNumber(o))return!0},e.prototype._updateSortWithinSameData=function(t,i,r,a){if(this._isOrderChangedWithinSameData(t,i,r)){var o=this._dataSort(t,r,i);this._isOrderDifferentInView(o,r)&&(this._removeOnRenderedListener(a),a.dispatchAction({type:"changeAxisOrder",componentType:r.dim+"Axis",axisId:r.index,sortInfo:o}))}},e.prototype._dispatchInitSort=function(t,i,r){var a=i.baseAxis,o=this._dataSort(t,a,function(s){return t.get(t.mapDimension(i.otherAxis.dim),s)});r.dispatchAction({type:"changeAxisOrder",componentType:a.dim+"Axis",isInitSort:!0,axisId:a.index,sortInfo:o})},e.prototype.remove=function(t,i){this._clear(this._model),this._removeOnRenderedListener(i)},e.prototype.dispose=function(t,i){this._removeOnRenderedListener(i)},e.prototype._removeOnRenderedListener=function(t){this._onRendered&&(t.getZr().off("rendered",this._onRendered),this._onRendered=null)},e.prototype._clear=function(t){var i=this.group,r=this._data;t&&t.isAnimationEnabled()&&r&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],r.eachItemGraphicEl(function(a){sc(a,t,jt(a).dataIndex)})):i.removeAll(),this._data=null,this._isFirstFrame=!0},e.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},e.type="bar",e}(Pe),nC={cartesian2d:function(n,e){var t=e.width<0?-1:1,i=e.height<0?-1:1;t<0&&(e.x+=e.width,e.width=-e.width),i<0&&(e.y+=e.height,e.height=-e.height);var r=n.x+n.width,a=n.y+n.height,o=C0(e.x,n.x),s=k0(e.x+e.width,r),l=C0(e.y,n.y),u=k0(e.y+e.height,a),c=s<o,h=u<l;return e.x=c&&o>r?s:o,e.y=h&&l>a?u:l,e.width=c?0:s-o,e.height=h?0:u-l,t<0&&(e.x+=e.width,e.width=-e.width),i<0&&(e.y+=e.height,e.height=-e.height),c||h},polar:function(n,e){var t=e.r0<=e.r?1:-1;if(t<0){var i=e.r;e.r=e.r0,e.r0=i}var r=k0(e.r,n.r),a=C0(e.r0,n.r0);e.r=r,e.r0=a;var o=r-a<0;if(t<0){var i=e.r;e.r=e.r0,e.r0=i}return o}},iC={cartesian2d:function(n,e,t,i,r,a,o,s,l){var u=new de({shape:lt({},i),z2:1});if(u.__dataIndex=t,u.name="item",a){var c=u.shape,h=r?"height":"width";c[h]=0}return u},polar:function(n,e,t,i,r,a,o,s,l){var u=!r&&l?nf:qn,c=new u({shape:i,z2:1});c.name="item";var h=sC(r);if(c.calculateTextPosition=tG(h,{isRoundCap:u===nf}),a){var f=c.shape,d=r?"r":"endAngle",g={};f[d]=r?i.r0:i.startAngle,g[d]=i[d],(s?me:We)(c,{shape:g},a)}return c}};function rG(n,e){var t=n.get("realtimeSort",!0),i=e.getBaseAxis();if(t&&i.type==="category"&&e.type==="cartesian2d")return{baseAxis:i,otherAxis:e.getOtherAxis(i)}}function rC(n,e,t,i,r,a,o,s){var l,u;a?(u={x:i.x,width:i.width},l={y:i.y,height:i.height}):(u={y:i.y,height:i.height},l={x:i.x,width:i.width}),s||(o?me:We)(t,{shape:l},e,r,null);var c=e?n.baseAxis.model:null;(o?me:We)(t,{shape:u},c,r)}function aC(n,e){for(var t=0;t<e.length;t++)if(!isFinite(n[e[t]]))return!0;return!1}var aG=["x","y","width","height"],oG=["cx","cy","r","startAngle","endAngle"],oC={cartesian2d:function(n){return!aC(n,aG)},polar:function(n){return!aC(n,oG)}},of={cartesian2d:function(n,e,t){var i=n.getItemLayout(e),r=t?lG(t,i):0,a=i.width>0?1:-1,o=i.height>0?1:-1;return{x:i.x+a*r/2,y:i.y+o*r/2,width:i.width-a*r,height:i.height-o*r}},polar:function(n,e,t){var i=n.getItemLayout(e);return{cx:i.cx,cy:i.cy,r0:i.r0,r:i.r,startAngle:i.startAngle,endAngle:i.endAngle,clockwise:i.clockwise}}};function sG(n){return n.startAngle!=null&&n.endAngle!=null&&n.startAngle===n.endAngle}function sC(n){return function(e){var t=e?"Arc":"Angle";return function(i){switch(i){case"start":case"insideStart":case"end":case"insideEnd":return i+t;default:return i}}}(n)}function lC(n,e,t,i,r,a,o,s){var l=e.getItemVisual(t,"style");if(s){if(!a.get("roundCap")){var u=n.shape,c=Is(i.getModel("itemStyle"),u,!0);lt(u,c),n.setShape(u)}}else{var h=i.get(["itemStyle","borderRadius"])||0;n.setShape("r",h)}n.useStyle(l);var f=i.getShallow("cursor");f&&n.attr("cursor",f);var d=s?o?r.r>=r.r0?"endArc":"startArc":r.endAngle>=r.startAngle?"endAngle":"startAngle":o?r.height>=0?"bottom":"top":r.width>=0?"right":"left",g=gn(i);kn(n,g,{labelFetcher:a,labelDataIndex:t,defaultText:Vl(a.getData(),t),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:d});var y=n.getTextContent();if(s&&y){var _=i.get(["label","position"]);n.textConfig.inside=_==="middle"?!0:null,eG(n,_==="outside"?d:_,sC(o),i.get(["label","rotate"]))}LS(y,g,a.getRawValue(t),function(p){return FA(e,p)});var v=i.getModel(["emphasis"]);Ue(n,v.get("focus"),v.get("blurScope"),v.get("disabled")),Cn(n,i),sG(r)&&(n.style.fill="none",n.style.stroke="none",E(n.states,function(p){p.style&&(p.style.fill=p.style.stroke="none")}))}function lG(n,e){var t=n.get(["itemStyle","borderColor"]);if(!t||t==="none")return 0;var i=n.get(["itemStyle","borderWidth"])||0,r=isNaN(e.width)?Number.MAX_VALUE:Math.abs(e.width),a=isNaN(e.height)?Number.MAX_VALUE:Math.abs(e.height);return Math.min(i,r,a)}var uG=function(){function n(){}return n}(),uC=function(n){Q(e,n);function e(t){var i=n.call(this,t)||this;return i.type="largeBar",i}return e.prototype.getDefaultShape=function(){return new uG},e.prototype.buildPath=function(t,i){for(var r=i.points,a=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,c=0;c<r.length;c+=3)l[a]=u,l[o]=r[c+2],s[a]=r[c+a],s[o]=r[c+o],t.rect(s[0],s[1],l[0],l[1])},e}(re);function cC(n,e,t,i){var r=n.getData(),a=r.getLayout("valueAxisHorizontal")?1:0,o=r.getLayout("largeDataIndices"),s=r.getLayout("size"),l=n.getModel("backgroundStyle"),u=r.getLayout("largeBackgroundPoints");if(u){var c=new uC({shape:{points:u},incremental:!!i,silent:!0,z2:0});c.baseDimIdx=a,c.largeDataIndices=o,c.barWidth=s,c.useStyle(l.getItemStyle()),e.add(c),t&&t.push(c)}var h=new uC({shape:{points:r.getLayout("largePoints")},incremental:!!i,ignoreCoarsePointer:!0,z2:1});h.baseDimIdx=a,h.largeDataIndices=o,h.barWidth=s,e.add(h),h.useStyle(r.getVisual("style")),h.style.stroke=null,jt(h).seriesIndex=n.seriesIndex,n.get("silent")||(h.on("mousedown",hC),h.on("mousemove",hC)),t&&t.push(h)}var hC=Im(function(n){var e=this,t=cG(e,n.offsetX,n.offsetY);jt(e).dataIndex=t>=0?t:null},30,!1);function cG(n,e,t){for(var i=n.baseDimIdx,r=1-i,a=n.shape.points,o=n.largeDataIndices,s=[],l=[],u=n.barWidth,c=0,h=a.length/3;c<h;c++){var f=c*3;if(l[i]=u,l[r]=a[f+2],s[i]=a[f+i],s[r]=a[f+r],l[r]<0&&(s[r]+=l[r],l[r]=-l[r]),e>=s[0]&&e<=s[0]+l[0]&&t>=s[1]&&t<=s[1]+l[1])return o[c]}return-1}function pC(n,e,t){if(Ms(t,"cartesian2d")){var i=e,r=t.getArea();return{x:n?i.x:r.x,y:n?r.y:i.y,width:n?i.width:r.width,height:n?r.height:i.height}}else{var r=t.getArea(),a=e;return{cx:r.cx,cy:r.cy,r0:n?r.r0:a.r0,r:n?r.r:a.r,startAngle:n?a.startAngle:0,endAngle:n?a.endAngle:Math.PI*2}}}function hG(n,e,t){var i=n.type==="polar"?qn:de;return new i({shape:pC(e,t,n),silent:!0,z2:0})}function pG(n){n.registerChartView(iG),n.registerSeriesModel($W),n.registerLayout(n.PRIORITY.VISUAL.LAYOUT,Zt(kT,"bar")),n.registerLayout(n.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,LT("bar")),n.registerProcessor(n.PRIORITY.PROCESSOR.STATISTIC,eC("bar")),n.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(e,t){var i=e.componentType||"series";t.eachComponent({mainType:i,query:e},function(r){e.sortInfo&&r.axis.setCategorySortInfo(e.sortInfo)})})}var dC=Math.PI*2,sf=Math.PI/180;function fC(n,e){return un(n.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function gC(n,e){var t=fC(n,e),i=n.get("center"),r=n.get("radius");ht(r)||(r=[0,r]);var a=Mt(t.width,e.getWidth()),o=Mt(t.height,e.getHeight()),s=Math.min(a,o),l=Mt(r[0],s/2),u=Mt(r[1],s/2),c,h,f=n.coordinateSystem;if(f){var d=f.dataToPoint(i);c=d[0]||0,h=d[1]||0}else ht(i)||(i=[i,i]),c=Mt(i[0],a)+t.x,h=Mt(i[1],o)+t.y;return{cx:c,cy:h,r0:l,r:u}}function dG(n,e,t){e.eachSeriesByType(n,function(i){var r=i.getData(),a=r.mapDimension("value"),o=fC(i,t),s=gC(i,t),l=s.cx,u=s.cy,c=s.r,h=s.r0,f=-i.get("startAngle")*sf,d=i.get("endAngle"),g=i.get("padAngle")*sf;d=d==="auto"?f-dC:-d*sf;var y=i.get("minAngle")*sf,_=y+g,v=0;r.each(a,function(G){!isNaN(G)&&v++});var p=r.getSum(a),x=Math.PI/(p||v)*2,b=i.get("clockwise"),S=i.get("roseType"),M=i.get("stillShowZeroSum"),I=r.getDataExtent(a);I[0]=0;var A=b?1:-1,C=[f,d],L=A*g/2;by(C,!b),f=C[0],d=C[1];var R=vC(i);R.startAngle=f,R.endAngle=d,R.clockwise=b;var D=Math.abs(d-f),N=D,k=0,O=f;if(r.setLayout({viewRect:o,r:c}),r.each(a,function(G,q){var j;if(isNaN(G)){r.setItemLayout(q,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:b,cx:l,cy:u,r0:h,r:S?NaN:c});return}S!=="area"?j=p===0&&M?x:G*x:j=D/v,j<_?(j=_,N-=_):k+=G;var J=O+A*j,H=0,K=0;g>j?(H=O+A*j/2,K=H):(H=O+L,K=J-L),r.setItemLayout(q,{angle:j,startAngle:H,endAngle:K,clockwise:b,cx:l,cy:u,r0:h,r:S?Ae(G,I,[h,c]):c}),O=J}),N<dC&&v)if(N<=.001){var F=D/v;r.each(a,function(G,q){if(!isNaN(G)){var j=r.getItemLayout(q);j.angle=F;var J=0,H=0;F<g?(J=f+A*(q+1/2)*F,H=J):(J=f+A*q*F+L,H=f+A*(q+1)*F-L),j.startAngle=J,j.endAngle=H}})}else x=N/k,O=f,r.each(a,function(G,q){if(!isNaN(G)){var j=r.getItemLayout(q),J=j.angle===_?_:G*x,H=0,K=0;J<g?(H=O+A*J/2,K=H):(H=O+L,K=O+A*J-L),j.startAngle=H,j.endAngle=K,O+=A*J}})})}var vC=pe();function qc(n){return{seriesType:n,reset:function(e,t){var i=t.findComponents({mainType:"legend"});if(!(!i||!i.length)){var r=e.getData();r.filterSelf(function(a){for(var o=r.getName(a),s=0;s<i.length;s++)if(!i[s].isSelected(o))return!1;return!0})}}}}var fG=Math.PI/180;function yC(n,e,t,i,r,a,o,s,l,u){if(n.length<2)return;function c(y){for(var _=y.rB,v=_*_,p=0;p<y.list.length;p++){var x=y.list[p],b=Math.abs(x.label.y-t),S=i+x.len,M=S*S,I=Math.sqrt(Math.abs((1-b*b/v)*M)),A=e+(I+x.len2)*r,C=A-x.label.x,L=x.targetTextWidth-C*r;mC(x,L,!0),x.label.x=A}}function h(y){for(var _={list:[],maxY:0},v={list:[],maxY:0},p=0;p<y.length;p++)if(y[p].labelAlignTo==="none"){var x=y[p],b=x.label.y>t?v:_,S=Math.abs(x.label.y-t);if(S>=b.maxY){var M=x.label.x-e-x.len2*r,I=i+x.len,A=Math.abs(M)<I?Math.sqrt(S*S/(1-M*M/I/I)):I;b.rB=A,b.maxY=S}b.list.push(x)}c(_),c(v)}for(var f=n.length,d=0;d<f;d++)if(n[d].position==="outer"&&n[d].labelAlignTo==="labelLine"){var g=n[d].label.x-u;n[d].linePoints[1][0]+=g,n[d].label.x=u}oA(n,l,l+o)&&h(n)}function gG(n,e,t,i,r,a,o,s){for(var l=[],u=[],c=Number.MAX_VALUE,h=-Number.MAX_VALUE,f=0;f<n.length;f++){var d=n[f].label;L0(n[f])||(d.x<e?(c=Math.min(c,d.x),l.push(n[f])):(h=Math.max(h,d.x),u.push(n[f])))}for(var f=0;f<n.length;f++){var g=n[f];if(!L0(g)&&g.linePoints){if(g.labelStyleWidth!=null)continue;var d=g.label,y=g.linePoints,_=void 0;g.labelAlignTo==="edge"?d.x<e?_=y[2][0]-g.labelDistance-o-g.edgeDistance:_=o+r-g.edgeDistance-y[2][0]-g.labelDistance:g.labelAlignTo==="labelLine"?d.x<e?_=c-o-g.bleedMargin:_=o+r-h-g.bleedMargin:d.x<e?_=d.x-o-g.bleedMargin:_=o+r-d.x-g.bleedMargin,g.targetTextWidth=_,mC(g,_)}}yC(u,e,t,i,1,r,a,o,s,h),yC(l,e,t,i,-1,r,a,o,s,c);for(var f=0;f<n.length;f++){var g=n[f];if(!L0(g)&&g.linePoints){var d=g.label,y=g.linePoints,v=g.labelAlignTo==="edge",p=d.style.padding,x=p?p[1]+p[3]:0,b=d.style.backgroundColor?0:x,S=g.rect.width+b,M=y[1][0]-y[2][0];v?d.x<e?y[2][0]=o+g.edgeDistance+S+g.labelDistance:y[2][0]=o+r-g.edgeDistance-S-g.labelDistance:(d.x<e?y[2][0]=d.x+g.labelDistance:y[2][0]=d.x-g.labelDistance,y[1][0]=y[2][0]+M),y[1][1]=y[2][1]=d.y}}}function mC(n,e,t){if(t===void 0&&(t=!1),n.labelStyleWidth==null){var i=n.label,r=i.style,a=n.rect,o=r.backgroundColor,s=r.padding,l=s?s[1]+s[3]:0,u=r.overflow,c=a.width+(o?0:l);if(e<c||t){var h=a.height;if(u&&u.match("break")){i.setStyle("backgroundColor",null),i.setStyle("width",e-l);var f=i.getBoundingRect();i.setStyle("width",Math.ceil(f.width)),i.setStyle("backgroundColor",o)}else{var d=e-l,g=e<c?d:t?d>n.unconstrainedWidth?null:d:null;i.setStyle("width",g)}var y=i.getBoundingRect();a.width=y.width;var _=(i.style.margin||0)+2.1;a.height=y.height+_,a.y-=(a.height-h)/2}}}function L0(n){return n.position==="center"}function vG(n){var e=n.getData(),t=[],i,r,a=!1,o=(n.get("minShowLabelAngle")||0)*fG,s=e.getLayout("viewRect"),l=e.getLayout("r"),u=s.width,c=s.x,h=s.y,f=s.height;function d(M){M.ignore=!0}function g(M){if(!M.ignore)return!0;for(var I in M.states)if(M.states[I].ignore===!1)return!0;return!1}e.each(function(M){var I=e.getItemGraphicEl(M),A=I.shape,C=I.getTextContent(),L=I.getTextGuideLine(),R=e.getItemModel(M),D=R.getModel("label"),N=D.get("position")||R.get(["emphasis","label","position"]),k=D.get("distanceToLabelLine"),O=D.get("alignTo"),F=Mt(D.get("edgeDistance"),u),G=D.get("bleedMargin"),q=R.getModel("labelLine"),j=q.get("length");j=Mt(j,u);var J=q.get("length2");if(J=Mt(J,u),Math.abs(A.endAngle-A.startAngle)<o){E(C.states,d),C.ignore=!0,L&&(E(L.states,d),L.ignore=!0);return}if(g(C)){var H=(A.startAngle+A.endAngle)/2,K=Math.cos(H),ut=Math.sin(H),ot,at,Nt,Yt;i=A.cx,r=A.cy;var wt=N==="inside"||N==="inner";if(N==="center")ot=A.cx,at=A.cy,Yt="center";else{var xt=(wt?(A.r+A.r0)/2*K:A.r*K)+i,zt=(wt?(A.r+A.r0)/2*ut:A.r*ut)+r;if(ot=xt+K*3,at=zt+ut*3,!wt){var bt=xt+K*(j+l-A.r),Pt=zt+ut*(j+l-A.r),ae=bt+(K<0?-1:1)*J,z=Pt;O==="edge"?ot=K<0?c+F:c+u-F:ot=ae+(K<0?-k:k),at=z,Nt=[[xt,zt],[bt,Pt],[ae,z]]}Yt=wt?"center":O==="edge"?K>0?"right":"left":K>0?"left":"right"}var st=Math.PI,rt=0,Z=D.get("rotate");if(ve(Z))rt=Z*(st/180);else if(N==="center")rt=0;else if(Z==="radial"||Z===!0){var U=K<0?-H+st:-H;rt=U}else if(Z==="tangential"&&N!=="outside"&&N!=="outer"){var tt=Math.atan2(K,ut);tt<0&&(tt=st*2+tt);var ft=ut>0;ft&&(tt=st+tt),rt=tt-st}if(a=!!rt,C.x=ot,C.y=at,C.rotation=rt,C.setStyle({verticalAlign:"middle"}),wt){C.setStyle({align:Yt});var gt=C.states.select;gt&&(gt.x+=C.x,gt.y+=C.y)}else{var it=C.getBoundingRect().clone();it.applyTransform(C.getComputedTransform());var It=(C.style.margin||0)+2.1;it.y-=It/2,it.height+=It,t.push({label:C,labelLine:L,position:N,len:j,len2:J,minTurnAngle:q.get("minTurnAngle"),maxSurfaceAngle:q.get("maxSurfaceAngle"),surfaceNormal:new Jt(K,ut),linePoints:Nt,textAlign:Yt,labelDistance:k,labelAlignTo:O,edgeDistance:F,bleedMargin:G,rect:it,unconstrainedWidth:it.width,labelStyleWidth:C.style.width})}I.setTextConfig({inside:wt})}}),!a&&n.get("avoidLabelOverlap")&&gG(t,i,r,l,u,f,c,h);for(var y=0;y<t.length;y++){var _=t[y],v=_.label,p=_.labelLine,x=isNaN(v.x)||isNaN(v.y);if(v){v.setStyle({align:_.textAlign}),x&&(E(v.states,d),v.ignore=!0);var b=v.states.select;b&&(b.x+=v.x,b.y+=v.y)}if(p){var S=_.linePoints;x||!S?(E(p.states,d),p.ignore=!0):(iA(S,_.minTurnAngle),VF(S,_.surfaceNormal,_.maxSurfaceAngle),p.setShape({points:S}),v.__hostTarget.textGuideLineConfig={anchor:new Jt(S[0][0],S[0][1])})}}}var yG=function(n){Q(e,n);function e(t,i,r){var a=n.call(this)||this;a.z2=2;var o=new fe;return a.setTextContent(o),a.updateData(t,i,r,!0),a}return e.prototype.updateData=function(t,i,r,a){var o=this,s=t.hostModel,l=t.getItemModel(i),u=l.getModel("emphasis"),c=t.getItemLayout(i),h=lt(Is(l.getModel("itemStyle"),c,!0),c);if(isNaN(h.startAngle)){o.setShape(h);return}if(a){o.setShape(h);var f=s.getShallow("animationType");s.ecModel.ssr?(We(o,{scaleX:0,scaleY:0},s,{dataIndex:i,isFrom:!0}),o.originX=h.cx,o.originY=h.cy):f==="scale"?(o.shape.r=c.r0,We(o,{shape:{r:c.r}},s,i)):r!=null?(o.setShape({startAngle:r,endAngle:r}),We(o,{shape:{startAngle:c.startAngle,endAngle:c.endAngle}},s,i)):(o.shape.endAngle=c.startAngle,me(o,{shape:{endAngle:c.endAngle}},s,i))}else sr(o),me(o,{shape:h},s,i);o.useStyle(t.getItemVisual(i,"style")),Cn(o,l);var d=(c.startAngle+c.endAngle)/2,g=s.get("selectedOffset"),y=Math.cos(d)*g,_=Math.sin(d)*g,v=l.getShallow("cursor");v&&o.attr("cursor",v),this._updateLabel(s,t,i),o.ensureState("emphasis").shape=lt({r:c.r+(u.get("scale")&&u.get("scaleSize")||0)},Is(u.getModel("itemStyle"),c)),lt(o.ensureState("select"),{x:y,y:_,shape:Is(l.getModel(["select","itemStyle"]),c)}),lt(o.ensureState("blur"),{shape:Is(l.getModel(["blur","itemStyle"]),c)});var p=o.getTextGuideLine(),x=o.getTextContent();p&<(p.ensureState("select"),{x:y,y:_}),lt(x.ensureState("select"),{x:y,y:_}),Ue(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(t,i,r){var a=this,o=i.getItemModel(r),s=o.getModel("labelLine"),l=i.getItemVisual(r,"style"),u=l&&l.fill,c=l&&l.opacity;kn(a,gn(o),{labelFetcher:i.hostModel,labelDataIndex:r,inheritColor:u,defaultOpacity:c,defaultText:t.getFormattedLabel(r,"normal")||i.getName(r)});var h=a.getTextContent();a.setTextConfig({position:null,rotation:null}),h.attr({z2:10});var f=t.get(["label","position"]);if(f!=="outside"&&f!=="outer")a.removeTextGuideLine();else{var d=this.getTextGuideLine();d||(d=new Yn,this.setTextGuideLine(d)),l0(this,u0(o),{stroke:u,opacity:wr(s.get(["lineStyle","opacity"]),c,1)})}},e}(qn),mG=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.ignoreLabelLineUpdate=!0,t}return e.prototype.render=function(t,i,r,a){var o=t.getData(),s=this._data,l=this.group,u;if(!s&&o.count()>0){for(var c=o.getItemLayout(0),h=1;isNaN(c&&c.startAngle)&&h<o.count();++h)c=o.getItemLayout(h);c&&(u=c.startAngle)}if(this._emptyCircleSector&&l.remove(this._emptyCircleSector),o.count()===0&&t.get("showEmptyCircle")){var f=vC(t),d=new qn({shape:lt(gC(t,r),f)});d.useStyle(t.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=d,l.add(d)}o.diff(s).add(function(g){var y=new yG(o,g,u);o.setItemGraphicEl(g,y),l.add(y)}).update(function(g,y){var _=s.getItemGraphicEl(y);_.updateData(o,g,u),_.off("click"),l.add(_),o.setItemGraphicEl(g,_)}).remove(function(g){var y=s.getItemGraphicEl(g);sc(y,t,g)}).execute(),vG(t),t.get("animationTypeUpdate")!=="expansion"&&(this._data=o)},e.prototype.dispose=function(){},e.prototype.containPoint=function(t,i){var r=i.getData(),a=r.getItemLayout(0);if(a){var o=t[0]-a.cx,s=t[1]-a.cy,l=Math.sqrt(o*o+s*s);return l<=a.r&&l>=a.r0}},e.type="pie",e}(Pe);function Fl(n,e,t){e=ht(e)&&{coordDimensions:e}||lt({encodeDefine:n.getEncode()},e);var i=n.getSource(),r=zc(i,e).dimensions,a=new Jn(r,n);return a.initData(i,t),a}var Kc=function(){function n(e,t){this._getDataWithEncodedVisual=e,this._getRawData=t}return n.prototype.getAllNames=function(){var e=this._getRawData();return e.mapArray(e.getName)},n.prototype.containName=function(e){var t=this._getRawData();return t.indexOfName(e)>=0},n.prototype.indexOfName=function(e){var t=this._getDataWithEncodedVisual();return t.indexOfName(e)},n.prototype.getItemVisual=function(e,t){var i=this._getDataWithEncodedVisual();return i.getItemVisual(e,t)},n}(),_G=pe(),xG=function(n){Q(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.init=function(t){n.prototype.init.apply(this,arguments),this.legendVisualProvider=new Kc(Ct(this.getData,this),Ct(this.getRawData,this)),this._defaultLabelLine(t)},e.prototype.mergeOption=function(){n.prototype.mergeOption.apply(this,arguments)},e.prototype.getInitialData=function(){return Fl(this,{coordDimensions:["value"],encodeDefaulter:Zt(rm,this)})},e.prototype.getDataParams=function(t){var i=this.getData(),r=_G(i),a=r.seats;if(!a){var o=[];i.each(i.mapDimension("value"),function(l){o.push(l)}),a=r.seats=cO(o,i.hostModel.get("percentPrecision"))}var s=n.prototype.getDataParams.call(this,t);return s.percent=a[t]||0,s.$vars.push("percent"),s},e.prototype._defaultLabelLine=function(t){Oo(t,"labelLine",["show"]);var i=t.labelLine,r=t.emphasis.labelLine;i.show=i.show&&t.label.show,r.show=r.show&&t.emphasis.label.show},e.type="series.pie",e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,endAngle:"auto",padAngle:0,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,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%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},e}(Oe);function bG(n){return{seriesType:n,reset:function(e,t){var i=e.getData();i.filterSelf(function(r){var a=i.mapDimension("value"),o=i.get(a,r);return!(ve(o)&&!isNaN(o)&&o<0)})}}}function wG(n){n.registerChartView(mG),n.registerSeriesModel(xG),wI("pie",n.registerAction),n.registerLayout(Zt(dG,"pie")),n.registerProcessor(qc("pie")),n.registerProcessor(bG("pie"))}var SG=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.getInitialData=function(t,i){return da(null,this,{useEncodeDefaulter:!0})},e.prototype.getProgressive=function(){var t=this.option.progressive;return t??(this.option.large?5e3:this.get("progressive"))},e.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return t??(this.option.large?1e4:this.get("progressiveThreshold"))},e.prototype.brushSelector=function(t,i,r){return r.point(i.getItemLayout(t))},e.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},e.type="series.scatter",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:"#212121"}},universalTransition:{divideShape:"clone"}},e}(Oe),_C=4,MG=function(){function n(){}return n}(),IG=function(n){Q(e,n);function e(t){var i=n.call(this,t)||this;return i._off=0,i.hoverDataIdx=-1,i}return e.prototype.getDefaultShape=function(){return new MG},e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.buildPath=function(t,i){var r=i.points,a=i.size,o=this.symbolProxy,s=o.shape,l=t.getContext?t.getContext():t,u=l&&a[0]<_C,c=this.softClipShape,h;if(u){this._ctx=l;return}for(this._ctx=null,h=this._off;h<r.length;){var f=r[h++],d=r[h++];isNaN(f)||isNaN(d)||c&&!c.contain(f,d)||(s.x=f-a[0]/2,s.y=d-a[1]/2,s.width=a[0],s.height=a[1],o.buildPath(t,s,!0))}this.incremental&&(this._off=h,this.notClear=!0)},e.prototype.afterBrush=function(){var t=this.shape,i=t.points,r=t.size,a=this._ctx,o=this.softClipShape,s;if(a){for(s=this._off;s<i.length;){var l=i[s++],u=i[s++];isNaN(l)||isNaN(u)||o&&!o.contain(l,u)||a.fillRect(l-r[0]/2,u-r[1]/2,r[0],r[1])}this.incremental&&(this._off=s,this.notClear=!0)}},e.prototype.findDataIndex=function(t,i){for(var r=this.shape,a=r.points,o=r.size,s=Math.max(o[0],4),l=Math.max(o[1],4),u=a.length/2-1;u>=0;u--){var c=u*2,h=a[c]-s/2,f=a[c+1]-l/2;if(t>=h&&i>=f&&t<=h+s&&i<=f+l)return u}return-1},e.prototype.contain=function(t,i){var r=this.transformCoordToLocal(t,i),a=this.getBoundingRect();if(t=r[0],i=r[1],a.contain(t,i)){var o=this.hoverDataIdx=this.findDataIndex(t,i);return o>=0}return this.hoverDataIdx=-1,!1},e.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var i=this.shape,r=i.points,a=i.size,o=a[0],s=a[1],l=1/0,u=1/0,c=-1/0,h=-1/0,f=0;f<r.length;){var d=r[f++],g=r[f++];l=Math.min(d,l),c=Math.max(d,c),u=Math.min(g,u),h=Math.max(g,h)}t=this._rect=new $t(l-o/2,u-s/2,c-l+o,h-u+s)}return t},e}(re),TG=function(){function n(){this.group=new Gt}return n.prototype.updateData=function(e,t){this._clear();var i=this._create();i.setShape({points:e.getLayout("points")}),this._setCommon(i,e,t)},n.prototype.updateLayout=function(e){var t=e.getLayout("points");this.group.eachChild(function(i){if(i.startIndex!=null){var r=(i.endIndex-i.startIndex)*2,a=i.startIndex*4*2;t=new Float32Array(t.buffer,a,r)}i.setShape("points",t),i.reset()})},n.prototype.incrementalPrepareUpdate=function(e){this._clear()},n.prototype.incrementalUpdate=function(e,t,i){var r=this._newAdded[0],a=t.getLayout("points"),o=r&&r.shape.points;if(o&&o.length<2e4){var s=o.length,l=new Float32Array(s+a.length);l.set(o),l.set(a,s),r.endIndex=e.end,r.setShape({points:l})}else{this._newAdded=[];var u=this._create();u.startIndex=e.start,u.endIndex=e.end,u.incremental=!0,u.setShape({points:a}),this._setCommon(u,t,i)}},n.prototype.eachRendered=function(e){this._newAdded[0]&&e(this._newAdded[0])},n.prototype._create=function(){var e=new IG({cursor:"default"});return e.ignoreCoarsePointer=!0,this.group.add(e),this._newAdded.push(e),e},n.prototype._setCommon=function(e,t,i){var r=t.hostModel;i=i||{};var a=t.getVisual("symbolSize");e.setShape("size",a instanceof Array?a:[a,a]),e.softClipShape=i.clipShape||null,e.symbolProxy=rn(t.getVisual("symbol"),0,0,0,0),e.setColor=e.symbolProxy.setColor;var o=e.shape.size[0]<_C;e.useStyle(r.getModel("itemStyle").getItemStyle(o?["color","shadowBlur","shadowColor"]:["color"]));var s=t.getVisual("style"),l=s&&s.fill;l&&e.setColor(l);var u=jt(e);u.seriesIndex=r.seriesIndex,e.on("mousemove",function(c){u.dataIndex=null;var h=e.hoverDataIdx;h>=0&&(u.dataIndex=h+(e.startIndex||0))})},n.prototype.remove=function(){this._clear()},n.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},n}(),AG=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,i,r){var a=t.getData(),o=this._updateSymbolDraw(a,t);o.updateData(a,{clipShape:this._getClipShape(t)}),this._finished=!0},e.prototype.incrementalPrepareRender=function(t,i,r){var a=t.getData(),o=this._updateSymbolDraw(a,t);o.incrementalPrepareUpdate(a),this._finished=!1},e.prototype.incrementalRender=function(t,i,r){this._symbolDraw.incrementalUpdate(t,i.getData(),{clipShape:this._getClipShape(i)}),this._finished=t.end===i.getData().count()},e.prototype.updateTransform=function(t,i,r){var a=t.getData();if(this.group.dirty(),!this._finished||a.count()>1e4)return{update:!0};var o=Xc("").reset(t,i,r);o.progress&&o.progress({start:0,end:a.count(),count:a.count()},a),this._symbolDraw.updateLayout(a)},e.prototype.eachRendered=function(t){this._symbolDraw&&this._symbolDraw.eachRendered(t)},e.prototype._getClipShape=function(t){if(t.get("clip",!0)){var i=t.coordinateSystem;return i&&i.getArea&&i.getArea(.1)}},e.prototype._updateSymbolDraw=function(t,i){var r=this._symbolDraw,a=i.pipelineContext,o=a.large;return(!r||o!==this._isLargeDraw)&&(r&&r.remove(),r=this._symbolDraw=o?new TG:new Hc,this._isLargeDraw=o,this.group.removeAll()),this.group.add(r.group),r},e.prototype.remove=function(t,i){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},e.prototype.dispose=function(){},e.type="scatter",e}(Pe),CG=function(n){Q(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.type="grid",e.dependencies=["xAxis","yAxis"],e.layoutMode="box",e.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},e}(le),D0=function(n){Q(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",en).models[0]},e.type="cartesian2dAxis",e}(le);tn(D0,Oc);var xC={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,showMinLine:!0,showMaxLine:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},kG=Kt({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},xC),P0=Kt({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},xC),LG=Kt({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},P0),DG=Bt({logBase:10},P0);const bC={category:kG,value:P0,time:LG,log:DG};var PG={value:1,category:1,time:1,log:1};function Wl(n,e,t,i){E(PG,function(r,a){var o=Kt(Kt({},bC[a],!0),i,!0),s=function(l){Q(u,l);function u(){var c=l!==null&&l.apply(this,arguments)||this;return c.type=e+"Axis."+a,c}return u.prototype.mergeDefaultAndTheme=function(c,h){var f=fc(this),d=f?wl(c):{},g=h.getTheme();Kt(c,g.get(a+"Axis")),Kt(c,this.getDefaultOption()),c.type=wC(c),f&&Ya(c,d,f)},u.prototype.optionUpdated=function(){var c=this.option;c.type==="category"&&(this.__ordinalMeta=Ym.createByAxisModel(this))},u.prototype.getCategories=function(c){var h=this.option;if(h.type==="category")return c?h.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.type=e+"Axis."+a,u.defaultOption=o,u}(t);n.registerComponentModel(s)}),n.registerSubTypeDefaulter(e+"Axis",wC)}function wC(n){return n.type||(n.data?"category":"value")}var RG=function(){function n(e){this.type="cartesian",this._dimList=[],this._axes={},this.name=e||""}return n.prototype.getAxis=function(e){return this._axes[e]},n.prototype.getAxes=function(){return pt(this._dimList,function(e){return this._axes[e]},this)},n.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),Se(this.getAxes(),function(t){return t.scale.type===e})},n.prototype.addAxis=function(e){var t=e.dim;this._axes[t]=e,this._dimList.push(t)},n}(),R0=["x","y"];function SC(n){return n.type==="interval"||n.type==="time"}var NG=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type="cartesian2d",t.dimensions=R0,t}return e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var t=this.getAxis("x").scale,i=this.getAxis("y").scale;if(!(!SC(t)||!SC(i))){var r=t.getExtent(),a=i.getExtent(),o=this.dataToPoint([r[0],a[0]]),s=this.dataToPoint([r[1],a[1]]),l=r[1]-r[0],u=a[1]-a[0];if(!(!l||!u)){var c=(s[0]-o[0])/l,h=(s[1]-o[1])/u,f=o[0]-r[0]*c,d=o[1]-a[0]*h,g=this._transform=[c,0,0,h,f,d];this._invTransform=Qs([],g)}}},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},e.prototype.containPoint=function(t){var i=this.getAxis("x"),r=this.getAxis("y");return i.contain(i.toLocalCoord(t[0]))&&r.contain(r.toLocalCoord(t[1]))},e.prototype.containData=function(t){return this.getAxis("x").containData(t[0])&&this.getAxis("y").containData(t[1])},e.prototype.containZone=function(t,i){var r=this.dataToPoint(t),a=this.dataToPoint(i),o=this.getArea(),s=new $t(r[0],r[1],a[0]-r[0],a[1]-r[1]);return o.intersect(s)},e.prototype.dataToPoint=function(t,i,r){r=r||[];var a=t[0],o=t[1];if(this._transform&&a!=null&&isFinite(a)&&o!=null&&isFinite(o))return An(r,t,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return r[0]=s.toGlobalCoord(s.dataToCoord(a,i)),r[1]=l.toGlobalCoord(l.dataToCoord(o,i)),r},e.prototype.clampData=function(t,i){var r=this.getAxis("x").scale,a=this.getAxis("y").scale,o=r.getExtent(),s=a.getExtent(),l=r.parse(t[0]),u=a.parse(t[1]);return i=i||[],i[0]=Math.min(Math.max(Math.min(o[0],o[1]),l),Math.max(o[0],o[1])),i[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),i},e.prototype.pointToData=function(t,i){var r=[];if(this._invTransform)return An(r,t,this._invTransform);var a=this.getAxis("x"),o=this.getAxis("y");return r[0]=a.coordToData(a.toLocalCoord(t[0]),i),r[1]=o.coordToData(o.toLocalCoord(t[1]),i),r},e.prototype.getOtherAxis=function(t){return this.getAxis(t.dim==="x"?"y":"x")},e.prototype.getArea=function(t){t=t||0;var i=this.getAxis("x").getGlobalExtent(),r=this.getAxis("y").getGlobalExtent(),a=Math.min(i[0],i[1])-t,o=Math.min(r[0],r[1])-t,s=Math.max(i[0],i[1])-a+t,l=Math.max(r[0],r[1])-o+t;return new $t(a,o,s,l)},e}(RG),zG=function(n){Q(e,n);function e(t,i,r,a,o){var s=n.call(this,t,i,r)||this;return s.index=0,s.type=a||"value",s.position=o||"bottom",s}return e.prototype.isHorizontal=function(){var t=this.position;return t==="top"||t==="bottom"},e.prototype.getGlobalExtent=function(t){var i=this.getExtent();return i[0]=this.toGlobalCoord(i[0]),i[1]=this.toGlobalCoord(i[1]),t&&i[0]>i[1]&&i.reverse(),i},e.prototype.pointToData=function(t,i){return this.coordToData(this.toLocalCoord(t[this.dim==="x"?0:1]),i)},e.prototype.setCategorySortInfo=function(t){if(this.type!=="category")return!1;this.model.option.categorySortInfo=t,this.scale.setSortInfo(t)},e}(dr);function N0(n,e,t){t=t||{};var i=n.coordinateSystem,r=e.axis,a={},o=r.getAxesOnZeroOf()[0],s=r.position,l=o?"onZero":s,u=r.dim,c=i.getRect(),h=[c.x,c.x+c.width,c.y,c.y+c.height],f={left:0,right:1,top:0,bottom:1,onZero:2},d=e.get("offset")||0,g=u==="x"?[h[2]-d,h[3]+d]:[h[0]-d,h[1]+d];if(o){var y=o.toGlobalCoord(o.dataToCoord(0));g[f.onZero]=Math.max(Math.min(y,g[1]),g[0])}a.position=[u==="y"?g[f[l]]:h[0],u==="x"?g[f[l]]:h[3]],a.rotation=Math.PI/2*(u==="x"?0:1);var _={top:-1,bottom:1,left:-1,right:1};a.labelDirection=a.tickDirection=a.nameDirection=_[s],a.labelOffset=o?g[f[s]]-g[f.onZero]:0,e.get(["axisTick","inside"])&&(a.tickDirection=-a.tickDirection),bn(t.labelInside,e.get(["axisLabel","inside"]))&&(a.labelDirection=-a.labelDirection);var v=e.get(["axisLabel","rotate"]);return a.labelRotate=l==="top"?-v:v,a.z2=1,a}function MC(n){return n.get("coordinateSystem")==="cartesian2d"}function IC(n){var e={xAxisModel:null,yAxisModel:null};return E(e,function(t,i){var r=i.replace(/Model$/,""),a=n.getReferringComponents(r,en).models[0];e[i]=a}),e}var z0=Math.log;function TC(n,e,t){var i=fa.prototype,r=i.getTicks.call(t),a=i.getTicks.call(t,!0),o=r.length-1,s=i.getInterval.call(t),l=OT(n,e),u=l.extent,c=l.fixMin,h=l.fixMax;if(n.type==="log"){var f=z0(n.base);u=[z0(u[0])/f,z0(u[1])/f]}n.setExtent(u[0],u[1]),n.calcNiceExtent({splitNumber:o,fixMin:c,fixMax:h});var d=i.getExtent.call(n);c&&(u[0]=d[0]),h&&(u[1]=d[1]);var g=i.getInterval.call(n),y=u[0],_=u[1];if(c&&h)g=(_-y)/o;else if(c)for(_=u[0]+g*o;_<u[1]&&isFinite(_)&&isFinite(u[1]);)g=$m(g),_=u[0]+g*o;else if(h)for(y=u[1]-g*o;y>u[0]&&isFinite(y)&&isFinite(u[0]);)g=$m(g),y=u[1]-g*o;else{var v=n.getTicks().length-1;v>o&&(g=$m(g));var p=g*o;_=Math.ceil(u[1]/g)*g,y=qe(_-p),y<0&&u[0]>=0?(y=0,_=qe(p)):_>0&&u[1]<=0&&(_=0,y=-qe(p))}var x=(r[0].value-a[0].value)/s,b=(r[o].value-a[o].value)/s;i.setExtent.call(n,y+g*x,_+g*b),i.setInterval.call(n,g),(x||b)&&i.setNiceExtent.call(n,y+g,_-g)}var EG=function(){function n(e,t,i){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=R0,this._initCartesian(e,t,i),this.model=e}return n.prototype.getRect=function(){return this._rect},n.prototype.update=function(e,t){var i=this._axesMap;this._updateScale(e,this.model);function r(o){var s,l=se(o),u=l.length;if(u){for(var c=[],h=u-1;h>=0;h--){var f=+l[h],d=o[f],g=d.model,y=d.scale;Jm(y)&&g.get("alignTicks")&&g.get("interval")==null?c.push(d):(El(y,g),Jm(y)&&(s=d))}c.length&&(s||(s=c.pop(),El(s.scale,s.model)),E(c,function(_){TC(_.scale,_.model,s.scale)}))}}r(i.x),r(i.y);var a={};E(i.x,function(o){AC(i,"y",o,a)}),E(i.y,function(o){AC(i,"x",o,a)}),this.resize(this.model,t)},n.prototype.resize=function(e,t,i){var r=e.getBoxLayoutParams(),a=!i&&e.get("containLabel"),o=un(r,{width:t.getWidth(),height:t.getHeight()});this._rect=o;var s=this._axesList;l(),a&&(E(s,function(u){if(!u.model.get(["axisLabel","inside"])){var c=vF(u);if(c){var h=u.isHorizontal()?"height":"width",f=u.model.get(["axisLabel","margin"]);o[h]-=c[h]+f,u.position==="top"?o.y+=c.height+f:u.position==="left"&&(o.x+=c.width+f)}}}),l()),E(this._coordsList,function(u){u.calcAffineTransform()});function l(){E(s,function(u){var c=u.isHorizontal(),h=c?[0,o.width]:[0,o.height],f=u.inverse?1:0;u.setExtent(h[f],h[1-f]),OG(u,c?o.x:o.y)})}},n.prototype.getAxis=function(e,t){var i=this._axesMap[e];if(i!=null)return i[t||0]},n.prototype.getAxes=function(){return this._axesList.slice()},n.prototype.getCartesian=function(e,t){if(e!=null&&t!=null){var i="x"+e+"y"+t;return this._coordsMap[i]}Vt(e)&&(t=e.yAxisIndex,e=e.xAxisIndex);for(var r=0,a=this._coordsList;r<a.length;r++)if(a[r].getAxis("x").index===e||a[r].getAxis("y").index===t)return a[r]},n.prototype.getCartesians=function(){return this._coordsList.slice()},n.prototype.convertToPixel=function(e,t,i){var r=this._findConvertTarget(t);return r.cartesian?r.cartesian.dataToPoint(i):r.axis?r.axis.toGlobalCoord(r.axis.dataToCoord(i)):null},n.prototype.convertFromPixel=function(e,t,i){var r=this._findConvertTarget(t);return r.cartesian?r.cartesian.pointToData(i):r.axis?r.axis.coordToData(r.axis.toLocalCoord(i)):null},n.prototype._findConvertTarget=function(e){var t=e.seriesModel,i=e.xAxisModel||t&&t.getReferringComponents("xAxis",en).models[0],r=e.yAxisModel||t&&t.getReferringComponents("yAxis",en).models[0],a=e.gridModel,o=this._coordsList,s,l;if(t)s=t.coordinateSystem,Qt(o,s)<0&&(s=null);else if(i&&r)s=this.getCartesian(i.componentIndex,r.componentIndex);else if(i)l=this.getAxis("x",i.componentIndex);else if(r)l=this.getAxis("y",r.componentIndex);else if(a){var u=a.coordinateSystem;u===this&&(s=this._coordsList[0])}return{cartesian:s,axis:l}},n.prototype.containPoint=function(e){var t=this._coordsList[0];if(t)return t.containPoint(e)},n.prototype._initCartesian=function(e,t,i){var r=this,a=this,o={left:!1,right:!1,top:!1,bottom:!1},s={x:{},y:{}},l={x:0,y:0};if(t.eachComponent("xAxis",u("x"),this),t.eachComponent("yAxis",u("y"),this),!l.x||!l.y){this._axesMap={},this._axesList=[];return}this._axesMap=s,E(s.x,function(c,h){E(s.y,function(f,d){var g="x"+h+"y"+d,y=new NG(g);y.master=r,y.model=e,r._coordsMap[g]=y,r._coordsList.push(y),y.addAxis(c),y.addAxis(f)})});function u(c){return function(h,f){if(E0(h,e)){var d=h.get("position");c==="x"?d!=="top"&&d!=="bottom"&&(d=o.bottom?"top":"bottom"):d!=="left"&&d!=="right"&&(d=o.left?"right":"left"),o[d]=!0;var g=new zG(c,Zd(h),[0,0],h.get("type"),d),y=g.type==="category";g.onBand=y&&h.get("boundaryGap"),g.inverse=h.get("inverse"),h.axis=g,g.model=h,g.grid=a,g.index=f,a._axesList.push(g),s[c][f]=g,l[c]++}}}},n.prototype._updateScale=function(e,t){E(this._axesList,function(r){if(r.scale.setExtent(1/0,-1/0),r.type==="category"){var a=r.model.get("categorySortInfo");r.scale.setSortInfo(a)}}),e.eachSeries(function(r){if(MC(r)){var a=IC(r),o=a.xAxisModel,s=a.yAxisModel;if(!E0(o,t)||!E0(s,t))return;var l=this.getCartesian(o.componentIndex,s.componentIndex),u=r.getData(),c=l.getAxis("x"),h=l.getAxis("y");i(u,c),i(u,h)}},this);function i(r,a){E(qd(r,a.dim),function(o){a.scale.unionExtentFromData(r,o)})}},n.prototype.getTooltipAxes=function(e){var t=[],i=[];return E(this.getCartesians(),function(r){var a=e!=null&&e!=="auto"?r.getAxis(e):r.getBaseAxis(),o=r.getOtherAxis(a);Qt(t,a)<0&&t.push(a),Qt(i,o)<0&&i.push(o)}),{baseAxes:t,otherAxes:i}},n.create=function(e,t){var i=[];return e.eachComponent("grid",function(r,a){var o=new n(r,e,t);o.name="grid_"+a,o.resize(r,t,!0),r.coordinateSystem=o,i.push(o)}),e.eachSeries(function(r){if(MC(r)){var a=IC(r),o=a.xAxisModel,s=a.yAxisModel,l=o.getCoordSysModel(),u=l.coordinateSystem;r.coordinateSystem=u.getCartesian(o.componentIndex,s.componentIndex)}}),i},n.dimensions=R0,n}();function E0(n,e){return n.getCoordSysModel()===e}function AC(n,e,t,i){t.getAxesOnZeroOf=function(){return a?[a]:[]};var r=n[e],a,o=t.model,s=o.get(["axisLine","onZero"]),l=o.get(["axisLine","onZeroAxisIndex"]);if(!s)return;if(l!=null)CC(r[l])&&(a=r[l]);else for(var u in r)if(r.hasOwnProperty(u)&&CC(r[u])&&!i[c(r[u])]){a=r[u];break}a&&(i[c(a)]=!0);function c(h){return h.dim+"_"+h.index}}function CC(n){return n&&n.type!=="category"&&n.type!=="time"&&gF(n)}function OG(n,e){var t=n.getExtent(),i=t[0]+t[1];n.toGlobalCoord=n.dim==="x"?function(r){return r+e}:function(r){return i-r+e},n.toLocalCoord=n.dim==="x"?function(r){return r-e}:function(r){return i-r+e}}var oo=Math.PI,ti=function(){function n(e,t){this.group=new Gt,this.opt=t,this.axisModel=e,Bt(t,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var i=new Gt({x:t.position[0],y:t.position[1],rotation:t.rotation});i.updateTransform(),this._transformGroup=i}return n.prototype.hasBuilder=function(e){return!!kC[e]},n.prototype.add=function(e){kC[e](this.opt,this.axisModel,this.group,this._transformGroup)},n.prototype.getGroup=function(){return this.group},n.innerTextLayout=function(e,t,i){var r=Yw(t-e),a,o;return ju(r)?(o=i>0?"top":"bottom",a="center"):ju(r-oo)?(o=i>0?"bottom":"top",a="center"):(o="middle",r>0&&r<oo?a=i>0?"right":"left":a=i>0?"left":"right"),{rotation:r,textAlign:a,textVerticalAlign:o}},n.makeAxisEventDataBase=function(e){var t={componentType:e.mainType,componentIndex:e.componentIndex};return t[e.mainType+"Index"]=e.componentIndex,t},n.isLabelSilent=function(e){var t=e.get("tooltip");return e.get("silent")||!(e.get("triggerEvent")||t&&t.show)},n}(),kC={axisLine:function(n,e,t,i){var r=e.get(["axisLine","show"]);if(r==="auto"&&n.handleAutoShown&&(r=n.handleAutoShown("axisLine")),!!r){var a=e.axis.getExtent(),o=i.transform,s=[a[0],0],l=[a[1],0],u=s[0]>l[0];o&&(An(s,s,o),An(l,l,o));var c=lt({lineCap:"round"},e.getModel(["axisLine","lineStyle"]).getLineStyle()),h=new fn({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:c,strokeContainThreshold:n.strokeContainThreshold||5,silent:!0,z2:1});gl(h.shape,h.style.lineWidth),h.anid="line",t.add(h);var f=e.get(["axisLine","symbol"]);if(f!=null){var d=e.get(["axisLine","symbolSize"]);Tt(f)&&(f=[f,f]),(Tt(d)||ve(d))&&(d=[d,d]);var g=ps(e.get(["axisLine","symbolOffset"])||0,d),y=d[0],_=d[1];E([{rotate:n.rotation+Math.PI/2,offset:g[0],r:0},{rotate:n.rotation-Math.PI/2,offset:g[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(v,p){if(f[p]!=="none"&&f[p]!=null){var x=rn(f[p],-y/2,-_/2,y,_,c.stroke,!0),b=v.r+v.offset,S=u?l:s;x.attr({rotation:v.rotate,x:S[0]+b*Math.cos(n.rotation),y:S[1]-b*Math.sin(n.rotation),silent:!0,z2:11}),t.add(x)}})}}},axisTickLabel:function(n,e,t,i){var r=FG(t,i,e,n),a=GG(t,i,e,n);if(VG(e,a,r),WG(t,i,e,n.tickDirection),e.get(["axisLabel","hideOverlap"])){var o=rA(pt(a,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));sA(o)}},axisName:function(n,e,t,i){var r=bn(n.axisName,e.get("name"));if(r){var a=e.get("nameLocation"),o=n.nameDirection,s=e.getModel("nameTextStyle"),l=e.get("nameGap")||0,u=e.axis.getExtent(),c=u[0]>u[1]?-1:1,h=[a==="start"?u[0]-c*l:a==="end"?u[1]+c*l:(u[0]+u[1])/2,DC(a)?n.labelOffset+o*l:0],f,d=e.get("nameRotate");d!=null&&(d=d*oo/180);var g;DC(a)?f=ti.innerTextLayout(n.rotation,d??n.rotation,o):(f=BG(n.rotation,a,d||0,u),g=n.axisNameAvailableWidth,g!=null&&(g=Math.abs(g/Math.sin(f.rotation)),!isFinite(g)&&(g=null)));var y=s.getFont(),_=e.get("nameTruncate",!0)||{},v=_.ellipsis,p=bn(n.nameTruncateMaxWidth,_.maxWidth,g),x=new fe({x:h[0],y:h[1],rotation:f.rotation,silent:ti.isLabelSilent(e),style:Ee(s,{text:r,font:y,overflow:"truncate",width:p,ellipsis:v,fill:s.getTextColor()||e.get(["axisLine","lineStyle","color"]),align:s.get("align")||f.textAlign,verticalAlign:s.get("verticalAlign")||f.textVerticalAlign}),z2:1});if(is({el:x,componentModel:e,itemName:r}),x.__fullText=r,x.anid="name",e.get("triggerEvent")){var b=ti.makeAxisEventDataBase(e);b.targetType="axisName",b.name=r,jt(x).eventData=b}i.add(x),x.updateTransform(),t.add(x),x.decomposeTransform()}}};function BG(n,e,t,i){var r=Yw(t-n),a,o,s=i[0]>i[1],l=e==="start"&&!s||e!=="start"&&s;return ju(r-oo/2)?(o=l?"bottom":"top",a="center"):ju(r-oo*1.5)?(o=l?"top":"bottom",a="center"):(o="middle",r<oo*1.5&&r>oo/2?a=l?"left":"right":a=l?"right":"left"),{rotation:r,textAlign:a,textVerticalAlign:o}}function VG(n,e,t){if(!BT(n.axis)){var i=n.get(["axisLabel","showMinLabel"]),r=n.get(["axisLabel","showMaxLabel"]);e=e||[],t=t||[];var a=e[0],o=e[1],s=e[e.length-1],l=e[e.length-2],u=t[0],c=t[1],h=t[t.length-1],f=t[t.length-2];i===!1?(Wi(a),Wi(u)):LC(a,o)&&(i?(Wi(o),Wi(c)):(Wi(a),Wi(u))),r===!1?(Wi(s),Wi(h)):LC(l,s)&&(r?(Wi(l),Wi(f)):(Wi(s),Wi(h)))}}function Wi(n){n&&(n.ignore=!0)}function LC(n,e){var t=n&&n.getBoundingRect().clone(),i=e&&e.getBoundingRect().clone();if(!(!t||!i)){var r=ap([]);return ko(r,r,-n.rotation),t.applyTransform(ta([],r,n.getLocalTransform())),i.applyTransform(ta([],r,e.getLocalTransform())),t.intersect(i)}}function DC(n){return n==="middle"||n==="center"}function PC(n,e,t,i,r){for(var a=[],o=[],s=[],l=0;l<n.length;l++){var u=n[l].coord;o[0]=u,o[1]=0,s[0]=u,s[1]=t,e&&(An(o,o,e),An(s,s,e));var c=new fn({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:i,z2:2,autoBatch:!0,silent:!0});gl(c.shape,c.style.lineWidth),c.anid=r+"_"+n[l].tickValue,a.push(c)}return a}function FG(n,e,t,i){var r=t.axis,a=t.getModel("axisTick"),o=a.get("show");if(o==="auto"&&i.handleAutoShown&&(o=i.handleAutoShown("axisTick")),!(!o||r.scale.isBlank())){for(var s=a.getModel("lineStyle"),l=i.tickDirection*a.get("length"),u=r.getTicksCoords(),c=PC(u,e.transform,l,Bt(s.getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])}),"ticks"),h=0;h<c.length;h++)n.add(c[h]);return c}}function WG(n,e,t,i){var r=t.axis,a=t.getModel("minorTick");if(!(!a.get("show")||r.scale.isBlank())){var o=r.getMinorTicksCoords();if(o.length)for(var s=a.getModel("lineStyle"),l=i*a.get("length"),u=Bt(s.getLineStyle(),Bt(t.getModel("axisTick").getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])})),c=0;c<o.length;c++)for(var h=PC(o[c],e.transform,l,u,"minorticks_"+c),f=0;f<h.length;f++)n.add(h[f])}}function GG(n,e,t,i){var r=t.axis,a=bn(i.axisLabelShow,t.get(["axisLabel","show"]));if(!(!a||r.scale.isBlank())){var o=t.getModel("axisLabel"),s=o.get("margin"),l=r.getViewLabels(),u=(bn(i.labelRotate,o.get("rotate"))||0)*oo/180,c=ti.innerTextLayout(i.rotation,u,i.labelDirection),h=t.getCategories&&t.getCategories(!0),f=[],d=ti.isLabelSilent(t),g=t.get("triggerEvent");return E(l,function(y,_){var v=r.scale.type==="ordinal"?r.scale.getRawOrdinalNumber(y.tickValue):y.tickValue,p=y.formattedLabel,x=y.rawLabel,b=o;if(h&&h[v]){var S=h[v];Vt(S)&&S.textStyle&&(b=new Ce(S.textStyle,o,t.ecModel))}var M=b.getTextColor()||t.get(["axisLine","lineStyle","color"]),I=r.dataToCoord(v),A=b.getShallow("align",!0)||c.textAlign,C=Ut(b.getShallow("alignMinLabel",!0),A),L=Ut(b.getShallow("alignMaxLabel",!0),A),R=b.getShallow("verticalAlign",!0)||b.getShallow("baseline",!0)||c.textVerticalAlign,D=Ut(b.getShallow("verticalAlignMinLabel",!0),R),N=Ut(b.getShallow("verticalAlignMaxLabel",!0),R),k=new fe({x:I,y:i.labelOffset+i.labelDirection*s,rotation:c.rotation,silent:d,z2:10+(y.level||0),style:Ee(b,{text:p,align:_===0?C:_===l.length-1?L:A,verticalAlign:_===0?D:_===l.length-1?N:R,fill:Ot(M)?M(r.type==="category"?x:r.type==="value"?v+"":v,_):M})});if(k.anid="label_"+v,is({el:k,componentModel:t,itemName:p,formatterParamsExtra:{isTruncated:function(){return k.isTruncated},value:x,tickIndex:_}}),g){var O=ti.makeAxisEventDataBase(t);O.targetType="axisLabel",O.value=x,O.tickIndex=_,r.type==="category"&&(O.dataIndex=v),jt(k).eventData=O}e.add(k),k.updateTransform(),f.push(k),n.add(k),k.decomposeTransform()}),f}}function jG(n,e){var t={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return HG(t,n,e),t.seriesInvolved&&XG(t,n),t}function HG(n,e,t){var i=e.getComponent("tooltip"),r=e.getComponent("axisPointer"),a=r.get("link",!0)||[],o=[];E(t.getCoordinateSystems(),function(s){if(!s.axisPointerEnabled)return;var l=Yc(s.model),u=n.coordSysAxesInfo[l]={};n.coordSysMap[l]=s;var c=s.model,h=c.getModel("tooltip",i);if(E(s.getAxes(),Zt(y,!1,null)),s.getTooltipAxes&&i&&h.get("show")){var f=h.get("trigger")==="axis",d=h.get(["axisPointer","type"])==="cross",g=s.getTooltipAxes(h.get(["axisPointer","axis"]));(f||d)&&E(g.baseAxes,Zt(y,d?"cross":!0,f)),d&&E(g.otherAxes,Zt(y,"cross",!1))}function y(_,v,p){var x=p.model.getModel("axisPointer",r),b=x.get("show");if(!(!b||b==="auto"&&!_&&!V0(x))){v==null&&(v=x.get("triggerTooltip")),x=_?UG(p,h,r,e,_,v):x;var S=x.get("snap"),M=x.get("triggerEmphasis"),I=Yc(p.model),A=v||S||p.type==="category",C=n.axesInfo[I]={key:I,axis:p,coordSys:s,axisPointerModel:x,triggerTooltip:v,triggerEmphasis:M,involveSeries:A,snap:S,useHandle:V0(x),seriesModels:[],linkGroup:null};u[I]=C,n.seriesInvolved=n.seriesInvolved||A;var L=ZG(a,p);if(L!=null){var R=o[L]||(o[L]={axesInfo:{}});R.axesInfo[I]=C,R.mapper=a[L].mapper,C.linkGroup=R}}}})}function UG(n,e,t,i,r,a){var o=e.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};E(s,function(f){l[f]=Wt(o.get(f))}),l.snap=n.type!=="category"&&!!a,o.get("type")==="cross"&&(l.type="line");var u=l.label||(l.label={});if(u.show==null&&(u.show=!1),r==="cross"){var c=o.get(["label","show"]);if(u.show=c??!0,!a){var h=l.lineStyle=o.get("crossStyle");h&&Bt(u,h.textStyle)}}return n.model.getModel("axisPointer",new Ce(l,t,i))}function XG(n,e){e.eachSeries(function(t){var i=t.coordinateSystem,r=t.get(["tooltip","trigger"],!0),a=t.get(["tooltip","show"],!0);!i||r==="none"||r===!1||r==="item"||a===!1||t.get(["axisPointer","show"],!0)===!1||E(n.coordSysAxesInfo[Yc(i.model)],function(o){var s=o.axis;i.getAxis(s.dim)===s&&(o.seriesModels.push(t),o.seriesDataCount==null&&(o.seriesDataCount=0),o.seriesDataCount+=t.getData().count())})})}function ZG(n,e){for(var t=e.model,i=e.dim,r=0;r<n.length;r++){var a=n[r]||{};if(O0(a[i+"AxisId"],t.id)||O0(a[i+"AxisIndex"],t.componentIndex)||O0(a[i+"AxisName"],t.name))return r}}function O0(n,e){return n==="all"||ht(n)&&Qt(n,e)>=0||n===e}function qG(n){var e=B0(n);if(e){var t=e.axisPointerModel,i=e.axis.scale,r=t.option,a=t.get("status"),o=t.get("value");o!=null&&(o=i.parse(o));var s=V0(t);a==null&&(r.status=s?"show":"hide");var l=i.getExtent().slice();l[0]>l[1]&&l.reverse(),(o==null||o>l[1])&&(o=l[1]),o<l[0]&&(o=l[0]),r.value=o,s&&(r.status=e.axis.scale.isBlank()?"hide":"show")}}function B0(n){var e=(n.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[Yc(n)]}function KG(n){var e=B0(n);return e&&e.axisPointerModel}function V0(n){return!!n.get(["handle","show"])}function Yc(n){return n.type+"||"+n.id}var RC={},Ts=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,i,r,a){this.axisPointerClass&&qG(t),n.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(t,r,!0)},e.prototype.updateAxisPointer=function(t,i,r,a){this._doUpdateAxisPointerClass(t,r,!1)},e.prototype.remove=function(t,i){var r=this._axisPointer;r&&r.remove(i)},e.prototype.dispose=function(t,i){this._disposeAxisPointer(i),n.prototype.dispose.apply(this,arguments)},e.prototype._doUpdateAxisPointerClass=function(t,i,r){var a=e.getAxisPointerClass(this.axisPointerClass);if(a){var o=KG(t);o?(this._axisPointer||(this._axisPointer=new a)).render(t,o,i,r):this._disposeAxisPointer(i)}},e.prototype._disposeAxisPointer=function(t){this._axisPointer&&this._axisPointer.dispose(t),this._axisPointer=null},e.registerAxisPointerClass=function(t,i){RC[t]=i},e.getAxisPointerClass=function(t){return t&&RC[t]},e.type="axis",e}(je),F0=pe();function NC(n,e,t,i){var r=t.axis;if(!r.scale.isBlank()){var a=t.getModel("splitArea"),o=a.getModel("areaStyle"),s=o.get("color"),l=i.coordinateSystem.getRect(),u=r.getTicksCoords({tickModel:a,clamp:!0});if(u.length){var c=s.length,h=F0(n).splitAreaColors,f=Dt(),d=0;if(h)for(var g=0;g<u.length;g++){var y=h.get(u[g].tickValue);if(y!=null){d=(y+(c-1)*g)%c;break}}var _=r.toGlobalCoord(u[0].coord),v=o.getAreaStyle();s=ht(s)?s:[s];for(var g=1;g<u.length;g++){var p=r.toGlobalCoord(u[g].coord),x=void 0,b=void 0,S=void 0,M=void 0;r.isHorizontal()?(x=_,b=l.y,S=p-x,M=l.height,_=x+S):(x=l.x,b=_,S=l.width,M=p-b,_=b+M);var I=u[g-1].tickValue;I!=null&&f.set(I,d),e.add(new de({anid:I!=null?"area_"+I:null,shape:{x,y:b,width:S,height:M},style:Bt({fill:s[d]},v),autoBatch:!0,silent:!0})),d=(d+1)%c}F0(n).splitAreaColors=f}}}function zC(n){F0(n).splitAreaColors=null}var YG=["axisLine","axisTickLabel","axisName"],JG=["splitArea","splitLine","minorSplitLine"],EC=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.axisPointerClass="CartesianAxisPointer",t}return e.prototype.render=function(t,i,r,a){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new Gt,this.group.add(this._axisGroup),!!t.get("show")){var s=t.getCoordSysModel(),l=N0(s,t),u=new ti(t,lt({handleAutoShown:function(h){for(var f=s.coordinateSystem.getCartesians(),d=0;d<f.length;d++)if(Jm(f[d].getOtherAxis(t.axis).scale))return!0;return!1}},l));E(YG,u.add,u),this._axisGroup.add(u.getGroup()),E(JG,function(h){t.get([h,"show"])&&$G[h](this,this._axisGroup,t,s)},this);var c=a&&a.type==="changeAxisOrder"&&a.isInitSort;c||lc(o,this._axisGroup,t),n.prototype.render.call(this,t,i,r,a)}},e.prototype.remove=function(){zC(this)},e.type="cartesianAxis",e}(Ts),$G={splitLine:function(n,e,t,i){var r=t.axis;if(!r.scale.isBlank()){var a=t.getModel("splitLine"),o=a.getModel("lineStyle"),s=o.get("color"),l=a.get("showMinLine")!==!1,u=a.get("showMaxLine")!==!1;s=ht(s)?s:[s];for(var c=i.coordinateSystem.getRect(),h=r.isHorizontal(),f=0,d=r.getTicksCoords({tickModel:a}),g=[],y=[],_=o.getLineStyle(),v=0;v<d.length;v++){var p=r.toGlobalCoord(d[v].coord);if(!(v===0&&!l||v===d.length-1&&!u)){var x=d[v].tickValue;h?(g[0]=p,g[1]=c.y,y[0]=p,y[1]=c.y+c.height):(g[0]=c.x,g[1]=p,y[0]=c.x+c.width,y[1]=p);var b=f++%s.length,S=new fn({anid:x!=null?"line_"+x:null,autoBatch:!0,shape:{x1:g[0],y1:g[1],x2:y[0],y2:y[1]},style:Bt({stroke:s[b]},_),silent:!0});gl(S.shape,_.lineWidth),e.add(S)}}}},minorSplitLine:function(n,e,t,i){var r=t.axis,a=t.getModel("minorSplitLine"),o=a.getModel("lineStyle"),s=i.coordinateSystem.getRect(),l=r.isHorizontal(),u=r.getMinorTicksCoords();if(u.length)for(var c=[],h=[],f=o.getLineStyle(),d=0;d<u.length;d++)for(var g=0;g<u[d].length;g++){var y=r.toGlobalCoord(u[d][g].coord);l?(c[0]=y,c[1]=s.y,h[0]=y,h[1]=s.y+s.height):(c[0]=s.x,c[1]=y,h[0]=s.x+s.width,h[1]=y);var _=new fn({anid:"minor_line_"+u[d][g].tickValue,autoBatch:!0,shape:{x1:c[0],y1:c[1],x2:h[0],y2:h[1]},style:f,silent:!0});gl(_.shape,f.lineWidth),e.add(_)}},splitArea:function(n,e,t,i){NC(n,e,t,i)}},OC=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="xAxis",e}(EC),QG=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=OC.type,t}return e.type="yAxis",e}(EC),tj=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type="grid",t}return e.prototype.render=function(t,i){this.group.removeAll(),t.get("show")&&this.group.add(new de({shape:t.coordinateSystem.getRect(),style:Bt({fill:t.get("backgroundColor")},t.getItemStyle()),silent:!0,z2:-1}))},e.type="grid",e}(je),BC={offset:0};function VC(n){n.registerComponentView(tj),n.registerComponentModel(CG),n.registerCoordinateSystem("cartesian2d",EG),Wl(n,"x",D0,BC),Wl(n,"y",D0,BC),n.registerComponentView(OC),n.registerComponentView(QG),n.registerPreprocessor(function(e){e.xAxis&&e.yAxis&&!e.grid&&(e.grid={})})}function ej(n){ie(VC),n.registerSeriesModel(SG),n.registerChartView(AG),n.registerLayout(Xc("scatter"))}function nj(n){n.eachSeriesByType("radar",function(e){var t=e.getData(),i=[],r=e.coordinateSystem;if(r){var a=r.getIndicatorAxes();E(a,function(o,s){t.each(t.mapDimension(a[s].dim),function(l,u){i[u]=i[u]||[];var c=r.dataToPoint(l,s);i[u][s]=FC(c)?c:WC(r)})}),t.each(function(o){var s=Bz(i[o],function(l){return FC(l)})||WC(r);i[o].push(s.slice()),t.setItemLayout(o,i[o])})}})}function FC(n){return!isNaN(n[0])&&!isNaN(n[1])}function WC(n){return[n.cx,n.cy]}function ij(n){var e=n.polar;if(e){ht(e)||(e=[e]);var t=[];E(e,function(i,r){i.indicator?(i.type&&!i.shape&&(i.shape=i.type),n.radar=n.radar||[],ht(n.radar)||(n.radar=[n.radar]),n.radar.push(i)):t.push(i)}),n.polar=t}E(n.series,function(i){i&&i.type==="radar"&&i.polarIndex&&(i.radarIndex=i.polarIndex)})}var rj=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,i,r){var a=t.coordinateSystem,o=this.group,s=t.getData(),l=this._data;function u(f,d){var g=f.getItemVisual(d,"symbol")||"circle";if(g!=="none"){var y=Dl(f.getItemVisual(d,"symbolSize")),_=rn(g,-1,-1,2,2),v=f.getItemVisual(d,"symbolRotate")||0;return _.attr({style:{strokeNoScale:!0},z2:100,scaleX:y[0]/2,scaleY:y[1]/2,rotation:v*Math.PI/180||0}),_}}function c(f,d,g,y,_,v){g.removeAll();for(var p=0;p<d.length-1;p++){var x=u(y,_);x&&(x.__dimIdx=p,f[p]?(x.setPosition(f[p]),rs[v?"initProps":"updateProps"](x,{x:d[p][0],y:d[p][1]},t,_)):x.setPosition(d[p]),g.add(x))}}function h(f){return pt(f,function(d){return[a.cx,a.cy]})}s.diff(l).add(function(f){var d=s.getItemLayout(f);if(d){var g=new Kn,y=new Yn,_={shape:{points:d}};g.shape.points=h(d),y.shape.points=h(d),We(g,_,t,f),We(y,_,t,f);var v=new Gt,p=new Gt;v.add(y),v.add(g),v.add(p),c(y.shape.points,d,p,s,f,!0),s.setItemGraphicEl(f,v)}}).update(function(f,d){var g=l.getItemGraphicEl(d),y=g.childAt(0),_=g.childAt(1),v=g.childAt(2),p={shape:{points:s.getItemLayout(f)}};p.shape.points&&(c(y.shape.points,p.shape.points,v,s,f,!1),sr(_),sr(y),me(y,p,t),me(_,p,t),s.setItemGraphicEl(f,g))}).remove(function(f){o.remove(l.getItemGraphicEl(f))}).execute(),s.eachItemGraphicEl(function(f,d){var g=s.getItemModel(d),y=f.childAt(0),_=f.childAt(1),v=f.childAt(2),p=s.getItemVisual(d,"style"),x=p.fill;o.add(f),y.useStyle(Bt(g.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:x})),Cn(y,g,"lineStyle"),Cn(_,g,"areaStyle");var b=g.getModel("areaStyle"),S=b.isEmpty()&&b.parentModel.isEmpty();_.ignore=S,E(["emphasis","select","blur"],function(A){var C=g.getModel([A,"areaStyle"]),L=C.isEmpty()&&C.parentModel.isEmpty();_.ensureState(A).ignore=L&&S}),_.useStyle(Bt(b.getAreaStyle(),{fill:x,opacity:.7,decal:p.decal}));var M=g.getModel("emphasis"),I=M.getModel("itemStyle").getItemStyle();v.eachChild(function(A){if(A instanceof Sn){var C=A.style;A.useStyle(lt({image:C.image,x:C.x,y:C.y,width:C.width,height:C.height},p))}else A.useStyle(p),A.setColor(x),A.style.strokeNoScale=!0;var L=A.ensureState("emphasis");L.style=Wt(I);var R=s.getStore().get(s.getDimensionIndex(A.__dimIdx),d);(R==null||isNaN(R))&&(R=""),kn(A,gn(g),{labelFetcher:s.hostModel,labelDataIndex:d,labelDimIndex:A.__dimIdx,defaultText:R,inheritColor:x,defaultOpacity:p.opacity})}),Ue(f,M.get("focus"),M.get("blurScope"),M.get("disabled"))}),this._data=s},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.type="radar",e}(Pe),aj=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.init=function(t){n.prototype.init.apply(this,arguments),this.legendVisualProvider=new Kc(Ct(this.getData,this),Ct(this.getRawData,this))},e.prototype.getInitialData=function(t,i){return Fl(this,{generateCoord:"indicator_",generateCoordCount:1/0})},e.prototype.formatTooltip=function(t,i,r){var a=this.getData(),o=this.coordinateSystem,s=o.getIndicatorAxes(),l=this.getData().getName(t),u=l===""?this.name:l,c=$M(this,t);return vn("section",{header:u,sortBlocks:!0,blocks:pt(s,function(h){var f=a.get(a.mapDimension(h.dim),t);return vn("nameValue",{markerType:"subItem",markerColor:c,name:h.name,value:f,sortParam:f})})})},e.prototype.getTooltipPosition=function(t){if(t!=null){for(var i=this.getData(),r=this.coordinateSystem,a=i.getValues(pt(r.dimensions,function(u){return i.mapDimension(u)}),t),o=0,s=a.length;o<s;o++)if(!isNaN(a[o])){var l=r.getIndicatorAxes();return r.coordToPoint(l[o].dataToCoord(a[o]),o)}}},e.type="series.radar",e.dependencies=["radar"],e.defaultOption={z:2,colorBy:"data",coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:"solid",join:"round"},label:{position:"top"},symbolSize:8},e}(Oe),Jc=bC.value;function lf(n,e){return Bt({show:e},n)}var oj=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(){var t=this.get("boundaryGap"),i=this.get("splitNumber"),r=this.get("scale"),a=this.get("axisLine"),o=this.get("axisTick"),s=this.get("axisLabel"),l=this.get("axisName"),u=this.get(["axisName","show"]),c=this.get(["axisName","formatter"]),h=this.get("axisNameGap"),f=this.get("triggerEvent"),d=pt(this.get("indicator")||[],function(g){g.max!=null&&g.max>0&&!g.min?g.min=0:g.min!=null&&g.min<0&&!g.max&&(g.max=0);var y=l;g.color!=null&&(y=Bt({color:g.color},l));var _=Kt(Wt(g),{boundaryGap:t,splitNumber:i,scale:r,axisLine:a,axisTick:o,axisLabel:s,name:g.text,showName:u,nameLocation:"end",nameGap:h,nameTextStyle:y,triggerEvent:f},!1);if(Tt(c)){var v=_.name;_.name=c.replace("{value}",v??"")}else Ot(c)&&(_.name=c(_.name,_));var p=new Ce(_,null,this.ecModel);return tn(p,Oc.prototype),p.mainType="radar",p.componentIndex=this.componentIndex,p},this);this._indicatorModels=d},e.prototype.getIndicatorModels=function(){return this._indicatorModels},e.type="radar",e.defaultOption={z:0,center:["50%","50%"],radius:"75%",startAngle:90,axisName:{show:!0},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:Kt({lineStyle:{color:"#bbb"}},Jc.axisLine),axisLabel:lf(Jc.axisLabel,!1),axisTick:lf(Jc.axisTick,!1),splitLine:lf(Jc.splitLine,!0),splitArea:lf(Jc.splitArea,!0),indicator:[]},e}(le),sj=["axisLine","axisTickLabel","axisName"],lj=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,i,r){var a=this.group;a.removeAll(),this._buildAxes(t),this._buildSplitLineAndArea(t)},e.prototype._buildAxes=function(t){var i=t.coordinateSystem,r=i.getIndicatorAxes(),a=pt(r,function(o){var s=o.model.get("showName")?o.name:"",l=new ti(o.model,{axisName:s,position:[i.cx,i.cy],rotation:o.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return l});E(a,function(o){E(sj,o.add,o),this.group.add(o.getGroup())},this)},e.prototype._buildSplitLineAndArea=function(t){var i=t.coordinateSystem,r=i.getIndicatorAxes();if(!r.length)return;var a=t.get("shape"),o=t.getModel("splitLine"),s=t.getModel("splitArea"),l=o.getModel("lineStyle"),u=s.getModel("areaStyle"),c=o.get("show"),h=s.get("show"),f=l.get("color"),d=u.get("color"),g=ht(f)?f:[f],y=ht(d)?d:[d],_=[],v=[];function p(O,F,G){var q=G%F.length;return O[q]=O[q]||[],q}if(a==="circle")for(var x=r[0].getTicksCoords(),b=i.cx,S=i.cy,M=0;M<x.length;M++){if(c){var I=p(_,g,M);_[I].push(new ca({shape:{cx:b,cy:S,r:x[M].coord}}))}if(h&&M<x.length-1){var I=p(v,y,M);v[I].push(new rc({shape:{cx:b,cy:S,r0:x[M].coord,r:x[M+1].coord}}))}}else for(var A,C=pt(r,function(F,G){var q=F.getTicksCoords();return A=A==null?q.length-1:Math.min(q.length-1,A),pt(q,function(j){return i.coordToPoint(j.coord,G)})}),L=[],M=0;M<=A;M++){for(var R=[],D=0;D<r.length;D++)R.push(C[D][M]);if(R[0]&&R.push(R[0].slice()),c){var I=p(_,g,M);_[I].push(new Yn({shape:{points:R}}))}if(h&&L){var I=p(v,y,M-1);v[I].push(new Kn({shape:{points:R.concat(L)}}))}L=R.slice().reverse()}var N=l.getLineStyle(),k=u.getAreaStyle();E(v,function(O,F){this.group.add(zi(O,{style:Bt({stroke:"none",fill:y[F%y.length]},k),silent:!0}))},this),E(_,function(O,F){this.group.add(zi(O,{style:Bt({fill:"none",stroke:g[F%g.length]},N),silent:!0}))},this)},e.type="radar",e}(je),uj=function(n){Q(e,n);function e(t,i,r){var a=n.call(this,t,i,r)||this;return a.type="value",a.angle=0,a.name="",a}return e}(dr),cj=function(){function n(e,t,i){this.dimensions=[],this._model=e,this._indicatorAxes=pt(e.getIndicatorModels(),function(r,a){var o="indicator_"+a,s=new uj(o,new fa);return s.name=r.get("name"),s.model=r,r.axis=s,this.dimensions.push(o),s},this),this.resize(e,i)}return n.prototype.getIndicatorAxes=function(){return this._indicatorAxes},n.prototype.dataToPoint=function(e,t){var i=this._indicatorAxes[t];return this.coordToPoint(i.dataToCoord(e),t)},n.prototype.coordToPoint=function(e,t){var i=this._indicatorAxes[t],r=i.angle,a=this.cx+e*Math.cos(r),o=this.cy-e*Math.sin(r);return[a,o]},n.prototype.pointToData=function(e){var t=e[0]-this.cx,i=e[1]-this.cy,r=Math.sqrt(t*t+i*i);t/=r,i/=r;for(var a=Math.atan2(-i,t),o=1/0,s,l=-1,u=0;u<this._indicatorAxes.length;u++){var c=this._indicatorAxes[u],h=Math.abs(a-c.angle);h<o&&(s=c,l=u,o=h)}return[l,+(s&&s.coordToData(r))]},n.prototype.resize=function(e,t){var i=e.get("center"),r=t.getWidth(),a=t.getHeight(),o=Math.min(r,a)/2;this.cx=Mt(i[0],r),this.cy=Mt(i[1],a),this.startAngle=e.get("startAngle")*Math.PI/180;var s=e.get("radius");(Tt(s)||ve(s))&&(s=[0,s]),this.r0=Mt(s[0],o),this.r=Mt(s[1],o),E(this._indicatorAxes,function(l,u){l.setExtent(this.r0,this.r);var c=this.startAngle+u*Math.PI*2/this._indicatorAxes.length;c=Math.atan2(Math.sin(c),Math.cos(c)),l.angle=c},this)},n.prototype.update=function(e,t){var i=this._indicatorAxes,r=this._model;E(i,function(s){s.scale.setExtent(1/0,-1/0)}),e.eachSeriesByType("radar",function(s,l){if(!(s.get("coordinateSystem")!=="radar"||e.getComponent("radar",s.get("radarIndex"))!==r)){var u=s.getData();E(i,function(c){c.scale.unionExtentFromData(u,u.mapDimension(c.dim))})}},this);var a=r.get("splitNumber"),o=new fa;o.setExtent(0,a),o.setInterval(1),E(i,function(s,l){TC(s.scale,s.model,o)})},n.prototype.convertToPixel=function(e,t,i){return console.warn("Not implemented."),null},n.prototype.convertFromPixel=function(e,t,i){return console.warn("Not implemented."),null},n.prototype.containPoint=function(e){return console.warn("Not implemented."),!1},n.create=function(e,t){var i=[];return e.eachComponent("radar",function(r){var a=new n(r,e,t);i.push(a),r.coordinateSystem=a}),e.eachSeriesByType("radar",function(r){r.get("coordinateSystem")==="radar"&&(r.coordinateSystem=i[r.get("radarIndex")||0])}),i},n.dimensions=[],n}();function hj(n){n.registerCoordinateSystem("radar",cj),n.registerComponentModel(oj),n.registerComponentView(lj),n.registerVisual({seriesType:"radar",reset:function(e){var t=e.getData();t.each(function(i){t.setItemVisual(i,"legendIcon","roundRect")}),t.setVisual("legendIcon","roundRect")}})}function pj(n){ie(hj),n.registerChartView(rj),n.registerSeriesModel(aj),n.registerLayout(nj),n.registerProcessor(qc("radar")),n.registerPreprocessor(ij)}var GC="\0_ec_interaction_mutex";function dj(n,e,t){var i=W0(n);i[e]=t}function fj(n,e,t){var i=W0(n),r=i[e];r===t&&(i[e]=null)}function jC(n,e){return!!W0(n)[e]}function W0(n){return n[GC]||(n[GC]={})}Or({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},Je);var $c=function(n){Q(e,n);function e(t){var i=n.call(this)||this;i._zr=t;var r=Ct(i._mousedownHandler,i),a=Ct(i._mousemoveHandler,i),o=Ct(i._mouseupHandler,i),s=Ct(i._mousewheelHandler,i),l=Ct(i._pinchHandler,i);return i.enable=function(u,c){this.disable(),this._opt=Bt(Wt(c)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),u==null&&(u=!0),(u===!0||u==="move"||u==="pan")&&(t.on("mousedown",r),t.on("mousemove",a),t.on("mouseup",o)),(u===!0||u==="scale"||u==="zoom")&&(t.on("mousewheel",s),t.on("pinch",l))},i.disable=function(){t.off("mousedown",r),t.off("mousemove",a),t.off("mouseup",o),t.off("mousewheel",s),t.off("pinch",l)},i}return e.prototype.isDragging=function(){return this._dragging},e.prototype.isPinching=function(){return this._pinching},e.prototype.setPointerChecker=function(t){this.pointerChecker=t},e.prototype.dispose=function(){this.disable()},e.prototype._mousedownHandler=function(t){if(!ew(t)){for(var i=t.target;i;){if(i.draggable)return;i=i.__hostTarget||i.parent}var r=t.offsetX,a=t.offsetY;this.pointerChecker&&this.pointerChecker(t,r,a)&&(this._x=r,this._y=a,this._dragging=!0)}},e.prototype._mousemoveHandler=function(t){if(!(!this._dragging||!uf("moveOnMouseMove",t,this._opt)||t.gestureEvent==="pinch"||jC(this._zr,"globalPan"))){var i=t.offsetX,r=t.offsetY,a=this._x,o=this._y,s=i-a,l=r-o;this._x=i,this._y=r,this._opt.preventDefaultMouseMove&&Qr(t.event),HC(this,"pan","moveOnMouseMove",t,{dx:s,dy:l,oldX:a,oldY:o,newX:i,newY:r,isAvailableBehavior:null})}},e.prototype._mouseupHandler=function(t){ew(t)||(this._dragging=!1)},e.prototype._mousewheelHandler=function(t){var i=uf("zoomOnMouseWheel",t,this._opt),r=uf("moveOnMouseWheel",t,this._opt),a=t.wheelDelta,o=Math.abs(a),s=t.offsetX,l=t.offsetY;if(!(a===0||!i&&!r)){if(i){var u=o>3?1.4:o>1?1.2:1.1,c=a>0?u:1/u;G0(this,"zoom","zoomOnMouseWheel",t,{scale:c,originX:s,originY:l,isAvailableBehavior:null})}if(r){var h=Math.abs(a),f=(a>0?1:-1)*(h>3?.4:h>1?.15:.05);G0(this,"scrollMove","moveOnMouseWheel",t,{scrollDelta:f,originX:s,originY:l,isAvailableBehavior:null})}}},e.prototype._pinchHandler=function(t){if(!jC(this._zr,"globalPan")){var i=t.pinchScale>1?1.1:.9090909090909091;G0(this,"zoom",null,t,{scale:i,originX:t.pinchX,originY:t.pinchY,isAvailableBehavior:null})}},e}(Ci);function G0(n,e,t,i,r){n.pointerChecker&&n.pointerChecker(i,r.originX,r.originY)&&(Qr(i.event),HC(n,e,t,i,r))}function HC(n,e,t,i,r){r.isAvailableBehavior=Ct(uf,null,t,i),n.trigger(e,r)}function uf(n,e,t){var i=t[n];return!n||i&&(!Tt(i)||e.event[i+"Key"])}function j0(n,e,t){var i=n.target;i.x+=e,i.y+=t,i.dirty()}function H0(n,e,t,i){var r=n.target,a=n.zoomLimit,o=n.zoom=n.zoom||1;if(o*=e,a){var s=a.min||0,l=a.max||1/0;o=Math.max(Math.min(l,o),s)}var u=o/n.zoom;n.zoom=o,r.x-=(t-r.x)*(u-1),r.y-=(i-r.y)*(u-1),r.scaleX*=u,r.scaleY*=u,r.dirty()}var gj={axisPointer:1,tooltip:1,brush:1};function cf(n,e,t){var i=e.getComponentByElement(n.topTarget),r=i&&i.coordinateSystem;return i&&i!==t&&!gj.hasOwnProperty(i.mainType)&&r&&r.model!==t}function UC(n){if(Tt(n)){var e=new DOMParser;n=e.parseFromString(n,"text/xml")}var t=n;for(t.nodeType===9&&(t=t.firstChild);t.nodeName.toLowerCase()!=="svg"||t.nodeType!==1;)t=t.nextSibling;return t}var U0,hf={fill:"fill",stroke:"stroke","stroke-width":"lineWidth",opacity:"opacity","fill-opacity":"fillOpacity","stroke-opacity":"strokeOpacity","stroke-dasharray":"lineDash","stroke-dashoffset":"lineDashOffset","stroke-linecap":"lineCap","stroke-linejoin":"lineJoin","stroke-miterlimit":"miterLimit","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","text-anchor":"textAlign",visibility:"visibility",display:"display"},XC=se(hf),pf={"alignment-baseline":"textBaseline","stop-color":"stopColor"},ZC=se(pf),vj=function(){function n(){this._defs={},this._root=null}return n.prototype.parse=function(e,t){t=t||{};var i=UC(e);this._defsUsePending=[];var r=new Gt;this._root=r;var a=[],o=i.getAttribute("viewBox")||"",s=parseFloat(i.getAttribute("width")||t.width),l=parseFloat(i.getAttribute("height")||t.height);isNaN(s)&&(s=null),isNaN(l)&&(l=null),mi(i,r,null,!0,!1);for(var u=i.firstChild;u;)this._parseNode(u,r,a,null,!1,!1),u=u.nextSibling;_j(this._defs,this._defsUsePending),this._defsUsePending=[];var c,h;if(o){var f=df(o);f.length>=4&&(c={x:parseFloat(f[0]||0),y:parseFloat(f[1]||0),width:parseFloat(f[2]),height:parseFloat(f[3])})}if(c&&s!=null&&l!=null&&(h=ek(c,{x:0,y:0,width:s,height:l}),!t.ignoreViewBox)){var d=r;r=new Gt,r.add(d),d.scaleX=d.scaleY=h.scale,d.x=h.x,d.y=h.y}return!t.ignoreRootClip&&s!=null&&l!=null&&r.setClipPath(new de({shape:{x:0,y:0,width:s,height:l}})),{root:r,width:s,height:l,viewBoxRect:c,viewBoxTransform:h,named:a}},n.prototype._parseNode=function(e,t,i,r,a,o){var s=e.nodeName.toLowerCase(),l,u=r;if(s==="defs"&&(a=!0),s==="text"&&(o=!0),s==="defs"||s==="switch")l=t;else{if(!a){var c=U0[s];if(c&&Lt(U0,s)){l=c.call(this,e,t);var h=e.getAttribute("name");if(h){var f={name:h,namedFrom:null,svgNodeTagLower:s,el:l};i.push(f),s==="g"&&(u=f)}else r&&i.push({name:r.name,namedFrom:r,svgNodeTagLower:s,el:l});t.add(l)}}var d=qC[s];if(d&&Lt(qC,s)){var g=d.call(this,e),y=e.getAttribute("id");y&&(this._defs[y]=g)}}if(l&&l.isGroup)for(var _=e.firstChild;_;)_.nodeType===1?this._parseNode(_,l,i,u,a,o):_.nodeType===3&&o&&this._parseText(_,l),_=_.nextSibling},n.prototype._parseText=function(e,t){var i=new sl({style:{text:e.textContent},silent:!0,x:this._textX||0,y:this._textY||0});Gi(t,i),mi(e,i,this._defsUsePending,!1,!1),yj(i,t);var r=i.style,a=r.fontSize;a&&a<9&&(r.fontSize=9,i.scaleX*=a/9,i.scaleY*=a/9);var o=(r.fontSize||r.fontFamily)&&[r.fontStyle,r.fontWeight,(r.fontSize||12)+"px",r.fontFamily||"sans-serif"].join(" ");r.font=o;var s=i.getBoundingRect();return this._textX+=s.width,t.add(i),i},n.internalField=function(){U0={g:function(e,t){var i=new Gt;return Gi(t,i),mi(e,i,this._defsUsePending,!1,!1),i},rect:function(e,t){var i=new de;return Gi(t,i),mi(e,i,this._defsUsePending,!1,!1),i.setShape({x:parseFloat(e.getAttribute("x")||"0"),y:parseFloat(e.getAttribute("y")||"0"),width:parseFloat(e.getAttribute("width")||"0"),height:parseFloat(e.getAttribute("height")||"0")}),i.silent=!0,i},circle:function(e,t){var i=new ca;return Gi(t,i),mi(e,i,this._defsUsePending,!1,!1),i.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),r:parseFloat(e.getAttribute("r")||"0")}),i.silent=!0,i},line:function(e,t){var i=new fn;return Gi(t,i),mi(e,i,this._defsUsePending,!1,!1),i.setShape({x1:parseFloat(e.getAttribute("x1")||"0"),y1:parseFloat(e.getAttribute("y1")||"0"),x2:parseFloat(e.getAttribute("x2")||"0"),y2:parseFloat(e.getAttribute("y2")||"0")}),i.silent=!0,i},ellipse:function(e,t){var i=new Xp;return Gi(t,i),mi(e,i,this._defsUsePending,!1,!1),i.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),rx:parseFloat(e.getAttribute("rx")||"0"),ry:parseFloat(e.getAttribute("ry")||"0")}),i.silent=!0,i},polygon:function(e,t){var i=e.getAttribute("points"),r;i&&(r=JC(i));var a=new Kn({shape:{points:r||[]},silent:!0});return Gi(t,a),mi(e,a,this._defsUsePending,!1,!1),a},polyline:function(e,t){var i=e.getAttribute("points"),r;i&&(r=JC(i));var a=new Yn({shape:{points:r||[]},silent:!0});return Gi(t,a),mi(e,a,this._defsUsePending,!1,!1),a},image:function(e,t){var i=new Sn;return Gi(t,i),mi(e,i,this._defsUsePending,!1,!1),i.setStyle({image:e.getAttribute("xlink:href")||e.getAttribute("href"),x:+e.getAttribute("x"),y:+e.getAttribute("y"),width:+e.getAttribute("width"),height:+e.getAttribute("height")}),i.silent=!0,i},text:function(e,t){var i=e.getAttribute("x")||"0",r=e.getAttribute("y")||"0",a=e.getAttribute("dx")||"0",o=e.getAttribute("dy")||"0";this._textX=parseFloat(i)+parseFloat(a),this._textY=parseFloat(r)+parseFloat(o);var s=new Gt;return Gi(t,s),mi(e,s,this._defsUsePending,!1,!0),s},tspan:function(e,t){var i=e.getAttribute("x"),r=e.getAttribute("y");i!=null&&(this._textX=parseFloat(i)),r!=null&&(this._textY=parseFloat(r));var a=e.getAttribute("dx")||"0",o=e.getAttribute("dy")||"0",s=new Gt;return Gi(t,s),mi(e,s,this._defsUsePending,!1,!0),this._textX+=parseFloat(a),this._textY+=parseFloat(o),s},path:function(e,t){var i=e.getAttribute("d")||"",r=uS(i);return Gi(t,r),mi(e,r,this._defsUsePending,!1,!1),r.silent=!0,r}}}(),n}(),qC={lineargradient:function(n){var e=parseInt(n.getAttribute("x1")||"0",10),t=parseInt(n.getAttribute("y1")||"0",10),i=parseInt(n.getAttribute("x2")||"10",10),r=parseInt(n.getAttribute("y2")||"0",10),a=new oc(e,t,i,r);return KC(n,a),YC(n,a),a},radialgradient:function(n){var e=parseInt(n.getAttribute("cx")||"0",10),t=parseInt(n.getAttribute("cy")||"0",10),i=parseInt(n.getAttribute("r")||"0",10),r=new gS(e,t,i);return KC(n,r),YC(n,r),r}};function KC(n,e){var t=n.getAttribute("gradientUnits");t==="userSpaceOnUse"&&(e.global=!0)}function YC(n,e){for(var t=n.firstChild;t;){if(t.nodeType===1&&t.nodeName.toLocaleLowerCase()==="stop"){var i=t.getAttribute("offset"),r=void 0;i&&i.indexOf("%")>0?r=parseInt(i,10)/100:i?r=parseFloat(i):r=0;var a={};tk(t,a,a);var o=a.stopColor||t.getAttribute("stop-color")||"#000000";e.colorStops.push({offset:r,color:o})}t=t.nextSibling}}function Gi(n,e){n&&n.__inheritedStyle&&(e.__inheritedStyle||(e.__inheritedStyle={}),Bt(e.__inheritedStyle,n.__inheritedStyle))}function JC(n){for(var e=df(n),t=[],i=0;i<e.length;i+=2){var r=parseFloat(e[i]),a=parseFloat(e[i+1]);t.push([r,a])}return t}function mi(n,e,t,i,r){var a=e,o=a.__inheritedStyle=a.__inheritedStyle||{},s={};n.nodeType===1&&(wj(n,e),tk(n,o,s),i||Sj(n,o,s)),a.style=a.style||{},o.fill!=null&&(a.style.fill=$C(a,"fill",o.fill,t)),o.stroke!=null&&(a.style.stroke=$C(a,"stroke",o.stroke,t)),E(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],function(l){o[l]!=null&&(a.style[l]=parseFloat(o[l]))}),E(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign"],function(l){o[l]!=null&&(a.style[l]=o[l])}),r&&(a.__selfStyle=s),o.lineDash&&(a.style.lineDash=pt(df(o.lineDash),function(l){return parseFloat(l)})),(o.visibility==="hidden"||o.visibility==="collapse")&&(a.invisible=!0),o.display==="none"&&(a.ignore=!0)}function yj(n,e){var t=e.__selfStyle;if(t){var i=t.textBaseline,r=i;!i||i==="auto"||i==="baseline"?r="alphabetic":i==="before-edge"||i==="text-before-edge"?r="top":i==="after-edge"||i==="text-after-edge"?r="bottom":(i==="central"||i==="mathematical")&&(r="middle"),n.style.textBaseline=r}var a=e.__inheritedStyle;if(a){var o=a.textAlign,s=o;o&&(o==="middle"&&(s="center"),n.style.textAlign=s)}}var mj=/^url\(\s*#(.*?)\)/;function $C(n,e,t,i){var r=t&&t.match(mj);if(r){var a=nr(r[1]);i.push([n,e,a]);return}return t==="none"&&(t=null),t}function _j(n,e){for(var t=0;t<e.length;t++){var i=e[t];i[0].style[i[1]]=n[i[2]]}}var xj=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function df(n){return n.match(xj)||[]}var bj=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.eE,]*)\)/g,X0=Math.PI/180;function wj(n,e){var t=n.getAttribute("transform");if(t){t=t.replace(/,/g," ");var i=[],r=null;t.replace(bj,function(h,f,d){return i.push(f,d),""});for(var a=i.length-1;a>0;a-=2){var o=i[a],s=i[a-1],l=df(o);switch(r=r||fi(),s){case"translate":Sr(r,r,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":mv(r,r,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":ko(r,r,-parseFloat(l[0])*X0,[parseFloat(l[1]||"0"),parseFloat(l[2]||"0")]);break;case"skewX":var u=Math.tan(parseFloat(l[0])*X0);ta(r,[1,0,u,1,0,0],r);break;case"skewY":var c=Math.tan(parseFloat(l[0])*X0);ta(r,[1,c,0,1,0,0],r);break;case"matrix":r[0]=parseFloat(l[0]),r[1]=parseFloat(l[1]),r[2]=parseFloat(l[2]),r[3]=parseFloat(l[3]),r[4]=parseFloat(l[4]),r[5]=parseFloat(l[5]);break}}e.setLocalTransform(r)}}var QC=/([^\s:;]+)\s*:\s*([^:;]+)/g;function tk(n,e,t){var i=n.getAttribute("style");if(i){QC.lastIndex=0;for(var r;(r=QC.exec(i))!=null;){var a=r[1],o=Lt(hf,a)?hf[a]:null;o&&(e[o]=r[2]);var s=Lt(pf,a)?pf[a]:null;s&&(t[s]=r[2])}}}function Sj(n,e,t){for(var i=0;i<XC.length;i++){var r=XC[i],a=n.getAttribute(r);a!=null&&(e[hf[r]]=a)}for(var i=0;i<ZC.length;i++){var r=ZC[i],a=n.getAttribute(r);a!=null&&(t[pf[r]]=a)}}function ek(n,e){var t=e.width/n.width,i=e.height/n.height,r=Math.min(t,i);return{scale:r,x:-(n.x+n.width/2)*r+(e.x+e.width/2),y:-(n.y+n.height/2)*r+(e.y+e.height/2)}}function Mj(n,e){var t=new vj;return t.parse(n,e)}var Ij=Dt(["rect","circle","line","ellipse","polygon","polyline","path","text","tspan","g"]),Tj=function(){function n(e,t){this.type="geoSVG",this._usedGraphicMap=Dt(),this._freedGraphics=[],this._mapName=e,this._parsedXML=UC(t)}return n.prototype.load=function(){var e=this._firstGraphic;if(!e){e=this._firstGraphic=this._buildGraphic(this._parsedXML),this._freedGraphics.push(e),this._boundingRect=this._firstGraphic.boundingRect.clone();var t=Cj(e.named),i=t.regions,r=t.regionsMap;this._regions=i,this._regionsMap=r}return{boundingRect:this._boundingRect,regions:this._regions,regionsMap:this._regionsMap}},n.prototype._buildGraphic=function(e){var t,i;try{t=e&&Mj(e,{ignoreViewBox:!0,ignoreRootClip:!0})||{},i=t.root,jn(i!=null)}catch(_){throw new Error(`Invalid svg format
|
|
75
|
+
`+_.message)}var r=new Gt;r.add(i),r.isGeoSVGGraphicRoot=!0;var a=t.width,o=t.height,s=t.viewBoxRect,l=this._boundingRect;if(!l){var u=void 0,c=void 0,h=void 0,f=void 0;if(a!=null?(u=0,h=a):s&&(u=s.x,h=s.width),o!=null?(c=0,f=o):s&&(c=s.y,f=s.height),u==null||c==null){var d=i.getBoundingRect();u==null&&(u=d.x,h=d.width),c==null&&(c=d.y,f=d.height)}l=this._boundingRect=new $t(u,c,h,f)}if(s){var g=ek(s,l);i.scaleX=i.scaleY=g.scale,i.x=g.x,i.y=g.y}r.setClipPath(new de({shape:l.plain()}));var y=[];return E(t.named,function(_){Ij.get(_.svgNodeTagLower)!=null&&(y.push(_),Aj(_.el))}),{root:r,boundingRect:l,named:y}},n.prototype.useGraphic=function(e){var t=this._usedGraphicMap,i=t.get(e);return i||(i=this._freedGraphics.pop()||this._buildGraphic(this._parsedXML),t.set(e,i),i)},n.prototype.freeGraphic=function(e){var t=this._usedGraphicMap,i=t.get(e);i&&(t.removeKey(e),this._freedGraphics.push(i))},n}();function Aj(n){n.silent=!1,n.isGroup&&n.traverse(function(e){e.silent=!1})}function Cj(n){var e=[],t=Dt();return E(n,function(i){if(i.namedFrom==null){var r=new wF(i.name,i.el);e.push(r),t.set(i.name,r)}}),{regions:e,regionsMap:t}}for(var Z0=[126,25],nk="南海诸岛",As=[[[0,3.5],[7,11.2],[15,11.9],[30,7],[42,.7],[52,.7],[56,7.7],[59,.7],[64,.7],[64,0],[5,0],[0,3.5]],[[13,16.1],[19,14.7],[16,21.7],[11,23.1],[13,16.1]],[[12,32.2],[14,38.5],[15,38.5],[13,32.2],[12,32.2]],[[16,47.6],[12,53.2],[13,53.2],[18,47.6],[16,47.6]],[[6,64.4],[8,70],[9,70],[8,64.4],[6,64.4]],[[23,82.6],[29,79.8],[30,79.8],[25,82.6],[23,82.6]],[[37,70.7],[43,62.3],[44,62.3],[39,70.7],[37,70.7]],[[48,51.1],[51,45.5],[53,45.5],[50,51.1],[48,51.1]],[[51,35],[51,28.7],[53,28.7],[53,35],[51,35]],[[52,22.4],[55,17.5],[56,17.5],[53,22.4],[52,22.4]],[[58,12.6],[62,7],[63,7],[60,12.6],[58,12.6]],[[0,3.5],[0,93.1],[64,93.1],[64,0],[63,0],[63,92.4],[1,92.4],[1,3.5],[0,3.5]]],Cs=0;Cs<As.length;Cs++)for(var Gl=0;Gl<As[Cs].length;Gl++)As[Cs][Gl][0]/=10.5,As[Cs][Gl][1]/=-10.5/.75,As[Cs][Gl][0]+=Z0[0],As[Cs][Gl][1]+=Z0[1];function kj(n,e){if(n==="china"){for(var t=0;t<e.length;t++)if(e[t].name===nk)return;e.push(new HT(nk,pt(As,function(i){return{type:"polygon",exterior:i}}),Z0))}}var Lj={南海诸岛:[32,80],广东:[0,-10],香港:[10,5],澳门:[-10,10],天津:[5,5]};function Dj(n,e){if(n==="china"){var t=Lj[e.name];if(t){var i=e.getCenter();i[0]+=t[0]/10.5,i[1]+=-t[1]/(10.5/.75),e.setCenter(i)}}}var Pj=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];function Rj(n,e){n==="china"&&e.name==="台湾"&&e.geometries.push({type:"polygon",exterior:Pj[0]})}var Nj="name",zj=function(){function n(e,t,i){this.type="geoJSON",this._parsedMap=Dt(),this._mapName=e,this._specialAreas=i,this._geoJSON=Oj(t)}return n.prototype.load=function(e,t){t=t||Nj;var i=this._parsedMap.get(t);if(!i){var r=this._parseToRegions(t);i=this._parsedMap.set(t,{regions:r,boundingRect:Ej(r)})}var a=Dt(),o=[];return E(i.regions,function(s){var l=s.name;e&&Lt(e,l)&&(s=s.cloneShallow(l=e[l])),o.push(s),a.set(l,s)}),{regions:o,boundingRect:i.boundingRect||new $t(0,0,0,0),regionsMap:a}},n.prototype._parseToRegions=function(e){var t=this._mapName,i=this._geoJSON,r;try{r=i?MF(i,e):[]}catch(a){throw new Error(`Invalid geoJson format
|
|
76
|
+
`+a.message)}return kj(t,r),E(r,function(a){var o=a.name;Dj(t,a),Rj(t,a);var s=this._specialAreas&&this._specialAreas[o];s&&a.transformTo(s.left,s.top,s.width,s.height)},this),r},n.prototype.getMapForUser=function(){return{geoJson:this._geoJSON,geoJSON:this._geoJSON,specialAreas:this._specialAreas}},n}();function Ej(n){for(var e,t=0;t<n.length;t++){var i=n[t].getBoundingRect();e=e||i.clone(),e.union(i)}return e}function Oj(n){return Tt(n)?typeof JSON<"u"&&JSON.parse?JSON.parse(n):new Function("return ("+n+");")():n}var Qc=Dt();const ga={registerMap:function(n,e,t){if(e.svg){var i=new Tj(n,e.svg);Qc.set(n,i)}else{var r=e.geoJson||e.geoJSON;r&&!e.features?t=e.specialAreas:r=e;var i=new zj(n,r,t);Qc.set(n,i)}},getGeoResource:function(n){return Qc.get(n)},getMapForUser:function(n){var e=Qc.get(n);return e&&e.type==="geoJSON"&&e.getMapForUser()},load:function(n,e,t){var i=Qc.get(n);if(i)return i.load(e,t)}};var q0=["rect","circle","line","ellipse","polygon","polyline","path"],Bj=Dt(q0),Vj=Dt(q0.concat(["g"])),Fj=Dt(q0.concat(["g"])),ik=pe();function ff(n){var e=n.getItemStyle(),t=n.get("areaColor");return t!=null&&(e.fill=t),e}function rk(n){var e=n.style;e&&(e.stroke=e.stroke||e.fill,e.fill=null)}var ak=function(){function n(e){var t=new Gt;this.uid=yl("ec_map_draw"),this._controller=new $c(e.getZr()),this._controllerHost={target:t},this.group=t,t.add(this._regionsGroup=new Gt),t.add(this._svgGroup=new Gt)}return n.prototype.draw=function(e,t,i,r,a){var o=e.mainType==="geo",s=e.getData&&e.getData();o&&t.eachComponent({mainType:"series",subType:"map"},function(v){!s&&v.getHostGeoModel()===e&&(s=v.getData())});var l=e.coordinateSystem,u=this._regionsGroup,c=this.group,h=l.getTransformInfo(),f=h.raw,d=h.roam,g=!u.childAt(0)||a;g?(c.x=d.x,c.y=d.y,c.scaleX=d.scaleX,c.scaleY=d.scaleY,c.dirty()):me(c,d,e);var y=s&&s.getVisual("visualMeta")&&s.getVisual("visualMeta").length>0,_={api:i,geo:l,mapOrGeoModel:e,data:s,isVisualEncodedByVisualMap:y,isGeo:o,transformInfoRaw:f};l.resourceType==="geoJSON"?this._buildGeoJSON(_):l.resourceType==="geoSVG"&&this._buildSVG(_),this._updateController(e,t,i),this._updateMapSelectHandler(e,u,i,r)},n.prototype._buildGeoJSON=function(e){var t=this._regionsGroupByName=Dt(),i=Dt(),r=this._regionsGroup,a=e.transformInfoRaw,o=e.mapOrGeoModel,s=e.data,l=e.geo.projection,u=l&&l.stream;function c(d,g){return g&&(d=g(d)),d&&[d[0]*a.scaleX+a.x,d[1]*a.scaleY+a.y]}function h(d){for(var g=[],y=!u&&l&&l.project,_=0;_<d.length;++_){var v=c(d[_],y);v&&g.push(v)}return g}function f(d){return{shape:{points:h(d)}}}r.removeAll(),E(e.geo.regions,function(d){var g=d.name,y=t.get(g),_=i.get(g)||{},v=_.dataIdx,p=_.regionModel;if(!y){y=t.set(g,new Gt),r.add(y),v=s?s.indexOfName(g):null,p=e.isGeo?o.getRegionModel(g):s?s.getItemModel(v):null;var x=p.get("silent",!0);x!=null&&(y.silent=x),i.set(g,{dataIdx:v,regionModel:p})}var b=[],S=[];E(d.geometries,function(A){if(A.type==="polygon"){var C=[A.exterior].concat(A.interiors||[]);u&&(C=hk(C,u)),E(C,function(R){b.push(new Kn(f(R)))})}else{var L=A.points;u&&(L=hk(L,u,!0)),E(L,function(R){S.push(new Yn(f(R)))})}});var M=c(d.getCenter(),l&&l.project);function I(A,C){if(A.length){var L=new Vy({culling:!0,segmentIgnoreThreshold:1,shape:{paths:A}});y.add(L),ok(e,L,v,p),sk(e,L,g,p,o,v,M),C&&(rk(L),E(L.states,rk))}}I(b),I(S,!0)}),t.each(function(d,g){var y=i.get(g),_=y.dataIdx,v=y.regionModel;lk(e,d,g,v,o,_),uk(e,d,g,v,o),ck(e,d,g,v,o)},this)},n.prototype._buildSVG=function(e){var t=e.geo.map,i=e.transformInfoRaw;this._svgGroup.x=i.x,this._svgGroup.y=i.y,this._svgGroup.scaleX=i.scaleX,this._svgGroup.scaleY=i.scaleY,this._svgResourceChanged(t)&&(this._freeSVG(),this._useSVG(t));var r=this._svgDispatcherMap=Dt(),a=!1;E(this._svgGraphicRecord.named,function(o){var s=o.name,l=e.mapOrGeoModel,u=e.data,c=o.svgNodeTagLower,h=o.el,f=u?u.indexOfName(s):null,d=l.getRegionModel(s);Bj.get(c)!=null&&h instanceof Ri&&ok(e,h,f,d),h instanceof Ri&&(h.culling=!0);var g=d.get("silent",!0);if(g!=null&&(h.silent=g),h.z2EmphasisLift=0,!o.namedFrom&&(Fj.get(c)!=null&&sk(e,h,s,d,l,f,null),lk(e,h,s,d,l,f),uk(e,h,s,d,l),Vj.get(c)!=null)){var y=ck(e,h,s,d,l);y==="self"&&(a=!0);var _=r.get(s)||r.set(s,[]);_.push(h)}},this),this._enableBlurEntireSVG(a,e)},n.prototype._enableBlurEntireSVG=function(e,t){if(e&&t.isGeo){var i=t.mapOrGeoModel.getModel(["blur","itemStyle"]).getItemStyle(),r=i.opacity;this._svgGraphicRecord.root.traverse(function(a){if(!a.isGroup){Yo(a);var o=a.ensureState("blur").style||{};o.opacity==null&&r!=null&&(o.opacity=r),a.ensureState("emphasis")}})}},n.prototype.remove=function(){this._regionsGroup.removeAll(),this._regionsGroupByName=null,this._svgGroup.removeAll(),this._freeSVG(),this._controller.dispose(),this._controllerHost=null},n.prototype.findHighDownDispatchers=function(e,t){if(e==null)return[];var i=t.coordinateSystem;if(i.resourceType==="geoJSON"){var r=this._regionsGroupByName;if(r){var a=r.get(e);return a?[a]:[]}}else if(i.resourceType==="geoSVG")return this._svgDispatcherMap&&this._svgDispatcherMap.get(e)||[]},n.prototype._svgResourceChanged=function(e){return this._svgMapName!==e},n.prototype._useSVG=function(e){var t=ga.getGeoResource(e);if(t&&t.type==="geoSVG"){var i=t.useGraphic(this.uid);this._svgGroup.add(i.root),this._svgGraphicRecord=i,this._svgMapName=e}},n.prototype._freeSVG=function(){var e=this._svgMapName;if(e!=null){var t=ga.getGeoResource(e);t&&t.type==="geoSVG"&&t.freeGraphic(this.uid),this._svgGraphicRecord=null,this._svgDispatcherMap=null,this._svgGroup.removeAll(),this._svgMapName=null}},n.prototype._updateController=function(e,t,i){var r=e.coordinateSystem,a=this._controller,o=this._controllerHost;o.zoomLimit=e.get("scaleLimit"),o.zoom=r.getZoom(),a.enable(e.get("roam")||!1);var s=e.mainType;function l(){var u={type:"geoRoam",componentType:s};return u[s+"Id"]=e.id,u}a.off("pan").on("pan",function(u){this._mouseDownFlag=!1,j0(o,u.dx,u.dy),i.dispatchAction(lt(l(),{dx:u.dx,dy:u.dy,animation:{duration:0}}))},this),a.off("zoom").on("zoom",function(u){this._mouseDownFlag=!1,H0(o,u.scale,u.originX,u.originY),i.dispatchAction(lt(l(),{totalZoom:o.zoom,zoom:u.scale,originX:u.originX,originY:u.originY,animation:{duration:0}}))},this),a.setPointerChecker(function(u,c,h){return r.containPoint([c,h])&&!cf(u,i,e)})},n.prototype.resetForLabelLayout=function(){this.group.traverse(function(e){var t=e.getTextContent();t&&(t.ignore=ik(t).ignore)})},n.prototype._updateMapSelectHandler=function(e,t,i,r){var a=this;t.off("mousedown"),t.off("click"),e.get("selectedMode")&&(t.on("mousedown",function(){a._mouseDownFlag=!0}),t.on("click",function(o){a._mouseDownFlag&&(a._mouseDownFlag=!1)}))},n}();function ok(n,e,t,i){var r=i.getModel("itemStyle"),a=i.getModel(["emphasis","itemStyle"]),o=i.getModel(["blur","itemStyle"]),s=i.getModel(["select","itemStyle"]),l=ff(r),u=ff(a),c=ff(s),h=ff(o),f=n.data;if(f){var d=f.getItemVisual(t,"style"),g=f.getItemVisual(t,"decal");n.isVisualEncodedByVisualMap&&d.fill&&(l.fill=d.fill),g&&(l.decal=Rl(g,n.api))}e.setStyle(l),e.style.strokeNoScale=!0,e.ensureState("emphasis").style=u,e.ensureState("select").style=c,e.ensureState("blur").style=h,Yo(e)}function sk(n,e,t,i,r,a,o){var s=n.data,l=n.isGeo,u=s&&isNaN(s.get(s.mapDimension("value"),a)),c=s&&s.getItemLayout(a);if(l||u||c&&c.showLabel){var h=l?t:a,f=void 0;(!s||a>=0)&&(f=r);var d=o?{normal:{align:"center",verticalAlign:"middle"}}:null;kn(e,gn(i),{labelFetcher:f,labelDataIndex:h,defaultText:t},d);var g=e.getTextContent();if(g&&(ik(g).ignore=g.ignore,e.textConfig&&o)){var y=e.getBoundingRect().clone();e.textConfig.layoutRect=y,e.textConfig.position=[(o[0]-y.x)/y.width*100+"%",(o[1]-y.y)/y.height*100+"%"]}e.disableLabelAnimation=!0}else e.removeTextContent(),e.removeTextConfig(),e.disableLabelAnimation=null}function lk(n,e,t,i,r,a){n.data?n.data.setItemGraphicEl(a,e):jt(e).eventData={componentType:"geo",componentIndex:r.componentIndex,geoIndex:r.componentIndex,name:t,region:i&&i.option||{}}}function uk(n,e,t,i,r){n.data||is({el:e,componentModel:r,itemName:t,itemTooltipOption:i.get("tooltip")})}function ck(n,e,t,i,r){e.highDownSilentOnTouch=!!r.get("selectedMode");var a=i.getModel("emphasis"),o=a.get("focus");return Ue(e,o,a.get("blurScope"),a.get("disabled")),n.isGeo&&OB(e,r,t),o}function hk(n,e,t){var i=[],r;function a(){r=[]}function o(){r.length&&(i.push(r),r=[])}var s=e({polygonStart:a,polygonEnd:o,lineStart:a,lineEnd:o,point:function(l,u){isFinite(l)&&isFinite(u)&&r.push([l,u])},sphere:function(){}});return!t&&s.polygonStart(),E(n,function(l){s.lineStart();for(var u=0;u<l.length;u++)s.point(l[u][0],l[u][1]);s.lineEnd()}),!t&&s.polygonEnd(),i}var Wj=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,i,r,a){if(!(a&&a.type==="mapToggleSelect"&&a.from===this.uid)){var o=this.group;if(o.removeAll(),!t.getHostGeoModel()){if(this._mapDraw&&a&&a.type==="geoRoam"&&this._mapDraw.resetForLabelLayout(),a&&a.type==="geoRoam"&&a.componentType==="series"&&a.seriesId===t.id){var s=this._mapDraw;s&&o.add(s.group)}else if(t.needsDrawMap){var s=this._mapDraw||new ak(r);o.add(s.group),s.draw(t,i,r,this,a),this._mapDraw=s}else this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;t.get("showLegendSymbol")&&i.getComponent("legend")&&this._renderSymbols(t,i,r)}}},e.prototype.remove=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null,this.group.removeAll()},e.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},e.prototype._renderSymbols=function(t,i,r){var a=t.originalData,o=this.group;a.each(a.mapDimension("value"),function(s,l){if(!isNaN(s)){var u=a.getItemLayout(l);if(!(!u||!u.point)){var c=u.point,h=u.offset,f=new ca({style:{fill:t.getData().getVisual("style").fill},shape:{cx:c[0]+h*9,cy:c[1],r:3},silent:!0,z2:8+(h?0:ul+1)});if(!h){var d=t.mainSeries.getData(),g=a.getName(l),y=d.indexOfName(g),_=a.getItemModel(l),v=_.getModel("label"),p=d.getItemGraphicEl(y);kn(f,gn(_),{labelFetcher:{getFormattedLabel:function(x,b){return t.getFormattedLabel(y,b)}},defaultText:g}),f.disableLabelAnimation=!0,v.get("position")||f.setTextConfig({position:"bottom"}),p.onHoverStateChange=function(x){jp(f,x)}}o.add(f)}}})},e.type="map",e}(Pe),Gj=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.needsDrawMap=!1,t.seriesGroup=[],t.getTooltipPosition=function(i){if(i!=null){var r=this.getData().getName(i),a=this.coordinateSystem,o=a.getRegion(r);return o&&a.dataToPoint(o.getCenter())}},t}return e.prototype.getInitialData=function(t){for(var i=Fl(this,{coordDimensions:["value"],encodeDefaulter:Zt(rm,this)}),r=Dt(),a=[],o=0,s=i.count();o<s;o++){var l=i.getName(o);r.set(l,o)}var u=ga.load(this.getMapType(),this.option.nameMap,this.option.nameProperty);return E(u.regions,function(c){var h=c.name,f=r.get(h),d=c.properties&&c.properties.echartsStyle,g;f==null?(g={name:h},a.push(g)):g=i.getRawDataItem(f),d&&Kt(g,d)}),i.appendData(a),i},e.prototype.getHostGeoModel=function(){var t=this.option.geoIndex;return t!=null?this.ecModel.getComponent("geo",t):null},e.prototype.getMapType=function(){return(this.getHostGeoModel()||this).option.map},e.prototype.getRawValue=function(t){var i=this.getData();return i.get(i.mapDimension("value"),t)},e.prototype.getRegionModel=function(t){var i=this.getData();return i.getItemModel(i.indexOfName(t))},e.prototype.formatTooltip=function(t,i,r){for(var a=this.getData(),o=this.getRawValue(t),s=a.getName(t),l=this.seriesGroup,u=[],c=0;c<l.length;c++){var h=l[c].originalData.indexOfName(s),f=a.mapDimension("value");isNaN(l[c].originalData.get(f,h))||u.push(l[c].name)}return vn("section",{header:u.join(", "),noHeader:!u.length,blocks:[vn("nameValue",{name:s,value:o})]})},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.getLegendIcon=function(t){var i=t.icon||"roundRect",r=rn(i,0,0,t.itemWidth,t.itemHeight,t.itemStyle.fill);return r.setStyle(t.itemStyle),r.style.stroke="none",i.indexOf("empty")>-1&&(r.style.stroke=r.style.fill,r.style.fill="#fff",r.style.lineWidth=2),r},e.type="series.map",e.dependencies=["geo"],e.layoutMode="box",e.defaultOption={z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:null,showLegendSymbol:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,selectedMode:!0,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},nameProperty:"name"},e}(Oe);function jj(n,e){var t={};return E(n,function(i){i.each(i.mapDimension("value"),function(r,a){var o="ec-"+i.getName(a);t[o]=t[o]||[],isNaN(r)||t[o].push(r)})}),n[0].map(n[0].mapDimension("value"),function(i,r){for(var a="ec-"+n[0].getName(r),o=0,s=1/0,l=-1/0,u=t[a].length,c=0;c<u;c++)s=Math.min(s,t[a][c]),l=Math.max(l,t[a][c]),o+=t[a][c];var h;return e==="min"?h=s:e==="max"?h=l:e==="average"?h=o/u:h=o,u===0?NaN:h})}function Hj(n){var e={};n.eachSeriesByType("map",function(t){var i=t.getHostGeoModel(),r=i?"o"+i.id:"i"+t.getMapType();(e[r]=e[r]||[]).push(t)}),E(e,function(t,i){for(var r=jj(pt(t,function(o){return o.getData()}),t[0].get("mapValueCalculation")),a=0;a<t.length;a++)t[a].originalData=t[a].getData();for(var a=0;a<t.length;a++)t[a].seriesGroup=t,t[a].needsDrawMap=a===0&&!t[a].getHostGeoModel(),t[a].setData(r.cloneShallow()),t[a].mainSeries=t[0]})}function Uj(n){var e={};n.eachSeriesByType("map",function(t){var i=t.getMapType();if(!(t.getHostGeoModel()||e[i])){var r={};E(t.seriesGroup,function(o){var s=o.coordinateSystem,l=o.originalData;o.get("showLegendSymbol")&&n.getComponent("legend")&&l.each(l.mapDimension("value"),function(u,c){var h=l.getName(c),f=s.getRegion(h);if(!(!f||isNaN(u))){var d=r[h]||0,g=s.dataToPoint(f.getCenter());r[h]=d+1,l.setItemLayout(c,{point:g,offset:d})}})});var a=t.getData();a.each(function(o){var s=a.getName(o),l=a.getItemLayout(o)||{};l.showLabel=!r[s],a.setItemLayout(o,l)}),e[i]=!0}})}var pk=An,th=function(n){Q(e,n);function e(t){var i=n.call(this)||this;return i.type="view",i.dimensions=["x","y"],i._roamTransformable=new ia,i._rawTransformable=new ia,i.name=t,i}return e.prototype.setBoundingRect=function(t,i,r,a){return this._rect=new $t(t,i,r,a),this._rect},e.prototype.getBoundingRect=function(){return this._rect},e.prototype.setViewRect=function(t,i,r,a){this._transformTo(t,i,r,a),this._viewRect=new $t(t,i,r,a)},e.prototype._transformTo=function(t,i,r,a){var o=this.getBoundingRect(),s=this._rawTransformable;s.transform=o.calculateTransform(new $t(t,i,r,a));var l=s.parent;s.parent=null,s.decomposeTransform(),s.parent=l,this._updateTransform()},e.prototype.setCenter=function(t,i){t&&(this._center=[Mt(t[0],i.getWidth()),Mt(t[1],i.getHeight())],this._updateCenterAndZoom())},e.prototype.setZoom=function(t){t=t||1;var i=this.zoomLimit;i&&(i.max!=null&&(t=Math.min(i.max,t)),i.min!=null&&(t=Math.max(i.min,t))),this._zoom=t,this._updateCenterAndZoom()},e.prototype.getDefaultCenter=function(){var t=this.getBoundingRect(),i=t.x+t.width/2,r=t.y+t.height/2;return[i,r]},e.prototype.getCenter=function(){return this._center||this.getDefaultCenter()},e.prototype.getZoom=function(){return this._zoom||1},e.prototype.getRoamTransform=function(){return this._roamTransformable.getLocalTransform()},e.prototype._updateCenterAndZoom=function(){var t=this._rawTransformable.getLocalTransform(),i=this._roamTransformable,r=this.getDefaultCenter(),a=this.getCenter(),o=this.getZoom();a=An([],a,t),r=An([],r,t),i.originX=a[0],i.originY=a[1],i.x=r[0]-a[0],i.y=r[1]-a[1],i.scaleX=i.scaleY=o,this._updateTransform()},e.prototype._updateTransform=function(){var t=this._roamTransformable,i=this._rawTransformable;i.parent=t,t.updateTransform(),i.updateTransform(),yv(this.transform||(this.transform=[]),i.transform||fi()),this._rawTransform=i.getLocalTransform(),this.invTransform=this.invTransform||[],Qs(this.invTransform,this.transform),this.decomposeTransform()},e.prototype.getTransformInfo=function(){var t=this._rawTransformable,i=this._roamTransformable,r=new ia;return r.transform=i.transform,r.decomposeTransform(),{roam:{x:r.x,y:r.y,scaleX:r.scaleX,scaleY:r.scaleY},raw:{x:t.x,y:t.y,scaleX:t.scaleX,scaleY:t.scaleY}}},e.prototype.getViewRect=function(){return this._viewRect},e.prototype.getViewRectAfterRoam=function(){var t=this.getBoundingRect().clone();return t.applyTransform(this.transform),t},e.prototype.dataToPoint=function(t,i,r){var a=i?this._rawTransform:this.transform;return r=r||[],a?pk(r,t,a):Hn(r,t)},e.prototype.pointToData=function(t){var i=this.invTransform;return i?pk([],t,i):[t[0],t[1]]},e.prototype.convertToPixel=function(t,i,r){var a=dk(i);return a===this?a.dataToPoint(r):null},e.prototype.convertFromPixel=function(t,i,r){var a=dk(i);return a===this?a.pointToData(r):null},e.prototype.containPoint=function(t){return this.getViewRectAfterRoam().contain(t[0],t[1])},e.dimensions=["x","y"],e}(ia);function dk(n){var e=n.seriesModel;return e?e.coordinateSystem:null}var Xj={geoJSON:{aspectScale:.75,invertLongitute:!0},geoSVG:{aspectScale:1,invertLongitute:!1}},fk=["lng","lat"],K0=function(n){Q(e,n);function e(t,i,r){var a=n.call(this,t)||this;a.dimensions=fk,a.type="geo",a._nameCoordMap=Dt(),a.map=i;var o=r.projection,s=ga.load(i,r.nameMap,r.nameProperty),l=ga.getGeoResource(i);a.resourceType=l?l.type:null;var u=a.regions=s.regions,c=Xj[l.type];a._regionsMap=s.regionsMap,a.regions=s.regions,a.projection=o;var h;if(o)for(var f=0;f<u.length;f++){var d=u[f].getBoundingRect(o);h=h||d.clone(),h.union(d)}else h=s.boundingRect;return a.setBoundingRect(h.x,h.y,h.width,h.height),a.aspectScale=o?1:Ut(r.aspectScale,c.aspectScale),a._invertLongitute=o?!1:c.invertLongitute,a}return e.prototype._transformTo=function(t,i,r,a){var o=this.getBoundingRect(),s=this._invertLongitute;o=o.clone(),s&&(o.y=-o.y-o.height);var l=this._rawTransformable;l.transform=o.calculateTransform(new $t(t,i,r,a));var u=l.parent;l.parent=null,l.decomposeTransform(),l.parent=u,s&&(l.scaleY=-l.scaleY),this._updateTransform()},e.prototype.getRegion=function(t){return this._regionsMap.get(t)},e.prototype.getRegionByCoord=function(t){for(var i=this.regions,r=0;r<i.length;r++){var a=i[r];if(a.type==="geoJSON"&&a.contain(t))return i[r]}},e.prototype.addGeoCoord=function(t,i){this._nameCoordMap.set(t,i)},e.prototype.getGeoCoord=function(t){var i=this._regionsMap.get(t);return this._nameCoordMap.get(t)||i&&i.getCenter()},e.prototype.dataToPoint=function(t,i,r){if(Tt(t)&&(t=this.getGeoCoord(t)),t){var a=this.projection;return a&&(t=a.project(t)),t&&this.projectedToPoint(t,i,r)}},e.prototype.pointToData=function(t){var i=this.projection;return i&&(t=i.unproject(t)),t&&this.pointToProjected(t)},e.prototype.pointToProjected=function(t){return n.prototype.pointToData.call(this,t)},e.prototype.projectedToPoint=function(t,i,r){return n.prototype.dataToPoint.call(this,t,i,r)},e.prototype.convertToPixel=function(t,i,r){var a=gk(i);return a===this?a.dataToPoint(r):null},e.prototype.convertFromPixel=function(t,i,r){var a=gk(i);return a===this?a.pointToData(r):null},e}(th);tn(K0,th);function gk(n){var e=n.geoModel,t=n.seriesModel;return e?e.coordinateSystem:t?t.coordinateSystem||(t.getReferringComponents("geo",en).models[0]||{}).coordinateSystem:null}function vk(n,e){var t=n.get("boundingCoords");if(t!=null){var i=t[0],r=t[1];if(isFinite(i[0])&&isFinite(i[1])&&isFinite(r[0])&&isFinite(r[1])){var a=this.projection;if(a){var o=i[0],s=i[1],l=r[0],u=r[1];i=[1/0,1/0],r=[-1/0,-1/0];var c=function(M,I,A,C){for(var L=A-M,R=C-I,D=0;D<=100;D++){var N=D/100,k=a.project([M+L*N,I+R*N]);za(i,i,k),Ea(r,r,k)}};c(o,s,l,s),c(l,s,l,u),c(l,u,o,u),c(o,u,l,s)}this.setBoundingRect(i[0],i[1],r[0]-i[0],r[1]-i[1])}}var h=this.getBoundingRect(),f=n.get("layoutCenter"),d=n.get("layoutSize"),g=e.getWidth(),y=e.getHeight(),_=h.width/h.height*this.aspectScale,v=!1,p,x;f&&d&&(p=[Mt(f[0],g),Mt(f[1],y)],x=Mt(d,Math.min(g,y)),!isNaN(p[0])&&!isNaN(p[1])&&!isNaN(x)&&(v=!0));var b;if(v)b={},_>1?(b.width=x,b.height=x/_):(b.height=x,b.width=x*_),b.y=p[1]-b.height/2,b.x=p[0]-b.width/2;else{var S=n.getBoxLayoutParams();S.aspect=_,b=un(S,{width:g,height:y})}this.setViewRect(b.x,b.y,b.width,b.height),this.setCenter(n.get("center"),e),this.setZoom(n.get("zoom"))}function Zj(n,e){E(e.get("geoCoord"),function(t,i){n.addGeoCoord(i,t)})}var qj=function(){function n(){this.dimensions=fk}return n.prototype.create=function(e,t){var i=[];function r(o){return{nameProperty:o.get("nameProperty"),aspectScale:o.get("aspectScale"),projection:o.get("projection")}}e.eachComponent("geo",function(o,s){var l=o.get("map"),u=new K0(l+s,l,lt({nameMap:o.get("nameMap")},r(o)));u.zoomLimit=o.get("scaleLimit"),i.push(u),o.coordinateSystem=u,u.model=o,u.resize=vk,u.resize(o,t)}),e.eachSeries(function(o){var s=o.get("coordinateSystem");if(s==="geo"){var l=o.get("geoIndex")||0;o.coordinateSystem=i[l]}});var a={};return e.eachSeriesByType("map",function(o){if(!o.getHostGeoModel()){var s=o.getMapType();a[s]=a[s]||[],a[s].push(o)}}),E(a,function(o,s){var l=pt(o,function(c){return c.get("nameMap")}),u=new K0(s,s,lt({nameMap:nv(l)},r(o[0])));u.zoomLimit=bn.apply(null,pt(o,function(c){return c.get("scaleLimit")})),i.push(u),u.resize=vk,u.resize(o[0],t),E(o,function(c){c.coordinateSystem=u,Zj(u,c)})}),i},n.prototype.getFilledRegions=function(e,t,i,r){for(var a=(e||[]).slice(),o=Dt(),s=0;s<a.length;s++)o.set(a[s].name,a[s]);var l=ga.load(t,i,r);return E(l.regions,function(u){var c=u.name,h=o.get(c),f=u.properties&&u.properties.echartsStyle;h||(h={name:c},a.push(h)),f&&Kt(h,f)}),a},n}(),yk=new qj,Kj=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,i,r){var a=ga.getGeoResource(t.map);if(a&&a.type==="geoJSON"){var o=t.itemStyle=t.itemStyle||{};"color"in o||(o.color="#eee")}this.mergeDefaultAndTheme(t,r),Oo(t,"label",["show"])},e.prototype.optionUpdated=function(){var t=this,i=this.option;i.regions=yk.getFilledRegions(i.regions,i.map,i.nameMap,i.nameProperty);var r={};this._optionModelMap=br(i.regions||[],function(a,o){var s=o.name;return s&&(a.set(s,new Ce(o,t,t.ecModel)),o.selected&&(r[s]=!0)),a},Dt()),i.selectedMap||(i.selectedMap=r)},e.prototype.getRegionModel=function(t){return this._optionModelMap.get(t)||new Ce(null,this,this.ecModel)},e.prototype.getFormattedLabel=function(t,i){var r=this.getRegionModel(t),a=i==="normal"?r.get(["label","formatter"]):r.get(["emphasis","label","formatter"]),o={name:t};if(Ot(a))return o.status=i,a(o);if(Tt(a))return a.replace("{a}",t??"")},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.select=function(t){var i=this.option,r=i.selectedMode;if(r){r!=="multiple"&&(i.selectedMap=null);var a=i.selectedMap||(i.selectedMap={});a[t]=!0}},e.prototype.unSelect=function(t){var i=this.option.selectedMap;i&&(i[t]=!1)},e.prototype.toggleSelected=function(t){this[this.isSelected(t)?"unSelect":"select"](t)},e.prototype.isSelected=function(t){var i=this.option.selectedMap;return!!(i&&i[t])},e.type="geo",e.layoutMode="box",e.defaultOption={z:0,show:!0,left:"center",top:"center",aspectScale:null,silent:!1,map:"",boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},regions:[]},e}(le);function mk(n,e){return n.pointToProjected?n.pointToProjected(e):n.pointToData(e)}function Y0(n,e,t,i){var r=n.getZoom(),a=n.getCenter(),o=e.zoom,s=n.projectedToPoint?n.projectedToPoint(a):n.dataToPoint(a);if(e.dx!=null&&e.dy!=null&&(s[0]-=e.dx,s[1]-=e.dy,n.setCenter(mk(n,s),i)),o!=null){if(t){var l=t.min||0,u=t.max||1/0;o=Math.max(Math.min(r*o,u),l)/r}n.scaleX*=o,n.scaleY*=o;var c=(e.originX-n.x)*(o-1),h=(e.originY-n.y)*(o-1);n.x-=c,n.y-=h,n.updateTransform(),n.setCenter(mk(n,s),i),n.setZoom(o*r)}return{center:n.getCenter(),zoom:n.getZoom()}}var Yj=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.focusBlurEnabled=!0,t}return e.prototype.init=function(t,i){this._api=i},e.prototype.render=function(t,i,r,a){if(this._model=t,!t.get("show")){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;return}this._mapDraw||(this._mapDraw=new ak(r));var o=this._mapDraw;o.draw(t,i,r,this,a),o.group.on("click",this._handleRegionClick,this),o.group.silent=t.get("silent"),this.group.add(o.group),this.updateSelectStatus(t,i,r)},e.prototype._handleRegionClick=function(t){var i;hs(t.target,function(r){return(i=jt(r).eventData)!=null},!0),i&&this._api.dispatchAction({type:"geoToggleSelect",geoId:this._model.id,name:i.name})},e.prototype.updateSelectStatus=function(t,i,r){var a=this;this._mapDraw.group.traverse(function(o){var s=jt(o).eventData;if(s)return a._model.isSelected(s.name)?r.enterSelect(o):r.leaveSelect(o),!0})},e.prototype.findHighDownDispatchers=function(t){return this._mapDraw&&this._mapDraw.findHighDownDispatchers(t,this._model)},e.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove()},e.type="geo",e}(je);function Jj(n,e,t){ga.registerMap(n,e,t)}function _k(n){n.registerCoordinateSystem("geo",yk),n.registerComponentModel(Kj),n.registerComponentView(Yj),n.registerImpl("registerMap",Jj),n.registerImpl("getMap",function(t){return ga.getMapForUser(t)});function e(t,i){i.update="geo:updateSelectStatus",n.registerAction(i,function(r,a){var o={},s=[];return a.eachComponent({mainType:"geo",query:r},function(l){l[t](r.name);var u=l.coordinateSystem;E(u.regions,function(h){o[h.name]=l.isSelected(h.name)||!1});var c=[];E(o,function(h,f){o[f]&&c.push(f)}),s.push({geoIndex:l.componentIndex,name:c})}),{selected:o,allSelected:s,name:r.name}})}e("toggleSelected",{type:"geoToggleSelect",event:"geoselectchanged"}),e("select",{type:"geoSelect",event:"geoselected"}),e("unSelect",{type:"geoUnSelect",event:"geounselected"}),n.registerAction({type:"geoRoam",event:"geoRoam",update:"updateTransform"},function(t,i,r){var a=t.componentType||"series";i.eachComponent({mainType:a,query:t},function(o){var s=o.coordinateSystem;if(s.type==="geo"){var l=Y0(s,t,o.get("scaleLimit"),r);o.setCenter&&o.setCenter(l.center),o.setZoom&&o.setZoom(l.zoom),a==="series"&&E(o.seriesGroup,function(u){u.setCenter(l.center),u.setZoom(l.zoom)})}})})}function $j(n){ie(_k),n.registerChartView(Wj),n.registerSeriesModel(Gj),n.registerLayout(Uj),n.registerProcessor(n.PRIORITY.PROCESSOR.STATISTIC,Hj),wI("map",n.registerAction)}function Qj(n){var e=n;e.hierNode={defaultAncestor:null,ancestor:e,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};for(var t=[e],i,r;i=t.pop();)if(r=i.children,i.isExpand&&r.length)for(var a=r.length,o=a-1;o>=0;o--){var s=r[o];s.hierNode={defaultAncestor:null,ancestor:s,prelim:0,modifier:0,change:0,shift:0,i:o,thread:null},t.push(s)}}function t7(n,e){var t=n.isExpand?n.children:[],i=n.parentNode.children,r=n.hierNode.i?i[n.hierNode.i-1]:null;if(t.length){i7(n);var a=(t[0].hierNode.prelim+t[t.length-1].hierNode.prelim)/2;r?(n.hierNode.prelim=r.hierNode.prelim+e(n,r),n.hierNode.modifier=n.hierNode.prelim-a):n.hierNode.prelim=a}else r&&(n.hierNode.prelim=r.hierNode.prelim+e(n,r));n.parentNode.hierNode.defaultAncestor=r7(n,r,n.parentNode.hierNode.defaultAncestor||i[0],e)}function e7(n){var e=n.hierNode.prelim+n.parentNode.hierNode.modifier;n.setLayout({x:e},!0),n.hierNode.modifier+=n.parentNode.hierNode.modifier}function xk(n){return arguments.length?n:s7}function eh(n,e){return n-=Math.PI/2,{x:e*Math.cos(n),y:e*Math.sin(n)}}function n7(n,e){return un(n.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function i7(n){for(var e=n.children,t=e.length,i=0,r=0;--t>=0;){var a=e[t];a.hierNode.prelim+=i,a.hierNode.modifier+=i,r+=a.hierNode.change,i+=a.hierNode.shift+r}}function r7(n,e,t,i){if(e){for(var r=n,a=n,o=a.parentNode.children[0],s=e,l=r.hierNode.modifier,u=a.hierNode.modifier,c=o.hierNode.modifier,h=s.hierNode.modifier;s=J0(s),a=$0(a),s&&a;){r=J0(r),o=$0(o),r.hierNode.ancestor=n;var f=s.hierNode.prelim+h-a.hierNode.prelim-u+i(s,a);f>0&&(o7(a7(s,n,t),n,f),u+=f,l+=f),h+=s.hierNode.modifier,u+=a.hierNode.modifier,l+=r.hierNode.modifier,c+=o.hierNode.modifier}s&&!J0(r)&&(r.hierNode.thread=s,r.hierNode.modifier+=h-l),a&&!$0(o)&&(o.hierNode.thread=a,o.hierNode.modifier+=u-c,t=n)}return t}function J0(n){var e=n.children;return e.length&&n.isExpand?e[e.length-1]:n.hierNode.thread}function $0(n){var e=n.children;return e.length&&n.isExpand?e[0]:n.hierNode.thread}function a7(n,e,t){return n.hierNode.ancestor.parentNode===e.parentNode?n.hierNode.ancestor:t}function o7(n,e,t){var i=t/(e.hierNode.i-n.hierNode.i);e.hierNode.change-=i,e.hierNode.shift+=t,e.hierNode.modifier+=t,e.hierNode.prelim+=t,n.hierNode.change+=i}function s7(n,e){return n.parentNode===e.parentNode?1:2}var l7=function(){function n(){this.parentPoint=[],this.childPoints=[]}return n}(),u7=function(n){Q(e,n);function e(t){return n.call(this,t)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new l7},e.prototype.buildPath=function(t,i){var r=i.childPoints,a=r.length,o=i.parentPoint,s=r[0],l=r[a-1];if(a===1){t.moveTo(o[0],o[1]),t.lineTo(s[0],s[1]);return}var u=i.orient,c=u==="TB"||u==="BT"?0:1,h=1-c,f=Mt(i.forkPosition,1),d=[];d[c]=o[c],d[h]=o[h]+(l[h]-o[h])*f,t.moveTo(o[0],o[1]),t.lineTo(d[0],d[1]),t.moveTo(s[0],s[1]),d[c]=s[c],t.lineTo(d[0],d[1]),d[c]=l[c],t.lineTo(d[0],d[1]),t.lineTo(l[0],l[1]);for(var g=1;g<a-1;g++){var y=r[g];t.moveTo(y[0],y[1]),d[c]=y[c],t.lineTo(d[0],d[1])}},e}(re),c7=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t._mainGroup=new Gt,t}return e.prototype.init=function(t,i){this._controller=new $c(i.getZr()),this._controllerHost={target:this.group},this.group.add(this._mainGroup)},e.prototype.render=function(t,i,r){var a=t.getData(),o=t.layoutInfo,s=this._mainGroup,l=t.get("layout");l==="radial"?(s.x=o.x+o.width/2,s.y=o.y+o.height/2):(s.x=o.x,s.y=o.y),this._updateViewCoordSys(t,r),this._updateController(t,i,r);var u=this._data;a.diff(u).add(function(c){bk(a,c)&&wk(a,c,null,s,t)}).update(function(c,h){var f=u.getItemGraphicEl(h);if(!bk(a,c)){f&&Ik(u,h,f,s,t);return}wk(a,c,f,s,t)}).remove(function(c){var h=u.getItemGraphicEl(c);h&&Ik(u,c,h,s,t)}).execute(),this._nodeScaleRatio=t.get("nodeScaleRatio"),this._updateNodeAndLinkScale(t),t.get("expandAndCollapse")===!0&&a.eachItemGraphicEl(function(c,h){c.off("click").on("click",function(){r.dispatchAction({type:"treeExpandAndCollapse",seriesId:t.id,dataIndex:h})})}),this._data=a},e.prototype._updateViewCoordSys=function(t,i){var r=t.getData(),a=[];r.each(function(h){var f=r.getItemLayout(h);f&&!isNaN(f.x)&&!isNaN(f.y)&&a.push([+f.x,+f.y])});var o=[],s=[];Op(a,o,s);var l=this._min,u=this._max;s[0]-o[0]===0&&(o[0]=l?l[0]:o[0]-1,s[0]=u?u[0]:s[0]+1),s[1]-o[1]===0&&(o[1]=l?l[1]:o[1]-1,s[1]=u?u[1]:s[1]+1);var c=t.coordinateSystem=new th;c.zoomLimit=t.get("scaleLimit"),c.setBoundingRect(o[0],o[1],s[0]-o[0],s[1]-o[1]),c.setCenter(t.get("center"),i),c.setZoom(t.get("zoom")),this.group.attr({x:c.x,y:c.y,scaleX:c.scaleX,scaleY:c.scaleY}),this._min=o,this._max=s},e.prototype._updateController=function(t,i,r){var a=this,o=this._controller,s=this._controllerHost,l=this.group;o.setPointerChecker(function(u,c,h){var f=l.getBoundingRect();return f.applyTransform(l.transform),f.contain(c,h)&&!cf(u,r,t)}),o.enable(t.get("roam")),s.zoomLimit=t.get("scaleLimit"),s.zoom=t.coordinateSystem.getZoom(),o.off("pan").off("zoom").on("pan",function(u){j0(s,u.dx,u.dy),r.dispatchAction({seriesId:t.id,type:"treeRoam",dx:u.dx,dy:u.dy})}).on("zoom",function(u){H0(s,u.scale,u.originX,u.originY),r.dispatchAction({seriesId:t.id,type:"treeRoam",zoom:u.scale,originX:u.originX,originY:u.originY}),a._updateNodeAndLinkScale(t),r.updateLabelLayout()})},e.prototype._updateNodeAndLinkScale=function(t){var i=t.getData(),r=this._getNodeGlobalScale(t);i.eachItemGraphicEl(function(a,o){a.setSymbolScale(r)})},e.prototype._getNodeGlobalScale=function(t){var i=t.coordinateSystem;if(i.type!=="view")return 1;var r=this._nodeScaleRatio,a=i.scaleX||1,o=i.getZoom(),s=(o-1)*r+1;return s/a},e.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},e.prototype.remove=function(){this._mainGroup.removeAll(),this._data=null},e.type="tree",e}(Pe);function bk(n,e){var t=n.getItemLayout(e);return t&&!isNaN(t.x)&&!isNaN(t.y)}function wk(n,e,t,i,r){var a=!t,o=n.tree.getNodeByDataIndex(e),s=o.getModel(),l=o.getVisual("style").fill,u=o.isExpand===!1&&o.children.length!==0?l:"#fff",c=n.tree.root,h=o.parentNode===c?o:o.parentNode||o,f=n.getItemGraphicEl(h.dataIndex),d=h.getLayout(),g=f?{x:f.__oldX,y:f.__oldY,rawX:f.__radialOldRawX,rawY:f.__radialOldRawY}:d,y=o.getLayout();a?(t=new jc(n,e,null,{symbolInnerColor:u,useNameLabel:!0}),t.x=g.x,t.y=g.y):t.updateData(n,e,null,{symbolInnerColor:u,useNameLabel:!0}),t.__radialOldRawX=t.__radialRawX,t.__radialOldRawY=t.__radialRawY,t.__radialRawX=y.rawX,t.__radialRawY=y.rawY,i.add(t),n.setItemGraphicEl(e,t),t.__oldX=t.x,t.__oldY=t.y,me(t,{x:y.x,y:y.y},r);var _=t.getSymbolPath();if(r.get("layout")==="radial"){var v=c.children[0],p=v.getLayout(),x=v.children.length,b=void 0,S=void 0;if(y.x===p.x&&o.isExpand===!0&&v.children.length){var M={x:(v.children[0].getLayout().x+v.children[x-1].getLayout().x)/2,y:(v.children[0].getLayout().y+v.children[x-1].getLayout().y)/2};b=Math.atan2(M.y-p.y,M.x-p.x),b<0&&(b=Math.PI*2+b),S=M.x<p.x,S&&(b=b-Math.PI)}else b=Math.atan2(y.y-p.y,y.x-p.x),b<0&&(b=Math.PI*2+b),o.children.length===0||o.children.length!==0&&o.isExpand===!1?(S=y.x<p.x,S&&(b=b-Math.PI)):(S=y.x>p.x,S||(b=b-Math.PI));var I=S?"left":"right",A=s.getModel("label"),C=A.get("rotate"),L=C*(Math.PI/180),R=_.getTextContent();R&&(_.setTextConfig({position:A.get("position")||I,rotation:C==null?-b:L,origin:"center"}),R.setStyle("verticalAlign","middle"))}var D=s.get(["emphasis","focus"]),N=D==="relative"?Tu(o.getAncestorsIndices(),o.getDescendantIndices()):D==="ancestor"?o.getAncestorsIndices():D==="descendant"?o.getDescendantIndices():null;N&&(jt(t).focus=N),h7(r,o,c,t,g,d,y,i),t.__edge&&(t.onHoverStateChange=function(k){if(k!=="blur"){var O=o.parentNode&&n.getItemGraphicEl(o.parentNode.dataIndex);O&&O.hoverState===Yu||jp(t.__edge,k)}})}function h7(n,e,t,i,r,a,o,s){var l=e.getModel(),u=n.get("edgeShape"),c=n.get("layout"),h=n.getOrient(),f=n.get(["lineStyle","curveness"]),d=n.get("edgeForkPosition"),g=l.getModel("lineStyle").getLineStyle(),y=i.__edge;if(u==="curve")e.parentNode&&e.parentNode!==t&&(y||(y=i.__edge=new ac({shape:Q0(c,h,f,r,r)})),me(y,{shape:Q0(c,h,f,a,o)},n));else if(u==="polyline"&&c==="orthogonal"&&e!==t&&e.children&&e.children.length!==0&&e.isExpand===!0){for(var _=e.children,v=[],p=0;p<_.length;p++){var x=_[p].getLayout();v.push([x.x,x.y])}y||(y=i.__edge=new u7({shape:{parentPoint:[o.x,o.y],childPoints:[[o.x,o.y]],orient:h,forkPosition:d}})),me(y,{shape:{parentPoint:[o.x,o.y],childPoints:v}},n)}y&&!(u==="polyline"&&!e.isExpand)&&(y.useStyle(Bt({strokeNoScale:!0,fill:null},g)),Cn(y,l,"lineStyle"),Yo(y),s.add(y))}function Sk(n,e,t,i,r){var a=e.tree.root,o=Mk(a,n),s=o.source,l=o.sourceLayout,u=e.getItemGraphicEl(n.dataIndex);if(u){var c=e.getItemGraphicEl(s.dataIndex),h=c.__edge,f=u.__edge||(s.isExpand===!1||s.children.length===1?h:void 0),d=i.get("edgeShape"),g=i.get("layout"),y=i.get("orient"),_=i.get(["lineStyle","curveness"]);f&&(d==="curve"?Xa(f,{shape:Q0(g,y,_,l,l),style:{opacity:0}},i,{cb:function(){t.remove(f)},removeOpt:r}):d==="polyline"&&i.get("layout")==="orthogonal"&&Xa(f,{shape:{parentPoint:[l.x,l.y],childPoints:[[l.x,l.y]]},style:{opacity:0}},i,{cb:function(){t.remove(f)},removeOpt:r}))}}function Mk(n,e){for(var t=e.parentNode===n?e:e.parentNode||e,i;i=t.getLayout(),i==null;)t=t.parentNode===n?t:t.parentNode||t;return{source:t,sourceLayout:i}}function Ik(n,e,t,i,r){var a=n.tree.getNodeByDataIndex(e),o=n.tree.root,s=Mk(o,a).sourceLayout,l={duration:r.get("animationDurationUpdate"),easing:r.get("animationEasingUpdate")};Xa(t,{x:s.x+1,y:s.y+1},r,{cb:function(){i.remove(t),n.setItemGraphicEl(e,null)},removeOpt:l}),t.fadeOut(null,n.hostModel,{fadeLabel:!0,animation:l}),a.children.forEach(function(u){Sk(u,n,i,r,l)}),Sk(a,n,i,r,l)}function Q0(n,e,t,i,r){var a,o,s,l,u,c,h,f;if(n==="radial"){u=i.rawX,h=i.rawY,c=r.rawX,f=r.rawY;var d=eh(u,h),g=eh(u,h+(f-h)*t),y=eh(c,f+(h-f)*t),_=eh(c,f);return{x1:d.x||0,y1:d.y||0,x2:_.x||0,y2:_.y||0,cpx1:g.x||0,cpy1:g.y||0,cpx2:y.x||0,cpy2:y.y||0}}else u=i.x,h=i.y,c=r.x,f=r.y,(e==="LR"||e==="RL")&&(a=u+(c-u)*t,o=h,s=c+(u-c)*t,l=f),(e==="TB"||e==="BT")&&(a=u,o=h+(f-h)*t,s=c,l=f+(h-f)*t);return{x1:u,y1:h,x2:c,y2:f,cpx1:a,cpy1:o,cpx2:s,cpy2:l}}var ji=pe();function Tk(n){var e=n.mainData,t=n.datas;t||(t={main:e},n.datasAttr={main:"data"}),n.datas=n.mainData=null,Ak(e,t,n),E(t,function(i){E(e.TRANSFERABLE_METHODS,function(r){i.wrapMethod(r,Zt(p7,n))})}),e.wrapMethod("cloneShallow",Zt(f7,n)),E(e.CHANGABLE_METHODS,function(i){e.wrapMethod(i,Zt(d7,n))}),jn(t[e.dataType]===e)}function p7(n,e){if(y7(this)){var t=lt({},ji(this).datas);t[this.dataType]=e,Ak(e,t,n)}else t1(e,this.dataType,ji(this).mainData,n);return e}function d7(n,e){return n.struct&&n.struct.update(),e}function f7(n,e){return E(ji(e).datas,function(t,i){t!==e&&t1(t.cloneShallow(),i,e,n)}),e}function g7(n){var e=ji(this).mainData;return n==null||e==null?e:ji(e).datas[n]}function v7(){var n=ji(this).mainData;return n==null?[{data:n}]:pt(se(ji(n).datas),function(e){return{type:e,data:ji(n).datas[e]}})}function y7(n){return ji(n).mainData===n}function Ak(n,e,t){ji(n).datas={},E(e,function(i,r){t1(i,r,n,t)})}function t1(n,e,t,i){ji(t).datas[e]=n,ji(n).mainData=t,n.dataType=e,i.struct&&(n[i.structAttr]=i.struct,i.struct[i.datasAttr[e]]=n),n.getLinkedData=g7,n.getLinkedDataAll=v7}var m7=function(){function n(e,t){this.depth=0,this.height=0,this.dataIndex=-1,this.children=[],this.viewChildren=[],this.isExpand=!1,this.name=e||"",this.hostTree=t}return n.prototype.isRemoved=function(){return this.dataIndex<0},n.prototype.eachNode=function(e,t,i){Ot(e)&&(i=t,t=e,e=null),e=e||{},Tt(e)&&(e={order:e});var r=e.order||"preorder",a=this[e.attr||"children"],o;r==="preorder"&&(o=t.call(i,this));for(var s=0;!o&&s<a.length;s++)a[s].eachNode(e,t,i);r==="postorder"&&t.call(i,this)},n.prototype.updateDepthAndHeight=function(e){var t=0;this.depth=e;for(var i=0;i<this.children.length;i++){var r=this.children[i];r.updateDepthAndHeight(e+1),r.height>t&&(t=r.height)}this.height=t+1},n.prototype.getNodeById=function(e){if(this.getId()===e)return this;for(var t=0,i=this.children,r=i.length;t<r;t++){var a=i[t].getNodeById(e);if(a)return a}},n.prototype.contains=function(e){if(e===this)return!0;for(var t=0,i=this.children,r=i.length;t<r;t++){var a=i[t].contains(e);if(a)return a}},n.prototype.getAncestors=function(e){for(var t=[],i=e?this:this.parentNode;i;)t.push(i),i=i.parentNode;return t.reverse(),t},n.prototype.getAncestorsIndices=function(){for(var e=[],t=this;t;)e.push(t.dataIndex),t=t.parentNode;return e.reverse(),e},n.prototype.getDescendantIndices=function(){var e=[];return this.eachNode(function(t){e.push(t.dataIndex)}),e},n.prototype.getValue=function(e){var t=this.hostTree.data;return t.getStore().get(t.getDimensionIndex(e||"value"),this.dataIndex)},n.prototype.setLayout=function(e,t){this.dataIndex>=0&&this.hostTree.data.setItemLayout(this.dataIndex,e,t)},n.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},n.prototype.getModel=function(e){if(!(this.dataIndex<0)){var t=this.hostTree,i=t.data.getItemModel(this.dataIndex);return i.getModel(e)}},n.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},n.prototype.setVisual=function(e,t){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,e,t)},n.prototype.getVisual=function(e){return this.hostTree.data.getItemVisual(this.dataIndex,e)},n.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},n.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},n.prototype.getChildIndex=function(){if(this.parentNode){for(var e=this.parentNode.children,t=0;t<e.length;++t)if(e[t]===this)return t;return-1}return-1},n.prototype.isAncestorOf=function(e){for(var t=e.parentNode;t;){if(t===this)return!0;t=t.parentNode}return!1},n.prototype.isDescendantOf=function(e){return e!==this&&e.isAncestorOf(this)},n}(),e1=function(){function n(e){this.type="tree",this._nodes=[],this.hostModel=e}return n.prototype.eachNode=function(e,t,i){this.root.eachNode(e,t,i)},n.prototype.getNodeByDataIndex=function(e){var t=this.data.getRawIndex(e);return this._nodes[t]},n.prototype.getNodeById=function(e){return this.root.getNodeById(e)},n.prototype.update=function(){for(var e=this.data,t=this._nodes,i=0,r=t.length;i<r;i++)t[i].dataIndex=-1;for(var i=0,r=e.count();i<r;i++)t[e.getRawIndex(i)].dataIndex=i},n.prototype.clearLayouts=function(){this.data.clearItemLayouts()},n.createTree=function(e,t,i){var r=new n(t),a=[],o=1;s(e);function s(c,h){var f=c.value;o=Math.max(o,ht(f)?f.length:1),a.push(c);var d=new m7(ln(c.name,""),r);h?_7(d,h):r.root=d,r._nodes.push(d);var g=c.children;if(g)for(var y=0;y<g.length;y++)s(g[y],d)}r.root.updateDepthAndHeight(0);var l=zc(a,{coordDimensions:["value"],dimensionsCount:o}).dimensions,u=new Jn(l,t);return u.initData(a),i&&i(u),Tk({mainData:u,struct:r,structAttr:"tree"}),r.update(),r},n}();function _7(n,e){var t=e.children;n.parentNode!==e&&(t.push(n),n.parentNode=e)}function nh(n,e,t){if(n&&Qt(e,n.type)>=0){var i=t.getData().tree.root,r=n.targetNode;if(Tt(r)&&(r=i.getNodeById(r)),r&&i.contains(r))return{node:r};var a=n.targetNodeId;if(a!=null&&(r=i.getNodeById(a)))return{node:r}}}function Ck(n){for(var e=[];n;)n=n.parentNode,n&&e.push(n);return e.reverse()}function n1(n,e){var t=Ck(n);return Qt(t,e)>=0}function gf(n,e){for(var t=[];n;){var i=n.dataIndex;t.push({name:n.name,dataIndex:i,value:e.getRawValue(i)}),n=n.parentNode}return t.reverse(),t}var x7=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.hasSymbolVisual=!0,t.ignoreStyleOnData=!0,t}return e.prototype.getInitialData=function(t){var i={name:t.name,children:t.data},r=t.leaves||{},a=new Ce(r,this,this.ecModel),o=e1.createTree(i,this,s);function s(h){h.wrapMethod("getItemModel",function(f,d){var g=o.getNodeByDataIndex(d);return g&&g.children.length&&g.isExpand||(f.parentModel=a),f})}var l=0;o.eachNode("preorder",function(h){h.depth>l&&(l=h.depth)});var u=t.expandAndCollapse,c=u&&t.initialTreeDepth>=0?t.initialTreeDepth:l;return o.root.eachNode("preorder",function(h){var f=h.hostTree.data.getRawDataItem(h.dataIndex);h.isExpand=f&&f.collapsed!=null?!f.collapsed:h.depth<=c}),o.data},e.prototype.getOrient=function(){var t=this.get("orient");return t==="horizontal"?t="LR":t==="vertical"&&(t="TB"),t},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.formatTooltip=function(t,i,r){for(var a=this.getData().tree,o=a.root.children[0],s=a.getNodeByDataIndex(t),l=s.getValue(),u=s.name;s&&s!==o;)u=s.parentNode.name+"."+u,s=s.parentNode;return vn("nameValue",{name:u,value:l,noValue:isNaN(l)||l==null})},e.prototype.getDataParams=function(t){var i=n.prototype.getDataParams.apply(this,arguments),r=this.getData().tree.getNodeByDataIndex(t);return i.treeAncestors=gf(r,this),i.collapsed=!r.isExpand,i},e.type="series.tree",e.layoutMode="box",e.defaultOption={z:2,coordinateSystem:"view",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:"#ccc",width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500},e}(Oe);function b7(n,e,t){for(var i=[n],r=[],a;a=i.pop();)if(r.push(a),a.isExpand){var o=a.children;if(o.length)for(var s=0;s<o.length;s++)i.push(o[s])}for(;a=r.pop();)e(a,t)}function ih(n,e){for(var t=[n],i;i=t.pop();)if(e(i),i.isExpand){var r=i.children;if(r.length)for(var a=r.length-1;a>=0;a--)t.push(r[a])}}function w7(n,e){n.eachSeriesByType("tree",function(t){S7(t,e)})}function S7(n,e){var t=n7(n,e);n.layoutInfo=t;var i=n.get("layout"),r=0,a=0,o=null;i==="radial"?(r=2*Math.PI,a=Math.min(t.height,t.width)/2,o=xk(function(x,b){return(x.parentNode===b.parentNode?1:2)/x.depth})):(r=t.width,a=t.height,o=xk());var s=n.getData().tree.root,l=s.children[0];if(l){Qj(s),b7(l,t7,o),s.hierNode.modifier=-l.hierNode.prelim,ih(l,e7);var u=l,c=l,h=l;ih(l,function(x){var b=x.getLayout().x;b<u.getLayout().x&&(u=x),b>c.getLayout().x&&(c=x),x.depth>h.depth&&(h=x)});var f=u===c?1:o(u,c)/2,d=f-u.getLayout().x,g=0,y=0,_=0,v=0;if(i==="radial")g=r/(c.getLayout().x+f+d),y=a/(h.depth-1||1),ih(l,function(x){_=(x.getLayout().x+d)*g,v=(x.depth-1)*y;var b=eh(_,v);x.setLayout({x:b.x,y:b.y,rawX:_,rawY:v},!0)});else{var p=n.getOrient();p==="RL"||p==="LR"?(y=a/(c.getLayout().x+f+d),g=r/(h.depth-1||1),ih(l,function(x){v=(x.getLayout().x+d)*y,_=p==="LR"?(x.depth-1)*g:r-(x.depth-1)*g,x.setLayout({x:_,y:v},!0)})):(p==="TB"||p==="BT")&&(g=r/(c.getLayout().x+f+d),y=a/(h.depth-1||1),ih(l,function(x){_=(x.getLayout().x+d)*g,v=p==="TB"?(x.depth-1)*y:a-(x.depth-1)*y,x.setLayout({x:_,y:v},!0)}))}}}function M7(n){n.eachSeriesByType("tree",function(e){var t=e.getData(),i=t.tree;i.eachNode(function(r){var a=r.getModel(),o=a.getModel("itemStyle").getItemStyle(),s=t.ensureUniqueItemVisual(r.dataIndex,"style");lt(s,o)})})}function I7(n){n.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},function(e,t){t.eachComponent({mainType:"series",subType:"tree",query:e},function(i){var r=e.dataIndex,a=i.getData().tree,o=a.getNodeByDataIndex(r);o.isExpand=!o.isExpand})}),n.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},function(e,t,i){t.eachComponent({mainType:"series",subType:"tree",query:e},function(r){var a=r.coordinateSystem,o=Y0(a,e,void 0,i);r.setCenter&&r.setCenter(o.center),r.setZoom&&r.setZoom(o.zoom)})})}function T7(n){n.registerChartView(c7),n.registerSeriesModel(x7),n.registerLayout(w7),n.registerVisual(M7),I7(n)}var kk=["treemapZoomToNode","treemapRender","treemapMove"];function A7(n){for(var e=0;e<kk.length;e++)n.registerAction({type:kk[e],update:"updateView"},Je);n.registerAction({type:"treemapRootToNode",update:"updateView"},function(t,i){i.eachComponent({mainType:"series",subType:"treemap",query:t},r);function r(a,o){var s=["treemapZoomToNode","treemapRootToNode"],l=nh(t,s,a);if(l){var u=a.getViewRoot();u&&(t.direction=n1(u,l.node)?"rollUp":"drillDown"),a.resetViewRoot(l.node)}}})}function Lk(n){var e=n.getData(),t=e.tree,i={};t.eachNode(function(r){for(var a=r;a&&a.depth>1;)a=a.parentNode;var o=lm(n.ecModel,a.name||a.dataIndex+"",i);r.setVisual("decal",o)})}var C7=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.preventUsingHoverLayer=!0,t}return e.prototype.getInitialData=function(t,i){var r={name:t.name,children:t.data};Dk(r);var a=t.levels||[],o=this.designatedVisualItemStyle={},s=new Ce({itemStyle:o},this,i);a=t.levels=k7(a,i);var l=pt(a||[],function(h){return new Ce(h,s,i)},this),u=e1.createTree(r,this,c);function c(h){h.wrapMethod("getItemModel",function(f,d){var g=u.getNodeByDataIndex(d),y=g?l[g.depth]:null;return f.parentModel=y||s,f})}return u.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.formatTooltip=function(t,i,r){var a=this.getData(),o=this.getRawValue(t),s=a.getName(t);return vn("nameValue",{name:s,value:o})},e.prototype.getDataParams=function(t){var i=n.prototype.getDataParams.apply(this,arguments),r=this.getData().tree.getNodeByDataIndex(t);return i.treeAncestors=gf(r,this),i.treePathInfo=i.treeAncestors,i},e.prototype.setLayoutInfo=function(t){this.layoutInfo=this.layoutInfo||{},lt(this.layoutInfo,t)},e.prototype.mapIdToIndex=function(t){var i=this._idIndexMap;i||(i=this._idIndexMap=Dt(),this._idIndexMapCount=0);var r=i.get(t);return r==null&&i.set(t,r=this._idIndexMapCount++),r},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(t){t?this._viewRoot=t:t=this._viewRoot;var i=this.getRawData().tree.root;(!t||t!==i&&!i.contains(t))&&(this._viewRoot=i)},e.prototype.enableAriaDecal=function(){Lk(this)},e.type="series.treemap",e.layoutMode="box",e.defaultOption={progressive:0,left:"center",top:"middle",width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"▶",zoomToNodeRatio:.32*.32,scaleLimit:null,roam:!0,nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",top:"bottom",emptyItemWidth:25,itemStyle:{color:"rgba(0,0,0,0.7)",textStyle:{color:"#fff"}},emphasis:{itemStyle:{color:"rgba(0,0,0,0.9)"}}},label:{show:!0,distance:0,padding:5,position:"inside",color:"#fff",overflow:"truncate"},upperLabel:{show:!1,position:[0,"50%"],height:20,overflow:"truncate",verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],overflow:"truncate",verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},e}(Oe);function Dk(n){var e=0;E(n.children,function(i){Dk(i);var r=i.value;ht(r)&&(r=r[0]),e+=r});var t=n.value;ht(t)&&(t=t[0]),(t==null||isNaN(t))&&(t=e),t<0&&(t=0),ht(n.value)?n.value[0]=t:n.value=t}function k7(n,e){var t=De(e.get("color")),i=De(e.get(["aria","decal","decals"]));if(t){n=n||[];var r,a;E(n,function(s){var l=new Ce(s),u=l.get("color"),c=l.get("decal");(l.get(["itemStyle","color"])||u&&u!=="none")&&(r=!0),(l.get(["itemStyle","decal"])||c&&c!=="none")&&(a=!0)});var o=n[0]||(n[0]={});return r||(o.color=t.slice()),!a&&i&&(o.decal=i.slice()),n}}var L7=8,Pk=8,i1=5,D7=function(){function n(e){this.group=new Gt,e.add(this.group)}return n.prototype.render=function(e,t,i,r){var a=e.getModel("breadcrumb"),o=this.group;if(o.removeAll(),!(!a.get("show")||!i)){var s=a.getModel("itemStyle"),l=a.getModel("emphasis"),u=s.getModel("textStyle"),c=l.getModel(["itemStyle","textStyle"]),h={pos:{left:a.get("left"),right:a.get("right"),top:a.get("top"),bottom:a.get("bottom")},box:{width:t.getWidth(),height:t.getHeight()},emptyItemWidth:a.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(i,h,u),this._renderContent(e,h,s,l,u,c,r),gd(o,h.pos,h.box)}},n.prototype._prepare=function(e,t,i){for(var r=e;r;r=r.parentNode){var a=ln(r.getModel().get("name"),""),o=i.getTextRect(a),s=Math.max(o.width+L7*2,t.emptyItemWidth);t.totalWidth+=s+Pk,t.renderList.push({node:r,text:a,width:s})}},n.prototype._renderContent=function(e,t,i,r,a,o,s){for(var l=0,u=t.emptyItemWidth,c=e.get(["breadcrumb","height"]),h=V4(t.pos,t.box),f=t.totalWidth,d=t.renderList,g=r.getModel("itemStyle").getItemStyle(),y=d.length-1;y>=0;y--){var _=d[y],v=_.node,p=_.width,x=_.text;f>h.width&&(f-=p-u,p=u,x=null);var b=new Kn({shape:{points:P7(l,0,p,c,y===d.length-1,y===0)},style:Bt(i.getItemStyle(),{lineJoin:"bevel"}),textContent:new fe({style:Ee(a,{text:x})}),textConfig:{position:"inside"},z2:ul*1e4,onclick:Zt(s,v)});b.disableLabelAnimation=!0,b.getTextContent().ensureState("emphasis").style=Ee(o,{text:x}),b.ensureState("emphasis").style=g,Ue(b,r.get("focus"),r.get("blurScope"),r.get("disabled")),this.group.add(b),R7(b,e,v),l+=p+Pk}},n.prototype.remove=function(){this.group.removeAll()},n}();function P7(n,e,t,i,r,a){var o=[[r?n:n-i1,e],[n+t,e],[n+t,e+i],[r?n:n-i1,e+i]];return!a&&o.splice(2,0,[n+t+i1,e+i/2]),!r&&o.push([n,e+i/2]),o}function R7(n,e,t){jt(n).eventData={componentType:"series",componentSubType:"treemap",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:t&&t.dataIndex,name:t&&t.name},treePathInfo:t&&gf(t,e)}}var N7=function(){function n(){this._storage=[],this._elExistsMap={}}return n.prototype.add=function(e,t,i,r,a){return this._elExistsMap[e.id]?!1:(this._elExistsMap[e.id]=!0,this._storage.push({el:e,target:t,duration:i,delay:r,easing:a}),!0)},n.prototype.finished=function(e){return this._finishedCallback=e,this},n.prototype.start=function(){for(var e=this,t=this._storage.length,i=function(){t--,t<=0&&(e._storage.length=0,e._elExistsMap={},e._finishedCallback&&e._finishedCallback())},r=0,a=this._storage.length;r<a;r++){var o=this._storage[r];o.el.animateTo(o.target,{duration:o.duration,delay:o.delay,easing:o.easing,setToFinal:!0,done:i,aborted:i})}return this},n}();function z7(){return new N7}var r1=Gt,Rk=de,Nk=3,zk="label",Ek="upperLabel",E7=ul*10,O7=ul*2,B7=ul*3,ks=Fo([["fill","color"],["stroke","strokeColor"],["lineWidth","strokeWidth"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),Ok=function(n){var e=ks(n);return e.stroke=e.fill=e.lineWidth=null,e},vf=pe(),V7=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t._state="ready",t._storage=rh(),t}return e.prototype.render=function(t,i,r,a){var o=i.findComponents({mainType:"series",subType:"treemap",query:a});if(!(Qt(o,t)<0)){this.seriesModel=t,this.api=r,this.ecModel=i;var s=["treemapZoomToNode","treemapRootToNode"],l=nh(a,s,t),u=a&&a.type,c=t.layoutInfo,h=!this._oldTree,f=this._storage,d=u==="treemapRootToNode"&&l&&f?{rootNodeGroup:f.nodeGroup[l.node.getRawIndex()],direction:a.direction}:null,g=this._giveContainerGroup(c),y=t.get("animation"),_=this._doRender(g,t,d);y&&!h&&(!u||u==="treemapZoomToNode"||u==="treemapRootToNode")?this._doAnimation(g,_,t,d):_.renderFinally(),this._resetController(r),this._renderBreadcrumb(t,r,l)}},e.prototype._giveContainerGroup=function(t){var i=this._containerGroup;return i||(i=this._containerGroup=new r1,this._initEvents(i),this.group.add(i)),i.x=t.x,i.y=t.y,i},e.prototype._doRender=function(t,i,r){var a=i.getData().tree,o=this._oldTree,s=rh(),l=rh(),u=this._storage,c=[];function h(p,x,b,S){return F7(i,l,u,r,s,c,p,x,b,S)}y(a.root?[a.root]:[],o&&o.root?[o.root]:[],t,a===o||!o,0);var f=_(u);if(this._oldTree=a,this._storage=l,this._controllerHost){var d=this.seriesModel.layoutInfo,g=a.root.getLayout();g.width===d.width&&g.height===d.height&&(this._controllerHost.zoom=1)}return{lastsForAnimation:s,willDeleteEls:f,renderFinally:v};function y(p,x,b,S,M){S?(x=p,E(p,function(C,L){!C.isRemoved()&&A(L,L)})):new pa(x,p,I,I).add(A).update(A).remove(Zt(A,null)).execute();function I(C){return C.getId()}function A(C,L){var R=C!=null?p[C]:null,D=L!=null?x[L]:null,N=h(R,D,b,M);N&&y(R&&R.viewChildren||[],D&&D.viewChildren||[],N,S,M+1)}}function _(p){var x=rh();return p&&E(p,function(b,S){var M=x[S];E(b,function(I){I&&(M.push(I),vf(I).willDelete=!0)})}),x}function v(){E(f,function(p){E(p,function(x){x.parent&&x.parent.remove(x)})}),E(c,function(p){p.invisible=!0,p.dirty()})}},e.prototype._doAnimation=function(t,i,r,a){var o=r.get("animationDurationUpdate"),s=r.get("animationEasing"),l=(Ot(o)?0:o)||0,u=(Ot(s)?null:s)||"cubicOut",c=z7();E(i.willDeleteEls,function(h,f){E(h,function(d,g){if(!d.invisible){var y=d.parent,_,v=vf(y);if(a&&a.direction==="drillDown")_=y===a.rootNodeGroup?{shape:{x:0,y:0,width:v.nodeWidth,height:v.nodeHeight},style:{opacity:0}}:{style:{opacity:0}};else{var p=0,x=0;v.willDelete||(p=v.nodeWidth/2,x=v.nodeHeight/2),_=f==="nodeGroup"?{x:p,y:x,style:{opacity:0}}:{shape:{x:p,y:x,width:0,height:0},style:{opacity:0}}}_&&c.add(d,_,l,0,u)}})}),E(this._storage,function(h,f){E(h,function(d,g){var y=i.lastsForAnimation[f][g],_={};y&&(d instanceof Gt?y.oldX!=null&&(_.x=d.x,_.y=d.y,d.x=y.oldX,d.y=y.oldY):(y.oldShape&&(_.shape=lt({},d.shape),d.setShape(y.oldShape)),y.fadein?(d.setStyle("opacity",0),_.style={opacity:1}):d.style.opacity!==1&&(_.style={opacity:1})),c.add(d,_,l,0,u))})},this),this._state="animating",c.finished(Ct(function(){this._state="ready",i.renderFinally()},this)).start()},e.prototype._resetController=function(t){var i=this._controller,r=this._controllerHost;r||(this._controllerHost={target:this.group},r=this._controllerHost),i||(i=this._controller=new $c(t.getZr()),i.enable(this.seriesModel.get("roam")),r.zoomLimit=this.seriesModel.get("scaleLimit"),r.zoom=this.seriesModel.get("zoom"),i.on("pan",Ct(this._onPan,this)),i.on("zoom",Ct(this._onZoom,this)));var a=new $t(0,0,t.getWidth(),t.getHeight());i.setPointerChecker(function(o,s,l){return a.contain(s,l)})},e.prototype._clearController=function(){var t=this._controller;this._controllerHost=null,t&&(t.dispose(),t=null)},e.prototype._onPan=function(t){if(this._state!=="animating"&&(Math.abs(t.dx)>Nk||Math.abs(t.dy)>Nk)){var i=this.seriesModel.getData().tree.root;if(!i)return;var r=i.getLayout();if(!r)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:r.x+t.dx,y:r.y+t.dy,width:r.width,height:r.height}})}},e.prototype._onZoom=function(t){var i=t.originX,r=t.originY,a=t.scale;if(this._state!=="animating"){var o=this.seriesModel.getData().tree.root;if(!o)return;var s=o.getLayout();if(!s)return;var l=new $t(s.x,s.y,s.width,s.height),u=null,c=this._controllerHost;u=c.zoomLimit;var h=c.zoom=c.zoom||1;if(h*=a,u){var f=u.min||0,d=u.max||1/0;h=Math.max(Math.min(d,h),f)}var g=h/c.zoom;c.zoom=h;var y=this.seriesModel.layoutInfo;i-=y.x,r-=y.y;var _=fi();Sr(_,_,[-i,-r]),mv(_,_,[g,g]),Sr(_,_,[i,r]),l.applyTransform(_),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:l.x,y:l.y,width:l.width,height:l.height}})}},e.prototype._initEvents=function(t){var i=this;t.on("click",function(r){if(i._state==="ready"){var a=i.seriesModel.get("nodeClick",!0);if(a){var o=i.findTarget(r.offsetX,r.offsetY);if(o){var s=o.node;if(s.getLayout().isLeafRoot)i._rootToNode(o);else if(a==="zoomToNode")i._zoomToNode(o);else if(a==="link"){var l=s.hostTree.data.getItemModel(s.dataIndex),u=l.get("link",!0),c=l.get("target",!0)||"blank";u&&dd(u,c)}}}}},this)},e.prototype._renderBreadcrumb=function(t,i,r){var a=this;r||(r=t.get("leafDepth",!0)!=null?{node:t.getViewRoot()}:this.findTarget(i.getWidth()/2,i.getHeight()/2),r||(r={node:t.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new D7(this.group))).render(t,i,r.node,function(o){a._state!=="animating"&&(n1(t.getViewRoot(),o)?a._rootToNode({node:o}):a._zoomToNode({node:o}))})},e.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=rh(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},e.prototype.dispose=function(){this._clearController()},e.prototype._zoomToNode=function(t){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},e.prototype._rootToNode=function(t){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},e.prototype.findTarget=function(t,i){var r,a=this.seriesModel.getViewRoot();return a.eachNode({attr:"viewChildren",order:"preorder"},function(o){var s=this._storage.background[o.getRawIndex()];if(s){var l=s.transformCoordToLocal(t,i),u=s.shape;if(u.x<=l[0]&&l[0]<=u.x+u.width&&u.y<=l[1]&&l[1]<=u.y+u.height)r={node:o,offsetX:l[0],offsetY:l[1]};else return!1}},this),r},e.type="treemap",e}(Pe);function rh(){return{nodeGroup:[],background:[],content:[]}}function F7(n,e,t,i,r,a,o,s,l,u){if(!o)return;var c=o.getLayout(),h=n.getData(),f=o.getModel();if(h.setItemGraphicEl(o.dataIndex,null),!c||!c.isInView)return;var d=c.width,g=c.height,y=c.borderWidth,_=c.invisible,v=o.getRawIndex(),p=s&&s.getRawIndex(),x=o.viewChildren,b=c.upperHeight,S=x&&x.length,M=f.getModel("itemStyle"),I=f.getModel(["emphasis","itemStyle"]),A=f.getModel(["blur","itemStyle"]),C=f.getModel(["select","itemStyle"]),L=M.get("borderRadius")||0,R=at("nodeGroup",r1);if(!R)return;if(l.add(R),R.x=c.x||0,R.y=c.y||0,R.markRedraw(),vf(R).nodeWidth=d,vf(R).nodeHeight=g,c.isAboveViewRoot)return R;var D=at("background",Rk,u,O7);D&&J(R,D,S&&c.upperLabelHeight);var N=f.getModel("emphasis"),k=N.get("focus"),O=N.get("blurScope"),F=N.get("disabled"),G=k==="ancestor"?o.getAncestorsIndices():k==="descendant"?o.getDescendantIndices():k;if(S)tc(R)&&$o(R,!1),D&&($o(D,!F),h.setItemGraphicEl(o.dataIndex,D),Ry(D,G,O));else{var q=at("content",Rk,u,B7);q&&H(R,q),D.disableMorphing=!0,D&&tc(D)&&$o(D,!1),$o(R,!F),h.setItemGraphicEl(o.dataIndex,R);var j=f.getShallow("cursor");j&&q.attr("cursor",j),Ry(R,G,O)}return R;function J(wt,xt,zt){var bt=jt(xt);if(bt.dataIndex=o.dataIndex,bt.seriesIndex=n.seriesIndex,xt.setShape({x:0,y:0,width:d,height:g,r:L}),_)K(xt);else{xt.invisible=!1;var Pt=o.getVisual("style"),ae=Pt.stroke,z=Ok(M);z.fill=ae;var st=ks(I);st.fill=I.get("borderColor");var rt=ks(A);rt.fill=A.get("borderColor");var Z=ks(C);if(Z.fill=C.get("borderColor"),zt){var U=d-2*y;ut(xt,ae,Pt.opacity,{x:y,y:0,width:U,height:b})}else xt.removeTextContent();xt.setStyle(z),xt.ensureState("emphasis").style=st,xt.ensureState("blur").style=rt,xt.ensureState("select").style=Z,Yo(xt)}wt.add(xt)}function H(wt,xt){var zt=jt(xt);zt.dataIndex=o.dataIndex,zt.seriesIndex=n.seriesIndex;var bt=Math.max(d-2*y,0),Pt=Math.max(g-2*y,0);if(xt.culling=!0,xt.setShape({x:y,y,width:bt,height:Pt,r:L}),_)K(xt);else{xt.invisible=!1;var ae=o.getVisual("style"),z=ae.fill,st=Ok(M);st.fill=z,st.decal=ae.decal;var rt=ks(I),Z=ks(A),U=ks(C);ut(xt,z,ae.opacity,null),xt.setStyle(st),xt.ensureState("emphasis").style=rt,xt.ensureState("blur").style=Z,xt.ensureState("select").style=U,Yo(xt)}wt.add(xt)}function K(wt){!wt.invisible&&a.push(wt)}function ut(wt,xt,zt,bt){var Pt=f.getModel(bt?Ek:zk),ae=ln(f.get("name"),null),z=Pt.getShallow("show");kn(wt,gn(f,bt?Ek:zk),{defaultText:z?ae:null,inheritColor:xt,defaultOpacity:zt,labelFetcher:n,labelDataIndex:o.dataIndex});var st=wt.getTextContent();if(st){var rt=st.style,Z=av(rt.padding||0);bt&&(wt.setTextConfig({layoutRect:bt}),st.disableLabelLayout=!0),st.beforeUpdate=function(){var tt=Math.max((bt?bt.width:wt.shape.width)-Z[1]-Z[3],0),ft=Math.max((bt?bt.height:wt.shape.height)-Z[0]-Z[2],0);(rt.width!==tt||rt.height!==ft)&&st.setStyle({width:tt,height:ft})},rt.truncateMinChar=2,rt.lineOverflow="truncate",ot(rt,bt,c);var U=st.getState("emphasis");ot(U?U.style:null,bt,c)}}function ot(wt,xt,zt){var bt=wt?wt.text:null;if(!xt&&zt.isLeafRoot&&bt!=null){var Pt=n.get("drillDownIcon",!0);wt.text=Pt?Pt+" "+bt:bt}}function at(wt,xt,zt,bt){var Pt=p!=null&&t[wt][p],ae=r[wt];return Pt?(t[wt][p]=null,Nt(ae,Pt)):_||(Pt=new xt,Pt instanceof Ri&&(Pt.z2=W7(zt,bt)),Yt(ae,Pt)),e[wt][v]=Pt}function Nt(wt,xt){var zt=wt[v]={};xt instanceof r1?(zt.oldX=xt.x,zt.oldY=xt.y):zt.oldShape=lt({},xt.shape)}function Yt(wt,xt){var zt=wt[v]={},bt=o.parentNode,Pt=xt instanceof Gt;if(bt&&(!i||i.direction==="drillDown")){var ae=0,z=0,st=r.background[bt.getRawIndex()];!i&&st&&st.oldShape&&(ae=st.oldShape.width,z=st.oldShape.height),Pt?(zt.oldX=0,zt.oldY=z):zt.oldShape={x:ae,y:z,width:0,height:0}}zt.fadein=!Pt}}function W7(n,e){return n*E7+e}var ah=E,G7=Vt,yf=-1,mn=function(){function n(e){var t=e.mappingMethod,i=e.type,r=this.option=Wt(e);this.type=i,this.mappingMethod=t,this._normalizeData=U7[t];var a=n.visualHandlers[i];this.applyVisual=a.applyVisual,this.getColorMapper=a.getColorMapper,this._normalizedToVisual=a._normalizedToVisual[t],t==="piecewise"?(a1(r),j7(r)):t==="category"?r.categories?H7(r):a1(r,!0):(jn(t!=="linear"||r.dataExtent),a1(r))}return n.prototype.mapValueToVisual=function(e){var t=this._normalizeData(e);return this._normalizedToVisual(t,e)},n.prototype.getNormalizer=function(){return Ct(this._normalizeData,this)},n.listVisualTypes=function(){return se(n.visualHandlers)},n.isValidType=function(e){return n.visualHandlers.hasOwnProperty(e)},n.eachVisual=function(e,t,i){Vt(e)?E(e,t,i):t.call(i,e)},n.mapVisual=function(e,t,i){var r,a=ht(e)?[]:Vt(e)?{}:(r=!0,null);return n.eachVisual(e,function(o,s){var l=t.call(i,o,s);r?a=l:a[s]=l}),a},n.retrieveVisuals=function(e){var t={},i;return e&&ah(n.visualHandlers,function(r,a){e.hasOwnProperty(a)&&(t[a]=e[a],i=!0)}),i?t:null},n.prepareVisualTypes=function(e){if(ht(e))e=e.slice();else if(G7(e)){var t=[];ah(e,function(i,r){t.push(r)}),e=t}else return[];return e.sort(function(i,r){return r==="color"&&i!=="color"&&i.indexOf("color")===0?1:-1}),e},n.dependsOn=function(e,t){return t==="color"?!!(e&&e.indexOf(t)===0):e===t},n.findPieceIndex=function(e,t,i){for(var r,a=1/0,o=0,s=t.length;o<s;o++){var l=t[o].value;if(l!=null){if(l===e||Tt(l)&&l===e+"")return o;i&&f(l,o)}}for(var o=0,s=t.length;o<s;o++){var u=t[o],c=u.interval,h=u.close;if(c){if(c[0]===-1/0){if(_f(h[1],e,c[1]))return o}else if(c[1]===1/0){if(_f(h[0],c[0],e))return o}else if(_f(h[0],c[0],e)&&_f(h[1],e,c[1]))return o;i&&f(c[0],o),i&&f(c[1],o)}}if(i)return e===1/0?t.length-1:e===-1/0?0:r;function f(d,g){var y=Math.abs(d-e);y<a&&(a=y,r=g)}},n.visualHandlers={color:{applyVisual:oh("color"),getColorMapper:function(){var e=this.option;return Ct(e.mappingMethod==="category"?function(t,i){return!i&&(t=this._normalizeData(t)),sh.call(this,t)}:function(t,i,r){var a=!!r;return!i&&(t=this._normalizeData(t)),r=Lv(t,e.parsedVisual,r),a?r:ea(r,"rgba")},this)},_normalizedToVisual:{linear:function(e){return ea(Lv(e,this.option.parsedVisual),"rgba")},category:sh,piecewise:function(e,t){var i=s1.call(this,t);return i==null&&(i=ea(Lv(e,this.option.parsedVisual),"rgba")),i},fixed:Ls}},colorHue:mf(function(e,t){return Eu(e,t)}),colorSaturation:mf(function(e,t){return Eu(e,null,t)}),colorLightness:mf(function(e,t){return Eu(e,null,null,t)}),colorAlpha:mf(function(e,t){return gp(e,t)}),decal:{applyVisual:oh("decal"),_normalizedToVisual:{linear:null,category:sh,piecewise:null,fixed:null}},opacity:{applyVisual:oh("opacity"),_normalizedToVisual:o1([0,1])},liftZ:{applyVisual:oh("liftZ"),_normalizedToVisual:{linear:Ls,category:Ls,piecewise:Ls,fixed:Ls}},symbol:{applyVisual:function(e,t,i){var r=this.mapValueToVisual(e);i("symbol",r)},_normalizedToVisual:{linear:Bk,category:sh,piecewise:function(e,t){var i=s1.call(this,t);return i==null&&(i=Bk.call(this,e)),i},fixed:Ls}},symbolSize:{applyVisual:oh("symbolSize"),_normalizedToVisual:o1([0,1])}},n}();function j7(n){var e=n.pieceList;n.hasSpecialVisual=!1,E(e,function(t,i){t.originIndex=i,t.visual!=null&&(n.hasSpecialVisual=!0)})}function H7(n){var e=n.categories,t=n.categoryMap={},i=n.visual;if(ah(e,function(o,s){t[o]=s}),!ht(i)){var r=[];Vt(i)?ah(i,function(o,s){var l=t[s];r[l??yf]=o}):r[yf]=i,i=Vk(n,r)}for(var a=e.length-1;a>=0;a--)i[a]==null&&(delete t[e[a]],e.pop())}function a1(n,e){var t=n.visual,i=[];Vt(t)?ah(t,function(a){i.push(a)}):t!=null&&i.push(t);var r={color:1,symbol:1};!e&&i.length===1&&!r.hasOwnProperty(n.type)&&(i[1]=i[0]),Vk(n,i)}function mf(n){return{applyVisual:function(e,t,i){var r=this.mapValueToVisual(e);i("color",n(t("color"),r))},_normalizedToVisual:o1([0,1])}}function Bk(n){var e=this.option.visual;return e[Math.round(Ae(n,[0,1],[0,e.length-1],!0))]||{}}function oh(n){return function(e,t,i){i(n,this.mapValueToVisual(e))}}function sh(n){var e=this.option.visual;return e[this.option.loop&&n!==yf?n%e.length:n]}function Ls(){return this.option.visual[0]}function o1(n){return{linear:function(e){return Ae(e,n,this.option.visual,!0)},category:sh,piecewise:function(e,t){var i=s1.call(this,t);return i==null&&(i=Ae(e,n,this.option.visual,!0)),i},fixed:Ls}}function s1(n){var e=this.option,t=e.pieceList;if(e.hasSpecialVisual){var i=mn.findPieceIndex(n,t),r=t[i];if(r&&r.visual)return r.visual[this.type]}}function Vk(n,e){return n.visual=e,n.type==="color"&&(n.parsedVisual=pt(e,function(t){var i=gi(t);return i||[0,0,0,1]})),e}var U7={linear:function(n){return Ae(n,this.option.dataExtent,[0,1],!0)},piecewise:function(n){var e=this.option.pieceList,t=mn.findPieceIndex(n,e,!0);if(t!=null)return Ae(t,[0,e.length-1],[0,1],!0)},category:function(n){var e=this.option.categories?this.option.categoryMap[n]:n;return e??yf},fixed:Je};function _f(n,e,t){return n?e<=t:e<t}var X7="itemStyle",Fk=pe();const Z7={seriesType:"treemap",reset:function(n){var e=n.getData().tree,t=e.root;t.isRemoved()||Wk(t,{},n.getViewRoot().getAncestors(),n)}};function Wk(n,e,t,i){var r=n.getModel(),a=n.getLayout(),o=n.hostTree.data;if(!(!a||a.invisible||!a.isInView)){var s=r.getModel(X7),l=q7(s,e,i),u=o.ensureUniqueItemVisual(n.dataIndex,"style"),c=s.get("borderColor"),h=s.get("borderColorSaturation"),f;h!=null&&(f=Gk(l),c=K7(h,f)),u.stroke=c;var d=n.viewChildren;if(!d||!d.length)f=Gk(l),u.fill=f;else{var g=Y7(n,r,a,s,l,d);E(d,function(y,_){if(y.depth>=t.length||y===t[y.depth]){var v=J7(r,l,y,_,g,i);Wk(y,v,t,i)}})}}}function q7(n,e,t){var i=lt({},e),r=t.designatedVisualItemStyle;return E(["color","colorAlpha","colorSaturation"],function(a){r[a]=e[a];var o=n.get(a);r[a]=null,o!=null&&(i[a]=o)}),i}function Gk(n){var e=l1(n,"color");if(e){var t=l1(n,"colorAlpha"),i=l1(n,"colorSaturation");return i&&(e=Eu(e,null,null,i)),t&&(e=gp(e,t)),e}}function K7(n,e){return e!=null?Eu(e,null,null,n):null}function l1(n,e){var t=n[e];if(t!=null&&t!=="none")return t}function Y7(n,e,t,i,r,a){if(!(!a||!a.length)){var o=u1(e,"color")||r.color!=null&&r.color!=="none"&&(u1(e,"colorAlpha")||u1(e,"colorSaturation"));if(o){var s=e.get("visualMin"),l=e.get("visualMax"),u=t.dataExtent.slice();s!=null&&s<u[0]&&(u[0]=s),l!=null&&l>u[1]&&(u[1]=l);var c=e.get("colorMappingBy"),h={type:o.name,dataExtent:u,visual:o.range};h.type==="color"&&(c==="index"||c==="id")?(h.mappingMethod="category",h.loop=!0):h.mappingMethod="linear";var f=new mn(h);return Fk(f).drColorMappingBy=c,f}}}function u1(n,e){var t=n.get(e);return ht(t)&&t.length?{name:e,range:t}:null}function J7(n,e,t,i,r,a){var o=lt({},e);if(r){var s=r.type,l=s==="color"&&Fk(r).drColorMappingBy,u=l==="index"?i:l==="id"?a.mapIdToIndex(t.getId()):t.getValue(n.get("visualDimension"));o[s]=r.mapValueToVisual(u)}return o}var lh=Math.max,xf=Math.min,jk=bn,c1=E,Hk=["itemStyle","borderWidth"],$7=["itemStyle","gapWidth"],Q7=["upperLabel","show"],tH=["upperLabel","height"];const eH={seriesType:"treemap",reset:function(n,e,t,i){var r=t.getWidth(),a=t.getHeight(),o=n.option,s=un(n.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()}),l=o.size||[],u=Mt(jk(s.width,l[0]),r),c=Mt(jk(s.height,l[1]),a),h=i&&i.type,f=["treemapZoomToNode","treemapRootToNode"],d=nh(i,f,n),g=h==="treemapRender"||h==="treemapMove"?i.rootRect:null,y=n.getViewRoot(),_=Ck(y);if(h!=="treemapMove"){var v=h==="treemapZoomToNode"?sH(n,d,y,u,c):g?[g.width,g.height]:[u,c],p=o.sort;p&&p!=="asc"&&p!=="desc"&&(p="desc");var x={squareRatio:o.squareRatio,sort:p,leafDepth:o.leafDepth};y.hostTree.clearLayouts();var b={x:0,y:0,width:v[0],height:v[1],area:v[0]*v[1]};y.setLayout(b),Uk(y,x,!1,0),b=y.getLayout(),c1(_,function(M,I){var A=(_[I+1]||y).getValue();M.setLayout(lt({dataExtent:[A,A],borderWidth:0,upperHeight:0},b))})}var S=n.getData().tree.root;S.setLayout(lH(s,g,d),!0),n.setLayoutInfo(s),Zk(S,new $t(-s.x,-s.y,r,a),_,y,0)}};function Uk(n,e,t,i){var r,a;if(!n.isRemoved()){var o=n.getLayout();r=o.width,a=o.height;var s=n.getModel(),l=s.get(Hk),u=s.get($7)/2,c=qk(s),h=Math.max(l,c),f=l-u,d=h-u;n.setLayout({borderWidth:l,upperHeight:h,upperLabelHeight:c},!0),r=lh(r-2*f,0),a=lh(a-f-d,0);var g=r*a,y=nH(n,s,g,e,t,i);if(y.length){var _={x:f,y:d,width:r,height:a},v=xf(r,a),p=1/0,x=[];x.area=0;for(var b=0,S=y.length;b<S;){var M=y[b];x.push(M),x.area+=M.getLayout().area;var I=oH(x,v,e.squareRatio);I<=p?(b++,p=I):(x.area-=x.pop().getLayout().area,Xk(x,v,_,u,!1),v=xf(_.width,_.height),x.length=x.area=0,p=1/0)}if(x.length&&Xk(x,v,_,u,!0),!t){var A=s.get("childrenVisibleMin");A!=null&&g<A&&(t=!0)}for(var b=0,S=y.length;b<S;b++)Uk(y[b],e,t,i+1)}}}function nH(n,e,t,i,r,a){var o=n.children||[],s=i.sort;s!=="asc"&&s!=="desc"&&(s=null);var l=i.leafDepth!=null&&i.leafDepth<=a;if(r&&!l)return n.viewChildren=[];o=Se(o,function(d){return!d.isRemoved()}),rH(o,s);var u=aH(e,o,s);if(u.sum===0)return n.viewChildren=[];if(u.sum=iH(e,t,u.sum,s,o),u.sum===0)return n.viewChildren=[];for(var c=0,h=o.length;c<h;c++){var f=o[c].getValue()/u.sum*t;o[c].setLayout({area:f})}return l&&(o.length&&n.setLayout({isLeafRoot:!0},!0),o.length=0),n.viewChildren=o,n.setLayout({dataExtent:u.dataExtent},!0),o}function iH(n,e,t,i,r){if(!i)return t;for(var a=n.get("visibleMin"),o=r.length,s=o,l=o-1;l>=0;l--){var u=r[i==="asc"?o-l-1:l].getValue();u/t*e<a&&(s=l,t-=u)}return i==="asc"?r.splice(0,o-s):r.splice(s,o-s),t}function rH(n,e){return e&&n.sort(function(t,i){var r=e==="asc"?t.getValue()-i.getValue():i.getValue()-t.getValue();return r===0?e==="asc"?t.dataIndex-i.dataIndex:i.dataIndex-t.dataIndex:r}),n}function aH(n,e,t){for(var i=0,r=0,a=e.length;r<a;r++)i+=e[r].getValue();var o=n.get("visualDimension"),s;return!e||!e.length?s=[NaN,NaN]:o==="value"&&t?(s=[e[e.length-1].getValue(),e[0].getValue()],t==="asc"&&s.reverse()):(s=[1/0,-1/0],c1(e,function(l){var u=l.getValue(o);u<s[0]&&(s[0]=u),u>s[1]&&(s[1]=u)})),{sum:i,dataExtent:s}}function oH(n,e,t){for(var i=0,r=1/0,a=0,o=void 0,s=n.length;a<s;a++)o=n[a].getLayout().area,o&&(o<r&&(r=o),o>i&&(i=o));var l=n.area*n.area,u=e*e*t;return l?lh(u*i/l,l/(u*r)):1/0}function Xk(n,e,t,i,r){var a=e===t.width?0:1,o=1-a,s=["x","y"],l=["width","height"],u=t[s[a]],c=e?n.area/e:0;(r||c>t[l[o]])&&(c=t[l[o]]);for(var h=0,f=n.length;h<f;h++){var d=n[h],g={},y=c?d.getLayout().area/c:0,_=g[l[o]]=lh(c-2*i,0),v=t[s[a]]+t[l[a]]-u,p=h===f-1||v<y?v:y,x=g[l[a]]=lh(p-2*i,0);g[s[o]]=t[s[o]]+xf(i,_/2),g[s[a]]=u+xf(i,x/2),u+=p,d.setLayout(g,!0)}t[s[o]]+=c,t[l[o]]-=c}function sH(n,e,t,i,r){var a=(e||{}).node,o=[i,r];if(!a||a===t)return o;for(var s,l=i*r,u=l*n.option.zoomToNodeRatio;s=a.parentNode;){for(var c=0,h=s.children,f=0,d=h.length;f<d;f++)c+=h[f].getValue();var g=a.getValue();if(g===0)return o;u*=c/g;var y=s.getModel(),_=y.get(Hk),v=Math.max(_,qk(y));u+=4*_*_+(3*_+v)*Math.pow(u,.5),u>Kw&&(u=Kw),a=s}u<l&&(u=l);var p=Math.pow(u/l,.5);return[i*p,r*p]}function lH(n,e,t){if(e)return{x:e.x,y:e.y};var i={x:0,y:0};if(!t)return i;var r=t.node,a=r.getLayout();if(!a)return i;for(var o=[a.width/2,a.height/2],s=r;s;){var l=s.getLayout();o[0]+=l.x,o[1]+=l.y,s=s.parentNode}return{x:n.width/2-o[0],y:n.height/2-o[1]}}function Zk(n,e,t,i,r){var a=n.getLayout(),o=t[r],s=o&&o===n;if(!(o&&!s||r===t.length&&n!==i)){n.setLayout({isInView:!0,invisible:!s&&!e.intersect(a),isAboveViewRoot:s},!0);var l=new $t(e.x-a.x,e.y-a.y,e.width,e.height);c1(n.viewChildren||[],function(u){Zk(u,l,t,i,r+1)})}}function qk(n){return n.get(Q7)?n.get(tH):0}function uH(n){n.registerSeriesModel(C7),n.registerChartView(V7),n.registerVisual(Z7),n.registerLayout(eH),A7(n)}function cH(n){var e=n.findComponents({mainType:"legend"});!e||!e.length||n.eachSeriesByType("graph",function(t){var i=t.getCategoriesData(),r=t.getGraph(),a=r.data,o=i.mapArray(i.getName);a.filterSelf(function(s){var l=a.getItemModel(s),u=l.getShallow("category");if(u!=null){ve(u)&&(u=o[u]);for(var c=0;c<e.length;c++)if(!e[c].isSelected(u))return!1}return!0})})}function hH(n){var e={};n.eachSeriesByType("graph",function(t){var i=t.getCategoriesData(),r=t.getData(),a={};i.each(function(o){var s=i.getName(o);a["ec-"+s]=o;var l=i.getItemModel(o),u=l.getModel("itemStyle").getItemStyle();u.fill||(u.fill=t.getColorFromPalette(s,e)),i.setItemVisual(o,"style",u);for(var c=["symbol","symbolSize","symbolKeepAspect"],h=0;h<c.length;h++){var f=l.getShallow(c[h],!0);f!=null&&i.setItemVisual(o,c[h],f)}}),i.count()&&r.each(function(o){var s=r.getItemModel(o),l=s.getShallow("category");if(l!=null){Tt(l)&&(l=a["ec-"+l]);var u=i.getItemVisual(l,"style"),c=r.ensureUniqueItemVisual(o,"style");lt(c,u);for(var h=["symbol","symbolSize","symbolKeepAspect"],f=0;f<h.length;f++)r.setItemVisual(o,h[f],i.getItemVisual(l,h[f]))}})})}function bf(n){return n instanceof Array||(n=[n,n]),n}function pH(n){n.eachSeriesByType("graph",function(e){var t=e.getGraph(),i=e.getEdgeData(),r=bf(e.get("edgeSymbol")),a=bf(e.get("edgeSymbolSize"));i.setVisual("fromSymbol",r&&r[0]),i.setVisual("toSymbol",r&&r[1]),i.setVisual("fromSymbolSize",a&&a[0]),i.setVisual("toSymbolSize",a&&a[1]),i.setVisual("style",e.getModel("lineStyle").getLineStyle()),i.each(function(o){var s=i.getItemModel(o),l=t.getEdgeByIndex(o),u=bf(s.getShallow("symbol",!0)),c=bf(s.getShallow("symbolSize",!0)),h=s.getModel("lineStyle").getLineStyle(),f=i.ensureUniqueItemVisual(o,"style");switch(lt(f,h),f.stroke){case"source":{var d=l.node1.getVisual("style");f.stroke=d&&d.fill;break}case"target":{var d=l.node2.getVisual("style");f.stroke=d&&d.fill;break}}u[0]&&l.setVisual("fromSymbol",u[0]),u[1]&&l.setVisual("toSymbol",u[1]),c[0]&&l.setVisual("fromSymbolSize",c[0]),c[1]&&l.setVisual("toSymbolSize",c[1])})})}var h1="-->",wf=function(n){return n.get("autoCurveness")||null},Kk=function(n,e){var t=wf(n),i=20,r=[];if(ve(t))i=t;else if(ht(t)){n.__curvenessList=t;return}e>i&&(i=e);var a=i%2?i+2:i+3;r=[];for(var o=0;o<a;o++)r.push((o%2?o+1:o)/10*(o%2?-1:1));n.__curvenessList=r},uh=function(n,e,t){var i=[n.id,n.dataIndex].join("."),r=[e.id,e.dataIndex].join(".");return[t.uid,i,r].join(h1)},Yk=function(n){var e=n.split(h1);return[e[0],e[2],e[1]].join(h1)},dH=function(n,e){var t=uh(n.node1,n.node2,e);return e.__edgeMap[t]},fH=function(n,e){var t=p1(uh(n.node1,n.node2,e),e),i=p1(uh(n.node2,n.node1,e),e);return t+i},p1=function(n,e){var t=e.__edgeMap;return t[n]?t[n].length:0};function gH(n){wf(n)&&(n.__curvenessList=[],n.__edgeMap={},Kk(n))}function vH(n,e,t,i){if(wf(t)){var r=uh(n,e,t),a=t.__edgeMap,o=a[Yk(r)];a[r]&&!o?a[r].isForward=!0:o&&a[r]&&(o.isForward=!0,a[r].isForward=!1),a[r]=a[r]||[],a[r].push(i)}}function d1(n,e,t,i){var r=wf(e),a=ht(r);if(!r)return null;var o=dH(n,e);if(!o)return null;for(var s=-1,l=0;l<o.length;l++)if(o[l]===t){s=l;break}var u=fH(n,e);Kk(e,u),n.lineStyle=n.lineStyle||{};var c=uh(n.node1,n.node2,e),h=e.__curvenessList,f=a||u%2?0:1;if(o.isForward)return h[f+s];var d=Yk(c),g=p1(d,e),y=h[s+g+f];return i?a?r&&r[0]===0?(g+f)%2?y:-y:((g%2?0:1)+f)%2?y:-y:(g+f)%2?y:-y:h[s+g+f]}function Jk(n){var e=n.coordinateSystem;if(!(e&&e.type!=="view")){var t=n.getGraph();t.eachNode(function(i){var r=i.getModel();i.setLayout([+r.get("x"),+r.get("y")])}),f1(t,n)}}function f1(n,e){n.eachEdge(function(t,i){var r=wr(t.getModel().get(["lineStyle","curveness"]),-d1(t,e,i,!0),0),a=$r(t.node1.getLayout()),o=$r(t.node2.getLayout()),s=[a,o];+r&&s.push([(a[0]+o[0])/2-(a[1]-o[1])*r,(a[1]+o[1])/2-(o[0]-a[0])*r]),t.setLayout(s)})}function yH(n,e){n.eachSeriesByType("graph",function(t){var i=t.get("layout"),r=t.coordinateSystem;if(r&&r.type!=="view"){var a=t.getData(),o=[];E(r.dimensions,function(f){o=o.concat(a.mapDimensionsAll(f))});for(var s=0;s<a.count();s++){for(var l=[],u=!1,c=0;c<o.length;c++){var h=a.get(o[c],s);isNaN(h)||(u=!0),l.push(h)}u?a.setItemLayout(s,r.dataToPoint(l)):a.setItemLayout(s,[NaN,NaN])}f1(a.graph,t)}else(!i||i==="none")&&Jk(t)})}function ch(n){var e=n.coordinateSystem;if(e.type!=="view")return 1;var t=n.option.nodeScaleRatio,i=e.scaleX,r=e.getZoom(),a=(r-1)*t+1;return a/i}function hh(n){var e=n.getVisual("symbolSize");return e instanceof Array&&(e=(e[0]+e[1])/2),+e}var $k=Math.PI,g1=[];function v1(n,e,t,i){var r=n.coordinateSystem;if(!(r&&r.type!=="view")){var a=r.getBoundingRect(),o=n.getData(),s=o.graph,l=a.width/2+a.x,u=a.height/2+a.y,c=Math.min(a.width,a.height)/2,h=o.count();if(o.setLayout({cx:l,cy:u}),!!h){if(t){var f=r.pointToData(i),d=f[0],g=f[1],y=[d-l,g-u];Js(y,y),ip(y,y,c),t.setLayout([l+y[0],u+y[1]],!0);var _=n.get(["circular","rotateLabel"]);Qk(t,_,l,u)}mH[e](n,s,o,c,l,u,h),s.eachEdge(function(v,p){var x=wr(v.getModel().get(["lineStyle","curveness"]),d1(v,n,p),0),b=$r(v.node1.getLayout()),S=$r(v.node2.getLayout()),M,I=(b[0]+S[0])/2,A=(b[1]+S[1])/2;+x&&(x*=3,M=[l*x+I*(1-x),u*x+A*(1-x)]),v.setLayout([b,S,M])})}}}var mH={value:function(n,e,t,i,r,a,o){var s=0,l=t.getSum("value"),u=Math.PI*2/(l||o);e.eachNode(function(c){var h=c.getValue("value"),f=u*(l?h:1)/2;s+=f,c.setLayout([i*Math.cos(s)+r,i*Math.sin(s)+a]),s+=f})},symbolSize:function(n,e,t,i,r,a,o){var s=0;g1.length=o;var l=ch(n);e.eachNode(function(h){var f=hh(h);isNaN(f)&&(f=2),f<0&&(f=0),f*=l;var d=Math.asin(f/2/i);isNaN(d)&&(d=$k/2),g1[h.dataIndex]=d,s+=d*2});var u=(2*$k-s)/o/2,c=0;e.eachNode(function(h){var f=u+g1[h.dataIndex];c+=f,(!h.getLayout()||!h.getLayout().fixed)&&h.setLayout([i*Math.cos(c)+r,i*Math.sin(c)+a]),c+=f})}};function Qk(n,e,t,i){var r=n.getGraphicEl();if(r){var a=n.getModel(),o=a.get(["label","rotate"])||0,s=r.getSymbolPath();if(e){var l=n.getLayout(),u=Math.atan2(l[1]-i,l[0]-t);u<0&&(u=Math.PI*2+u);var c=l[0]<t;c&&(u=u-Math.PI);var h=c?"left":"right";s.setTextConfig({rotation:-u,position:h,origin:"center"});var f=s.ensureState("emphasis");lt(f.textConfig||(f.textConfig={}),{position:h})}else s.setTextConfig({rotation:o*=Math.PI/180})}}function _H(n){n.eachSeriesByType("graph",function(e){e.get("layout")==="circular"&&v1(e,"symbolSize")})}var jl=ov;function xH(n,e,t){for(var i=n,r=e,a=t.rect,o=a.width,s=a.height,l=[a.x+o/2,a.y+s/2],u=t.gravity==null?.1:t.gravity,c=0;c<i.length;c++){var h=i[c];h.p||(h.p=To(o*(Math.random()-.5)+l[0],s*(Math.random()-.5)+l[1])),h.pp=$r(h.p),h.edges=null}var f=t.friction==null?.6:t.friction,d=f,g,y;return{warmUp:function(){d=f*.8},setFixed:function(_){i[_].fixed=!0},setUnfixed:function(_){i[_].fixed=!1},beforeStep:function(_){g=_},afterStep:function(_){y=_},step:function(_){g&&g(i,r);for(var v=[],p=i.length,x=0;x<r.length;x++){var b=r[x];if(!b.ignoreForceLayout){var S=b.n1,M=b.n2;Ao(v,M.p,S.p);var I=sv(v)-b.d,A=M.w/(S.w+M.w);isNaN(A)&&(A=0),Js(v,v),!S.fixed&&jl(S.p,S.p,v,A*I*d),!M.fixed&&jl(M.p,M.p,v,-(1-A)*I*d)}}for(var x=0;x<p;x++){var C=i[x];C.fixed||(Ao(v,l,C.p),jl(C.p,C.p,v,u*d))}for(var x=0;x<p;x++)for(var S=i[x],L=x+1;L<p;L++){var M=i[L];Ao(v,M.p,S.p);var I=sv(v);I===0&&(Uz(v,Math.random()-.5,Math.random()-.5),I=1);var R=(S.rep+M.rep)/I/I;!S.fixed&&jl(S.pp,S.pp,v,R),!M.fixed&&jl(M.pp,M.pp,v,-R)}for(var D=[],x=0;x<p;x++){var C=i[x];C.fixed||(Ao(D,C.p,C.pp),jl(C.p,C.p,D,d),Hn(C.pp,C.p))}d=d*.992;var N=d<.01;y&&y(i,r,N),_&&_(N)}}}function bH(n){n.eachSeriesByType("graph",function(e){var t=e.coordinateSystem;if(!(t&&t.type!=="view"))if(e.get("layout")==="force"){var i=e.preservedPoints||{},r=e.getGraph(),a=r.data,o=r.edgeData,s=e.getModel("force"),l=s.get("initLayout");e.preservedPoints?a.each(function(x){var b=a.getId(x);a.setItemLayout(x,i[b]||[NaN,NaN])}):!l||l==="none"?Jk(e):l==="circular"&&v1(e,"value");var u=a.getDataExtent("value"),c=o.getDataExtent("value"),h=s.get("repulsion"),f=s.get("edgeLength"),d=ht(h)?h:[h,h],g=ht(f)?f:[f,f];g=[g[1],g[0]];var y=a.mapArray("value",function(x,b){var S=a.getItemLayout(b),M=Ae(x,u,d);return isNaN(M)&&(M=(d[0]+d[1])/2),{w:M,rep:M,fixed:a.getItemModel(b).get("fixed"),p:!S||isNaN(S[0])||isNaN(S[1])?null:S}}),_=o.mapArray("value",function(x,b){var S=r.getEdgeByIndex(b),M=Ae(x,c,g);isNaN(M)&&(M=(g[0]+g[1])/2);var I=S.getModel(),A=wr(S.getModel().get(["lineStyle","curveness"]),-d1(S,e,b,!0),0);return{n1:y[S.node1.dataIndex],n2:y[S.node2.dataIndex],d:M,curveness:A,ignoreForceLayout:I.get("ignoreForceLayout")}}),v=t.getBoundingRect(),p=xH(y,_,{rect:v,gravity:s.get("gravity"),friction:s.get("friction")});p.beforeStep(function(x,b){for(var S=0,M=x.length;S<M;S++)x[S].fixed&&Hn(x[S].p,r.getNodeByIndex(S).getLayout())}),p.afterStep(function(x,b,S){for(var M=0,I=x.length;M<I;M++)x[M].fixed||r.getNodeByIndex(M).setLayout(x[M].p),i[a.getId(M)]=x[M].p;for(var M=0,I=b.length;M<I;M++){var A=b[M],C=r.getEdgeByIndex(M),L=A.n1.p,R=A.n2.p,D=C.getLayout();D=D?D.slice():[],D[0]=D[0]||[],D[1]=D[1]||[],Hn(D[0],L),Hn(D[1],R),+A.curveness&&(D[2]=[(L[0]+R[0])/2-(L[1]-R[1])*A.curveness,(L[1]+R[1])/2-(R[0]-L[0])*A.curveness]),C.setLayout(D)}}),e.forceLayout=p,e.preservedPoints=i,p.step()}else e.forceLayout=null})}function wH(n,e,t){var i=lt(n.getBoxLayoutParams(),{aspect:t});return un(i,{width:e.getWidth(),height:e.getHeight()})}function SH(n,e){var t=[];return n.eachSeriesByType("graph",function(i){var r=i.get("coordinateSystem");if(!r||r==="view"){var a=i.getData(),o=a.mapArray(function(_){var v=a.getItemModel(_);return[+v.get("x"),+v.get("y")]}),s=[],l=[];Op(o,s,l),l[0]-s[0]===0&&(l[0]+=1,s[0]-=1),l[1]-s[1]===0&&(l[1]+=1,s[1]-=1);var u=(l[0]-s[0])/(l[1]-s[1]),c=wH(i,e,u);isNaN(u)&&(s=[c.x,c.y],l=[c.x+c.width,c.y+c.height]);var h=l[0]-s[0],f=l[1]-s[1],d=c.width,g=c.height,y=i.coordinateSystem=new th;y.zoomLimit=i.get("scaleLimit"),y.setBoundingRect(s[0],s[1],h,f),y.setViewRect(c.x,c.y,d,g),y.setCenter(i.get("center"),e),y.setZoom(i.get("zoom")),t.push(y)}}),t}var tL=fn.prototype,y1=ac.prototype,eL=function(){function n(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return n}();(function(n){Q(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e})(eL);function m1(n){return isNaN(+n.cpx1)||isNaN(+n.cpy1)}var MH=function(n){Q(e,n);function e(t){var i=n.call(this,t)||this;return i.type="ec-line",i}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new eL},e.prototype.buildPath=function(t,i){m1(i)?tL.buildPath.call(this,t,i):y1.buildPath.call(this,t,i)},e.prototype.pointAt=function(t){return m1(this.shape)?tL.pointAt.call(this,t):y1.pointAt.call(this,t)},e.prototype.tangentAt=function(t){var i=this.shape,r=m1(i)?[i.x2-i.x1,i.y2-i.y1]:y1.tangentAt.call(this,t);return Js(r,r)},e}(re),_1=["fromSymbol","toSymbol"];function nL(n){return"_"+n+"Type"}function iL(n,e,t){var i=e.getItemVisual(t,n);if(!i||i==="none")return i;var r=e.getItemVisual(t,n+"Size"),a=e.getItemVisual(t,n+"Rotate"),o=e.getItemVisual(t,n+"Offset"),s=e.getItemVisual(t,n+"KeepAspect"),l=Dl(r),u=ps(o||0,l);return i+l+u+(a||"")+(s||"")}function rL(n,e,t){var i=e.getItemVisual(t,n);if(!(!i||i==="none")){var r=e.getItemVisual(t,n+"Size"),a=e.getItemVisual(t,n+"Rotate"),o=e.getItemVisual(t,n+"Offset"),s=e.getItemVisual(t,n+"KeepAspect"),l=Dl(r),u=ps(o||0,l),c=rn(i,-l[0]/2+u[0],-l[1]/2+u[1],l[0],l[1],null,s);return c.__specifiedRotation=a==null||isNaN(a)?void 0:+a*Math.PI/180||0,c.name=n,c}}function IH(n){var e=new MH({name:"line",subPixelOptimize:!0});return x1(e.shape,n),e}function x1(n,e){n.x1=e[0][0],n.y1=e[0][1],n.x2=e[1][0],n.y2=e[1][1],n.percent=1;var t=e[2];t?(n.cpx1=t[0],n.cpy1=t[1]):(n.cpx1=NaN,n.cpy1=NaN)}var b1=function(n){Q(e,n);function e(t,i,r){var a=n.call(this)||this;return a._createLine(t,i,r),a}return e.prototype._createLine=function(t,i,r){var a=t.hostModel,o=t.getItemLayout(i),s=IH(o);s.shape.percent=0,We(s,{shape:{percent:1}},a,i),this.add(s),E(_1,function(l){var u=rL(l,t,i);this.add(u),this[nL(l)]=iL(l,t,i)},this),this._updateCommonStl(t,i,r)},e.prototype.updateData=function(t,i,r){var a=t.hostModel,o=this.childOfName("line"),s=t.getItemLayout(i),l={shape:{}};x1(l.shape,s),me(o,l,a,i),E(_1,function(u){var c=iL(u,t,i),h=nL(u);if(this[h]!==c){this.remove(this.childOfName(u));var f=rL(u,t,i);this.add(f)}this[h]=c},this),this._updateCommonStl(t,i,r)},e.prototype.getLinePath=function(){return this.childAt(0)},e.prototype._updateCommonStl=function(t,i,r){var a=t.hostModel,o=this.childOfName("line"),s=r&&r.emphasisLineStyle,l=r&&r.blurLineStyle,u=r&&r.selectLineStyle,c=r&&r.labelStatesModels,h=r&&r.emphasisDisabled,f=r&&r.focus,d=r&&r.blurScope;if(!r||t.hasItemOption){var g=t.getItemModel(i),y=g.getModel("emphasis");s=y.getModel("lineStyle").getLineStyle(),l=g.getModel(["blur","lineStyle"]).getLineStyle(),u=g.getModel(["select","lineStyle"]).getLineStyle(),h=y.get("disabled"),f=y.get("focus"),d=y.get("blurScope"),c=gn(g)}var _=t.getItemVisual(i,"style"),v=_.stroke;o.useStyle(_),o.style.fill=null,o.style.strokeNoScale=!0,o.ensureState("emphasis").style=s,o.ensureState("blur").style=l,o.ensureState("select").style=u,E(_1,function(M){var I=this.childOfName(M);if(I){I.setColor(v),I.style.opacity=_.opacity;for(var A=0;A<Zn.length;A++){var C=Zn[A],L=o.getState(C);if(L){var R=L.style||{},D=I.ensureState(C),N=D.style||(D.style={});R.stroke!=null&&(N[I.__isEmptyBrush?"stroke":"fill"]=R.stroke),R.opacity!=null&&(N.opacity=R.opacity)}}I.markRedraw()}},this);var p=a.getRawValue(i);kn(this,c,{labelDataIndex:i,labelFetcher:{getFormattedLabel:function(M,I){return a.getFormattedLabel(M,I,t.dataType)}},inheritColor:v||"#000",defaultOpacity:_.opacity,defaultText:(p==null?t.getName(i):isFinite(p)?qe(p):p)+""});var x=this.getTextContent();if(x){var b=c.normal;x.__align=x.style.align,x.__verticalAlign=x.style.verticalAlign,x.__position=b.get("position")||"middle";var S=b.get("distance");ht(S)||(S=[S,S]),x.__labelDistance=S}this.setTextConfig({position:null,local:!0,inside:!1}),Ue(this,f,d,h)},e.prototype.highlight=function(){la(this)},e.prototype.downplay=function(){ua(this)},e.prototype.updateLayout=function(t,i){this.setLinePoints(t.getItemLayout(i))},e.prototype.setLinePoints=function(t){var i=this.childOfName("line");x1(i.shape,t),i.dirty()},e.prototype.beforeUpdate=function(){var t=this,i=t.childOfName("fromSymbol"),r=t.childOfName("toSymbol"),a=t.getTextContent();if(!i&&!r&&(!a||a.ignore))return;for(var o=1,s=this.parent;s;)s.scaleX&&(o/=s.scaleX),s=s.parent;var l=t.childOfName("line");if(!this.__dirty&&!l.__dirty)return;var u=l.shape.percent,c=l.pointAt(0),h=l.pointAt(u),f=Ao([],h,c);Js(f,f);function d(L,R){var D=L.__specifiedRotation;if(D==null){var N=l.tangentAt(R);L.attr("rotation",(R===1?-1:1)*Math.PI/2-Math.atan2(N[1],N[0]))}else L.attr("rotation",D)}if(i&&(i.setPosition(c),d(i,0),i.scaleX=i.scaleY=o*u,i.markRedraw()),r&&(r.setPosition(h),d(r,1),r.scaleX=r.scaleY=o*u,r.markRedraw()),a&&!a.ignore){a.x=a.y=0,a.originX=a.originY=0;var g=void 0,y=void 0,_=a.__labelDistance,v=_[0]*o,p=_[1]*o,x=u/2,b=l.tangentAt(x),S=[b[1],-b[0]],M=l.pointAt(x);S[1]>0&&(S[0]=-S[0],S[1]=-S[1]);var I=b[0]<0?-1:1;if(a.__position!=="start"&&a.__position!=="end"){var A=-Math.atan2(b[1],b[0]);h[0]<c[0]&&(A=Math.PI+A),a.rotation=A}var C=void 0;switch(a.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":C=-p,y="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":C=p,y="top";break;default:C=0,y="middle"}switch(a.__position){case"end":a.x=f[0]*v+h[0],a.y=f[1]*p+h[1],g=f[0]>.8?"left":f[0]<-.8?"right":"center",y=f[1]>.8?"top":f[1]<-.8?"bottom":"middle";break;case"start":a.x=-f[0]*v+c[0],a.y=-f[1]*p+c[1],g=f[0]>.8?"right":f[0]<-.8?"left":"center",y=f[1]>.8?"bottom":f[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":a.x=v*I+c[0],a.y=c[1]+C,g=b[0]<0?"right":"left",a.originX=-v*I,a.originY=-C;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":a.x=M[0],a.y=M[1]+C,g="center",a.originY=-C;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":a.x=-v*I+h[0],a.y=h[1]+C,g=b[0]>=0?"right":"left",a.originX=v*I,a.originY=-C;break}a.scaleX=a.scaleY=o,a.setStyle({verticalAlign:a.__verticalAlign||y,align:a.__align||g})}},e}(Gt),w1=function(){function n(e){this.group=new Gt,this._LineCtor=e||b1}return n.prototype.updateData=function(e){var t=this;this._progressiveEls=null;var i=this,r=i.group,a=i._lineData;i._lineData=e,a||r.removeAll();var o=aL(e);e.diff(a).add(function(s){t._doAdd(e,s,o)}).update(function(s,l){t._doUpdate(a,e,l,s,o)}).remove(function(s){r.remove(a.getItemGraphicEl(s))}).execute()},n.prototype.updateLayout=function(){var e=this._lineData;e&&e.eachItemGraphicEl(function(t,i){t.updateLayout(e,i)},this)},n.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=aL(e),this._lineData=null,this.group.removeAll()},n.prototype.incrementalUpdate=function(e,t){this._progressiveEls=[];function i(s){!s.isGroup&&!TH(s)&&(s.incremental=!0,s.ensureState("emphasis").hoverLayer=!0)}for(var r=e.start;r<e.end;r++){var a=t.getItemLayout(r);if(S1(a)){var o=new this._LineCtor(t,r,this._seriesScope);o.traverse(i),this.group.add(o),t.setItemGraphicEl(r,o),this._progressiveEls.push(o)}}},n.prototype.remove=function(){this.group.removeAll()},n.prototype.eachRendered=function(e){Za(this._progressiveEls||this.group,e)},n.prototype._doAdd=function(e,t,i){var r=e.getItemLayout(t);if(S1(r)){var a=new this._LineCtor(e,t,i);e.setItemGraphicEl(t,a),this.group.add(a)}},n.prototype._doUpdate=function(e,t,i,r,a){var o=e.getItemGraphicEl(i);if(!S1(t.getItemLayout(r))){this.group.remove(o);return}o?o.updateData(t,r,a):o=new this._LineCtor(t,r,a),t.setItemGraphicEl(r,o),this.group.add(o)},n}();function TH(n){return n.animators&&n.animators.length>0}function aL(n){var e=n.hostModel,t=e.getModel("emphasis");return{lineStyle:e.getModel("lineStyle").getLineStyle(),emphasisLineStyle:t.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:e.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:e.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:t.get("disabled"),blurScope:t.get("blurScope"),focus:t.get("focus"),labelStatesModels:gn(e)}}function oL(n){return isNaN(n[0])||isNaN(n[1])}function S1(n){return n&&!oL(n[0])&&!oL(n[1])}var M1=[],I1=[],T1=[],Hl=wn,A1=Co,sL=Math.abs;function lL(n,e,t){for(var i=n[0],r=n[1],a=n[2],o=1/0,s,l=t*t,u=.1,c=.1;c<=.9;c+=.1){M1[0]=Hl(i[0],r[0],a[0],c),M1[1]=Hl(i[1],r[1],a[1],c);var h=sL(A1(M1,e)-l);h<o&&(o=h,s=c)}for(var f=0;f<32;f++){var d=s+u;I1[0]=Hl(i[0],r[0],a[0],s),I1[1]=Hl(i[1],r[1],a[1],s),T1[0]=Hl(i[0],r[0],a[0],d),T1[1]=Hl(i[1],r[1],a[1],d);var h=A1(I1,e)-l;if(sL(h)<.01)break;var g=A1(T1,e)-l;u/=2,h<0?g>=0?s=s+u:s=s-u:g>=0?s=s-u:s=s+u}return s}function C1(n,e){var t=[],i=Ru,r=[[],[],[]],a=[[],[]],o=[];e/=2,n.eachEdge(function(s,l){var u=s.getLayout(),c=s.getVisual("fromSymbol"),h=s.getVisual("toSymbol");u.__original||(u.__original=[$r(u[0]),$r(u[1])],u[2]&&u.__original.push($r(u[2])));var f=u.__original;if(u[2]!=null){if(Hn(r[0],f[0]),Hn(r[1],f[2]),Hn(r[2],f[1]),c&&c!=="none"){var d=hh(s.node1),g=lL(r,f[0],d*e);i(r[0][0],r[1][0],r[2][0],g,t),r[0][0]=t[3],r[1][0]=t[4],i(r[0][1],r[1][1],r[2][1],g,t),r[0][1]=t[3],r[1][1]=t[4]}if(h&&h!=="none"){var d=hh(s.node2),g=lL(r,f[1],d*e);i(r[0][0],r[1][0],r[2][0],g,t),r[1][0]=t[1],r[2][0]=t[2],i(r[0][1],r[1][1],r[2][1],g,t),r[1][1]=t[1],r[2][1]=t[2]}Hn(u[0],r[0]),Hn(u[1],r[2]),Hn(u[2],r[1])}else{if(Hn(a[0],f[0]),Hn(a[1],f[1]),Ao(o,a[1],a[0]),Js(o,o),c&&c!=="none"){var d=hh(s.node1);ov(a[0],a[0],o,d*e)}if(h&&h!=="none"){var d=hh(s.node2);ov(a[1],a[1],o,-d*e)}Hn(u[0],a[0]),Hn(u[1],a[1])}})}function uL(n){return n.type==="view"}var AH=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,i){var r=new Hc,a=new w1,o=this.group;this._controller=new $c(i.getZr()),this._controllerHost={target:o},o.add(r.group),o.add(a.group),this._symbolDraw=r,this._lineDraw=a,this._firstRender=!0},e.prototype.render=function(t,i,r){var a=this,o=t.coordinateSystem;this._model=t;var s=this._symbolDraw,l=this._lineDraw,u=this.group;if(uL(o)){var c={x:o.x,y:o.y,scaleX:o.scaleX,scaleY:o.scaleY};this._firstRender?u.attr(c):me(u,c,t)}C1(t.getGraph(),ch(t));var h=t.getData();s.updateData(h);var f=t.getEdgeData();l.updateData(f),this._updateNodeAndLinkScale(),this._updateController(t,i,r),clearTimeout(this._layoutTimeout);var d=t.forceLayout,g=t.get(["force","layoutAnimation"]);d&&this._startForceLayoutIteration(d,g);var y=t.get("layout");h.graph.eachNode(function(x){var b=x.dataIndex,S=x.getGraphicEl(),M=x.getModel();if(S){S.off("drag").off("dragend");var I=M.get("draggable");I&&S.on("drag",function(C){switch(y){case"force":d.warmUp(),!a._layouting&&a._startForceLayoutIteration(d,g),d.setFixed(b),h.setItemLayout(b,[S.x,S.y]);break;case"circular":h.setItemLayout(b,[S.x,S.y]),x.setLayout({fixed:!0},!0),v1(t,"symbolSize",x,[C.offsetX,C.offsetY]),a.updateLayout(t);break;case"none":default:h.setItemLayout(b,[S.x,S.y]),f1(t.getGraph(),t),a.updateLayout(t);break}}).on("dragend",function(){d&&d.setUnfixed(b)}),S.setDraggable(I,!!M.get("cursor"));var A=M.get(["emphasis","focus"]);A==="adjacency"&&(jt(S).focus=x.getAdjacentDataIndices())}}),h.graph.eachEdge(function(x){var b=x.getGraphicEl(),S=x.getModel().get(["emphasis","focus"]);b&&S==="adjacency"&&(jt(b).focus={edge:[x.dataIndex],node:[x.node1.dataIndex,x.node2.dataIndex]})});var _=t.get("layout")==="circular"&&t.get(["circular","rotateLabel"]),v=h.getLayout("cx"),p=h.getLayout("cy");h.graph.eachNode(function(x){Qk(x,_,v,p)}),this._firstRender=!1},e.prototype.dispose=function(){this.remove(),this._controller&&this._controller.dispose(),this._controllerHost=null},e.prototype._startForceLayoutIteration=function(t,i){var r=this;(function a(){t.step(function(o){r.updateLayout(r._model),(r._layouting=!o)&&(i?r._layoutTimeout=setTimeout(a,16):a())})})()},e.prototype._updateController=function(t,i,r){var a=this,o=this._controller,s=this._controllerHost,l=this.group;if(o.setPointerChecker(function(u,c,h){var f=l.getBoundingRect();return f.applyTransform(l.transform),f.contain(c,h)&&!cf(u,r,t)}),!uL(t.coordinateSystem)){o.disable();return}o.enable(t.get("roam")),s.zoomLimit=t.get("scaleLimit"),s.zoom=t.coordinateSystem.getZoom(),o.off("pan").off("zoom").on("pan",function(u){j0(s,u.dx,u.dy),r.dispatchAction({seriesId:t.id,type:"graphRoam",dx:u.dx,dy:u.dy})}).on("zoom",function(u){H0(s,u.scale,u.originX,u.originY),r.dispatchAction({seriesId:t.id,type:"graphRoam",zoom:u.scale,originX:u.originX,originY:u.originY}),a._updateNodeAndLinkScale(),C1(t.getGraph(),ch(t)),a._lineDraw.updateLayout(),r.updateLabelLayout()})},e.prototype._updateNodeAndLinkScale=function(){var t=this._model,i=t.getData(),r=ch(t);i.eachItemGraphicEl(function(a,o){a&&a.setSymbolScale(r)})},e.prototype.updateLayout=function(t){C1(t.getGraph(),ch(t)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},e.prototype.remove=function(){clearTimeout(this._layoutTimeout),this._layouting=!1,this._layoutTimeout=null,this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()},e.type="graph",e}(Pe);function Ul(n){return"_EC_"+n}var CH=function(){function n(e){this.type="graph",this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=e||!1}return n.prototype.isDirected=function(){return this._directed},n.prototype.addNode=function(e,t){e=e==null?""+t:""+e;var i=this._nodesMap;if(!i[Ul(e)]){var r=new Ds(e,t);return r.hostGraph=this,this.nodes.push(r),i[Ul(e)]=r,r}},n.prototype.getNodeByIndex=function(e){var t=this.data.getRawIndex(e);return this.nodes[t]},n.prototype.getNodeById=function(e){return this._nodesMap[Ul(e)]},n.prototype.addEdge=function(e,t,i){var r=this._nodesMap,a=this._edgesMap;if(ve(e)&&(e=this.nodes[e]),ve(t)&&(t=this.nodes[t]),e instanceof Ds||(e=r[Ul(e)]),t instanceof Ds||(t=r[Ul(t)]),!(!e||!t)){var o=e.id+"-"+t.id,s=new cL(e,t,i);return s.hostGraph=this,this._directed&&(e.outEdges.push(s),t.inEdges.push(s)),e.edges.push(s),e!==t&&t.edges.push(s),this.edges.push(s),a[o]=s,s}},n.prototype.getEdgeByIndex=function(e){var t=this.edgeData.getRawIndex(e);return this.edges[t]},n.prototype.getEdge=function(e,t){e instanceof Ds&&(e=e.id),t instanceof Ds&&(t=t.id);var i=this._edgesMap;return this._directed?i[e+"-"+t]:i[e+"-"+t]||i[t+"-"+e]},n.prototype.eachNode=function(e,t){for(var i=this.nodes,r=i.length,a=0;a<r;a++)i[a].dataIndex>=0&&e.call(t,i[a],a)},n.prototype.eachEdge=function(e,t){for(var i=this.edges,r=i.length,a=0;a<r;a++)i[a].dataIndex>=0&&i[a].node1.dataIndex>=0&&i[a].node2.dataIndex>=0&&e.call(t,i[a],a)},n.prototype.breadthFirstTraverse=function(e,t,i,r){if(t instanceof Ds||(t=this._nodesMap[Ul(t)]),!!t){for(var a=i==="out"?"outEdges":i==="in"?"inEdges":"edges",o=0;o<this.nodes.length;o++)this.nodes[o].__visited=!1;if(!e.call(r,t,null))for(var s=[t];s.length;)for(var l=s.shift(),u=l[a],o=0;o<u.length;o++){var c=u[o],h=c.node1===l?c.node2:c.node1;if(!h.__visited){if(e.call(r,h,l))return;s.push(h),h.__visited=!0}}}},n.prototype.update=function(){for(var e=this.data,t=this.edgeData,i=this.nodes,r=this.edges,a=0,o=i.length;a<o;a++)i[a].dataIndex=-1;for(var a=0,o=e.count();a<o;a++)i[e.getRawIndex(a)].dataIndex=a;t.filterSelf(function(s){var l=r[t.getRawIndex(s)];return l.node1.dataIndex>=0&&l.node2.dataIndex>=0});for(var a=0,o=r.length;a<o;a++)r[a].dataIndex=-1;for(var a=0,o=t.count();a<o;a++)r[t.getRawIndex(a)].dataIndex=a},n.prototype.clone=function(){for(var e=new n(this._directed),t=this.nodes,i=this.edges,r=0;r<t.length;r++)e.addNode(t[r].id,t[r].dataIndex);for(var r=0;r<i.length;r++){var a=i[r];e.addEdge(a.node1.id,a.node2.id,a.dataIndex)}return e},n}(),Ds=function(){function n(e,t){this.inEdges=[],this.outEdges=[],this.edges=[],this.dataIndex=-1,this.id=e??"",this.dataIndex=t??-1}return n.prototype.degree=function(){return this.edges.length},n.prototype.inDegree=function(){return this.inEdges.length},n.prototype.outDegree=function(){return this.outEdges.length},n.prototype.getModel=function(e){if(!(this.dataIndex<0)){var t=this.hostGraph,i=t.data.getItemModel(this.dataIndex);return i.getModel(e)}},n.prototype.getAdjacentDataIndices=function(){for(var e={edge:[],node:[]},t=0;t<this.edges.length;t++){var i=this.edges[t];i.dataIndex<0||(e.edge.push(i.dataIndex),e.node.push(i.node1.dataIndex,i.node2.dataIndex))}return e},n.prototype.getTrajectoryDataIndices=function(){for(var e=Dt(),t=Dt(),i=0;i<this.edges.length;i++){var r=this.edges[i];if(!(r.dataIndex<0)){e.set(r.dataIndex,!0);for(var a=[r.node1],o=[r.node2],s=0;s<a.length;){var l=a[s];s++,t.set(l.dataIndex,!0);for(var u=0;u<l.inEdges.length;u++)e.set(l.inEdges[u].dataIndex,!0),a.push(l.inEdges[u].node1)}for(s=0;s<o.length;){var c=o[s];s++,t.set(c.dataIndex,!0);for(var u=0;u<c.outEdges.length;u++)e.set(c.outEdges[u].dataIndex,!0),o.push(c.outEdges[u].node2)}}}return{edge:e.keys(),node:t.keys()}},n}(),cL=function(){function n(e,t,i){this.dataIndex=-1,this.node1=e,this.node2=t,this.dataIndex=i??-1}return n.prototype.getModel=function(e){if(!(this.dataIndex<0)){var t=this.hostGraph,i=t.edgeData.getItemModel(this.dataIndex);return i.getModel(e)}},n.prototype.getAdjacentDataIndices=function(){return{edge:[this.dataIndex],node:[this.node1.dataIndex,this.node2.dataIndex]}},n.prototype.getTrajectoryDataIndices=function(){var e=Dt(),t=Dt();e.set(this.dataIndex,!0);for(var i=[this.node1],r=[this.node2],a=0;a<i.length;){var o=i[a];a++,t.set(o.dataIndex,!0);for(var s=0;s<o.inEdges.length;s++)e.set(o.inEdges[s].dataIndex,!0),i.push(o.inEdges[s].node1)}for(a=0;a<r.length;){var l=r[a];a++,t.set(l.dataIndex,!0);for(var s=0;s<l.outEdges.length;s++)e.set(l.outEdges[s].dataIndex,!0),r.push(l.outEdges[s].node2)}return{edge:e.keys(),node:t.keys()}},n}();function hL(n,e){return{getValue:function(t){var i=this[n][e];return i.getStore().get(i.getDimensionIndex(t||"value"),this.dataIndex)},setVisual:function(t,i){this.dataIndex>=0&&this[n][e].setItemVisual(this.dataIndex,t,i)},getVisual:function(t){return this[n][e].getItemVisual(this.dataIndex,t)},setLayout:function(t,i){this.dataIndex>=0&&this[n][e].setItemLayout(this.dataIndex,t,i)},getLayout:function(){return this[n][e].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[n][e].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[n][e].getRawIndex(this.dataIndex)}}}tn(Ds,hL("hostGraph","data")),tn(cL,hL("hostGraph","edgeData"));function pL(n,e,t,i,r){for(var a=new CH(i),o=0;o<n.length;o++)a.addNode(bn(n[o].id,n[o].name,o),o);for(var s=[],l=[],u=0,o=0;o<e.length;o++){var c=e[o],h=c.source,f=c.target;a.addEdge(h,f,u)&&(l.push(c),s.push(bn(ln(c.id,null),h+" > "+f)),u++)}var d=t.get("coordinateSystem"),g;if(d==="cartesian2d"||d==="polar")g=da(n,t);else{var y=vc.get(d),_=y?y.dimensions||[]:[];Qt(_,"value")<0&&_.concat(["value"]);var v=zc(n,{coordDimensions:_,encodeDefine:t.getEncode()}).dimensions;g=new Jn(v,t),g.initData(n)}var p=new Jn(["value"],t);return p.initData(l,s),r&&r(g,p),Tk({mainData:g,struct:a,structAttr:"graph",datas:{node:g,edge:p},datasAttr:{node:"data",edge:"edgeData"}}),a.update(),a}var kH=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.init=function(t){n.prototype.init.apply(this,arguments);var i=this;function r(){return i._categoriesData}this.legendVisualProvider=new Kc(r,r),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},e.prototype.mergeOption=function(t){n.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},e.prototype.mergeDefaultAndTheme=function(t){n.prototype.mergeDefaultAndTheme.apply(this,arguments),Oo(t,"edgeLabel",["show"])},e.prototype.getInitialData=function(t,i){var r=t.edges||t.links||[],a=t.data||t.nodes||[],o=this;{gH(this);var s=pL(a,r,this,!0,l);return E(s.edges,function(u){vH(u.node1,u.node2,this,u.dataIndex)},this),s.data}function l(u,c){u.wrapMethod("getItemModel",function(g){var y=o._categoriesModels,_=g.getShallow("category"),v=y[_];return v&&(v.parentModel=g.parentModel,g.parentModel=v),g});var h=Ce.prototype.getModel;function f(g,y){var _=h.call(this,g,y);return _.resolveParentPath=d,_}c.wrapMethod("getItemModel",function(g){return g.resolveParentPath=d,g.getModel=f,g});function d(g){if(g&&(g[0]==="label"||g[1]==="label")){var y=g.slice();return g[0]==="label"?y[0]="edgeLabel":g[1]==="label"&&(y[1]="edgeLabel"),y}return g}}},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.getCategoriesData=function(){return this._categoriesData},e.prototype.formatTooltip=function(t,i,r){if(r==="edge"){var a=this.getData(),o=this.getDataParams(t,r),s=a.graph.getEdgeByIndex(t),l=a.getName(s.node1.dataIndex),u=a.getName(s.node2.dataIndex),c=[];return l!=null&&c.push(l),u!=null&&c.push(u),vn("nameValue",{name:c.join(" > "),value:o.value,noValue:o.value==null})}var h=tI({series:this,dataIndex:t,multipleSeries:i});return h},e.prototype._updateCategoriesData=function(){var t=pt(this.option.categories||[],function(r){return r.value!=null?r:lt({value:0},r)}),i=new Jn(["value"],this);i.initData(t),this._categoriesData=i,this._categoriesModels=i.mapArray(function(r){return i.getItemModel(r)})},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.isAnimationEnabled=function(){return n.prototype.isAnimationEnabled.call(this)&&!(this.get("layout")==="force"&&this.get(["force","layoutAnimation"]))},e.type="series.graph",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={z:2,coordinateSystem:"view",legendHoverLink:!0,layout:null,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:"#aaa",width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},e}(Oe),LH={type:"graphRoam",event:"graphRoam",update:"none"};function DH(n){n.registerChartView(AH),n.registerSeriesModel(kH),n.registerProcessor(cH),n.registerVisual(hH),n.registerVisual(pH),n.registerLayout(yH),n.registerLayout(n.PRIORITY.VISUAL.POST_CHART_LAYOUT,_H),n.registerLayout(bH),n.registerCoordinateSystem("graphView",{dimensions:th.dimensions,create:SH}),n.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},Je),n.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},Je),n.registerAction(LH,function(e,t,i){t.eachComponent({mainType:"series",query:e},function(r){var a=r.coordinateSystem,o=Y0(a,e,void 0,i);r.setCenter&&r.setCenter(o.center),r.setZoom&&r.setZoom(o.zoom)})})}var PH=function(){function n(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return n}(),RH=function(n){Q(e,n);function e(t){var i=n.call(this,t)||this;return i.type="pointer",i}return e.prototype.getDefaultShape=function(){return new PH},e.prototype.buildPath=function(t,i){var r=Math.cos,a=Math.sin,o=i.r,s=i.width,l=i.angle,u=i.x-r(l)*s*(s>=o/3?1:2),c=i.y-a(l)*s*(s>=o/3?1:2);l=i.angle-Math.PI/2,t.moveTo(u,c),t.lineTo(i.x+r(l)*s,i.y+a(l)*s),t.lineTo(i.x+r(i.angle)*o,i.y+a(i.angle)*o),t.lineTo(i.x-r(l)*s,i.y-a(l)*s),t.lineTo(u,c)},e}(re);function NH(n,e){var t=n.get("center"),i=e.getWidth(),r=e.getHeight(),a=Math.min(i,r),o=Mt(t[0],e.getWidth()),s=Mt(t[1],e.getHeight()),l=Mt(n.get("radius"),a/2);return{cx:o,cy:s,r:l}}function Sf(n,e){var t=n==null?"":n+"";return e&&(Tt(e)?t=e.replace("{value}",t):Ot(e)&&(t=e(n))),t}var zH=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,i,r){this.group.removeAll();var a=t.get(["axisLine","lineStyle","color"]),o=NH(t,r);this._renderMain(t,i,r,a,o),this._data=t.getData()},e.prototype.dispose=function(){},e.prototype._renderMain=function(t,i,r,a,o){var s=this.group,l=t.get("clockwise"),u=-t.get("startAngle")/180*Math.PI,c=-t.get("endAngle")/180*Math.PI,h=t.getModel("axisLine"),f=h.get("roundCap"),d=f?nf:qn,g=h.get("show"),y=h.getModel("lineStyle"),_=y.get("width"),v=[u,c];by(v,!l),u=v[0],c=v[1];for(var p=c-u,x=u,b=[],S=0;g&&S<a.length;S++){var M=Math.min(Math.max(a[S][0],0),1);c=u+p*M;var I=new d({shape:{startAngle:x,endAngle:c,cx:o.cx,cy:o.cy,clockwise:l,r0:o.r-_,r:o.r},silent:!0});I.setStyle({fill:a[S][1]}),I.setStyle(y.getLineStyle(["color","width"])),b.push(I),x=c}b.reverse(),E(b,function(C){return s.add(C)});var A=function(C){if(C<=0)return a[0][1];var L;for(L=0;L<a.length;L++)if(a[L][0]>=C&&(L===0?0:a[L-1][0])<C)return a[L][1];return a[L-1][1]};this._renderTicks(t,i,r,A,o,u,c,l,_),this._renderTitleAndDetail(t,i,r,A,o),this._renderAnchor(t,o),this._renderPointer(t,i,r,A,o,u,c,l,_)},e.prototype._renderTicks=function(t,i,r,a,o,s,l,u,c){for(var h=this.group,f=o.cx,d=o.cy,g=o.r,y=+t.get("min"),_=+t.get("max"),v=t.getModel("splitLine"),p=t.getModel("axisTick"),x=t.getModel("axisLabel"),b=t.get("splitNumber"),S=p.get("splitNumber"),M=Mt(v.get("length"),g),I=Mt(p.get("length"),g),A=s,C=(l-s)/b,L=C/S,R=v.getModel("lineStyle").getLineStyle(),D=p.getModel("lineStyle").getLineStyle(),N=v.get("distance"),k,O,F=0;F<=b;F++){if(k=Math.cos(A),O=Math.sin(A),v.get("show")){var G=N?N+c:c,q=new fn({shape:{x1:k*(g-G)+f,y1:O*(g-G)+d,x2:k*(g-M-G)+f,y2:O*(g-M-G)+d},style:R,silent:!0});R.stroke==="auto"&&q.setStyle({stroke:a(F/b)}),h.add(q)}if(x.get("show")){var G=x.get("distance")+N,j=Sf(qe(F/b*(_-y)+y),x.get("formatter")),J=a(F/b),H=k*(g-M-G)+f,K=O*(g-M-G)+d,ut=x.get("rotate"),ot=0;ut==="radial"?(ot=-A+2*Math.PI,ot>Math.PI/2&&(ot+=Math.PI)):ut==="tangential"?ot=-A-Math.PI/2:ve(ut)&&(ot=ut*Math.PI/180),ot===0?h.add(new fe({style:Ee(x,{text:j,x:H,y:K,verticalAlign:O<-.8?"top":O>.8?"bottom":"middle",align:k<-.4?"left":k>.4?"right":"center"},{inheritColor:J}),silent:!0})):h.add(new fe({style:Ee(x,{text:j,x:H,y:K,verticalAlign:"middle",align:"center"},{inheritColor:J}),silent:!0,originX:H,originY:K,rotation:ot}))}if(p.get("show")&&F!==b){var G=p.get("distance");G=G?G+c:c;for(var at=0;at<=S;at++){k=Math.cos(A),O=Math.sin(A);var Nt=new fn({shape:{x1:k*(g-G)+f,y1:O*(g-G)+d,x2:k*(g-I-G)+f,y2:O*(g-I-G)+d},silent:!0,style:D});D.stroke==="auto"&&Nt.setStyle({stroke:a((F+at/S)/b)}),h.add(Nt),A+=L}A-=L}else A+=C}},e.prototype._renderPointer=function(t,i,r,a,o,s,l,u,c){var h=this.group,f=this._data,d=this._progressEls,g=[],y=t.get(["pointer","show"]),_=t.getModel("progress"),v=_.get("show"),p=t.getData(),x=p.mapDimension("value"),b=+t.get("min"),S=+t.get("max"),M=[b,S],I=[s,l];function A(L,R){var D=p.getItemModel(L),N=D.getModel("pointer"),k=Mt(N.get("width"),o.r),O=Mt(N.get("length"),o.r),F=t.get(["pointer","icon"]),G=N.get("offsetCenter"),q=Mt(G[0],o.r),j=Mt(G[1],o.r),J=N.get("keepAspect"),H;return F?H=rn(F,q-k/2,j-O,k,O,null,J):H=new RH({shape:{angle:-Math.PI/2,width:k,r:O,x:q,y:j}}),H.rotation=-(R+Math.PI/2),H.x=o.cx,H.y=o.cy,H}function C(L,R){var D=_.get("roundCap"),N=D?nf:qn,k=_.get("overlap"),O=k?_.get("width"):c/p.count(),F=k?o.r-O:o.r-(L+1)*O,G=k?o.r:o.r-L*O,q=new N({shape:{startAngle:s,endAngle:R,cx:o.cx,cy:o.cy,clockwise:u,r0:F,r:G}});return k&&(q.z2=Ae(p.get(x,L),[b,S],[100,0],!0)),q}(v||y)&&(p.diff(f).add(function(L){var R=p.get(x,L);if(y){var D=A(L,s);We(D,{rotation:-((isNaN(+R)?I[0]:Ae(R,M,I,!0))+Math.PI/2)},t),h.add(D),p.setItemGraphicEl(L,D)}if(v){var N=C(L,s),k=_.get("clip");We(N,{shape:{endAngle:Ae(R,M,I,k)}},t),h.add(N),My(t.seriesIndex,p.dataType,L,N),g[L]=N}}).update(function(L,R){var D=p.get(x,L);if(y){var N=f.getItemGraphicEl(R),k=N?N.rotation:s,O=A(L,k);O.rotation=k,me(O,{rotation:-((isNaN(+D)?I[0]:Ae(D,M,I,!0))+Math.PI/2)},t),h.add(O),p.setItemGraphicEl(L,O)}if(v){var F=d[R],G=F?F.shape.endAngle:s,q=C(L,G),j=_.get("clip");me(q,{shape:{endAngle:Ae(D,M,I,j)}},t),h.add(q),My(t.seriesIndex,p.dataType,L,q),g[L]=q}}).execute(),p.each(function(L){var R=p.getItemModel(L),D=R.getModel("emphasis"),N=D.get("focus"),k=D.get("blurScope"),O=D.get("disabled");if(y){var F=p.getItemGraphicEl(L),G=p.getItemVisual(L,"style"),q=G.fill;if(F instanceof Sn){var j=F.style;F.useStyle(lt({image:j.image,x:j.x,y:j.y,width:j.width,height:j.height},G))}else F.useStyle(G),F.type!=="pointer"&&F.setColor(q);F.setStyle(R.getModel(["pointer","itemStyle"]).getItemStyle()),F.style.fill==="auto"&&F.setStyle("fill",a(Ae(p.get(x,L),M,[0,1],!0))),F.z2EmphasisLift=0,Cn(F,R),Ue(F,N,k,O)}if(v){var J=g[L];J.useStyle(p.getItemVisual(L,"style")),J.setStyle(R.getModel(["progress","itemStyle"]).getItemStyle()),J.z2EmphasisLift=0,Cn(J,R),Ue(J,N,k,O)}}),this._progressEls=g)},e.prototype._renderAnchor=function(t,i){var r=t.getModel("anchor"),a=r.get("show");if(a){var o=r.get("size"),s=r.get("icon"),l=r.get("offsetCenter"),u=r.get("keepAspect"),c=rn(s,i.cx-o/2+Mt(l[0],i.r),i.cy-o/2+Mt(l[1],i.r),o,o,null,u);c.z2=r.get("showAbove")?1:0,c.setStyle(r.getModel("itemStyle").getItemStyle()),this.group.add(c)}},e.prototype._renderTitleAndDetail=function(t,i,r,a,o){var s=this,l=t.getData(),u=l.mapDimension("value"),c=+t.get("min"),h=+t.get("max"),f=new Gt,d=[],g=[],y=t.isAnimationEnabled(),_=t.get(["pointer","showAbove"]);l.diff(this._data).add(function(v){d[v]=new fe({silent:!0}),g[v]=new fe({silent:!0})}).update(function(v,p){d[v]=s._titleEls[p],g[v]=s._detailEls[p]}).execute(),l.each(function(v){var p=l.getItemModel(v),x=l.get(u,v),b=new Gt,S=a(Ae(x,[c,h],[0,1],!0)),M=p.getModel("title");if(M.get("show")){var I=M.get("offsetCenter"),A=o.cx+Mt(I[0],o.r),C=o.cy+Mt(I[1],o.r),L=d[v];L.attr({z2:_?0:2,style:Ee(M,{x:A,y:C,text:l.getName(v),align:"center",verticalAlign:"middle"},{inheritColor:S})}),b.add(L)}var R=p.getModel("detail");if(R.get("show")){var D=R.get("offsetCenter"),N=o.cx+Mt(D[0],o.r),k=o.cy+Mt(D[1],o.r),O=Mt(R.get("width"),o.r),F=Mt(R.get("height"),o.r),G=t.get(["progress","show"])?l.getItemVisual(v,"style").fill:S,L=g[v],q=R.get("formatter");L.attr({z2:_?0:2,style:Ee(R,{x:N,y:k,text:Sf(x,q),width:isNaN(O)?null:O,height:isNaN(F)?null:F,align:"center",verticalAlign:"middle"},{inheritColor:G})}),LS(L,{normal:R},x,function(J){return Sf(J,q)}),y&&DS(L,v,l,t,{getFormattedLabel:function(J,H,K,ut,ot,at){return Sf(at?at.interpolatedValue:x,q)}}),b.add(L)}f.add(b)}),this.group.add(f),this._titleEls=d,this._detailEls=g},e.type="gauge",e}(Pe),EH=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.visualStyleAccessPath="itemStyle",t}return e.prototype.getInitialData=function(t,i){return Fl(this,["value"])},e.type="series.gauge",e.defaultOption={z:2,colorBy:"data",center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,roundCap:!1,lineStyle:{color:[[1,"#E6EBF8"]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:"#63677A",width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:"#63677A",width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:"#464646",fontSize:12,rotate:0},pointer:{icon:null,offsetCenter:[0,0],show:!0,showAbove:!0,length:"60%",width:6,keepAspect:!1},anchor:{show:!1,showAbove:!1,size:6,icon:"circle",offsetCenter:[0,0],keepAspect:!1,itemStyle:{color:"#fff",borderWidth:0,borderColor:"#5470c6"}},title:{show:!0,offsetCenter:[0,"20%"],color:"#464646",fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:"#464646",fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},e}(Oe);function OH(n){n.registerChartView(zH),n.registerSeriesModel(EH)}var BH=["itemStyle","opacity"],VH=function(n){Q(e,n);function e(t,i){var r=n.call(this)||this,a=r,o=new Yn,s=new fe;return a.setTextContent(s),r.setTextGuideLine(o),r.updateData(t,i,!0),r}return e.prototype.updateData=function(t,i,r){var a=this,o=t.hostModel,s=t.getItemModel(i),l=t.getItemLayout(i),u=s.getModel("emphasis"),c=s.get(BH);c=c??1,r||sr(a),a.useStyle(t.getItemVisual(i,"style")),a.style.lineJoin="round",r?(a.setShape({points:l.points}),a.style.opacity=0,We(a,{style:{opacity:c}},o,i)):me(a,{style:{opacity:c},shape:{points:l.points}},o,i),Cn(a,s),this._updateLabel(t,i),Ue(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(t,i){var r=this,a=this.getTextGuideLine(),o=r.getTextContent(),s=t.hostModel,l=t.getItemModel(i),u=t.getItemLayout(i),c=u.label,h=t.getItemVisual(i,"style"),f=h.fill;kn(o,gn(l),{labelFetcher:t.hostModel,labelDataIndex:i,defaultOpacity:h.opacity,defaultText:t.getName(i)},{normal:{align:c.textAlign,verticalAlign:c.verticalAlign}}),r.setTextConfig({local:!0,inside:!!c.inside,insideStroke:f,outsideFill:f});var d=c.linePoints;a.setShape({points:d}),r.textGuideLineConfig={anchor:d?new Jt(d[0][0],d[0][1]):null},me(o,{style:{x:c.x,y:c.y}},s,i),o.attr({rotation:c.rotation,originX:c.x,originY:c.y,z2:10}),l0(r,u0(l),{stroke:f})},e}(Kn),FH=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.ignoreLabelLineUpdate=!0,t}return e.prototype.render=function(t,i,r){var a=t.getData(),o=this._data,s=this.group;a.diff(o).add(function(l){var u=new VH(a,l);a.setItemGraphicEl(l,u),s.add(u)}).update(function(l,u){var c=o.getItemGraphicEl(u);c.updateData(a,l),s.add(c),a.setItemGraphicEl(l,c)}).remove(function(l){var u=o.getItemGraphicEl(l);sc(u,t,l)}).execute(),this._data=a},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.prototype.dispose=function(){},e.type="funnel",e}(Pe),WH=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t){n.prototype.init.apply(this,arguments),this.legendVisualProvider=new Kc(Ct(this.getData,this),Ct(this.getRawData,this)),this._defaultLabelLine(t)},e.prototype.getInitialData=function(t,i){return Fl(this,{coordDimensions:["value"],encodeDefaulter:Zt(rm,this)})},e.prototype._defaultLabelLine=function(t){Oo(t,"labelLine",["show"]);var i=t.labelLine,r=t.emphasis.labelLine;i.show=i.show&&t.label.show,r.show=r.show&&t.emphasis.label.show},e.prototype.getDataParams=function(t){var i=this.getData(),r=n.prototype.getDataParams.call(this,t),a=i.mapDimension("value"),o=i.getSum(a);return r.percent=o?+(i.get(a,t)/o*100).toFixed(2):0,r.$vars.push("percent"),r},e.type="series.funnel",e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",orient:"vertical",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},e}(Oe);function GH(n,e){return un(n.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function jH(n,e){for(var t=n.mapDimension("value"),i=n.mapArray(t,function(l){return l}),r=[],a=e==="ascending",o=0,s=n.count();o<s;o++)r[o]=o;return Ot(e)?r.sort(e):e!=="none"&&r.sort(function(l,u){return a?i[l]-i[u]:i[u]-i[l]}),r}function HH(n){var e=n.hostModel,t=e.get("orient");n.each(function(i){var r=n.getItemModel(i),a=r.getModel("label"),o=a.get("position"),s=r.getModel("labelLine"),l=n.getItemLayout(i),u=l.points,c=o==="inner"||o==="inside"||o==="center"||o==="insideLeft"||o==="insideRight",h,f,d,g;if(c)o==="insideLeft"?(f=(u[0][0]+u[3][0])/2+5,d=(u[0][1]+u[3][1])/2,h="left"):o==="insideRight"?(f=(u[1][0]+u[2][0])/2-5,d=(u[1][1]+u[2][1])/2,h="right"):(f=(u[0][0]+u[1][0]+u[2][0]+u[3][0])/4,d=(u[0][1]+u[1][1]+u[2][1]+u[3][1])/4,h="center"),g=[[f,d],[f,d]];else{var y=void 0,_=void 0,v=void 0,p=void 0,x=s.get("length");o==="left"?(y=(u[3][0]+u[0][0])/2,_=(u[3][1]+u[0][1])/2,v=y-x,f=v-5,h="right"):o==="right"?(y=(u[1][0]+u[2][0])/2,_=(u[1][1]+u[2][1])/2,v=y+x,f=v+5,h="left"):o==="top"?(y=(u[3][0]+u[0][0])/2,_=(u[3][1]+u[0][1])/2,p=_-x,d=p-5,h="center"):o==="bottom"?(y=(u[1][0]+u[2][0])/2,_=(u[1][1]+u[2][1])/2,p=_+x,d=p+5,h="center"):o==="rightTop"?(y=t==="horizontal"?u[3][0]:u[1][0],_=t==="horizontal"?u[3][1]:u[1][1],t==="horizontal"?(p=_-x,d=p-5,h="center"):(v=y+x,f=v+5,h="top")):o==="rightBottom"?(y=u[2][0],_=u[2][1],t==="horizontal"?(p=_+x,d=p+5,h="center"):(v=y+x,f=v+5,h="bottom")):o==="leftTop"?(y=u[0][0],_=t==="horizontal"?u[0][1]:u[1][1],t==="horizontal"?(p=_-x,d=p-5,h="center"):(v=y-x,f=v-5,h="right")):o==="leftBottom"?(y=t==="horizontal"?u[1][0]:u[3][0],_=t==="horizontal"?u[1][1]:u[2][1],t==="horizontal"?(p=_+x,d=p+5,h="center"):(v=y-x,f=v-5,h="right")):(y=(u[1][0]+u[2][0])/2,_=(u[1][1]+u[2][1])/2,t==="horizontal"?(p=_+x,d=p+5,h="center"):(v=y+x,f=v+5,h="left")),t==="horizontal"?(v=y,f=v):(p=_,d=p),g=[[y,_],[v,p]]}l.label={linePoints:g,x:f,y:d,verticalAlign:"middle",textAlign:h,inside:c}})}function UH(n,e){n.eachSeriesByType("funnel",function(t){var i=t.getData(),r=i.mapDimension("value"),a=t.get("sort"),o=GH(t,e),s=t.get("orient"),l=o.width,u=o.height,c=jH(i,a),h=o.x,f=o.y,d=s==="horizontal"?[Mt(t.get("minSize"),u),Mt(t.get("maxSize"),u)]:[Mt(t.get("minSize"),l),Mt(t.get("maxSize"),l)],g=i.getDataExtent(r),y=t.get("min"),_=t.get("max");y==null&&(y=Math.min(g[0],0)),_==null&&(_=g[1]);var v=t.get("funnelAlign"),p=t.get("gap"),x=s==="horizontal"?l:u,b=(x-p*(i.count()-1))/i.count(),S=function(k,O){if(s==="horizontal"){var F=i.get(r,k)||0,G=Ae(F,[y,_],d,!0),q=void 0;switch(v){case"top":q=f;break;case"center":q=f+(u-G)/2;break;case"bottom":q=f+(u-G);break}return[[O,q],[O,q+G]]}var j=i.get(r,k)||0,J=Ae(j,[y,_],d,!0),H;switch(v){case"left":H=h;break;case"center":H=h+(l-J)/2;break;case"right":H=h+l-J;break}return[[H,O],[H+J,O]]};a==="ascending"&&(b=-b,p=-p,s==="horizontal"?h+=l:f+=u,c=c.reverse());for(var M=0;M<c.length;M++){var I=c[M],A=c[M+1],C=i.getItemModel(I);if(s==="horizontal"){var L=C.get(["itemStyle","width"]);L==null?L=b:(L=Mt(L,l),a==="ascending"&&(L=-L));var R=S(I,h),D=S(A,h+L);h+=L+p,i.setItemLayout(I,{points:R.concat(D.slice().reverse())})}else{var N=C.get(["itemStyle","height"]);N==null?N=b:(N=Mt(N,u),a==="ascending"&&(N=-N));var R=S(I,f),D=S(A,f+N);f+=N+p,i.setItemLayout(I,{points:R.concat(D.slice().reverse())})}}HH(i)})}function XH(n){n.registerChartView(FH),n.registerSeriesModel(WH),n.registerLayout(UH),n.registerProcessor(qc("funnel"))}var ZH=.3,qH=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t._dataGroup=new Gt,t._initialized=!1,t}return e.prototype.init=function(){this.group.add(this._dataGroup)},e.prototype.render=function(t,i,r,a){this._progressiveEls=null;var o=this._dataGroup,s=t.getData(),l=this._data,u=t.coordinateSystem,c=u.dimensions,h=gL(t);s.diff(l).add(f).update(d).remove(g).execute();function f(_){var v=fL(s,o,_,c,u);k1(v,s,_,h)}function d(_,v){var p=l.getItemGraphicEl(v),x=dL(s,_,c,u);s.setItemGraphicEl(_,p),me(p,{shape:{points:x}},t,_),sr(p),k1(p,s,_,h)}function g(_){var v=l.getItemGraphicEl(_);o.remove(v)}if(!this._initialized){this._initialized=!0;var y=KH(u,t,function(){setTimeout(function(){o.removeClipPath()})});o.setClipPath(y)}this._data=s},e.prototype.incrementalPrepareRender=function(t,i,r){this._initialized=!0,this._data=null,this._dataGroup.removeAll()},e.prototype.incrementalRender=function(t,i,r){for(var a=i.getData(),o=i.coordinateSystem,s=o.dimensions,l=gL(i),u=this._progressiveEls=[],c=t.start;c<t.end;c++){var h=fL(a,this._dataGroup,c,s,o);h.incremental=!0,k1(h,a,c,l),u.push(h)}},e.prototype.remove=function(){this._dataGroup&&this._dataGroup.removeAll(),this._data=null},e.type="parallel",e}(Pe);function KH(n,e,t){var i=n.model,r=n.getRect(),a=new de({shape:{x:r.x,y:r.y,width:r.width,height:r.height}}),o=i.get("layout")==="horizontal"?"width":"height";return a.setShape(o,0),We(a,{shape:{width:r.width,height:r.height}},e,t),a}function dL(n,e,t,i){for(var r=[],a=0;a<t.length;a++){var o=t[a],s=n.get(n.mapDimension(o),e);YH(s,i.getAxis(o).type)||r.push(i.dataToPoint(s,o))}return r}function fL(n,e,t,i,r){var a=dL(n,t,i,r),o=new Yn({shape:{points:a},z2:10});return e.add(o),n.setItemGraphicEl(t,o),o}function gL(n){var e=n.get("smooth",!0);return e===!0&&(e=ZH),e=ra(e),Mu(e)&&(e=0),{smooth:e}}function k1(n,e,t,i){n.useStyle(e.getItemVisual(t,"style")),n.style.fill=null,n.setShape("smooth",i.smooth);var r=e.getItemModel(t),a=r.getModel("emphasis");Cn(n,r,"lineStyle"),Ue(n,a.get("focus"),a.get("blurScope"),a.get("disabled"))}function YH(n,e){return e==="category"?n==null:n==null||isNaN(n)}var JH=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.visualStyleAccessPath="lineStyle",t.visualDrawType="stroke",t}return e.prototype.getInitialData=function(t,i){return da(null,this,{useEncodeDefaulter:Ct($H,null,this)})},e.prototype.getRawIndicesByActiveState=function(t){var i=this.coordinateSystem,r=this.getData(),a=[];return i.eachActiveState(r,function(o,s){t===o&&a.push(r.getRawIndex(s))}),a},e.type="series.parallel",e.dependencies=["parallel"],e.defaultOption={z:2,coordinateSystem:"parallel",parallelIndex:0,label:{show:!1},inactiveOpacity:.05,activeOpacity:1,lineStyle:{width:1,opacity:.45,type:"solid"},emphasis:{label:{show:!1}},progressive:500,smooth:!1,animationEasing:"linear"},e}(Oe);function $H(n){var e=n.ecModel.getComponent("parallel",n.get("parallelIndex"));if(e){var t={};return E(e.dimensions,function(i){var r=QH(i);t[i]=r}),t}}function QH(n){return+n.replace("dim","")}var t9=["lineStyle","opacity"],e9={seriesType:"parallel",reset:function(n,e){var t=n.coordinateSystem,i={normal:n.get(["lineStyle","opacity"]),active:n.get("activeOpacity"),inactive:n.get("inactiveOpacity")};return{progress:function(r,a){t.eachActiveState(a,function(o,s){var l=i[o];if(o==="normal"&&a.hasItemOption){var u=a.getItemModel(s).get(t9,!0);u!=null&&(l=u)}var c=a.ensureUniqueItemVisual(s,"style");c.opacity=l},r.start,r.end)}}}};function n9(n){i9(n),r9(n)}function i9(n){if(!n.parallel){var e=!1;E(n.series,function(t){t&&t.type==="parallel"&&(e=!0)}),e&&(n.parallel=[{}])}}function r9(n){var e=De(n.parallelAxis);E(e,function(t){if(Vt(t)){var i=t.parallelIndex||0,r=De(n.parallel)[i];r&&r.parallelAxisDefault&&Kt(t,r.parallelAxisDefault,!1)}})}var a9=5,o9=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,i,r){this._model=t,this._api=r,this._handlers||(this._handlers={},E(s9,function(a,o){r.getZr().on(o,this._handlers[o]=Ct(a,this))},this)),kl(this,"_throttledDispatchExpand",t.get("axisExpandRate"),"fixRate")},e.prototype.dispose=function(t,i){bc(this,"_throttledDispatchExpand"),E(this._handlers,function(r,a){i.getZr().off(a,r)}),this._handlers=null},e.prototype._throttledDispatchExpand=function(t){this._dispatchExpand(t)},e.prototype._dispatchExpand=function(t){t&&this._api.dispatchAction(lt({type:"parallelAxisExpand"},t))},e.type="parallel",e}(je),s9={mousedown:function(n){L1(this,"click")&&(this._mouseDownPoint=[n.offsetX,n.offsetY])},mouseup:function(n){var e=this._mouseDownPoint;if(L1(this,"click")&&e){var t=[n.offsetX,n.offsetY],i=Math.pow(e[0]-t[0],2)+Math.pow(e[1]-t[1],2);if(i>a9)return;var r=this._model.coordinateSystem.getSlidedAxisExpandWindow([n.offsetX,n.offsetY]);r.behavior!=="none"&&this._dispatchExpand({axisExpandWindow:r.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(n){if(!(this._mouseDownPoint||!L1(this,"mousemove"))){var e=this._model,t=e.coordinateSystem.getSlidedAxisExpandWindow([n.offsetX,n.offsetY]),i=t.behavior;i==="jump"&&this._throttledDispatchExpand.debounceNextCall(e.get("axisExpandDebounce")),this._throttledDispatchExpand(i==="none"?null:{axisExpandWindow:t.axisExpandWindow,animation:i==="jump"?null:{duration:0}})}}};function L1(n,e){var t=n._model;return t.get("axisExpandable")&&t.get("axisExpandTriggerOn")===e}var l9=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(){n.prototype.init.apply(this,arguments),this.mergeOption({})},e.prototype.mergeOption=function(t){var i=this.option;t&&Kt(i,t,!0),this._initDimensions()},e.prototype.contains=function(t,i){var r=t.get("parallelIndex");return r!=null&&i.getComponent("parallel",r)===this},e.prototype.setAxisExpand=function(t){E(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(i){t.hasOwnProperty(i)&&(this.option[i]=t[i])},this)},e.prototype._initDimensions=function(){var t=this.dimensions=[],i=this.parallelAxisIndex=[],r=Se(this.ecModel.queryComponents({mainType:"parallelAxis"}),function(a){return(a.get("parallelIndex")||0)===this.componentIndex},this);E(r,function(a){t.push("dim"+a.get("dim")),i.push(a.componentIndex)})},e.type="parallel",e.dependencies=["parallelAxis"],e.layoutMode="box",e.defaultOption={z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},e}(le),u9=function(n){Q(e,n);function e(t,i,r,a,o){var s=n.call(this,t,i,r)||this;return s.type=a||"value",s.axisIndex=o,s}return e.prototype.isHorizontal=function(){return this.coordinateSystem.getModel().get("layout")!=="horizontal"},e}(dr);function Ps(n,e,t,i,r,a){n=n||0;var o=t[1]-t[0];if(r!=null&&(r=Xl(r,[0,o])),a!=null&&(a=Math.max(a,r??0)),i==="all"){var s=Math.abs(e[1]-e[0]);s=Xl(s,[0,o]),r=a=Xl(s,[r,a]),i=0}e[0]=Xl(e[0],t),e[1]=Xl(e[1],t);var l=D1(e,i);e[i]+=n;var u=r||0,c=t.slice();l.sign<0?c[0]+=u:c[1]-=u,e[i]=Xl(e[i],c);var h;return h=D1(e,i),r!=null&&(h.sign!==l.sign||h.span<r)&&(e[1-i]=e[i]+l.sign*r),h=D1(e,i),a!=null&&h.span>a&&(e[1-i]=e[i]+h.sign*a),e}function D1(n,e){var t=n[e]-n[1-e];return{span:Math.abs(t),sign:t>0?-1:t<0?1:e?-1:1}}function Xl(n,e){return Math.min(e[1]!=null?e[1]:1/0,Math.max(e[0]!=null?e[0]:-1/0,n))}var P1=E,vL=Math.min,yL=Math.max,mL=Math.floor,c9=Math.ceil,_L=qe,h9=Math.PI,p9=function(){function n(e,t,i){this.type="parallel",this._axesMap=Dt(),this._axesLayout={},this.dimensions=e.dimensions,this._model=e,this._init(e,t,i)}return n.prototype._init=function(e,t,i){var r=e.dimensions,a=e.parallelAxisIndex;P1(r,function(o,s){var l=a[s],u=t.getComponent("parallelAxis",l),c=this._axesMap.set(o,new u9(o,Zd(u),[0,0],u.get("type"),l)),h=c.type==="category";c.onBand=h&&u.get("boundaryGap"),c.inverse=u.get("inverse"),u.axis=c,c.model=u,c.coordinateSystem=u.coordinateSystem=this},this)},n.prototype.update=function(e,t){this._updateAxesFromSeries(this._model,e)},n.prototype.containPoint=function(e){var t=this._makeLayoutInfo(),i=t.axisBase,r=t.layoutBase,a=t.pixelDimIndex,o=e[1-a],s=e[a];return o>=i&&o<=i+t.axisLength&&s>=r&&s<=r+t.layoutLength},n.prototype.getModel=function(){return this._model},n.prototype._updateAxesFromSeries=function(e,t){t.eachSeries(function(i){if(e.contains(i,t)){var r=i.getData();P1(this.dimensions,function(a){var o=this._axesMap.get(a);o.scale.unionExtentFromData(r,r.mapDimension(a)),El(o.scale,o.model)},this)}},this)},n.prototype.resize=function(e,t){this._rect=un(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()}),this._layoutAxes()},n.prototype.getRect=function(){return this._rect},n.prototype._makeLayoutInfo=function(){var e=this._model,t=this._rect,i=["x","y"],r=["width","height"],a=e.get("layout"),o=a==="horizontal"?0:1,s=t[r[o]],l=[0,s],u=this.dimensions.length,c=Mf(e.get("axisExpandWidth"),l),h=Mf(e.get("axisExpandCount")||0,[0,u]),f=e.get("axisExpandable")&&u>3&&u>h&&h>1&&c>0&&s>0,d=e.get("axisExpandWindow"),g;if(d)g=Mf(d[1]-d[0],l),d[1]=d[0]+g;else{g=Mf(c*(h-1),l);var y=e.get("axisExpandCenter")||mL(u/2);d=[c*y-g/2],d[1]=d[0]+g}var _=(s-g)/(u-h);_<3&&(_=0);var v=[mL(_L(d[0]/c,1))+1,c9(_L(d[1]/c,1))-1],p=_/c*d[0];return{layout:a,pixelDimIndex:o,layoutBase:t[i[o]],layoutLength:s,axisBase:t[i[1-o]],axisLength:t[r[1-o]],axisExpandable:f,axisExpandWidth:c,axisCollapseWidth:_,axisExpandWindow:d,axisCount:u,winInnerIndices:v,axisExpandWindow0Pos:p}},n.prototype._layoutAxes=function(){var e=this._rect,t=this._axesMap,i=this.dimensions,r=this._makeLayoutInfo(),a=r.layout;t.each(function(o){var s=[0,r.axisLength],l=o.inverse?1:0;o.setExtent(s[l],s[1-l])}),P1(i,function(o,s){var l=(r.axisExpandable?f9:d9)(s,r),u={horizontal:{x:l.position,y:r.axisLength},vertical:{x:0,y:l.position}},c={horizontal:h9/2,vertical:0},h=[u[a].x+e.x,u[a].y+e.y],f=c[a],d=fi();ko(d,d,f),Sr(d,d,h),this._axesLayout[o]={position:h,rotation:f,transform:d,axisNameAvailableWidth:l.axisNameAvailableWidth,axisLabelShow:l.axisLabelShow,nameTruncateMaxWidth:l.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},n.prototype.getAxis=function(e){return this._axesMap.get(e)},n.prototype.dataToPoint=function(e,t){return this.axisCoordToPoint(this._axesMap.get(t).dataToCoord(e),t)},n.prototype.eachActiveState=function(e,t,i,r){i==null&&(i=0),r==null&&(r=e.count());var a=this._axesMap,o=this.dimensions,s=[],l=[];E(o,function(_){s.push(e.mapDimension(_)),l.push(a.get(_).model)});for(var u=this.hasAxisBrushed(),c=i;c<r;c++){var h=void 0;if(!u)h="normal";else{h="active";for(var f=e.getValues(s,c),d=0,g=o.length;d<g;d++){var y=l[d].getActiveState(f[d]);if(y==="inactive"){h="inactive";break}}}t(h,c)}},n.prototype.hasAxisBrushed=function(){for(var e=this.dimensions,t=this._axesMap,i=!1,r=0,a=e.length;r<a;r++)t.get(e[r]).model.getActiveState()!=="normal"&&(i=!0);return i},n.prototype.axisCoordToPoint=function(e,t){var i=this._axesLayout[t];return ur([e,0],i.transform)},n.prototype.getAxisLayout=function(e){return Wt(this._axesLayout[e])},n.prototype.getSlidedAxisExpandWindow=function(e){var t=this._makeLayoutInfo(),i=t.pixelDimIndex,r=t.axisExpandWindow.slice(),a=r[1]-r[0],o=[0,t.axisExpandWidth*(t.axisCount-1)];if(!this.containPoint(e))return{behavior:"none",axisExpandWindow:r};var s=e[i]-t.layoutBase-t.axisExpandWindow0Pos,l,u="slide",c=t.axisCollapseWidth,h=this._model.get("axisExpandSlideTriggerArea"),f=h[0]!=null;if(c)f&&c&&s<a*h[0]?(u="jump",l=s-a*h[2]):f&&c&&s>a*(1-h[0])?(u="jump",l=s-a*(1-h[2])):(l=s-a*h[1])>=0&&(l=s-a*(1-h[1]))<=0&&(l=0),l*=t.axisExpandWidth/c,l?Ps(l,r,o,"all"):u="none";else{var d=r[1]-r[0],g=o[1]*s/d;r=[yL(0,g-d/2)],r[1]=vL(o[1],r[0]+d),r[0]=r[1]-d}return{axisExpandWindow:r,behavior:u}},n}();function Mf(n,e){return vL(yL(n,e[0]),e[1])}function d9(n,e){var t=e.layoutLength/(e.axisCount-1);return{position:t*n,axisNameAvailableWidth:t,axisLabelShow:!0}}function f9(n,e){var t=e.layoutLength,i=e.axisExpandWidth,r=e.axisCount,a=e.axisCollapseWidth,o=e.winInnerIndices,s,l=a,u=!1,c;return n<o[0]?(s=n*a,c=a):n<=o[1]?(s=e.axisExpandWindow0Pos+n*i-e.axisExpandWindow[0],l=i,u=!0):(s=t-(r-1-n)*a,c=a),{position:s,axisNameAvailableWidth:l,axisLabelShow:u,nameTruncateMaxWidth:c}}function g9(n,e){var t=[];return n.eachComponent("parallel",function(i,r){var a=new p9(i,n,e);a.name="parallel_"+r,a.resize(i,e),i.coordinateSystem=a,a.model=i,t.push(a)}),n.eachSeries(function(i){if(i.get("coordinateSystem")==="parallel"){var r=i.getReferringComponents("parallel",en).models[0];i.coordinateSystem=r.coordinateSystem}}),t}var v9={create:g9},R1=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.activeIntervals=[],t}return e.prototype.getAreaSelectStyle=function(){return Fo([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},e.prototype.setActiveIntervals=function(t){var i=this.activeIntervals=Wt(t);if(i)for(var r=i.length-1;r>=0;r--)Pi(i[r])},e.prototype.getActiveState=function(t){var i=this.activeIntervals;if(!i.length)return"normal";if(t==null||isNaN(+t))return"inactive";if(i.length===1){var r=i[0];if(r[0]<=t&&t<=r[1])return"active"}else for(var a=0,o=i.length;a<o;a++)if(i[a][0]<=t&&t<=i[a][1])return"active";return"inactive"},e}(le);tn(R1,Oc);var Rs=!0,ph=Math.min,Zl=Math.max,y9=Math.pow,m9=1e4,_9=6,x9=6,xL="globalPan",b9={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},w9={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},bL={brushStyle:{lineWidth:2,stroke:"rgba(210,219,238,0.3)",fill:"#D2DBEE"},transformable:!0,brushMode:"single",removeOnClick:!1},S9=0,N1=function(n){Q(e,n);function e(t){var i=n.call(this)||this;return i._track=[],i._covers=[],i._handlers={},i._zr=t,i.group=new Gt,i._uid="brushController_"+S9++,E(L9,function(r,a){this._handlers[a]=Ct(r,this)},i),i}return e.prototype.enableBrush=function(t){return this._brushType&&this._doDisableBrush(),t.brushType&&this._doEnableBrush(t),this},e.prototype._doEnableBrush=function(t){var i=this._zr;this._enableGlobalPan||dj(i,xL,this._uid),E(this._handlers,function(r,a){i.on(a,r)}),this._brushType=t.brushType,this._brushOption=Kt(Wt(bL),t,!0)},e.prototype._doDisableBrush=function(){var t=this._zr;fj(t,xL,this._uid),E(this._handlers,function(i,r){t.off(r,i)}),this._brushType=this._brushOption=null},e.prototype.setPanels=function(t){if(t&&t.length){var i=this._panels={};E(t,function(r){i[r.panelId]=Wt(r)})}else this._panels=null;return this},e.prototype.mount=function(t){t=t||{},this._enableGlobalPan=t.enableGlobalPan;var i=this.group;return this._zr.add(i),i.attr({x:t.x||0,y:t.y||0,rotation:t.rotation||0,scaleX:t.scaleX||1,scaleY:t.scaleY||1}),this._transform=i.getLocalTransform(),this},e.prototype.updateCovers=function(t){t=pt(t,function(f){return Kt(Wt(bL),f,!0)});var i="\0-brush-index-",r=this._covers,a=this._covers=[],o=this,s=this._creatingCover;return new pa(r,t,u,l).add(c).update(c).remove(h).execute(),this;function l(f,d){return(f.id!=null?f.id:i+d)+"-"+f.brushType}function u(f,d){return l(f.__brushOption,d)}function c(f,d){var g=t[f];if(d!=null&&r[d]===s)a[f]=r[d];else{var y=a[f]=d!=null?(r[d].__brushOption=g,r[d]):SL(o,wL(o,g));z1(o,y)}}function h(f){r[f]!==s&&o.group.remove(r[f])}},e.prototype.unmount=function(){return this.enableBrush(!1),B1(this),this._zr.remove(this.group),this},e.prototype.dispose=function(){this.unmount(),this.off()},e}(Ci);function wL(n,e){var t=If[e.brushType].createCover(n,e);return t.__brushOption=e,IL(t,e),n.group.add(t),t}function SL(n,e){var t=E1(e);return t.endCreating&&(t.endCreating(n,e),IL(e,e.__brushOption)),e}function ML(n,e){var t=e.__brushOption;E1(e).updateCoverShape(n,e,t.range,t)}function IL(n,e){var t=e.z;t==null&&(t=m9),n.traverse(function(i){i.z=t,i.z2=t})}function z1(n,e){E1(e).updateCommon(n,e),ML(n,e)}function E1(n){return If[n.__brushOption.brushType]}function O1(n,e,t){var i=n._panels;if(!i)return Rs;var r,a=n._transform;return E(i,function(o){o.isTargetByCursor(e,t,a)&&(r=o)}),r}function TL(n,e){var t=n._panels;if(!t)return Rs;var i=e.__brushOption.panelId;return i!=null?t[i]:Rs}function B1(n){var e=n._covers,t=e.length;return E(e,function(i){n.group.remove(i)},n),e.length=0,!!t}function Ns(n,e){var t=pt(n._covers,function(i){var r=i.__brushOption,a=Wt(r.range);return{brushType:r.brushType,panelId:r.panelId,range:a}});n.trigger("brush",{areas:t,isEnd:!!e.isEnd,removeOnClick:!!e.removeOnClick})}function M9(n){var e=n._track;if(!e.length)return!1;var t=e[e.length-1],i=e[0],r=t[0]-i[0],a=t[1]-i[1],o=y9(r*r+a*a,.5);return o>_9}function AL(n){var e=n.length-1;return e<0&&(e=0),[n[0],n[e]]}function CL(n,e,t,i){var r=new Gt;return r.add(new de({name:"main",style:F1(t),silent:!0,draggable:!0,cursor:"move",drift:Zt(DL,n,e,r,["n","s","w","e"]),ondragend:Zt(Ns,e,{isEnd:!0})})),E(i,function(a){r.add(new de({name:a.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:Zt(DL,n,e,r,a),ondragend:Zt(Ns,e,{isEnd:!0})}))}),r}function kL(n,e,t,i){var r=i.brushStyle.lineWidth||0,a=Zl(r,x9),o=t[0][0],s=t[1][0],l=o-r/2,u=s-r/2,c=t[0][1],h=t[1][1],f=c-a+r/2,d=h-a+r/2,g=c-o,y=h-s,_=g+r,v=y+r;va(n,e,"main",o,s,g,y),i.transformable&&(va(n,e,"w",l,u,a,v),va(n,e,"e",f,u,a,v),va(n,e,"n",l,u,_,a),va(n,e,"s",l,d,_,a),va(n,e,"nw",l,u,a,a),va(n,e,"ne",f,u,a,a),va(n,e,"sw",l,d,a,a),va(n,e,"se",f,d,a,a))}function V1(n,e){var t=e.__brushOption,i=t.transformable,r=e.childAt(0);r.useStyle(F1(t)),r.attr({silent:!i,cursor:i?"move":"default"}),E([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(a){var o=e.childOfName(a.join("")),s=a.length===1?W1(n,a[0]):T9(n,a);o&&o.attr({silent:!i,invisible:!i,cursor:i?w9[s]+"-resize":null})})}function va(n,e,t,i,r,a,o){var s=e.childOfName(t);s&&s.setShape(C9(G1(n,e,[[i,r],[i+a,r+o]])))}function F1(n){return Bt({strokeNoScale:!0},n.brushStyle)}function LL(n,e,t,i){var r=[ph(n,t),ph(e,i)],a=[Zl(n,t),Zl(e,i)];return[[r[0],a[0]],[r[1],a[1]]]}function I9(n){return ns(n.group)}function W1(n,e){var t={w:"left",e:"right",n:"top",s:"bottom"},i={left:"w",right:"e",top:"n",bottom:"s"},r=nd(t[e],I9(n));return i[r]}function T9(n,e){var t=[W1(n,e[0]),W1(n,e[1])];return(t[0]==="e"||t[0]==="w")&&t.reverse(),t.join("")}function DL(n,e,t,i,r,a){var o=t.__brushOption,s=n.toRectRange(o.range),l=PL(e,r,a);E(i,function(u){var c=b9[u];s[c[0]][c[1]]+=l[c[0]]}),o.range=n.fromRectRange(LL(s[0][0],s[1][0],s[0][1],s[1][1])),z1(e,t),Ns(e,{isEnd:!1})}function A9(n,e,t,i){var r=e.__brushOption.range,a=PL(n,t,i);E(r,function(o){o[0]+=a[0],o[1]+=a[1]}),z1(n,e),Ns(n,{isEnd:!1})}function PL(n,e,t){var i=n.group,r=i.transformCoordToLocal(e,t),a=i.transformCoordToLocal(0,0);return[r[0]-a[0],r[1]-a[1]]}function G1(n,e,t){var i=TL(n,e);return i&&i!==Rs?i.clipPath(t,n._transform):Wt(t)}function C9(n){var e=ph(n[0][0],n[1][0]),t=ph(n[0][1],n[1][1]),i=Zl(n[0][0],n[1][0]),r=Zl(n[0][1],n[1][1]);return{x:e,y:t,width:i-e,height:r-t}}function k9(n,e,t){if(!(!n._brushType||D9(n,e.offsetX,e.offsetY))){var i=n._zr,r=n._covers,a=O1(n,e,t);if(!n._dragging)for(var o=0;o<r.length;o++){var s=r[o].__brushOption;if(a&&(a===Rs||s.panelId===a.panelId)&&If[s.brushType].contain(r[o],t[0],t[1]))return}a&&i.setCursorStyle("crosshair")}}function j1(n){var e=n.event;e.preventDefault&&e.preventDefault()}function H1(n,e,t){return n.childOfName("main").contain(e,t)}function RL(n,e,t,i){var r=n._creatingCover,a=n._creatingPanel,o=n._brushOption,s;if(n._track.push(t.slice()),M9(n)||r){if(a&&!r){o.brushMode==="single"&&B1(n);var l=Wt(o);l.brushType=NL(l.brushType,a),l.panelId=a===Rs?null:a.panelId,r=n._creatingCover=wL(n,l),n._covers.push(r)}if(r){var u=If[NL(n._brushType,a)],c=r.__brushOption;c.range=u.getCreatingRange(G1(n,r,n._track)),i&&(SL(n,r),u.updateCommon(n,r)),ML(n,r),s={isEnd:i}}}else i&&o.brushMode==="single"&&o.removeOnClick&&O1(n,e,t)&&B1(n)&&(s={isEnd:i,removeOnClick:!0});return s}function NL(n,e){return n==="auto"?e.defaultBrushType:n}var L9={mousedown:function(n){if(this._dragging)zL(this,n);else if(!n.target||!n.target.draggable){j1(n);var e=this.group.transformCoordToLocal(n.offsetX,n.offsetY);this._creatingCover=null;var t=this._creatingPanel=O1(this,n,e);t&&(this._dragging=!0,this._track=[e.slice()])}},mousemove:function(n){var e=n.offsetX,t=n.offsetY,i=this.group.transformCoordToLocal(e,t);if(k9(this,n,i),this._dragging){j1(n);var r=RL(this,n,i,!1);r&&Ns(this,r)}},mouseup:function(n){zL(this,n)}};function zL(n,e){if(n._dragging){j1(e);var t=e.offsetX,i=e.offsetY,r=n.group.transformCoordToLocal(t,i),a=RL(n,e,r,!0);n._dragging=!1,n._track=[],n._creatingCover=null,a&&Ns(n,a)}}function D9(n,e,t){var i=n._zr;return e<0||e>i.getWidth()||t<0||t>i.getHeight()}var If={lineX:EL(0),lineY:EL(1),rect:{createCover:function(n,e){function t(i){return i}return CL({toRectRange:t,fromRectRange:t},n,e,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(n){var e=AL(n);return LL(e[1][0],e[1][1],e[0][0],e[0][1])},updateCoverShape:function(n,e,t,i){kL(n,e,t,i)},updateCommon:V1,contain:H1},polygon:{createCover:function(n,e){var t=new Gt;return t.add(new Yn({name:"main",style:F1(e),silent:!0})),t},getCreatingRange:function(n){return n},endCreating:function(n,e){e.remove(e.childAt(0)),e.add(new Kn({name:"main",draggable:!0,drift:Zt(A9,n,e),ondragend:Zt(Ns,n,{isEnd:!0})}))},updateCoverShape:function(n,e,t,i){e.childAt(0).setShape({points:G1(n,e,t)})},updateCommon:V1,contain:H1}};function EL(n){return{createCover:function(e,t){return CL({toRectRange:function(i){var r=[i,[0,100]];return n&&r.reverse(),r},fromRectRange:function(i){return i[n]}},e,t,[[["w"],["e"]],[["n"],["s"]]][n])},getCreatingRange:function(e){var t=AL(e),i=ph(t[0][n],t[1][n]),r=Zl(t[0][n],t[1][n]);return[i,r]},updateCoverShape:function(e,t,i,r){var a,o=TL(e,t);if(o!==Rs&&o.getLinearBrushOtherExtent)a=o.getLinearBrushOtherExtent(n);else{var s=e._zr;a=[0,[s.getWidth(),s.getHeight()][1-n]]}var l=[i,a];n&&l.reverse(),kL(e,t,l,r)},updateCommon:V1,contain:H1}}function OL(n){return n=U1(n),function(e){return wS(e,n)}}function BL(n,e){return n=U1(n),function(t){var i=e??t,r=i?n.width:n.height,a=i?n.x:n.y;return[a,a+(r||0)]}}function VL(n,e,t){var i=U1(n);return function(r,a){return i.contain(a[0],a[1])&&!cf(r,e,t)}}function U1(n){return $t.create(n)}var P9=["axisLine","axisTickLabel","axisName"],R9=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,i){n.prototype.init.apply(this,arguments),(this._brushController=new N1(i.getZr())).on("brush",Ct(this._onBrush,this))},e.prototype.render=function(t,i,r,a){if(!N9(t,i,a)){this.axisModel=t,this.api=r,this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new Gt,this.group.add(this._axisGroup),!!t.get("show")){var s=E9(t,i),l=s.coordinateSystem,u=t.getAreaSelectStyle(),c=u.width,h=t.axis.dim,f=l.getAxisLayout(h),d=lt({strokeContainThreshold:c},f),g=new ti(t,d);E(P9,g.add,g),this._axisGroup.add(g.getGroup()),this._refreshBrushController(d,u,t,s,c,r),lc(o,this._axisGroup,t)}}},e.prototype._refreshBrushController=function(t,i,r,a,o,s){var l=r.axis.getExtent(),u=l[1]-l[0],c=Math.min(30,Math.abs(u)*.1),h=$t.create({x:l[0],y:-o/2,width:u,height:o});h.x-=c,h.width+=2*c,this._brushController.mount({enableGlobalPan:!0,rotation:t.rotation,x:t.position[0],y:t.position[1]}).setPanels([{panelId:"pl",clipPath:OL(h),isTargetByCursor:VL(h,s,a),getLinearBrushOtherExtent:BL(h,0)}]).enableBrush({brushType:"lineX",brushStyle:i,removeOnClick:!0}).updateCovers(z9(r))},e.prototype._onBrush=function(t){var i=t.areas,r=this.axisModel,a=r.axis,o=pt(i,function(s){return[a.coordToData(s.range[0],!0),a.coordToData(s.range[1],!0)]});(!r.option.realtime===t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:r.id,intervals:o})},e.prototype.dispose=function(){this._brushController.dispose()},e.type="parallelAxis",e}(je);function N9(n,e,t){return t&&t.type==="axisAreaSelect"&&e.findComponents({mainType:"parallelAxis",query:t})[0]===n}function z9(n){var e=n.axis;return pt(n.activeIntervals,function(t){return{brushType:"lineX",panelId:"pl",range:[e.dataToCoord(t[0],!0),e.dataToCoord(t[1],!0)]}})}function E9(n,e){return e.getComponent("parallel",n.get("parallelIndex"))}var O9={type:"axisAreaSelect",event:"axisAreaSelected"};function B9(n){n.registerAction(O9,function(e,t){t.eachComponent({mainType:"parallelAxis",query:e},function(i){i.axis.model.setActiveIntervals(e.intervals)})}),n.registerAction("parallelAxisExpand",function(e,t){t.eachComponent({mainType:"parallel",query:e},function(i){i.setAxisExpand(e)})})}var V9={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function FL(n){n.registerComponentView(o9),n.registerComponentModel(l9),n.registerCoordinateSystem("parallel",v9),n.registerPreprocessor(n9),n.registerComponentModel(R1),n.registerComponentView(R9),Wl(n,"parallel",R1,V9),B9(n)}function F9(n){ie(FL),n.registerChartView(qH),n.registerSeriesModel(JH),n.registerVisual(n.PRIORITY.VISUAL.BRUSH,e9)}var W9=function(){function n(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.cpx2=0,this.cpy2=0,this.extent=0}return n}(),G9=function(n){Q(e,n);function e(t){return n.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new W9},e.prototype.buildPath=function(t,i){var r=i.extent;t.moveTo(i.x1,i.y1),t.bezierCurveTo(i.cpx1,i.cpy1,i.cpx2,i.cpy2,i.x2,i.y2),i.orient==="vertical"?(t.lineTo(i.x2+r,i.y2),t.bezierCurveTo(i.cpx2+r,i.cpy2,i.cpx1+r,i.cpy1,i.x1+r,i.y1)):(t.lineTo(i.x2,i.y2+r),t.bezierCurveTo(i.cpx2,i.cpy2+r,i.cpx1,i.cpy1+r,i.x1,i.y1+r)),t.closePath()},e.prototype.highlight=function(){la(this)},e.prototype.downplay=function(){ua(this)},e}(re),j9=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t._focusAdjacencyDisabled=!1,t}return e.prototype.render=function(t,i,r){var a=this,o=t.getGraph(),s=this.group,l=t.layoutInfo,u=l.width,c=l.height,h=t.getData(),f=t.getData("edge"),d=t.get("orient");this._model=t,s.removeAll(),s.x=l.x,s.y=l.y,o.eachEdge(function(g){var y=new G9,_=jt(y);_.dataIndex=g.dataIndex,_.seriesIndex=t.seriesIndex,_.dataType="edge";var v=g.getModel(),p=v.getModel("lineStyle"),x=p.get("curveness"),b=g.node1.getLayout(),S=g.node1.getModel(),M=S.get("localX"),I=S.get("localY"),A=g.node2.getLayout(),C=g.node2.getModel(),L=C.get("localX"),R=C.get("localY"),D=g.getLayout(),N,k,O,F,G,q,j,J;y.shape.extent=Math.max(1,D.dy),y.shape.orient=d,d==="vertical"?(N=(M!=null?M*u:b.x)+D.sy,k=(I!=null?I*c:b.y)+b.dy,O=(L!=null?L*u:A.x)+D.ty,F=R!=null?R*c:A.y,G=N,q=k*(1-x)+F*x,j=O,J=k*x+F*(1-x)):(N=(M!=null?M*u:b.x)+b.dx,k=(I!=null?I*c:b.y)+D.sy,O=L!=null?L*u:A.x,F=(R!=null?R*c:A.y)+D.ty,G=N*(1-x)+O*x,q=k,j=N*x+O*(1-x),J=F),y.setShape({x1:N,y1:k,x2:O,y2:F,cpx1:G,cpy1:q,cpx2:j,cpy2:J}),y.useStyle(p.getItemStyle()),WL(y.style,d,g);var H=""+v.get("value"),K=gn(v,"edgeLabel");kn(y,K,{labelFetcher:{getFormattedLabel:function(at,Nt,Yt,wt,xt,zt){return t.getFormattedLabel(at,Nt,"edge",wt,wr(xt,K.normal&&K.normal.get("formatter"),H),zt)}},labelDataIndex:g.dataIndex,defaultText:H}),y.setTextConfig({position:"inside"});var ut=v.getModel("emphasis");Cn(y,v,"lineStyle",function(at){var Nt=at.getItemStyle();return WL(Nt,d,g),Nt}),s.add(y),f.setItemGraphicEl(g.dataIndex,y);var ot=ut.get("focus");Ue(y,ot==="adjacency"?g.getAdjacentDataIndices():ot==="trajectory"?g.getTrajectoryDataIndices():ot,ut.get("blurScope"),ut.get("disabled"))}),o.eachNode(function(g){var y=g.getLayout(),_=g.getModel(),v=_.get("localX"),p=_.get("localY"),x=_.getModel("emphasis"),b=_.get(["itemStyle","borderRadius"])||0,S=new de({shape:{x:v!=null?v*u:y.x,y:p!=null?p*c:y.y,width:y.dx,height:y.dy,r:b},style:_.getModel("itemStyle").getItemStyle(),z2:10});kn(S,gn(_),{labelFetcher:{getFormattedLabel:function(I,A){return t.getFormattedLabel(I,A,"node")}},labelDataIndex:g.dataIndex,defaultText:g.id}),S.disableLabelAnimation=!0,S.setStyle("fill",g.getVisual("color")),S.setStyle("decal",g.getVisual("style").decal),Cn(S,_),s.add(S),h.setItemGraphicEl(g.dataIndex,S),jt(S).dataType="node";var M=x.get("focus");Ue(S,M==="adjacency"?g.getAdjacentDataIndices():M==="trajectory"?g.getTrajectoryDataIndices():M,x.get("blurScope"),x.get("disabled"))}),h.eachItemGraphicEl(function(g,y){var _=h.getItemModel(y);_.get("draggable")&&(g.drift=function(v,p){a._focusAdjacencyDisabled=!0,this.shape.x+=v,this.shape.y+=p,this.dirty(),r.dispatchAction({type:"dragNode",seriesId:t.id,dataIndex:h.getRawIndex(y),localX:this.shape.x/u,localY:this.shape.y/c})},g.ondragend=function(){a._focusAdjacencyDisabled=!1},g.draggable=!0,g.cursor="move")}),!this._data&&t.isAnimationEnabled()&&s.setClipPath(H9(s.getBoundingRect(),t,function(){s.removeClipPath()})),this._data=t.getData()},e.prototype.dispose=function(){},e.type="sankey",e}(Pe);function WL(n,e,t){switch(n.fill){case"source":n.fill=t.node1.getVisual("color"),n.decal=t.node1.getVisual("style").decal;break;case"target":n.fill=t.node2.getVisual("color"),n.decal=t.node2.getVisual("style").decal;break;case"gradient":var i=t.node1.getVisual("color"),r=t.node2.getVisual("color");Tt(i)&&Tt(r)&&(n.fill=new oc(0,0,+(e==="horizontal"),+(e==="vertical"),[{color:i,offset:0},{color:r,offset:1}]))}}function H9(n,e,t){var i=new de({shape:{x:n.x-10,y:n.y-10,width:0,height:n.height+20}});return We(i,{shape:{width:n.width+20}},e,t),i}var U9=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(t,i){var r=t.edges||t.links||[],a=t.data||t.nodes||[],o=t.levels||[];this.levelModels=[];for(var s=this.levelModels,l=0;l<o.length;l++)o[l].depth!=null&&o[l].depth>=0&&(s[o[l].depth]=new Ce(o[l],this,i));var u=pL(a,r,this,!0,c);return u.data;function c(h,f){h.wrapMethod("getItemModel",function(d,g){var y=d.parentModel,_=y.getData().getItemLayout(g);if(_){var v=_.depth,p=y.levelModels[v];p&&(d.parentModel=p)}return d}),f.wrapMethod("getItemModel",function(d,g){var y=d.parentModel,_=y.getGraph().getEdgeByIndex(g),v=_.node1.getLayout();if(v){var p=v.depth,x=y.levelModels[p];x&&(d.parentModel=x)}return d})}},e.prototype.setNodePosition=function(t,i){var r=this.option.data||this.option.nodes,a=r[t];a.localX=i[0],a.localY=i[1]},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.formatTooltip=function(t,i,r){function a(d){return isNaN(d)||d==null}if(r==="edge"){var o=this.getDataParams(t,r),s=o.data,l=o.value,u=s.source+" -- "+s.target;return vn("nameValue",{name:u,value:l,noValue:a(l)})}else{var c=this.getGraph().getNodeByIndex(t),h=c.getLayout().value,f=this.getDataParams(t,r).data.name;return vn("nameValue",{name:f!=null?f+"":null,value:h,noValue:a(h)})}},e.prototype.optionUpdated=function(){},e.prototype.getDataParams=function(t,i){var r=n.prototype.getDataParams.call(this,t,i);if(r.value==null&&i==="node"){var a=this.getGraph().getNodeByIndex(t),o=a.getLayout().value;r.value=o}return r},e.type="series.sankey",e.defaultOption={z:2,coordinateSystem:"view",left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,label:{show:!0,position:"right",fontSize:12},edgeLabel:{show:!1,fontSize:12},levels:[],nodeAlign:"justify",lineStyle:{color:"#314656",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:"#212121"}},animationEasing:"linear",animationDuration:1e3},e}(Oe);function X9(n,e){n.eachSeriesByType("sankey",function(t){var i=t.get("nodeWidth"),r=t.get("nodeGap"),a=Z9(t,e);t.layoutInfo=a;var o=a.width,s=a.height,l=t.getGraph(),u=l.nodes,c=l.edges;K9(u);var h=Se(u,function(y){return y.getLayout().value===0}),f=h.length!==0?0:t.get("layoutIterations"),d=t.get("orient"),g=t.get("nodeAlign");q9(u,c,i,r,o,s,f,d,g)})}function Z9(n,e){return un(n.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function q9(n,e,t,i,r,a,o,s,l){Y9(n,e,t,r,a,s,l),tU(n,e,a,r,i,o,s),uU(n,s)}function K9(n){E(n,function(e){var t=lo(e.outEdges,Tf),i=lo(e.inEdges,Tf),r=e.getValue()||0,a=Math.max(t,i,r);e.setLayout({value:a},!0)})}function Y9(n,e,t,i,r,a,o){for(var s=[],l=[],u=[],c=[],h=0,f=0;f<e.length;f++)s[f]=1;for(var f=0;f<n.length;f++)l[f]=n[f].inEdges.length,l[f]===0&&u.push(n[f]);for(var d=-1;u.length;){for(var g=0;g<u.length;g++){var y=u[g],_=y.hostGraph.data.getRawDataItem(y.dataIndex),v=_.depth!=null&&_.depth>=0;v&&_.depth>d&&(d=_.depth),y.setLayout({depth:v?_.depth:h},!0),a==="vertical"?y.setLayout({dy:t},!0):y.setLayout({dx:t},!0);for(var p=0;p<y.outEdges.length;p++){var x=y.outEdges[p],b=e.indexOf(x);s[b]=0;var S=x.node2,M=n.indexOf(S);--l[M]===0&&c.indexOf(S)<0&&c.push(S)}}++h,u=c,c=[]}for(var f=0;f<s.length;f++)if(s[f]===1)throw new Error("Sankey is a DAG, the original data has cycle!");var I=d>h-1?d:h-1;o&&o!=="left"&&J9(n,o,a,I);var A=a==="vertical"?(r-t)/I:(i-t)/I;Q9(n,A,a)}function GL(n){var e=n.hostGraph.data.getRawDataItem(n.dataIndex);return e.depth!=null&&e.depth>=0}function J9(n,e,t,i){if(e==="right"){for(var r=[],a=n,o=0;a.length;){for(var s=0;s<a.length;s++){var l=a[s];l.setLayout({skNodeHeight:o},!0);for(var u=0;u<l.inEdges.length;u++){var c=l.inEdges[u];r.indexOf(c.node1)<0&&r.push(c.node1)}}a=r,r=[],++o}E(n,function(h){GL(h)||h.setLayout({depth:Math.max(0,i-h.getLayout().skNodeHeight)},!0)})}else e==="justify"&&$9(n,i)}function $9(n,e){E(n,function(t){!GL(t)&&!t.outEdges.length&&t.setLayout({depth:e},!0)})}function Q9(n,e,t){E(n,function(i){var r=i.getLayout().depth*e;t==="vertical"?i.setLayout({y:r},!0):i.setLayout({x:r},!0)})}function tU(n,e,t,i,r,a,o){var s=eU(n,o);nU(s,e,t,i,r,o),X1(s,r,t,i,o);for(var l=1;a>0;a--)l*=.99,iU(s,l,o),X1(s,r,t,i,o),lU(s,l,o),X1(s,r,t,i,o)}function eU(n,e){var t=[],i=e==="vertical"?"y":"x",r=ay(n,function(a){return a.getLayout()[i]});return r.keys.sort(function(a,o){return a-o}),E(r.keys,function(a){t.push(r.buckets.get(a))}),t}function nU(n,e,t,i,r,a){var o=1/0;E(n,function(s){var l=s.length,u=0;E(s,function(h){u+=h.getLayout().value});var c=a==="vertical"?(i-(l-1)*r)/u:(t-(l-1)*r)/u;c<o&&(o=c)}),E(n,function(s){E(s,function(l,u){var c=l.getLayout().value*o;a==="vertical"?(l.setLayout({x:u},!0),l.setLayout({dx:c},!0)):(l.setLayout({y:u},!0),l.setLayout({dy:c},!0))})}),E(e,function(s){var l=+s.getValue()*o;s.setLayout({dy:l},!0)})}function X1(n,e,t,i,r){var a=r==="vertical"?"x":"y";E(n,function(o){o.sort(function(y,_){return y.getLayout()[a]-_.getLayout()[a]});for(var s,l,u,c=0,h=o.length,f=r==="vertical"?"dx":"dy",d=0;d<h;d++)l=o[d],u=c-l.getLayout()[a],u>0&&(s=l.getLayout()[a]+u,r==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),c=l.getLayout()[a]+l.getLayout()[f]+e;var g=r==="vertical"?i:t;if(u=c-e-g,u>0){s=l.getLayout()[a]-u,r==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0),c=s;for(var d=h-2;d>=0;--d)l=o[d],u=l.getLayout()[a]+l.getLayout()[f]+e-c,u>0&&(s=l.getLayout()[a]-u,r==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),c=l.getLayout()[a]}})}function iU(n,e,t){E(n.slice().reverse(),function(i){E(i,function(r){if(r.outEdges.length){var a=lo(r.outEdges,rU,t)/lo(r.outEdges,Tf);if(isNaN(a)){var o=r.outEdges.length;a=o?lo(r.outEdges,aU,t)/o:0}if(t==="vertical"){var s=r.getLayout().x+(a-so(r,t))*e;r.setLayout({x:s},!0)}else{var l=r.getLayout().y+(a-so(r,t))*e;r.setLayout({y:l},!0)}}})})}function rU(n,e){return so(n.node2,e)*n.getValue()}function aU(n,e){return so(n.node2,e)}function oU(n,e){return so(n.node1,e)*n.getValue()}function sU(n,e){return so(n.node1,e)}function so(n,e){return e==="vertical"?n.getLayout().x+n.getLayout().dx/2:n.getLayout().y+n.getLayout().dy/2}function Tf(n){return n.getValue()}function lo(n,e,t){for(var i=0,r=n.length,a=-1;++a<r;){var o=+e(n[a],t);isNaN(o)||(i+=o)}return i}function lU(n,e,t){E(n,function(i){E(i,function(r){if(r.inEdges.length){var a=lo(r.inEdges,oU,t)/lo(r.inEdges,Tf);if(isNaN(a)){var o=r.inEdges.length;a=o?lo(r.inEdges,sU,t)/o:0}if(t==="vertical"){var s=r.getLayout().x+(a-so(r,t))*e;r.setLayout({x:s},!0)}else{var l=r.getLayout().y+(a-so(r,t))*e;r.setLayout({y:l},!0)}}})})}function uU(n,e){var t=e==="vertical"?"x":"y";E(n,function(i){i.outEdges.sort(function(r,a){return r.node2.getLayout()[t]-a.node2.getLayout()[t]}),i.inEdges.sort(function(r,a){return r.node1.getLayout()[t]-a.node1.getLayout()[t]})}),E(n,function(i){var r=0,a=0;E(i.outEdges,function(o){o.setLayout({sy:r},!0),r+=o.getLayout().dy}),E(i.inEdges,function(o){o.setLayout({ty:a},!0),a+=o.getLayout().dy})})}function cU(n){n.eachSeriesByType("sankey",function(e){var t=e.getGraph(),i=t.nodes,r=t.edges;if(i.length){var a=1/0,o=-1/0;E(i,function(s){var l=s.getLayout().value;l<a&&(a=l),l>o&&(o=l)}),E(i,function(s){var l=new mn({type:"color",mappingMethod:"linear",dataExtent:[a,o],visual:e.get("color")}),u=l.mapValueToVisual(s.getLayout().value),c=s.getModel().get(["itemStyle","color"]);c!=null?(s.setVisual("color",c),s.setVisual("style",{fill:c})):(s.setVisual("color",u),s.setVisual("style",{fill:u}))})}r.length&&E(r,function(s){var l=s.getModel().get("lineStyle");s.setVisual("style",l)})})}function hU(n){n.registerChartView(j9),n.registerSeriesModel(U9),n.registerLayout(X9),n.registerVisual(cU),n.registerAction({type:"dragNode",event:"dragnode",update:"update"},function(e,t){t.eachComponent({mainType:"series",subType:"sankey",query:e},function(i){i.setNodePosition(e.dataIndex,[e.localX,e.localY])})})}var jL=function(){function n(){}return n.prototype._hasEncodeRule=function(e){var t=this.getEncode();return t&&t.get(e)!=null},n.prototype.getInitialData=function(e,t){var i,r=t.getComponent("xAxis",this.get("xAxisIndex")),a=t.getComponent("yAxis",this.get("yAxisIndex")),o=r.get("type"),s=a.get("type"),l;o==="category"?(e.layout="horizontal",i=r.getOrdinalMeta(),l=!this._hasEncodeRule("x")):s==="category"?(e.layout="vertical",i=a.getOrdinalMeta(),l=!this._hasEncodeRule("y")):e.layout=e.layout||"horizontal";var u=["x","y"],c=e.layout==="horizontal"?0:1,h=this._baseAxisDim=u[c],f=u[1-c],d=[r,a],g=d[c].get("type"),y=d[1-c].get("type"),_=e.data;if(_&&l){var v=[];E(_,function(b,S){var M;ht(b)?(M=b.slice(),b.unshift(S)):ht(b.value)?(M=lt({},b),M.value=M.value.slice(),b.value.unshift(S)):M=b,v.push(M)}),e.data=v}var p=this.defaultValueDimensions,x=[{name:h,type:Ed(g),ordinalMeta:i,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:f,type:Ed(y),dimsDef:p.slice()}];return Fl(this,{coordDimensions:x,dimensionsCount:p.length+1,encodeDefaulter:Zt(iM,x,this)})},n.prototype.getBaseAxis=function(){var e=this._baseAxisDim;return this.ecModel.getComponent(e+"Axis",this.get(e+"AxisIndex")).axis},n}(),HL=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],t.visualDrawType="stroke",t}return e.type="series.boxplot",e.dependencies=["xAxis","yAxis","grid"],e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,boxWidth:[7,50],itemStyle:{color:"#fff",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}},animationDuration:800},e}(Oe);tn(HL,jL,!0);var pU=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,i,r){var a=t.getData(),o=this.group,s=this._data;this._data||o.removeAll();var l=t.get("layout")==="horizontal"?1:0;a.diff(s).add(function(u){if(a.hasValue(u)){var c=a.getItemLayout(u),h=UL(c,a,u,l,!0);a.setItemGraphicEl(u,h),o.add(h)}}).update(function(u,c){var h=s.getItemGraphicEl(c);if(!a.hasValue(u)){o.remove(h);return}var f=a.getItemLayout(u);h?(sr(h),XL(f,h,a,u)):h=UL(f,a,u,l),o.add(h),a.setItemGraphicEl(u,h)}).remove(function(u){var c=s.getItemGraphicEl(u);c&&o.remove(c)}).execute(),this._data=a},e.prototype.remove=function(t){var i=this.group,r=this._data;this._data=null,r&&r.eachItemGraphicEl(function(a){a&&i.remove(a)})},e.type="boxplot",e}(Pe),dU=function(){function n(){}return n}(),fU=function(n){Q(e,n);function e(t){var i=n.call(this,t)||this;return i.type="boxplotBoxPath",i}return e.prototype.getDefaultShape=function(){return new dU},e.prototype.buildPath=function(t,i){var r=i.points,a=0;for(t.moveTo(r[a][0],r[a][1]),a++;a<4;a++)t.lineTo(r[a][0],r[a][1]);for(t.closePath();a<r.length;a++)t.moveTo(r[a][0],r[a][1]),a++,t.lineTo(r[a][0],r[a][1])},e}(re);function UL(n,e,t,i,r){var a=n.ends,o=new fU({shape:{points:r?gU(a,i,n):a}});return XL(n,o,e,t,r),o}function XL(n,e,t,i,r){var a=t.hostModel,o=rs[r?"initProps":"updateProps"];o(e,{shape:{points:n.ends}},a,i),e.useStyle(t.getItemVisual(i,"style")),e.style.strokeNoScale=!0,e.z2=100;var s=t.getItemModel(i),l=s.getModel("emphasis");Cn(e,s),Ue(e,l.get("focus"),l.get("blurScope"),l.get("disabled"))}function gU(n,e,t){return pt(n,function(i){return i=i.slice(),i[e]=t.initBaseline,i})}var dh=E;function vU(n){var e=yU(n);dh(e,function(t){var i=t.seriesModels;i.length&&(mU(t),dh(i,function(r,a){_U(r,t.boxOffsetList[a],t.boxWidthList[a])}))})}function yU(n){var e=[],t=[];return n.eachSeriesByType("boxplot",function(i){var r=i.getBaseAxis(),a=Qt(t,r);a<0&&(a=t.length,t[a]=r,e[a]={axis:r,seriesModels:[]}),e[a].seriesModels.push(i)}),e}function mU(n){var e=n.axis,t=n.seriesModels,i=t.length,r=n.boxWidthList=[],a=n.boxOffsetList=[],o=[],s;if(e.type==="category")s=e.getBandWidth();else{var l=0;dh(t,function(g){l=Math.max(l,g.getData().count())});var u=e.getExtent();s=Math.abs(u[1]-u[0])/l}dh(t,function(g){var y=g.get("boxWidth");ht(y)||(y=[y,y]),o.push([Mt(y[0],s)||0,Mt(y[1],s)||0])});var c=s*.8-2,h=c/i*.3,f=(c-h*(i-1))/i,d=f/2-c/2;dh(t,function(g,y){a.push(d),d+=h+f,r.push(Math.min(Math.max(f,o[y][0]),o[y][1]))})}function _U(n,e,t){var i=n.coordinateSystem,r=n.getData(),a=t/2,o=n.get("layout")==="horizontal"?0:1,s=1-o,l=["x","y"],u=r.mapDimension(l[o]),c=r.mapDimensionsAll(l[s]);if(u==null||c.length<5)return;for(var h=0;h<r.count();h++){var f=r.get(u,h),d=x(f,c[2],h),g=x(f,c[0],h),y=x(f,c[1],h),_=x(f,c[3],h),v=x(f,c[4],h),p=[];b(p,y,!1),b(p,_,!0),p.push(g,y,v,_),S(p,g),S(p,v),S(p,d),r.setItemLayout(h,{initBaseline:d[s],ends:p})}function x(M,I,A){var C=r.get(I,A),L=[];L[o]=M,L[s]=C;var R;return isNaN(M)||isNaN(C)?R=[NaN,NaN]:(R=i.dataToPoint(L),R[o]+=e),R}function b(M,I,A){var C=I.slice(),L=I.slice();C[o]+=a,L[o]-=a,A?M.push(C,L):M.push(L,C)}function S(M,I){var A=I.slice(),C=I.slice();A[o]-=a,C[o]+=a,M.push(A,C)}}function xU(n,e){e=e||{};for(var t=[],i=[],r=e.boundIQR,a=r==="none"||r===0,o=0;o<n.length;o++){var s=Pi(n[o].slice()),l=ny(s,.25),u=ny(s,.5),c=ny(s,.75),h=s[0],f=s[s.length-1],d=(r??1.5)*(c-l),g=a?h:Math.max(h,l-d),y=a?f:Math.min(f,c+d),_=e.itemNameFormatter,v=Ot(_)?_({value:o}):Tt(_)?_.replace("{value}",o+""):o+"";t.push([v,g,l,u,c,y]);for(var p=0;p<s.length;p++){var x=s[p];if(x<g||x>y){var b=[v,x];i.push(b)}}}return{boxData:t,outliers:i}}var bU={type:"echarts:boxplot",transform:function(n){var e=n.upstream;if(e.sourceFormat!==En){var t="";Me(t)}var i=xU(e.getRawData(),n.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:i.boxData},{data:i.outliers}]}};function wU(n){n.registerSeriesModel(HL),n.registerChartView(pU),n.registerLayout(vU),n.registerTransform(bU)}var SU=["itemStyle","borderColor"],MU=["itemStyle","borderColor0"],IU=["itemStyle","borderColorDoji"],TU=["itemStyle","color"],AU=["itemStyle","color0"];function Z1(n,e){return e.get(n>0?TU:AU)}function q1(n,e){return e.get(n===0?IU:n>0?SU:MU)}var CU={seriesType:"candlestick",plan:Cl(),performRawSeries:!0,reset:function(n,e){if(!e.isSeriesFiltered(n)){var t=n.pipelineContext.large;return!t&&{progress:function(i,r){for(var a;(a=i.next())!=null;){var o=r.getItemModel(a),s=r.getItemLayout(a).sign,l=o.getItemStyle();l.fill=Z1(s,o),l.stroke=q1(s,o)||l.fill;var u=r.ensureUniqueItemVisual(a,"style");lt(u,l)}}}}}},kU=["color","borderColor"],LU=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,i,r){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(t),this._isLargeDraw?this._renderLarge(t):this._renderNormal(t)},e.prototype.incrementalPrepareRender=function(t,i,r){this._clear(),this._updateDrawMode(t)},e.prototype.incrementalRender=function(t,i,r,a){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(t,i):this._incrementalRenderNormal(t,i)},e.prototype.eachRendered=function(t){Za(this._progressiveEls||this.group,t)},e.prototype._updateDrawMode=function(t){var i=t.pipelineContext.large;(this._isLargeDraw==null||i!==this._isLargeDraw)&&(this._isLargeDraw=i,this._clear())},e.prototype._renderNormal=function(t){var i=t.getData(),r=this._data,a=this.group,o=i.getLayout("isSimpleBox"),s=t.get("clip",!0),l=t.coordinateSystem,u=l.getArea&&l.getArea();this._data||a.removeAll(),i.diff(r).add(function(c){if(i.hasValue(c)){var h=i.getItemLayout(c);if(s&&ZL(u,h))return;var f=K1(h,c,!0);We(f,{shape:{points:h.ends}},t,c),Y1(f,i,c,o),a.add(f),i.setItemGraphicEl(c,f)}}).update(function(c,h){var f=r.getItemGraphicEl(h);if(!i.hasValue(c)){a.remove(f);return}var d=i.getItemLayout(c);if(s&&ZL(u,d)){a.remove(f);return}f?(me(f,{shape:{points:d.ends}},t,c),sr(f)):f=K1(d),Y1(f,i,c,o),a.add(f),i.setItemGraphicEl(c,f)}).remove(function(c){var h=r.getItemGraphicEl(c);h&&a.remove(h)}).execute(),this._data=i},e.prototype._renderLarge=function(t){this._clear(),qL(t,this.group);var i=t.get("clip",!0)?Uc(t.coordinateSystem,!1,t):null;i?this.group.setClipPath(i):this.group.removeClipPath()},e.prototype._incrementalRenderNormal=function(t,i){for(var r=i.getData(),a=r.getLayout("isSimpleBox"),o;(o=t.next())!=null;){var s=r.getItemLayout(o),l=K1(s);Y1(l,r,o,a),l.incremental=!0,this.group.add(l),this._progressiveEls.push(l)}},e.prototype._incrementalRenderLarge=function(t,i){qL(i,this.group,this._progressiveEls,!0)},e.prototype.remove=function(t){this._clear()},e.prototype._clear=function(){this.group.removeAll(),this._data=null},e.type="candlestick",e}(Pe),DU=function(){function n(){}return n}(),PU=function(n){Q(e,n);function e(t){var i=n.call(this,t)||this;return i.type="normalCandlestickBox",i}return e.prototype.getDefaultShape=function(){return new DU},e.prototype.buildPath=function(t,i){var r=i.points;this.__simpleBox?(t.moveTo(r[4][0],r[4][1]),t.lineTo(r[6][0],r[6][1])):(t.moveTo(r[0][0],r[0][1]),t.lineTo(r[1][0],r[1][1]),t.lineTo(r[2][0],r[2][1]),t.lineTo(r[3][0],r[3][1]),t.closePath(),t.moveTo(r[4][0],r[4][1]),t.lineTo(r[5][0],r[5][1]),t.moveTo(r[6][0],r[6][1]),t.lineTo(r[7][0],r[7][1]))},e}(re);function K1(n,e,t){var i=n.ends;return new PU({shape:{points:t?RU(i,n):i},z2:100})}function ZL(n,e){for(var t=!0,i=0;i<e.ends.length;i++)if(n.contain(e.ends[i][0],e.ends[i][1])){t=!1;break}return t}function Y1(n,e,t,i){var r=e.getItemModel(t);n.useStyle(e.getItemVisual(t,"style")),n.style.strokeNoScale=!0,n.__simpleBox=i,Cn(n,r);var a=e.getItemLayout(t).sign;E(n.states,function(s,l){var u=r.getModel(l),c=Z1(a,u),h=q1(a,u)||c,f=s.style||(s.style={});c&&(f.fill=c),h&&(f.stroke=h)});var o=r.getModel("emphasis");Ue(n,o.get("focus"),o.get("blurScope"),o.get("disabled"))}function RU(n,e){return pt(n,function(t){return t=t.slice(),t[1]=e.initBaseline,t})}var NU=function(){function n(){}return n}(),J1=function(n){Q(e,n);function e(t){var i=n.call(this,t)||this;return i.type="largeCandlestickBox",i}return e.prototype.getDefaultShape=function(){return new NU},e.prototype.buildPath=function(t,i){for(var r=i.points,a=0;a<r.length;)if(this.__sign===r[a++]){var o=r[a++];t.moveTo(o,r[a++]),t.lineTo(o,r[a++])}else a+=3},e}(re);function qL(n,e,t,i){var r=n.getData(),a=r.getLayout("largePoints"),o=new J1({shape:{points:a},__sign:1,ignoreCoarsePointer:!0});e.add(o);var s=new J1({shape:{points:a},__sign:-1,ignoreCoarsePointer:!0});e.add(s);var l=new J1({shape:{points:a},__sign:0,ignoreCoarsePointer:!0});e.add(l),$1(1,o,n),$1(-1,s,n),$1(0,l,n),i&&(o.incremental=!0,s.incremental=!0),t&&t.push(o,s)}function $1(n,e,t,i){var r=q1(n,t)||Z1(n,t),a=t.getModel("itemStyle").getItemStyle(kU);e.useStyle(a),e.style.fill=null,e.style.stroke=r}var KL=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],t}return e.prototype.getShadowDim=function(){return"open"},e.prototype.brushSelector=function(t,i,r){var a=i.getItemLayout(t);return a&&r.rect(a.brushRect)},e.type="series.candlestick",e.dependencies=["xAxis","yAxis","grid"],e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:"#eb5454",color0:"#47b262",borderColor:"#eb5454",borderColor0:"#47b262",borderColorDoji:null,borderWidth:1},emphasis:{itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationEasing:"linear",animationDuration:300},e}(Oe);tn(KL,jL,!0);function zU(n){!n||!ht(n.series)||E(n.series,function(e){Vt(e)&&e.type==="k"&&(e.type="candlestick")})}var EU={seriesType:"candlestick",plan:Cl(),reset:function(n){var e=n.coordinateSystem,t=n.getData(),i=OU(n,t),r=0,a=1,o=["x","y"],s=t.getDimensionIndex(t.mapDimension(o[r])),l=pt(t.mapDimensionsAll(o[a]),t.getDimensionIndex,t),u=l[0],c=l[1],h=l[2],f=l[3];if(t.setLayout({candleWidth:i,isSimpleBox:i<=1.3}),s<0||l.length<4)return;return{progress:n.pipelineContext.large?g:d};function d(y,_){for(var v,p=_.getStore();(v=y.next())!=null;){var x=p.get(s,v),b=p.get(u,v),S=p.get(c,v),M=p.get(h,v),I=p.get(f,v),A=Math.min(b,S),C=Math.max(b,S),L=G(A,x),R=G(C,x),D=G(M,x),N=G(I,x),k=[];q(k,R,0),q(k,L,1),k.push(J(N),J(R),J(D),J(L));var O=_.getItemModel(v),F=!!O.get(["itemStyle","borderColorDoji"]);_.setItemLayout(v,{sign:YL(p,v,b,S,c,F),initBaseline:b>S?R[a]:L[a],ends:k,brushRect:j(M,I,x)})}function G(H,K){var ut=[];return ut[r]=K,ut[a]=H,isNaN(K)||isNaN(H)?[NaN,NaN]:e.dataToPoint(ut)}function q(H,K,ut){var ot=K.slice(),at=K.slice();ot[r]=ed(ot[r]+i/2,1,!1),at[r]=ed(at[r]-i/2,1,!0),ut?H.push(ot,at):H.push(at,ot)}function j(H,K,ut){var ot=G(H,ut),at=G(K,ut);return ot[r]-=i/2,at[r]-=i/2,{x:ot[0],y:ot[1],width:i,height:at[1]-ot[1]}}function J(H){return H[r]=ed(H[r],1),H}}function g(y,_){for(var v=Vr(y.count*4),p=0,x,b=[],S=[],M,I=_.getStore(),A=!!n.get(["itemStyle","borderColorDoji"]);(M=y.next())!=null;){var C=I.get(s,M),L=I.get(u,M),R=I.get(c,M),D=I.get(h,M),N=I.get(f,M);if(isNaN(C)||isNaN(D)||isNaN(N)){v[p++]=NaN,p+=3;continue}v[p++]=YL(I,M,L,R,c,A),b[r]=C,b[a]=D,x=e.dataToPoint(b,null,S),v[p++]=x?x[0]:NaN,v[p++]=x?x[1]:NaN,b[a]=N,x=e.dataToPoint(b,null,S),v[p++]=x?x[1]:NaN}_.setLayout("largePoints",v)}}};function YL(n,e,t,i,r,a){var o;return t>i?o=-1:t<i?o=1:o=a?0:e>0?n.get(r,e-1)<=i?1:-1:1,o}function OU(n,e){var t=n.getBaseAxis(),i,r=t.type==="category"?t.getBandWidth():(i=t.getExtent(),Math.abs(i[1]-i[0])/e.count()),a=Mt(Ut(n.get("barMaxWidth"),r),r),o=Mt(Ut(n.get("barMinWidth"),1),r),s=n.get("barWidth");return s!=null?Mt(s,r):Math.max(Math.min(r/2,a),o)}function BU(n){n.registerChartView(LU),n.registerSeriesModel(KL),n.registerPreprocessor(zU),n.registerVisual(CU),n.registerLayout(EU)}function JL(n,e){var t=e.rippleEffectColor||e.color;n.eachChild(function(i){i.attr({z:e.z,zlevel:e.zlevel,style:{stroke:e.brushType==="stroke"?t:null,fill:e.brushType==="fill"?t:null}})})}var VU=function(n){Q(e,n);function e(t,i){var r=n.call(this)||this,a=new jc(t,i),o=new Gt;return r.add(a),r.add(o),r.updateData(t,i),r}return e.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},e.prototype.startEffectAnimation=function(t){for(var i=t.symbolType,r=t.color,a=t.rippleNumber,o=this.childAt(1),s=0;s<a;s++){var l=rn(i,-1,-1,2,2,r);l.attr({style:{strokeNoScale:!0},z2:99,silent:!0,scaleX:.5,scaleY:.5});var u=-s/a*t.period+t.effectOffset;l.animate("",!0).when(t.period,{scaleX:t.rippleScale/2,scaleY:t.rippleScale/2}).delay(u).start(),l.animateStyle(!0).when(t.period,{opacity:0}).delay(u).start(),o.add(l)}JL(o,t)},e.prototype.updateEffectAnimation=function(t){for(var i=this._effectCfg,r=this.childAt(1),a=["symbolType","period","rippleScale","rippleNumber"],o=0;o<a.length;o++){var s=a[o];if(i[s]!==t[s]){this.stopEffectAnimation(),this.startEffectAnimation(t);return}}JL(r,t)},e.prototype.highlight=function(){la(this)},e.prototype.downplay=function(){ua(this)},e.prototype.getSymbolType=function(){var t=this.childAt(0);return t&&t.getSymbolType()},e.prototype.updateData=function(t,i){var r=this,a=t.hostModel;this.childAt(0).updateData(t,i);var o=this.childAt(1),s=t.getItemModel(i),l=t.getItemVisual(i,"symbol"),u=Dl(t.getItemVisual(i,"symbolSize")),c=t.getItemVisual(i,"style"),h=c&&c.fill,f=s.getModel("emphasis");o.setScale(u),o.traverse(function(_){_.setStyle("fill",h)});var d=ps(t.getItemVisual(i,"symbolOffset"),u);d&&(o.x=d[0],o.y=d[1]);var g=t.getItemVisual(i,"symbolRotate");o.rotation=(g||0)*Math.PI/180||0;var y={};y.showEffectOn=a.get("showEffectOn"),y.rippleScale=s.get(["rippleEffect","scale"]),y.brushType=s.get(["rippleEffect","brushType"]),y.period=s.get(["rippleEffect","period"])*1e3,y.effectOffset=i/t.count(),y.z=a.getShallow("z")||0,y.zlevel=a.getShallow("zlevel")||0,y.symbolType=l,y.color=h,y.rippleEffectColor=s.get(["rippleEffect","color"]),y.rippleNumber=s.get(["rippleEffect","number"]),y.showEffectOn==="render"?(this._effectCfg?this.updateEffectAnimation(y):this.startEffectAnimation(y),this._effectCfg=y):(this._effectCfg=null,this.stopEffectAnimation(),this.onHoverStateChange=function(_){_==="emphasis"?y.showEffectOn!=="render"&&r.startEffectAnimation(y):_==="normal"&&y.showEffectOn!=="render"&&r.stopEffectAnimation()}),this._effectCfg=y,Ue(this,f.get("focus"),f.get("blurScope"),f.get("disabled"))},e.prototype.fadeOut=function(t){t&&t()},e}(Gt),FU=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(){this._symbolDraw=new Hc(VU)},e.prototype.render=function(t,i,r){var a=t.getData(),o=this._symbolDraw;o.updateData(a,{clipShape:this._getClipShape(t)}),this.group.add(o.group)},e.prototype._getClipShape=function(t){var i=t.coordinateSystem,r=i&&i.getArea&&i.getArea();return t.get("clip",!0)?r:null},e.prototype.updateTransform=function(t,i,r){var a=t.getData();this.group.dirty();var o=Xc("").reset(t,i,r);o.progress&&o.progress({start:0,end:a.count(),count:a.count()},a),this._symbolDraw.updateLayout()},e.prototype._updateGroupTransform=function(t){var i=t.coordinateSystem;i&&i.getRoamTransform&&(this.group.transform=sE(i.getRoamTransform()),this.group.decomposeTransform())},e.prototype.remove=function(t,i){this._symbolDraw&&this._symbolDraw.remove(!0)},e.type="effectScatter",e}(Pe),WU=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.getInitialData=function(t,i){return da(null,this,{useEncodeDefaulter:!0})},e.prototype.brushSelector=function(t,i,r){return r.point(i.getItemLayout(t))},e.type="series.effectScatter",e.dependencies=["grid","polar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,effectType:"ripple",progressive:0,showEffectOn:"render",clip:!0,rippleEffect:{period:4,scale:2.5,brushType:"fill",number:3},universalTransition:{divideShape:"clone"},symbolSize:10},e}(Oe);function GU(n){n.registerChartView(FU),n.registerSeriesModel(WU),n.registerLayout(Xc("effectScatter"))}var $L=function(n){Q(e,n);function e(t,i,r){var a=n.call(this)||this;return a.add(a.createLine(t,i,r)),a._updateEffectSymbol(t,i),a}return e.prototype.createLine=function(t,i,r){return new b1(t,i,r)},e.prototype._updateEffectSymbol=function(t,i){var r=t.getItemModel(i),a=r.getModel("effect"),o=a.get("symbolSize"),s=a.get("symbol");ht(o)||(o=[o,o]);var l=t.getItemVisual(i,"style"),u=a.get("color")||l&&l.stroke,c=this.childAt(1);this._symbolType!==s&&(this.remove(c),c=rn(s,-.5,-.5,1,1,u),c.z2=100,c.culling=!0,this.add(c)),c&&(c.setStyle("shadowColor",u),c.setStyle(a.getItemStyle(["color"])),c.scaleX=o[0],c.scaleY=o[1],c.setColor(u),this._symbolType=s,this._symbolScale=o,this._updateEffectAnimation(t,a,i))},e.prototype._updateEffectAnimation=function(t,i,r){var a=this.childAt(1);if(a){var o=t.getItemLayout(r),s=i.get("period")*1e3,l=i.get("loop"),u=i.get("roundTrip"),c=i.get("constantSpeed"),h=bn(i.get("delay"),function(d){return d/t.count()*s/3});if(a.ignore=!0,this._updateAnimationPoints(a,o),c>0&&(s=this._getLineLength(a)/c*1e3),s!==this._period||l!==this._loop||u!==this._roundTrip){a.stopAnimation();var f=void 0;Ot(h)?f=h(r):f=h,a.__t>0&&(f=-s*a.__t),this._animateSymbol(a,s,f,l,u)}this._period=s,this._loop=l,this._roundTrip=u}},e.prototype._animateSymbol=function(t,i,r,a,o){if(i>0){t.__t=0;var s=this,l=t.animate("",a).when(o?i*2:i,{__t:o?2:1}).delay(r).during(function(){s._updateSymbolPosition(t)});a||l.done(function(){s.remove(t)}),l.start()}},e.prototype._getLineLength=function(t){return Na(t.__p1,t.__cp1)+Na(t.__cp1,t.__p2)},e.prototype._updateAnimationPoints=function(t,i){t.__p1=i[0],t.__p2=i[1],t.__cp1=i[2]||[(i[0][0]+i[1][0])/2,(i[0][1]+i[1][1])/2]},e.prototype.updateData=function(t,i,r){this.childAt(0).updateData(t,i,r),this._updateEffectSymbol(t,i)},e.prototype._updateSymbolPosition=function(t){var i=t.__p1,r=t.__p2,a=t.__cp1,o=t.__t<1?t.__t:2-t.__t,s=[t.x,t.y],l=s.slice(),u=wn,c=Sv;s[0]=u(i[0],a[0],r[0],o),s[1]=u(i[1],a[1],r[1],o);var h=t.__t<1?c(i[0],a[0],r[0],o):c(r[0],a[0],i[0],1-o),f=t.__t<1?c(i[1],a[1],r[1],o):c(r[1],a[1],i[1],1-o);t.rotation=-Math.atan2(f,h)-Math.PI/2,(this._symbolType==="line"||this._symbolType==="rect"||this._symbolType==="roundRect")&&(t.__lastT!==void 0&&t.__lastT<t.__t?(t.scaleY=Na(l,s)*1.05,o===1&&(s[0]=l[0]+(s[0]-l[0])/2,s[1]=l[1]+(s[1]-l[1])/2)):t.__lastT===1?t.scaleY=2*Na(i,s):t.scaleY=this._symbolScale[1]),t.__lastT=t.__t,t.ignore=!1,t.x=s[0],t.y=s[1]},e.prototype.updateLayout=function(t,i){this.childAt(0).updateLayout(t,i);var r=t.getItemModel(i).getModel("effect");this._updateEffectAnimation(t,r,i)},e}(Gt),QL=function(n){Q(e,n);function e(t,i,r){var a=n.call(this)||this;return a._createPolyline(t,i,r),a}return e.prototype._createPolyline=function(t,i,r){var a=t.getItemLayout(i),o=new Yn({shape:{points:a}});this.add(o),this._updateCommonStl(t,i,r)},e.prototype.updateData=function(t,i,r){var a=t.hostModel,o=this.childAt(0),s={shape:{points:t.getItemLayout(i)}};me(o,s,a,i),this._updateCommonStl(t,i,r)},e.prototype._updateCommonStl=function(t,i,r){var a=this.childAt(0),o=t.getItemModel(i),s=r&&r.emphasisLineStyle,l=r&&r.focus,u=r&&r.blurScope,c=r&&r.emphasisDisabled;if(!r||t.hasItemOption){var h=o.getModel("emphasis");s=h.getModel("lineStyle").getLineStyle(),c=h.get("disabled"),l=h.get("focus"),u=h.get("blurScope")}a.useStyle(t.getItemVisual(i,"style")),a.style.fill=null,a.style.strokeNoScale=!0;var f=a.ensureState("emphasis");f.style=s,Ue(this,l,u,c)},e.prototype.updateLayout=function(t,i){var r=this.childAt(0);r.setShape("points",t.getItemLayout(i))},e}(Gt),jU=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t._lastFrame=0,t._lastFramePercent=0,t}return e.prototype.createLine=function(t,i,r){return new QL(t,i,r)},e.prototype._updateAnimationPoints=function(t,i){this._points=i;for(var r=[0],a=0,o=1;o<i.length;o++){var s=i[o-1],l=i[o];a+=Na(s,l),r.push(a)}if(a===0){this._length=0;return}for(var o=0;o<r.length;o++)r[o]/=a;this._offsets=r,this._length=a},e.prototype._getLineLength=function(){return this._length},e.prototype._updateSymbolPosition=function(t){var i=t.__t<1?t.__t:2-t.__t,r=this._points,a=this._offsets,o=r.length;if(a){var s=this._lastFrame,l;if(i<this._lastFramePercent){var u=Math.min(s+1,o-1);for(l=u;l>=0&&!(a[l]<=i);l--);l=Math.min(l,o-2)}else{for(l=s;l<o&&!(a[l]>i);l++);l=Math.min(l-1,o-2)}var c=(i-a[l])/(a[l+1]-a[l]),h=r[l],f=r[l+1];t.x=h[0]*(1-c)+c*f[0],t.y=h[1]*(1-c)+c*f[1];var d=t.__t<1?f[0]-h[0]:h[0]-f[0],g=t.__t<1?f[1]-h[1]:h[1]-f[1];t.rotation=-Math.atan2(g,d)-Math.PI/2,this._lastFrame=l,this._lastFramePercent=i,t.ignore=!1}},e}($L),HU=function(){function n(){this.polyline=!1,this.curveness=0,this.segs=[]}return n}(),UU=function(n){Q(e,n);function e(t){var i=n.call(this,t)||this;return i._off=0,i.hoverDataIdx=-1,i}return e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new HU},e.prototype.buildPath=function(t,i){var r=i.segs,a=i.curveness,o;if(i.polyline)for(o=this._off;o<r.length;){var s=r[o++];if(s>0){t.moveTo(r[o++],r[o++]);for(var l=1;l<s;l++)t.lineTo(r[o++],r[o++])}}else for(o=this._off;o<r.length;){var u=r[o++],c=r[o++],h=r[o++],f=r[o++];if(t.moveTo(u,c),a>0){var d=(u+h)/2-(c-f)*a,g=(c+f)/2-(h-u)*a;t.quadraticCurveTo(d,g,h,f)}else t.lineTo(h,f)}this.incremental&&(this._off=o,this.notClear=!0)},e.prototype.findDataIndex=function(t,i){var r=this.shape,a=r.segs,o=r.curveness,s=this.style.lineWidth;if(r.polyline)for(var l=0,u=0;u<a.length;){var c=a[u++];if(c>0)for(var h=a[u++],f=a[u++],d=1;d<c;d++){var g=a[u++],y=a[u++];if(Ha(h,f,g,y,s,t,i))return l}l++}else for(var l=0,u=0;u<a.length;){var h=a[u++],f=a[u++],g=a[u++],y=a[u++];if(o>0){var _=(h+g)/2-(f-y)*o,v=(f+y)/2-(g-h)*o;if(w2(h,f,_,v,g,y,s,t,i))return l}else if(Ha(h,f,g,y,s,t,i))return l;l++}return-1},e.prototype.contain=function(t,i){var r=this.transformCoordToLocal(t,i),a=this.getBoundingRect();if(t=r[0],i=r[1],a.contain(t,i)){var o=this.hoverDataIdx=this.findDataIndex(t,i);return o>=0}return this.hoverDataIdx=-1,!1},e.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var i=this.shape,r=i.segs,a=1/0,o=1/0,s=-1/0,l=-1/0,u=0;u<r.length;){var c=r[u++],h=r[u++];a=Math.min(c,a),s=Math.max(c,s),o=Math.min(h,o),l=Math.max(h,l)}t=this._rect=new $t(a,o,s,l)}return t},e}(re),XU=function(){function n(){this.group=new Gt}return n.prototype.updateData=function(e){this._clear();var t=this._create();t.setShape({segs:e.getLayout("linesPoints")}),this._setCommon(t,e)},n.prototype.incrementalPrepareUpdate=function(e){this.group.removeAll(),this._clear()},n.prototype.incrementalUpdate=function(e,t){var i=this._newAdded[0],r=t.getLayout("linesPoints"),a=i&&i.shape.segs;if(a&&a.length<2e4){var o=a.length,s=new Float32Array(o+r.length);s.set(a),s.set(r,o),i.setShape({segs:s})}else{this._newAdded=[];var l=this._create();l.incremental=!0,l.setShape({segs:r}),this._setCommon(l,t),l.__startIndex=e.start}},n.prototype.remove=function(){this._clear()},n.prototype.eachRendered=function(e){this._newAdded[0]&&e(this._newAdded[0])},n.prototype._create=function(){var e=new UU({cursor:"default",ignoreCoarsePointer:!0});return this._newAdded.push(e),this.group.add(e),e},n.prototype._setCommon=function(e,t,i){var r=t.hostModel;e.setShape({polyline:r.get("polyline"),curveness:r.get(["lineStyle","curveness"])}),e.useStyle(r.getModel("lineStyle").getLineStyle()),e.style.strokeNoScale=!0;var a=t.getVisual("style");a&&a.stroke&&e.setStyle("stroke",a.stroke),e.setStyle("fill",null);var o=jt(e);o.seriesIndex=r.seriesIndex,e.on("mousemove",function(s){o.dataIndex=null;var l=e.hoverDataIdx;l>0&&(o.dataIndex=l+e.__startIndex)})},n.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},n}(),tD={seriesType:"lines",plan:Cl(),reset:function(n){var e=n.coordinateSystem;if(e){var t=n.get("polyline"),i=n.pipelineContext.large;return{progress:function(r,a){var o=[];if(i){var s=void 0,l=r.end-r.start;if(t){for(var u=0,c=r.start;c<r.end;c++)u+=n.getLineCoordsCount(c);s=new Float32Array(l+u*2)}else s=new Float32Array(l*4);for(var h=0,f=[],c=r.start;c<r.end;c++){var d=n.getLineCoords(c,o);t&&(s[h++]=d);for(var g=0;g<d;g++)f=e.dataToPoint(o[g],!1,f),s[h++]=f[0],s[h++]=f[1]}a.setLayout("linesPoints",s)}else for(var c=r.start;c<r.end;c++){var y=a.getItemModel(c),d=n.getLineCoords(c,o),_=[];if(t)for(var v=0;v<d;v++)_.push(e.dataToPoint(o[v]));else{_[0]=e.dataToPoint(o[0]),_[1]=e.dataToPoint(o[1]);var p=y.get(["lineStyle","curveness"]);+p&&(_[2]=[(_[0][0]+_[1][0])/2-(_[0][1]-_[1][1])*p,(_[0][1]+_[1][1])/2-(_[1][0]-_[0][0])*p])}a.setItemLayout(c,_)}}}}}},ZU=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,i,r){var a=t.getData(),o=this._updateLineDraw(a,t),s=t.get("zlevel"),l=t.get(["effect","trailLength"]),u=r.getZr(),c=u.painter.getType()==="svg";c||u.painter.getLayer(s).clear(!0),this._lastZlevel!=null&&!c&&u.configLayer(this._lastZlevel,{motionBlur:!1}),this._showEffect(t)&&l>0&&(c||u.configLayer(s,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(l/10+.9,1),0)})),o.updateData(a);var h=t.get("clip",!0)&&Uc(t.coordinateSystem,!1,t);h?this.group.setClipPath(h):this.group.removeClipPath(),this._lastZlevel=s,this._finished=!0},e.prototype.incrementalPrepareRender=function(t,i,r){var a=t.getData(),o=this._updateLineDraw(a,t);o.incrementalPrepareUpdate(a),this._clearLayer(r),this._finished=!1},e.prototype.incrementalRender=function(t,i,r){this._lineDraw.incrementalUpdate(t,i.getData()),this._finished=t.end===i.getData().count()},e.prototype.eachRendered=function(t){this._lineDraw&&this._lineDraw.eachRendered(t)},e.prototype.updateTransform=function(t,i,r){var a=t.getData(),o=t.pipelineContext;if(!this._finished||o.large||o.progressiveRender)return{update:!0};var s=tD.reset(t,i,r);s.progress&&s.progress({start:0,end:a.count(),count:a.count()},a),this._lineDraw.updateLayout(),this._clearLayer(r)},e.prototype._updateLineDraw=function(t,i){var r=this._lineDraw,a=this._showEffect(i),o=!!i.get("polyline"),s=i.pipelineContext,l=s.large;return(!r||a!==this._hasEffet||o!==this._isPolyline||l!==this._isLargeDraw)&&(r&&r.remove(),r=this._lineDraw=l?new XU:new w1(o?a?jU:QL:a?$L:b1),this._hasEffet=a,this._isPolyline=o,this._isLargeDraw=l),this.group.add(r.group),r},e.prototype._showEffect=function(t){return!!t.get(["effect","show"])},e.prototype._clearLayer=function(t){var i=t.getZr(),r=i.painter.getType()==="svg";!r&&this._lastZlevel!=null&&i.painter.getLayer(this._lastZlevel).clear(!0)},e.prototype.remove=function(t,i){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(i)},e.prototype.dispose=function(t,i){this.remove(t,i)},e.type="lines",e}(Pe),qU=typeof Uint32Array>"u"?Array:Uint32Array,KU=typeof Float64Array>"u"?Array:Float64Array;function eD(n){var e=n.data;e&&e[0]&&e[0][0]&&e[0][0].coord&&(n.data=pt(e,function(t){var i=[t[0].coord,t[1].coord],r={coords:i};return t[0].name&&(r.fromName=t[0].name),t[1].name&&(r.toName=t[1].name),nv([r,t[0],t[1]])}))}var YU=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.visualStyleAccessPath="lineStyle",t.visualDrawType="stroke",t}return e.prototype.init=function(t){t.data=t.data||[],eD(t);var i=this._processFlatCoordsArray(t.data);this._flatCoords=i.flatCoords,this._flatCoordsOffset=i.flatCoordsOffset,i.flatCoords&&(t.data=new Float32Array(i.count)),n.prototype.init.apply(this,arguments)},e.prototype.mergeOption=function(t){if(eD(t),t.data){var i=this._processFlatCoordsArray(t.data);this._flatCoords=i.flatCoords,this._flatCoordsOffset=i.flatCoordsOffset,i.flatCoords&&(t.data=new Float32Array(i.count))}n.prototype.mergeOption.apply(this,arguments)},e.prototype.appendData=function(t){var i=this._processFlatCoordsArray(t.data);i.flatCoords&&(this._flatCoords?(this._flatCoords=Tu(this._flatCoords,i.flatCoords),this._flatCoordsOffset=Tu(this._flatCoordsOffset,i.flatCoordsOffset)):(this._flatCoords=i.flatCoords,this._flatCoordsOffset=i.flatCoordsOffset),t.data=new Float32Array(i.count)),this.getRawData().appendData(t.data)},e.prototype._getCoordsFromItemModel=function(t){var i=this.getData().getItemModel(t),r=i.option instanceof Array?i.option:i.getShallow("coords");return r},e.prototype.getLineCoordsCount=function(t){return this._flatCoordsOffset?this._flatCoordsOffset[t*2+1]:this._getCoordsFromItemModel(t).length},e.prototype.getLineCoords=function(t,i){if(this._flatCoordsOffset){for(var r=this._flatCoordsOffset[t*2],a=this._flatCoordsOffset[t*2+1],o=0;o<a;o++)i[o]=i[o]||[],i[o][0]=this._flatCoords[r+o*2],i[o][1]=this._flatCoords[r+o*2+1];return a}else{for(var s=this._getCoordsFromItemModel(t),o=0;o<s.length;o++)i[o]=i[o]||[],i[o][0]=s[o][0],i[o][1]=s[o][1];return s.length}},e.prototype._processFlatCoordsArray=function(t){var i=0;if(this._flatCoords&&(i=this._flatCoords.length),ve(t[0])){for(var r=t.length,a=new qU(r),o=new KU(r),s=0,l=0,u=0,c=0;c<r;){u++;var h=t[c++];a[l++]=s+i,a[l++]=h;for(var f=0;f<h;f++){var d=t[c++],g=t[c++];o[s++]=d,o[s++]=g,c>r}}return{flatCoordsOffset:new Uint32Array(a.buffer,0,l),flatCoords:o,count:u}}return{flatCoordsOffset:null,flatCoords:null,count:t.length}},e.prototype.getInitialData=function(t,i){var r=new Jn(["value"],this);return r.hasItemOption=!1,r.initData(t.data,[],function(a,o,s,l){if(a instanceof Array)return NaN;r.hasItemOption=!0;var u=a.value;if(u!=null)return u instanceof Array?u[l]:u}),r},e.prototype.formatTooltip=function(t,i,r){var a=this.getData(),o=a.getItemModel(t),s=o.get("name");if(s)return s;var l=o.get("fromName"),u=o.get("toName"),c=[];return l!=null&&c.push(l),u!=null&&c.push(u),vn("nameValue",{name:c.join(" > ")})},e.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},e.prototype.getProgressive=function(){var t=this.option.progressive;return t??(this.option.large?1e4:this.get("progressive"))},e.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return t??(this.option.large?2e4:this.get("progressiveThreshold"))},e.prototype.getZLevelKey=function(){var t=this.getModel("effect"),i=t.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:t.get("show")&&i>0?i+"":""},e.type="series.lines",e.dependencies=["grid","polar","geo","calendar"],e.defaultOption={coordinateSystem:"geo",z:2,legendHoverLink:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:"end"},lineStyle:{opacity:.5}},e}(Oe);function Af(n){return n instanceof Array||(n=[n,n]),n}var JU={seriesType:"lines",reset:function(n){var e=Af(n.get("symbol")),t=Af(n.get("symbolSize")),i=n.getData();i.setVisual("fromSymbol",e&&e[0]),i.setVisual("toSymbol",e&&e[1]),i.setVisual("fromSymbolSize",t&&t[0]),i.setVisual("toSymbolSize",t&&t[1]);function r(a,o){var s=a.getItemModel(o),l=Af(s.getShallow("symbol",!0)),u=Af(s.getShallow("symbolSize",!0));l[0]&&a.setItemVisual(o,"fromSymbol",l[0]),l[1]&&a.setItemVisual(o,"toSymbol",l[1]),u[0]&&a.setItemVisual(o,"fromSymbolSize",u[0]),u[1]&&a.setItemVisual(o,"toSymbolSize",u[1])}return{dataEach:i.hasItemOption?r:null}}};function $U(n){n.registerChartView(ZU),n.registerSeriesModel(YU),n.registerLayout(tD),n.registerVisual(JU)}var QU=256,tX=function(){function n(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var e=Ra.createCanvas();this.canvas=e}return n.prototype.update=function(e,t,i,r,a,o){var s=this._getBrush(),l=this._getGradient(a,"inRange"),u=this._getGradient(a,"outOfRange"),c=this.pointSize+this.blurSize,h=this.canvas,f=h.getContext("2d"),d=e.length;h.width=t,h.height=i;for(var g=0;g<d;++g){var y=e[g],_=y[0],v=y[1],p=y[2],x=r(p);f.globalAlpha=x,f.drawImage(s,_-c,v-c)}if(!h.width||!h.height)return h;for(var b=f.getImageData(0,0,h.width,h.height),S=b.data,M=0,I=S.length,A=this.minOpacity,C=this.maxOpacity,L=C-A;M<I;){var x=S[M+3]/256,R=Math.floor(x*(QU-1))*4;if(x>0){var D=o(x)?l:u;x>0&&(x=x*L+A),S[M++]=D[R],S[M++]=D[R+1],S[M++]=D[R+2],S[M++]=D[R+3]*x*256}else M+=4}return f.putImageData(b,0,0),h},n.prototype._getBrush=function(){var e=this._brushCanvas||(this._brushCanvas=Ra.createCanvas()),t=this.pointSize+this.blurSize,i=t*2;e.width=i,e.height=i;var r=e.getContext("2d");return r.clearRect(0,0,i,i),r.shadowOffsetX=i,r.shadowBlur=this.blurSize,r.shadowColor="#000",r.beginPath(),r.arc(-t,t,this.pointSize,0,Math.PI*2,!0),r.closePath(),r.fill(),e},n.prototype._getGradient=function(e,t){for(var i=this._gradientPixels,r=i[t]||(i[t]=new Uint8ClampedArray(256*4)),a=[0,0,0,0],o=0,s=0;s<256;s++)e[t](s/255,!0,a),r[o++]=a[0],r[o++]=a[1],r[o++]=a[2],r[o++]=a[3];return r},n}();function eX(n,e,t){var i=n[1]-n[0];e=pt(e,function(o){return{interval:[(o.interval[0]-n[0])/i,(o.interval[1]-n[0])/i]}});var r=e.length,a=0;return function(o){var s;for(s=a;s<r;s++){var l=e[s].interval;if(l[0]<=o&&o<=l[1]){a=s;break}}if(s===r)for(s=a-1;s>=0;s--){var l=e[s].interval;if(l[0]<=o&&o<=l[1]){a=s;break}}return s>=0&&s<r&&t[s]}}function nX(n,e){var t=n[1]-n[0];return e=[(e[0]-n[0])/t,(e[1]-n[0])/t],function(i){return i>=e[0]&&i<=e[1]}}function nD(n){var e=n.dimensions;return e[0]==="lng"&&e[1]==="lat"}var iX=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,i,r){var a;i.eachComponent("visualMap",function(s){s.eachTargetSeries(function(l){l===t&&(a=s)})}),this._progressiveEls=null,this.group.removeAll();var o=t.coordinateSystem;o.type==="cartesian2d"||o.type==="calendar"?this._renderOnCartesianAndCalendar(t,r,0,t.getData().count()):nD(o)&&this._renderOnGeo(o,t,a,r)},e.prototype.incrementalPrepareRender=function(t,i,r){this.group.removeAll()},e.prototype.incrementalRender=function(t,i,r,a){var o=i.coordinateSystem;o&&(nD(o)?this.render(i,r,a):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(i,a,t.start,t.end,!0)))},e.prototype.eachRendered=function(t){Za(this._progressiveEls||this.group,t)},e.prototype._renderOnCartesianAndCalendar=function(t,i,r,a,o){var s=t.coordinateSystem,l=Ms(s,"cartesian2d"),u,c,h,f;if(l){var d=s.getAxis("x"),g=s.getAxis("y");u=d.getBandWidth()+.5,c=g.getBandWidth()+.5,h=d.scale.getExtent(),f=g.scale.getExtent()}for(var y=this.group,_=t.getData(),v=t.getModel(["emphasis","itemStyle"]).getItemStyle(),p=t.getModel(["blur","itemStyle"]).getItemStyle(),x=t.getModel(["select","itemStyle"]).getItemStyle(),b=t.get(["itemStyle","borderRadius"]),S=gn(t),M=t.getModel("emphasis"),I=M.get("focus"),A=M.get("blurScope"),C=M.get("disabled"),L=l?[_.mapDimension("x"),_.mapDimension("y"),_.mapDimension("value")]:[_.mapDimension("time"),_.mapDimension("value")],R=r;R<a;R++){var D=void 0,N=_.getItemVisual(R,"style");if(l){var k=_.get(L[0],R),O=_.get(L[1],R);if(isNaN(_.get(L[2],R))||isNaN(k)||isNaN(O)||k<h[0]||k>h[1]||O<f[0]||O>f[1])continue;var F=s.dataToPoint([k,O]);D=new de({shape:{x:F[0]-u/2,y:F[1]-c/2,width:u,height:c},style:N})}else{if(isNaN(_.get(L[1],R)))continue;D=new de({z2:1,shape:s.dataToRect([_.get(L[0],R)]).contentShape,style:N})}if(_.hasItemOption){var G=_.getItemModel(R),q=G.getModel("emphasis");v=q.getModel("itemStyle").getItemStyle(),p=G.getModel(["blur","itemStyle"]).getItemStyle(),x=G.getModel(["select","itemStyle"]).getItemStyle(),b=G.get(["itemStyle","borderRadius"]),I=q.get("focus"),A=q.get("blurScope"),C=q.get("disabled"),S=gn(G)}D.shape.r=b;var j=t.getRawValue(R),J="-";j&&j[2]!=null&&(J=j[2]+""),kn(D,S,{labelFetcher:t,labelDataIndex:R,defaultOpacity:N.opacity,defaultText:J}),D.ensureState("emphasis").style=v,D.ensureState("blur").style=p,D.ensureState("select").style=x,Ue(D,I,A,C),D.incremental=o,o&&(D.states.emphasis.hoverLayer=!0),y.add(D),_.setItemGraphicEl(R,D),this._progressiveEls&&this._progressiveEls.push(D)}},e.prototype._renderOnGeo=function(t,i,r,a){var o=r.targetVisuals.inRange,s=r.targetVisuals.outOfRange,l=i.getData(),u=this._hmLayer||this._hmLayer||new tX;u.blurSize=i.get("blurSize"),u.pointSize=i.get("pointSize"),u.minOpacity=i.get("minOpacity"),u.maxOpacity=i.get("maxOpacity");var c=t.getViewRect().clone(),h=t.getRoamTransform();c.applyTransform(h);var f=Math.max(c.x,0),d=Math.max(c.y,0),g=Math.min(c.width+c.x,a.getWidth()),y=Math.min(c.height+c.y,a.getHeight()),_=g-f,v=y-d,p=[l.mapDimension("lng"),l.mapDimension("lat"),l.mapDimension("value")],x=l.mapArray(p,function(I,A,C){var L=t.dataToPoint([I,A]);return L[0]-=f,L[1]-=d,L.push(C),L}),b=r.getExtent(),S=r.type==="visualMap.continuous"?nX(b,r.option.range):eX(b,r.getPieceList(),r.option.selected);u.update(x,_,v,o.color.getNormalizer(),{inRange:o.color.getColorMapper(),outOfRange:s.color.getColorMapper()},S);var M=new Sn({style:{width:_,height:v,x:f,y:d,image:u.canvas},silent:!0});this.group.add(M)},e.type="heatmap",e}(Pe),rX=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(t,i){return da(null,this,{generateCoord:"value"})},e.prototype.preventIncremental=function(){var t=vc.get(this.get("coordinateSystem"));if(t&&t.dimensions)return t.dimensions[0]==="lng"&&t.dimensions[1]==="lat"},e.type="series.heatmap",e.dependencies=["grid","geo","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:"#212121"}}},e}(Oe);function aX(n){n.registerChartView(iX),n.registerSeriesModel(rX)}var oX=["itemStyle","borderWidth"],iD=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],Q1=new ca,sX=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,i,r){var a=this.group,o=t.getData(),s=this._data,l=t.coordinateSystem,u=l.getBaseAxis(),c=u.isHorizontal(),h=l.master.getRect(),f={ecSize:{width:r.getWidth(),height:r.getHeight()},seriesModel:t,coordSys:l,coordSysExtent:[[h.x,h.x+h.width],[h.y,h.y+h.height]],isHorizontal:c,valueDim:iD[+c],categoryDim:iD[1-+c]};o.diff(s).add(function(g){if(o.hasValue(g)){var y=cD(o,g),_=rD(o,g,y,f),v=hD(o,f,_);o.setItemGraphicEl(g,v),a.add(v),fD(v,f,_)}}).update(function(g,y){var _=s.getItemGraphicEl(y);if(!o.hasValue(g)){a.remove(_);return}var v=cD(o,g),p=rD(o,g,v,f),x=dD(o,p);_&&x!==_.__pictorialShapeStr&&(a.remove(_),o.setItemGraphicEl(g,null),_=null),_?fX(_,f,p):_=hD(o,f,p,!0),o.setItemGraphicEl(g,_),_.__pictorialSymbolMeta=p,a.add(_),fD(_,f,p)}).remove(function(g){var y=s.getItemGraphicEl(g);y&&pD(s,g,y.__pictorialSymbolMeta.animationModel,y)}).execute();var d=t.get("clip",!0)?Uc(t.coordinateSystem,!1,t):null;return d?a.setClipPath(d):a.removeClipPath(),this._data=o,this.group},e.prototype.remove=function(t,i){var r=this.group,a=this._data;t.get("animation")?a&&a.eachItemGraphicEl(function(o){pD(a,jt(o).dataIndex,t,o)}):r.removeAll()},e.type="pictorialBar",e}(Pe);function rD(n,e,t,i){var r=n.getItemLayout(e),a=t.get("symbolRepeat"),o=t.get("symbolClip"),s=t.get("symbolPosition")||"start",l=t.get("symbolRotate"),u=(l||0)*Math.PI/180||0,c=t.get("symbolPatternSize")||2,h=t.isAnimationEnabled(),f={dataIndex:e,layout:r,itemModel:t,symbolType:n.getItemVisual(e,"symbol")||"circle",style:n.getItemVisual(e,"style"),symbolClip:o,symbolRepeat:a,symbolRepeatDirection:t.get("symbolRepeatDirection"),symbolPatternSize:c,rotation:u,animationModel:h?t:null,hoverScale:h&&t.get(["emphasis","scale"]),z2:t.getShallow("z",!0)||0};lX(t,a,r,i,f),uX(n,e,r,a,o,f.boundingLength,f.pxSign,c,i,f),cX(t,f.symbolScale,u,i,f);var d=f.symbolSize,g=ps(t.get("symbolOffset"),d);return hX(t,d,r,a,o,g,s,f.valueLineWidth,f.boundingLength,f.repeatCutLength,i,f),f}function lX(n,e,t,i,r){var a=i.valueDim,o=n.get("symbolBoundingData"),s=i.coordSys.getOtherAxis(i.coordSys.getBaseAxis()),l=s.toGlobalCoord(s.dataToCoord(0)),u=1-+(t[a.wh]<=0),c;if(ht(o)){var h=[t_(s,o[0])-l,t_(s,o[1])-l];h[1]<h[0]&&h.reverse(),c=h[u]}else o!=null?c=t_(s,o)-l:e?c=i.coordSysExtent[a.index][u]-l:c=t[a.wh];r.boundingLength=c,e&&(r.repeatCutLength=t[a.wh]);var f=a.xy==="x",d=s.inverse;r.pxSign=f&&!d||!f&&d?c>=0?1:-1:c>0?1:-1}function t_(n,e){return n.toGlobalCoord(n.dataToCoord(n.scale.parse(e)))}function uX(n,e,t,i,r,a,o,s,l,u){var c=l.valueDim,h=l.categoryDim,f=Math.abs(t[h.wh]),d=n.getItemVisual(e,"symbolSize"),g;ht(d)?g=d.slice():d==null?g=["100%","100%"]:g=[d,d],g[h.index]=Mt(g[h.index],f),g[c.index]=Mt(g[c.index],i?f:Math.abs(a)),u.symbolSize=g;var y=u.symbolScale=[g[0]/s,g[1]/s];y[c.index]*=(l.isHorizontal?-1:1)*o}function cX(n,e,t,i,r){var a=n.get(oX)||0;a&&(Q1.attr({scaleX:e[0],scaleY:e[1],rotation:t}),Q1.updateTransform(),a/=Q1.getLineScale(),a*=e[i.valueDim.index]),r.valueLineWidth=a||0}function hX(n,e,t,i,r,a,o,s,l,u,c,h){var f=c.categoryDim,d=c.valueDim,g=h.pxSign,y=Math.max(e[d.index]+s,0),_=y;if(i){var v=Math.abs(l),p=bn(n.get("symbolMargin"),"15%")+"",x=!1;p.lastIndexOf("!")===p.length-1&&(x=!0,p=p.slice(0,p.length-1));var b=Mt(p,e[d.index]),S=Math.max(y+b*2,0),M=x?0:b*2,I=Qw(i),A=I?i:gD((v+M)/S),C=v-A*y;b=C/2/(x?A:Math.max(A-1,1)),S=y+b*2,M=x?0:b*2,!I&&i!=="fixed"&&(A=u?gD((Math.abs(u)+M)/S):0),_=A*S-M,h.repeatTimes=A,h.symbolMargin=b}var L=g*(_/2),R=h.pathPosition=[];R[f.index]=t[f.wh]/2,R[d.index]=o==="start"?L:o==="end"?l-L:l/2,a&&(R[0]+=a[0],R[1]+=a[1]);var D=h.bundlePosition=[];D[f.index]=t[f.xy],D[d.index]=t[d.xy];var N=h.barRectShape=lt({},t);N[d.wh]=g*Math.max(Math.abs(t[d.wh]),Math.abs(R[d.index]+L)),N[f.wh]=t[f.wh];var k=h.clipShape={};k[f.xy]=-t[f.xy],k[f.wh]=c.ecSize[f.wh],k[d.xy]=0,k[d.wh]=t[d.wh]}function aD(n){var e=n.symbolPatternSize,t=rn(n.symbolType,-e/2,-e/2,e,e);return t.attr({culling:!0}),t.type!=="image"&&t.setStyle({strokeNoScale:!0}),t}function oD(n,e,t,i){var r=n.__pictorialBundle,a=t.symbolSize,o=t.valueLineWidth,s=t.pathPosition,l=e.valueDim,u=t.repeatTimes||0,c=0,h=a[e.valueDim.index]+o+t.symbolMargin*2;for(e_(n,function(y){y.__pictorialAnimationIndex=c,y.__pictorialRepeatTimes=u,c<u?ql(y,null,g(c),t,i):ql(y,null,{scaleX:0,scaleY:0},t,i,function(){r.remove(y)}),c++});c<u;c++){var f=aD(t);f.__pictorialAnimationIndex=c,f.__pictorialRepeatTimes=u,r.add(f);var d=g(c);ql(f,{x:d.x,y:d.y,scaleX:0,scaleY:0},{scaleX:d.scaleX,scaleY:d.scaleY,rotation:d.rotation},t,i)}function g(y){var _=s.slice(),v=t.pxSign,p=y;return(t.symbolRepeatDirection==="start"?v>0:v<0)&&(p=u-1-y),_[l.index]=h*(p-u/2+.5)+s[l.index],{x:_[0],y:_[1],scaleX:t.symbolScale[0],scaleY:t.symbolScale[1],rotation:t.rotation}}}function sD(n,e,t,i){var r=n.__pictorialBundle,a=n.__pictorialMainPath;a?ql(a,null,{x:t.pathPosition[0],y:t.pathPosition[1],scaleX:t.symbolScale[0],scaleY:t.symbolScale[1],rotation:t.rotation},t,i):(a=n.__pictorialMainPath=aD(t),r.add(a),ql(a,{x:t.pathPosition[0],y:t.pathPosition[1],scaleX:0,scaleY:0,rotation:t.rotation},{scaleX:t.symbolScale[0],scaleY:t.symbolScale[1]},t,i))}function lD(n,e,t){var i=lt({},e.barRectShape),r=n.__pictorialBarRect;r?ql(r,null,{shape:i},e,t):(r=n.__pictorialBarRect=new de({z2:2,shape:i,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),r.disableMorphing=!0,n.add(r))}function uD(n,e,t,i){if(t.symbolClip){var r=n.__pictorialClipPath,a=lt({},t.clipShape),o=e.valueDim,s=t.animationModel,l=t.dataIndex;if(r)me(r,{shape:a},s,l);else{a[o.wh]=0,r=new de({shape:a}),n.__pictorialBundle.setClipPath(r),n.__pictorialClipPath=r;var u={};u[o.wh]=t.clipShape[o.wh],rs[i?"updateProps":"initProps"](r,{shape:u},s,l)}}}function cD(n,e){var t=n.getItemModel(e);return t.getAnimationDelayParams=pX,t.isAnimationEnabled=dX,t}function pX(n){return{index:n.__pictorialAnimationIndex,count:n.__pictorialRepeatTimes}}function dX(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function hD(n,e,t,i){var r=new Gt,a=new Gt;return r.add(a),r.__pictorialBundle=a,a.x=t.bundlePosition[0],a.y=t.bundlePosition[1],t.symbolRepeat?oD(r,e,t):sD(r,e,t),lD(r,t,i),uD(r,e,t,i),r.__pictorialShapeStr=dD(n,t),r.__pictorialSymbolMeta=t,r}function fX(n,e,t){var i=t.animationModel,r=t.dataIndex,a=n.__pictorialBundle;me(a,{x:t.bundlePosition[0],y:t.bundlePosition[1]},i,r),t.symbolRepeat?oD(n,e,t,!0):sD(n,e,t,!0),lD(n,t,!0),uD(n,e,t,!0)}function pD(n,e,t,i){var r=i.__pictorialBarRect;r&&r.removeTextContent();var a=[];e_(i,function(o){a.push(o)}),i.__pictorialMainPath&&a.push(i.__pictorialMainPath),i.__pictorialClipPath&&(t=null),E(a,function(o){Xa(o,{scaleX:0,scaleY:0},t,e,function(){i.parent&&i.parent.remove(i)})}),n.setItemGraphicEl(e,null)}function dD(n,e){return[n.getItemVisual(e.dataIndex,"symbol")||"none",!!e.symbolRepeat,!!e.symbolClip].join(":")}function e_(n,e,t){E(n.__pictorialBundle.children(),function(i){i!==n.__pictorialBarRect&&e.call(t,i)})}function ql(n,e,t,i,r,a){e&&n.attr(e),i.symbolClip&&!r?t&&n.attr(t):t&&rs[r?"updateProps":"initProps"](n,t,i.animationModel,i.dataIndex,a)}function fD(n,e,t){var i=t.dataIndex,r=t.itemModel,a=r.getModel("emphasis"),o=a.getModel("itemStyle").getItemStyle(),s=r.getModel(["blur","itemStyle"]).getItemStyle(),l=r.getModel(["select","itemStyle"]).getItemStyle(),u=r.getShallow("cursor"),c=a.get("focus"),h=a.get("blurScope"),f=a.get("scale");e_(n,function(y){if(y instanceof Sn){var _=y.style;y.useStyle(lt({image:_.image,x:_.x,y:_.y,width:_.width,height:_.height},t.style))}else y.useStyle(t.style);var v=y.ensureState("emphasis");v.style=o,f&&(v.scaleX=y.scaleX*1.1,v.scaleY=y.scaleY*1.1),y.ensureState("blur").style=s,y.ensureState("select").style=l,u&&(y.cursor=u),y.z2=t.z2});var d=e.valueDim.posDesc[+(t.boundingLength>0)],g=n.__pictorialBarRect;g.ignoreClip=!0,kn(g,gn(r),{labelFetcher:e.seriesModel,labelDataIndex:i,defaultText:Vl(e.seriesModel.getData(),i),inheritColor:t.style.fill,defaultOpacity:t.style.opacity,defaultOutsidePosition:d}),Ue(n,c,h,a.get("disabled"))}function gD(n){var e=Math.round(n);return Math.abs(n-e)<1e-4?e:Math.ceil(n)}var gX=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t.defaultSymbol="roundRect",t}return e.prototype.getInitialData=function(t){return t.stack=null,n.prototype.getInitialData.apply(this,arguments)},e.type="series.pictorialBar",e.dependencies=["grid"],e.defaultOption=qa(Zc.defaultOption,{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",clip:!1,progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:"#212121"}}}),e}(Zc);function vX(n){n.registerChartView(sX),n.registerSeriesModel(gX),n.registerLayout(n.PRIORITY.VISUAL.LAYOUT,Zt(kT,"pictorialBar")),n.registerLayout(n.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,LT("pictorialBar"))}var yX=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t._layers=[],t}return e.prototype.render=function(t,i,r){var a=t.getData(),o=this,s=this.group,l=t.getLayerSeries(),u=a.getLayout("layoutInfo"),c=u.rect,h=u.boundaryGap;s.x=0,s.y=c.y+h[0];function f(_){return _.name}var d=new pa(this._layersSeries||[],l,f,f),g=[];d.add(Ct(y,this,"add")).update(Ct(y,this,"update")).remove(Ct(y,this,"remove")).execute();function y(_,v,p){var x=o._layers;if(_==="remove"){s.remove(x[v]);return}for(var b=[],S=[],M,I=l[v].indices,A=0;A<I.length;A++){var C=a.getItemLayout(I[A]),L=C.x,R=C.y0,D=C.y;b.push(L,R),S.push(L,R+D),M=a.getItemVisual(I[A],"style")}var N,k=a.getItemLayout(I[0]),O=t.getModel("label"),F=O.get("margin"),G=t.getModel("emphasis");if(_==="add"){var q=g[v]=new Gt;N=new XA({shape:{points:b,stackedOnPoints:S,smooth:.4,stackedOnSmooth:.4,smoothConstraint:!1},z2:0}),q.add(N),s.add(q),t.isAnimationEnabled()&&N.setClipPath(mX(N.getBoundingRect(),t,function(){N.removeClipPath()}))}else{var q=x[p];N=q.childAt(0),s.add(q),g[v]=q,me(N,{shape:{points:b,stackedOnPoints:S}},t),sr(N)}kn(N,gn(t),{labelDataIndex:I[A-1],defaultText:a.getName(I[A-1]),inheritColor:M.fill},{normal:{verticalAlign:"middle"}}),N.setTextConfig({position:null,local:!0});var j=N.getTextContent();j&&(j.x=k.x-F,j.y=k.y0+k.y/2),N.useStyle(M),a.setItemGraphicEl(v,N),Cn(N,t),Ue(N,G.get("focus"),G.get("blurScope"),G.get("disabled"))}this._layersSeries=l,this._layers=g},e.type="themeRiver",e}(Pe);function mX(n,e,t){var i=new de({shape:{x:n.x-10,y:n.y-10,width:0,height:n.height+20}});return We(i,{shape:{x:n.x-50,width:n.width+100,height:n.height+20}},e,t),i}var n_=2,_X=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t){n.prototype.init.apply(this,arguments),this.legendVisualProvider=new Kc(Ct(this.getData,this),Ct(this.getRawData,this))},e.prototype.fixData=function(t){var i=t.length,r={},a=ay(t,function(f){return r.hasOwnProperty(f[0]+"")||(r[f[0]+""]=-1),f[2]}),o=[];a.buckets.each(function(f,d){o.push({name:d,dataList:f})});for(var s=o.length,l=0;l<s;++l){for(var u=o[l].name,c=0;c<o[l].dataList.length;++c){var h=o[l].dataList[c][0]+"";r[h]=l}for(var h in r)r.hasOwnProperty(h)&&r[h]!==l&&(r[h]=l,t[i]=[h,0,u],i++)}return t},e.prototype.getInitialData=function(t,i){for(var r=this.getReferringComponents("singleAxis",en).models[0],a=r.get("type"),o=Se(t.data,function(g){return g[2]!==void 0}),s=this.fixData(o||[]),l=[],u=this.nameMap=Dt(),c=0,h=0;h<s.length;++h)l.push(s[h][n_]),u.get(s[h][n_])||(u.set(s[h][n_],c),c++);var f=zc(s,{coordDimensions:["single"],dimensionsDefine:[{name:"time",type:Ed(a)},{name:"value",type:"float"},{name:"name",type:"ordinal"}],encodeDefine:{single:0,value:1,itemName:2}}).dimensions,d=new Jn(f,this);return d.initData(s),d},e.prototype.getLayerSeries=function(){for(var t=this.getData(),i=t.count(),r=[],a=0;a<i;++a)r[a]=a;var o=t.mapDimension("single"),s=ay(r,function(u){return t.get("name",u)}),l=[];return s.buckets.each(function(u,c){u.sort(function(h,f){return t.get(o,h)-t.get(o,f)}),l.push({name:c,indices:u})}),l},e.prototype.getAxisTooltipData=function(t,i,r){ht(t)||(t=t?[t]:[]);for(var a=this.getData(),o=this.getLayerSeries(),s=[],l=o.length,u,c=0;c<l;++c){for(var h=Number.MAX_VALUE,f=-1,d=o[c].indices.length,g=0;g<d;++g){var y=a.get(t[0],o[c].indices[g]),_=Math.abs(y-i);_<=h&&(u=y,h=_,f=o[c].indices[g])}s.push(f)}return{dataIndices:s,nestestValue:u}},e.prototype.formatTooltip=function(t,i,r){var a=this.getData(),o=a.getName(t),s=a.get(a.mapDimension("value"),t);return vn("nameValue",{name:o,value:s})},e.type="series.themeRiver",e.dependencies=["singleAxis"],e.defaultOption={z:2,colorBy:"data",coordinateSystem:"singleAxis",boundaryGap:["10%","10%"],singleAxisIndex:0,animationEasing:"linear",label:{margin:4,show:!0,position:"left",fontSize:11},emphasis:{label:{show:!0}}},e}(Oe);function xX(n,e){n.eachSeriesByType("themeRiver",function(t){var i=t.getData(),r=t.coordinateSystem,a={},o=r.getRect();a.rect=o;var s=t.get("boundaryGap"),l=r.getAxis();if(a.boundaryGap=s,l.orient==="horizontal"){s[0]=Mt(s[0],o.height),s[1]=Mt(s[1],o.height);var u=o.height-s[0]-s[1];vD(i,t,u)}else{s[0]=Mt(s[0],o.width),s[1]=Mt(s[1],o.width);var c=o.width-s[0]-s[1];vD(i,t,c)}i.setLayout("layoutInfo",a)})}function vD(n,e,t){if(n.count())for(var i=e.coordinateSystem,r=e.getLayerSeries(),a=n.mapDimension("single"),o=n.mapDimension("value"),s=pt(r,function(_){return pt(_.indices,function(v){var p=i.dataToPoint(n.get(a,v));return p[1]=n.get(o,v),p})}),l=bX(s),u=l.y0,c=t/l.max,h=r.length,f=r[0].indices.length,d,g=0;g<f;++g){d=u[g]*c,n.setItemLayout(r[0].indices[g],{layerIndex:0,x:s[0][g][0],y0:d,y:s[0][g][1]*c});for(var y=1;y<h;++y)d+=s[y-1][g][1]*c,n.setItemLayout(r[y].indices[g],{layerIndex:y,x:s[y][g][0],y0:d,y:s[y][g][1]*c})}}function bX(n){for(var e=n.length,t=n[0].length,i=[],r=[],a=0,o=0;o<t;++o){for(var s=0,l=0;l<e;++l)s+=n[l][o][1];s>a&&(a=s),i.push(s)}for(var u=0;u<t;++u)r[u]=(a-i[u])/2;a=0;for(var c=0;c<t;++c){var h=i[c]+r[c];h>a&&(a=h)}return{y0:r,max:a}}function wX(n){n.registerChartView(yX),n.registerSeriesModel(_X),n.registerLayout(xX),n.registerProcessor(qc("themeRiver"))}var SX=2,MX=4,yD=function(n){Q(e,n);function e(t,i,r,a){var o=n.call(this)||this;o.z2=SX,o.textConfig={inside:!0},jt(o).seriesIndex=i.seriesIndex;var s=new fe({z2:MX,silent:t.getModel().get(["label","silent"])});return o.setTextContent(s),o.updateData(!0,t,i,r,a),o}return e.prototype.updateData=function(t,i,r,a,o){this.node=i,i.piece=this,r=r||this._seriesModel,a=a||this._ecModel;var s=this;jt(s).dataIndex=i.dataIndex;var l=i.getModel(),u=l.getModel("emphasis"),c=i.getLayout(),h=lt({},c);h.label=null;var f=i.getVisual("style");f.lineJoin="bevel";var d=i.getVisual("decal");d&&(f.decal=Rl(d,o));var g=Is(l.getModel("itemStyle"),h,!0);lt(h,g),E(Zn,function(p){var x=s.ensureState(p),b=l.getModel([p,"itemStyle"]);x.style=b.getItemStyle();var S=Is(b,h);S&&(x.shape=S)}),t?(s.setShape(h),s.shape.r=c.r0,We(s,{shape:{r:c.r}},r,i.dataIndex)):(me(s,{shape:h},r),sr(s)),s.useStyle(f),this._updateLabel(r);var y=l.getShallow("cursor");y&&s.attr("cursor",y),this._seriesModel=r||this._seriesModel,this._ecModel=a||this._ecModel;var _=u.get("focus"),v=_==="relative"?Tu(i.getAncestorsIndices(),i.getDescendantIndices()):_==="ancestor"?i.getAncestorsIndices():_==="descendant"?i.getDescendantIndices():_;Ue(this,v,u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(t){var i=this,r=this.node.getModel(),a=r.getModel("label"),o=this.node.getLayout(),s=o.endAngle-o.startAngle,l=(o.startAngle+o.endAngle)/2,u=Math.cos(l),c=Math.sin(l),h=this,f=h.getTextContent(),d=this.node.dataIndex,g=a.get("minAngle")/180*Math.PI,y=a.get("show")&&!(g!=null&&Math.abs(s)<g);f.ignore=!y,E(Ju,function(v){var p=v==="normal"?r.getModel("label"):r.getModel([v,"label"]),x=v==="normal",b=x?f:f.ensureState(v),S=t.getFormattedLabel(d,v);x&&(S=S||i.node.name),b.style=Ee(p,{},null,v!=="normal",!0),S&&(b.style.text=S);var M=p.get("show");M!=null&&!x&&(b.ignore=!M);var I=_(p,"position"),A=x?h:h.states[v],C=A.style.fill;A.textConfig={outsideFill:p.get("color")==="inherit"?C:null,inside:I!=="outside"};var L,R=_(p,"distance")||0,D=_(p,"align"),N=_(p,"rotate"),k=Math.PI*.5,O=Math.PI*1.5,F=yi(N==="tangential"?Math.PI/2-l:l),G=F>k&&!ju(F-k)&&F<O;I==="outside"?(L=o.r+R,D=G?"right":"left"):!D||D==="center"?(s===2*Math.PI&&o.r0===0?L=0:L=(o.r+o.r0)/2,D="center"):D==="left"?(L=o.r0+R,D=G?"right":"left"):D==="right"&&(L=o.r-R,D=G?"left":"right"),b.style.align=D,b.style.verticalAlign=_(p,"verticalAlign")||"middle",b.x=L*u+o.cx,b.y=L*c+o.cy;var q=0;N==="radial"?q=yi(-l)+(G?Math.PI:0):N==="tangential"?q=yi(Math.PI/2-l)+(G?Math.PI:0):ve(N)&&(q=N*Math.PI/180),b.rotation=yi(q)});function _(v,p){var x=v.get(p);return x??a.get(p)}f.dirtyStyle()},e}(qn),i_="sunburstRootToNode",mD="sunburstHighlight",IX="sunburstUnhighlight";function TX(n){n.registerAction({type:i_,update:"updateView"},function(e,t){t.eachComponent({mainType:"series",subType:"sunburst",query:e},i);function i(r,a){var o=nh(e,[i_],r);if(o){var s=r.getViewRoot();s&&(e.direction=n1(s,o.node)?"rollUp":"drillDown"),r.resetViewRoot(o.node)}}}),n.registerAction({type:mD,update:"none"},function(e,t,i){e=lt({},e),t.eachComponent({mainType:"series",subType:"sunburst",query:e},r);function r(a){var o=nh(e,[mD],a);o&&(e.dataIndex=o.node.dataIndex)}i.dispatchAction(lt(e,{type:"highlight"}))}),n.registerAction({type:IX,update:"updateView"},function(e,t,i){e=lt({},e),i.dispatchAction(lt(e,{type:"downplay"}))})}var AX=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,i,r,a){var o=this;this.seriesModel=t,this.api=r,this.ecModel=i;var s=t.getData(),l=s.tree.root,u=t.getViewRoot(),c=this.group,h=t.get("renderLabelForZeroData"),f=[];u.eachNode(function(p){f.push(p)});var d=this._oldChildren||[];g(f,d),v(l,u),this._initEvents(),this._oldChildren=f;function g(p,x){if(p.length===0&&x.length===0)return;new pa(x,p,b,b).add(S).update(S).remove(Zt(S,null)).execute();function b(M){return M.getId()}function S(M,I){var A=M==null?null:p[M],C=I==null?null:x[I];y(A,C)}}function y(p,x){if(!h&&p&&!p.getValue()&&(p=null),p!==l&&x!==l){if(x&&x.piece)p?(x.piece.updateData(!1,p,t,i,r),s.setItemGraphicEl(p.dataIndex,x.piece)):_(x);else if(p){var b=new yD(p,t,i,r);c.add(b),s.setItemGraphicEl(p.dataIndex,b)}}}function _(p){p&&p.piece&&(c.remove(p.piece),p.piece=null)}function v(p,x){x.depth>0?(o.virtualPiece?o.virtualPiece.updateData(!1,p,t,i,r):(o.virtualPiece=new yD(p,t,i,r),c.add(o.virtualPiece)),x.piece.off("click"),o.virtualPiece.on("click",function(b){o._rootToNode(x.parentNode)})):o.virtualPiece&&(c.remove(o.virtualPiece),o.virtualPiece=null)}},e.prototype._initEvents=function(){var t=this;this.group.off("click"),this.group.on("click",function(i){var r=!1,a=t.seriesModel.getViewRoot();a.eachNode(function(o){if(!r&&o.piece&&o.piece===i.target){var s=o.getModel().get("nodeClick");if(s==="rootToNode")t._rootToNode(o);else if(s==="link"){var l=o.getModel(),u=l.get("link");if(u){var c=l.get("target",!0)||"_blank";dd(u,c)}}r=!0}})})},e.prototype._rootToNode=function(t){t!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:i_,from:this.uid,seriesId:this.seriesModel.id,targetNode:t})},e.prototype.containPoint=function(t,i){var r=i.getData(),a=r.getItemLayout(0);if(a){var o=t[0]-a.cx,s=t[1]-a.cy,l=Math.sqrt(o*o+s*s);return l<=a.r&&l>=a.r0}},e.type="sunburst",e}(Pe),CX=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.ignoreStyleOnData=!0,t}return e.prototype.getInitialData=function(t,i){var r={name:t.name,children:t.data};_D(r);var a=this._levelModels=pt(t.levels||[],function(l){return new Ce(l,this,i)},this),o=e1.createTree(r,this,s);function s(l){l.wrapMethod("getItemModel",function(u,c){var h=o.getNodeByDataIndex(c),f=a[h.depth];return f&&(u.parentModel=f),u})}return o.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.getDataParams=function(t){var i=n.prototype.getDataParams.apply(this,arguments),r=this.getData().tree.getNodeByDataIndex(t);return i.treePathInfo=gf(r,this),i},e.prototype.getLevelModel=function(t){return this._levelModels&&this._levelModels[t.depth]},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(t){t?this._viewRoot=t:t=this._viewRoot;var i=this.getRawData().tree.root;(!t||t!==i&&!i.contains(t))&&(this._viewRoot=i)},e.prototype.enableAriaDecal=function(){Lk(this)},e.type="series.sunburst",e.defaultOption={z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,stillShowZeroSum:!0,nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{rotate:"radial",show:!0,opacity:1,align:"center",position:"inside",distance:5,silent:!0},itemStyle:{borderWidth:1,borderColor:"white",borderType:"solid",shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffsetX:0,shadowOffsetY:0,opacity:1},emphasis:{focus:"descendant"},blur:{itemStyle:{opacity:.2},label:{opacity:.1}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,data:[],sort:"desc"},e}(Oe);function _D(n){var e=0;E(n.children,function(i){_D(i);var r=i.value;ht(r)&&(r=r[0]),e+=r});var t=n.value;ht(t)&&(t=t[0]),(t==null||isNaN(t))&&(t=e),t<0&&(t=0),ht(n.value)?n.value[0]=t:n.value=t}var xD=Math.PI/180;function kX(n,e,t){e.eachSeriesByType(n,function(i){var r=i.get("center"),a=i.get("radius");ht(a)||(a=[0,a]),ht(r)||(r=[r,r]);var o=t.getWidth(),s=t.getHeight(),l=Math.min(o,s),u=Mt(r[0],o),c=Mt(r[1],s),h=Mt(a[0],l/2),f=Mt(a[1],l/2),d=-i.get("startAngle")*xD,g=i.get("minAngle")*xD,y=i.getData().tree.root,_=i.getViewRoot(),v=_.depth,p=i.get("sort");p!=null&&bD(_,p);var x=0;E(_.children,function(F){!isNaN(F.getValue())&&x++});var b=_.getValue(),S=Math.PI/(b||x)*2,M=_.depth>0,I=_.height-(M?-1:1),A=(f-h)/(I||1),C=i.get("clockwise"),L=i.get("stillShowZeroSum"),R=C?1:-1,D=function(F,G){if(F){var q=G;if(F!==y){var j=F.getValue(),J=b===0&&L?S:j*S;J<g&&(J=g),q=G+R*J;var H=F.depth-v-(M?-1:1),K=h+A*H,ut=h+A*(H+1),ot=i.getLevelModel(F);if(ot){var at=ot.get("r0",!0),Nt=ot.get("r",!0),Yt=ot.get("radius",!0);Yt!=null&&(at=Yt[0],Nt=Yt[1]),at!=null&&(K=Mt(at,l/2)),Nt!=null&&(ut=Mt(Nt,l/2))}F.setLayout({angle:J,startAngle:G,endAngle:q,clockwise:C,cx:u,cy:c,r0:K,r:ut})}if(F.children&&F.children.length){var wt=0;E(F.children,function(xt){wt+=D(xt,G+wt)})}return q-G}};if(M){var N=h,k=h+A,O=Math.PI*2;y.setLayout({angle:O,startAngle:d,endAngle:d+O,clockwise:C,cx:u,cy:c,r0:N,r:k})}D(_,d)})}function bD(n,e){var t=n.children||[];n.children=LX(t,e),t.length&&E(n.children,function(i){bD(i,e)})}function LX(n,e){if(Ot(e)){var t=pt(n,function(r,a){var o=r.getValue();return{params:{depth:r.depth,height:r.height,dataIndex:r.dataIndex,getValue:function(){return o}},index:a}});return t.sort(function(r,a){return e(r.params,a.params)}),pt(t,function(r){return n[r.index]})}else{var i=e==="asc";return n.sort(function(r,a){var o=(r.getValue()-a.getValue())*(i?1:-1);return o===0?(r.dataIndex-a.dataIndex)*(i?-1:1):o})}}function DX(n){var e={};function t(i,r,a){for(var o=i;o&&o.depth>1;)o=o.parentNode;var s=r.getColorFromPalette(o.name||o.dataIndex+"",e);return i.depth>1&&Tt(s)&&(s=kv(s,(i.depth-1)/(a-1)*.5)),s}n.eachSeriesByType("sunburst",function(i){var r=i.getData(),a=r.tree;a.eachNode(function(o){var s=o.getModel(),l=s.getModel("itemStyle").getItemStyle();l.fill||(l.fill=t(o,i,a.root.height));var u=r.ensureUniqueItemVisual(o.dataIndex,"style");lt(u,l)})})}function PX(n){n.registerChartView(AX),n.registerSeriesModel(CX),n.registerLayout(Zt(kX,"sunburst")),n.registerProcessor(Zt(qc,"sunburst")),n.registerVisual(DX),TX(n)}var wD={color:"fill",borderColor:"stroke"},RX={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},ya=pe(),NX=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},e.prototype.getInitialData=function(t,i){return da(null,this)},e.prototype.getDataParams=function(t,i,r){var a=n.prototype.getDataParams.call(this,t,i);return r&&(a.info=ya(r).info),a},e.type="series.custom",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},e}(Oe);function zX(n,e){return e=e||[0,0],pt(["x","y"],function(t,i){var r=this.getAxis(t),a=e[i],o=n[i]/2;return r.type==="category"?r.getBandWidth():Math.abs(r.dataToCoord(a-o)-r.dataToCoord(a+o))},this)}function EX(n){var e=n.master.getRect();return{coordSys:{type:"cartesian2d",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(t){return n.dataToPoint(t)},size:Ct(zX,n)}}}function OX(n,e){return e=e||[0,0],pt([0,1],function(t){var i=e[t],r=n[t]/2,a=[],o=[];return a[t]=i-r,o[t]=i+r,a[1-t]=o[1-t]=e[1-t],Math.abs(this.dataToPoint(a)[t]-this.dataToPoint(o)[t])},this)}function BX(n){var e=n.getBoundingRect();return{coordSys:{type:"geo",x:e.x,y:e.y,width:e.width,height:e.height,zoom:n.getZoom()},api:{coord:function(t){return n.dataToPoint(t)},size:Ct(OX,n)}}}function VX(n,e){var t=this.getAxis(),i=e instanceof Array?e[0]:e,r=(n instanceof Array?n[0]:n)/2;return t.type==="category"?t.getBandWidth():Math.abs(t.dataToCoord(i-r)-t.dataToCoord(i+r))}function FX(n){var e=n.getRect();return{coordSys:{type:"singleAxis",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(t){return n.dataToPoint(t)},size:Ct(VX,n)}}}function WX(n,e){return e=e||[0,0],pt(["Radius","Angle"],function(t,i){var r="get"+t+"Axis",a=this[r](),o=e[i],s=n[i]/2,l=a.type==="category"?a.getBandWidth():Math.abs(a.dataToCoord(o-s)-a.dataToCoord(o+s));return t==="Angle"&&(l=l*Math.PI/180),l},this)}function GX(n){var e=n.getRadiusAxis(),t=n.getAngleAxis(),i=e.getExtent();return i[0]>i[1]&&i.reverse(),{coordSys:{type:"polar",cx:n.cx,cy:n.cy,r:i[1],r0:i[0]},api:{coord:function(r){var a=e.dataToRadius(r[0]),o=t.dataToAngle(r[1]),s=n.coordToPoint([a,o]);return s.push(a,o*Math.PI/180),s},size:Ct(WX,n)}}}function jX(n){var e=n.getRect(),t=n.getRangeInfo();return{coordSys:{type:"calendar",x:e.x,y:e.y,width:e.width,height:e.height,cellWidth:n.getCellWidth(),cellHeight:n.getCellHeight(),rangeInfo:{start:t.start,end:t.end,weeks:t.weeks,dayCount:t.allDay}},api:{coord:function(i,r){return n.dataToPoint(i,r)}}}}function SD(n,e,t,i){return n&&(n.legacy||n.legacy!==!1&&!t&&!i&&e!=="tspan"&&(e==="text"||Lt(n,"text")))}function MD(n,e,t){var i=n,r,a,o;if(e==="text")o=i;else{o={},Lt(i,"text")&&(o.text=i.text),Lt(i,"rich")&&(o.rich=i.rich),Lt(i,"textFill")&&(o.fill=i.textFill),Lt(i,"textStroke")&&(o.stroke=i.textStroke),Lt(i,"fontFamily")&&(o.fontFamily=i.fontFamily),Lt(i,"fontSize")&&(o.fontSize=i.fontSize),Lt(i,"fontStyle")&&(o.fontStyle=i.fontStyle),Lt(i,"fontWeight")&&(o.fontWeight=i.fontWeight),a={type:"text",style:o,silent:!0},r={};var s=Lt(i,"textPosition");t?r.position=s?i.textPosition:"inside":s&&(r.position=i.textPosition),Lt(i,"textPosition")&&(r.position=i.textPosition),Lt(i,"textOffset")&&(r.offset=i.textOffset),Lt(i,"textRotation")&&(r.rotation=i.textRotation),Lt(i,"textDistance")&&(r.distance=i.textDistance)}return ID(o,n),E(o.rich,function(l){ID(l,l)}),{textConfig:r,textContent:a}}function ID(n,e){e&&(e.font=e.textFont||e.font,Lt(e,"textStrokeWidth")&&(n.lineWidth=e.textStrokeWidth),Lt(e,"textAlign")&&(n.align=e.textAlign),Lt(e,"textVerticalAlign")&&(n.verticalAlign=e.textVerticalAlign),Lt(e,"textLineHeight")&&(n.lineHeight=e.textLineHeight),Lt(e,"textWidth")&&(n.width=e.textWidth),Lt(e,"textHeight")&&(n.height=e.textHeight),Lt(e,"textBackgroundColor")&&(n.backgroundColor=e.textBackgroundColor),Lt(e,"textPadding")&&(n.padding=e.textPadding),Lt(e,"textBorderColor")&&(n.borderColor=e.textBorderColor),Lt(e,"textBorderWidth")&&(n.borderWidth=e.textBorderWidth),Lt(e,"textBorderRadius")&&(n.borderRadius=e.textBorderRadius),Lt(e,"textBoxShadowColor")&&(n.shadowColor=e.textBoxShadowColor),Lt(e,"textBoxShadowBlur")&&(n.shadowBlur=e.textBoxShadowBlur),Lt(e,"textBoxShadowOffsetX")&&(n.shadowOffsetX=e.textBoxShadowOffsetX),Lt(e,"textBoxShadowOffsetY")&&(n.shadowOffsetY=e.textBoxShadowOffsetY))}function TD(n,e,t){var i=n;i.textPosition=i.textPosition||t.position||"inside",t.offset!=null&&(i.textOffset=t.offset),t.rotation!=null&&(i.textRotation=t.rotation),t.distance!=null&&(i.textDistance=t.distance);var r=i.textPosition.indexOf("inside")>=0,a=n.fill||"#000";AD(i,e);var o=i.textFill==null;return r?o&&(i.textFill=t.insideFill||"#fff",!i.textStroke&&t.insideStroke&&(i.textStroke=t.insideStroke),!i.textStroke&&(i.textStroke=a),i.textStrokeWidth==null&&(i.textStrokeWidth=2)):(o&&(i.textFill=n.fill||t.outsideFill||"#000"),!i.textStroke&&t.outsideStroke&&(i.textStroke=t.outsideStroke)),i.text=e.text,i.rich=e.rich,E(e.rich,function(s){AD(s,s)}),i}function AD(n,e){e&&(Lt(e,"fill")&&(n.textFill=e.fill),Lt(e,"stroke")&&(n.textStroke=e.fill),Lt(e,"lineWidth")&&(n.textStrokeWidth=e.lineWidth),Lt(e,"font")&&(n.font=e.font),Lt(e,"fontStyle")&&(n.fontStyle=e.fontStyle),Lt(e,"fontWeight")&&(n.fontWeight=e.fontWeight),Lt(e,"fontSize")&&(n.fontSize=e.fontSize),Lt(e,"fontFamily")&&(n.fontFamily=e.fontFamily),Lt(e,"align")&&(n.textAlign=e.align),Lt(e,"verticalAlign")&&(n.textVerticalAlign=e.verticalAlign),Lt(e,"lineHeight")&&(n.textLineHeight=e.lineHeight),Lt(e,"width")&&(n.textWidth=e.width),Lt(e,"height")&&(n.textHeight=e.height),Lt(e,"backgroundColor")&&(n.textBackgroundColor=e.backgroundColor),Lt(e,"padding")&&(n.textPadding=e.padding),Lt(e,"borderColor")&&(n.textBorderColor=e.borderColor),Lt(e,"borderWidth")&&(n.textBorderWidth=e.borderWidth),Lt(e,"borderRadius")&&(n.textBorderRadius=e.borderRadius),Lt(e,"shadowColor")&&(n.textBoxShadowColor=e.shadowColor),Lt(e,"shadowBlur")&&(n.textBoxShadowBlur=e.shadowBlur),Lt(e,"shadowOffsetX")&&(n.textBoxShadowOffsetX=e.shadowOffsetX),Lt(e,"shadowOffsetY")&&(n.textBoxShadowOffsetY=e.shadowOffsetY),Lt(e,"textShadowColor")&&(n.textShadowColor=e.textShadowColor),Lt(e,"textShadowBlur")&&(n.textShadowBlur=e.textShadowBlur),Lt(e,"textShadowOffsetX")&&(n.textShadowOffsetX=e.textShadowOffsetX),Lt(e,"textShadowOffsetY")&&(n.textShadowOffsetY=e.textShadowOffsetY))}var CD={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},kD=se(CD);br(Tr,function(n,e){return n[e]=1,n},{}),Tr.join(", ");var Cf=["","style","shape","extra"],Kl=pe();function r_(n,e,t,i,r){var a=n+"Animation",o=dl(n,i,r)||{},s=Kl(e).userDuring;return o.duration>0&&(o.during=s?Ct(qX,{el:e,userDuring:s}):null,o.setToFinal=!0,o.scope=n),lt(o,t[a]),o}function kf(n,e,t,i){i=i||{};var r=i.dataIndex,a=i.isInit,o=i.clearStyle,s=t.isAnimationEnabled(),l=Kl(n),u=e.style;l.userDuring=e.during;var c={},h={};if(YX(n,e,h),PD("shape",e,h),PD("extra",e,h),!a&&s&&(KX(n,e,c),DD("shape",n,e,c),DD("extra",n,e,c),JX(n,e,u,c)),h.style=u,HX(n,h,o),XX(n,e),s)if(a){var f={};E(Cf,function(g){var y=g?e[g]:e;y&&y.enterFrom&&(g&&(f[g]=f[g]||{}),lt(g?f[g]:f,y.enterFrom))});var d=r_("enter",n,e,t,r);d.duration>0&&n.animateFrom(f,d)}else UX(n,e,r||0,t,c);LD(n,e),u?n.dirty():n.markRedraw()}function LD(n,e){for(var t=Kl(n).leaveToProps,i=0;i<Cf.length;i++){var r=Cf[i],a=r?e[r]:e;a&&a.leaveTo&&(t||(t=Kl(n).leaveToProps={}),r&&(t[r]=t[r]||{}),lt(r?t[r]:t,a.leaveTo))}}function Lf(n,e,t,i){if(n){var r=n.parent,a=Kl(n).leaveToProps;if(a){var o=r_("update",n,e,t,0);o.done=function(){r.remove(n)},n.animateTo(a,o)}else r.remove(n)}}function zs(n){return n==="all"}function HX(n,e,t){var i=e.style;if(!n.isGroup&&i){if(t){n.useStyle({});for(var r=n.animators,a=0;a<r.length;a++){var o=r[a];o.targetName==="style"&&o.changeTarget(n.style)}}n.setStyle(i)}e.style=null,n.attr(e),e.style=i}function UX(n,e,t,i,r){{var a=r_("update",n,e,i,t);a.duration>0&&n.animateFrom(r,a)}}function XX(n,e){Lt(e,"silent")&&(n.silent=e.silent),Lt(e,"ignore")&&(n.ignore=e.ignore),n instanceof Ri&&Lt(e,"invisible")&&(n.invisible=e.invisible),n instanceof re&&Lt(e,"autoBatch")&&(n.autoBatch=e.autoBatch)}var jr={},ZX={setTransform:function(n,e){return jr.el[n]=e,this},getTransform:function(n){return jr.el[n]},setShape:function(n,e){var t=jr.el,i=t.shape||(t.shape={});return i[n]=e,t.dirtyShape&&t.dirtyShape(),this},getShape:function(n){var e=jr.el.shape;if(e)return e[n]},setStyle:function(n,e){var t=jr.el,i=t.style;return i&&(i[n]=e,t.dirtyStyle&&t.dirtyStyle()),this},getStyle:function(n){var e=jr.el.style;if(e)return e[n]},setExtra:function(n,e){var t=jr.el.extra||(jr.el.extra={});return t[n]=e,this},getExtra:function(n){var e=jr.el.extra;if(e)return e[n]}};function qX(){var n=this,e=n.el;if(e){var t=Kl(e).userDuring,i=n.userDuring;if(t!==i){n.el=n.userDuring=null;return}jr.el=e,i(ZX)}}function DD(n,e,t,i){var r=t[n];if(r){var a=e[n],o;if(a){var s=t.transition,l=r.transition;if(l)if(!o&&(o=i[n]={}),zs(l))lt(o,a);else for(var u=De(l),c=0;c<u.length;c++){var h=u[c],f=a[h];o[h]=f}else if(zs(s)||Qt(s,n)>=0){!o&&(o=i[n]={});for(var d=se(a),c=0;c<d.length;c++){var h=d[c],f=a[h];$X(r[h],f)&&(o[h]=f)}}}}}function PD(n,e,t){var i=e[n];if(i)for(var r=t[n]={},a=se(i),o=0;o<a.length;o++){var s=a[o];r[s]=Bu(i[s])}}function KX(n,e,t){for(var i=e.transition,r=zs(i)?Tr:De(i||[]),a=0;a<r.length;a++){var o=r[a];if(!(o==="style"||o==="shape"||o==="extra")){var s=n[o];t[o]=s}}}function YX(n,e,t){for(var i=0;i<kD.length;i++){var r=kD[i],a=CD[r],o=e[r];o&&(t[a[0]]=o[0],t[a[1]]=o[1])}for(var i=0;i<Tr.length;i++){var s=Tr[i];e[s]!=null&&(t[s]=e[s])}}function JX(n,e,t,i){if(t){var r=n.style,a;if(r){var o=t.transition,s=e.transition;if(o&&!zs(o)){var l=De(o);!a&&(a=i.style={});for(var u=0;u<l.length;u++){var c=l[u],h=r[c];a[c]=h}}else if(n.getAnimationStyleProps&&(zs(s)||zs(o)||Qt(s,"style")>=0)){var f=n.getAnimationStyleProps(),d=f?f.style:null;if(d){!a&&(a=i.style={});for(var g=se(t),u=0;u<g.length;u++){var c=g[u];if(d[c]){var h=r[c];a[c]=h}}}}}}}function $X(n,e){return Nn(n)?n!==e:n!=null&&isFinite(n)}var RD=pe(),QX=["percent","easing","shape","style","extra"];function ND(n){n.stopAnimation("keyframe"),n.attr(RD(n))}function Df(n,e,t){if(!(!t.isAnimationEnabled()||!e)){if(ht(e)){E(e,function(s){Df(n,s,t)});return}var i=e.keyframes,r=e.duration;if(t&&r==null){var a=dl("enter",t,0);r=a&&a.duration}if(!(!i||!r)){var o=RD(n);E(Cf,function(s){if(!(s&&!n[s])){var l;i.sort(function(u,c){return u.percent-c.percent}),E(i,function(u){var c=n.animators,h=s?u[s]:u;if(h){var f=se(h);if(s||(f=Se(f,function(y){return Qt(QX,y)<0})),!!f.length){l||(l=n.animate(s,e.loop,!0),l.scope="keyframe");for(var d=0;d<c.length;d++)c[d]!==l&&c[d].targetName===l.targetName&&c[d].stopTracks(f);s&&(o[s]=o[s]||{});var g=s?o[s]:o;E(f,function(y){g[y]=((s?n[s]:n)||{})[y]}),l.whenWithKeys(r*u.percent,h,f,u.easing)}}}),l&&l.delay(e.delay||0).duration(r).start(e.easing)}})}}}var ma="emphasis",uo="normal",a_="blur",o_="select",co=[uo,ma,a_,o_],s_={normal:["itemStyle"],emphasis:[ma,"itemStyle"],blur:[a_,"itemStyle"],select:[o_,"itemStyle"]},l_={normal:["label"],emphasis:[ma,"label"],blur:[a_,"label"],select:[o_,"label"]},tZ=["x","y"],eZ="e\0\0",Hi={normal:{},emphasis:{},blur:{},select:{}},nZ={cartesian2d:EX,geo:BX,single:FX,polar:GX,calendar:jX};function u_(n){return n instanceof re}function c_(n){return n instanceof Ri}function iZ(n,e){e.copyTransform(n),c_(e)&&c_(n)&&(e.setStyle(n.style),e.z=n.z,e.z2=n.z2,e.zlevel=n.zlevel,e.invisible=n.invisible,e.ignore=n.ignore,u_(e)&&u_(n)&&e.setShape(n.shape))}var rZ=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,i,r,a){this._progressiveEls=null;var o=this._data,s=t.getData(),l=this.group,u=ED(t,s,i,r);o||l.removeAll(),s.diff(o).add(function(h){d_(r,null,h,u(h,a),t,l,s)}).remove(function(h){var f=o.getItemGraphicEl(h);f&&Lf(f,ya(f).option,t)}).update(function(h,f){var d=o.getItemGraphicEl(f);d_(r,d,h,u(h,a),t,l,s)}).execute();var c=t.get("clip",!0)?Uc(t.coordinateSystem,!1,t):null;c?l.setClipPath(c):l.removeClipPath(),this._data=s},e.prototype.incrementalPrepareRender=function(t,i,r){this.group.removeAll(),this._data=null},e.prototype.incrementalRender=function(t,i,r,a,o){var s=i.getData(),l=ED(i,s,r,a),u=this._progressiveEls=[];function c(d){d.isGroup||(d.incremental=!0,d.ensureState("emphasis").hoverLayer=!0)}for(var h=t.start;h<t.end;h++){var f=d_(null,null,h,l(h,o),i,this.group,s);f&&(f.traverse(c),u.push(f))}},e.prototype.eachRendered=function(t){Za(this._progressiveEls||this.group,t)},e.prototype.filterForExposedEvent=function(t,i,r,a){var o=i.element;if(o==null||r.name===o)return!0;for(;(r=r.__hostTarget||r.parent)&&r!==this.group;)if(r.name===o)return!0;return!1},e.type="custom",e}(Pe);function h_(n){var e=n.type,t;if(e==="path"){var i=n.shape,r=i.width!=null&&i.height!=null?{x:i.x||0,y:i.y||0,width:i.width,height:i.height}:null,a=WD(i);t=td(a,null,r,i.layout||"center"),ya(t).customPathData=a}else if(e==="image")t=new Sn({}),ya(t).customImagePath=n.style.image;else if(e==="text")t=new fe({});else if(e==="group")t=new Gt;else{if(e==="compoundPath")throw new Error('"compoundPath" is not supported yet.');var o=Gy(e);if(!o){var s="";Me(s)}t=new o}return ya(t).customGraphicType=e,t.name=n.name,t.z2EmphasisLift=1,t.z2SelectLift=1,t}function p_(n,e,t,i,r,a,o){ND(e);var s=r&&r.normal.cfg;s&&e.setTextConfig(s),i&&i.transition==null&&(i.transition=tZ);var l=i&&i.style;if(l){if(e.type==="text"){var u=l;Lt(u,"textFill")&&(u.fill=u.textFill),Lt(u,"textStroke")&&(u.stroke=u.textStroke)}var c=void 0,h=u_(e)?l.decal:null;n&&h&&(h.dirty=!0,c=Rl(h,n)),l.__decalPattern=c}if(c_(e)&&l){var c=l.__decalPattern;c&&(l.decal=c)}kf(e,i,a,{dataIndex:t,isInit:o,clearStyle:!0}),Df(e,i.keyframeAnimation,a)}function zD(n,e,t,i,r){var a=e.isGroup?null:e,o=r&&r[n].cfg;if(a){var s=a.ensureState(n);if(i===!1){var l=a.getState(n);l&&(l.style=null)}else s.style=i||null;o&&(s.textConfig=o),Yo(a)}}function aZ(n,e,t){if(!n.isGroup){var i=n,r=t.currentZ,a=t.currentZLevel;i.z=r,i.zlevel=a;var o=e.z2;o!=null&&(i.z2=o||0);for(var s=0;s<co.length;s++)oZ(i,e,co[s])}}function oZ(n,e,t){var i=t===uo,r=i?e:Pf(e,t),a=r?r.z2:null,o;a!=null&&(o=i?n:n.ensureState(t),o.z2=a||0)}function ED(n,e,t,i){var r=n.get("renderItem"),a=n.coordinateSystem,o={};a&&(o=a.prepareCustoms?a.prepareCustoms(a):nZ[a.type](a));for(var s=Bt({getWidth:i.getWidth,getHeight:i.getHeight,getZr:i.getZr,getDevicePixelRatio:i.getDevicePixelRatio,value:b,style:M,ordinalRawValue:S,styleEmphasis:I,visual:L,barLayout:R,currentSeriesIndices:D,font:N},o.api||{}),l={context:{},seriesId:n.id,seriesName:n.name,seriesIndex:n.seriesIndex,coordSys:o.coordSys,dataInsideLength:e.count(),encode:sZ(n.getData())},u,c,h={},f={},d={},g={},y=0;y<co.length;y++){var _=co[y];d[_]=n.getModel(s_[_]),g[_]=n.getModel(l_[_])}function v(k){return k===u?c||(c=e.getItemModel(k)):e.getItemModel(k)}function p(k,O){return e.hasItemOption?k===u?h[O]||(h[O]=v(k).getModel(s_[O])):v(k).getModel(s_[O]):d[O]}function x(k,O){return e.hasItemOption?k===u?f[O]||(f[O]=v(k).getModel(l_[O])):v(k).getModel(l_[O]):g[O]}return function(k,O){return u=k,c=null,h={},f={},r&&r(Bt({dataIndexInside:k,dataIndex:e.getRawIndex(k),actionType:O?O.type:null},l),s)};function b(k,O){return O==null&&(O=u),e.getStore().get(e.getDimensionIndex(k||0),O)}function S(k,O){O==null&&(O=u),k=k||0;var F=e.getDimensionInfo(k);if(!F){var G=e.getDimensionIndex(k);return G>=0?e.getStore().get(G,O):void 0}var q=e.get(F.name,O),j=F&&F.ordinalMeta;return j?j.categories[q]:q}function M(k,O){O==null&&(O=u);var F=e.getItemVisual(O,"style"),G=F&&F.fill,q=F&&F.opacity,j=p(O,uo).getItemStyle();G!=null&&(j.fill=G),q!=null&&(j.opacity=q);var J={inheritColor:Tt(G)?G:"#000"},H=x(O,uo),K=Ee(H,null,J,!1,!0);K.text=H.getShallow("show")?Ut(n.getFormattedLabel(O,uo),Vl(e,O)):null;var ut=rd(H,J,!1);return C(k,j),j=TD(j,K,ut),k&&A(j,k),j.legacy=!0,j}function I(k,O){O==null&&(O=u);var F=p(O,ma).getItemStyle(),G=x(O,ma),q=Ee(G,null,null,!0,!0);q.text=G.getShallow("show")?wr(n.getFormattedLabel(O,ma),n.getFormattedLabel(O,uo),Vl(e,O)):null;var j=rd(G,null,!0);return C(k,F),F=TD(F,q,j),k&&A(F,k),F.legacy=!0,F}function A(k,O){for(var F in O)Lt(O,F)&&(k[F]=O[F])}function C(k,O){k&&(k.textFill&&(O.textFill=k.textFill),k.textPosition&&(O.textPosition=k.textPosition))}function L(k,O){if(O==null&&(O=u),Lt(wD,k)){var F=e.getItemVisual(O,"style");return F?F[wD[k]]:null}if(Lt(RX,k))return e.getItemVisual(O,k)}function R(k){if(a.type==="cartesian2d"){var O=a.getBaseAxis();return Y8(Bt({axis:O},k))}}function D(){return t.getCurrentSeriesIndices()}function N(k){return Uy(k,t)}}function sZ(n){var e={};return E(n.dimensions,function(t){var i=n.getDimensionInfo(t);if(!i.isExtraCoord){var r=i.coordDim,a=e[r]=e[r]||[];a[i.coordDimIndex]=n.getDimensionIndex(t)}}),e}function d_(n,e,t,i,r,a,o){if(!i){a.remove(e);return}var s=f_(n,e,t,i,r,a);return s&&o.setItemGraphicEl(t,s),s&&Ue(s,i.focus,i.blurScope,i.emphasisDisabled),s}function f_(n,e,t,i,r,a){var o=-1,s=e;e&&OD(e,i,r)&&(o=Qt(a.childrenRef(),e),e=null);var l=!e,u=e;u?u.clearStates():(u=h_(i),s&&iZ(s,u)),i.morph===!1?u.disableMorphing=!0:u.disableMorphing&&(u.disableMorphing=!1),Hi.normal.cfg=Hi.normal.conOpt=Hi.emphasis.cfg=Hi.emphasis.conOpt=Hi.blur.cfg=Hi.blur.conOpt=Hi.select.cfg=Hi.select.conOpt=null,Hi.isLegacy=!1,uZ(u,t,i,r,l,Hi),lZ(u,t,i,r,l),p_(n,u,t,i,Hi,r,l),Lt(i,"info")&&(ya(u).info=i.info);for(var c=0;c<co.length;c++){var h=co[c];if(h!==uo){var f=Pf(i,h),d=g_(i,f,h);zD(h,u,f,d,Hi)}}return aZ(u,i,r),i.type==="group"&&cZ(n,u,t,i,r),o>=0?a.replaceAt(u,o):a.add(u),u}function OD(n,e,t){var i=ya(n),r=e.type,a=e.shape,o=e.style;return t.isUniversalTransitionEnabled()||r!=null&&r!==i.customGraphicType||r==="path"&&fZ(a)&&WD(a)!==i.customPathData||r==="image"&&Lt(o,"image")&&o.image!==i.customImagePath}function lZ(n,e,t,i,r){var a=t.clipPath;if(a===!1)n&&n.getClipPath()&&n.removeClipPath();else if(a){var o=n.getClipPath();o&&OD(o,a,i)&&(o=null),o||(o=h_(a),n.setClipPath(o)),p_(null,o,e,a,null,i,r)}}function uZ(n,e,t,i,r,a){if(!n.isGroup){BD(t,null,a),BD(t,ma,a);var o=a.normal.conOpt,s=a.emphasis.conOpt,l=a.blur.conOpt,u=a.select.conOpt;if(o!=null||s!=null||u!=null||l!=null){var c=n.getTextContent();if(o===!1)c&&n.removeTextContent();else{o=a.normal.conOpt=o||{type:"text"},c?c.clearStates():(c=h_(o),n.setTextContent(c)),p_(null,c,e,o,null,i,r);for(var h=o&&o.style,f=0;f<co.length;f++){var d=co[f];if(d!==uo){var g=a[d].conOpt;zD(d,c,g,g_(o,g,d),null)}}h?c.dirty():c.markRedraw()}}}}function BD(n,e,t){var i=e?Pf(n,e):n,r=e?g_(n,i,ma):n.style,a=n.type,o=i?i.textConfig:null,s=n.textContent,l=s?e?Pf(s,e):s:null;if(r&&(t.isLegacy||SD(r,a,!!o,!!l))){t.isLegacy=!0;var u=MD(r,a,!e);!o&&u.textConfig&&(o=u.textConfig),!l&&u.textContent&&(l=u.textContent)}if(!e&&l){var c=l;!c.type&&(c.type="text")}var h=e?t[e]:t.normal;h.cfg=o,h.conOpt=l}function Pf(n,e){return e?n?n[e]:null:n}function g_(n,e,t){var i=e&&e.style;return i==null&&t===ma&&n&&(i=n.styleEmphasis),i}function cZ(n,e,t,i,r){var a=i.children,o=a?a.length:0,s=i.$mergeChildren,l=s==="byName"||i.diffChildrenByName,u=s===!1;if(!(!o&&!l&&!u)){if(l){pZ({api:n,oldChildren:e.children()||[],newChildren:a||[],dataIndex:t,seriesModel:r,group:e});return}u&&e.removeAll();for(var c=0;c<o;c++){var h=a[c],f=e.childAt(c);h?(h.ignore==null&&(h.ignore=!1),f_(n,f,t,h,r,e)):f.ignore=!0}for(var d=e.childCount()-1;d>=c;d--){var g=e.childAt(d);hZ(e,g,r)}}}function hZ(n,e,t){e&&Lf(e,ya(n).option,t)}function pZ(n){new pa(n.oldChildren,n.newChildren,VD,VD,n).add(FD).update(FD).remove(dZ).execute()}function VD(n,e){var t=n&&n.name;return t??eZ+e}function FD(n,e){var t=this.context,i=n!=null?t.newChildren[n]:null,r=e!=null?t.oldChildren[e]:null;f_(t.api,r,t.dataIndex,i,t.seriesModel,t.group)}function dZ(n){var e=this.context,t=e.oldChildren[n];t&&Lf(t,ya(t).option,e.seriesModel)}function WD(n){return n&&(n.pathData||n.d)}function fZ(n){return n&&(Lt(n,"pathData")||Lt(n,"d"))}function gZ(n){n.registerChartView(rZ),n.registerSeriesModel(NX)}var Es=pe(),GD=Wt,v_=Ct,y_=function(){function n(){this._dragging=!1,this.animationThreshold=15}return n.prototype.render=function(e,t,i,r){var a=t.get("value"),o=t.get("status");if(this._axisModel=e,this._axisPointerModel=t,this._api=i,!(!r&&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,e,t,i);var c=u.graphicKey;c!==this._lastGraphicKey&&this.clear(i),this._lastGraphicKey=c;var h=this._moveAnimation=this.determineAnimation(e,t);if(!s)s=this._group=new Gt,this.createPointerEl(s,u,e,t),this.createLabelEl(s,u,e,t),i.getZr().add(s);else{var f=Zt(jD,t,h);this.updatePointerEl(s,u,f),this.updateLabelEl(s,u,f,t)}XD(s,t,!0),this._renderHandle(a)}},n.prototype.remove=function(e){this.clear(e)},n.prototype.dispose=function(e){this.clear(e)},n.prototype.determineAnimation=function(e,t){var i=t.get("animation"),r=e.axis,a=r.type==="category",o=t.get("snap");if(!o&&!a)return!1;if(i==="auto"||i==null){var s=this.animationThreshold;if(a&&r.getBandWidth()>s)return!0;if(o){var l=B0(e).seriesDataCount,u=r.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return i===!0},n.prototype.makeElOption=function(e,t,i,r,a){},n.prototype.createPointerEl=function(e,t,i,r){var a=t.pointer;if(a){var o=Es(e).pointerEl=new rs[a.type](GD(t.pointer));e.add(o)}},n.prototype.createLabelEl=function(e,t,i,r){if(t.label){var a=Es(e).labelEl=new fe(GD(t.label));e.add(a),UD(a,r)}},n.prototype.updatePointerEl=function(e,t,i){var r=Es(e).pointerEl;r&&t.pointer&&(r.setStyle(t.pointer.style),i(r,{shape:t.pointer.shape}))},n.prototype.updateLabelEl=function(e,t,i,r){var a=Es(e).labelEl;a&&(a.setStyle(t.label.style),i(a,{x:t.label.x,y:t.label.y}),UD(a,r))},n.prototype._renderHandle=function(e){if(!(this._dragging||!this.updateHandleTransform)){var t=this._axisPointerModel,i=this._api.getZr(),r=this._handle,a=t.getModel("handle"),o=t.get("status");if(!a.get("show")||!o||o==="hide"){r&&i.remove(r),this._handle=null;return}var s;this._handle||(s=!0,r=this._handle=uc(a.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){Qr(u.event)},onmousedown:v_(this._onHandleDragMove,this,0,0),drift:v_(this._onHandleDragMove,this),ondragend:v_(this._onHandleDragEnd,this)}),i.add(r)),XD(r,t,!1),r.setStyle(a.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=a.get("size");ht(l)||(l=[l,l]),r.scaleX=l[0]/2,r.scaleY=l[1]/2,kl(this,"_doDispatchAxisPointer",a.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,s)}},n.prototype._moveHandleToValue=function(e,t){jD(this._axisPointerModel,!t&&this._moveAnimation,this._handle,m_(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},n.prototype._onHandleDragMove=function(e,t){var i=this._handle;if(i){this._dragging=!0;var r=this.updateHandleTransform(m_(i),[e,t],this._axisModel,this._axisPointerModel);this._payloadInfo=r,i.stopAnimation(),i.attr(m_(r)),Es(i).lastProp=null,this._doDispatchAxisPointer()}},n.prototype._doDispatchAxisPointer=function(){var e=this._handle;if(e){var t=this._payloadInfo,i=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:t.cursorPoint[0],y:t.cursorPoint[1],tooltipOption:t.tooltipOption,axesInfo:[{axisDim:i.axis.dim,axisIndex:i.componentIndex}]})}},n.prototype._onHandleDragEnd=function(){this._dragging=!1;var e=this._handle;if(e){var t=this._axisPointerModel.get("value");this._moveHandleToValue(t),this._api.dispatchAction({type:"hideTip"})}},n.prototype.clear=function(e){this._lastValue=null,this._lastStatus=null;var t=e.getZr(),i=this._group,r=this._handle;t&&i&&(this._lastGraphicKey=null,i&&t.remove(i),r&&t.remove(r),this._group=null,this._handle=null,this._payloadInfo=null),bc(this,"_doDispatchAxisPointer")},n.prototype.doClear=function(){},n.prototype.buildLabel=function(e,t,i){return i=i||0,{x:e[i],y:e[1-i],width:t[i],height:t[1-i]}},n}();function jD(n,e,t,i){HD(Es(t).lastProp,i)||(Es(t).lastProp=i,e?me(t,i,n):(t.stopAnimation(),t.attr(i)))}function HD(n,e){if(Vt(n)&&Vt(e)){var t=!0;return E(e,function(i,r){t=t&&HD(n[r],i)}),!!t}else return n===e}function UD(n,e){n[e.get(["label","show"])?"show":"hide"]()}function m_(n){return{x:n.x||0,y:n.y||0,rotation:n.rotation||0}}function XD(n,e,t){var i=e.get("z"),r=e.get("zlevel");n&&n.traverse(function(a){a.type!=="group"&&(i!=null&&(a.z=i),r!=null&&(a.zlevel=r),a.silent=t)})}function __(n){var e=n.get("type"),t=n.getModel(e+"Style"),i;return e==="line"?(i=t.getLineStyle(),i.fill=null):e==="shadow"&&(i=t.getAreaStyle(),i.stroke=null),i}function ZD(n,e,t,i,r){var a=t.get("value"),o=qD(a,e.axis,e.ecModel,t.get("seriesDataIndices"),{precision:t.get(["label","precision"]),formatter:t.get(["label","formatter"])}),s=t.getModel("label"),l=bl(s.get("padding")||0),u=s.getFont(),c=Wu(o,u),h=r.position,f=c.width+l[1]+l[3],d=c.height+l[0]+l[2],g=r.align;g==="right"&&(h[0]-=f),g==="center"&&(h[0]-=f/2);var y=r.verticalAlign;y==="bottom"&&(h[1]-=d),y==="middle"&&(h[1]-=d/2),vZ(h,f,d,i);var _=s.get("backgroundColor");(!_||_==="auto")&&(_=e.get(["axisLine","lineStyle","color"])),n.label={x:h[0],y:h[1],style:Ee(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:_}),z2:10}}function vZ(n,e,t,i){var r=i.getWidth(),a=i.getHeight();n[0]=Math.min(n[0]+e,r)-e,n[1]=Math.min(n[1]+t,a)-t,n[0]=Math.max(n[0],0),n[1]=Math.max(n[1],0)}function qD(n,e,t,i,r){n=e.scale.parse(n);var a=e.scale.getLabel({value:n},{precision:r.precision}),o=r.formatter;if(o){var s={value:i0(e,{value:n}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};E(i,function(l){var u=t.getSeriesByIndex(l.seriesIndex),c=l.dataIndexInside,h=u&&u.getDataParams(c);h&&s.seriesData.push(h)}),Tt(o)?a=o.replace("{value}",a):Ot(o)&&(a=o(s))}return a}function x_(n,e,t){var i=fi();return ko(i,i,t.rotation),Sr(i,i,t.position),ur([n.dataToCoord(e),(t.labelOffset||0)+(t.labelDirection||1)*(t.labelMargin||0)],i)}function KD(n,e,t,i,r,a){var o=ti.innerTextLayout(t.rotation,0,t.labelDirection);t.labelMargin=r.get(["label","margin"]),ZD(e,i,r,a,{position:x_(i.axis,n,t),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function b_(n,e,t){return t=t||0,{x1:n[t],y1:n[1-t],x2:e[t],y2:e[1-t]}}function YD(n,e,t){return t=t||0,{x:n[t],y:n[1-t],width:e[t],height:e[1-t]}}function JD(n,e,t,i,r,a){return{cx:n,cy:e,r0:t,r:i,startAngle:r,endAngle:a,clockwise:!0}}var yZ=function(n){Q(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.makeElOption=function(t,i,r,a,o){var s=r.axis,l=s.grid,u=a.get("type"),c=$D(l,s).getOtherAxis(s).getGlobalExtent(),h=s.toGlobalCoord(s.dataToCoord(i,!0));if(u&&u!=="none"){var f=__(a),d=mZ[u](s,h,c);d.style=f,t.graphicKey=d.type,t.pointer=d}var g=N0(l.model,r);KD(i,t,g,r,a,o)},e.prototype.getHandleTransform=function(t,i,r){var a=N0(i.axis.grid.model,i,{labelInside:!1});a.labelMargin=r.get(["handle","margin"]);var o=x_(i.axis,t,a);return{x:o[0],y:o[1],rotation:a.rotation+(a.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,i,r,a){var o=r.axis,s=o.grid,l=o.getGlobalExtent(!0),u=$D(s,o).getOtherAxis(o).getGlobalExtent(),c=o.dim==="x"?0:1,h=[t.x,t.y];h[c]+=i[c],h[c]=Math.min(l[1],h[c]),h[c]=Math.max(l[0],h[c]);var f=(u[1]+u[0])/2,d=[f,f];d[c]=h[c];var g=[{verticalAlign:"middle"},{align:"center"}];return{x:h[0],y:h[1],rotation:t.rotation,cursorPoint:d,tooltipOption:g[c]}},e}(y_);function $D(n,e){var t={};return t[e.dim+"AxisIndex"]=e.index,n.getCartesian(t)}var mZ={line:function(n,e,t){var i=b_([e,t[0]],[e,t[1]],QD(n));return{type:"Line",subPixelOptimize:!0,shape:i}},shadow:function(n,e,t){var i=Math.max(1,n.getBandWidth()),r=t[1]-t[0];return{type:"Rect",shape:YD([e-i/2,t[0]],[i,r],QD(n))}}};function QD(n){return n.dim==="x"?0:1}var _Z=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="axisPointer",e.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},e}(le),_a=pe(),xZ=E;function tP(n,e,t){if(!oe.node){var i=e.getZr();_a(i).records||(_a(i).records={}),bZ(i,e);var r=_a(i).records[n]||(_a(i).records[n]={});r.handler=t}}function bZ(n,e){if(_a(n).initialized)return;_a(n).initialized=!0,t("click",Zt(eP,"click")),t("mousemove",Zt(eP,"mousemove")),t("globalout",SZ);function t(i,r){n.on(i,function(a){var o=MZ(e);xZ(_a(n).records,function(s){s&&r(s,a,o.dispatchAction)}),wZ(o.pendings,e)})}}function wZ(n,e){var t=n.showTip.length,i=n.hideTip.length,r;t?r=n.showTip[t-1]:i&&(r=n.hideTip[i-1]),r&&(r.dispatchAction=null,e.dispatchAction(r))}function SZ(n,e,t){n.handler("leave",null,t)}function eP(n,e,t,i){e.handler(n,t,i)}function MZ(n){var e={showTip:[],hideTip:[]},t=function(i){var r=e[i.type];r?r.push(i):(i.dispatchAction=t,n.dispatchAction(i))};return{dispatchAction:t,pendings:e}}function w_(n,e){if(!oe.node){var t=e.getZr(),i=(_a(t).records||{})[n];i&&(_a(t).records[n]=null)}}var IZ=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,i,r){var a=i.getComponent("tooltip"),o=t.get("triggerOn")||a&&a.get("triggerOn")||"mousemove|click";tP("axisPointer",r,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})})},e.prototype.remove=function(t,i){w_("axisPointer",i)},e.prototype.dispose=function(t,i){w_("axisPointer",i)},e.type="axisPointer",e}(je);function nP(n,e){var t=[],i=n.seriesIndex,r;if(i==null||!(r=e.getSeriesByIndex(i)))return{point:[]};var a=r.getData(),o=Bo(a,n);if(o==null||o<0||ht(o))return{point:[]};var s=a.getItemGraphicEl(o),l=r.coordinateSystem;if(r.getTooltipPosition)t=r.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(n.isStacked){var u=l.getBaseAxis(),c=l.getOtherAxis(u),h=c.dim,f=u.dim,d=h==="x"||h==="radius"?1:0,g=a.mapDimension(f),y=[];y[d]=a.get(g,o),y[1-d]=a.get(a.getCalculationInfo("stackResultDimension"),o),t=l.dataToPoint(y)||[]}else t=l.dataToPoint(a.getValues(pt(l.dimensions,function(v){return a.mapDimension(v)}),o))||[];else if(s){var _=s.getBoundingRect().clone();_.applyTransform(s.transform),t=[_.x+_.width/2,_.y+_.height/2]}return{point:t,el:s}}var iP=pe();function TZ(n,e,t){var i=n.currTrigger,r=[n.x,n.y],a=n,o=n.dispatchAction||Ct(t.dispatchAction,t),s=e.getComponent("axisPointer").coordSysAxesInfo;if(s){Rf(r)&&(r=nP({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},e).point);var l=Rf(r),u=a.axesInfo,c=s.axesInfo,h=i==="leave"||Rf(r),f={},d={},g={list:[],map:{}},y={showPointer:Zt(CZ,d),showTooltip:Zt(kZ,g)};E(s.coordSysMap,function(v,p){var x=l||v.containPoint(r);E(s.coordSysAxesInfo[p],function(b,S){var M=b.axis,I=RZ(u,b);if(!h&&x&&(!u||I)){var A=I&&I.value;A==null&&!l&&(A=M.pointToData(r)),A!=null&&rP(b,A,y,!1,f)}})});var _={};return E(c,function(v,p){var x=v.linkGroup;x&&!d[p]&&E(x.axesInfo,function(b,S){var M=d[S];if(b!==v&&M){var I=M.value;x.mapper&&(I=v.axis.scale.parse(x.mapper(I,aP(b),aP(v)))),_[v.key]=I}})}),E(_,function(v,p){rP(c[p],v,y,!0,f)}),LZ(d,c,f),DZ(g,r,n,o),PZ(c,o,t),f}}function rP(n,e,t,i,r){var a=n.axis;if(!(a.scale.isBlank()||!a.containData(e))){if(!n.involveSeries){t.showPointer(n,e);return}var o=AZ(e,n),s=o.payloadBatch,l=o.snapToValue;s[0]&&r.seriesIndex==null&<(r,s[0]),!i&&n.snap&&a.containData(l)&&l!=null&&(e=l),t.showPointer(n,e,s),t.showTooltip(n,o,l)}}function AZ(n,e){var t=e.axis,i=t.dim,r=n,a=[],o=Number.MAX_VALUE,s=-1;return E(e.seriesModels,function(l,u){var c=l.getData().mapDimensionsAll(i),h,f;if(l.getAxisTooltipData){var d=l.getAxisTooltipData(c,n,t);f=d.dataIndices,h=d.nestestValue}else{if(f=l.getData().indicesOfNearest(c[0],n,t.type==="category"?.5:null),!f.length)return;h=l.getData().get(c[0],f[0])}if(!(h==null||!isFinite(h))){var g=n-h,y=Math.abs(g);y<=o&&((y<o||g>=0&&s<0)&&(o=y,s=g,r=h,a.length=0),E(f,function(_){a.push({seriesIndex:l.seriesIndex,dataIndexInside:_,dataIndex:l.getData().getRawIndex(_)})}))}}),{payloadBatch:a,snapToValue:r}}function CZ(n,e,t,i){n[e.key]={value:t,payloadBatch:i}}function kZ(n,e,t,i){var r=t.payloadBatch,a=e.axis,o=a.model,s=e.axisPointerModel;if(!(!e.triggerTooltip||!r.length)){var l=e.coordSys.model,u=Yc(l),c=n.map[u];c||(c=n.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},n.list.push(c)),c.dataByAxis.push({axisDim:a.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:i,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:r.slice()})}}function LZ(n,e,t){var i=t.axesInfo=[];E(e,function(r,a){var o=r.axisPointerModel.option,s=n[a];s?(!r.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!r.useHandle&&(o.status="hide"),o.status==="show"&&i.push({axisDim:r.axis.dim,axisIndex:r.axis.model.componentIndex,value:o.value})})}function DZ(n,e,t,i){if(Rf(e)||!n.list.length){i({type:"hideTip"});return}var r=((n.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};i({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:t.tooltipOption,position:t.position,dataIndexInside:r.dataIndexInside,dataIndex:r.dataIndex,seriesIndex:r.seriesIndex,dataByCoordSys:n.list})}function PZ(n,e,t){var i=t.getZr(),r="axisPointerLastHighlights",a=iP(i)[r]||{},o=iP(i)[r]={};E(n,function(u,c){var h=u.axisPointerModel.option;h.status==="show"&&u.triggerEmphasis&&E(h.seriesDataIndices,function(f){var d=f.seriesIndex+" | "+f.dataIndex;o[d]=f})});var s=[],l=[];E(a,function(u,c){!o[c]&&l.push(u)}),E(o,function(u,c){!a[c]&&s.push(u)}),l.length&&t.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&t.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function RZ(n,e){for(var t=0;t<(n||[]).length;t++){var i=n[t];if(e.axis.dim===i.axisDim&&e.axis.model.componentIndex===i.axisIndex)return i}}function aP(n){var e=n.axis.model,t={},i=t.axisDim=n.axis.dim;return t.axisIndex=t[i+"AxisIndex"]=e.componentIndex,t.axisName=t[i+"AxisName"]=e.name,t.axisId=t[i+"AxisId"]=e.id,t}function Rf(n){return!n||n[0]==null||isNaN(n[0])||n[1]==null||isNaN(n[1])}function fh(n){Ts.registerAxisPointerClass("CartesianAxisPointer",yZ),n.registerComponentModel(_Z),n.registerComponentView(IZ),n.registerPreprocessor(function(e){if(e){(!e.axisPointer||e.axisPointer.length===0)&&(e.axisPointer={});var t=e.axisPointer.link;t&&!ht(t)&&(e.axisPointer.link=[t])}}),n.registerProcessor(n.PRIORITY.PROCESSOR.STATISTIC,function(e,t){e.getComponent("axisPointer").coordSysAxesInfo=jG(e,t)}),n.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},TZ)}function NZ(n){ie(VC),ie(fh)}var zZ=function(n){Q(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.makeElOption=function(t,i,r,a,o){var s=r.axis;s.dim==="angle"&&(this.animationThreshold=Math.PI/18);var l=s.polar,u=l.getOtherAxis(s),c=u.getExtent(),h=s.dataToCoord(i),f=a.get("type");if(f&&f!=="none"){var d=__(a),g=OZ[f](s,l,h,c);g.style=d,t.graphicKey=g.type,t.pointer=g}var y=a.get(["label","margin"]),_=EZ(i,r,a,l,y);ZD(t,r,a,o,_)},e}(y_);function EZ(n,e,t,i,r){var a=e.axis,o=a.dataToCoord(n),s=i.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var l=i.getRadiusAxis().getExtent(),u,c,h;if(a.dim==="radius"){var f=fi();ko(f,f,s),Sr(f,f,[i.cx,i.cy]),u=ur([o,-r],f);var d=e.getModel("axisLabel").get("rotate")||0,g=ti.innerTextLayout(s,d*Math.PI/180,-1);c=g.textAlign,h=g.textVerticalAlign}else{var y=l[1];u=i.coordToPoint([y+r,o]);var _=i.cx,v=i.cy;c=Math.abs(u[0]-_)/y<.3?"center":u[0]>_?"left":"right",h=Math.abs(u[1]-v)/y<.3?"middle":u[1]>v?"top":"bottom"}return{position:u,align:c,verticalAlign:h}}var OZ={line:function(n,e,t,i){return n.dim==="angle"?{type:"Line",shape:b_(e.coordToPoint([i[0],t]),e.coordToPoint([i[1],t]))}:{type:"Circle",shape:{cx:e.cx,cy:e.cy,r:t}}},shadow:function(n,e,t,i){var r=Math.max(1,n.getBandWidth()),a=Math.PI/180;return n.dim==="angle"?{type:"Sector",shape:JD(e.cx,e.cy,i[0],i[1],(-t-r/2)*a,(-t+r/2)*a)}:{type:"Sector",shape:JD(e.cx,e.cy,t-r/2,t+r/2,0,Math.PI*2)}}},BZ=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.findAxisModel=function(t){var i,r=this.ecModel;return r.eachComponent(t,function(a){a.getCoordSysModel()===this&&(i=a)},this),i},e.type="polar",e.dependencies=["radiusAxis","angleAxis"],e.defaultOption={z:0,center:["50%","50%"],radius:"80%"},e}(le),S_=function(n){Q(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",en).models[0]},e.type="polarAxis",e}(le);tn(S_,Oc);var VZ=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="angleAxis",e}(S_),FZ=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="radiusAxis",e}(S_),M_=function(n){Q(e,n);function e(t,i){return n.call(this,"radius",t,i)||this}return e.prototype.pointToData=function(t,i){return this.polar.pointToData(t,i)[this.dim==="radius"?0:1]},e}(dr);M_.prototype.dataToRadius=dr.prototype.dataToCoord,M_.prototype.radiusToData=dr.prototype.coordToData;var WZ=pe(),I_=function(n){Q(e,n);function e(t,i){return n.call(this,"angle",t,i||[0,360])||this}return e.prototype.pointToData=function(t,i){return this.polar.pointToData(t,i)[this.dim==="radius"?0:1]},e.prototype.calculateCategoryInterval=function(){var t=this,i=t.getLabelModel(),r=t.scale,a=r.getExtent(),o=r.count();if(a[1]-a[0]<1)return 0;var s=a[0],l=t.dataToCoord(s+1)-t.dataToCoord(s),u=Math.abs(l),c=Wu(s==null?"":s+"",i.getFont(),"center","top"),h=Math.max(c.height,7),f=h/u;isNaN(f)&&(f=1/0);var d=Math.max(0,Math.floor(f)),g=WZ(t.model),y=g.lastAutoInterval,_=g.lastTickCount;return y!=null&&_!=null&&Math.abs(y-d)<=1&&Math.abs(_-o)<=1&&y>d?d=y:(g.lastTickCount=o,g.lastAutoInterval=d),d},e}(dr);I_.prototype.dataToAngle=dr.prototype.dataToCoord,I_.prototype.angleToData=dr.prototype.coordToData;var oP=["radius","angle"],GZ=function(){function n(e){this.dimensions=oP,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new M_,this._angleAxis=new I_,this.axisPointerEnabled=!0,this.name=e||"",this._radiusAxis.polar=this._angleAxis.polar=this}return n.prototype.containPoint=function(e){var t=this.pointToCoord(e);return this._radiusAxis.contain(t[0])&&this._angleAxis.contain(t[1])},n.prototype.containData=function(e){return this._radiusAxis.containData(e[0])&&this._angleAxis.containData(e[1])},n.prototype.getAxis=function(e){var t="_"+e+"Axis";return this[t]},n.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},n.prototype.getAxesByScale=function(e){var t=[],i=this._angleAxis,r=this._radiusAxis;return i.scale.type===e&&t.push(i),r.scale.type===e&&t.push(r),t},n.prototype.getAngleAxis=function(){return this._angleAxis},n.prototype.getRadiusAxis=function(){return this._radiusAxis},n.prototype.getOtherAxis=function(e){var t=this._angleAxis;return e===t?this._radiusAxis:t},n.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},n.prototype.getTooltipAxes=function(e){var t=e!=null&&e!=="auto"?this.getAxis(e):this.getBaseAxis();return{baseAxes:[t],otherAxes:[this.getOtherAxis(t)]}},n.prototype.dataToPoint=function(e,t){return this.coordToPoint([this._radiusAxis.dataToRadius(e[0],t),this._angleAxis.dataToAngle(e[1],t)])},n.prototype.pointToData=function(e,t){var i=this.pointToCoord(e);return[this._radiusAxis.radiusToData(i[0],t),this._angleAxis.angleToData(i[1],t)]},n.prototype.pointToCoord=function(e){var t=e[0]-this.cx,i=e[1]-this.cy,r=this.getAngleAxis(),a=r.getExtent(),o=Math.min(a[0],a[1]),s=Math.max(a[0],a[1]);r.inverse?o=s-360:s=o+360;var l=Math.sqrt(t*t+i*i);t/=l,i/=l;for(var u=Math.atan2(-i,t)/Math.PI*180,c=u<o?1:-1;u<o||u>s;)u+=c*360;return[l,u]},n.prototype.coordToPoint=function(e){var t=e[0],i=e[1]/180*Math.PI,r=Math.cos(i)*t+this.cx,a=-Math.sin(i)*t+this.cy;return[r,a]},n.prototype.getArea=function(){var e=this.getAngleAxis(),t=this.getRadiusAxis(),i=t.getExtent().slice();i[0]>i[1]&&i.reverse();var r=e.getExtent(),a=Math.PI/180,o=1e-4;return{cx:this.cx,cy:this.cy,r0:i[0],r:i[1],startAngle:-r[0]*a,endAngle:-r[1]*a,clockwise:e.inverse,contain:function(s,l){var u=s-this.cx,c=l-this.cy,h=u*u+c*c,f=this.r,d=this.r0;return f!==d&&h-o<=f*f&&h+o>=d*d}}},n.prototype.convertToPixel=function(e,t,i){var r=sP(t);return r===this?this.dataToPoint(i):null},n.prototype.convertFromPixel=function(e,t,i){var r=sP(t);return r===this?this.pointToData(i):null},n}();function sP(n){var e=n.seriesModel,t=n.polarModel;return t&&t.coordinateSystem||e&&e.coordinateSystem}function jZ(n,e,t){var i=e.get("center"),r=t.getWidth(),a=t.getHeight();n.cx=Mt(i[0],r),n.cy=Mt(i[1],a);var o=n.getRadiusAxis(),s=Math.min(r,a)/2,l=e.get("radius");l==null?l=[0,"100%"]:ht(l)||(l=[0,l]);var u=[Mt(l[0],s),Mt(l[1],s)];o.inverse?o.setExtent(u[1],u[0]):o.setExtent(u[0],u[1])}function HZ(n,e){var t=this,i=t.getAngleAxis(),r=t.getRadiusAxis();if(i.scale.setExtent(1/0,-1/0),r.scale.setExtent(1/0,-1/0),n.eachSeries(function(s){if(s.coordinateSystem===t){var l=s.getData();E(qd(l,"radius"),function(u){r.scale.unionExtentFromData(l,u)}),E(qd(l,"angle"),function(u){i.scale.unionExtentFromData(l,u)})}}),El(i.scale,i.model),El(r.scale,r.model),i.type==="category"&&!i.onBand){var a=i.getExtent(),o=360/i.scale.count();i.inverse?a[1]+=o:a[1]-=o,i.setExtent(a[0],a[1])}}function UZ(n){return n.mainType==="angleAxis"}function lP(n,e){var t;if(n.type=e.get("type"),n.scale=Zd(e),n.onBand=e.get("boundaryGap")&&n.type==="category",n.inverse=e.get("inverse"),UZ(e)){n.inverse=n.inverse!==e.get("clockwise");var i=e.get("startAngle"),r=(t=e.get("endAngle"))!==null&&t!==void 0?t:i+(n.inverse?-360:360);n.setExtent(i,r)}e.axis=n,n.model=e}var XZ={dimensions:oP,create:function(n,e){var t=[];return n.eachComponent("polar",function(i,r){var a=new GZ(r+"");a.update=HZ;var o=a.getRadiusAxis(),s=a.getAngleAxis(),l=i.findAxisModel("radiusAxis"),u=i.findAxisModel("angleAxis");lP(o,l),lP(s,u),jZ(a,i,e),t.push(a),i.coordinateSystem=a,a.model=i}),n.eachSeries(function(i){if(i.get("coordinateSystem")==="polar"){var r=i.getReferringComponents("polar",en).models[0];i.coordinateSystem=r.coordinateSystem}}),t}},ZZ=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function Nf(n,e,t){e[1]>e[0]&&(e=e.slice().reverse());var i=n.coordToPoint([e[0],t]),r=n.coordToPoint([e[1],t]);return{x1:i[0],y1:i[1],x2:r[0],y2:r[1]}}function zf(n){var e=n.getRadiusAxis();return e.inverse?0:1}function uP(n){var e=n[0],t=n[n.length-1];e&&t&&Math.abs(Math.abs(e.coord-t.coord)-360)<1e-4&&n.pop()}var qZ=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.axisPointerClass="PolarAxisPointer",t}return e.prototype.render=function(t,i){if(this.group.removeAll(),!!t.get("show")){var r=t.axis,a=r.polar,o=a.getRadiusAxis().getExtent(),s=r.getTicksCoords(),l=r.getMinorTicksCoords(),u=pt(r.getViewLabels(),function(c){c=Wt(c);var h=r.scale,f=h.type==="ordinal"?h.getRawOrdinalNumber(c.tickValue):c.tickValue;return c.coord=r.dataToCoord(f),c});uP(u),uP(s),E(ZZ,function(c){t.get([c,"show"])&&(!r.scale.isBlank()||c==="axisLine")&&KZ[c](this.group,t,a,s,l,o,u)},this)}},e.type="angleAxis",e}(Ts),KZ={axisLine:function(n,e,t,i,r,a){var o=e.getModel(["axisLine","lineStyle"]),s=t.getAngleAxis(),l=Math.PI/180,u=s.getExtent(),c=zf(t),h=c?0:1,f,d=Math.abs(u[1]-u[0])===360?"Circle":"Arc";a[h]===0?f=new rs[d]({shape:{cx:t.cx,cy:t.cy,r:a[c],startAngle:-u[0]*l,endAngle:-u[1]*l,clockwise:s.inverse},style:o.getLineStyle(),z2:1,silent:!0}):f=new rc({shape:{cx:t.cx,cy:t.cy,r:a[c],r0:a[h]},style:o.getLineStyle(),z2:1,silent:!0}),f.style.fill=null,n.add(f)},axisTick:function(n,e,t,i,r,a){var o=e.getModel("axisTick"),s=(o.get("inside")?-1:1)*o.get("length"),l=a[zf(t)],u=pt(i,function(c){return new fn({shape:Nf(t,[l,l+s],c.coord)})});n.add(zi(u,{style:Bt(o.getModel("lineStyle").getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])})}))},minorTick:function(n,e,t,i,r,a){if(r.length){for(var o=e.getModel("axisTick"),s=e.getModel("minorTick"),l=(o.get("inside")?-1:1)*s.get("length"),u=a[zf(t)],c=[],h=0;h<r.length;h++)for(var f=0;f<r[h].length;f++)c.push(new fn({shape:Nf(t,[u,u+l],r[h][f].coord)}));n.add(zi(c,{style:Bt(s.getModel("lineStyle").getLineStyle(),Bt(o.getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])}))}))}},axisLabel:function(n,e,t,i,r,a,o){var s=e.getCategories(!0),l=e.getModel("axisLabel"),u=l.get("margin"),c=e.get("triggerEvent");E(o,function(h,f){var d=l,g=h.tickValue,y=a[zf(t)],_=t.coordToPoint([y+u,h.coord]),v=t.cx,p=t.cy,x=Math.abs(_[0]-v)/y<.3?"center":_[0]>v?"left":"right",b=Math.abs(_[1]-p)/y<.3?"middle":_[1]>p?"top":"bottom";if(s&&s[g]){var S=s[g];Vt(S)&&S.textStyle&&(d=new Ce(S.textStyle,l,l.ecModel))}var M=new fe({silent:ti.isLabelSilent(e),style:Ee(d,{x:_[0],y:_[1],fill:d.getTextColor()||e.get(["axisLine","lineStyle","color"]),text:h.formattedLabel,align:x,verticalAlign:b})});if(n.add(M),c){var I=ti.makeAxisEventDataBase(e);I.targetType="axisLabel",I.value=h.rawLabel,jt(M).eventData=I}},this)},splitLine:function(n,e,t,i,r,a){var o=e.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],h=0;h<i.length;h++){var f=u++%l.length;c[f]=c[f]||[],c[f].push(new fn({shape:Nf(t,a,i[h].coord)}))}for(var h=0;h<c.length;h++)n.add(zi(c[h],{style:Bt({stroke:l[h%l.length]},s.getLineStyle()),silent:!0,z:e.get("z")}))},minorSplitLine:function(n,e,t,i,r,a){if(r.length){for(var o=e.getModel("minorSplitLine"),s=o.getModel("lineStyle"),l=[],u=0;u<r.length;u++)for(var c=0;c<r[u].length;c++)l.push(new fn({shape:Nf(t,a,r[u][c].coord)}));n.add(zi(l,{style:s.getLineStyle(),silent:!0,z:e.get("z")}))}},splitArea:function(n,e,t,i,r,a){if(i.length){var o=e.getModel("splitArea"),s=o.getModel("areaStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],h=Math.PI/180,f=-i[0].coord*h,d=Math.min(a[0],a[1]),g=Math.max(a[0],a[1]),y=e.get("clockwise"),_=1,v=i.length;_<=v;_++){var p=_===v?i[0].coord:i[_].coord,x=u++%l.length;c[x]=c[x]||[],c[x].push(new qn({shape:{cx:t.cx,cy:t.cy,r0:d,r:g,startAngle:f,endAngle:-p*h,clockwise:y},silent:!0})),f=-p*h}for(var _=0;_<c.length;_++)n.add(zi(c[_],{style:Bt({fill:l[_%l.length]},s.getAreaStyle()),silent:!0}))}}},YZ=["axisLine","axisTickLabel","axisName"],JZ=["splitLine","splitArea","minorSplitLine"],$Z=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.axisPointerClass="PolarAxisPointer",t}return e.prototype.render=function(t,i){if(this.group.removeAll(),!!t.get("show")){var r=this._axisGroup,a=this._axisGroup=new Gt;this.group.add(a);var o=t.axis,s=o.polar,l=s.getAngleAxis(),u=o.getTicksCoords(),c=o.getMinorTicksCoords(),h=l.getExtent()[0],f=o.getExtent(),d=tq(s,t,h),g=new ti(t,d);E(YZ,g.add,g),a.add(g.getGroup()),lc(r,a,t),E(JZ,function(y){t.get([y,"show"])&&!o.scale.isBlank()&&QZ[y](this.group,t,s,h,f,u,c)},this)}},e.type="radiusAxis",e}(Ts),QZ={splitLine:function(n,e,t,i,r,a){var o=e.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=0,c=t.getAngleAxis(),h=Math.PI/180,f=c.getExtent(),d=Math.abs(f[1]-f[0])===360?"Circle":"Arc";l=l instanceof Array?l:[l];for(var g=[],y=0;y<a.length;y++){var _=u++%l.length;g[_]=g[_]||[],g[_].push(new rs[d]({shape:{cx:t.cx,cy:t.cy,r:Math.max(a[y].coord,0),startAngle:-f[0]*h,endAngle:-f[1]*h,clockwise:c.inverse}}))}for(var y=0;y<g.length;y++)n.add(zi(g[y],{style:Bt({stroke:l[y%l.length],fill:null},s.getLineStyle()),silent:!0}))},minorSplitLine:function(n,e,t,i,r,a,o){if(o.length){for(var s=e.getModel("minorSplitLine"),l=s.getModel("lineStyle"),u=[],c=0;c<o.length;c++)for(var h=0;h<o[c].length;h++)u.push(new ca({shape:{cx:t.cx,cy:t.cy,r:o[c][h].coord}}));n.add(zi(u,{style:Bt({fill:null},l.getLineStyle()),silent:!0}))}},splitArea:function(n,e,t,i,r,a){if(a.length){var o=e.getModel("splitArea"),s=o.getModel("areaStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],h=a[0].coord,f=1;f<a.length;f++){var d=u++%l.length;c[d]=c[d]||[],c[d].push(new qn({shape:{cx:t.cx,cy:t.cy,r0:h,r:a[f].coord,startAngle:0,endAngle:Math.PI*2},silent:!0})),h=a[f].coord}for(var f=0;f<c.length;f++)n.add(zi(c[f],{style:Bt({fill:l[f%l.length]},s.getAreaStyle()),silent:!0}))}}};function tq(n,e,t){return{position:[n.cx,n.cy],rotation:t/180*Math.PI,labelDirection:-1,tickDirection:-1,nameDirection:1,labelRotate:e.getModel("axisLabel").get("rotate"),z2:1}}function cP(n){return n.get("stack")||"__ec_stack_"+n.seriesIndex}function hP(n,e){return e.dim+n.model.componentIndex}function eq(n,e,t){var i={},r=nq(Se(e.getSeriesByType(n),function(a){return!e.isSeriesFiltered(a)&&a.coordinateSystem&&a.coordinateSystem.type==="polar"}));e.eachSeriesByType(n,function(a){if(a.coordinateSystem.type==="polar"){var o=a.getData(),s=a.coordinateSystem,l=s.getBaseAxis(),u=hP(s,l),c=cP(a),h=r[u][c],f=h.offset,d=h.width,g=s.getOtherAxis(l),y=a.coordinateSystem.cx,_=a.coordinateSystem.cy,v=a.get("barMinHeight")||0,p=a.get("barMinAngle")||0;i[c]=i[c]||[];for(var x=o.mapDimension(g.dim),b=o.mapDimension(l.dim),S=no(o,x),M=l.dim!=="radius"||!a.get("roundCap",!0),I=g.model,A=I.get("startValue"),C=g.dataToCoord(A||0),L=0,R=o.count();L<R;L++){var D=o.get(x,L),N=o.get(b,L),k=D>=0?"p":"n",O=C;S&&(i[c][N]||(i[c][N]={p:C,n:C}),O=i[c][N][k]);var F=void 0,G=void 0,q=void 0,j=void 0;if(g.dim==="radius"){var J=g.dataToCoord(D)-C,H=l.dataToCoord(N);Math.abs(J)<v&&(J=(J<0?-1:1)*v),F=O,G=O+J,q=H-f,j=q-d,S&&(i[c][N][k]=G)}else{var K=g.dataToCoord(D,M)-C,ut=l.dataToCoord(N);Math.abs(K)<p&&(K=(K<0?-1:1)*p),F=ut+f,G=F+d,q=O,j=O+K,S&&(i[c][N][k]=j)}o.setItemLayout(L,{cx:y,cy:_,r0:F,r:G,startAngle:-q*Math.PI/180,endAngle:-j*Math.PI/180,clockwise:q>=j})}}})}function nq(n){var e={};E(n,function(i,r){var a=i.getData(),o=i.coordinateSystem,s=o.getBaseAxis(),l=hP(o,s),u=s.getExtent(),c=s.type==="category"?s.getBandWidth():Math.abs(u[1]-u[0])/a.count(),h=e[l]||{bandWidth:c,remainedWidth:c,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},f=h.stacks;e[l]=h;var d=cP(i);f[d]||h.autoWidthCount++,f[d]=f[d]||{width:0,maxWidth:0};var g=Mt(i.get("barWidth"),c),y=Mt(i.get("barMaxWidth"),c),_=i.get("barGap"),v=i.get("barCategoryGap");g&&!f[d].width&&(g=Math.min(h.remainedWidth,g),f[d].width=g,h.remainedWidth-=g),y&&(f[d].maxWidth=y),_!=null&&(h.gap=_),v!=null&&(h.categoryGap=v)});var t={};return E(e,function(i,r){t[r]={};var a=i.stacks,o=i.bandWidth,s=Mt(i.categoryGap,o),l=Mt(i.gap,1),u=i.remainedWidth,c=i.autoWidthCount,h=(u-s)/(c+(c-1)*l);h=Math.max(h,0),E(a,function(y,_){var v=y.maxWidth;v&&v<h&&(v=Math.min(v,u),y.width&&(v=Math.min(v,y.width)),u-=v,y.width=v,c--)}),h=(u-s)/(c+(c-1)*l),h=Math.max(h,0);var f=0,d;E(a,function(y,_){y.width||(y.width=h),d=y,f+=y.width*(1+l)}),d&&(f-=d.width*l);var g=-f/2;E(a,function(y,_){t[r][_]=t[r][_]||{offset:g,width:y.width},g+=y.width*(1+l)})}),t}var iq={startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:0}},rq={splitNumber:5},aq=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="polar",e}(je);function oq(n){ie(fh),Ts.registerAxisPointerClass("PolarAxisPointer",zZ),n.registerCoordinateSystem("polar",XZ),n.registerComponentModel(BZ),n.registerComponentView(aq),Wl(n,"angle",VZ,iq),Wl(n,"radius",FZ,rq),n.registerComponentView(qZ),n.registerComponentView($Z),n.registerLayout(Zt(eq,"bar"))}function T_(n,e){e=e||{};var t=n.coordinateSystem,i=n.axis,r={},a=i.position,o=i.orient,s=t.getRect(),l=[s.x,s.x+s.width,s.y,s.y+s.height],u={horizontal:{top:l[2],bottom:l[3]},vertical:{left:l[0],right:l[1]}};r.position=[o==="vertical"?u.vertical[a]:l[0],o==="horizontal"?u.horizontal[a]:l[3]];var c={horizontal:0,vertical:1};r.rotation=Math.PI/2*c[o];var h={top:-1,bottom:1,right:1,left:-1};r.labelDirection=r.tickDirection=r.nameDirection=h[a],n.get(["axisTick","inside"])&&(r.tickDirection=-r.tickDirection),bn(e.labelInside,n.get(["axisLabel","inside"]))&&(r.labelDirection=-r.labelDirection);var f=e.rotate;return f==null&&(f=n.get(["axisLabel","rotate"])),r.labelRotation=a==="top"?-f:f,r.z2=1,r}var sq=["axisLine","axisTickLabel","axisName"],lq=["splitArea","splitLine"],uq=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.axisPointerClass="SingleAxisPointer",t}return e.prototype.render=function(t,i,r,a){var o=this.group;o.removeAll();var s=this._axisGroup;this._axisGroup=new Gt;var l=T_(t),u=new ti(t,l);E(sq,u.add,u),o.add(this._axisGroup),o.add(u.getGroup()),E(lq,function(c){t.get([c,"show"])&&cq[c](this,this.group,this._axisGroup,t)},this),lc(s,this._axisGroup,t),n.prototype.render.call(this,t,i,r,a)},e.prototype.remove=function(){zC(this)},e.type="singleAxis",e}(Ts),cq={splitLine:function(n,e,t,i){var r=i.axis;if(!r.scale.isBlank()){var a=i.getModel("splitLine"),o=a.getModel("lineStyle"),s=o.get("color");s=s instanceof Array?s:[s];for(var l=o.get("width"),u=i.coordinateSystem.getRect(),c=r.isHorizontal(),h=[],f=0,d=r.getTicksCoords({tickModel:a}),g=[],y=[],_=0;_<d.length;++_){var v=r.toGlobalCoord(d[_].coord);c?(g[0]=v,g[1]=u.y,y[0]=v,y[1]=u.y+u.height):(g[0]=u.x,g[1]=v,y[0]=u.x+u.width,y[1]=v);var p=new fn({shape:{x1:g[0],y1:g[1],x2:y[0],y2:y[1]},silent:!0});gl(p.shape,l);var x=f++%s.length;h[x]=h[x]||[],h[x].push(p)}for(var b=o.getLineStyle(["color"]),_=0;_<h.length;++_)e.add(zi(h[_],{style:Bt({stroke:s[_%s.length]},b),silent:!0}))}},splitArea:function(n,e,t,i){NC(n,t,i,i)}},Ef=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getCoordSysModel=function(){return this},e.type="singleAxis",e.layoutMode="box",e.defaultOption={left:"5%",top:"5%",right:"5%",bottom:"5%",type:"value",position:"bottom",orient:"horizontal",axisLine:{show:!0,lineStyle:{width:1,type:"solid"}},tooltip:{show:!0},axisTick:{show:!0,length:6,lineStyle:{width:1}},axisLabel:{show:!0,interval:"auto"},splitLine:{show:!0,lineStyle:{type:"dashed",opacity:.2}}},e}(le);tn(Ef,Oc.prototype);var hq=function(n){Q(e,n);function e(t,i,r,a,o){var s=n.call(this,t,i,r)||this;return s.type=a||"value",s.position=o||"bottom",s}return e.prototype.isHorizontal=function(){var t=this.position;return t==="top"||t==="bottom"},e.prototype.pointToData=function(t,i){return this.coordinateSystem.pointToData(t)[0]},e}(dr),pP=["single"],pq=function(){function n(e,t,i){this.type="single",this.dimension="single",this.dimensions=pP,this.axisPointerEnabled=!0,this.model=e,this._init(e,t,i)}return n.prototype._init=function(e,t,i){var r=this.dimension,a=new hq(r,Zd(e),[0,0],e.get("type"),e.get("position")),o=a.type==="category";a.onBand=o&&e.get("boundaryGap"),a.inverse=e.get("inverse"),a.orient=e.get("orient"),e.axis=a,a.model=e,a.coordinateSystem=this,this._axis=a},n.prototype.update=function(e,t){e.eachSeries(function(i){if(i.coordinateSystem===this){var r=i.getData();E(r.mapDimensionsAll(this.dimension),function(a){this._axis.scale.unionExtentFromData(r,a)},this),El(this._axis.scale,this._axis.model)}},this)},n.prototype.resize=function(e,t){this._rect=un({left:e.get("left"),top:e.get("top"),right:e.get("right"),bottom:e.get("bottom"),width:e.get("width"),height:e.get("height")},{width:t.getWidth(),height:t.getHeight()}),this._adjustAxis()},n.prototype.getRect=function(){return this._rect},n.prototype._adjustAxis=function(){var e=this._rect,t=this._axis,i=t.isHorizontal(),r=i?[0,e.width]:[0,e.height],a=t.inverse?1:0;t.setExtent(r[a],r[1-a]),this._updateAxisTransform(t,i?e.x:e.y)},n.prototype._updateAxisTransform=function(e,t){var i=e.getExtent(),r=i[0]+i[1],a=e.isHorizontal();e.toGlobalCoord=a?function(o){return o+t}:function(o){return r-o+t},e.toLocalCoord=a?function(o){return o-t}:function(o){return r-o+t}},n.prototype.getAxis=function(){return this._axis},n.prototype.getBaseAxis=function(){return this._axis},n.prototype.getAxes=function(){return[this._axis]},n.prototype.getTooltipAxes=function(){return{baseAxes:[this.getAxis()],otherAxes:[]}},n.prototype.containPoint=function(e){var t=this.getRect(),i=this.getAxis(),r=i.orient;return r==="horizontal"?i.contain(i.toLocalCoord(e[0]))&&e[1]>=t.y&&e[1]<=t.y+t.height:i.contain(i.toLocalCoord(e[1]))&&e[0]>=t.y&&e[0]<=t.y+t.height},n.prototype.pointToData=function(e){var t=this.getAxis();return[t.coordToData(t.toLocalCoord(e[t.orient==="horizontal"?0:1]))]},n.prototype.dataToPoint=function(e){var t=this.getAxis(),i=this.getRect(),r=[],a=t.orient==="horizontal"?0:1;return e instanceof Array&&(e=e[0]),r[a]=t.toGlobalCoord(t.dataToCoord(+e)),r[1-a]=a===0?i.y+i.height/2:i.x+i.width/2,r},n.prototype.convertToPixel=function(e,t,i){var r=dP(t);return r===this?this.dataToPoint(i):null},n.prototype.convertFromPixel=function(e,t,i){var r=dP(t);return r===this?this.pointToData(i):null},n}();function dP(n){var e=n.seriesModel,t=n.singleAxisModel;return t&&t.coordinateSystem||e&&e.coordinateSystem}function dq(n,e){var t=[];return n.eachComponent("singleAxis",function(i,r){var a=new pq(i,n,e);a.name="single_"+r,a.resize(i,e),i.coordinateSystem=a,t.push(a)}),n.eachSeries(function(i){if(i.get("coordinateSystem")==="singleAxis"){var r=i.getReferringComponents("singleAxis",en).models[0];i.coordinateSystem=r&&r.coordinateSystem}}),t}var fq={create:dq,dimensions:pP},fP=["x","y"],gq=["width","height"],vq=function(n){Q(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.makeElOption=function(t,i,r,a,o){var s=r.axis,l=s.coordinateSystem,u=A_(l,1-Of(s)),c=l.dataToPoint(i)[0],h=a.get("type");if(h&&h!=="none"){var f=__(a),d=yq[h](s,c,u);d.style=f,t.graphicKey=d.type,t.pointer=d}var g=T_(r);KD(i,t,g,r,a,o)},e.prototype.getHandleTransform=function(t,i,r){var a=T_(i,{labelInside:!1});a.labelMargin=r.get(["handle","margin"]);var o=x_(i.axis,t,a);return{x:o[0],y:o[1],rotation:a.rotation+(a.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,i,r,a){var o=r.axis,s=o.coordinateSystem,l=Of(o),u=A_(s,l),c=[t.x,t.y];c[l]+=i[l],c[l]=Math.min(u[1],c[l]),c[l]=Math.max(u[0],c[l]);var h=A_(s,1-l),f=(h[1]+h[0])/2,d=[f,f];return d[l]=c[l],{x:c[0],y:c[1],rotation:t.rotation,cursorPoint:d,tooltipOption:{verticalAlign:"middle"}}},e}(y_),yq={line:function(n,e,t){var i=b_([e,t[0]],[e,t[1]],Of(n));return{type:"Line",subPixelOptimize:!0,shape:i}},shadow:function(n,e,t){var i=n.getBandWidth(),r=t[1]-t[0];return{type:"Rect",shape:YD([e-i/2,t[0]],[i,r],Of(n))}}};function Of(n){return n.isHorizontal()?0:1}function A_(n,e){var t=n.getRect();return[t[fP[e]],t[fP[e]]+t[gq[e]]]}var mq=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="single",e}(je);function _q(n){ie(fh),Ts.registerAxisPointerClass("SingleAxisPointer",vq),n.registerComponentView(mq),n.registerComponentView(uq),n.registerComponentModel(Ef),Wl(n,"single",Ef,Ef.defaultOption),n.registerCoordinateSystem("single",fq)}var xq=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,i,r){var a=wl(t);n.prototype.init.apply(this,arguments),gP(t,a)},e.prototype.mergeOption=function(t){n.prototype.mergeOption.apply(this,arguments),gP(this.option,t)},e.prototype.getCellSize=function(){return this.option.cellSize},e.type="calendar",e.defaultOption={z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{color:"#fff",borderWidth:1,borderColor:"#ccc"},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},e}(le);function gP(n,e){var t=n.cellSize,i;ht(t)?i=t:i=n.cellSize=[t,t],i.length===1&&(i[1]=i[0]);var r=pt([0,1],function(a){return F4(e,a)&&(i[a]="auto"),i[a]!=null&&i[a]!=="auto"});Ya(n,e,{type:"box",ignoreSize:r})}var bq=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,i,r){var a=this.group;a.removeAll();var o=t.coordinateSystem,s=o.getRangeInfo(),l=o.getOrient(),u=i.getLocaleModel();this._renderDayRect(t,s,a),this._renderLines(t,s,l,a),this._renderYearText(t,s,l,a),this._renderMonthText(t,u,l,a),this._renderWeekText(t,u,s,l,a)},e.prototype._renderDayRect=function(t,i,r){for(var a=t.coordinateSystem,o=t.getModel("itemStyle").getItemStyle(),s=a.getCellWidth(),l=a.getCellHeight(),u=i.start.time;u<=i.end.time;u=a.getNextNDay(u,1).time){var c=a.dataToRect([u],!1).tl,h=new de({shape:{x:c[0],y:c[1],width:s,height:l},cursor:"default",style:o});r.add(h)}},e.prototype._renderLines=function(t,i,r,a){var o=this,s=t.coordinateSystem,l=t.getModel(["splitLine","lineStyle"]).getLineStyle(),u=t.get(["splitLine","show"]),c=l.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var h=i.start,f=0;h.time<=i.end.time;f++){g(h.formatedDate),f===0&&(h=s.getDateInfo(i.start.y+"-"+i.start.m));var d=h.date;d.setMonth(d.getMonth()+1),h=s.getDateInfo(d)}g(s.getNextNDay(i.end.time,1).formatedDate);function g(y){o._firstDayOfMonth.push(s.getDateInfo(y)),o._firstDayPoints.push(s.dataToRect([y],!1).tl);var _=o._getLinePointsOfOneWeek(t,y,r);o._tlpoints.push(_[0]),o._blpoints.push(_[_.length-1]),u&&o._drawSplitline(_,l,a)}u&&this._drawSplitline(o._getEdgesPoints(o._tlpoints,c,r),l,a),u&&this._drawSplitline(o._getEdgesPoints(o._blpoints,c,r),l,a)},e.prototype._getEdgesPoints=function(t,i,r){var a=[t[0].slice(),t[t.length-1].slice()],o=r==="horizontal"?0:1;return a[0][o]=a[0][o]-i/2,a[1][o]=a[1][o]+i/2,a},e.prototype._drawSplitline=function(t,i,r){var a=new Yn({z2:20,shape:{points:t},style:i});r.add(a)},e.prototype._getLinePointsOfOneWeek=function(t,i,r){for(var a=t.coordinateSystem,o=a.getDateInfo(i),s=[],l=0;l<7;l++){var u=a.getNextNDay(o.time,l),c=a.dataToRect([u.time],!1);s[2*u.day]=c.tl,s[2*u.day+1]=c[r==="horizontal"?"bl":"tr"]}return s},e.prototype._formatterLabel=function(t,i){return Tt(t)&&t?O4(t,i):Ot(t)?t(i):i.nameMap},e.prototype._yearTextPositionControl=function(t,i,r,a,o){var s=i[0],l=i[1],u=["center","bottom"];a==="bottom"?(l+=o,u=["center","top"]):a==="left"?s-=o:a==="right"?(s+=o,u=["center","top"]):l-=o;var c=0;return(a==="left"||a==="right")&&(c=Math.PI/2),{rotation:c,x:s,y:l,style:{align:u[0],verticalAlign:u[1]}}},e.prototype._renderYearText=function(t,i,r,a){var o=t.getModel("yearLabel");if(o.get("show")){var s=o.get("margin"),l=o.get("position");l||(l=r!=="horizontal"?"top":"left");var u=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],c=(u[0][0]+u[1][0])/2,h=(u[0][1]+u[1][1])/2,f=r==="horizontal"?0:1,d={top:[c,u[f][1]],bottom:[c,u[1-f][1]],left:[u[1-f][0],h],right:[u[f][0],h]},g=i.start.y;+i.end.y>+i.start.y&&(g=g+"-"+i.end.y);var y=o.get("formatter"),_={start:i.start.y,end:i.end.y,nameMap:g},v=this._formatterLabel(y,_),p=new fe({z2:30,style:Ee(o,{text:v}),silent:o.get("silent")});p.attr(this._yearTextPositionControl(p,d[l],r,l,s)),a.add(p)}},e.prototype._monthTextPositionControl=function(t,i,r,a,o){var s="left",l="top",u=t[0],c=t[1];return r==="horizontal"?(c=c+o,i&&(s="center"),a==="start"&&(l="bottom")):(u=u+o,i&&(l="middle"),a==="start"&&(s="right")),{x:u,y:c,align:s,verticalAlign:l}},e.prototype._renderMonthText=function(t,i,r,a){var o=t.getModel("monthLabel");if(o.get("show")){var s=o.get("nameMap"),l=o.get("margin"),u=o.get("position"),c=o.get("align"),h=[this._tlpoints,this._blpoints];(!s||Tt(s))&&(s&&(i=Yy(s)||i),s=i.get(["time","monthAbbr"])||[]);var f=u==="start"?0:1,d=r==="horizontal"?0:1;l=u==="start"?-l:l;for(var g=c==="center",y=o.get("silent"),_=0;_<h[f].length-1;_++){var v=h[f][_].slice(),p=this._firstDayOfMonth[_];if(g){var x=this._firstDayPoints[_];v[d]=(x[d]+h[0][_+1][d])/2}var b=o.get("formatter"),S=s[+p.m-1],M={yyyy:p.y,yy:(p.y+"").slice(2),MM:p.m,M:+p.m,nameMap:S},I=this._formatterLabel(b,M),A=new fe({z2:30,style:lt(Ee(o,{text:I}),this._monthTextPositionControl(v,g,r,u,l)),silent:y});a.add(A)}}},e.prototype._weekTextPositionControl=function(t,i,r,a,o){var s="center",l="middle",u=t[0],c=t[1],h=r==="start";return i==="horizontal"?(u=u+a+(h?1:-1)*o[0]/2,s=h?"right":"left"):(c=c+a+(h?1:-1)*o[1]/2,l=h?"bottom":"top"),{x:u,y:c,align:s,verticalAlign:l}},e.prototype._renderWeekText=function(t,i,r,a,o){var s=t.getModel("dayLabel");if(s.get("show")){var l=t.coordinateSystem,u=s.get("position"),c=s.get("nameMap"),h=s.get("margin"),f=l.getFirstDayOfWeek();if(!c||Tt(c)){c&&(i=Yy(c)||i);var d=i.get(["time","dayOfWeekShort"]);c=d||pt(i.get(["time","dayOfWeekAbbr"]),function(M){return M[0]})}var g=l.getNextNDay(r.end.time,7-r.lweek).time,y=[l.getCellWidth(),l.getCellHeight()];h=Mt(h,Math.min(y[1],y[0])),u==="start"&&(g=l.getNextNDay(r.start.time,-(7+r.fweek)).time,h=-h);for(var _=s.get("silent"),v=0;v<7;v++){var p=l.getNextNDay(g,v),x=l.dataToRect([p.time],!1).center,b=v;b=Math.abs((v+f)%7);var S=new fe({z2:30,style:lt(Ee(s,{text:c[b]}),this._weekTextPositionControl(x,a,u,h,y)),silent:_});o.add(S)}}},e.type="calendar",e}(je),C_=864e5,wq=function(){function n(e,t,i){this.type="calendar",this.dimensions=n.dimensions,this.getDimensionsInfo=n.getDimensionsInfo,this._model=e}return n.getDimensionsInfo=function(){return[{name:"time",type:"time"},"value"]},n.prototype.getRangeInfo=function(){return this._rangeInfo},n.prototype.getModel=function(){return this._model},n.prototype.getRect=function(){return this._rect},n.prototype.getCellWidth=function(){return this._sw},n.prototype.getCellHeight=function(){return this._sh},n.prototype.getOrient=function(){return this._orient},n.prototype.getFirstDayOfWeek=function(){return this._firstDayOfWeek},n.prototype.getDateInfo=function(e){e=Cr(e);var t=e.getFullYear(),i=e.getMonth()+1,r=i<10?"0"+i:""+i,a=e.getDate(),o=a<10?"0"+a:""+a,s=e.getDay();return s=Math.abs((s+7-this.getFirstDayOfWeek())%7),{y:t+"",m:r,d:o,day:s,time:e.getTime(),formatedDate:t+"-"+r+"-"+o,date:e}},n.prototype.getNextNDay=function(e,t){return t=t||0,t===0?this.getDateInfo(e):(e=new Date(this.getDateInfo(e).time),e.setDate(e.getDate()+t),this.getDateInfo(e))},n.prototype.update=function(e,t){this._firstDayOfWeek=+this._model.getModel("dayLabel").get("firstDay"),this._orient=this._model.get("orient"),this._lineWidth=this._model.getModel("itemStyle").getItemStyle().lineWidth||0,this._rangeInfo=this._getRangeInfo(this._initRangeOption());var i=this._rangeInfo.weeks||1,r=["width","height"],a=this._model.getCellSize().slice(),o=this._model.getBoxLayoutParams(),s=this._orient==="horizontal"?[i,7]:[7,i];E([0,1],function(h){c(a,h)&&(o[r[h]]=a[h]*s[h])});var l={width:t.getWidth(),height:t.getHeight()},u=this._rect=un(o,l);E([0,1],function(h){c(a,h)||(a[h]=u[r[h]]/s[h])});function c(h,f){return h[f]!=null&&h[f]!=="auto"}this._sw=a[0],this._sh=a[1]},n.prototype.dataToPoint=function(e,t){ht(e)&&(e=e[0]),t==null&&(t=!0);var i=this.getDateInfo(e),r=this._rangeInfo,a=i.formatedDate;if(t&&!(i.time>=r.start.time&&i.time<r.end.time+C_))return[NaN,NaN];var o=i.day,s=this._getRangeInfo([r.start.time,a]).nthWeek;return this._orient==="vertical"?[this._rect.x+o*this._sw+this._sw/2,this._rect.y+s*this._sh+this._sh/2]:[this._rect.x+s*this._sw+this._sw/2,this._rect.y+o*this._sh+this._sh/2]},n.prototype.pointToData=function(e){var t=this.pointToDate(e);return t&&t.time},n.prototype.dataToRect=function(e,t){var i=this.dataToPoint(e,t);return{contentShape:{x:i[0]-(this._sw-this._lineWidth)/2,y:i[1]-(this._sh-this._lineWidth)/2,width:this._sw-this._lineWidth,height:this._sh-this._lineWidth},center:i,tl:[i[0]-this._sw/2,i[1]-this._sh/2],tr:[i[0]+this._sw/2,i[1]-this._sh/2],br:[i[0]+this._sw/2,i[1]+this._sh/2],bl:[i[0]-this._sw/2,i[1]+this._sh/2]}},n.prototype.pointToDate=function(e){var t=Math.floor((e[0]-this._rect.x)/this._sw)+1,i=Math.floor((e[1]-this._rect.y)/this._sh)+1,r=this._rangeInfo.range;return this._orient==="vertical"?this._getDateByWeeksAndDay(i,t-1,r):this._getDateByWeeksAndDay(t,i-1,r)},n.prototype.convertToPixel=function(e,t,i){var r=vP(t);return r===this?r.dataToPoint(i):null},n.prototype.convertFromPixel=function(e,t,i){var r=vP(t);return r===this?r.pointToData(i):null},n.prototype.containPoint=function(e){return console.warn("Not implemented."),!1},n.prototype._initRangeOption=function(){var e=this._model.get("range"),t;if(ht(e)&&e.length===1&&(e=e[0]),ht(e))t=e;else{var i=e.toString();if(/^\d{4}$/.test(i)&&(t=[i+"-01-01",i+"-12-31"]),/^\d{4}[\/|-]\d{1,2}$/.test(i)){var r=this.getDateInfo(i),a=r.date;a.setMonth(a.getMonth()+1);var o=this.getNextNDay(a,-1);t=[r.formatedDate,o.formatedDate]}/^\d{4}[\/|-]\d{1,2}[\/|-]\d{1,2}$/.test(i)&&(t=[i,i])}if(!t)return e;var s=this._getRangeInfo(t);return s.start.time>s.end.time&&t.reverse(),t},n.prototype._getRangeInfo=function(e){var t=[this.getDateInfo(e[0]),this.getDateInfo(e[1])],i;t[0].time>t[1].time&&(i=!0,t.reverse());var r=Math.floor(t[1].time/C_)-Math.floor(t[0].time/C_)+1,a=new Date(t[0].time),o=a.getDate(),s=t[1].date.getDate();a.setDate(o+r-1);var l=a.getDate();if(l!==s)for(var u=a.getTime()-t[1].time>0?1:-1;(l=a.getDate())!==s&&(a.getTime()-t[1].time)*u>0;)r-=u,a.setDate(l-u);var c=Math.floor((r+t[0].day+6)/7),h=i?-c+1:c-1;return i&&t.reverse(),{range:[t[0].formatedDate,t[1].formatedDate],start:t[0],end:t[1],allDay:r,weeks:c,nthWeek:h,fweek:t[0].day,lweek:t[1].day}},n.prototype._getDateByWeeksAndDay=function(e,t,i){var r=this._getRangeInfo(i);if(e>r.weeks||e===0&&t<r.fweek||e===r.weeks&&t>r.lweek)return null;var a=(e-1)*7-r.fweek+t,o=new Date(r.start.time);return o.setDate(+r.start.d+a),this.getDateInfo(o)},n.create=function(e,t){var i=[];return e.eachComponent("calendar",function(r){var a=new n(r);i.push(a),r.coordinateSystem=a}),e.eachSeries(function(r){r.get("coordinateSystem")==="calendar"&&(r.coordinateSystem=i[r.get("calendarIndex")||0])}),i},n.dimensions=["time","value"],n}();function vP(n){var e=n.calendarModel,t=n.seriesModel,i=e?e.coordinateSystem:t?t.coordinateSystem:null;return i}function Sq(n){n.registerComponentModel(xq),n.registerComponentView(bq),n.registerCoordinateSystem("calendar",wq)}function Mq(n,e){var t=n.existing;if(e.id=n.keyInfo.id,!e.type&&t&&(e.type=t.type),e.parentId==null){var i=e.parentOption;i?e.parentId=i.id:t&&(e.parentId=t.parentId)}e.parentOption=null}function yP(n,e){var t;return E(e,function(i){n[i]!=null&&n[i]!=="auto"&&(t=!0)}),t}function Iq(n,e,t){var i=lt({},t),r=n[e],a=t.$action||"merge";a==="merge"?r?(Kt(r,i,!0),Ya(r,i,{ignoreSize:!0}),$S(t,r),Bf(t,r),Bf(t,r,"shape"),Bf(t,r,"style"),Bf(t,r,"extra"),t.clipPath=r.clipPath):n[e]=i:a==="replace"?n[e]=i:a==="remove"&&r&&(n[e]=null)}var mP=["transition","enterFrom","leaveTo"],Tq=mP.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function Bf(n,e,t){if(t&&(!n[t]&&e[t]&&(n[t]={}),n=n[t],e=e[t]),!(!n||!e))for(var i=t?mP:Tq,r=0;r<i.length;r++){var a=i[r];n[a]==null&&e[a]!=null&&(n[a]=e[a])}}function Aq(n,e){if(n&&(n.hv=e.hv=[yP(e,["left","right"]),yP(e,["top","bottom"])],n.type==="group")){var t=n,i=e;t.width==null&&(t.width=i.width=0),t.height==null&&(t.height=i.height=0)}}var Cq=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.preventAutoZ=!0,t}return e.prototype.mergeOption=function(t,i){var r=this.option.elements;this.option.elements=null,n.prototype.mergeOption.call(this,t,i),this.option.elements=r},e.prototype.optionUpdated=function(t,i){var r=this.option,a=(i?r:t).elements,o=r.elements=i?[]:r.elements,s=[];this._flatten(a,s,null);var l=s2(o,s,"normalMerge"),u=this._elOptionsToUpdate=[];E(l,function(c,h){var f=c.newOption;f&&(u.push(f),Mq(c,f),Iq(o,h,f),Aq(o[h],f))},this),r.elements=Se(o,function(c){return c&&delete c.$action,c!=null})},e.prototype._flatten=function(t,i,r){E(t,function(a){if(a){r&&(a.parentOption=r),i.push(a);var o=a.children;o&&o.length&&this._flatten(o,i,a),delete a.children}},this)},e.prototype.useElOptionsToUpdate=function(){var t=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,t},e.type="graphic",e.defaultOption={elements:[]},e}(le),_P={path:null,compoundPath:null,group:Gt,image:Sn,text:fe},Ui=pe(),kq=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(){this._elMap=Dt()},e.prototype.render=function(t,i,r){t!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=t,this._updateElements(t),this._relocate(t,r)},e.prototype._updateElements=function(t){var i=t.useElOptionsToUpdate();if(i){var r=this._elMap,a=this.group,o=t.get("z"),s=t.get("zlevel");E(i,function(l){var u=ln(l.id,null),c=u!=null?r.get(u):null,h=ln(l.parentId,null),f=h!=null?r.get(h):a,d=l.type,g=l.style;d==="text"&&g&&l.hv&&l.hv[1]&&(g.textVerticalAlign=g.textBaseline=g.verticalAlign=g.align=null);var y=l.textContent,_=l.textConfig;if(g&&SD(g,d,!!_,!!y)){var v=MD(g,d,!0);!_&&v.textConfig&&(_=l.textConfig=v.textConfig),!y&&v.textContent&&(y=v.textContent)}var p=Lq(l),x=l.$action||"merge",b=x==="merge",S=x==="replace";if(b){var M=!c,I=c;M?I=xP(u,f,l.type,r):(I&&(Ui(I).isNew=!1),ND(I)),I&&(kf(I,p,t,{isInit:M}),bP(I,l,o,s))}else if(S){Vf(c,l,r,t);var A=xP(u,f,l.type,r);A&&(kf(A,p,t,{isInit:!0}),bP(A,l,o,s))}else x==="remove"&&(LD(c,l),Vf(c,l,r,t));var C=r.get(u);if(C&&y)if(b){var L=C.getTextContent();L?L.attr(y):C.setTextContent(new fe(y))}else S&&C.setTextContent(new fe(y));if(C){var R=l.clipPath;if(R){var D=R.type,N=void 0,M=!1;if(b){var k=C.getClipPath();M=!k||Ui(k).type!==D,N=M?k_(D):k}else S&&(M=!0,N=k_(D));C.setClipPath(N),kf(N,R,t,{isInit:M}),Df(N,R.keyframeAnimation,t)}var O=Ui(C);C.setTextConfig(_),O.option=l,Dq(C,t,l),is({el:C,componentModel:t,itemName:C.name,itemTooltipOption:l.tooltip}),Df(C,l.keyframeAnimation,t)}})}},e.prototype._relocate=function(t,i){for(var r=t.option.elements,a=this.group,o=this._elMap,s=i.getWidth(),l=i.getHeight(),u=["x","y"],c=0;c<r.length;c++){var h=r[c],f=ln(h.id,null),d=f!=null?o.get(f):null;if(!(!d||!d.isGroup)){var g=d.parent,y=g===a,_=Ui(d),v=Ui(g);_.width=Mt(_.option.width,y?s:v.width)||0,_.height=Mt(_.option.height,y?l:v.height)||0}}for(var c=r.length-1;c>=0;c--){var h=r[c],f=ln(h.id,null),d=f!=null?o.get(f):null;if(d){var g=d.parent,v=Ui(g),p=g===a?{width:s,height:l}:{width:v.width,height:v.height},x={},b=gd(d,h,p,null,{hv:h.hv,boundingMode:h.bounding},x);if(!Ui(d).isNew&&b){for(var S=h.transition,M={},I=0;I<u.length;I++){var A=u[I],C=x[A];S&&(zs(S)||Qt(S,A)>=0)?M[A]=C:d[A]=C}me(d,M,t,0)}else d.attr(x)}}},e.prototype._clear=function(){var t=this,i=this._elMap;i.each(function(r){Vf(r,Ui(r).option,i,t._lastGraphicModel)}),this._elMap=Dt()},e.prototype.dispose=function(){this._clear()},e.type="graphic",e}(je);function k_(n){var e=Lt(_P,n)?_P[n]:Gy(n),t=new e({});return Ui(t).type=n,t}function xP(n,e,t,i){var r=k_(t);return e.add(r),i.set(n,r),Ui(r).id=n,Ui(r).isNew=!0,r}function Vf(n,e,t,i){var r=n&&n.parent;r&&(n.type==="group"&&n.traverse(function(a){Vf(a,e,t,i)}),Lf(n,e,i),t.removeKey(Ui(n).id))}function bP(n,e,t,i){n.isGroup||E([["cursor",Ri.prototype.cursor],["zlevel",i||0],["z",t||0],["z2",0]],function(r){var a=r[0];Lt(e,a)?n[a]=Ut(e[a],r[1]):n[a]==null&&(n[a]=r[1])}),E(se(e),function(r){if(r.indexOf("on")===0){var a=e[r];n[r]=Ot(a)?a:null}}),Lt(e,"draggable")&&(n.draggable=e.draggable),e.name!=null&&(n.name=e.name),e.id!=null&&(n.id=e.id)}function Lq(n){return n=lt({},n),E(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(JS),function(e){delete n[e]}),n}function Dq(n,e,t){var i=jt(n).eventData;!n.silent&&!n.ignore&&!i&&(i=jt(n).eventData={componentType:"graphic",componentIndex:e.componentIndex,name:n.name}),i&&(i.info=t.info)}function Pq(n){n.registerComponentModel(Cq),n.registerComponentView(kq),n.registerPreprocessor(function(e){var t=e.graphic;ht(t)?!t[0]||!t[0].elements?e.graphic=[{elements:t}]:e.graphic=[e.graphic[0]]:t&&!t.elements&&(e.graphic=[{elements:[t]}])})}var wP=["x","y","radius","angle","single"],Rq=["cartesian2d","polar","singleAxis"];function Nq(n){var e=n.get("coordinateSystem");return Qt(Rq,e)>=0}function ho(n){return n+"Axis"}function zq(n,e){var t=Dt(),i=[],r=Dt();n.eachComponent({mainType:"dataZoom",query:e},function(c){r.get(c.uid)||s(c)});var a;do a=!1,n.eachComponent("dataZoom",o);while(a);function o(c){!r.get(c.uid)&&l(c)&&(s(c),a=!0)}function s(c){r.set(c.uid,!0),i.push(c),u(c)}function l(c){var h=!1;return c.eachTargetAxis(function(f,d){var g=t.get(f);g&&g[d]&&(h=!0)}),h}function u(c){c.eachTargetAxis(function(h,f){(t.get(h)||t.set(h,[]))[f]=!0})}return i}function SP(n){var e=n.ecModel,t={infoList:[],infoMap:Dt()};return n.eachTargetAxis(function(i,r){var a=e.getComponent(ho(i),r);if(a){var o=a.getCoordSysModel();if(o){var s=o.uid,l=t.infoMap.get(s);l||(l={model:o,axisModels:[]},t.infoList.push(l),t.infoMap.set(s,l)),l.axisModels.push(a)}}}),t}var L_=function(){function n(){this.indexList=[],this.indexMap=[]}return n.prototype.add=function(e){this.indexMap[e]||(this.indexList.push(e),this.indexMap[e]=!0)},n}(),gh=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t._autoThrottle=!0,t._noTarget=!0,t._rangePropMode=["percent","percent"],t}return e.prototype.init=function(t,i,r){var a=MP(t);this.settledOption=a,this.mergeDefaultAndTheme(t,r),this._doInit(a)},e.prototype.mergeOption=function(t){var i=MP(t);Kt(this.option,t,!0),Kt(this.settledOption,i,!0),this._doInit(i)},e.prototype._doInit=function(t){var i=this.option;this._setDefaultThrottle(t),this._updateRangeUse(t);var r=this.settledOption;E([["start","startValue"],["end","endValue"]],function(a,o){this._rangePropMode[o]==="value"&&(i[a[0]]=r[a[0]]=null)},this),this._resetTarget()},e.prototype._resetTarget=function(){var t=this.get("orient",!0),i=this._targetAxisInfoMap=Dt(),r=this._fillSpecifiedTargetAxis(i);r?this._orient=t||this._makeAutoOrientByTargetAxis():(this._orient=t||"horizontal",this._fillAutoTargetAxisByOrient(i,this._orient)),this._noTarget=!0,i.each(function(a){a.indexList.length&&(this._noTarget=!1)},this)},e.prototype._fillSpecifiedTargetAxis=function(t){var i=!1;return E(wP,function(r){var a=this.getReferringComponents(ho(r),TO);if(a.specified){i=!0;var o=new L_;E(a.models,function(s){o.add(s.componentIndex)}),t.set(r,o)}},this),i},e.prototype._fillAutoTargetAxisByOrient=function(t,i){var r=this.ecModel,a=!0;if(a){var o=i==="vertical"?"y":"x",s=r.findComponents({mainType:o+"Axis"});l(s,o)}if(a){var s=r.findComponents({mainType:"singleAxis",filter:function(c){return c.get("orient",!0)===i}});l(s,"single")}function l(u,c){var h=u[0];if(h){var f=new L_;if(f.add(h.componentIndex),t.set(c,f),a=!1,c==="x"||c==="y"){var d=h.getReferringComponents("grid",en).models[0];d&&E(u,function(g){h.componentIndex!==g.componentIndex&&d===g.getReferringComponents("grid",en).models[0]&&f.add(g.componentIndex)})}}}a&&E(wP,function(u){if(a){var c=r.findComponents({mainType:ho(u),filter:function(f){return f.get("type",!0)==="category"}});if(c[0]){var h=new L_;h.add(c[0].componentIndex),t.set(u,h),a=!1}}},this)},e.prototype._makeAutoOrientByTargetAxis=function(){var t;return this.eachTargetAxis(function(i){!t&&(t=i)},this),t==="y"?"vertical":"horizontal"},e.prototype._setDefaultThrottle=function(t){if(t.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var i=this.ecModel.option;this.option.throttle=i.animation&&i.animationDurationUpdate>0?100:20}},e.prototype._updateRangeUse=function(t){var i=this._rangePropMode,r=this.get("rangeMode");E([["start","startValue"],["end","endValue"]],function(a,o){var s=t[a[0]]!=null,l=t[a[1]]!=null;s&&!l?i[o]="percent":!s&&l?i[o]="value":r?i[o]=r[o]:s&&(i[o]="percent")})},e.prototype.noTarget=function(){return this._noTarget},e.prototype.getFirstTargetAxisModel=function(){var t;return this.eachTargetAxis(function(i,r){t==null&&(t=this.ecModel.getComponent(ho(i),r))},this),t},e.prototype.eachTargetAxis=function(t,i){this._targetAxisInfoMap.each(function(r,a){E(r.indexList,function(o){t.call(i,a,o)})})},e.prototype.getAxisProxy=function(t,i){var r=this.getAxisModel(t,i);if(r)return r.__dzAxisProxy},e.prototype.getAxisModel=function(t,i){var r=this._targetAxisInfoMap.get(t);if(r&&r.indexMap[i])return this.ecModel.getComponent(ho(t),i)},e.prototype.setRawRange=function(t){var i=this.option,r=this.settledOption;E([["start","startValue"],["end","endValue"]],function(a){(t[a[0]]!=null||t[a[1]]!=null)&&(i[a[0]]=r[a[0]]=t[a[0]],i[a[1]]=r[a[1]]=t[a[1]])},this),this._updateRangeUse(t)},e.prototype.setCalculatedRange=function(t){var i=this.option;E(["start","startValue","end","endValue"],function(r){i[r]=t[r]})},e.prototype.getPercentRange=function(){var t=this.findRepresentativeAxisProxy();if(t)return t.getDataPercentWindow()},e.prototype.getValueRange=function(t,i){if(t==null&&i==null){var r=this.findRepresentativeAxisProxy();if(r)return r.getDataValueWindow()}else return this.getAxisProxy(t,i).getDataValueWindow()},e.prototype.findRepresentativeAxisProxy=function(t){if(t)return t.__dzAxisProxy;for(var i,r=this._targetAxisInfoMap.keys(),a=0;a<r.length;a++)for(var o=r[a],s=this._targetAxisInfoMap.get(o),l=0;l<s.indexList.length;l++){var u=this.getAxisProxy(o,s.indexList[l]);if(u.hostedBy(this))return u;i||(i=u)}return i},e.prototype.getRangePropMode=function(){return this._rangePropMode.slice()},e.prototype.getOrient=function(){return this._orient},e.type="dataZoom",e.dependencies=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","series","toolbox"],e.defaultOption={z:4,filterMode:"filter",start:0,end:100},e}(le);function MP(n){var e={};return E(["start","end","startValue","endValue","throttle"],function(t){n.hasOwnProperty(t)&&(e[t]=n[t])}),e}var Eq=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="dataZoom.select",e}(gh),D_=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,i,r,a){this.dataZoomModel=t,this.ecModel=i,this.api=r},e.type="dataZoom",e}(je),Oq=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="dataZoom.select",e}(D_),Yl=E,IP=Pi,Bq=function(){function n(e,t,i,r){this._dimName=e,this._axisIndex=t,this.ecModel=r,this._dataZoomModel=i}return n.prototype.hostedBy=function(e){return this._dataZoomModel===e},n.prototype.getDataValueWindow=function(){return this._valueWindow.slice()},n.prototype.getDataPercentWindow=function(){return this._percentWindow.slice()},n.prototype.getTargetSeriesModels=function(){var e=[];return this.ecModel.eachSeries(function(t){if(Nq(t)){var i=ho(this._dimName),r=t.getReferringComponents(i,en).models[0];r&&this._axisIndex===r.componentIndex&&e.push(t)}},this),e},n.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},n.prototype.getMinMaxSpan=function(){return Wt(this._minMaxSpan)},n.prototype.calculateDataWindow=function(e){var t=this._dataExtent,i=this.getAxisModel(),r=i.axis.scale,a=this._dataZoomModel.getRangePropMode(),o=[0,100],s=[],l=[],u;Yl(["start","end"],function(f,d){var g=e[f],y=e[f+"Value"];a[d]==="percent"?(g==null&&(g=o[d]),y=r.parse(Ae(g,o,t))):(u=!0,y=y==null?t[d]:r.parse(y),g=Ae(y,t,o)),l[d]=y==null||isNaN(y)?t[d]:y,s[d]=g==null||isNaN(g)?o[d]:g}),IP(l),IP(s);var c=this._minMaxSpan;u?h(l,s,t,o,!1):h(s,l,o,t,!0);function h(f,d,g,y,_){var v=_?"Span":"ValueSpan";Ps(0,f,g,"all",c["min"+v],c["max"+v]);for(var p=0;p<2;p++)d[p]=Ae(f[p],g,y,!0),_&&(d[p]=r.parse(d[p]))}return{valueWindow:l,percentWindow:s}},n.prototype.reset=function(e){if(e===this._dataZoomModel){var t=this.getTargetSeriesModels();this._dataExtent=Vq(this,this._dimName,t),this._updateMinMaxSpan();var i=this.calculateDataWindow(e.settledOption);this._valueWindow=i.valueWindow,this._percentWindow=i.percentWindow,this._setAxisModel()}},n.prototype.filterData=function(e,t){if(e!==this._dataZoomModel)return;var i=this._dimName,r=this.getTargetSeriesModels(),a=e.get("filterMode"),o=this._valueWindow;if(a==="none")return;Yl(r,function(l){var u=l.getData(),c=u.mapDimensionsAll(i);if(c.length){if(a==="weakFilter"){var h=u.getStore(),f=pt(c,function(d){return u.getDimensionIndex(d)},u);u.filterSelf(function(d){for(var g,y,_,v=0;v<c.length;v++){var p=h.get(f[v],d),x=!isNaN(p),b=p<o[0],S=p>o[1];if(x&&!b&&!S)return!0;x&&(_=!0),b&&(g=!0),S&&(y=!0)}return _&&g&&y})}else Yl(c,function(d){if(a==="empty")l.setData(u=u.map(d,function(y){return s(y)?y:NaN}));else{var g={};g[d]=o,u.selectRange(g)}});Yl(c,function(d){u.setApproximateExtent(o,d)})}});function s(l){return l>=o[0]&&l<=o[1]}},n.prototype._updateMinMaxSpan=function(){var e=this._minMaxSpan={},t=this._dataZoomModel,i=this._dataExtent;Yl(["min","max"],function(r){var a=t.get(r+"Span"),o=t.get(r+"ValueSpan");o!=null&&(o=this.getAxisModel().axis.scale.parse(o)),o!=null?a=Ae(i[0]+o,i,[0,100],!0):a!=null&&(o=Ae(a,[0,100],i,!0)-i[0]),e[r+"Span"]=a,e[r+"ValueSpan"]=o},this)},n.prototype._setAxisModel=function(){var e=this.getAxisModel(),t=this._percentWindow,i=this._valueWindow;if(t){var r=qw(i,[0,500]);r=Math.min(r,20);var a=e.axis.scale.rawExtentInfo;t[0]!==0&&a.setDeterminedMinMax("min",+i[0].toFixed(r)),t[1]!==100&&a.setDeterminedMinMax("max",+i[1].toFixed(r)),a.freeze()}},n}();function Vq(n,e,t){var i=[1/0,-1/0];Yl(t,function(o){mF(i,o.getData(),e)});var r=n.getAxisModel(),a=ET(r.axis.scale,r,i).calculate();return[a.min,a.max]}var Fq={getTargetSeries:function(n){function e(r){n.eachComponent("dataZoom",function(a){a.eachTargetAxis(function(o,s){var l=n.getComponent(ho(o),s);r(o,s,l,a)})})}e(function(r,a,o,s){o.__dzAxisProxy=null});var t=[];e(function(r,a,o,s){o.__dzAxisProxy||(o.__dzAxisProxy=new Bq(r,a,s,n),t.push(o.__dzAxisProxy))});var i=Dt();return E(t,function(r){E(r.getTargetSeriesModels(),function(a){i.set(a.uid,a)})}),i},overallReset:function(n,e){n.eachComponent("dataZoom",function(t){t.eachTargetAxis(function(i,r){t.getAxisProxy(i,r).reset(t)}),t.eachTargetAxis(function(i,r){t.getAxisProxy(i,r).filterData(t,e)})}),n.eachComponent("dataZoom",function(t){var i=t.findRepresentativeAxisProxy();if(i){var r=i.getDataPercentWindow(),a=i.getDataValueWindow();t.setCalculatedRange({start:r[0],end:r[1],startValue:a[0],endValue:a[1]})}})}};function Wq(n){n.registerAction("dataZoom",function(e,t){var i=zq(t,e);E(i,function(r){r.setRawRange({start:e.start,end:e.end,startValue:e.startValue,endValue:e.endValue})})})}var TP=!1;function P_(n){TP||(TP=!0,n.registerProcessor(n.PRIORITY.PROCESSOR.FILTER,Fq),Wq(n),n.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function Gq(n){n.registerComponentModel(Eq),n.registerComponentView(Oq),P_(n)}var Xi=function(){function n(){}return n}(),AP={};function Jl(n,e){AP[n]=e}function CP(n){return AP[n]}var jq=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(){n.prototype.optionUpdated.apply(this,arguments);var t=this.ecModel;E(this.option.feature,function(i,r){var a=CP(r);a&&(a.getDefaultOption&&(a.defaultOption=a.getDefaultOption(t)),Kt(i,a.defaultOption))})},e.type="toolbox",e.layoutMode={type:"box",ignoreSize:!0},e.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1,position:"bottom"}},e}(le);function Hq(n,e,t){var i=e.getBoxLayoutParams(),r=e.get("padding"),a={width:t.getWidth(),height:t.getHeight()},o=un(i,a,r);ss(e.get("orient"),n,e.get("itemGap"),o.width,o.height),gd(n,i,a,r)}function kP(n,e){var t=bl(e.get("padding")),i=e.getItemStyle(["color","opacity"]);return i.fill=e.get("backgroundColor"),n=new de({shape:{x:n.x-t[3],y:n.y-t[0],width:n.width+t[1]+t[3],height:n.height+t[0]+t[2],r:e.get("borderRadius")},style:i,silent:!0,z2:-1}),n}var Uq=function(n){Q(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.render=function(t,i,r,a){var o=this.group;if(o.removeAll(),!t.get("show"))return;var s=+t.get("itemSize"),l=t.get("orient")==="vertical",u=t.get("feature")||{},c=this._features||(this._features={}),h=[];E(u,function(g,y){h.push(y)}),new pa(this._featureNames||[],h).add(f).update(f).remove(Zt(f,null)).execute(),this._featureNames=h;function f(g,y){var _=h[g],v=h[y],p=u[_],x=new Ce(p,t,t.ecModel),b;if(a&&a.newTitle!=null&&a.featureName===_&&(p.title=a.newTitle),_&&!v){if(Xq(_))b={onclick:x.option.onclick,featureName:_};else{var S=CP(_);if(!S)return;b=new S}c[_]=b}else if(b=c[v],!b)return;b.uid=yl("toolbox-feature"),b.model=x,b.ecModel=i,b.api=r;var M=b instanceof Xi;if(!_&&v){M&&b.dispose&&b.dispose(i,r);return}if(!x.get("show")||M&&b.unusable){M&&b.remove&&b.remove(i,r);return}d(x,b,_),x.setIconStatus=function(I,A){var C=this.option,L=this.iconPaths;C.iconStatus=C.iconStatus||{},C.iconStatus[I]=A,L[I]&&(A==="emphasis"?la:ua)(L[I])},b instanceof Xi&&b.render&&b.render(x,i,r,a)}function d(g,y,_){var v=g.getModel("iconStyle"),p=g.getModel(["emphasis","iconStyle"]),x=y instanceof Xi&&y.getIcons?y.getIcons():g.get("icon"),b=g.get("title")||{},S,M;Tt(x)?(S={},S[_]=x):S=x,Tt(b)?(M={},M[_]=b):M=b;var I=g.iconPaths={};E(S,function(A,C){var L=uc(A,{},{x:-s/2,y:-s/2,width:s,height:s});L.setStyle(v.getItemStyle());var R=L.ensureState("emphasis");R.style=p.getItemStyle();var D=new fe({style:{text:M[C],align:p.get("textAlign"),borderRadius:p.get("textBorderRadius"),padding:p.get("textPadding"),fill:null,font:Uy({fontStyle:p.get("textFontStyle"),fontFamily:p.get("textFontFamily"),fontSize:p.get("textFontSize"),fontWeight:p.get("textFontWeight")},i)},ignore:!0});L.setTextContent(D),is({el:L,componentModel:t,itemName:C,formatterParamsExtra:{title:M[C]}}),L.__title=M[C],L.on("mouseover",function(){var N=p.getItemStyle(),k=l?t.get("right")==null&&t.get("left")!=="right"?"right":"left":t.get("bottom")==null&&t.get("top")!=="bottom"?"bottom":"top";D.setStyle({fill:p.get("textFill")||N.fill||N.stroke||"#000",backgroundColor:p.get("textBackgroundColor")}),L.setTextConfig({position:p.get("textPosition")||k}),D.ignore=!t.get("showTitle"),r.enterEmphasis(this)}).on("mouseout",function(){g.get(["iconStatus",C])!=="emphasis"&&r.leaveEmphasis(this),D.hide()}),(g.get(["iconStatus",C])==="emphasis"?la:ua)(L),o.add(L),L.on("click",Ct(y.onclick,y,i,r,C)),I[C]=L})}Hq(o,t,r),o.add(kP(o.getBoundingRect(),t)),l||o.eachChild(function(g){var y=g.__title,_=g.ensureState("emphasis"),v=_.textConfig||(_.textConfig={}),p=g.getTextContent(),x=p&&p.ensureState("emphasis");if(x&&!Ot(x)&&y){var b=x.style||(x.style={}),S=Wu(y,fe.makeFont(b)),M=g.x+o.x,I=g.y+o.y+s,A=!1;I+S.height>r.getHeight()&&(v.position="top",A=!0);var C=A?-5-S.height:s+10;M+S.width/2>r.getWidth()?(v.position=["100%",C],b.align="right"):M-S.width/2<0&&(v.position=[0,C],b.align="left")}})},e.prototype.updateView=function(t,i,r,a){E(this._features,function(o){o instanceof Xi&&o.updateView&&o.updateView(o.model,i,r,a)})},e.prototype.remove=function(t,i){E(this._features,function(r){r instanceof Xi&&r.remove&&r.remove(t,i)}),this.group.removeAll()},e.prototype.dispose=function(t,i){E(this._features,function(r){r instanceof Xi&&r.dispose&&r.dispose(t,i)})},e.type="toolbox",e}(je);function Xq(n){return n.indexOf("my")===0}var Zq=function(n){Q(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.onclick=function(t,i){var r=this.model,a=r.get("name")||t.get("title.0.text")||"echarts",o=i.getZr().painter.getType()==="svg",s=o?"svg":r.get("type",!0)||"png",l=i.getConnectedDataURL({type:s,backgroundColor:r.get("backgroundColor",!0)||t.get("backgroundColor")||"#fff",connectedBackgroundColor:r.get("connectedBackgroundColor"),excludeComponents:r.get("excludeComponents"),pixelRatio:r.get("pixelRatio")}),u=oe.browser;if(typeof MouseEvent=="function"&&(u.newEdge||!u.ie&&!u.edge)){var c=document.createElement("a");c.download=a+"."+s,c.target="_blank",c.href=l;var h=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});c.dispatchEvent(h)}else if(window.navigator.msSaveOrOpenBlob||o){var f=l.split(","),d=f[0].indexOf("base64")>-1,g=o?decodeURIComponent(f[1]):f[1];d&&(g=window.atob(g));var y=a+"."+s;if(window.navigator.msSaveOrOpenBlob){for(var _=g.length,v=new Uint8Array(_);_--;)v[_]=g.charCodeAt(_);var p=new Blob([v]);window.navigator.msSaveOrOpenBlob(p,y)}else{var x=document.createElement("iframe");document.body.appendChild(x);var b=x.contentWindow,S=b.document;S.open("image/svg+xml","replace"),S.write(g),S.close(),b.focus(),S.execCommand("SaveAs",!0,y),document.body.removeChild(x)}}else{var M=r.get("lang"),I='<body style="margin:0;"><img src="'+l+'" style="max-width:100%;" title="'+(M&&M[0]||"")+'" /></body>',A=window.open();A.document.write(I),A.document.title=a}},e.getDefaultOption=function(t){var i={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:t.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:t.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return i},e}(Xi),LP="__ec_magicType_stack__",qq=[["line","bar"],["stack"]],Kq=function(n){Q(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.getIcons=function(){var t=this.model,i=t.get("icon"),r={};return E(t.get("type"),function(a){i[a]&&(r[a]=i[a])}),r},e.getDefaultOption=function(t){var i={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:t.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}};return i},e.prototype.onclick=function(t,i,r){var a=this.model,o=a.get(["seriesIndex",r]);if(DP[r]){var s={series:[]},l=function(h){var f=h.subType,d=h.id,g=DP[r](f,d,h,a);g&&(Bt(g,h.option),s.series.push(g));var y=h.coordinateSystem;if(y&&y.type==="cartesian2d"&&(r==="line"||r==="bar")){var _=y.getAxesByScale("ordinal")[0];if(_){var v=_.dim,p=v+"Axis",x=h.getReferringComponents(p,en).models[0],b=x.componentIndex;s[p]=s[p]||[];for(var S=0;S<=b;S++)s[p][b]=s[p][b]||{};s[p][b].boundaryGap=r==="bar"}}};E(qq,function(h){Qt(h,r)>=0&&E(h,function(f){a.setIconStatus(f,"normal")})}),a.setIconStatus(r,"emphasis"),t.eachComponent({mainType:"series",query:o==null?null:{seriesIndex:o}},l);var u,c=r;r==="stack"&&(u=Kt({stack:a.option.title.tiled,tiled:a.option.title.stack},a.option.title),a.get(["iconStatus",r])!=="emphasis"&&(c="tiled")),i.dispatchAction({type:"changeMagicType",currentType:c,newOption:s,newTitle:u,featureName:"magicType"})}},e}(Xi),DP={line:function(n,e,t,i){if(n==="bar")return Kt({id:e,type:"line",data:t.get("data"),stack:t.get("stack"),markPoint:t.get("markPoint"),markLine:t.get("markLine")},i.get(["option","line"])||{},!0)},bar:function(n,e,t,i){if(n==="line")return Kt({id:e,type:"bar",data:t.get("data"),stack:t.get("stack"),markPoint:t.get("markPoint"),markLine:t.get("markLine")},i.get(["option","bar"])||{},!0)},stack:function(n,e,t,i){var r=t.get("stack")===LP;if(n==="line"||n==="bar")return i.setIconStatus("stack",r?"normal":"emphasis"),Kt({id:e,stack:r?"":LP},i.get(["option","stack"])||{},!0)}};Or({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(n,e){e.mergeOption(n.newOption)});var Ff=new Array(60).join("-"),$l=" ";function Yq(n){var e={},t=[],i=[];return n.eachRawSeries(function(r){var a=r.coordinateSystem;if(a&&(a.type==="cartesian2d"||a.type==="polar")){var o=a.getBaseAxis();if(o.type==="category"){var s=o.dim+"_"+o.index;e[s]||(e[s]={categoryAxis:o,valueAxis:a.getOtherAxis(o),series:[]},i.push({axisDim:o.dim,axisIndex:o.index})),e[s].series.push(r)}else t.push(r)}else t.push(r)}),{seriesGroupByCategoryAxis:e,other:t,meta:i}}function Jq(n){var e=[];return E(n,function(t,i){var r=t.categoryAxis,a=t.valueAxis,o=a.dim,s=[" "].concat(pt(t.series,function(d){return d.name})),l=[r.model.getCategories()];E(t.series,function(d){var g=d.getRawData();l.push(d.getRawData().mapArray(g.mapDimension(o),function(y){return y}))});for(var u=[s.join($l)],c=0;c<l[0].length;c++){for(var h=[],f=0;f<l.length;f++)h.push(l[f][c]);u.push(h.join($l))}e.push(u.join(`
|
|
77
|
+
`))}),e.join(`
|
|
78
|
+
|
|
79
|
+
`+Ff+`
|
|
80
|
+
|
|
81
|
+
`)}function $q(n){return pt(n,function(e){var t=e.getRawData(),i=[e.name],r=[];return t.each(t.dimensions,function(){for(var a=arguments.length,o=arguments[a-1],s=t.getName(o),l=0;l<a-1;l++)r[l]=arguments[l];i.push((s?s+$l:"")+r.join($l))}),i.join(`
|
|
82
|
+
`)}).join(`
|
|
83
|
+
|
|
84
|
+
`+Ff+`
|
|
85
|
+
|
|
86
|
+
`)}function Qq(n){var e=Yq(n);return{value:Se([Jq(e.seriesGroupByCategoryAxis),$q(e.other)],function(t){return!!t.replace(/[\n\t\s]/g,"")}).join(`
|
|
87
|
+
|
|
88
|
+
`+Ff+`
|
|
89
|
+
|
|
90
|
+
`),meta:e.meta}}function Wf(n){return n.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function tK(n){var e=n.slice(0,n.indexOf(`
|
|
91
|
+
`));if(e.indexOf($l)>=0)return!0}var R_=new RegExp("["+$l+"]+","g");function eK(n){for(var e=n.split(/\n+/g),t=Wf(e.shift()).split(R_),i=[],r=pt(t,function(l){return{name:l,data:[]}}),a=0;a<e.length;a++){var o=Wf(e[a]).split(R_);i.push(o.shift());for(var s=0;s<o.length;s++)r[s]&&(r[s].data[a]=o[s])}return{series:r,categories:i}}function nK(n){for(var e=n.split(/\n+/g),t=Wf(e.shift()),i=[],r=0;r<e.length;r++){var a=Wf(e[r]);if(a){var o=a.split(R_),s="",l=void 0,u=!1;isNaN(o[0])?(u=!0,s=o[0],o=o.slice(1),i[r]={name:s,value:[]},l=i[r].value):l=i[r]=[];for(var c=0;c<o.length;c++)l.push(+o[c]);l.length===1&&(u?i[r].value=l[0]:i[r]=l[0])}}return{name:t,data:i}}function iK(n,e){var t=n.split(new RegExp(`
|
|
92
|
+
*`+Ff+`
|
|
93
|
+
*`,"g")),i={series:[]};return E(t,function(r,a){if(tK(r)){var o=eK(r),s=e[a],l=s.axisDim+"Axis";s&&(i[l]=i[l]||[],i[l][s.axisIndex]={data:o.categories},i.series=i.series.concat(o.series))}else{var o=nK(r);i.series.push(o)}}),i}var rK=function(n){Q(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.onclick=function(t,i){setTimeout(function(){i.dispatchAction({type:"hideTip"})});var r=i.getDom(),a=this.model;this._dom&&r.removeChild(this._dom);var o=document.createElement("div");o.style.cssText="position:absolute;top:0;bottom:0;left:0;right:0;padding:5px",o.style.backgroundColor=a.get("backgroundColor")||"#fff";var s=document.createElement("h4"),l=a.get("lang")||[];s.innerHTML=l[0]||a.get("title"),s.style.cssText="margin:10px 20px",s.style.color=a.get("textColor");var u=document.createElement("div"),c=document.createElement("textarea");u.style.cssText="overflow:auto";var h=a.get("optionToContent"),f=a.get("contentToOption"),d=Qq(t);if(Ot(h)){var g=h(i.getOption());Tt(g)?u.innerHTML=g:Ys(g)&&u.appendChild(g)}else{c.readOnly=a.get("readOnly");var y=c.style;y.cssText="display:block;width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;resize:none;box-sizing:border-box;outline:none",y.color=a.get("textColor"),y.borderColor=a.get("textareaBorderColor"),y.backgroundColor=a.get("textareaColor"),c.value=d.value,u.appendChild(c)}var _=d.meta,v=document.createElement("div");v.style.cssText="position:absolute;bottom:5px;left:0;right:0";var p="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",x=document.createElement("div"),b=document.createElement("div");p+=";background-color:"+a.get("buttonColor"),p+=";color:"+a.get("buttonTextColor");var S=this;function M(){r.removeChild(o),S._dom=null}gv(x,"click",M),gv(b,"click",function(){if(f==null&&h!=null||f!=null&&h==null){M();return}var I;try{Ot(f)?I=f(u,i.getOption()):I=iK(c.value,_)}catch(A){throw M(),new Error("Data view format error "+A)}I&&i.dispatchAction({type:"changeDataView",newOption:I}),M()}),x.innerHTML=l[1],b.innerHTML=l[2],b.style.cssText=x.style.cssText=p,!a.get("readOnly")&&v.appendChild(b),v.appendChild(x),o.appendChild(s),o.appendChild(u),o.appendChild(v),u.style.height=r.clientHeight-80+"px",r.appendChild(o),this._dom=o},e.prototype.remove=function(t,i){this._dom&&i.getDom().removeChild(this._dom)},e.prototype.dispose=function(t,i){this.remove(t,i)},e.getDefaultOption=function(t){var i={show:!0,readOnly:!1,optionToContent:null,contentToOption:null,icon:"M17.5,17.3H33 M17.5,17.3H33 M45.4,29.5h-28 M11.5,2v56H51V14.8L38.4,2H11.5z M38.4,2.2v12.7H51 M45.4,41.7h-28",title:t.getLocaleModel().get(["toolbox","dataView","title"]),lang:t.getLocaleModel().get(["toolbox","dataView","lang"]),backgroundColor:"#fff",textColor:"#000",textareaColor:"#fff",textareaBorderColor:"#333",buttonColor:"#c23531",buttonTextColor:"#fff"};return i},e}(Xi);function aK(n,e){return pt(n,function(t,i){var r=e&&e[i];if(Vt(r)&&!ht(r)){var a=Vt(t)&&!ht(t);a||(t={value:t});var o=r.name!=null&&t.name==null;return t=Bt(t,r),o&&delete t.name,t}else return t})}Or({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},function(n,e){var t=[];E(n.newOption.series,function(i){var r=e.getSeriesByName(i.name)[0];if(!r)t.push(lt({type:"scatter"},i));else{var a=r.get("data");t.push({name:i.name,data:aK(i.data,a)})}}),e.mergeOption(Bt({series:t},n.newOption))});var PP=E,RP=pe();function oK(n,e){var t=N_(n);PP(e,function(i,r){for(var a=t.length-1;a>=0;a--){var o=t[a];if(o[r])break}if(a<0){var s=n.queryComponents({mainType:"dataZoom",subType:"select",id:r})[0];if(s){var l=s.getPercentRange();t[0][r]={dataZoomId:r,start:l[0],end:l[1]}}}}),t.push(e)}function sK(n){var e=N_(n),t=e[e.length-1];e.length>1&&e.pop();var i={};return PP(t,function(r,a){for(var o=e.length-1;o>=0;o--)if(r=e[o][a],r){i[a]=r;break}}),i}function lK(n){RP(n).snapshots=null}function uK(n){return N_(n).length}function N_(n){var e=RP(n);return e.snapshots||(e.snapshots=[{}]),e.snapshots}var cK=function(n){Q(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.onclick=function(t,i){lK(t),i.dispatchAction({type:"restore",from:this.uid})},e.getDefaultOption=function(t){var i={show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:t.getLocaleModel().get(["toolbox","restore","title"])};return i},e}(Xi);Or({type:"restore",event:"restore",update:"prepareAndUpdate"},function(n,e){e.resetOption("recreate")});var hK=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],z_=function(){function n(e,t,i){var r=this;this._targetInfoList=[];var a=NP(t,e);E(pK,function(o,s){(!i||!i.include||Qt(i.include,s)>=0)&&o(a,r._targetInfoList)})}return n.prototype.setOutputRanges=function(e,t){return this.matchOutputRanges(e,t,function(i,r,a){if((i.coordRanges||(i.coordRanges=[])).push(r),!i.coordRange){i.coordRange=r;var o=O_[i.brushType](0,a,r);i.__rangeOffset={offset:BP[i.brushType](o.values,i.range,[1,1]),xyMinMax:o.xyMinMax}}}),e},n.prototype.matchOutputRanges=function(e,t,i){E(e,function(r){var a=this.findTargetInfo(r,t);a&&a!==!0&&E(a.coordSyses,function(o){var s=O_[r.brushType](1,o,r.range,!0);i(r,s.values,o,t)})},this)},n.prototype.setInputRanges=function(e,t){E(e,function(i){var r=this.findTargetInfo(i,t);if(i.range=i.range||[],r&&r!==!0){i.panelId=r.panelId;var a=O_[i.brushType](0,r.coordSys,i.coordRange),o=i.__rangeOffset;i.range=o?BP[i.brushType](a.values,o.offset,dK(a.xyMinMax,o.xyMinMax)):a.values}},this)},n.prototype.makePanelOpts=function(e,t){return pt(this._targetInfoList,function(i){var r=i.getPanelRect();return{panelId:i.panelId,defaultBrushType:t?t(i):null,clipPath:OL(r),isTargetByCursor:VL(r,e,i.coordSysModel),getLinearBrushOtherExtent:BL(r)}})},n.prototype.controlSeries=function(e,t,i){var r=this.findTargetInfo(e,i);return r===!0||r&&Qt(r.coordSyses,t.coordinateSystem)>=0},n.prototype.findTargetInfo=function(e,t){for(var i=this._targetInfoList,r=NP(t,e),a=0;a<i.length;a++){var o=i[a],s=e.panelId;if(s){if(o.panelId===s)return o}else for(var l=0;l<zP.length;l++)if(zP[l](r,o))return o}return!0},n}();function E_(n){return n[0]>n[1]&&n.reverse(),n}function NP(n,e){return Xu(n,e,{includeMainTypes:hK})}var pK={grid:function(n,e){var t=n.xAxisModels,i=n.yAxisModels,r=n.gridModels,a=Dt(),o={},s={};!t&&!i&&!r||(E(t,function(l){var u=l.axis.grid.model;a.set(u.id,u),o[u.id]=!0}),E(i,function(l){var u=l.axis.grid.model;a.set(u.id,u),s[u.id]=!0}),E(r,function(l){a.set(l.id,l),o[l.id]=!0,s[l.id]=!0}),a.each(function(l){var u=l.coordinateSystem,c=[];E(u.getCartesians(),function(h,f){(Qt(t,h.getAxis("x").model)>=0||Qt(i,h.getAxis("y").model)>=0)&&c.push(h)}),e.push({panelId:"grid--"+l.id,gridModel:l,coordSysModel:l,coordSys:c[0],coordSyses:c,getPanelRect:EP.grid,xAxisDeclared:o[l.id],yAxisDeclared:s[l.id]})}))},geo:function(n,e){E(n.geoModels,function(t){var i=t.coordinateSystem;e.push({panelId:"geo--"+t.id,geoModel:t,coordSysModel:t,coordSys:i,coordSyses:[i],getPanelRect:EP.geo})})}},zP=[function(n,e){var t=n.xAxisModel,i=n.yAxisModel,r=n.gridModel;return!r&&t&&(r=t.axis.grid.model),!r&&i&&(r=i.axis.grid.model),r&&r===e.gridModel},function(n,e){var t=n.geoModel;return t&&t===e.geoModel}],EP={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var n=this.coordSys,e=n.getBoundingRect().clone();return e.applyTransform(ns(n)),e}},O_={lineX:Zt(OP,0),lineY:Zt(OP,1),rect:function(n,e,t,i){var r=n?e.pointToData([t[0][0],t[1][0]],i):e.dataToPoint([t[0][0],t[1][0]],i),a=n?e.pointToData([t[0][1],t[1][1]],i):e.dataToPoint([t[0][1],t[1][1]],i),o=[E_([r[0],a[0]]),E_([r[1],a[1]])];return{values:o,xyMinMax:o}},polygon:function(n,e,t,i){var r=[[1/0,-1/0],[1/0,-1/0]],a=pt(t,function(o){var s=n?e.pointToData(o,i):e.dataToPoint(o,i);return r[0][0]=Math.min(r[0][0],s[0]),r[1][0]=Math.min(r[1][0],s[1]),r[0][1]=Math.max(r[0][1],s[0]),r[1][1]=Math.max(r[1][1],s[1]),s});return{values:a,xyMinMax:r}}};function OP(n,e,t,i){var r=t.getAxis(["x","y"][n]),a=E_(pt([0,1],function(s){return e?r.coordToData(r.toLocalCoord(i[s]),!0):r.toGlobalCoord(r.dataToCoord(i[s]))})),o=[];return o[n]=a,o[1-n]=[NaN,NaN],{values:a,xyMinMax:o}}var BP={lineX:Zt(VP,0),lineY:Zt(VP,1),rect:function(n,e,t){return[[n[0][0]-t[0]*e[0][0],n[0][1]-t[0]*e[0][1]],[n[1][0]-t[1]*e[1][0],n[1][1]-t[1]*e[1][1]]]},polygon:function(n,e,t){return pt(n,function(i,r){return[i[0]-t[0]*e[r][0],i[1]-t[1]*e[r][1]]})}};function VP(n,e,t,i){return[e[0]-i[n]*t[0],e[1]-i[n]*t[1]]}function dK(n,e){var t=FP(n),i=FP(e),r=[t[0]/i[0],t[1]/i[1]];return isNaN(r[0])&&(r[0]=1),isNaN(r[1])&&(r[1]=1),r}function FP(n){return n?[n[0][1]-n[0][0],n[1][1]-n[1][0]]:[NaN,NaN]}var B_=E,fK=bO("toolbox-dataZoom_"),gK=function(n){Q(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.render=function(t,i,r,a){this._brushController||(this._brushController=new N1(r.getZr()),this._brushController.on("brush",Ct(this._onBrush,this)).mount()),mK(t,i,this,a,r),yK(t,i)},e.prototype.onclick=function(t,i,r){vK[r].call(this)},e.prototype.remove=function(t,i){this._brushController&&this._brushController.unmount()},e.prototype.dispose=function(t,i){this._brushController&&this._brushController.dispose()},e.prototype._onBrush=function(t){var i=t.areas;if(!t.isEnd||!i.length)return;var r={},a=this.ecModel;this._brushController.updateCovers([]);var o=new z_(V_(this.model),a,{include:["grid"]});o.matchOutputRanges(i,a,function(u,c,h){if(h.type==="cartesian2d"){var f=u.brushType;f==="rect"?(s("x",h,c[0]),s("y",h,c[1])):s({lineX:"x",lineY:"y"}[f],h,c)}}),oK(a,r),this._dispatchZoomAction(r);function s(u,c,h){var f=c.getAxis(u),d=f.model,g=l(u,d,a),y=g.findRepresentativeAxisProxy(d).getMinMaxSpan();(y.minValueSpan!=null||y.maxValueSpan!=null)&&(h=Ps(0,h.slice(),f.scale.getExtent(),0,y.minValueSpan,y.maxValueSpan)),g&&(r[g.id]={dataZoomId:g.id,startValue:h[0],endValue:h[1]})}function l(u,c,h){var f;return h.eachComponent({mainType:"dataZoom",subType:"select"},function(d){var g=d.getAxisModel(u,c.componentIndex);g&&(f=d)}),f}},e.prototype._dispatchZoomAction=function(t){var i=[];B_(t,function(r,a){i.push(Wt(r))}),i.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:i})},e.getDefaultOption=function(t){var i={show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:t.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}};return i},e}(Xi),vK={zoom:function(){var n=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:n})},back:function(){this._dispatchZoomAction(sK(this.ecModel))}};function V_(n){var e={xAxisIndex:n.get("xAxisIndex",!0),yAxisIndex:n.get("yAxisIndex",!0),xAxisId:n.get("xAxisId",!0),yAxisId:n.get("yAxisId",!0)};return e.xAxisIndex==null&&e.xAxisId==null&&(e.xAxisIndex="all"),e.yAxisIndex==null&&e.yAxisId==null&&(e.yAxisIndex="all"),e}function yK(n,e){n.setIconStatus("back",uK(e)>1?"emphasis":"normal")}function mK(n,e,t,i,r){var a=t._isZoomActive;i&&i.type==="takeGlobalCursor"&&(a=i.key==="dataZoomSelect"?i.dataZoomSelectActive:!1),t._isZoomActive=a,n.setIconStatus("zoom",a?"emphasis":"normal");var o=new z_(V_(n),e,{include:["grid"]}),s=o.makePanelOpts(r,function(l){return l.xAxisDeclared&&!l.yAxisDeclared?"lineX":!l.xAxisDeclared&&l.yAxisDeclared?"lineY":"rect"});t._brushController.setPanels(s).enableBrush(a&&s.length?{brushType:"auto",brushStyle:n.getModel("brushStyle").getItemStyle()}:!1)}X4("dataZoom",function(n){var e=n.getComponent("toolbox",0),t=["feature","dataZoom"];if(!e||e.get(t)==null)return;var i=e.getModel(t),r=[],a=V_(i),o=Xu(n,a);B_(o.xAxisModels,function(l){return s(l,"xAxis","xAxisIndex")}),B_(o.yAxisModels,function(l){return s(l,"yAxis","yAxisIndex")});function s(l,u,c){var h=l.componentIndex,f={type:"select",$fromToolbox:!0,filterMode:i.get("filterMode",!0)||"filter",id:fK+u+h};f[c]=h,r.push(f)}return r});function _K(n){n.registerComponentModel(jq),n.registerComponentView(Uq),Jl("saveAsImage",Zq),Jl("magicType",Kq),Jl("dataView",rK),Jl("dataZoom",gK),Jl("restore",cK),ie(Gq)}var xK=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="tooltip",e.dependencies=["axisPointer"],e.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},e}(le);function WP(n){var e=n.get("confine");return e!=null?!!e:n.get("renderMode")==="richText"}function GP(n){if(oe.domSupported){for(var e=document.documentElement.style,t=0,i=n.length;t<i;t++)if(n[t]in e)return n[t]}}var jP=GP(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),bK=GP(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function HP(n,e){if(!n)return e;e=qS(e,!0);var t=n.indexOf(e);return n=t===-1?e:"-"+n.slice(0,t)+"-"+e,n.toLowerCase()}function wK(n,e){var t=n.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(n);return t?t[e]:null}var SK=HP(bK,"transition"),F_=HP(jP,"transform"),MK="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(oe.transform3dSupported?"will-change:transform;":"");function IK(n){return n=n==="left"?"right":n==="right"?"left":n==="top"?"bottom":"top",n}function TK(n,e,t){if(!Tt(t)||t==="inside")return"";var i=n.get("backgroundColor"),r=n.get("borderWidth");e=as(e);var a=IK(t),o=Math.max(Math.round(r)*1.5,6),s="",l=F_+":",u;Qt(["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 c=u*Math.PI/180,h=o+r,f=h*Math.abs(Math.cos(c))+h*Math.abs(Math.sin(c)),d=Math.round(((f-Math.SQRT2*r)/2+Math.SQRT2*r-(f-h)/2)*100)/100;s+=";"+a+":-"+d+"px";var g=e+" solid "+r+"px;",y=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+l+";","border-bottom:"+g,"border-right:"+g,"background-color:"+i+";"];return'<div style="'+y.join("")+'"></div>'}function AK(n,e){var t="cubic-bezier(0.23,1,0.32,1)",i=" "+n/2+"s "+t,r="opacity"+i+",visibility"+i;return e||(i=" "+n+"s "+t,r+=oe.transformSupported?","+F_+i:",left"+i+",top"+i),SK+":"+r}function UP(n,e,t){var i=n.toFixed(0)+"px",r=e.toFixed(0)+"px";if(!oe.transformSupported)return t?"top:"+r+";left:"+i+";":[["top",r],["left",i]];var a=oe.transform3dSupported,o="translate"+(a?"3d":"")+"("+i+","+r+(a?",0":"")+")";return t?"top:0;left:0;"+F_+":"+o+";":[["top",0],["left",0],[jP,o]]}function CK(n){var e=[],t=n.get("fontSize"),i=n.getTextColor();i&&e.push("color:"+i),e.push("font:"+n.getFont());var r=Ut(n.get("lineHeight"),Math.round(t*3/2));t&&e.push("line-height:"+r+"px");var a=n.get("textShadowColor"),o=n.get("textShadowBlur")||0,s=n.get("textShadowOffsetX")||0,l=n.get("textShadowOffsetY")||0;return a&&o&&e.push("text-shadow:"+s+"px "+l+"px "+o+"px "+a),E(["decoration","align"],function(u){var c=n.get(u);c&&e.push("text-"+u+":"+c)}),e.join(";")}function kK(n,e,t){var i=[],r=n.get("transitionDuration"),a=n.get("backgroundColor"),o=n.get("shadowBlur"),s=n.get("shadowColor"),l=n.get("shadowOffsetX"),u=n.get("shadowOffsetY"),c=n.getModel("textStyle"),h=QM(n,"html"),f=l+"px "+u+"px "+o+"px "+s;return i.push("box-shadow:"+f),e&&r&&i.push(AK(r,t)),a&&i.push("background-color:"+a),E(["width","color","radius"],function(d){var g="border-"+d,y=qS(g),_=n.get(y);_!=null&&i.push(g+":"+_+(d==="color"?"":"px"))}),i.push(CK(c)),h!=null&&i.push("padding:"+bl(h).join("px ")+"px"),i.join(";")+";"}function XP(n,e,t,i,r){var a=e&&e.painter;if(t){var o=a&&a.getViewportRoot();o&&Yz(n,o,t,i,r)}else{n[0]=i,n[1]=r;var s=a&&a.getViewportRootOffset();s&&(n[0]+=s.offsetLeft,n[1]+=s.offsetTop)}n[2]=n[0]/e.getWidth(),n[3]=n[1]/e.getHeight()}var LK=function(){function n(e,t){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,oe.wxa)return null;var i=document.createElement("div");i.domBelongToZr=!0,this.el=i;var r=this._zr=e.getZr(),a=t.appendTo,o=a&&(Tt(a)?document.querySelector(a):Ys(a)?a:Ot(a)&&a(e.getDom()));XP(this._styleCoord,r,o,e.getWidth()/2,e.getHeight()/2),(o||e.getDom()).appendChild(i),this._api=e,this._container=o;var s=this;i.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},i.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=r.handler,c=r.painter.getViewportRoot();ki(c,l,!0),u.dispatch("mousemove",l)}},i.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return n.prototype.update=function(e){if(!this._container){var t=this._api.getDom(),i=wK(t,"position"),r=t.style;r.position!=="absolute"&&i!=="absolute"&&(r.position="relative")}var a=e.get("alwaysShowContent");a&&this._moveIfResized(),this._alwaysShowContent=a,this.el.className=e.get("className")||""},n.prototype.show=function(e,t){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var i=this.el,r=i.style,a=this._styleCoord;i.innerHTML?r.cssText=MK+kK(e,!this._firstShow,this._longHide)+UP(a[0],a[1],!0)+("border-color:"+as(t)+";")+(e.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):r.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},n.prototype.setContent=function(e,t,i,r,a){var o=this.el;if(e==null){o.innerHTML="";return}var s="";if(Tt(a)&&i.get("trigger")==="item"&&!WP(i)&&(s=TK(i,r,a)),Tt(e))o.innerHTML=e+s;else if(e){o.innerHTML="",ht(e)||(e=[e]);for(var l=0;l<e.length;l++)Ys(e[l])&&e[l].parentNode!==o&&o.appendChild(e[l]);if(s&&o.childNodes.length){var u=document.createElement("div");u.innerHTML=s,o.appendChild(u)}}},n.prototype.setEnterable=function(e){this._enterable=e},n.prototype.getSize=function(){var e=this.el;return e?[e.offsetWidth,e.offsetHeight]:[0,0]},n.prototype.moveTo=function(e,t){if(this.el){var i=this._styleCoord;if(XP(i,this._zr,this._container,e,t),i[0]!=null&&i[1]!=null){var r=this.el.style,a=UP(i[0],i[1]);E(a,function(o){r[o[0]]=o[1]})}}},n.prototype._moveIfResized=function(){var e=this._styleCoord[2],t=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),t*this._zr.getHeight())},n.prototype.hide=function(){var e=this,t=this.el.style;t.visibility="hidden",t.opacity="0",oe.transform3dSupported&&(t.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return e._longHide=!0},500)},n.prototype.hideLater=function(e){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(Ct(this.hide,this),e)):this.hide())},n.prototype.isShow=function(){return this._show},n.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var e=this.el.parentNode;e&&e.removeChild(this.el),this.el=this._container=null},n}(),DK=function(){function n(e){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=e.getZr(),qP(this._styleCoord,this._zr,e.getWidth()/2,e.getHeight()/2)}return n.prototype.update=function(e){var t=e.get("alwaysShowContent");t&&this._moveIfResized(),this._alwaysShowContent=t},n.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},n.prototype.setContent=function(e,t,i,r,a){var o=this;Vt(e)&&Me(""),this.el&&this._zr.remove(this.el);var s=i.getModel("textStyle");this.el=new fe({style:{rich:t.richTextStyles,text:e,lineHeight:22,borderWidth:1,borderColor:r,textShadowColor:s.get("textShadowColor"),fill:i.get(["textStyle","color"]),padding:QM(i,"richText"),verticalAlign:"top",align:"left"},z:i.get("z")}),E(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(u){o.el.style[u]=i.get(u)}),E(["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})},n.prototype.setEnterable=function(e){this._enterable=e},n.prototype.getSize=function(){var e=this.el,t=this.el.getBoundingRect(),i=ZP(e.style);return[t.width+i.left+i.right,t.height+i.top+i.bottom]},n.prototype.moveTo=function(e,t){var i=this.el;if(i){var r=this._styleCoord;qP(r,this._zr,e,t),e=r[0],t=r[1];var a=i.style,o=po(a.borderWidth||0),s=ZP(a);i.x=e+o+s.left,i.y=t+o+s.top,i.markRedraw()}},n.prototype._moveIfResized=function(){var e=this._styleCoord[2],t=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),t*this._zr.getHeight())},n.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},n.prototype.hideLater=function(e){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(Ct(this.hide,this),e)):this.hide())},n.prototype.isShow=function(){return this._show},n.prototype.dispose=function(){this._zr.remove(this.el)},n}();function po(n){return Math.max(0,n)}function ZP(n){var e=po(n.shadowBlur||0),t=po(n.shadowOffsetX||0),i=po(n.shadowOffsetY||0);return{left:po(e-t),right:po(e+t),top:po(e-i),bottom:po(e+i)}}function qP(n,e,t,i){n[0]=t,n[1]=i,n[2]=n[0]/e.getWidth(),n[3]=n[1]/e.getHeight()}var PK=new de({shape:{x:-1,y:-1,width:2,height:2}}),RK=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,i){if(!(oe.node||!i.getDom())){var r=t.getComponent("tooltip"),a=this._renderMode=CO(r.get("renderMode"));this._tooltipContent=a==="richText"?new DK(i):new LK(i,{appendTo:r.get("appendToBody",!0)?"body":r.get("appendTo",!0)})}},e.prototype.render=function(t,i,r){if(!(oe.node||!r.getDom())){this.group.removeAll(),this._tooltipModel=t,this._ecModel=i,this._api=r;var a=this._tooltipContent;a.update(t),a.setEnterable(t.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&t.get("transitionDuration")?kl(this,"_updatePosition",50,"fixRate"):bc(this,"_updatePosition")}},e.prototype._initGlobalListener=function(){var t=this._tooltipModel,i=t.get("triggerOn");tP("itemTooltip",this._api,Ct(function(r,a,o){i!=="none"&&(i.indexOf(r)>=0?this._tryShow(a,o):r==="leave"&&this._hide(o))},this))},e.prototype._keepShow=function(){var t=this._tooltipModel,i=this._ecModel,r=this._api,a=t.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&a!=="none"&&a!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!r.isDisposed()&&o.manuallyShowTip(t,i,r,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},e.prototype.manuallyShowTip=function(t,i,r,a){if(!(a.from===this.uid||oe.node||!r.getDom())){var o=KP(a,r);this._ticket="";var s=a.dataByCoordSys,l=OK(a,i,r);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 c=PK;c.x=a.x,c.y=a.y,c.update(),jt(c).tooltipConfig={name:null,option:a.tooltip},this._tryShow({offsetX:a.x,offsetY:a.y,target:c},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(t,i,r,a))return;var h=nP(a,i),f=h.point[0],d=h.point[1];f!=null&&d!=null&&this._tryShow({offsetX:f,offsetY:d,target:h.el,position:a.position,positionDefault:"bottom"},o)}else a.x!=null&&a.y!=null&&(r.dispatchAction({type:"updateAxisPointer",x:a.x,y:a.y}),this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,target:r.getZr().findHover(a.x,a.y).target},o))}},e.prototype.manuallyHideTip=function(t,i,r,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(KP(a,r))},e.prototype._manuallyAxisShowTip=function(t,i,r,a){var o=a.seriesIndex,s=a.dataIndex,l=i.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||l==null)){var u=i.getSeriesByIndex(o);if(u){var c=u.getData(),h=vh([c.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(h.get("trigger")==="axis")return r.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:a.position}),!0}}},e.prototype._tryShow=function(t,i){var r=t.target,a=this._tooltipModel;if(a){this._lastX=t.offsetX,this._lastY=t.offsetY;var o=t.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,t);else if(r){var s=jt(r);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null;var l,u;hs(r,function(c){if(jt(c).dataIndex!=null)return l=c,!0;if(jt(c).tooltipConfig!=null)return u=c,!0},!0),l?this._showSeriesItemTooltip(t,l,i):u?this._showComponentItemTooltip(t,u,i):this._hide(i)}else this._lastDataByCoordSys=null,this._hide(i)}},e.prototype._showOrMove=function(t,i){var r=t.get("showDelay");i=Ct(i,this),clearTimeout(this._showTimout),r>0?this._showTimout=setTimeout(i,r):i()},e.prototype._showAxisTooltip=function(t,i){var r=this._ecModel,a=this._tooltipModel,o=[i.offsetX,i.offsetY],s=vh([i.tooltipOption],a),l=this._renderMode,u=[],c=vn("section",{blocks:[],noHeader:!0}),h=[],f=new Sm;E(t,function(p){E(p.dataByAxis,function(x){var b=r.getComponent(x.axisDim+"Axis",x.axisIndex),S=x.value;if(!(!b||S==null)){var M=qD(S,b.axis,r,x.seriesDataIndices,x.valueLabelOpt),I=vn("section",{header:M,noHeader:!nr(M),sortBlocks:!0,blocks:[]});c.blocks.push(I),E(x.seriesDataIndices,function(A){var C=r.getSeriesByIndex(A.seriesIndex),L=A.dataIndexInside,R=C.getDataParams(L);if(!(R.dataIndex<0)){R.axisDim=x.axisDim,R.axisIndex=x.axisIndex,R.axisType=x.axisType,R.axisId=x.axisId,R.axisValue=i0(b.axis,{value:S}),R.axisValueLabel=M,R.marker=f.makeTooltipMarker("item",as(R.color),l);var D=RM(C.formatTooltip(L,!0,null)),N=D.frag;if(N){var k=vh([C],a).get("valueFormatter");I.blocks.push(k?lt({valueFormatter:k},N):N)}D.text&&h.push(D.text),u.push(R)}})}})}),c.blocks.reverse(),h.reverse();var d=i.position,g=s.get("order"),y=YM(c,f,l,g,r.get("useUTC"),s.get("textStyle"));y&&h.unshift(y);var _=l==="richText"?`
|
|
94
|
+
|
|
95
|
+
`:"<br/>",v=h.join(_);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(t,u)?this._updatePosition(s,d,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,v,u,Math.random()+"",o[0],o[1],d,null,f)})},e.prototype._showSeriesItemTooltip=function(t,i,r){var a=this._ecModel,o=jt(i),s=o.seriesIndex,l=a.getSeriesByIndex(s),u=o.dataModel||l,c=o.dataIndex,h=o.dataType,f=u.getData(h),d=this._renderMode,g=t.positionDefault,y=vh([f.getItemModel(c),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,g?{position:g}:null),_=y.get("trigger");if(!(_!=null&&_!=="item")){var v=u.getDataParams(c,h),p=new Sm;v.marker=p.makeTooltipMarker("item",as(v.color),d);var x=RM(u.formatTooltip(c,!1,h)),b=y.get("order"),S=y.get("valueFormatter"),M=x.frag,I=M?YM(S?lt({valueFormatter:S},M):M,p,d,b,a.get("useUTC"),y.get("textStyle")):x.text,A="item_"+u.name+"_"+c;this._showOrMove(y,function(){this._showTooltipContent(y,I,v,A,t.offsetX,t.offsetY,t.position,t.target,p)}),r({type:"showTip",dataIndexInside:c,dataIndex:f.getRawIndex(c),seriesIndex:s,from:this.uid})}},e.prototype._showComponentItemTooltip=function(t,i,r){var a=this._renderMode==="html",o=jt(i),s=o.tooltipConfig,l=s.option||{},u=l.encodeHTMLContent;if(Tt(l)){var c=l;l={content:c,formatter:c},u=!0}u&&a&&l.content&&(l=Wt(l),l.content=Un(l.content));var h=[l],f=this._ecModel.getComponent(o.componentMainType,o.componentIndex);f&&h.push(f),h.push({formatter:l.content});var d=t.positionDefault,g=vh(h,this._tooltipModel,d?{position:d}:null),y=g.get("content"),_=Math.random()+"",v=new Sm;this._showOrMove(g,function(){var p=Wt(g.get("formatterParams")||{});this._showTooltipContent(g,y,p,_,t.offsetX,t.offsetY,t.position,i,v)}),r({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(t,i,r,a,o,s,l,u,c){if(this._ticket="",!(!t.get("showContent")||!t.get("show"))){var h=this._tooltipContent;h.setEnterable(t.get("enterable"));var f=t.get("formatter");l=l||t.get("position");var d=i,g=this._getNearestPoint([o,s],r,t.get("trigger"),t.get("borderColor")),y=g.color;if(f)if(Tt(f)){var _=t.ecModel.get("useUTC"),v=ht(r)?r[0]:r,p=v&&v.axisType&&v.axisType.indexOf("time")>=0;d=f,p&&(d=ld(v.axisValue,d,_)),d=YS(d,r,!0)}else if(Ot(f)){var x=Ct(function(b,S){b===this._ticket&&(h.setContent(S,c,t,y,l),this._updatePosition(t,l,o,s,h,r,u))},this);this._ticket=a,d=f(r,a,x)}else d=f;h.setContent(d,c,t,y,l),h.show(t,y),this._updatePosition(t,l,o,s,h,r,u)}},e.prototype._getNearestPoint=function(t,i,r,a){if(r==="axis"||ht(i))return{color:a||(this._renderMode==="html"?"#fff":"none")};if(!ht(i))return{color:a||i.color||i.borderColor}},e.prototype._updatePosition=function(t,i,r,a,o,s,l){var u=this._api.getWidth(),c=this._api.getHeight();i=i||t.get("position");var h=o.getSize(),f=t.get("align"),d=t.get("verticalAlign"),g=l&&l.getBoundingRect().clone();if(l&&g.applyTransform(l.transform),Ot(i)&&(i=i([r,a],s,o.el,g,{viewSize:[u,c],contentSize:h.slice()})),ht(i))r=Mt(i[0],u),a=Mt(i[1],c);else if(Vt(i)){var y=i;y.width=h[0],y.height=h[1];var _=un(y,{width:u,height:c});r=_.x,a=_.y,f=null,d=null}else if(Tt(i)&&l){var v=EK(i,g,h,t.get("borderWidth"));r=v[0],a=v[1]}else{var v=NK(r,a,o,u,c,f?null:20,d?null:20);r=v[0],a=v[1]}if(f&&(r-=YP(f)?h[0]/2:f==="right"?h[0]:0),d&&(a-=YP(d)?h[1]/2:d==="bottom"?h[1]:0),WP(t)){var v=zK(r,a,o,u,c);r=v[0],a=v[1]}o.moveTo(r,a)},e.prototype._updateContentNotChangedOnAxis=function(t,i){var r=this._lastDataByCoordSys,a=this._cbParamsList,o=!!r&&r.length===t.length;return o&&E(r,function(s,l){var u=s.dataByAxis||[],c=t[l]||{},h=c.dataByAxis||[];o=o&&u.length===h.length,o&&E(u,function(f,d){var g=h[d]||{},y=f.seriesDataIndices||[],_=g.seriesDataIndices||[];o=o&&f.value===g.value&&f.axisType===g.axisType&&f.axisId===g.axisId&&y.length===_.length,o&&E(y,function(v,p){var x=_[p];o=o&&v.seriesIndex===x.seriesIndex&&v.dataIndex===x.dataIndex}),a&&E(f.seriesDataIndices,function(v){var p=v.seriesIndex,x=i[p],b=a[p];x&&b&&b.data!==x.data&&(o=!1)})})}),this._lastDataByCoordSys=t,this._cbParamsList=i,!!o},e.prototype._hide=function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},e.prototype.dispose=function(t,i){oe.node||!i.getDom()||(bc(this,"_updatePosition"),this._tooltipContent.dispose(),w_("itemTooltip",i))},e.type="tooltip",e}(je);function vh(n,e,t){var i=e.ecModel,r;t?(r=new Ce(t,i,i),r=new Ce(e.option,r,i)):r=e;for(var a=n.length-1;a>=0;a--){var o=n[a];o&&(o instanceof Ce&&(o=o.get("tooltip",!0)),Tt(o)&&(o={formatter:o}),o&&(r=new Ce(o,r,i)))}return r}function KP(n,e){return n.dispatchAction||Ct(e.dispatchAction,e)}function NK(n,e,t,i,r,a,o){var s=t.getSize(),l=s[0],u=s[1];return a!=null&&(n+l+a+2>i?n-=l+a:n+=a),o!=null&&(e+u+o>r?e-=u+o:e+=o),[n,e]}function zK(n,e,t,i,r){var a=t.getSize(),o=a[0],s=a[1];return n=Math.min(n+o,i)-o,e=Math.min(e+s,r)-s,n=Math.max(n,0),e=Math.max(e,0),[n,e]}function EK(n,e,t,i){var r=t[0],a=t[1],o=Math.ceil(Math.SQRT2*i)+8,s=0,l=0,u=e.width,c=e.height;switch(n){case"inside":s=e.x+u/2-r/2,l=e.y+c/2-a/2;break;case"top":s=e.x+u/2-r/2,l=e.y-a-o;break;case"bottom":s=e.x+u/2-r/2,l=e.y+c+o;break;case"left":s=e.x-r-o,l=e.y+c/2-a/2;break;case"right":s=e.x+u+o,l=e.y+c/2-a/2}return[s,l]}function YP(n){return n==="center"||n==="middle"}function OK(n,e,t){var i=ry(n).queryOptionMap,r=i.keys()[0];if(!(!r||r==="series")){var a=Zu(e,r,i.get(r),{useDefault:!1,enableAll:!1,enableNone:!1}),o=a.models[0];if(o){var s=t.getViewOfComponentModel(o),l;if(s.group.traverse(function(u){var c=jt(u).tooltipConfig;if(c&&c.name===n.name)return l=u,!0}),l)return{componentMainType:r,componentIndex:o.componentIndex,el:l}}}}function BK(n){ie(fh),n.registerComponentModel(xK),n.registerComponentView(RK),n.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},Je),n.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},Je)}var VK=["rect","polygon","keep","clear"];function FK(n,e){var t=De(n?n.brush:[]);if(t.length){var i=[];E(t,function(l){var u=l.hasOwnProperty("toolbox")?l.toolbox:[];u instanceof Array&&(i=i.concat(u))});var r=n&&n.toolbox;ht(r)&&(r=r[0]),r||(r={feature:{}},n.toolbox=[r]);var a=r.feature||(r.feature={}),o=a.brush||(a.brush={}),s=o.type||(o.type=[]);s.push.apply(s,i),WK(s),e&&!s.length&&s.push.apply(s,VK)}}function WK(n){var e={};E(n,function(t){e[t]=1}),n.length=0,E(e,function(t,i){n.push(i)})}var JP=E;function $P(n){if(n){for(var e in n)if(n.hasOwnProperty(e))return!0}}function W_(n,e,t){var i={};return JP(e,function(a){var o=i[a]=r();JP(n[a],function(s,l){if(mn.isValidType(l)){var u={type:l,visual:s};t&&t(u,a),o[l]=new mn(u),l==="opacity"&&(u=Wt(u),u.type="colorAlpha",o.__hidden.__alphaForOpacity=new mn(u))}})}),i;function r(){var a=function(){};a.prototype.__hidden=a.prototype;var o=new a;return o}}function QP(n,e,t){var i;E(t,function(r){e.hasOwnProperty(r)&&$P(e[r])&&(i=!0)}),i&&E(t,function(r){e.hasOwnProperty(r)&&$P(e[r])?n[r]=Wt(e[r]):delete n[r]})}function GK(n,e,t,i,r,a){var o={};E(n,function(h){var f=mn.prepareVisualTypes(e[h]);o[h]=f});var s;function l(h){return Am(t,s,h)}function u(h,f){bI(t,s,h,f)}t.each(c);function c(h,f){s=h;var d=t.getRawDataItem(s);if(!(d&&d.visualMap===!1))for(var g=i.call(r,h),y=e[g],_=o[g],v=0,p=_.length;v<p;v++){var x=_[v];y[x]&&y[x].applyVisual(h,l,u)}}}function jK(n,e,t,i){var r={};return E(n,function(a){var o=mn.prepareVisualTypes(e[a]);r[a]=o}),{progress:function(a,o){var s;i!=null&&(s=o.getDimensionIndex(i));function l(b){return Am(o,c,b)}function u(b,S){bI(o,c,b,S)}for(var c,h=o.getStore();(c=a.next())!=null;){var f=o.getRawDataItem(c);if(!(f&&f.visualMap===!1))for(var d=i!=null?h.get(s,c):c,g=t(d),y=e[g],_=r[g],v=0,p=_.length;v<p;v++){var x=_[v];y[x]&&y[x].applyVisual(d,l,u)}}}}}function HK(n){var e=n.brushType,t={point:function(i){return t5[e].point(i,t,n)},rect:function(i){return t5[e].rect(i,t,n)}};return t}var t5={lineX:e5(0),lineY:e5(1),rect:{point:function(n,e,t){return n&&t.boundingRect.contain(n[0],n[1])},rect:function(n,e,t){return n&&t.boundingRect.intersect(n)}},polygon:{point:function(n,e,t){return n&&t.boundingRect.contain(n[0],n[1])&&ys(t.range,n[0],n[1])},rect:function(n,e,t){var i=t.range;if(!n||i.length<=1)return!1;var r=n.x,a=n.y,o=n.width,s=n.height,l=i[0];if(ys(i,r,a)||ys(i,r+o,a)||ys(i,r,a+s)||ys(i,r+o,a+s)||$t.create(n).contain(l[0],l[1])||cc(r,a,r+o,a,i)||cc(r,a,r,a+s,i)||cc(r+o,a,r+o,a+s,i)||cc(r,a+s,r+o,a+s,i))return!0}}};function e5(n){var e=["x","y"],t=["width","height"];return{point:function(i,r,a){if(i){var o=a.range,s=i[n];return yh(s,o)}},rect:function(i,r,a){if(i){var o=a.range,s=[i[e[n]],i[e[n]]+i[t[n]]];return s[1]<s[0]&&s.reverse(),yh(s[0],o)||yh(s[1],o)||yh(o[0],s)||yh(o[1],s)}}}}function yh(n,e){return e[0]<=n&&n<=e[1]}var n5=["inBrush","outOfBrush"],G_="__ecBrushSelect",j_="__ecInBrushSelectEvent";function i5(n){n.eachComponent({mainType:"brush"},function(e){var t=e.brushTargetManager=new z_(e.option,n);t.setInputRanges(e.areas,n)})}function UK(n,e,t){var i=[],r,a;n.eachComponent({mainType:"brush"},function(o){t&&t.type==="takeGlobalCursor"&&o.setBrushOption(t.key==="brush"?t.brushOption:{brushType:!1})}),i5(n),n.eachComponent({mainType:"brush"},function(o,s){var l={brushId:o.id,brushIndex:s,brushName:o.name,areas:Wt(o.areas),selected:[]};i.push(l);var u=o.option,c=u.brushLink,h=[],f=[],d=[],g=!1;s||(r=u.throttleType,a=u.throttleDelay);var y=pt(o.areas,function(S){var M=KK[S.brushType],I=Bt({boundingRect:M?M(S):void 0},S);return I.selectors=HK(I),I}),_=W_(o.option,n5,function(S){S.mappingMethod="fixed"});ht(c)&&E(c,function(S){h[S]=1});function v(S){return c==="all"||!!h[S]}function p(S){return!!S.length}n.eachSeries(function(S,M){var I=d[M]=[];S.subType==="parallel"?x(S,M):b(S,M,I)});function x(S,M){var I=S.coordinateSystem;g=g||I.hasAxisBrushed(),v(M)&&I.eachActiveState(S.getData(),function(A,C){A==="active"&&(f[C]=1)})}function b(S,M,I){if(!(!S.brushSelector||qK(o,M))&&(E(y,function(C){o.brushTargetManager.controlSeries(C,S,n)&&I.push(C),g=g||p(I)}),v(M)&&p(I))){var A=S.getData();A.each(function(C){r5(S,I,A,C)&&(f[C]=1)})}}n.eachSeries(function(S,M){var I={seriesId:S.id,seriesIndex:M,seriesName:S.name,dataIndex:[]};l.selected.push(I);var A=d[M],C=S.getData(),L=v(M)?function(R){return f[R]?(I.dataIndex.push(C.getRawIndex(R)),"inBrush"):"outOfBrush"}:function(R){return r5(S,A,C,R)?(I.dataIndex.push(C.getRawIndex(R)),"inBrush"):"outOfBrush"};(v(M)?g:p(A))&&GK(n5,_,C,L)})}),XK(e,r,a,i,t)}function XK(n,e,t,i,r){if(r){var a=n.getZr();if(!a[j_]){a[G_]||(a[G_]=ZK);var o=kl(a,G_,t,e);o(n,i)}}}function ZK(n,e){if(!n.isDisposed()){var t=n.getZr();t[j_]=!0,n.dispatchAction({type:"brushSelect",batch:e}),t[j_]=!1}}function r5(n,e,t,i){for(var r=0,a=e.length;r<a;r++){var o=e[r];if(n.brushSelector(i,t,o.selectors,o))return!0}}function qK(n,e){var t=n.option.seriesIndex;return t!=null&&t!=="all"&&(ht(t)?Qt(t,e)<0:e!==t)}var KK={rect:function(n){return a5(n.range)},polygon:function(n){for(var e,t=n.range,i=0,r=t.length;i<r;i++){e=e||[[1/0,-1/0],[1/0,-1/0]];var a=t[i];a[0]<e[0][0]&&(e[0][0]=a[0]),a[0]>e[0][1]&&(e[0][1]=a[0]),a[1]<e[1][0]&&(e[1][0]=a[1]),a[1]>e[1][1]&&(e[1][1]=a[1])}return e&&a5(e)}};function a5(n){return new $t(n[0][0],n[1][0],n[0][1]-n[0][0],n[1][1]-n[1][0])}var YK=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,i){this.ecModel=t,this.api=i,this.model,(this._brushController=new N1(i.getZr())).on("brush",Ct(this._onBrush,this)).mount()},e.prototype.render=function(t,i,r,a){this.model=t,this._updateController(t,i,r,a)},e.prototype.updateTransform=function(t,i,r,a){i5(i),this._updateController(t,i,r,a)},e.prototype.updateVisual=function(t,i,r,a){this.updateTransform(t,i,r,a)},e.prototype.updateView=function(t,i,r,a){this._updateController(t,i,r,a)},e.prototype._updateController=function(t,i,r,a){(!a||a.$from!==t.id)&&this._brushController.setPanels(t.brushTargetManager.makePanelOpts(r)).enableBrush(t.brushOption).updateCovers(t.areas.slice())},e.prototype.dispose=function(){this._brushController.dispose()},e.prototype._onBrush=function(t){var i=this.model.id,r=this.model.brushTargetManager.setOutputRanges(t.areas,this.ecModel);(!t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:i,areas:Wt(r),$from:i}),t.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:i,areas:Wt(r),$from:i})},e.type="brush",e}(je),JK="#ddd",$K=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.areas=[],t.brushOption={},t}return e.prototype.optionUpdated=function(t,i){var r=this.option;!i&&QP(r,t,["inBrush","outOfBrush"]);var a=r.inBrush=r.inBrush||{};r.outOfBrush=r.outOfBrush||{color:JK},a.hasOwnProperty("liftZ")||(a.liftZ=5)},e.prototype.setAreas=function(t){t&&(this.areas=pt(t,function(i){return o5(this.option,i)},this))},e.prototype.setBrushOption=function(t){this.brushOption=o5(this.option,t),this.brushType=this.brushOption.brushType},e.type="brush",e.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],e.defaultOption={seriesIndex:"all",brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(210,219,238,0.3)",borderColor:"#D2DBEE"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},e}(le);function o5(n,e){return Kt({brushType:n.brushType,brushMode:n.brushMode,transformable:n.transformable,brushStyle:new Ce(n.brushStyle).getItemStyle(),removeOnClick:n.removeOnClick,z:n.z},e,!0)}var QK=["rect","polygon","lineX","lineY","keep","clear"],tY=function(n){Q(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.render=function(t,i,r){var a,o,s;i.eachComponent({mainType:"brush"},function(l){a=l.brushType,o=l.brushOption.brushMode||"single",s=s||!!l.areas.length}),this._brushType=a,this._brushMode=o,E(t.get("type",!0),function(l){t.setIconStatus(l,(l==="keep"?o==="multiple":l==="clear"?s:l===a)?"emphasis":"normal")})},e.prototype.updateView=function(t,i,r){this.render(t,i,r)},e.prototype.getIcons=function(){var t=this.model,i=t.get("icon",!0),r={};return E(t.get("type",!0),function(a){i[a]&&(r[a]=i[a])}),r},e.prototype.onclick=function(t,i,r){var a=this._brushType,o=this._brushMode;r==="clear"?(i.dispatchAction({type:"axisAreaSelect",intervals:[]}),i.dispatchAction({type:"brush",command:"clear",areas:[]})):i.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:r==="keep"?a:a===r?!1:r,brushMode:r==="keep"?o==="multiple"?"single":"multiple":o}})},e.getDefaultOption=function(t){var i={show:!0,type:QK.slice(),icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:t.getLocaleModel().get(["toolbox","brush","title"])};return i},e}(Xi);function eY(n){n.registerComponentView(YK),n.registerComponentModel($K),n.registerPreprocessor(FK),n.registerVisual(n.PRIORITY.VISUAL.BRUSH,UK),n.registerAction({type:"brush",event:"brush",update:"updateVisual"},function(e,t){t.eachComponent({mainType:"brush",query:e},function(i){i.setAreas(e.areas)})}),n.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},Je),n.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},Je),Jl("brush",tY)}var nY=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.layoutMode={type:"box",ignoreSize:!0},t}return e.type="title",e.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},e}(le),iY=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,i,r){if(this.group.removeAll(),!!t.get("show")){var a=this.group,o=t.getModel("textStyle"),s=t.getModel("subtextStyle"),l=t.get("textAlign"),u=Ut(t.get("textBaseline"),t.get("textVerticalAlign")),c=new fe({style:Ee(o,{text:t.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),h=c.getBoundingRect(),f=t.get("subtext"),d=new fe({style:Ee(s,{text:f,fill:s.getTextColor(),y:h.height+t.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),g=t.get("link"),y=t.get("sublink"),_=t.get("triggerEvent",!0);c.silent=!g&&!_,d.silent=!y&&!_,g&&c.on("click",function(){dd(g,"_"+t.get("target"))}),y&&d.on("click",function(){dd(y,"_"+t.get("subtarget"))}),jt(c).eventData=jt(d).eventData=_?{componentType:"title",componentIndex:t.componentIndex}:null,a.add(c),f&&a.add(d);var v=a.getBoundingRect(),p=t.getBoxLayoutParams();p.width=v.width,p.height=v.height;var x=un(p,{width:r.getWidth(),height:r.getHeight()},t.get("padding"));l||(l=t.get("left")||t.get("right"),l==="middle"&&(l="center"),l==="right"?x.x+=x.width:l==="center"&&(x.x+=x.width/2)),u||(u=t.get("top")||t.get("bottom"),u==="center"&&(u="middle"),u==="bottom"?x.y+=x.height:u==="middle"&&(x.y+=x.height/2),u=u||"top"),a.x=x.x,a.y=x.y,a.markRedraw();var b={align:l,verticalAlign:u};c.setStyle(b),d.setStyle(b),v=a.getBoundingRect();var S=x.margin,M=t.getItemStyle(["color","opacity"]);M.fill=t.get("backgroundColor");var I=new de({shape:{x:v.x-S[3],y:v.y-S[0],width:v.width+S[1]+S[3],height:v.height+S[0]+S[2],r:t.get("borderRadius")},style:M,subPixelOptimize:!0,silent:!0});a.add(I)}},e.type="title",e}(je);function rY(n){n.registerComponentModel(nY),n.registerComponentView(iY)}var s5=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.layoutMode="box",t}return e.prototype.init=function(t,i,r){this.mergeDefaultAndTheme(t,r),this._initData()},e.prototype.mergeOption=function(t){n.prototype.mergeOption.apply(this,arguments),this._initData()},e.prototype.setCurrentIndex=function(t){t==null&&(t=this.option.currentIndex);var i=this._data.count();this.option.loop?t=(t%i+i)%i:(t>=i&&(t=i-1),t<0&&(t=0)),this.option.currentIndex=t},e.prototype.getCurrentIndex=function(){return this.option.currentIndex},e.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},e.prototype.setPlayState=function(t){this.option.autoPlay=!!t},e.prototype.getPlayState=function(){return!!this.option.autoPlay},e.prototype._initData=function(){var t=this.option,i=t.data||[],r=t.axisType,a=this._names=[],o;r==="category"?(o=[],E(i,function(u,c){var h=ln(ol(u),""),f;Vt(u)?(f=Wt(u),f.value=c):f=c,o.push(f),a.push(h)})):o=i;var s={category:"ordinal",time:"time",value:"number"}[r]||"number",l=this._data=new Jn([{name:"value",type:s}],this);l.initData(o,a)},e.prototype.getData=function(){return this._data},e.prototype.getCategories=function(){if(this.get("axisType")==="category")return this._names.slice()},e.type="timeline",e.defaultOption={z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]},e}(le),l5=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="timeline.slider",e.defaultOption=qa(s5.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:"#DAE1F5"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#A4B1D7"},itemStyle:{color:"#A4B1D7",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:15,color:"#316bf3",borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0, 0, 0, 0.3)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,itemGap:12,position:"left",playIcon:"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",stopIcon:"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",nextIcon:"M2,18.5A1.52,1.52,0,0,1,.92,18a1.49,1.49,0,0,1,0-2.12L7.81,9.36,1,3.11A1.5,1.5,0,1,1,3,.89l8,7.34a1.48,1.48,0,0,1,.49,1.09,1.51,1.51,0,0,1-.46,1.1L3,18.08A1.5,1.5,0,0,1,2,18.5Z",prevIcon:"M10,.5A1.52,1.52,0,0,1,11.08,1a1.49,1.49,0,0,1,0,2.12L4.19,9.64,11,15.89a1.5,1.5,0,1,1-2,2.22L1,10.77A1.48,1.48,0,0,1,.5,9.68,1.51,1.51,0,0,1,1,8.58L9,.92A1.5,1.5,0,0,1,10,.5Z",prevBtnSize:18,nextBtnSize:18,color:"#A4B1D7",borderColor:"#A4B1D7",borderWidth:1},emphasis:{label:{show:!0,color:"#6f778d"},itemStyle:{color:"#316BF3"},controlStyle:{color:"#316BF3",borderColor:"#316BF3",borderWidth:2}},progress:{lineStyle:{color:"#316BF3"},itemStyle:{color:"#316BF3"},label:{color:"#6f778d"}},data:[]}),e}(s5);tn(l5,md.prototype);var aY=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="timeline",e}(je),oY=function(n){Q(e,n);function e(t,i,r,a){var o=n.call(this,t,i,r)||this;return o.type=a||"value",o}return e.prototype.getLabelModel=function(){return this.model.getModel("label")},e.prototype.isHorizontal=function(){return this.model.get("orient")==="horizontal"},e}(dr),H_=Math.PI,u5=pe(),sY=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,i){this.api=i},e.prototype.render=function(t,i,r){if(this.model=t,this.api=r,this.ecModel=i,this.group.removeAll(),t.get("show",!0)){var a=this._layout(t,r),o=this._createGroup("_mainGroup"),s=this._createGroup("_labelGroup"),l=this._axis=this._createAxis(a,t);t.formatTooltip=function(u){var c=l.scale.getLabel({value:u});return vn("nameValue",{noName:!0,value:c})},E(["AxisLine","AxisTick","Control","CurrentPointer"],function(u){this["_render"+u](a,o,l,t)},this),this._renderAxisLabel(a,s,l,t),this._position(a,t)}this._doPlayStop(),this._updateTicksStatus()},e.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},e.prototype.dispose=function(){this._clearTimer()},e.prototype._layout=function(t,i){var r=t.get(["label","position"]),a=t.get("orient"),o=uY(t,i),s;r==null||r==="auto"?s=a==="horizontal"?o.y+o.height/2<i.getHeight()/2?"-":"+":o.x+o.width/2<i.getWidth()/2?"+":"-":Tt(r)?s={horizontal:{top:"-",bottom:"+"},vertical:{left:"-",right:"+"}}[a][r]:s=r;var l={horizontal:"center",vertical:s>=0||s==="+"?"left":"right"},u={horizontal:s>=0||s==="+"?"top":"bottom",vertical:"middle"},c={horizontal:0,vertical:H_/2},h=a==="vertical"?o.height:o.width,f=t.getModel("controlStyle"),d=f.get("show",!0),g=d?f.get("itemSize"):0,y=d?f.get("itemGap"):0,_=g+y,v=t.get(["label","rotate"])||0;v=v*H_/180;var p,x,b,S=f.get("position",!0),M=d&&f.get("showPlayBtn",!0),I=d&&f.get("showPrevBtn",!0),A=d&&f.get("showNextBtn",!0),C=0,L=h;S==="left"||S==="bottom"?(M&&(p=[0,0],C+=_),I&&(x=[C,0],C+=_),A&&(b=[L-g,0],L-=_)):(M&&(p=[L-g,0],L-=_),I&&(x=[0,0],C+=_),A&&(b=[L-g,0],L-=_));var R=[C,L];return t.get("inverse")&&R.reverse(),{viewRect:o,mainLength:h,orient:a,rotation:c[a],labelRotation:v,labelPosOpt:s,labelAlign:t.get(["label","align"])||l[a],labelBaseline:t.get(["label","verticalAlign"])||t.get(["label","baseline"])||u[a],playPosition:p,prevBtnPosition:x,nextBtnPosition:b,axisExtent:R,controlSize:g,controlGap:y}},e.prototype._position=function(t,i){var r=this._mainGroup,a=this._labelGroup,o=t.viewRect;if(t.orient==="vertical"){var s=fi(),l=o.x,u=o.y+o.height;Sr(s,s,[-l,-u]),ko(s,s,-H_/2),Sr(s,s,[l,u]),o=o.clone(),o.applyTransform(s)}var c=p(o),h=p(r.getBoundingRect()),f=p(a.getBoundingRect()),d=[r.x,r.y],g=[a.x,a.y];g[0]=d[0]=c[0][0];var y=t.labelPosOpt;if(y==null||Tt(y)){var _=y==="+"?0:1;x(d,h,c,1,_),x(g,f,c,1,1-_)}else{var _=y>=0?0:1;x(d,h,c,1,_),g[1]=d[1]+y}r.setPosition(d),a.setPosition(g),r.rotation=a.rotation=t.rotation,v(r),v(a);function v(b){b.originX=c[0][0]-b.x,b.originY=c[1][0]-b.y}function p(b){return[[b.x,b.x+b.width],[b.y,b.y+b.height]]}function x(b,S,M,I,A){b[I]+=M[I][A]-S[I][A]}},e.prototype._createAxis=function(t,i){var r=i.getData(),a=i.get("axisType"),o=lY(i,a);o.getTicks=function(){return r.mapArray(["value"],function(u){return{value:u}})};var s=r.getDataExtent("value");o.setExtent(s[0],s[1]),o.calcNiceTicks();var l=new oY("value",o,t.axisExtent,a);return l.model=i,l},e.prototype._createGroup=function(t){var i=this[t]=new Gt;return this.group.add(i),i},e.prototype._renderAxisLine=function(t,i,r,a){var o=r.getExtent();if(a.get(["lineStyle","show"])){var s=new fn({shape:{x1:o[0],y1:0,x2:o[1],y2:0},style:lt({lineCap:"round"},a.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});i.add(s);var l=this._progressLine=new fn({shape:{x1:o[0],x2:this._currentPointer?this._currentPointer.x:o[0],y1:0,y2:0},style:Bt({lineCap:"round",lineWidth:s.style.lineWidth},a.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});i.add(l)}},e.prototype._renderAxisTick=function(t,i,r,a){var o=this,s=a.getData(),l=r.scale.getTicks();this._tickSymbols=[],E(l,function(u){var c=r.dataToCoord(u.value),h=s.getItemModel(u.value),f=h.getModel("itemStyle"),d=h.getModel(["emphasis","itemStyle"]),g=h.getModel(["progress","itemStyle"]),y={x:c,y:0,onclick:Ct(o._changeTimeline,o,u.value)},_=c5(h,f,i,y);_.ensureState("emphasis").style=d.getItemStyle(),_.ensureState("progress").style=g.getItemStyle(),Jo(_);var v=jt(_);h.get("tooltip")?(v.dataIndex=u.value,v.dataModel=a):v.dataIndex=v.dataModel=null,o._tickSymbols.push(_)})},e.prototype._renderAxisLabel=function(t,i,r,a){var o=this,s=r.getLabelModel();if(s.get("show")){var l=a.getData(),u=r.getViewLabels();this._tickLabels=[],E(u,function(c){var h=c.tickValue,f=l.getItemModel(h),d=f.getModel("label"),g=f.getModel(["emphasis","label"]),y=f.getModel(["progress","label"]),_=r.dataToCoord(c.tickValue),v=new fe({x:_,y:0,rotation:t.labelRotation-t.rotation,onclick:Ct(o._changeTimeline,o,h),silent:!1,style:Ee(d,{text:c.formattedLabel,align:t.labelAlign,verticalAlign:t.labelBaseline})});v.ensureState("emphasis").style=Ee(g),v.ensureState("progress").style=Ee(y),i.add(v),Jo(v),u5(v).dataIndex=h,o._tickLabels.push(v)})}},e.prototype._renderControl=function(t,i,r,a){var o=t.controlSize,s=t.rotation,l=a.getModel("controlStyle").getItemStyle(),u=a.getModel(["emphasis","controlStyle"]).getItemStyle(),c=a.getPlayState(),h=a.get("inverse",!0);f(t.nextBtnPosition,"next",Ct(this._changeTimeline,this,h?"-":"+")),f(t.prevBtnPosition,"prev",Ct(this._changeTimeline,this,h?"+":"-")),f(t.playPosition,c?"stop":"play",Ct(this._handlePlayClick,this,!c),!0);function f(d,g,y,_){if(d){var v=ar(Ut(a.get(["controlStyle",g+"BtnSize"]),o),o),p=[0,-v/2,v,v],x=cY(a,g+"Icon",p,{x:d[0],y:d[1],originX:o/2,originY:0,rotation:_?-s:0,rectHover:!0,style:l,onclick:y});x.ensureState("emphasis").style=u,i.add(x),Jo(x)}}},e.prototype._renderCurrentPointer=function(t,i,r,a){var o=a.getData(),s=a.getCurrentIndex(),l=o.getItemModel(s).getModel("checkpointStyle"),u=this,c={onCreate:function(h){h.draggable=!0,h.drift=Ct(u._handlePointerDrag,u),h.ondragend=Ct(u._handlePointerDragend,u),h5(h,u._progressLine,s,r,a,!0)},onUpdate:function(h){h5(h,u._progressLine,s,r,a)}};this._currentPointer=c5(l,l,this._mainGroup,{},this._currentPointer,c)},e.prototype._handlePlayClick=function(t){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:t,from:this.uid})},e.prototype._handlePointerDrag=function(t,i,r){this._clearTimer(),this._pointerChangeTimeline([r.offsetX,r.offsetY])},e.prototype._handlePointerDragend=function(t){this._pointerChangeTimeline([t.offsetX,t.offsetY],!0)},e.prototype._pointerChangeTimeline=function(t,i){var r=this._toAxisCoord(t)[0],a=this._axis,o=Pi(a.getExtent().slice());r>o[1]&&(r=o[1]),r<o[0]&&(r=o[0]),this._currentPointer.x=r,this._currentPointer.markRedraw();var s=this._progressLine;s&&(s.shape.x2=r,s.dirty());var l=this._findNearestTick(r),u=this.model;(i||l!==u.getCurrentIndex()&&u.get("realtime"))&&this._changeTimeline(l)},e.prototype._doPlayStop=function(){var t=this;this._clearTimer(),this.model.getPlayState()&&(this._timer=setTimeout(function(){var i=t.model;t._changeTimeline(i.getCurrentIndex()+(i.get("rewind",!0)?-1:1))},this.model.get("playInterval")))},e.prototype._toAxisCoord=function(t){var i=this._mainGroup.getLocalTransform();return ur(t,i,!0)},e.prototype._findNearestTick=function(t){var i=this.model.getData(),r=1/0,a,o=this._axis;return i.each(["value"],function(s,l){var u=o.dataToCoord(s),c=Math.abs(u-t);c<r&&(r=c,a=l)}),a},e.prototype._clearTimer=function(){this._timer&&(clearTimeout(this._timer),this._timer=null)},e.prototype._changeTimeline=function(t){var i=this.model.getCurrentIndex();t==="+"?t=i+1:t==="-"&&(t=i-1),this.api.dispatchAction({type:"timelineChange",currentIndex:t,from:this.uid})},e.prototype._updateTicksStatus=function(){var t=this.model.getCurrentIndex(),i=this._tickSymbols,r=this._tickLabels;if(i)for(var a=0;a<i.length;a++)i&&i[a]&&i[a].toggleState("progress",a<t);if(r)for(var a=0;a<r.length;a++)r&&r[a]&&r[a].toggleState("progress",u5(r[a]).dataIndex<=t)},e.type="timeline.slider",e}(aY);function lY(n,e){if(e=e||n.get("type"),e)switch(e){case"category":return new Gd({ordinalMeta:n.getCategories(),extent:[1/0,-1/0]});case"time":return new e0({locale:n.ecModel.getLocaleModel(),useUTC:n.ecModel.get("useUTC")});default:return new fa}}function uY(n,e){return un(n.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()},n.get("padding"))}function cY(n,e,t,i){var r=i.style,a=uc(n.get(["controlStyle",e]),i,new $t(t[0],t[1],t[2],t[3]));return r&&a.setStyle(r),a}function c5(n,e,t,i,r,a){var o=e.get("color");if(r)r.setColor(o),t.add(r),a&&a.onUpdate(r);else{var s=n.get("symbol");r=rn(s,-1,-1,2,2,o),r.setStyle("strokeNoScale",!0),t.add(r),a&&a.onCreate(r)}var l=e.getItemStyle(["color"]);r.setStyle(l),i=Kt({rectHover:!0,z2:100},i,!0);var u=Dl(n.get("symbolSize"));i.scaleX=u[0]/2,i.scaleY=u[1]/2;var c=ps(n.get("symbolOffset"),u);c&&(i.x=(i.x||0)+c[0],i.y=(i.y||0)+c[1]);var h=n.get("symbolRotate");return i.rotation=(h||0)*Math.PI/180||0,r.attr(i),r.updateTransform(),r}function h5(n,e,t,i,r,a){if(!n.dragging){var o=r.getModel("checkpointStyle"),s=i.dataToCoord(r.getData().get("value",t));if(a||!o.get("animation",!0))n.attr({x:s,y:0}),e&&e.attr({shape:{x2:s}});else{var l={duration:o.get("animationDuration",!0),easing:o.get("animationEasing",!0)};n.stopAnimation(null,!0),n.animateTo({x:s,y:0},l),e&&e.animateTo({shape:{x2:s}},l)}}}function hY(n){n.registerAction({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},function(e,t,i){var r=t.getComponent("timeline");return r&&e.currentIndex!=null&&(r.setCurrentIndex(e.currentIndex),!r.get("loop",!0)&&r.isIndexMax()&&r.getPlayState()&&(r.setPlayState(!1),i.dispatchAction({type:"timelinePlayChange",playState:!1,from:e.from}))),t.resetOption("timeline",{replaceMerge:r.get("replaceMerge",!0)}),Bt({currentIndex:r.option.currentIndex},e)}),n.registerAction({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},function(e,t){var i=t.getComponent("timeline");i&&e.playState!=null&&i.setPlayState(e.playState)})}function pY(n){var e=n&&n.timeline;ht(e)||(e=e?[e]:[]),E(e,function(t){t&&dY(t)})}function dY(n){var e=n.type,t={number:"value",time:"time"};if(t[e]&&(n.axisType=t[e],delete n.type),p5(n),Os(n,"controlPosition")){var i=n.controlStyle||(n.controlStyle={});Os(i,"position")||(i.position=n.controlPosition),i.position==="none"&&!Os(i,"show")&&(i.show=!1,delete i.position),delete n.controlPosition}E(n.data||[],function(r){Vt(r)&&!ht(r)&&(!Os(r,"value")&&Os(r,"name")&&(r.value=r.name),p5(r))})}function p5(n){var e=n.itemStyle||(n.itemStyle={}),t=e.emphasis||(e.emphasis={}),i=n.label||n.label||{},r=i.normal||(i.normal={}),a={normal:1,emphasis:1};E(i,function(o,s){!a[s]&&!Os(r,s)&&(r[s]=o)}),t.label&&!Os(i,"emphasis")&&(i.emphasis=t.label,delete t.label)}function Os(n,e){return n.hasOwnProperty(e)}function fY(n){n.registerComponentModel(l5),n.registerComponentView(sY),n.registerSubTypeDefaulter("timeline",function(){return"slider"}),hY(n),n.registerPreprocessor(pY)}function U_(n,e){if(!n)return!1;for(var t=ht(n)?n:[n],i=0;i<t.length;i++)if(t[i]&&t[i][e])return!0;return!1}function Gf(n){Oo(n,"label",["show"])}var jf=pe(),xa=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.createdBySelf=!1,t}return e.prototype.init=function(t,i,r){this.mergeDefaultAndTheme(t,r),this._mergeOption(t,r,!1,!0)},e.prototype.isAnimationEnabled=function(){if(oe.node)return!1;var t=this.__hostSeries;return this.getShallow("animation")&&t&&t.isAnimationEnabled()},e.prototype.mergeOption=function(t,i){this._mergeOption(t,i,!1,!1)},e.prototype._mergeOption=function(t,i,r,a){var o=this.mainType;r||i.eachSeries(function(s){var l=s.get(this.mainType,!0),u=jf(s)[o];if(!l||!l.data){jf(s)[o]=null;return}u?u._mergeOption(l,i,!0):(a&&Gf(l),E(l.data,function(c){c instanceof Array?(Gf(c[0]),Gf(c[1])):Gf(c)}),u=this.createMarkerModelFromSeries(l,this,i),lt(u,{mainType:this.mainType,seriesIndex:s.seriesIndex,name:s.name,createdBySelf:!0}),u.__hostSeries=s),jf(s)[o]=u},this)},e.prototype.formatTooltip=function(t,i,r){var a=this.getData(),o=this.getRawValue(t),s=a.getName(t);return vn("section",{header:this.name,blocks:[vn("nameValue",{name:s,value:o,noName:!s,noValue:o==null})]})},e.prototype.getData=function(){return this._data},e.prototype.setData=function(t){this._data=t},e.prototype.getDataParams=function(t,i){var r=md.prototype.getDataParams.call(this,t,i),a=this.__hostSeries;return a&&(r.seriesId=a.id,r.seriesName=a.name,r.seriesType=a.subType),r},e.getMarkerModelFromSeries=function(t,i){return jf(t)[i]},e.type="marker",e.dependencies=["series","grid","polar","geo"],e}(le);tn(xa,md.prototype);var gY=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.createMarkerModelFromSeries=function(t,i,r){return new e(t,i,r)},e.type="markPoint",e.defaultOption={z:5,symbol:"pin",symbolSize:50,tooltip:{trigger:"item"},label:{show:!0,position:"inside"},itemStyle:{borderWidth:2},emphasis:{label:{show:!0}}},e}(xa);function X_(n){return!(isNaN(parseFloat(n.x))&&isNaN(parseFloat(n.y)))}function vY(n){return!isNaN(parseFloat(n.x))&&!isNaN(parseFloat(n.y))}function Hf(n,e,t,i,r,a){var o=[],s=no(e,i),l=s?e.getCalculationInfo("stackResultDimension"):i,u=q_(e,l,n),c=e.indicesOfNearest(l,u)[0];o[r]=e.get(t,c),o[a]=e.get(l,c);var h=e.get(i,c),f=Ar(e.get(i,c));return f=Math.min(f,20),f>=0&&(o[a]=+o[a].toFixed(f)),[o,h]}var Z_={min:Zt(Hf,"min"),max:Zt(Hf,"max"),average:Zt(Hf,"average"),median:Zt(Hf,"median")};function mh(n,e){if(e){var t=n.getData(),i=n.coordinateSystem,r=i&&i.dimensions;if(!vY(e)&&!ht(e.coord)&&ht(r)){var a=d5(e,t,i,n);if(e=Wt(e),e.type&&Z_[e.type]&&a.baseAxis&&a.valueAxis){var o=Qt(r,a.baseAxis.dim),s=Qt(r,a.valueAxis.dim),l=Z_[e.type](t,a.baseDataDim,a.valueDataDim,o,s);e.coord=l[0],e.value=l[1]}else e.coord=[e.xAxis!=null?e.xAxis:e.radiusAxis,e.yAxis!=null?e.yAxis:e.angleAxis]}if(e.coord==null||!ht(r))e.coord=[];else for(var u=e.coord,c=0;c<2;c++)Z_[u[c]]&&(u[c]=q_(t,t.mapDimension(r[c]),u[c]));return e}}function d5(n,e,t,i){var r={};return n.valueIndex!=null||n.valueDim!=null?(r.valueDataDim=n.valueIndex!=null?e.getDimension(n.valueIndex):n.valueDim,r.valueAxis=t.getAxis(yY(i,r.valueDataDim)),r.baseAxis=t.getOtherAxis(r.valueAxis),r.baseDataDim=e.mapDimension(r.baseAxis.dim)):(r.baseAxis=i.getBaseAxis(),r.valueAxis=t.getOtherAxis(r.baseAxis),r.baseDataDim=e.mapDimension(r.baseAxis.dim),r.valueDataDim=e.mapDimension(r.valueAxis.dim)),r}function yY(n,e){var t=n.getData().getDimensionInfo(e);return t&&t.coordDim}function _h(n,e){return n&&n.containData&&e.coord&&!X_(e)?n.containData(e.coord):!0}function mY(n,e,t){return n&&n.containZone&&e.coord&&t.coord&&!X_(e)&&!X_(t)?n.containZone(e.coord,t.coord):!0}function f5(n,e){return n?function(t,i,r,a){var o=a<2?t.coord&&t.coord[a]:t.value;return $a(o,e[a])}:function(t,i,r,a){return $a(t.value,e[a])}}function q_(n,e,t){if(t==="average"){var i=0,r=0;return n.each(e,function(a,o){isNaN(a)||(i+=a,r++)}),i/r}else return t==="median"?n.getMedian(e):n.getDataExtent(e)[t==="max"?1:0]}var K_=pe(),Y_=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(){this.markerGroupMap=Dt()},e.prototype.render=function(t,i,r){var a=this,o=this.markerGroupMap;o.each(function(s){K_(s).keep=!1}),i.eachSeries(function(s){var l=xa.getMarkerModelFromSeries(s,a.type);l&&a.renderSeries(s,l,i,r)}),o.each(function(s){!K_(s).keep&&a.group.remove(s.group)})},e.prototype.markKeep=function(t){K_(t).keep=!0},e.prototype.toggleBlurSeries=function(t,i){var r=this;E(t,function(a){var o=xa.getMarkerModelFromSeries(a,r.type);if(o){var s=o.getData();s.eachItemGraphicEl(function(l){l&&(i?Z2(l):ky(l))})}})},e.type="marker",e}(je);function g5(n,e,t){var i=e.coordinateSystem;n.each(function(r){var a=n.getItemModel(r),o,s=Mt(a.get("x"),t.getWidth()),l=Mt(a.get("y"),t.getHeight());if(!isNaN(s)&&!isNaN(l))o=[s,l];else if(e.getMarkerPosition)o=e.getMarkerPosition(n.getValues(n.dimensions,r));else if(i){var u=n.get(i.dimensions[0],r),c=n.get(i.dimensions[1],r);o=i.dataToPoint([u,c])}isNaN(s)||(o[0]=s),isNaN(l)||(o[1]=l),n.setItemLayout(r,o)})}var _Y=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.updateTransform=function(t,i,r){i.eachSeries(function(a){var o=xa.getMarkerModelFromSeries(a,"markPoint");o&&(g5(o.getData(),a,r),this.markerGroupMap.get(a.id).updateLayout())},this)},e.prototype.renderSeries=function(t,i,r,a){var o=t.coordinateSystem,s=t.id,l=t.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,new Hc),h=xY(o,t,i);i.setData(h),g5(i.getData(),t,a),h.each(function(f){var d=h.getItemModel(f),g=d.getShallow("symbol"),y=d.getShallow("symbolSize"),_=d.getShallow("symbolRotate"),v=d.getShallow("symbolOffset"),p=d.getShallow("symbolKeepAspect");if(Ot(g)||Ot(y)||Ot(_)||Ot(v)){var x=i.getRawValue(f),b=i.getDataParams(f);Ot(g)&&(g=g(x,b)),Ot(y)&&(y=y(x,b)),Ot(_)&&(_=_(x,b)),Ot(v)&&(v=v(x,b))}var S=d.getModel("itemStyle").getItemStyle(),M=Mc(l,"color");S.fill||(S.fill=M),h.setItemVisual(f,{symbol:g,symbolSize:y,symbolRotate:_,symbolOffset:v,symbolKeepAspect:p,style:S})}),c.updateData(h),this.group.add(c.group),h.eachItemGraphicEl(function(f){f.traverse(function(d){jt(d).dataModel=i})}),this.markKeep(c),c.group.silent=i.get("silent")||t.get("silent")},e.type="markPoint",e}(Y_);function xY(n,e,t){var i;n?i=pt(n&&n.dimensions,function(s){var l=e.getData().getDimensionInfo(e.getData().mapDimension(s))||{};return lt(lt({},l),{name:s,ordinalMeta:null})}):i=[{name:"value",type:"float"}];var r=new Jn(i,t),a=pt(t.get("data"),Zt(mh,e));n&&(a=Se(a,Zt(_h,n)));var o=f5(!!n,i);return r.initData(a,null,o),r}function bY(n){n.registerComponentModel(gY),n.registerComponentView(_Y),n.registerPreprocessor(function(e){U_(e.series,"markPoint")&&(e.markPoint=e.markPoint||{})})}var wY=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.createMarkerModelFromSeries=function(t,i,r){return new e(t,i,r)},e.type="markLine",e.defaultOption={z:5,symbol:["circle","arrow"],symbolSize:[8,16],symbolOffset:0,precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"},e}(xa),Uf=pe(),SY=function(n,e,t,i){var r=n.getData(),a;if(ht(i))a=i;else{var o=i.type;if(o==="min"||o==="max"||o==="average"||o==="median"||i.xAxis!=null||i.yAxis!=null){var s=void 0,l=void 0;if(i.yAxis!=null||i.xAxis!=null)s=e.getAxis(i.yAxis!=null?"y":"x"),l=bn(i.yAxis,i.xAxis);else{var u=d5(i,r,e,n);s=u.valueAxis;var c=bT(r,u.valueDataDim);l=q_(r,c,o)}var h=s.dim==="x"?0:1,f=1-h,d=Wt(i),g={coord:[]};d.type=null,d.coord=[],d.coord[f]=-1/0,g.coord[f]=1/0;var y=t.get("precision");y>=0&&ve(l)&&(l=+l.toFixed(Math.min(y,20))),d.coord[h]=g.coord[h]=l,a=[d,g,{type:o,valueIndex:i.valueIndex,value:l}]}else a=[]}var _=[mh(n,a[0]),mh(n,a[1]),lt({},a[2])];return _[2].type=_[2].type||null,Kt(_[2],_[0]),Kt(_[2],_[1]),_};function Xf(n){return!isNaN(n)&&!isFinite(n)}function v5(n,e,t,i){var r=1-n,a=i.dimensions[n];return Xf(e[r])&&Xf(t[r])&&e[n]===t[n]&&i.getAxis(a).containData(e[n])}function MY(n,e){if(n.type==="cartesian2d"){var t=e[0].coord,i=e[1].coord;if(t&&i&&(v5(1,t,i,n)||v5(0,t,i,n)))return!0}return _h(n,e[0])&&_h(n,e[1])}function J_(n,e,t,i,r){var a=i.coordinateSystem,o=n.getItemModel(e),s,l=Mt(o.get("x"),r.getWidth()),u=Mt(o.get("y"),r.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(i.getMarkerPosition)s=i.getMarkerPosition(n.getValues(n.dimensions,e));else{var c=a.dimensions,h=n.get(c[0],e),f=n.get(c[1],e);s=a.dataToPoint([h,f])}if(Ms(a,"cartesian2d")){var d=a.getAxis("x"),g=a.getAxis("y"),c=a.dimensions;Xf(n.get(c[0],e))?s[0]=d.toGlobalCoord(d.getExtent()[t?0:1]):Xf(n.get(c[1],e))&&(s[1]=g.toGlobalCoord(g.getExtent()[t?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}n.setItemLayout(e,s)}var IY=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.updateTransform=function(t,i,r){i.eachSeries(function(a){var o=xa.getMarkerModelFromSeries(a,"markLine");if(o){var s=o.getData(),l=Uf(o).from,u=Uf(o).to;l.each(function(c){J_(l,c,!0,a,r),J_(u,c,!1,a,r)}),s.each(function(c){s.setItemLayout(c,[l.getItemLayout(c),u.getItemLayout(c)])}),this.markerGroupMap.get(a.id).updateLayout()}},this)},e.prototype.renderSeries=function(t,i,r,a){var o=t.coordinateSystem,s=t.id,l=t.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,new w1);this.group.add(c.group);var h=TY(o,t,i),f=h.from,d=h.to,g=h.line;Uf(i).from=f,Uf(i).to=d,i.setData(g);var y=i.get("symbol"),_=i.get("symbolSize"),v=i.get("symbolRotate"),p=i.get("symbolOffset");ht(y)||(y=[y,y]),ht(_)||(_=[_,_]),ht(v)||(v=[v,v]),ht(p)||(p=[p,p]),h.from.each(function(b){x(f,b,!0),x(d,b,!1)}),g.each(function(b){var S=g.getItemModel(b).getModel("lineStyle").getLineStyle();g.setItemLayout(b,[f.getItemLayout(b),d.getItemLayout(b)]),S.stroke==null&&(S.stroke=f.getItemVisual(b,"style").fill),g.setItemVisual(b,{fromSymbolKeepAspect:f.getItemVisual(b,"symbolKeepAspect"),fromSymbolOffset:f.getItemVisual(b,"symbolOffset"),fromSymbolRotate:f.getItemVisual(b,"symbolRotate"),fromSymbolSize:f.getItemVisual(b,"symbolSize"),fromSymbol:f.getItemVisual(b,"symbol"),toSymbolKeepAspect:d.getItemVisual(b,"symbolKeepAspect"),toSymbolOffset:d.getItemVisual(b,"symbolOffset"),toSymbolRotate:d.getItemVisual(b,"symbolRotate"),toSymbolSize:d.getItemVisual(b,"symbolSize"),toSymbol:d.getItemVisual(b,"symbol"),style:S})}),c.updateData(g),h.line.eachItemGraphicEl(function(b){jt(b).dataModel=i,b.traverse(function(S){jt(S).dataModel=i})});function x(b,S,M){var I=b.getItemModel(S);J_(b,S,M,t,a);var A=I.getModel("itemStyle").getItemStyle();A.fill==null&&(A.fill=Mc(l,"color")),b.setItemVisual(S,{symbolKeepAspect:I.get("symbolKeepAspect"),symbolOffset:Ut(I.get("symbolOffset",!0),p[M?0:1]),symbolRotate:Ut(I.get("symbolRotate",!0),v[M?0:1]),symbolSize:Ut(I.get("symbolSize"),_[M?0:1]),symbol:Ut(I.get("symbol",!0),y[M?0:1]),style:A})}this.markKeep(c),c.group.silent=i.get("silent")||t.get("silent")},e.type="markLine",e}(Y_);function TY(n,e,t){var i;n?i=pt(n&&n.dimensions,function(u){var c=e.getData().getDimensionInfo(e.getData().mapDimension(u))||{};return lt(lt({},c),{name:u,ordinalMeta:null})}):i=[{name:"value",type:"float"}];var r=new Jn(i,t),a=new Jn(i,t),o=new Jn([],t),s=pt(t.get("data"),Zt(SY,e,n,t));n&&(s=Se(s,Zt(MY,n)));var l=f5(!!n,i);return r.initData(pt(s,function(u){return u[0]}),null,l),a.initData(pt(s,function(u){return u[1]}),null,l),o.initData(pt(s,function(u){return u[2]})),o.hasItemOption=!0,{from:r,to:a,line:o}}function AY(n){n.registerComponentModel(wY),n.registerComponentView(IY),n.registerPreprocessor(function(e){U_(e.series,"markLine")&&(e.markLine=e.markLine||{})})}var CY=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.createMarkerModelFromSeries=function(t,i,r){return new e(t,i,r)},e.type="markArea",e.defaultOption={z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},e}(xa),Zf=pe(),kY=function(n,e,t,i){var r=i[0],a=i[1];if(!(!r||!a)){var o=mh(n,r),s=mh(n,a),l=o.coord,u=s.coord;l[0]=bn(l[0],-1/0),l[1]=bn(l[1],-1/0),u[0]=bn(u[0],1/0),u[1]=bn(u[1],1/0);var c=nv([{},o,s]);return c.coord=[o.coord,s.coord],c.x0=o.x,c.y0=o.y,c.x1=s.x,c.y1=s.y,c}};function qf(n){return!isNaN(n)&&!isFinite(n)}function y5(n,e,t,i){var r=1-n;return qf(e[r])&&qf(t[r])}function LY(n,e){var t=e.coord[0],i=e.coord[1],r={coord:t,x:e.x0,y:e.y0},a={coord:i,x:e.x1,y:e.y1};return Ms(n,"cartesian2d")?t&&i&&(y5(1,t,i)||y5(0,t,i))?!0:mY(n,r,a):_h(n,r)||_h(n,a)}function m5(n,e,t,i,r){var a=i.coordinateSystem,o=n.getItemModel(e),s,l=Mt(o.get(t[0]),r.getWidth()),u=Mt(o.get(t[1]),r.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(i.getMarkerPosition){var c=n.getValues(["x0","y0"],e),h=n.getValues(["x1","y1"],e),f=a.clampData(c),d=a.clampData(h),g=[];t[0]==="x0"?g[0]=f[0]>d[0]?h[0]:c[0]:g[0]=f[0]>d[0]?c[0]:h[0],t[1]==="y0"?g[1]=f[1]>d[1]?h[1]:c[1]:g[1]=f[1]>d[1]?c[1]:h[1],s=i.getMarkerPosition(g,t,!0)}else{var y=n.get(t[0],e),_=n.get(t[1],e),v=[y,_];a.clampData&&a.clampData(v,v),s=a.dataToPoint(v,!0)}if(Ms(a,"cartesian2d")){var p=a.getAxis("x"),x=a.getAxis("y"),y=n.get(t[0],e),_=n.get(t[1],e);qf(y)?s[0]=p.toGlobalCoord(p.getExtent()[t[0]==="x0"?0:1]):qf(_)&&(s[1]=x.toGlobalCoord(x.getExtent()[t[1]==="y0"?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}return s}var _5=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],DY=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.updateTransform=function(t,i,r){i.eachSeries(function(a){var o=xa.getMarkerModelFromSeries(a,"markArea");if(o){var s=o.getData();s.each(function(l){var u=pt(_5,function(h){return m5(s,l,h,a,r)});s.setItemLayout(l,u);var c=s.getItemGraphicEl(l);c.setShape("points",u)})}},this)},e.prototype.renderSeries=function(t,i,r,a){var o=t.coordinateSystem,s=t.id,l=t.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,{group:new Gt});this.group.add(c.group),this.markKeep(c);var h=PY(o,t,i);i.setData(h),h.each(function(f){var d=pt(_5,function(A){return m5(h,f,A,t,a)}),g=o.getAxis("x").scale,y=o.getAxis("y").scale,_=g.getExtent(),v=y.getExtent(),p=[g.parse(h.get("x0",f)),g.parse(h.get("x1",f))],x=[y.parse(h.get("y0",f)),y.parse(h.get("y1",f))];Pi(p),Pi(x);var b=!(_[0]>p[1]||_[1]<p[0]||v[0]>x[1]||v[1]<x[0]),S=!b;h.setItemLayout(f,{points:d,allClipped:S});var M=h.getItemModel(f).getModel("itemStyle").getItemStyle(),I=Mc(l,"color");M.fill||(M.fill=I,Tt(M.fill)&&(M.fill=gp(M.fill,.4))),M.stroke||(M.stroke=I),h.setItemVisual(f,"style",M)}),h.diff(Zf(c).data).add(function(f){var d=h.getItemLayout(f);if(!d.allClipped){var g=new Kn({shape:{points:d.points}});h.setItemGraphicEl(f,g),c.group.add(g)}}).update(function(f,d){var g=Zf(c).data.getItemGraphicEl(d),y=h.getItemLayout(f);y.allClipped?g&&c.group.remove(g):(g?me(g,{shape:{points:y.points}},i,f):g=new Kn({shape:{points:y.points}}),h.setItemGraphicEl(f,g),c.group.add(g))}).remove(function(f){var d=Zf(c).data.getItemGraphicEl(f);c.group.remove(d)}).execute(),h.eachItemGraphicEl(function(f,d){var g=h.getItemModel(d),y=h.getItemVisual(d,"style");f.useStyle(h.getItemVisual(d,"style")),kn(f,gn(g),{labelFetcher:i,labelDataIndex:d,defaultText:h.getName(d)||"",inheritColor:Tt(y.fill)?gp(y.fill,1):"#000"}),Cn(f,g),Ue(f,null,null,g.get(["emphasis","disabled"])),jt(f).dataModel=i}),Zf(c).data=h,c.group.silent=i.get("silent")||t.get("silent")},e.type="markArea",e}(Y_);function PY(n,e,t){var i,r,a=["x0","y0","x1","y1"];if(n){var o=pt(n&&n.dimensions,function(u){var c=e.getData(),h=c.getDimensionInfo(c.mapDimension(u))||{};return lt(lt({},h),{name:u,ordinalMeta:null})});r=pt(a,function(u,c){return{name:u,type:o[c%2].type}}),i=new Jn(r,t)}else r=[{name:"value",type:"float"}],i=new Jn(r,t);var s=pt(t.get("data"),Zt(kY,e,n,t));n&&(s=Se(s,Zt(LY,n)));var l=n?function(u,c,h,f){var d=u.coord[Math.floor(f/2)][f%2];return $a(d,r[f])}:function(u,c,h,f){return $a(u.value,r[f])};return i.initData(s,null,l),i.hasItemOption=!0,i}function RY(n){n.registerComponentModel(CY),n.registerComponentView(DY),n.registerPreprocessor(function(e){U_(e.series,"markArea")&&(e.markArea=e.markArea||{})})}var NY=function(n,e){if(e==="all")return{type:"all",title:n.getLocaleModel().get(["legend","selector","all"])};if(e==="inverse")return{type:"inverse",title:n.getLocaleModel().get(["legend","selector","inverse"])}},$_=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.layoutMode={type:"box",ignoreSize:!0},t}return e.prototype.init=function(t,i,r){this.mergeDefaultAndTheme(t,r),t.selected=t.selected||{},this._updateSelector(t)},e.prototype.mergeOption=function(t,i){n.prototype.mergeOption.call(this,t,i),this._updateSelector(t)},e.prototype._updateSelector=function(t){var i=t.selector,r=this.ecModel;i===!0&&(i=t.selector=["all","inverse"]),ht(i)&&E(i,function(a,o){Tt(a)&&(a={type:a}),i[o]=Kt(a,NY(r,a.type))})},e.prototype.optionUpdated=function(){this._updateData(this.ecModel);var t=this._data;if(t[0]&&this.get("selectedMode")==="single"){for(var i=!1,r=0;r<t.length;r++){var a=t[r].get("name");if(this.isSelected(a)){this.select(a),i=!0;break}}!i&&this.select(t[0].get("name"))}},e.prototype._updateData=function(t){var i=[],r=[];t.eachRawSeries(function(l){var u=l.name;r.push(u);var c;if(l.legendVisualProvider){var h=l.legendVisualProvider,f=h.getAllNames();t.isSeriesFiltered(l)||(r=r.concat(f)),f.length?i=i.concat(f):c=!0}else c=!0;c&&iy(l)&&i.push(l.name)}),this._availableNames=r;var a=this.get("data")||i,o=Dt(),s=pt(a,function(l){return(Tt(l)||ve(l))&&(l={name:l}),o.get(l.name)?null:(o.set(l.name,!0),new Ce(l,this,this.ecModel))},this);this._data=Se(s,function(l){return!!l})},e.prototype.getData=function(){return this._data},e.prototype.select=function(t){var i=this.option.selected,r=this.get("selectedMode");if(r==="single"){var a=this._data;E(a,function(o){i[o.get("name")]=!1})}i[t]=!0},e.prototype.unSelect=function(t){this.get("selectedMode")!=="single"&&(this.option.selected[t]=!1)},e.prototype.toggleSelected=function(t){var i=this.option.selected;i.hasOwnProperty(t)||(i[t]=!0),this[i[t]?"unSelect":"select"](t)},e.prototype.allSelect=function(){var t=this._data,i=this.option.selected;E(t,function(r){i[r.get("name",!0)]=!0})},e.prototype.inverseSelect=function(){var t=this._data,i=this.option.selected;E(t,function(r){var a=r.get("name",!0);i.hasOwnProperty(a)||(i[a]=!0),i[a]=!i[a]})},e.prototype.isSelected=function(t){var i=this.option.selected;return!(i.hasOwnProperty(t)&&!i[t])&&Qt(this._availableNames,t)>=0},e.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},e.type="legend.plain",e.dependencies=["series"],e.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},e}(le),Ql=Zt,Q_=E,Kf=Gt,x5=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.newlineDisabled=!1,t}return e.prototype.init=function(){this.group.add(this._contentGroup=new Kf),this.group.add(this._selectorGroup=new Kf),this._isFirstRender=!0},e.prototype.getContentGroup=function(){return this._contentGroup},e.prototype.getSelectorGroup=function(){return this._selectorGroup},e.prototype.render=function(t,i,r){var a=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!t.get("show",!0)){var o=t.get("align"),s=t.get("orient");(!o||o==="auto")&&(o=t.get("left")==="right"&&s==="vertical"?"right":"left");var l=t.get("selector",!0),u=t.get("selectorPosition",!0);l&&(!u||u==="auto")&&(u=s==="horizontal"?"end":"start"),this.renderInner(o,t,i,r,l,s,u);var c=t.getBoxLayoutParams(),h={width:r.getWidth(),height:r.getHeight()},f=t.get("padding"),d=un(c,h,f),g=this.layoutInner(t,o,d,a,l,u),y=un(Bt({width:g.width,height:g.height},c),h,f);this.group.x=y.x-g.x,this.group.y=y.y-g.y,this.group.markRedraw(),this.group.add(this._backgroundEl=kP(g,t))}},e.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},e.prototype.renderInner=function(t,i,r,a,o,s,l){var u=this.getContentGroup(),c=Dt(),h=i.get("selectedMode"),f=[];r.eachRawSeries(function(d){!d.get("legendHoverLink")&&f.push(d.id)}),Q_(i.getData(),function(d,g){var y=d.get("name");if(!this.newlineDisabled&&(y===""||y===`
|
|
96
|
+
`)){var _=new Kf;_.newline=!0,u.add(_);return}var v=r.getSeriesByName(y)[0];if(!c.get(y))if(v){var p=v.getData(),x=p.getVisual("legendLineStyle")||{},b=p.getVisual("legendIcon"),S=p.getVisual("style"),M=this._createItem(v,y,g,d,i,t,x,S,b,h,a);M.on("click",Ql(b5,y,null,a,f)).on("mouseover",Ql(tx,v.name,null,a,f)).on("mouseout",Ql(ex,v.name,null,a,f)),r.ssr&&M.eachChild(function(I){var A=jt(I);A.seriesIndex=v.seriesIndex,A.dataIndex=g,A.ssrType="legend"}),c.set(y,!0)}else r.eachRawSeries(function(I){if(!c.get(y)&&I.legendVisualProvider){var A=I.legendVisualProvider;if(!A.containName(y))return;var C=A.indexOfName(y),L=A.getItemVisual(C,"style"),R=A.getItemVisual(C,"legendIcon"),D=gi(L.fill);D&&D[3]===0&&(D[3]=.2,L=lt(lt({},L),{fill:ea(D,"rgba")}));var N=this._createItem(I,y,g,d,i,t,{},L,R,h,a);N.on("click",Ql(b5,null,y,a,f)).on("mouseover",Ql(tx,null,y,a,f)).on("mouseout",Ql(ex,null,y,a,f)),r.ssr&&N.eachChild(function(k){var O=jt(k);O.seriesIndex=I.seriesIndex,O.dataIndex=g,O.ssrType="legend"}),c.set(y,!0)}},this)},this),o&&this._createSelector(o,i,a,s,l)},e.prototype._createSelector=function(t,i,r,a,o){var s=this.getSelectorGroup();Q_(t,function(l){var u=l.type,c=new fe({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){r.dispatchAction({type:u==="all"?"legendAllSelect":"legendInverseSelect",legendId:i.id})}});s.add(c);var h=i.getModel("selectorLabel"),f=i.getModel(["emphasis","selectorLabel"]);kn(c,{normal:h,emphasis:f},{defaultText:l.title}),Jo(c)})},e.prototype._createItem=function(t,i,r,a,o,s,l,u,c,h,f){var d=t.visualDrawType,g=o.get("itemWidth"),y=o.get("itemHeight"),_=o.isSelected(i),v=a.get("symbolRotate"),p=a.get("symbolKeepAspect"),x=a.get("icon");c=x||c||"roundRect";var b=zY(c,a,l,u,d,_,f),S=new Kf,M=a.getModel("textStyle");if(Ot(t.getLegendIcon)&&(!x||x==="inherit"))S.add(t.getLegendIcon({itemWidth:g,itemHeight:y,icon:c,iconRotate:v,itemStyle:b.itemStyle,lineStyle:b.lineStyle,symbolKeepAspect:p}));else{var I=x==="inherit"&&t.getData().getVisual("symbol")?v==="inherit"?t.getData().getVisual("symbolRotate"):v:0;S.add(EY({itemWidth:g,itemHeight:y,icon:c,iconRotate:I,itemStyle:b.itemStyle,symbolKeepAspect:p}))}var A=s==="left"?g+5:-5,C=s,L=o.get("formatter"),R=i;Tt(L)&&L?R=L.replace("{name}",i??""):Ot(L)&&(R=L(i));var D=_?M.getTextColor():a.get("inactiveColor");S.add(new fe({style:Ee(M,{text:R,x:A,y:y/2,fill:D,align:C,verticalAlign:"middle"},{inheritColor:D})}));var N=new de({shape:S.getBoundingRect(),style:{fill:"transparent"}}),k=a.getModel("tooltip");return k.get("show")&&is({el:N,componentModel:o,itemName:i,itemTooltipOption:k.option}),S.add(N),S.eachChild(function(O){O.silent=!0}),N.silent=!h,this.getContentGroup().add(S),Jo(S),S.__legendDataIndex=r,S},e.prototype.layoutInner=function(t,i,r,a,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();ss(t.get("orient"),l,t.get("itemGap"),r.width,r.height);var c=l.getBoundingRect(),h=[-c.x,-c.y];if(u.markRedraw(),l.markRedraw(),o){ss("horizontal",u,t.get("selectorItemGap",!0));var f=u.getBoundingRect(),d=[-f.x,-f.y],g=t.get("selectorButtonGap",!0),y=t.getOrient().index,_=y===0?"width":"height",v=y===0?"height":"width",p=y===0?"y":"x";s==="end"?d[y]+=c[_]+g:h[y]+=f[_]+g,d[1-y]+=c[v]/2-f[v]/2,u.x=d[0],u.y=d[1],l.x=h[0],l.y=h[1];var x={x:0,y:0};return x[_]=c[_]+g+f[_],x[v]=Math.max(c[v],f[v]),x[p]=Math.min(0,f[p]+d[1-y]),x}else return l.x=h[0],l.y=h[1],this.group.getBoundingRect()},e.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},e.type="legend.plain",e}(je);function zY(n,e,t,i,r,a,o){function s(_,v){_.lineWidth==="auto"&&(_.lineWidth=v.lineWidth>0?2:0),Q_(_,function(p,x){_[x]==="inherit"&&(_[x]=v[x])})}var l=e.getModel("itemStyle"),u=l.getItemStyle(),c=n.lastIndexOf("empty",0)===0?"fill":"stroke",h=l.getShallow("decal");u.decal=!h||h==="inherit"?i.decal:Rl(h,o),u.fill==="inherit"&&(u.fill=i[r]),u.stroke==="inherit"&&(u.stroke=i[c]),u.opacity==="inherit"&&(u.opacity=(r==="fill"?i:t).opacity),s(u,i);var f=e.getModel("lineStyle"),d=f.getLineStyle();if(s(d,t),u.fill==="auto"&&(u.fill=i.fill),u.stroke==="auto"&&(u.stroke=i.fill),d.stroke==="auto"&&(d.stroke=i.fill),!a){var g=e.get("inactiveBorderWidth"),y=u[c];u.lineWidth=g==="auto"?i.lineWidth>0&&y?2:0:u.lineWidth,u.fill=e.get("inactiveColor"),u.stroke=e.get("inactiveBorderColor"),d.stroke=f.get("inactiveColor"),d.lineWidth=f.get("inactiveWidth")}return{itemStyle:u,lineStyle:d}}function EY(n){var e=n.icon||"roundRect",t=rn(e,0,0,n.itemWidth,n.itemHeight,n.itemStyle.fill,n.symbolKeepAspect);return t.setStyle(n.itemStyle),t.rotation=(n.iconRotate||0)*Math.PI/180,t.setOrigin([n.itemWidth/2,n.itemHeight/2]),e.indexOf("empty")>-1&&(t.style.stroke=t.style.fill,t.style.fill="#fff",t.style.lineWidth=2),t}function b5(n,e,t,i){ex(n,e,t,i),t.dispatchAction({type:"legendToggleSelect",name:n??e}),tx(n,e,t,i)}function w5(n){for(var e=n.getZr().storage.getDisplayList(),t,i=0,r=e.length;i<r&&!(t=e[i].states.emphasis);)i++;return t&&t.hoverLayer}function tx(n,e,t,i){w5(t)||t.dispatchAction({type:"highlight",seriesName:n,name:e,excludeSeriesId:i})}function ex(n,e,t,i){w5(t)||t.dispatchAction({type:"downplay",seriesName:n,name:e,excludeSeriesId:i})}function OY(n){var e=n.findComponents({mainType:"legend"});e&&e.length&&n.filterSeries(function(t){for(var i=0;i<e.length;i++)if(!e[i].isSelected(t.name))return!1;return!0})}function xh(n,e,t){var i=n==="allSelect"||n==="inverseSelect",r={},a=[];t.eachComponent({mainType:"legend",query:e},function(s){i?s[n]():s[n](e.name),S5(s,r),a.push(s.componentIndex)});var o={};return t.eachComponent("legend",function(s){E(r,function(l,u){s[l?"select":"unSelect"](u)}),S5(s,o)}),i?{selected:o,legendIndex:a}:{name:e.name,selected:o}}function S5(n,e){var t=e||{};return E(n.getData(),function(i){var r=i.get("name");if(!(r===`
|
|
97
|
+
`||r==="")){var a=n.isSelected(r);Lt(t,r)?t[r]=t[r]&&a:t[r]=a}}),t}function BY(n){n.registerAction("legendToggleSelect","legendselectchanged",Zt(xh,"toggleSelected")),n.registerAction("legendAllSelect","legendselectall",Zt(xh,"allSelect")),n.registerAction("legendInverseSelect","legendinverseselect",Zt(xh,"inverseSelect")),n.registerAction("legendSelect","legendselected",Zt(xh,"select")),n.registerAction("legendUnSelect","legendunselected",Zt(xh,"unSelect"))}function M5(n){n.registerComponentModel($_),n.registerComponentView(x5),n.registerProcessor(n.PRIORITY.PROCESSOR.SERIES_FILTER,OY),n.registerSubTypeDefaulter("legend",function(){return"plain"}),BY(n)}var VY=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.setScrollDataIndex=function(t){this.option.scrollDataIndex=t},e.prototype.init=function(t,i,r){var a=wl(t);n.prototype.init.call(this,t,i,r),I5(this,t,a)},e.prototype.mergeOption=function(t,i){n.prototype.mergeOption.call(this,t,i),I5(this,this.option,t)},e.type="legend.scroll",e.defaultOption=qa($_.defaultOption,{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:"end",pageFormatter:"{current}/{total}",pageIcons:{horizontal:["M0,0L12,-10L12,10z","M0,0L-12,-10L-12,10z"],vertical:["M0,0L20,0L10,-20z","M0,0L20,0L10,20z"]},pageIconColor:"#2f4554",pageIconInactiveColor:"#aaa",pageIconSize:15,pageTextStyle:{color:"#333"},animationDurationUpdate:800}),e}($_);function I5(n,e,t){var i=n.getOrient(),r=[1,1];r[i.index]=0,Ya(e,t,{type:"box",ignoreSize:!!r})}var T5=Gt,nx=["width","height"],ix=["x","y"],FY=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.newlineDisabled=!0,t._currentIndex=0,t}return e.prototype.init=function(){n.prototype.init.call(this),this.group.add(this._containerGroup=new T5),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new T5)},e.prototype.resetInner=function(){n.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},e.prototype.renderInner=function(t,i,r,a,o,s,l){var u=this;n.prototype.renderInner.call(this,t,i,r,a,o,s,l);var c=this._controllerGroup,h=i.get("pageIconSize",!0),f=ht(h)?h:[h,h];g("pagePrev",0);var d=i.getModel("pageTextStyle");c.add(new fe({name:"pageText",style:{text:"xx/xx",fill:d.getTextColor(),font:d.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),g("pageNext",1);function g(y,_){var v=y+"DataIndex",p=uc(i.get("pageIcons",!0)[i.getOrient().name][_],{onclick:Ct(u._pageGo,u,v,i,a)},{x:-f[0]/2,y:-f[1]/2,width:f[0],height:f[1]});p.name=y,c.add(p)}},e.prototype.layoutInner=function(t,i,r,a,o,s){var l=this.getSelectorGroup(),u=t.getOrient().index,c=nx[u],h=ix[u],f=nx[1-u],d=ix[1-u];o&&ss("horizontal",l,t.get("selectorItemGap",!0));var g=t.get("selectorButtonGap",!0),y=l.getBoundingRect(),_=[-y.x,-y.y],v=Wt(r);o&&(v[c]=r[c]-y[c]-g);var p=this._layoutContentAndController(t,a,v,u,c,f,d,h);if(o){if(s==="end")_[u]+=p[c]+g;else{var x=y[c]+g;_[u]-=x,p[h]-=x}p[c]+=y[c]+g,_[1-u]+=p[d]+p[f]/2-y[f]/2,p[f]=Math.max(p[f],y[f]),p[d]=Math.min(p[d],y[d]+_[1-u]),l.x=_[0],l.y=_[1],l.markRedraw()}return p},e.prototype._layoutContentAndController=function(t,i,r,a,o,s,l,u){var c=this.getContentGroup(),h=this._containerGroup,f=this._controllerGroup;ss(t.get("orient"),c,t.get("itemGap"),a?r.width:null,a?null:r.height),ss("horizontal",f,t.get("pageButtonItemGap",!0));var d=c.getBoundingRect(),g=f.getBoundingRect(),y=this._showController=d[o]>r[o],_=[-d.x,-d.y];i||(_[a]=c[u]);var v=[0,0],p=[-g.x,-g.y],x=Ut(t.get("pageButtonGap",!0),t.get("itemGap",!0));if(y){var b=t.get("pageButtonPosition",!0);b==="end"?p[a]+=r[o]-g[o]:v[a]+=g[o]+x}p[1-a]+=d[s]/2-g[s]/2,c.setPosition(_),h.setPosition(v),f.setPosition(p);var S={x:0,y:0};if(S[o]=y?r[o]:d[o],S[s]=Math.max(d[s],g[s]),S[l]=Math.min(0,g[l]+p[1-a]),h.__rectSize=r[o],y){var M={x:0,y:0};M[o]=Math.max(r[o]-g[o]-x,0),M[s]=S[s],h.setClipPath(new de({shape:M})),h.__rectSize=M[o]}else f.eachChild(function(A){A.attr({invisible:!0,silent:!0})});var I=this._getPageInfo(t);return I.pageIndex!=null&&me(c,{x:I.contentPosition[0],y:I.contentPosition[1]},y?t:null),this._updatePageInfoView(t,I),S},e.prototype._pageGo=function(t,i,r){var a=this._getPageInfo(i)[t];a!=null&&r.dispatchAction({type:"legendScroll",scrollDataIndex:a,legendId:i.id})},e.prototype._updatePageInfoView=function(t,i){var r=this._controllerGroup;E(["pagePrev","pageNext"],function(c){var h=c+"DataIndex",f=i[h]!=null,d=r.childOfName(c);d&&(d.setStyle("fill",f?t.get("pageIconColor",!0):t.get("pageIconInactiveColor",!0)),d.cursor=f?"pointer":"default")});var a=r.childOfName("pageText"),o=t.get("pageFormatter"),s=i.pageIndex,l=s!=null?s+1:0,u=i.pageCount;a&&o&&a.setStyle("text",Tt(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},e.prototype._getPageInfo=function(t){var i=t.get("scrollDataIndex",!0),r=this.getContentGroup(),a=this._containerGroup.__rectSize,o=t.getOrient().index,s=nx[o],l=ix[o],u=this._findTargetItemIndex(i),c=r.children(),h=c[u],f=c.length,d=f?1:0,g={contentPosition:[r.x,r.y],pageCount:d,pageIndex:d-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!h)return g;var y=b(h);g.contentPosition[o]=-y.s;for(var _=u+1,v=y,p=y,x=null;_<=f;++_)x=b(c[_]),(!x&&p.e>v.s+a||x&&!S(x,v.s))&&(p.i>v.i?v=p:v=x,v&&(g.pageNextDataIndex==null&&(g.pageNextDataIndex=v.i),++g.pageCount)),p=x;for(var _=u-1,v=y,p=y,x=null;_>=-1;--_)x=b(c[_]),(!x||!S(p,x.s))&&v.i<p.i&&(p=v,g.pagePrevDataIndex==null&&(g.pagePrevDataIndex=v.i),++g.pageCount,++g.pageIndex),v=x;return g;function b(M){if(M){var I=M.getBoundingRect(),A=I[l]+M[l];return{s:A,e:A+I[s],i:M.__legendDataIndex}}}function S(M,I){return M.e>=I&&M.s<=I+a}},e.prototype._findTargetItemIndex=function(t){if(!this._showController)return 0;var i,r=this.getContentGroup(),a;return r.eachChild(function(o,s){var l=o.__legendDataIndex;a==null&&l!=null&&(a=s),l===t&&(i=s)}),i??a},e.type="legend.scroll",e}(x5);function WY(n){n.registerAction("legendScroll","legendscroll",function(e,t){var i=e.scrollDataIndex;i!=null&&t.eachComponent({mainType:"legend",subType:"scroll",query:e},function(r){r.setScrollDataIndex(i)})})}function GY(n){ie(M5),n.registerComponentModel(VY),n.registerComponentView(FY),WY(n)}function jY(n){ie(M5),ie(GY)}var HY=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="dataZoom.inside",e.defaultOption=qa(gh.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),e}(gh),rx=pe();function UY(n,e,t){rx(n).coordSysRecordMap.each(function(i){var r=i.dataZoomInfoMap.get(e.uid);r&&(r.getRange=t)})}function XY(n,e){for(var t=rx(n).coordSysRecordMap,i=t.keys(),r=0;r<i.length;r++){var a=i[r],o=t.get(a),s=o.dataZoomInfoMap;if(s){var l=e.uid,u=s.get(l);u&&(s.removeKey(l),s.keys().length||A5(t,o))}}}function A5(n,e){if(e){n.removeKey(e.model.uid);var t=e.controller;t&&t.dispose()}}function ZY(n,e){var t={model:e,containsPoint:Zt(KY,e),dispatchAction:Zt(qY,n),dataZoomInfoMap:null,controller:null},i=t.controller=new $c(n.getZr());return E(["pan","zoom","scrollMove"],function(r){i.on(r,function(a){var o=[];t.dataZoomInfoMap.each(function(s){if(a.isAvailableBehavior(s.model.option)){var l=(s.getRange||{})[r],u=l&&l(s.dzReferCoordSysInfo,t.model.mainType,t.controller,a);!s.model.get("disabled",!0)&&u&&o.push({dataZoomId:s.model.id,start:u[0],end:u[1]})}}),o.length&&t.dispatchAction(o)})}),t}function qY(n,e){n.isDisposed()||n.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:e})}function KY(n,e,t,i){return n.coordinateSystem.containPoint([t,i])}function YY(n){var e,t="type_",i={type_true:2,type_move:1,type_false:0,type_undefined:-1},r=!0;return n.each(function(a){var o=a.model,s=o.get("disabled",!0)?!1:o.get("zoomLock",!0)?"move":!0;i[t+s]>i[t+e]&&(e=s),r=r&&o.get("preventDefaultMouseMove",!0)}),{controlType:e,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!r}}}function JY(n){n.registerProcessor(n.PRIORITY.PROCESSOR.FILTER,function(e,t){var i=rx(t),r=i.coordSysRecordMap||(i.coordSysRecordMap=Dt());r.each(function(a){a.dataZoomInfoMap=null}),e.eachComponent({mainType:"dataZoom",subType:"inside"},function(a){var o=SP(a);E(o.infoList,function(s){var l=s.model.uid,u=r.get(l)||r.set(l,ZY(t,s.model)),c=u.dataZoomInfoMap||(u.dataZoomInfoMap=Dt());c.set(a.uid,{dzReferCoordSysInfo:s,model:a,getRange:null})})}),r.each(function(a){var o=a.controller,s,l=a.dataZoomInfoMap;if(l){var u=l.keys()[0];u!=null&&(s=l.get(u))}if(!s){A5(r,a);return}var c=YY(l);o.enable(c.controlType,c.opt),o.setPointerChecker(a.containsPoint),kl(a,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var $Y=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type="dataZoom.inside",t}return e.prototype.render=function(t,i,r){if(n.prototype.render.apply(this,arguments),t.noTarget()){this._clear();return}this.range=t.getPercentRange(),UY(r,t,{pan:Ct(ax.pan,this),zoom:Ct(ax.zoom,this),scrollMove:Ct(ax.scrollMove,this)})},e.prototype.dispose=function(){this._clear(),n.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){XY(this.api,this.dataZoomModel),this.range=null},e.type="dataZoom.inside",e}(D_),ax={zoom:function(n,e,t,i){var r=this.range,a=r.slice(),o=n.axisModels[0];if(o){var s=ox[e](null,[i.originX,i.originY],o,t,n),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(a[1]-a[0])+a[0],u=Math.max(1/i.scale,0);a[0]=(a[0]-l)*u+l,a[1]=(a[1]-l)*u+l;var c=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(Ps(0,a,[0,100],0,c.minSpan,c.maxSpan),this.range=a,r[0]!==a[0]||r[1]!==a[1])return a}},pan:C5(function(n,e,t,i,r,a){var o=ox[i]([a.oldX,a.oldY],[a.newX,a.newY],e,r,t);return o.signal*(n[1]-n[0])*o.pixel/o.pixelLength}),scrollMove:C5(function(n,e,t,i,r,a){var o=ox[i]([0,0],[a.scrollDelta,a.scrollDelta],e,r,t);return o.signal*(n[1]-n[0])*a.scrollDelta})};function C5(n){return function(e,t,i,r){var a=this.range,o=a.slice(),s=e.axisModels[0];if(s){var l=n(o,s,e,t,i,r);if(Ps(l,o,[0,100],"all"),this.range=o,a[0]!==o[0]||a[1]!==o[1])return o}}}var ox={grid:function(n,e,t,i,r){var a=t.axis,o={},s=r.model.coordinateSystem.getRect();return n=n||[0,0],a.dim==="x"?(o.pixel=e[0]-n[0],o.pixelLength=s.width,o.pixelStart=s.x,o.signal=a.inverse?1:-1):(o.pixel=e[1]-n[1],o.pixelLength=s.height,o.pixelStart=s.y,o.signal=a.inverse?-1:1),o},polar:function(n,e,t,i,r){var a=t.axis,o={},s=r.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return n=n?s.pointToCoord(n):[0,0],e=s.pointToCoord(e),t.mainType==="radiusAxis"?(o.pixel=e[0]-n[0],o.pixelLength=l[1]-l[0],o.pixelStart=l[0],o.signal=a.inverse?1:-1):(o.pixel=e[1]-n[1],o.pixelLength=u[1]-u[0],o.pixelStart=u[0],o.signal=a.inverse?-1:1),o},singleAxis:function(n,e,t,i,r){var a=t.axis,o=r.model.coordinateSystem.getRect(),s={};return n=n||[0,0],a.orient==="horizontal"?(s.pixel=e[0]-n[0],s.pixelLength=o.width,s.pixelStart=o.x,s.signal=a.inverse?1:-1):(s.pixel=e[1]-n[1],s.pixelLength=o.height,s.pixelStart=o.y,s.signal=a.inverse?-1:1),s}};function k5(n){P_(n),n.registerComponentModel(HY),n.registerComponentView($Y),JY(n)}var QY=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="dataZoom.slider",e.layoutMode="box",e.defaultOption=qa(gh.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleLabel:{show:!0},handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),e}(gh),bh=de,L5=7,tJ=1,sx=30,eJ=7,wh="horizontal",D5="vertical",nJ=5,iJ=["line","bar","candlestick","scatter"],rJ={easing:"cubicOut",duration:100,delay:0},aJ=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t._displayables={},t}return e.prototype.init=function(t,i){this.api=i,this._onBrush=Ct(this._onBrush,this),this._onBrushEnd=Ct(this._onBrushEnd,this)},e.prototype.render=function(t,i,r,a){if(n.prototype.render.apply(this,arguments),kl(this,"_dispatchZoomAction",t.get("throttle"),"fixRate"),this._orient=t.getOrient(),t.get("show")===!1){this.group.removeAll();return}if(t.noTarget()){this._clear(),this.group.removeAll();return}(!a||a.type!=="dataZoom"||a.from!==this.uid)&&this._buildView(),this._updateView()},e.prototype.dispose=function(){this._clear(),n.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){bc(this,"_dispatchZoomAction");var t=this.api.getZr();t.off("mousemove",this._onBrush),t.off("mouseup",this._onBrushEnd)},e.prototype._buildView=function(){var t=this.group;t.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var i=this._displayables.sliderGroup=new Gt;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),t.add(i),this._positionGroup()},e.prototype._resetLocation=function(){var t=this.dataZoomModel,i=this.api,r=t.get("brushSelect"),a=r?eJ:0,o=this._findCoordRect(),s={width:i.getWidth(),height:i.getHeight()},l=this._orient===wh?{right:s.width-o.x-o.width,top:s.height-sx-L5-a,width:o.width,height:sx}:{right:L5,top:o.y,width:sx,height:o.height},u=wl(t.option);E(["right","top","width","height"],function(h){u[h]==="ph"&&(u[h]=l[h])});var c=un(u,s);this._location={x:c.x,y:c.y},this._size=[c.width,c.height],this._orient===D5&&this._size.reverse()},e.prototype._positionGroup=function(){var t=this.group,i=this._location,r=this._orient,a=this.dataZoomModel.getFirstTargetAxisModel(),o=a&&a.get("inverse"),s=this._displayables.sliderGroup,l=(this._dataShadowInfo||{}).otherAxisInverse;s.attr(r===wh&&!o?{scaleY:l?1:-1,scaleX:1}:r===wh&&o?{scaleY:l?1:-1,scaleX:-1}:r===D5&&!o?{scaleY:l?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:l?-1:1,scaleX:-1,rotation:Math.PI/2});var u=t.getBoundingRect([s]);t.x=i.x-u.x,t.y=i.y-u.y,t.markRedraw()},e.prototype._getViewExtent=function(){return[0,this._size[0]]},e.prototype._renderBackground=function(){var t=this.dataZoomModel,i=this._size,r=this._displayables.sliderGroup,a=t.get("brushSelect");r.add(new bh({silent:!0,shape:{x:0,y:0,width:i[0],height:i[1]},style:{fill:t.get("backgroundColor")},z2:-40}));var o=new bh({shape:{x:0,y:0,width:i[0],height:i[1]},style:{fill:"transparent"},z2:0,onclick:Ct(this._onClickPanel,this)}),s=this.api.getZr();a?(o.on("mousedown",this._onBrushStart,this),o.cursor="crosshair",s.on("mousemove",this._onBrush),s.on("mouseup",this._onBrushEnd)):(s.off("mousemove",this._onBrush),s.off("mouseup",this._onBrushEnd)),r.add(o)},e.prototype._renderDataShadow=function(){var t=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!t)return;var i=this._size,r=this._shadowSize||[],a=t.series,o=a.getRawData(),s=a.getShadowDim&&a.getShadowDim(),l=s&&o.getDimensionInfo(s)?a.getShadowDim():t.otherDim;if(l==null)return;var u=this._shadowPolygonPts,c=this._shadowPolylinePts;if(o!==this._shadowData||l!==this._shadowDim||i[0]!==r[0]||i[1]!==r[1]){var h=o.getDataExtent(l),f=(h[1]-h[0])*.3;h=[h[0]-f,h[1]+f];var d=[0,i[1]],g=[0,i[0]],y=[[i[0],0],[0,0]],_=[],v=g[1]/(o.count()-1),p=0,x=Math.round(o.count()/i[0]),b;o.each([l],function(C,L){if(x>0&&L%x){p+=v;return}var R=C==null||isNaN(C)||C==="",D=R?0:Ae(C,h,d,!0);R&&!b&&L?(y.push([y[y.length-1][0],0]),_.push([_[_.length-1][0],0])):!R&&b&&(y.push([p,0]),_.push([p,0])),y.push([p,D]),_.push([p,D]),p+=v,b=R}),u=this._shadowPolygonPts=y,c=this._shadowPolylinePts=_}this._shadowData=o,this._shadowDim=l,this._shadowSize=[i[0],i[1]];var S=this.dataZoomModel;function M(C){var L=S.getModel(C?"selectedDataBackground":"dataBackground"),R=new Gt,D=new Kn({shape:{points:u},segmentIgnoreThreshold:1,style:L.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),N=new Yn({shape:{points:c},segmentIgnoreThreshold:1,style:L.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return R.add(D),R.add(N),R}for(var I=0;I<3;I++){var A=M(I===1);this._displayables.sliderGroup.add(A),this._displayables.dataShadowSegs.push(A)}},e.prototype._prepareDataShadowInfo=function(){var t=this.dataZoomModel,i=t.get("showDataShadow");if(i!==!1){var r,a=this.ecModel;return t.eachTargetAxis(function(o,s){var l=t.getAxisProxy(o,s).getTargetSeriesModels();E(l,function(u){if(!r&&!(i!==!0&&Qt(iJ,u.get("type"))<0)){var c=a.getComponent(ho(o),s).axis,h=oJ(o),f,d=u.coordinateSystem;h!=null&&d.getOtherAxis&&(f=d.getOtherAxis(c).inverse),h=u.getData().mapDimension(h),r={thisAxis:c,series:u,thisDim:o,otherDim:h,otherAxisInverse:f}}},this)},this),r}},e.prototype._renderHandle=function(){var t=this.group,i=this._displayables,r=i.handles=[null,null],a=i.handleLabels=[null,null],o=this._displayables.sliderGroup,s=this._size,l=this.dataZoomModel,u=this.api,c=l.get("borderRadius")||0,h=l.get("brushSelect"),f=i.filler=new bh({silent:h,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});o.add(f),o.add(new bh({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:s[0],height:s[1],r:c},style:{stroke:l.get("dataBackgroundColor")||l.get("borderColor"),lineWidth:tJ,fill:"rgba(0,0,0,0)"}})),E([0,1],function(x){var b=l.get("handleIcon");!Ad[b]&&b.indexOf("path://")<0&&b.indexOf("image://")<0&&(b="path://"+b);var S=rn(b,-1,0,2,2,null,!0);S.attr({cursor:P5(this._orient),draggable:!0,drift:Ct(this._onDragMove,this,x),ondragend:Ct(this._onDragEnd,this),onmouseover:Ct(this._showDataInfo,this,!0),onmouseout:Ct(this._showDataInfo,this,!1),z2:5});var M=S.getBoundingRect(),I=l.get("handleSize");this._handleHeight=Mt(I,this._size[1]),this._handleWidth=M.width/M.height*this._handleHeight,S.setStyle(l.getModel("handleStyle").getItemStyle()),S.style.strokeNoScale=!0,S.rectHover=!0,S.ensureState("emphasis").style=l.getModel(["emphasis","handleStyle"]).getItemStyle(),Jo(S);var A=l.get("handleColor");A!=null&&(S.style.fill=A),o.add(r[x]=S);var C=l.getModel("textStyle"),L=l.get("handleLabel")||{},R=L.show||!1;t.add(a[x]=new fe({silent:!0,invisible:!R,style:Ee(C,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:C.getTextColor(),font:C.getFont()}),z2:10}))},this);var d=f;if(h){var g=Mt(l.get("moveHandleSize"),s[1]),y=i.moveHandle=new de({style:l.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:s[1]-.5,height:g}}),_=g*.8,v=i.moveHandleIcon=rn(l.get("moveHandleIcon"),-_/2,-_/2,_,_,"#fff",!0);v.silent=!0,v.y=s[1]+g/2-.5,y.ensureState("emphasis").style=l.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var p=Math.min(s[1]/2,Math.max(g,10));d=i.moveZone=new de({invisible:!0,shape:{y:s[1]-p,height:g+p}}),d.on("mouseover",function(){u.enterEmphasis(y)}).on("mouseout",function(){u.leaveEmphasis(y)}),o.add(y),o.add(v),o.add(d)}d.attr({draggable:!0,cursor:P5(this._orient),drift:Ct(this._onDragMove,this,"all"),ondragstart:Ct(this._showDataInfo,this,!0),ondragend:Ct(this._onDragEnd,this),onmouseover:Ct(this._showDataInfo,this,!0),onmouseout:Ct(this._showDataInfo,this,!1)})},e.prototype._resetInterval=function(){var t=this._range=this.dataZoomModel.getPercentRange(),i=this._getViewExtent();this._handleEnds=[Ae(t[0],[0,100],i,!0),Ae(t[1],[0,100],i,!0)]},e.prototype._updateInterval=function(t,i){var r=this.dataZoomModel,a=this._handleEnds,o=this._getViewExtent(),s=r.findRepresentativeAxisProxy().getMinMaxSpan(),l=[0,100];Ps(i,a,o,r.get("zoomLock")?"all":t,s.minSpan!=null?Ae(s.minSpan,l,o,!0):null,s.maxSpan!=null?Ae(s.maxSpan,l,o,!0):null);var u=this._range,c=this._range=Pi([Ae(a[0],o,l,!0),Ae(a[1],o,l,!0)]);return!u||u[0]!==c[0]||u[1]!==c[1]},e.prototype._updateView=function(t){var i=this._displayables,r=this._handleEnds,a=Pi(r.slice()),o=this._size;E([0,1],function(d){var g=i.handles[d],y=this._handleHeight;g.attr({scaleX:y/2,scaleY:y/2,x:r[d]+(d?-1:1),y:o[1]/2-y/2})},this),i.filler.setShape({x:a[0],y:0,width:a[1]-a[0],height:o[1]});var s={x:a[0],width:a[1]-a[0]};i.moveHandle&&(i.moveHandle.setShape(s),i.moveZone.setShape(s),i.moveZone.getBoundingRect(),i.moveHandleIcon&&i.moveHandleIcon.attr("x",s.x+s.width/2));for(var l=i.dataShadowSegs,u=[0,a[0],a[1],o[0]],c=0;c<l.length;c++){var h=l[c],f=h.getClipPath();f||(f=new de,h.setClipPath(f)),f.setShape({x:u[c],y:0,width:u[c+1]-u[c],height:o[1]})}this._updateDataInfo(t)},e.prototype._updateDataInfo=function(t){var i=this.dataZoomModel,r=this._displayables,a=r.handleLabels,o=this._orient,s=["",""];if(i.get("showDetail")){var l=i.findRepresentativeAxisProxy();if(l){var u=l.getAxisModel().axis,c=this._range,h=t?l.calculateDataWindow({start:c[0],end:c[1]}).valueWindow:l.getDataValueWindow();s=[this._formatLabel(h[0],u),this._formatLabel(h[1],u)]}}var f=Pi(this._handleEnds.slice());d.call(this,0),d.call(this,1);function d(g){var y=ns(r.handles[g].parent,this.group),_=nd(g===0?"right":"left",y),v=this._handleWidth/2+nJ,p=ur([f[g]+(g===0?-v:v),this._size[1]/2],y);a[g].setStyle({x:p[0],y:p[1],verticalAlign:o===wh?"middle":_,align:o===wh?_:"center",text:s[g]})}},e.prototype._formatLabel=function(t,i){var r=this.dataZoomModel,a=r.get("labelFormatter"),o=r.get("labelPrecision");(o==null||o==="auto")&&(o=i.getPixelPrecision());var s=t==null||isNaN(t)?"":i.type==="category"||i.type==="time"?i.scale.getLabel({value:Math.round(t)}):t.toFixed(Math.min(o,20));return Ot(a)?a(t,s):Tt(a)?a.replace("{value}",s):s},e.prototype._showDataInfo=function(t){var i=this.dataZoomModel.get("handleLabel")||{},r=i.show||!1,a=this.dataZoomModel.getModel(["emphasis","handleLabel"]),o=a.get("show")||!1,s=t||this._dragging?o:r,l=this._displayables,u=l.handleLabels;u[0].attr("invisible",!s),u[1].attr("invisible",!s),l.moveHandle&&this.api[s?"enterEmphasis":"leaveEmphasis"](l.moveHandle,1)},e.prototype._onDragMove=function(t,i,r,a){this._dragging=!0,Qr(a.event);var o=this._displayables.sliderGroup.getLocalTransform(),s=ur([i,r],o,!0),l=this._updateInterval(t,s[0]),u=this.dataZoomModel.get("realtime");this._updateView(!u),l&&u&&this._dispatchZoomAction(!0)},e.prototype._onDragEnd=function(){this._dragging=!1,this._showDataInfo(!1);var t=this.dataZoomModel.get("realtime");!t&&this._dispatchZoomAction(!1)},e.prototype._onClickPanel=function(t){var i=this._size,r=this._displayables.sliderGroup.transformCoordToLocal(t.offsetX,t.offsetY);if(!(r[0]<0||r[0]>i[0]||r[1]<0||r[1]>i[1])){var a=this._handleEnds,o=(a[0]+a[1])/2,s=this._updateInterval("all",r[0]-o);this._updateView(),s&&this._dispatchZoomAction(!1)}},e.prototype._onBrushStart=function(t){var i=t.offsetX,r=t.offsetY;this._brushStart=new Jt(i,r),this._brushing=!0,this._brushStartTime=+new Date},e.prototype._onBrushEnd=function(t){if(this._brushing){var i=this._displayables.brushRect;if(this._brushing=!1,!!i){i.attr("ignore",!0);var r=i.shape,a=+new Date;if(!(a-this._brushStartTime<200&&Math.abs(r.width)<5)){var o=this._getViewExtent(),s=[0,100];this._range=Pi([Ae(r.x,o,s,!0),Ae(r.x+r.width,o,s,!0)]),this._handleEnds=[r.x,r.x+r.width],this._updateView(),this._dispatchZoomAction(!1)}}}},e.prototype._onBrush=function(t){this._brushing&&(Qr(t.event),this._updateBrushRect(t.offsetX,t.offsetY))},e.prototype._updateBrushRect=function(t,i){var r=this._displayables,a=this.dataZoomModel,o=r.brushRect;o||(o=r.brushRect=new bh({silent:!0,style:a.getModel("brushStyle").getItemStyle()}),r.sliderGroup.add(o)),o.attr("ignore",!1);var s=this._brushStart,l=this._displayables.sliderGroup,u=l.transformCoordToLocal(t,i),c=l.transformCoordToLocal(s.x,s.y),h=this._size;u[0]=Math.max(Math.min(h[0],u[0]),0),o.setShape({x:c[0],y:0,width:u[0]-c[0],height:h[1]})},e.prototype._dispatchZoomAction=function(t){var i=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:t?rJ:null,start:i[0],end:i[1]})},e.prototype._findCoordRect=function(){var t,i=SP(this.dataZoomModel).infoList;if(!t&&i.length){var r=i[0].model.coordinateSystem;t=r.getRect&&r.getRect()}if(!t){var a=this.api.getWidth(),o=this.api.getHeight();t={x:a*.2,y:o*.2,width:a*.6,height:o*.6}}return t},e.type="dataZoom.slider",e}(D_);function oJ(n){var e={x:"y",y:"x",radius:"angle",angle:"radius"};return e[n]}function P5(n){return n==="vertical"?"ns-resize":"ew-resize"}function R5(n){n.registerComponentModel(QY),n.registerComponentView(aJ),P_(n)}function sJ(n){ie(k5),ie(R5)}var N5={get:function(n,e,t){var i=Wt((lJ[n]||{})[e]);return t&&ht(i)?i[i.length-1]:i}},lJ={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}},z5=mn.mapVisual,uJ=mn.eachVisual,cJ=ht,E5=E,hJ=Pi,pJ=Ae,Yf=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.stateList=["inRange","outOfRange"],t.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],t.layoutMode={type:"box",ignoreSize:!0},t.dataBound=[-1/0,1/0],t.targetVisuals={},t.controllerVisuals={},t}return e.prototype.init=function(t,i,r){this.mergeDefaultAndTheme(t,r)},e.prototype.optionUpdated=function(t,i){var r=this.option;!i&&QP(r,t,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},e.prototype.resetVisual=function(t){var i=this.stateList;t=Ct(t,this),this.controllerVisuals=W_(this.option.controller,i,t),this.targetVisuals=W_(this.option.target,i,t)},e.prototype.getItemSymbol=function(){return null},e.prototype.getTargetSeriesIndices=function(){var t=this.option.seriesIndex,i=[];return t==null||t==="all"?this.ecModel.eachSeries(function(r,a){i.push(a)}):i=De(t),i},e.prototype.eachTargetSeries=function(t,i){E(this.getTargetSeriesIndices(),function(r){var a=this.ecModel.getSeriesByIndex(r);a&&t.call(i,a)},this)},e.prototype.isTargetSeries=function(t){var i=!1;return this.eachTargetSeries(function(r){r===t&&(i=!0)}),i},e.prototype.formatValueText=function(t,i,r){var a=this.option,o=a.precision,s=this.dataBound,l=a.formatter,u;r=r||["<",">"],ht(t)&&(t=t.slice(),u=!0);var c=i?t:u?[h(t[0]),h(t[1])]:h(t);if(Tt(l))return l.replace("{value}",u?c[0]:c).replace("{value2}",u?c[1]:c);if(Ot(l))return u?l(t[0],t[1]):l(t);if(u)return t[0]===s[0]?r[0]+" "+c[1]:t[1]===s[1]?r[1]+" "+c[0]:c[0]+" - "+c[1];return c;function h(f){return f===s[0]?"min":f===s[1]?"max":(+f).toFixed(Math.min(o,20))}},e.prototype.resetExtent=function(){var t=this.option,i=hJ([t.min,t.max]);this._dataExtent=i},e.prototype.getDataDimensionIndex=function(t){var i=this.option.dimension;if(i!=null)return t.getDimensionIndex(i);for(var r=t.dimensions,a=r.length-1;a>=0;a--){var o=r[a],s=t.getDimensionInfo(o);if(!s.isCalculationCoord)return s.storeDimIndex}},e.prototype.getExtent=function(){return this._dataExtent.slice()},e.prototype.completeVisualOption=function(){var t=this.ecModel,i=this.option,r={inRange:i.inRange,outOfRange:i.outOfRange},a=i.target||(i.target={}),o=i.controller||(i.controller={});Kt(a,r),Kt(o,r);var s=this.isCategory();l.call(this,a),l.call(this,o),u.call(this,a,"inRange","outOfRange"),c.call(this,o);function l(h){cJ(i.color)&&!h.inRange&&(h.inRange={color:i.color.slice().reverse()}),h.inRange=h.inRange||{color:t.get("gradientColor")}}function u(h,f,d){var g=h[f],y=h[d];g&&!y&&(y=h[d]={},E5(g,function(_,v){if(mn.isValidType(v)){var p=N5.get(v,"inactive",s);p!=null&&(y[v]=p,v==="color"&&!y.hasOwnProperty("opacity")&&!y.hasOwnProperty("colorAlpha")&&(y.opacity=[0,0]))}}))}function c(h){var f=(h.inRange||{}).symbol||(h.outOfRange||{}).symbol,d=(h.inRange||{}).symbolSize||(h.outOfRange||{}).symbolSize,g=this.get("inactiveColor"),y=this.getItemSymbol(),_=y||"roundRect";E5(this.stateList,function(v){var p=this.itemSize,x=h[v];x||(x=h[v]={color:s?g:[g]}),x.symbol==null&&(x.symbol=f&&Wt(f)||(s?_:[_])),x.symbolSize==null&&(x.symbolSize=d&&Wt(d)||(s?p[0]:[p[0],p[0]])),x.symbol=z5(x.symbol,function(M){return M==="none"?_:M});var b=x.symbolSize;if(b!=null){var S=-1/0;uJ(b,function(M){M>S&&(S=M)}),x.symbolSize=z5(b,function(M){return pJ(M,[0,S],[0,p[0]],!0)})}},this)}},e.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},e.prototype.isCategory=function(){return!!this.option.categories},e.prototype.setSelected=function(t){},e.prototype.getSelected=function(){return null},e.prototype.getValueState=function(t){return null},e.prototype.getVisualMeta=function(t){return null},e.type="visualMap",e.dependencies=["series"],e.defaultOption={show:!0,z:4,seriesIndex:"all",min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,textStyle:{color:"#333"}},e}(le),O5=[20,140],dJ=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(t,i){n.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(r){r.mappingMethod="linear",r.dataExtent=this.getExtent()}),this._resetRange()},e.prototype.resetItemSize=function(){n.prototype.resetItemSize.apply(this,arguments);var t=this.itemSize;(t[0]==null||isNaN(t[0]))&&(t[0]=O5[0]),(t[1]==null||isNaN(t[1]))&&(t[1]=O5[1])},e.prototype._resetRange=function(){var t=this.getExtent(),i=this.option.range;!i||i.auto?(t.auto=1,this.option.range=t):ht(i)&&(i[0]>i[1]&&i.reverse(),i[0]=Math.max(i[0],t[0]),i[1]=Math.min(i[1],t[1]))},e.prototype.completeVisualOption=function(){n.prototype.completeVisualOption.apply(this,arguments),E(this.stateList,function(t){var i=this.option.controller[t].symbolSize;i&&i[0]!==i[1]&&(i[0]=i[1]/3)},this)},e.prototype.setSelected=function(t){this.option.range=t.slice(),this._resetRange()},e.prototype.getSelected=function(){var t=this.getExtent(),i=Pi((this.get("range")||[]).slice());return i[0]>t[1]&&(i[0]=t[1]),i[1]>t[1]&&(i[1]=t[1]),i[0]<t[0]&&(i[0]=t[0]),i[1]<t[0]&&(i[1]=t[0]),i},e.prototype.getValueState=function(t){var i=this.option.range,r=this.getExtent();return(i[0]<=r[0]||i[0]<=t)&&(i[1]>=r[1]||t<=i[1])?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var i=[];return this.eachTargetSeries(function(r){var a=[],o=r.getData();o.each(this.getDataDimensionIndex(o),function(s,l){t[0]<=s&&s<=t[1]&&a.push(l)},this),i.push({seriesId:r.id,dataIndex:a})},this),i},e.prototype.getVisualMeta=function(t){var i=B5(this,"outOfRange",this.getExtent()),r=B5(this,"inRange",this.option.range.slice()),a=[];function o(d,g){a.push({value:d,color:t(d,g)})}for(var s=0,l=0,u=r.length,c=i.length;l<c&&(!r.length||i[l]<=r[0]);l++)i[l]<r[s]&&o(i[l],"outOfRange");for(var h=1;s<u;s++,h=0)h&&a.length&&o(r[s],"outOfRange"),o(r[s],"inRange");for(var h=1;l<c;l++)(!r.length||r[r.length-1]<i[l])&&(h&&(a.length&&o(a[a.length-1].value,"outOfRange"),h=0),o(i[l],"outOfRange"));var f=a.length;return{stops:a,outerColors:[f?a[0].color:"transparent",f?a[f-1].color:"transparent"]}},e.type="visualMap.continuous",e.defaultOption=qa(Yf.defaultOption,{align:"auto",calculable:!1,hoverLink:!0,realtime:!0,handleIcon:"path://M-11.39,9.77h0a3.5,3.5,0,0,1-3.5,3.5h-22a3.5,3.5,0,0,1-3.5-3.5h0a3.5,3.5,0,0,1,3.5-3.5h22A3.5,3.5,0,0,1-11.39,9.77Z",handleSize:"120%",handleStyle:{borderColor:"#fff",borderWidth:1},indicatorIcon:"circle",indicatorSize:"50%",indicatorStyle:{borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}}),e}(Yf);function B5(n,e,t){if(t[0]===t[1])return t.slice();for(var i=200,r=(t[1]-t[0])/i,a=t[0],o=[],s=0;s<=i&&a<t[1];s++)o.push(a),a+=r;return o.push(t[1]),o}var V5=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.autoPositionValues={left:1,right:1,top:1,bottom:1},t}return e.prototype.init=function(t,i){this.ecModel=t,this.api=i},e.prototype.render=function(t,i,r,a){if(this.visualMapModel=t,t.get("show")===!1){this.group.removeAll();return}this.doRender(t,i,r,a)},e.prototype.renderBackground=function(t){var i=this.visualMapModel,r=bl(i.get("padding")||0),a=t.getBoundingRect();t.add(new de({z2:-1,silent:!0,shape:{x:a.x-r[3],y:a.y-r[0],width:a.width+r[3]+r[1],height:a.height+r[0]+r[2]},style:{fill:i.get("backgroundColor"),stroke:i.get("borderColor"),lineWidth:i.get("borderWidth")}}))},e.prototype.getControllerVisual=function(t,i,r){r=r||{};var a=r.forceState,o=this.visualMapModel,s={};if(i==="color"){var l=o.get("contentColor");s.color=l}function u(d){return s[d]}function c(d,g){s[d]=g}var h=o.controllerVisuals[a||o.getValueState(t)],f=mn.prepareVisualTypes(h);return E(f,function(d){var g=h[d];r.convertOpacityToAlpha&&d==="opacity"&&(d="colorAlpha",g=h.__alphaForOpacity),mn.dependsOn(d,i)&&g&&g.applyVisual(t,u,c)}),s[i]},e.prototype.positionGroup=function(t){var i=this.visualMapModel,r=this.api;gd(t,i.getBoxLayoutParams(),{width:r.getWidth(),height:r.getHeight()})},e.prototype.doRender=function(t,i,r,a){},e.type="visualMap",e}(je),F5=[["left","right","width"],["top","bottom","height"]];function W5(n,e,t){var i=n.option,r=i.align;if(r!=null&&r!=="auto")return r;for(var a={width:e.getWidth(),height:e.getHeight()},o=i.orient==="horizontal"?1:0,s=F5[o],l=[0,null,10],u={},c=0;c<3;c++)u[F5[1-o][c]]=l[c],u[s[c]]=c===2?t[0]:i[s[c]];var h=[["x","width",3],["y","height",0]][o],f=un(u,a,i.padding);return s[(f.margin[h[2]]||0)+f[h[0]]+f[h[1]]*.5<a[h[1]]*.5?0:1]}function Jf(n,e){return E(n||[],function(t){t.dataIndex!=null&&(t.dataIndexInside=t.dataIndex,t.dataIndex=null),t.highlightKey="visualMap"+(e?e.componentIndex:"")}),n}var Hr=Ae,fJ=E,G5=Math.min,lx=Math.max,gJ=12,vJ=6,yJ=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t._shapes={},t._dataInterval=[],t._handleEnds=[],t._hoverLinkDataIndices=[],t}return e.prototype.init=function(t,i){n.prototype.init.call(this,t,i),this._hoverLinkFromSeriesMouseOver=Ct(this._hoverLinkFromSeriesMouseOver,this),this._hideIndicator=Ct(this._hideIndicator,this)},e.prototype.doRender=function(t,i,r,a){(!a||a.type!=="selectDataRange"||a.from!==this.uid)&&this._buildView()},e.prototype._buildView=function(){this.group.removeAll();var t=this.visualMapModel,i=this.group;this._orient=t.get("orient"),this._useHandle=t.get("calculable"),this._resetInterval(),this._renderBar(i);var r=t.get("text");this._renderEndsText(i,r,0),this._renderEndsText(i,r,1),this._updateView(!0),this.renderBackground(i),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(i)},e.prototype._renderEndsText=function(t,i,r){if(i){var a=i[1-r];a=a!=null?a+"":"";var o=this.visualMapModel,s=o.get("textGap"),l=o.itemSize,u=this._shapes.mainGroup,c=this._applyTransform([l[0]/2,r===0?-s:l[1]+s],u),h=this._applyTransform(r===0?"bottom":"top",u),f=this._orient,d=this.visualMapModel.textStyleModel;this.group.add(new fe({style:Ee(d,{x:c[0],y:c[1],verticalAlign:f==="horizontal"?"middle":h,align:f==="horizontal"?h:"center",text:a})}))}},e.prototype._renderBar=function(t){var i=this.visualMapModel,r=this._shapes,a=i.itemSize,o=this._orient,s=this._useHandle,l=W5(i,this.api,a),u=r.mainGroup=this._createBarGroup(l),c=new Gt;u.add(c),c.add(r.outOfRange=j5()),c.add(r.inRange=j5(null,s?U5(this._orient):null,Ct(this._dragHandle,this,"all",!1),Ct(this._dragHandle,this,"all",!0))),c.setClipPath(new de({shape:{x:0,y:0,width:a[0],height:a[1],r:3}}));var h=i.textStyleModel.getTextRect("国"),f=lx(h.width,h.height);s&&(r.handleThumbs=[],r.handleLabels=[],r.handleLabelPoints=[],this._createHandle(i,u,0,a,f,o),this._createHandle(i,u,1,a,f,o)),this._createIndicator(i,u,a,f,o),t.add(u)},e.prototype._createHandle=function(t,i,r,a,o,s){var l=Ct(this._dragHandle,this,r,!1),u=Ct(this._dragHandle,this,r,!0),c=ar(t.get("handleSize"),a[0]),h=rn(t.get("handleIcon"),-c/2,-c/2,c,c,null,!0),f=U5(this._orient);h.attr({cursor:f,draggable:!0,drift:l,ondragend:u,onmousemove:function(v){Qr(v.event)}}),h.x=a[0]/2,h.useStyle(t.getModel("handleStyle").getItemStyle()),h.setStyle({strokeNoScale:!0,strokeFirst:!0}),h.style.lineWidth*=2,h.ensureState("emphasis").style=t.getModel(["emphasis","handleStyle"]).getItemStyle(),$o(h,!0),i.add(h);var d=this.visualMapModel.textStyleModel,g=new fe({cursor:f,draggable:!0,drift:l,onmousemove:function(v){Qr(v.event)},ondragend:u,style:Ee(d,{x:0,y:0,text:""})});g.ensureState("blur").style={opacity:.1},g.stateTransition={duration:200},this.group.add(g);var y=[c,0],_=this._shapes;_.handleThumbs[r]=h,_.handleLabelPoints[r]=y,_.handleLabels[r]=g},e.prototype._createIndicator=function(t,i,r,a,o){var s=ar(t.get("indicatorSize"),r[0]),l=rn(t.get("indicatorIcon"),-s/2,-s/2,s,s,null,!0);l.attr({cursor:"move",invisible:!0,silent:!0,x:r[0]/2});var u=t.getModel("indicatorStyle").getItemStyle();if(l instanceof Sn){var c=l.style;l.useStyle(lt({image:c.image,x:c.x,y:c.y,width:c.width,height:c.height},u))}else l.useStyle(u);i.add(l);var h=this.visualMapModel.textStyleModel,f=new fe({silent:!0,invisible:!0,style:Ee(h,{x:0,y:0,text:""})});this.group.add(f);var d=[(o==="horizontal"?a/2:vJ)+r[0]/2,0],g=this._shapes;g.indicator=l,g.indicatorLabel=f,g.indicatorLabelPoint=d,this._firstShowIndicator=!0},e.prototype._dragHandle=function(t,i,r,a){if(this._useHandle){if(this._dragging=!i,!i){var o=this._applyTransform([r,a],this._shapes.mainGroup,!0);this._updateInterval(t,o[1]),this._hideIndicator(),this._updateView()}i===!this.visualMapModel.get("realtime")&&this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),i?!this._hovering&&this._clearHoverLinkToSeries():H5(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[t],!1)}},e.prototype._resetInterval=function(){var t=this.visualMapModel,i=this._dataInterval=t.getSelected(),r=t.getExtent(),a=[0,t.itemSize[1]];this._handleEnds=[Hr(i[0],r,a,!0),Hr(i[1],r,a,!0)]},e.prototype._updateInterval=function(t,i){i=i||0;var r=this.visualMapModel,a=this._handleEnds,o=[0,r.itemSize[1]];Ps(i,a,o,t,0);var s=r.getExtent();this._dataInterval=[Hr(a[0],o,s,!0),Hr(a[1],o,s,!0)]},e.prototype._updateView=function(t){var i=this.visualMapModel,r=i.getExtent(),a=this._shapes,o=[0,i.itemSize[1]],s=t?o:this._handleEnds,l=this._createBarVisual(this._dataInterval,r,s,"inRange"),u=this._createBarVisual(r,r,o,"outOfRange");a.inRange.setStyle({fill:l.barColor}).setShape("points",l.barPoints),a.outOfRange.setStyle({fill:u.barColor}).setShape("points",u.barPoints),this._updateHandle(s,l)},e.prototype._createBarVisual=function(t,i,r,a){var o={forceState:a,convertOpacityToAlpha:!0},s=this._makeColorGradient(t,o),l=[this.getControllerVisual(t[0],"symbolSize",o),this.getControllerVisual(t[1],"symbolSize",o)],u=this._createBarPoints(r,l);return{barColor:new oc(0,0,0,1,s),barPoints:u,handlesColor:[s[0].color,s[s.length-1].color]}},e.prototype._makeColorGradient=function(t,i){var r=100,a=[],o=(t[1]-t[0])/r;a.push({color:this.getControllerVisual(t[0],"color",i),offset:0});for(var s=1;s<r;s++){var l=t[0]+o*s;if(l>t[1])break;a.push({color:this.getControllerVisual(l,"color",i),offset:s/r})}return a.push({color:this.getControllerVisual(t[1],"color",i),offset:1}),a},e.prototype._createBarPoints=function(t,i){var r=this.visualMapModel.itemSize;return[[r[0]-i[0],t[0]],[r[0],t[0]],[r[0],t[1]],[r[0]-i[1],t[1]]]},e.prototype._createBarGroup=function(t){var i=this._orient,r=this.visualMapModel.get("inverse");return new Gt(i==="horizontal"&&!r?{scaleX:t==="bottom"?1:-1,rotation:Math.PI/2}:i==="horizontal"&&r?{scaleX:t==="bottom"?-1:1,rotation:-Math.PI/2}:i==="vertical"&&!r?{scaleX:t==="left"?1:-1,scaleY:-1}:{scaleX:t==="left"?1:-1})},e.prototype._updateHandle=function(t,i){if(this._useHandle){var r=this._shapes,a=this.visualMapModel,o=r.handleThumbs,s=r.handleLabels,l=a.itemSize,u=a.getExtent(),c=this._applyTransform("left",r.mainGroup);fJ([0,1],function(h){var f=o[h];f.setStyle("fill",i.handlesColor[h]),f.y=t[h];var d=Hr(t[h],[0,l[1]],u,!0),g=this.getControllerVisual(d,"symbolSize");f.scaleX=f.scaleY=g/l[0],f.x=l[0]-g/2;var y=ur(r.handleLabelPoints[h],ns(f,this.group));if(this._orient==="horizontal"){var _=c==="left"||c==="top"?(l[0]-g)/2:(l[0]-g)/-2;y[1]+=_}s[h].setStyle({x:y[0],y:y[1],text:a.formatValueText(this._dataInterval[h]),verticalAlign:"middle",align:this._orient==="vertical"?this._applyTransform("left",r.mainGroup):"center"})},this)}},e.prototype._showIndicator=function(t,i,r,a){var o=this.visualMapModel,s=o.getExtent(),l=o.itemSize,u=[0,l[1]],c=this._shapes,h=c.indicator;if(h){h.attr("invisible",!1);var f={convertOpacityToAlpha:!0},d=this.getControllerVisual(t,"color",f),g=this.getControllerVisual(t,"symbolSize"),y=Hr(t,s,u,!0),_=l[0]-g/2,v={x:h.x,y:h.y};h.y=y,h.x=_;var p=ur(c.indicatorLabelPoint,ns(h,this.group)),x=c.indicatorLabel;x.attr("invisible",!1);var b=this._applyTransform("left",c.mainGroup),S=this._orient,M=S==="horizontal";x.setStyle({text:(r||"")+o.formatValueText(i),verticalAlign:M?b:"middle",align:M?"center":b});var I={x:_,y,style:{fill:d}},A={style:{x:p[0],y:p[1]}};if(o.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var C={duration:100,easing:"cubicInOut",additive:!0};h.x=v.x,h.y=v.y,h.animateTo(I,C),x.animateTo(A,C)}else h.attr(I),x.attr(A);this._firstShowIndicator=!1;var L=this._shapes.handleLabels;if(L)for(var R=0;R<L.length;R++)this.api.enterBlur(L[R])}},e.prototype._enableHoverLinkToSeries=function(){var t=this;this._shapes.mainGroup.on("mousemove",function(i){if(t._hovering=!0,!t._dragging){var r=t.visualMapModel.itemSize,a=t._applyTransform([i.offsetX,i.offsetY],t._shapes.mainGroup,!0,!0);a[1]=G5(lx(0,a[1]),r[1]),t._doHoverLinkToSeries(a[1],0<=a[0]&&a[0]<=r[0])}}).on("mouseout",function(){t._hovering=!1,!t._dragging&&t._clearHoverLinkToSeries()})},e.prototype._enableHoverLinkFromSeries=function(){var t=this.api.getZr();this.visualMapModel.option.hoverLink?(t.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),t.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},e.prototype._doHoverLinkToSeries=function(t,i){var r=this.visualMapModel,a=r.itemSize;if(r.option.hoverLink){var o=[0,a[1]],s=r.getExtent();t=G5(lx(o[0],t),o[1]);var l=mJ(r,s,o),u=[t-l,t+l],c=Hr(t,o,s,!0),h=[Hr(u[0],o,s,!0),Hr(u[1],o,s,!0)];u[0]<o[0]&&(h[0]=-1/0),u[1]>o[1]&&(h[1]=1/0),i&&(h[0]===-1/0?this._showIndicator(c,h[1],"< ",l):h[1]===1/0?this._showIndicator(c,h[0],"> ",l):this._showIndicator(c,c,"≈ ",l));var f=this._hoverLinkDataIndices,d=[];(i||H5(r))&&(d=this._hoverLinkDataIndices=r.findTargetDataIndices(h));var g=MO(f,d);this._dispatchHighDown("downplay",Jf(g[0],r)),this._dispatchHighDown("highlight",Jf(g[1],r))}},e.prototype._hoverLinkFromSeriesMouseOver=function(t){var i;if(hs(t.target,function(l){var u=jt(l);if(u.dataIndex!=null)return i=u,!0},!0),!!i){var r=this.ecModel.getSeriesByIndex(i.seriesIndex),a=this.visualMapModel;if(a.isTargetSeries(r)){var o=r.getData(i.dataType),s=o.getStore().get(a.getDataDimensionIndex(o),i.dataIndex);isNaN(s)||this._showIndicator(s,s)}}},e.prototype._hideIndicator=function(){var t=this._shapes;t.indicator&&t.indicator.attr("invisible",!0),t.indicatorLabel&&t.indicatorLabel.attr("invisible",!0);var i=this._shapes.handleLabels;if(i)for(var r=0;r<i.length;r++)this.api.leaveBlur(i[r])},e.prototype._clearHoverLinkToSeries=function(){this._hideIndicator();var t=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",Jf(t,this.visualMapModel)),t.length=0},e.prototype._clearHoverLinkFromSeries=function(){this._hideIndicator();var t=this.api.getZr();t.off("mouseover",this._hoverLinkFromSeriesMouseOver),t.off("mouseout",this._hideIndicator)},e.prototype._applyTransform=function(t,i,r,a){var o=ns(i,a?null:this.group);return ht(t)?ur(t,o,r):nd(t,o,r)},e.prototype._dispatchHighDown=function(t,i){i&&i.length&&this.api.dispatchAction({type:t,batch:i})},e.prototype.dispose=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},e.type="visualMap.continuous",e}(V5);function j5(n,e,t,i){return new Kn({shape:{points:n},draggable:!!t,cursor:e,drift:t,onmousemove:function(r){Qr(r.event)},ondragend:i})}function mJ(n,e,t){var i=gJ/2,r=n.get("hoverLinkDataSize");return r&&(i=Hr(r,e,t,!0)/2),i}function H5(n){var e=n.get("hoverLinkOnHandle");return!!(e??n.get("realtime"))}function U5(n){return n==="vertical"?"ns-resize":"ew-resize"}var _J={type:"selectDataRange",event:"dataRangeSelected",update:"update"},xJ=function(n,e){e.eachComponent({mainType:"visualMap",query:n},function(t){t.setSelected(n.selected)})},bJ=[{createOnAllSeries:!0,reset:function(n,e){var t=[];return e.eachComponent("visualMap",function(i){var r=n.pipelineContext;!i.isTargetSeries(n)||r&&r.large||t.push(jK(i.stateList,i.targetVisuals,Ct(i.getValueState,i),i.getDataDimensionIndex(n.getData())))}),t}},{createOnAllSeries:!0,reset:function(n,e){var t=n.getData(),i=[];e.eachComponent("visualMap",function(r){if(r.isTargetSeries(n)){var a=r.getVisualMeta(Ct(wJ,null,n,r))||{stops:[],outerColors:[]},o=r.getDataDimensionIndex(t);o>=0&&(a.dimension=o,i.push(a))}}),n.getData().setVisual("visualMeta",i)}}];function wJ(n,e,t,i){for(var r=e.targetVisuals[i],a=mn.prepareVisualTypes(r),o={color:Mc(n.getData(),"color")},s=0,l=a.length;s<l;s++){var u=a[s],c=r[u==="opacity"?"__alphaForOpacity":u];c&&c.applyVisual(t,h,f)}return o.color;function h(d){return o[d]}function f(d,g){o[d]=g}}var X5=E;function SJ(n){var e=n&&n.visualMap;ht(e)||(e=e?[e]:[]),X5(e,function(t){if(t){tu(t,"splitList")&&!tu(t,"pieces")&&(t.pieces=t.splitList,delete t.splitList);var i=t.pieces;i&&ht(i)&&X5(i,function(r){Vt(r)&&(tu(r,"start")&&!tu(r,"min")&&(r.min=r.start),tu(r,"end")&&!tu(r,"max")&&(r.max=r.end))})}})}function tu(n,e){return n&&n.hasOwnProperty&&n.hasOwnProperty(e)}var Z5=!1;function q5(n){Z5||(Z5=!0,n.registerSubTypeDefaulter("visualMap",function(e){return!e.categories&&(!(e.pieces?e.pieces.length>0:e.splitNumber>0)||e.calculable)?"continuous":"piecewise"}),n.registerAction(_J,xJ),E(bJ,function(e){n.registerVisual(n.PRIORITY.VISUAL.COMPONENT,e)}),n.registerPreprocessor(SJ))}function K5(n){n.registerComponentModel(dJ),n.registerComponentView(yJ),q5(n)}var MJ=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t._pieceList=[],t}return e.prototype.optionUpdated=function(t,i){n.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var r=this._mode=this._determineMode();this._pieceList=[],IJ[this._mode].call(this,this._pieceList),this._resetSelected(t,i);var a=this.option.categories;this.resetVisual(function(o,s){r==="categories"?(o.mappingMethod="category",o.categories=Wt(a)):(o.dataExtent=this.getExtent(),o.mappingMethod="piecewise",o.pieceList=pt(this._pieceList,function(l){return l=Wt(l),s!=="inRange"&&(l.visual=null),l}))})},e.prototype.completeVisualOption=function(){var t=this.option,i={},r=mn.listVisualTypes(),a=this.isCategory();E(t.pieces,function(s){E(r,function(l){s.hasOwnProperty(l)&&(i[l]=1)})}),E(i,function(s,l){var u=!1;E(this.stateList,function(c){u=u||o(t,c,l)||o(t.target,c,l)},this),!u&&E(this.stateList,function(c){(t[c]||(t[c]={}))[l]=N5.get(l,c==="inRange"?"active":"inactive",a)})},this);function o(s,l,u){return s&&s[l]&&s[l].hasOwnProperty(u)}n.prototype.completeVisualOption.apply(this,arguments)},e.prototype._resetSelected=function(t,i){var r=this.option,a=this._pieceList,o=(i?r:t).selected||{};if(r.selected=o,E(a,function(l,u){var c=this.getSelectedMapKey(l);o.hasOwnProperty(c)||(o[c]=!0)},this),r.selectedMode==="single"){var s=!1;E(a,function(l,u){var c=this.getSelectedMapKey(l);o[c]&&(s?o[c]=!1:s=!0)},this)}},e.prototype.getItemSymbol=function(){return this.get("itemSymbol")},e.prototype.getSelectedMapKey=function(t){return this._mode==="categories"?t.value+"":t.index+""},e.prototype.getPieceList=function(){return this._pieceList},e.prototype._determineMode=function(){var t=this.option;return t.pieces&&t.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},e.prototype.setSelected=function(t){this.option.selected=Wt(t)},e.prototype.getValueState=function(t){var i=mn.findPieceIndex(t,this._pieceList);return i!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[i])]?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var i=[],r=this._pieceList;return this.eachTargetSeries(function(a){var o=[],s=a.getData();s.each(this.getDataDimensionIndex(s),function(l,u){var c=mn.findPieceIndex(l,r);c===t&&o.push(u)},this),i.push({seriesId:a.id,dataIndex:o})},this),i},e.prototype.getRepresentValue=function(t){var i;if(this.isCategory())i=t.value;else if(t.value!=null)i=t.value;else{var r=t.interval||[];i=r[0]===-1/0&&r[1]===1/0?0:(r[0]+r[1])/2}return i},e.prototype.getVisualMeta=function(t){if(this.isCategory())return;var i=[],r=["",""],a=this;function o(c,h){var f=a.getRepresentValue({interval:c});h||(h=a.getValueState(f));var d=t(f,h);c[0]===-1/0?r[0]=d:c[1]===1/0?r[1]=d:i.push({value:c[0],color:d},{value:c[1],color:d})}var s=this._pieceList.slice();if(!s.length)s.push({interval:[-1/0,1/0]});else{var l=s[0].interval[0];l!==-1/0&&s.unshift({interval:[-1/0,l]}),l=s[s.length-1].interval[1],l!==1/0&&s.push({interval:[l,1/0]})}var u=-1/0;return E(s,function(c){var h=c.interval;h&&(h[0]>u&&o([u,h[0]],"outOfRange"),o(h.slice()),u=h[1])},this),{stops:i,outerColors:r}},e.type="visualMap.piecewise",e.defaultOption=qa(Yf.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0}),e}(Yf),IJ={splitNumber:function(n){var e=this.option,t=Math.min(e.precision,20),i=this.getExtent(),r=e.splitNumber;r=Math.max(parseInt(r,10),1),e.splitNumber=r;for(var a=(i[1]-i[0])/r;+a.toFixed(t)!==a&&t<5;)t++;e.precision=t,a=+a.toFixed(t),e.minOpen&&n.push({interval:[-1/0,i[0]],close:[0,0]});for(var o=0,s=i[0];o<r;s+=a,o++){var l=o===r-1?i[1]:s+a;n.push({interval:[s,l],close:[1,1]})}e.maxOpen&&n.push({interval:[i[1],1/0],close:[0,0]}),$w(n),E(n,function(u,c){u.index=c,u.text=this.formatValueText(u.interval)},this)},categories:function(n){var e=this.option;E(e.categories,function(t){n.push({text:this.formatValueText(t,!0),value:t})},this),Y5(e,n)},pieces:function(n){var e=this.option;E(e.pieces,function(t,i){Vt(t)||(t={value:t});var r={text:"",index:i};if(t.label!=null&&(r.text=t.label),t.hasOwnProperty("value")){var a=r.value=t.value;r.interval=[a,a],r.close=[1,1]}else{for(var o=r.interval=[],s=r.close=[0,0],l=[1,0,1],u=[-1/0,1/0],c=[],h=0;h<2;h++){for(var f=[["gte","gt","min"],["lte","lt","max"]][h],d=0;d<3&&o[h]==null;d++)o[h]=t[f[d]],s[h]=l[d],c[h]=d===2;o[h]==null&&(o[h]=u[h])}c[0]&&o[1]===1/0&&(s[0]=0),c[1]&&o[0]===-1/0&&(s[1]=0),o[0]===o[1]&&s[0]&&s[1]&&(r.value=o[0])}r.visual=mn.retrieveVisuals(t),n.push(r)},this),Y5(e,n),$w(n),E(n,function(t){var i=t.close,r=[["<","≤"][i[1]],[">","≥"][i[0]]];t.text=t.text||this.formatValueText(t.value!=null?t.value:t.interval,!1,r)},this)}};function Y5(n,e){var t=n.inverse;(n.orient==="vertical"?!t:t)&&e.reverse()}var TJ=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.doRender=function(){var t=this.group;t.removeAll();var i=this.visualMapModel,r=i.get("textGap"),a=i.textStyleModel,o=a.getFont(),s=a.getTextColor(),l=this._getItemAlign(),u=i.itemSize,c=this._getViewData(),h=c.endsText,f=bn(i.get("showLabel",!0),!h),d=!i.get("selectedMode");h&&this._renderEndsText(t,h[0],u,f,l),E(c.viewPieceList,function(g){var y=g.piece,_=new Gt;_.onclick=Ct(this._onItemClick,this,y),this._enableHoverLink(_,g.indexInModelPieceList);var v=i.getRepresentValue(y);if(this._createItemSymbol(_,v,[0,0,u[0],u[1]],d),f){var p=this.visualMapModel.getValueState(v);_.add(new fe({style:{x:l==="right"?-r:u[0]+r,y:u[1]/2,text:y.text,verticalAlign:"middle",align:l,font:o,fill:s,opacity:p==="outOfRange"?.5:1},silent:d}))}t.add(_)},this),h&&this._renderEndsText(t,h[1],u,f,l),ss(i.get("orient"),t,i.get("itemGap")),this.renderBackground(t),this.positionGroup(t)},e.prototype._enableHoverLink=function(t,i){var r=this;t.on("mouseover",function(){return a("highlight")}).on("mouseout",function(){return a("downplay")});var a=function(o){var s=r.visualMapModel;s.option.hoverLink&&r.api.dispatchAction({type:o,batch:Jf(s.findTargetDataIndices(i),s)})}},e.prototype._getItemAlign=function(){var t=this.visualMapModel,i=t.option;if(i.orient==="vertical")return W5(t,this.api,t.itemSize);var r=i.align;return(!r||r==="auto")&&(r="left"),r},e.prototype._renderEndsText=function(t,i,r,a,o){if(i){var s=new Gt,l=this.visualMapModel.textStyleModel;s.add(new fe({style:Ee(l,{x:a?o==="right"?r[0]:0:r[0]/2,y:r[1]/2,verticalAlign:"middle",align:a?o:"center",text:i})})),t.add(s)}},e.prototype._getViewData=function(){var t=this.visualMapModel,i=pt(t.getPieceList(),function(s,l){return{piece:s,indexInModelPieceList:l}}),r=t.get("text"),a=t.get("orient"),o=t.get("inverse");return(a==="horizontal"?o:!o)?i.reverse():r&&(r=r.slice().reverse()),{viewPieceList:i,endsText:r}},e.prototype._createItemSymbol=function(t,i,r,a){var o=rn(this.getControllerVisual(i,"symbol"),r[0],r[1],r[2],r[3],this.getControllerVisual(i,"color"));o.silent=a,t.add(o)},e.prototype._onItemClick=function(t){var i=this.visualMapModel,r=i.option,a=r.selectedMode;if(a){var o=Wt(r.selected),s=i.getSelectedMapKey(t);a==="single"||a===!0?(o[s]=!0,E(o,function(l,u){o[u]=u===s})):o[s]=!o[s],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:o})}},e.type="visualMap.piecewise",e}(V5);function J5(n){n.registerComponentModel(MJ),n.registerComponentView(TJ),q5(n)}function AJ(n){ie(K5),ie(J5)}var CJ={label:{enabled:!0},decal:{show:!1}},$5=pe(),kJ={};function LJ(n,e){var t=n.getModel("aria");if(!t.get("enabled"))return;var i=Wt(CJ);Kt(i.label,n.getLocaleModel().get("aria"),!1),Kt(t.option,i,!1),r(),a();function r(){var u=t.getModel("decal"),c=u.get("show");if(c){var h=Dt();n.eachSeries(function(f){if(!f.isColorBySeries()){var d=h.get(f.type);d||(d={},h.set(f.type,d)),$5(f).scope=d}}),n.eachRawSeries(function(f){if(n.isSeriesFiltered(f))return;if(Ot(f.enableAriaDecal)){f.enableAriaDecal();return}var d=f.getData();if(f.isColorBySeries()){var g=lm(f.ecModel,f.name,kJ,n.getSeriesCount()),y=d.getVisual("decal");d.setVisual("decal",b(y,g))}else{var _=f.getRawData(),v={},p=$5(f).scope;d.each(function(S){var M=d.getRawIndex(S);v[M]=S});var x=_.count();_.each(function(S){var M=v[S],I=_.getName(S)||S+"",A=lm(f.ecModel,I,p,x),C=d.getItemVisual(M,"decal");d.setItemVisual(M,"decal",b(C,A))})}function b(S,M){var I=S?lt(lt({},M),S):M;return I.dirty=!0,I}})}}function a(){var u=e.getZr().dom;if(u){var c=n.getLocaleModel().get("aria"),h=t.getModel("label");if(h.option=Bt(h.option,c),!!h.get("enabled")){if(u.setAttribute("role","img"),h.get("description")){u.setAttribute("aria-label",h.get("description"));return}var f=n.getSeriesCount(),d=h.get(["data","maxCount"])||10,g=h.get(["series","maxCount"])||10,y=Math.min(f,g),_;if(!(f<1)){var v=s();if(v){var p=h.get(["general","withTitle"]);_=o(p,{title:v})}else _=h.get(["general","withoutTitle"]);var x=[],b=f>1?h.get(["series","multiple","prefix"]):h.get(["series","single","prefix"]);_+=o(b,{seriesCount:f}),n.eachSeries(function(A,C){if(C<y){var L=void 0,R=A.get("name"),D=R?"withName":"withoutName";L=f>1?h.get(["series","multiple",D]):h.get(["series","single",D]),L=o(L,{seriesId:A.seriesIndex,seriesName:A.get("name"),seriesType:l(A.subType)});var N=A.getData();if(N.count()>d){var k=h.get(["data","partialData"]);L+=o(k,{displayCnt:d})}else L+=h.get(["data","allData"]);for(var O=h.get(["data","separator","middle"]),F=h.get(["data","separator","end"]),G=h.get(["data","excludeDimensionId"]),q=[],j=0;j<N.count();j++)if(j<d){var J=N.getName(j),H=G?Se(N.getValues(j),function(ut,ot){return Qt(G,ot)===-1}):N.getValues(j),K=h.get(["data",J?"withName":"withoutName"]);q.push(o(K,{name:J,value:H.join(O)}))}L+=q.join(O)+F,x.push(L)}});var S=h.getModel(["series","multiple","separator"]),M=S.get("middle"),I=S.get("end");_+=x.join(M)+I,u.setAttribute("aria-label",_)}}}}function o(u,c){if(!Tt(u))return u;var h=u;return E(c,function(f,d){h=h.replace(new RegExp("\\{\\s*"+d+"\\s*\\}","g"),f)}),h}function s(){var u=n.get("title");return u&&u.length&&(u=u[0]),u&&u.text}function l(u){var c=n.getLocaleModel().get(["series","typeNames"]);return c[u]||c.chart}}function DJ(n){if(!(!n||!n.aria)){var e=n.aria;e.show!=null&&(e.enabled=e.show),e.label=e.label||{},E(["description","general","series","data"],function(t){e[t]!=null&&(e.label[t]=e[t])})}}function PJ(n){n.registerPreprocessor(DJ),n.registerVisual(n.PRIORITY.VISUAL.ARIA,LJ)}var Q5={value:"eq","<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},RJ=function(){function n(e){var t=this._condVal=Tt(e)?new RegExp(e):Wz(e)?e:null;if(t==null){var i="";Me(i)}}return n.prototype.evaluate=function(e){var t=typeof e;return Tt(t)?this._condVal.test(e):ve(t)?this._condVal.test(e+""):!1},n}(),NJ=function(){function n(){}return n.prototype.evaluate=function(){return this.value},n}(),zJ=function(){function n(){}return n.prototype.evaluate=function(){for(var e=this.children,t=0;t<e.length;t++)if(!e[t].evaluate())return!1;return!0},n}(),EJ=function(){function n(){}return n.prototype.evaluate=function(){for(var e=this.children,t=0;t<e.length;t++)if(e[t].evaluate())return!0;return!1},n}(),OJ=function(){function n(){}return n.prototype.evaluate=function(){return!this.child.evaluate()},n}(),BJ=function(){function n(){}return n.prototype.evaluate=function(){for(var e=!!this.valueParser,t=this.getValue,i=t(this.valueGetterParam),r=e?this.valueParser(i):null,a=0;a<this.subCondList.length;a++)if(!this.subCondList[a].evaluate(e?r:i))return!1;return!0},n}();function ux(n,e){if(n===!0||n===!1){var t=new NJ;return t.value=n,t}var i="";return eR(n)||Me(i),n.and?tR("and",n,e):n.or?tR("or",n,e):n.not?VJ(n,e):FJ(n,e)}function tR(n,e,t){var i=e[n],r="";ht(i)||Me(r),i.length||Me(r);var a=n==="and"?new zJ:new EJ;return a.children=pt(i,function(o){return ux(o,t)}),a.children.length||Me(r),a}function VJ(n,e){var t=n.not,i="";eR(t)||Me(i);var r=new OJ;return r.child=ux(t,e),r.child||Me(i),r}function FJ(n,e){for(var t="",i=e.prepareGetValue(n),r=[],a=se(n),o=n.parser,s=o?zM(o):null,l=0;l<a.length;l++){var u=a[l];if(!(u==="parser"||e.valueGetterAttrMap.get(u))){var c=Lt(Q5,u)?Q5[u]:u,h=n[u],f=s?s(h):h,d=AV(c,f)||c==="reg"&&new RJ(f);d||Me(t),r.push(d)}}r.length||Me(t);var g=new BJ;return g.valueGetterParam=i,g.valueParser=s,g.getValue=e.getValue,g.subCondList=r,g}function eR(n){return Vt(n)&&!Nn(n)}var WJ=function(){function n(e,t){this._cond=ux(e,t)}return n.prototype.evaluate=function(){return this._cond.evaluate()},n}();function GJ(n,e){return new WJ(n,e)}var jJ={type:"echarts:filter",transform:function(n){for(var e=n.upstream,t,i=GJ(n.config,{valueGetterAttrMap:Dt({dimension:!0}),prepareGetValue:function(s){var l="",u=s.dimension;Lt(s,"dimension")||Me(l);var c=e.getDimensionInfo(u);return c||Me(l),{dimIdx:c.index}},getValue:function(s){return e.retrieveValueFromItem(t,s.dimIdx)}}),r=[],a=0,o=e.count();a<o;a++)t=e.getRawDataItem(a),i.evaluate()&&r.push(t);return{data:r}}},HJ={type:"echarts:sort",transform:function(n){var e=n.upstream,t=n.config,i="",r=De(t);r.length||Me(i);var a=[];E(r,function(c){var h=c.dimension,f=c.order,d=c.parser,g=c.incomparable;if(h==null&&Me(i),f!=="asc"&&f!=="desc"&&Me(i),g&&g!=="min"&&g!=="max"){var y="";Me(y)}if(f!=="asc"&&f!=="desc"){var _="";Me(_)}var v=e.getDimensionInfo(h);v||Me(i);var p=d?zM(d):null;d&&!p&&Me(i),a.push({dimIdx:v.index,parser:p,comparator:new OM(f,g)})});var o=e.sourceFormat;o!==En&&o!==Bi&&Me(i);for(var s=[],l=0,u=e.count();l<u;l++)s.push(e.getRawDataItem(l));return s.sort(function(c,h){for(var f=0;f<a.length;f++){var d=a[f],g=e.retrieveValueFromItem(c,d.dimIdx),y=e.retrieveValueFromItem(h,d.dimIdx);d.parser&&(g=d.parser(g),y=d.parser(y));var _=d.comparator.evaluate(g,y);if(_!==0)return _}return 0}),{data:s}}};function UJ(n){n.registerTransform(jJ),n.registerTransform(HJ)}var XJ=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type="dataset",t}return e.prototype.init=function(t,i,r){n.prototype.init.call(this,t,i,r),this._sourceManager=new jM(this),HM(this)},e.prototype.mergeOption=function(t,i){n.prototype.mergeOption.call(this,t,i),HM(this)},e.prototype.optionUpdated=function(){this._sourceManager.dirty()},e.prototype.getSourceManager=function(){return this._sourceManager},e.type="dataset",e.defaultOption={seriesLayoutBy:Er},e}(le),ZJ=function(n){Q(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type="dataset",t}return e.type="dataset",e}(je);function qJ(n){n.registerComponentModel(XJ),n.registerComponentView(ZJ)}var Ur=Rr.CMD;function eu(n,e){return Math.abs(n-e)<1e-5}function cx(n){var e=n.data,t=n.len(),i=[],r,a=0,o=0,s=0,l=0;function u(N,k){r&&r.length>2&&i.push(r),r=[N,k]}function c(N,k,O,F){eu(N,O)&&eu(k,F)||r.push(N,k,O,F,O,F)}function h(N,k,O,F,G,q){var j=Math.abs(k-N),J=Math.tan(j/4)*4/3,H=k<N?-1:1,K=Math.cos(N),ut=Math.sin(N),ot=Math.cos(k),at=Math.sin(k),Nt=K*G+O,Yt=ut*q+F,wt=ot*G+O,xt=at*q+F,zt=G*J*H,bt=q*J*H;r.push(Nt-zt*ut,Yt+bt*K,wt+zt*at,xt-bt*ot,wt,xt)}for(var f,d,g,y,_=0;_<t;){var v=e[_++],p=_===1;switch(p&&(a=e[_],o=e[_+1],s=a,l=o,(v===Ur.L||v===Ur.C||v===Ur.Q)&&(r=[s,l])),v){case Ur.M:a=s=e[_++],o=l=e[_++],u(s,l);break;case Ur.L:f=e[_++],d=e[_++],c(a,o,f,d),a=f,o=d;break;case Ur.C:r.push(e[_++],e[_++],e[_++],e[_++],a=e[_++],o=e[_++]);break;case Ur.Q:f=e[_++],d=e[_++],g=e[_++],y=e[_++],r.push(a+2/3*(f-a),o+2/3*(d-o),g+2/3*(f-g),y+2/3*(d-y),g,y),a=g,o=y;break;case Ur.A:var x=e[_++],b=e[_++],S=e[_++],M=e[_++],I=e[_++],A=e[_++]+I;_+=1;var C=!e[_++];f=Math.cos(I)*S+x,d=Math.sin(I)*M+b,p?(s=f,l=d,u(s,l)):c(a,o,f,d),a=Math.cos(A)*S+x,o=Math.sin(A)*M+b;for(var L=(C?-1:1)*Math.PI/2,R=I;C?R>A:R<A;R+=L){var D=C?Math.max(R+L,A):Math.min(R+L,A);h(R,D,x,b,S,M)}break;case Ur.R:s=a=e[_++],l=o=e[_++],f=s+e[_++],d=l+e[_++],u(f,l),c(f,l,f,d),c(f,d,s,d),c(s,d,s,l),c(s,l,f,l);break;case Ur.Z:r&&c(a,o,s,l),a=s,o=l;break}}return r&&r.length>2&&i.push(r),i}function hx(n,e,t,i,r,a,o,s,l,u){if(eu(n,t)&&eu(e,i)&&eu(r,o)&&eu(a,s)){l.push(o,s);return}var c=2/u,h=c*c,f=o-n,d=s-e,g=Math.sqrt(f*f+d*d);f/=g,d/=g;var y=t-n,_=i-e,v=r-o,p=a-s,x=y*y+_*_,b=v*v+p*p;if(x<h&&b<h){l.push(o,s);return}var S=f*y+d*_,M=-f*v-d*p,I=x-S*S,A=b-M*M;if(I<h&&S>=0&&A<h&&M>=0){l.push(o,s);return}var C=[],L=[];Va(n,t,r,o,.5,C),Va(e,i,a,s,.5,L),hx(C[0],L[0],C[1],L[1],C[2],L[2],C[3],L[3],l,u),hx(C[4],L[4],C[5],L[5],C[6],L[6],C[7],L[7],l,u)}function KJ(n,e){var t=cx(n),i=[];e=e||1;for(var r=0;r<t.length;r++){var a=t[r],o=[],s=a[0],l=a[1];o.push(s,l);for(var u=2;u<a.length;){var c=a[u++],h=a[u++],f=a[u++],d=a[u++],g=a[u++],y=a[u++];hx(s,l,c,h,f,d,g,y,o,e),s=g,l=y}i.push(o)}return i}function nR(n,e,t){var i=n[e],r=n[1-e],a=Math.abs(i/r),o=Math.ceil(Math.sqrt(a*t)),s=Math.floor(t/o);s===0&&(s=1,o=t);for(var l=[],u=0;u<o;u++)l.push(s);var c=o*s,h=t-c;if(h>0)for(var u=0;u<h;u++)l[u%o]+=1;return l}function iR(n,e,t){for(var i=n.r0,r=n.r,a=n.startAngle,o=n.endAngle,s=Math.abs(o-a),l=s*r,u=r-i,c=l>Math.abs(u),h=nR([l,u],c?0:1,e),f=(c?s:u)/h.length,d=0;d<h.length;d++)for(var g=(c?u:s)/h[d],y=0;y<h[d];y++){var _={};c?(_.startAngle=a+f*d,_.endAngle=a+f*(d+1),_.r0=i+g*y,_.r=i+g*(y+1)):(_.startAngle=a+g*y,_.endAngle=a+g*(y+1),_.r0=i+f*d,_.r=i+f*(d+1)),_.clockwise=n.clockwise,_.cx=n.cx,_.cy=n.cy,t.push(_)}}function YJ(n,e,t){for(var i=n.width,r=n.height,a=i>r,o=nR([i,r],a?0:1,e),s=a?"width":"height",l=a?"height":"width",u=a?"x":"y",c=a?"y":"x",h=n[s]/o.length,f=0;f<o.length;f++)for(var d=n[l]/o[f],g=0;g<o[f];g++){var y={};y[u]=f*h,y[c]=g*d,y[s]=h,y[l]=d,y.x+=n.x,y.y+=n.y,t.push(y)}}function rR(n,e,t,i){return n*i-t*e}function JJ(n,e,t,i,r,a,o,s){var l=t-n,u=i-e,c=o-r,h=s-a,f=rR(c,h,l,u);if(Math.abs(f)<1e-6)return null;var d=n-r,g=e-a,y=rR(d,g,c,h)/f;return y<0||y>1?null:new Jt(y*l+n,y*u+e)}function $J(n,e,t){var i=new Jt;Jt.sub(i,t,e),i.normalize();var r=new Jt;Jt.sub(r,n,e);var a=r.dot(i);return a}function nu(n,e){var t=n[n.length-1];t&&t[0]===e[0]&&t[1]===e[1]||n.push(e)}function QJ(n,e,t){for(var i=n.length,r=[],a=0;a<i;a++){var o=n[a],s=n[(a+1)%i],l=JJ(o[0],o[1],s[0],s[1],e.x,e.y,t.x,t.y);l&&r.push({projPt:$J(l,e,t),pt:l,idx:a})}if(r.length<2)return[{points:n},{points:n}];r.sort(function(_,v){return _.projPt-v.projPt});var u=r[0],c=r[r.length-1];if(c.idx<u.idx){var h=u;u=c,c=h}for(var f=[u.pt.x,u.pt.y],d=[c.pt.x,c.pt.y],g=[f],y=[d],a=u.idx+1;a<=c.idx;a++)nu(g,n[a].slice());nu(g,d),nu(g,f);for(var a=c.idx+1;a<=u.idx+i;a++)nu(y,n[a%i].slice());return nu(y,f),nu(y,d),[{points:g},{points:y}]}function aR(n){var e=n.points,t=[],i=[];Op(e,t,i);var r=new $t(t[0],t[1],i[0]-t[0],i[1]-t[1]),a=r.width,o=r.height,s=r.x,l=r.y,u=new Jt,c=new Jt;return a>o?(u.x=c.x=s+a/2,u.y=l,c.y=l+o):(u.y=c.y=l+o/2,u.x=s,c.x=s+a),QJ(e,u,c)}function $f(n,e,t,i){if(t===1)i.push(e);else{var r=Math.floor(t/2),a=n(e);$f(n,a[0],r,i),$f(n,a[1],t-r,i)}return i}function t$(n,e){for(var t=[],i=0;i<e;i++)t.push(Oy(n));return t}function e$(n,e){e.setStyle(n.style),e.z=n.z,e.z2=n.z2,e.zlevel=n.zlevel}function n$(n){for(var e=[],t=0;t<n.length;)e.push([n[t++],n[t++]]);return e}function i$(n,e){var t=[],i=n.shape,r;switch(n.type){case"rect":YJ(i,e,t),r=de;break;case"sector":iR(i,e,t),r=qn;break;case"circle":iR({r0:0,r:i.r,startAngle:0,endAngle:Math.PI*2,cx:i.cx,cy:i.cy},e,t),r=qn;break;default:var a=n.getComputedTransform(),o=a?Math.sqrt(Math.max(a[0]*a[0]+a[1]*a[1],a[2]*a[2]+a[3]*a[3])):1,s=pt(KJ(n.getUpdatedPathProxy(),o),function(v){return n$(v)}),l=s.length;if(l===0)$f(aR,{points:s[0]},e,t);else if(l===e)for(var u=0;u<l;u++)t.push({points:s[u]});else{var c=0,h=pt(s,function(v){var p=[],x=[];Op(v,p,x);var b=(x[1]-p[1])*(x[0]-p[0]);return c+=b,{poly:v,area:b}});h.sort(function(v,p){return p.area-v.area});for(var f=e,u=0;u<l;u++){var d=h[u];if(f<=0)break;var g=u===l-1?f:Math.ceil(d.area/c*e);g<0||($f(aR,{points:d.poly},g,t),f-=g)}}r=Kn;break}if(!r)return t$(n,e);for(var y=[],u=0;u<t.length;u++){var _=new r;_.setShape(t[u]),e$(n,_),y.push(_)}return y}function r$(n,e){var t=n.length,i=e.length;if(t===i)return[n,e];for(var r=[],a=[],o=t<i?n:e,s=Math.min(t,i),l=Math.abs(i-t)/6,u=(s-2)/6,c=Math.ceil(l/u)+1,h=[o[0],o[1]],f=l,d=2;d<s;){var g=o[d-2],y=o[d-1],_=o[d++],v=o[d++],p=o[d++],x=o[d++],b=o[d++],S=o[d++];if(f<=0){h.push(_,v,p,x,b,S);continue}for(var M=Math.min(f,c-1)+1,I=1;I<=M;I++){var A=I/M;Va(g,_,p,b,A,r),Va(y,v,x,S,A,a),g=r[3],y=a[3],h.push(r[1],a[1],r[2],a[2],g,y),_=r[5],v=a[5],p=r[6],x=a[6]}f-=M-1}return o===n?[h,e]:[n,h]}function oR(n,e){for(var t=n.length,i=n[t-2],r=n[t-1],a=[],o=0;o<e.length;)a[o++]=i,a[o++]=r;return a}function a$(n,e){for(var t,i,r,a=[],o=[],s=0;s<Math.max(n.length,e.length);s++){var l=n[s],u=e[s],c=void 0,h=void 0;l?u?(t=r$(l,u),c=t[0],h=t[1],i=c,r=h):(h=oR(r||l,l),c=l):(c=oR(i||u,u),h=u),a.push(c),o.push(h)}return[a,o]}function sR(n){for(var e=0,t=0,i=0,r=n.length,a=0,o=r-2;a<r;o=a,a+=2){var s=n[o],l=n[o+1],u=n[a],c=n[a+1],h=s*c-u*l;e+=h,t+=(s+u)*h,i+=(l+c)*h}return e===0?[n[0]||0,n[1]||0]:[t/e/3,i/e/3,e]}function o$(n,e,t,i){for(var r=(n.length-2)/6,a=1/0,o=0,s=n.length,l=s-2,u=0;u<r;u++){for(var c=u*6,h=0,f=0;f<s;f+=2){var d=f===0?c:(c+f-2)%l+2,g=n[d]-t[0],y=n[d+1]-t[1],_=e[f]-i[0],v=e[f+1]-i[1],p=_-g,x=v-y;h+=p*p+x*x}h<a&&(a=h,o=u)}return o}function s$(n){for(var e=[],t=n.length,i=0;i<t;i+=2)e[i]=n[t-i-2],e[i+1]=n[t-i-1];return e}function l$(n,e,t,i){for(var r=[],a,o=0;o<n.length;o++){var s=n[o],l=e[o],u=sR(s),c=sR(l);a==null&&(a=u[2]<0!=c[2]<0);var h=[],f=[],d=0,g=1/0,y=[],_=s.length;a&&(s=s$(s));for(var v=o$(s,l,u,c)*6,p=_-2,x=0;x<p;x+=2){var b=(v+x)%p+2;h[x+2]=s[b]-u[0],h[x+3]=s[b+1]-u[1]}h[0]=s[v]-u[0],h[1]=s[v+1]-u[1];for(var S=i/t,M=-i/2;M<=i/2;M+=S){for(var I=Math.sin(M),A=Math.cos(M),C=0,x=0;x<s.length;x+=2){var L=h[x],R=h[x+1],D=l[x]-c[0],N=l[x+1]-c[1],k=D*A-N*I,O=D*I+N*A;y[x]=k,y[x+1]=O;var F=k-L,G=O-R;C+=F*F+G*G}if(C<g){g=C,d=M;for(var q=0;q<y.length;q++)f[q]=y[q]}}r.push({from:h,to:f,fromCp:u,toCp:c,rotation:-d})}return r}function Qf(n){return n.__isCombineMorphing}var lR="__mOriginal_";function tg(n,e,t){var i=lR+e,r=n[i]||n[e];n[i]||(n[i]=n[e]);var a=t.replace,o=t.after,s=t.before;n[e]=function(){var l=arguments,u;return s&&s.apply(this,l),a?u=a.apply(this,l):u=r.apply(this,l),o&&o.apply(this,l),u}}function Sh(n,e){var t=lR+e;n[t]&&(n[e]=n[t],n[t]=null)}function uR(n,e){for(var t=0;t<n.length;t++)for(var i=n[t],r=0;r<i.length;){var a=i[r],o=i[r+1];i[r++]=e[0]*a+e[2]*o+e[4],i[r++]=e[1]*a+e[3]*o+e[5]}}function cR(n,e){var t=n.getUpdatedPathProxy(),i=e.getUpdatedPathProxy(),r=a$(cx(t),cx(i)),a=r[0],o=r[1],s=n.getComputedTransform(),l=e.getComputedTransform();function u(){this.transform=null}s&&uR(a,s),l&&uR(o,l),tg(e,"updateTransform",{replace:u}),e.transform=null;var c=l$(a,o,10,Math.PI),h=[];tg(e,"buildPath",{replace:function(f){for(var d=e.__morphT,g=1-d,y=[],_=0;_<c.length;_++){var v=c[_],p=v.from,x=v.to,b=v.rotation*d,S=v.fromCp,M=v.toCp,I=Math.sin(b),A=Math.cos(b);rp(y,S,M,d);for(var C=0;C<p.length;C+=2){var L=p[C],R=p[C+1],D=x[C],N=x[C+1],k=L*g+D*d,O=R*g+N*d;h[C]=k*A-O*I+y[0],h[C+1]=k*I+O*A+y[1]}var F=h[0],G=h[1];f.moveTo(F,G);for(var C=2;C<p.length;){var D=h[C++],N=h[C++],q=h[C++],j=h[C++],J=h[C++],H=h[C++];F===D&&G===N&&q===J&&j===H?f.lineTo(J,H):f.bezierCurveTo(D,N,q,j,J,H),F=J,G=H}}}})}function px(n,e,t){if(!n||!e)return e;var i=t.done,r=t.during;cR(n,e),e.__morphT=0;function a(){Sh(e,"buildPath"),Sh(e,"updateTransform"),e.__morphT=-1,e.createPathProxy(),e.dirtyShape()}return e.animateTo({__morphT:1},Bt({during:function(o){e.dirtyShape(),r&&r(o)},done:function(){a(),i&&i()}},t)),e}function u$(n,e,t,i,r,a){var o=16;n=r===t?0:Math.round(32767*(n-t)/(r-t)),e=a===i?0:Math.round(32767*(e-i)/(a-i));for(var s=0,l,u=(1<<o)/2;u>0;u/=2){var c=0,h=0;(n&u)>0&&(c=1),(e&u)>0&&(h=1),s+=u*u*(3*c^h),h===0&&(c===1&&(n=u-1-n,e=u-1-e),l=n,n=e,e=l)}return s}function eg(n){var e=1/0,t=1/0,i=-1/0,r=-1/0,a=pt(n,function(s){var l=s.getBoundingRect(),u=s.getComputedTransform(),c=l.x+l.width/2+(u?u[4]:0),h=l.y+l.height/2+(u?u[5]:0);return e=Math.min(c,e),t=Math.min(h,t),i=Math.max(c,i),r=Math.max(h,r),[c,h]}),o=pt(a,function(s,l){return{cp:s,z:u$(s[0],s[1],e,t,i,r),path:n[l]}});return o.sort(function(s,l){return s.z-l.z}).map(function(s){return s.path})}function hR(n){return i$(n.path,n.count)}function dx(){return{fromIndividuals:[],toIndividuals:[],count:0}}function c$(n,e,t){var i=[];function r(S){for(var M=0;M<S.length;M++){var I=S[M];Qf(I)?r(I.childrenRef()):I instanceof re&&i.push(I)}}r(n);var a=i.length;if(!a)return dx();var o=t.dividePath||hR,s=o({path:e,count:a});if(s.length!==a)return console.error("Invalid morphing: unmatched splitted path"),dx();i=eg(i),s=eg(s);for(var l=t.done,u=t.during,c=t.individualDelay,h=new ia,f=0;f<a;f++){var d=i[f],g=s[f];g.parent=e,g.copyTransform(h),c||cR(d,g)}e.__isCombineMorphing=!0,e.childrenRef=function(){return s};function y(S){for(var M=0;M<s.length;M++)s[M].addSelfToZr(S)}tg(e,"addSelfToZr",{after:function(S){y(S)}}),tg(e,"removeSelfFromZr",{after:function(S){for(var M=0;M<s.length;M++)s[M].removeSelfFromZr(S)}});function _(){e.__isCombineMorphing=!1,e.__morphT=-1,e.childrenRef=null,Sh(e,"addSelfToZr"),Sh(e,"removeSelfFromZr")}var v=s.length;if(c)for(var p=v,x=function(){p--,p===0&&(_(),l&&l())},f=0;f<v;f++){var b=c?Bt({delay:(t.delay||0)+c(f,v,i[f],s[f]),done:x},t):t;px(i[f],s[f],b)}else e.__morphT=0,e.animateTo({__morphT:1},Bt({during:function(S){for(var M=0;M<v;M++){var I=s[M];I.__morphT=e.__morphT,I.dirtyShape()}u&&u(S)},done:function(){_();for(var S=0;S<n.length;S++)Sh(n[S],"updateTransform");l&&l()}},t));return e.__zr&&y(e.__zr),{fromIndividuals:i,toIndividuals:s,count:v}}function h$(n,e,t){var i=e.length,r=[],a=t.dividePath||hR;function o(d){for(var g=0;g<d.length;g++){var y=d[g];Qf(y)?o(y.childrenRef()):y instanceof re&&r.push(y)}}if(Qf(n)){o(n.childrenRef());var s=r.length;if(s<i)for(var l=0,u=s;u<i;u++)r.push(Oy(r[l++%s]));r.length=i}else{r=a({path:n,count:i});for(var c=n.getComputedTransform(),u=0;u<r.length;u++)r[u].setLocalTransform(c);if(r.length!==i)return console.error("Invalid morphing: unmatched splitted path"),dx()}r=eg(r),e=eg(e);for(var h=t.individualDelay,u=0;u<i;u++){var f=h?Bt({delay:(t.delay||0)+h(u,i,r[u],e[u])},t):t;px(r[u],e[u],f)}return{fromIndividuals:r,toIndividuals:e,count:e.length}}function pR(n){return ht(n[0])}function dR(n,e){for(var t=[],i=n.length,r=0;r<i;r++)t.push({one:n[r],many:[]});for(var r=0;r<e.length;r++){var a=e[r].length,o=void 0;for(o=0;o<a;o++)t[o%i].many.push(e[r][o])}for(var s=0,r=i-1;r>=0;r--)if(!t[r].many.length){var l=t[s].many;if(l.length<=1)if(s)s=0;else return t;var a=l.length,u=Math.ceil(a/2);t[r].many=l.slice(u,a),t[s].many=l.slice(0,u),s++}return t}var p$={clone:function(n){for(var e=[],t=1-Math.pow(1-n.path.style.opacity,1/n.count),i=0;i<n.count;i++){var r=Oy(n.path);r.setStyle("opacity",t),e.push(r)}return e},split:null};function fx(n,e,t,i,r,a){if(!n.length||!e.length)return;var o=dl("update",i,r);if(!(o&&o.duration>0))return;var s=i.getModel("universalTransition").get("delay"),l=Object.assign({setToFinal:!0},o),u,c;pR(n)&&(u=n,c=e),pR(e)&&(u=e,c=n);function h(v,p,x,b,S){var M=v.many,I=v.one;if(M.length===1&&!S){var A=p?M[0]:I,C=p?I:M[0];if(Qf(A))h({many:[A],one:C},!0,x,b,!0);else{var L=s?Bt({delay:s(x,b)},l):l;px(A,C,L),a(A,C,A,C,L)}}else for(var R=Bt({dividePath:p$[t],individualDelay:s&&function(G,q,j,J){return s(G+x,b)}},l),D=p?c$(M,I,R):h$(I,M,R),N=D.fromIndividuals,k=D.toIndividuals,O=N.length,F=0;F<O;F++){var L=s?Bt({delay:s(F,O)},l):l;a(N[F],k[F],p?M[F]:v.one,p?v.one:M[F],L)}}for(var f=u?u===n:n.length>e.length,d=u?dR(c,u):dR(f?e:n,[f?n:e]),g=0,y=0;y<d.length;y++)g+=d[y].many.length;for(var _=0,y=0;y<d.length;y++)h(d[y],f,_,g),_+=d[y].many.length}function Bs(n){if(!n)return[];if(ht(n)){for(var e=[],t=0;t<n.length;t++)e.push(Bs(n[t]));return e}var i=[];return n.traverse(function(r){r instanceof re&&!r.disableMorphing&&!r.invisible&&!r.ignore&&i.push(r)}),i}var fR=1e4,d$=0,gR=1,vR=2,f$=pe();function g$(n,e){for(var t=n.dimensions,i=0;i<t.length;i++){var r=n.getDimensionInfo(t[i]);if(r&&r.otherDims[e]===0)return t[i]}}function v$(n,e,t){var i=n.getDimensionInfo(t),r=i&&i.ordinalMeta;if(i){var a=n.get(i.name,e);return r&&r.categories[a]||a+""}}function yR(n,e,t,i){var r=i?"itemChildGroupId":"itemGroupId",a=g$(n,r);if(a){var o=v$(n,e,a);return o}var s=n.getRawDataItem(e),l=i?"childGroupId":"groupId";if(s&&s[l])return s[l]+"";if(!i)return t||n.getId(e)}function mR(n){var e=[];return E(n,function(t){var i=t.data,r=t.dataGroupId;if(!(i.count()>fR))for(var a=i.getIndices(),o=0;o<a.length;o++)e.push({data:i,groupId:yR(i,o,r,!1),childGroupId:yR(i,o,r,!0),divide:t.divide,dataIndex:o})}),e}function gx(n,e,t){n.traverse(function(i){i instanceof re&&We(i,{style:{opacity:0}},e,{dataIndex:t,isFrom:!0})})}function vx(n){if(n.parent){var e=n.getComputedTransform();n.setLocalTransform(e),n.parent.remove(n)}}function iu(n){n.stopAnimation(),n.isGroup&&n.traverse(function(e){e.stopAnimation()})}function y$(n,e,t){var i=dl("update",t,e);i&&n.traverse(function(r){if(r instanceof Ri){var a=c4(r);a&&r.animateFrom({style:a},i)}})}function m$(n,e){var t=n.length;if(t!==e.length)return!1;for(var i=0;i<t;i++){var r=n[i],a=e[i];if(r.data.getId(r.dataIndex)!==a.data.getId(a.dataIndex))return!1}return!0}function _R(n,e,t){var i=mR(n),r=mR(e);function a(x,b,S,M,I){(S||x)&&b.animateFrom({style:S&&S!==x?lt(lt({},S.style),x.style):x.style},I)}var o=!1,s=d$,l=Dt(),u=Dt();i.forEach(function(x){x.groupId&&l.set(x.groupId,!0),x.childGroupId&&u.set(x.childGroupId,!0)});for(var c=0;c<r.length;c++){var h=r[c].groupId;if(u.get(h)){s=gR;break}var f=r[c].childGroupId;if(f&&l.get(f)){s=vR;break}}function d(x,b){return function(S){var M=S.data,I=S.dataIndex;return b?M.getId(I):x?s===gR?S.childGroupId:S.groupId:s===vR?S.childGroupId:S.groupId}}var g=m$(i,r),y={};if(!g)for(var c=0;c<r.length;c++){var _=r[c],v=_.data.getItemGraphicEl(_.dataIndex);v&&(y[v.id]=!0)}function p(x,b){var S=i[b],M=r[x],I=M.data.hostModel,A=S.data.getItemGraphicEl(S.dataIndex),C=M.data.getItemGraphicEl(M.dataIndex);if(A===C){C&&y$(C,M.dataIndex,I);return}A&&y[A.id]||C&&(iu(C),A?(iu(A),vx(A),o=!0,fx(Bs(A),Bs(C),M.divide,I,x,a)):gx(C,I,x))}new pa(i,r,d(!0,g),d(!1,g),null,"multiple").update(p).updateManyToOne(function(x,b){var S=r[x],M=S.data,I=M.hostModel,A=M.getItemGraphicEl(S.dataIndex),C=Se(pt(b,function(L){return i[L].data.getItemGraphicEl(i[L].dataIndex)}),function(L){return L&&L!==A&&!y[L.id]});A&&(iu(A),C.length?(E(C,function(L){iu(L),vx(L)}),o=!0,fx(Bs(C),Bs(A),S.divide,I,x,a)):gx(A,I,S.dataIndex))}).updateOneToMany(function(x,b){var S=i[b],M=S.data.getItemGraphicEl(S.dataIndex);if(!(M&&y[M.id])){var I=Se(pt(x,function(C){return r[C].data.getItemGraphicEl(r[C].dataIndex)}),function(C){return C&&C!==M}),A=r[x[0]].data.hostModel;I.length&&(E(I,function(C){return iu(C)}),M?(iu(M),vx(M),o=!0,fx(Bs(M),Bs(I),S.divide,A,x[0],a)):E(I,function(C){return gx(C,A,x[0])}))}}).updateManyToMany(function(x,b){new pa(b,x,function(S){return i[S].data.getId(i[S].dataIndex)},function(S){return r[S].data.getId(r[S].dataIndex)}).update(function(S,M){p(x[S],b[M])}).execute()}).execute(),o&&E(e,function(x){var b=x.data,S=b.hostModel,M=S&&t.getViewOfSeriesModel(S),I=dl("update",S,0);M&&S.isAnimationEnabled()&&I&&I.duration>0&&M.group.traverse(function(A){A instanceof re&&!A.animators.length&&A.animateFrom({style:{opacity:0}},I)})})}function xR(n){var e=n.getModel("universalTransition").get("seriesKey");return e||n.id}function bR(n){return ht(n)?n.sort().join(","):n}function fo(n){if(n.hostModel)return n.hostModel.getModel("universalTransition").get("divideShape")}function _$(n,e){var t=Dt(),i=Dt(),r=Dt();return E(n.oldSeries,function(a,o){var s=n.oldDataGroupIds[o],l=n.oldData[o],u=xR(a),c=bR(u);i.set(c,{dataGroupId:s,data:l}),ht(u)&&E(u,function(h){r.set(h,{key:c,dataGroupId:s,data:l})})}),E(e.updatedSeries,function(a){if(a.isUniversalTransitionEnabled()&&a.isAnimationEnabled()){var o=a.get("dataGroupId"),s=a.getData(),l=xR(a),u=bR(l),c=i.get(u);if(c)t.set(u,{oldSeries:[{dataGroupId:c.dataGroupId,divide:fo(c.data),data:c.data}],newSeries:[{dataGroupId:o,divide:fo(s),data:s}]});else if(ht(l)){var h=[];E(l,function(g){var y=i.get(g);y.data&&h.push({dataGroupId:y.dataGroupId,divide:fo(y.data),data:y.data})}),h.length&&t.set(u,{oldSeries:h,newSeries:[{dataGroupId:o,data:s,divide:fo(s)}]})}else{var f=r.get(l);if(f){var d=t.get(f.key);d||(d={oldSeries:[{dataGroupId:f.dataGroupId,data:f.data,divide:fo(f.data)}],newSeries:[]},t.set(f.key,d)),d.newSeries.push({dataGroupId:o,data:s,divide:fo(s)})}}}}),t}function wR(n,e){for(var t=0;t<n.length;t++){var i=e.seriesIndex!=null&&e.seriesIndex===n[t].seriesIndex||e.seriesId!=null&&e.seriesId===n[t].id;if(i)return t}}function x$(n,e,t,i){var r=[],a=[];E(De(n.from),function(o){var s=wR(e.oldSeries,o);s>=0&&r.push({dataGroupId:e.oldDataGroupIds[s],data:e.oldData[s],divide:fo(e.oldData[s]),groupIdDim:o.dimension})}),E(De(n.to),function(o){var s=wR(t.updatedSeries,o);if(s>=0){var l=t.updatedSeries[s].getData();a.push({dataGroupId:e.oldDataGroupIds[s],data:l,divide:fo(l),groupIdDim:o.dimension})}}),r.length>0&&a.length>0&&_R(r,a,i)}function b$(n){n.registerUpdateLifecycle("series:beforeupdate",function(e,t,i){E(De(i.seriesTransition),function(r){E(De(r.to),function(a){for(var o=i.updatedSeries,s=0;s<o.length;s++)(a.seriesIndex!=null&&a.seriesIndex===o[s].seriesIndex||a.seriesId!=null&&a.seriesId===o[s].id)&&(o[s][wd]=!0)})})}),n.registerUpdateLifecycle("series:transition",function(e,t,i){var r=f$(t);if(r.oldSeries&&i.updatedSeries&&i.optionChanged){var a=i.seriesTransition;if(a)E(De(a),function(d){x$(d,r,i,t)});else{var o=_$(r,i);E(o.keys(),function(d){var g=o.get(d);_R(g.oldSeries,g.newSeries,t)})}E(i.updatedSeries,function(d){d[wd]&&(d[wd]=!1)})}for(var s=e.getSeries(),l=r.oldSeries=[],u=r.oldDataGroupIds=[],c=r.oldData=[],h=0;h<s.length;h++){var f=s[h].getData();f.count()<fR&&(l.push(s[h]),u.push(s[h].get("dataGroupId")),c.push(f))}})}ie([DW]),ie([TW]),ie([JW,pG,wG,ej,pj,$j,T7,uH,DH,OH,XH,F9,hU,wU,BU,GU,$U,aX,vX,wX,PX,gZ]),ie(NZ),ie(oq),ie(_k),ie(_q),ie(FL),ie(Sq),ie(Pq),ie(_K),ie(BK),ie(fh),ie(eY),ie(rY),ie(fY),ie(bY),ie(AY),ie(RY),ie(jY),ie(sJ),ie(k5),ie(R5),ie(AJ),ie(K5),ie(J5),ie(PJ),ie(UJ),ie(qJ),ie(b$),ie(XF);var ng=1;function _i(n){var e=60,t=62,i=45,r=47,a=33,o=39,s=34,l=63,u=`\r
|
|
98
|
+
>/= `,c=0;return ng=1,SR(function h(){for(var f=[];n[c];){if(n.charCodeAt(c)==e){if(n.charCodeAt(c+1)===r)return c=n.indexOf(">",c),f;if(n.charCodeAt(c+1)===a){if(n.charCodeAt(c+2)==i){for(;n.charCodeAt(c)!==t||n.charCodeAt(c-1)!=i||n.charCodeAt(c-2)!=i||c==-1;)c=n.indexOf(">",c+1);c===-1&&(c=n.length)}else for(c+=2;n.charCodeAt(c)!==t;c++);c++;continue}if(n.charCodeAt(c+1)===l){c=n.indexOf(">",c),c++;continue}for(var d=++c;u.indexOf(n[c])===-1;c++);for(var g=n.slice(d,c),y=!1,_={};n.charCodeAt(c)!==t;c++){var v=n.charCodeAt(c);if(v>64&&v<91||v>96&&v<123){for(d=c;u.indexOf(n[c])===-1;c++);for(var p=n.slice(d,c),x=n.charCodeAt(c);x!==o&&x!==s;)c++,x=n.charCodeAt(c);var b=n[c],S=++c;c=n.indexOf(b,S);var M=n.slice(S,c);y||(_={},y=!0),_[p]=M}}var I=[];n.charCodeAt(c-1)!==r&&(c++,I=h()),f.push({children:I,tagName:g,attrs:_})}else{var A=c;(c=n.indexOf("<",c)-1)===-2&&(c=n.length);var C=n.slice(A,c+1);C.length>0&&f.push(C)}c++}return f}())}function SR(n){var e={};if(n===void 0)return{};if(n.length===1&&typeof n[0]=="string")return n[0];for(var t in n.forEach(function(i){if(e[i.tagName]||(e[i.tagName]=[]),typeof i=="object"){var r=SR(i.children);typeof r=="object"&&(i.attrs&&(r.attrs=i.attrs),r.attrs===void 0?r.attrs={order:ng}:r.attrs.order=ng),ng++,e[i.tagName].push(r)}}),e)e[t].length==1&&(e[t]=e[t][0]);return e}function xe(n){return n/12700}function ig(n){return n/100}function rg(n){return n/6e4}function go(n){return n/1e5}function yx(n){var e=Math.ceil(n/26),t=(n%26||26)-1+65;return String.fromCharCode(t).repeat(e)}function Ke(n,e,t){var i={type:"solidFill"};if(n["a:srgbClr"])i.color="#"+n["a:srgbClr"].attrs.val;else if(n["a:schemeClr"]){var r=n["a:schemeClr"].attrs.val;t&&(r=t.getColorThemeName(r)),i.color=e.getColor(r)}else if(n["a:sysClr"])i.color="#"+n["a:sysClr"].attrs.lastClr;else if(n["a:prstClr"]){var a=X.get(n["a:prstClr"],["attrs","val"]);i.color=function(f){var d,g=["white","AliceBlue","AntiqueWhite","Aqua","Aquamarine","Azure","Beige","Bisque","black","BlanchedAlmond","Blue","BlueViolet","Brown","BurlyWood","CadetBlue","Chartreuse","Chocolate","Coral","CornflowerBlue","Cornsilk","Crimson","Cyan","DarkBlue","DarkCyan","DarkGoldenRod","DarkGray","DarkGrey","DarkGreen","DarkKhaki","DarkMagenta","DarkOliveGreen","DarkOrange","DarkOrchid","DarkRed","DarkSalmon","DarkSeaGreen","DarkSlateBlue","DarkSlateGray","DarkSlateGrey","DarkTurquoise","DarkViolet","DeepPink","DeepSkyBlue","DimGray","DimGrey","DodgerBlue","FireBrick","FloralWhite","ForestGreen","Fuchsia","Gainsboro","GhostWhite","Gold","GoldenRod","Gray","Grey","Green","GreenYellow","HoneyDew","HotPink","IndianRed","Indigo","Ivory","Khaki","Lavender","LavenderBlush","LawnGreen","LemonChiffon","LightBlue","LightCoral","LightCyan","LightGoldenRodYellow","LightGray","LightGrey","LightGreen","LightPink","LightSalmon","LightSeaGreen","LightSkyBlue","LightSlateGray","LightSlateGrey","LightSteelBlue","LightYellow","Lime","LimeGreen","Linen","Magenta","Maroon","MediumAquaMarine","MediumBlue","MediumOrchid","MediumPurple","MediumSeaGreen","MediumSlateBlue","MediumSpringGreen","MediumTurquoise","MediumVioletRed","MidnightBlue","MintCream","MistyRose","Moccasin","NavajoWhite","Navy","OldLace","Olive","OliveDrab","Orange","OrangeRed","Orchid","PaleGoldenRod","PaleGreen","PaleTurquoise","PaleVioletRed","PapayaWhip","PeachPuff","Peru","Pink","Plum","PowderBlue","Purple","RebeccaPurple","Red","RosyBrown","RoyalBlue","SaddleBrown","Salmon","SandyBrown","SeaGreen","SeaShell","Sienna","Silver","SkyBlue","SlateBlue","SlateGray","SlateGrey","Snow","SpringGreen","SteelBlue","Tan","Teal","Thistle","Tomato","Turquoise","Violet","Wheat","White","WhiteSmoke","Yellow","YellowGreen"],y=["ffffff","f0f8ff","faebd7","00ffff","7fffd4","f0ffff","f5f5dc","ffe4c4","000000","ffebcd","0000ff","8a2be2","a52a2a","deb887","5f9ea0","7fff00","d2691e","ff7f50","6495ed","fff8dc","dc143c","00ffff","00008b","008b8b","b8860b","a9a9a9","a9a9a9","006400","bdb76b","8b008b","556b2f","ff8c00","9932cc","8b0000","e9967a","8fbc8f","483d8b","2f4f4f","2f4f4f","00ced1","9400d3","ff1493","00bfff","696969","696969","1e90ff","b22222","fffaf0","228b22","ff00ff","dcdcdc","f8f8ff","ffd700","daa520","808080","808080","008000","adff2f","f0fff0","ff69b4","cd5c5c","4b0082","fffff0","f0e68c","e6e6fa","fff0f5","7cfc00","fffacd","add8e6","f08080","e0ffff","fafad2","d3d3d3","d3d3d3","90ee90","ffb6c1","ffa07a","20b2aa","87cefa","778899","778899","b0c4de","ffffe0","00ff00","32cd32","faf0e6","ff00ff","800000","66cdaa","0000cd","ba55d3","9370db","3cb371","7b68ee","00fa9a","48d1cc","c71585","191970","f5fffa","ffe4e1","ffe4b5","ffdead","000080","fdf5e6","808000","6b8e23","ffa500","ff4500","da70d6","eee8aa","98fb98","afeeee","db7093","ffefd5","ffdab9","cd853f","ffc0cb","dda0dd","b0e0e6","800080","663399","ff0000","bc8f8f","4169e1","8b4513","fa8072","f4a460","2e8b57","fff5ee","a0522d","c0c0c0","87ceeb","6a5acd","708090","708090","fffafa","00ff7f","4682b4","d2b48c","008080","d8bfd8","ff6347","40e0d0","ee82ee","f5deb3","ffffff","f5f5f5","ffff00","9acd32"],_=g.indexOf(f);return _!=-1&&(d=y[_]),"#".concat(d||"000000")}(a)}var o=n["a:srgbClr"]||n["a:schemeClr"]||n["a:sysClr"],s=X.get(o,["a:alpha","attrs","val"],1e5);i.alpha=s/1e5;var l=X.get(o,["a:shade","attrs","val"]);l&&(i.shade=l/1e5);var u=X.get(o,["a:lumMod","attrs","val"]);u&&(i.lumMod=u/1e5);var c=X.get(o,["a:lumOff","attrs","val"]);c&&(i.lumOff=c/1e5);var h=X.get(o,["a:tint","attrs","val"]);return h&&(i.tint=h/1e5),i}function Mh(n,e,t){var i,r={type:"blipFill"},a=X.get(n,["a:blip","attrs","r:embed"]);if(a){var o=(i=t.rels[a])===null||i===void 0?void 0:i.target;o&&(r.base64=e.getMedia(o))}var s=X.get(n,["a:blip","a:alphaModFix","attrs","amt"]);s&&(r.alpha=s/1e5);var l=X.get(n,["a:stretch","a:fillRect","attrs"]);return l&&(r.fillRect={},l.b&&(r.fillRect.b=l.b/1e5),l.t&&(r.fillRect.t=l.t/1e5),l.r&&(r.fillRect.r=l.r/1e5),l.l&&(r.fillRect.l=l.l/1e5)),r}function Ih(n,e,t){var i={type:"gradFill",tileRect:{},lin:{},gsList:[]};i.flip=n.attrs.flip,i.path=X.get(n,["a:path","attrs","path"])||"linear",i.rotWithShape=n.attrs.rotWithShape==="1",X.get(n,["a:lin","attrs","ang"])&&(i.lin.ang=rg(n["a:lin"].attrs.ang)),X.get(n,["a:lin","attrs","scaled"])&&(i.lin.scaled=n["a:lin"].attrs.scaled==="1");var r=X.get(n,["a:gsLst","a:gs"])||[];return i.gsList=r.map(function(a){return{color:Ke(a,e,t),pos:go(a.attrs.pos)}}),X.get(n,["a:tileRect","attrs","l"])&&(i.tileRect.l=go(n["a:tileRect"].attrs.l)),X.get(n,["a:tileRect","attrs","t"])&&(i.tileRect.t=go(n["a:tileRect"].attrs.t)),X.get(n,["a:tileRect","attrs","r"])&&(i.tileRect.r=go(n["a:tileRect"].attrs.r)),X.get(n,["a:tileRect","attrs","b"])&&(i.tileRect.b=go(n["a:tileRect"].attrs.b)),i}function mx(n){return n<=.04045?n/12.92:Math.pow((n+.055)/1.055,2.4)}function _x(n){return n<.0031308?12.92*n:1.055*Math.pow(n,1/2.4)-.055}function MR(n,e){var t=n[0],i=n[1],r=n[2],a=mx(t/255)*e,o=mx(i/255)*e,s=mx(r/255)*e;return[Math.round(255*_x(a)),Math.round(255*_x(o)),Math.round(255*_x(s))]}function xx(n,e,t){var i=n/255,r=e/255,a=t/255,o=Math.max(i,r,a),s=Math.min(i,r,a),l=o-s,u=0,c=(o+s)/2;return l===0?u=0:o===i?u=(r-a)/l%6:o===r?u=(a-i)/l+2:o===a&&(u=(i-r)/l+4),(u=Math.round(60*u))<0&&(u+=360),{h:u,s:l===0||c===0||c===1?0:l/(1-Math.abs(2*c-1)),l:c}}function bx(n,e,t){var i,r,a,o=(1-Math.abs(2*t-1))*e,s=o*(1-Math.abs(n/60%2-1)),l=t-o/2;return n<60?(i=o,r=s,a=0):n<120?(i=s,r=o,a=0):n<180?(i=0,r=o,a=s):n<240?(i=0,r=s,a=o):n<300?(i=s,r=0,a=o):(i=o,r=0,a=s),[i=Math.round(255*(i+l)),r=Math.round(255*(r+l)),a=Math.round(255*(a+l))]}function ke(n,e){if(!n||n.type==="none")return"";if(n.type==="solidFill"&&/^#[\da-fA-F]{3,6}$/.test(n.color)){var t=parseInt(n.color.substr(1,2),16),i=parseInt(n.color.substr(3,2),16),r=parseInt(n.color.substr(5,2),16);if(n.shade){var a=MR([t,i,r],n.shade);t=a[0],i=a[1],r=a[2]}if(n.lumMod){var o=function(c,h,f,d){var g=xx(c,h,f),y=g.h,_=g.l*d;return _>=1&&(_=1),bx(y,g.s,_)}(t,i,r,n.lumMod);t=o[0],i=o[1],r=o[2]}if(n.lumOff&&(o=function(c,h,f,d){var g=xx(c,h,f),y=g.h,_=d+g.l;return _>1&&(_=1),bx(y,g.s,_)}(t,i,r,n.lumOff),t=o[0],i=o[1],r=o[2]),n.tint||e!=null&&e.light){var s=function(c,h,f,d){var g=xx(c,h,f),y=g.h,_=g.l;return d>=1&&(d=1),bx(y,g.s,_*d+(1-d))}(t,i,r,n.tint||(e==null?void 0:e.light));t=s[0],i=s[1],r=s[2]}if(e!=null&&e.dark){var l=MR([t,i,r],e==null?void 0:e.dark);t=l[0],i=l[1],r=l[2]}var u=n.alpha;return"rgba(".concat(t,",").concat(i,",").concat(r,",").concat(u,")")}}var Th=function(){function n(e,t,i){this.uuid=Mz(),this.offset={x:0,y:0},this.extend={w:0,h:0},this.rotate=0,this.order=0,this.flipV=!1,this.flipH=!1,this.source=e,this.ctx=t,this.group=i;var r=X.get(e,["p:nvSpPr","p:nvPr"]);if(r){var a=X.get(r,"p:ph");a&&a.attrs&&(this.idx=a.attrs.idx,this.type=a.attrs.type),X.get(r,["attrs","userDrawn"])&&(this.userDrawn=X.get(r,["attrs","userDrawn"])==="1")}if(this.order=X.get(e,"attrs.order",0),this.source["p:spPr"])(o=this.getXfrm())&&(this.offset={x:Math.round(xe(parseInt(o["a:off"].attrs.x))),y:Math.round(xe(parseInt(o["a:off"].attrs.y)))},this.extend={w:Math.round(xe(parseInt(o["a:ext"].attrs.cx))),h:Math.round(xe(parseInt(o["a:ext"].attrs.cy||"0")))},this.rotate=rg(parseInt(X.get(o,"attrs.rot",0))),this.flipV=X.get(o,"attrs.flipV")==="1",this.flipH=X.get(o,"attrs.flipH")==="1");else if(this.source["p:xfrm"]){var o=this.source["p:xfrm"];this.offset={x:Math.round(xe(parseInt(o["a:off"].attrs.x))),y:Math.round(xe(parseInt(o["a:off"].attrs.y)))},this.extend={w:Math.round(xe(parseInt(o["a:ext"].attrs.cx))),h:Math.round(xe(parseInt(o["a:ext"].attrs.cy)))}}if(i){var s=i.extend,l=i.chExtend,u=i.chOffset,c=l.w===0?0:s.w/l.w,h=l.h===0?0:s.h/l.h;this.extend.w=this.extend.w*c,this.extend.h=this.extend.h*h,this.offset.x=(this.offset.x-u.x)*c,this.offset.y=(this.offset.y-u.y)*h}}return Object.defineProperty(n.prototype,"theme",{get:function(){return(this.ctx.sliderMaster||this.ctx).theme},enumerable:!1,configurable:!0}),n.prototype.getColorThemeName=function(e){return this.ctx.getColorThemeName(e)},n.prototype.getXfrm=function(){var e=this.source["p:spPr"]["a:xfrm"];return e||(this.idx?e=this.ctx.getNodeInheritAttrsByIdx(this.idx,["p:spPr","a:xfrm"]):this.type&&(e=this.ctx.getNodeInheritAttrsByType(this.type,["p:spPr","a:xfrm"]))),e},n}(),w$=function(){function n(e,t){this.props={},this.inheritProps={},this.source=e,this.node=t,this._getInheritBodyProps(),this._parseBodyProps(),this._parseLstStyle(),this._parseText()}return n.prototype._getInheritBodyProps=function(){var e,t=this.node.ctx,i=this.node.type,r=this.node.idx;if(i||r)switch(t.slideType){case"slideMaster":break;case"slideLayout":(e=i?t.slideMaster.getNodeByType(i):t.slideMaster.getNodeByIdx(r))&&(this.inheritProps=X.get(e,["textBody","props"])||{});break;case"slide":(e=i?t.slideLayout.slideMaster.getNodeByType(i):t.slideLayout.slideMaster.getNodeByIdx(r))&&Object.assign(this.inheritProps,X.get(e,["textBody","props"])||{}),(e=i?t.slideLayout.getNodeByType(i):t.slideLayout.getNodeByIdx(r))&&Object.assign(this.inheritProps,X.get(e,["textBody","props"])||{})}},n.prototype._parseBodyProps=function(){var e=this,t=X.get(this.source,["a:bodyPr","attrs"])||{};Object.keys(t).forEach(function(o){switch(o){case"anchor":e.props.anchor=t[o];break;case"rtlCol":e.props.rtlCol=t[o]==="1";break;case"lIns":case"rIns":case"tIns":case"bIns":e.props[o]=xe(parseInt(t[o]));break;case"order":break;default:e.props[o]=t[o]}});var i=X.get(this.source,["a:bodyPr","a:normAutofit","attrs"]);if(i){this.props.normAutofit={};var r=i.fontScale;r&&(this.props.normAutofit.fontScale=go(parseInt(r)));var a=i.lnSpcReduction;a&&(this.props.normAutofit.lnSpcReduction=go(parseInt(a)))}},n.prototype._parseLstStyle=function(){var e=this,t={},i=X.get(this.source,"a:lstStyle")||{};Object.keys(i).forEach(function(r){if(r.startsWith("a:")&&r.endsWith("pPr")){var a=r.substr(2,r.length-5);t[a]={props:e._formatPPr(i[r])};var o=X.get(i[r],["a:defRPr"]);t[a].defRPr=e._formatRPr(o)}}),this.lstStyle=t},n.prototype._parseText=function(){var e=this,t=X.get(this.source,["a:p"])||[];Array.isArray(t)||(t=[t]),this.paragraphs=t.map(function(i){return e._parseParagraph(i)})},n.prototype._parseParagraph=function(e){var t=this,i={props:{},inheritProps:{},inheritRProps:{},endParaRProps:{},rows:[]},r=X.get(e,["a:pPr"])||{};i.props=this._formatPPr(r);var a=X.get(e,["a:endParaRPr"]);i.endParaRProps=this._formatRPr(a);var o=X.get(e,["a:r"])||[];Array.isArray(o)||(o=[o]);var s=X.get(e,["a:br"])||[];return Array.isArray(s)||(s=[s]),(o=o.concat(s.map(function(l){return kt({isBr:!0},l)}))).sort(function(l,u){return X.get(l,["attrs","order"])-X.get(u,["attrs","order"])}),i.rows=o.map(function(l){return t._parseRow(l)}),i.inheritProps=this._getInheritPProps(i.props.level),i.inheritRProps=this._getInheritRProps(i.props.level),i},n.prototype._getInheritPProps=function(e){e===void 0&&(e="0");var t,i={},r=this.node.ctx,a=this.node.type,o=this.node.idx;switch(r.slideType){case"slideMaster":this.node.isTextBox?Object.assign(i,X.get(r.defaultTextStyle,["lvl".concat(e?+e+1:1),"props"])||{}):Object.assign(i,X.get(r,["textStyles","otherStyle","lvl".concat(e?+e+1:1),"props"])||{});break;case"slideLayout":this.node.isTextBox?Object.assign(i,X.get(r.slideMaster.defaultTextStyle,["lvl".concat(e?+e+1:1),"props"])||{}):Object.assign(i,X.get(r.slideMaster,["textStyles","otherStyle","lvl".concat(e?+e+1:1),"props"])||{}),(a||o)&&(t=a?r.slideMaster.getNodeByType(a):r.slideMaster.getNodeByIdx(o))&&Object.assign(i,X.get(t,["textBody","lstStyle","lvl".concat(e?+e+1:1),"props"])||{});break;case"slide":this.node.isTextBox?Object.assign(i,X.get(r.slideLayout.slideMaster.defaultTextStyle,["lvl".concat(e?+e+1:1),"props"])||{}):Object.assign(i,X.get(r.slideLayout.slideMaster,["textStyles","otherStyle","lvl".concat(e?+e+1:1),"props"])||{}),(a||o)&&(["subTitle","ctrTitle","title"].includes(a)&&Object.assign(i,X.get(r.slideLayout.slideMaster,["textStyles","titleStyle","lvl".concat(e?+e+1:1),"props"])||{}),(t=a?r.slideLayout.slideMaster.getNodeByType(a):r.slideLayout.slideMaster.getNodeByIdx(o))&&Object.assign(i,X.get(t,["textBody","lstStyle","lvl".concat(e?+e+1:1),"props"])||{}),(t=a?r.slideLayout.getNodeByType(a):r.slideLayout.getNodeByIdx(o))&&Object.assign(i,X.get(t,["textBody","lstStyle","lvl".concat(e?+e+1:1),"props"])||{}))}return i},n.prototype._getInheritRProps=function(e){e===void 0&&(e="0");var t,i={},r=this.node.ctx,a=this.node.type,o=this.node.idx;switch(r.slideType){case"slideMaster":this.node.isTextBox?Object.assign(i,X.get(r.defaultTextStyle,["lvl".concat(e?+e+1:1),"defRPr"])||{}):Object.assign(i,X.get(r,["textStyles","otherStyle","lvl".concat(e?+e+1:1),"defRPr"])||{});break;case"slideLayout":this.node.isTextBox?Object.assign(i,X.get(r.slideMaster.defaultTextStyle,["lvl".concat(e?+e+1:1),"defRPr"])||{}):Object.assign(i,X.get(r.slideMaster,["textStyles","otherStyle","lvl".concat(e?+e+1:1),"defRPr"])||{}),(a||o)&&(t=a?r.slideMaster.getNodeByType(a):r.slideMaster.getNodeByIdx(o))&&(i=X.get(t,["textBody","lstStyle","lvl".concat(e?+e+1:1),"defRPr"])||{});break;case"slide":this.node.isTextBox?Object.assign(i,X.get(r.slideLayout.slideMaster.defaultTextStyle,["lvl".concat(e?+e+1:1),"defRPr"])||{}):Object.assign(i,X.get(r.slideLayout.slideMaster,["textStyles","otherStyle","lvl".concat(e?+e+1:1),"defRPr"])||{}),(a||o)&&(["subTitle","ctrTitle","title"].includes(a)&&Object.assign(i,X.get(r.slideLayout.slideMaster,["textStyles","titleStyle","lvl".concat(e?+e+1:1),"defRPr"])||{}),(t=a?r.slideLayout.slideMaster.getNodeByType(a):r.slideLayout.slideMaster.getNodeByIdx(o))&&Object.assign(i,X.get(t,["textBody","lstStyle","lvl".concat(e?+e+1:1),"defRPr"])||{}),(t=a?r.slideLayout.getNodeByType(a):r.slideLayout.getNodeByIdx(o))&&Object.assign(i,X.get(t,["textBody","lstStyle","lvl".concat(e?+e+1:1),"defRPr"])||{}))}var s=X.get(this.node.source,["p:style","a:fontRef"]);return X.get(s,"a:schemeClr")&&(i.color=Ke(s,this.node.theme,this.node)),X.get(this.lstStyle,["lvl".concat(e?+e+1:1),"defRPr"])&&Object.assign(i,X.get(this.lstStyle,["lvl".concat(e?+e+1:1),"defRPr"])),i},n.prototype._formatPPr=function(e){var t={},i=X.get(e,"attrs")||{};return Object.keys(i).forEach(function(r){switch(r){case"algn":t.align=i[r];break;case"marL":t.marginLeft=xe(parseInt(i[r]));break;case"indent":t.indent=xe(parseInt(i[r]));break;case"lvl":t.level=i[r]}}),X.get(e,["a:lnSpc","a:spcPct","attrs","val"])&&(t.lineHeight=parseInt(e["a:lnSpc"]["a:spcPct"].attrs.val)/1e5),X.get(e,["a:buAutoNum","attrs","type"])&&(t.buAutoNum=e["a:buAutoNum"].attrs.type),X.get(e,["a:buChar","attrs","char"])&&(t.buChar=e["a:buChar"].attrs.char),X.get(e,["a:spcBef","a:spcPts","attrs","val"])&&(t.spaceBefore=ig(parseInt(e["a:spcBef"]["a:spcPts"].attrs.val))),X.get(e,["a:spcAft","a:spcPts","attrs","val"])&&(t.spaceAfter=ig(parseInt(e["a:spcAft"]["a:spcPts"].attrs.val))),t},n.prototype._parseRow=function(e){if(e.isBr)return{isBr:!0};var t={props:{},text:""},i=X.get(e,["a:rPr"])||{};return t.props=this._formatRPr(i),t.text=X.get(e,"a:t")||"",t},n.prototype._formatRPr=function(e){var t={},i=X.get(e,"attrs")||{};Object.keys(i).forEach(function(o){switch(o){case"sz":t.size=parseInt(i[o])/100;break;case"b":t.bold=i[o]==="1";break;case"i":t.italic=i[o]==="1";break;case"u":t.underline=i[o];break;case"strike":t.strike=i[o];break;case"order":case"dirty":break;default:t[o]=i[o]}});var r=X.get(e,"a:solidFill");r&&(t.color=Ke(r,this.node.theme,this.node));var a=X.get(e,"a:highlight");return a&&(t.background=Ke(a,this.node.theme,this.node)),t.typeface=X.get(e,["a:ea","attrs","typeface"]),t},n}();function ru(n,e,t){var i={};if(!X.get(n,"a:noFill")){X.get(n,"attrs.w")&&(i.width=xe(parseInt(X.get(n,"attrs.w"))));var r=X.get(n,"a:solidFill");r&&(i.color=Ke(r,e,t));var a=X.get(n,"a:prstDash");if(a&&(i.type=a.attrs.val),X.get(n,["a:miter"])&&(i.lineJoin="miter"),X.get(n,["a:bevel"])&&(i.lineJoin="bevel"),X.get(n,["a:round"])&&(i.lineJoin="round"),X.get(n,["a:miter","attrs","lim"])&&(i.miterLim=xe(parseInt(X.get(n,["a:miter","attrs","lim"])))),X.get(n,["a:headEnd"])){var o=X.get(n,["a:headEnd","attrs"]);i.headEnd={type:o.type,len:o.len,w:o.w}}if(X.get(n,["a:tailEnd"])){var s=X.get(n,["a:tailEnd","attrs"]);i.tailEnd={type:s.type,len:s.len,w:s.w}}return i}}var Ah=function(n){function e(t,i,r,a){var o=n.call(this,t,r,a)||this;return o.border={},o.prstGeom={},o.isTextBox=!1,o.pptx=i,o._parseShape(),o._parIsTextBox(),o._parsePrstGeom(),o._parseBackground(),o._parseBorder(),o._parseTxt(),o}return wu(e,n),e.prototype._parseShape=function(){if(this.shape=X.get(this.source,["p:spPr","a:prstGeom","attrs","prst"]),!this.shape&&X.get(this.source,["p:spPr","a:custGeom"])){this.shape="customGeom";var t=X.get(this.source,["p:spPr","a:custGeom","a:pathLst","a:path"]),i=[],r=[],a=function(s){switch(s){case"a:moveTo":case"a:cubicBezTo":case"a:lnTo":r=Array.isArray(t[s])?t[s]:[t[s]],i=i.concat(r.map(function(l){return{order:l.attrs.order,type:s.split(":")[1],points:(Array.isArray(l["a:pt"])?l["a:pt"]:[l["a:pt"]]).map(function(u){return[xe(parseInt(X.get(u,["attrs","x"]))),xe(parseInt(X.get(u,["attrs","y"])))]})}}));break;case"a:close":r=Array.isArray(t[s])?t[s]:[t[s]],i=i.concat(r.map(function(l){return{order:l.attrs.order,type:s.split(":")[1]}}))}};for(var o in t)a(o);i.sort(function(s,l){return s.order-l.order}),this.prstGeom.pathList=i,X.get(t,["attrs","w"])&&(this.prstGeom.w=xe(parseInt(X.get(t,["attrs","w"])))),X.get(t,["attrs","h"])&&(this.prstGeom.h=xe(parseInt(X.get(t,["attrs","h"]))))}},e.prototype._parIsTextBox=function(){this.isTextBox=X.get(this.source,["p:nvSpPr","p:cNvSpPr","attrs","txBox"])==="1"},e.prototype._parsePrstGeom=function(){var t=this,i=X.get(this.source,["p:spPr","a:prstGeom"]),r=X.get(i,["a:avLst","a:gd"]);r&&(Array.isArray(r)||(r=[r]),this.prstGeom.gd=r.map(function(a){var o=["pie","chord","arc"].includes(t.shape)||["blockArc"].includes(t.shape)&&["adj1","adj2"].includes(a.attrs.name)?rg(parseInt(a.attrs.fmla.split(" ")[1])):go(parseInt(a.attrs.fmla.split(" ")[1]));return{name:a.attrs.name,fmla:o}}))},e.prototype._parseBackground=function(){if(!X.get(this.source,["p:spPr","a:noFill"]))if(X.get(this.source,["p:spPr","a:grpFill"])&&this.group)this.background=this.group.getBackground();else{var t=X.get(this.source,["p:spPr","a:solidFill"]);if(t)this.background=Ke(t,this.theme,this);else{var i=X.get(this.source,["p:spPr","a:gradFill"]);if(i)this.background=Ih(i,this.theme,this);else{var r=X.get(this.source,["p:spPr","a:blipFill"]);if(r)this.background=Mh(r,this.pptx,this.ctx);else{var a=X.get(this.source,["p:style","a:fillRef"]);a&&(this.background=Ke(a,this.theme,this))}}}}},e.prototype._parseBorder=function(){var t=X.get(this.source,["p:style","a:lnRef"]);if(t){var i=parseInt(t.attrs.idx),r=this.theme.getLineStyle(i);this.border=kt(kt({},r),this.border),this.border.color&&this.border.color.color||(this.border.color=Ke(t,this.theme,this))}var a=X.get(this.source,["p:spPr","a:ln"]);a&&Object.assign(this.border,ru(a,this.theme,this)),this.border.color&&this.border.color.color&&!this.border.width&&(this.border.width=e.defaultBorderWidth)},e.prototype._parseTxt=function(){this.textBody=new w$(X.get(this.source,["p:txBody"]),this)},e.defaultBorderWidth=.75,e}(Th),ag=function(n){function e(t,i,r,a,o){var s,l,u=n.call(this,i,a,o)||this;u.userDrawn=!0,u.pptx=r,u.path=t;var c=X.get(u.source,["p:blipFill","a:srcRect"]);c&&(u.clip={},c.attrs.b&&(u.clip.b=parseInt(c.attrs.b)/1e5),c.attrs.t&&(u.clip.t=parseInt(c.attrs.t)/1e5),c.attrs.l&&(u.clip.l=parseInt(c.attrs.l)/1e5),c.attrs.r&&(u.clip.r=parseInt(c.attrs.r)/1e5));var h=X.get(i,["p:nvPicPr","p:nvPr","a:audioFile","attrs","r:link"]);if(h){var f=(s=u.ctx.rels[h])===null||s===void 0?void 0:s.target;u.audioFile=u.pptx.getMedia(f)}var d=X.get(i,["p:nvPicPr","p:nvPr","a:videoFile","attrs","r:link"]);if(d){var g=(l=u.ctx.rels[d])===null||l===void 0?void 0:l.target;u.videoFile=u.pptx.getMedia(g)}return u}return wu(e,n),Object.defineProperty(e.prototype,"base64",{get:function(){return this.pptx.getMedia(this.path)},enumerable:!1,configurable:!0}),e}(Th),IR=function(n){function e(t,i,r,a){var o=n.call(this,t,r,a)||this;return o.userDrawn=!0,o.props={tableStyleId:""},o.tableGrid={gridCol:[]},o.tr=[],o.tableStyles={},o.pptx=i,o._parseTableProps(),o._parseTableGrid(),o._parseTr(),o._parseInheritStyles(),o}return wu(e,n),Object.defineProperty(e.prototype,"slideMaster",{get:function(){return this.ctx.slideMaster||this.ctx},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"theme",{get:function(){return this.slideMaster.theme},enumerable:!1,configurable:!0}),e.prototype._parseTableProps=function(){var t=X.get(this.source,["a:graphic","a:graphicData","a:tbl","a:tblPr"]);this.props.tableStyleId=X.get(t,"a:tableStyleId"),this.tableStyles=X.get(this.slideMaster.tableStyles,this.props.tableStyleId)||{},X.get(t,["attrs","bandCol"])==="1"&&(this.props.bandCol=!0),X.get(t,["attrs","bandRow"])==="1"&&(this.props.bandRow=!0),X.get(t,["attrs","firstCol"])==="1"&&(this.props.firstCol=!0),X.get(t,["attrs","firstRow"])==="1"&&(this.props.firstRow=!0),X.get(t,["attrs","lastCol"])==="1"&&(this.props.lastCol=!0),X.get(t,["attrs","lastRow"])==="1"&&(this.props.lastRow=!0)},e.prototype._parseTableGrid=function(){var t=X.get(this.source,["a:graphic","a:graphicData","a:tbl","a:tblGrid","a:gridCol"]);if(t)for(var i=0;i<t.length;i++){var r=X.get(t[i],["attrs","w"]);this.tableGrid.gridCol.push({width:xe(parseInt(r))})}},e.prototype._parseTr=function(){var t=[],i=X.get(this.source,["a:graphic","a:graphicData","a:tbl","a:tr"]);Array.isArray(i)||(i=[i]);for(var r=0;r<i.length;r++){var a={props:{},td:[]},o=i[r];a.props.height=xe(parseInt(X.get(o,["attrs","h"])));var s=X.get(o,["a:tc"]);Array.isArray(s)||(s=[s]);for(var l=0;l<s.length;l++)a.td.push(this._parseTd(s[l]));t.push(a)}this.tr=t},e.prototype._parseTd=function(t){var i,r,a,o,s=this,l={props:{border:{}},paragraphs:[]},u=X.get(t,["a:tcPr","attrs"]);u!=null&&u.marB&&(l.props.marB=xe(parseInt(u==null?void 0:u.marB))),u!=null&&u.marT&&(l.props.marT=xe(parseInt(u==null?void 0:u.marT))),u!=null&&u.marL&&(l.props.marL=xe(parseInt(u==null?void 0:u.marL))),u!=null&&u.marR&&(l.props.marR=xe(parseInt(u==null?void 0:u.marR))),u!=null&&u.anchor&&(l.props.anchor=u==null?void 0:u.anchor);var c=X.get(t,["a:tcPr"]);X.get(c,["a:lnR"])&&(l.props.border.right=ru(X.get(c,["a:lnR"]),this.theme,this.ctx)),X.get(c,["a:lnL"])&&(l.props.border.left=ru(X.get(c,["a:lnL"]),this.theme,this.ctx)),X.get(c,["a:lnT"])&&(l.props.border.top=ru(X.get(c,["a:lnT"]),this.theme,this.ctx)),X.get(c,["a:lnB"])&&(l.props.border.bottom=ru(X.get(c,["a:lnB"]),this.theme,this.ctx)),!((i=t==null?void 0:t.attrs)===null||i===void 0)&&i.rowSpan&&(l.props.rowSpan=parseInt(t.attrs.rowSpan)),!((r=t==null?void 0:t.attrs)===null||r===void 0)&&r.gridSpan&&(l.props.gridSpan=parseInt(t.attrs.gridSpan)),!((a=t==null?void 0:t.attrs)===null||a===void 0)&&a.vMerge&&(l.props.vMerge=t.attrs.vMerge==="1"),!((o=t==null?void 0:t.attrs)===null||o===void 0)&&o.hMerge&&(l.props.hMerge=t.attrs.hMerge==="1");var h=X.get(t,["a:tcPr","a:solidFill"]);h&&(l.props.background=Ke(h,this.theme,this.ctx));var f=X.get(t,["a:txBody"]),d=X.get(f,["a:p"]);return Array.isArray(d)||(d=[d]),l.paragraphs=d.map(function(g){return s._parseParagraph(g)}),l},e.prototype._parseParagraph=function(t){var i=this,r={props:{},inheritProps:{},inheritRProps:{},endParaRProps:{},rows:[]},a=X.get(t,["a:pPr"])||{};r.props=this._formatPPr(a);var o=X.get(t,["a:endParaRPr"]);r.endParaRProps=this._formatRPr(o);var s=X.get(t,["a:r"])||[];Array.isArray(s)||(s=[s]);var l=X.get(t,["a:br"])||[];return Array.isArray(l)||(l=[l]),(s=s.concat(l.map(function(u){return kt({isBr:!0},u)}))).sort(function(u,c){return X.get(u,["attrs","order"])-X.get(c,["attrs","order"])}),r.rows=s.map(function(u){return i._parseRow(u)}),r},e.prototype._parseRow=function(t){if(t.isBr)return{isBr:!0};var i={props:{},text:""},r=X.get(t,["a:rPr"])||{};return i.props=this._formatRPr(r),i.text=X.get(t,"a:t")||"",i},e.prototype._formatPPr=function(t){var i={},r=X.get(t,"attrs")||{};return Object.keys(r).forEach(function(a){a==="algn"&&(i.align=r[a])}),X.get(t,["a:lnSpc","a:spcPct","attrs","val"])&&(i.lineHeight=parseInt(t["a:lnSpc"]["a:spcPct"].attrs.val)/1e5),X.get(t,["a:buAutoNum","attrs","type"])&&(i.buAutoNum=t["a:buAutoNum"].attrs.type),X.get(t,["a:buChar","attrs","char"])&&(i.buChar=t["a:buChar"].attrs.char),X.get(t,["a:spcBef","a:spcPts","attrs","val"])&&(i.spaceBefore=ig(parseInt(t["a:spcBef"]["a:spcPts"].attrs.val))),X.get(t,["a:spcAft","a:spcPts","attrs","val"])&&(i.spaceAfter=ig(parseInt(t["a:spcAft"]["a:spcPts"].attrs.val))),i},e.prototype._formatRPr=function(t){var i={},r=X.get(t,"attrs")||{};Object.keys(r).forEach(function(s){switch(s){case"sz":i.size=parseInt(r[s])/100;break;case"b":i.bold=r[s]==="1";break;case"i":i.italic=r[s]==="1";break;case"u":i.underline=r[s];break;case"strike":i.strike=r[s];break;case"order":case"dirty":break;default:i[s]=r[s]}});var a=X.get(t,"a:solidFill");a&&(i.color=Ke(a,this.theme,this.ctx));var o=X.get(t,"a:highlight");return o&&(i.background=Ke(o,this.theme,this.ctx)),i.typeface=X.get(t,["a:ea","attrs","typeface"]),i},e.prototype._isLastCol=function(t,i){var r,a;if(i===t.length-1)return!0;for(var o=i+1;o<t.length;o++)if(!(!((r=t[o].props)===null||r===void 0)&&r.hMerge)&&!(!((a=t[o].props)===null||a===void 0)&&a.vMerge))return!1;return!0},e.prototype._isBandRow=function(t){var i;return!((i=this.props)===null||i===void 0)&&i.firstRow?t%2==1:t%2==0},e.prototype._isBandCol=function(t){var i;return!((i=this.props)===null||i===void 0)&&i.firstCol?t%2==1:t%2==0},e.prototype._parseInheritStyles=function(){var t,i,r,a,o,s,l,u,c=this,h=(i=(t=this.tableStyles)===null||t===void 0?void 0:t.wholeTbl)===null||i===void 0?void 0:i.tcStyle,f=(a=(r=this.tableStyles)===null||r===void 0?void 0:r.wholeTbl)===null||a===void 0?void 0:a.tcTxStyle,d=(s=(o=this.slideMaster.defaultTextStyle)===null||o===void 0?void 0:o.lvl1)===null||s===void 0?void 0:s.props,g=(u=(l=this.slideMaster.defaultTextStyle)===null||l===void 0?void 0:l.lvl1)===null||u===void 0?void 0:u.defRPr;this.tr.forEach(function(y,_){y.td.forEach(function(v,p){var x,b,S,M,I,A,C,L,R,D,N,k,O,F,G,q,j,J,H,K,ut,ot,at,Nt,Yt,wt,xt,zt,bt,Pt,ae,z,st,rt,Z,U,tt,ft,gt,it,It,Et,At,Xt,Ie,ue,cn,xi,Mn,bi,Ve,Zi,vr,Dn,Zr,Vs,be=kt(kt({},d),h),an=kt(kt({},g),f);c.props.firstRow&&_===0?(be=kt(kt(kt({},be),(b=(x=c.tableStyles)===null||x===void 0?void 0:x.firstRow)===null||b===void 0?void 0:b.tcStyle),{border:kt(kt({},be==null?void 0:be.border),(I=(M=(S=c.tableStyles)===null||S===void 0?void 0:S.firstRow)===null||M===void 0?void 0:M.tcStyle)===null||I===void 0?void 0:I.border)}),an=kt(kt({},an),(C=(A=c.tableStyles)===null||A===void 0?void 0:A.firstRow)===null||C===void 0?void 0:C.tcTxStyle)):c.props.lastRow&&_===c.tr.length-1?(be=kt(kt(kt({},be),(R=(L=c.tableStyles)===null||L===void 0?void 0:L.lastRow)===null||R===void 0?void 0:R.tcStyle),{border:kt(kt({},be==null?void 0:be.border),(k=(N=(D=c.tableStyles)===null||D===void 0?void 0:D.lastRow)===null||N===void 0?void 0:N.tcStyle)===null||k===void 0?void 0:k.border)}),an=kt(kt({},an),(F=(O=c.tableStyles)===null||O===void 0?void 0:O.lastRow)===null||F===void 0?void 0:F.tcTxStyle)):c.props.firstCol&&p===0?(be=kt(kt(kt({},be),(q=(G=c.tableStyles)===null||G===void 0?void 0:G.firstCol)===null||q===void 0?void 0:q.tcStyle),{border:kt(kt({},be==null?void 0:be.border),(H=(J=(j=c.tableStyles)===null||j===void 0?void 0:j.firstCol)===null||J===void 0?void 0:J.tcStyle)===null||H===void 0?void 0:H.border)}),an=kt(kt({},an),(ut=(K=c.tableStyles)===null||K===void 0?void 0:K.firstCol)===null||ut===void 0?void 0:ut.tcTxStyle)):c.props.lastCol&&c._isLastCol(y.td,p)?(be=kt(kt(kt({},be),(at=(ot=c.tableStyles)===null||ot===void 0?void 0:ot.lastCol)===null||at===void 0?void 0:at.tcStyle),{border:kt(kt({},be==null?void 0:be.border),(wt=(Yt=(Nt=c.tableStyles)===null||Nt===void 0?void 0:Nt.lastCol)===null||Yt===void 0?void 0:Yt.tcStyle)===null||wt===void 0?void 0:wt.border)}),an=kt(kt({},an),(zt=(xt=c.tableStyles)===null||xt===void 0?void 0:xt.lastCol)===null||zt===void 0?void 0:zt.tcTxStyle)):(c.props.bandRow&&(c._isBandRow(_)?(be=kt(kt(kt({},be),(Pt=(bt=c.tableStyles)===null||bt===void 0?void 0:bt.band1H)===null||Pt===void 0?void 0:Pt.tcStyle),{border:kt(kt({},be==null?void 0:be.border),(st=(z=(ae=c.tableStyles)===null||ae===void 0?void 0:ae.band1H)===null||z===void 0?void 0:z.tcStyle)===null||st===void 0?void 0:st.border)}),an=kt(kt({},an),(Z=(rt=c.tableStyles)===null||rt===void 0?void 0:rt.band1H)===null||Z===void 0?void 0:Z.tcTxStyle)):(be=kt(kt(kt({},be),(tt=(U=c.tableStyles)===null||U===void 0?void 0:U.band2V)===null||tt===void 0?void 0:tt.tcStyle),{border:kt(kt({},be==null?void 0:be.border),(it=(gt=(ft=c.tableStyles)===null||ft===void 0?void 0:ft.band2V)===null||gt===void 0?void 0:gt.tcStyle)===null||it===void 0?void 0:it.border)}),an=kt(kt({},an),(Et=(It=c.tableStyles)===null||It===void 0?void 0:It.band2V)===null||Et===void 0?void 0:Et.tcTxStyle))),c.props.bandCol&&(c._isBandCol(p)?(be=kt(kt(kt({},be),(Xt=(At=c.tableStyles)===null||At===void 0?void 0:At.band1V)===null||Xt===void 0?void 0:Xt.tcStyle),{border:kt(kt({},be==null?void 0:be.border),(cn=(ue=(Ie=c.tableStyles)===null||Ie===void 0?void 0:Ie.band1V)===null||ue===void 0?void 0:ue.tcStyle)===null||cn===void 0?void 0:cn.border)}),an=kt(kt({},an),(Mn=(xi=c.tableStyles)===null||xi===void 0?void 0:xi.band1V)===null||Mn===void 0?void 0:Mn.tcTxStyle)):(be=kt(kt(kt({},be),(Ve=(bi=c.tableStyles)===null||bi===void 0?void 0:bi.band2H)===null||Ve===void 0?void 0:Ve.tcStyle),{border:kt(kt({},be==null?void 0:be.border),(Dn=(vr=(Zi=c.tableStyles)===null||Zi===void 0?void 0:Zi.band2H)===null||vr===void 0?void 0:vr.tcStyle)===null||Dn===void 0?void 0:Dn.border)}),an=kt(kt({},an),(Vs=(Zr=c.tableStyles)===null||Zr===void 0?void 0:Zr.band2H)===null||Vs===void 0?void 0:Vs.tcTxStyle)))),v.inheritTcStyle=be,v.inheritTcTxStyle=an})})},e}(Th),Sx=function(){function n(e,t,i,r){if(this.offset={x:0,y:0},this.chOffset={x:0,y:0},this.extend={w:0,h:0},this.chExtend={w:0,h:0},this.rotate=0,this.nodes=[],this.flipV=!1,this.flipH=!1,this.userDrawn=!0,this.order=X.get(e,["attrs","order"]),this.pptx=t,this.ctx=i,this.source=e,this.group=r,this.source["p:grpSpPr"]){var a=X.get(this.source,["p:grpSpPr","a:xfrm"]);if(a&&(this.offset={x:Math.round(xe(parseInt(a["a:off"].attrs.x))),y:Math.round(xe(parseInt(a["a:off"].attrs.y)))},this.chOffset={x:Math.round(xe(parseInt(a["a:chOff"].attrs.x))),y:Math.round(xe(parseInt(a["a:chOff"].attrs.y)))},this.extend={w:Math.round(xe(parseInt(a["a:ext"].attrs.cx))),h:Math.round(xe(parseInt(a["a:ext"].attrs.cy)))},this.chExtend={w:Math.round(xe(parseInt(a["a:chExt"].attrs.cx))),h:Math.round(xe(parseInt(a["a:chExt"].attrs.cy)))},this.rotate=rg(parseInt(X.get(a,"attrs.rot",0))),this.flipV=X.get(a,"attrs.flipV")==="1",this.flipH=X.get(a,"attrs.flipH")==="1"),r){var o=r.extend,s=r.chExtend,l=r.chOffset,u=o.w/s.w,c=o.h/s.h;this.extend.w=this.extend.w*u,this.extend.h=this.extend.h*c,this.offset.x=(this.offset.x-l.x)*u,this.offset.y=(this.offset.y-l.y)*c}}this._parseBackground(),this._parseNodes()}return n.prototype.getBackground=function(){return this.background&&this.background.type!=="none"?this.background:this.group?this.group.getBackground():void 0},n.prototype._parseBackground=function(){var e=X.get(this.source,["p:grpSpPr"]);e&&e["a:solidFill"]?this.background=Ke(e["a:solidFill"],this.ctx.theme,this.ctx):e&&e["a:gradFill"]?this.background=Ih(e["a:gradFill"],this.ctx.theme,this.ctx):e&&e["a:blipFill"]&&(this.background=Mh(e["a:blipFill"],this.pptx,this.ctx))},n.prototype._parseNodes=function(){var e=this.source;Ch(this.nodes,e,this.pptx,this.ctx,this)},n}(),TR=function(n){function e(t,i,r,a){var o=n.call(this,t,r,a)||this;return o.nodes=[],o.pptx=i,o}return wu(e,n),e.prototype.parseNode=function(){return hn(this,void 0,void 0,function(){var t,i,r,a,o,s,l,u,c;return pn(this,function(h){switch(h.label){case 0:return h.trys.push([0,3,,4]),(t=X.get(this.source,["a:graphic","a:graphicData","dgm:relIds","attrs","r:dm"]))&&this.ctx.rels[t]?(i=this.ctx.rels[t].target,a=_i,[4,this.pptx.getXmlByPath(i)]):[2];case 1:return r=a.apply(void 0,[h.sent()]),(o=X.get(r,["dgm:dataModel","dgm:extLst","a:ext","dsp:dataModelExt","attrs","relId"]))&&this.ctx.rels[o]?(s=this.ctx.rels[o].target,[4,this.pptx.getXmlByPath(s)]):[2];case 2:return l=(l=h.sent()).replace(/dsp:/g,"p:"),u=_i(l),c=X.get(u,["p:drawing","p:spTree"]),Ch(this.nodes,c,this.pptx,this.ctx),[3,4];case 3:return h.sent(),[3,4];case 4:return[2]}})})},e}(Th),AR=function(n){function e(t,i,r,a){var o=n.call(this,t,r,a)||this;return o.options={title:{},tooltip:{},legend:{},series:[],color:[]},o.userDrawn=!0,o.pptx=i,o}return wu(e,n),Object.defineProperty(e.prototype,"slideMaster",{get:function(){return this.ctx.slideMaster||this.ctx},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"theme",{get:function(){return this.slideMaster.theme},enumerable:!1,configurable:!0}),e.prototype.parseNode=function(){return hn(this,void 0,void 0,function(){var t,i,r,a,o,s;return pn(this,function(l){switch(l.label){case 0:return l.trys.push([0,2,,3]),(t=X.get(this.source,["a:graphic","a:graphicData","c:chart","attrs","r:id"]))&&this.ctx.rels[t]?(i=this.ctx.rels[t].target,a=_i,[4,this.pptx.getXmlByPath(i)]):[2];case 1:return r=a.apply(void 0,[l.sent()]),o=X.get(r,["c:chartSpace","c:chart"]),s=X.get(o,["c:plotArea"]),X.get(s,["c:lineChart"])?this.parseLine(X.get(s,["c:lineChart"]),o):X.get(s,["c:line3DChart"])?this.parseLine(X.get(s,["c:line3DChart"]),o):X.get(s,["c:areaChart"])?this.parseAreaLine(X.get(s,["c:areaChart"]),o):X.get(s,["c:area3DChart"])?this.parseAreaLine(X.get(s,["c:area3DChart"]),o):X.get(s,["c:barChart"])?this.parseBar(X.get(s,["c:barChart"]),o):X.get(s,["c:bar3DChart"])?this.parseBar(X.get(s,["c:bar3DChart"]),o):X.get(s,["c:pieChart"])?this.parsePie(X.get(s,["c:pieChart"])):X.get(s,["c:pie3DChart"])?this.parsePie(X.get(s,["c:pie3DChart"])):X.get(s,["c:doughnutChart"])&&this.parseDoughnutChart(X.get(s,["c:doughnutChart"])),[3,3];case 2:return l.sent(),[3,3];case 3:return[2]}})})},e.prototype.parseAreaLine=function(t,i){this.parseLine(t,i),this.options.series=this.options.series.map(function(r){return r.areaStyle={},r})},e.prototype.parseLine=function(t,i){var r=X.get(t,["c:ser"]);Array.isArray(r)||(r=[r]),this.options.title={top:"top",left:"center",text:this.parseChartTitle(X.get(i,["c:title"]))},this.options.xAxis={type:"category",data:this.getCategory(r[0])},this.options.yAxis={type:"value"},this.options.series=this.parseLineSeries(r,t),this.options.color=this.parseLineColors(r),this.options.legend={bottom:"bottom",left:"center"},X.get(t,["c:grouping","attrs","val"])==="percentStacked"&&(this.options.tooltip.valueFormatter=function(a){return(100*a).toFixed(2)+"%"})},e.prototype.parseBar=function(t,i){var r=X.get(t,["c:ser"]);Array.isArray(r)||(r=[r]),this.options.title={top:"top",left:"center",text:this.parseChartTitle(X.get(i,["c:title"]))},X.get(t,["c:barDir","attrs","val"])==="bar"?(this.options.yAxis={type:"category",data:this.getCategory(r[0])},this.options.xAxis={type:"value"}):(this.options.xAxis={type:"category",data:this.getCategory(r[0])},this.options.yAxis={type:"value"}),this.options.series=this.parseBarSeries(r,t),this.options.color=this.parseBarColors(r),this.options.legend={bottom:"bottom",left:"center"},X.get(t,["c:grouping","attrs","val"])==="percentStacked"&&(this.options.tooltip.valueFormatter=function(a){return(100*a).toFixed(2)+"%"})},e.prototype.parsePie=function(t){var i=X.get(t,["c:ser"]);this.options.title={top:"top",left:"center",text:this.parsePieTitle(i)},this.options.color=this.parsePieColors(i),this.options.series=[this.parsePieSeries(i,t)],this.options.legend={bottom:"bottom",left:"center"}},e.prototype.parseDoughnutChart=function(t){var i=X.get(t,["c:ser"]);this.options.title.text=this.parsePieTitle(i),this.options.color=this.parsePieColors(i),this.options.series=[this.parsePieSeries(i,t)],this.options.legend={bottom:"bottom",left:"center"}},e.prototype.parsePieTitle=function(t){return X.get(t,["c:tx","c:strRef","c:strCache","c:pt","c:v"])},e.prototype.parseChartTitle=function(t){var i=X.get(t,["c:tx","c:rich","a:p"]);return Array.isArray(i)||(i=[i]),i.map(function(r){var a=X.get(r,["a:r"]);return Array.isArray(a)||(a=[a]),a.map(function(o){return X.get(o,["a:t"])||""}).join("")}).join("")||"图表标题"},e.prototype.parseBarColors=function(t){var i=this;return t.map(function(r){return ke(Ke(X.get(r,["c:spPr","a:solidFill"]),i.theme,i.ctx))})},e.prototype.parseLineColors=function(t){var i=this;return t.map(function(r){return ke(Ke(X.get(r,["c:spPr","a:ln","a:solidFill"])||X.get(r,["c:spPr","a:solidFill"]),i.theme,i.ctx))})},e.prototype.parsePieColors=function(t){var i=this,r=[],a=X.get(t,["c:dPt"]);return Array.isArray(a)||(a=[a]),a.forEach(function(o){r.push(ke(Ke(X.get(o,["c:spPr","a:solidFill"]),i.theme,i.ctx)))}),r},e.prototype.parsePieSeries=function(t,i){var r={type:"pie",radius:"80%",startAngle:90,data:[]};X.get(i,["c:holeSize","attrs","val"])&&(r.radius=["".concat(.8*X.get(i,["c:holeSize","attrs","val"]),"%"),"80%"]);var a=X.get(i,["c:firstSliceAng","attrs","val"]);a&&(r.startAngle=90-a);for(var o=this.getCategory(t),s=this.getVal(t),l=0;l<o.length;l++)r.data.push({name:o[l],value:s[l]});return r},e.prototype.parseBarSeries=function(t,i){var r,a=this,o=X.get(i,["c:grouping","attrs","val"]);o==="stacked"?r="Ad":o==="percentStacked"&&(r="total");var s=t.map(function(u){return{type:"bar",name:X.get(u,["c:tx","c:strRef","c:strCache","c:pt","c:v"]),data:a.getVal(u),stack:r}});if(o==="percentStacked"){var l=[];s.forEach(function(u,c){l=c===0?Su([],u.data):l.map(function(h,f){return h+u.data[f]})}),s.forEach(function(u){u.data=u.data.map(function(c,h){return l[h]<=0?0:c/l[h]})})}return s},e.prototype.parseLineSeries=function(t,i){var r,a=this,o=X.get(i,["c:grouping","attrs","val"]);o==="stacked"?r="Ad":o==="percentStacked"&&(r="total");var s=t.map(function(u){return{type:"line",name:X.get(u,["c:tx","c:strRef","c:strCache","c:pt","c:v"]),data:a.getVal(u),stack:r}});if(r==="total"){var l=[];s.forEach(function(u,c){l=c===0?Su([],u.data):l.map(function(h,f){return h+u.data[f]})}),s.forEach(function(u){u.data=u.data.map(function(c,h){return l[h]<=0?0:c/l[h]})})}return s},e.prototype.getCategory=function(t){if(X.get(t,["c:cat","c:strRef"])){var i=X.get(t,["c:cat","c:strRef","c:strCache","c:pt"]);return Array.isArray(i)||(i=[i]),i.map(function(r){return X.get(r,["c:v"])})}if(X.get(t,["c:cat","c:numRef"]))return i=X.get(t,["c:cat","c:numRef","c:numCache","c:pt"]),Array.isArray(i)||(i=[i]),i.map(function(r){return X.get(r,["c:v"])})},e.prototype.getVal=function(t){var i=X.get(t,["c:val","c:numRef","c:numCache","c:pt"]);return Array.isArray(i)||(i=[i]),i.map(function(r){return+X.get(r,["c:v"])})},e}(Th);function CR(n){var e={},t=X.get(n,"attrs")||{};return Object.keys(t).forEach(function(i){switch(i){case"algn":e.align=t[i];break;case"marL":e.marginLeft=xe(parseInt(t[i]));break;case"indent":e.indent=xe(parseInt(t[i]));break;case"lvl":e.level=t[i]}}),X.get(n,["a:lnSpc","a:spcPct","attrs","val"])&&(e.lineHeight=parseInt(n["a:lnSpc"]["a:spcPct"].attrs.val)/1e5),e}function kR(n,e,t){var i={},r=X.get(n,"attrs")||{};Object.keys(r).forEach(function(o){switch(o){case"sz":i.size=parseInt(r[o])/100;break;case"b":i.bold=r[o]==="1";break;case"i":i.italic=r[o]==="1";break;case"u":i.underline=r[o];break;case"strike":i.strike=r[o];break;case"order":case"dirty":break;default:i[o]=r[o]}});var a=X.get(n,"a:solidFill");return a&&(i.color=Ke(a,e,t)),i}function Ch(n,e,t,i,r){return hn(this,void 0,void 0,function(){var a,o,s,l,u,c,h,f,d,g,y,_,v,p,x,b,S,M,I,A,C;return pn(this,function(L){switch(L.label){case 0:for(s in o=[],a=e)o.push(s);l=0,L.label=1;case 1:if(!(l<o.length))return[3,17];if(!((s=o[l])in a))return[3,16];switch(u=s){case"p:sp":return[3,2];case"p:pic":return[3,3];case"p:cxnSp":return[3,4];case"p:graphicFrame":return[3,5];case"p:grpSp":return[3,14]}return[3,15];case 2:for(c=Array.isArray(e[u])?e[u]:[e[u]],A=0;A<c.length;A++)v=c[A],n.push(new Ah(v,t,i,r));return[3,16];case 3:for(h=Array.isArray(e[u])?e[u]:[e[u]],A=0;A<h.length;A++)f=h[A],d=f["p:blipFill"]["a:blip"].attrs["r:embed"],g=i.rels[d].target,y=new ag(g,f,t,i,r),n.push(y);return[3,16];case 4:for(_=Array.isArray(e[u])?e[u]:[e[u]],A=0;A<_.length;A++)v=_[A],n.push(new Ah(v,t,i,r));return[3,16];case 5:p=Array.isArray(e[u])?e[u]:[e[u]],A=0,L.label=6;case 6:if(!(A<p.length))return[3,13];switch(x=p[A],b=X.get(x,["a:graphic","a:graphicData","attrs","uri"]),b){case"http://schemas.openxmlformats.org/drawingml/2006/table":return[3,7];case"http://schemas.openxmlformats.org/drawingml/2006/diagram":return[3,8];case"http://schemas.openxmlformats.org/drawingml/2006/chart":return[3,10]}return[3,12];case 7:return n.push(new IR(x,t,i,r)),[3,12];case 8:return[4,(S=new TR(x,t,i,r)).parseNode()];case 9:return L.sent(),n.push(S),[3,12];case 10:return[4,(M=new AR(x,t,i,r)).parseNode()];case 11:return L.sent(),n.push(M),[3,12];case 12:return A++,[3,6];case 13:return[3,16];case 14:for(I=Array.isArray(e[u])?e[u]:[e[u]],A=0;A<I.length;A++)C=I[A],n.push(new Sx(C,t,i,r));return[3,16];case 15:return[3,16];case 16:return l++,[3,1];case 17:return[2]}})})}var S$=function(){function n(e,t,i){this.slideType="slide",this.rels={},this.background={type:"none"},this.nodes=[],this.name=e,this.source=t,this.pptx=i}return Object.defineProperty(n.prototype,"index",{get:function(){if(!this.name)return 0;var e=this.name.match(/(\d+)/);return e?parseInt(e[0]):1},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"slideMaster",{get:function(){return this.slideLayout&&this.slideLayout.slideMaster},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"theme",{get:function(){return this.slideMaster.theme},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"_relsPath",{get:function(){return this.name.replace("slides/slide","slides/_rels/slide")+".rels"},enumerable:!1,configurable:!0}),n.prototype.load=function(){return hn(this,void 0,void 0,function(){return pn(this,function(e){switch(e.label){case 0:return[4,this._loadRels()];case 1:return e.sent(),this._loadBackground(),[4,this._loadNodes()];case 2:return e.sent(),[2]}})})},n.prototype._loadRels=function(){return hn(this,void 0,void 0,function(){var e,t,i,r=this;return pn(this,function(a){switch(a.label){case 0:return t=_i,[4,this.pptx.getXmlByPath(this._relsPath)];case 1:return e=t.apply(void 0,[a.sent()]),i=X.get(e,["Relationships","Relationship"])||[],Array.isArray(i)||(i=[i]),i.forEach(function(o){switch(X.get(o,["attrs","Type"])){case"http://schemas.openxmlformats.org/officeDocument/2006/relationships/slideLayout":var s=o.attrs.Target.replace("../","ppt/");s.startsWith("/ppt")&&(s=s.substr(1)),r.slideLayout=r.pptx.getSlideLayout(s);break;case"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image":case"http://schemas.openxmlformats.org/officeDocument/2006/relationships/audio":case"http://schemas.microsoft.com/office/2007/relationships/media":case"http://schemas.openxmlformats.org/officeDocument/2006/relationships/video":case"http://schemas.openxmlformats.org/officeDocument/2006/relationships/diagramLayout":case"http://schemas.openxmlformats.org/officeDocument/2006/relationships/diagramData":case"http://schemas.microsoft.com/office/2007/relationships/diagramDrawing":case"http://schemas.openxmlformats.org/officeDocument/2006/relationships/diagramColors":case"http://schemas.openxmlformats.org/officeDocument/2006/relationships/chart":var l=o.attrs.Target.replace("../","ppt/");l.startsWith("/ppt")&&(l=l.substr(1)),r.rels[o.attrs.Id]={type:o.attrs.Type.split("/").pop(),target:l}}}),[2]}})})},n.prototype._loadBackground=function(){var e=X.get(this.source,["p:sld","p:cSld","p:bg","p:bgPr"]);e&&e["a:solidFill"]?this.background=Ke(e["a:solidFill"],this.theme,this):e&&e["a:gradFill"]?this.background=Ih(e["a:gradFill"],this.theme,this):e&&e["a:blipFill"]&&(this.background=Mh(e["a:blipFill"],this.pptx,this))},n.prototype._loadNodes=function(){return hn(this,void 0,void 0,function(){var e;return pn(this,function(t){switch(t.label){case 0:return e=X.get(this.source,["p:sld","p:cSld","p:spTree"]),[4,Ch(this.nodes,e,this.pptx,this)];case 1:return t.sent(),[2]}})})},n.prototype.getColorThemeName=function(e){return this.slideLayout.getColorThemeName(e)},n.prototype.getNodeInheritAttrsByType=function(e,t){var i=this.slideLayout.getNodeByType(e),r=X.get(i.source,t);return r||this.slideLayout.getNodeInheritAttrsByType(e,t)},n.prototype.getNodeInheritAttrsByIdx=function(e,t){var i=this.slideLayout.getNodeByIdx(e),r=X.get(i.source,t);return r||this.slideLayout.getNodeInheritAttrsByIdx(e,t)},n}(),M$=function(){function n(e,t,i){this.slideType="slideLayout",this.rels={},this.background={type:"none"},this.nodes=[],this.name=e,this.source=t,this.pptx=i}return Object.defineProperty(n.prototype,"_relsPath",{get:function(){return this.name.replace("slideLayouts/slideLayout","slideLayouts/_rels/slideLayout")+".rels"},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"theme",{get:function(){return this.slideMaster.theme},enumerable:!1,configurable:!0}),n.prototype.load=function(){return hn(this,void 0,void 0,function(){return pn(this,function(e){switch(e.label){case 0:return[4,this._loadRels()];case 1:return e.sent(),[4,this._loadBackground()];case 2:return e.sent(),[4,this._loadNodes()];case 3:return e.sent(),[2]}})})},n.prototype._loadRels=function(){return hn(this,void 0,void 0,function(){var e,t,i,r=this;return pn(this,function(a){switch(a.label){case 0:return t=_i,[4,this.pptx.getXmlByPath(this._relsPath)];case 1:return e=t.apply(void 0,[a.sent()]),i=X.get(e,["Relationships","Relationship"])||[],Array.isArray(i)||(i=[i]),i.forEach(function(o){switch(X.get(o,["attrs","Type"])){case"http://schemas.openxmlformats.org/officeDocument/2006/relationships/slideMaster":var s=o.attrs.Target.replace("../","ppt/");s.startsWith("/ppt")&&(s=s.substr(1)),r.slideMaster=r.pptx.getSlideMaster(s);break;case"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image":case"http://schemas.openxmlformats.org/officeDocument/2006/relationships/audio":case"http://schemas.microsoft.com/office/2007/relationships/media":case"http://schemas.openxmlformats.org/officeDocument/2006/relationships/video":var l=o.attrs.Target.replace("../","ppt/");l.startsWith("/ppt")&&(l=l.substr(1)),r.rels[o.attrs.Id]={type:o.attrs.Type.split("/").pop(),target:l}}}),[2]}})})},n.prototype._loadBackground=function(){return hn(this,void 0,void 0,function(){var e;return pn(this,function(t){return(e=X.get(this.source,["p:sldLayout","p:cSld","p:bg","p:bgPr"]))&&e["a:solidFill"]?this.background=Ke(e["a:solidFill"],this.theme):e&&e["a:gradFill"]?this.background=Ih(e["a:gradFill"],this.theme,this):e&&e["a:blipFill"]&&(this.background=Mh(e["a:blipFill"],this.pptx,this)),[2]})})},n.prototype._loadNodes=function(){return hn(this,void 0,void 0,function(){var e;return pn(this,function(t){return e=X.get(this.source,["p:sldLayout","p:cSld","p:spTree"]),Ch(this.nodes,e,this.pptx,this),[2]})})},n.prototype.getColorThemeName=function(e){return this.slideMaster.getColorThemeName(e)},n.prototype.getNodeByType=function(e){return this.nodes.find(function(t){return t.type===e})},n.prototype.getNodeByIdx=function(e){return this.nodes.find(function(t){return t.idx===e})},n.prototype.getNodeInheritAttrsByType=function(e,t){var i=this.slideMaster.getNodeByType(e);return i&&X.get(i.source,t)},n.prototype.getNodeInheritAttrsByIdx=function(e,t){var i=this.slideMaster.getNodeByIdx(e);return i&&X.get(i.source,t)},n}(),I$=function(){function n(e,t,i){this.slideType="slideMaster",this.rels={},this.background={type:"none"},this.textStyles={titleStyle:{},bodyStyle:{},otherStyle:{}},this.defaultTextStyle={},this.nodes=[],this.tableStyles={},this.name=e,this.source=t,this.pptx=i,this.load()}return Object.defineProperty(n.prototype,"_relsPath",{get:function(){return this.name.replace("slideMasters/slideMaster","slideMasters/_rels/slideMaster")+".rels"},enumerable:!1,configurable:!0}),n.prototype.load=function(){return hn(this,void 0,void 0,function(){return pn(this,function(e){switch(e.label){case 0:return[4,this._parseRels()];case 1:return e.sent(),this._parseColorMap(),this._parseBackground(),this._parseTextStyles(),this._parseTableStyles(),this._parseDefaultTextStyle(),this._loadNodes(),[2]}})})},n.prototype._parseRels=function(){return hn(this,void 0,void 0,function(){var e,t,i,r=this;return pn(this,function(a){switch(a.label){case 0:return t=_i,[4,this.pptx.getXmlByPath(this._relsPath)];case 1:return e=t.apply(void 0,[a.sent()]),i=X.get(e,["Relationships","Relationship"])||[],Array.isArray(i)||(i=[i]),i.forEach(function(o){switch(X.get(o,["attrs","Type"])){case"http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme":var s=o.attrs.Target.replace("../","ppt/");s.startsWith("/ppt")&&(s=s.substr(1)),r.theme=r.pptx.getTheme(s);break;case"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image":case"http://schemas.openxmlformats.org/officeDocument/2006/relationships/audio":case"http://schemas.microsoft.com/office/2007/relationships/media":case"http://schemas.openxmlformats.org/officeDocument/2006/relationships/video":var l=o.attrs.Target.replace("../","ppt/");l.startsWith("/ppt")&&(l=l.substr(1)),r.rels[o.attrs.Id]={type:o.attrs.Type.split("/").pop(),target:l}}}),[2]}})})},n.prototype._parseColorMap=function(){this.colorMap=X.omit(X.get(this.source,["p:sldMaster","p:clrMap","attrs"])||{},["order"])},n.prototype.getColorThemeName=function(e){return this.colorMap[e]||e},n.prototype._parseBackground=function(){var e=X.get(this.source,["p:sldMaster","p:cSld","p:bg","p:bgPr"]),t=X.get(this.source,["p:sldMaster","p:cSld","p:bg","p:bgRef"]);e&&e["a:solidFill"]?this.background=Ke(e["a:solidFill"],this.theme,this):e&&e["a:gradFill"]?this.background=Ih(e["a:gradFill"],this.theme,this):e&&e["a:blipFill"]?this.background=Mh(e["a:blipFill"],this.pptx,this):t&&(this.background=Ke(t,this.theme,this))},n.prototype._parseDefaultTextStyle=function(){var e=this,t=this.pptx.defaultTextStyleSource;Object.keys(t).forEach(function(i){if(i.startsWith("a:")&&i.endsWith("pPr")){var r=i.substr(2,i.length-5),a=X.get(t[i],["a:defRPr"]);e.defaultTextStyle[r]={props:CR(t[i]),defRPr:kR(a,e.theme,e)}}})},n.prototype._parseTextStyles=function(){var e=this,t=X.get(this.source,["p:sldMaster","p:txStyles"]);["titleStyle","bodyStyle","otherStyle"].forEach(function(i){var r=e.textStyles[i],a=X.get(t,"p:".concat(i))||{};Object.keys(a).forEach(function(o){if(o.startsWith("a:")&&o.endsWith("pPr")){var s=o.substr(2,o.length-5);r[s]={},r[s].props=CR(a[o]);var l=X.get(a[o],["a:defRPr"]);r[s].defRPr=kR(l,e.theme,e)}})})},n.prototype._parseTableStyles=function(){var e=this,t={},i=X.get(this.pptx.tableStyles,["a:tblStyleLst","a:tblStyle"])||[];Array.isArray(i)||(i=[i]),i.forEach(function(r){var a=X.get(r,["attrs","styleId"]);t[a]={},Object.keys(r).forEach(function(o){if(o.startsWith("a:")){var s=o.substr(2);t[a][s]={};var l=X.get(r[o],["a:tcStyle"]);if(l){var u={};X.get(l,["a:fill","a:solidFill"])&&(u.background=Ke(X.get(l,["a:fill","a:solidFill"]),e.theme,e));var c=X.get(l,"a:tcBdr");c&&(u.border={},Object.keys(c).forEach(function(d){if(d.startsWith("a:")){var g=d.substr(2),y=X.get(c[d],["a:ln"]);u.border[g]=ru(y,e.theme,e)}})),t[a][s].tcStyle=u}var h=X.get(r[o],["a:tcTxStyle"]);if(h){var f={};f.color=Ke(h,e.theme,e),X.get(h,["attrs","b"])==="on"&&(f.bold=!0),t[a][s].tcTxStyle=f}}})}),this.tableStyles=t},n.prototype._loadNodes=function(){return hn(this,void 0,void 0,function(){var e;return pn(this,function(t){return e=X.get(this.source,["p:sldMaster","p:cSld","p:spTree"]),Ch(this.nodes,e,this.pptx,this),[2]})})},n.prototype.getNodeByType=function(e){return this.nodes.find(function(t){return t.type===e})},n.prototype.getNodeByIdx=function(e){return this.nodes.find(function(t){return t.idx===e})},n.prototype.getNodeInheritAttrsByType=function(e,t){},n.prototype.getNodeInheritAttrsByIdx=function(e,t){},n}(),T$=function(){function n(e,t,i){this.clrScheme={},this.borderScheme=[],this.name=e,this.source=t,this.pptx=i,this._parseClrScheme(),this._parseLineStyleLst()}return n.prototype._parseClrScheme=function(){var e=X.get(this.source,["a:theme","a:themeElements","a:clrScheme"]);for(var t in e)if(t.startsWith("a:")){var i=t.substring(2),r=X.get(e[t],["a:sysClr","attrs","lastClr"])||X.get(e[t],["a:srgbClr","attrs","val"]);this.clrScheme[i]="#"+r}},n.prototype._parseLineStyleLst=function(){var e=this,t=X.get(this.source,["a:theme","a:themeElements","a:fmtScheme","a:lnStyleLst","a:ln"])||[];this.borderScheme=t.map(function(i){var r={color:{}};return X.get(i,["attrs","w"])&&(r.width=xe(parseInt(X.get(i,["attrs","w"])))),X.get(i,["attrs","algn"])&&(r.algn=X.get(i,["attrs","algn"])),X.get(i,["attrs","cap"])&&(r.cap=X.get(i,["attrs","cap"])),X.get(i,["attrs","cmpd"])&&(r.cmpd=X.get(i,["attrs","cmpd"])),X.get(i,["a:miter","attrs","lim"])&&(r.miterLim=xe(parseInt(X.get(i,["a:miter","attrs","lim"])))),X.get(i,["a:prstDash","attrs","val"])&&(r.type=X.get(i,["a:prstDash","attrs","val"])),X.get(i,["a:solidFill"])&&(r.color=Ke(X.get(i,["a:solidFill"]),e)),r})},n.prototype.getColor=function(e){if(e!=="phClr")return this.clrScheme[e]||this.defaultColor},n.prototype.getLineStyle=function(e){return this.borderScheme[e-1]},n}(),A$=function(){function n(){this.slides=[],this.slideLayouts=[],this.slideMaster=[],this.themes=[],this.medias={}}return n.prototype.load=function(e){return hn(this,void 0,void 0,function(){var t,i;return pn(this,function(r){switch(r.label){case 0:return t=new _z,i=this,[4,t.loadAsync(e)];case 1:return i._zipContents=r.sent(),[4,this._loadThumbnail()];case 2:return r.sent(),[4,this._loadMedia()];case 3:return r.sent(),[4,this._loadPresentation()];case 4:return r.sent(),[4,this._loadContentTypes()];case 5:return r.sent(),[2]}})})},n.prototype._loadThumbnail=function(){return hn(this,void 0,void 0,function(){var e;return pn(this,function(t){switch(t.label){case 0:return t.trys.push([0,3,,4]),this._zipContents.files["docProps/thumbnail.jpeg"]?[4,this._zipContents.files["docProps/thumbnail.jpeg"].async("base64")]:[3,2];case 1:e=t.sent(),this.thumbnail="data:image/jpeg;base64,"+e,t.label=2;case 2:return[3,4];case 3:return t.sent(),[3,4];case 4:return[2]}})})},n.prototype._loadPresentation=function(){return hn(this,void 0,void 0,function(){var e,t,i;return pn(this,function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,this._zipContents.files["ppt/presentation.xml"].async("text")];case 1:return e=r.sent(),t=_i(e),i=t["p:presentation"]["p:sldSz"].attrs,this.width=xe(parseInt(i.cx)),this.height=xe(parseInt(i.cy)),this.defaultTextStyleSource=X.get(t,["p:presentation","p:defaultTextStyle"]),[3,3];case 2:return r.sent(),[3,3];case 3:return[2]}})})},n.prototype._loadContentTypes=function(){return hn(this,void 0,void 0,function(){var e,t,i,r,a,o,s,l,u,c,h,f,d,g,y,_,v,p,x,b,S;return pn(this,function(M){switch(M.label){case 0:return M.trys.push([0,22,,23]),t=_i,[4,this._zipContents.files["[Content_Types].xml"].async("text")];case 1:if(e=t.apply(void 0,[M.sent()]),i=e.Types.Override,!(r=i.filter(function(I){return I.attrs.ContentType==="application/vnd.openxmlformats-officedocument.theme+xml"})))return[3,5];a=0,o=r,M.label=2;case 2:return a<o.length?(s=o[a],p=s.attrs.PartName.substr(1),l=_i,[4,this._zipContents.files[p].async("text")]):[3,5];case 3:x=l.apply(void 0,[M.sent()]),this.themes.push(new T$(p,x,this)),M.label=4;case 4:return a++,[3,2];case 5:return(u=i.find(function(I){return I.attrs.ContentType==="application/vnd.openxmlformats-officedocument.presentationml.tableStyles+xml"}))?(p=u.attrs.PartName.substr(1),c=_i,[4,this._zipContents.files[p].async("text")]):[3,7];case 6:x=c.apply(void 0,[M.sent()]),this.tableStyles=x,M.label=7;case 7:h=i.filter(function(I){return I.attrs.ContentType==="application/vnd.openxmlformats-officedocument.presentationml.slideMaster+xml"}),v=0,M.label=8;case 8:return v<h.length?(p=h[v].attrs.PartName.substr(1),f=_i,[4,this._zipContents.files[p].async("text")]):[3,11];case 9:x=f.apply(void 0,[M.sent()]),this.slideMaster.push(new I$(p,x,this)),M.label=10;case 10:return v++,[3,8];case 11:d=i.filter(function(I){return I.attrs.ContentType==="application/vnd.openxmlformats-officedocument.presentationml.slideLayout+xml"}),v=0,M.label=12;case 12:return v<d.length?(p=d[v].attrs.PartName.substr(1),g=_i,[4,this._zipContents.files[p].async("text")]):[3,16];case 13:return x=g.apply(void 0,[M.sent()]),[4,(y=new M$(p,x,this)).load()];case 14:M.sent(),this.slideLayouts.push(y),M.label=15;case 15:return v++,[3,12];case 16:_=i.filter(function(I){return I.attrs.ContentType==="application/vnd.openxmlformats-officedocument.presentationml.slide+xml"}),v=0,M.label=17;case 17:return v<_.length?(p=_[v].attrs.PartName.substr(1),b=_i,[4,this._zipContents.files[p].async("text")]):[3,21];case 18:return x=b.apply(void 0,[M.sent()]),[4,(S=new S$(p,x,this)).load()];case 19:M.sent(),this.slides.push(S),M.label=20;case 20:return v++,[3,17];case 21:return this.slides.sort(function(I,A){return I.index-A.index}),[3,23];case 22:return M.sent(),[3,23];case 23:return[2]}})})},n.prototype._loadMedia=function(){return hn(this,void 0,void 0,function(){var e,t,i,r,a,o,s,l,u,c,h,f,d,g=this;return pn(this,function(y){switch(y.label){case 0:e=Object.keys(this._zipContents.files).filter(function(v){return v.startsWith("ppt/media/image")}).map(function(v){return g._zipContents.files[v]}),t=0,i=e,y.label=1;case 1:return t<i.length?(r=i[t],a=function(v){var p;switch(v){case"jpg":case"jpeg":p="image/jpeg";break;case"png":p="image/png";break;case"gif":p="image/gif";break;case"emf":p="image/x-emf";break;case"wmf":p="image/x-wmf";break;default:p="image/*"}return p}((_=r.name).substr(2+(~-_.lastIndexOf(".")>>>0))),[4,r.async("base64")]):[3,4];case 2:o=y.sent(),this.medias[r.name]="data:".concat(a,";base64,").concat(o),y.label=3;case 3:return t++,[3,1];case 4:s=Object.keys(this._zipContents.files).filter(function(v){return v.startsWith("ppt/media/media")&&["mp3","wav","ogg","mp4","webm"].includes(v.split(".").pop().toLowerCase())}).map(function(v){return g._zipContents.files[v]}),l=0,u=s,y.label=5;case 5:return l<u.length?(c=u[l],h=c.name.split(".").pop().toLowerCase(),[4,c.async("arraybuffer")]):[3,8];case 6:f=y.sent(),d=new Blob([f],{type:"".concat(["mp3","wav"].includes(h)?"audio":"video","/").concat(h)}),this.medias[c.name]=URL.createObjectURL(d),y.label=7;case 7:return l++,[3,5];case 8:return[2]}var _})})},n.prototype.getXmlByPath=function(e){return hn(this,void 0,void 0,function(){return pn(this,function(t){switch(t.label){case 0:if(!this._zipContents.files[e])throw new Error("文件不存在");return[4,this._zipContents.files[e].async("text")];case 1:return[2,t.sent()]}})})},n.prototype.getSlideLayout=function(e){return this.slideLayouts.find(function(t){return t.name===e})},n.prototype.getSlideMaster=function(e){return this.slideMaster.find(function(t){return t.name===e})},n.prototype.getTheme=function(e){return this.themes.find(function(t){return t.name===e})},n.prototype.getMedia=function(e){return this.medias[e]},n}();function Mx(n){var e=n.extend,t=n.offset,i=n.clip,r=n.base64,a=n.audioFile,o=n.videoFile,s=document.createElement("div");s.style.setProperty("position","absolute"),s.style.setProperty("left",t.x+"px"),s.style.setProperty("top",t.y+"px");var l,u,c,h,f=document.createElement("div");f.style.setProperty("position","absolute"),f.style.setProperty("left","0"),f.style.setProperty("top","0"),f.style.setProperty("width",e.w+"px"),f.style.setProperty("height",e.h+"px"),f.style.setProperty("overflow","hidden"),i?(l=e.w/(1-(i.l===void 0?0:i.l)-(i.r===void 0?0:i.r)),u=e.h/(1-(i.t===void 0?0:i.t)-(i.b===void 0?0:i.b)),c=-1*l*(i.l===void 0?0:i.l),h=-1*u*(i.t===void 0?0:i.t)):(l=e.w,u=e.h,c=0);var d=document.createElement("img");if(d.src=r,d.width=l,d.height=u,d.style.setProperty("position","absolute"),d.style.setProperty("left",c+"px"),d.style.setProperty("top",h+"px"),f.append(d),s.append(f),a){var g=document.createElement("audio");g.style.position="absolute",g.style.left="0",g.style.top="0",g.src=a,g.controls=!0,g.style.transform="translate(-50%)",s.append(g)}if(o){var y=document.createElement("video");y.style.position="absolute",y.style.left="0",y.style.top="0",y.width=e.w,y.height=e.h,y.src=o,y.controls=!0,s.append(y)}return s}function C$(n,e,t){var i,r=n.props,a=n.text,o=kt(kt({},e),r),s=document.createElement("span");s.innerHTML=a;var l=18;o.size&&(!((i=t==null?void 0:t.normAutofit)===null||i===void 0)&&i.fontScale?(l=o.size*t.normAutofit.fontScale,s.style.fontSize=l+"px"):(l=o.size,s.style.fontSize=l+"px"));var u=ke(o.color);u&&(s.style.color=u);var c=/^[^\u4e00-\u9fff]+$/;if(o.typeface)switch(s.style.fontFamily=o.typeface,o.typeface){case"DengXian":c.test(a)&&(s.style.letterSpacing=-.04*l+"px");break;case"DengXian Light":c.test(a)&&(s.style.letterSpacing=-.05*l+"px");break;case"STLiti":case"SimSun":case"NSimSun":case"SimHei":c.test(a)&&(s.style.fontSize=.85*parseInt(s.style.fontSize)+"px");break;case"华文中宋":s.style.fontSize=.85*parseInt(s.style.fontSize)+"px";break;case"FangSong":s.style.letterSpacing=-.08*l+"px"}else c.test(a)&&(s.style.letterSpacing=-.04*l+"px");return o.bold&&(s.style.fontWeight="bold"),o.italic&&(s.style.fontStyle="italic"),o.underline&&o.underline!=="none"&&(s.style.textDecoration="underline"),o.background&&(s.style.backgroundColor=ke(o.background)),s.style.wordBreak="break-word",s}function k$(n,e,t){var i=document.createElement("span"),r=n.firstElementChild;switch(i.style.fontSize=r.style.fontSize,i.style.color=r.style.color,i.style.fontWeight=r.style.fontWeight,i.style.fontStyle=r.style.fontStyle,i.style.marginRight="10px",e.buAutoNum){case"arabicPeriod":default:i.textContent=t+".";break;case"circleNumDbPlain":i.textContent=["①","②","③","④","⑤","⑥","⑦","⑧","⑨","⑩","⑪","⑫","⑬","⑭","⑮","⑯","⑰","⑱","⑲","⑳"][t-1]||t+"";break;case"romanUcPeriod":i.textContent=function(a){var o=[{value:1e3,numeral:"M"},{value:900,numeral:"CM"},{value:500,numeral:"D"},{value:400,numeral:"CD"},{value:100,numeral:"C"},{value:90,numeral:"XC"},{value:50,numeral:"L"},{value:40,numeral:"XL"},{value:10,numeral:"X"},{value:9,numeral:"IX"},{value:5,numeral:"V"},{value:4,numeral:"IV"},{value:1,numeral:"I"}];if(typeof a!="number"||a<1||a>3999)throw new Error("Input must be a number between 1 and 3999.");for(var s="",l=0;l<o.length;l++)for(;a>=o[l].value;)s+=o[l].numeral,a-=o[l].value;return s}(t)+".";break;case"alphaUcPeriod":i.textContent=yx(t)+".";break;case"alphaLcPeriod":i.textContent=yx(t).toLowerCase()+".";break;case"alphaLcParenR":i.textContent=yx(t).toLowerCase()+")";break;case"ea1JpnChsDbPeriod":i.textContent=function(a){var o=["〇","一","二","三","四","五","六","七","八","九"];if(!Number.isInteger(a)||a<0)return"";for(var s="",l=a.toString(),u=0;u<l.length;u++)s+=o[parseInt(l[u],10)];return s}(t)+"."}n.prepend(i)}function og(n,e,t){var i,r,a,o;e===void 0&&(e=0),t===void 0&&(t={});var s=n.inheritProps,l=n.inheritRProps,u=n.props,c=n.rows,h=kt(kt({},s),u),f=function(){for(var M,I,A=0,C=0,L=c;C<L.length;C++){var R=L[C];R.props&&R.props.size&&(A=Math.max(A,R.props.size))}var D=((I=(M=t==null?void 0:t.bodyProps)===null||M===void 0?void 0:M.normAutofit)===null||I===void 0?void 0:I.fontScale)||1;return(A||l.size||18)*D},d=document.createElement("div"),g=t.isFirst?0:h.spaceBefore||0,y=t.isLast?0:h.spaceAfter||0;d.style.margin="".concat(Math.floor(.2*f()),"px 0 0 0"),d.style.padding="".concat(Math.floor(g),"px 0px ").concat(Math.floor(y),"px 0px");var _=document.createElement("p");_.style.margin="0",_.style.padding="0px",_.style.wordBreak="break-word",_.style.textAlign=h.align&&{ctr:"center",l:"left",r:"right",dist:"justify"}[h.align]||"center",h.align==="dist"&&(_.style.textAlignLast="justify");var v=h.hasOwnProperty("lineHeight")?h.lineHeight:1;if(!((r=(i=t.bodyProps)===null||i===void 0?void 0:i.normAutofit)===null||r===void 0)&&r.lnSpcReduction&&(v*=1-((o=(a=t.bodyProps)===null||a===void 0?void 0:a.normAutofit)===null||o===void 0?void 0:o.lnSpcReduction)),_.style.lineHeight=v+"",_.style.fontSize=f()+"px",c.length){for(var p=0,x=c;p<x.length;p++){var b=x[p];_.appendChild(C$(b,kt(kt({},l),{marginTop:Math.floor(.2*f())}),t.bodyProps))}h.buAutoNum?k$(_,h,e):h.buChar&&function(M,I){var A=document.createElement("span"),C=M.firstElementChild;A.style.color=C.style.color,A.style.fontSize=C.style.fontSize,A.textContent={n:"■",l:"●",u:"◆",p:"□",ü:"✔",Ø:"➢","•":"•"}[I.buChar]||"■",A.style.marginRight="10px",M.prepend(A)}(_,h),_.style.paddingLeft=(h.marginLeft||0)+(h.indent||0)+"px"}else{var S=document.createElement("span");S.innerHTML=" ",S.style.fontSize=l.size+"px",_.appendChild(S)}return d.appendChild(_),d}var LR="http://www.w3.org/2000/svg";function mt(n){return document.createElementNS(LR,n)}function ba(n){var e=n.extend;return .16667*Math.min(e.w,e.h)}function qt(n,e,t){t===void 0&&(t=0);var i=e.prstGeom,r=((i==null?void 0:i.gd)||[]).find(function(a){return a.name===n});return r?r.fmla:t}function vt(n,e,t){t===void 0&&(t=0);var i=e.extend,r=e.prstGeom,a=((r==null?void 0:r.gd)||[]).find(function(o){return o.name===n});return a?Math.min(i.w,i.h)*a.fmla:t}function DR(n,e,t){t===void 0&&(t=0);var i=e.extend,r=e.prstGeom,a=((r==null?void 0:r.gd)||[]).find(function(o){return o.name===n});return a?Math.max(i.w,i.h)*a.fmla:t}function Xr(n,e){var t=0;switch(n){case"sm":t=1*e;break;case"med":t=1.5*e;break;case"lg":t=2.5*e}return Math.max(t,2)}function PR(n,e,t,i){i===void 0&&(i=!1);var r=n.border,a=r===void 0?{}:r,o=n.uuid,s=a.headEnd,l=a.width,u=a.color,c=a.tailEnd,h=i?s:c,f=h.len,d=f===void 0?"med":f,g=h.w,y=g===void 0?"med":g,_=Xr(d,l),v=Xr(y,l),p=mt("defs"),x=mt("marker"),b="marker-".concat(o,"-").concat(i?"start":"end");x.setAttribute("id",b),x.setAttribute("viewBox","0 0 ".concat(2*_," ").concat(2*v)),x.setAttribute("refX",_+"px"),x.setAttribute("refY",v+"px"),x.setAttribute("markerWidth",2*_+"px"),x.setAttribute("markerHeight",2*v+"px"),x.setAttribute("orient","auto"),x.setAttribute("markerUnits","userSpaceOnUse");var S=mt("ellipse");S.setAttribute("cx",_+"px"),S.setAttribute("cy",v+"px"),S.setAttribute("rx",_+"px"),S.setAttribute("ry",v+"px"),S.setAttribute("fill",ke(u)||"transparent"),x.appendChild(S),p.appendChild(x),e.appendChild(p),t.setAttribute(i?"marker-start":"marker-end","url(#".concat(b,")"))}function RR(n,e,t,i){i===void 0&&(i=!1);var r=n.border,a=r===void 0?{}:r,o=n.uuid,s=a.headEnd,l=a.width,u=a.color,c=a.tailEnd,h=i?s:c,f=h.len,d=f===void 0?"med":f,g=h.w,y=g===void 0?"med":g,_=Xr(d,l),v=Xr(y,l),p=mt("defs"),x=mt("marker"),b="marker-".concat(o,"-").concat(i?"start":"end");x.setAttribute("id",b),x.setAttribute("viewBox","0 0 ".concat(2*_," ").concat(2*v)),x.setAttribute("refX",(i?.9*_:1.1*_)+"px"),x.setAttribute("refY",v+"px"),x.setAttribute("markerWidth",2*_+"px"),x.setAttribute("markerHeight",2*v+"px"),x.setAttribute("orient","auto"),x.setAttribute("markerUnits","userSpaceOnUse");var S=mt("path"),M=i?["M ".concat(2*_,",0"),"L 0,".concat(v),"L ".concat(2*_,",").concat(2*v),"Z"].join(" "):["M 0,0","L ".concat(2*_,",").concat(v),"L 0,".concat(2*v),"Z"].join(" ");S.setAttribute("d",M),S.setAttribute("fill",ke(u)||"transparent"),x.appendChild(S),p.appendChild(x),e.appendChild(p),t.setAttribute(i?"marker-start":"marker-end","url(#".concat(b,")"))}function NR(n,e,t,i){i===void 0&&(i=!1);var r=n.border,a=r===void 0?{}:r,o=n.uuid,s=a.headEnd,l=a.width,u=a.color,c=a.tailEnd,h=i?s:c,f=h.len,d=f===void 0?"med":f,g=h.w,y=g===void 0?"med":g,_=Xr(d,l),v=Xr(y,l),p=mt("defs"),x=mt("marker"),b="marker-".concat(o,"-").concat(i?"start":"end");x.setAttribute("id",b),x.setAttribute("viewBox","0 0 ".concat(2*_," ").concat(2*v)),x.setAttribute("refX",_+"px"),x.setAttribute("refY",v+"px"),x.setAttribute("markerWidth",2*_+"px"),x.setAttribute("markerHeight",2*v+"px"),x.setAttribute("orient","auto"),x.setAttribute("markerUnits","userSpaceOnUse");var S=mt("path"),M=["M 0,".concat(v),"L ".concat(_,",0"),"L ".concat(2*_,",").concat(v),"L ".concat(_,",").concat(2*v),"Z"].join(" ");S.setAttribute("d",M),S.setAttribute("fill",ke(u)||"transparent"),x.appendChild(S),p.appendChild(x),e.appendChild(p),t.setAttribute(i?"marker-start":"marker-end","url(#".concat(b,")"))}function zR(n,e,t,i){i===void 0&&(i=!1);var r=n.border,a=r===void 0?{}:r,o=n.uuid,s=a.headEnd,l=a.width,u=a.color,c=a.tailEnd,h=i?s:c,f=h.len,d=f===void 0?"med":f,g=h.w,y=g===void 0?"med":g,_=Xr(d,l),v=Xr(y,l),p=mt("defs"),x=mt("marker"),b="marker-".concat(o,"-").concat(i?"start":"end");x.setAttribute("id",b),x.setAttribute("viewBox","0 0 ".concat(2*_+2*l," ").concat(2*v+2*l));var S=i?y==="lg"?2*l:3*l:y==="lg"?2*_:2*_-l;x.setAttribute("refX",S+"px"),x.setAttribute("refY",v+l+"px"),x.setAttribute("markerWidth",2*_+"px"),x.setAttribute("markerHeight",2*v+"px"),x.setAttribute("orient","auto"),x.setAttribute("markerUnits","userSpaceOnUse");var M=mt("path"),I=i?["M ".concat(2*_+l,", ").concat(l),"L ".concat(l,",").concat(v+l),"L ".concat(2*_+l,",").concat(2*v+l)].join(" "):["M ".concat(l,", ").concat(l),"L ".concat(2*_+l,",").concat(v+l),"L ".concat(l,",").concat(2*v+l)].join(" ");M.setAttribute("d",I),M.setAttribute("stroke-width",l+"px"),M.setAttribute("stroke",ke(u)||"transparent"),M.setAttribute("fill","transparent"),M.setAttribute("stroke-linecap","round"),M.setAttribute("stroke-linejoin","miter"),M.style.overflow="visible",x.appendChild(M),p.appendChild(x),e.appendChild(p),t.setAttribute(i?"marker-start":"marker-end","url(#".concat(b,")"))}function ER(n,e,t,i){i===void 0&&(i=!1);var r=n.border,a=r===void 0?{}:r,o=n.uuid,s=a.headEnd,l=a.width,u=a.color,c=a.tailEnd,h=i?s:c,f=h.len,d=f===void 0?"med":f,g=h.w,y=g===void 0?"med":g,_=Xr(d,l),v=Xr(y,l),p=mt("defs"),x=mt("marker"),b="marker-".concat(o,"-").concat(i?"start":"end");x.setAttribute("id",b),x.setAttribute("viewBox","0 0 ".concat(2*_," ").concat(2*v));var S=i?y==="sm"?1.5*l:2*l:y==="sm"?2*_-1.5*l:2*_-2*l;x.setAttribute("refX",S+"px"),x.setAttribute("refY",v+"px"),x.setAttribute("markerWidth",2*_+"px"),x.setAttribute("markerHeight",2*v+"px"),x.setAttribute("orient","auto"),x.setAttribute("markerUnits","userSpaceOnUse");var M=mt("path"),I=i?["M 0, ".concat(v),"L ".concat(2*_,",0"),"L ".concat(_,",").concat(v),"L ".concat(2*_,",").concat(2*v),"Z"].join(" "):["M 0,0","L ".concat(2*_,",").concat(v),"L 0,".concat(2*v),"L ".concat(_,",").concat(v),"Z"].join(" ");M.setAttribute("d",I),M.setAttribute("fill",ke(u)||"transparent"),M.style.overflow="visible",x.appendChild(M),p.appendChild(x),e.appendChild(p),t.setAttribute(i?"marker-start":"marker-end","url(#".concat(b,")"))}function kh(n,e,t){var i=n.border,r=i===void 0?{}:i;n.extend;var a=r.headEnd,o=r.tailEnd;if(a&&a.type!=="none")switch(a.type){case"triangle":RR(n,e,t,!0);break;case"oval":PR(n,e,t,!0);break;case"diamond":NR(n,e,t,!0);break;case"arrow":zR(n,e,t,!0);break;case"stealth":ER(n,e,t,!0)}if(o&&o.type!=="none")switch(o.type){case"triangle":RR(n,e,t,!1);break;case"oval":PR(n,e,t,!1);break;case"diamond":NR(n,e,t,!1);break;case"arrow":zR(n,e,t,!1);break;case"stealth":ER(n,e,t,!1)}}function OR(n){var e=n.extend,t=mt("rect");return t.setAttribute("x","0"),t.setAttribute("y","0"),t.setAttribute("width",e.w+"px"),t.setAttribute("height",e.h+"px"),t}function Fn(n,e,t,i,r){var a=n*Math.PI/180;return[a===0||a===2*Math.PI?e+i:a===Math.PI?e-i:a===Math.PI/2||a===3*Math.PI/2?e:a>0&&a<Math.PI/2||a>3*Math.PI/2&&a<2*Math.PI?e+Math.sqrt(1/(1/Math.pow(i,2)+Math.pow(Math.tan(a),2)/Math.pow(r,2))):e-Math.sqrt(1/(1/Math.pow(i,2)+Math.pow(Math.tan(a),2)/Math.pow(r,2))),a===0||a===2*Math.PI||a===Math.PI?t:a===Math.PI/2?t+r:a===3*Math.PI/2?t-r:a>Math.PI&&a<2*Math.PI?t-Math.sqrt(1/(1/Math.pow(r,2)+Math.pow(1/Math.tan(a),2)/Math.pow(i,2))):t+Math.sqrt(1/(1/Math.pow(r,2)+Math.pow(1/Math.tan(a),2)/Math.pow(i,2)))]}function Lh(n,e){var t=0;return(e>n&&e-n>180||e<n&&n-e<180)&&(t=1),t}function Dh(n){var e=n.extend,t=.146*e.w,i=.146*e.h;return{top:i,bottom:i,left:t,right:t,w:e.w-2*t,h:e.h-2*i}}function Ix(n){var e=n.extend,t=n.offset,i=n.border,r=n.background,a=n.rotate,o=n.flipH,s=n.flipV,l=document.createElement("div"),u=t.x,c=t.y;l.className="shape-wrapper shape-".concat(n.shape),l.style.setProperty("position","absolute"),l.style.setProperty("width",(e.w||1)+"px"),l.style.setProperty("height",(e.h||1)+"px"),l.style.setProperty("left",u+"px"),l.style.setProperty("top",c+"px");var h,f=document.createElementNS(LR,"svg");f.style.setProperty("position","absolute"),f.setAttribute("width","100%"),f.setAttribute("height","100%"),f.style.setProperty("left","0"),f.style.setProperty("top","0"),f.style.overflow="visible";var d={left:0,top:0,bottom:0,w:e.w,h:e.h},g=!0;switch(n.shape){case"customGeom":h=function(v){var p=v.prstGeom,x=p===void 0?{}:p,b=v.extend,S=x.pathList,M=x.w,I=x.h,A=mt("path"),C={moveTo:"M",lnTo:"L",cubicBezTo:"C",close:"Z"},L=b.w/M,R=b.h/I,D=S.map(function(N){var k=C[N.type],O=Array.isArray(N.points)?N.points.map(function(F){return"".concat(F[0]*L,",").concat(F[1]*R)}).join(" "):"";return O?"".concat(k," ").concat(O):"".concat(k)}).join(" ");return A.setAttribute("d",D),A.style.fillRule="evenodd",A}(n),kh(n,f,h);break;case"flowChartProcess":case"rect":h=OR(n);break;case"snip1Rect":h=function(v){var p=v.extend,x=mt("polygon"),b=vt("adj",v,ba(v)),S=["0,0","".concat(p.w-b,",0"),"".concat(p.w,",").concat(b),"".concat(p.w,",").concat(p.h),"0,".concat(p.h)].join(" ");return x.setAttribute("points",S),x}(n);break;case"snip2SameRect":h=function(v){var p=v.extend,x=mt("polygon"),b=vt("adj1",v,ba(v)),S=vt("adj2",v,0),M=[[b,0],[p.w-b,0],[p.w,b],[p.w,p.h-S],[p.w-S,p.h],[S,p.h],[0,p.h-S],[0,b]].map(function(I){return"".concat(I[0],",").concat(I[1])}).join(" ");return x.setAttribute("points",M),x}(n);break;case"snip2DiagRect":h=function(v){var p=v.extend,x=mt("polygon"),b=vt("adj1",v,0),S=vt("adj2",v,ba(v)),M=[[b,0],[p.w-S,0],[p.w,S],[p.w,p.h-b],[p.w-b,p.h],[S,p.h],[0,p.h-S],[0,b]].map(function(I){return"".concat(I[0],",").concat(I[1])}).join(" ");return x.setAttribute("points",M),x}(n);break;case"snipRoundRect":h=function(v){var p=v.extend,x=mt("path"),b=vt("adj1",v,ba(v)),S=vt("adj2",v,ba(v)),M=["M ".concat(b,",0"),"L ".concat(p.w-S,",0"),"L ".concat(p.w,",").concat(S),"L ".concat(p.w,",").concat(p.h),"L 0,".concat(p.h),"L 0,".concat(b),"Q 0,0 ".concat(b,",0"),"Z"].join(" ");return x.setAttribute("d",M),x}(n);break;case"roundRect":h=function(v){var p=OR(v),x=vt("adj",v,ba(v));return p.setAttribute("rx",x+"px"),p.setAttribute("ry",x+"px"),p}(n);break;case"round1Rect":h=function(v){var p=v.extend,x=mt("path"),b=vt("adj",v,ba(v)),S=["M 0,0","L ".concat(p.w-b,",0"),"Q ".concat(p.w,",0 ").concat(p.w,",").concat(b),"L ".concat(p.w,",").concat(p.h),"L 0,".concat(p.h),"Z"].join(" ");return x.setAttribute("d",S),x}(n);break;case"round2SameRect":h=function(v){var p=v.extend,x=mt("path"),b=vt("adj1",v,ba(v)),S=vt("adj2",v,0),M=["M ".concat(b,",0"),"L ".concat(p.w-b,",0"),"Q ".concat(p.w,",0 ").concat(p.w,",").concat(b),"L ".concat(p.w,",").concat(p.h-S),"Q ".concat(p.w,",").concat(p.h," ").concat(p.w-S,",").concat(p.h),"L ".concat(S,",").concat(p.h),"Q 0,".concat(p.h," 0,").concat(p.h-S),"L 0,".concat(b),"Q 0,0 ".concat(b,",0"),"Z"].join(" ");return x.setAttribute("d",M),x}(n);break;case"round2DiagRect":h=function(v){var p=v.extend,x=mt("path"),b=vt("adj1",v,ba(v)),S=vt("adj2",v,0),M=["M ".concat(b,",0"),"L ".concat(p.w-S,",0"),"Q ".concat(p.w,",0 ").concat(p.w,",").concat(S),"L ".concat(p.w,",").concat(p.h-b),"Q ".concat(p.w,",").concat(p.h," ").concat(p.w-b,",").concat(p.h),"L ".concat(S,",").concat(p.h),"Q 0,".concat(p.h," 0,").concat(p.h-S),"L 0,".concat(b),"Q 0,0 ".concat(b,",0"),"Z"].join(" ");return x.setAttribute("d",M),x}(n);break;case"triangle":h=function(v){var p=v.extend,x=mt("polygon"),b=["".concat(p.w/2,",0"),"0,".concat(p.h),"".concat(p.w,",").concat(p.h)].join(" ");return x.setAttribute("points",b),x}(n);break;case"rtTriangle":h=function(v){var p=v.extend,x=mt("polygon"),b=["0,".concat(p.h),"0,0","".concat(p.w,",").concat(p.h)].join(" ");return x.setAttribute("points",b),x}(n);break;case"ellipse":h=function(v){var p=v.extend,x=mt("ellipse"),b=p.w/2,S=p.h/2,M=b,I=S;return x.setAttribute("cx",b+"px"),x.setAttribute("cy",S+"px"),x.setAttribute("rx",M+"px"),x.setAttribute("ry",I+"px"),x}(n);break;case"line":h=function(v){var p=v.extend,x=mt("path"),b=["M 0,0","L ".concat(p.w,",").concat(p.h)].join(" ");return x.setAttribute("d",b),x}(n),kh(n,f,h),g=!1;break;case"straightConnector1":h=function(v){var p=v.extend,x=mt("path"),b=["M 0,0","L ".concat(p.w,",").concat(p.h)].join(" ");return x.setAttribute("d",b),x}(n),kh(n,f,h),g=!1;break;case"bentConnector3":h=function(v){var p=v.extend,x=mt("path"),b=DR("adj1",v,.5*Math.max(p.w,p.h)),S=["M 0,0","L ".concat(b,",0"),"L ".concat(b,",").concat(p.h),"L ".concat(p.w,",").concat(p.h)].join(" ");return x.setAttribute("d",S),x}(n),kh(n,f,h),g=!1;break;case"curvedConnector3":h=function(v){var p=v.extend,x=mt("path"),b=DR("adj1",v,.5*Math.max(p.w,p.h)),S=["M0,0","Q".concat(b,",0 ").concat(b,",").concat(p.h/2),"T".concat(p.w,",").concat(p.h)].join(" ");return x.setAttribute("d",S),x}(n),kh(n,f,h),g=!1;break;case"parallelogram":h=function(v){var p=v.extend,x=mt("path"),b=vt("adj",v,.5*Math.min(p.w,p.h)),S=["M".concat(b,",0"),"L".concat(p.w,",0"),"L".concat(p.w-b,",").concat(p.h),"L0,".concat(p.h),"Z"].join(" ");return x.setAttribute("d",S),x}(n),d=function(v){var p=v.extend,x=vt("adj",v,.5*Math.min(p.w,p.h)),b=.84*(p.w-x),S=.08*p.h+x/p.w*p.h*.42;return{top:S,bottom:S,left:(p.w-b)/2,right:(p.w-b)/2,w:b,h:p.h-2*S}}(n);break;case"trapezoid":h=function(v){var p=v.extend,x=mt("path"),b=vt("adj",v,.25*Math.min(p.w,p.h)),S=["M".concat(b,",0"),"L".concat(p.w-b,",0"),"L".concat(p.w,",").concat(p.h),"L0,".concat(p.h),"Z"].join(" ");return x.setAttribute("d",S),x}(n),d=function(v){var p=v.extend,x=vt("adj",v,.5*Math.min(p.w,p.h)),b=x/p.w*.66*p.h,S=.66*x;return{top:b,bottom:0,left:S,right:S,w:p.w-2*S,h:p.h-b}}(n);break;case"diamond":h=function(v){var p=v.extend,x=mt("path"),b=["M".concat(p.w/2,",0"),"L".concat(p.w,",").concat(p.h/2),"L".concat(p.w/2,",").concat(p.h),"L0,".concat(p.h/2),"Z"].join(" ");return x.setAttribute("d",b),x}(n),d=function(v){var p=v.extend,x=.25*p.h,b=.25*p.w;return{top:x,bottom:x,left:b,right:b,w:.5*p.w,h:.5*p.h}}(n);break;case"pentagon":h=function(v){var p=v.extend,x=mt("path"),b=["M".concat(p.w/2,",0"),"L".concat(p.w,",").concat(.3771*p.h),"L".concat(.808*p.w,",").concat(p.h),"L".concat(.192*p.w,",").concat(p.h),"L0,".concat(.3771*p.h),"Z"].join(" ");return x.setAttribute("d",b),x}(n),d=function(v){var p=v.extend,x=.227*p.h,b=.192*p.w;return{top:x,bottom:0,left:b,right:b,w:.616*p.w,h:.773*p.h}}(n);break;case"hexagon":h=function(v){var p=v.extend,x=mt("path"),b=vt("adj",v,.25*Math.min(p.w,p.h)),S=["M".concat(b,",0"),"L".concat(p.w-b,",0"),"L".concat(p.w,",").concat(p.h/2),"L".concat(p.w-b,",").concat(p.h),"L".concat(b,",").concat(p.h),"L0,".concat(p.h/2),"Z"].join(" ");return x.setAttribute("d",S),x}(n),d=function(v){var p=v.extend,x=vt("adj",v,.25*Math.min(p.w,p.h)),b=.098*p.h+x/p.w*.38*p.h,S=.088*p.w+.422*x;return{top:b,bottom:b,left:S,right:S,w:p.w-2*S,h:p.h-2*b}}(n);break;case"heptagon":h=function(v){var p=v.extend,x=mt("path"),b=["M".concat(p.w/2,",0"),"L".concat(.9*p.w,",").concat(.2*p.h),"L".concat(p.w,",").concat(.642*p.h),"L".concat(.722*p.w,",").concat(p.h),"L".concat(.278*p.w,",").concat(p.h),"L0,".concat(.642*p.h),"L".concat(.1*p.w,",").concat(.2*p.h),"Z"].join(" ");return x.setAttribute("d",b),x}(n),d=function(v){var p=v.extend;return{top:.2*p.h,bottom:.2*p.h,left:.1*p.w,right:.1*p.w,w:.8*p.w,h:.6*p.h}}(n);break;case"octagon":h=function(v){var p=v.extend,x=mt("path"),b=vt("adj",v,.29*Math.min(p.w,p.h)),S=["M".concat(b,",0"),"L".concat(p.w-b,",0"),"L".concat(p.w,",").concat(b),"L".concat(p.w,",").concat(p.h-b),"L".concat(p.w-b,",").concat(p.h),"L".concat(b,",").concat(p.h),"L0,".concat(p.h-b),"L0,".concat(b),"Z"].join(" ");return x.setAttribute("d",S),x}(n),d=function(v){var p=v.extend,x=vt("adj",v,.29*Math.min(p.w,p.h));return{top:.5*x,bottom:.5*x,left:.5*x,right:.5*x,w:p.w-x,h:p.h-x}}(n);break;case"decagon":h=function(v){var p=v.extend,x=mt("path"),b=.344,S=.117,M=.19,I=["M".concat(p.w*b,",0"),"L".concat(.656*p.w,",0"),"L".concat(.883*p.w,",").concat(p.h*M),"L".concat(p.w,",").concat(.5*p.h),"L".concat(.883*p.w,",").concat(.81*p.h),"L".concat(.656*p.w,",").concat(p.h),"L".concat(p.w*b,",").concat(p.h),"L".concat(p.w*S,",").concat(.81*p.h),"L0,".concat(.5*p.h),"L".concat(p.w*S,",").concat(p.h*M),"Z"].join(" ");return x.setAttribute("d",I),x}(n),d=function(v){var p=v.extend,x=.117,b=.19;return{top:p.h*b,bottom:p.h*b,left:p.w*x,right:p.w*x,w:.766*p.w,h:.62*p.h}}(n);break;case"dodecagon":h=function(v){var p=v.extend,x=mt("path"),b=.364,S=.133,M=.135,I=["M".concat(p.w*b,",0"),"L".concat(.636*p.w,",0"),"L".concat(.867*p.w,",").concat(p.h*M),"L".concat(p.w,",").concat(p.h*b),"L".concat(p.w,",").concat(.636*p.h),"L".concat(.867*p.w,",").concat(.865*p.h),"L".concat(.636*p.w,",").concat(p.h),"L".concat(p.w*b,",").concat(p.h),"L".concat(p.w*S,",").concat(.865*p.h),"L0,".concat(.636*p.h),"L0,".concat(p.h*b),"L".concat(p.w*S,",").concat(p.h*M),"Z"].join(" ");return x.setAttribute("d",I),x}(n),d=function(v){var p=v.extend,x=.133,b=.135;return{top:p.h*b,bottom:p.h*b,left:p.w*x,right:p.w*x,w:.734*p.w,h:.73*p.h}}(n);break;case"pie":h=function(v){var p=v.extend,x=mt("path"),b=qt("adj1",v,360),S=qt("adj2",v,270),M=p.w/2,I=p.h/2,A=p.w/2,C=p.h/2,L=Fn(b,A,C,M,I),R=L[0],D=L[1],N=Fn(S,A,C,M,I),k=N[0],O=N[1],F=Lh(b,S),G="M".concat(A,",").concat(C,", L").concat(R," ").concat(D," A ").concat(M," ").concat(I," 0 ").concat(F," ").concat(1," ").concat(k," ").concat(O," Z");return x.setAttribute("d",G),x}(n),d=Dh(n);break;case"arc":h=function(v){var p=v.extend,x=mt("path"),b=qt("adj1",v,270),S=qt("adj2",v,0),M=p.w/2,I=p.h/2,A=p.w/2,C=p.h/2,L=Fn(b,A,C,M,I),R=L[0],D=L[1],N=Fn(S,A,C,M,I),k=N[0],O=N[1],F=Lh(b,S),G="M".concat(R,",").concat(D," A ").concat(M," ").concat(I," 0 ").concat(F," ").concat(1," ").concat(k," ").concat(O);return x.setAttribute("d",G),x}(n),g=!1;break;case"bracketPair":h=function(v){var p=v.extend,x=mt("path"),b=vt("adj",v,.16667*Math.min(p.w,p.h)),S=["M".concat(b,",").concat(p.h),"Q".concat(0,",").concat(p.h," ").concat(0,",").concat(p.h-b),"L".concat(0,",").concat(b),"Q".concat(0,",").concat(0," ").concat(b,",").concat(0),"M".concat(p.w-b,",").concat(0),"Q".concat(p.w,",").concat(0," ").concat(p.w,",").concat(b),"L".concat(p.w,",").concat(p.h-b),"Q".concat(p.w,",").concat(p.h," ").concat(p.w-b,",").concat(p.h)].join(" ");return x.setAttribute("d",S),x}(n),d=function(v){var p=v.extend,x=.285*vt("adj",v,.16667*Math.min(p.w,p.h));return{top:x,bottom:x,left:x,right:x,w:p.w-2*x,h:p.h-2*x}}(n),g=!1;break;case"bracePair":h=function(v){var p=v.extend,x=mt("path"),b=vt("adj",v,.083335*Math.min(p.w,p.h)),S=["M".concat(2*b,",").concat(p.h),"Q".concat(b,",").concat(p.h," ").concat(b,",").concat(p.h-b),"L".concat(b,",").concat(p.h/2+b),"Q".concat(b,",").concat(p.h/2," ").concat(0,",").concat(p.h/2),"Q".concat(b,",").concat(p.h/2," ").concat(b,",").concat(p.h/2-b),"L".concat(b,",").concat(b),"Q".concat(b,",").concat(0," ").concat(2*b,",").concat(0),"M".concat(p.w-2*b,",").concat(0),"Q".concat(p.w-b,",").concat(0," ").concat(p.w-b,",").concat(b),"L".concat(p.w-b,",").concat(p.h/2-b),"Q".concat(p.w-b,",").concat(p.h/2," ").concat(p.w,",").concat(p.h/2),"Q".concat(p.w-b,",").concat(p.h/2," ").concat(p.w-b,",").concat(p.h/2+b),"L".concat(p.w-b,",").concat(p.h-b),"Q".concat(p.w-b,",").concat(p.h," ").concat(p.w-2*b,",").concat(p.h)].join(" ");return x.setAttribute("d",S),x}(n),d=function(v){var p=v.extend,x=.285*vt("adj",v,.16667*Math.min(p.w,p.h));return{top:x,bottom:x,left:x,right:x,w:p.w-2*x,h:p.h-2*x}}(n),g=!1;break;case"chord":h=function(v){var p=v.extend,x=mt("path"),b=qt("adj1",v,45),S=qt("adj2",v,270),M=p.w/2,I=p.h/2,A=p.w/2,C=p.h/2,L=Fn(b,A,C,M,I),R=L[0],D=L[1],N=Fn(S,A,C,M,I),k=N[0],O=N[1],F=Lh(b,S),G="M".concat(R," ").concat(D," A ").concat(M," ").concat(I," 0 ").concat(F," ").concat(1," ").concat(k," ").concat(O," Z");return x.setAttribute("d",G),x}(n),d=Dh(n);break;case"teardrop":h=function(v){var p=v.extend,x=mt("path"),b=qt("adj",v,1),S=p.w/2,M=p.h/2,I=p.w/2,A=p.h/2,C=Fn(0,I,A,S,M),L=C[0],R=C[1],D=Fn(270,I,A,S,M),N=D[0],k=D[1],O=Lh(0,270),F="M".concat(L," ").concat(R," A ").concat(S," ").concat(M," 0 ").concat(O," ").concat(1," ").concat(N," ").concat(k),G=S*b,q=I+G,j=A-M*G/(p.w/2),J=(p.w/2+q)/2,H=(p.h/2+j)/2;return F+=" Q".concat(J,",0 ").concat(q,",").concat(j),F+=" Q".concat(p.w,",").concat(H," ").concat(I+S,",").concat(A),x.setAttribute("d",F),x}(n),d=Dh(n);break;case"frame":h=function(v){var p=v.extend,x=mt("path"),b=vt("adj1",v,.12*Math.min(p.w,p.h)),S=["M0,0","L".concat(p.w,",0"),"L".concat(p.w,",").concat(p.h),"L0,".concat(p.h),"Z","M".concat(b,",").concat(b),"L".concat(b,",").concat(p.h-b),"L".concat(p.w-b,",").concat(p.h-b),"L".concat(p.w-b,",").concat(b),"Z"].join(" ");return x.setAttribute("d",S),x}(n),d=function(v){var p=v.extend,x=vt("adj1",v,.12*Math.min(p.w,p.h));return{top:x,bottom:x,left:x,right:x,w:p.w-2*x,h:p.h-2*x}}(n);break;case"halfFrame":h=function(v){var p=v.extend,x=mt("path"),b=vt("adj1",v,.333*Math.min(p.w,p.h)),S=Math.min(vt("adj2",v,.333*Math.min(p.w,p.h)),p.w*(1-b/p.h)),M=["M0,0","L".concat(p.w,",0"),"L".concat(p.w*(1-b/p.h),",").concat(b),"L".concat(S,",").concat(b),"L".concat(S,",").concat(p.h*(1-S/p.w)),"L0,".concat(p.h),"Z"].join(" ");return x.setAttribute("d",M),x}(n);break;case"corner":h=function(v){var p=v.extend,x=mt("path"),b=vt("adj1",v,.5*Math.min(p.w,p.h)),S=vt("adj2",v,.5*Math.min(p.w,p.h)),M=["M0,0","L".concat(S,",0"),"L".concat(S,",").concat(p.h-b),"L".concat(p.w,",").concat(p.h-b),"L".concat(p.w,",").concat(p.h),"L0,".concat(p.h),"Z"].join(" ");return x.setAttribute("d",M),x}(n),d=function(v){var p=v.extend,x=vt("adj1",v,.5*Math.min(p.w,p.h));return{top:p.h-x,bottom:0,left:0,right:0,w:p.w,h:x}}(n);break;case"diagStripe":h=function(v){var p=v.extend,x=mt("path"),b=vt("adj",v,.5*Math.min(p.w,p.h)),S=p.w*b/p.h,M=["M".concat(S,",0"),"L".concat(p.w,",0"),"L0,".concat(p.h),"L0,".concat(b),"Z"].join(" ");return x.setAttribute("d",M),x}(n),d=function(v){var p=v.extend,x=qt("adj",v,.5),b=.5*(1-x)*p.h,S=.5*(1-x)*p.w;return{top:0,bottom:b,left:0,right:S,w:p.w-S,h:p.h-b}}(n);break;case"plus":h=function(v){var p=v.extend,x=mt("path"),b=vt("adj",v,.25*Math.min(p.w,p.h)),S=["M".concat(b,",0"),"L".concat(p.w-b,",0"),"L".concat(p.w-b,",").concat(b),"L".concat(p.w,",").concat(b),"L".concat(p.w,",").concat(p.h-b),"L".concat(p.w-b,",").concat(p.h-b),"L".concat(p.w-b,",").concat(p.h),"L".concat(b,",").concat(p.h),"L".concat(b,",").concat(p.h-b),"L0,".concat(p.h-b),"L0,".concat(b),"L".concat(b,",").concat(b),"Z"].join(" ");return x.setAttribute("d",S),x}(n),d=function(v){var p=v.extend,x=vt("adj",v,.25*Math.min(p.w,p.h));return{top:x,bottom:x,left:0,right:0,w:p.w,h:p.h-2*x}}(n);break;case"plaque":h=function(v){var p=v.extend,x=mt("path"),b=vt("adj",v,.16667*Math.min(p.w,p.h)),S=["M".concat(b,",0"),"L".concat(p.w-b,",0"),"Q".concat(p.w-b,",").concat(b," ").concat(p.w,",").concat(b),"L".concat(p.w,",").concat(p.h-b),"Q".concat(p.w-b,",").concat(p.h-b," ").concat(p.w-b,",").concat(p.h),"L".concat(b,",").concat(p.h),"Q".concat(b,",").concat(p.h-b," 0,").concat(p.h-b),"L0,".concat(b),"Q".concat(b,",").concat(b," ").concat(b,",0"),"Z"].join(" ");return x.setAttribute("d",S),x}(n),d=function(v){var p=v.extend,x=vt("adj",v,.16667*Math.min(p.w,p.h));return{top:.72*x,bottom:.72*x,left:.72*x,right:.72*x,w:p.w-1.44*x,h:p.w-1.44*x}}(n);break;case"can":h=function(v){var p=v.extend,x=v.background,b=mt("g"),S=mt("path"),M=vt("adj",v,.25*Math.min(p.w,p.h)),I=["M0,".concat(M/2),"L0,".concat(p.h-M/2),"A".concat(p.w/2,",").concat(M/2," 0 0 0 ").concat(p.w,",").concat(p.h-M/2),"L".concat(p.w,",").concat(M/2),"A".concat(p.w/2,",").concat(M/2," 0 0 1 0,").concat(M/2),"Z"].join(" ");S.setAttribute("d",I);var A=mt("ellipse"),C=p.w/2,L=M/2,R=p.w/2,D=M/2;return A.setAttribute("cx",C+"px"),A.setAttribute("cy",L+"px"),A.setAttribute("rx",R+"px"),A.setAttribute("ry",D+"px"),(x==null?void 0:x.type)==="solidFill"&&A.setAttribute("fill",ke(x,{light:.5})||"transparent"),b.appendChild(S),b.appendChild(A),b}(n),d=function(v){var p=v.extend,x=vt("adj",v,.25*Math.min(p.w,p.h));return{top:x,bottom:0,left:0,right:0,w:p.w,h:p.h-x}}(n);break;case"cube":h=function(v){var p=v.extend,x=v.background,b=vt("adj",v,.25*Math.min(p.w,p.h)),S=mt("g"),M=mt("path"),I=["M0,".concat(b),"L".concat(p.w-b,",").concat(b),"L".concat(p.w-b,",").concat(p.h),"L0,".concat(p.h),"Z"].join(" ");M.setAttribute("d",I);var A=mt("path"),C=["M0,".concat(b),"L".concat(b,",0"),"L".concat(p.w,",0"),"L".concat(p.w-b,",").concat(b),"Z"].join(" ");A.setAttribute("d",C),(x==null?void 0:x.type)==="solidFill"&&A.setAttribute("fill",ke(x,{light:.8})||"transparent");var L=mt("path"),R=["M".concat(p.w,",0"),"L".concat(p.w-b,",").concat(b),"L".concat(p.w-b,",").concat(p.h),"L".concat(p.w,",").concat(p.h-b),"Z"].join(" ");return L.setAttribute("d",R),(x==null?void 0:x.type)==="solidFill"&&L.setAttribute("fill",ke(x,{dark:.6})||"transparent"),S.appendChild(M),S.appendChild(A),S.appendChild(L),S}(n),d=function(v){var p=v.extend,x=vt("adj",v,.25*Math.min(p.w,p.h));return{top:x,bottom:0,left:0,right:x,w:p.w-x,h:p.h-x}}(n);break;case"bevel":h=function(v){var p=v.extend,x=v.background,b=vt("adj",v,.125*Math.min(p.w,p.h)),S=mt("g"),M=mt("path"),I=["M".concat(b,",").concat(b),"L".concat(p.w-b,",").concat(b),"L".concat(p.w-b,",").concat(p.h-b),"L".concat(b,",").concat(p.h-b),"Z"].join(" ");M.setAttribute("d",I);var A=mt("path"),C=["M0,0","L".concat(b,",").concat(b),"L".concat(p.w-b,",").concat(b),"L".concat(p.w,",0"),"Z"].join(" ");A.setAttribute("d",C),(x==null?void 0:x.type)==="solidFill"&&A.setAttribute("fill",ke(x,{light:.8})||"transparent");var L=mt("path"),R=["M".concat(p.w,",0"),"L".concat(p.w-b,",").concat(b),"L".concat(p.w-b,",").concat(p.h-b),"L".concat(p.w,",").concat(p.h),"Z"].join(" ");L.setAttribute("d",R),(x==null?void 0:x.type)==="solidFill"&&L.setAttribute("fill",ke(x,{dark:.6})||"transparent");var D=mt("path"),N=["M".concat(p.w,",").concat(p.h),"L".concat(p.w-b,",").concat(p.h-b),"L".concat(b,",").concat(p.h-b),"L0,".concat(p.h),"Z"].join(" ");D.setAttribute("d",N),(x==null?void 0:x.type)==="solidFill"&&D.setAttribute("fill",ke(x,{dark:.625})||"transparent");var k=mt("path"),O=["M0,".concat(p.h),"L".concat(b,",").concat(p.h-b),"L".concat(b,",").concat(b),"L0,0","Z"].join(" ");return k.setAttribute("d",O),(x==null?void 0:x.type)==="solidFill"&&k.setAttribute("fill",ke(x,{light:.6})||"transparent"),S.appendChild(M),S.appendChild(A),S.appendChild(L),S.appendChild(D),S.appendChild(k),S}(n),d=function(v){var p=v.extend,x=vt("adj",v,.125*Math.min(p.w,p.h));return{top:x,bottom:x,left:x,right:x,w:p.w-2*x,h:p.h-2*x}}(n);break;case"donut":h=function(v){var p=v.extend,x=vt("adj",v,.25*Math.min(p.w,p.h)),b=mt("path"),S=["M0,".concat(p.h/2),"A".concat(p.w/2,",").concat(p.h/2," 0 1,1 0,").concat(p.h/2+1),"Z","M".concat(p.w-x,",").concat(p.h/2),"A".concat(p.w/2-x,",").concat(p.h/2-x," 0 1,0 ").concat(p.w-x,",").concat(p.h/2+1),"Z"].join(" ");return b.setAttribute("d",S),b}(n),d=Dh(n);break;case"noSmoking":h=function(v){var p=v.extend,x=vt("adj",v,.25*Math.min(p.w,p.h)),b=mt("path"),S=Math.atan(p.h/p.w),M=x/2/Math.sin(S),I=p.w/2,A=p.h/2,C=-1*p.h/p.w,L=p.h*M/p.w,R=p.w/2-x,D=p.h/2-x,N=-2*R*R*C*L,k=Math.sqrt(Math.pow(2*R*R*C*L,2)-4*(D*D+R*R*C*C)*R*R*(L*L-D*D)),O=2*(D*D+R*R*C*C),F=(N-k)/O,G=C*F+L,q=(N+k)/O,j=C*q+L,J=-p.h*M/p.w,H=-2*R*R*C*J,K=Math.sqrt(Math.pow(2*R*R*C*J,2)-4*(D*D+R*R*C*C)*R*R*(J*J-D*D)),ut=2*(D*D+R*R*C*C),ot=(H-K)/ut,at=C*ot+J,Nt=(H+K)/ut,Yt=C*Nt+J,wt=["M0,".concat(p.h/2),"A".concat(p.w/2,",").concat(p.h/2," 0 1,1 0,").concat(p.h/2+1),"Z","M".concat(I+q,",").concat(A-j),"A".concat(R,",").concat(D," 0 0 0 ").concat(I+F,",").concat(A-G),"Z","M".concat(I+ot,",").concat(A-at),"A".concat(R,",").concat(D," 0 0 0 ").concat(I+Nt,",").concat(A-Yt),"Z"].join(" ");return b.setAttribute("d",wt),b}(n),d=Dh(n);break;case"rightArrow":h=function(v){var p=v.extend,x=vt("adj1",v,.5*Math.min(p.w,p.h)),b=vt("adj2",v,.5*Math.min(p.w,p.h)),S=mt("path"),M=["M0,".concat(p.h/2-x/2),"L".concat(p.w-b,",").concat(p.h/2-x/2),"L".concat(p.w-b,",0"),"L".concat(p.w,",").concat(p.h/2),"L".concat(p.w-b,",").concat(p.h),"L".concat(p.w-b,",").concat(p.h/2+x/2),"L0,".concat(p.h/2+x/2),"Z"].join(" ");return S.setAttribute("d",M),S}(n),d=function(v){var p=v.extend,x=vt("adj1",v,.5*Math.min(p.w,p.h)),b=x*vt("adj2",v,.5*Math.min(p.w,p.h))/p.h;return{top:p.h/2-x/2,bottom:p.h/2-x/2,left:0,right:b,w:p.w-b,h:x}}(n);break;case"leftArrow":h=function(v){var p=v.extend,x=vt("adj1",v,.5*Math.min(p.w,p.h)),b=vt("adj2",v,.5*Math.min(p.w,p.h)),S=mt("path"),M=["M0,".concat(p.h/2),"L".concat(b,",0"),"L".concat(b,",").concat(p.h/2-x/2),"L".concat(p.w,",").concat(p.h/2-x/2),"L".concat(p.w,",").concat(p.h/2+x/2),"L".concat(b,",").concat(p.h/2+x/2),"L".concat(b,",").concat(p.h),"Z"].join(" ");return S.setAttribute("d",M),S}(n),d=function(v){var p=v.extend,x=vt("adj1",v,.5*Math.min(p.w,p.h)),b=x*vt("adj2",v,.5*Math.min(p.w,p.h))/p.h;return{top:p.h/2-x/2,bottom:p.h/2-x/2,left:b,right:0,w:p.w-b,h:x}}(n);break;case"upArrow":h=function(v){var p=v.extend,x=vt("adj1",v,.5*Math.min(p.w,p.h)),b=vt("adj2",v,.5*Math.min(p.w,p.h)),S=mt("path"),M=["M".concat(p.w/2,",0"),"L".concat(p.w,",").concat(b),"L".concat(p.w/2+x/2,",").concat(b),"L".concat(p.w/2+x/2,",").concat(p.h),"L".concat(p.w/2-x/2,",").concat(p.h),"L".concat(p.w/2-x/2,",").concat(b),"L0,".concat(b),"Z"].join(" ");return S.setAttribute("d",M),S}(n),d=function(v){var p=v.extend,x=vt("adj1",v,.5*Math.min(p.w,p.h)),b=x*vt("adj2",v,.5*Math.min(p.w,p.h))/p.w;return{top:b,bottom:0,left:p.w/2-x/2,right:p.w/2-x/2,w:x,h:p.h-b}}(n);break;case"downArrow":h=function(v){var p=v.extend,x=vt("adj1",v,.5*Math.min(p.w,p.h)),b=vt("adj2",v,.5*Math.min(p.w,p.h)),S=mt("path"),M=["M".concat(p.w/2,",").concat(p.h),"L0,".concat(p.h-b),"L".concat(p.w/2-x/2,",").concat(p.h-b),"L".concat(p.w/2-x/2,",0"),"L".concat(p.w/2+x/2,",0"),"L".concat(p.w/2+x/2,",").concat(p.h-b),"L".concat(p.w,",").concat(p.h-b),"Z"].join(" ");return S.setAttribute("d",M),S}(n),d=function(v){var p=v.extend,x=vt("adj1",v,.5*Math.min(p.w,p.h)),b=x*vt("adj2",v,.5*Math.min(p.w,p.h))/p.w;return{top:0,bottom:b,left:p.w/2-x/2,right:p.w/2-x/2,w:x,h:p.h-b}}(n);break;case"leftRightArrow":h=function(v){var p=v.extend,x=vt("adj1",v,.5*Math.min(p.w,p.h)),b=vt("adj2",v,.5*Math.min(p.w,p.h)),S=mt("path"),M=["M0,".concat(p.h/2),"L".concat(b,",0"),"L".concat(b,",").concat(p.h/2-x/2),"L".concat(p.w-b,",").concat(p.h/2-x/2),"L".concat(p.w-b,",0"),"L".concat(p.w,",").concat(p.h/2),"L".concat(p.w-b,",").concat(p.h),"L".concat(p.w-b,",").concat(p.h/2+x/2),"L".concat(b,",").concat(p.h/2+x/2),"L".concat(b,",").concat(p.h),"Z"].join(" ");return S.setAttribute("d",M),S}(n),d=function(v){var p=v.extend,x=vt("adj1",v,.5*Math.min(p.w,p.h)),b=x*vt("adj2",v,.5*Math.min(p.w,p.h))/p.h;return{top:p.h/2-x/2,bottom:p.h/2-x/2,left:b,right:b,w:p.w-2*b,h:x}}(n);break;case"upDownArrow":h=function(v){var p=v.extend,x=vt("adj1",v,.5*Math.min(p.w,p.h)),b=vt("adj2",v,.5*Math.min(p.w,p.h)),S=mt("path"),M=["M".concat(p.w/2,",").concat(p.h),"L0,".concat(p.h-b),"L".concat(p.w/2-x/2,",").concat(p.h-b),"L".concat(p.w/2-x/2,",").concat(b),"L0,".concat(b),"L".concat(p.w/2,",0"),"L".concat(p.w,",").concat(b),"L".concat(p.w/2+x/2,",").concat(b),"L".concat(p.w/2+x/2,",").concat(p.h-b),"L".concat(p.w,",").concat(p.h-b),"Z"].join(" ");return S.setAttribute("d",M),S}(n),d=function(v){var p=v.extend,x=vt("adj1",v,.5*Math.min(p.w,p.h)),b=x*vt("adj2",v,.5*Math.min(p.w,p.h))/p.w;return{top:b,bottom:b,left:p.w/2-x/2,right:p.w/2-x/2,w:x,h:p.h-2*b}}(n);break;case"quadArrow":h=function(v){var p=v.extend,x=vt("adj1",v,.225*Math.min(p.w,p.h)),b=vt("adj2",v,.225*Math.min(p.w,p.h)),S=vt("adj3",v,.225*Math.min(p.w,p.h)),M=mt("path"),I=["M0,".concat(p.h/2),"L".concat(S,",").concat(p.h/2-b),"L".concat(S,",").concat(p.h/2-x/2),"L".concat(p.w/2-x/2,",").concat(p.h/2-x/2),"L".concat(p.w/2-x/2,",").concat(S),"L".concat(p.w/2-b,",").concat(S),"L".concat(p.w/2,",0"),"L".concat(p.w/2+b,",").concat(S),"L".concat(p.w/2+x/2,",").concat(S),"L".concat(p.w/2+x/2,",").concat(p.h/2-x/2),"L".concat(p.w-S,",").concat(p.h/2-x/2),"L".concat(p.w-S,",").concat(p.h/2-b),"L".concat(p.w,",").concat(p.h/2),"L".concat(p.w-S,",").concat(p.h/2+b),"L".concat(p.w-S,",").concat(p.h/2+x/2),"L".concat(p.w/2+x/2,",").concat(p.h/2+x/2),"L".concat(p.w/2+x/2,",").concat(p.h-S),"L".concat(p.w/2+b,",").concat(p.h-S),"L".concat(p.w/2,",").concat(p.h),"L".concat(p.w/2-b,",").concat(p.h-S),"L".concat(p.w/2-x/2,",").concat(p.h-S),"L".concat(p.w/2-x/2,",").concat(p.h/2+x/2),"L".concat(S,",").concat(p.h/2+x/2),"L".concat(S,",").concat(p.h/2+b),"Z"].join(" ");return M.setAttribute("d",I),M}(n),d=function(v){var p=v.extend,x=vt("adj1",v,.225*Math.min(p.w,p.h)),b=vt("adj2",v,.225*Math.min(p.w,p.h)),S=vt("adj3",v,.225*Math.min(p.w,p.h)),M=b===0?0:x*S/b/2;return{top:p.h/2-x/2,bottom:p.h/2-x/2,left:M,right:M,w:p.w-2*M,h:x}}(n);break;case"leftRightUpArrow":h=function(v){var p=v.extend,x=vt("adj1",v,.225*Math.min(p.w,p.h)),b=vt("adj2",v,.225*Math.min(p.w,p.h)),S=vt("adj3",v,.225*Math.min(p.w,p.h)),M=mt("path");x>2*b&&(x=2*b);var I=["M0,".concat(p.h-b),"L".concat(S,",").concat(p.h-2*b),"L".concat(S,",").concat(p.h-b-x/2),"L".concat(p.w/2-x/2,",").concat(p.h-b-x/2),"L".concat(p.w/2-x/2,",").concat(S),"L".concat(p.w/2-b,",").concat(S),"L".concat(p.w/2,",0"),"L".concat(p.w/2+b,",").concat(S),"L".concat(p.w/2+x/2,",").concat(S),"L".concat(p.w/2+x/2,",").concat(p.h-b-x/2),"L".concat(p.w-S,",").concat(p.h-b-x/2),"L".concat(p.w-S,",").concat(p.h-2*b),"L".concat(p.w,",").concat(p.h-b),"L".concat(p.w-S,",").concat(p.h),"L".concat(p.w-S,",").concat(p.h-b+x/2),"L".concat(S,",").concat(p.h-b+x/2),"L".concat(S,",").concat(p.h),"Z"].join(" ");return M.setAttribute("d",I),M}(n),d=function(v){var p=v.extend,x=vt("adj1",v,.225*Math.min(p.w,p.h)),b=vt("adj2",v,.225*Math.min(p.w,p.h)),S=vt("adj3",v,.225*Math.min(p.w,p.h)),M=b===0?0:x*S/b/2;return{top:p.h-b-x/2,bottom:b-x/2,left:M,right:M,w:p.w-2*M,h:x}}(n);break;case"bentArrow":h=function(v){var p=v.extend,x=vt("adj1",v,.25*Math.min(p.w,p.h)),b=vt("adj2",v,.25*Math.min(p.w,p.h)),S=vt("adj3",v,.25*Math.min(p.w,p.h)),M=vt("adj4",v,.4375*Math.min(p.w,p.h)),I=mt("path");x>2*b&&(x=2*b);var A=M-x;A<0&&(A=0);var C=["M0,".concat(p.h),"L0,".concat(b-x/2+M),"A".concat(M," ").concat(M," 0 0 1 ").concat(M," ").concat(b-x/2),"L".concat(p.w-S,",").concat(b-x/2),"L".concat(p.w-S,",0"),"L".concat(p.w,",").concat(b),"L".concat(p.w-S,",").concat(2*b),"L".concat(p.w-S,",").concat(b+x/2),"L".concat(x+A,",").concat(b+x/2),"A".concat(A," ").concat(A," 0 0 0 ").concat(x," ").concat(b+x/2+A),"L".concat(x,",").concat(p.h),"Z"].join(" ");return I.setAttribute("d",C),I}(n);break;case"uturnArrow":h=function(v){var p=v.extend,x=vt("adj1",v,.25*Math.min(p.w,p.h)),b=vt("adj2",v,.25*Math.min(p.w,p.h)),S=vt("adj3",v,.25*Math.min(p.w,p.h)),M=vt("adj4",v,.4375*Math.min(p.w,p.h)),I=vt("adj5",v,.75*Math.min(p.w,p.h)),A=mt("path");x>2*b&&(x=2*b),I<S&&(I=S+x),M>I-S&&(M=I-S);var C=M-x;C>I-S-x&&(C=I-S-x),C<0&&(C=0);var L=b-x/2,R=["M0,".concat(p.h),"L0,".concat(M),"A".concat(M," ").concat(M," 0 0 1 ").concat(M," 0"),"L".concat(p.w-M-L,",0"),"A".concat(M," ").concat(M," 0 0 1 ").concat(p.w-L," ").concat(M),"L".concat(p.w-L,",").concat(I-S),"L".concat(p.w,",").concat(I-S),"L".concat(p.w-b,",").concat(I),"L".concat(p.w-2*b,",").concat(I-S),"L".concat(p.w-b-x/2,",").concat(I-S),"L".concat(p.w-b-x/2,",").concat(x+C),"A".concat(C," ").concat(C," 0 0 0 ").concat(p.w-C-b-x/2," ").concat(x),"L".concat(x+C,",").concat(x),"A".concat(C," ").concat(C," 0 0 0 ").concat(x," ").concat(x+C),"L".concat(x,",").concat(p.h),"Z"].join(" ");return A.setAttribute("d",R),A}(n);break;case"leftUpArrow":h=function(v){var p=v.extend,x=vt("adj1",v,.25*Math.min(p.w,p.h)),b=vt("adj2",v,.25*Math.min(p.w,p.h)),S=vt("adj3",v,.25*Math.min(p.w,p.h));x>2*b&&(x=2*b);var M=Math.min(p.w,p.h)-2*b;S>M&&(S=M),S<0&&(S=0);var I=b-x/2,A=mt("path"),C=["M0,".concat(p.h-b),"L".concat(S,",").concat(p.h-2*b),"L".concat(S,",").concat(p.h-b-x/2),"L".concat(p.w-b-x/2,",").concat(p.h-b-x/2),"L".concat(p.w-b-x/2,",").concat(S),"L".concat(p.w-2*b,",").concat(S),"L".concat(p.w-b,",0"),"L".concat(p.w,",").concat(S),"L".concat(p.w-I,",").concat(S),"L".concat(p.w-I,",").concat(p.h-I),"L".concat(S,",").concat(p.h-I),"L".concat(S,",").concat(p.h),"Z"].join(" ");return A.setAttribute("d",C),A}(n),d=function(v){var p=v.extend,x=vt("adj1",v,.25*Math.min(p.w,p.h)),b=vt("adj2",v,.25*Math.min(p.w,p.h)),S=vt("adj3",v,.25*Math.min(p.w,p.h));x>2*b&&(x=2*b);var M=Math.min(p.w,p.h)-2*b;S>M&&(S=M),S<0&&(S=0);var I=b===0?0:x*S/b/2;return{top:p.h-b-x/2,bottom:b-x/2,left:I,right:b,w:p.w-I-b,h:x}}(n);break;case"bentUpArrow":h=function(v){var p=v.extend,x=vt("adj1",v,.25*Math.min(p.w,p.h)),b=vt("adj2",v,.25*Math.min(p.w,p.h)),S=vt("adj3",v,.25*Math.min(p.w,p.h));x>2*b&&(x=2*b);var M=Math.min(p.w,p.h)-2*b;S>M&&(S=M),S<0&&(S=0);var I=b-x/2,A=mt("path"),C=["M0,".concat(p.h),"L0,".concat(p.h-x),"L".concat(p.w-b-x/2,",").concat(p.h-x),"L".concat(p.w-b-x/2,",").concat(S),"L".concat(p.w-2*b,",").concat(S),"L".concat(p.w-b,",0"),"L".concat(p.w,",").concat(S),"L".concat(p.w-I,",").concat(S),"L".concat(p.w-I,",").concat(p.h),"Z"].join(" ");return A.setAttribute("d",C),A}(n),d=function(v){var p=v.extend,x=vt("adj1",v,.25*Math.min(p.w,p.h));return{top:p.h-x,bottom:0,left:0,right:0,w:p.w,h:x}}(n);break;case"curvedRightArrow":h=function(v){var p=v.extend,x=v.background,b=vt("adj1",v,.25*Math.min(p.w,p.h)),S=vt("adj2",v,.5*Math.min(p.w,p.h)),M=vt("adj3",v,.25*Math.min(p.w,p.h));b>S&&(b=S);var I=S/2-b/2,A=(p.h-S/2-b/2)/2,C=(p.h-I-b)/2,L=mt("g"),R=mt("path"),D=["M".concat(p.w,",0"),"A ".concat(p.w," ").concat(A," 0 0 0 ").concat(0," ").concat(A),"L0,".concat(C+b),"A ".concat(p.w," ").concat(C," 0 0 1 ").concat(p.w," ").concat(b),"Z"].join(" ");R.setAttribute("d",D),(x==null?void 0:x.type)==="solidFill"&&R.setAttribute("fill",ke(x,{dark:.6})||"transparent");var N=mt("path"),k=["M0,".concat(A),"A ".concat(p.w," ").concat(A," 0 0 0 ").concat(p.w-M," ").concat(p.h-S/2-b/2),"L".concat(p.w-M,",").concat(p.h-S),"L".concat(p.w,",").concat(p.h-S/2),"L".concat(p.w-M,",").concat(p.h),"L".concat(p.w-M,",").concat(p.h-I),"A ".concat(p.w," ").concat(C," 0 0 1 0 ").concat(b+C),"Z"].join(" ");return N.setAttribute("d",k),L.appendChild(R),L.appendChild(N),L}(n);break;case"curvedLeftArrow":h=function(v){var p=v.extend,x=v.background,b=vt("adj1",v,.25*Math.min(p.w,p.h)),S=vt("adj2",v,.5*Math.min(p.w,p.h)),M=vt("adj3",v,.25*Math.min(p.w,p.h));b>S&&(b=S);var I=S/2-b/2,A=(p.h-S/2-b/2)/2,C=(p.h-I-b)/2,L=mt("g"),R=mt("path"),D=["M0,".concat(p.h-S/2),"L".concat(M,",").concat(p.h-S),"L".concat(M,",").concat(p.h-S/2-b/2),"A".concat(p.w," ").concat(A," 0 0 0 ").concat(p.w," ").concat(A),"L".concat(p.w,",").concat(C+b),"A ".concat(p.w," ").concat(C," 0 0 1 ").concat(M," ").concat(p.h-I),"L".concat(M,",").concat(p.h),"Z"].join(" ");R.setAttribute("d",D);var N=mt("path"),k=["M0,0","A ".concat(p.w," ").concat(A," 0 0 1 ").concat(p.w," ").concat(A),"L".concat(p.w,",").concat(C+b),"A ".concat(p.w," ").concat(C," 0 0 0 ").concat(0," ").concat(b),"Z"].join(" ");return N.setAttribute("d",k),(x==null?void 0:x.type)==="solidFill"&&N.setAttribute("fill",ke(x,{dark:.6})||"transparent"),L.appendChild(R),L.appendChild(N),L}(n);break;case"curvedUpArrow":h=function(v){var p=v.extend,x=v.background,b=vt("adj1",v,.25*Math.min(p.w,p.h)),S=vt("adj2",v,.5*Math.min(p.w,p.h)),M=vt("adj3",v,.25*Math.min(p.w,p.h));b>S&&(b=S);var I=S/2-b/2,A=(p.w-S/2-b/2)/2,C=(p.w-I-b)/2,L=mt("g"),R=mt("path"),D=["M".concat(p.w-S/2,",").concat(0),"L".concat(p.w-S,",").concat(M),"L".concat(p.w-S/2-b/2,",").concat(M),"A".concat(A," ").concat(p.h," 0 0 1 ").concat(A," ").concat(p.h),"L".concat(A+b,",").concat(p.h),"A".concat(C," ").concat(p.h," 0 0 0 ").concat(p.w-I," ").concat(M),"L".concat(p.w,",").concat(M),"Z"].join(" ");R.setAttribute("d",D);var N=mt("path"),k=["M".concat(b,",0"),"L".concat(0,",").concat(0),"A ".concat(A," ").concat(p.h," 0 0 0 ").concat(A," ").concat(p.h),"L".concat(A+b,",").concat(p.h),"A ".concat(C," ").concat(p.h," 0 0 1 ").concat(b," ").concat(0),"Z"].join(" ");return N.setAttribute("d",k),(x==null?void 0:x.type)==="solidFill"&&N.setAttribute("fill",ke(x,{dark:.6})||"transparent"),L.appendChild(R),L.appendChild(N),L}(n);break;case"curvedDownArrow":h=function(v){var p=v.extend,x=v.background,b=vt("adj1",v,.25*Math.min(p.w,p.h)),S=vt("adj2",v,.5*Math.min(p.w,p.h)),M=vt("adj3",v,.25*Math.min(p.w,p.h));b>S&&(b=S);var I=S/2-b/2,A=(p.w-S/2-b/2)/2,C=(p.w-I-b)/2,L=mt("g"),R=mt("path"),D=["M".concat(0,",").concat(p.h),"L".concat(b,",").concat(p.h),"A".concat(C," ").concat(p.h," 0 0 1 ").concat(C+b," ").concat(0),"L".concat(A,",").concat(0),"A".concat(A," ").concat(p.h," 0 0 0 ").concat(0," ").concat(p.h),"Z"].join(" ");R.setAttribute("d",D),(x==null?void 0:x.type)==="solidFill"&&R.setAttribute("fill",ke(x,{dark:.6})||"transparent");var N=mt("path"),k=["M".concat(p.w-S/2,",").concat(p.h),"L".concat(p.w-S,",").concat(p.h-M),"L".concat(p.w-S/2-b/2,",").concat(p.h-M),"A ".concat(A," ").concat(p.h," 0 0 0 ").concat(A," ").concat(0),"L".concat(A+b,",").concat(0),"A ".concat(C," ").concat(p.h," 0 0 1 ").concat(p.w-I," ").concat(p.h-M),"L".concat(p.w,",").concat(p.h-M),"Z"].join(" ");return N.setAttribute("d",k),L.appendChild(R),L.appendChild(N),L}(n);break;case"stripedRightArrow":h=function(v){var p=v.extend,x=mt("g"),b=Math.min(p.w,p.h),S=qt("adj1",v,.5)*p.h,M=qt("adj2",v,.5)*b,I=b/8,A=b/16,C=b/32,L=5*b/32,R=p.h/2-S/2,D=p.h/2+S/2,N=mt("path");N.setAttribute("d",["M".concat(0,",").concat(R),"L".concat(C,",").concat(R),"L".concat(C,",").concat(D),"L".concat(0,",").concat(D),"Z"].join(" "));var k=mt("path");k.setAttribute("d",["M".concat(A,",").concat(R),"L".concat(I,",").concat(R),"L".concat(I,",").concat(D),"L".concat(A,",").concat(D),"Z"].join(" "));var O=mt("path"),F=["M".concat(L,",").concat(R),"L".concat(p.w-M,",").concat(R),"L".concat(p.w-M,",").concat(0),"L".concat(p.w,",").concat(p.h/2),"L".concat(p.w-M,",").concat(p.h),"L".concat(p.w-M,",").concat(D),"L".concat(L,",").concat(D),"Z"].join(" ");return O.setAttribute("d",F),x.appendChild(O),x.appendChild(N),x.appendChild(k),x}(n),d=function(v){var p=v.extend,x=Math.min(p.w,p.h),b=qt("adj1",v,.5)*p.h,S=b*(qt("adj2",v,.5)*x)/p.h;return{top:p.h/2-b/2,bottom:p.h/2-b/2,left:0,right:S,w:p.w-S,h:b}}(n);break;case"notchedRightArrow":h=function(v){var p=v.extend,x=Math.min(p.w,p.h),b=qt("adj1",v,.5)*p.h,S=qt("adj2",v,.5)*x,M=b*S/p.h,I=p.h/2-b/2,A=p.h/2+b/2,C=mt("path"),L=["M".concat(0,",").concat(I),"L".concat(p.w-S,",").concat(I),"L".concat(p.w-S,",").concat(0),"L".concat(p.w,",").concat(p.h/2),"L".concat(p.w-S,",").concat(p.h),"L".concat(p.w-S,",").concat(A),"L".concat(0,",").concat(A),"L".concat(M,",").concat(p.h/2),"Z"].join(" ");return C.setAttribute("d",L),C}(n),d=function(v){var p=v.extend,x=Math.min(p.w,p.h),b=qt("adj1",v,.5)*p.h,S=qt("adj2",v,.5)*x,M=b*S/p.h,I=b*S/p.h;return{top:p.h/2-b/2,bottom:p.h/2-b/2,left:M,right:I,w:p.w-M-I,h:b}}(n);break;case"homePlate":h=function(v){var p=v.extend,x=Math.min(p.w,p.h),b=qt("adj",v,.5)*x,S=mt("path"),M=["M".concat(0,",").concat(0),"L".concat(p.w-b,",").concat(0),"L".concat(p.w,",").concat(p.h/2),"L".concat(p.w-b,",").concat(p.h),"L".concat(0,",").concat(p.h),"Z"].join(" ");return S.setAttribute("d",M),S}(n),d=function(v){var p=v.extend,x=Math.min(p.w,p.h),b=qt("adj",v,.5)*x;return{top:0,bottom:0,left:0,right:b/2,w:p.w-b/2,h:p.h}}(n);break;case"chevron":h=function(v){var p=v.extend,x=Math.min(p.w,p.h),b=qt("adj",v,.5)*x,S=mt("path"),M=["M".concat(0,",").concat(0),"L".concat(p.w-b,",").concat(0),"L".concat(p.w,",").concat(p.h/2),"L".concat(p.w-b,",").concat(p.h),"L".concat(0,",").concat(p.h),"L".concat(b,",").concat(p.h/2),"Z"].join(" ");return S.setAttribute("d",M),S}(n),d=function(v){var p=v.extend,x=Math.min(p.w,p.h),b=qt("adj",v,.5)*x;return{top:0,bottom:0,left:b,right:b,w:p.w-2*b,h:p.h}}(n);break;case"blockArc":h=function(v){var p=v.extend,x=Math.min(p.w,p.h),b=mt("path"),S=qt("adj1",v,180),M=qt("adj2",v,0),I=vt("adj3",v,.25*x),A=p.w/2,C=p.h/2,L=p.w/2,R=p.h/2,D=p.w/2-I,N=p.h/2-I,k=Fn(S,A,C,L,R),O=k[0],F=k[1],G=Fn(M,A,C,L,R),q=G[0],j=G[1],J=Fn(S,A,C,D,N),H=J[0],K=J[1],ut=Fn(M,A,C,D,N),ot=ut[0],at=ut[1],Nt=Lh(S,M),Yt=["M".concat(O,",").concat(F),"A".concat(L," ").concat(R," 0 ").concat(Nt," 1 ").concat(q," ").concat(j),"L".concat(ot,",").concat(at),"A".concat(D," ").concat(N," 0 ").concat(Nt," 0 ").concat(H," ").concat(K),"Z"].join(" ");return b.setAttribute("d",Yt),b}(n),d=function(v){var p=v.extend,x=Math.min(p.w,p.h),b=qt("adj1",v,180),S=qt("adj2",v,0),M=vt("adj3",v,.25*x),I=p.w/2,A=p.h/2,C=p.w/2,L=p.h/2,R=p.w/2-M,D=p.h/2-M,N=Fn(b,I,A,C,L),k=N[0],O=N[1],F=Fn(S,I,A,C,L),G=F[0],q=F[1],j=Fn(b,I,A,R,D),J=j[0],H=j[1],K=Fn(S,I,A,R,D),ut=[[k,O],[G,q],[J,H],[K[0],K[1]]];ut.push(),b>S&&ut.push([p.w,p.h/2]),(S>180&&S<=360&&b<180||b>S&&S>=0&&S<180&&b<180)&&ut.push([0,p.h/2]),(b<S&&b<90&&S>90||b>S&&S>90||b>S&&b<90)&&ut.push([p.w/2,p.h]),(b<S&&b<270&&S>270||b>S&&S>270||b>S&&b<270)&&ut.push([p.w/2,0]);var ot=1/0,at=1/0,Nt=-1/0,Yt=-1/0;return ut.forEach(function(wt){ot=Math.min(wt[0],ot),at=Math.min(wt[1],at),Nt=Math.max(wt[0],Nt),Yt=Math.max(wt[1],Yt)}),{top:at,bottom:p.h-Yt,left:ot,right:p.w-Nt,w:Nt-ot,h:Yt-at}}(n);break;case"foldedCorner":h=function(v){var p=v.extend,x=v.background,b=mt("g"),S=mt("path"),M=vt("adj",v,.16667*Math.min(p.w,p.h)),I=["M0,0","L".concat(p.w,",0"),"L".concat(p.w,",").concat(p.h-M),"L".concat(p.w-M,",").concat(p.h),"L".concat(0,",").concat(p.h),"Z"].join(" ");S.setAttribute("d",I);var A=M*Math.cos(Math.PI/4)/Math.cos(Math.PI/6)*Math.cos(75/180*Math.PI),C=mt("path"),L=["M".concat(p.w-M+A,", ").concat(p.h-M+A),"L".concat(p.w,",").concat(p.h-M),"L".concat(p.w-M,",").concat(p.h),"Z"].join(" ");return C.setAttribute("d",L),(x==null?void 0:x.type)==="solidFill"&&C.setAttribute("fill",ke(x,{dark:.6})||"transparent"),b.appendChild(S),b.appendChild(C),b}(n),d=function(v){var p=v.extend,x=vt("adj",v,.16667*Math.min(p.w,p.h));return{top:0,bottom:x,left:0,right:0,w:p.w,h:p.h-x}}(n);break;case"rightArrowCallout":h=function(v){var p=v.extend,x=Math.min(p.w,p.h),b=qt("adj1",v,.25)*x,S=qt("adj2",v,.25)*x,M=qt("adj3",v,.25)*x,I=qt("adj4",v,.64977)*p.w,A=mt("path"),C=["M".concat(0,",").concat(0),"L".concat(I,",").concat(0),"L".concat(I,",").concat(p.h/2-b/2),"L".concat(p.w-M,",").concat(p.h/2-b/2),"L".concat(p.w-M,",").concat(p.h/2-S),"L".concat(p.w,",").concat(p.h/2),"L".concat(p.w-M,",").concat(p.h/2+S),"L".concat(p.w-M,",").concat(p.h/2+b/2),"L".concat(I,",").concat(p.h/2+b/2),"L".concat(I,",").concat(p.h),"L".concat(0,",").concat(p.h),"Z"].join(" ");return A.setAttribute("d",C),A}(n),d=function(v){var p=v.extend,x=qt("adj4",v,.64977)*p.w;return{top:0,bottom:0,left:0,right:p.w-x,w:x,h:p.h}}(n);break;case"leftArrowCallout":h=function(v){var p=v.extend,x=Math.min(p.w,p.h),b=qt("adj1",v,.25)*x,S=qt("adj2",v,.25)*x,M=qt("adj3",v,.25)*x,I=qt("adj4",v,.64977)*p.w,A=mt("path"),C=["M".concat(0,",").concat(p.h/2),"L".concat(M,",").concat(p.h/2-S),"L".concat(M,",").concat(p.h/2-b/2),"L".concat(p.w-I,",").concat(p.h/2-b/2),"L".concat(p.w-I,",").concat(0),"L".concat(p.w,",").concat(0),"L".concat(p.w,",").concat(p.h),"L".concat(p.w-I,",").concat(p.h),"L".concat(p.w-I,",").concat(p.h/2+b/2),"L".concat(M,",").concat(p.h/2+b/2),"L".concat(M,",").concat(p.h/2+S),"Z"].join(" ");return A.setAttribute("d",C),A}(n),d=function(v){var p=v.extend,x=qt("adj4",v,.64977)*p.w;return{top:0,bottom:0,left:p.w-x,right:0,w:x,h:p.h}}(n);break;case"upArrowCallout":h=function(v){var p=v.extend,x=Math.min(p.w,p.h),b=qt("adj1",v,.25)*x,S=qt("adj2",v,.25)*x,M=qt("adj3",v,.25)*x,I=qt("adj4",v,.64977)*p.h,A=mt("path"),C=["M".concat(0,",").concat(p.h-I),"L".concat(p.w/2-b/2,",").concat(p.h-I),"L".concat(p.w/2-b/2,",").concat(M),"L".concat(p.w/2-S,",").concat(M),"L".concat(p.w/2,",").concat(0),"L".concat(p.w/2+S,",").concat(M),"L".concat(p.w/2+b/2,",").concat(M),"L".concat(p.w/2+b/2,",").concat(p.h-I),"L".concat(p.w,",").concat(p.h-I),"L".concat(p.w,",").concat(p.h),"L".concat(0,",").concat(p.h),"Z"].join(" ");return A.setAttribute("d",C),A}(n),d=function(v){var p=v.extend,x=qt("adj4",v,.64977)*p.h;return{top:p.h-x,bottom:0,left:0,right:0,w:p.w,h:x}}(n);break;case"downArrowCallout":h=function(v){var p=v.extend,x=Math.min(p.w,p.h),b=qt("adj1",v,.25)*x,S=qt("adj2",v,.25)*x,M=qt("adj3",v,.25)*x,I=qt("adj4",v,.64977)*p.h,A=mt("path"),C=["M".concat(0,",").concat(0),"L".concat(p.w,",").concat(0),"L".concat(p.w,",").concat(I),"L".concat(p.w/2+b/2,",").concat(I),"L".concat(p.w/2+b/2,",").concat(p.h-M),"L".concat(p.w/2+S,",").concat(p.h-M),"L".concat(p.w/2,",").concat(p.h),"L".concat(p.w/2-S,",").concat(p.h-M),"L".concat(p.w/2-b/2,",").concat(p.h-M),"L".concat(p.w/2-b/2,",").concat(I),"L".concat(0,",").concat(I),"Z"].join(" ");return A.setAttribute("d",C),A}(n),d=function(v){var p=v.extend,x=qt("adj4",v,.64977)*p.h;return{top:0,bottom:p.h-x,left:0,right:0,w:p.w,h:x}}(n);break;case"leftRightArrowCallout":h=function(v){var p=v.extend,x=Math.min(p.w,p.h),b=qt("adj1",v,.25)*x,S=qt("adj2",v,.25)*x,M=qt("adj3",v,.25)*x,I=qt("adj4",v,.48123)*p.w,A=mt("path"),C=["M".concat(0,",").concat(p.h/2),"L".concat(M,",").concat(p.h/2-S),"L".concat(M,",").concat(p.h/2-b/2),"L".concat(p.w/2-I/2,",").concat(p.h/2-b/2),"L".concat(p.w/2-I/2,",").concat(0),"L".concat(p.w/2+I/2,",").concat(0),"L".concat(p.w/2+I/2,",").concat(p.h/2-b/2),"L".concat(p.w-M,",").concat(p.h/2-b/2),"L".concat(p.w-M,",").concat(p.h/2-S),"L".concat(p.w,",").concat(p.h/2),"L".concat(p.w-M,",").concat(p.h/2+S),"L".concat(p.w-M,",").concat(p.h/2+b/2),"L".concat(p.w/2+I/2,",").concat(p.h/2+b/2),"L".concat(p.w/2+I/2,",").concat(p.h),"L".concat(p.w/2-I/2,",").concat(p.h),"L".concat(p.w/2-I/2,",").concat(p.h/2+b/2),"L".concat(M,",").concat(p.h/2+b/2),"L".concat(M,",").concat(p.h/2+S),"Z"].join(" ");return A.setAttribute("d",C),A}(n),d=function(v){var p=v.extend,x=qt("adj4",v,.48123)*p.w;return{top:0,bottom:0,left:p.w/2-x/2,right:p.w/2-x/2,w:x,h:p.h}}(n);break;case"quadArrowCallout":h=function(v){var p=v.extend,x=Math.min(p.w,p.h),b=qt("adj1",v,.18515)*x,S=qt("adj2",v,.18515)*x,M=qt("adj3",v,.18515)*x,I=qt("adj4",v,.48123)*p.w,A=qt("adj4",v,.48123)*p.h,C=mt("path"),L=["M".concat(0,",").concat(p.h/2),"L".concat(M,",").concat(p.h/2-S),"L".concat(M,",").concat(p.h/2-b/2),"L".concat(p.w/2-I/2,",").concat(p.h/2-b/2),"L".concat(p.w/2-I/2,",").concat(p.h/2-A/2),"L".concat(p.w/2-b/2,",").concat(p.h/2-A/2),"L".concat(p.w/2-b/2,",").concat(M),"L".concat(p.w/2-S,",").concat(M),"L".concat(p.w/2,",").concat(0),"L".concat(p.w/2+S,",").concat(M),"L".concat(p.w/2+b/2,",").concat(M),"L".concat(p.w/2+b/2,",").concat(p.h/2-A/2),"L".concat(p.w/2+I/2,",").concat(p.h/2-A/2),"L".concat(p.w/2+I/2,",").concat(p.h/2-b/2),"L".concat(p.w-M,",").concat(p.h/2-b/2),"L".concat(p.w-M,",").concat(p.h/2-S),"L".concat(p.w,",").concat(p.h/2),"L".concat(p.w-M,",").concat(p.h/2+S),"L".concat(p.w-M,",").concat(p.h/2+b/2),"L".concat(p.w/2+I/2,",").concat(p.h/2+b/2),"L".concat(p.w/2+I/2,",").concat(p.h/2+A/2),"L".concat(p.w/2+b/2,",").concat(p.h/2+A/2),"L".concat(p.w/2+b/2,",").concat(p.h-M),"L".concat(p.w/2+S,",").concat(p.h-M),"L".concat(p.w/2,",").concat(p.h),"L".concat(p.w/2-S,",").concat(p.h-M),"L".concat(p.w/2-b/2,",").concat(p.h-M),"L".concat(p.w/2-b/2,",").concat(p.h/2+A/2),"L".concat(p.w/2-I/2,",").concat(p.h/2+A/2),"L".concat(p.w/2-I/2,",").concat(p.h/2+b/2),"L".concat(M,",").concat(p.h/2+b/2),"L".concat(M,",").concat(p.h/2+S),"Z"].join(" ");return C.setAttribute("d",L),C}(n),d=function(v){var p=v.extend,x=qt("adj4",v,.48123)*p.w,b=qt("adj4",v,.48123)*p.h;return{top:p.h/2-b/2,bottom:p.h/2-b/2,left:p.w/2-x/2,right:p.w/2-x/2,w:x,h:b}}(n)}h&&(g?(r==null?void 0:r.type)==="blipFill"?function(v,p,x){var b=v.background,S=b===void 0?{}:b,M=v.extend,I=S.base64,A=S.alpha,C=S.fillRect,L=C===void 0?{}:C,R=L.b,D=R===void 0?0:R,N=L.t,k=N===void 0?0:N,O=L.l,F=O===void 0?0:O,G=L.r,q=G===void 0?0:G,j=mt("defs"),J=mt("pattern");J.setAttribute("id","background_"+v.uuid),J.setAttribute("patternUnits","userSpaceOnUse"),J.setAttribute("width",M.w+""),J.setAttribute("height",M.h+"");var H=mt("image");H.setAttribute("href",I),H.setAttribute("preserveAspectRatio","none");var K=M.w*F,ut=M.h*k,ot=M.w*(1-F-q),at=M.h*(1-k-D);H.setAttribute("width",ot+""),H.setAttribute("height",at+""),H.setAttribute("x",K+""),H.setAttribute("y",ut+""),typeof A=="number"&&H.setAttribute("opacity",A+""),J.appendChild(H),j.appendChild(J),p.appendChild(j),x.setAttribute("fill","url(#background_".concat(v.uuid,")"))}(n,f,h):(r==null?void 0:r.type)==="gradFill"?function(v,p,x){var b=v.background,S=b===void 0?{}:b;v.extend;var M=S.gsList,I=S.lin,A=S.path,C=S.tileRect,L=C===void 0?{}:C,R=mt("defs"),D=mt(A==="circle"?"radialGradient":"linearGradient");D.setAttribute("id","background_grad_fill_"+v.uuid);var N=M||[];if(N.sort(function(q,j){return q.pos-j.pos}),N.forEach(function(q){var j=mt("stop");j.setAttribute("offset","".concat(100*q.pos,"%")),j.setAttribute("stop-color",ke(q.color)),D.appendChild(j)}),A==="circle"){var k=L.r,O=L.l,F=L.t,G=L.b;k===-1?D.setAttribute("cx","100%"):O===-1&&D.setAttribute("cx","0%"),F===-1?D.setAttribute("cy","0%"):G===-1&&D.setAttribute("cy","100%")}else I!=null&&I.ang&&D.setAttribute("gradientTransform","rotate(".concat(I.ang,")"));R.appendChild(D),p.appendChild(R),x.setAttribute("fill","url(#background_grad_fill_".concat(v.uuid,")"))}(n,f,h):h.setAttribute("fill",ke(r)||"transparent"):h.setAttribute("fill","transparent"),i.width?(h.setAttribute("stroke-width",i.width+"px"),h.setAttribute("stroke",ke(i.color)||"transparent")):h.setAttribute("stroke-width","0"),h.setAttribute("stroke-dasharray",function(v){return v&&v.type!=="solid"?({sysDot:[1,1],sysDash:[3,1],dash:[4,3],dashDot:[4,3,1,3],lgDash:[8,3],lgDashDot:[8,3,1,3],lgDashDotDot:[8,3,1,3,1,3]}[v.type]||[]).map(function(p){return p*v.width}).join(","):""}(i)),h.setAttribute("stroke-linecap",i.cap&&{sq:"square",rnd:"round",flat:"butt"}[i.cap]||"square"),h.setAttribute("stroke-linejoin",i.lineJoin||"round"),i.lineJoin==="miter"&&h.setAttribute("stroke-miterlimit",i.miterLim+""),f.appendChild(h));var y=[];o&&y.push("scaleX(-1)"),s&&y.push("scaleY(-1)"),f.style.setProperty("transform",y.join(" ")),l.appendChild(f);var _=function(v,p,x){var b;x===void 0&&(x=!1);var S=v.inheritProps,M=v.props,I=v.paragraphs;if(!I||I.length===0)return null;var A=kt(kt({},S),M),C=document.createElement("div");switch(C.className="text-wrapper",C.style.boxSizing="border-box",C.style.position="absolute",C.style.left=p.left+"px",A.vert==="eaVert"?(C.style.writingMode="vertical-rl",C.style.height=p.h+"px"):C.style.width=p.w+"px",A.anchor){case"b":C.style.bottom=p.bottom+"px";break;case"t":C.style.top=p.top+"px";break;case"ctr":C.style.top=p.top+p.h/2+"px",C.style.transform="translateY(-50%)";break;default:x?C.style.top=p.top+"px":(C.style.top=p.top+p.h/2+"px",C.style.transform="translateY(-50%)")}var L=[A.hasOwnProperty("tIns")?Math.floor(A.tIns)+"px":"3px",A.hasOwnProperty("rIns")?Math.floor(A.rIns)+"px":"5px",A.hasOwnProperty("bIns")?Math.floor(A.bIns)+"px":"3px",A.hasOwnProperty("lIns")?Math.floor(A.lIns)+"px":"5px"];C.style.padding=L.join(" ");for(var R={},D=0,N=function(F){var G=kt(kt({},F.inheritProps),F.props),q=void 0;if(G.buAutoNum){var j=G.level?+G.level:0;R[j]||(R[j]=0),!((b=F.rows)===null||b===void 0)&&b.length&&R[j]++,Object.keys(R).forEach(function(J){+J>j&&(R[J]=0)}),q=og(F,R[j],{isFirst:D===0,isLast:I.length-1===D,bodyProps:A})}else q=og(F,0,{isFirst:D===0,isLast:I.length-1===D,bodyProps:A});C.appendChild(q),D++},k=0,O=I;k<O.length;k++)N(O[k]);return C}(n.textBody,d,n.isTextBox);return _&&l.appendChild(_),a&&l.style.setProperty("transform","rotate(".concat(a,"deg)")),l}function BR(n){var e=document.createElement("div"),t=n.extend;n.chExtend;var i=n.offset;n.chOffset;var r=n.flipV,a=n.flipH,o=n.rotate,s=i.x,l=i.y,u=t.w,c=t.h;e.className="group",e.style.position="absolute",e.style.left=s+"px",e.style.top=l+"px",e.style.width=u+"px",e.style.height=c+"px";var h=[];a&&h.push("scaleX(-1)"),r&&h.push("scaleY(-1)"),o&&h.push("rotate(".concat(o,"deg)")),e.style.transformOrigin="center center",e.style.transform=h.join(" ");for(var f=0;f<n.nodes.length;f++){var d=n.nodes[f],g=void 0;d instanceof ag?g=Mx(d):d instanceof Ah?g=Ix(d):d instanceof Sx&&(g=BR(d)),e.appendChild(g)}return e}var wa={};function VR(n,e){if(wa[n])for(var t=0;t<wa[n].length;t++)wa[n][t](e)}function FR(n,e){wa[n]&&(wa[n]=wa[n].filter(function(t){return t!==e}))}function L$(n){var e=document.createElement("div"),t=n.extend,i=n.offset,r=n.flipV,a=n.flipH,o=n.rotate,s=n.options,l=i.x,u=i.y,c=t.w,h=t.h;e.className="chart-node",e.style.position="absolute",e.style.left=l+"px",e.style.top=u+"px",e.style.width=c+"px",e.style.height=h+"px";var f=[];return a&&f.push("scaleX(-1)"),r&&f.push("scaleY(-1)"),o&&f.push("rotate(".concat(o,"deg)")),e.style.transformOrigin="center center",e.style.transform=f.join(" "),setTimeout(function(){var d,g,y=g8(e,null,{renderer:"svg"});y.setOption(s),g=function(){y&&y.dispose(),y&&(y=null)},wa[d="destroy"]||(wa[d]=[]),wa[d].push(g)},0),e}var D$=function(){function n(e,t,i){this.scale=1,this.wrapper=e,this.pptx=t,this.options=i,this._calcScaleAndRenderPort()}return n.prototype._calcScaleAndRenderPort=function(){var e=this.options.viewPort.width/this.pptx.width;this.scale=e;var t=this.options.viewPort.width,i=this.pptx.height*this.scale;this.renderPort={width:t,height:i,left:0,top:0}},n.prototype.renderSlide=function(e){var t=this.pptx.slides[e],i=document.createElement("div");i.classList.add("pptx-preview-slide-wrapper"),i.style.setProperty("width",this.renderPort.width+"px"),i.style.setProperty("height",this.renderPort.height+"px"),i.style.setProperty("position","relative"),i.style.margin="0 auto 10px",i.style.setProperty("background","#fff"),i.style.setProperty("overflow","hidden"),this._renderBackground(t,i),this._renderSlideMaster(t.slideMaster,i),this._renderSlideLayout(t.slideLayout,i),this._renderSlide(t,i),this.wrapper.append(i)},n.prototype._renderSlideMaster=function(e,t){var i=document.createElement("div");i.classList.add("slide-master-wrapper"),i.style.setProperty("position","absolute"),i.style.setProperty("left","0"),i.style.setProperty("top","0"),i.style.setProperty("width",this.pptx.width+"px"),i.style.setProperty("height",this.pptx.height+"px"),i.style.setProperty("transform","scale(".concat(this.scale,")")),i.style.setProperty("transform-origin","0 0");var r=Su([],e.nodes).filter(function(s){return s.userDrawn});r.sort(function(s,l){return s.order>l.order?1:-1});for(var a=0;a<r.length;a++){var o=this._renderNode(r[a]);o&&i.append(o)}t.append(i)},n.prototype._renderSlideLayout=function(e,t){var i=document.createElement("div");i.classList.add("slide-layout-wrapper"),i.style.setProperty("position","absolute"),i.style.setProperty("left","0"),i.style.setProperty("top","0"),i.style.setProperty("width",this.pptx.width+"px"),i.style.setProperty("height",this.pptx.height+"px"),i.style.setProperty("transform","scale(".concat(this.scale,")")),i.style.setProperty("transform-origin","0 0");var r=Su([],e.nodes).filter(function(s){return s.userDrawn});r.sort(function(s,l){return s.order>l.order?1:-1});for(var a=0;a<r.length;a++){var o=this._renderNode(r[a]);o&&i.append(o)}t.append(i)},n.prototype._renderSlide=function(e,t){var i=document.createElement("div");i.classList.add("slide-wrapper"),i.style.setProperty("position","absolute"),i.style.setProperty("left","0"),i.style.setProperty("top","0"),i.style.setProperty("width",this.pptx.width+"px"),i.style.setProperty("height",this.pptx.height+"px"),i.style.setProperty("transform","scale(".concat(this.scale,")")),i.style.setProperty("transform-origin","0 0");var r=Su([],e.nodes);r.sort(function(s,l){return s.order>l.order?1:-1});for(var a=0;a<r.length;a++){var o=this._renderNode(r[a]);o&&i.append(o)}t.append(i)},n.prototype._renderNode=function(e){return e instanceof ag?Mx(e):e instanceof Ah?Ix(e):e instanceof Sx?BR(e):e instanceof TR?function(t){var i=document.createElement("div"),r=t.extend,a=t.offset,o=t.flipV,s=t.flipH,l=t.rotate,u=a.x,c=a.y,h=r.w,f=r.h;i.className="smart-chart-diagram",i.style.position="absolute",i.style.left=u+"px",i.style.top=c+"px",i.style.width=h+"px",i.style.height=f+"px";var d=[];s&&d.push("scaleX(-1)"),o&&d.push("scaleY(-1)"),l&&d.push("rotate(".concat(l,"deg)")),i.style.transformOrigin="center center",i.style.transform=d.join(" ");for(var g=0;g<t.nodes.length;g++){var y=t.nodes[g],_=void 0;y instanceof ag?_=Mx(y):y instanceof Ah&&(_=Ix(y)),i.appendChild(_)}return i}(e):e instanceof IR?function(t){var i=t.extend,r=t.offset,a=t.tr,o=t.tableGrid.gridCol,s=document.createElement("div");s.style.position="absolute",s.style.left=r.x+"px",s.style.top=r.y+"px",s.style.width=i.w+"px",s.style.height=i.h+"px";var l=document.createElement("table");return l.style.borderCollapse="collapse",a.forEach(function(u){var c=u.props,h=u.td,f=c.height,d=document.createElement("tr");d.style.height=f+"px",h.forEach(function(g,y){var _,v,p=g.props,x=g.inheritTcStyle,b=g.inheritTcTxStyle,S=g.paragraphs;if(!p.vMerge&&!p.hMerge){var M=document.createElement("td");M.style.width=(((_=o[y])===null||_===void 0?void 0:_.width)||30)+"px",p.rowSpan&&M.setAttribute("rowspan",p.rowSpan+""),p.gridSpan&&M.setAttribute("colspan",p.gridSpan+"");var I=p.background||x.background;I&&(M.style.background=ke(I));var A=kt(kt({},x.border),p.border),C=function(j){return j?j.toLowerCase().includes("dash")?"dashed":j.toLowerCase().includes("dot")?"dotted":"solid":"solid"};A.bottom&&(M.style.borderBottom="".concat(A.bottom.width,"px ").concat(C(A.bottom.type)," ").concat(ke(A.bottom.color))),A.top&&(M.style.borderTop="".concat(A.top.width,"px ").concat(C(A.top.type)," ").concat(ke(A.top.color))),A.left&&(M.style.borderLeft="".concat(A.left.width,"px ").concat(C(A.left.type)," ").concat(ke(A.left.color))),A.right&&(M.style.borderRight="".concat(A.right.width,"px ").concat(C(A.right.type)," ").concat(ke(A.right.color)));var L=document.createElement("div");switch(L.className="text-wrapper",L.style.boxSizing="border-box",L.style.width="100%",L.style.height="100%",L.style.overflow="hidden",L.style.display="flex",L.style.flexDirection="column",p.anchor){case"b":L.style.justifyContent="flex-end";break;case"t":L.style.justifyContent="flex-start";break;case"ctr":L.style.justifyContent="center"}var R=[p.hasOwnProperty("marT")?Math.floor(p.marT)+"px":"3px",p.hasOwnProperty("marR")?Math.floor(p.marR-1)+"px":"5px",p.hasOwnProperty("marB")?Math.floor(p.marB)+"px":"3px",p.hasOwnProperty("marL")?Math.floor(p.marL-1)+"px":"5px"];L.style.padding=R.join(" ");for(var D=kt({},p),N={},k=S.map(function(j){return kt(kt({},j),{props:kt({align:"l"},j.props),inheritRProps:kt(kt({},j.inheritRProps),b)})}),O=0,F=function(j){var J=kt(kt({},j.inheritProps),j.props),H=void 0;if(J.buAutoNum){var K=J.level?+J.level:0;N[K]||(N[K]=0),!((v=j.rows)===null||v===void 0)&&v.length&&N[K]++,Object.keys(N).forEach(function(ut){+ut>K&&(N[ut]=0)}),H=og(j,N[K],{isFirst:O===0,isLast:S.length-1===O,bodyProps:D})}else H=og(j,0,{isFirst:O===0,isLast:S.length-1===O,bodyProps:D});L.appendChild(H),O++},G=0,q=k;G<q.length;G++)F(q[G]);M.append(L),d.append(M)}}),l.append(d)}),s.append(l),s}(e):e instanceof AR?L$(e):void 0},n.prototype._renderBackground=function(e,t){var i,r=document.createElement("div");r.classList.add("slide-background"),r.style.setProperty("position","absolute"),r.style.setProperty("left","0"),r.style.setProperty("top","0"),r.style.setProperty("width","100%"),r.style.setProperty("height","100%");var a=e.background;if(a.type==="none"&&(a=e.slideLayout.background),a.type==="none"&&(a=e.slideMaster.background),a.type==="blipFill"){var o=a,s=o.base64,l=o.alpha,u=o.fillRect,c=u===void 0?{}:u,h=c.b,f=h===void 0?0:h,d=c.t,g=d===void 0?0:d,y=c.l,_=y===void 0?0:y,v=c.r,p=v===void 0?0:v,x=this.renderPort.width*_,b=this.renderPort.height*g,S=this.renderPort.width*(1-_-p),M=this.renderPort.height*(1-g-f);r.style.backgroundImage="url(".concat(s,")"),r.style.backgroundSize="".concat(S," ").concat(M),r.style.backgroundPosition="".concat(x,"px ").concat(b,"px"),l&&(r.style.opacity=l+""),r.style.backgroundRepeat="no-repeat"}else if(a.type==="solidFill"){var I=ke(e.background)||ke(e.slideLayout.background)||ke(e.slideMaster.background);I?r.style.setProperty("background",I):r.style.setProperty("background","#fff")}else if(a.type==="gradFill")if(a.path==="circle"){var A=a.tileRect||{},C=(f=A.b,g=A.t,_=A.l,"radial-gradient(circle at ");(p=A.r)===-1?C+=" right":_===-1&&(C+=" left"),g===-1?C+=" top":f===-1&&(C+=" bottom"),f||g||_||p||(C+=" center"),C+=",",C+=a.gsList.map(function(R){return"".concat(ke(R.color)," ").concat(100*R.pos+"%")}).join(","),r.style.setProperty("background",C)}else{var L=((i=a==null?void 0:a.lin)===null||i===void 0?void 0:i.ang)||0;C="linear-gradient(".concat(L+90,"deg,"),C+=a.gsList.map(function(R){return"".concat(ke(R.color)," ").concat(100*R.pos+"%")}).join(","),r.style.setProperty("background",C)}t.append(r)},n}(),P$=function(){function n(e,t){this.dom=e,this.options=t,this._renderWrapper()}return n.prototype._renderWrapper=function(){var e=document.createElement("div");e.classList.add("pptx-preview-wrapper"),e.style.setProperty("background","#000"),e.style.setProperty("width",this.options.width+"px"),this.options.height&&e.style.setProperty("height",this.options.height+"px"),e.style.setProperty("position","relative"),e.style.setProperty("margin","0 auto"),this.options.height&&e.style.setProperty("overflow-y","auto"),this.dom.append(e),this.wrapper=e},n.prototype.preview=function(e){var t=this;return VR("destroy"),FR("destroy"),new Promise(function(i,r){t.wrapper.innerHTML="";var a=new A$;a.load(e).then(function(){try{for(var o=new D$(t.wrapper,a,{viewPort:{width:t.options.width,height:t.options.height}}),s=0;s<a.slides.length;s++)o.renderSlide(s);i(a)}catch(l){r(l)}}).catch(function(o){r(o)})})},n.prototype.destroy=function(){VR("destroy"),FR("destroy")},n}();function R$(n,e){return new P$(n,e)}var N$=function(){var n=this,e=n.$createElement,t=n._self._c||e;return t("div",{staticClass:"vue-office-pptx"},[t("div",{ref:"rootRef",staticClass:"vue-office-pptx-main",staticStyle:{width:"100%",height:"100%"}})])},z$=[];function E$(n,e,t,i,r,a,o,s){var l=typeof n=="function"?n.options:n;l.render=e,l.staticRenderFns=t,l._compiled=!0;var u;if(u=r,u)if(l.functional){l._injectStyles=u;var c=l.render;l.render=function(f,d){return u.call(d),c(f,d)}}else{var h=l.beforeCreate;l.beforeCreate=h?[].concat(h,u):[u]}return{exports:n,options:l}}const O$=xu.defineComponent({name:"VueOfficePptx",props:{src:[String,ArrayBuffer,Blob],requestOptions:{type:Object,default:()=>({})},options:{type:Object,default:()=>({})}},emits:["rendered","error"],setup(n,{emit:e}){let t=null;const i=xu.ref(null);function r(){let s=i.value,l=n.options.width||s.getBoundingClientRect().width||960,u=n.options.height||s.getBoundingClientRect().height||540;t=R$(s,{width:l,height:u})}function a(s){if(typeof s=="string")return fetch(s,n.requestOptions).then(l=>l.arrayBuffer());if(s instanceof ArrayBuffer)return Promise.resolve(s)}function o(){n.src&&a(n.src).then(s=>{t.preview(s).then(l=>{e("rendered",l)}).catch(l=>{e("error",l)})}).catch(s=>{e("error",s)})}return xu.onMounted(()=>{r(),o()}),xu.watch(()=>n.src,()=>{o()}),{rootRef:i}}}),WR={};var B$=E$(O$,N$,z$,!1,V$);function V$(n){for(let e in WR)this[e]=WR[e]}const sg=function(){return B$.exports}();return sg.install=function(n){n.component(sg.name,sg)},sg})})(gz);var mot=gz.exports;const wot=yot(mot);export{wot as V};
|