plugin-file-preview-auth 1.3.3 → 1.3.6
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/client-v2.d.ts +2 -0
- package/client-v2.js +1 -0
- package/dist/client/713.79a55458f5b67f39.js +30 -0
- package/dist/client/823.8b0ab22c181d4523.js +10 -0
- package/dist/client/828.ae8e47a2e7a3bc9e.js +49 -0
- package/dist/client/892.a568eb42fd6f0047.js +10 -0
- package/dist/client/index.js +1 -1
- package/dist/client-v2/index.js +10 -0
- package/dist/externalVersion.js +8 -7
- package/dist/node_modules/@aws-sdk/client-s3/dist-cjs/index.js +3086 -3725
- package/dist/node_modules/@aws-sdk/client-s3/node_modules/.bin/fxparser +16 -0
- package/dist/node_modules/@aws-sdk/client-s3/node_modules/.bin/fxparser.cmd +17 -0
- package/dist/node_modules/@aws-sdk/client-s3/node_modules/.bin/fxparser.ps1 +28 -0
- package/dist/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/signature-v4-multi-region/dist-cjs/index.js +110 -0
- package/dist/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/signature-v4-multi-region/dist-es/SignatureV4MultiRegion.js +66 -0
- package/dist/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/signature-v4-multi-region/dist-es/index.js +2 -0
- package/dist/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/signature-v4-multi-region/dist-es/signature-v4-crt-container.js +3 -0
- package/dist/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/signature-v4-multi-region/dist-types/SignatureV4MultiRegion.d.ts +30 -0
- package/dist/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/signature-v4-multi-region/dist-types/index.d.ts +5 -0
- package/dist/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/signature-v4-multi-region/dist-types/signature-v4-crt-container.d.ts +28 -0
- package/dist/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/signature-v4-multi-region/dist-types/ts3.4/SignatureV4MultiRegion.d.ts +40 -0
- package/dist/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/signature-v4-multi-region/dist-types/ts3.4/index.d.ts +2 -0
- package/dist/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/signature-v4-multi-region/dist-types/ts3.4/signature-v4-crt-container.d.ts +20 -0
- package/dist/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/signature-v4-multi-region/package.json +57 -0
- package/dist/node_modules/@aws-sdk/client-s3/node_modules/@smithy/util-retry/dist-cjs/AdaptiveRetryStrategy.js +1 -0
- package/dist/node_modules/@aws-sdk/client-s3/node_modules/@smithy/util-retry/dist-cjs/ConfiguredRetryStrategy.js +1 -0
- package/dist/node_modules/@aws-sdk/client-s3/node_modules/@smithy/util-retry/dist-cjs/DefaultRateLimiter.js +1 -0
- package/dist/node_modules/@aws-sdk/client-s3/node_modules/@smithy/util-retry/dist-cjs/StandardRetryStrategy.js +1 -0
- package/dist/node_modules/@aws-sdk/client-s3/node_modules/@smithy/util-retry/dist-cjs/config.js +1 -0
- package/dist/node_modules/@aws-sdk/client-s3/node_modules/@smithy/util-retry/dist-cjs/constants.js +1 -0
- package/dist/node_modules/@aws-sdk/client-s3/node_modules/@smithy/util-retry/dist-cjs/defaultRetryBackoffStrategy.js +1 -0
- package/dist/node_modules/@aws-sdk/client-s3/node_modules/@smithy/util-retry/dist-cjs/defaultRetryToken.js +1 -0
- package/dist/node_modules/@aws-sdk/client-s3/node_modules/@smithy/util-retry/dist-cjs/index.js +358 -0
- package/dist/node_modules/@aws-sdk/client-s3/node_modules/@smithy/util-retry/dist-cjs/types.js +1 -0
- package/dist/node_modules/@aws-sdk/client-s3/node_modules/@smithy/util-retry/dist-es/AdaptiveRetryStrategy.js +24 -0
- package/dist/node_modules/@aws-sdk/client-s3/node_modules/@smithy/util-retry/dist-es/ConfiguredRetryStrategy.js +18 -0
- package/dist/node_modules/@aws-sdk/client-s3/node_modules/@smithy/util-retry/dist-es/DefaultRateLimiter.js +100 -0
- package/dist/node_modules/@aws-sdk/client-s3/node_modules/@smithy/util-retry/dist-es/StandardRetryStrategy.js +65 -0
- package/dist/node_modules/@aws-sdk/client-s3/node_modules/@smithy/util-retry/dist-es/config.js +7 -0
- package/dist/node_modules/@aws-sdk/client-s3/node_modules/@smithy/util-retry/dist-es/constants.js +9 -0
- package/dist/node_modules/@aws-sdk/client-s3/node_modules/@smithy/util-retry/dist-es/defaultRetryBackoffStrategy.js +14 -0
- package/dist/node_modules/@aws-sdk/client-s3/node_modules/@smithy/util-retry/dist-es/defaultRetryToken.js +11 -0
- package/dist/node_modules/@aws-sdk/client-s3/node_modules/@smithy/util-retry/dist-es/index.js +7 -0
- package/dist/node_modules/@aws-sdk/client-s3/node_modules/@smithy/util-retry/dist-es/types.js +1 -0
- package/dist/node_modules/@aws-sdk/client-s3/node_modules/@smithy/util-retry/dist-types/AdaptiveRetryStrategy.d.ts +33 -0
- package/dist/node_modules/@aws-sdk/client-s3/node_modules/@smithy/util-retry/dist-types/ConfiguredRetryStrategy.d.ts +32 -0
- package/dist/node_modules/@aws-sdk/client-s3/node_modules/@smithy/util-retry/dist-types/DefaultRateLimiter.d.ts +49 -0
- package/dist/node_modules/@aws-sdk/client-s3/node_modules/@smithy/util-retry/dist-types/StandardRetryStrategy.d.ts +26 -0
- package/dist/node_modules/@aws-sdk/client-s3/node_modules/@smithy/util-retry/dist-types/config.d.ts +20 -0
- package/dist/node_modules/@aws-sdk/client-s3/node_modules/@smithy/util-retry/dist-types/constants.d.ts +59 -0
- package/dist/node_modules/@aws-sdk/client-s3/node_modules/@smithy/util-retry/dist-types/defaultRetryBackoffStrategy.d.ts +5 -0
- package/dist/node_modules/@aws-sdk/client-s3/node_modules/@smithy/util-retry/dist-types/defaultRetryToken.d.ts +9 -0
- package/dist/node_modules/@aws-sdk/client-s3/node_modules/@smithy/util-retry/dist-types/index.d.ts +7 -0
- package/dist/node_modules/@aws-sdk/client-s3/node_modules/@smithy/util-retry/dist-types/ts3.4/AdaptiveRetryStrategy.d.ts +33 -0
- package/dist/node_modules/@aws-sdk/client-s3/node_modules/@smithy/util-retry/dist-types/ts3.4/ConfiguredRetryStrategy.d.ts +32 -0
- package/dist/node_modules/@aws-sdk/client-s3/node_modules/@smithy/util-retry/dist-types/ts3.4/DefaultRateLimiter.d.ts +49 -0
- package/dist/node_modules/@aws-sdk/client-s3/node_modules/@smithy/util-retry/dist-types/ts3.4/StandardRetryStrategy.d.ts +26 -0
- package/dist/node_modules/@aws-sdk/client-s3/node_modules/@smithy/util-retry/dist-types/ts3.4/config.d.ts +20 -0
- package/dist/node_modules/@aws-sdk/client-s3/node_modules/@smithy/util-retry/dist-types/ts3.4/constants.d.ts +59 -0
- package/dist/node_modules/@aws-sdk/client-s3/node_modules/@smithy/util-retry/dist-types/ts3.4/defaultRetryBackoffStrategy.d.ts +5 -0
- package/dist/node_modules/@aws-sdk/client-s3/node_modules/@smithy/util-retry/dist-types/ts3.4/defaultRetryToken.d.ts +9 -0
- package/dist/node_modules/@aws-sdk/client-s3/node_modules/@smithy/util-retry/dist-types/ts3.4/index.d.ts +7 -0
- package/dist/node_modules/@aws-sdk/client-s3/node_modules/@smithy/util-retry/dist-types/ts3.4/types.d.ts +19 -0
- package/dist/node_modules/@aws-sdk/client-s3/node_modules/@smithy/util-retry/dist-types/types.d.ts +19 -0
- package/dist/node_modules/@aws-sdk/client-s3/node_modules/@smithy/util-retry/package.json +68 -0
- package/dist/node_modules/@aws-sdk/client-s3/package.json +1 -1
- package/dist/node_modules/xlsx/package.json +1 -1
- package/dist/server/ocr/tesseract-runner.js +3 -1
- package/dist/server/plugin.js +22 -4
- package/package.json +57 -45
- package/src/client/AIFilePreviewAction.tsx +282 -0
- package/src/client/__tests__/ocr-utils.test.ts +85 -0
- package/src/client/client.d.ts +258 -0
- package/src/client/index.tsx +1807 -0
- package/src/client/locale.ts +21 -0
- package/src/client-v2/index.tsx +1 -0
- package/src/client-v2/plugin.tsx +7 -0
- package/{dist/index.d.ts → src/index.ts} +11 -10
- package/src/locale/en-US.json +14 -0
- package/src/locale/vi-VN.json +14 -0
- package/src/locale/zh-CN.json +14 -0
- package/src/server/__tests__/smoke.test.ts +17 -0
- package/src/server/collections/attachment-ocr-results.ts +40 -0
- package/{dist/server/collections/file-preview-auth.d.ts → src/server/collections/file-preview-auth.ts} +15 -14
- package/src/server/excel-parser-handler.ts +128 -0
- package/{dist/server/index.d.ts → src/server/index.ts} +10 -9
- package/src/server/migrations/20260528000000-move-ocr-fields-out-of-attachments.ts +39 -0
- package/src/server/ocr/tesseract-runner.ts +389 -0
- package/src/server/ocr/tesseract-worker.ts +235 -0
- package/src/server/plugin.ts +1470 -0
- package/dist/client/166.17caa11c2ba40313.js +0 -10
- package/dist/client/351.0f0ce45c92425c8f.js +0 -10
- package/dist/client/374.96762d13b15e7467.js +0 -30
- package/dist/client/514.2a8b6aa0d2fcd4b2.js +0 -49
- package/dist/client/AIFilePreviewAction.d.ts +0 -42
- package/dist/client/index.d.ts +0 -14
- package/dist/client/locale.d.ts +0 -10
- package/dist/node_modules/xlsx/node_modules/.bin/crc32 +0 -15
- package/dist/node_modules/xlsx/node_modules/.bin/crc32.cmd +0 -7
- package/dist/server/collections/attachment-ocr-results.d.ts +0 -2
- package/dist/server/excel-parser-handler.d.ts +0 -60
- package/dist/server/migrations/20260528000000-move-ocr-fields-out-of-attachments.d.ts +0 -5
- package/dist/server/ocr/tesseract-runner.d.ts +0 -34
- package/dist/server/ocr/tesseract-worker.d.ts +0 -27
- package/dist/server/plugin.d.ts +0 -54
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file is part of the NocoBase (R) project.
|
|
3
|
+
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
+
* Authors: NocoBase Team.
|
|
5
|
+
*
|
|
6
|
+
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
+
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
"use strict";(self.webpackChunkplugin_file_preview_auth=self.webpackChunkplugin_file_preview_auth||[]).push([["828"],{94:function(t,e,n){var r=n(155),i=Symbol.for("react.element"),o=(Symbol.for("react.fragment"),Object.prototype.hasOwnProperty),a=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function l(t,e,n){var r,l={},u=null,h=null;for(r in void 0!==n&&(u=""+n),void 0!==e.key&&(u=""+e.key),void 0!==e.ref&&(h=e.ref),e)o.call(e,r)&&!s.hasOwnProperty(r)&&(l[r]=e[r]);if(t&&t.defaultProps)for(r in e=t.defaultProps)void 0===l[r]&&(l[r]=e[r]);return{$$typeof:i,type:t,key:u,ref:h,props:l,_owner:a.current}}e.jsx=l,e.jsxs=l},870:function(t,e,n){t.exports=n(94)},511:function(t,e,n){n.d(e,{P:function(){return bT},a:function(){return F},b:function(){return W},c:function(){return V},g:function(){return B},p:function(){return tN},r:function(){return G}});var r,i,o=n(870),a=n(155),s=Object.defineProperty,l="u">typeof globalThis?globalThis:"u">typeof window?window:"u">typeof global?global:"u">typeof self?self:{};function u(t){throw Error('Could not dynamically require "'+t+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var h={exports:{}};let c=(p||(p=1,h.exports=(function t(e,n,r){function i(a,s){if(!n[a]){if(!e[a]){if(!s&&u)return u(a,!0);if(o)return o(a,!0);var l=Error("Cannot find module '"+a+"'");throw l.code="MODULE_NOT_FOUND",l}var h=n[a]={exports:{}};e[a][0].call(h.exports,function(t){return i(e[a][1][t]||t)},h,h.exports,t,e,n,r)}return n[a].exports}for(var o=u,a=0;a<r.length;a++)i(r[a]);return i})({1:[function(t,e,n){var r=t("./utils"),i=t("./support"),o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";n.encode=function(t){for(var e,n,i,a,s,l,u,h=[],c=0,d=t.length,p=d,f="string"!==r.getTypeOf(t);c<t.length;)p=d-c,i=f?(e=t[c++],n=c<d?t[c++]:0,c<d?t[c++]:0):(e=t.charCodeAt(c++),n=c<d?t.charCodeAt(c++):0,c<d?t.charCodeAt(c++):0),a=e>>2,s=(3&e)<<4|n>>4,l=1<p?(15&n)<<2|i>>6:64,u=2<p?63&i:64,h.push(o.charAt(a)+o.charAt(s)+o.charAt(l)+o.charAt(u));return h.join("")},n.decode=function(t){var e,n,r,a,s,l,u=0,h=0,c="data:";if(t.substr(0,c.length)===c)throw Error("Invalid base64 input, it looks like a data url.");var d,p=3*(t=t.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(t.charAt(t.length-1)===o.charAt(64)&&p--,t.charAt(t.length-2)===o.charAt(64)&&p--,p%1!=0)throw Error("Invalid base64 input, bad content length.");for(d=i.uint8array?new Uint8Array(0|p):Array(0|p);u<t.length;)e=o.indexOf(t.charAt(u++))<<2|(a=o.indexOf(t.charAt(u++)))>>4,n=(15&a)<<4|(s=o.indexOf(t.charAt(u++)))>>2,r=(3&s)<<6|(l=o.indexOf(t.charAt(u++))),d[h++]=e,64!==s&&(d[h++]=n),64!==l&&(d[h++]=r);return d}},{"./support":30,"./utils":32}],2:[function(t,e,n){var r=t("./external"),i=t("./stream/DataWorker"),o=t("./stream/Crc32Probe"),a=t("./stream/DataLengthProbe");function s(t,e,n,r,i){this.compressedSize=t,this.uncompressedSize=e,this.crc32=n,this.compression=r,this.compressedContent=i}s.prototype={getContentWorker:function(){var t=new i(r.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new a("data_length")),e=this;return t.on("end",function(){if(this.streamInfo.data_length!==e.uncompressedSize)throw Error("Bug : uncompressed data size mismatch")}),t},getCompressedWorker:function(){return new i(r.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},s.createWorkerFrom=function(t,e,n){return t.pipe(new o).pipe(new a("uncompressedSize")).pipe(e.compressWorker(n)).pipe(new a("compressedSize")).withStreamInfo("compression",e)},e.exports=s},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(t,e,n){var r=t("./stream/GenericWorker");n.STORE={magic:"\0\0",compressWorker:function(){return new r("STORE compression")},uncompressWorker:function(){return new r("STORE decompression")}},n.DEFLATE=t("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(t,e,n){var r=t("./utils"),i=function(){for(var t,e=[],n=0;n<256;n++){t=n;for(var r=0;r<8;r++)t=1&t?0xedb88320^t>>>1:t>>>1;e[n]=t}return e}();e.exports=function(t,e){return void 0!==t&&t.length?"string"!==r.getTypeOf(t)?function(t,e,n){var r=0+n;t^=-1;for(var o=0;o<r;o++)t=t>>>8^i[255&(t^e[o])];return -1^t}(0|e,t,t.length):function(t,e,n){var r=0+n;t^=-1;for(var o=0;o<r;o++)t=t>>>8^i[255&(t^e.charCodeAt(o))];return -1^t}(0|e,t,t.length):0}},{"./utils":32}],5:[function(t,e,n){n.base64=!1,n.binary=!1,n.dir=!1,n.createFolders=!0,n.date=null,n.compression=null,n.compressionOptions=null,n.comment=null,n.unixPermissions=null,n.dosPermissions=null},{}],6:[function(t,e,n){e.exports={Promise:"u">typeof Promise?Promise:t("lie")}},{lie:37}],7:[function(t,e,n){var r="u">typeof Uint8Array&&"u">typeof Uint16Array&&"u">typeof Uint32Array,i=t("pako"),o=t("./utils"),a=t("./stream/GenericWorker"),s=r?"uint8array":"array";function l(t,e){a.call(this,"FlateWorker/"+t),this._pako=null,this._pakoAction=t,this._pakoOptions=e,this.meta={}}n.magic="\b\0",o.inherits(l,a),l.prototype.processChunk=function(t){this.meta=t.meta,null===this._pako&&this._createPako(),this._pako.push(o.transformTo(s,t.data),!1)},l.prototype.flush=function(){a.prototype.flush.call(this),null===this._pako&&this._createPako(),this._pako.push([],!0)},l.prototype.cleanUp=function(){a.prototype.cleanUp.call(this),this._pako=null},l.prototype._createPako=function(){this._pako=new i[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var t=this;this._pako.onData=function(e){t.push({data:e,meta:t.meta})}},n.compressWorker=function(t){return new l("Deflate",t)},n.uncompressWorker=function(){return new l("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(t,e,n){function r(t,e){var n,r="";for(n=0;n<e;n++)r+=String.fromCharCode(255&t),t>>>=8;return r}function i(t,e,n,i,a,h){var c,d,p,f,g=t.file,m=t.compression,y=h!==s.utf8encode,v=o.transformTo("string",h(g.name)),_=o.transformTo("string",s.utf8encode(g.name)),x=g.comment,b=o.transformTo("string",h(x)),w=o.transformTo("string",s.utf8encode(x)),S=_.length!==g.name.length,k=w.length!==x.length,M="",C="",T="",I=g.dir,D=g.date,A={crc32:0,compressedSize:0,uncompressedSize:0};e&&!n||(A.crc32=t.crc32,A.compressedSize=t.compressedSize,A.uncompressedSize=t.uncompressedSize);var L=0;e&&(L|=8),!y&&(S||k)&&(L|=2048);var $=0,P=0;I&&($|=16),"UNIX"===a?(P=798,$|=(c=g.unixPermissions,d=c,c||(d=I?16893:33204),(65535&d)<<16)):(P=20,$|=63&(g.dosPermissions||0)),p=(D.getUTCHours()<<6|D.getUTCMinutes())<<5|D.getUTCSeconds()/2,f=(D.getUTCFullYear()-1980<<4|D.getUTCMonth()+1)<<5|D.getUTCDate(),S&&(C=r(1,1)+r(l(v),4)+_,M+="up"+r(C.length,2)+C),k&&(T=r(1,1)+r(l(b),4)+w,M+="uc"+r(T.length,2)+T);var O="";return O+=`
|
|
11
|
+
\0`,O+=r(L,2),O+=m.magic,O+=r(p,2),O+=r(f,2),O+=r(A.crc32,4),O+=r(A.compressedSize,4),O+=r(A.uncompressedSize,4),O+=r(v.length,2),O+=r(M.length,2),{fileRecord:u.LOCAL_FILE_HEADER+O+v+M,dirRecord:u.CENTRAL_FILE_HEADER+r(P,2)+O+r(b.length,2)+"\0\0\0\0"+r($,4)+r(i,4)+v+M+b}}var o=t("../utils"),a=t("../stream/GenericWorker"),s=t("../utf8"),l=t("../crc32"),u=t("../signature");function h(t,e,n,r){a.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=e,this.zipPlatform=n,this.encodeFileName=r,this.streamFiles=t,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}o.inherits(h,a),h.prototype.push=function(t){var e=t.meta.percent||0,n=this.entriesCount,r=this._sources.length;this.accumulate?this.contentBuffer.push(t):(this.bytesWritten+=t.data.length,a.prototype.push.call(this,{data:t.data,meta:{currentFile:this.currentFile,percent:n?(e+100*(n-r-1))/n:100}}))},h.prototype.openedSource=function(t){this.currentSourceOffset=this.bytesWritten,this.currentFile=t.file.name;var e=this.streamFiles&&!t.file.dir;if(e){var n=i(t,e,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:n.fileRecord,meta:{percent:0}})}else this.accumulate=!0},h.prototype.closedSource=function(t){this.accumulate=!1;var e=this.streamFiles&&!t.file.dir,n=i(t,e,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(n.dirRecord),e)this.push({data:u.DATA_DESCRIPTOR+r(t.crc32,4)+r(t.compressedSize,4)+r(t.uncompressedSize,4),meta:{percent:100}});else for(this.push({data:n.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},h.prototype.flush=function(){for(var t,e,n,i,a=this.bytesWritten,s=0;s<this.dirRecords.length;s++)this.push({data:this.dirRecords[s],meta:{percent:100}});var l=this.bytesWritten-a,h=(t=this.dirRecords.length,e=this.zipComment,n=this.encodeFileName,i=o.transformTo("string",n(e)),u.CENTRAL_DIRECTORY_END+"\0\0\0\0"+r(t,2)+r(t,2)+r(l,4)+r(a,4)+r(i.length,2)+i);this.push({data:h,meta:{percent:100}})},h.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},h.prototype.registerPrevious=function(t){this._sources.push(t);var e=this;return t.on("data",function(t){e.processChunk(t)}),t.on("end",function(){e.closedSource(e.previous.streamInfo),e._sources.length?e.prepareNextSource():e.end()}),t.on("error",function(t){e.error(t)}),this},h.prototype.resume=function(){return!!a.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},h.prototype.error=function(t){var e=this._sources;if(!a.prototype.error.call(this,t))return!1;for(var n=0;n<e.length;n++)try{e[n].error(t)}catch{}return!0},h.prototype.lock=function(){a.prototype.lock.call(this);for(var t=this._sources,e=0;e<t.length;e++)t[e].lock()},e.exports=h},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(t,e,n){var r=t("../compressions"),i=t("./ZipFileWorker");n.generateWorker=function(t,e,n){var o=new i(e.streamFiles,n,e.platform,e.encodeFileName),a=0;try{t.forEach(function(t,n){a++;var i=function(t,e){var n=t||e,i=r[n];if(!i)throw Error(n+" is not a valid compression method !");return i}(n.options.compression,e.compression),s=n.options.compressionOptions||e.compressionOptions||{},l=n.dir,u=n.date;n._compressWorker(i,s).withStreamInfo("file",{name:t,dir:l,date:u,comment:n.comment||"",unixPermissions:n.unixPermissions,dosPermissions:n.dosPermissions}).pipe(o)}),o.entriesCount=a}catch(t){o.error(t)}return o}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(t,e,n){function r(){if(!(this instanceof r))return new r;if(arguments.length)throw Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var t=new r;for(var e in this)"function"!=typeof this[e]&&(t[e]=this[e]);return t}}(r.prototype=t("./object")).loadAsync=t("./load"),r.support=t("./support"),r.defaults=t("./defaults"),r.version="3.10.1",r.loadAsync=function(t,e){return new r().loadAsync(t,e)},r.external=t("./external"),e.exports=r},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(t,e,n){var r=t("./utils"),i=t("./external"),o=t("./utf8"),a=t("./zipEntries"),s=t("./stream/Crc32Probe"),l=t("./nodejsUtils");e.exports=function(t,e){var n=this;return e=r.extend(e||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:o.utf8decode}),l.isNode&&l.isStream(t)?i.Promise.reject(Error("JSZip can't accept a stream when loading a zip file.")):r.prepareContent("the loaded zip file",t,!0,e.optimizedBinaryString,e.base64).then(function(t){var n=new a(e);return n.load(t),n}).then(function(t){var n=[i.Promise.resolve(t)],r=t.files;if(e.checkCRC32)for(var o=0;o<r.length;o++)n.push(function(t){return new i.Promise(function(e,n){var r=t.decompressed.getContentWorker().pipe(new s);r.on("error",function(t){n(t)}).on("end",function(){r.streamInfo.crc32!==t.decompressed.crc32?n(Error("Corrupted zip : CRC32 mismatch")):e()}).resume()})}(r[o]));return i.Promise.all(n)}).then(function(t){for(var i=t.shift(),o=i.files,a=0;a<o.length;a++){var s=o[a],l=s.fileNameStr,u=r.resolve(s.fileNameStr);n.file(u,s.decompressed,{binary:!0,optimizedBinaryString:!0,date:s.date,dir:s.dir,comment:s.fileCommentStr.length?s.fileCommentStr:null,unixPermissions:s.unixPermissions,dosPermissions:s.dosPermissions,createFolders:e.createFolders}),s.dir||(n.file(u).unsafeOriginalName=l)}return i.zipComment.length&&(n.comment=i.zipComment),n})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(t,e,n){var r=t("../utils"),i=t("../stream/GenericWorker");function o(t,e){i.call(this,"Nodejs stream input adapter for "+t),this._upstreamEnded=!1,this._bindStream(e)}r.inherits(o,i),o.prototype._bindStream=function(t){var e=this;(this._stream=t).pause(),t.on("data",function(t){e.push({data:t,meta:{percent:0}})}).on("error",function(t){e.isPaused?this.generatedError=t:e.error(t)}).on("end",function(){e.isPaused?e._upstreamEnded=!0:e.end()})},o.prototype.pause=function(){return!!i.prototype.pause.call(this)&&(this._stream.pause(),!0)},o.prototype.resume=function(){return!!i.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},e.exports=o},{"../stream/GenericWorker":28,"../utils":32}],13:[function(t,e,n){var r=t("readable-stream").Readable;function i(t,e,n){r.call(this,e),this._helper=t;var i=this;t.on("data",function(t,e){i.push(t)||i._helper.pause(),n&&n(e)}).on("error",function(t){i.emit("error",t)}).on("end",function(){i.push(null)})}t("../utils").inherits(i,r),i.prototype._read=function(){this._helper.resume()},e.exports=i},{"../utils":32,"readable-stream":16}],14:[function(t,e,n){e.exports={isNode:"u">typeof Buffer,newBufferFrom:function(t,e){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(t,e);if("number"==typeof t)throw Error('The "data" argument must not be a number');return new Buffer(t,e)},allocBuffer:function(t){if(Buffer.alloc)return Buffer.alloc(t);var e=new Buffer(t);return e.fill(0),e},isBuffer:function(t){return Buffer.isBuffer(t)},isStream:function(t){return t&&"function"==typeof t.on&&"function"==typeof t.pause&&"function"==typeof t.resume}}},{}],15:[function(t,e,n){function r(t,e,n){var r,i=o.getTypeOf(e),s=o.extend(n||{},l);s.date=s.date||new Date,null!==s.compression&&(s.compression=s.compression.toUpperCase()),"string"==typeof s.unixPermissions&&(s.unixPermissions=parseInt(s.unixPermissions,8)),s.unixPermissions&&16384&s.unixPermissions&&(s.dir=!0),s.dosPermissions&&16&s.dosPermissions&&(s.dir=!0),s.dir&&(t=g(t)),s.createFolders&&(r=f(t))&&m.call(this,r,!0);var c="string"===i&&!1===s.binary&&!1===s.base64;n&&void 0!==n.binary||(s.binary=!c),(e instanceof u&&0===e.uncompressedSize||s.dir||!e||0===e.length)&&(s.base64=!1,s.binary=!0,e="",s.compression="STORE",i="string");var y=null;y=e instanceof u||e instanceof a?e:d.isNode&&d.isStream(e)?new p(t,e):o.prepareContent(t,e,s.binary,s.optimizedBinaryString,s.base64);var v=new h(t,y,s);this.files[t]=v}var i=t("./utf8"),o=t("./utils"),a=t("./stream/GenericWorker"),s=t("./stream/StreamHelper"),l=t("./defaults"),u=t("./compressedObject"),h=t("./zipObject"),c=t("./generate"),d=t("./nodejsUtils"),p=t("./nodejs/NodejsStreamInputAdapter"),f=function(t){"/"===t.slice(-1)&&(t=t.substring(0,t.length-1));var e=t.lastIndexOf("/");return 0<e?t.substring(0,e):""},g=function(t){return"/"!==t.slice(-1)&&(t+="/"),t},m=function(t,e){return e=void 0!==e?e:l.createFolders,t=g(t),this.files[t]||r.call(this,t,null,{dir:!0,createFolders:e}),this.files[t]};function y(t){return"[object RegExp]"===Object.prototype.toString.call(t)}e.exports={load:function(){throw Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(t){var e,n,r;for(e in this.files)r=this.files[e],(n=e.slice(this.root.length,e.length))&&e.slice(0,this.root.length)===this.root&&t(n,r)},filter:function(t){var e=[];return this.forEach(function(n,r){t(n,r)&&e.push(r)}),e},file:function(t,e,n){if(1!=arguments.length)return t=this.root+t,r.call(this,t,e,n),this;if(y(t)){var i=t;return this.filter(function(t,e){return!e.dir&&i.test(t)})}var o=this.files[this.root+t];return o&&!o.dir?o:null},folder:function(t){if(!t)return this;if(y(t))return this.filter(function(e,n){return n.dir&&t.test(e)});var e=this.root+t,n=m.call(this,e),r=this.clone();return r.root=n.name,r},remove:function(t){t=this.root+t;var e=this.files[t];if(e||("/"!==t.slice(-1)&&(t+="/"),e=this.files[t]),e&&!e.dir)delete this.files[t];else for(var n=this.filter(function(e,n){return n.name.slice(0,t.length)===t}),r=0;r<n.length;r++)delete this.files[n[r].name];return this},generate:function(){throw Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(t){var e,n={};try{if((n=o.extend(t||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:i.utf8encode})).type=n.type.toLowerCase(),n.compression=n.compression.toUpperCase(),"binarystring"===n.type&&(n.type="string"),!n.type)throw Error("No output type specified.");o.checkSupport(n.type),"darwin"!==n.platform&&"freebsd"!==n.platform&&"linux"!==n.platform&&"sunos"!==n.platform||(n.platform="UNIX"),"win32"===n.platform&&(n.platform="DOS");var r=n.comment||this.comment||"";e=c.generateWorker(this,n,r)}catch(t){(e=new a("error")).error(t)}return new s(e,n.type||"string",n.mimeType)},generateAsync:function(t,e){return this.generateInternalStream(t).accumulate(e)},generateNodeStream:function(t,e){return(t=t||{}).type||(t.type="nodebuffer"),this.generateInternalStream(t).toNodejsStream(e)}}},{"./compressedObject":2,"./defaults":5,"./generate":9,"./nodejs/NodejsStreamInputAdapter":12,"./nodejsUtils":14,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31,"./utils":32,"./zipObject":35}],16:[function(t,e,n){e.exports=t("stream")},{stream:void 0}],17:[function(t,e,n){var r=t("./DataReader");function i(t){r.call(this,t);for(var e=0;e<this.data.length;e++)t[e]=255&t[e]}t("../utils").inherits(i,r),i.prototype.byteAt=function(t){return this.data[this.zero+t]},i.prototype.lastIndexOfSignature=function(t){for(var e=t.charCodeAt(0),n=t.charCodeAt(1),r=t.charCodeAt(2),i=t.charCodeAt(3),o=this.length-4;0<=o;--o)if(this.data[o]===e&&this.data[o+1]===n&&this.data[o+2]===r&&this.data[o+3]===i)return o-this.zero;return -1},i.prototype.readAndCheckSignature=function(t){var e=t.charCodeAt(0),n=t.charCodeAt(1),r=t.charCodeAt(2),i=t.charCodeAt(3),o=this.readData(4);return e===o[0]&&n===o[1]&&r===o[2]&&i===o[3]},i.prototype.readData=function(t){if(this.checkOffset(t),0===t)return[];var e=this.data.slice(this.zero+this.index,this.zero+this.index+t);return this.index+=t,e},e.exports=i},{"../utils":32,"./DataReader":18}],18:[function(t,e,n){var r=t("../utils");function i(t){this.data=t,this.length=t.length,this.index=0,this.zero=0}i.prototype={checkOffset:function(t){this.checkIndex(this.index+t)},checkIndex:function(t){if(this.length<this.zero+t||t<0)throw Error("End of data reached (data length = "+this.length+", asked index = "+t+"). Corrupted zip ?")},setIndex:function(t){this.checkIndex(t),this.index=t},skip:function(t){this.setIndex(this.index+t)},byteAt:function(){},readInt:function(t){var e,n=0;for(this.checkOffset(t),e=this.index+t-1;e>=this.index;e--)n=(n<<8)+this.byteAt(e);return this.index+=t,n},readString:function(t){return r.transformTo("string",this.readData(t))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var t=this.readInt(4);return new Date(Date.UTC(1980+(t>>25&127),(t>>21&15)-1,t>>16&31,t>>11&31,t>>5&63,(31&t)<<1))}},e.exports=i},{"../utils":32}],19:[function(t,e,n){var r=t("./Uint8ArrayReader");function i(t){r.call(this,t)}t("../utils").inherits(i,r),i.prototype.readData=function(t){this.checkOffset(t);var e=this.data.slice(this.zero+this.index,this.zero+this.index+t);return this.index+=t,e},e.exports=i},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(t,e,n){var r=t("./DataReader");function i(t){r.call(this,t)}t("../utils").inherits(i,r),i.prototype.byteAt=function(t){return this.data.charCodeAt(this.zero+t)},i.prototype.lastIndexOfSignature=function(t){return this.data.lastIndexOf(t)-this.zero},i.prototype.readAndCheckSignature=function(t){return t===this.readData(4)},i.prototype.readData=function(t){this.checkOffset(t);var e=this.data.slice(this.zero+this.index,this.zero+this.index+t);return this.index+=t,e},e.exports=i},{"../utils":32,"./DataReader":18}],21:[function(t,e,n){var r=t("./ArrayReader");function i(t){r.call(this,t)}t("../utils").inherits(i,r),i.prototype.readData=function(t){if(this.checkOffset(t),0===t)return new Uint8Array(0);var e=this.data.subarray(this.zero+this.index,this.zero+this.index+t);return this.index+=t,e},e.exports=i},{"../utils":32,"./ArrayReader":17}],22:[function(t,e,n){var r=t("../utils"),i=t("../support"),o=t("./ArrayReader"),a=t("./StringReader"),s=t("./NodeBufferReader"),l=t("./Uint8ArrayReader");e.exports=function(t){var e=r.getTypeOf(t);return r.checkSupport(e),"string"!==e||i.uint8array?"nodebuffer"===e?new s(t):i.uint8array?new l(r.transformTo("uint8array",t)):new o(r.transformTo("array",t)):new a(t)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(t,e,n){n.LOCAL_FILE_HEADER="PK\x03\x04",n.CENTRAL_FILE_HEADER="PK\x01\x02",n.CENTRAL_DIRECTORY_END="PK\x05\x06",n.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x06\x07",n.ZIP64_CENTRAL_DIRECTORY_END="PK\x06\x06",n.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(t,e,n){var r=t("./GenericWorker"),i=t("../utils");function o(t){r.call(this,"ConvertWorker to "+t),this.destType=t}i.inherits(o,r),o.prototype.processChunk=function(t){this.push({data:i.transformTo(this.destType,t.data),meta:t.meta})},e.exports=o},{"../utils":32,"./GenericWorker":28}],25:[function(t,e,n){var r=t("./GenericWorker"),i=t("../crc32");function o(){r.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}t("../utils").inherits(o,r),o.prototype.processChunk=function(t){this.streamInfo.crc32=i(t.data,this.streamInfo.crc32||0),this.push(t)},e.exports=o},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(t,e,n){var r=t("../utils"),i=t("./GenericWorker");function o(t){i.call(this,"DataLengthProbe for "+t),this.propName=t,this.withStreamInfo(t,0)}r.inherits(o,i),o.prototype.processChunk=function(t){if(t){var e=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=e+t.data.length}i.prototype.processChunk.call(this,t)},e.exports=o},{"../utils":32,"./GenericWorker":28}],27:[function(t,e,n){var r=t("../utils"),i=t("./GenericWorker");function o(t){i.call(this,"DataWorker");var e=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,t.then(function(t){e.dataIsReady=!0,e.data=t,e.max=t&&t.length||0,e.type=r.getTypeOf(t),e.isPaused||e._tickAndRepeat()},function(t){e.error(t)})}r.inherits(o,i),o.prototype.cleanUp=function(){i.prototype.cleanUp.call(this),this.data=null},o.prototype.resume=function(){return!!i.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,r.delay(this._tickAndRepeat,[],this)),!0)},o.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(r.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},o.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var t=null,e=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":t=this.data.substring(this.index,e);break;case"uint8array":t=this.data.subarray(this.index,e);break;case"array":case"nodebuffer":t=this.data.slice(this.index,e)}return this.index=e,this.push({data:t,meta:{percent:this.max?this.index/this.max*100:0}})},e.exports=o},{"../utils":32,"./GenericWorker":28}],28:[function(t,e,n){function r(t){this.name=t||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}r.prototype={push:function(t){this.emit("data",t)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(t){this.emit("error",t)}return!0},error:function(t){return!this.isFinished&&(this.isPaused?this.generatedError=t:(this.isFinished=!0,this.emit("error",t),this.previous&&this.previous.error(t),this.cleanUp()),!0)},on:function(t,e){return this._listeners[t].push(e),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(t,e){if(this._listeners[t])for(var n=0;n<this._listeners[t].length;n++)this._listeners[t][n].call(this,e)},pipe:function(t){return t.registerPrevious(this)},registerPrevious:function(t){if(this.isLocked)throw Error("The stream '"+this+"' has already been used.");this.streamInfo=t.streamInfo,this.mergeStreamInfo(),this.previous=t;var e=this;return t.on("data",function(t){e.processChunk(t)}),t.on("end",function(){e.end()}),t.on("error",function(t){e.error(t)}),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;var t=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),t=!0),this.previous&&this.previous.resume(),!t},flush:function(){},processChunk:function(t){this.push(t)},withStreamInfo:function(t,e){return this.extraStreamInfo[t]=e,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var t in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,t)&&(this.streamInfo[t]=this.extraStreamInfo[t])},lock:function(){if(this.isLocked)throw Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var t="Worker "+this.name;return this.previous?this.previous+" -> "+t:t}},e.exports=r},{}],29:[function(t,e,n){var r=t("../utils"),i=t("./ConvertWorker"),o=t("./GenericWorker"),a=t("../base64"),s=t("../support"),l=t("../external"),u=null;if(s.nodestream)try{u=t("../nodejs/NodejsStreamOutputAdapter")}catch{}function h(t,e,n){var a=e;switch(e){case"blob":case"arraybuffer":a="uint8array";break;case"base64":a="string"}try{this._internalType=a,this._outputType=e,this._mimeType=n,r.checkSupport(a),this._worker=t.pipe(new i(a)),t.lock()}catch(t){this._worker=new o("error"),this._worker.error(t)}}h.prototype={accumulate:function(t){var e;return e=this,new l.Promise(function(n,i){var o=[],s=e._internalType,l=e._outputType,u=e._mimeType;e.on("data",function(e,n){o.push(e),t&&t(n)}).on("error",function(t){o=[],i(t)}).on("end",function(){try{var t=function(t,e,n){switch(t){case"blob":return r.newBlob(r.transformTo("arraybuffer",e),n);case"base64":return a.encode(e);default:return r.transformTo(t,e)}}(l,function(t,e){var n,r=0,i=null,o=0;for(n=0;n<e.length;n++)o+=e[n].length;switch(t){case"string":return e.join("");case"array":return Array.prototype.concat.apply([],e);case"uint8array":for(i=new Uint8Array(o),n=0;n<e.length;n++)i.set(e[n],r),r+=e[n].length;return i;case"nodebuffer":return Buffer.concat(e);default:throw Error("concat : unsupported type '"+t+"'")}}(s,o),u);n(t)}catch(t){i(t)}o=[]}).resume()})},on:function(t,e){var n=this;return"data"===t?this._worker.on(t,function(t){e.call(n,t.data,t.meta)}):this._worker.on(t,function(){r.delay(e,arguments,n)}),this},resume:function(){return r.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(t){if(r.checkSupport("nodestream"),"nodebuffer"!==this._outputType)throw Error(this._outputType+" is not supported by this method");return new u(this,{objectMode:"nodebuffer"!==this._outputType},t)}},e.exports=h},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(t,e,n){if(n.base64=!0,n.array=!0,n.string=!0,n.arraybuffer="u">typeof ArrayBuffer&&"u">typeof Uint8Array,n.nodebuffer="u">typeof Buffer,n.uint8array="u">typeof Uint8Array,typeof ArrayBuffer>"u")n.blob=!1;else{var r=new ArrayBuffer(0);try{n.blob=0===new Blob([r],{type:"application/zip"}).size}catch{try{var i=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);i.append(r),n.blob=0===i.getBlob("application/zip").size}catch{n.blob=!1}}}try{n.nodestream=!!t("readable-stream").Readable}catch{n.nodestream=!1}},{"readable-stream":16}],31:[function(t,e,n){for(var r=t("./utils"),i=t("./support"),o=t("./nodejsUtils"),a=t("./stream/GenericWorker"),s=Array(256),l=0;l<256;l++)s[l]=252<=l?6:248<=l?5:240<=l?4:224<=l?3:192<=l?2:1;function u(){a.call(this,"utf-8 decode"),this.leftOver=null}function h(){a.call(this,"utf-8 encode")}s[254]=s[254]=1,n.utf8encode=function(t){return i.nodebuffer?o.newBufferFrom(t,"utf-8"):function(t){var e,n,r,o,a,s=t.length,l=0;for(o=0;o<s;o++)(64512&(n=t.charCodeAt(o)))==55296&&o+1<s&&(64512&(r=t.charCodeAt(o+1)))==56320&&(n=65536+(n-55296<<10)+(r-56320),o++),l+=n<128?1:n<2048?2:n<65536?3:4;for(e=i.uint8array?new Uint8Array(l):Array(l),o=a=0;a<l;o++)(64512&(n=t.charCodeAt(o)))==55296&&o+1<s&&(64512&(r=t.charCodeAt(o+1)))==56320&&(n=65536+(n-55296<<10)+(r-56320),o++),n<128?e[a++]=n:(n<2048?e[a++]=192|n>>>6:(n<65536?e[a++]=224|n>>>12:(e[a++]=240|n>>>18,e[a++]=128|n>>>12&63),e[a++]=128|n>>>6&63),e[a++]=128|63&n);return e}(t)},n.utf8decode=function(t){return i.nodebuffer?r.transformTo("nodebuffer",t).toString("utf-8"):function(t){var e,n,i,o,a=t.length,l=Array(2*a);for(e=n=0;e<a;)if((i=t[e++])<128)l[n++]=i;else if(4<(o=s[i]))l[n++]=65533,e+=o-1;else{for(i&=2===o?31:3===o?15:7;1<o&&e<a;)i=i<<6|63&t[e++],o--;1<o?l[n++]=65533:i<65536?l[n++]=i:(i-=65536,l[n++]=55296|i>>10&1023,l[n++]=56320|1023&i)}return l.length!==n&&(l.subarray?l=l.subarray(0,n):l.length=n),r.applyFromCharCode(l)}(t=r.transformTo(i.uint8array?"uint8array":"array",t))},r.inherits(u,a),u.prototype.processChunk=function(t){var e=r.transformTo(i.uint8array?"uint8array":"array",t.data);if(this.leftOver&&this.leftOver.length){if(i.uint8array){var o=e;(e=new Uint8Array(o.length+this.leftOver.length)).set(this.leftOver,0),e.set(o,this.leftOver.length)}else e=this.leftOver.concat(e);this.leftOver=null}var a=function(t,e){var n;for((e=e||t.length)>t.length&&(e=t.length),n=e-1;0<=n&&(192&t[n])==128;)n--;return n<0||0===n?e:n+s[t[n]]>e?n:e}(e),l=e;a!==e.length&&(i.uint8array?(l=e.subarray(0,a),this.leftOver=e.subarray(a,e.length)):(l=e.slice(0,a),this.leftOver=e.slice(a,e.length))),this.push({data:n.utf8decode(l),meta:t.meta})},u.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:n.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},n.Utf8DecodeWorker=u,r.inherits(h,a),h.prototype.processChunk=function(t){this.push({data:n.utf8encode(t.data),meta:t.meta})},n.Utf8EncodeWorker=h},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(t,e,n){var r=t("./support"),i=t("./base64"),o=t("./nodejsUtils"),a=t("./external");function s(t){return t}function l(t,e){for(var n=0;n<t.length;++n)e[n]=255&t.charCodeAt(n);return e}t("setimmediate"),n.newBlob=function(t,e){n.checkSupport("blob");try{return new Blob([t],{type:e})}catch{try{var r=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return r.append(t),r.getBlob(e)}catch{throw Error("Bug : can't construct the Blob.")}}};var u={stringifyByChunk:function(t,e,n){var r=[],i=0,o=t.length;if(o<=n)return String.fromCharCode.apply(null,t);for(;i<o;)"array"===e||"nodebuffer"===e?r.push(String.fromCharCode.apply(null,t.slice(i,Math.min(i+n,o)))):r.push(String.fromCharCode.apply(null,t.subarray(i,Math.min(i+n,o)))),i+=n;return r.join("")},stringifyByChar:function(t){for(var e="",n=0;n<t.length;n++)e+=String.fromCharCode(t[n]);return e},applyCanBeUsed:{uint8array:function(){try{return r.uint8array&&1===String.fromCharCode.apply(null,new Uint8Array(1)).length}catch{return!1}}(),nodebuffer:function(){try{return r.nodebuffer&&1===String.fromCharCode.apply(null,o.allocBuffer(1)).length}catch{return!1}}()}};function h(t){var e=65536,r=n.getTypeOf(t),i=!0;if("uint8array"===r?i=u.applyCanBeUsed.uint8array:"nodebuffer"===r&&(i=u.applyCanBeUsed.nodebuffer),i)for(;1<e;)try{return u.stringifyByChunk(t,r,e)}catch{e=Math.floor(e/2)}return u.stringifyByChar(t)}function c(t,e){for(var n=0;n<t.length;n++)e[n]=t[n];return e}n.applyFromCharCode=h;var d={};d.string={string:s,array:function(t){return l(t,Array(t.length))},arraybuffer:function(t){return d.string.uint8array(t).buffer},uint8array:function(t){return l(t,new Uint8Array(t.length))},nodebuffer:function(t){return l(t,o.allocBuffer(t.length))}},d.array={string:h,array:s,arraybuffer:function(t){return new Uint8Array(t).buffer},uint8array:function(t){return new Uint8Array(t)},nodebuffer:function(t){return o.newBufferFrom(t)}},d.arraybuffer={string:function(t){return h(new Uint8Array(t))},array:function(t){return c(new Uint8Array(t),Array(t.byteLength))},arraybuffer:s,uint8array:function(t){return new Uint8Array(t)},nodebuffer:function(t){return o.newBufferFrom(new Uint8Array(t))}},d.uint8array={string:h,array:function(t){return c(t,Array(t.length))},arraybuffer:function(t){return t.buffer},uint8array:s,nodebuffer:function(t){return o.newBufferFrom(t)}},d.nodebuffer={string:h,array:function(t){return c(t,Array(t.length))},arraybuffer:function(t){return d.nodebuffer.uint8array(t).buffer},uint8array:function(t){return c(t,new Uint8Array(t.length))},nodebuffer:s},n.transformTo=function(t,e){return(e=e||"",t)?(n.checkSupport(t),d[n.getTypeOf(e)][t](e)):e},n.resolve=function(t){for(var e=t.split("/"),n=[],r=0;r<e.length;r++){var i=e[r];"."===i||""===i&&0!==r&&r!==e.length-1||(".."===i?n.pop():n.push(i))}return n.join("/")},n.getTypeOf=function(t){return"string"==typeof t?"string":"[object Array]"===Object.prototype.toString.call(t)?"array":r.nodebuffer&&o.isBuffer(t)?"nodebuffer":r.uint8array&&t instanceof Uint8Array?"uint8array":r.arraybuffer&&t instanceof ArrayBuffer?"arraybuffer":void 0},n.checkSupport=function(t){if(!r[t.toLowerCase()])throw Error(t+" is not supported by this platform")},n.MAX_VALUE_16BITS=65535,n.MAX_VALUE_32BITS=-1,n.pretty=function(t){var e,n,r="";for(n=0;n<(t||"").length;n++)r+="\\x"+((e=t.charCodeAt(n))<16?"0":"")+e.toString(16).toUpperCase();return r},n.delay=function(t,e,n){setImmediate(function(){t.apply(n||null,e||[])})},n.inherits=function(t,e){function n(){}n.prototype=e.prototype,t.prototype=new n},n.extend=function(){var t,e,n={};for(t=0;t<arguments.length;t++)for(e in arguments[t])Object.prototype.hasOwnProperty.call(arguments[t],e)&&void 0===n[e]&&(n[e]=arguments[t][e]);return n},n.prepareContent=function(t,e,o,s,u){return a.Promise.resolve(e).then(function(t){return r.blob&&(t instanceof Blob||-1!==["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(t)))&&"u">typeof FileReader?new a.Promise(function(e,n){var r=new FileReader;r.onload=function(t){e(t.target.result)},r.onerror=function(t){n(t.target.error)},r.readAsArrayBuffer(t)}):t}).then(function(e){var h,c=n.getTypeOf(e);return c?("arraybuffer"===c?e=n.transformTo("uint8array",e):"string"===c&&(u?e=i.decode(e):o&&!0!==s&&(e=l(h=e,r.uint8array?new Uint8Array(h.length):Array(h.length)))),e):a.Promise.reject(Error("Can't read the data of '"+t+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(t,e,n){var r=t("./reader/readerFor"),i=t("./utils"),o=t("./signature"),a=t("./zipEntry"),s=t("./support");function l(t){this.files=[],this.loadOptions=t}l.prototype={checkSignature:function(t){if(!this.reader.readAndCheckSignature(t)){this.reader.index-=4;var e=this.reader.readString(4);throw Error("Corrupted zip or bug: unexpected signature ("+i.pretty(e)+", expected "+i.pretty(t)+")")}},isSignature:function(t,e){var n=this.reader.index;this.reader.setIndex(t);var r=this.reader.readString(4)===e;return this.reader.setIndex(n),r},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var t=this.reader.readData(this.zipCommentLength),e=s.uint8array?"uint8array":"array",n=i.transformTo(e,t);this.zipComment=this.loadOptions.decodeFileName(n)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var t,e,n,r=this.zip64EndOfCentralSize-44;0<r;)t=this.reader.readInt(2),e=this.reader.readInt(4),n=this.reader.readData(e),this.zip64ExtensibleData[t]={id:t,length:e,value:n}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var t,e;for(t=0;t<this.files.length;t++)e=this.files[t],this.reader.setIndex(e.localHeaderOffset),this.checkSignature(o.LOCAL_FILE_HEADER),e.readLocalPart(this.reader),e.handleUTF8(),e.processAttributes()},readCentralDir:function(){var t;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(o.CENTRAL_FILE_HEADER);)(t=new a({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(t);if(this.centralDirRecords!==this.files.length&&0!==this.centralDirRecords&&0===this.files.length)throw Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var t=this.reader.lastIndexOfSignature(o.CENTRAL_DIRECTORY_END);if(t<0)throw this.isSignature(0,o.LOCAL_FILE_HEADER)?Error("Corrupted zip: can't find end of central directory"):Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");this.reader.setIndex(t);var e=t;if(this.checkSignature(o.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===i.MAX_VALUE_16BITS||this.diskWithCentralDirStart===i.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===i.MAX_VALUE_16BITS||this.centralDirRecords===i.MAX_VALUE_16BITS||this.centralDirSize===i.MAX_VALUE_32BITS||this.centralDirOffset===i.MAX_VALUE_32BITS){if(this.zip64=!0,(t=this.reader.lastIndexOfSignature(o.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(t),this.checkSignature(o.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,o.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(o.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(o.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var n=this.centralDirOffset+this.centralDirSize;this.zip64&&(n+=20,n+=12+this.zip64EndOfCentralSize);var r=e-n;if(0<r)this.isSignature(e,o.CENTRAL_FILE_HEADER)||(this.reader.zero=r);else if(r<0)throw Error("Corrupted zip: missing "+Math.abs(r)+" bytes.")},prepareReader:function(t){this.reader=r(t)},load:function(t){this.prepareReader(t),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},e.exports=l},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(t,e,n){var r=t("./reader/readerFor"),i=t("./utils"),o=t("./compressedObject"),a=t("./crc32"),s=t("./utf8"),l=t("./compressions"),u=t("./support");function h(t,e){this.options=t,this.loadOptions=e}h.prototype={isEncrypted:function(){return(1&this.bitFlag)==1},useUTF8:function(){return(2048&this.bitFlag)==2048},readLocalPart:function(t){var e,n;if(t.skip(22),this.fileNameLength=t.readInt(2),n=t.readInt(2),this.fileName=t.readData(this.fileNameLength),t.skip(n),-1===this.compressedSize||-1===this.uncompressedSize)throw Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if(null===(e=function(t){for(var e in l)if(Object.prototype.hasOwnProperty.call(l,e)&&l[e].magic===t)return l[e];return null}(this.compressionMethod)))throw Error("Corrupted zip : compression "+i.pretty(this.compressionMethod)+" unknown (inner file : "+i.transformTo("string",this.fileName)+")");this.decompressed=new o(this.compressedSize,this.uncompressedSize,this.crc32,e,t.readData(this.compressedSize))},readCentralPart:function(t){this.versionMadeBy=t.readInt(2),t.skip(2),this.bitFlag=t.readInt(2),this.compressionMethod=t.readString(2),this.date=t.readDate(),this.crc32=t.readInt(4),this.compressedSize=t.readInt(4),this.uncompressedSize=t.readInt(4);var e=t.readInt(2);if(this.extraFieldsLength=t.readInt(2),this.fileCommentLength=t.readInt(2),this.diskNumberStart=t.readInt(2),this.internalFileAttributes=t.readInt(2),this.externalFileAttributes=t.readInt(4),this.localHeaderOffset=t.readInt(4),this.isEncrypted())throw Error("Encrypted zip are not supported");t.skip(e),this.readExtraFields(t),this.parseZIP64ExtraField(t),this.fileComment=t.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var t=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),0==t&&(this.dosPermissions=63&this.externalFileAttributes),3==t&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||"/"!==this.fileNameStr.slice(-1)||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var t=r(this.extraFields[1].value);this.uncompressedSize===i.MAX_VALUE_32BITS&&(this.uncompressedSize=t.readInt(8)),this.compressedSize===i.MAX_VALUE_32BITS&&(this.compressedSize=t.readInt(8)),this.localHeaderOffset===i.MAX_VALUE_32BITS&&(this.localHeaderOffset=t.readInt(8)),this.diskNumberStart===i.MAX_VALUE_32BITS&&(this.diskNumberStart=t.readInt(4))}},readExtraFields:function(t){var e,n,r,i=t.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});t.index+4<i;)e=t.readInt(2),n=t.readInt(2),r=t.readData(n),this.extraFields[e]={id:e,length:n,value:r};t.setIndex(i)},handleUTF8:function(){var t=u.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=s.utf8decode(this.fileName),this.fileCommentStr=s.utf8decode(this.fileComment);else{var e=this.findExtraFieldUnicodePath();if(null!==e)this.fileNameStr=e;else{var n=i.transformTo(t,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(n)}var r=this.findExtraFieldUnicodeComment();if(null!==r)this.fileCommentStr=r;else{var o=i.transformTo(t,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(o)}}},findExtraFieldUnicodePath:function(){var t=this.extraFields[28789];if(t){var e=r(t.value);return 1!==e.readInt(1)||a(this.fileName)!==e.readInt(4)?null:s.utf8decode(e.readData(t.length-5))}return null},findExtraFieldUnicodeComment:function(){var t=this.extraFields[25461];if(t){var e=r(t.value);return 1!==e.readInt(1)||a(this.fileComment)!==e.readInt(4)?null:s.utf8decode(e.readData(t.length-5))}return null}},e.exports=h},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(t,e,n){function r(t,e,n){this.name=t,this.dir=n.dir,this.date=n.date,this.comment=n.comment,this.unixPermissions=n.unixPermissions,this.dosPermissions=n.dosPermissions,this._data=e,this._dataBinary=n.binary,this.options={compression:n.compression,compressionOptions:n.compressionOptions}}var i=t("./stream/StreamHelper"),o=t("./stream/DataWorker"),a=t("./utf8"),s=t("./compressedObject"),l=t("./stream/GenericWorker");r.prototype={internalStream:function(t){var e=null,n="string";try{if(!t)throw Error("No output type specified.");var r="string"===(n=t.toLowerCase())||"text"===n;"binarystring"!==n&&"text"!==n||(n="string"),e=this._decompressWorker();var o=!this._dataBinary;o&&!r&&(e=e.pipe(new a.Utf8EncodeWorker)),!o&&r&&(e=e.pipe(new a.Utf8DecodeWorker))}catch(t){(e=new l("error")).error(t)}return new i(e,n,"")},async:function(t,e){return this.internalStream(t).accumulate(e)},nodeStream:function(t,e){return this.internalStream(t||"nodebuffer").toNodejsStream(e)},_compressWorker:function(t,e){if(this._data instanceof s&&this._data.compression.magic===t.magic)return this._data.getCompressedWorker();var n=this._decompressWorker();return this._dataBinary||(n=n.pipe(new a.Utf8EncodeWorker)),s.createWorkerFrom(n,t,e)},_decompressWorker:function(){return this._data instanceof s?this._data.getContentWorker():this._data instanceof l?this._data:new o(this._data)}};for(var u=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],h=function(){throw Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},c=0;c<u.length;c++)r.prototype[u[c]]=h;e.exports=r},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(t,e,n){(function(t){var n,r,i=t.MutationObserver||t.WebKitMutationObserver;if(i){var o=0,a=new i(h),s=t.document.createTextNode("");a.observe(s,{characterData:!0}),n=function(){s.data=o=++o%2}}else if(t.setImmediate||void 0===t.MessageChannel)n="document"in t&&"onreadystatechange"in t.document.createElement("script")?function(){var e=t.document.createElement("script");e.onreadystatechange=function(){h(),e.onreadystatechange=null,e.parentNode.removeChild(e),e=null},t.document.documentElement.appendChild(e)}:function(){setTimeout(h,0)};else{var l=new t.MessageChannel;l.port1.onmessage=h,n=function(){l.port2.postMessage(0)}}var u=[];function h(){var t,e;r=!0;for(var n=u.length;n;){for(e=u,u=[],t=-1;++t<n;)e[t]();n=u.length}r=!1}e.exports=function(t){1!==u.push(t)||r||n()}}).call(this,"u">typeof l?l:"u">typeof self?self:"u">typeof window?window:{})},{}],37:[function(t,e,n){var r=t("immediate");function i(){}var o={},a=["REJECTED"],s=["FULFILLED"],l=["PENDING"];function u(t){if("function"!=typeof t)throw TypeError("resolver must be a function");this.state=l,this.queue=[],this.outcome=void 0,t!==i&&p(this,t)}function h(t,e,n){this.promise=t,"function"==typeof e&&(this.onFulfilled=e,this.callFulfilled=this.otherCallFulfilled),"function"==typeof n&&(this.onRejected=n,this.callRejected=this.otherCallRejected)}function c(t,e,n){r(function(){var r;try{r=e(n)}catch(e){return o.reject(t,e)}r===t?o.reject(t,TypeError("Cannot resolve promise with itself")):o.resolve(t,r)})}function d(t){var e=t&&t.then;if(t&&("object"==typeof t||"function"==typeof t)&&"function"==typeof e)return function(){e.apply(t,arguments)}}function p(t,e){var n=!1;function r(e){n||(n=!0,o.reject(t,e))}function i(e){n||(n=!0,o.resolve(t,e))}var a=f(function(){e(i,r)});"error"===a.status&&r(a.value)}function f(t,e){var n={};try{n.value=t(e),n.status="success"}catch(t){n.status="error",n.value=t}return n}(e.exports=u).prototype.finally=function(t){if("function"!=typeof t)return this;var e=this.constructor;return this.then(function(n){return e.resolve(t()).then(function(){return n})},function(n){return e.resolve(t()).then(function(){throw n})})},u.prototype.catch=function(t){return this.then(null,t)},u.prototype.then=function(t,e){if("function"!=typeof t&&this.state===s||"function"!=typeof e&&this.state===a)return this;var n=new this.constructor(i);return this.state!==l?c(n,this.state===s?t:e,this.outcome):this.queue.push(new h(n,t,e)),n},h.prototype.callFulfilled=function(t){o.resolve(this.promise,t)},h.prototype.otherCallFulfilled=function(t){c(this.promise,this.onFulfilled,t)},h.prototype.callRejected=function(t){o.reject(this.promise,t)},h.prototype.otherCallRejected=function(t){c(this.promise,this.onRejected,t)},o.resolve=function(t,e){var n=f(d,e);if("error"===n.status)return o.reject(t,n.value);var r=n.value;if(r)p(t,r);else{t.state=s,t.outcome=e;for(var i=-1,a=t.queue.length;++i<a;)t.queue[i].callFulfilled(e)}return t},o.reject=function(t,e){t.state=a,t.outcome=e;for(var n=-1,r=t.queue.length;++n<r;)t.queue[n].callRejected(e);return t},u.resolve=function(t){return t instanceof this?t:o.resolve(new this(i),t)},u.reject=function(t){var e=new this(i);return o.reject(e,t)},u.all=function(t){var e=this;if("[object Array]"!==Object.prototype.toString.call(t))return this.reject(TypeError("must be an array"));var n=t.length,r=!1;if(!n)return this.resolve([]);for(var a=Array(n),s=0,l=-1,u=new this(i);++l<n;)!function(t,i){e.resolve(t).then(function(t){a[i]=t,++s!==n||r||(r=!0,o.resolve(u,a))},function(t){r||(r=!0,o.reject(u,t))})}(t[l],l);return u},u.race=function(t){if("[object Array]"!==Object.prototype.toString.call(t))return this.reject(TypeError("must be an array"));var e,n=t.length,r=!1;if(!n)return this.resolve([]);for(var a=-1,s=new this(i);++a<n;)e=t[a],this.resolve(e).then(function(t){r||(r=!0,o.resolve(s,t))},function(t){r||(r=!0,o.reject(s,t))});return s}},{immediate:36}],38:[function(t,e,n){var r={};(0,t("./lib/utils/common").assign)(r,t("./lib/deflate"),t("./lib/inflate"),t("./lib/zlib/constants")),e.exports=r},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(t,e,n){var r=t("./zlib/deflate"),i=t("./utils/common"),o=t("./utils/strings"),a=t("./zlib/messages"),s=t("./zlib/zstream"),l=Object.prototype.toString;function u(t){if(!(this instanceof u))return new u(t);this.options=i.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},t||{});var e,n=this.options;n.raw&&0<n.windowBits?n.windowBits=-n.windowBits:n.gzip&&0<n.windowBits&&n.windowBits<16&&(n.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new s,this.strm.avail_out=0;var h=r.deflateInit2(this.strm,n.level,n.method,n.windowBits,n.memLevel,n.strategy);if(0!==h)throw Error(a[h]);if(n.header&&r.deflateSetHeader(this.strm,n.header),n.dictionary){if(e="string"==typeof n.dictionary?o.string2buf(n.dictionary):"[object ArrayBuffer]"===l.call(n.dictionary)?new Uint8Array(n.dictionary):n.dictionary,0!==(h=r.deflateSetDictionary(this.strm,e)))throw Error(a[h]);this._dict_set=!0}}function h(t,e){var n=new u(e);if(n.push(t,!0),n.err)throw n.msg||a[n.err];return n.result}u.prototype.push=function(t,e){var n,a,s=this.strm,u=this.options.chunkSize;if(this.ended)return!1;a=e===~~e?e:4*(!0===e),"string"==typeof t?s.input=o.string2buf(t):"[object ArrayBuffer]"===l.call(t)?s.input=new Uint8Array(t):s.input=t,s.next_in=0,s.avail_in=s.input.length;do{if(0===s.avail_out&&(s.output=new i.Buf8(u),s.next_out=0,s.avail_out=u),1!==(n=r.deflate(s,a))&&0!==n)return this.onEnd(n),this.ended=!0,!1;0!==s.avail_out&&(0!==s.avail_in||4!==a&&2!==a)||("string"===this.options.to?this.onData(o.buf2binstring(i.shrinkBuf(s.output,s.next_out))):this.onData(i.shrinkBuf(s.output,s.next_out)))}while((0<s.avail_in||0===s.avail_out)&&1!==n);return 4===a?(n=r.deflateEnd(this.strm),this.onEnd(n),this.ended=!0,0===n):2!==a||(this.onEnd(0),s.avail_out=0,!0)},u.prototype.onData=function(t){this.chunks.push(t)},u.prototype.onEnd=function(t){0===t&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},n.Deflate=u,n.deflate=h,n.deflateRaw=function(t,e){return(e=e||{}).raw=!0,h(t,e)},n.gzip=function(t,e){return(e=e||{}).gzip=!0,h(t,e)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(t,e,n){var r=t("./zlib/inflate"),i=t("./utils/common"),o=t("./utils/strings"),a=t("./zlib/constants"),s=t("./zlib/messages"),l=t("./zlib/zstream"),u=t("./zlib/gzheader"),h=Object.prototype.toString;function c(t){if(!(this instanceof c))return new c(t);this.options=i.assign({chunkSize:16384,windowBits:0,to:""},t||{});var e=this.options;e.raw&&0<=e.windowBits&&e.windowBits<16&&(e.windowBits=-e.windowBits,0===e.windowBits&&(e.windowBits=-15)),!(0<=e.windowBits&&e.windowBits<16)||t&&t.windowBits||(e.windowBits+=32),15<e.windowBits&&e.windowBits<48&&(15&e.windowBits)==0&&(e.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new l,this.strm.avail_out=0;var n=r.inflateInit2(this.strm,e.windowBits);if(n!==a.Z_OK)throw Error(s[n]);this.header=new u,r.inflateGetHeader(this.strm,this.header)}function d(t,e){var n=new c(e);if(n.push(t,!0),n.err)throw n.msg||s[n.err];return n.result}c.prototype.push=function(t,e){var n,s,l,u,c,d,p=this.strm,f=this.options.chunkSize,g=this.options.dictionary,m=!1;if(this.ended)return!1;s=e===~~e?e:!0===e?a.Z_FINISH:a.Z_NO_FLUSH,"string"==typeof t?p.input=o.binstring2buf(t):"[object ArrayBuffer]"===h.call(t)?p.input=new Uint8Array(t):p.input=t,p.next_in=0,p.avail_in=p.input.length;do{if(0===p.avail_out&&(p.output=new i.Buf8(f),p.next_out=0,p.avail_out=f),(n=r.inflate(p,a.Z_NO_FLUSH))===a.Z_NEED_DICT&&g&&(d="string"==typeof g?o.string2buf(g):"[object ArrayBuffer]"===h.call(g)?new Uint8Array(g):g,n=r.inflateSetDictionary(this.strm,d)),n===a.Z_BUF_ERROR&&!0===m&&(n=a.Z_OK,m=!1),n!==a.Z_STREAM_END&&n!==a.Z_OK)return this.onEnd(n),this.ended=!0,!1;p.next_out&&(0!==p.avail_out&&n!==a.Z_STREAM_END&&(0!==p.avail_in||s!==a.Z_FINISH&&s!==a.Z_SYNC_FLUSH)||("string"===this.options.to?(l=o.utf8border(p.output,p.next_out),u=p.next_out-l,c=o.buf2string(p.output,l),p.next_out=u,p.avail_out=f-u,u&&i.arraySet(p.output,p.output,l,u,0),this.onData(c)):this.onData(i.shrinkBuf(p.output,p.next_out)))),0===p.avail_in&&0===p.avail_out&&(m=!0)}while((0<p.avail_in||0===p.avail_out)&&n!==a.Z_STREAM_END);return n===a.Z_STREAM_END&&(s=a.Z_FINISH),s===a.Z_FINISH?(n=r.inflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===a.Z_OK):s!==a.Z_SYNC_FLUSH||(this.onEnd(a.Z_OK),p.avail_out=0,!0)},c.prototype.onData=function(t){this.chunks.push(t)},c.prototype.onEnd=function(t){t===a.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},n.Inflate=c,n.inflate=d,n.inflateRaw=function(t,e){return(e=e||{}).raw=!0,d(t,e)},n.ungzip=d},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(t,e,n){var r="u">typeof Uint8Array&&"u">typeof Uint16Array&&"u">typeof Int32Array;n.assign=function(t){for(var e=Array.prototype.slice.call(arguments,1);e.length;){var n=e.shift();if(n){if("object"!=typeof n)throw TypeError(n+"must be non-object");for(var r in n)n.hasOwnProperty(r)&&(t[r]=n[r])}}return t},n.shrinkBuf=function(t,e){return t.length===e?t:t.subarray?t.subarray(0,e):(t.length=e,t)};var i={arraySet:function(t,e,n,r,i){if(e.subarray&&t.subarray)t.set(e.subarray(n,n+r),i);else for(var o=0;o<r;o++)t[i+o]=e[n+o]},flattenChunks:function(t){var e,n,r,i,o,a;for(e=r=0,n=t.length;e<n;e++)r+=t[e].length;for(a=new Uint8Array(r),e=i=0,n=t.length;e<n;e++)o=t[e],a.set(o,i),i+=o.length;return a}},o={arraySet:function(t,e,n,r,i){for(var o=0;o<r;o++)t[i+o]=e[n+o]},flattenChunks:function(t){return[].concat.apply([],t)}};n.setTyped=function(t){t?(n.Buf8=Uint8Array,n.Buf16=Uint16Array,n.Buf32=Int32Array,n.assign(n,i)):(n.Buf8=Array,n.Buf16=Array,n.Buf32=Array,n.assign(n,o))},n.setTyped(r)},{}],42:[function(t,e,n){var r=t("./common"),i=!0,o=!0;try{String.fromCharCode.apply(null,[0])}catch{i=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{o=!1}for(var a=new r.Buf8(256),s=0;s<256;s++)a[s]=252<=s?6:248<=s?5:240<=s?4:224<=s?3:192<=s?2:1;function l(t,e){if(e<65537&&(t.subarray&&o||!t.subarray&&i))return String.fromCharCode.apply(null,r.shrinkBuf(t,e));for(var n="",a=0;a<e;a++)n+=String.fromCharCode(t[a]);return n}a[254]=a[254]=1,n.string2buf=function(t){var e,n,i,o,a,s=t.length,l=0;for(o=0;o<s;o++)(64512&(n=t.charCodeAt(o)))==55296&&o+1<s&&(64512&(i=t.charCodeAt(o+1)))==56320&&(n=65536+(n-55296<<10)+(i-56320),o++),l+=n<128?1:n<2048?2:n<65536?3:4;for(e=new r.Buf8(l),o=a=0;a<l;o++)(64512&(n=t.charCodeAt(o)))==55296&&o+1<s&&(64512&(i=t.charCodeAt(o+1)))==56320&&(n=65536+(n-55296<<10)+(i-56320),o++),n<128?e[a++]=n:(n<2048?e[a++]=192|n>>>6:(n<65536?e[a++]=224|n>>>12:(e[a++]=240|n>>>18,e[a++]=128|n>>>12&63),e[a++]=128|n>>>6&63),e[a++]=128|63&n);return e},n.buf2binstring=function(t){return l(t,t.length)},n.binstring2buf=function(t){for(var e=new r.Buf8(t.length),n=0,i=e.length;n<i;n++)e[n]=t.charCodeAt(n);return e},n.buf2string=function(t,e){var n,r,i,o,s=e||t.length,u=Array(2*s);for(n=r=0;n<s;)if((i=t[n++])<128)u[r++]=i;else if(4<(o=a[i]))u[r++]=65533,n+=o-1;else{for(i&=2===o?31:3===o?15:7;1<o&&n<s;)i=i<<6|63&t[n++],o--;1<o?u[r++]=65533:i<65536?u[r++]=i:(i-=65536,u[r++]=55296|i>>10&1023,u[r++]=56320|1023&i)}return l(u,r)},n.utf8border=function(t,e){var n;for((e=e||t.length)>t.length&&(e=t.length),n=e-1;0<=n&&(192&t[n])==128;)n--;return n<0||0===n?e:n+a[t[n]]>e?n:e}},{"./common":41}],43:[function(t,e,n){e.exports=function(t,e,n,r){for(var i=65535&t,o=t>>>16&65535,a=0;0!==n;){for(n-=a=2e3<n?2e3:n;o=o+(i=i+e[r++]|0)|0,--a;);i%=65521,o%=65521}return i|o<<16}},{}],44:[function(t,e,n){e.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],45:[function(t,e,n){var r=function(){for(var t,e=[],n=0;n<256;n++){t=n;for(var r=0;r<8;r++)t=1&t?0xedb88320^t>>>1:t>>>1;e[n]=t}return e}();e.exports=function(t,e,n,i){var o=i+n;t^=-1;for(var a=i;a<o;a++)t=t>>>8^r[255&(t^e[a])];return -1^t}},{}],46:[function(t,e,n){var r,i=t("../utils/common"),o=t("./trees"),a=t("./adler32"),s=t("./crc32"),l=t("./messages");function u(t,e){return t.msg=l[e],e}function h(t){return(t<<1)-9*(4<t)}function c(t){for(var e=t.length;0<=--e;)t[e]=0}function d(t){var e=t.state,n=e.pending;n>t.avail_out&&(n=t.avail_out),0!==n&&(i.arraySet(t.output,e.pending_buf,e.pending_out,n,t.next_out),t.next_out+=n,e.pending_out+=n,t.total_out+=n,t.avail_out-=n,e.pending-=n,0===e.pending&&(e.pending_out=0))}function p(t,e){o._tr_flush_block(t,0<=t.block_start?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,d(t.strm)}function f(t,e){t.pending_buf[t.pending++]=e}function g(t,e){t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e}function m(t,e){var n,r,i=t.max_chain_length,o=t.strstart,a=t.prev_length,s=t.nice_match,l=t.strstart>t.w_size-262?t.strstart-(t.w_size-262):0,u=t.window,h=t.w_mask,c=t.prev,d=t.strstart+258,p=u[o+a-1],f=u[o+a];t.prev_length>=t.good_match&&(i>>=2),s>t.lookahead&&(s=t.lookahead);do if(u[(n=e)+a]===f&&u[n+a-1]===p&&u[n]===u[o]&&u[++n]===u[o+1]){o+=2,n++;do;while(u[++o]===u[++n]&&u[++o]===u[++n]&&u[++o]===u[++n]&&u[++o]===u[++n]&&u[++o]===u[++n]&&u[++o]===u[++n]&&u[++o]===u[++n]&&u[++o]===u[++n]&&o<d);if(r=258-(d-o),o=d-258,a<r){if(t.match_start=e,s<=(a=r))break;p=u[o+a-1],f=u[o+a]}}while((e=c[e&h])>l&&0!=--i);return a<=t.lookahead?a:t.lookahead}function y(t){var e,n,r,o,l,u,h,c,d,p,f=t.w_size;do{if(o=t.window_size-t.lookahead-t.strstart,t.strstart>=f+(f-262)){for(i.arraySet(t.window,t.window,f,f,0),t.match_start-=f,t.strstart-=f,t.block_start-=f,e=n=t.hash_size;r=t.head[--e],t.head[e]=f<=r?r-f:0,--n;);for(e=n=f;r=t.prev[--e],t.prev[e]=f<=r?r-f:0,--n;);o+=f}if(0===t.strm.avail_in)break;if(u=t.strm,h=t.window,c=t.strstart+t.lookahead,p=void 0,(d=o)<(p=u.avail_in)&&(p=d),n=0===p?0:(u.avail_in-=p,i.arraySet(h,u.input,u.next_in,p,c),1===u.state.wrap?u.adler=a(u.adler,h,p,c):2===u.state.wrap&&(u.adler=s(u.adler,h,p,c)),u.next_in+=p,u.total_in+=p,p),t.lookahead+=n,t.lookahead+t.insert>=3)for(l=t.strstart-t.insert,t.ins_h=t.window[l],t.ins_h=(t.ins_h<<t.hash_shift^t.window[l+1])&t.hash_mask;t.insert&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[l+3-1])&t.hash_mask,t.prev[l&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=l,l++,t.insert--,!(t.lookahead+t.insert<3)););}while(t.lookahead<262&&0!==t.strm.avail_in)}function v(t,e){for(var n,r;;){if(t.lookahead<262){if(y(t),t.lookahead<262&&0===e)return 1;if(0===t.lookahead)break}if(n=0,t.lookahead>=3&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!==n&&t.strstart-n<=t.w_size-262&&(t.match_length=m(t,n)),t.match_length>=3)if(r=o._tr_tally(t,t.strstart-t.match_start,t.match_length-3),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=3){for(t.match_length--;t.strstart++,t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart,0!=--t.match_length;);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+1])&t.hash_mask;else r=o._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(r&&(p(t,!1),0===t.strm.avail_out))return 1}return t.insert=t.strstart<2?t.strstart:2,4===e?(p(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(p(t,!1),0===t.strm.avail_out)?1:2}function _(t,e){for(var n,r,i;;){if(t.lookahead<262){if(y(t),t.lookahead<262&&0===e)return 1;if(0===t.lookahead)break}if(n=0,t.lookahead>=3&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=2,0!==n&&t.prev_length<t.max_lazy_match&&t.strstart-n<=t.w_size-262&&(t.match_length=m(t,n),t.match_length<=5&&(1===t.strategy||3===t.match_length&&4096<t.strstart-t.match_start)&&(t.match_length=2)),t.prev_length>=3&&t.match_length<=t.prev_length){for(i=t.strstart+t.lookahead-3,r=o._tr_tally(t,t.strstart-1-t.prev_match,t.prev_length-3),t.lookahead-=t.prev_length-1,t.prev_length-=2;++t.strstart<=i&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!=--t.prev_length;);if(t.match_available=0,t.match_length=2,t.strstart++,r&&(p(t,!1),0===t.strm.avail_out))return 1}else if(t.match_available){if((r=o._tr_tally(t,0,t.window[t.strstart-1]))&&p(t,!1),t.strstart++,t.lookahead--,0===t.strm.avail_out)return 1}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(r=o._tr_tally(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<2?t.strstart:2,4===e?(p(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(p(t,!1),0===t.strm.avail_out)?1:2}function x(t,e,n,r,i){this.good_length=t,this.max_lazy=e,this.nice_length=n,this.max_chain=r,this.func=i}function b(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=8,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new i.Buf16(1146),this.dyn_dtree=new i.Buf16(122),this.bl_tree=new i.Buf16(78),c(this.dyn_ltree),c(this.dyn_dtree),c(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new i.Buf16(16),this.heap=new i.Buf16(573),c(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new i.Buf16(573),c(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function w(t){var e;return t&&t.state?(t.total_in=t.total_out=0,t.data_type=2,(e=t.state).pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=e.wrap?42:113,t.adler=+(2!==e.wrap),e.last_flush=0,o._tr_init(e),0):u(t,-2)}function S(t){var e,n=w(t);return 0===n&&((e=t.state).window_size=2*e.w_size,c(e.head),e.max_lazy_match=r[e.level].max_lazy,e.good_match=r[e.level].good_length,e.nice_match=r[e.level].nice_length,e.max_chain_length=r[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=2,e.match_available=0,e.ins_h=0),n}function k(t,e,n,r,o,a){if(!t)return -2;var s=1;if(-1===e&&(e=6),r<0?(s=0,r=-r):15<r&&(s=2,r-=16),o<1||9<o||8!==n||r<8||15<r||e<0||9<e||a<0||4<a)return u(t,-2);8===r&&(r=9);var l=new b;return(t.state=l).strm=t,l.wrap=s,l.gzhead=null,l.w_bits=r,l.w_size=1<<l.w_bits,l.w_mask=l.w_size-1,l.hash_bits=o+7,l.hash_size=1<<l.hash_bits,l.hash_mask=l.hash_size-1,l.hash_shift=~~((l.hash_bits+3-1)/3),l.window=new i.Buf8(2*l.w_size),l.head=new i.Buf16(l.hash_size),l.prev=new i.Buf16(l.w_size),l.lit_bufsize=1<<o+6,l.pending_buf_size=4*l.lit_bufsize,l.pending_buf=new i.Buf8(l.pending_buf_size),l.d_buf=+l.lit_bufsize,l.l_buf=3*l.lit_bufsize,l.level=e,l.strategy=a,l.method=n,S(t)}r=[new x(0,0,0,0,function(t,e){var n=65535;for(65535>t.pending_buf_size-5&&(n=t.pending_buf_size-5);;){if(t.lookahead<=1){if(y(t),0===t.lookahead&&0===e)return 1;if(0===t.lookahead)break}t.strstart+=t.lookahead,t.lookahead=0;var r=t.block_start+n;if((0===t.strstart||t.strstart>=r)&&(t.lookahead=t.strstart-r,t.strstart=r,p(t,!1),0===t.strm.avail_out)||t.strstart-t.block_start>=t.w_size-262&&(p(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(p(t,!0),0===t.strm.avail_out?3:4):(t.strstart>t.block_start&&(p(t,!1),t.strm.avail_out),1)}),new x(4,4,8,4,v),new x(4,5,16,8,v),new x(4,6,32,32,v),new x(4,4,16,16,_),new x(8,16,32,32,_),new x(8,16,128,128,_),new x(8,32,128,256,_),new x(32,128,258,1024,_),new x(32,258,258,4096,_)],n.deflateInit=function(t,e){return k(t,e,8,15,8,0)},n.deflateInit2=k,n.deflateReset=S,n.deflateResetKeep=w,n.deflateSetHeader=function(t,e){return t&&t.state?2!==t.state.wrap?-2:(t.state.gzhead=e,0):-2},n.deflate=function(t,e){var n,i,a,l;if(!t||!t.state||5<e||e<0)return t?u(t,-2):-2;if(i=t.state,!t.output||!t.input&&0!==t.avail_in||666===i.status&&4!==e)return u(t,0===t.avail_out?-5:-2);if(i.strm=t,n=i.last_flush,i.last_flush=e,42===i.status)if(2===i.wrap)t.adler=0,f(i,31),f(i,139),f(i,8),i.gzhead?(f(i,+!!i.gzhead.text+2*!!i.gzhead.hcrc+4*!!i.gzhead.extra+8*!!i.gzhead.name+16*!!i.gzhead.comment),f(i,255&i.gzhead.time),f(i,i.gzhead.time>>8&255),f(i,i.gzhead.time>>16&255),f(i,i.gzhead.time>>24&255),f(i,9===i.level?2:4*(2<=i.strategy||i.level<2)),f(i,255&i.gzhead.os),i.gzhead.extra&&i.gzhead.extra.length&&(f(i,255&i.gzhead.extra.length),f(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(t.adler=s(t.adler,i.pending_buf,i.pending,0)),i.gzindex=0,i.status=69):(f(i,0),f(i,0),f(i,0),f(i,0),f(i,0),f(i,9===i.level?2:4*(2<=i.strategy||i.level<2)),f(i,3),i.status=113);else{var m=8+(i.w_bits-8<<4)<<8;m|=(2<=i.strategy||i.level<2?0:i.level<6?1:6===i.level?2:3)<<6,0!==i.strstart&&(m|=32),m+=31-m%31,i.status=113,g(i,m),0!==i.strstart&&(g(i,t.adler>>>16),g(i,65535&t.adler)),t.adler=1}if(69===i.status)if(i.gzhead.extra){for(a=i.pending;i.gzindex<(65535&i.gzhead.extra.length)&&(i.pending!==i.pending_buf_size||(i.gzhead.hcrc&&i.pending>a&&(t.adler=s(t.adler,i.pending_buf,i.pending-a,a)),d(t),a=i.pending,i.pending!==i.pending_buf_size));)f(i,255&i.gzhead.extra[i.gzindex]),i.gzindex++;i.gzhead.hcrc&&i.pending>a&&(t.adler=s(t.adler,i.pending_buf,i.pending-a,a)),i.gzindex===i.gzhead.extra.length&&(i.gzindex=0,i.status=73)}else i.status=73;if(73===i.status)if(i.gzhead.name){a=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>a&&(t.adler=s(t.adler,i.pending_buf,i.pending-a,a)),d(t),a=i.pending,i.pending===i.pending_buf_size)){l=1;break}l=i.gzindex<i.gzhead.name.length?255&i.gzhead.name.charCodeAt(i.gzindex++):0,f(i,l)}while(0!==l);i.gzhead.hcrc&&i.pending>a&&(t.adler=s(t.adler,i.pending_buf,i.pending-a,a)),0===l&&(i.gzindex=0,i.status=91)}else i.status=91;if(91===i.status)if(i.gzhead.comment){a=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>a&&(t.adler=s(t.adler,i.pending_buf,i.pending-a,a)),d(t),a=i.pending,i.pending===i.pending_buf_size)){l=1;break}l=i.gzindex<i.gzhead.comment.length?255&i.gzhead.comment.charCodeAt(i.gzindex++):0,f(i,l)}while(0!==l);i.gzhead.hcrc&&i.pending>a&&(t.adler=s(t.adler,i.pending_buf,i.pending-a,a)),0===l&&(i.status=103)}else i.status=103;if(103===i.status&&(i.gzhead.hcrc?(i.pending+2>i.pending_buf_size&&d(t),i.pending+2<=i.pending_buf_size&&(f(i,255&t.adler),f(i,t.adler>>8&255),t.adler=0,i.status=113)):i.status=113),0!==i.pending){if(d(t),0===t.avail_out)return i.last_flush=-1,0}else if(0===t.avail_in&&h(e)<=h(n)&&4!==e)return u(t,-5);if(666===i.status&&0!==t.avail_in)return u(t,-5);if(0!==t.avail_in||0!==i.lookahead||0!==e&&666!==i.status){var v=2===i.strategy?function(t,e){for(var n;;){if(0===t.lookahead&&(y(t),0===t.lookahead)){if(0===e)return 1;break}if(t.match_length=0,n=o._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,n&&(p(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(p(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(p(t,!1),0===t.strm.avail_out)?1:2}(i,e):3===i.strategy?function(t,e){for(var n,r,i,a,s=t.window;;){if(t.lookahead<=258){if(y(t),t.lookahead<=258&&0===e)return 1;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=3&&0<t.strstart&&(r=s[i=t.strstart-1])===s[++i]&&r===s[++i]&&r===s[++i]){a=t.strstart+258;do;while(r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&i<a);t.match_length=258-(a-i),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=3?(n=o._tr_tally(t,1,t.match_length-3),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(n=o._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),n&&(p(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(p(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(p(t,!1),0===t.strm.avail_out)?1:2}(i,e):r[i.level].func(i,e);if(3!==v&&4!==v||(i.status=666),1===v||3===v)return 0===t.avail_out&&(i.last_flush=-1),0;if(2===v&&(1===e?o._tr_align(i):5!==e&&(o._tr_stored_block(i,0,0,!1),3===e&&(c(i.head),0===i.lookahead&&(i.strstart=0,i.block_start=0,i.insert=0))),d(t),0===t.avail_out))return i.last_flush=-1,0}return 4!==e?0:i.wrap<=0?1:(2===i.wrap?(f(i,255&t.adler),f(i,t.adler>>8&255),f(i,t.adler>>16&255),f(i,t.adler>>24&255),f(i,255&t.total_in),f(i,t.total_in>>8&255),f(i,t.total_in>>16&255),f(i,t.total_in>>24&255)):(g(i,t.adler>>>16),g(i,65535&t.adler)),d(t),0<i.wrap&&(i.wrap=-i.wrap),+(0===i.pending))},n.deflateEnd=function(t){var e;return t&&t.state?42!==(e=t.state.status)&&69!==e&&73!==e&&91!==e&&103!==e&&113!==e&&666!==e?u(t,-2):(t.state=null,113===e?u(t,-3):0):-2},n.deflateSetDictionary=function(t,e){var n,r,o,s,l,u,h,d,p=e.length;if(!t||!t.state||2===(s=(n=t.state).wrap)||1===s&&42!==n.status||n.lookahead)return -2;for(1===s&&(t.adler=a(t.adler,e,p,0)),n.wrap=0,p>=n.w_size&&(0===s&&(c(n.head),n.strstart=0,n.block_start=0,n.insert=0),d=new i.Buf8(n.w_size),i.arraySet(d,e,p-n.w_size,n.w_size,0),e=d,p=n.w_size),l=t.avail_in,u=t.next_in,h=t.input,t.avail_in=p,t.next_in=0,t.input=e,y(n);n.lookahead>=3;){for(r=n.strstart,o=n.lookahead-2;n.ins_h=(n.ins_h<<n.hash_shift^n.window[r+3-1])&n.hash_mask,n.prev[r&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=r,r++,--o;);n.strstart=r,n.lookahead=2,y(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=2,n.match_available=0,t.next_in=u,t.input=h,t.avail_in=l,n.wrap=s,0},n.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(t,e,n){e.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},{}],48:[function(t,e,n){e.exports=function(t,e){var n,r,i,o,a,s,l,u,h,c,d,p,f,g,m,y,v,_,x,b,w,S,k,M,C;n=t.state,r=t.next_in,M=t.input,i=r+(t.avail_in-5),o=t.next_out,C=t.output,a=o-(e-t.avail_out),s=o+(t.avail_out-257),l=n.dmax,u=n.wsize,h=n.whave,c=n.wnext,d=n.window,p=n.hold,f=n.bits,g=n.lencode,m=n.distcode,y=(1<<n.lenbits)-1,v=(1<<n.distbits)-1;t:do for(f<15&&(p+=M[r++]<<f,f+=8,p+=M[r++]<<f,f+=8),_=g[p&y];;){if(p>>>=x=_>>>24,f-=x,0==(x=_>>>16&255))C[o++]=65535&_;else{if(!(16&x)){if((64&x)==0){_=g[(65535&_)+(p&(1<<x)-1)];continue}if(32&x){n.mode=12;break t}t.msg="invalid literal/length code",n.mode=30;break t}for(b=65535&_,(x&=15)&&(f<x&&(p+=M[r++]<<f,f+=8),b+=p&(1<<x)-1,p>>>=x,f-=x),f<15&&(p+=M[r++]<<f,f+=8,p+=M[r++]<<f,f+=8),_=m[p&v];;){if(p>>>=x=_>>>24,f-=x,!(16&(x=_>>>16&255))){if((64&x)==0){_=m[(65535&_)+(p&(1<<x)-1)];continue}t.msg="invalid distance code",n.mode=30;break t}if(w=65535&_,f<(x&=15)&&(p+=M[r++]<<f,(f+=8)<x&&(p+=M[r++]<<f,f+=8)),l<(w+=p&(1<<x)-1)){t.msg="invalid distance too far back",n.mode=30;break t}if(p>>>=x,f-=x,(x=o-a)<w){if(h<(x=w-x)&&n.sane){t.msg="invalid distance too far back",n.mode=30;break t}if(k=d,(S=0)===c){if(S+=u-x,x<b){for(b-=x;C[o++]=d[S++],--x;);S=o-w,k=C}}else if(c<x){if(S+=u+c-x,(x-=c)<b){for(b-=x;C[o++]=d[S++],--x;);if(S=0,c<b){for(b-=x=c;C[o++]=d[S++],--x;);S=o-w,k=C}}}else if(S+=c-x,x<b){for(b-=x;C[o++]=d[S++],--x;);S=o-w,k=C}for(;2<b;)C[o++]=k[S++],C[o++]=k[S++],C[o++]=k[S++],b-=3;b&&(C[o++]=k[S++],1<b&&(C[o++]=k[S++]))}else{for(S=o-w;C[o++]=C[S++],C[o++]=C[S++],C[o++]=C[S++],2<(b-=3););b&&(C[o++]=C[S++],1<b&&(C[o++]=C[S++]))}break}}break}while(r<i&&o<s);r-=b=f>>3,p&=(1<<(f-=b<<3))-1,t.next_in=r,t.next_out=o,t.avail_in=r<i?i-r+5:5-(r-i),t.avail_out=o<s?s-o+257:257-(o-s),n.hold=p,n.bits=f}},{}],49:[function(t,e,n){var r=t("../utils/common"),i=t("./adler32"),o=t("./crc32"),a=t("./inffast"),s=t("./inftrees");function l(t){return(t>>>24&255)+(t>>>8&65280)+((65280&t)<<8)+((255&t)<<24)}function u(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new r.Buf16(320),this.work=new r.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function h(t){var e;return t&&t.state?(e=t.state,t.total_in=t.total_out=e.total=0,t.msg="",e.wrap&&(t.adler=1&e.wrap),e.mode=1,e.last=0,e.havedict=0,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new r.Buf32(852),e.distcode=e.distdyn=new r.Buf32(592),e.sane=1,e.back=-1,0):-2}function c(t){var e;return t&&t.state?((e=t.state).wsize=0,e.whave=0,e.wnext=0,h(t)):-2}function d(t,e){var n,r;return t&&t.state?(r=t.state,e<0?(n=0,e=-e):(n=1+(e>>4),e<48&&(e&=15)),e&&(e<8||15<e)?-2:(null!==r.window&&r.wbits!==e&&(r.window=null),r.wrap=n,r.wbits=e,c(t))):-2}function p(t,e){var n;return t?((t.state=new u).window=null,0!==(n=d(t,e))&&(t.state=null),n):-2}var f,g,m=!0;function y(t,e,n,i){var o,a=t.state;return null===a.window&&(a.wsize=1<<a.wbits,a.wnext=0,a.whave=0,a.window=new r.Buf8(a.wsize)),i>=a.wsize?(r.arraySet(a.window,e,n-a.wsize,a.wsize,0),a.wnext=0,a.whave=a.wsize):(i<(o=a.wsize-a.wnext)&&(o=i),r.arraySet(a.window,e,n-i,o,a.wnext),(i-=o)?(r.arraySet(a.window,e,n-i,i,0),a.wnext=i,a.whave=a.wsize):(a.wnext+=o,a.wnext===a.wsize&&(a.wnext=0),a.whave<a.wsize&&(a.whave+=o))),0}n.inflateReset=c,n.inflateReset2=d,n.inflateResetKeep=h,n.inflateInit=function(t){return p(t,15)},n.inflateInit2=p,n.inflate=function(t,e){var n,u,h,c,d,p,v,_,x,b,w,S,k,M,C,T,I,D,A,L,$,P,O,E,N=0,R=new r.Buf8(4),z=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!t||!t.state||!t.output||!t.input&&0!==t.avail_in)return -2;12===(n=t.state).mode&&(n.mode=13),d=t.next_out,h=t.output,v=t.avail_out,c=t.next_in,u=t.input,p=t.avail_in,_=n.hold,x=n.bits,b=p,w=v,P=0;t:for(;;)switch(n.mode){case 1:if(0===n.wrap){n.mode=13;break}for(;x<16;){if(0===p)break t;p--,_+=u[c++]<<x,x+=8}if(2&n.wrap&&35615===_){R[n.check=0]=255&_,R[1]=_>>>8&255,n.check=o(n.check,R,2,0),x=_=0,n.mode=2;break}if(n.flags=0,n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&_)<<8)+(_>>8))%31){t.msg="incorrect header check",n.mode=30;break}if((15&_)!=8){t.msg="unknown compression method",n.mode=30;break}if(x-=4,$=8+(15&(_>>>=4)),0===n.wbits)n.wbits=$;else if($>n.wbits){t.msg="invalid window size",n.mode=30;break}n.dmax=1<<$,t.adler=n.check=1,n.mode=512&_?10:12,x=_=0;break;case 2:for(;x<16;){if(0===p)break t;p--,_+=u[c++]<<x,x+=8}if(n.flags=_,(255&n.flags)!=8){t.msg="unknown compression method",n.mode=30;break}if(57344&n.flags){t.msg="unknown header flags set",n.mode=30;break}n.head&&(n.head.text=_>>8&1),512&n.flags&&(R[0]=255&_,R[1]=_>>>8&255,n.check=o(n.check,R,2,0)),x=_=0,n.mode=3;case 3:for(;x<32;){if(0===p)break t;p--,_+=u[c++]<<x,x+=8}n.head&&(n.head.time=_),512&n.flags&&(R[0]=255&_,R[1]=_>>>8&255,R[2]=_>>>16&255,R[3]=_>>>24&255,n.check=o(n.check,R,4,0)),x=_=0,n.mode=4;case 4:for(;x<16;){if(0===p)break t;p--,_+=u[c++]<<x,x+=8}n.head&&(n.head.xflags=255&_,n.head.os=_>>8),512&n.flags&&(R[0]=255&_,R[1]=_>>>8&255,n.check=o(n.check,R,2,0)),x=_=0,n.mode=5;case 5:if(1024&n.flags){for(;x<16;){if(0===p)break t;p--,_+=u[c++]<<x,x+=8}n.length=_,n.head&&(n.head.extra_len=_),512&n.flags&&(R[0]=255&_,R[1]=_>>>8&255,n.check=o(n.check,R,2,0)),x=_=0}else n.head&&(n.head.extra=null);n.mode=6;case 6:if(1024&n.flags&&(p<(S=n.length)&&(S=p),S&&(n.head&&($=n.head.extra_len-n.length,n.head.extra||(n.head.extra=Array(n.head.extra_len)),r.arraySet(n.head.extra,u,c,S,$)),512&n.flags&&(n.check=o(n.check,u,S,c)),p-=S,c+=S,n.length-=S),n.length))break t;n.length=0,n.mode=7;case 7:if(2048&n.flags){if(0===p)break t;for(S=0;$=u[c+S++],n.head&&$&&n.length<65536&&(n.head.name+=String.fromCharCode($)),$&&S<p;);if(512&n.flags&&(n.check=o(n.check,u,S,c)),p-=S,c+=S,$)break t}else n.head&&(n.head.name=null);n.length=0,n.mode=8;case 8:if(4096&n.flags){if(0===p)break t;for(S=0;$=u[c+S++],n.head&&$&&n.length<65536&&(n.head.comment+=String.fromCharCode($)),$&&S<p;);if(512&n.flags&&(n.check=o(n.check,u,S,c)),p-=S,c+=S,$)break t}else n.head&&(n.head.comment=null);n.mode=9;case 9:if(512&n.flags){for(;x<16;){if(0===p)break t;p--,_+=u[c++]<<x,x+=8}if(_!==(65535&n.check)){t.msg="header crc mismatch",n.mode=30;break}x=_=0}n.head&&(n.head.hcrc=n.flags>>9&1,n.head.done=!0),t.adler=n.check=0,n.mode=12;break;case 10:for(;x<32;){if(0===p)break t;p--,_+=u[c++]<<x,x+=8}t.adler=n.check=l(_),x=_=0,n.mode=11;case 11:if(0===n.havedict)return t.next_out=d,t.avail_out=v,t.next_in=c,t.avail_in=p,n.hold=_,n.bits=x,2;t.adler=n.check=1,n.mode=12;case 12:if(5===e||6===e)break t;case 13:if(n.last){_>>>=7&x,x-=7&x,n.mode=27;break}for(;x<3;){if(0===p)break t;p--,_+=u[c++]<<x,x+=8}switch(n.last=1&_,x-=1,3&(_>>>=1)){case 0:n.mode=14;break;case 1:if(function(t){if(m){var e;for(f=new r.Buf32(512),g=new r.Buf32(32),e=0;e<144;)t.lens[e++]=8;for(;e<256;)t.lens[e++]=9;for(;e<280;)t.lens[e++]=7;for(;e<288;)t.lens[e++]=8;for(s(1,t.lens,0,288,f,0,t.work,{bits:9}),e=0;e<32;)t.lens[e++]=5;s(2,t.lens,0,32,g,0,t.work,{bits:5}),m=!1}t.lencode=f,t.lenbits=9,t.distcode=g,t.distbits=5}(n),n.mode=20,6!==e)break;_>>>=2,x-=2;break t;case 2:n.mode=17;break;case 3:t.msg="invalid block type",n.mode=30}_>>>=2,x-=2;break;case 14:for(_>>>=7&x,x-=7&x;x<32;){if(0===p)break t;p--,_+=u[c++]<<x,x+=8}if((65535&_)!=(_>>>16^65535)){t.msg="invalid stored block lengths",n.mode=30;break}if(n.length=65535&_,x=_=0,n.mode=15,6===e)break t;case 15:n.mode=16;case 16:if(S=n.length){if(p<S&&(S=p),v<S&&(S=v),0===S)break t;r.arraySet(h,u,c,S,d),p-=S,c+=S,v-=S,d+=S,n.length-=S;break}n.mode=12;break;case 17:for(;x<14;){if(0===p)break t;p--,_+=u[c++]<<x,x+=8}if(n.nlen=257+(31&_),x-=5,n.ndist=1+(31&(_>>>=5)),x-=5,n.ncode=4+(15&(_>>>=5)),_>>>=4,x-=4,286<n.nlen||30<n.ndist){t.msg="too many length or distance symbols",n.mode=30;break}n.have=0,n.mode=18;case 18:for(;n.have<n.ncode;){for(;x<3;){if(0===p)break t;p--,_+=u[c++]<<x,x+=8}n.lens[z[n.have++]]=7&_,_>>>=3,x-=3}for(;n.have<19;)n.lens[z[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,O={bits:n.lenbits},P=s(0,n.lens,0,19,n.lencode,0,n.work,O),n.lenbits=O.bits,P){t.msg="invalid code lengths set",n.mode=30;break}n.have=0,n.mode=19;case 19:for(;n.have<n.nlen+n.ndist;){for(;T=(N=n.lencode[_&(1<<n.lenbits)-1])>>>16&255,I=65535&N,!((C=N>>>24)<=x);){if(0===p)break t;p--,_+=u[c++]<<x,x+=8}if(I<16)_>>>=C,x-=C,n.lens[n.have++]=I;else{if(16===I){for(E=C+2;x<E;){if(0===p)break t;p--,_+=u[c++]<<x,x+=8}if(_>>>=C,x-=C,0===n.have){t.msg="invalid bit length repeat",n.mode=30;break}$=n.lens[n.have-1],S=3+(3&_),_>>>=2,x-=2}else if(17===I){for(E=C+3;x<E;){if(0===p)break t;p--,_+=u[c++]<<x,x+=8}x-=C,$=0,S=3+(7&(_>>>=C)),_>>>=3,x-=3}else{for(E=C+7;x<E;){if(0===p)break t;p--,_+=u[c++]<<x,x+=8}x-=C,$=0,S=11+(127&(_>>>=C)),_>>>=7,x-=7}if(n.have+S>n.nlen+n.ndist){t.msg="invalid bit length repeat",n.mode=30;break}for(;S--;)n.lens[n.have++]=$}}if(30===n.mode)break;if(0===n.lens[256]){t.msg="invalid code -- missing end-of-block",n.mode=30;break}if(n.lenbits=9,O={bits:n.lenbits},P=s(1,n.lens,0,n.nlen,n.lencode,0,n.work,O),n.lenbits=O.bits,P){t.msg="invalid literal/lengths set",n.mode=30;break}if(n.distbits=6,n.distcode=n.distdyn,O={bits:n.distbits},P=s(2,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,O),n.distbits=O.bits,P){t.msg="invalid distances set",n.mode=30;break}if(n.mode=20,6===e)break t;case 20:n.mode=21;case 21:if(6<=p&&258<=v){t.next_out=d,t.avail_out=v,t.next_in=c,t.avail_in=p,n.hold=_,n.bits=x,a(t,w),d=t.next_out,h=t.output,v=t.avail_out,c=t.next_in,u=t.input,p=t.avail_in,_=n.hold,x=n.bits,12===n.mode&&(n.back=-1);break}for(n.back=0;T=(N=n.lencode[_&(1<<n.lenbits)-1])>>>16&255,I=65535&N,!((C=N>>>24)<=x);){if(0===p)break t;p--,_+=u[c++]<<x,x+=8}if(T&&(240&T)==0){for(D=C,A=T,L=I;T=(N=n.lencode[L+((_&(1<<D+A)-1)>>D)])>>>16&255,I=65535&N,!(D+(C=N>>>24)<=x);){if(0===p)break t;p--,_+=u[c++]<<x,x+=8}_>>>=D,x-=D,n.back+=D}if(_>>>=C,x-=C,n.back+=C,n.length=I,0===T){n.mode=26;break}if(32&T){n.back=-1,n.mode=12;break}if(64&T){t.msg="invalid literal/length code",n.mode=30;break}n.extra=15&T,n.mode=22;case 22:if(n.extra){for(E=n.extra;x<E;){if(0===p)break t;p--,_+=u[c++]<<x,x+=8}n.length+=_&(1<<n.extra)-1,_>>>=n.extra,x-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=23;case 23:for(;T=(N=n.distcode[_&(1<<n.distbits)-1])>>>16&255,I=65535&N,!((C=N>>>24)<=x);){if(0===p)break t;p--,_+=u[c++]<<x,x+=8}if((240&T)==0){for(D=C,A=T,L=I;T=(N=n.distcode[L+((_&(1<<D+A)-1)>>D)])>>>16&255,I=65535&N,!(D+(C=N>>>24)<=x);){if(0===p)break t;p--,_+=u[c++]<<x,x+=8}_>>>=D,x-=D,n.back+=D}if(_>>>=C,x-=C,n.back+=C,64&T){t.msg="invalid distance code",n.mode=30;break}n.offset=I,n.extra=15&T,n.mode=24;case 24:if(n.extra){for(E=n.extra;x<E;){if(0===p)break t;p--,_+=u[c++]<<x,x+=8}n.offset+=_&(1<<n.extra)-1,_>>>=n.extra,x-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){t.msg="invalid distance too far back",n.mode=30;break}n.mode=25;case 25:if(0===v)break t;if(S=w-v,n.offset>S){if((S=n.offset-S)>n.whave&&n.sane){t.msg="invalid distance too far back",n.mode=30;break}k=S>n.wnext?(S-=n.wnext,n.wsize-S):n.wnext-S,S>n.length&&(S=n.length),M=n.window}else M=h,k=d-n.offset,S=n.length;for(v<S&&(S=v),v-=S,n.length-=S;h[d++]=M[k++],--S;);0===n.length&&(n.mode=21);break;case 26:if(0===v)break t;h[d++]=n.length,v--,n.mode=21;break;case 27:if(n.wrap){for(;x<32;){if(0===p)break t;p--,_|=u[c++]<<x,x+=8}if(w-=v,t.total_out+=w,n.total+=w,w&&(t.adler=n.check=n.flags?o(n.check,h,w,d-w):i(n.check,h,w,d-w)),w=v,(n.flags?_:l(_))!==n.check){t.msg="incorrect data check",n.mode=30;break}x=_=0}n.mode=28;case 28:if(n.wrap&&n.flags){for(;x<32;){if(0===p)break t;p--,_+=u[c++]<<x,x+=8}if(_!==(0|n.total)){t.msg="incorrect length check",n.mode=30;break}x=_=0}n.mode=29;case 29:P=1;break t;case 30:P=-3;break t;case 31:return -4;default:return -2}return t.next_out=d,t.avail_out=v,t.next_in=c,t.avail_in=p,n.hold=_,n.bits=x,(n.wsize||w!==t.avail_out&&n.mode<30&&(n.mode<27||4!==e))&&y(t,t.output,t.next_out,w-t.avail_out)?(n.mode=31,-4):(b-=t.avail_in,w-=t.avail_out,t.total_in+=b,t.total_out+=w,n.total+=w,n.wrap&&w&&(t.adler=n.check=n.flags?o(n.check,h,w,t.next_out-w):i(n.check,h,w,t.next_out-w)),t.data_type=n.bits+64*!!n.last+128*(12===n.mode)+256*(20===n.mode||15===n.mode),(0==b&&0===w||4===e)&&0===P&&(P=-5),P)},n.inflateEnd=function(t){if(!t||!t.state)return -2;var e=t.state;return e.window&&(e.window=null),t.state=null,0},n.inflateGetHeader=function(t,e){var n;return t&&t.state?(2&(n=t.state).wrap)==0?-2:((n.head=e).done=!1,0):-2},n.inflateSetDictionary=function(t,e){var n,r=e.length;return t&&t.state?0!==(n=t.state).wrap&&11!==n.mode?-2:11===n.mode&&i(1,e,r,0)!==n.check?-3:y(t,e,r,r)?(n.mode=31,-4):(n.havedict=1,0):-2},n.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(t,e,n){var r=t("../utils/common"),i=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],o=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],a=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],s=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];e.exports=function(t,e,n,l,u,h,c,d){var p,f,g,m,y,v,_,x,b,w=d.bits,S=0,k=0,M=0,C=0,T=0,I=0,D=0,A=0,L=0,$=0,P=null,O=0,E=new r.Buf16(16),N=new r.Buf16(16),R=null,z=0;for(S=0;S<=15;S++)E[S]=0;for(k=0;k<l;k++)E[e[n+k]]++;for(T=w,C=15;1<=C&&0===E[C];C--);if(C<T&&(T=C),0===C)return u[h++]=0x1400000,u[h++]=0x1400000,d.bits=1,0;for(M=1;M<C&&0===E[M];M++);for(T<M&&(T=M),S=A=1;S<=15;S++)if(A<<=1,(A-=E[S])<0)return -1;if(0<A&&(0===t||1!==C))return -1;for(N[1]=0,S=1;S<15;S++)N[S+1]=N[S]+E[S];for(k=0;k<l;k++)0!==e[n+k]&&(c[N[e[n+k]]++]=k);if(v=0===t?(P=R=c,19):1===t?(P=i,O-=257,R=o,z-=257,256):(P=a,R=s,-1),S=M,y=h,D=k=$=0,g=-1,m=(L=1<<(I=T))-1,1===t&&852<L||2===t&&592<L)return 1;for(;;){for(_=S-D,b=c[k]<v?(x=0,c[k]):c[k]>v?(x=R[z+c[k]],P[O+c[k]]):(x=96,0),p=1<<S-D,M=f=1<<I;u[y+($>>D)+(f-=p)]=_<<24|x<<16|b,0!==f;);for(p=1<<S-1;$&p;)p>>=1;if(0!==p?($&=p-1,$+=p):$=0,k++,0==--E[S]){if(S===C)break;S=e[n+c[k]]}if(T<S&&($&m)!==g){for(0===D&&(D=T),y+=M,A=1<<(I=S-D);I+D<C&&!((A-=E[I+D])<=0);)I++,A<<=1;if(L+=1<<I,1===t&&852<L||2===t&&592<L)return 1;u[g=$&m]=T<<24|I<<16|y-h}}return 0!==$&&(u[y+$]=S-D<<24|4194304),d.bits=T,0}},{"../utils/common":41}],51:[function(t,e,n){e.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],52:[function(t,e,n){var r=t("../utils/common");function i(t){for(var e=t.length;0<=--e;)t[e]=0}var o=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],a=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],s=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],l=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],u=Array(576);i(u);var h=Array(60);i(h);var c=Array(512);i(c);var d=Array(256);i(d);var p=Array(29);i(p);var f,g,m,y=Array(30);function v(t,e,n,r,i){this.static_tree=t,this.extra_bits=e,this.extra_base=n,this.elems=r,this.max_length=i,this.has_stree=t&&t.length}function _(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}function x(t){return t<256?c[t]:c[256+(t>>>7)]}function b(t,e){t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255}function w(t,e,n){t.bi_valid>16-n?(t.bi_buf|=e<<t.bi_valid&65535,b(t,t.bi_buf),t.bi_buf=e>>16-t.bi_valid,t.bi_valid+=n-16):(t.bi_buf|=e<<t.bi_valid&65535,t.bi_valid+=n)}function S(t,e,n){w(t,n[2*e],n[2*e+1])}function k(t,e){for(var n=0;n|=1&t,t>>>=1,n<<=1,0<--e;);return n>>>1}function M(t,e,n){var r,i,o=Array(16),a=0;for(r=1;r<=15;r++)o[r]=a=a+n[r-1]<<1;for(i=0;i<=e;i++){var s=t[2*i+1];0!==s&&(t[2*i]=k(o[s]++,s))}}function C(t){var e;for(e=0;e<286;e++)t.dyn_ltree[2*e]=0;for(e=0;e<30;e++)t.dyn_dtree[2*e]=0;for(e=0;e<19;e++)t.bl_tree[2*e]=0;t.dyn_ltree[512]=1,t.opt_len=t.static_len=0,t.last_lit=t.matches=0}function T(t){8<t.bi_valid?b(t,t.bi_buf):0<t.bi_valid&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0}function I(t,e,n,r){var i=2*e,o=2*n;return t[i]<t[o]||t[i]===t[o]&&r[e]<=r[n]}function D(t,e,n){for(var r=t.heap[n],i=n<<1;i<=t.heap_len&&(i<t.heap_len&&I(e,t.heap[i+1],t.heap[i],t.depth)&&i++,!I(e,r,t.heap[i],t.depth));)t.heap[n]=t.heap[i],n=i,i<<=1;t.heap[n]=r}function A(t,e,n){var r,i,s,l,u=0;if(0!==t.last_lit)for(;r=t.pending_buf[t.d_buf+2*u]<<8|t.pending_buf[t.d_buf+2*u+1],i=t.pending_buf[t.l_buf+u],u++,0===r?S(t,i,e):(S(t,(s=d[i])+256+1,e),0!==(l=o[s])&&w(t,i-=p[s],l),S(t,s=x(--r),n),0!==(l=a[s])&&w(t,r-=y[s],l)),u<t.last_lit;);S(t,256,e)}function L(t,e){var n,r,i,o=e.dyn_tree,a=e.stat_desc.static_tree,s=e.stat_desc.has_stree,l=e.stat_desc.elems,u=-1;for(t.heap_len=0,t.heap_max=573,n=0;n<l;n++)0!==o[2*n]?(t.heap[++t.heap_len]=u=n,t.depth[n]=0):o[2*n+1]=0;for(;t.heap_len<2;)o[2*(i=t.heap[++t.heap_len]=u<2?++u:0)]=1,t.depth[i]=0,t.opt_len--,s&&(t.static_len-=a[2*i+1]);for(e.max_code=u,n=t.heap_len>>1;1<=n;n--)D(t,o,n);for(i=l;n=t.heap[1],t.heap[1]=t.heap[t.heap_len--],D(t,o,1),r=t.heap[1],t.heap[--t.heap_max]=n,t.heap[--t.heap_max]=r,o[2*i]=o[2*n]+o[2*r],t.depth[i]=(t.depth[n]>=t.depth[r]?t.depth[n]:t.depth[r])+1,o[2*n+1]=o[2*r+1]=i,t.heap[1]=i++,D(t,o,1),2<=t.heap_len;);t.heap[--t.heap_max]=t.heap[1],function(t,e){var n,r,i,o,a,s,l=e.dyn_tree,u=e.max_code,h=e.stat_desc.static_tree,c=e.stat_desc.has_stree,d=e.stat_desc.extra_bits,p=e.stat_desc.extra_base,f=e.stat_desc.max_length,g=0;for(o=0;o<=15;o++)t.bl_count[o]=0;for(l[2*t.heap[t.heap_max]+1]=0,n=t.heap_max+1;n<573;n++)f<(o=l[2*l[2*(r=t.heap[n])+1]+1]+1)&&(o=f,g++),l[2*r+1]=o,u<r||(t.bl_count[o]++,a=0,p<=r&&(a=d[r-p]),s=l[2*r],t.opt_len+=s*(o+a),c&&(t.static_len+=s*(h[2*r+1]+a)));if(0!==g){do{for(o=f-1;0===t.bl_count[o];)o--;t.bl_count[o]--,t.bl_count[o+1]+=2,t.bl_count[f]--,g-=2}while(0<g);for(o=f;0!==o;o--)for(r=t.bl_count[o];0!==r;)u<(i=t.heap[--n])||(l[2*i+1]!==o&&(t.opt_len+=(o-l[2*i+1])*l[2*i],l[2*i+1]=o),r--)}}(t,e),M(o,u,t.bl_count)}function $(t,e,n){var r,i,o=-1,a=e[1],s=0,l=7,u=4;for(0===a&&(l=138,u=3),e[2*(n+1)+1]=65535,r=0;r<=n;r++)i=a,a=e[2*(r+1)+1],++s<l&&i===a||(s<u?t.bl_tree[2*i]+=s:0!==i?(i!==o&&t.bl_tree[2*i]++,t.bl_tree[32]++):s<=10?t.bl_tree[34]++:t.bl_tree[36]++,o=i,u=(s=0)===a?(l=138,3):i===a?(l=6,3):(l=7,4))}function P(t,e,n){var r,i,o=-1,a=e[1],s=0,l=7,u=4;for(0===a&&(l=138,u=3),r=0;r<=n;r++)if(i=a,a=e[2*(r+1)+1],!(++s<l&&i===a)){if(s<u)for(;S(t,i,t.bl_tree),0!=--s;);else 0!==i?(i!==o&&(S(t,i,t.bl_tree),s--),S(t,16,t.bl_tree),w(t,s-3,2)):s<=10?(S(t,17,t.bl_tree),w(t,s-3,3)):(S(t,18,t.bl_tree),w(t,s-11,7));o=i,u=(s=0)===a?(l=138,3):i===a?(l=6,3):(l=7,4)}}i(y);var O=!1;function E(t,e,n,i){w(t,0+ +!!i,3),T(t),b(t,n),b(t,~n),r.arraySet(t.pending_buf,t.window,e,n,t.pending),t.pending+=n}n._tr_init=function(t){O||(function(){var t,e,n,r,i,l=Array(16);for(r=n=0;r<28;r++)for(p[r]=n,t=0;t<1<<o[r];t++)d[n++]=r;for(d[n-1]=r,r=i=0;r<16;r++)for(y[r]=i,t=0;t<1<<a[r];t++)c[i++]=r;for(i>>=7;r<30;r++)for(y[r]=i<<7,t=0;t<1<<a[r]-7;t++)c[256+i++]=r;for(e=0;e<=15;e++)l[e]=0;for(t=0;t<=143;)u[2*t+1]=8,t++,l[8]++;for(;t<=255;)u[2*t+1]=9,t++,l[9]++;for(;t<=279;)u[2*t+1]=7,t++,l[7]++;for(;t<=287;)u[2*t+1]=8,t++,l[8]++;for(M(u,287,l),t=0;t<30;t++)h[2*t+1]=5,h[2*t]=k(t,5);f=new v(u,o,257,286,15),g=new v(h,a,0,30,15),m=new v([],s,0,19,7)}(),O=!0),t.l_desc=new _(t.dyn_ltree,f),t.d_desc=new _(t.dyn_dtree,g),t.bl_desc=new _(t.bl_tree,m),t.bi_buf=0,t.bi_valid=0,C(t)},n._tr_stored_block=E,n._tr_flush_block=function(t,e,n,r){var i,o,a=0;0<t.level?(2===t.strm.data_type&&(t.strm.data_type=function(t){var e,n=0xf3ffc07f;for(e=0;e<=31;e++,n>>>=1)if(1&n&&0!==t.dyn_ltree[2*e])return 0;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return 1;for(e=32;e<256;e++)if(0!==t.dyn_ltree[2*e])return 1;return 0}(t)),L(t,t.l_desc),L(t,t.d_desc),a=function(t){var e;for($(t,t.dyn_ltree,t.l_desc.max_code),$(t,t.dyn_dtree,t.d_desc.max_code),L(t,t.bl_desc),e=18;3<=e&&0===t.bl_tree[2*l[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e}(t),i=t.opt_len+3+7>>>3,(o=t.static_len+3+7>>>3)<=i&&(i=o)):i=o=n+5,n+4<=i&&-1!==e?E(t,e,n,r):4===t.strategy||o===i?(w(t,2+ +!!r,3),A(t,u,h)):(w(t,4+ +!!r,3),function(t,e,n,r){var i;for(w(t,e-257,5),w(t,n-1,5),w(t,r-4,4),i=0;i<r;i++)w(t,t.bl_tree[2*l[i]+1],3);P(t,t.dyn_ltree,e-1),P(t,t.dyn_dtree,n-1)}(t,t.l_desc.max_code+1,t.d_desc.max_code+1,a+1),A(t,t.dyn_ltree,t.dyn_dtree)),C(t),r&&T(t)},n._tr_tally=function(t,e,n){return t.pending_buf[t.d_buf+2*t.last_lit]=e>>>8&255,t.pending_buf[t.d_buf+2*t.last_lit+1]=255&e,t.pending_buf[t.l_buf+t.last_lit]=255&n,t.last_lit++,0===e?t.dyn_ltree[2*n]++:(t.matches++,e--,t.dyn_ltree[2*(d[n]+256+1)]++,t.dyn_dtree[2*x(e)]++),t.last_lit===t.lit_bufsize-1},n._tr_align=function(t){w(t,2,3),S(t,256,u),16===t.bi_valid?(b(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):8<=t.bi_valid&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)}},{"../utils/common":41}],53:[function(t,e,n){e.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(t,e,n){(function(t){!function(t,e){if(!t.setImmediate){var n,r,i,o,a=1,s={},l=!1,u=t.document,h=Object.getPrototypeOf&&Object.getPrototypeOf(t);h=h&&h.setTimeout?h:t,n="[object process]"===({}).toString.call(t.process)?function(t){process.nextTick(function(){d(t)})}:!function(){if(t.postMessage&&!t.importScripts){var e=!0,n=t.onmessage;return t.onmessage=function(){e=!1},t.postMessage("","*"),t.onmessage=n,e}}()?t.MessageChannel?((i=new MessageChannel).port1.onmessage=function(t){d(t.data)},function(t){i.port2.postMessage(t)}):u&&"onreadystatechange"in u.createElement("script")?(r=u.documentElement,function(t){var e=u.createElement("script");e.onreadystatechange=function(){d(t),e.onreadystatechange=null,r.removeChild(e),e=null},r.appendChild(e)}):function(t){setTimeout(d,0,t)}:(o="setImmediate$"+Math.random()+"$",t.addEventListener?t.addEventListener("message",p,!1):t.attachEvent("onmessage",p),function(e){t.postMessage(o+e,"*")}),h.setImmediate=function(t){"function"!=typeof t&&(t=Function(""+t));for(var e=Array(arguments.length-1),r=0;r<e.length;r++)e[r]=arguments[r+1];var i={callback:t,args:e};return s[a]=i,n(a),a++},h.clearImmediate=c}function c(t){delete s[t]}function d(t){if(l)setTimeout(d,0,t);else{var n=s[t];if(n){l=!0;try{var r=n.callback,i=n.args;switch(i.length){case 0:r();break;case 1:r(i[0]);break;case 2:r(i[0],i[1]);break;case 3:r(i[0],i[1],i[2]);break;default:r.apply(e,i)}}finally{c(t),l=!1}}}}function p(e){e.source===t&&"string"==typeof e.data&&0===e.data.indexOf(o)&&d(+e.data.slice(o.length))}}(typeof self>"u"?void 0===t?this:t:self)}).call(this,"u">typeof l?l:"u">typeof self?self:"u">typeof window?window:{})},{}]},{},[10])(10)),(d=h.exports)&&d.__esModule&&Object.prototype.hasOwnProperty.call(d,"default"))?d.default:d;var d,p,f,g={},m={};function y(){let t,e,n;return f||(f=1,n=RegExp("^"+(e="["+(t=":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD")+"]["+t+"\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*")+"$"),m.isExist=function(t){return"u">typeof t},m.isEmptyObject=function(t){return 0===Object.keys(t).length},m.merge=function(t,e,n){if(e){let r=Object.keys(e),i=r.length;for(let o=0;o<i;o++)"strict"===n?t[r[o]]=[e[r[o]]]:t[r[o]]=e[r[o]]}},m.getValue=function(t){return m.isExist(t)?t:""},m.isName=function(t){let e=n.exec(t);return!(null===e||typeof e>"u")},m.getAllMatches=function(t,e){let n=[],r=e.exec(t);for(;r;){let i=[];i.startIndex=e.lastIndex-r[0].length;let o=r.length;for(let t=0;t<o;t++)i.push(r[t]);n.push(i),r=e.exec(t)}return n},m.nameRegexp=e,m.DANGEROUS_PROPERTY_NAMES=["hasOwnProperty","toString","valueOf","__defineGetter__","__defineSetter__","__lookupGetter__","__lookupSetter__"],m.criticalProperties=["__proto__","constructor","prototype"]),m}function v(){if(_)return g;_=1;let t=y(),e={allowBooleanAttributes:!1,unpairedTags:[]};function n(t){return" "===t||" "===t||t===`
|
|
12
|
+
`||"\r"===t}function r(t,e){let n=e;for(;e<t.length;e++)if("?"==t[e]||" "==t[e]){let r=t.substr(n,e-n);if(e>5&&"xml"===r)return s("InvalidXml","XML declaration allowed only at the start of the document.",l(t,e));if("?"!=t[e]||">"!=t[e+1])continue;e++;break}return e}function i(t,e){if(t.length>e+5&&"-"===t[e+1]&&"-"===t[e+2]){for(e+=3;e<t.length;e++)if("-"===t[e]&&"-"===t[e+1]&&">"===t[e+2]){e+=2;break}}else if(t.length>e+8&&"D"===t[e+1]&&"O"===t[e+2]&&"C"===t[e+3]&&"T"===t[e+4]&&"Y"===t[e+5]&&"P"===t[e+6]&&"E"===t[e+7]){let n=1;for(e+=8;e<t.length;e++)if("<"===t[e])n++;else if(">"===t[e]&&0==--n)break}else if(t.length>e+9&&"["===t[e+1]&&"C"===t[e+2]&&"D"===t[e+3]&&"A"===t[e+4]&&"T"===t[e+5]&&"A"===t[e+6]&&"["===t[e+7]){for(e+=8;e<t.length;e++)if("]"===t[e]&&"]"===t[e+1]&&">"===t[e+2]){e+=2;break}}return e}g.validate=function(o,u){u=Object.assign({},e,u);let h=[],c=!1,d=!1;"\uFEFF"===o[0]&&(o=o.substr(1));for(let e=0;e<o.length;e++)if("<"===o[e]&&"?"===o[e+1]){if(e+=2,(e=r(o,e)).err)return e}else if("<"===o[e]){let f=e;if("!"===o[++e]){e=i(o,e);continue}{var p;let g=!1;"/"===o[e]&&(g=!0,e++);let m="";for(;e<o.length&&">"!==o[e]&&" "!==o[e]&&" "!==o[e]&&o[e]!==`
|
|
13
|
+
`&&"\r"!==o[e];e++)m+=o[e];if("/"===(m=m.trim())[m.length-1]&&(m=m.substring(0,m.length-1),e--),p=m,!t.isName(p))return s("InvalidTag",0===m.trim().length?"Invalid space after '<'.":"Tag '"+m+"' is an invalid name.",l(o,e));let y=function(t,e){let n="",r="",i=!1;for(;e<t.length;e++){if('"'===t[e]||"'"===t[e])""===r?r=t[e]:r!==t[e]||(r="");else if(">"===t[e]&&""===r){i=!0;break}n+=t[e]}return""===r&&{value:n,index:e,tagClosed:i}}(o,e);if(!1===y)return s("InvalidAttr","Attributes for '"+m+"' have open quote.",l(o,e));let v=y.value;if(e=y.index,"/"===v[v.length-1]){let t=e-v.length,n=a(v=v.substring(0,v.length-1),u);if(!0!==n)return s(n.err.code,n.err.msg,l(o,t+n.err.line));c=!0}else if(g)if(!y.tagClosed)return s("InvalidTag","Closing tag '"+m+"' doesn't have proper closing.",l(o,e));else{if(v.trim().length>0)return s("InvalidTag","Closing tag '"+m+"' can't have attributes or invalid starting.",l(o,f));if(0===h.length)return s("InvalidTag","Closing tag '"+m+"' has not been opened.",l(o,f));{let t=h.pop();if(m!==t.tagName){let e=l(o,t.tagStartPos);return s("InvalidTag","Expected closing tag '"+t.tagName+"' (opened in line "+e.line+", col "+e.col+") instead of closing tag '"+m+"'.",l(o,f))}0==h.length&&(d=!0)}}else{let t=a(v,u);if(!0!==t)return s(t.err.code,t.err.msg,l(o,e-v.length+t.err.line));if(!0===d)return s("InvalidXml","Multiple possible root nodes found.",l(o,e));-1!==u.unpairedTags.indexOf(m)||h.push({tagName:m,tagStartPos:f}),c=!0}for(e++;e<o.length;e++)if("<"===o[e])if("!"===o[e+1]){e=i(o,++e);continue}else if("?"===o[e+1]){if((e=r(o,++e)).err)return e}else break;else if("&"===o[e]){let t=function(t,e){if(";"===t[++e])return -1;if("#"===t[e]){var n=++e;let r=/\d/;for("x"===t[n]&&(n++,r=/[\da-fA-F]/);n<t.length;n++){if(";"===t[n])return n;if(!t[n].match(r))break}return -1}let r=0;for(;e<t.length;e++,r++)if(!(t[e].match(/\w/)&&r<20)){if(";"===t[e])break;return -1}return e}(o,e);if(-1==t)return s("InvalidChar","char '&' is not expected.",l(o,e));e=t}else if(!0===d&&!n(o[e]))return s("InvalidXml","Extra text at the end",l(o,e));"<"===o[e]&&e--}}else{if(n(o[e]))continue;return s("InvalidChar","char '"+o[e]+"' is not expected.",l(o,e))}return c?1==h.length?s("InvalidTag","Unclosed tag '"+h[0].tagName+"'.",l(o,h[0].tagStartPos)):!(h.length>0)||s("InvalidXml","Invalid '"+JSON.stringify(h.map(t=>t.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1}):s("InvalidXml","Start tag expected.",1)};let o=RegExp("(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['\"])(([\\s\\S])*?)\\5)?","g");function a(e,n){let r=t.getAllMatches(e,o),i={};for(let e=0;e<r.length;e++){var a;if(0===r[e][1].length)return s("InvalidAttr","Attribute '"+r[e][2]+"' has no space in starting.",u(r[e]));if(void 0!==r[e][3]&&void 0===r[e][4])return s("InvalidAttr","Attribute '"+r[e][2]+"' is without value.",u(r[e]));if(void 0===r[e][3]&&!n.allowBooleanAttributes)return s("InvalidAttr","boolean attribute '"+r[e][2]+"' is not allowed.",u(r[e]));let o=r[e][2];if(a=o,!t.isName(a))return s("InvalidAttr","Attribute '"+o+"' is an invalid name.",u(r[e]));if(i.hasOwnProperty(o))return s("InvalidAttr","Attribute '"+o+"' is repeated.",u(r[e]));i[o]=1}return!0}function s(t,e,n){return{err:{code:t,msg:e,line:n.line||n,col:n.col}}}function l(t,e){let n=t.substring(0,e).split(/\r?\n/);return{line:n.length,col:n[n.length-1].length+1}}function u(t){return t.startIndex+t[1].length}return g}var _,x,b={};function w(){return A?D:(A=1,D=function(t){return"function"==typeof t?t:Array.isArray(t)?e=>{for(let n of t)if("string"==typeof n&&e===n||n instanceof RegExp&&n.test(e))return!0}:()=>!1})}var S,k,M,C,T,I,D,A,L,$,P,O={},E=function(){if(rr)return rn;rr=1;let t=v();return rn={XMLParser:function(){if(n8)return n6;n8=1;let{buildOptions:t}=function(){if(x)return b;x=1;let{DANGEROUS_PROPERTY_NAMES:t,criticalProperties:e}=y(),n=e=>t.includes(e)?"__"+e:e,r={preserveOrder:!1,attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,removeNSPrefix:!1,allowBooleanAttributes:!1,parseTagValue:!0,parseAttributeValue:!1,trimValues:!0,cdataPropName:!1,numberParseOptions:{hex:!0,leadingZeros:!0,eNotation:!0},tagValueProcessor:function(t,e){return e},attributeValueProcessor:function(t,e){return e},stopNodes:[],alwaysCreateTextNode:!1,isArray:()=>!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function(t,e,n){return t},captureMetaData:!1,maxNestedTags:100,strictReservedNames:!0,onDangerousProperty:n};return b.buildOptions=function(i){let o=Object.assign({},r,i);for(let{value:n,name:r}of[{value:o.attributeNamePrefix,name:"attributeNamePrefix"},{value:o.attributesGroupName,name:"attributesGroupName"},{value:o.textNodeName,name:"textNodeName"},{value:o.cdataPropName,name:"cdataPropName"},{value:o.commentPropName,name:"commentPropName"}])n&&function(n,r){if("string"!=typeof n)return;let i=n.toLowerCase();if(t.some(t=>i===t.toLowerCase())||e.some(t=>i===t.toLowerCase()))throw Error(`[SECURITY] Invalid ${r}: "${n}" is a reserved JavaScript keyword that could cause prototype pollution`)}(n,r);return null===o.onDangerousProperty&&(o.onDangerousProperty=n),o.processEntities=function t(e){return"boolean"==typeof e?{enabled:e,maxEntitySize:1e4,maxExpansionDepth:10,maxTotalExpansions:1e3,maxExpandedLength:1e5,allowedTags:null,tagFilter:null}:"object"==typeof e&&null!==e?{enabled:!1!==e.enabled,maxEntitySize:Math.max(1,e.maxEntitySize??1e4),maxExpansionDepth:Math.max(1,e.maxExpansionDepth??10),maxTotalExpansions:Math.max(1,e.maxTotalExpansions??1e3),maxExpandedLength:Math.max(1,e.maxExpandedLength??1e5),maxEntityCount:Math.max(1,e.maxEntityCount??100),allowedTags:e.allowedTags??null,tagFilter:e.tagFilter??null}:t(!0)}(o.processEntities),o},b.defaultOptions=r,b}(),e=function(){if($)return L;$=1;let t=y(),e=k?S:(k=1,S=class{constructor(t){this.tagname=t,this.child=[],this[":@"]={}}add(t,e){"__proto__"===t&&(t="#__proto__"),this.child.push({[t]:e})}addChild(t){"__proto__"===t.tagname&&(t.tagname="#__proto__"),t[":@"]&&Object.keys(t[":@"]).length>0?this.child.push({[t.tagname]:t.child,":@":t[":@"]}):this.child.push({[t.tagname]:t.child})}}),n=function(){if(C)return M;C=1;let t=y(),e=(t,e)=>{for(;e<t.length&&/\s/.test(t[e]);)e++;return e};function n(t,e,n){for(let r=0;r<e.length;r++)if(e[r]!==t[n+r+1])return!1;return!0}function r(e){if(t.isName(e))return e;throw Error(`Invalid entity name ${e}`)}return M=class{constructor(t){this.suppressValidationErr=!t,this.options=t||{}}readDocType(t,e){let r=Object.create(null),i=0;if("O"===t[e+3]&&"C"===t[e+4]&&"T"===t[e+5]&&"Y"===t[e+6]&&"P"===t[e+7]&&"E"===t[e+8]){e+=9;let o=1,a=!1,s=!1;for(;e<t.length;e++)if("<"!==t[e]||s)if(">"===t[e]){if(s?"-"===t[e-1]&&"-"===t[e-2]&&(s=!1,o--):o--,0===o)break}else"["===t[e]?a=!0:t[e];else{if(a&&n(t,"!ENTITY",e)){let n,o;if(e+=7,[n,o,e]=this.readEntityExp(t,e+1,this.suppressValidationErr),-1===o.indexOf("&")){if(!1!==this.options.enabled&&null!=this.options.maxEntityCount&&i>=this.options.maxEntityCount)throw Error(`Entity count (${i+1}) exceeds maximum allowed (${this.options.maxEntityCount})`);let t=n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");r[n]={regx:RegExp(`&${t};`,"g"),val:o},i++}}else if(a&&n(t,"!ELEMENT",e)){e+=8;let{index:n}=this.readElementExp(t,e+1);e=n}else if(a&&n(t,"!ATTLIST",e))e+=8;else if(a&&n(t,"!NOTATION",e)){e+=9;let{index:n}=this.readNotationExp(t,e+1,this.suppressValidationErr);e=n}else if(n(t,"!--",e))s=!0;else throw Error("Invalid DOCTYPE");o++}if(0!==o)throw Error("Unclosed DOCTYPE")}else throw Error("Invalid Tag instead of DOCTYPE");return{entities:r,i:e}}readEntityExp(t,n){n=e(t,n);let i="";for(;n<t.length&&!/\s/.test(t[n])&&'"'!==t[n]&&"'"!==t[n];)i+=t[n],n++;if(r(i),n=e(t,n),!this.suppressValidationErr){if("SYSTEM"===t.substring(n,n+6).toUpperCase())throw Error("External entities are not supported");if("%"===t[n])throw Error("Parameter entities are not supported")}let o="";if([n,o]=this.readIdentifierVal(t,n,"entity"),!1!==this.options.enabled&&null!=this.options.maxEntitySize&&o.length>this.options.maxEntitySize)throw Error(`Entity "${i}" size (${o.length}) exceeds maximum allowed size (${this.options.maxEntitySize})`);return[i,o,--n]}readNotationExp(t,n){n=e(t,n);let i="";for(;n<t.length&&!/\s/.test(t[n]);)i+=t[n],n++;this.suppressValidationErr||r(i),n=e(t,n);let o=t.substring(n,n+6).toUpperCase();if(!this.suppressValidationErr&&"SYSTEM"!==o&&"PUBLIC"!==o)throw Error(`Expected SYSTEM or PUBLIC, found "${o}"`);n+=o.length,n=e(t,n);let a=null,s=null;if("PUBLIC"===o)[n,a]=this.readIdentifierVal(t,n,"publicIdentifier"),n=e(t,n),('"'===t[n]||"'"===t[n])&&([n,s]=this.readIdentifierVal(t,n,"systemIdentifier"));else if("SYSTEM"===o&&([n,s]=this.readIdentifierVal(t,n,"systemIdentifier"),!this.suppressValidationErr&&!s))throw Error("Missing mandatory system identifier for SYSTEM notation");return{notationName:i,publicIdentifier:a,systemIdentifier:s,index:--n}}readIdentifierVal(t,e,n){let r="",i=t[e];if('"'!==i&&"'"!==i)throw Error(`Expected quoted string, found "${i}"`);for(e++;e<t.length&&t[e]!==i;)r+=t[e],e++;if(t[e]!==i)throw Error(`Unterminated ${n} value`);return[++e,r]}readElementExp(r,i){i=e(r,i);let o="";for(;i<r.length&&!/\s/.test(r[i]);)o+=r[i],i++;if(!this.suppressValidationErr&&!t.isName(o))throw Error(`Invalid element name: "${o}"`);i=e(r,i);let a="";if("E"===r[i]&&n(r,"MPTY",i))i+=4;else if("A"===r[i]&&n(r,"NY",i))i+=2;else if("("===r[i]){for(i++;i<r.length&&")"!==r[i];)a+=r[i],i++;if(")"!==r[i])throw Error("Unterminated content model")}else if(!this.suppressValidationErr)throw Error(`Invalid Element Expression, found "${r[i]}"`);return{elementName:o,contentModel:a.trim(),index:i}}readAttlistExp(t,n){n=e(t,n);let i="";for(;n<t.length&&!/\s/.test(t[n]);)i+=t[n],n++;r(i),n=e(t,n);let o="";for(;n<t.length&&!/\s/.test(t[n]);)o+=t[n],n++;if(!r(o))throw Error(`Invalid attribute name: "${o}"`);n=e(t,n);let a="";if("NOTATION"===t.substring(n,n+8).toUpperCase()){if(a="NOTATION",n+=8,n=e(t,n),"("!==t[n])throw Error(`Expected '(', found "${t[n]}"`);n++;let i=[];for(;n<t.length&&")"!==t[n];){let o="";for(;n<t.length&&"|"!==t[n]&&")"!==t[n];)o+=t[n],n++;if(!r(o=o.trim()))throw Error(`Invalid notation name: "${o}"`);i.push(o),"|"===t[n]&&(n=e(t,++n))}if(")"!==t[n])throw Error("Unterminated list of notations");n++,a+=" ("+i.join("|")+")"}else{for(;n<t.length&&!/\s/.test(t[n]);)a+=t[n],n++;if(!this.suppressValidationErr&&!["CDATA","ID","IDREF","IDREFS","ENTITY","ENTITIES","NMTOKEN","NMTOKENS"].includes(a.toUpperCase()))throw Error(`Invalid attribute type: "${a}"`)}n=e(t,n);let s="";return"#REQUIRED"===t.substring(n,n+8).toUpperCase()?(s="#REQUIRED",n+=8):"#IMPLIED"===t.substring(n,n+7).toUpperCase()?(s="#IMPLIED",n+=7):[n,s]=this.readIdentifierVal(t,n,"ATTLIST"),{elementName:i,attributeName:o,attributeType:a,defaultValue:s,index:n}}}}(),r=function(){if(I)return T;I=1;let t=/^[-+]?0x[a-fA-F0-9]+$/,e=/^([\-\+])?(0*)([0-9]*(\.[0-9]*)?)$/,n={hex:!0,leadingZeros:!0,decimalPoint:".",eNotation:!0};return T=function(r,i={}){if(i=Object.assign({},n,i),!r||"string"!=typeof r)return r;let o=r.trim();if(void 0!==i.skipLike&&i.skipLike.test(o))return r;if("0"===r)return 0;if(i.hex&&t.test(o)){var a,s=o;if(parseInt)return parseInt(s,16);if(Number.parseInt)return Number.parseInt(s,16);if(window&&window.parseInt)return window.parseInt(s,16);throw Error("parseInt, Number.parseInt, window.parseInt are not supported")}if(-1!==o.search(/[eE]/)){let t=o.match(/^([-\+])?(0*)([0-9]*(\.[0-9]*)?[eE][-\+]?[0-9]+)$/);if(!t)return r;if(i.leadingZeros)o=(t[1]||"")+t[3];else if("0"!==t[2]||"."!==t[3][0])return r;return i.eNotation?Number(o):r}{let t=e.exec(o);if(!t)return r;{let e=t[1],n=t[2],s=((a=t[3])&&-1!==a.indexOf(".")&&("."===(a=a.replace(/0+$/,""))?a="0":"."===a[0]?a="0"+a:"."===a[a.length-1]&&(a=a.substr(0,a.length-1))),a);if(!i.leadingZeros&&n.length>0&&e&&"."!==o[2]||!i.leadingZeros&&n.length>0&&!e&&"."!==o[1])return r;if(i.leadingZeros&&n===r)return 0;{let t=Number(o),a=""+t;return -1!==a.search(/[eE]/)?i.eNotation?t:r:-1!==o.indexOf(".")?"0"===a&&""===s||a===s||e&&a==="-"+s?t:r:n?s===a||e+s===a?t:r:o===a||o===e+a?t:r}}}}}(),i=w();function o(t){let e=Object.keys(t);for(let n=0;n<e.length;n++){let r=e[n],i=r.replace(/[.\-+*:]/g,"\\.");this.lastEntities[r]={regex:RegExp("&"+i+";","g"),val:t[r]}}}function a(t,e,n,r,i,o,a){if(void 0!==t&&(this.options.trimValues&&!r&&(t=t.trim()),t.length>0)){a||(t=this.replaceEntitiesValue(t,e,n));let r=this.options.tagValueProcessor(e,t,n,i,o);return null==r?t:typeof r!=typeof t||r!==t?r:this.options.trimValues||t.trim()===t?_(t,this.options.parseTagValue,this.options.numberParseOptions):t}}function s(t){if(this.options.removeNSPrefix){let e=t.split(":"),n="/"===t.charAt(0)?"/":"";if("xmlns"===e[0])return"";2===e.length&&(t=n+e[1])}return t}let l=RegExp("([^\\s=]+)\\s*(=\\s*(['\"])([\\s\\S]*?)\\3)?","gm");function u(e,n,r){if(!0!==this.options.ignoreAttributes&&"string"==typeof e){let i=t.getAllMatches(e,l),o=i.length,a={};for(let e=0;e<o;e++){let o=this.resolveNameSpace(i[e][1]);if(this.ignoreAttributesFn(o,n))continue;let s=i[e][4],l=this.options.attributeNamePrefix+o;if(o.length)if(this.options.transformAttributeName&&(l=this.options.transformAttributeName(l)),l=function(e,n){if(t.criticalProperties.includes(e))throw Error(`[SECURITY] Invalid name: "${e}" is a reserved JavaScript keyword that could cause prototype pollution`);return t.DANGEROUS_PROPERTY_NAMES.includes(e)?n.onDangerousProperty(e):e}(l,this.options),void 0!==s){this.options.trimValues&&(s=s.trim()),s=this.replaceEntitiesValue(s,r,n);let t=this.options.attributeValueProcessor(o,s,n);null==t?a[l]=s:typeof t!=typeof s||t!==s?a[l]=t:a[l]=_(s,this.options.parseAttributeValue,this.options.numberParseOptions)}else this.options.allowBooleanAttributes&&(a[l]=!0)}if(Object.keys(a).length){if(this.options.attributesGroupName){let t={};return t[this.options.attributesGroupName]=a,t}return a}}}let h=function(t){t=t.replace(/\r\n?/g,`
|
|
14
|
+
`);let r=new e("!xml"),i=r,o="",a="";this.entityExpansionCount=0,this.currentExpandedLength=0;let s=new n(this.options.processEntities);for(let n=0;n<t.length;n++)if("<"===t[n])if("/"===t[n+1]){let e=g(t,">",n,"Closing Tag is not closed."),r=t.substring(n+2,e).trim();if(this.options.removeNSPrefix){let t=r.indexOf(":");-1!==t&&(r=r.substr(t+1))}this.options.transformTagName&&(r=this.options.transformTagName(r)),i&&(o=this.saveTextToParentTag(o,i,a));let s=a.substring(a.lastIndexOf(".")+1);if(r&&-1!==this.options.unpairedTags.indexOf(r))throw Error(`Unpaired tag can not be used as closing tag: </${r}>`);let l=0;s&&-1!==this.options.unpairedTags.indexOf(s)?(l=a.lastIndexOf(".",a.lastIndexOf(".")-1),this.tagsNodeStack.pop()):l=a.lastIndexOf("."),a=a.substring(0,l),i=this.tagsNodeStack.pop(),o="",n=e}else if("?"===t[n+1]){let r=m(t,n,!1,"?>");if(!r)throw Error("Pi Tag is not closed.");if(o=this.saveTextToParentTag(o,i,a),!(this.options.ignoreDeclaration&&"?xml"===r.tagName||this.options.ignorePiTags)){let t=new e(r.tagName);t.add(this.options.textNodeName,""),r.tagName!==r.tagExp&&r.attrExpPresent&&(t[":@"]=this.buildAttributesMap(r.tagExp,a,r.tagName)),this.addChild(i,t,a,n)}n=r.closeIndex+1}else if("!--"===t.substr(n+1,3)){let e=g(t,"--\x3e",n+4,"Comment is not closed.");if(this.options.commentPropName){let r=t.substring(n+4,e-2);o=this.saveTextToParentTag(o,i,a),i.add(this.options.commentPropName,[{[this.options.textNodeName]:r}])}n=e}else if("!D"===t.substr(n+1,2)){let e=s.readDocType(t,n);this.docTypeEntities=e.entities,n=e.i}else if("!["===t.substr(n+1,2)){let e=g(t,"]]>",n,"CDATA is not closed.")-2,r=t.substring(n+9,e);o=this.saveTextToParentTag(o,i,a);let s=this.parseTextData(r,i.tagname,a,!0,!1,!0,!0);null==s&&(s=""),this.options.cdataPropName?i.add(this.options.cdataPropName,[{[this.options.textNodeName]:r}]):i.add(this.options.textNodeName,s),n=e+2}else{let s=m(t,n,this.options.removeNSPrefix),l=s.tagName,u=s.rawTagName,h=s.tagExp,c=s.attrExpPresent,d=s.closeIndex;if(this.options.transformTagName){let t=this.options.transformTagName(l);h===l&&(h=t),l=t}if(this.options.strictReservedNames&&(l===this.options.commentPropName||l===this.options.cdataPropName||l===this.options.textNodeName||l===this.options.attributesGroupName))throw Error(`Invalid tag name: ${l}`);i&&o&&"!xml"!==i.tagname&&(o=this.saveTextToParentTag(o,i,a,!1));let p=i;p&&-1!==this.options.unpairedTags.indexOf(p.tagname)&&(i=this.tagsNodeStack.pop(),a=a.substring(0,a.lastIndexOf("."))),l!==r.tagname&&(a+=a?"."+l:l);let f=n;if(this.isItStopNode(this.stopNodesExact,this.stopNodesWildcard,a,l)){let r="";if(h.length>0&&h.lastIndexOf("/")===h.length-1)"/"===l[l.length-1]?(l=l.substr(0,l.length-1),a=a.substr(0,a.length-1),h=l):h=h.substr(0,h.length-1),n=s.closeIndex;else if(-1!==this.options.unpairedTags.indexOf(l))n=s.closeIndex;else{let e=this.readStopNodeData(t,u,d+1);if(!e)throw Error(`Unexpected end of ${u}`);n=e.i,r=e.tagContent}let o=new e(l);l!==h&&c&&(o[":@"]=this.buildAttributesMap(h,a,l)),r&&(r=this.parseTextData(r,l,a,!0,c,!0,!0)),a=a.substr(0,a.lastIndexOf(".")),o.add(this.options.textNodeName,r),this.addChild(i,o,a,f)}else{if(h.length>0&&h.lastIndexOf("/")===h.length-1){if("/"===l[l.length-1]?(l=l.substr(0,l.length-1),a=a.substr(0,a.length-1),h=l):h=h.substr(0,h.length-1),this.options.transformTagName){let t=this.options.transformTagName(l);h===l&&(h=t),l=t}let t=new e(l);l!==h&&c&&(t[":@"]=this.buildAttributesMap(h,a,l)),this.addChild(i,t,a,f),a=a.substr(0,a.lastIndexOf("."))}else if(-1!==this.options.unpairedTags.indexOf(l)){let t=new e(l);l!==h&&c&&(t[":@"]=this.buildAttributesMap(h,a)),this.addChild(i,t,a,f),a=a.substr(0,a.lastIndexOf(".")),n=s.closeIndex;continue}else{let t=new e(l);if(this.tagsNodeStack.length>this.options.maxNestedTags)throw Error("Maximum nested tags exceeded");this.tagsNodeStack.push(i),l!==h&&c&&(t[":@"]=this.buildAttributesMap(h,a,l)),this.addChild(i,t,a),i=t}o="",n=d}}else o+=t[n];return r.child};function c(t,e,n,r){this.options.captureMetaData||(r=void 0);let i=this.options.updateTag(e.tagname,n,e[":@"]);!1===i||("string"==typeof i&&(e.tagname=i),t.addChild(e,r))}let d=function(t,e,n){if(-1===t.indexOf("&"))return t;let r=this.options.processEntities;if(!r.enabled||r.allowedTags&&!r.allowedTags.includes(e)||r.tagFilter&&!r.tagFilter(e,n))return t;for(let e in this.docTypeEntities){let n=this.docTypeEntities[e],i=t.match(n.regx);if(i){if(this.entityExpansionCount+=i.length,r.maxTotalExpansions&&this.entityExpansionCount>r.maxTotalExpansions)throw Error(`Entity expansion limit exceeded: ${this.entityExpansionCount} > ${r.maxTotalExpansions}`);let e=t.length;if(t=t.replace(n.regx,n.val),r.maxExpandedLength&&(this.currentExpandedLength+=t.length-e,this.currentExpandedLength>r.maxExpandedLength))throw Error(`Total expanded content size exceeded: ${this.currentExpandedLength} > ${r.maxExpandedLength}`)}}if(-1===t.indexOf("&"))return t;for(let e of Object.keys(this.lastEntities)){let n=this.lastEntities[e],i=t.match(n.regex);if(i&&(this.entityExpansionCount+=i.length,r.maxTotalExpansions&&this.entityExpansionCount>r.maxTotalExpansions))throw Error(`Entity expansion limit exceeded: ${this.entityExpansionCount} > ${r.maxTotalExpansions}`);t=t.replace(n.regex,n.val)}if(-1===t.indexOf("&"))return t;if(this.options.htmlEntities)for(let e of Object.keys(this.htmlEntities)){let n=this.htmlEntities[e],i=t.match(n.regex);if(i&&(this.entityExpansionCount+=i.length,r.maxTotalExpansions&&this.entityExpansionCount>r.maxTotalExpansions))throw Error(`Entity expansion limit exceeded: ${this.entityExpansionCount} > ${r.maxTotalExpansions}`);t=t.replace(n.regex,n.val)}return t.replace(this.ampEntity.regex,this.ampEntity.val)};function p(t,e,n,r){return t&&(void 0===r&&(r=0===e.child.length),void 0!==(t=this.parseTextData(t,e.tagname,n,!1,!!e[":@"]&&0!==Object.keys(e[":@"]).length,r))&&""!==t&&e.add(this.options.textNodeName,t),t=""),t}function f(t,e,n,r){return!!(e&&e.has(r)||t&&t.has(n))}function g(t,e,n,r){let i=t.indexOf(e,n);if(-1===i)throw Error(r);return i+e.length-1}function m(t,e,n,r=">"){let i=function(t,e,n=">"){let r,i="";for(let o=e;o<t.length;o++){let e=t[o];if(r)e===r&&(r="");else if('"'===e||"'"===e)r=e;else if(e===n[0]){if(!n[1])return{data:i,index:o};else if(t[o+1]===n[1])return{data:i,index:o}}else" "===e&&(e=" ");i+=e}}(t,e+1,r);if(!i)return;let o=i.data,a=i.index,s=o.search(/\s/),l=o,u=!0;-1!==s&&(l=o.substring(0,s),o=o.substring(s+1).trimStart());let h=l;if(n){let t=l.indexOf(":");-1!==t&&(u=(l=l.substr(t+1))!==i.data.substr(t+1))}return{tagName:l,tagExp:o,closeIndex:a,attrExpPresent:u,rawTagName:h}}function v(t,e,n){let r=n,i=1;for(;n<t.length;n++)if("<"===t[n])if("/"===t[n+1]){let o=g(t,">",n,`${e} is not closed`);if(t.substring(n+2,o).trim()===e&&0==--i)return{tagContent:t.substring(r,n),i:o};n=o}else if("?"===t[n+1])n=g(t,"?>",n+1,"StopNode is not closed.");else if("!--"===t.substr(n+1,3))n=g(t,"--\x3e",n+3,"StopNode is not closed.");else if("!["===t.substr(n+1,2))n=g(t,"]]>",n,"StopNode is not closed.")-2;else{let r=m(t,n,">");r&&((r&&r.tagName)===e&&"/"!==r.tagExp[r.tagExp.length-1]&&i++,n=r.closeIndex)}}function _(e,n,i){if(!n||"string"!=typeof e)return t.isExist(e)?e:"";{let t=e.trim();return"true"===t||"false"!==t&&r(e,i)}}function x(t,e,n){let r=Number.parseInt(t,e);return r>=0&&r<=1114111?String.fromCodePoint(r):n+t+";"}return L=class{constructor(t){if(this.options=t,this.currentNode=null,this.tagsNodeStack=[],this.docTypeEntities={},this.lastEntities={apos:{regex:/&(apos|#39|#x27);/g,val:"'"},gt:{regex:/&(gt|#62|#x3E);/g,val:">"},lt:{regex:/&(lt|#60|#x3C);/g,val:"<"},quot:{regex:/&(quot|#34|#x22);/g,val:'"'}},this.ampEntity={regex:/&(amp|#38|#x26);/g,val:"&"},this.htmlEntities={space:{regex:/&(nbsp|#160);/g,val:" "},cent:{regex:/&(cent|#162);/g,val:"\xa2"},pound:{regex:/&(pound|#163);/g,val:"\xa3"},yen:{regex:/&(yen|#165);/g,val:"\xa5"},euro:{regex:/&(euro|#8364);/g,val:"€"},copyright:{regex:/&(copy|#169);/g,val:"\xa9"},reg:{regex:/&(reg|#174);/g,val:"\xae"},inr:{regex:/&(inr|#8377);/g,val:"₹"},num_dec:{regex:/&#([0-9]{1,7});/g,val:(t,e)=>x(e,10,"&#")},num_hex:{regex:/&#x([0-9a-fA-F]{1,6});/g,val:(t,e)=>x(e,16,"&#x")}},this.addExternalEntities=o,this.parseXml=h,this.parseTextData=a,this.resolveNameSpace=s,this.buildAttributesMap=u,this.isItStopNode=f,this.replaceEntitiesValue=d,this.readStopNodeData=v,this.saveTextToParentTag=p,this.addChild=c,this.ignoreAttributesFn=i(this.options.ignoreAttributes),this.entityExpansionCount=0,this.currentExpandedLength=0,this.options.stopNodes&&this.options.stopNodes.length>0){this.stopNodesExact=new Set,this.stopNodesWildcard=new Set;for(let t=0;t<this.options.stopNodes.length;t++){const e=this.options.stopNodes[t];"string"==typeof e&&(e.startsWith("*.")?this.stopNodesWildcard.add(e.substring(2)):this.stopNodesExact.add(e))}}}}}(),{prettify:n}=(P||(P=1,O.prettify=function(t,e){return function t(e,n,r){let i,o={};for(let a=0;a<e.length;a++){let s=e[a],l=function(t){let e=Object.keys(t);for(let t=0;t<e.length;t++){let n=e[t];if(":@"!==n)return n}}(s),u="";if(u=void 0===r?l:r+"."+l,l===n.textNodeName)void 0===i?i=s[l]:i+=""+s[l];else{if(void 0===l)continue;if(s[l]){let e=t(s[l],n,u),r=function(t,e){let{textNodeName:n}=e,r=Object.keys(t).length;return!!(0===r||1===r&&(t[n]||"boolean"==typeof t[n]||0===t[n]))}(e,n);s[":@"]?function(t,e,n,r){if(e){let i=Object.keys(e),o=i.length;for(let a=0;a<o;a++){let o=i[a];r.isArray(o,n+"."+o,!0,!0)?t[o]=[e[o]]:t[o]=e[o]}}}(e,s[":@"],u,n):1!==Object.keys(e).length||void 0===e[n.textNodeName]||n.alwaysCreateTextNode?0===Object.keys(e).length&&(n.alwaysCreateTextNode?e[n.textNodeName]="":e=""):e=e[n.textNodeName],void 0!==o[l]&&o.hasOwnProperty(l)?(Array.isArray(o[l])||(o[l]=[o[l]]),o[l].push(e)):n.isArray(l,u,r)?o[l]=[e]:o[l]=e}}}return"string"==typeof i?i.length>0&&(o[n.textNodeName]=i):void 0!==i&&(o[n.textNodeName]=i),o}(t,e)}),O),r=v();return n6=class{constructor(e){this.externalEntities={},this.options=t(e)}parse(t,i){if("string"!=typeof t)if(t.toString)t=t.toString();else throw Error("XML data is accepted in String or Bytes[] form.");if(i){!0===i&&(i={});let e=r.validate(t,i);if(!0!==e)throw Error(`${e.err.msg}:${e.err.line}:${e.err.col}`)}let o=new e(this.options);o.addExternalEntities(this.externalEntities);let a=o.parseXml(t);return this.options.preserveOrder||void 0===a?a:n(a,this.options)}addEntity(t,e){if(-1!==e.indexOf("&"))throw Error("Entity value can't have '&'");if(-1!==t.indexOf("&")||-1!==t.indexOf(";"))throw Error("An entity must be set without '&' and ';'. Eg. use '#xD' for '
'");if("&"===e)throw Error("An entity with value '&' is not permitted");this.externalEntities[t]=e}}}(),XMLValidator:t,XMLBuilder:function(){if(re)return rt;re=1;let t=function(){if(n9)return n7;n9=1;let t=`
|
|
15
|
+
`;function e(t,e){let r="";if(t&&!e.ignoreAttributes)for(let i in t){if(!Object.prototype.hasOwnProperty.call(t,i))continue;let o=e.attributeValueProcessor(i,t[i]);!0===(o=n(o,e))&&e.suppressBooleanAttributes?r+=` ${i.substr(e.attributeNamePrefix.length)}`:r+=` ${i.substr(e.attributeNamePrefix.length)}="${o}"`}return r}function n(t,e){if(t&&t.length>0&&e.processEntities)for(let n=0;n<e.entities.length;n++){let r=e.entities[n];t=t.replace(r.regex,r.val)}return t}return n7=function(r,i){let o="";return i.format&&i.indentBy.length>0&&(o=t),function t(r,i,o,a){let s="",l=!1;if(!Array.isArray(r))return null!=r?n(r.toString(),i):"";for(let u=0;u<r.length;u++){let h=r[u],c=function(t){let e=Object.keys(t);for(let n=0;n<e.length;n++){let r=e[n];if(Object.prototype.hasOwnProperty.call(t,r)&&":@"!==r)return r}}(h);if(void 0===c)continue;let d="";if(d=0===o.length?c:`${o}.${c}`,c===i.textNodeName){let t=h[c];(function(t,e){let n=(t=t.substr(0,t.length-e.textNodeName.length-1)).substr(t.lastIndexOf(".")+1);for(let r in e.stopNodes)if(e.stopNodes[r]===t||e.stopNodes[r]==="*."+n)return!0;return!1})(d,i)||(t=n(t=i.tagValueProcessor(c,t),i)),l&&(s+=a),s+=t,l=!1;continue}if(c===i.cdataPropName){l&&(s+=a),s+=`<![CDATA[${h[c][0][i.textNodeName]}]]>`,l=!1;continue}if(c===i.commentPropName){s+=a+`<!--${h[c][0][i.textNodeName]}-->`,l=!0;continue}else if("?"===c[0]){let t=e(h[":@"],i),n="?xml"===c?"":a,r=h[c][0][i.textNodeName];r=0!==r.length?" "+r:"",s+=n+`<${c}${r}${t}?>`,l=!0;continue}let p=a;""!==p&&(p+=i.indentBy);let f=e(h[":@"],i),g=a+`<${c}${f}`,m=t(h[c],i,d,p);-1!==i.unpairedTags.indexOf(c)?i.suppressUnpairedNode?s+=g+">":s+=g+"/>":(!m||0===m.length)&&i.suppressEmptyNode?s+=g+"/>":m&&m.endsWith(">")?s+=g+`>${m}${a}</${c}>`:(s+=g+">",m&&""!==a&&(m.includes("/>")||m.includes("</"))?s+=a+i.indentBy+m+a:s+=m,s+=`</${c}>`),l=!0}return s}(r,i,"",o)}}(),e=w(),n={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function(t,e){return e},attributeValueProcessor:function(t,e){return e},preserveOrder:!1,commentPropName:!1,unpairedTags:[],entities:[{regex:RegExp("&","g"),val:"&"},{regex:RegExp(">","g"),val:">"},{regex:RegExp("<","g"),val:"<"},{regex:RegExp("'","g"),val:"'"},{regex:RegExp('"',"g"),val:"""}],processEntities:!0,stopNodes:[],oneListGroup:!1};function r(t){this.options=Object.assign({},n,t),!0===this.options.ignoreAttributes||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.ignoreAttributesFn=e(this.options.ignoreAttributes),this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=a),this.processTextOrObjNode=i,this.options.format?(this.indentate=o,this.tagEndChar=`>
|
|
16
|
+
`,this.newLine=`
|
|
17
|
+
`):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}function i(t,e,n,r){let i=this.j2x(t,n+1,r.concat(e));return void 0!==t[this.options.textNodeName]&&1===Object.keys(t).length?this.buildTextValNode(t[this.options.textNodeName],e,i.attrStr,n):this.buildObjectNode(i.val,e,i.attrStr,n)}function o(t){return this.options.indentBy.repeat(t)}function a(t){return!!t.startsWith(this.options.attributeNamePrefix)&&t!==this.options.textNodeName&&t.substr(this.attrPrefixLen)}return r.prototype.build=function(e){return this.options.preserveOrder?t(e,this.options):(Array.isArray(e)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(e={[this.options.arrayNodeName]:e}),this.j2x(e,0,[]).val)},r.prototype.j2x=function(t,e,n){let r="",i="",o=n.join(".");for(let a in t)if(Object.prototype.hasOwnProperty.call(t,a))if(typeof t[a]>"u")this.isAttribute(a)&&(i+="");else if(null===t[a])this.isAttribute(a)||a===this.options.cdataPropName?i+="":"?"===a[0]?i+=this.indentate(e)+"<"+a+"?"+this.tagEndChar:i+=this.indentate(e)+"<"+a+"/"+this.tagEndChar;else if(t[a]instanceof Date)i+=this.buildTextValNode(t[a],a,"",e);else if("object"!=typeof t[a]){let n=this.isAttribute(a);if(n&&!this.ignoreAttributesFn(n,o))r+=this.buildAttrPairStr(n,""+t[a]);else if(!n)if(a===this.options.textNodeName){let e=this.options.tagValueProcessor(a,""+t[a]);i+=this.replaceEntitiesValue(e)}else i+=this.buildTextValNode(t[a],a,"",e)}else if(Array.isArray(t[a])){let r=t[a].length,o="",s="";for(let l=0;l<r;l++){let r=t[a][l];if(!(typeof r>"u"))if(null===r)"?"===a[0]?i+=this.indentate(e)+"<"+a+"?"+this.tagEndChar:i+=this.indentate(e)+"<"+a+"/"+this.tagEndChar;else if("object"==typeof r)if(this.options.oneListGroup){let t=this.j2x(r,e+1,n.concat(a));o+=t.val,this.options.attributesGroupName&&r.hasOwnProperty(this.options.attributesGroupName)&&(s+=t.attrStr)}else o+=this.processTextOrObjNode(r,a,e,n);else if(this.options.oneListGroup){let t=this.options.tagValueProcessor(a,r);o+=t=this.replaceEntitiesValue(t)}else o+=this.buildTextValNode(r,a,"",e)}this.options.oneListGroup&&(o=this.buildObjectNode(o,a,s,e)),i+=o}else if(this.options.attributesGroupName&&a===this.options.attributesGroupName){let e=Object.keys(t[a]),n=e.length;for(let i=0;i<n;i++)r+=this.buildAttrPairStr(e[i],""+t[a][e[i]])}else i+=this.processTextOrObjNode(t[a],a,e,n);return{attrStr:r,val:i}},r.prototype.buildAttrPairStr=function(t,e){return e=this.options.attributeValueProcessor(t,""+e),e=this.replaceEntitiesValue(e),this.options.suppressBooleanAttributes&&"true"===e?" "+t:" "+t+'="'+e+'"'},r.prototype.buildObjectNode=function(t,e,n,r){if(""===t)return"?"===e[0]?this.indentate(r)+"<"+e+n+"?"+this.tagEndChar:this.indentate(r)+"<"+e+n+this.closeTag(e)+this.tagEndChar;{let i="</"+e+this.tagEndChar,o="";return"?"===e[0]&&(o="?",i=""),(n||""===n)&&-1===t.indexOf("<")?this.indentate(r)+"<"+e+n+o+">"+t+i:!1!==this.options.commentPropName&&e===this.options.commentPropName&&0===o.length?this.indentate(r)+`<!--${t}-->`+this.newLine:this.indentate(r)+"<"+e+n+o+this.tagEndChar+t+this.indentate(r)+i}},r.prototype.closeTag=function(t){let e="";return -1!==this.options.unpairedTags.indexOf(t)?this.options.suppressUnpairedNode||(e="/"):e=this.options.suppressEmptyNode?"/":`></${t}`,e},r.prototype.buildTextValNode=function(t,e,n,r){if(!1!==this.options.cdataPropName&&e===this.options.cdataPropName)return this.indentate(r)+`<![CDATA[${t}]]>`+this.newLine;if(!1!==this.options.commentPropName&&e===this.options.commentPropName)return this.indentate(r)+`<!--${t}-->`+this.newLine;if("?"===e[0])return this.indentate(r)+"<"+e+n+"?"+this.tagEndChar;{let i=this.options.tagValueProcessor(e,t);return""===(i=this.replaceEntitiesValue(i))?this.indentate(r)+"<"+e+n+this.closeTag(e)+this.tagEndChar:this.indentate(r)+"<"+e+n+">"+i+"</"+e+this.tagEndChar}},r.prototype.replaceEntitiesValue=function(t){if(t&&t.length>0&&this.options.processEntities)for(let e=0;e<this.options.entities.length;e++){let n=this.options.entities[e];t=t.replace(n.regex,n.val)}return t},rt=r}()}}();let N=new Set(["a:p","a:r","a:br","a:fld","a:tc","a:tr","a:gridCol","p:sp","p:pic","p:graphicFrame","p:grpSp","p:cxnSp","p:sldId","p:sldLayoutId","p:sldMasterId","a:gs","Relationship","a:ext","a:effectLst","a:lstStyle","a:lvl1pPr","a:lvl2pPr","a:lvl3pPr","a:lvl4pPr","a:lvl5pPr","a:lvl6pPr","a:lvl7pPr","a:lvl8pPr","a:lvl9pPr","c:ser","c:pt","c:v","a:gd","a:path","a:moveTo","a:lnTo","a:cubicBezTo","a:quadBezTo","a:arcTo","a:font","a:hlinkClick"]),R=new E.XMLParser({ignoreAttributes:!1,attributeNamePrefix:"@_",isArray:t=>N.has(t),parseTagValue:!1,trimValues:!1,textNodeName:"#text"});class z{constructor(){((t,e,n)=>{let r;return(r="symbol"!=typeof e?e+"":e)in t?s(t,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[r]=n})(this,"zip")}async load(t){this.zip=await c.loadAsync(t)}getFileCaseInsensitive(t){let e=this.zip.file(t);if(e)return e;let n=t.toLowerCase(),r=Object.keys(this.zip.files).find(t=>t.toLowerCase()===n);return r?this.zip.file(r):null}async getXml(t){let e=this.getFileCaseInsensitive(t);if(!e)return null;let n=await e.async("text");try{return R.parse(n)}catch(e){return console.warn(`[pptx] Failed to parse XML at ${t}:`,e),null}}async getText(t){let e=this.getFileCaseInsensitive(t);return e?e.async("text"):null}async getBase64(t){let e=this.getFileCaseInsensitive(t);return e?e.async("base64"):null}async getUint8Array(t){let e=this.getFileCaseInsensitive(t);return e?e.async("uint8array"):null}fileExists(t){return null!==this.getFileCaseInsensitive(t)}getFileNames(){let t=[];return this.zip.forEach(e=>t.push(e)),t}}function B(t,e){if(!t)return;let n=t[e];return Array.isArray(n)&&"a:p"!==e&&"a:r"!==e&&"a:br"!==e&&"a:fld"!==e&&"a:tc"!==e&&"p:sp"!==e&&"a:gridCol"!==e&&"p:pic"!==e&&"p:grpSp"!==e&&"p:cxnSp"!==e&&"p:graphicFrame"!==e&&"a:gs"!==e&&"Relationship"!==e&&"c:ser"!==e&&"c:pt"!==e&&"c:v"!==e?n[0]:n}function F(t,e){if(t&&(Array.isArray(t)&&(t=t[0]),t))return t[`@_${e}`]}function V(t,e){if(!t)return[];let n=t[e];return n?Array.isArray(n)?n:[n]:[]}function W(t){let e={};if(!t)return e;for(let n of V(null==t?void 0:t.Relationships,"Relationship"))e[n["@_Id"]]=n["@_Target"];return e}function H(t){let e=new Map;return t&&[...t.matchAll(/<p:cNvPr[^>]*?id="([^"]+)"/g)].forEach((t,n)=>e.set(t[1],n)),e}function G(t,e){if(e.startsWith("/"))return e.slice(1);let n=t.replace(/\\/g,"/").split("/").filter(Boolean),r=e.replace(/\\/g,"/").split("/").filter(Boolean),i=[...n];for(let t of r)".."===t?i.pop():"."!==t&&i.push(t);return i.join("/")}function j(t){return Math.round(t/9525*100)/100}function U(t){return Math.round(t/100*(96/72)*100)/100}async function Z(t){var e,n;let r=await t.getXml("ppt/presentation.xml"),i=W(await t.getXml("ppt/_rels/presentation.xml.rels")),o=null==(e=null==r?void 0:r["p:presentation"])?void 0:e["p:sldSz"],a=j(parseInt(F(o,"cx")||"9144000")),s=j(parseInt(F(o,"cy")||"6858000")),l=V(null==(n=null==r?void 0:r["p:presentation"])?void 0:n["p:sldIdLst"],"p:sldId").map(t=>{let e=F(t,"r:id"),n=i[e];return n?{rId:e,path:`ppt/${n}`}:null}).filter(Boolean),u=null;for(let[,t]of Object.entries(i))if(t.includes("theme")){u=`ppt/${t}`;break}return{width:a,height:s,slideRefs:l,themeRef:u}}let X=["dk1","dk2","lt1","lt2","accent1","accent2","accent3","accent4","accent5","accent6","hlink","folHlink"];async function Y(t,e){var n;let r={colorScheme:{},colorMap:{tx1:"dk1",tx2:"dk2",bg1:"lt1",bg2:"lt2",accent1:"accent1",accent2:"accent2",accent3:"accent3",accent4:"accent4",accent5:"accent5",accent6:"accent6",hlink:"hlink",folHlink:"folHlink"},fontScheme:{majorFont:"Calibri",minorFont:"Calibri"}};if(!e)return r;let i=await t.getXml(e);if(!i)return r;let o=null==(n=i["a:theme"])?void 0:n["a:themeElements"],a=B(o,"a:clrScheme"),s={};if(a)for(let t of X){let e=a[`a:${t}`];e&&(e["a:srgbClr"]?s[t]=F(e["a:srgbClr"],"val")||"000000":e["a:sysClr"]&&(s[t]=F(e["a:sysClr"],"lastClr")||F(e["a:sysClr"],"val")||"000000"))}let l=B(o,"a:fontScheme"),u="Calibri",h="Calibri";if(l){let t=B(B(l,"a:majorFont"),"a:latin"),e=B(B(l,"a:minorFont"),"a:latin");u=F(t,"typeface")||"Calibri",h=F(e,"typeface")||"Calibri"}return{colorScheme:s,colorMap:r.colorMap,fontScheme:{majorFont:u,minorFont:h}}}let q={black:"000000",white:"FFFFFF",red:"FF0000",green:"008000",blue:"0000FF",yellow:"FFFF00",cyan:"00FFFF",magenta:"FF00FF",silver:"C0C0C0",gray:"808080",maroon:"800000",olive:"808000",purple:"800080",teal:"008080",navy:"000080",orange:"FFA500",darkRed:"8B0000",darkGreen:"006400",darkBlue:"00008B",ltGray:"D3D3D3",dkGray:"A9A9A9"};function Q(t,e){if(!t)return{color:"#000000",opacity:1};let n="000000",r=1;if(t["a:srgbClr"]){let e=t["a:srgbClr"];n="object"==typeof e?e["@_val"]:e,r=K(e)}else if(t["a:schemeClr"]){let i=t["a:schemeClr"];n=J("object"==typeof i?i["@_val"]:i,e),r=K(i),n=function(t,e){if(!e||"object"!=typeof e)return t;let[n,r,i]=function(t,e,n){t/=255;let r=Math.max(t,e/=255,n/=255),i=Math.min(t,e,n),o=0,a=0,s=(r+i)/2;if(r!==i){let l=r-i;switch(a=s>.5?l/(2-r-i):l/(r+i),r){case t:o=((e-n)/l+6*(e<n))/6;break;case e:o=((n-t)/l+2)/6;break;case n:o=((t-e)/l+4)/6}}return[o,a,s]}(parseInt(t.substring(0,2),16),parseInt(t.substring(2,4),16),parseInt(t.substring(4,6),16));if(e["a:lumMod"]&&(i*=parseInt(e["a:lumMod"]["@_val"]??e["a:lumMod"])/1e5),e["a:lumOff"]&&(i+=parseInt(e["a:lumOff"]["@_val"]??e["a:lumOff"])/1e5),e["a:tint"]){let t=parseInt(e["a:tint"]["@_val"]??e["a:tint"])/1e5;i+=(1-i)*(1-t)}e["a:shade"]&&(i*=parseInt(e["a:shade"]["@_val"]??e["a:shade"])/1e5),e["a:satMod"]&&(r*=parseInt(e["a:satMod"]["@_val"]??e["a:satMod"])/1e5),i=Math.max(0,Math.min(1,i));let o=te(n,r=Math.max(0,Math.min(1,r)),i);return tt(o[0])+tt(o[1])+tt(o[2])}(n,i)}else if(t["a:prstClr"]){let e=t["a:prstClr"];n=q["object"==typeof e?e["@_val"]:e]||"000000",r=K(e)}else if(t["a:scrgbClr"]){let e=t["a:scrgbClr"],i=Math.round(parseInt(e["@_r"])/1e5*255),o=Math.round(parseInt(e["@_g"])/1e5*255),a=Math.round(parseInt(e["@_b"])/1e5*255);n=tt(i)+tt(o)+tt(a),r=K(e)}else if(t["a:hslClr"]){let e=t["a:hslClr"],i=te(parseInt(e["@_hue"])/6e4,parseInt(e["@_sat"])/1e5,parseInt(e["@_lum"])/1e5);n=tt(i[0])+tt(i[1])+tt(i[2]),r=K(e)}return{color:`#${n}`,opacity:r}}function K(t){return t&&"object"==typeof t&&t["a:alpha"]?parseInt(t["a:alpha"]["@_val"]??t["a:alpha"])/1e5:1}function J(t,e){let n=e.colorMap[t]||t;return e.colorScheme[n]||e.colorScheme[t]||"000000"}function tt(t){let e=Math.max(0,Math.min(255,Math.round(t))).toString(16);return e.length<2?"0"+e:e}function te(t,e,n){if(0===e){let t=Math.round(255*n);return[t,t,t]}let r=(t,e,n)=>(n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+(e-t)*6*n:n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t),i=n<.5?n*(1+e):n+e-n*e,o=2*n-i;return[Math.round(255*r(o,i,t+1/3)),Math.round(255*r(o,i,t)),Math.round(255*r(o,i,t-1/3))]}function tn(t,e){if(!t)return{type:"none"};let n=B(t,"a:solidFill");if(n){let{color:t,opacity:r}=Q(n,e);return{type:"solid",color:t,opacity:r}}let r=B(t,"a:gradFill");if(r){let t=V(B(r,"a:gsLst"),"a:gs").map(t=>{let n=parseInt(F(t,"pos")||"0")/1e3,{color:r,opacity:i}=Q(t,e);return{position:n,color:r,opacity:i}});if(0===t.length)return{type:"none"};let n=B(r,"a:path");if(n){let e=F(n,"path")||"circle",r=B(n,"a:fillToRect");return{type:"gradient",gradientType:"rect"===e?"rect":"radial",stops:t,center:r?{l:parseInt(F(r,"l")||"0")/1e3,t:parseInt(F(r,"t")||"0")/1e3,r:parseInt(F(r,"r")||"0")/1e3,b:parseInt(F(r,"b")||"0")/1e3}:void 0}}let i=B(r,"a:lin");return{type:"gradient",gradientType:"linear",angle:i?parseInt(F(i,"ang")||"0")/6e4:0,stops:t}}let i=B(t,"a:pattFill");return i?{type:"pattern",preset:F(i,"prst")||"pct5",fgColor:Q(B(i,"a:fgClr"),e).color,bgColor:Q(B(i,"a:bgClr"),e).color}:(B(t,"a:noFill"),{type:"none"})}async function tr(t,e,n,r,i){if(!t)return{type:"none"};let o=B(t,"a:blipFill");if(o){let t=await ti(o,n,r,i);if(t)return{type:"image",src:t,stretch:!!B(o,"a:stretch")}}return tn(t,e)}async function ti(t,e,n,r){var i;let o=B(t,"a:blip");if(!o)return console.warn("[pptx] blipFill: no a:blip child",t),"";let a=F(o,"r:embed")||F(o,"r:link")||F(o,"embed")||F(o,"link");if(!a){let t=B(o,"a:extLst");if(t)for(let e of V(t,"a:ext")){let t=B(e,"asvg:svgBlip")||B(e,"svgBlip");if(t&&(a=F(t,"r:embed")||F(t,"r:link")||F(t,"embed")||F(t,"link")))break}}if(!a)return console.warn("[pptx] blipFill: no r:embed/r:link attr on blip or svgBlip",o),"";if(!e[a])return console.warn(`[pptx] blipFill: rId '${a}' not in rels map`,e),"";let s=e[a],l=G(r,s);console.debug(`[pptx] image: rId=${a} target=${s} basePath=${r} => ${l}`);let u={png:"image/png",jpg:"image/jpeg",jpeg:"image/jpeg",gif:"image/gif",svg:"image/svg+xml",bmp:"image/bmp",emf:"image/x-emf",wmf:"image/x-wmf",tiff:"image/tiff",tif:"image/tiff"}[(null==(i=l.split(".").pop())?void 0:i.toLowerCase())||"png"]||"image/png",h=await n.getUint8Array(l);if(!h)return console.warn(`[pptx] image: getUint8Array returned null for path '${l}'`),"";if(typeof URL>"u"||!URL.createObjectURL){let t=await n.getBase64(l);return`data:${u};base64,${t}`}let c=new Blob([h.buffer],{type:u});return URL.createObjectURL(c)}function to(t,e){if(!t)return null;let n=j(parseInt(F(t,"w")||"0"));if(n<=0)return null;let r=B(t,"a:solidFill"),i="#000000";return r&&(i=Q(r,e).color),{width:n,color:i,dash:F(B(t,"a:prstDash"),"val")||"solid"}}function ta(t,e,n,r){if(!t)return null;let i=B(t,"a:bodyPr")||{},o="none";void 0!==B(i,"a:spAutoFit")&&(o="autofit"),void 0!==B(i,"a:normAutofit")&&(o="normAutofit");let a={vertAlign:F(i,"anchor")||"top",wrap:"none"!==F(i,"wrap"),lIns:j(parseInt(F(i,"lIns")||"91440")),tIns:j(parseInt(F(i,"tIns")||"45720")),rIns:j(parseInt(F(i,"rIns")||"91440")),bIns:j(parseInt(F(i,"bIns")||"45720")),autofit:o},s=tl(n,ts(B(t,"a:lstStyle"),e,r));return{paragraphs:V(t,"a:p").map(t=>(function(t,e,n,r){var i,o,a,s,l,u,h;let c=B(t,"a:pPr")||{},d=parseInt(F(c,"lvl")||"0"),p=n[d]||{},f=B(c,"a:defRPr"),g=f?tp(f,e,r):null,m=tc(p.rPr||null,g,e),y=th(c,e),v={align:y.align??(null==(i=p.pPr)?void 0:i.align)??"left",indent:y.indent??(null==(o=p.pPr)?void 0:o.indent)??0,marginLeft:y.marginLeft??(null==(a=p.pPr)?void 0:a.marginLeft)??0,lineSpacing:y.lineSpacing??(null==(s=p.pPr)?void 0:s.lineSpacing)??null,spaceBefore:y.spaceBefore??(null==(l=p.pPr)?void 0:l.spaceBefore)??0,spaceAfter:y.spaceAfter??(null==(u=p.pPr)?void 0:u.spaceAfter)??0,bullet:y.bullet??(null==(h=p.pPr)?void 0:h.bullet)??null,level:d},_=[];for(let n of[...V(t,"a:r").map(t=>{var e;return{kind:"r",node:t,order:t["@_order"]??(null==(e=t.attrs)?void 0:e.order)??1/0}}),...V(t,"a:br").map(t=>{var e;return{kind:"br",node:t,order:t["@_order"]??(null==(e=t.attrs)?void 0:e.order)??1/0}}),...V(t,"a:fld").map(t=>{var e;return{kind:"fld",node:t,order:t["@_order"]??(null==(e=t.attrs)?void 0:e.order)??1/0}})].sort((t,e)=>t.order-e.order))if("r"===n.kind){let t=n.node,i=B(t,"a:rPr"),o=i?tp(i,e,r):null;_.push({type:"text",text:t["a:t"]??"",props:tc(m,o,e)})}else if("br"===n.kind){let t=B(n.node,"a:rPr");_.push({type:"break",text:"",props:tc(m,t?tp(t,e):null,e)})}else if("fld"===n.kind){let t=n.node,r=B(t,"a:rPr");_.push({type:"field",text:t["a:t"]??F(t,"type")??"",props:tc(m,r?tp(r,e):null,e)})}return 0===_.length&&_.push({type:"text",text:"",props:m||td(e)}),{runs:_,props:v}})(t,e,s,r)),bodyProps:a,listStyle:s}}function ts(t,e,n){if(!t)return{};let r={};for(let i=1;i<=9;i++){let o=B(t,`a:lvl${i}pPr`);if(o){let t=th(o,e),a=B(o,"a:defRPr"),s=a?tp(a,e,n):void 0;r[i-1]={pPr:t,rPr:s}}}return r}function tl(...t){let e={};for(let n of t)if(n)for(let t of Object.keys(n)){let r=parseInt(t);e[r]||(e[r]={}),n[r].pPr&&(e[r].pPr={...e[r].pPr,...tu(n[r].pPr)}),n[r].rPr&&(e[r].rPr={...e[r].rPr,...tu(n[r].rPr)})}return e}function tu(t){let e={};for(let n of Object.keys(t))null!==t[n]&&void 0!==t[n]&&(e[n]=t[n]);return e}function th(t,e){var n;let r={};if(!t)return r;let i=F(t,"algn");i&&(r.align="ctr"===(n=i)||"center"===n?"center":"r"===n||"right"===n?"right":"just"===n||"justify"===n?"justify":"left");let o=F(t,"indent");o&&(r.indent=j(parseInt(o)));let a=F(t,"marL");a&&(r.marginLeft=j(parseInt(a)));let s=function(t){if(!t)return null;let e=B(t,"a:spcPct");if(e)return parseInt(F(e,"val")||"100000")/1e5;let n=B(t,"a:spcPts");return n?U(parseInt(F(n,"val")||"0")):null}(B(t,"a:lnSpc"));null!==s&&(r.lineSpacing=s);let l=tf(B(t,"a:spcBef"));0!==l&&(r.spaceBefore=l);let u=tf(B(t,"a:spcAft"));0!==u&&(r.spaceAfter=u);let h=function(t,e){if(!t||B(t,"a:buNone"))return null;let n=B(t,"a:buChar");if(n){let r=B(t,"a:buClr"),i=B(t,"a:buSzPct"),o=B(t,"a:buFont");return{type:"char",char:F(n,"char")||"•",color:r?Q(r,e).color:void 0,fontSize:i?parseInt(F(i,"val")||"100000")/1e3:void 0,fontFamily:o&&F(o,"typeface")||void 0}}let r=B(t,"a:buAutoNum");if(r){let n=B(t,"a:buClr");return{type:"autoNum",autoNumType:F(r,"type")||"arabicPeriod",startAt:parseInt(F(r,"startAt")||"1"),color:n?Q(n,e).color:void 0}}return null}(t,e);return null!==h&&(r.bullet=h),r}function tc(t,e,n){let r=td(n);return t||e?t?e?{fontFamily:e.fontFamily??t.fontFamily??r.fontFamily,fontSize:e.fontSize??t.fontSize??r.fontSize,bold:e.bold??t.bold??r.bold,italic:e.italic??t.italic??r.italic,underline:e.underline??t.underline??r.underline,strikethrough:e.strikethrough??t.strikethrough??r.strikethrough,color:e.color??t.color??r.color,highlight:e.highlight??t.highlight??r.highlight,baseline:e.baseline??t.baseline??r.baseline,hyperlink:e.hyperlink??t.hyperlink??r.hyperlink}:{...r,...t}:{...r,...e}:r}function td(t){let e=t.colorMap.tx1||"tx1",n=t.colorScheme[e]||t.colorScheme.tx1||"000000";return{fontFamily:null,fontSize:U(1800),bold:!1,italic:!1,underline:!1,strikethrough:!1,color:`#${n}`,highlight:null}}function tp(t,e,n){let r,i=null,o=B(t,"a:solidFill");o&&(i=Q(o,e).color);let a=F(B(t,"a:latin"),"typeface")||F(B(t,"a:ea"),"typeface")||null;a&&(a.startsWith("+mj")?a=e.fontScheme.majorFont||a:a.startsWith("+mn")&&(a=e.fontScheme.minorFont||a),!a||a.includes("sans-serif")||a.includes("serif")||(a=`${a}, sans-serif`));let s=F(t,"sz"),l=s?U(parseInt(s)):null,u=F(t,"baseline"),h=u?parseInt(u)/1e3:void 0,c=B(t,"a:hlinkClick");if(c&&n){let t=F(c,"r:id")||F(c,"r:id");t&&n[t]&&(r=n[t])}return{fontFamily:a,fontSize:l,bold:"1"===F(t,"b"),italic:"1"===F(t,"i"),underline:"sng"===F(t,"u")||"true"===F(t,"u"),strikethrough:"sngStrike"===F(t,"strike"),color:i,highlight:null,baseline:h,hyperlink:r}}function tf(t){if(!t)return 0;let e=B(t,"a:spcPts");return e?U(parseInt(F(e,"val")||"0")):0}let tg=0;function tm(t,e){if(!t)return tg++;let n=F(B(B(t,"p:nvSpPr")||B(t,"p:nvPicPr")||B(t,"p:nvGrpSpPr")||B(t,"p:nvGraphicFramePr")||B(t,"p:nvCxnSpPr"),"p:cNvPr"),"id");return n&&e.orderMap&&e.orderMap.has(n)?e.orderMap.get(n):tg++}async function ty(t,e,n){let r=[];if(!(null!=n&&n.skipSp))for(let n of V(t,"p:sp")){let t=await t_(n,e,tm(n,e));t&&r.push(t)}for(let n of V(t,"p:pic")){let t=await tb(n,e,tm(n,e));t&&r.push(t)}for(let n of V(t,"p:cxnSp")){let t=await tx(n,e,tm(n,e));t&&r.push(t)}for(let n of V(t,"p:graphicFrame")){let t=await tw(n,e,tm(n,e));t&&r.push(t)}for(let n of V(t,"p:grpSp")){let t=await tS(n,e,tm(n,e));t&&r.push(t)}return r.sort((t,e)=>t.order-e.order),r}function tv(t){let e=B(t,"a:off"),n=B(t,"a:ext");return{offset:{x:j(parseInt(F(e,"x")||"0")),y:j(parseInt(F(e,"y")||"0"))},size:{w:j(parseInt(F(n,"cx")||"0")),h:j(parseInt(F(n,"cy")||"0"))},rotate:parseInt(F(t,"rot")||"0")/6e4,flipH:"1"===F(t,"flipH"),flipV:"1"===F(t,"flipV")}}async function t_(t,e,n){let r=B(t,"p:spPr")||{},i=B(r,"a:xfrm");if(!i)return null;let o=tv(i),a=B(r,"a:prstGeom"),s=B(r,"a:custGeom"),l=F(a,"prst")||(s?"__custom__":"rect"),u=tn(r,e.theme),h=to(B(r,"a:ln"),e.theme),c=ta(B(t,"p:txBody"),e.theme,void 0,e.rels),d=tk(B(r,"a:effectLst")),p=B(t,"p:nvSpPr"),f=B(p,"p:cNvSpPr"),g=B(p,"p:nvPr"),m=B(g,"p:ph"),y="1"===F(f,"txBox"),v=F(m,"type"),_=F(m,"idx"),x=s?function(t,e,n){if(!t)return null;let r=B(t,"a:pathLst");if(!r)return null;let i=[];for(let t of V(r,"a:path")){let r=parseInt(F(t,"w")||String(12700*e))||12700*e,o=parseInt(F(t,"h")||String(12700*n))||12700*n,a=e/r,s=n/o,l=t=>(parseFloat(t)*a).toFixed(2),u=t=>(parseFloat(t)*s).toFixed(2),h=t=>`${l(F(t,"x")||"0")},${u(F(t,"y")||"0")}`,c=[],d=0;for(let e of V(t,"a:moveTo")){let t=B(e,"a:pt");c.push({idx:d++,fn:()=>`M${h(t)} `})}for(let e of V(t,"a:lnTo")){let t=B(e,"a:pt");c.push({idx:d++,fn:()=>`L${h(t)} `})}for(let e of V(t,"a:cubicBezTo")){let t=V(e,"a:pt");t.length>=3&&c.push({idx:d++,fn:()=>`C${h(t[0])} ${h(t[1])} ${h(t[2])} `})}for(let e of V(t,"a:quadBezTo")){let t=V(e,"a:pt");t.length>=2&&c.push({idx:d++,fn:()=>`Q${h(t[0])} ${h(t[1])} `})}let p=!!B(t,"a:close"),f=c.map(t=>t.fn()).join("")+(p?"Z":"");f&&i.push(f.trim())}return i.join(" ")||null}(s,o.size.w,o.size.h):null;return y||v?{type:"shape",presetGeom:"rect",...o,order:n,fill:u,border:h,effectProps:d,phType:v,phIdx:_,textBody:c||{paragraphs:[],bodyProps:{vertAlign:"top",wrap:!0,lIns:9.6,tIns:4.8,rIns:9.6,bIns:4.8}}}:{type:"shape",...o,order:n,presetGeom:l,custGeomPath:x||void 0,fill:u,border:h,textBody:c,effectProps:d,phType:v,phIdx:_}}async function tx(t,e,n){let r=B(t,"p:spPr")||{},i=B(r,"a:xfrm");if(!i)return null;let o=tv(i),a=F(B(r,"a:prstGeom"),"prst")||"straightConnector1",s=tn(r,e.theme),l=to(B(r,"a:ln"),e.theme);return{type:"shape",...o,order:n,presetGeom:a,fill:s,border:l,textBody:null}}async function tb(t,e,n){let r=B(t,"p:spPr")||{},i=B(r,"a:xfrm");if(!i)return null;let o=tv(i),a=B(t,"p:blipFill"),s=await ti(a,e.rels,e.zip,e.slideBasePath),l=B(a,"a:srcRect"),u=l?{top:parseInt(F(l,"t")||"0")/1e3,right:parseInt(F(l,"r")||"0")/1e3,bottom:parseInt(F(l,"b")||"0")/1e3,left:parseInt(F(l,"l")||"0")/1e3}:null,h=F(B(r,"a:prstGeom"),"prst"),c=tk(B(r,"a:effectLst")),d=B(t,"p:nvPicPr"),p=B(d,"p:nvPr"),f=B(p,"p:ph"),g=F(f,"type"),m=F(f,"idx");return{type:"picture",...o,order:n,src:s,srcRect:u,clipGeom:h||void 0,effectProps:c,phType:g,phIdx:m}}async function tw(t,e,r){var i,o;let a=B(t,"p:xfrm");if(!a)return null;let s=tv(a),l=B(t,"p:nvGraphicFramePr"),u=B(l,"p:nvPr"),h=B(u,"p:ph"),c=F(h,"type"),d=F(h,"idx"),p=B(t,"a:graphic"),f=B(p,"a:graphicData");if(!f)return null;let g=B(f,"c:chart");if(g){let t=F(g,"r:id");if(t){let{parseChart:i}=await n.e("823").then(n.bind(n,786)),o=await i(e.zip,t,e.rels,e.slideBasePath);if(o)return{type:"chart",...s,order:r,chartData:o}}}let m=B(f,"a:tbl");if(!m)return null;let y=V(B(m,"a:tblGrid"),"a:gridCol").map(t=>j(parseInt(F(t,"w")||"0"))),v=y.length,_=B(m,"a:tblPr")||{},x=tn(_,e.theme),b="1"===F(_,"firstRow"),w="1"===F(_,"lastRow"),S="1"===F(_,"firstCol"),k="1"===F(_,"lastCol"),M="1"===F(_,"bandRow"),C="1"===F(_,"bandCol"),T=B(_,"a:tableStyleId"),I=(T&&(o=T)?"string"==typeof o?o:void 0!==o["#text"]?String(o["#text"]):"":"")||"{5C22544A-7EE6-4342-B048-85BDC9FD1C3A}",D=null==(i=e.tableStyles)?void 0:i[I],A=V(m,"a:tr"),L=A.length,$=A.map((t,n)=>({height:j(parseInt(F(t,"h")||"0")),cells:V(t,"a:tc").map((t,r)=>{let i,o,a=B(t,"a:tcPr")||{},s={};if(D){let t=t=>{t&&(void 0!==t.fill&&(i=t.fill),t.borders&&(void 0!==t.borders.top&&(s.top=t.borders.top),void 0!==t.borders.bottom&&(s.bottom=t.borders.bottom),void 0!==t.borders.left&&(s.left=t.borders.left),void 0!==t.borders.right&&(s.right=t.borders.right)))};t(D.wholeTbl),M&&t((b&&n>0?n+1:n)%2==0?D.band1H:D.band2H),C&&t((S&&r>0?r+1:r)%2==0?D.band1V:D.band2V),S&&0===r&&t(D.firstCol),k&&r===v-1&&t(D.lastCol),b&&0===n&&t(D.firstRow),w&&n===L-1&&t(D.lastRow)}o=B(a,"a:solidFill")||B(a,"a:gradFill")||B(a,"a:noFill")||B(a,"a:pattFill")?tn(a,e.theme):i?tn(i,e.theme):{type:"none"};let l=t=>{let n=B(a,`a:ln${t}`);if(n)return to(n,e.theme);let r=s[({T:"top",R:"right",B:"bottom",L:"left"})[t]];return r?to(r,e.theme):null},u=j(parseInt(F(a,"marL")||"91440")),h=j(parseInt(F(a,"marR")||"91440")),c=j(parseInt(F(a,"marT")||"45720")),d=j(parseInt(F(a,"marB")||"45720")),p=F(a,"anchor")||"top",f=ta(B(t,"a:txBody"),e.theme);return{textBody:f?{...f,bodyProps:{...f.bodyProps,lIns:0,tIns:0,rIns:0,bIns:0}}:{paragraphs:[],bodyProps:{vertAlign:"top",wrap:!0,lIns:0,tIns:0,rIns:0,bIns:0}},fill:o,borders:{top:l("T"),right:l("R"),bottom:l("B"),left:l("L")},margins:{left:u,right:h,top:c,bottom:d},anchor:"ctr"===p?"middle":"b"===p?"bottom":"top",gridSpan:parseInt(F(t,"gridSpan")||"1"),rowSpan:parseInt(F(t,"rowSpan")||"1"),hMerge:"1"===F(t,"hMerge")||"true"===F(t,"hMerge"),vMerge:"1"===F(t,"vMerge")||"true"===F(t,"vMerge")}})}));return{type:"table",...s,order:r,colWidths:y,rows:$,tableFill:x,phType:c,phIdx:d}}async function tS(t,e,n){let r=B(t,"p:grpSpPr")||{},i=B(r,"a:xfrm");if(!i)return null;let o=tv(i),a=B(i,"a:chOff"),s=B(i,"a:chExt"),l={x:j(parseInt(F(a,"x")||"0")),y:j(parseInt(F(a,"y")||"0"))},u={w:j(parseInt(F(s,"cx")||"0")),h:j(parseInt(F(s,"cy")||"0"))},h=await ty(t,e);return{type:"group",...o,order:n,childOffset:l,childExtent:u,children:h}}function tk(t){if(!t)return;let e=B(t,"a:outerShdw");if(!e)return;let n=parseInt(F(e,"blurRad")||"0"),r=parseInt(F(e,"dist")||"0"),i=parseInt(F(e,"dir")||"0")/6e4*Math.PI/180,o=r/12700*Math.cos(i),a=r/12700*Math.sin(i),s="#000000",l=.5,u=e["a:srgbClr"];if(u){s="#"+("object"==typeof u?u["@_val"]:u);let t=u["a:alpha"];t&&(l=parseInt(t["@_val"]||"50000")/1e5)}return{shadow:{blur:n/12700,dx:o,dy:a,color:s,opacity:l}}}async function tM(t,e,n,r,i,o,a){let s=await t.getXml(e),l=e.substring(0,e.lastIndexOf("/")),u=e.substring(e.lastIndexOf("/")+1),h=`${l}/_rels/${u}.rels`,c=W(await t.getXml(h)),d=B(null==s?void 0:s["p:sld"],"p:cSld"),p=B(d,"p:spTree"),f=null;for(let t of Object.values(c))if(t.includes("slideLayout")){f=G(l,t);break}let g=f?i.get(f)??null:null,m=null!=g&&g.masterPath?o.get(g.masterPath)??null:null,y=await tA(d,r,c,t,l);"none"===y.type&&g&&(y=g.background),"none"===y.type&&m&&(y=m.background),"none"===y.type&&(y={type:"solid",color:`#${J("bg1",r)}`,opacity:1});let v=H(await t.getText(e)||""),_=await tC(p,{theme:r,rels:c,zip:t,slideBasePath:l,orderMap:v,tableStyles:a},g,m),x=[],b=0;if(m)for(let t of m.nodes)x.push({...t,order:b++});if(g)for(let t of g.nodes)x.push({...t,order:b++});for(let t of _)x.push({...t,order:b++});return{index:n,background:y,nodes:x}}async function tC(t,e,n,r){if(!t)return[];let i=[],o=0;for(let a of V(t,"p:sp")){let t=await tT(a,e,o++,n,r);t&&i.push(t)}for(let n of(await ty(t,e,{skipSp:!0})))i.push({...n,order:o++});return i}async function tT(t,e,n,r,i){let o=B(t,"p:nvSpPr"),a=B(o,"p:nvPr"),s=B(a,"p:ph"),l=F(s,"type"),u=F(s,"idx"),h=B(t,"p:spPr"),c=h&&"object"==typeof h,d=c?B(h,"a:xfrm"):null,p=s?tI(l,u,r,i):null,f={x:0,y:0},g={w:0,h:0},m=0,y=!1,v=!1;if(d){let t=B(d,"a:off"),e=B(d,"a:ext");f={x:j(parseInt(F(t,"x")||"0")),y:j(parseInt(F(t,"y")||"0"))},g={w:j(parseInt(F(e,"cx")||"0")),h:j(parseInt(F(e,"cy")||"0"))},m=parseInt(F(d,"rot")||"0")/6e4,y="1"===F(d,"flipH"),v="1"===F(d,"flipV")}else if(p)f={...p.offset},g={...p.size},m=p.rotate,y=p.flipH,v=p.flipV;else{if(!s)return console.log("Returning null because no xfrm, not resolved, not ph."),null;let t="title"===l||"ctrTitle"===l;f={x:30,y:t?20:100},g={w:900,h:t?80:400}}if(0===g.w&&0===g.h)return console.log("Skipping because size.w=0 and size.h=0"),null;let _=h&&void 0!==B(h,"a:solidFill"),x=h&&void 0!==B(h,"a:noFill"),b=h&&void 0!==B(h,"a:gradFill"),w=h&&void 0!==B(h,"a:pattFill"),S=h&&void 0!==B(h,"a:blipFill"),k=c&&(_||x||b||w||S)?tn(h,e.theme):p&&"shape"===p.type?p.fill:{type:"none"},M=c&&B(h,"a:ln")?to(B(h,"a:ln"),e.theme):p&&"shape"===p.type?p.border:null,C=null;i&&i.txStyles&&(C="title"===l||"ctrTitle"===l?i.txStyles.titleStyle:"body"===l?i.txStyles.bodyStyle:i.txStyles.otherStyle);let T=s?tI(l,u,null,i):null,I=(null==T?void 0:T.type)==="shape"&&T.textBody?T.textBody.listStyle:null,D=s?tI(l,u,r,null):null,A=tl(C,I,(null==D?void 0:D.type)==="shape"&&D.textBody?D.textBody.listStyle:null),L=ta(B(t,"p:txBody"),e.theme,A,e.rels),$="1"===F(B(o,"p:cNvSpPr"),"txBox"),P=c?B(h,"a:prstGeom"):null;return{type:"shape",presetGeom:P?F(P,"prst")||"rect":p&&"shape"===p.type?p.presetGeom:"rect",offset:f,size:g,rotate:m,flipH:y,flipV:v,order:n,fill:k,border:M,textBody:L||($||s?{paragraphs:[],bodyProps:{vertAlign:"top",wrap:!0,lIns:9.6,tIns:4.8,rIns:9.6,bIns:4.8}}:null)}}function tI(t,e,n,r){if(n){let r=tD(n.placeholders,t,e);if(r)return r.node}if(r){let n=tD(r.placeholders,t,e);if(n)return n.node}return null}function tD(t,e,n){if(e){let n=t.find(t=>t.type===e);if(n)return n}if(n){let e=t.find(t=>t.idx===n);if(e)return e}return null}async function tA(t,e,n,r,i){let o=B(t,"p:bg");if(!o)return{type:"none"};let a=B(o,"p:bgPr");if(a)return tr(a,e,n,r,i);let s=B(o,"p:bgRef");if(s){let{color:t}=Q(s,e);return{type:"solid",color:t,opacity:1}}return{type:"none"}}async function tL(t,e,n){let r=await t.getXml(e),i=e.substring(0,e.lastIndexOf("/")),o=e.substring(e.lastIndexOf("/")+1),a=`${i}/_rels/${o}.rels`,s=W(await t.getXml(a)),l=B(null==r?void 0:r["p:sldLayout"],"p:cSld"),u=B(l,"p:spTree"),h=await tP(l,n,s,t,i),c=H(await t.getText(e)||""),d=await ty(u,{theme:n,rels:s,zip:t,slideBasePath:i,orderMap:c}),p=[],f=[];for(let t of d)(t.phType||t.phIdx)&&p.push({type:t.phType,idx:t.phIdx,node:t});let g=new Set(p.map(t=>t.node));for(let t of d)g.has(t)||f.push(t);let m=null;for(let t of Object.values(s))if(t.includes("slideMaster")){m=G(i,t);break}return{path:e,background:h,nodes:f,placeholders:p,masterPath:m}}async function t$(t,e,n){let r=await t.getXml(e),i=e.substring(0,e.lastIndexOf("/")),o=e.substring(e.lastIndexOf("/")+1),a=`${i}/_rels/${o}.rels`,s=W(await t.getXml(a)),l=null==r?void 0:r["p:sldMaster"],u=B(l,"p:cSld"),h=B(u,"p:spTree"),c=await tP(u,n,s,t,i),d=H(await t.getText(e)||""),p=await ty(h,{theme:n,rels:s,zip:t,slideBasePath:i,orderMap:d}),f=[],g=[];for(let t of p)(t.phType||t.phIdx)&&f.push({type:t.phType,idx:t.phIdx,node:t});let m=new Set(f.map(t=>t.node));for(let t of p)m.has(t)||g.push(t);let y=B(l,"p:txStyles"),v=B(y,"p:titleStyle"),_=B(y,"p:bodyStyle"),x=B(y,"p:otherStyle");return{path:e,background:c,nodes:g,placeholders:f,txStyles:{titleStyle:v?ts(v,n,s):null,bodyStyle:_?ts(_,n,s):null,otherStyle:x?ts(x,n,s):null}}}async function tP(t,e,n,r,i){let o=B(t,"p:bg");if(!o)return{type:"none"};let a=B(o,"p:bgPr");if(a)return tr(a,e,n,r,i);let s=B(o,"p:bgRef");if(s){let{color:t}=Q(s,e);return{type:"solid",color:t,opacity:1}}return{type:"none"}}function tO(t){let e,n;if(!t)return;let r=B(t,"a:tcStyle");if(!r)return;if(r["a:solidFill"])e={"a:solidFill":r["a:solidFill"]};else if(r["a:gradFill"])e={"a:gradFill":r["a:gradFill"]};else if(r["a:pattFill"])e={"a:pattFill":r["a:pattFill"]};else if(r["a:noFill"])e={"a:noFill":r["a:noFill"]};else if(r["a:fillRef"])e={"a:solidFill":r["a:fillRef"]};else if(B(r,"a:fill")){let t=B(r,"a:fill");t["a:solidFill"]?e={"a:solidFill":t["a:solidFill"]}:t["a:gradFill"]?e={"a:gradFill":t["a:gradFill"]}:t["a:pattFill"]?e={"a:pattFill":t["a:pattFill"]}:t["a:noFill"]?e={"a:noFill":t["a:noFill"]}:t["a:fillRef"]&&(e={"a:solidFill":t["a:fillRef"]})}let i=B(r,"a:tcBdr");return i&&(n={},B(i,"a:top")&&(n.top=B(B(i,"a:top"),"a:ln")),B(i,"a:bottom")&&(n.bottom=B(B(i,"a:bottom"),"a:ln")),B(i,"a:left")&&(n.left=B(B(i,"a:left"),"a:ln")),B(i,"a:right")&&(n.right=B(B(i,"a:right"),"a:ln")),B(i,"a:insideH")&&(n.insideH=B(B(i,"a:insideH"),"a:ln")),B(i,"a:insideV")&&(n.insideV=B(B(i,"a:insideV"),"a:ln"))),{fill:e,borders:n}}async function tE(t){let e={},n=await t.getXml("ppt/tableStyles.xml");if(!n)return e;let r=B(n,"a:tblStyleLst");if(!r)return e;for(let t of V(r,"a:tblStyle")){let n=F(t,"styleId");n&&(e[n]={styleId:n,name:F(t,"styleName")||"",wholeTbl:tO(B(t,"a:wholeTbl")),band1H:tO(B(t,"a:band1H")),band2H:tO(B(t,"a:band2H")),band1V:tO(B(t,"a:band1V")),band2V:tO(B(t,"a:band2V")),firstRow:tO(B(t,"a:firstRow")),lastRow:tO(B(t,"a:lastRow")),firstCol:tO(B(t,"a:firstCol")),lastCol:tO(B(t,"a:lastCol"))})}return e}async function tN(t){let e=new z;await e.load(t);let n=await Z(e),r=await Y(e,n.themeRef),i=await e.getXml("ppt/slideMasters/slideMaster1.xml");i&&(r=function(t,e){var n;let r=null==(n=null==t?void 0:t["p:sldMaster"])?void 0:n["p:clrMap"];if(!r)return e;let i={...e.colorMap};for(let t of["tx1","tx2","bg1","bg2","accent1","accent2","accent3","accent4","accent5","accent6","hlink","folHlink"]){let e=F(r,t);e&&(i[t]=e)}return{...e,colorMap:i}}(i,r));let o=new Map,a=new Map,s=new Set;for(let t of n.slideRefs){let n=t.path.substring(0,t.path.lastIndexOf("/")),r=t.path.substring(t.path.lastIndexOf("/")+1),i=`${n}/_rels/${r}.rels`;for(let t of Object.values(W(await e.getXml(i))))t.includes("slideLayout")&&s.add(G(n,t))}for(let t of e.getFileNames())t.match(/^ppt\/slideLayouts\/slideLayout\d+\.xml$/)&&s.add(t);for(let t of s)try{let n=await tL(e,t,r);if(o.set(t,n),n.masterPath&&!a.has(n.masterPath)){let t=await t$(e,n.masterPath,r);a.set(n.masterPath,t)}}catch(e){console.warn(`Failed to parse layout ${t}:`,e)}let l=await tE(e),u=await Promise.all(n.slideRefs.map((t,n)=>tM(e,t.path,n,r,o,a,l)));return u.forEach((t,e)=>{console.debug(`[pptx] slide ${e+1}: ${t.nodes.length} nodes, bg=${t.background.type}`,t)}),console.debug(`[pptx] presentation: ${n.width}x${n.height}px, ${u.length} slides`),{width:n.width,height:n.height,slides:u,theme:r}}let tR={pct5:`<rect width="8" height="8" fill="{bg}"/><circle cx="2" cy="2" r="1" fill="{fg}"/>
|
|
18
|
+
<circle cx="6" cy="6" r="1" fill="{fg}"/>`,pct10:`<rect width="8" height="8" fill="{bg}"/><circle cx="2" cy="2" r="1.5" fill="{fg}"/>
|
|
19
|
+
<circle cx="6" cy="6" r="1.5" fill="{fg}"/>`,pct20:`<rect width="8" height="8" fill="{bg}"/><circle cx="2" cy="2" r="2" fill="{fg}"/>
|
|
20
|
+
<circle cx="6" cy="6" r="2" fill="{fg}"/>`,pct25:`<rect width="8" height="8" fill="{bg}"/><circle cx="2" cy="2" r="2.5" fill="{fg}"/>
|
|
21
|
+
<circle cx="6" cy="6" r="2.5" fill="{fg}"/>`,pct50:`<rect width="8" height="8" fill="{bg}"/><circle cx="2" cy="2" r="3" fill="{fg}"/>
|
|
22
|
+
<circle cx="6" cy="6" r="3" fill="{fg}"/>`,pct75:`<rect width="8" height="8" fill="{fg}"/><circle cx="2" cy="2" r="2.5" fill="{bg}"/>
|
|
23
|
+
<circle cx="6" cy="6" r="2.5" fill="{bg}"/>`,pct90:`<rect width="8" height="8" fill="{fg}"/><circle cx="2" cy="2" r="1.5" fill="{bg}"/>
|
|
24
|
+
<circle cx="6" cy="6" r="1.5" fill="{bg}"/>`,hStripe:'<rect width="8" height="8" fill="{bg}"/><rect width="8" height="4" fill="{fg}"/>',vStripe:'<rect width="8" height="8" fill="{bg}"/><rect width="4" height="8" fill="{fg}"/>',lightUpwardDiagonal:'<rect width="8" height="8" fill="{bg}"/><path d="M-2,10 L10,-2" stroke="{fg}" stroke-width="2"/>',lightDownwardDiagonal:'<rect width="8" height="8" fill="{bg}"/><path d="M-2,-2 L10,10" stroke="{fg}" stroke-width="2"/>',diagStripe:'<rect width="16" height="16" fill="{bg}"/><path d="M-4,20 L20,-4 M12,28 L28,12 M-12,4 L4,-12" stroke="{fg}" stroke-width="4"/>',cross:'<rect width="8" height="8" fill="{bg}"/><path d="M0,4 L8,4 M4,0 L4,8" stroke="{fg}" stroke-width="1"/>',diagCross:'<rect width="8" height="8" fill="{bg}"/><path d="M-2,-2 L10,10 M-2,10 L10,-2" stroke="{fg}" stroke-width="1"/>',checker:'<rect width="16" height="16" fill="{bg}"/><rect width="8" height="8" fill="{fg}"/><rect x="8" y="8" width="8" height="8" fill="{fg}"/>',wave:'<rect width="16" height="16" fill="{bg}"/><path d="M0,8 Q4,4 8,8 T16,8" fill="none" stroke="{fg}" stroke-width="2"/>',zigZag:'<rect width="16" height="16" fill="{bg}"/><path d="M0,12 L8,4 L16,12" fill="none" stroke="{fg}" stroke-width="2"/>'},tz=tR.pct10;function tB(t){var e,n,r,i,o;switch(t.type){case"solid":let a,s,l,u;return{backgroundColor:t.opacity<1?(e=t.color,n=t.opacity,s=parseInt((a=e.replace("#","")).substring(0,2),16),l=parseInt(a.substring(2,4),16),u=parseInt(a.substring(4,6),16),`rgba(${s}, ${l}, ${u}, ${n})`):t.color};case"gradient":{let e=t.stops.map(t=>`${t.color} ${t.position}%`).join(", ");if("radial"===t.gradientType||"rect"===t.gradientType){let n=t.center||{l:.5,t:.5,r:.5,b:.5},r=(n.l+(1-n.r))/2*100,i=(n.t+(1-n.b))/2*100;return{background:`radial-gradient(ellipse at ${r}% ${i}%, ${e})`}}return{background:`linear-gradient(${(270-(t.angle||0))%360}deg, ${e})`}}case"pattern":let h,c,d;return{backgroundImage:`url("${r=t.preset,i=t.fgColor,o=t.bgColor,c=(h=tR[r]||tz).includes('width="16"')?16:8,d=`
|
|
25
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="${c}" height="${c}">
|
|
26
|
+
${h.replace(/\{fg\}/g,i).replace(/\{bg\}/g,o)}
|
|
27
|
+
</svg>
|
|
28
|
+
`.trim(),`data:image/svg+xml;base64,${btoa(d)}`}")`,backgroundRepeat:"repeat"};case"image":return{backgroundImage:`url(${t.src})`,backgroundSize:t.stretch?"cover":"contain",backgroundPosition:"center",backgroundRepeat:"no-repeat"};case"none":return{}}}function tF({textBody:t,width:e,height:n}){let{bodyProps:r,paragraphs:i}=t,s={width:e?`${e}px`:"100%",height:n?`${n}px`:"100%",paddingLeft:`${r.lIns}px`,paddingTop:`${r.tIns}px`,paddingRight:`${r.rIns}px`,paddingBottom:`${r.bIns}px`,display:"flex",flexDirection:"column",boxSizing:"border-box",position:"relative"};"middle"===r.vertAlign?s.justifyContent="center":"bottom"===r.vertAlign&&(s.justifyContent="flex-end"),r.wrap||(s.whiteSpace="nowrap");let l={},u=(0,a.useRef)(null);return(0,a.useLayoutEffect)(()=>{if("normAutofit"===r.autofit&&n&&u.current){let t=u.current;t.style.setProperty("--font-scale","1");let e=1,r=20;for(;t.scrollHeight>n&&e>.1&&r>0;)e-=.05,t.style.setProperty("--font-scale",e.toString()),r--}},[r.autofit,n,t,e]),(0,o.jsx)("div",{ref:u,style:{...s,"--font-scale":"1"},children:i.map((t,e)=>{var n,r,i,a,s;let u=t.props.level??0,h=18*u,c={margin:0,textAlign:t.props.align,paddingLeft:t.props.marginLeft?`${t.props.marginLeft}px`:h?`${h}px`:void 0,textIndent:t.props.indent?`${t.props.indent}px`:void 0,marginTop:t.props.spaceBefore?`calc(var(--font-scale, 1) * ${t.props.spaceBefore}px)`:void 0,marginBottom:t.props.spaceAfter?`calc(var(--font-scale, 1) * ${t.props.spaceAfter}px)`:void 0};null!==t.props.lineSpacing&&void 0!==t.props.lineSpacing&&(c.lineHeight=t.props.lineSpacing<=5?t.props.lineSpacing:`calc(var(--font-scale, 1) * ${t.props.lineSpacing}px)`);let d=t.runs.some(t=>t.text.length>0),p=null;if(t.props.bullet&&d){let e=t.props.bullet;if("char"===e.type)p=e.char||"•";else if("autoNum"===e.type){let t,n,r,i;Object.keys(l).forEach(t=>{Number(t)>u&&delete l[Number(t)]});let o=(l[u]||(e.startAt??1)-1)+1;l[u]=o,a=o,t=(s=e.autoNumType||"arabicPeriod").includes("alpha"),n=s.includes("Lc"),r=s.includes("roman"),i=a.toString(),t?i=String.fromCharCode((n?97:65)+(a-1)%26):r&&(i=function(t){let e={M:1e3,CM:900,D:500,CD:400,C:100,XC:90,L:50,XL:40,X:10,IX:9,V:5,IV:4,I:1},n="";for(let r of Object.keys(e)){let i=Math.floor(t/e[r]);t-=i*e[r],n+=r.repeat(i)}return n||"0"}(a),n&&(i=i.toLowerCase())),p=s.includes("ParenBoth")?`(${i})`:s.includes("ParenR")?`${i})`:`${i}.`}}let f={display:"inline-block",width:t.props.indent?`${Math.abs(t.props.indent)}px`:"1.2em",textAlign:"left",color:(null==(n=t.props.bullet)?void 0:n.color)??void 0,fontSize:null!=(r=t.props.bullet)&&r.fontSize?`calc(var(--font-scale, 1) * ${t.props.bullet.fontSize}px)`:void 0,fontFamily:(null==(i=t.props.bullet)?void 0:i.fontFamily)??void 0};return(0,o.jsxs)("p",{style:c,children:[p&&d&&(0,o.jsx)("span",{style:f,children:p}),t.runs.map((t,e)=>(0,o.jsx)(tV,{run:t},e)),!d&&(0,o.jsx)("span",{children:"\xa0"})]},e)})})}function tV({run:t}){if("break"===t.type)return(0,o.jsx)("br",{});let e=t.props,n={};e.fontFamily&&(n.fontFamily=e.fontFamily),e.fontSize&&(n.fontSize=`calc(var(--font-scale, 1) * ${e.fontSize}px)`),e.bold&&(n.fontWeight="bold"),e.italic&&(n.fontStyle="italic"),e.color&&(n.color=e.color),e.highlight&&(n.backgroundColor=e.highlight);let r=[];e.underline&&r.push("underline"),e.strikethrough&&r.push("line-through"),r.length&&(n.textDecoration=r.join(" ")),e.baseline&&e.baseline>0?(n.verticalAlign="super",n.fontSize=`calc(var(--font-scale, 1) * ${(e.fontSize??12)*.65}px)`):e.baseline&&e.baseline<0&&(n.verticalAlign="sub",n.fontSize=`calc(var(--font-scale, 1) * ${(e.fontSize??12)*.65}px)`);let i=(0,o.jsx)("span",{style:n,children:t.text});return e.hyperlink?(0,o.jsx)("a",{href:e.hyperlink,target:"_blank",rel:"noopener noreferrer",style:{color:e.color??"#0563C1",textDecoration:"underline"},children:i}):i}function tW(t,e,n,r){let i=t/2,o=e/2,a=t/2,s=e/2,l=[];for(let t=0;t<2*n;t++){let e=t*Math.PI/n-Math.PI/2,u=t%2==0?1:r;l.push(`${i+a*u*Math.cos(e)},${o+s*u*Math.sin(e)}`)}return`M${l.join(" L")} Z`}function tH(t,e,n){let r=t/2,i=e/2,o=[];for(let a=0;a<n;a++){let s=2*a*Math.PI/n-Math.PI/2;o.push(`${r+t/2*Math.cos(s)},${i+e/2*Math.sin(s)}`)}return`M${o.join(" L")} Z`}let tG={rect:(t,e)=>`M0,0 L${t},0 L${t},${e} L0,${e} Z`,roundRect:(t,e)=>{let n=.1*Math.min(t,e);return`M${n},0 L${t-n},0 Q${t},0 ${t},${n} L${t},${e-n} Q${t},${e} ${t-n},${e} L${n},${e} Q0,${e} 0,${e-n} L0,${n} Q0,0 ${n},0 Z`},snip1Rect:(t,e)=>{let n=.2*Math.min(t,e);return`M0,0 L${t-n},0 L${t},${n} L${t},${e} L0,${e} Z`},snip2SameRect:(t,e)=>{let n=.2*Math.min(t,e);return`M0,0 L${t-n},0 L${t},${n} L${t},${e} L${n},${e} L0,${e-n} Z`},snipRoundRect:(t,e)=>{let n=.15*Math.min(t,e);return`M0,0 L${t-n},0 L${t},${n} L${t},${e-n} Q${t},${e} ${t-n},${e} L${n},${e} Q0,${e} 0,${e-n} Z`},round1Rect:(t,e)=>{let n=.2*Math.min(t,e);return`M0,0 L${t},0 L${t},${e-n} Q${t},${e} ${t-n},${e} L0,${e} Z`},round2DiagRect:(t,e)=>{let n=.15*Math.min(t,e);return`M${n},0 L${t},0 L${t},${e-n} Q${t},${e} ${t-n},${e} L0,${e} L0,${n} Q0,0 ${n},0 Z`},triangle:(t,e)=>`M${t/2},0 L${t},${e} L0,${e} Z`,rtTriangle:(t,e)=>`M0,0 L${t},${e} L0,${e} Z`,isocelesTrapezoid:(t,e)=>`M${.2*t},0 L${.8*t},0 L${t},${e} L0,${e} Z`,trapezoid:(t,e)=>`M${.15*t},0 L${.85*t},0 L${t},${e} L0,${e} Z`,ellipse:(t,e)=>{let n=t/2,r=e/2;return`M${n},0 A${n},${r} 0 1,1 ${n},${e} A${n},${r} 0 1,1 ${n},0 Z`},flowChartConnector:(t,e)=>{let n=t/2,r=e/2;return`M${n},0 A${n},${r} 0 1,1 ${n},${e} A${n},${r} 0 1,1 ${n},0 Z`},diamond:(t,e)=>`M${t/2},0 L${t},${e/2} L${t/2},${e} L0,${e/2} Z`,parallelogram:(t,e)=>`M${.2*t},0 L${t},0 L${.8*t},${e} L0,${e} Z`,pentagon:(t,e)=>tH(t,e,5),hexagon:(t,e)=>tH(t,e,6),heptagon:(t,e)=>tH(t,e,7),octagon:(t,e)=>{let n=.29*t;return`M${n},0 L${t-n},0 L${t},${n} L${t},${e-n} L${t-n},${e} L${n},${e} L0,${e-n} L0,${n} Z`},decagon:(t,e)=>tH(t,e,10),dodecagon:(t,e)=>tH(t,e,12),pie:(t,e)=>{let n=Math.min(t,e)/2,r=t/2,i=e/2;return`M${r},${i} L${r+n},${i} A${n},${n} 0 1,1 ${r},${i-n} Z`},star4:(t,e)=>tW(t,e,4,.38),star5:(t,e)=>tW(t,e,5,.38),star6:(t,e)=>tW(t,e,6,.5),star7:(t,e)=>tW(t,e,7,.42),star8:(t,e)=>tW(t,e,8,.38),star10:(t,e)=>tW(t,e,10,.38),star12:(t,e)=>tW(t,e,12,.47),star16:(t,e)=>tW(t,e,16,.47),star24:(t,e)=>tW(t,e,24,.6),star32:(t,e)=>tW(t,e,32,.65),irregularSeal1:(t,e)=>tW(t,e,8,.3),irregularSeal2:(t,e)=>tW(t,e,10,.35),rightArrow:(t,e)=>`M0,${.25*e} L${.6*t},${.25*e} L${.6*t},0 L${t},${e/2} L${.6*t},${e} L${.6*t},${.75*e} L0,${.75*e} Z`,leftArrow:(t,e)=>`M${t},${.25*e} L${.4*t},${.25*e} L${.4*t},0 L0,${e/2} L${.4*t},${e} L${.4*t},${.75*e} L${t},${.75*e} Z`,upArrow:(t,e)=>`M${.25*t},${e} L${.25*t},${.4*e} L0,${.4*e} L${t/2},0 L${t},${.4*e} L${.75*t},${.4*e} L${.75*t},${e} Z`,downArrow:(t,e)=>`M${.25*t},0 L${.75*t},0 L${.75*t},${.6*e} L${t},${.6*e} L${t/2},${e} L0,${.6*e} L${.25*t},${.6*e} Z`,leftRightArrow:(t,e)=>`M0,${e/2} L${.3*t},0 L${.3*t},${.25*e} L${.7*t},${.25*e} L${.7*t},0 L${t},${e/2} L${.7*t},${e} L${.7*t},${.75*e} L${.3*t},${.75*e} L${.3*t},${e} Z`,upDownArrow:(t,e)=>`M${t/2},0 L${t},${.3*e} L${.75*t},${.3*e} L${.75*t},${.7*e} L${t},${.7*e} L${t/2},${e} L0,${.7*e} L${.25*t},${.7*e} L${.25*t},${.3*e} L0,${.3*e} Z`,quadArrow:(t,e)=>{let n=.35*t,r=.25*t;return`M${t/2},0 L${t/2+r},${n} L${t/2+r/2},${n} L${t/2+r/2},${t/2-r/2} L${t-n},${t/2-r/2} L${t-n},${t/2-r} L${t},${t/2} L${t-n},${t/2+r} L${t-n},${t/2+r/2} L${t/2+r/2},${t/2+r/2} L${t/2+r/2},${e-n} L${t/2+r},${e-n} L${t/2},${e} L${t/2-r},${e-n} L${t/2-r/2},${e-n} L${t/2-r/2},${t/2+r/2} L${n},${t/2+r/2} L${n},${t/2+r} L0,${t/2} L${n},${t/2-r} L${n},${t/2-r/2} L${t/2-r/2},${t/2-r/2} L${t/2-r/2},${n} L${t/2-r},${n} Z`},notchedRightArrow:(t,e)=>`M0,${.25*e} L${.7*t},${.25*e} L${.7*t},0 L${t},${e/2} L${.7*t},${e} L${.7*t},${.75*e} L0,${.75*e} L${.2*t},${e/2} Z`,homePlate:(t,e)=>`M0,0 L${.75*t},0 L${t},${e/2} L${.75*t},${e} L0,${e} Z`,chevron:(t,e)=>`M0,0 L${.75*t},0 L${t},${e/2} L${.75*t},${e} L0,${e} L${.25*t},${e/2} Z`,stripedRightArrow:(t,e)=>`M0,${.25*e} L${.25*t},${.25*e} L${.25*t},0 L${t},${e/2} L${.25*t},${e} L${.25*t},${.75*e} L0,${.75*e} Z`,bentUpArrow:(t,e)=>`M0,${e} L0,${.35*e} L${.5*t},${.35*e} L${.5*t},0 L${.65*t},0 L${.65*t},${.35*e} L${t},${.35*e} L${.75*t},${.1*e} L${+t},${.6*e} L${.75*t},${.85*e} L${t},${.35*e} L${.65*t},${.35*e} L${.65*t},${e} Z`,wedgeRectCallout:(t,e)=>`M0,0 L${t},0 L${t},${.7*e} L${.35*t},${.7*e} L${.2*t},${e} L${.3*t},${.7*e} L0,${.7*e} Z`,wedgeRoundRectCallout:(t,e)=>{let n=.08*Math.min(t,e);return`M${n},0 L${t-n},0 Q${t},0 ${t},${n} L${t},${.7*e-n} Q${t},${.7*e} ${t-n},${.7*e} L${.35*t},${.7*e} L${.2*t},${e} L${.3*t},${.7*e} L${n},${.7*e} Q0,${.7*e} 0,${.7*e-n} L0,${n} Q0,0 ${n},0 Z`},wedgeEllipseCallout:(t,e)=>{let n=t/2,r=.35*e;return`M${n},0 A${n},${r} 0 1,1 ${.35*t},${2*r} L${.2*t},${e} L${.45*t},${2*r} A${n},${r} 0 0,1 ${n},0 Z`},cloudCallout:(t,e)=>`M${.25*t},${.75*e} Q0,${.75*e} 0,${.55*e} Q0,${.35*e} ${.2*t},${.3*e} Q${.15*t},0 ${t/2},${.15*e} Q${.85*t},0 ${.8*t},${.3*e} Q${t},${.35*e} ${t},${.55*e} Q${t},${.75*e} ${.75*t},${.75*e} L${.4*t},${.75*e} L${.2*t},${e} L${.35*t},${.75*e} Z`,borderCallout1:(t,e)=>`M0,0 L${t},0 L${t},${e} L${.35*t},${e} L${.1*t},${1.2*e} L${.3*t},${e} L0,${e} Z`,borderCallout2:(t,e)=>`M0,0 L${t},0 L${t},${e} L0,${e} L${.1*t},${1.3*e} Z`,flowChartProcess:(t,e)=>`M0,0 L${t},0 L${t},${e} L0,${e} Z`,flowChartDecision:(t,e)=>`M${t/2},0 L${t},${e/2} L${t/2},${e} L0,${e/2} Z`,flowChartInputOutput:(t,e)=>`M${.15*t},0 L${t},0 L${.85*t},${e} L0,${e} Z`,flowChartTerminator:(t,e)=>{let n=e/2;return`M${n},0 L${t-n},0 Q${t},0 ${t},${n} Q${t},${e} ${t-n},${e} L${n},${e} Q0,${e} 0,${n} Q0,0 ${n},0 Z`},flowChartPredefinedProcess:(t,e)=>`M0,0 L${t},0 L${t},${e} L0,${e} Z M${.1*t},0 L${.1*t},${e} M${.9*t},0 L${.9*t},${e}`,flowChartManualInput:(t,e)=>`M0,${.3*e} L${t},0 L${t},${e} L0,${e} Z`,flowChartManualOperation:(t,e)=>`M0,0 L${t},0 L${.85*t},${e} L${.15*t},${e} Z`,flowChartDelay:(t,e)=>{let n=e/2;return`M0,0 L${t-n},0 Q${t},0 ${t},${n} Q${t},${e} ${t-n},${e} L0,${e} Z`},flowChartDocument:(t,e)=>`M0,0 L${t},0 L${t},${.75*e} Q${.75*t},${e} ${t/2},${.85*e} Q${.25*t},${.7*e} 0,${.85*e} Z`,flowChartMultidocument:(t,e)=>`M${.05*t},${.1*e} L${t},${.1*e} L${t},${.8*e} Q${.8*t},${.9*e} ${t/2+.05*t},${.75*e} Q${.3*t},${.6*e} ${.05*t},${.75*e} Z`,flowChartAlternateProcess:(t,e)=>{let n=.2*Math.min(t,e);return`M${n},0 L${t-n},0 Q${t},0 ${t},${n} L${t},${e-n} Q${t},${e} ${t-n},${e} L${n},${e} Q0,${e} 0,${e-n} L0,${n} Q0,0 ${n},0 Z`},flowChartOfflineStorage:(t,e)=>`M0,0 L${t},0 L${t/2},${e} Z`,flowChartOnlineStorage:(t,e)=>{let n=e/2;return`M${n},0 A${n},${n} 0 0,0 ${n},${e} L${t},${e} A${n},${n} 0 0,0 ${t},0 Z`},flowChartExtract:(t,e)=>`M${t/2},0 L${t},${e} L0,${e} Z`,flowChartMerge:(t,e)=>`M0,0 L${t},0 L${t/2},${e} Z`,flowChartCollate:(t,e)=>`M0,0 L${t},0 L${t/2},${e/2} L${t},${e} L0,${e} L${t/2},${e/2} Z`,flowChartSort:(t,e)=>`M${t/2},0 L${t},${e/2} L${t/2},${e} L0,${e/2} Z M0,${e/2} L${t},${e/2}`,flowChartSummingJunction:(t,e)=>{let n=Math.min(t,e)/2,r=t/2,i=e/2;return`M${r+n},${i} A${n},${n} 0 1,1 ${r-n},${i} A${n},${n} 0 0,1 ${r+n},${i} Z M${r-.7*n},${i-.7*n} L${r+.7*n},${i+.7*n} M${r+.7*n},${i-.7*n} L${r-.7*n},${i+.7*n}`},flowChartDatabase:(t,e)=>{let n=.1*e;return`M0,${n} Q0,0 ${t/2},0 Q${t},0 ${t},${n} L${t},${e-n} Q${t},${e} ${t/2},${e} Q0,${e} 0,${e-n} Z M0,${n} Q0,${2*n} ${t/2},${2*n} Q${t},${2*n} ${t},${n}`},cube:(t,e)=>{let n=.2*Math.min(t,e);return`M${n},0 L${t},0 L${t},${e-n} L${t-n},${e} L0,${e} L0,${n} Z M${n},0 L0,${n} M${t},0 L${n},0 L0,${n} M${t},${e-n} L${t-n},${e}`},bevel:(t,e)=>{let n=.12*Math.min(t,e);return`M${n},0 L${t-n},0 L${t},${n} L${t},${e-n} L${t-n},${e} L${n},${e} L0,${e-n} L0,${n} Z`},plaque:(t,e)=>{let n=.15*Math.min(t,e);return`M0,${n} Q0,0 ${n},0 L${t-n},0 Q${t},0 ${t},${n} L${t},${e-n} Q${t},${e} ${t-n},${e} L${n},${e} Q0,${e} 0,${e-n} Z M${n},0 Q${n},${n} 0,${n} M${t-n},0 Q${t-n},${n} ${t},${n} M${t},${e-n} Q${t-n},${e-n} ${t-n},${e} M0,${e-n} Q${n},${e-n} ${n},${e}`},can:(t,e)=>{let n=.1*e;return`M0,${n} Q0,0 ${t/2},0 Q${t},0 ${t},${n} L${t},${e-n} Q${t},${e} ${t/2},${e} Q0,${e} 0,${e-n} Z M0,${n} Q0,${2*n} ${t/2},${2*n} Q${t},${2*n} ${t},${n}`},folderCorner:(t,e)=>`M0,0 L${.4*t},0 L${.5*t},${.15*e} L${t},${.15*e} L${t},${e} L0,${e} Z`,noSmoking:(t,e)=>{let n=Math.min(t,e)/2,r=t/2,i=e/2;return`M${r+n},${i} A${n},${n} 0 1,1 ${r-n},${i} A${n},${n} 0 0,1 ${r+n},${i} Z M${r-.65*n},${i-.35*n} L${r+.65*n},${i+.35*n}`},smileyFace:(t,e)=>{let n=Math.min(t,e)/2,r=t/2,i=e/2;return`M${r+n},${i} A${n},${n} 0 1,1 ${r-n},${i} A${n},${n} 0 0,1 ${r+n},${i} Z M${r-.3*n},${i-.2*n} A${.05*n},${.05*n} 0 1,1 ${r-.3*n-.1},${i-.2*n} M${r+.3*n},${i-.2*n} A${.05*n},${.05*n} 0 1,1 ${r+.3*n-.1},${i-.2*n} M${r-.35*n},${i+.1*n} Q${r},${i+.5*n} ${r+.35*n},${i+.1*n}`},heart:(t,e)=>`M${t/2},${.25*e} C${t/2},${.03*e} ${.85*t},-${.05*e} ${t},${.25*e} C${1.1*t},${.5*e} ${t/2},${.85*e} ${t/2},${e} C${t/2},${.85*e} -${.1*t},${.5*e} 0,${.25*e} C${.15*t},-${.05*e} ${t/2},${.03*e} ${t/2},${.25*e} Z`,lightningBolt:(t,e)=>`M${.55*t},0 L${.2*t},${.5*e} L${.45*t},${.5*e} L${.45*t},${e} L${.8*t},${.5*e} L${.55*t},${.5*e} Z`,moon:(t,e)=>`M${.5*t},0 A${.5*t},${.5*e} 0 1,1 ${.5*t},${e} A${.3*t},${.4*e} 0 1,0 ${.5*t},0 Z`,sun:(t,e)=>{let n=t/2,r=e/2,i=.25*Math.min(t,e),o=`M${n+i},${r} A${i},${i} 0 1,1 ${n-i},${r} A${i},${i} 0 0,1 ${n+i},${r} Z`;for(let t=0;t<8;t++){let e=t*Math.PI/4,a=1.4*i,s=1.7*i;o+=` M${n+a*Math.cos(e)},${r+a*Math.sin(e)} L${n+s*Math.cos(e)},${r+s*Math.sin(e)}`}return o},donut:(t,e)=>{let n=t/2,r=e/2,i=.5*n,o=.5*r;return`M${2*n},${r} A${n},${r} 0 1,1 0,${r} A${n},${r} 0 0,1 ${2*n},${r} Z M${n+i},${r} A${i},${o} 0 1,0 ${n-i},${r} A${i},${o} 0 0,0 ${n+i},${r} Z`},ribbon:(t,e)=>`M0,${.15*e} L${.15*t},0 L${.15*t},${.85*e} L0,${e} L${.15*t},${.7*e} L${.85*t},${.7*e} L${t},${e} L${.85*t},${.85*e} L${.85*t},0 L${t},${.15*e} L${.85*t},${.3*e} L${.15*t},${.3*e} Z`,ribbon2:(t,e)=>`M0,${.15*e} L${.15*t},${.15*e} L${.15*t},0 L${.85*t},0 L${.85*t},${.15*e} L${t},${.15*e} L${.9*t},${.5*e} L${t},${.85*e} L${.85*t},${.85*e} L${.85*t},${e} L${.15*t},${e} L${.15*t},${.85*e} L0,${.85*e} L${.1*t},${.5*e} Z`,ellipseRibbon:(t,e)=>`M0,${.3*e} Q${t/2},0 ${t},${.3*e} L${t},${e} L${.85*t},${.7*e} L${.15*t},${.7*e} L0,${e} Z`,wave:(t,e)=>`M0,${.35*e} Q${.25*t},0 ${.5*t},${.3*e} Q${.75*t},${.6*e} ${t},${.3*e} L${t},${.7*e} Q${.75*t},${.4*e} ${.5*t},${.7*e} Q${.25*t},${e} 0,${.65*e} Z`,doubleWave:(t,e)=>`M0,${.35*e} Q${.125*t},0 ${.25*t},${.3*e} Q${.375*t},${.6*e} ${.5*t},${.3*e} Q${.625*t},0 ${.75*t},${.3*e} Q${.875*t},${.6*e} ${t},${.3*e} L${t},${.7*e} Q${.875*t},${.4*e} ${.75*t},${.7*e} Q${.625*t},${e} ${.5*t},${.7*e} Q${.375*t},${.4*e} ${.25*t},${.7*e} Q${.125*t},${e} 0,${.65*e} Z`,mathPlus:(t,e)=>{let n=t/3;return`M${n},0 L${t-n},0 L${t-n},${n} L${t},${n} L${t},${e-n} L${t-n},${e-n} L${t-n},${e} L${n},${e} L${n},${e-n} L0,${e-n} L0,${n} L${n},${n} Z`},mathMinus:(t,e)=>`M0,${e/3} L${t},${e/3} L${t},${2*e/3} L0,${2*e/3} Z`,mathMultiply:(t,e)=>{let n=.25*t;return`M${n},0 L${t/2},${e/2-n} L${t-n},0 L${t},${n} L${t/2+n},${e/2} L${t},${e-n} L${t-n},${e} L${t/2},${e/2+n} L${n},${e} L0,${e-n} L${t/2-n},${e/2} L0,${n} Z`},mathDivide:(t,e)=>`M${.3*t},${.5*e-.05*e} L${.7*t},${.5*e-.05*e} L${.7*t},${.5*e+.05*e} L${.3*t},${.5*e+.05*e} Z M${t/2-.06*t},${.1*e} A${.06*t},${.1*e} 0 1,0 ${t/2+.06*t},${.1*e} A${.06*t},${.1*e} 0 0,0 ${t/2-.06*t},${.1*e} Z M${t/2-.06*t},${.9*e} A${.06*t},${.1*e} 0 1,0 ${t/2+.06*t},${.9*e} A${.06*t},${.1*e} 0 0,0 ${t/2-.06*t},${.9*e} Z`,mathEqual:(t,e)=>{let n=.12*e;return`M0,${e/2-n-.1*e} L${t},${e/2-n-.1*e} L${t},${e/2-n} L0,${e/2-n} Z M0,${e/2+n} L${t},${e/2+n} L${t},${e/2+n+.1*e} L0,${e/2+n+.1*e} Z`},mathNotEqual:(t,e)=>{let n=.1*e;return`M0,${e/2-n-.08*e} L${t},${e/2-n-.08*e} L${t},${e/2-n} L0,${e/2-n} Z M0,${e/2+n} L${t},${e/2+n} L${t},${e/2+n+.08*e} L0,${e/2+n+.08*e} Z M${.3*t},0 L${.7*t},${e}`},line:(t,e)=>`M0,${e/2} L${t},${e/2}`,straightConnector1:(t,e)=>`M0,${e/2} L${t},${e/2}`,bentConnector2:(t,e)=>`M0,0 L${t},${e}`,bentConnector3:(t,e)=>`M0,0 L${t/2},0 L${t/2},${e} L${t},${e}`,bentConnector4:(t,e)=>`M0,0 L${.33*t},0 L${.33*t},${e} L${.67*t},${e} L${.67*t},0 L${t},0`,bentConnector5:(t,e)=>`M0,0 L0,${e/2} L${t},${e/2} L${t},${e}`,curvedConnector2:(t,e)=>`M0,0 Q${t},0 ${t},${e}`,curvedConnector3:(t,e)=>`M0,0 C${t/2},0 ${t/2},${e} ${t},${e}`,curvedConnector4:(t,e)=>`M0,0 C${.33*t},0 ${.33*t},${e} ${.67*t},${e} S${t},0 ${t},0`,curvedConnector5:(t,e)=>`M0,0 C0,${e/3} ${t},${e/3} ${t},${e/2} C${t},${2*e/3} 0,${2*e/3} 0,${e}`,accentCallout1:(t,e)=>`M0,0 L${t},0 L${t},${.7*e} L${.35*t},${.7*e} L${.2*t},${e} L${.3*t},${.7*e} L0,${.7*e} Z`,leftBrace:(t,e)=>`M${t},${.1*e} Q${.6*t},${.1*e} ${.5*t},${.25*e} Q${.4*t},${.4*e} 0,${e/2} Q${.4*t},${.6*e} ${.5*t},${.75*e} Q${.6*t},${.9*e} ${t},${.9*e}`,rightBrace:(t,e)=>`M0,${.1*e} Q${.4*t},${.1*e} ${.5*t},${.25*e} Q${.6*t},${.4*e} ${t},${e/2} Q${.6*t},${.6*e} ${.5*t},${.75*e} Q${.4*t},${.9*e} 0,${.9*e}`,leftBracket:(t,e)=>`M${t},0 L${.3*t},0 L${.3*t},${e} L${t},${e}`,rightBracket:(t,e)=>`M0,0 L${.7*t},0 L${.7*t},${e} L0,${e}`,leftRightBrace:(t,e)=>{let n=t/2;return`M0,${.1*e} Q${.4*n},${.1*e} ${.5*n},${.25*e} Q${.6*n},${.4*e} ${n},${e/2} Q${.6*n},${.6*e} ${.5*n},${.75*e} Q${.4*n},${.9*e} 0,${.9*e} M${t},${.1*e} Q${t-.4*n},${.1*e} ${t-.5*n},${.25*e} Q${t-.6*n},${.4*e} ${n},${e/2} Q${t-.6*n},${.6*e} ${t-.5*n},${.75*e} Q${t-.4*n},${.9*e} ${t},${.9*e}`}},tj=0;function tU({node:t}){var e;let{size:n,fill:r,border:i,textBody:s,presetGeom:l}=t,u=n.w,h=n.h,c=(0,a.useMemo)(()=>`shape-${tj++}`,[]),d=tG[l],p=["line","straightConnector1","bentConnector2","bentConnector3","bentConnector4","bentConnector5","curvedConnector2","curvedConnector3","curvedConnector4","curvedConnector5"].includes(l);if(!t.custGeomPath&&"rect"===l&&"none"===r.type&&!i&&s)return(0,o.jsx)(tF,{textBody:s,width:u,height:h});let f=t.custGeomPath||(d?d(u,h):`M0,0 L${u},0 L${u},${h} L0,${h} Z`),g="gradient"===r.type,m=g?`grad-${c}`:"";if(!p&&("image"===r.type||"pattern"===r.type)){let t=tB(r);return(0,o.jsxs)("div",{style:{position:"relative",width:u,height:h},children:[(0,o.jsx)("div",{style:{position:"absolute",inset:0,...t,clipPath:`path('${f}')`}}),i&&(0,o.jsx)("svg",{width:u,height:h,viewBox:`0 0 ${u} ${h}`,style:{position:"absolute",inset:0},children:(0,o.jsx)("path",{d:f,fill:"none",stroke:i.color,strokeWidth:i.width,strokeDasharray:tZ(i.dash)})}),s&&(0,o.jsx)("div",{style:{position:"absolute",inset:0,overflow:"hidden"},children:(0,o.jsx)(tF,{textBody:s,width:u,height:h})})]})}let y="gradient"===r.type?`url(#${m})`:"solid"===(e=r).type?e.color:"transparent",v="solid"===r.type?r.opacity:1;return(0,o.jsxs)("div",{style:{position:"relative",width:u,height:h},children:[(0,o.jsxs)("svg",{width:u,height:h,viewBox:`0 0 ${u} ${h}`,style:{position:"absolute",inset:0},overflow:"visible",children:[g&&(()=>{if("gradient"!==r.type)return null;if("radial"===r.gradientType||"rect"===r.gradientType){let t=r.center||{l:.5,t:.5,r:.5,b:.5},e=(t.l+(1-t.r))/2*100,n=(t.t+(1-t.b))/2*100;return(0,o.jsx)("defs",{children:(0,o.jsx)("radialGradient",{id:m,cx:`${e}%`,cy:`${n}%`,r:"70.7%",children:r.stops.map((t,e)=>(0,o.jsx)("stop",{offset:`${t.position}%`,stopColor:t.color,stopOpacity:t.opacity},e))})})}let t=(270-(r.angle||0))%360*Math.PI/180,e=50-50*Math.cos(t),n=50-50*Math.sin(t),i=50+50*Math.cos(t),a=50+50*Math.sin(t);return(0,o.jsx)("defs",{children:(0,o.jsx)("linearGradient",{id:m,x1:`${e}%`,y1:`${n}%`,x2:`${i}%`,y2:`${a}%`,children:r.stops.map((t,e)=>(0,o.jsx)("stop",{offset:`${t.position}%`,stopColor:t.color,stopOpacity:t.opacity},e))})})})(),(0,o.jsx)("path",{d:f,fill:p?"none":y,fillOpacity:p?0:v,stroke:i?i.color:"none",strokeWidth:(null==i?void 0:i.width)||0,strokeDasharray:tZ(null==i?void 0:i.dash)})]}),s&&(0,o.jsx)("div",{style:{position:"absolute",inset:0,overflow:"hidden"},children:(0,o.jsx)(tF,{textBody:s,width:u,height:h})})]})}function tZ(t){if(!(!t||"solid"===t)){if("dash"===t)return"8,4";if("dot"===t)return"2,2";if("lgDash"===t)return"12,4";if("dashDot"===t)return"8,4,2,4";if("lgDashDot"===t)return"12,4,2,4";if("lgDashDotDot"===t)return"12,4,2,4,2,4";if("sysDash"===t)return"6,2";if("sysDot"===t)return"2,2";if("sysDashDot"===t)return"6,2,2,2";if("sysDashDotDot"===t)return"6,2,2,2,2,2"}}function tX({node:t}){let{size:e,src:n,srcRect:r}=t,i={width:`${e.w}px`,height:`${e.h}px`,display:"block"};return r&&(i.clipPath=`inset(${r.top}% ${r.right}% ${r.bottom}% ${r.left}%)`),n?(0,o.jsx)("img",{src:n,alt:"",style:i,draggable:!1}):(0,o.jsx)("div",{style:{...i,backgroundColor:"#f0f0f0",display:"flex",alignItems:"center",justifyContent:"center",color:"#999",fontSize:"12px"},children:"Image not found"})}function tY({node:t}){let{size:e,colWidths:n,rows:r,tableFill:i}=t,a=i&&"none"!==i.type?tB(i):{};return(0,o.jsx)("div",{style:{width:e.w,minHeight:e.h,...a},children:(0,o.jsxs)("table",{style:{width:`${e.w}px`,borderCollapse:"collapse",tableLayout:"fixed"},children:[(0,o.jsx)("colgroup",{children:n.map((t,e)=>(0,o.jsx)("col",{style:{width:`${t}px`}},e))}),(0,o.jsx)("tbody",{children:r.map((t,e)=>(0,o.jsx)("tr",{style:{height:`${t.height}px`},children:t.cells.map((n,i)=>{if(n.hMerge||n.vMerge)return null;let a=t=>{if(!t||0===t.width)return"none";let e=t.dash&&"solid"!==t.dash?"dashed":"solid";return`${t.width}px ${e} ${t.color}`},s="none"!==n.fill.type?tB(n.fill):{},l="middle"===n.anchor?"middle":"bottom"===n.anchor?"bottom":"top",u=n.rowSpan>1?r.slice(e,e+n.rowSpan).reduce((t,e)=>t+e.height,0):t.height,h=Math.max(0,u-n.margins.top-n.margins.bottom);return(0,o.jsx)("td",{colSpan:n.gridSpan>1?n.gridSpan:void 0,rowSpan:n.rowSpan>1?n.rowSpan:void 0,style:{height:`${u}px`,maxHeight:`${u}px`,...s,borderTop:a(n.borders.top),borderRight:a(n.borders.right),borderBottom:a(n.borders.bottom),borderLeft:a(n.borders.left),paddingTop:`${n.margins.top}px`,paddingBottom:`${n.margins.bottom}px`,paddingLeft:`${n.margins.left}px`,paddingRight:`${n.margins.right}px`,verticalAlign:l,boxSizing:"border-box"},children:(0,o.jsx)(tF,{textBody:n.textBody,width:void 0,height:h})},i)})},e))})]})})}function tq({node:t}){let{size:e,childOffset:n,childExtent:r,children:i}=t,a=r.w>0?e.w/r.w:1,s=r.h>0?e.h/r.h:1;return(0,o.jsx)("div",{style:{width:`${e.w}px`,height:`${e.h}px`,position:"relative",overflow:"hidden"},children:(0,o.jsx)("div",{style:{position:"absolute",left:`${-n.x*a}px`,top:`${-n.y*s}px`,transform:`scale(${a}, ${s})`,transformOrigin:"0 0"},children:i.map((t,e)=>(0,o.jsx)(bb,{node:t},e))})})}var tQ=function(t,e){return(tQ=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)};function tK(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}tQ(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var tJ=function(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1},t0=new function(){this.browser=new tJ,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow="u">typeof window};"object"==typeof wx&&"function"==typeof wx.getSystemInfoSync?(t0.wxa=!0,t0.touchEventsSupported=!0):typeof document>"u"&&"u">typeof self?t0.worker=!0:!t0.hasGlobalWindow||"Deno"in window||"u">typeof navigator&&"string"==typeof navigator.userAgent&&navigator.userAgent.indexOf("Node.js")>-1?(t0.node=!0,t0.svgSupported=!0):function(t,e){var n=e.browser,r=t.match(/Firefox\/([\d.]+)/),i=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),o=t.match(/Edge?\/([\d.]+)/),a=/micromessenger/i.test(t);if(r&&(n.firefox=!0,n.version=r[1]),i&&(n.ie=!0,n.version=i[1]),o&&(n.edge=!0,n.version=o[1],n.newEdge=+o[1].split(".")[0]>18),a&&(n.weChat=!0),e.svgSupported="u">typeof SVGRect,e.touchEventsSupported="ontouchstart"in window&&!n.ie&&!n.edge,e.pointerEventsSupported="onpointerdown"in window&&(n.edge||n.ie&&+n.version>=11),e.domSupported="u">typeof document){var s=document.documentElement.style;e.transform3dSupported=(n.ie&&"transition"in s||n.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),e.transformSupported=e.transform3dSupported||n.ie&&+n.version>=9}}(navigator.userAgent,t0);var t1="sans-serif",t2="12px "+t1,t5=function(t){var e={};if(typeof JSON>"u")return e;for(var n=0;n<t.length;n++){var r=String.fromCharCode(n+32),i=(t.charCodeAt(n)-20)/100;e[r]=i}return e}("007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N"),t3={createCanvas:function(){return"u">typeof document&&document.createElement("canvas")},measureText:function(t,e){if(!n3){var n=t3.createCanvas();n3=n&&n.getContext("2d")}if(n3)return n4!==e&&(n4=n3.font=e||t2),n3.measureText(t);t=t||"",e=e||t2;var r=/((?:\d+)?\.?\d*)px/.exec(e),i=r&&+r[1]||12,o=0;if(e.indexOf("mono")>=0)o=i*t.length;else for(var a=0;a<t.length;a++){var s=t5[t[a]];o+=null==s?i:s*i}return{width:o}},loadImage:function(t,e,n){var r=new Image;return r.onload=e,r.onerror=n,r.src=t,r}},t4=ey(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(t,e){return t["[object "+e+"]"]=!0,t},{}),t6=ey(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(t,e){return t["[object "+e+"Array]"]=!0,t},{}),t8=Object.prototype.toString,t7=Array.prototype,t9=t7.forEach,et=t7.filter,ee=t7.slice,en=t7.map,er=(function(){}).constructor,ei=er?er.prototype:null,eo="__proto__",ea=2311;function es(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];"u">typeof console&&console.error.apply(console,t)}function el(t){if(null==t||"object"!=typeof t)return t;var e=t,n=t8.call(t);if("[object Array]"===n){if(!t[eR]){e=[];for(var r=0,i=t.length;r<i;r++)e[r]=el(t[r])}}else if(t6[n]){if(!t[eR]){var o=t.constructor;if(o.from)e=o.from(t);else{e=new o(t.length);for(var r=0,i=t.length;r<i;r++)e[r]=t[r]}}}else if(!t4[n]&&!t[eR]&&!eA(t))for(var a in e={},t)t.hasOwnProperty(a)&&a!==eo&&(e[a]=el(t[a]));return e}function eu(t,e,n){if(!eT(e)||!eT(t))return n?el(e):t;for(var r in e)if(e.hasOwnProperty(r)&&r!==eo){var i=t[r],o=e[r];!(eT(o)&&eT(i))||ew(o)||ew(i)||eA(o)||eA(i)||eI(o)||eI(i)||o[eR]||i[eR]?!n&&r in t||(t[r]=el(e[r])):eu(i,o,n)}return t}function eh(t,e){if(Object.assign)Object.assign(t,e);else for(var n in e)e.hasOwnProperty(n)&&n!==eo&&(t[n]=e[n]);return t}function ec(t,e,n){for(var r=e_(e),i=0,o=r.length;i<o;i++){var a=r[i];null==t[a]&&(t[a]=e[a])}return t}function ed(t,e){if(t){if(t.indexOf)return t.indexOf(e);for(var n=0,r=t.length;n<r;n++)if(t[n]===e)return n}return -1}function ep(t,e,n){if(t="prototype"in t?t.prototype:t,e="prototype"in e?e.prototype:e,Object.getOwnPropertyNames)for(var r=Object.getOwnPropertyNames(e),i=0;i<r.length;i++){var o=r[i];"constructor"!==o&&null==t[o]&&(t[o]=e[o])}else ec(t,e)}function ef(t){return!!t&&"string"!=typeof t&&"number"==typeof t.length}function eg(t,e,n){if(t&&e)if(t.forEach&&t.forEach===t9)t.forEach(e,n);else if(t.length===+t.length)for(var r=0,i=t.length;r<i;r++)e.call(n,t[r],r,t);else for(var o in t)t.hasOwnProperty(o)&&e.call(n,t[o],o,t)}function em(t,e,n){if(!t)return[];if(!e)return eP(t);if(t.map&&t.map===en)return t.map(e,n);for(var r=[],i=0,o=t.length;i<o;i++)r.push(e.call(n,t[i],i,t));return r}function ey(t,e,n,r){if(t&&e){for(var i=0,o=t.length;i<o;i++)n=e.call(r,n,t[i],i,t);return n}}function ev(t,e,n){if(!t)return[];if(!e)return eP(t);if(t.filter&&t.filter===et)return t.filter(e,n);for(var r=[],i=0,o=t.length;i<o;i++)e.call(n,t[i],i,t)&&r.push(t[i]);return r}function e_(t){if(!t)return[];if(Object.keys)return Object.keys(t);var e=[];for(var n in t)t.hasOwnProperty(n)&&e.push(n);return e}var ex=ei&&eS(ei.bind)?ei.call.bind(ei.bind):function(t,e){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return function(){return t.apply(e,n.concat(ee.call(arguments)))}};function eb(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return function(){return t.apply(this,e.concat(ee.call(arguments)))}}function ew(t){return Array.isArray?Array.isArray(t):"[object Array]"===t8.call(t)}function eS(t){return"function"==typeof t}function ek(t){return"string"==typeof t}function eM(t){return"[object String]"===t8.call(t)}function eC(t){return"number"==typeof t}function eT(t){var e=typeof t;return"function"===e||!!t&&"object"===e}function eI(t){return!!t4[t8.call(t)]}function eD(t){return!!t6[t8.call(t)]}function eA(t){return"object"==typeof t&&"number"==typeof t.nodeType&&"object"==typeof t.ownerDocument}function eL(t){return null!=t.colorStops}function e$(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n=0,r=t.length;n<r;n++)if(null!=t[n])return t[n]}function eP(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return ee.apply(t,e)}function eO(t){if("number"==typeof t)return[t,t,t,t];var e=t.length;return 2===e?[t[0],t[1],t[0],t[1]]:3===e?[t[0],t[1],t[2],t[1]]:t}function eE(t,e){if(!t)throw Error(e)}function eN(t){return null==t?null:"function"==typeof t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var eR="__ec_primitive__",ez=function(){function t(){this.data={}}return t.prototype.delete=function(t){var e=this.has(t);return e&&delete this.data[t],e},t.prototype.has=function(t){return this.data.hasOwnProperty(t)},t.prototype.get=function(t){return this.data[t]},t.prototype.set=function(t,e){return this.data[t]=e,this},t.prototype.keys=function(){return e_(this.data)},t.prototype.forEach=function(t){var e=this.data;for(var n in e)e.hasOwnProperty(n)&&t(e[n],n)},t}(),eB="function"==typeof Map,eF=function(){function t(e){var n=ew(e);this.data=eB?new Map:new ez;var r=this;function i(t,e){n?r.set(t,e):r.set(e,t)}e instanceof t?e.each(i):e&&eg(e,i)}return t.prototype.hasKey=function(t){return this.data.has(t)},t.prototype.get=function(t){return this.data.get(t)},t.prototype.set=function(t,e){return this.data.set(t,e),e},t.prototype.each=function(t,e){this.data.forEach(function(n,r){t.call(e,n,r)})},t.prototype.keys=function(){var t=this.data.keys();return eB?Array.from(t):t},t.prototype.removeKey=function(t){this.data.delete(t)},t}();function eV(t){return new eF(t)}function eW(t,e){var n;if(Object.create)n=Object.create(t);else{var r=function(){};r.prototype=t,n=new r}return e&&eh(n,e),n}function eH(t,e){return t.hasOwnProperty(e)}function eG(){}var ej=180/Math.PI;function eU(t,e){return null==t&&(t=0),null==e&&(e=0),[t,e]}function eZ(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t}function eX(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t}function eY(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}var eq=function(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])};function eQ(t,e,n,r){return t[0]=e[0]+r*(n[0]-e[0]),t[1]=e[1]+r*(n[1]-e[1]),t}function eK(t,e,n){var r=e[0],i=e[1];return t[0]=n[0]*r+n[2]*i+n[4],t[1]=n[1]*r+n[3]*i+n[5],t}function eJ(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t}function e0(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t}var e1=function(t,e){this.target=t,this.topTarget=e&&e.topTarget},e2=function(){function t(t){this.handler=t,t.on("mousedown",this._dragStart,this),t.on("mousemove",this._drag,this),t.on("mouseup",this._dragEnd,this)}return t.prototype._dragStart=function(t){for(var e=t.target;e&&!e.draggable;)e=e.parent||e.__hostTarget;e&&(this._draggingTarget=e,e.dragging=!0,this._x=t.offsetX,this._y=t.offsetY,this.handler.dispatchToElement(new e1(e,t),"dragstart",t.event))},t.prototype._drag=function(t){var e=this._draggingTarget;if(e){var n=t.offsetX,r=t.offsetY,i=n-this._x,o=r-this._y;this._x=n,this._y=r,e.drift(i,o,t),this.handler.dispatchToElement(new e1(e,t),"drag",t.event);var a=this.handler.findHover(n,r,e).target,s=this._dropTarget;this._dropTarget=a,e!==a&&(s&&a!==s&&this.handler.dispatchToElement(new e1(s,t),"dragleave",t.event),a&&a!==s&&this.handler.dispatchToElement(new e1(a,t),"dragenter",t.event))}},t.prototype._dragEnd=function(t){var e=this._draggingTarget;e&&(e.dragging=!1),this.handler.dispatchToElement(new e1(e,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new e1(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},t}(),e5=function(){function t(t){t&&(this._$eventProcessor=t)}return t.prototype.on=function(t,e,n,r){this._$handlers||(this._$handlers={});var i=this._$handlers;if("function"==typeof e&&(r=n,n=e,e=null),!n||!t)return this;var o=this._$eventProcessor;null!=e&&o&&o.normalizeQuery&&(e=o.normalizeQuery(e)),i[t]||(i[t]=[]);for(var a=0;a<i[t].length;a++)if(i[t][a].h===n)return this;var s={h:n,query:e,ctx:r||this,callAtLast:n.zrEventfulCallAtLast},l=i[t].length-1,u=i[t][l];return u&&u.callAtLast?i[t].splice(l,0,s):i[t].push(s),this},t.prototype.isSilent=function(t){var e=this._$handlers;return!e||!e[t]||!e[t].length},t.prototype.off=function(t,e){var n=this._$handlers;if(!n)return this;if(!t)return this._$handlers={},this;if(e){if(n[t]){for(var r=[],i=0,o=n[t].length;i<o;i++)n[t][i].h!==e&&r.push(n[t][i]);n[t]=r}n[t]&&0===n[t].length&&delete n[t]}else delete n[t];return this},t.prototype.trigger=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(!this._$handlers)return this;var r=this._$handlers[t],i=this._$eventProcessor;if(r)for(var o=e.length,a=r.length,s=0;s<a;s++){var l=r[s];if(!(i&&i.filter&&null!=l.query&&!i.filter(t,l.query)))switch(o){case 0:l.h.call(l.ctx);break;case 1:l.h.call(l.ctx,e[0]);break;case 2:l.h.call(l.ctx,e[0],e[1]);break;default:l.h.apply(l.ctx,e)}}return i&&i.afterTrigger&&i.afterTrigger(t),this},t.prototype.triggerWithContext=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(!this._$handlers)return this;var r=this._$handlers[t],i=this._$eventProcessor;if(r)for(var o=e.length,a=e[o-1],s=r.length,l=0;l<s;l++){var u=r[l];if(!(i&&i.filter&&null!=u.query&&!i.filter(t,u.query)))switch(o){case 0:u.h.call(a);break;case 1:u.h.call(a,e[0]);break;case 2:u.h.call(a,e[0],e[1]);break;default:u.h.apply(a,e.slice(1,o-1))}}return i&&i.afterTrigger&&i.afterTrigger(t),this},t}(),e3=Math.log(2);function e4(t,e,n,r,i,o){var a=r+"-"+i,s=t.length;if(o.hasOwnProperty(a))return o[a];if(1===e){var l=Math.round(Math.log((1<<s)-1&~i)/e3);return t[n][l]}for(var u=r|1<<n,h=n+1;r&1<<h;)h++;for(var c=0,d=0,p=0;d<s;d++){var f=1<<d;f&i||(c+=(p%2?-1:1)*t[n][d]*e4(t,e-1,h,u,i|f,o),p++)}return o[a]=c,c}function e6(t,e){var n=[[t[0],t[1],1,0,0,0,-e[0]*t[0],-e[0]*t[1]],[0,0,0,t[0],t[1],1,-e[1]*t[0],-e[1]*t[1]],[t[2],t[3],1,0,0,0,-e[2]*t[2],-e[2]*t[3]],[0,0,0,t[2],t[3],1,-e[3]*t[2],-e[3]*t[3]],[t[4],t[5],1,0,0,0,-e[4]*t[4],-e[4]*t[5]],[0,0,0,t[4],t[5],1,-e[5]*t[4],-e[5]*t[5]],[t[6],t[7],1,0,0,0,-e[6]*t[6],-e[6]*t[7]],[0,0,0,t[6],t[7],1,-e[7]*t[6],-e[7]*t[7]]],r={},i=e4(n,8,0,0,0,r);if(0!==i){for(var o=[],a=0;a<8;a++)for(var s=0;s<8;s++)null==o[s]&&(o[s]=0),o[s]+=((a+s)%2?-1:1)*e4(n,7,+(0===a),1<<a,1<<s,r)/i*e[a];return function(t,e,n){var r=e*o[6]+n*o[7]+1;t[0]=(e*o[0]+n*o[1]+o[2])/r,t[1]=(e*o[3]+n*o[4]+o[5])/r}}}var e8="___zrEVENTSAVED",e7=[];function e9(t,e,n,r,i){if(e.getBoundingClientRect&&t0.domSupported&&!nt(e)){var o=e[e8]||(e[e8]={}),a=function(t,e,n){for(var r=n?"invTrans":"trans",i=e[r],o=e.srcCoords,a=[],s=[],l=!0,u=0;u<4;u++){var h=t[u].getBoundingClientRect(),c=2*u,d=h.left,p=h.top;a.push(d,p),l=l&&o&&d===o[c]&&p===o[c+1],s.push(t[u].offsetLeft,t[u].offsetTop)}return l&&i?i:(e.srcCoords=a,e[r]=n?e6(s,a):e6(a,s))}(function(t,e){var n=e.markers;if(n)return n;n=e.markers=[];for(var r=["left","right"],i=["top","bottom"],o=0;o<4;o++){var a=document.createElement("div"),s=a.style,l=o%2,u=(o>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",r[l]+":0",i[u]+":0",r[1-l]+":auto",i[1-u]+":auto",""].join("!important;"),t.appendChild(a),n.push(a)}return e.clearMarkers=function(){eg(n,function(t){t.parentNode&&t.parentNode.removeChild(t)})},n}(e,o),o,i);if(a)return a(t,n,r),!0}return!1}function nt(t){return"CANVAS"===t.nodeName.toUpperCase()}var ne=/([&<>"'])/g,nn={"&":"&","<":"<",">":">",'"':""","'":"'"};function nr(t){return null==t?"":(t+"").replace(ne,function(t,e){return nn[e]})}var ni=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,no=[],na=t0.browser.firefox&&39>+t0.browser.version.split(".")[0];function ns(t,e,n,r){return n=n||{},r?nl(t,e,n):na&&null!=e.layerX&&e.layerX!==e.offsetX?(n.zrX=e.layerX,n.zrY=e.layerY):null!=e.offsetX?(n.zrX=e.offsetX,n.zrY=e.offsetY):nl(t,e,n),n}function nl(t,e,n){if(t0.domSupported&&t.getBoundingClientRect){var r=e.clientX,i=e.clientY;if(nt(t)){var o=t.getBoundingClientRect();n.zrX=r-o.left,n.zrY=i-o.top;return}if(e9(no,t,r,i)){n.zrX=no[0],n.zrY=no[1];return}}n.zrX=n.zrY=0}function nu(t){return t||window.event}function nh(t,e,n){if(null!=(e=nu(e)).zrX)return e;var r=e.type;if(r&&r.indexOf("touch")>=0){var i="touchend"!==r?e.targetTouches[0]:e.changedTouches[0];i&&ns(t,i,e,n)}else{ns(t,e,e,n);var o=function(t){var e=t.wheelDelta;if(e)return e;var n=t.deltaX,r=t.deltaY;return null==n||null==r?e:3*Math.abs(0!==r?r:n)*(r>0?-1:r<0?1:n>0?-1:1)}(e);e.zrDelta=o?o/120:-(e.detail||0)/3}var a=e.button;return null==e.which&&void 0!==a&&ni.test(e.type)&&(e.which=1&a?1:2&a?3:4&a?2:0),e}var nc=function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0},nd=function(){function t(){this._track=[]}return t.prototype.recognize=function(t,e,n){return this._doTrack(t,e,n),this._recognize(t)},t.prototype.clear=function(){return this._track.length=0,this},t.prototype._doTrack=function(t,e,n){var r=t.touches;if(r){for(var i={points:[],touches:[],target:e,event:t},o=0,a=r.length;o<a;o++){var s=r[o],l=ns(n,s,{});i.points.push([l.zrX,l.zrY]),i.touches.push(s)}this._track.push(i)}},t.prototype._recognize=function(t){for(var e in nf)if(nf.hasOwnProperty(e)){var n=nf[e](this._track,t);if(n)return n}},t}();function np(t){var e=t[1][0]-t[0][0],n=t[1][1]-t[0][1];return Math.sqrt(e*e+n*n)}var nf={pinch:function(t,e){var n=t.length;if(n){var r=(t[n-1]||{}).points,i=(t[n-2]||{}).points||r;if(i&&i.length>1&&r&&r.length>1){var o=np(r)/np(i);isFinite(o)||(o=1),e.pinchScale=o;var a=[(r[0][0]+r[1][0])/2,(r[0][1]+r[1][1])/2];return e.pinchX=a[0],e.pinchY=a[1],{type:"pinch",target:t[0].target,event:e}}}}};function ng(){return[1,0,0,1,0,0]}function nm(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function ny(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function nv(t,e,n){var r=e[0]*n[0]+e[2]*n[1],i=e[1]*n[0]+e[3]*n[1],o=e[0]*n[2]+e[2]*n[3],a=e[1]*n[2]+e[3]*n[3],s=e[0]*n[4]+e[2]*n[5]+e[4],l=e[1]*n[4]+e[3]*n[5]+e[5];return t[0]=r,t[1]=i,t[2]=o,t[3]=a,t[4]=s,t[5]=l,t}function n_(t,e,n){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4]+n[0],t[5]=e[5]+n[1],t}function nx(t,e,n,r){void 0===r&&(r=[0,0]);var i=e[0],o=e[2],a=e[4],s=e[1],l=e[3],u=e[5],h=Math.sin(n),c=Math.cos(n);return t[0]=i*c+s*h,t[1]=-i*h+s*c,t[2]=o*c+l*h,t[3]=-o*h+c*l,t[4]=c*(a-r[0])+h*(u-r[1])+r[0],t[5]=c*(u-r[1])-h*(a-r[0])+r[1],t}function nb(t,e){var n=e[0],r=e[2],i=e[4],o=e[1],a=e[3],s=e[5],l=n*a-o*r;return l?(l=1/l,t[0]=a*l,t[1]=-o*l,t[2]=-r*l,t[3]=n*l,t[4]=(r*s-a*i)*l,t[5]=(o*i-n*s)*l,t):null}var nw=function(){function t(t,e){this.x=t||0,this.y=e||0}return t.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},t.prototype.clone=function(){return new t(this.x,this.y)},t.prototype.set=function(t,e){return this.x=t,this.y=e,this},t.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},t.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},t.prototype.scale=function(t){this.x*=t,this.y*=t},t.prototype.scaleAndAdd=function(t,e){this.x+=t.x*e,this.y+=t.y*e},t.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},t.prototype.dot=function(t){return this.x*t.x+this.y*t.y},t.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},t.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},t.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},t.prototype.distance=function(t){var e=this.x-t.x,n=this.y-t.y;return Math.sqrt(e*e+n*n)},t.prototype.distanceSquare=function(t){var e=this.x-t.x,n=this.y-t.y;return e*e+n*n},t.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},t.prototype.transform=function(t){if(t){var e=this.x,n=this.y;return this.x=t[0]*e+t[2]*n+t[4],this.y=t[1]*e+t[3]*n+t[5],this}},t.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},t.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},t.set=function(t,e,n){t.x=e,t.y=n},t.copy=function(t,e){t.x=e.x,t.y=e.y},t.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},t.lenSquare=function(t){return t.x*t.x+t.y*t.y},t.dot=function(t,e){return t.x*e.x+t.y*e.y},t.add=function(t,e,n){t.x=e.x+n.x,t.y=e.y+n.y},t.sub=function(t,e,n){t.x=e.x-n.x,t.y=e.y-n.y},t.scale=function(t,e,n){t.x=e.x*n,t.y=e.y*n},t.scaleAndAdd=function(t,e,n,r){t.x=e.x+n.x*r,t.y=e.y+n.y*r},t.lerp=function(t,e,n,r){var i=1-r;t.x=i*e.x+r*n.x,t.y=i*e.y+r*n.y},t}(),nS=Math.min,nk=Math.max,nM=Math.abs,nC=["x","y"],nT=["width","height"],nI=new nw,nD=new nw,nA=new nw,nL=new nw,n$=nF(),nP=n$.minTv,nO=n$.maxTv,nE=[0,0],nN=function(){function t(e,n,r,i){t.set(this,e,n,r,i)}return t.set=function(t,e,n,r,i){return r<0&&(e+=r,r=-r),i<0&&(n+=i,i=-i),t.x=e,t.y=n,t.width=r,t.height=i,t},t.prototype.union=function(t){var e=nS(t.x,this.x),n=nS(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=nk(t.x+t.width,this.x+this.width)-e:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=nk(t.y+t.height,this.y+this.height)-n:this.height=t.height,this.x=e,this.y=n},t.prototype.applyTransform=function(e){t.applyTransform(this,this,e)},t.prototype.calculateTransform=function(t){var e,n,r,i=t.width/this.width,o=t.height/this.height,a=ng();return n_(a,a,[-this.x,-this.y]),n=(e=[i,o])[0],r=e[1],a[0]=a[0]*n,a[1]=a[1]*r,a[2]=a[2]*n,a[3]=a[3]*r,a[4]=a[4]*n,a[5]=a[5]*r,n_(a,a,[t.x,t.y]),a},t.prototype.intersect=function(e,n,r){return t.intersect(this,e,n,r)},t.intersect=function(e,n,r,i){r&&nw.set(r,0,0);var o=i&&i.outIntersectRect||null,a=i&&i.clamp;if(o&&(o.x=o.y=o.width=o.height=NaN),!e||!n)return!1;e instanceof t||(e=t.set(nR,e.x,e.y,e.width,e.height)),n instanceof t||(n=t.set(nz,n.x,n.y,n.width,n.height));var s=!!r;n$.reset(i,s);var l=n$.touchThreshold,u=e.x+l,h=e.x+e.width-l,c=e.y+l,d=e.y+e.height-l,p=n.x+l,f=n.x+n.width-l,g=n.y+l,m=n.y+n.height-l;if(u>h||c>d||p>f||g>m)return!1;var y=!(h<p||f<u||d<g||m<c);return(s||o)&&(nE[0]=1/0,nE[1]=0,nB(u,h,p,f,0,s,o,a),nB(c,d,g,m,1,s,o,a),s&&nw.copy(r,y?n$.useDir?n$.dirMinTv:nP:nO)),y},t.contain=function(t,e,n){return e>=t.x&&e<=t.x+t.width&&n>=t.y&&n<=t.y+t.height},t.prototype.contain=function(e,n){return t.contain(this,e,n)},t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.copy=function(e){t.copy(this,e)},t.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},t.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},t.prototype.isZero=function(){return 0===this.width||0===this.height},t.create=function(e){return new t(e.x,e.y,e.width,e.height)},t.copy=function(t,e){return t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height,t},t.applyTransform=function(e,n,r){if(!r){e!==n&&t.copy(e,n);return}if(r[1]<1e-5&&r[1]>-1e-5&&r[2]<1e-5&&r[2]>-1e-5){var i=r[0],o=r[3],a=r[4],s=r[5];e.x=n.x*i+a,e.y=n.y*o+s,e.width=n.width*i,e.height=n.height*o,e.width<0&&(e.x+=e.width,e.width=-e.width),e.height<0&&(e.y+=e.height,e.height=-e.height);return}nI.x=nA.x=n.x,nI.y=nL.y=n.y,nD.x=nL.x=n.x+n.width,nD.y=nA.y=n.y+n.height,nI.transform(r),nL.transform(r),nD.transform(r),nA.transform(r),e.x=nS(nI.x,nD.x,nA.x,nL.x),e.y=nS(nI.y,nD.y,nA.y,nL.y);var l=nk(nI.x,nD.x,nA.x,nL.x),u=nk(nI.y,nD.y,nA.y,nL.y);e.width=l-e.x,e.height=u-e.y},t}(),nR=new nN(0,0,0,0),nz=new nN(0,0,0,0);function nB(t,e,n,r,i,o,a,s){var l=nM(e-n),u=nM(r-t),h=nS(l,u),c=nC[i],d=nC[1-i],p=nT[i];e<n||r<t?l<u?(o&&(nO[c]=-l),s&&(a[c]=e,a[p]=0)):(o&&(nO[c]=u),s&&(a[c]=t,a[p]=0)):(a&&(a[c]=nk(t,n),a[p]=nS(e,r)-a[c]),o&&(h<nE[0]||n$.useDir)&&(nE[0]=nS(h,nE[0]),(l<u||!n$.bidirectional)&&(nP[c]=l,nP[d]=0,n$.useDir&&n$.calcDirMTV()),(l>=u||!n$.bidirectional)&&(nP[c]=-u,nP[d]=0,n$.useDir&&n$.calcDirMTV())))}function nF(){var t=0,e=new nw,n=new nw,r={minTv:new nw,maxTv:new nw,useDir:!1,dirMinTv:new nw,touchThreshold:0,bidirectional:!0,negativeSize:!1,reset:function(i,o){r.touchThreshold=0,i&&null!=i.touchThreshold&&(r.touchThreshold=nk(0,i.touchThreshold)),r.negativeSize=!1,o&&(r.minTv.set(1/0,1/0),r.maxTv.set(0,0),r.useDir=!1,i&&null!=i.direction&&(r.useDir=!0,r.dirMinTv.copy(r.minTv),n.copy(r.minTv),t=i.direction,r.bidirectional=null==i.bidirectional||!!i.bidirectional,r.bidirectional||e.set(Math.cos(t),Math.sin(t))))},calcDirMTV:function(){var o=r.minTv,a=r.dirMinTv,s=o.y*o.y+o.x*o.x,l=Math.sin(t),u=Math.cos(t),h=l*o.y+u*o.x;if(i(h)){i(o.x)&&i(o.y)&&a.set(0,0);return}(n.x=s*u/h,n.y=s*l/h,i(n.x)&&i(n.y))?a.set(0,0):(r.bidirectional||e.dot(n)>0)&&n.len()<a.len()&&a.copy(n)}};function i(t){return 1e-10>nM(t)}return r}var nV="silent";function nW(){nc(this.event)}var nH=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.handler=null,e}return tK(e,t),e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e}(e5),nG=function(t,e){this.x=t,this.y=e},nj=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],nU=new nN(0,0,0,0),nZ=function(t){function e(e,n,r,i,o){var a=t.call(this)||this;return a._hovered=new nG(0,0),a.storage=e,a.painter=n,a.painterRoot=i,a._pointerSize=o,r=r||new nH,a.proxy=null,a.setHandlerProxy(r),a._draggingMgr=new e2(a),a}return tK(e,t),e.prototype.setHandlerProxy=function(t){this.proxy&&this.proxy.dispose(),t&&(eg(nj,function(e){t.on&&t.on(e,this[e],this)},this),t.handler=this),this.proxy=t},e.prototype.mousemove=function(t){var e=t.zrX,n=t.zrY,r=nY(this,e,n),i=this._hovered,o=i.target;o&&!o.__zr&&(o=(i=this.findHover(i.x,i.y)).target);var a=this._hovered=r?new nG(e,n):this.findHover(e,n),s=a.target,l=this.proxy;l.setCursor&&l.setCursor(s?s.cursor:"default"),o&&s!==o&&this.dispatchToElement(i,"mouseout",t),this.dispatchToElement(a,"mousemove",t),s&&s!==o&&this.dispatchToElement(a,"mouseover",t)},e.prototype.mouseout=function(t){var e=t.zrEventControl;"only_globalout"!==e&&this.dispatchToElement(this._hovered,"mouseout",t),"no_globalout"!==e&&this.trigger("globalout",{type:"globalout",event:t})},e.prototype.resize=function(){this._hovered=new nG(0,0)},e.prototype.dispatch=function(t,e){var n=this[t];n&&n.call(this,e)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(t){var e=this.proxy;e.setCursor&&e.setCursor(t)},e.prototype.dispatchToElement=function(t,e,n){var r=(t=t||{}).target;if(!(r&&r.silent)){for(var i,o="on"+e,a={type:e,event:n,target:(i=t).target,topTarget:i.topTarget,cancelBubble:!1,offsetX:n.zrX,offsetY:n.zrY,gestureEvent:n.gestureEvent,pinchX:n.pinchX,pinchY:n.pinchY,pinchScale:n.pinchScale,wheelDelta:n.zrDelta,zrByTouch:n.zrByTouch,which:n.which,stop:nW};r&&(r[o]&&(a.cancelBubble=!!r[o].call(r,a)),r.trigger(e,a),r=r.__hostTarget?r.__hostTarget:r.parent,!a.cancelBubble););a.cancelBubble||(this.trigger(e,a),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(t){"function"==typeof t[o]&&t[o].call(t,a),t.trigger&&t.trigger(e,a)}))}},e.prototype.findHover=function(t,e,n){var r=this.storage.getDisplayList(),i=new nG(t,e);if(nX(r,i,t,e,n),this._pointerSize&&!i.target){for(var o=[],a=this._pointerSize,s=a/2,l=new nN(t-s,e-s,a,a),u=r.length-1;u>=0;u--){var h=r[u];h===n||h.ignore||h.ignoreCoarsePointer||h.parent&&h.parent.ignoreCoarsePointer||(nU.copy(h.getBoundingRect()),h.transform&&nU.applyTransform(h.transform),nU.intersect(l)&&o.push(h))}if(o.length){for(var c=Math.PI/12,d=2*Math.PI,p=0;p<s;p+=4)for(var f=0;f<d;f+=c)if(nX(o,i,t+p*Math.cos(f),e+p*Math.sin(f),n),i.target)return i}}return i},e.prototype.processGesture=function(t,e){this._gestureMgr||(this._gestureMgr=new nd);var n=this._gestureMgr;"start"===e&&n.clear();var r=n.recognize(t,this.findHover(t.zrX,t.zrY,null).target,this.proxy.dom);if("end"===e&&n.clear(),r){var i=r.type;t.gestureEvent=i;var o=new nG;o.target=r.target,this.dispatchToElement(o,i,r.event)}},e}(e5);function nX(t,e,n,r,i){for(var o=t.length-1;o>=0;o--){var a=t[o],s=void 0;if(a!==i&&!a.ignore&&(s=function(t,e,n){if(t[t.rectHover?"rectContain":"contain"](e,n)){for(var r=t,i=void 0,o=!1;r;){if(r.ignoreClip&&(o=!0),!o){var a=r.getClipPath();if(a&&!a.contain(e,n))return!1}r.silent&&(i=!0);var s=r.__hostTarget;r=s?r.ignoreHostSilent?null:s:r.parent}return!i||nV}return!1}(a,n,r))&&(e.topTarget||(e.topTarget=a),s!==nV)){e.target=a;break}}}function nY(t,e,n){var r=t.painter;return e<0||e>r.getWidth()||n<0||n>r.getHeight()}function nq(t,e,n,r){var i=e+1;if(i===n)return 1;if(0>r(t[i++],t[e])){for(;i<n&&0>r(t[i],t[i-1]);)i++;var o=t,a=e,s=i;for(s--;a<s;){var l=o[a];o[a++]=o[s],o[s--]=l}}else for(;i<n&&r(t[i],t[i-1])>=0;)i++;return i-e}function nQ(t,e,n,r,i){for(r===e&&r++;r<n;r++){for(var o,a=t[r],s=e,l=r;s<l;)0>i(a,t[o=s+l>>>1])?l=o:s=o+1;var u=r-s;switch(u){case 3:t[s+3]=t[s+2];case 2:t[s+2]=t[s+1];case 1:t[s+1]=t[s];break;default:for(;u>0;)t[s+u]=t[s+u-1],u--}t[s]=a}}function nK(t,e,n,r,i,o){var a=0,s=0,l=1;if(o(t,e[n+i])>0){for(s=r-i;l<s&&o(t,e[n+i+l])>0;)a=l,(l=(l<<1)+1)<=0&&(l=s);l>s&&(l=s),a+=i,l+=i}else{for(s=i+1;l<s&&0>=o(t,e[n+i-l]);)a=l,(l=(l<<1)+1)<=0&&(l=s);l>s&&(l=s);var u=a;a=i-l,l=i-u}for(a++;a<l;){var h=a+(l-a>>>1);o(t,e[n+h])>0?a=h+1:l=h}return l}function nJ(t,e,n,r,i,o){var a=0,s=0,l=1;if(0>o(t,e[n+i])){for(s=i+1;l<s&&0>o(t,e[n+i-l]);)a=l,(l=(l<<1)+1)<=0&&(l=s);l>s&&(l=s);var u=a;a=i-l,l=i-u}else{for(s=r-i;l<s&&o(t,e[n+i+l])>=0;)a=l,(l=(l<<1)+1)<=0&&(l=s);l>s&&(l=s),a+=i,l+=i}for(a++;a<l;){var h=a+(l-a>>>1);0>o(t,e[n+h])?l=h:a=h+1}return l}function n0(t,e,n,r){n||(n=0),r||(r=t.length);var i=r-n;if(!(i<2)){var o=0;if(i<32){o=nq(t,n,r,e),nQ(t,n,r,n+o,e);return}var a=function(t,e){var n,r,i=7,o=0,a=[];function s(s){var l=n[s],u=r[s],h=n[s+1],c=r[s+1];r[s]=u+c,s===o-3&&(n[s+1]=n[s+2],r[s+1]=r[s+2]),o--;var d=nJ(t[h],t,l,u,0,e);l+=d,0!=(u-=d)&&0!==(c=nK(t[l+u-1],t,h,c,c-1,e))&&(u<=c?function(n,r,o,s){var l=0;for(l=0;l<r;l++)a[l]=t[n+l];var u=0,h=o,c=n;if(t[c++]=t[h++],0==--s){for(l=0;l<r;l++)t[c+l]=a[u+l];return}if(1===r){for(l=0;l<s;l++)t[c+l]=t[h+l];t[c+s]=a[u];return}for(var d,p,f,g=i;;){d=0,p=0,f=!1;do if(0>e(t[h],a[u])){if(t[c++]=t[h++],p++,d=0,0==--s){f=!0;break}}else if(t[c++]=a[u++],d++,p=0,1==--r){f=!0;break}while((d|p)<g);if(f)break;do{if(0!==(d=nJ(t[h],a,u,r,0,e))){for(l=0;l<d;l++)t[c+l]=a[u+l];if(c+=d,u+=d,(r-=d)<=1){f=!0;break}}if(t[c++]=t[h++],0==--s){f=!0;break}if(0!==(p=nK(a[u],t,h,s,0,e))){for(l=0;l<p;l++)t[c+l]=t[h+l];if(c+=p,h+=p,0==(s-=p)){f=!0;break}}if(t[c++]=a[u++],1==--r){f=!0;break}g--}while(d>=7||p>=7);if(f)break;g<0&&(g=0),g+=2}if((i=g)<1&&(i=1),1===r){for(l=0;l<s;l++)t[c+l]=t[h+l];t[c+s]=a[u]}else{if(0===r)throw Error();for(l=0;l<r;l++)t[c+l]=a[u+l]}}(l,u,h,c):function(n,r,o,s){var l=0;for(l=0;l<s;l++)a[l]=t[o+l];var u=n+r-1,h=s-1,c=o+s-1,d=0,p=0;if(t[c--]=t[u--],0==--r){for(d=c-(s-1),l=0;l<s;l++)t[d+l]=a[l];return}if(1===s){for(c-=r,u-=r,p=c+1,d=u+1,l=r-1;l>=0;l--)t[p+l]=t[d+l];t[c]=a[h];return}for(var f=i;;){var g=0,m=0,y=!1;do if(0>e(a[h],t[u])){if(t[c--]=t[u--],g++,m=0,0==--r){y=!0;break}}else if(t[c--]=a[h--],m++,g=0,1==--s){y=!0;break}while((g|m)<f);if(y)break;do{if(0!=(g=r-nJ(a[h],t,n,r,r-1,e))){for(c-=g,u-=g,r-=g,p=c+1,d=u+1,l=g-1;l>=0;l--)t[p+l]=t[d+l];if(0===r){y=!0;break}}if(t[c--]=a[h--],1==--s){y=!0;break}if(0!=(m=s-nK(t[u],a,0,s,s-1,e))){for(c-=m,h-=m,s-=m,p=c+1,d=h+1,l=0;l<m;l++)t[p+l]=a[d+l];if(s<=1){y=!0;break}}if(t[c--]=t[u--],0==--r){y=!0;break}f--}while(g>=7||m>=7);if(y)break;f<0&&(f=0),f+=2}if((i=f)<1&&(i=1),1===s){for(c-=r,u-=r,p=c+1,d=u+1,l=r-1;l>=0;l--)t[p+l]=t[d+l];t[c]=a[h]}else{if(0===s)throw Error();for(d=c-(s-1),l=0;l<s;l++)t[d+l]=a[l]}}(l,u,h,c))}return n=[],r=[],{mergeRuns:function(){for(;o>1;){var t=o-2;if(t>=1&&r[t-1]<=r[t]+r[t+1]||t>=2&&r[t-2]<=r[t]+r[t-1])r[t-1]<r[t+1]&&t--;else if(r[t]>r[t+1])break;s(t)}},forceMergeRuns:function(){for(;o>1;){var t=o-2;t>0&&r[t-1]<r[t+1]&&t--,s(t)}},pushRun:function(t,e){n[o]=t,r[o]=e,o+=1}}}(t,e),s=function(t){for(var e=0;t>=32;)e|=1&t,t>>=1;return t+e}(i);do{if((o=nq(t,n,r,e))<s){var l=i;l>s&&(l=s),nQ(t,n,n+l,n+o,e),o=l}a.pushRun(n,o),a.mergeRuns(),i-=o,n+=o}while(0!==i);a.forceMergeRuns()}}eg(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(t){nZ.prototype[t]=function(e){var n,r,i=e.zrX,o=e.zrY,a=nY(this,i,o);if("mouseup"===t&&a||(r=(n=this.findHover(i,o)).target),"mousedown"===t)this._downEl=r,this._downPoint=[e.zrX,e.zrY],this._upEl=r;else if("mouseup"===t)this._upEl=r;else if("click"===t){if(this._downEl!==this._upEl||!this._downPoint||eY(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(n,t,e)}});var n1=!1;function n2(){n1||(n1=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function n5(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}var n3,n4,n6,n8,n7,n9,rt,re,rn,rr,ri,ro=function(){function t(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=n5}return t.prototype.traverse=function(t,e){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(t,e)},t.prototype.getDisplayList=function(t,e){e=e||!1;var n=this._displayList;return(t||!n.length)&&this.updateDisplayList(e),n},t.prototype.updateDisplayList=function(t){this._displayListLen=0;for(var e=this._roots,n=this._displayList,r=0,i=e.length;r<i;r++)this._updateAndAddDisplayable(e[r],null,t);n.length=this._displayListLen,n0(n,n5)},t.prototype._updateAndAddDisplayable=function(t,e,n){if(!(t.ignore&&!n)){t.beforeUpdate(),t.update(),t.afterUpdate();var r=t.getClipPath(),i=e&&e.length,o=0,a=t.__clipPaths;if(!t.ignoreClip&&(i||r)){if(a||(a=t.__clipPaths=[]),i)for(var s=0;s<e.length;s++)a[o++]=e[s];for(var l=r,u=t;l;)l.parent=u,l.updateTransform(),a[o++]=l,u=l,l=l.getClipPath()}if(a&&(a.length=o),t.childrenRef){for(var h=t.childrenRef(),c=0;c<h.length;c++){var d=h[c];t.__dirty&&(d.__dirty|=1),this._updateAndAddDisplayable(d,a,n)}t.__dirty=0}else isNaN(t.z)&&(n2(),t.z=0),isNaN(t.z2)&&(n2(),t.z2=0),isNaN(t.zlevel)&&(n2(),t.zlevel=0),this._displayList[this._displayListLen++]=t;var p=t.getDecalElement&&t.getDecalElement();p&&this._updateAndAddDisplayable(p,a,n);var f=t.getTextGuideLine();f&&this._updateAndAddDisplayable(f,a,n);var g=t.getTextContent();g&&this._updateAndAddDisplayable(g,a,n)}},t.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},t.prototype.delRoot=function(t){if(t instanceof Array){for(var e=0,n=t.length;e<n;e++)this.delRoot(t[e]);return}var r=ed(this._roots,t);r>=0&&this._roots.splice(r,1)},t.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},t.prototype.getRoots=function(){return this._roots},t.prototype.dispose=function(){this._displayList=null,this._roots=null},t}();ri=t0.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){return setTimeout(t,16)};var ra={linear:function(t){return t},quadraticIn:function(t){return t*t},quadraticOut:function(t){return t*(2-t)},quadraticInOut:function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)},cubicIn:function(t){return t*t*t},cubicOut:function(t){return--t*t*t+1},cubicInOut:function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},quarticIn:function(t){return t*t*t*t},quarticOut:function(t){return 1- --t*t*t*t},quarticInOut:function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},quinticIn:function(t){return t*t*t*t*t},quinticOut:function(t){return--t*t*t*t*t+1},quinticInOut:function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},sinusoidalIn:function(t){return 1-Math.cos(t*Math.PI/2)},sinusoidalOut:function(t){return Math.sin(t*Math.PI/2)},sinusoidalInOut:function(t){return .5*(1-Math.cos(Math.PI*t))},exponentialIn:function(t){return 0===t?0:Math.pow(1024,t-1)},exponentialOut:function(t){return 1===t?1:1-Math.pow(2,-10*t)},exponentialInOut:function(t){return 0===t?0:1===t?1:(t*=2)<1?.5*Math.pow(1024,t-1):.5*(-Math.pow(2,-10*(t-1))+2)},circularIn:function(t){return 1-Math.sqrt(1-t*t)},circularOut:function(t){return Math.sqrt(1- --t*t)},circularInOut:function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},elasticIn:function(t){var e,n=.1;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=.1):e=.4*Math.asin(1/n)/(2*Math.PI),-(n*Math.pow(2,10*(t-=1))*Math.sin(2*Math.PI*(t-e)/.4)))},elasticOut:function(t){var e,n=.1;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=.1):e=.4*Math.asin(1/n)/(2*Math.PI),n*Math.pow(2,-10*t)*Math.sin(2*Math.PI*(t-e)/.4)+1)},elasticInOut:function(t){var e,n=.1;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=.1):e=.4*Math.asin(1/n)/(2*Math.PI),(t*=2)<1?-.5*(n*Math.pow(2,10*(t-=1))*Math.sin(2*Math.PI*(t-e)/.4)):n*Math.pow(2,-10*(t-=1))*Math.sin(2*Math.PI*(t-e)/.4)*.5+1)},backIn:function(t){return t*t*(2.70158*t-1.70158)},backOut:function(t){return--t*t*(2.70158*t+1.70158)+1},backInOut:function(t){return(t*=2)<1?t*t*(3.5949095*t-2.5949095)*.5:.5*((t-=2)*t*(3.5949095*t+2.5949095)+2)},bounceIn:function(t){return 1-ra.bounceOut(1-t)},bounceOut:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},bounceInOut:function(t){return t<.5?.5*ra.bounceIn(2*t):.5*ra.bounceOut(2*t-1)+.5}},rs=Math.pow,rl=Math.sqrt,ru=rl(3),rh=1/3,rc=eU(),rd=eU(),rp=eU();function rf(t){return t>-1e-8&&t<1e-8}function rg(t){return t>1e-8||t<-1e-8}function rm(t,e,n,r,i){var o=1-i;return o*o*(o*t+3*i*e)+i*i*(i*r+3*o*n)}function ry(t,e,n,r,i){var o=1-i;return 3*(((e-t)*o+2*(n-e)*i)*o+(r-n)*i*i)}function rv(t,e,n,r,i,o){var a=r+3*(e-n)-t,s=3*(n-2*e+t),l=3*(e-t),u=t-i,h=s*s-3*a*l,c=s*l-9*a*u,d=l*l-3*s*u,p=0;if(rf(h)&&rf(c))if(rf(s))o[0]=0;else{var f=-l/s;f>=0&&f<=1&&(o[p++]=f)}else{var g=c*c-4*h*d;if(rf(g)){var m=c/h,f=-s/a+m,y=-m/2;f>=0&&f<=1&&(o[p++]=f),y>=0&&y<=1&&(o[p++]=y)}else if(g>0){var v=rl(g),_=h*s+1.5*a*(-c+v),x=h*s+1.5*a*(-c-v),f=(-s-((_=_<0?-rs(-_,rh):rs(_,rh))+(x=x<0?-rs(-x,rh):rs(x,rh))))/(3*a);f>=0&&f<=1&&(o[p++]=f)}else{var b=Math.acos((2*h*s-3*a*c)/(2*rl(h*h*h)))/3,w=rl(h),S=Math.cos(b),f=(-s-2*w*S)/(3*a),y=(-s+w*(S+ru*Math.sin(b)))/(3*a),k=(-s+w*(S-ru*Math.sin(b)))/(3*a);f>=0&&f<=1&&(o[p++]=f),y>=0&&y<=1&&(o[p++]=y),k>=0&&k<=1&&(o[p++]=k)}}return p}function r_(t,e,n,r,i){var o=6*n-12*e+6*t,a=9*e+3*r-3*t-9*n,s=3*e-3*t,l=0;if(rf(a)){if(rg(o)){var u=-s/o;u>=0&&u<=1&&(i[l++]=u)}}else{var h=o*o-4*a*s;if(rf(h))i[0]=-o/(2*a);else if(h>0){var c=rl(h),u=(-o+c)/(2*a),d=(-o-c)/(2*a);u>=0&&u<=1&&(i[l++]=u),d>=0&&d<=1&&(i[l++]=d)}}return l}function rx(t,e,n,r,i,o){var a=(e-t)*i+t,s=(n-e)*i+e,l=(r-n)*i+n,u=(s-a)*i+a,h=(l-s)*i+s,c=(h-u)*i+u;o[0]=t,o[1]=a,o[2]=u,o[3]=c,o[4]=c,o[5]=h,o[6]=l,o[7]=r}function rb(t,e,n,r){var i=1-r;return i*(i*t+2*r*e)+r*r*n}function rw(t,e,n,r){return 2*((1-r)*(e-t)+r*(n-e))}function rS(t,e,n){var r=t+n-2*e;return 0===r?.5:(t-e)/r}function rk(t,e,n,r,i){var o=(e-t)*r+t,a=(n-e)*r+e,s=(a-o)*r+o;i[0]=t,i[1]=o,i[2]=s,i[3]=s,i[4]=a,i[5]=n}var rM=/cubic-bezier\(([0-9,\.e ]+)\)/;function rC(t){var e=t&&rM.exec(t);if(e){var n=e[1].split(","),r=+eN(n[0]),i=+eN(n[1]),o=+eN(n[2]),a=+eN(n[3]);if(isNaN(r+i+o+a))return;var s=[];return function(t){return t<=0?0:t>=1?1:rv(0,r,o,1,t,s)&&rm(0,i,a,1,s[0])}}}var rT=function(){function t(t){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=t.loop||!1,this.onframe=t.onframe||eG,this.ondestroy=t.ondestroy||eG,this.onrestart=t.onrestart||eG,t.easing&&this.setEasing(t.easing)}return t.prototype.step=function(t,e){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),this._paused){this._pausedTime+=e;return}var n=this._life,r=t-this._startTime-this._pausedTime,i=r/n;i<0&&(i=0),i=Math.min(i,1);var o=this.easingFunc,a=o?o(i):i;if(this.onframe(a),1===i)if(!this.loop)return!0;else this._startTime=t-r%n,this._pausedTime=0,this.onrestart();return!1},t.prototype.pause=function(){this._paused=!0},t.prototype.resume=function(){this._paused=!1},t.prototype.setEasing=function(t){this.easing=t,this.easingFunc=eS(t)?t:ra[t]||rC(t)},t}(),rI=function(t){this.value=t},rD=function(){function t(){this._len=0}return t.prototype.insert=function(t){var e=new rI(t);return this.insertEntry(e),e},t.prototype.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},t.prototype.remove=function(t){var e=t.prev,n=t.next;e?e.next=n:this.head=n,n?n.prev=e:this.tail=e,t.next=t.prev=null,this._len--},t.prototype.len=function(){return this._len},t.prototype.clear=function(){this.head=this.tail=null,this._len=0},t}(),rA=function(){function t(t){this._list=new rD,this._maxSize=10,this._map={},this._maxSize=t}return t.prototype.put=function(t,e){var n=this._list,r=this._map,i=null;if(null==r[t]){var o=n.len(),a=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var s=n.head;n.remove(s),delete r[s.key],i=s.value,this._lastRemovedEntry=s}a?a.value=e:a=new rI(e),a.key=t,n.insertEntry(a),r[t]=a}return i},t.prototype.get=function(t){var e=this._map[t],n=this._list;if(null!=e)return e!==n.tail&&(n.remove(e),n.insertEntry(e)),e.value},t.prototype.clear=function(){this._list.clear(),this._map={}},t.prototype.len=function(){return this._list.len()},t}(),rL={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 r$(t){return(t=Math.round(t))<0?0:t>255?255:t}function rP(t){return t<0?0:t>1?1:t}function rO(t){return t.length&&"%"===t.charAt(t.length-1)?r$(parseFloat(t)/100*255):r$(parseInt(t,10))}function rE(t){return t.length&&"%"===t.charAt(t.length-1)?rP(parseFloat(t)/100):rP(parseFloat(t))}function rN(t,e,n){return n<0?n+=1:n>1&&(n-=1),6*n<1?t+(e-t)*n*6:2*n<1?e:3*n<2?t+(e-t)*(2/3-n)*6:t}function rR(t,e,n,r,i){return t[0]=e,t[1]=n,t[2]=r,t[3]=i,t}function rz(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}var rB=new rA(20),rF=null;function rV(t,e){rF&&rz(rF,e),rF=rB.put(t,rF||e.slice())}function rW(t,e){if(t){e=e||[];var n=rB.get(t);if(n)return rz(e,n);var r=(t+="").replace(/ /g,"").toLowerCase();if(r in rL)return rz(e,rL[r]),rV(t,e),e;var i=r.length;if("#"===r.charAt(0)){if(4===i||5===i){var o=parseInt(r.slice(1,4),16);return o>=0&&o<=4095?(rR(e,(3840&o)>>4|(3840&o)>>8,240&o|(240&o)>>4,15&o|(15&o)<<4,5===i?parseInt(r.slice(4),16)/15:1),rV(t,e),e):void rR(e,0,0,0,1)}if(7===i||9===i){var o=parseInt(r.slice(1,7),16);return o>=0&&o<=0xffffff?(rR(e,(0xff0000&o)>>16,(65280&o)>>8,255&o,9===i?parseInt(r.slice(7),16)/255:1),rV(t,e),e):void rR(e,0,0,0,1)}return}var a=r.indexOf("("),s=r.indexOf(")");if(-1!==a&&s+1===i){var l=r.substr(0,a),u=r.substr(a+1,s-(a+1)).split(","),h=1;switch(l){case"rgba":if(4!==u.length)return 3===u.length?rR(e,+u[0],+u[1],+u[2],1):rR(e,0,0,0,1);h=rE(u.pop());case"rgb":if(u.length>=3)return rR(e,rO(u[0]),rO(u[1]),rO(u[2]),3===u.length?h:rE(u[3])),rV(t,e),e;rR(e,0,0,0,1);return;case"hsla":if(4!==u.length)return void rR(e,0,0,0,1);return u[3]=rE(u[3]),rH(u,e),rV(t,e),e;case"hsl":if(3!==u.length)return void rR(e,0,0,0,1);return rH(u,e),rV(t,e),e;default:return}}rR(e,0,0,0,1)}}function rH(t,e){var n=(parseFloat(t[0])%360+360)%360/360,r=rE(t[1]),i=rE(t[2]),o=i<=.5?i*(r+1):i+r-i*r,a=2*i-o;return rR(e=e||[],r$(255*rN(a,o,n+1/3)),r$(255*rN(a,o,n)),r$(255*rN(a,o,n-1/3)),1),4===t.length&&(e[3]=t[3]),e}function rG(t,e){var n=rW(t);if(n){for(var r=0;r<3;r++)n[r]=n[r]*(1-e)|0,n[r]>255?n[r]=255:n[r]<0&&(n[r]=0);return rU(n,4===n.length?"rgba":"rgb")}}function rj(t,e,n,r){var i=rW(t);if(t)return i=function(t){if(t){var e,n,r=t[0]/255,i=t[1]/255,o=t[2]/255,a=Math.min(r,i,o),s=Math.max(r,i,o),l=s-a,u=(s+a)/2;if(0===l)e=0,n=0;else{n=u<.5?l/(s+a):l/(2-s-a);var h=((s-r)/6+l/2)/l,c=((s-i)/6+l/2)/l,d=((s-o)/6+l/2)/l;r===s?e=d-c:i===s?e=1/3+h-d:o===s&&(e=2/3+c-h),e<0&&(e+=1),e>1&&(e-=1)}var p=[360*e,n,u];return null!=t[3]&&p.push(t[3]),p}}(i),null!=n&&(i[1]=rE(eS(n)?n(i[1]):n)),null!=r&&(i[2]=rE(eS(r)?r(i[2]):r)),rU(rH(i),"rgba")}function rU(t,e){if(!(!t||!t.length)){var n=t[0]+","+t[1]+","+t[2];return("rgba"===e||"hsva"===e||"hsla"===e)&&(n+=","+t[3]),e+"("+n+")"}}function rZ(t,e){var n=rW(t);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*e:0}var rX=new rA(100);function rY(t){if(ek(t)){var e=rX.get(t);return e||(e=rG(t,-.1),rX.put(t,e)),e}if(eL(t)){var n=eh({},t);return n.colorStops=em(t.colorStops,function(t){return{offset:t.offset,color:rG(t.color,-.1)}}),n}return t}var rq=Math.round;function rQ(t){var e;if(t&&"transparent"!==t){if("string"==typeof t&&t.indexOf("rgba")>-1){var n=rW(t);n&&(t="rgb("+n[0]+","+n[1]+","+n[2]+")",e=n[3])}}else t="none";return{color:t,opacity:e??1}}function rK(t){return t<1e-4&&t>-1e-4}function rJ(t){return rq(1e3*t)/1e3}function r0(t){return rq(1e4*t)/1e4}var r1={left:"start",right:"end",center:"middle",middle:"middle"};function r2(t){return t&&!!t.image}function r5(t){return r2(t)||t&&!!t.svgElement}function r3(t){return"linear"===t.type}function r4(t){return"radial"===t.type}function r6(t){return t&&("linear"===t.type||"radial"===t.type)}function r8(t){return"url(#"+t+")"}function r7(t){var e=t.getGlobalScale();return Math.max(Math.ceil(Math.log(Math.max(e[0],e[1]))/Math.log(10)),1)}function r9(t){var e=t.x||0,n=t.y||0,r=(t.rotation||0)*ej,i=t.scaleX??1,o=t.scaleY??1,a=t.skewX||0,s=t.skewY||0,l=[];return(e||n)&&l.push("translate("+e+"px,"+n+"px)"),r&&l.push("rotate("+r+")"),(1!==i||1!==o)&&l.push("scale("+i+","+o+")"),(a||s)&&l.push("skew("+rq(a*ej)+"deg, "+rq(s*ej)+"deg)"),l.join(" ")}var it=t0.hasGlobalWindow&&eS(window.btoa)?function(t){return window.btoa(unescape(encodeURIComponent(t)))}:"u">typeof Buffer?function(t){return Buffer.from(t).toString("base64")}:function(t){return null},ie=Array.prototype.slice;function ir(t,e,n,r){for(var i,o=e.length,a=0;a<o;a++)t[a]=(i=e[a],(n[a]-i)*r+i);return t}function ii(t,e,n,r){for(var i=e.length,o=0;o<i;o++)t[o]=e[o]+n[o]*r;return t}function io(t,e,n,r){for(var i=e.length,o=i&&e[0].length,a=0;a<i;a++){t[a]||(t[a]=[]);for(var s=0;s<o;s++)t[a][s]=e[a][s]+n[a][s]*r}return t}function ia(t){if(ef(t)){var e=t.length;if(ef(t[0])){for(var n=[],r=0;r<e;r++)n.push(ie.call(t[r]));return n}return ie.call(t)}return t}function is(t){return t[0]=Math.floor(t[0])||0,t[1]=Math.floor(t[1])||0,t[2]=Math.floor(t[2])||0,t[3]=null==t[3]?1:t[3],"rgba("+t.join(",")+")"}function il(t){return 4===t||5===t}function iu(t){return 1===t||2===t}var ih=[0,0,0,0],ic=function(){function t(t){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=t}return t.prototype.isFinished=function(){return this._finished},t.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},t.prototype.needsAnimate=function(){return this.keyframes.length>=1},t.prototype.getAdditiveTrack=function(){return this._additiveTrack},t.prototype.addKeyframe=function(t,e,n){this._needsSort=!0;var r=this.keyframes,i=r.length,o=!1,a=6,s=e;if(ef(e)){var l=ef(e&&e[0])?2:1;a=l,(1!==l||eC(e[0]))&&(2!==l||eC(e[0][0]))||(o=!0)}else if(eC(e)&&e==e)a=0;else if(ek(e))if(isNaN(+e)){var u=rW(e);u&&(s=u,a=3)}else a=0;else if(eL(e)){var h=eh({},s);h.colorStops=em(e.colorStops,function(t){return{offset:t.offset,color:rW(t.color)}}),r3(e)?a=4:r4(e)&&(a=5),s=h}0===i?this.valType=a:(a!==this.valType||6===a)&&(o=!0),this.discrete=this.discrete||o;var c={time:t,value:s,rawValue:e,percent:0};return n&&(c.easing=n,c.easingFunc=eS(n)?n:ra[n]||rC(n)),r.push(c),c},t.prototype.prepare=function(t,e){var n=this.keyframes;this._needsSort&&n.sort(function(t,e){return t.time-e.time});for(var r=this.valType,i=n.length,o=n[i-1],a=this.discrete,s=iu(r),l=il(r),u=0;u<i;u++){var h=n[u],c=h.value,d=o.value;h.percent=h.time/t,a||(s&&u!==i-1?function(t,e,n){if(!(!t.push||!e.push)){var r=t.length,i=e.length;if(r!==i)if(r>i)t.length=i;else for(var o=r;o<i;o++)t.push(1===n?e[o]:ie.call(e[o]));for(var a=t[0]&&t[0].length,o=0;o<t.length;o++)if(1===n)isNaN(t[o])&&(t[o]=e[o]);else for(var s=0;s<a;s++)isNaN(t[o][s])&&(t[o][s]=e[o][s])}}(c,d,r):l&&function(t,e){for(var n=t.length,r=e.length,i=n>r?e:t,o=Math.min(n,r),a=i[o-1]||{color:[0,0,0,0],offset:0},s=o;s<Math.max(n,r);s++)i.push({offset:a.offset,color:a.color.slice()})}(c.colorStops,d.colorStops))}if(!a&&5!==r&&e&&this.needsAnimate()&&e.needsAnimate()&&r===e.valType&&!e._finished){this._additiveTrack=e;for(var p=n[0].value,u=0;u<i;u++)0===r?n[u].additiveValue=n[u].value-p:3===r?n[u].additiveValue=ii([],n[u].value,p,-1):iu(r)&&(n[u].additiveValue=1===r?ii([],n[u].value,p,-1):io([],n[u].value,p,-1))}},t.prototype.step=function(t,e){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n,r,i,o=null!=this._additiveTrack,a=o?"additiveValue":"value",s=this.valType,l=this.keyframes,u=l.length,h=this.propName,c=3===s,d=this._lastFr,p=Math.min;if(1===u)r=i=l[0];else{if(e<0)n=0;else if(e<this._lastFrP){for(n=p(d+1,u-1);n>=0&&!(l[n].percent<=e);n--);n=p(n,u-2)}else{for(n=d;n<u&&!(l[n].percent>e);n++);n=p(n-1,u-2)}i=l[n+1],r=l[n]}if(r&&i){this._lastFr=n,this._lastFrP=e;var f=i.percent-r.percent,g=0===f?1:p((e-r.percent)/f,1);i.easingFunc&&(g=i.easingFunc(g));var m=o?this._additiveValue:c?ih:t[h];if((iu(s)||c)&&!m&&(m=this._additiveValue=[]),this.discrete)t[h]=g<1?r.rawValue:i.rawValue;else if(iu(s))1===s?ir(m,r[a],i[a],g):function(t,e,n,r){for(var i=e.length,o=i&&e[0].length,a=0;a<i;a++){t[a]||(t[a]=[]);for(var s,l=0;l<o;l++)t[a][l]=(s=e[a][l],(n[a][l]-s)*r+s)}}(m,r[a],i[a],g);else if(il(s)){var y,v,_,x,b,w=r[a],S=i[a],k=4===s;t[h]={type:k?"linear":"radial",x:(y=w.x,(S.x-y)*g+y),y:(v=w.y,(S.y-v)*g+v),colorStops:em(w.colorStops,function(t,e){var n,r=S.colorStops[e];return{offset:(n=t.offset,(r.offset-n)*g+n),color:is(ir([],t.color,r.color,g))}}),global:S.global},k?(t[h].x2=(_=w.x2,(S.x2-_)*g+_),t[h].y2=(x=w.y2,(S.y2-x)*g+x)):t[h].r=(b=w.r,(S.r-b)*g+b)}else if(c)ir(m,r[a],i[a],g),o||(t[h]=is(m));else{var M,C=(M=r[a],(i[a]-M)*g+M);o?this._additiveValue=C:t[h]=C}o&&this._addToTarget(t)}}},t.prototype._addToTarget=function(t){var e=this.valType,n=this.propName,r=this._additiveValue;0===e?t[n]=t[n]+r:3===e?(rW(t[n],ih),ii(ih,ih,r,1),t[n]=is(ih)):1===e?ii(t[n],t[n],r,1):2===e&&io(t[n],t[n],r,1)},t}(),id=function(){function t(t,e,n,r){(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=e,e&&r)?es("Can' use additive animation on looped animation."):(this._additiveAnimators=r,this._allowDiscrete=n)}return t.prototype.getMaxTime=function(){return this._maxTime},t.prototype.getDelay=function(){return this._delay},t.prototype.getLoop=function(){return this._loop},t.prototype.getTarget=function(){return this._target},t.prototype.changeTarget=function(t){this._target=t},t.prototype.when=function(t,e,n){return this.whenWithKeys(t,e,e_(e),n)},t.prototype.whenWithKeys=function(t,e,n,r){for(var i=this._tracks,o=0;o<n.length;o++){var a=n[o],s=i[a];if(!s){s=i[a]=new ic(a);var l=void 0,u=this._getAdditiveTrack(a);if(u){var h=u.keyframes,c=h[h.length-1];l=c&&c.value,3===u.valType&&l&&(l=is(l))}else l=this._target[a];if(null==l)continue;t>0&&s.addKeyframe(0,ia(l),r),this._trackKeys.push(a)}s.addKeyframe(t,ia(e[a]),r)}return this._maxTime=Math.max(this._maxTime,t),this},t.prototype.pause=function(){this._clip.pause(),this._paused=!0},t.prototype.resume=function(){this._clip.resume(),this._paused=!1},t.prototype.isPaused=function(){return!!this._paused},t.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},t.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var e=t.length,n=0;n<e;n++)t[n].call(this)},t.prototype._abortedCallback=function(){this._setTracksFinished();var t=this.animation,e=this._abortedCbs;if(t&&t.removeClip(this._clip),this._clip=null,e)for(var n=0;n<e.length;n++)e[n].call(this)},t.prototype._setTracksFinished=function(){for(var t=this._tracks,e=this._trackKeys,n=0;n<e.length;n++)t[e[n]].setFinished()},t.prototype._getAdditiveTrack=function(t){var e,n=this._additiveAnimators;if(n)for(var r=0;r<n.length;r++){var i=n[r].getTrack(t);i&&(e=i)}return e},t.prototype.start=function(t){if(!(this._started>0)){this._started=1;for(var e=this,n=[],r=this._maxTime||0,i=0;i<this._trackKeys.length;i++){var o=this._trackKeys[i],a=this._tracks[o],s=this._getAdditiveTrack(o),l=a.keyframes,u=l.length;if(a.prepare(r,s),a.needsAnimate())if(!this._allowDiscrete&&a.discrete){var h=l[u-1];h&&(e._target[a.propName]=h.rawValue),a.setFinished()}else n.push(a)}if(n.length||this._force){var c=new rT({life:r,loop:this._loop,delay:this._delay||0,onframe:function(t){e._started=2;var r=e._additiveAnimators;if(r){for(var i=!1,o=0;o<r.length;o++)if(r[o]._clip){i=!0;break}i||(e._additiveAnimators=null)}for(var o=0;o<n.length;o++)n[o].step(e._target,t);var a=e._onframeCbs;if(a)for(var o=0;o<a.length;o++)a[o](e._target,t)},ondestroy:function(){e._doneCallback()}});this._clip=c,this.animation&&this.animation.addClip(c),t&&c.setEasing(t)}else this._doneCallback();return this}},t.prototype.stop=function(t){if(this._clip){var e=this._clip;t&&e.onframe(1),this._abortedCallback()}},t.prototype.delay=function(t){return this._delay=t,this},t.prototype.during=function(t){return t&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(t)),this},t.prototype.done=function(t){return t&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(t)),this},t.prototype.aborted=function(t){return t&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(t)),this},t.prototype.getClip=function(){return this._clip},t.prototype.getTrack=function(t){return this._tracks[t]},t.prototype.getTracks=function(){var t=this;return em(this._trackKeys,function(e){return t._tracks[e]})},t.prototype.stopTracks=function(t,e){if(!t.length||!this._clip)return!0;for(var n=this._tracks,r=this._trackKeys,i=0;i<t.length;i++){var o=n[t[i]];o&&!o.isFinished()&&(e?o.step(this._target,1):1===this._started&&o.step(this._target,0),o.setFinished())}for(var a=!0,i=0;i<r.length;i++)if(!n[r[i]].isFinished()){a=!1;break}return a&&this._abortedCallback(),a},t.prototype.saveTo=function(t,e,n){if(t){e=e||this._trackKeys;for(var r=0;r<e.length;r++){var i=e[r],o=this._tracks[i];if(!(!o||o.isFinished())){var a=o.keyframes,s=a[n?0:a.length-1];s&&(t[i]=ia(s.rawValue))}}}},t.prototype.__changeFinalValue=function(t,e){e=e||e_(t);for(var n=0;n<e.length;n++){var r=e[n],i=this._tracks[r];if(i){var o=i.keyframes;if(o.length>1){var a=o.pop();i.addKeyframe(a.time,t[r]),i.prepare(this._maxTime,i.getAdditiveTrack())}}}},t}();function ip(){return new Date().getTime()}var ig=function(t){function e(e){var n=t.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,n.stage=(e=e||{}).stage||{},n}return tK(e,t),e.prototype.addClip=function(t){t.animation&&this.removeClip(t),this._head?(this._tail.next=t,t.prev=this._tail,t.next=null,this._tail=t):this._head=this._tail=t,t.animation=this},e.prototype.addAnimator=function(t){t.animation=this;var e=t.getClip();e&&this.addClip(e)},e.prototype.removeClip=function(t){if(t.animation){var e=t.prev,n=t.next;e?e.next=n:this._head=n,n?n.prev=e:this._tail=e,t.next=t.prev=t.animation=null}},e.prototype.removeAnimator=function(t){var e=t.getClip();e&&this.removeClip(e),t.animation=null},e.prototype.update=function(t){for(var e=ip()-this._pausedTime,n=e-this._time,r=this._head;r;){var i=r.next;r.step(e,n)&&(r.ondestroy(),this.removeClip(r)),r=i}this._time=e,t||(this.trigger("frame",n),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var t=this;this._running=!0,ri(function e(){t._running&&(ri(e),t._paused||t.update())})},e.prototype.start=function(){this._running||(this._time=ip(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=ip(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=ip()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){for(var t=this._head;t;){var e=t.next;t.prev=t.next=t.animation=null,t=e}this._head=this._tail=null},e.prototype.isFinished=function(){return null==this._head},e.prototype.animate=function(t,e){e=e||{},this.start();var n=new id(t,e.loop);return this.addAnimator(n),n},e}(e5),im=t0.domSupported,iy=(cw={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},cS=em(cb=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],function(t){var e=t.replace("mouse","pointer");return cw.hasOwnProperty(e)?e:t}),{mouse:cb,touch:["touchstart","touchend","touchmove"],pointer:cS}),iv=["mousemove","mouseup"],i_=["pointermove","pointerup"],ix=!1;function ib(t){var e=t.pointerType;return"pen"===e||"touch"===e}function iw(t){t&&(t.zrByTouch=!0)}function iS(t,e){for(var n=e,r=!1;n&&9!==n.nodeType&&!(r=n.domBelongToZr||n!==e&&n===t.painterRoot);)n=n.parentNode;return r}var ik=function(t,e){this.stopPropagation=eG,this.stopImmediatePropagation=eG,this.preventDefault=eG,this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY},iM={mousedown:function(t){t=nh(this.dom,t),this.__mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=nh(this.dom,t);var e=this.__mayPointerCapture;e&&(t.zrX!==e[0]||t.zrY!==e[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",t)},mouseup:function(t){t=nh(this.dom,t),this.__togglePointerCapture(!1),this.trigger("mouseup",t)},mouseout:function(t){iS(this,(t=nh(this.dom,t)).toElement||t.relatedTarget)||(this.__pointerCapturing&&(t.zrEventControl="no_globalout"),this.trigger("mouseout",t))},wheel:function(t){ix=!0,t=nh(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){ix||(t=nh(this.dom,t),this.trigger("mousewheel",t))},touchstart:function(t){iw(t=nh(this.dom,t)),this.__lastTouchMoment=new Date,this.handler.processGesture(t,"start"),iM.mousemove.call(this,t),iM.mousedown.call(this,t)},touchmove:function(t){iw(t=nh(this.dom,t)),this.handler.processGesture(t,"change"),iM.mousemove.call(this,t)},touchend:function(t){iw(t=nh(this.dom,t)),this.handler.processGesture(t,"end"),iM.mouseup.call(this,t),new Date-this.__lastTouchMoment<300&&iM.click.call(this,t)},pointerdown:function(t){iM.mousedown.call(this,t)},pointermove:function(t){ib(t)||iM.mousemove.call(this,t)},pointerup:function(t){iM.mouseup.call(this,t)},pointerout:function(t){ib(t)||iM.mouseout.call(this,t)}};eg(["click","dblclick","contextmenu"],function(t){iM[t]=function(e){e=nh(this.dom,e),this.trigger(t,e)}});var iC={pointermove:function(t){ib(t)||iC.mousemove.call(this,t)},pointerup:function(t){iC.mouseup.call(this,t)},mousemove:function(t){this.trigger("mousemove",t)},mouseup:function(t){var e=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",t),e&&(t.zrEventControl="only_globalout",this.trigger("mouseout",t))}};function iT(t,e,n,r){var i;t.mounted[e]=n,t.listenerOpts[e]=r,i=t.domTarget,i.addEventListener(e,n,r)}function iI(t){var e,n,r,i=t.mounted;for(var o in i)i.hasOwnProperty(o)&&(e=t.domTarget,n=i[o],r=t.listenerOpts[o],e.removeEventListener(o,n,r));t.mounted={}}var iD=function(t,e){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=e},iA=function(t){function e(e,n){var r,i,o=t.call(this)||this;return o.__pointerCapturing=!1,o.dom=e,o.painterRoot=n,o._localHandlerScope=new iD(e,iM),im&&(o._globalHandlerScope=new iD(document,iC)),i=(r=o._localHandlerScope).domHandlers,t0.pointerEventsSupported?eg(iy.pointer,function(t){iT(r,t,function(e){i[t].call(o,e)})}):(t0.touchEventsSupported&&eg(iy.touch,function(t){iT(r,t,function(e){i[t].call(o,e),r.touching=!0,null!=r.touchTimer&&(clearTimeout(r.touchTimer),r.touchTimer=null),r.touchTimer=setTimeout(function(){r.touching=!1,r.touchTimer=null},700)})}),eg(iy.mouse,function(t){iT(r,t,function(e){e=nu(e),r.touching||i[t].call(o,e)})})),o}return tK(e,t),e.prototype.dispose=function(){iI(this._localHandlerScope),im&&iI(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,im&&this.__pointerCapturing^t){this.__pointerCapturing=t;var e=this._globalHandlerScope;t?function(t,e){t0.pointerEventsSupported?eg(i_,n):t0.touchEventsSupported||eg(iv,n);function n(n){iT(e,n,function(r){var i;iS(t,(r=nu(r)).target)||(i=r,r=nh(t.dom,new ik(t,i),!0),e.domHandlers[n].call(t,r))},{capture:!0})}}(this,e):iI(e)}},e}(e5),iL=1;t0.hasGlobalWindow&&(iL=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var i$=iL,iP="#333",iO="#ccc";function iE(t){return t>5e-5||t<-5e-5}var iN=[],iR=[],iz=ng(),iB=Math.abs,iF=function(){var t;function e(){}return e.prototype.getLocalTransform=function(t){return e.getLocalTransform(this,t)},e.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},e.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},e.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},e.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},e.prototype.needLocalTransform=function(){return iE(this.rotation)||iE(this.x)||iE(this.y)||iE(this.scaleX-1)||iE(this.scaleY-1)||iE(this.skewX)||iE(this.skewY)},e.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,e=this.needLocalTransform(),n=this.transform;if(!(e||t)){n&&(nm(n),this.invTransform=null);return}n=n||ng(),e?this.getLocalTransform(n):nm(n),t&&(e?nv(n,t,n):ny(n,t)),this.transform=n,this._resolveGlobalScaleRatio(n)},e.prototype._resolveGlobalScaleRatio=function(t){var e=this.globalScaleRatio;if(null!=e&&1!==e){this.getGlobalScale(iN);var n=iN[0]<0?-1:1,r=iN[1]<0?-1:1,i=((iN[0]-n)*e+n)/iN[0]||0,o=((iN[1]-r)*e+r)/iN[1]||0;t[0]*=i,t[1]*=i,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||ng(),nb(this.invTransform,t)},e.prototype.getComputedTransform=function(){for(var t=this,e=[];t;)e.push(t),t=t.parent;for(;t=e.pop();)t.updateTransform();return this.transform},e.prototype.setLocalTransform=function(t){if(t){var e=t[0]*t[0]+t[1]*t[1],n=t[2]*t[2]+t[3]*t[3],r=Math.atan2(t[1],t[0]),i=Math.PI/2+r-Math.atan2(t[3],t[2]);n=Math.sqrt(n)*Math.cos(i),e=Math.sqrt(e),this.skewX=i,this.skewY=0,this.rotation=-r,this.x=+t[4],this.y=+t[5],this.scaleX=e,this.scaleY=n,this.originX=0,this.originY=0}},e.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(t.invTransform=t.invTransform||ng(),nv(iR,t.invTransform,e),e=iR);var n=this.originX,r=this.originY;(n||r)&&(iz[4]=n,iz[5]=r,nv(iR,e,iz),iR[4]-=n,iR[5]-=r,e=iR),this.setLocalTransform(e)}},e.prototype.getGlobalScale=function(t){var e=this.transform;return t=t||[],e?(t[0]=Math.sqrt(e[0]*e[0]+e[1]*e[1]),t[1]=Math.sqrt(e[2]*e[2]+e[3]*e[3]),e[0]<0&&(t[0]=-t[0]),e[3]<0&&(t[1]=-t[1])):(t[0]=1,t[1]=1),t},e.prototype.transformCoordToLocal=function(t,e){var n=[t,e],r=this.invTransform;return r&&eK(n,n,r),n},e.prototype.transformCoordToGlobal=function(t,e){var n=[t,e],r=this.transform;return r&&eK(n,n,r),n},e.prototype.getLineScale=function(){var t=this.transform;return t&&iB(t[0]-1)>1e-10&&iB(t[3]-1)>1e-10?Math.sqrt(iB(t[0]*t[3]-t[2]*t[1])):1},e.prototype.copyTransform=function(t){iW(this,t)},e.getLocalTransform=function(t,e){e=e||[];var n=t.originX||0,r=t.originY||0,i=t.scaleX,o=t.scaleY,a=t.anchorX,s=t.anchorY,l=t.rotation||0,u=t.x,h=t.y,c=t.skewX?Math.tan(t.skewX):0,d=t.skewY?Math.tan(-t.skewY):0;if(n||r||a||s){var p=n+a,f=r+s;e[4]=-p*i-c*f*o,e[5]=-f*o-d*p*i}else e[4]=e[5]=0;return e[0]=i,e[3]=o,e[1]=d*i,e[2]=c*o,l&&nx(e,e,l),e[4]+=n+u,e[5]+=r+h,e},e.initDefaultProps=void((t=e.prototype).scaleX=t.scaleY=t.globalScaleRatio=1,t.x=t.y=t.originX=t.originY=t.skewX=t.skewY=t.rotation=t.anchorX=t.anchorY=0),e}(),iV=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function iW(t,e){for(var n=0;n<iV.length;n++){var r=iV[n];t[r]=e[r]}}function iH(t){cC||(cC=new rA(100)),t=t||t2;var e=cC.get(t);return e||(e={font:t,strWidthCache:new rA(500),asciiWidthMap:null,asciiWidthMapTried:!1,stWideCharWidth:t3.measureText("国",t).width,asciiCharWidth:t3.measureText("a",t).width},cC.put(t,e)),e}var iG=0;function ij(t,e){return t.asciiWidthMapTried||(t.asciiWidthMap=function(t){if(!(iG>=5)){t=t||t2;for(var e=[],n=+new Date,r=0;r<=127;r++)e[r]=t3.measureText(String.fromCharCode(r),t).width;var i=new Date-n;return i>16?iG=5:i>2&&iG++,e}}(t.font),t.asciiWidthMapTried=!0),0<=e&&e<=127?null!=t.asciiWidthMap?t.asciiWidthMap[e]:t.asciiCharWidth:t.stWideCharWidth}function iU(t,e){var n=t.strWidthCache,r=n.get(e);return null==r&&(r=t3.measureText(e,t.font).width,n.put(e,r)),r}function iZ(t,e,n,r){var i=iU(iH(e),t),o=iQ(e);return new nN(iY(0,i,n),iq(0,o,r),i,o)}function iX(t,e,n,r){var i=((t||"")+"").split(`
|
|
29
|
+
`);if(1===i.length)return iZ(i[0],e,n,r);for(var o=new nN(0,0,0,0),a=0;a<i.length;a++){var s=iZ(i[a],e,n,r);0===a?o.copy(s):o.union(s)}return o}function iY(t,e,n,r){return"right"===n?r?t+=e:t-=e:"center"===n&&(r?t+=e/2:t-=e/2),t}function iq(t,e,n,r){return"middle"===n?r?t+=e/2:t-=e/2:"bottom"===n&&(r?t+=e:t-=e),t}function iQ(t){return iH(t).stWideCharWidth}function iK(t,e){return"string"==typeof t?t.lastIndexOf("%")>=0?parseFloat(t)/100*e:parseFloat(t):t}function iJ(t,e,n){var r=e.position||"inside",i=null!=e.distance?e.distance:5,o=n.height,a=n.width,s=o/2,l=n.x,u=n.y,h="left",c="top";if(r instanceof Array)l+=iK(r[0],n.width),u+=iK(r[1],n.height),h=null,c=null;else switch(r){case"left":l-=i,u+=s,h="right",c="middle";break;case"right":l+=i+a,u+=s,c="middle";break;case"top":l+=a/2,u-=i,h="center",c="bottom";break;case"bottom":l+=a/2,u+=o+i,h="center";break;case"inside":l+=a/2,u+=s,h="center",c="middle";break;case"insideLeft":l+=i,u+=s,c="middle";break;case"insideRight":l+=a-i,u+=s,h="right",c="middle";break;case"insideTop":l+=a/2,u+=i,h="center";break;case"insideBottom":l+=a/2,u+=o-i,h="center",c="bottom";break;case"insideTopLeft":l+=i,u+=i;break;case"insideTopRight":l+=a-i,u+=i,h="right";break;case"insideBottomLeft":l+=i,u+=o-i,c="bottom";break;case"insideBottomRight":l+=a-i,u+=o-i,h="right",c="bottom"}return(t=t||{}).x=l,t.y=u,t.align=h,t.verticalAlign=c,t}var i0="__zr_normal__",i1=iV.concat(["ignore"]),i2=ey(iV,function(t,e){return t[e]=!0,t},{ignore:!1}),i5={},i3=new nN(0,0,0,0),i4=[],i6=function(){function t(t){this.id=ea++,this.animators=[],this.currentStates=[],this.states={},this._init(t)}return t.prototype._init=function(t){this.attr(t)},t.prototype.drift=function(t,e,n){switch(this.draggable){case"horizontal":e=0;break;case"vertical":t=0}var r=this.transform;r||(r=this.transform=[1,0,0,1,0,0]),r[4]+=t,r[5]+=e,this.decomposeTransform(),this.markRedraw()},t.prototype.beforeUpdate=function(){},t.prototype.afterUpdate=function(){},t.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},t.prototype.updateInnerText=function(t){var e=this._textContent;if(e&&(!e.ignore||t)){this.textConfig||(this.textConfig={});var n=this.textConfig,r=n.local,i=e.innerTransformable,o=void 0,a=void 0,s=!1;i.parent=r?this:null;var l=!1;i.copyTransform(e);var u=null!=n.position,h=n.autoOverflowArea,c=void 0;if((h||u)&&(c=i3,n.layoutRect?c.copy(n.layoutRect):c.copy(this.getBoundingRect()),r||c.applyTransform(this.transform)),u){this.calculateTextPosition?this.calculateTextPosition(i5,n,c):iJ(i5,n,c),i.x=i5.x,i.y=i5.y,o=i5.align,a=i5.verticalAlign;var d=n.origin;if(d&&null!=n.rotation){var p=void 0,f=void 0;"center"===d?(p=.5*c.width,f=.5*c.height):(p=iK(d[0],c.width),f=iK(d[1],c.height)),l=!0,i.originX=-i.x+p+(r?0:c.x),i.originY=-i.y+f+(r?0:c.y)}}null!=n.rotation&&(i.rotation=n.rotation);var g=n.offset;g&&(i.x+=g[0],i.y+=g[1],l||(i.originX=-g[0],i.originY=-g[1]));var m=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={});if(h){var y=m.overflowRect=m.overflowRect||new nN(0,0,0,0);i.getLocalTransform(i4),nb(i4,i4),nN.copy(y,c),y.applyTransform(i4)}else m.overflowRect=null;var v=null==n.inside?"string"==typeof n.position&&n.position.indexOf("inside")>=0:n.inside,_=void 0,x=void 0,b=void 0;v&&this.canBeInsideText()?(_=n.insideFill,x=n.insideStroke,(null==_||"auto"===_)&&(_=this.getInsideTextFill()),(null==x||"auto"===x)&&(x=this.getInsideTextStroke(_),b=!0)):(_=n.outsideFill,x=n.outsideStroke,(null==_||"auto"===_)&&(_=this.getOutsideFill()),(null==x||"auto"===x)&&(x=this.getOutsideStroke(_),b=!0)),((_=_||"#000")!==m.fill||x!==m.stroke||b!==m.autoStroke||o!==m.align||a!==m.verticalAlign)&&(s=!0,m.fill=_,m.stroke=x,m.autoStroke=b,m.align=o,m.verticalAlign=a,e.setDefaultTextStyle(m)),e.__dirty|=1,s&&e.dirtyStyle(!0)}},t.prototype.canBeInsideText=function(){return!0},t.prototype.getInsideTextFill=function(){return"#fff"},t.prototype.getInsideTextStroke=function(t){return"#000"},t.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?iO:iP},t.prototype.getOutsideStroke=function(t){var e=this.__zr&&this.__zr.getBackgroundColor(),n="string"==typeof e&&rW(e);n||(n=[255,255,255,1]);for(var r=n[3],i=this.__zr.isDarkMode(),o=0;o<3;o++)n[o]=n[o]*r+255*!i*(1-r);return n[3]=1,rU(n,"rgba")},t.prototype.traverse=function(t,e){},t.prototype.attrKV=function(t,e){"textConfig"===t?this.setTextConfig(e):"textContent"===t?this.setTextContent(e):"clipPath"===t?this.setClipPath(e):"extra"===t?(this.extra=this.extra||{},eh(this.extra,e)):this[t]=e},t.prototype.hide=function(){this.ignore=!0,this.markRedraw()},t.prototype.show=function(){this.ignore=!1,this.markRedraw()},t.prototype.attr=function(t,e){if("string"==typeof t)this.attrKV(t,e);else if(eT(t))for(var n=e_(t),r=0;r<n.length;r++){var i=n[r];this.attrKV(i,t[i])}return this.markRedraw(),this},t.prototype.saveCurrentToNormalState=function(t){this._innerSaveToNormal(t);for(var e=this._normalState,n=0;n<this.animators.length;n++){var r=this.animators[n],i=r.__fromStateTransition;if(!(r.getLoop()||i&&i!==i0)){var o=r.targetName,a=o?e[o]:e;r.saveTo(a)}}},t.prototype._innerSaveToNormal=function(t){var e=this._normalState;e||(e=this._normalState={}),t.textConfig&&!e.textConfig&&(e.textConfig=this.textConfig),this._savePrimaryToNormal(t,e,i1)},t.prototype._savePrimaryToNormal=function(t,e,n){for(var r=0;r<n.length;r++){var i=n[r];null==t[i]||i in e||(e[i]=this[i])}},t.prototype.hasState=function(){return this.currentStates.length>0},t.prototype.getState=function(t){return this.states[t]},t.prototype.ensureState=function(t){var e=this.states;return e[t]||(e[t]={}),e[t]},t.prototype.clearStates=function(t){this.useState(i0,!1,t)},t.prototype.useState=function(t,e,n,r){var i=t===i0;if(!(!this.hasState()&&i)){var o=this.currentStates,a=this.stateTransition;if(!(ed(o,t)>=0&&(e||1===o.length))){if(this.stateProxy&&!i&&(s=this.stateProxy(t)),s||(s=this.states&&this.states[t]),!s&&!i)return void es("State "+t+" not exists.");i||this.saveCurrentToNormalState(s);var s,l=!!(s&&s.hoverLayer||r);l&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,s,this._normalState,e,!n&&!this.__inHover&&a&&a.duration>0,a);var u=this._textContent,h=this._textGuide;return u&&u.useState(t,e,n,l),h&&h.useState(t,e,n,l),i?(this.currentStates=[],this._normalState={}):e?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!l&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=-2),s}}},t.prototype.useStates=function(t,e,n){if(t.length){var r=[],i=this.currentStates,o=t.length,a=o===i.length;if(a){for(var s=0;s<o;s++)if(t[s]!==i[s]){a=!1;break}}if(!a){for(var s=0;s<o;s++){var l=t[s],u=void 0;this.stateProxy&&(u=this.stateProxy(l,t)),u||(u=this.states[l]),u&&r.push(u)}var h=r[o-1],c=!!(h&&h.hoverLayer||n);c&&this._toggleHoverLayerFlag(!0);var d=this._mergeStates(r),p=this.stateTransition;this.saveCurrentToNormalState(d),this._applyStateObj(t.join(","),d,this._normalState,!1,!e&&!this.__inHover&&p&&p.duration>0,p);var f=this._textContent,g=this._textGuide;f&&f.useStates(t,e,c),g&&g.useStates(t,e,c),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!c&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=-2)}}else this.clearStates()},t.prototype.isSilent=function(){for(var t=this;t;){if(t.silent)return!0;var e=t.__hostTarget;t=e?t.ignoreHostSilent?null:e:t.parent}return!1},t.prototype._updateAnimationTargets=function(){for(var t=0;t<this.animators.length;t++){var e=this.animators[t];e.targetName&&e.changeTarget(this[e.targetName])}},t.prototype.removeState=function(t){var e=ed(this.currentStates,t);if(e>=0){var n=this.currentStates.slice();n.splice(e,1),this.useStates(n)}},t.prototype.replaceState=function(t,e,n){var r=this.currentStates.slice(),i=ed(r,t),o=ed(r,e)>=0;i>=0?o?r.splice(i,1):r[i]=e:n&&!o&&r.push(e),this.useStates(r)},t.prototype.toggleState=function(t,e){e?this.useState(t,!0):this.removeState(t)},t.prototype._mergeStates=function(t){for(var e,n={},r=0;r<t.length;r++){var i=t[r];eh(n,i),i.textConfig&&eh(e=e||{},i.textConfig)}return e&&(n.textConfig=e),n},t.prototype._applyStateObj=function(t,e,n,r,i,o){var a=!(e&&r);e&&e.textConfig?(this.textConfig=eh({},r?this.textConfig:n.textConfig),eh(this.textConfig,e.textConfig)):a&&n.textConfig&&(this.textConfig=n.textConfig);for(var s={},l=!1,u=0;u<i1.length;u++){var h=i1[u],c=i&&i2[h];e&&null!=e[h]?c?(l=!0,s[h]=e[h]):this[h]=e[h]:a&&null!=n[h]&&(c?(l=!0,s[h]=n[h]):this[h]=n[h])}if(!i)for(var u=0;u<this.animators.length;u++){var d=this.animators[u],p=d.targetName;d.getLoop()||d.__changeFinalValue(p?(e||n)[p]:e||n)}l&&this._transitionState(t,s,o)},t.prototype._attachComponent=function(t){if((!t.__zr||t.__hostTarget)&&t!==this){var e=this.__zr;e&&t.addSelfToZr(e),t.__zr=e,t.__hostTarget=this}},t.prototype._detachComponent=function(t){t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__hostTarget=null},t.prototype.getClipPath=function(){return this._clipPath},t.prototype.setClipPath=function(t){this._clipPath&&this._clipPath!==t&&this.removeClipPath(),this._attachComponent(t),this._clipPath=t,this.markRedraw()},t.prototype.removeClipPath=function(){var t=this._clipPath;t&&(this._detachComponent(t),this._clipPath=null,this.markRedraw())},t.prototype.getTextContent=function(){return this._textContent},t.prototype.setTextContent=function(t){var e=this._textContent;e!==t&&(e&&e!==t&&this.removeTextContent(),t.innerTransformable=new iF,this._attachComponent(t),this._textContent=t,this.markRedraw())},t.prototype.setTextConfig=function(t){this.textConfig||(this.textConfig={}),eh(this.textConfig,t),this.markRedraw()},t.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},t.prototype.removeTextContent=function(){var t=this._textContent;t&&(t.innerTransformable=null,this._detachComponent(t),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},t.prototype.getTextGuideLine=function(){return this._textGuide},t.prototype.setTextGuideLine=function(t){this._textGuide&&this._textGuide!==t&&this.removeTextGuideLine(),this._attachComponent(t),this._textGuide=t,this.markRedraw()},t.prototype.removeTextGuideLine=function(){var t=this._textGuide;t&&(this._detachComponent(t),this._textGuide=null,this.markRedraw())},t.prototype.markRedraw=function(){this.__dirty|=1;var t=this.__zr;t&&(this.__inHover?t.refreshHover():t.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},t.prototype.dirty=function(){this.markRedraw()},t.prototype._toggleHoverLayerFlag=function(t){this.__inHover=t;var e=this._textContent,n=this._textGuide;e&&(e.__inHover=t),n&&(n.__inHover=t)},t.prototype.addSelfToZr=function(t){if(this.__zr!==t){this.__zr=t;var e=this.animators;if(e)for(var n=0;n<e.length;n++)t.animation.addAnimator(e[n]);this._clipPath&&this._clipPath.addSelfToZr(t),this._textContent&&this._textContent.addSelfToZr(t),this._textGuide&&this._textGuide.addSelfToZr(t)}},t.prototype.removeSelfFromZr=function(t){if(this.__zr){this.__zr=null;var e=this.animators;if(e)for(var n=0;n<e.length;n++)t.animation.removeAnimator(e[n]);this._clipPath&&this._clipPath.removeSelfFromZr(t),this._textContent&&this._textContent.removeSelfFromZr(t),this._textGuide&&this._textGuide.removeSelfFromZr(t)}},t.prototype.animate=function(t,e,n){var r=new id(t?this[t]:this,e,n);return t&&(r.targetName=t),this.addAnimator(r,t),r},t.prototype.addAnimator=function(t,e){var n=this.__zr,r=this;t.during(function(){r.updateDuringAnimation(e)}).done(function(){var e=r.animators,n=ed(e,t);n>=0&&e.splice(n,1)}),this.animators.push(t),n&&n.animation.addAnimator(t),n&&n.wakeUp()},t.prototype.updateDuringAnimation=function(t){this.markRedraw()},t.prototype.stopAnimation=function(t,e){for(var n=this.animators,r=n.length,i=[],o=0;o<r;o++){var a=n[o];t&&t!==a.scope?i.push(a):a.stop(e)}return this.animators=i,this},t.prototype.animateTo=function(t,e,n){i8(this,t,e,n)},t.prototype.animateFrom=function(t,e,n){i8(this,t,e,n,!0)},t.prototype._transitionState=function(t,e,n,r){for(var i=i8(this,e,n,r),o=0;o<i.length;o++)i[o].__fromStateTransition=t},t.prototype.getBoundingRect=function(){return null},t.prototype.getPaintRect=function(){return null},t.initDefaultProps=function(){var e=t.prototype;function n(t,n,r,i){Object.defineProperty(e,t,{get:function(){return this[n]||o(this,this[n]=[]),this[n]},set:function(t){this[r]=t[0],this[i]=t[1],this[n]=t,o(this,t)}});function o(t,e){Object.defineProperty(e,0,{get:function(){return t[r]},set:function(e){t[r]=e}}),Object.defineProperty(e,1,{get:function(){return t[i]},set:function(e){t[i]=e}})}}e.type="element",e.name="",e.ignore=e.silent=e.ignoreHostSilent=e.isGroup=e.draggable=e.dragging=e.ignoreClip=e.__inHover=!1,e.__dirty=1,Object.defineProperty&&(n("position","_legacyPos","x","y"),n("scale","_legacyScale","scaleX","scaleY"),n("origin","_legacyOrigin","originX","originY"))}(),t}();function i8(t,e,n,r,i){var o=[];!function t(e,n,r,i,o,a,s,l){for(var u=e_(i),h=o.duration,c=o.delay,d=o.additive,p=o.setToFinal,f=!eT(a),g=e.animators,m=[],y=0;y<u.length;y++){var v=u[y],_=i[v];if(null!=_&&null!=r[v]&&(f||a[v]))if(!eT(_)||ef(_)||eL(_))m.push(v);else{if(n){l||(r[v]=_,e.updateDuringAnimation(n));continue}t(e,v,r[v],_,o,a&&a[v],s,l)}else l||(r[v]=_,e.updateDuringAnimation(n),m.push(v))}var x=m.length;if(!d&&x)for(var b=0;b<g.length;b++){var w=g[b];if(w.targetName===n&&w.stopTracks(m)){var S=ed(g,w);g.splice(S,1)}}if(o.force||(x=(m=ev(m,function(t){var e,n;return!((e=i[t])===(n=r[t])||ef(e)&&ef(n)&&function(t,e){var n=t.length;if(n!==e.length)return!1;for(var r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}(e,n))})).length),x>0||o.force&&!s.length){var k=void 0,M=void 0,C=void 0;if(l){M={},p&&(k={});for(var b=0;b<x;b++){var v=m[b];M[v]=r[v],p?k[v]=i[v]:r[v]=i[v]}}else if(p){C={};for(var b=0;b<x;b++){var v=m[b];C[v]=ia(r[v]),function(t,e,n){if(ef(e[n]))if(ef(t[n])||(t[n]=[]),eD(e[n])){var r=e[n].length;t[n].length!==r&&(t[n]=new e[n].constructor(r),i7(t[n],e[n],r))}else{var i=e[n],o=t[n],a=i.length;if(ef(i[0]))for(var s=i[0].length,l=0;l<a;l++)o[l]?i7(o[l],i[l],s):o[l]=Array.prototype.slice.call(i[l]);else i7(o,i,a);o.length=i.length}else t[n]=e[n]}(r,i,v)}}var w=new id(r,!1,!1,d?ev(g,function(t){return t.targetName===n}):null);w.targetName=n,o.scope&&(w.scope=o.scope),p&&k&&w.whenWithKeys(0,k,m),C&&w.whenWithKeys(0,C,m),w.whenWithKeys(h??500,l?M:i,m).delay(c||0),e.addAnimator(w,n),s.push(w)}}(t,"",t,e,n=n||{},r,o,i);var a=o.length,s=!1,l=n.done,u=n.aborted,h=function(){s=!0,--a<=0&&(s?l&&l():u&&u())},c=function(){--a<=0&&(s?l&&l():u&&u())};a||l&&l(),o.length>0&&n.during&&o[0].during(function(t,e){n.during(e)});for(var d=0;d<o.length;d++){var p=o[d];h&&p.done(h),c&&p.aborted(c),n.force&&p.duration(n.duration),p.start(n.easing)}return o}function i7(t,e,n){for(var r=0;r<n;r++)t[r]=e[r]}ep(i6,e5),ep(i6,iF);var i9=function(t){function e(e){var n=t.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(e),n}return tK(e,t),e.prototype.childrenRef=function(){return this._children},e.prototype.children=function(){return this._children.slice()},e.prototype.childAt=function(t){return this._children[t]},e.prototype.childOfName=function(t){for(var e=this._children,n=0;n<e.length;n++)if(e[n].name===t)return e[n]},e.prototype.childCount=function(){return this._children.length},e.prototype.add=function(t){return t&&t!==this&&t.parent!==this&&(this._children.push(t),this._doAdd(t)),this},e.prototype.addBefore=function(t,e){if(t&&t!==this&&t.parent!==this&&e&&e.parent===this){var n=this._children,r=n.indexOf(e);r>=0&&(n.splice(r,0,t),this._doAdd(t))}return this},e.prototype.replace=function(t,e){var n=ed(this._children,t);return n>=0&&this.replaceAt(e,n),this},e.prototype.replaceAt=function(t,e){var n=this._children,r=n[e];if(t&&t!==this&&t.parent!==this&&t!==r){n[e]=t,r.parent=null;var i=this.__zr;i&&r.removeSelfFromZr(i),this._doAdd(t)}return this},e.prototype._doAdd=function(t){t.parent&&t.parent.remove(t),t.parent=this;var e=this.__zr;e&&e!==t.__zr&&t.addSelfToZr(e),e&&e.refresh()},e.prototype.remove=function(t){var e=this.__zr,n=this._children,r=ed(n,t);return r<0||(n.splice(r,1),t.parent=null,e&&t.removeSelfFromZr(e),e&&e.refresh()),this},e.prototype.removeAll=function(){for(var t=this._children,e=this.__zr,n=0;n<t.length;n++){var r=t[n];e&&r.removeSelfFromZr(e),r.parent=null}return t.length=0,this},e.prototype.eachChild=function(t,e){for(var n=this._children,r=0;r<n.length;r++){var i=n[r];t.call(e,i,r)}return this},e.prototype.traverse=function(t,e){for(var n=0;n<this._children.length;n++){var r=this._children[n],i=t.call(e,r);r.isGroup&&!i&&r.traverse(t,e)}return this},e.prototype.addSelfToZr=function(e){t.prototype.addSelfToZr.call(this,e);for(var n=0;n<this._children.length;n++)this._children[n].addSelfToZr(e)},e.prototype.removeSelfFromZr=function(e){t.prototype.removeSelfFromZr.call(this,e);for(var n=0;n<this._children.length;n++)this._children[n].removeSelfFromZr(e)},e.prototype.getBoundingRect=function(t){for(var e=new nN(0,0,0,0),n=t||this._children,r=[],i=null,o=0;o<n.length;o++){var a=n[o];if(!(a.ignore||a.invisible)){var s=a.getBoundingRect(),l=a.getLocalTransform(r);l?(nN.applyTransform(e,s,l),(i=i||e.clone()).union(e)):(i=i||s.clone()).union(s)}}return i||e},e}(i6);i9.prototype.type="group";var ot={},oe={},on=function(){function t(t,e,n){var r=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,n=n||{},this.dom=e,this.id=t;var i=new ro,o=n.renderer||"canvas";ot[o]||(o=e_(ot)[0]),n.useDirtyRect=null!=n.useDirtyRect&&n.useDirtyRect;var a=new ot[o](e,i,n,t),s=n.ssr||a.ssrOnly;this.storage=i,this.painter=a;var l,u=t0.node||t0.worker||s?null:new iA(a.getViewportRoot(),a.root),h=n.useCoarsePointer;(null==h||"auto"===h?t0.touchEventsSupported:!!h)&&(l=n.pointerSize??44),this.handler=new nZ(i,a,u,a.root,l),this.animation=new ig({stage:{update:s?null:function(){return r._flush(!0)}}}),s||this.animation.start()}return t.prototype.add=function(t){this._disposed||!t||(this.storage.addRoot(t),t.addSelfToZr(this),this.refresh())},t.prototype.remove=function(t){this._disposed||!t||(this.storage.delRoot(t),t.removeSelfFromZr(this),this.refresh())},t.prototype.configLayer=function(t,e){this._disposed||(this.painter.configLayer&&this.painter.configLayer(t,e),this.refresh())},t.prototype.setBackgroundColor=function(t){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(t),this.refresh(),this._backgroundColor=t,this._darkMode=function(t){if(!t)return!1;if("string"==typeof t)return .4>rZ(t,1);if(t.colorStops){for(var e=t.colorStops,n=0,r=e.length,i=0;i<r;i++)n+=rZ(e[i].color,1);return(n/=r)<.4}return!1}(t))},t.prototype.getBackgroundColor=function(){return this._backgroundColor},t.prototype.setDarkMode=function(t){this._darkMode=t},t.prototype.isDarkMode=function(){return this._darkMode},t.prototype.refreshImmediately=function(t){this._disposed||(t||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1)},t.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},t.prototype.flush=function(){this._disposed||this._flush(!1)},t.prototype._flush=function(t){var e,n=ip();this._needsRefresh&&(e=!0,this.refreshImmediately(t)),this._needsRefreshHover&&(e=!0,this.refreshHoverImmediately());var r=ip();e?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:r-n})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},t.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},t.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},t.prototype.refreshHover=function(){this._needsRefreshHover=!0},t.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&"canvas"===this.painter.getType()&&this.painter.refreshHover())},t.prototype.resize=function(t){this._disposed||(t=t||{},this.painter.resize(t.width,t.height),this.handler.resize())},t.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},t.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},t.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},t.prototype.setCursorStyle=function(t){this._disposed||this.handler.setCursorStyle(t)},t.prototype.findHover=function(t,e){if(!this._disposed)return this.handler.findHover(t,e)},t.prototype.on=function(t,e,n){return this._disposed||this.handler.on(t,e,n),this},t.prototype.off=function(t,e){this._disposed||this.handler.off(t,e)},t.prototype.trigger=function(t,e){this._disposed||this.handler.trigger(t,e)},t.prototype.clear=function(){if(!this._disposed){for(var t=this.storage.getRoots(),e=0;e<t.length;e++)t[e]instanceof i9&&t[e].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},t.prototype.dispose=function(){var t;this._disposed||(this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,this._disposed=!0,t=this.id,delete oe[t])},t}();function or(t,e){var n=new on(ea++,t,e);return oe[n.id]=n,n}var oi=Math.min,oo=Math.max,oa=Math.abs;function os(t,e,n,r){var i=e[0],o=e[1],a=n[0],s=n[1],l=o-i,u=s-a;if(0===l)return 0===u?a:(a+s)/2;if(r)if(l>0){if(t<=i)return a;if(t>=o)return s}else{if(t>=i)return a;if(t<=o)return s}else{if(t===i)return a;if(t===o)return s}return(t-i)/l*u+a}var ol=function(t,e,n){switch(t){case"center":case"middle":t="50%";break;case"left":case"top":t="0%";break;case"right":case"bottom":t="100%"}return ou(t,e,n)};function ou(t,e,n){return ek(t)?t.replace(/^\s+|\s+$/g,"").match(/%$/)?parseFloat(t)/100*e+(n||0):parseFloat(t):null==t?NaN:+t}function oh(t,e,n){return null==e&&(e=10),e=Math.min(Math.max(0,e),20),t=(+t).toFixed(e),n?t:+t}function oc(t){if(isNaN(t*=1))return 0;if(t>1e-14){for(var e,n,r,i,o,a=1,s=0;s<15;s++,a*=10)if(Math.round(t*a)/a===t)return s}return r=(n=(e=t.toString().toLowerCase()).indexOf("e"))>0?+e.slice(n+1):0,i=n>0?n:e.length,Math.max(0,((o=e.indexOf("."))<0?0:i-1-o)-r)}function od(t){var e=2*Math.PI;return(t%e+e)%e}function op(t){return t>-1e-4&&t<1e-4}var of=/^(?:(\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 og(t){if(t instanceof Date)return t;if(ek(t)){var e=of.exec(t);if(!e)return new Date(NaN);if(!e[8])return new Date(+e[1],(e[2]||1)-1,+e[3]||1,+e[4]||0,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0);var n=+e[4]||0;return"Z"!==e[8].toUpperCase()&&(n-=e[8].slice(0,3)),new Date(Date.UTC(+e[1],(e[2]||1)-1,+e[3]||1,n,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0))}return new Date(null==t?NaN:Math.round(t))}function om(t){if(0===t)return 0;var e=Math.floor(Math.log(t)/Math.LN10);return t/Math.pow(10,e)>=10&&e++,e}function oy(t,e){var n=om(t),r=Math.pow(10,n),i=t/r;return t=(i<1.5?1:i<2.5?2:i<4?3:i<7?5:10)*r,n>=-20?+t.toFixed(n<0?-n:0):t}function ov(t){var e=parseFloat(t);return e==t&&(0!==e||!ek(t)||0>=t.indexOf("x"))?e:NaN}function o_(){return Math.round(9*Math.random())}function ox(t,e){return null==t?e:null==e?t:t*e/function t(e,n){return 0===n?e:t(n,e%n)}(t,e)}var ob={},ow="u">typeof console&&console.warn&&console.log;function oS(t,e){!function(t,e,n){if(ow){if(n){if(ob[e])return;ob[e]=!0}console[t]("[ECharts] "+e)}}("error",t,e)}function ok(t){throw Error(t)}var oM="series\0";function oC(t){return t instanceof Array?t:null==t?[]:[t]}function oT(t,e,n){if(t){t[e]=t[e]||{},t.emphasis=t.emphasis||{},t.emphasis[e]=t.emphasis[e]||{};for(var r=0,i=n.length;r<i;r++){var o=n[r];!t.emphasis[e].hasOwnProperty(o)&&t[e].hasOwnProperty(o)&&(t.emphasis[e][o]=t[e][o])}}}var oI=["fontStyle","fontWeight","fontSize","fontFamily","rich","tag","color","textBorderColor","textBorderWidth","width","height","lineHeight","align","verticalAlign","baseline","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY","backgroundColor","borderColor","borderWidth","borderRadius","padding"];function oD(t){return!eT(t)||ew(t)||t instanceof Date?t:t.value}function oA(t,e,n){var r=o$(e[t],null),i=o$(n[t],null);return null!=r&&null!=i&&r===i}function oL(t){return o$(t,"")}function o$(t,e){return null==t?e:ek(t)?t:eC(t)||eM(t)?t+"":e}function oP(t){var e=t.name;return!!(e&&e.indexOf(oM))}function oO(t){return t&&null!=t.id&&0===oL(t.id).indexOf("\0_ec_\0")}function oE(t,e){return null!=e.dataIndexInside?e.dataIndexInside:null!=e.dataIndex?ew(e.dataIndex)?em(e.dataIndex,function(e){return t.indexOfRawIndex(e)}):t.indexOfRawIndex(e.dataIndex):null!=e.name?ew(e.name)?em(e.name,function(e){return t.indexOfName(e)}):t.indexOfName(e.name):void 0}function oN(){var t="__ec_inner_"+oR++;return function(e){return e[t]||(e[t]={})}}var oR=o_();function oz(t,e,n){var r=oB(e,n),i=r.mainTypeSpecified,o=r.queryOptionMap,a=r.others,s=n?n.defaultMainType:null;return!i&&s&&o.set(s,{}),o.each(function(e,r){var i=oV(t,r,e,{useDefault:s===r,enableAll:!n||null==n.enableAll||n.enableAll,enableNone:!n||null==n.enableNone||n.enableNone});a[r+"Models"]=i.models,a[r+"Model"]=i.models[0]}),a}function oB(t,e){if(ek(t)){var n,r={};r[t+"Index"]=0,n=r}else n=t;var i=eV(),o={},a=!1;return eg(n,function(t,n){if("dataIndex"===n||"dataIndexInside"===n){o[n]=t;return}var r=n.match(/^(\w+)(Index|Id|Name)$/)||[],s=r[1],l=(r[2]||"").toLowerCase();!s||!l||e&&e.includeMainTypes&&0>ed(e.includeMainTypes,s)||(a=a||!!s,(i.get(s)||i.set(s,{}))[l]=t)}),{mainTypeSpecified:a,queryOptionMap:i,others:o}}var oF={useDefault:!0,enableAll:!1,enableNone:!1};function oV(t,e,n,r){r=r||oF;var i=n.index,o=n.id,a=n.name,s={models:null,specified:null!=i||null!=o||null!=a};if(!s.specified){var l=void 0;return s.models=r.useDefault&&(l=t.getComponent(e))?[l]:[],s}if("none"===i||!1===i){if(r.enableNone)return s.models=[],s;i=-1}return"all"===i&&(i=r.enableAll?o=a=null:-1),s.models=t.queryComponents({mainType:e,index:i,id:o,name:a}),s}function oW(t,e,n){t.setAttribute?t.setAttribute(e,n):t[e]=n}var oH="___EC__COMPONENT__CONTAINER___",oG="___EC__EXTENDED_CLASS___";function oj(t){var e={main:"",sub:""};if(t){var n=t.split(".");e.main=n[0]||"",e.sub=n[1]||""}return e}function oU(t,e){t.$constructor=t,t.extend=function(t){var e,n,r=this;return eS(e=r)&&/^class\s/.test(Function.prototype.toString.call(e))?n=function(t){function e(){return t.apply(this,arguments)||this}return tK(e,t),e}(r):function(t,e){var n=t.prototype;function r(){}for(var i in r.prototype=e.prototype,t.prototype=new r,n)n.hasOwnProperty(i)&&(t.prototype[i]=n[i]);t.prototype.constructor=t,t.superClass=e}(n=function(){(t.$constructor||r).apply(this,arguments)},this),eh(n.prototype,t),n[oG]=!0,n.extend=this.extend,n.superCall=oY,n.superApply=oq,n.superClass=r,n}}function oZ(t,e){t.extend=e.extend}var oX=Math.round(10*Math.random());function oY(t,e){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return this.superClass.prototype[e].apply(t,n)}function oq(t,e,n){return this.superClass.prototype[e].apply(t,n)}function oQ(t){var e={};t.registerClass=function(t){var n=t.type||t.prototype.type;if(n){eE(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(n),'componentType "'+n+'" illegal'),t.prototype.type=n;var r,i,o=oj(n);o.sub?o.sub!==oH&&(((i=e[(r=o).main])&&i[oH]||((i=e[r.main]={})[oH]=!0),i)[o.sub]=t):e[o.main]=t}return t},t.getClass=function(t,n,r){var i=e[t];if(i&&i[oH]&&(i=n?i[n]:null),r&&!i)throw Error(n?"Component "+t+"."+(n||"")+" is used but not imported.":t+".type should be specified.");return i},t.getClassesByMainType=function(t){var n=oj(t),r=[],i=e[n.main];return i&&i[oH]?eg(i,function(t,e){e!==oH&&r.push(t)}):r.push(i),r},t.hasClass=function(t){return!!e[oj(t).main]},t.getAllClassMainTypes=function(){var t=[];return eg(e,function(e,n){t.push(n)}),t},t.hasSubTypes=function(t){var n=e[oj(t).main];return n&&n[oH]}}function oK(t,e){for(var n=0;n<t.length;n++)t[n][1]||(t[n][1]=t[n][0]);return e=e||!1,function(n,r,i){for(var o={},a=0;a<t.length;a++){var s=t[a][1];if(!(r&&ed(r,s)>=0||i&&0>ed(i,s))){var l=n.getShallow(s,e);null!=l&&(o[t[a][0]]=l)}}return o}}var oJ=oK([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]]),o0=function(){function t(){}return t.prototype.getAreaStyle=function(t,e){return oJ(this,t,e)},t}(),o1=new rA(50);function o2(t,e,n,r,i){if(!t)return e;if("string"!=typeof t)return t;if(e&&e.__zrImageSrc===t||!n)return e;var o=o1.get(t),a={hostEl:n,cb:r,cbPayload:i};return o?o3(e=o.image)||o.pending.push(a):((e=t3.loadImage(t,o5,o5)).__zrImageSrc=t,o1.put(t,e.__cachedImgObj={image:e,pending:[a]})),e}function o5(){var t=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e<t.pending.length;e++){var n=t.pending[e],r=n.cb;r&&r(this,n.cbPayload),n.hostEl.dirty()}t.pending.length=0}function o3(t){return t&&t.width&&t.height}var o4=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function o6(t,e,n,r){var i=eh({},r=r||{});n=n??"...",i.maxIterations=r.maxIterations??2;var o=i.minChar=r.minChar??0,a=i.fontMeasureInfo=iH(e),s=a.asciiCharWidth;i.placeholder=r.placeholder??"";for(var l=t=Math.max(0,t-1),u=0;u<o&&l>=s;u++)l-=s;var h=iU(a,n);return h>l&&(n="",h=0),l=t-h,i.ellipsis=n,i.ellipsisWidth=h,i.contentWidth=l,i.containerWidth=t,i}function o8(t,e,n){var r=n.containerWidth,i=n.contentWidth,o=n.fontMeasureInfo;if(!r){t.textLine="",t.isTruncated=!1;return}var a=iU(o,e);if(a<=r){t.textLine=e,t.isTruncated=!1;return}for(var s=0;;s++){if(a<=i||s>=n.maxIterations){e+=n.ellipsis;break}var l=0===s?function(t,e,n){for(var r=0,i=0,o=t.length;i<o&&r<e;i++)r+=ij(n,t.charCodeAt(i));return i}(e,i,o):a>0?Math.floor(e.length*i/a):0;a=iU(o,e=e.substr(0,l))}""===e&&(e=n.placeholder),t.textLine=e,t.isTruncated=!0}var o7=function(){},o9=function(t){this.tokens=[],t&&(this.tokens=t)},at=function(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[],this.isTruncated=!1};function ae(t,e,n,r,i){var o,a,s=""===e,l=i&&n.rich[i]||{},u=t.lines,h=l.font||n.font,c=!1;if(r){var d=l.padding,p=d?d[1]+d[3]:0;if(null!=l.width&&"auto"!==l.width){var f=iK(l.width,r.width)+p;u.length>0&&f+r.accumWidth>r.width&&(o=e.split(`
|
|
30
|
+
`),c=!0),r.accumWidth=f}else{var g=ar(e,h,r.width,r.breakAll,r.accumWidth);r.accumWidth=g.accumWidth+p,a=g.linesWidths,o=g.lines}}o||(o=e.split(`
|
|
31
|
+
`));for(var m=iH(h),y=0;y<o.length;y++){var v=o[y],_=new o7;if(_.styleName=i,_.text=v,_.isLineHolder=!v&&!s,"number"==typeof l.width?_.width=l.width:_.width=a?a[y]:iU(m,v),y||c)u.push(new o9([_]));else{var x=(u[u.length-1]||(u[0]=new o9)).tokens,b=x.length;1===b&&x[0].isLineHolder?x[0]=_:(v||!b||s)&&x.push(_)}}}var an=ey(",&?/;] ".split(""),function(t,e){return t[e]=!0,t},{});function ar(t,e,n,r,i){for(var o=[],a=[],s="",l="",u=0,h=0,c=iH(e),d=0;d<t.length;d++){var p=t.charAt(d);if(p===`
|
|
32
|
+
`){l&&(s+=l,h+=u),o.push(s),a.push(h),s="",l="",u=0,h=0;continue}var f=ij(c,p.charCodeAt(0)),g=!r&&!function(t){var e;return!((e=t.charCodeAt(0))>=32&&e<=591||e>=880&&e<=4351||e>=4608&&e<=5119||e>=7680&&e<=8303)||!!an[t]}(p);if(o.length?h+f>n:i+h+f>n){h?(s||l)&&(g?(s||(s=l,l="",h=u=0),o.push(s),a.push(h-u),l+=p,u+=f,s="",h=u):(l&&(s+=l,l="",u=0),o.push(s),a.push(h),s=p,h=f)):g?(o.push(l),a.push(u),l=p,u=f):(o.push(p),a.push(f));continue}h+=f,g?(l+=p,u+=f):(l&&(s+=l,l="",u=0),s+=p)}return l&&(s+=l),s&&(o.push(s),a.push(h)),1===o.length&&(h+=i),{accumWidth:h,lines:o,linesWidths:a}}function ai(t,e,n,r,i,o){if(t.baseX=n,t.baseY=r,t.outerWidth=t.outerHeight=null,e){var a=2*e.width,s=2*e.height;nN.set(ao,iY(n,a,i),iq(r,s,o),a,s),nN.intersect(e,ao,null,aa);var l=aa.outIntersectRect;t.outerWidth=l.width,t.outerHeight=l.height,t.baseX=iY(l.x,l.width,i,!0),t.baseY=iq(l.y,l.height,o,!0)}}var ao=new nN(0,0,0,0),aa={outIntersectRect:{},clamp:!0};function as(t){return null!=t?t+="":t=""}function al(t,e,n,r){var i=new nN(iY(t.x||0,e,t.textAlign),iq(t.y||0,n,t.textBaseline),e,n),o=r??(au(t)?t.lineWidth:0);return o>0&&(i.x-=o/2,i.y-=o/2,i.width+=o,i.height+=o),i}function au(t){var e=t.stroke;return null!=e&&"none"!==e&&t.lineWidth>0}var ah="__zr_style_"+Math.round(10*Math.random()),ac={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},ad={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};ac[ah]=!0;var ap=["z","z2","invisible"],af=["invisible"],ag=function(t){var e;function n(e){return t.call(this,e)||this}return tK(n,t),n.prototype._init=function(e){for(var n=e_(e),r=0;r<n.length;r++){var i=n[r];"style"===i?this.useStyle(e[i]):t.prototype.attrKV.call(this,i,e[i])}this.style||this.useStyle({})},n.prototype.beforeBrush=function(){},n.prototype.afterBrush=function(){},n.prototype.innerBeforeBrush=function(){},n.prototype.innerAfterBrush=function(){},n.prototype.shouldBePainted=function(t,e,n,r){var i,o,a,s=this.transform;if(this.ignore||this.invisible||0===this.style.opacity||this.culling&&(i=this,o=t,a=e,am.copy(i.getBoundingRect()),i.transform&&am.applyTransform(i.transform),ay.width=o,ay.height=a,!am.intersect(ay))||s&&!s[0]&&!s[3])return!1;if(n&&this.__clipPaths&&this.__clipPaths.length){for(var l=0;l<this.__clipPaths.length;++l)if(this.__clipPaths[l].isZeroArea())return!1}if(r&&this.parent)for(var u=this.parent;u;){if(u.ignore)return!1;u=u.parent}return!0},n.prototype.contain=function(t,e){return this.rectContain(t,e)},n.prototype.traverse=function(t,e){t.call(e,this)},n.prototype.rectContain=function(t,e){var n=this.transformCoordToLocal(t,e);return this.getBoundingRect().contain(n[0],n[1])},n.prototype.getPaintRect=function(){var t=this._paintRect;if(!this._paintRect||this.__dirty){var e=this.transform,n=this.getBoundingRect(),r=this.style,i=r.shadowBlur||0,o=r.shadowOffsetX||0,a=r.shadowOffsetY||0;t=this._paintRect||(this._paintRect=new nN(0,0,0,0)),e?nN.applyTransform(t,n,e):t.copy(n),(i||o||a)&&(t.width+=2*i+Math.abs(o),t.height+=2*i+Math.abs(a),t.x=Math.min(t.x,t.x+o-i),t.y=Math.min(t.y,t.y+a-i));var s=this.dirtyRectTolerance;t.isZero()||(t.x=Math.floor(t.x-s),t.y=Math.floor(t.y-s),t.width=Math.ceil(t.width+1+2*s),t.height=Math.ceil(t.height+1+2*s))}return t},n.prototype.setPrevPaintRect=function(t){t?(this._prevPaintRect=this._prevPaintRect||new nN(0,0,0,0),this._prevPaintRect.copy(t)):this._prevPaintRect=null},n.prototype.getPrevPaintRect=function(){return this._prevPaintRect},n.prototype.animateStyle=function(t){return this.animate("style",t)},n.prototype.updateDuringAnimation=function(t){"style"===t?this.dirtyStyle():this.markRedraw()},n.prototype.attrKV=function(e,n){"style"!==e?t.prototype.attrKV.call(this,e,n):this.style?this.setStyle(n):this.useStyle(n)},n.prototype.setStyle=function(t,e){return"string"==typeof t?this.style[t]=e:eh(this.style,t),this.dirtyStyle(),this},n.prototype.dirtyStyle=function(t){t||this.markRedraw(),this.__dirty|=2,this._rect&&(this._rect=null)},n.prototype.dirty=function(){this.dirtyStyle()},n.prototype.styleChanged=function(){return!!(2&this.__dirty)},n.prototype.styleUpdated=function(){this.__dirty&=-3},n.prototype.createStyle=function(t){return eW(ac,t)},n.prototype.useStyle=function(t){t[ah]||(t=this.createStyle(t)),this.__inHover?this.__hoverStyle=t:this.style=t,this.dirtyStyle()},n.prototype.isStyleObject=function(t){return t[ah]},n.prototype._innerSaveToNormal=function(e){t.prototype._innerSaveToNormal.call(this,e);var n=this._normalState;e.style&&!n.style&&(n.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(e,n,ap)},n.prototype._applyStateObj=function(e,n,r,i,o,a){t.prototype._applyStateObj.call(this,e,n,r,i,o,a);var s,l=!(n&&i);if(n&&n.style?o?i?s=n.style:(s=this._mergeStyle(this.createStyle(),r.style),this._mergeStyle(s,n.style)):(s=this._mergeStyle(this.createStyle(),i?this.style:r.style),this._mergeStyle(s,n.style)):l&&(s=r.style),s)if(o){var u=this.style;if(this.style=this.createStyle(l?{}:u),l)for(var h=e_(u),c=0;c<h.length;c++){var d=h[c];d in s&&(s[d]=s[d],this.style[d]=u[d])}for(var p=e_(s),c=0;c<p.length;c++){var d=p[c];this.style[d]=this.style[d]}this._transitionState(e,{style:s},a,this.getAnimationStyleProps())}else this.useStyle(s);for(var f=this.__inHover?af:ap,c=0;c<f.length;c++){var d=f[c];n&&null!=n[d]?this[d]=n[d]:l&&null!=r[d]&&(this[d]=r[d])}},n.prototype._mergeStates=function(e){for(var n,r=t.prototype._mergeStates.call(this,e),i=0;i<e.length;i++){var o=e[i];o.style&&(n=n||{},this._mergeStyle(n,o.style))}return n&&(r.style=n),r},n.prototype._mergeStyle=function(t,e){return eh(t,e),t},n.prototype.getAnimationStyleProps=function(){return ad},n.initDefaultProps=void((e=n.prototype).type="displayable",e.invisible=!1,e.z=0,e.z2=0,e.zlevel=0,e.culling=!1,e.cursor="pointer",e.rectHover=!1,e.incremental=!1,e._rect=null,e.dirtyRectTolerance=0,e.__dirty=3),n}(i6),am=new nN(0,0,0,0),ay=new nN(0,0,0,0),av=Math.min,a_=Math.max,ax=Math.sin,ab=Math.cos,aw=2*Math.PI,aS=eU(),ak=eU(),aM=eU();function aC(t,e,n,r,i,o){i[0]=av(t,n),i[1]=av(e,r),o[0]=a_(t,n),o[1]=a_(e,r)}var aT=[],aI=[],aD={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},aA=[],aL=[],a$=[],aP=[],aO=[],aE=[],aN=Math.min,aR=Math.max,az=Math.cos,aB=Math.sin,aF=Math.abs,aV=Math.PI,aW=2*aV,aH="u">typeof Float32Array,aG=[];function aj(t){return Math.round(t/aV*1e8)/1e8%2*aV}function aU(t,e){var n=aj(t[0]);n<0&&(n+=aW);var r=n-t[0],i=t[1];i+=r,!e&&i-n>=aW?i=n+aW:e&&n-i>=aW?i=n-aW:!e&&n>i?i=n+(aW-aj(n-i)):e&&n<i&&(i=n-(aW-aj(i-n))),t[0]=n,t[1]=i}var aZ=function(){var t;function e(t){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,t&&(this._saveData=!1),this._saveData&&(this.data=[])}return e.prototype.increaseVersion=function(){this._version++},e.prototype.getVersion=function(){return this._version},e.prototype.setScale=function(t,e,n){(n=n||0)>0&&(this._ux=aF(n/i$/t)||0,this._uy=aF(n/i$/e)||0)},e.prototype.setDPR=function(t){this.dpr=t},e.prototype.setContext=function(t){this._ctx=t},e.prototype.getContext=function(){return this._ctx},e.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},e.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},e.prototype.moveTo=function(t,e){return this._drawPendingPt(),this.addData(aD.M,t,e),this._ctx&&this._ctx.moveTo(t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},e.prototype.lineTo=function(t,e){var n=aF(t-this._xi),r=aF(e-this._yi),i=n>this._ux||r>this._uy;if(this.addData(aD.L,t,e),this._ctx&&i&&this._ctx.lineTo(t,e),i)this._xi=t,this._yi=e,this._pendingPtDist=0;else{var o=n*n+r*r;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=e,this._pendingPtDist=o)}return this},e.prototype.bezierCurveTo=function(t,e,n,r,i,o){return this._drawPendingPt(),this.addData(aD.C,t,e,n,r,i,o),this._ctx&&this._ctx.bezierCurveTo(t,e,n,r,i,o),this._xi=i,this._yi=o,this},e.prototype.quadraticCurveTo=function(t,e,n,r){return this._drawPendingPt(),this.addData(aD.Q,t,e,n,r),this._ctx&&this._ctx.quadraticCurveTo(t,e,n,r),this._xi=n,this._yi=r,this},e.prototype.arc=function(t,e,n,r,i,o){this._drawPendingPt(),aG[0]=r,aG[1]=i,aU(aG,o),r=aG[0];var a=(i=aG[1])-r;return this.addData(aD.A,t,e,n,n,r,a,0,+!o),this._ctx&&this._ctx.arc(t,e,n,r,i,o),this._xi=az(i)*n+t,this._yi=aB(i)*n+e,this},e.prototype.arcTo=function(t,e,n,r,i){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,e,n,r,i),this},e.prototype.rect=function(t,e,n,r){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,e,n,r),this.addData(aD.R,t,e,n,r),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(aD.Z);var t=this._ctx,e=this._x0,n=this._y0;return t&&t.closePath(),this._xi=e,this._yi=n,this},e.prototype.fill=function(t){t&&t.fill(),this.toStatic()},e.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},e.prototype.len=function(){return this._len},e.prototype.setData=function(t){if(this._saveData){var e=t.length;!(this.data&&this.data.length===e)&&aH&&(this.data=new Float32Array(e));for(var n=0;n<e;n++)this.data[n]=t[n];this._len=e}},e.prototype.appendPath=function(t){if(this._saveData){t instanceof Array||(t=[t]);for(var e=t.length,n=0,r=this._len,i=0;i<e;i++)n+=t[i].len();var o=this.data;if(aH&&(o instanceof Float32Array||!o)&&(this.data=new Float32Array(r+n),r>0&&o))for(var a=0;a<r;a++)this.data[a]=o[a];for(var i=0;i<e;i++)for(var s=t[i].data,a=0;a<s.length;a++)this.data[r++]=s[a];this._len=r}},e.prototype.addData=function(t,e,n,r,i,o,a,s,l){if(this._saveData){var u=this.data;this._len+arguments.length>u.length&&(this._expandData(),u=this.data);for(var h=0;h<arguments.length;h++)u[this._len++]=arguments[h]}},e.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},e.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],e=0;e<this._len;e++)t[e]=this.data[e];this.data=t}},e.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var t=this.data;t instanceof Array&&(t.length=this._len,aH&&this._len>11&&(this.data=new Float32Array(t)))}},e.prototype.getBoundingRect=function(){a$[0]=a$[1]=aO[0]=aO[1]=Number.MAX_VALUE,aP[0]=aP[1]=aE[0]=aE[1]=-Number.MAX_VALUE;var t,e=this.data,n=0,r=0,i=0,o=0;for(t=0;t<this._len;){var a=e[t++],s=1===t;switch(s&&(n=e[t],r=e[t+1],i=n,o=r),a){case aD.M:n=i=e[t++],r=o=e[t++],aO[0]=i,aO[1]=o,aE[0]=i,aE[1]=o;break;case aD.L:aC(n,r,e[t],e[t+1],aO,aE),n=e[t++],r=e[t++];break;case aD.C:(function(t,e,n,r,i,o,a,s,l,u){var h=r_(t,n,i,a,aT);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var c=0;c<h;c++){var d=rm(t,n,i,a,aT[c]);l[0]=av(d,l[0]),u[0]=a_(d,u[0])}h=r_(e,r,o,s,aI);for(var c=0;c<h;c++){var p=rm(e,r,o,s,aI[c]);l[1]=av(p,l[1]),u[1]=a_(p,u[1])}l[0]=av(t,l[0]),u[0]=a_(t,u[0]),l[0]=av(a,l[0]),u[0]=a_(a,u[0]),l[1]=av(e,l[1]),u[1]=a_(e,u[1]),l[1]=av(s,l[1]),u[1]=a_(s,u[1])})(n,r,e[t++],e[t++],e[t++],e[t++],e[t],e[t+1],aO,aE),n=e[t++],r=e[t++];break;case aD.Q:(function(t,e,n,r,i,o,a,s){var l=a_(av(rS(t,n,i),1),0),u=a_(av(rS(e,r,o),1),0),h=rb(t,n,i,l),c=rb(e,r,o,u);a[0]=av(t,i,h),a[1]=av(e,o,c),s[0]=a_(t,i,h),s[1]=a_(e,o,c)})(n,r,e[t++],e[t++],e[t],e[t+1],aO,aE),n=e[t++],r=e[t++];break;case aD.A:var l=e[t++],u=e[t++],h=e[t++],c=e[t++],d=e[t++],p=e[t++]+d;t+=1;var f=!e[t++];s&&(i=az(d)*h+l,o=aB(d)*c+u),function(t,e,n,r,i,o,a,s,l){var u=Math.abs(i-o);if(u%aw<1e-4&&u>1e-4){s[0]=t-n,s[1]=e-r,l[0]=t+n,l[1]=e+r;return}if(aS[0]=ab(i)*n+t,aS[1]=ax(i)*r+e,ak[0]=ab(o)*n+t,ak[1]=ax(o)*r+e,eJ(s,aS,ak),e0(l,aS,ak),(i%=aw)<0&&(i+=aw),(o%=aw)<0&&(o+=aw),i>o&&!a?o+=aw:i<o&&a&&(i+=aw),a){var h=o;o=i,i=h}for(var c=0;c<o;c+=Math.PI/2)c>i&&(aM[0]=ab(c)*n+t,aM[1]=ax(c)*r+e,eJ(s,aM,s),e0(l,aM,l))}(l,u,h,c,d,p,f,aO,aE),n=az(p)*h+l,r=aB(p)*c+u;break;case aD.R:aC(i=n=e[t++],o=r=e[t++],i+e[t++],o+e[t++],aO,aE);break;case aD.Z:n=i,r=o}eJ(a$,a$,aO),e0(aP,aP,aE)}return 0===t&&(a$[0]=a$[1]=aP[0]=aP[1]=0),new nN(a$[0],a$[1],aP[0]-a$[0],aP[1]-a$[1])},e.prototype._calculateLength=function(){var t=this.data,e=this._len,n=this._ux,r=this._uy,i=0,o=0,a=0,s=0;this._pathSegLen||(this._pathSegLen=[]);for(var l=this._pathSegLen,u=0,h=0,c=0;c<e;){var d=t[c++],p=1===c;p&&(i=t[c],o=t[c+1],a=i,s=o);var f=-1;switch(d){case aD.M:i=a=t[c++],o=s=t[c++];break;case aD.L:var g=t[c++],m=t[c++],y=g-i,v=m-o;(aF(y)>n||aF(v)>r||c===e-1)&&(f=Math.sqrt(y*y+v*v),i=g,o=m);break;case aD.C:var _=t[c++],x=t[c++],g=t[c++],m=t[c++],b=t[c++],w=t[c++];f=function(t,e,n,r,i,o,a,s){for(var l=t,u=e,h=0,c=1;c<=10;c++){var d=.1*c,p=rm(t,n,i,a,d),f=rm(e,r,o,s,d),g=p-l,m=f-u;h+=Math.sqrt(g*g+m*m),l=p,u=f}return h}(i,o,_,x,g,m,b,w),i=b,o=w;break;case aD.Q:var _=t[c++],x=t[c++],g=t[c++],m=t[c++];f=function(t,e,n,r,i,o){for(var a=t,s=e,l=0,u=1;u<=10;u++){var h=.1*u,c=rb(t,n,i,h),d=rb(e,r,o,h),p=c-a,f=d-s;l+=Math.sqrt(p*p+f*f),a=c,s=d}return l}(i,o,_,x,g,m),i=g,o=m;break;case aD.A:var S=t[c++],k=t[c++],M=t[c++],C=t[c++],T=t[c++],I=t[c++],D=I+T;c+=1,p&&(a=az(T)*M+S,s=aB(T)*C+k),f=aR(M,C)*aN(aW,Math.abs(I)),i=az(D)*M+S,o=aB(D)*C+k;break;case aD.R:a=i=t[c++],s=o=t[c++],f=2*t[c++]+2*t[c++];break;case aD.Z:var y=a-i,v=s-o;f=Math.sqrt(y*y+v*v),i=a,o=s}f>=0&&(l[h++]=f,u+=f)}return this._pathLen=u,u},e.prototype.rebuildPath=function(t,e){var n,r,i,o,a,s,l,u,h,c,d=this.data,p=this._ux,f=this._uy,g=this._len,m=e<1,y=0,v=0,_=0;if(!(m&&(this._pathSegLen||this._calculateLength(),l=this._pathSegLen,!(u=e*this._pathLen))))t:for(var x=0;x<g;){var b=d[x++],w=1===x;switch(w&&(i=d[x],o=d[x+1],n=i,r=o),b!==aD.L&&_>0&&(t.lineTo(h,c),_=0),b){case aD.M:n=i=d[x++],r=o=d[x++],t.moveTo(i,o);break;case aD.L:a=d[x++],s=d[x++];var S=aF(a-i),k=aF(s-o);if(S>p||k>f){if(m){var M=l[v++];if(y+M>u){var C=(u-y)/M;t.lineTo(i*(1-C)+a*C,o*(1-C)+s*C);break t}y+=M}t.lineTo(a,s),i=a,o=s,_=0}else{var T=S*S+k*k;T>_&&(h=a,c=s,_=T)}break;case aD.C:var I=d[x++],D=d[x++],A=d[x++],L=d[x++],$=d[x++],P=d[x++];if(m){var M=l[v++];if(y+M>u){var C=(u-y)/M;rx(i,I,A,$,C,aA),rx(o,D,L,P,C,aL),t.bezierCurveTo(aA[1],aL[1],aA[2],aL[2],aA[3],aL[3]);break t}y+=M}t.bezierCurveTo(I,D,A,L,$,P),i=$,o=P;break;case aD.Q:var I=d[x++],D=d[x++],A=d[x++],L=d[x++];if(m){var M=l[v++];if(y+M>u){var C=(u-y)/M;rk(i,I,A,C,aA),rk(o,D,L,C,aL),t.quadraticCurveTo(aA[1],aL[1],aA[2],aL[2]);break t}y+=M}t.quadraticCurveTo(I,D,A,L),i=A,o=L;break;case aD.A:var O=d[x++],E=d[x++],N=d[x++],R=d[x++],z=d[x++],B=d[x++],F=d[x++],V=!d[x++],W=N>R?N:R,H=aF(N-R)>.001,G=z+B,j=!1;if(m){var M=l[v++];y+M>u&&(G=z+B*(u-y)/M,j=!0),y+=M}if(H&&t.ellipse?t.ellipse(O,E,N,R,F,z,G,V):t.arc(O,E,W,z,G,V),j)break t;w&&(n=az(z)*N+O,r=aB(z)*R+E),i=az(G)*N+O,o=aB(G)*R+E;break;case aD.R:n=i=d[x],r=o=d[x+1],a=d[x++],s=d[x++];var U=d[x++],Z=d[x++];if(m){var M=l[v++];if(y+M>u){var X=u-y;t.moveTo(a,s),t.lineTo(a+aN(X,U),s),(X-=U)>0&&t.lineTo(a+U,s+aN(X,Z)),(X-=Z)>0&&t.lineTo(a+aR(U-X,0),s+Z),(X-=U)>0&&t.lineTo(a,s+aR(Z-X,0));break t}y+=M}t.rect(a,s,U,Z);break;case aD.Z:if(m){var M=l[v++];if(y+M>u){var C=(u-y)/M;t.lineTo(i*(1-C)+n*C,o*(1-C)+r*C);break t}y+=M}t.closePath(),i=n,o=r}}},e.prototype.clone=function(){var t=new e,n=this.data;return t.data=n.slice?n.slice():Array.prototype.slice.call(n),t._len=this._len,t},e.prototype.canSave=function(){return!!this._saveData},e.CMD=aD,e.initDefaultProps=void((t=e.prototype)._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0),e}();function aX(t,e,n,r,i,o,a){if(0===i)return!1;var s=0,l=t;if(a>e+i&&a>r+i||a<e-i&&a<r-i||o>t+i&&o>n+i||o<t-i&&o<n-i)return!1;if(t===n)return Math.abs(o-t)<=i/2;s=(e-r)/(t-n);var u=s*o-a+(l=(t*r-n*e)/(t-n));return u*u/(s*s+1)<=i/2*i/2}var aY=2*Math.PI;function aq(t){return(t%=aY)<0&&(t+=aY),t}var aQ=2*Math.PI;function aK(t,e,n,r,i,o){if(o>e&&o>r||o<e&&o<r||r===e)return 0;var a=(o-e)/(r-e),s=r<e?1:-1;(1===a||0===a)&&(s=r<e?.5:-.5);var l=a*(n-t)+t;return l===i?1/0:l>i?s:0}var aJ=aZ.CMD,a0=2*Math.PI,a1=[-1,-1,-1],a2=[-1,-1];function a5(t,e,n,r,i){for(var o,a,s=t.data,l=t.len(),u=0,h=0,c=0,d=0,p=0,f=0;f<l;){var g,m,y,v,_,x,b,w,S,k,M,C,T,I,D=s[f++],A=1===f;switch(D===aJ.M&&f>1&&(n||(u+=aK(h,c,d,p,r,i))),A&&(h=s[f],c=s[f+1],d=h,p=c),D){case aJ.M:d=s[f++],p=s[f++],h=d,c=p;break;case aJ.L:if(n){if(aX(h,c,s[f],s[f+1],e,r,i))return!0}else u+=aK(h,c,s[f],s[f+1],r,i)||0;h=s[f++],c=s[f++];break;case aJ.C:if(n){if(g=h,m=c,y=s[f++],v=s[f++],_=s[f++],x=s[f++],b=s[f],w=s[f+1],0!==e&&(!(i>m+e)||!(i>v+e)||!(i>x+e)||!(i>w+e))&&(!(i<m-e)||!(i<v-e)||!(i<x-e)||!(i<w-e))&&(!(r>g+e)||!(r>y+e)||!(r>_+e)||!(r>b+e))&&(!(r<g-e)||!(r<y-e)||!(r<_-e)||!(r<b-e))&&function(t,e,n,r,i,o,a,s,l,u){var h,c,d,p,f,g=.005,m=1/0;rc[0]=l,rc[1]=u;for(var y=0;y<1;y+=.05)rd[0]=rm(t,n,i,a,y),rd[1]=rm(e,r,o,s,y),(p=eq(rc,rd))<m&&(h=y,m=p);m=1/0;for(var v=0;v<32&&!(g<1e-4);v++)c=h-g,d=h+g,rd[0]=rm(t,n,i,a,c),rd[1]=rm(e,r,o,s,c),p=eq(rd,rc),c>=0&&p<m?(h=c,m=p):(rp[0]=rm(t,n,i,a,d),rp[1]=rm(e,r,o,s,d),f=eq(rp,rc),d<=1&&f<m?(h=d,m=f):g*=.5);return rl(m)}(g,m,y,v,_,x,b,w,r,i)<=e/2)return!0}else u+=function(t,e,n,r,i,o,a,s,l,u){if(u>e&&u>r&&u>o&&u>s||u<e&&u<r&&u<o&&u<s)return 0;var h=rv(e,r,o,s,u,a1);if(0===h)return 0;for(var c=0,d=-1,p=void 0,f=void 0,g=0;g<h;g++){var m=a1[g],y=0===m||1===m?.5:1;rm(t,n,i,a,m)<l||(d<0&&(d=r_(e,r,o,s,a2),a2[1]<a2[0]&&d>1&&function(){var t=a2[0];a2[0]=a2[1],a2[1]=t}(),p=rm(e,r,o,s,a2[0]),d>1&&(f=rm(e,r,o,s,a2[1]))),2===d?m<a2[0]?c+=p<e?y:-y:m<a2[1]?c+=f<p?y:-y:c+=s<f?y:-y:m<a2[0]?c+=p<e?y:-y:c+=s<p?y:-y)}return c}(h,c,s[f++],s[f++],s[f++],s[f++],s[f],s[f+1],r,i)||0;h=s[f++],c=s[f++];break;case aJ.Q:if(n){if(S=h,k=c,M=s[f++],C=s[f++],T=s[f],I=s[f+1],0!==e&&(!(i>k+e)||!(i>C+e)||!(i>I+e))&&(!(i<k-e)||!(i<C-e)||!(i<I-e))&&(!(r>S+e)||!(r>M+e)||!(r>T+e))&&(!(r<S-e)||!(r<M-e)||!(r<T-e))&&function(t,e,n,r,i,o,a,s){var l,u=.005,h=1/0;rc[0]=a,rc[1]=s;for(var c=0;c<1;c+=.05){rd[0]=rb(t,n,i,c),rd[1]=rb(e,r,o,c);var d=eq(rc,rd);d<h&&(l=c,h=d)}h=1/0;for(var p=0;p<32&&!(u<1e-4);p++){var f=l-u,g=l+u;rd[0]=rb(t,n,i,f),rd[1]=rb(e,r,o,f);var d=eq(rd,rc);if(f>=0&&d<h)l=f,h=d;else{rp[0]=rb(t,n,i,g),rp[1]=rb(e,r,o,g);var m=eq(rp,rc);g<=1&&m<h?(l=g,h=m):u*=.5}}return rl(h)}(S,k,M,C,T,I,r,i)<=e/2)return!0}else u+=function(t,e,n,r,i,o,a,s){if(s>e&&s>r&&s>o||s<e&&s<r&&s<o)return 0;var l=function(t,e,n,r,i){var o=t-2*e+n,a=2*(e-t),s=t-r,l=0;if(rf(o)){if(rg(a)){var u=-s/a;u>=0&&u<=1&&(i[l++]=u)}}else{var h=a*a-4*o*s;if(rf(h)){var u=-a/(2*o);u>=0&&u<=1&&(i[l++]=u)}else if(h>0){var c=rl(h),u=(-a+c)/(2*o),d=(-a-c)/(2*o);u>=0&&u<=1&&(i[l++]=u),d>=0&&d<=1&&(i[l++]=d)}}return l}(e,r,o,s,a1);if(0===l)return 0;var u=rS(e,r,o);if(u>=0&&u<=1){for(var h=0,c=rb(e,r,o,u),d=0;d<l;d++){var p=0===a1[d]||1===a1[d]?.5:1,f=rb(t,n,i,a1[d]);f<a||(a1[d]<u?h+=c<e?p:-p:h+=o<c?p:-p)}return h}var p=0===a1[0]||1===a1[0]?.5:1,f=rb(t,n,i,a1[0]);return f<a?0:o<e?p:-p}(h,c,s[f++],s[f++],s[f],s[f+1],r,i)||0;h=s[f++],c=s[f++];break;case aJ.A:var L=s[f++],$=s[f++],P=s[f++],O=s[f++],E=s[f++],N=s[f++];f+=1;var R=!!(1-s[f++]);o=Math.cos(E)*P+L,a=Math.sin(E)*O+$,A?(d=o,p=a):u+=aK(h,c,o,a,r,i);var z=(r-L)*O/P+L;if(n){if(function(t,e,n,r,i,o,a,s,l){if(0===a)return!1;var u=Math.sqrt((s-=t)*s+(l-=e)*l);if(u-a>n||u+a<n)return!1;if(Math.abs(r-i)%aQ<1e-4)return!0;if(o){var h=r;r=aq(i),i=aq(h)}else r=aq(r),i=aq(i);r>i&&(i+=aQ);var c=Math.atan2(l,s);return c<0&&(c+=aQ),c>=r&&c<=i||c+aQ>=r&&c+aQ<=i}(L,$,O,E,E+N,R,e,z,i))return!0}else u+=function(t,e,n,r,i,o,a,s){if((s-=e)>n||s<-n)return 0;var l=Math.sqrt(n*n-s*s);a1[0]=-l,a1[1]=l;var u=Math.abs(r-i);if(u<1e-4)return 0;if(u>=a0-1e-4){r=0,i=a0;var h=o?1:-1;return a>=a1[0]+t&&a<=a1[1]+t?h:0}if(r>i){var c=r;r=i,i=c}r<0&&(r+=a0,i+=a0);for(var d=0,p=0;p<2;p++){var f=a1[p];if(f+t>a){var g=Math.atan2(s,f),h=o?1:-1;g<0&&(g=a0+g),(g>=r&&g<=i||g+a0>=r&&g+a0<=i)&&(g>Math.PI/2&&g<1.5*Math.PI&&(h=-h),d+=h)}}return d}(L,$,O,E,E+N,R,z,i);h=Math.cos(E+N)*P+L,c=Math.sin(E+N)*O+$;break;case aJ.R:d=h=s[f++],p=c=s[f++];var B=s[f++],F=s[f++];if(o=d+B,a=p+F,n){if(aX(d,p,o,p,e,r,i)||aX(o,p,o,a,e,r,i)||aX(o,a,d,a,e,r,i)||aX(d,a,d,p,e,r,i))return!0}else u+=aK(o,p,o,a,r,i),u+=aK(d,a,d,p,r,i);break;case aJ.Z:if(n){if(aX(h,c,d,p,e,r,i))return!0}else u+=aK(h,c,d,p,r,i);h=d,c=p}}return n||1e-4>Math.abs(c-p)||(u+=aK(h,c,d,p,r,i)||0),0!==u}var a3=ec({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},ac),a4={style:ec({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},ad.style)},a6=iV.concat(["invisible","culling","z","z2","zlevel","parent"]),a8=function(t){var e;function n(e){return t.call(this,e)||this}return tK(n,t),n.prototype.update=function(){var e=this;t.prototype.update.call(this);var r=this.style;if(r.decal){var i=this._decalEl=this._decalEl||new n;i.buildPath===n.prototype.buildPath&&(i.buildPath=function(t){e.buildPath(t,e.shape)}),i.silent=!0;var o=i.style;for(var a in r)o[a]!==r[a]&&(o[a]=r[a]);o.fill=r.fill?r.decal:null,o.decal=null,o.shadowColor=null,r.strokeFirst&&(o.stroke=null);for(var s=0;s<a6.length;++s)i[a6[s]]=this[a6[s]];i.__dirty|=1}else this._decalEl&&(this._decalEl=null)},n.prototype.getDecalElement=function(){return this._decalEl},n.prototype._init=function(e){var n=e_(e);this.shape=this.getDefaultShape();var r=this.getDefaultStyle();r&&this.useStyle(r);for(var i=0;i<n.length;i++){var o=n[i],a=e[o];"style"===o?this.style?eh(this.style,a):this.useStyle(a):"shape"===o?eh(this.shape,a):t.prototype.attrKV.call(this,o,a)}this.style||this.useStyle({})},n.prototype.getDefaultStyle=function(){return null},n.prototype.getDefaultShape=function(){return{}},n.prototype.canBeInsideText=function(){return this.hasFill()},n.prototype.getInsideTextFill=function(){var t=this.style.fill;if("none"!==t){if(ek(t)){var e=rZ(t,0);return e>.5?iP:e>.2?"#eee":iO}else if(t)return iO}return iP},n.prototype.getInsideTextStroke=function(t){var e=this.style.fill;if(ek(e)){var n=this.__zr;if(!!(n&&n.isDarkMode())==.4>rZ(t,0))return e}},n.prototype.buildPath=function(t,e,n){},n.prototype.pathUpdated=function(){this.__dirty&=-5},n.prototype.getUpdatedPathProxy=function(t){return this.path||this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,t),this.path},n.prototype.createPathProxy=function(){this.path=new aZ(!1)},n.prototype.hasStroke=function(){var t=this.style,e=t.stroke;return null!=e&&"none"!==e&&t.lineWidth>0},n.prototype.hasFill=function(){var t=this.style.fill;return null!=t&&"none"!==t},n.prototype.getBoundingRect=function(){var t=this._rect,e=this.style,n=!t;if(n){var r=!1;this.path||(r=!0,this.createPathProxy());var i=this.path;(r||4&this.__dirty)&&(i.beginPath(),this.buildPath(i,this.shape,!1),this.pathUpdated()),t=i.getBoundingRect()}if(this._rect=t,this.hasStroke()&&this.path&&this.path.len()>0){var o=this._rectStroke||(this._rectStroke=t.clone());if(this.__dirty||n){o.copy(t);var a=e.strokeNoScale?this.getLineScale():1,s=e.lineWidth;this.hasFill()||(s=Math.max(s,this.strokeContainThreshold??4)),a>1e-10&&(o.width+=s/a,o.height+=s/a,o.x-=s/a/2,o.y-=s/a/2)}return o}return t},n.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e),r=this.getBoundingRect(),i=this.style;if(t=n[0],e=n[1],r.contain(t,e)){var o=this.path;if(this.hasStroke()){var a=i.lineWidth,s=i.strokeNoScale?this.getLineScale():1;if(s>1e-10&&(this.hasFill()||(a=Math.max(a,this.strokeContainThreshold)),a5(o,a/s,!0,t,e)))return!0}if(this.hasFill())return a5(o,0,!1,t,e)}return!1},n.prototype.dirtyShape=function(){this.__dirty|=4,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},n.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},n.prototype.animateShape=function(t){return this.animate("shape",t)},n.prototype.updateDuringAnimation=function(t){"style"===t?this.dirtyStyle():"shape"===t?this.dirtyShape():this.markRedraw()},n.prototype.attrKV=function(e,n){"shape"===e?this.setShape(n):t.prototype.attrKV.call(this,e,n)},n.prototype.setShape=function(t,e){var n=this.shape;return n||(n=this.shape={}),"string"==typeof t?n[t]=e:eh(n,t),this.dirtyShape(),this},n.prototype.shapeChanged=function(){return!!(4&this.__dirty)},n.prototype.createStyle=function(t){return eW(a3,t)},n.prototype._innerSaveToNormal=function(e){t.prototype._innerSaveToNormal.call(this,e);var n=this._normalState;e.shape&&!n.shape&&(n.shape=eh({},this.shape))},n.prototype._applyStateObj=function(e,n,r,i,o,a){t.prototype._applyStateObj.call(this,e,n,r,i,o,a);var s,l=!(n&&i);if(n&&n.shape?o?i?s=n.shape:(s=eh({},r.shape),eh(s,n.shape)):(s=eh({},i?this.shape:r.shape),eh(s,n.shape)):l&&(s=r.shape),s)if(o){this.shape=eh({},this.shape);for(var u={},h=e_(s),c=0;c<h.length;c++){var d=h[c];"object"==typeof s[d]?this.shape[d]=s[d]:u[d]=s[d]}this._transitionState(e,{shape:u},a)}else this.shape=s,this.dirtyShape()},n.prototype._mergeStates=function(e){for(var n,r=t.prototype._mergeStates.call(this,e),i=0;i<e.length;i++){var o=e[i];o.shape&&(n=n||{},this._mergeStyle(n,o.shape))}return n&&(r.shape=n),r},n.prototype.getAnimationStyleProps=function(){return a4},n.prototype.isZeroArea=function(){return!1},n.extend=function(t){var e=function(e){function n(n){var r=e.call(this,n)||this;return t.init&&t.init.call(r,n),r}return tK(n,e),n.prototype.getDefaultStyle=function(){return el(t.style)},n.prototype.getDefaultShape=function(){return el(t.shape)},n}(n);for(var r in t)"function"==typeof t[r]&&(e.prototype[r]=t[r]);return e},n.initDefaultProps=void((e=n.prototype).type="path",e.strokeContainThreshold=5,e.segmentIgnoreThreshold=0,e.subPixelOptimize=!1,e.autoBatch=!1,e.__dirty=7),n}(ag),a7=ec({strokeFirst:!0,font:t2,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},a3),a9=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return tK(e,t),e.prototype.hasStroke=function(){return au(this.style)},e.prototype.hasFill=function(){var t=this.style.fill;return null!=t&&"none"!==t},e.prototype.createStyle=function(t){return eW(a7,t)},e.prototype.setBoundingRect=function(t){this._rect=t},e.prototype.getBoundingRect=function(){var t,e,n;return this._rect||(this._rect=(e=as((t=this.style).text),n=t.font,al(t,iU(iH(n),e),iQ(n),null))),this._rect},e.initDefaultProps=void(e.prototype.dirtyRectTolerance=10),e}(ag);a9.prototype.type="tspan";var st=ec({x:0,y:0},ac),se={style:ec({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},ad.style)},sn=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return tK(e,t),e.prototype.createStyle=function(t){return eW(st,t)},e.prototype._getSize=function(t){var e,n=this.style,r=n[t];if(null!=r)return r;var i=(e=n.image)&&"string"!=typeof e&&e.width&&e.height?n.image:this.__image;if(!i)return 0;var o="width"===t?"height":"width",a=n[o];return null==a?i[t]:i[t]/i[o]*a},e.prototype.getWidth=function(){return this._getSize("width")},e.prototype.getHeight=function(){return this._getSize("height")},e.prototype.getAnimationStyleProps=function(){return se},e.prototype.getBoundingRect=function(){var t=this.style;return this._rect||(this._rect=new nN(t.x||0,t.y||0,this.getWidth(),this.getHeight())),this._rect},e}(ag);sn.prototype.type="image";var sr=Math.round;function si(t,e,n){if(e){var r=e.x1,i=e.x2,o=e.y1,a=e.y2;t.x1=r,t.x2=i,t.y1=o,t.y2=a;var s=n&&n.lineWidth;return s&&(sr(2*r)===sr(2*i)&&(t.x1=t.x2=sa(r,s,!0)),sr(2*o)===sr(2*a)&&(t.y1=t.y2=sa(o,s,!0))),t}}function so(t,e,n){if(e){var r=e.x,i=e.y,o=e.width,a=e.height;t.x=r,t.y=i,t.width=o,t.height=a;var s=n&&n.lineWidth;return s&&(t.x=sa(r,s,!0),t.y=sa(i,s,!0),t.width=Math.max(sa(r+o,s,!1)-t.x,+(0!==o)),t.height=Math.max(sa(i+a,s,!1)-t.y,+(0!==a))),t}}function sa(t,e,n){if(!e)return t;var r=sr(2*t);return(r+sr(e))%2==0?r/2:(r+(n?1:-1))/2}var ss=function(){this.x=0,this.y=0,this.width=0,this.height=0},sl={},su=function(t){function e(e){return t.call(this,e)||this}return tK(e,t),e.prototype.getDefaultShape=function(){return new ss},e.prototype.buildPath=function(t,e){if(this.subPixelOptimize){var n,r,i,o,a,s,l,u,h,c,d,p,f,g,m,y=so(sl,e,this.style);n=y.x,r=y.y,i=y.width,o=y.height,y.r=e.r,e=y}else n=e.x,r=e.y,i=e.width,o=e.height;e.r?(d=(a=e).x,p=a.y,f=a.width,g=a.height,m=a.r,f<0&&(d+=f,f=-f),g<0&&(p+=g,g=-g),"number"==typeof m?l=u=h=c=m:m instanceof Array?1===m.length?l=u=h=c=m[0]:2===m.length?(l=h=m[0],u=c=m[1]):3===m.length?(l=m[0],u=c=m[1],h=m[2]):(l=m[0],u=m[1],h=m[2],c=m[3]):l=u=h=c=0,l+u>f&&(s=l+u,l*=f/s,u*=f/s),h+c>f&&(s=h+c,h*=f/s,c*=f/s),u+h>g&&(s=u+h,u*=g/s,h*=g/s),l+c>g&&(s=l+c,l*=g/s,c*=g/s),t.moveTo(d+l,p),t.lineTo(d+f-u,p),0!==u&&t.arc(d+f-u,p+u,u,-Math.PI/2,0),t.lineTo(d+f,p+g-h),0!==h&&t.arc(d+f-h,p+g-h,h,0,Math.PI/2),t.lineTo(d+c,p+g),0!==c&&t.arc(d+c,p+g-c,c,Math.PI/2,Math.PI),t.lineTo(d,p+l),0!==l&&t.arc(d+l,p+l,l,Math.PI,1.5*Math.PI)):t.rect(n,r,i,o)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e}(a8);su.prototype.type="rect";var sh={fill:"#000"},sc={},sd={style:ec({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},ad.style)},sp=function(t){function e(e){var n=t.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=sh,n.attr(e),n}return tK(e,t),e.prototype.childrenRef=function(){return this._children},e.prototype.update=function(){t.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var e=0;e<this._children.length;e++){var n=this._children[e];n.zlevel=this.zlevel,n.z=this.z,n.z2=this.z2,n.culling=this.culling,n.cursor=this.cursor,n.invisible=this.invisible}},e.prototype.updateTransform=function(){var e=this.innerTransformable;e?(e.updateTransform(),e.transform&&(this.transform=e.transform)):t.prototype.updateTransform.call(this)},e.prototype.getLocalTransform=function(e){var n=this.innerTransformable;return n?n.getLocalTransform(e):t.prototype.getLocalTransform.call(this,e)},e.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),t.prototype.getComputedTransform.call(this)},e.prototype._updateSubTexts=function(){var t;this._childCursor=0,sx(t=this.style),eg(t.rich,sx),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},e.prototype.addSelfToZr=function(e){t.prototype.addSelfToZr.call(this,e);for(var n=0;n<this._children.length;n++)this._children[n].__zr=e},e.prototype.removeSelfFromZr=function(e){t.prototype.removeSelfFromZr.call(this,e);for(var n=0;n<this._children.length;n++)this._children[n].__zr=null},e.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var t=new nN(0,0,0,0),e=this._children,n=[],r=null,i=0;i<e.length;i++){var o=e[i],a=o.getBoundingRect(),s=o.getLocalTransform(n);s?(t.copy(a),t.applyTransform(s),(r=r||t.clone()).union(t)):(r=r||a.clone()).union(a)}this._rect=r||t}return this._rect},e.prototype.setDefaultTextStyle=function(t){this._defaultStyle=t||sh},e.prototype.setTextContent=function(t){},e.prototype._mergeStyle=function(t,e){if(!e)return t;var n=e.rich,r=t.rich||n&&{};return eh(t,e),n&&r?(this._mergeRich(r,n),t.rich=r):r&&(t.rich=r),t},e.prototype._mergeRich=function(t,e){for(var n=e_(e),r=0;r<n.length;r++){var i=n[r];t[i]=t[i]||{},eh(t[i],e[i])}},e.prototype.getAnimationStyleProps=function(){return sd},e.prototype._getOrCreateChild=function(t){var e=this._children[this._childCursor];return e&&e instanceof t||(e=new t),this._children[this._childCursor++]=e,e.__zr=this.__zr,e.parent=this,e},e.prototype._updatePlainTexts=function(){var t=this.style,e=t.font||t2,n=t.padding,r=this._defaultStyle,i=t.x||0,o=t.y||0,a=t.align||r.align||"left",s=t.verticalAlign||r.verticalAlign||"top";ai(sc,r.overflowRect,i,o,a,s),i=sc.baseX,o=sc.baseY;var l=function(t,e,n,r){var i,o,a=as(t),s=e.overflow,l=e.padding,u=l?l[1]+l[3]:0,h=l?l[0]+l[2]:0,c=e.font,d=iQ(c),p=(i=e.lineHeight,i??d),f="truncate"===e.lineOverflow,g=!1,m=e.width;null==m&&null!=n&&(m=n-u);var y=e.height;null==y&&null!=r&&(y=r-h);var v=(o=null!=m&&("break"===s||"breakAll"===s)?a?ar(a,e.font,m,"breakAll"===s,0).lines:[]:a?a.split(`
|
|
33
|
+
`):[]).length*p;if(null==y&&(y=v),v>y&&f){var _=Math.floor(y/p);g=g||o.length>_,v=(o=o.slice(0,_)).length*p}if(a&&"truncate"===s&&null!=m)for(var x=o6(m,c,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),b={},w=0;w<o.length;w++)o8(b,o[w],x),o[w]=b.textLine,g=g||b.isTruncated;for(var S=y,k=0,M=iH(c),w=0;w<o.length;w++)k=Math.max(iU(M,o[w]),k);null==m&&(m=k);var C=m;return S+=h,{lines:o,height:y,outerWidth:C+=u,outerHeight:S,lineHeight:p,calculatedLineHeight:d,contentWidth:k,contentHeight:v,width:m,isTruncated:g}}(sk(t),t,sc.outerWidth,sc.outerHeight),u=sM(t),h=!!t.backgroundColor,c=l.outerHeight,d=l.outerWidth,p=l.lines,f=l.lineHeight;this.isTruncated=!!l.isTruncated;var g=i,m=iq(o,l.contentHeight,s);if(u||n){var y=iY(i,d,a),v=iq(o,c,s);u&&this._renderBackground(t,t,y,v,d,c)}m+=f/2,n&&(g=sS(i,a,n),"top"===s?m+=n[0]:"bottom"===s&&(m-=n[2]));for(var _=0,x=!1,b=!1,w=sw("fill"in t?t.fill:(b=!0,r.fill)),S=sb("stroke"in t?t.stroke:h||r.autoStroke&&!b?null:(_=2,x=!0,r.stroke)),k=t.textShadowBlur>0,M=0;M<p.length;M++){var C=this._getOrCreateChild(a9),T=C.createStyle();C.useStyle(T),T.text=p[M],T.x=g,T.y=m,T.textAlign=a,T.textBaseline="middle",T.opacity=t.opacity,T.strokeFirst=!0,k&&(T.shadowBlur=t.textShadowBlur||0,T.shadowColor=t.textShadowColor||"transparent",T.shadowOffsetX=t.textShadowOffsetX||0,T.shadowOffsetY=t.textShadowOffsetY||0),T.stroke=S,T.fill=w,S&&(T.lineWidth=t.lineWidth||_,T.lineDash=t.lineDash,T.lineDashOffset=t.lineDashOffset||0),T.font=e,sv(T,t),m+=f,C.setBoundingRect(al(T,l.contentWidth,l.calculatedLineHeight,x?0:null))}},e.prototype._updateRichTexts=function(){var t=this.style,e=this._defaultStyle,n=t.align||e.align,r=t.verticalAlign||e.verticalAlign,i=t.x||0,o=t.y||0;ai(sc,e.overflowRect,i,o,n,r),i=sc.baseX,o=sc.baseY;var a=function(t,e,n,r,i){var o,a,s,l,u=new at,h=as(t);if(!h)return u;var c=e.padding,d=c?c[1]+c[3]:0,p=c?c[0]+c[2]:0,f=e.width;null==f&&null!=n&&(f=n-d);var g=e.height;null==g&&null!=r&&(g=r-p);for(var m,y=e.overflow,v=("break"===y||"breakAll"===y)&&null!=f?{width:f,accumWidth:0,breakAll:"breakAll"===y}:null,_=o4.lastIndex=0;null!=(m=o4.exec(h));){var x=m.index;x>_&&ae(u,h.substring(_,x),e,v),ae(u,m[2],e,v,m[1]),_=o4.lastIndex}_<h.length&&ae(u,h.substring(_,h.length),e,v);var b=[],w=0,S=0,k="truncate"===y,M="truncate"===e.lineOverflow,C={};function T(t,e,n){t.width=e,t.lineHeight=n,w+=n,S=Math.max(S,e)}t:for(var I=0;I<u.lines.length;I++){for(var D=u.lines[I],A=0,L=0,$=0;$<D.tokens.length;$++){var P,O,E,N,R,z=D.tokens[$],B=z.styleName&&e.rich[z.styleName]||{},F=z.textPadding=B.padding,V=F?F[1]+F[3]:0,W=z.font=B.font||e.font;z.contentHeight=iQ(W);var H=(P=B.height,O=z.contentHeight,P??O);if(z.innerHeight=H,F&&(H+=F[0]+F[2]),z.height=H,z.lineHeight=(E=B.lineHeight,N=e.lineHeight,R=H,E??N??R),z.align=B&&B.align||i,z.verticalAlign=B&&B.verticalAlign||"middle",M&&null!=g&&w+z.lineHeight>g){var G=u.lines.length;$>0?(D.tokens=D.tokens.slice(0,$),T(D,L,A),u.lines=u.lines.slice(0,I+1)):u.lines=u.lines.slice(0,I),u.isTruncated=u.isTruncated||u.lines.length<G;break t}var j=B.width,U=null==j||"auto"===j;if("string"==typeof j&&"%"===j.charAt(j.length-1))z.percentWidth=j,b.push(z),z.contentWidth=iU(iH(W),z.text);else{if(U){var Z=B.backgroundColor,X=Z&&Z.image;X&&o3(X=function(t){if("string"!=typeof t)return t;var e=o1.get(t);return e&&e.image}(X))&&(z.width=Math.max(z.width,X.width*H/X.height))}var Y=k&&null!=f?f-L:null;null!=Y&&Y<z.width?!U||Y<V?(z.text="",z.width=z.contentWidth=0):(function(t,e,n,r,i,o){if(!n){t.text="",t.isTruncated=!1;return}var a=(e+"").split(`
|
|
34
|
+
`);o=o6(n,r,i,o);for(var s=!1,l={},u=0,h=a.length;u<h;u++)o8(l,a[u],o),a[u]=l.textLine,s=s||l.isTruncated;t.text=a.join(`
|
|
35
|
+
`),t.isTruncated=s}(C,z.text,Y-V,W,e.ellipsis,{minChar:e.truncateMinChar}),z.text=C.text,u.isTruncated=u.isTruncated||C.isTruncated,z.width=z.contentWidth=iU(iH(W),z.text)):z.contentWidth=iU(iH(W),z.text)}z.width+=V,L+=z.width,B&&(A=Math.max(A,z.lineHeight))}T(D,L,A)}o=f,a=S,u.outerWidth=u.width=o??a,s=g,l=w,u.outerHeight=u.height=s??l,u.contentHeight=w,u.contentWidth=S,u.outerWidth+=d,u.outerHeight+=p;for(var I=0;I<b.length;I++){var z=b[I],q=z.percentWidth;z.width=parseInt(q,10)/100*u.width}return u}(sk(t),t,sc.outerWidth,sc.outerHeight,n),s=a.width,l=a.outerWidth,u=a.outerHeight,h=t.padding;this.isTruncated=!!a.isTruncated;var c=iY(i,l,n),d=iq(o,u,r),p=c,f=d;h&&(p+=h[3],f+=h[0]);var g=p+s;sM(t)&&this._renderBackground(t,t,c,d,l,u);for(var m=!!t.backgroundColor,y=0;y<a.lines.length;y++){for(var v=a.lines[y],_=v.tokens,x=_.length,b=v.lineHeight,w=v.width,S=0,k=p,M=g,C=x-1,T=void 0;S<x&&(!(T=_[S]).align||"left"===T.align);)this._placeToken(T,t,b,f,k,"left",m),w-=T.width,k+=T.width,S++;for(;C>=0&&"right"===(T=_[C]).align;)this._placeToken(T,t,b,f,M,"right",m),w-=T.width,M-=T.width,C--;for(k+=(s-(k-p)-(g-M)-w)/2;S<=C;)T=_[S],this._placeToken(T,t,b,f,k+T.width/2,"center",m),k+=T.width,S++;f+=b}},e.prototype._placeToken=function(t,e,n,r,i,o,a){var s,l,u,h,c,d,p,f=e.rich[t.styleName]||{};f.text=t.text;var g=t.verticalAlign,m=r+n/2;"top"===g?m=r+t.height/2:"bottom"===g&&(m=r+n-t.height/2),!t.isLineHolder&&sM(f)&&this._renderBackground(f,e,"right"===o?i-t.width:"center"===o?i-t.width/2:i,m-t.height/2,t.width,t.height);var y=!!f.backgroundColor,v=t.textPadding;v&&(i=sS(i,o,v),m-=t.height/2-v[0]-t.innerHeight/2);var _=this._getOrCreateChild(a9),x=_.createStyle();_.useStyle(x);var b=this._defaultStyle,w=!1,S=0,k=!1,M=sw("fill"in f?f.fill:"fill"in e?e.fill:(w=!0,b.fill)),C=sb("stroke"in f?f.stroke:"stroke"in e?e.stroke:y||a||b.autoStroke&&!w?null:(S=2,k=!0,b.stroke)),T=f.textShadowBlur>0||e.textShadowBlur>0;x.text=t.text,x.x=i,x.y=m,T&&(x.shadowBlur=f.textShadowBlur||e.textShadowBlur||0,x.shadowColor=f.textShadowColor||e.textShadowColor||"transparent",x.shadowOffsetX=f.textShadowOffsetX||e.textShadowOffsetX||0,x.shadowOffsetY=f.textShadowOffsetY||e.textShadowOffsetY||0),x.textAlign=o,x.textBaseline="middle",x.font=t.font||t2,s=f.opacity,l=e.opacity,x.opacity=s??l??1,sv(x,f),C&&(u=f.lineWidth,h=e.lineWidth,c=S,x.lineWidth=u??h??c,d=f.lineDash,p=e.lineDash,x.lineDash=d??p,x.lineDashOffset=e.lineDashOffset||0,x.stroke=C),M&&(x.fill=M),_.setBoundingRect(al(x,t.contentWidth,t.contentHeight,k?0:null))},e.prototype._renderBackground=function(t,e,n,r,i,o){var a,s,l,u,h=t.backgroundColor,c=t.borderWidth,d=t.borderColor,p=h&&h.image,f=h&&!p,g=t.borderRadius,m=this;if(f||t.lineHeight||c&&d){(l=this._getOrCreateChild(su)).useStyle(l.createStyle()),l.style.fill=null;var y=l.shape;y.x=n,y.y=r,y.width=i,y.height=o,y.r=g,l.dirtyShape()}if(f){var v=l.style;v.fill=h||null,v.fillOpacity=t.fillOpacity??1}else if(p){(u=this._getOrCreateChild(sn)).onload=function(){m.dirtyStyle()};var _=u.style;_.image=h.image,_.x=n,_.y=r,_.width=i,_.height=o}if(c&&d){var v=l.style;v.lineWidth=c,v.stroke=d,v.strokeOpacity=t.strokeOpacity??1,v.lineDash=t.borderDash,v.lineDashOffset=t.borderDashOffset||0,l.strokeContainThreshold=0,l.hasFill()&&l.hasStroke()&&(v.strokeFirst=!0,v.lineWidth*=2)}var x=(l||u).style;x.shadowBlur=t.shadowBlur||0,x.shadowColor=t.shadowColor||"transparent",x.shadowOffsetX=t.shadowOffsetX||0,x.shadowOffsetY=t.shadowOffsetY||0,a=t.opacity,s=e.opacity,x.opacity=a??s??1},e.makeFont=function(t){var e="";return s_(t)&&(e=[t.fontStyle,t.fontWeight,sy(t.fontSize),t.fontFamily||"sans-serif"].join(" ")),e&&eN(e)||t.textFont||t.font},e}(ag),sf={left:!0,right:1,center:1},sg={top:1,bottom:1,middle:1},sm=["fontStyle","fontWeight","fontSize","fontFamily"];function sy(t){return"string"==typeof t&&(-1!==t.indexOf("px")||-1!==t.indexOf("rem")||-1!==t.indexOf("em"))?t:isNaN(+t)?"12px":t+"px"}function sv(t,e){for(var n=0;n<sm.length;n++){var r=sm[n],i=e[r];null!=i&&(t[r]=i)}}function s_(t){return null!=t.fontSize||t.fontFamily||t.fontWeight}function sx(t){if(t){t.font=sp.makeFont(t);var e=t.align;"middle"===e&&(e="center"),t.align=null==e||sf[e]?e:"left";var n=t.verticalAlign;"center"===n&&(n="middle"),t.verticalAlign=null==n||sg[n]?n:"top",t.padding&&(t.padding=eO(t.padding))}}function sb(t,e){return null==t||e<=0||"transparent"===t||"none"===t?null:t.image||t.colorStops?"#000":t}function sw(t){return null==t||"none"===t?null:t.image||t.colorStops?"#000":t}function sS(t,e,n){return"right"===e?t-n[1]:"center"===e?t+n[3]/2-n[1]/2:t+n[3]}function sk(t){var e=t.text;return null!=e&&(e+=""),e}function sM(t){return!!(t.backgroundColor||t.lineHeight||t.borderWidth&&t.borderColor)}var sC=oN(),sT=function(t,e,n,r){if(r){var i=sC(r);i.dataIndex=n,i.dataType=e,i.seriesIndex=t,i.ssrType="chart","group"===r.type&&r.traverse(function(r){var i=sC(r);i.seriesIndex=t,i.dataIndex=n,i.dataType=e,i.ssrType="chart"})}},sI=1,sD={},sA=oN(),sL=oN(),s$=["emphasis","blur","select"],sP=["normal","emphasis","blur","select"],sO="highlight",sE="downplay",sN="select",sR="unselect",sz="toggleSelect",sB="selectchanged";function sF(t){return null!=t&&"none"!==t}function sV(t,e,n){t.onHoverStateChange&&(t.hoverState||0)!==n&&t.onHoverStateChange(e),t.hoverState=n}function sW(t){sV(t,"emphasis",2)}function sH(t){2===t.hoverState&&sV(t,"normal",0)}function sG(t){sV(t,"blur",1)}function sj(t){1===t.hoverState&&sV(t,"normal",0)}function sU(t){t.selected=!0}function sZ(t){t.selected=!1}function sX(t,e,n){e(t,n),t.isGroup&&t.traverse(function(t){e(t,n)})}function sY(t,e){switch(e){case"emphasis":t.hoverState=2;break;case"normal":t.hoverState=0;break;case"blur":t.hoverState=1;break;case"select":t.selected=!0}}function sq(t,e){var n,r,i,o,a,s=this.states[t];if(this.style){if("emphasis"===t)return function(t,e,n){var r=e&&ed(e,"select")>=0,i=!1;if(t instanceof a8){var o=sA(t),a=r&&o.selectFill||o.normalFill,s=r&&o.selectStroke||o.normalStroke;if(sF(a)||sF(s)){var l=(n=n||{}).style||{};"inherit"===l.fill?(i=!0,n=eh({},n),(l=eh({},l)).fill=a):!sF(l.fill)&&sF(a)?(i=!0,n=eh({},n),(l=eh({},l)).fill=rY(a)):!sF(l.stroke)&&sF(s)&&(i||(n=eh({},n),l=eh({},l)),l.stroke=rY(s)),n.style=l}}if(n&&null==n.z2){i||(n=eh({},n));var u=t.z2EmphasisLift;n.z2=t.z2+(u??10)}return n}(this,e,s);if("blur"===t)return n=s,r=ed(this.currentStates,t)>=0,i=this.style.opacity,o=r?null:function(t,e,n,r){for(var i=t.style,o={},a=0;a<e.length;a++){var s=e[a],l=i[s];o[s]=l??(r&&r[s])}for(var a=0;a<t.animators.length;a++){var u=t.animators[a];u.__fromStateTransition&&0>u.__fromStateTransition.indexOf(n)&&"style"===u.targetName&&u.saveTo(o,e)}return o}(this,["opacity"],t,{opacity:1}),null==(a=(n=n||{}).style||{}).opacity&&(n=eh({},n),a=eh({opacity:r?i:.1*o.opacity},a),n.style=a),n;if("select"===t){var l=s;if(l&&null==l.z2){l=eh({},l);var u=this.z2SelectLift;l.z2=this.z2+(u??9)}return l}}return s}function sQ(t){t.stateProxy=sq;var e=t.getTextContent(),n=t.getTextGuideLine();e&&(e.stateProxy=sq),n&&(n.stateProxy=sq)}function sK(t,e){s2(t,e)||t.__highByOuter||sX(t,sW)}function sJ(t,e){s2(t,e)||t.__highByOuter||sX(t,sH)}function s0(t,e){t.__highByOuter|=1<<(e||0),sX(t,sW)}function s1(t,e){(t.__highByOuter&=~(1<<(e||0)))||sX(t,sH)}function s2(t,e){return t.__highDownSilentOnTouch&&e.zrByTouch}function s5(t){var e=t.getModel(),n=[],r=[];e.eachComponent(function(e,i){var o=sL(i),a="series"===e,s=a?t.getViewOfSeriesModel(i):t.getViewOfComponentModel(i);a||r.push(s),o.isBlured&&(s.group.traverse(function(t){sj(t)}),a&&n.push(i)),o.isBlured=!1}),eg(r,function(t){t&&t.toggleBlurSeries&&t.toggleBlurSeries(n,!1,e)})}function s3(t,e,n,r){var i=r.getModel();function o(t,e){for(var n=0;n<e.length;n++){var r=t.getItemGraphicEl(e[n]);r&&sX(r,sj)}}if(n=n||"coordinateSystem",null!=t&&!(!e||"none"===e)){var a=i.getSeriesByIndex(t),s=a.coordinateSystem;s&&s.master&&(s=s.master);var l=[];i.eachSeries(function(t){var i=a===t,u=t.coordinateSystem;u&&u.master&&(u=u.master);var h=u&&s?u===s:i;if(!("series"===n&&!i||"coordinateSystem"===n&&!h||"series"===e&&i)){if(r.getViewOfSeriesModel(t).group.traverse(function(t){t.__highByOuter&&i&&"self"===e||sG(t)}),ef(e))o(t.getData(),e);else if(eT(e))for(var c=e_(e),d=0;d<c.length;d++)o(t.getData(c[d]),e[c[d]]);l.push(t),sL(t).isBlured=!0}}),i.eachComponent(function(t,e){if("series"!==t){var n=r.getViewOfComponentModel(e);n&&n.toggleBlurSeries&&n.toggleBlurSeries(l,!0,i)}})}}function s4(t,e,n){if(null!=t&&null!=e){var r=n.getModel().getComponent(t,e);if(r){sL(r).isBlured=!0;var i=n.getViewOfComponentModel(r);i&&i.focusBlurEnabled&&i.group.traverse(function(t){sG(t)})}}}function s6(t,e,n,r){var i={focusSelf:!1,dispatchers:null};if(null==t||"series"===t||null==e||null==n)return i;var o=r.getModel().getComponent(t,e);if(!o)return i;var a=r.getViewOfComponentModel(o);if(!a||!a.findHighDownDispatchers)return i;for(var s,l=a.findHighDownDispatchers(n),u=0;u<l.length;u++)if("self"===sC(l[u]).focus){s=!0;break}return{focusSelf:s,dispatchers:l}}function s8(t){eg(t.getAllData(),function(e){var n=e.data,r=e.type;n.eachItemGraphicEl(function(e,n){t.isSelected(n,r)?sX(e,sU):sX(e,sZ)})})}function s7(t,e,n){var r,i,o,a;lr(t,!0),sX(t,sQ),r=t,i=e,o=n,a=sC(r),null!=i?(a.focus=i,a.blurScope=o):a.focus&&(a.focus=null)}function s9(t,e,n,r){r?lr(t,!1):s7(t,e,n)}var lt=["emphasis","blur","select"],le={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function ln(t,e,n,r){n=n||"itemStyle";for(var i=0;i<lt.length;i++){var o=lt[i],a=e.getModel([o,n]);t.ensureState(o).style=a[le[n]]()}}function lr(t,e){var n=!1===e;t.highDownSilentOnTouch&&(t.__highDownSilentOnTouch=t.highDownSilentOnTouch),(!n||t.__highDownDispatcher)&&(t.__highByOuter=t.__highByOuter||0,t.__highDownDispatcher=!n)}function li(t){return!!(t&&t.__highDownDispatcher)}function lo(t){var e=t.type;return e===sN||e===sR||e===sz}function la(t){var e=t.type;return e===sO||e===sE}var ls=aZ.CMD,ll=[[],[],[]],lu=Math.sqrt,lh=Math.atan2,lc=Math.sqrt,ld=Math.sin,lp=Math.cos,lf=Math.PI;function lg(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function lm(t,e){return(t[0]*e[0]+t[1]*e[1])/(lg(t)*lg(e))}function ly(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(lm(t,e))}function lv(t,e,n,r,i,o,a,s,l,u,h){var c=lf/180*l,d=lp(c)*(t-n)/2+ld(c)*(e-r)/2,p=-1*ld(c)*(t-n)/2+lp(c)*(e-r)/2,f=d*d/(a*a)+p*p/(s*s);f>1&&(a*=lc(f),s*=lc(f));var g=(i===o?-1:1)*lc((a*a*(s*s)-a*a*(p*p)-s*s*(d*d))/(a*a*(p*p)+s*s*(d*d)))||0,m=g*a*p/s,y=-(g*s)*d/a,v=(t+n)/2+lp(c)*m-ld(c)*y,_=(e+r)/2+ld(c)*m+lp(c)*y,x=ly([1,0],[(d-m)/a,(p-y)/s]),b=[(d-m)/a,(p-y)/s],w=[(-1*d-m)/a,(-1*p-y)/s],S=ly(b,w);if(-1>=lm(b,w)&&(S=lf),lm(b,w)>=1&&(S=0),S<0){var k=Math.round(S/lf*1e6)/1e6;S=2*lf+k%2*lf}h.addData(u,v,_,a,s,x,S,c,o)}var l_=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,lx=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g,lb=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return tK(e,t),e.prototype.applyTransform=function(t){},e}(a8);function lw(t){return null!=t.setData}function lS(t,e){var n=function(t){var e=new aZ;if(!t)return e;var n,r=0,i=0,o=0,a=0,s=aZ.CMD,l=t.match(l_);if(!l)return e;for(var u=0;u<l.length;u++){for(var h=l[u],c=h.charAt(0),d=void 0,p=h.match(lx)||[],f=p.length,g=0;g<f;g++)p[g]=parseFloat(p[g]);for(var m=0;m<f;){var y=void 0,v=void 0,_=void 0,x=void 0,b=void 0,w=void 0,S=void 0,k=r,M=i,C=void 0,T=void 0;switch(c){case"l":r+=p[m++],i+=p[m++],d=s.L,e.addData(d,r,i);break;case"L":r=p[m++],i=p[m++],d=s.L,e.addData(d,r,i);break;case"m":r+=p[m++],i+=p[m++],d=s.M,e.addData(d,r,i),o=r,a=i,c="l";break;case"M":r=p[m++],i=p[m++],d=s.M,e.addData(d,r,i),o=r,a=i,c="L";break;case"h":r+=p[m++],d=s.L,e.addData(d,r,i);break;case"H":r=p[m++],d=s.L,e.addData(d,r,i);break;case"v":i+=p[m++],d=s.L,e.addData(d,r,i);break;case"V":i=p[m++],d=s.L,e.addData(d,r,i);break;case"C":d=s.C,e.addData(d,p[m++],p[m++],p[m++],p[m++],p[m++],p[m++]),r=p[m-2],i=p[m-1];break;case"c":d=s.C,e.addData(d,p[m++]+r,p[m++]+i,p[m++]+r,p[m++]+i,p[m++]+r,p[m++]+i),r+=p[m-2],i+=p[m-1];break;case"S":y=r,v=i,C=e.len(),T=e.data,n===s.C&&(y+=r-T[C-4],v+=i-T[C-3]),d=s.C,k=p[m++],M=p[m++],r=p[m++],i=p[m++],e.addData(d,y,v,k,M,r,i);break;case"s":y=r,v=i,C=e.len(),T=e.data,n===s.C&&(y+=r-T[C-4],v+=i-T[C-3]),d=s.C,k=r+p[m++],M=i+p[m++],r+=p[m++],i+=p[m++],e.addData(d,y,v,k,M,r,i);break;case"Q":k=p[m++],M=p[m++],r=p[m++],i=p[m++],d=s.Q,e.addData(d,k,M,r,i);break;case"q":k=p[m++]+r,M=p[m++]+i,r+=p[m++],i+=p[m++],d=s.Q,e.addData(d,k,M,r,i);break;case"T":y=r,v=i,C=e.len(),T=e.data,n===s.Q&&(y+=r-T[C-4],v+=i-T[C-3]),r=p[m++],i=p[m++],d=s.Q,e.addData(d,y,v,r,i);break;case"t":y=r,v=i,C=e.len(),T=e.data,n===s.Q&&(y+=r-T[C-4],v+=i-T[C-3]),r+=p[m++],i+=p[m++],d=s.Q,e.addData(d,y,v,r,i);break;case"A":_=p[m++],x=p[m++],b=p[m++],w=p[m++],S=p[m++],k=r,M=i,r=p[m++],lv(k,M,r,i=p[m++],w,S,_,x,b,d=s.A,e);break;case"a":_=p[m++],x=p[m++],b=p[m++],w=p[m++],S=p[m++],k=r,M=i,r+=p[m++],lv(k,M,r,i+=p[m++],w,S,_,x,b,d=s.A,e)}}("z"===c||"Z"===c)&&(d=s.Z,e.addData(d),r=o,i=a),n=d}return e.toStatic(),e}(t),r=eh({},e);return r.buildPath=function(t){var e=lw(t);if(e&&t.canSave()){t.appendPath(n);var r=t.getContext();r&&t.rebuildPath(r,1)}else{var r=e?t.getContext():t;r&&n.rebuildPath(r,1)}},r.applyTransform=function(t){(function(t,e){if(e){var n,r,i,o,a,s,l=t.data,u=t.len(),h=ls.M,c=ls.C,d=ls.L,p=ls.R,f=ls.A,g=ls.Q;for(i=0,o=0;i<u;){switch(n=l[i++],o=i,r=0,n){case h:case d:r=1;break;case c:r=3;break;case g:r=2;break;case f:var m=e[4],y=e[5],v=lu(e[0]*e[0]+e[1]*e[1]),_=lu(e[2]*e[2]+e[3]*e[3]),x=lh(-e[1]/_,e[0]/v);l[i]*=v,l[i++]+=m,l[i]*=_,l[i++]+=y,l[i++]*=v,l[i++]*=_,l[i++]+=x,l[i++]+=x,i+=2,o=i;break;case p:s[0]=l[i++],s[1]=l[i++],eK(s,s,e),l[o++]=s[0],l[o++]=s[1],s[0]+=l[i++],s[1]+=l[i++],eK(s,s,e),l[o++]=s[0],l[o++]=s[1]}for(a=0;a<r;a++){var b=ll[a];b[0]=l[i++],b[1]=l[i++],eK(b,b,e),l[o++]=b[0],l[o++]=b[1]}}t.increaseVersion()}})(n,t),this.dirtyShape()},r}var lk=function(){this.cx=0,this.cy=0,this.r=0},lM=function(t){function e(e){return t.call(this,e)||this}return tK(e,t),e.prototype.getDefaultShape=function(){return new lk},e.prototype.buildPath=function(t,e){t.moveTo(e.cx+e.r,e.cy),t.arc(e.cx,e.cy,e.r,0,2*Math.PI)},e}(a8);lM.prototype.type="circle";var lC=function(){this.cx=0,this.cy=0,this.rx=0,this.ry=0},lT=function(t){function e(e){return t.call(this,e)||this}return tK(e,t),e.prototype.getDefaultShape=function(){return new lC},e.prototype.buildPath=function(t,e){var n=e.cx,r=e.cy,i=e.rx,o=e.ry,a=.5522848*i,s=.5522848*o;t.moveTo(n-i,r),t.bezierCurveTo(n-i,r-s,n-a,r-o,n,r-o),t.bezierCurveTo(n+a,r-o,n+i,r-s,n+i,r),t.bezierCurveTo(n+i,r+s,n+a,r+o,n,r+o),t.bezierCurveTo(n-a,r+o,n-i,r+s,n-i,r),t.closePath()},e}(a8);lT.prototype.type="ellipse";var lI=Math.PI,lD=2*lI,lA=Math.sin,lL=Math.cos,l$=Math.acos,lP=Math.atan2,lO=Math.abs,lE=Math.sqrt,lN=Math.max,lR=Math.min;function lz(t,e,n,r,i,o,a){var s=t-n,l=e-r,u=(a?o:-o)/lE(s*s+l*l),h=u*l,c=-u*s,d=t+h,p=e+c,f=n+h,g=r+c,m=(d+f)/2,y=(p+g)/2,v=f-d,_=g-p,x=v*v+_*_,b=i-o,w=d*g-f*p,S=(_<0?-1:1)*lE(lN(0,b*b*x-w*w)),k=(w*_-v*S)/x,M=(-w*v-_*S)/x,C=(w*_+v*S)/x,T=(-w*v+_*S)/x,I=k-m,D=M-y,A=C-m,L=T-y;return I*I+D*D>A*A+L*L&&(k=C,M=T),{cx:k,cy:M,x0:-h,y0:-c,x1:k*(i/b-1),y1:M*(i/b-1)}}var lB=function(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0,this.cornerRadius=0},lF=function(t){function e(e){return t.call(this,e)||this}return tK(e,t),e.prototype.getDefaultShape=function(){return new lB},e.prototype.buildPath=function(t,e){!function(t,e){var n,r=lN(e.r,0),i=lN(e.r0||0,0),o=r>0,a=i>0;if(!(!o&&!a)){if(o||(r=i,i=0),i>r){var s=r;r=i,i=s}var l=e.startAngle,u=e.endAngle;if(!(isNaN(l)||isNaN(u))){var h=e.cx,c=e.cy,d=!!e.clockwise,p=lO(u-l),f=p>lD&&p%lD;if(f>1e-4&&(p=f),r>1e-4)if(p>lD-1e-4)t.moveTo(h+r*lL(l),c+r*lA(l)),t.arc(h,c,r,l,u,!d),i>1e-4&&(t.moveTo(h+i*lL(u),c+i*lA(u)),t.arc(h,c,i,u,l,d));else{var g=void 0,m=void 0,y=void 0,v=void 0,_=void 0,x=void 0,b=void 0,w=void 0,S=void 0,k=void 0,M=void 0,C=void 0,T=void 0,I=void 0,D=void 0,A=void 0,L=r*lL(l),$=r*lA(l),P=i*lL(u),O=i*lA(u),E=p>1e-4;if(E){var N=e.cornerRadius;N&&(g=(n=function(t){var e;if(ew(t)){var n=t.length;if(!n)return t;e=1===n?[t[0],t[0],0,0]:2===n?[t[0],t[0],t[1],t[1]]:3===n?t.concat(t[2]):t}else e=[t,t,t,t];return e}(N))[0],m=n[1],y=n[2],v=n[3]);var R=lO(r-i)/2;if(_=lR(R,y),x=lR(R,v),b=lR(R,g),w=lR(R,m),M=S=lN(_,x),C=k=lN(b,w),(S>1e-4||k>1e-4)&&(T=r*lL(u),I=r*lA(u),D=i*lL(l),A=i*lA(l),p<lI)){var z=function(t,e,n,r,i,o,a,s){var l=n-t,u=r-e,h=a-i,c=s-o,d=c*l-h*u;if(!(d*d<1e-4))return d=(h*(e-o)-c*(t-i))/d,[t+d*l,e+d*u]}(L,$,D,A,T,I,P,O);if(z){var B=L-z[0],F=$-z[1],V=T-z[0],W=I-z[1],H=1/lA(l$((B*V+F*W)/(lE(B*B+F*F)*lE(V*V+W*W)))/2),G=lE(z[0]*z[0]+z[1]*z[1]);M=lR(S,(r-G)/(H+1)),C=lR(k,(i-G)/(H-1))}}}if(E)if(M>1e-4){var j=lR(y,M),U=lR(v,M),Z=lz(D,A,L,$,r,j,d),X=lz(T,I,P,O,r,U,d);t.moveTo(h+Z.cx+Z.x0,c+Z.cy+Z.y0),M<S&&j===U?t.arc(h+Z.cx,c+Z.cy,M,lP(Z.y0,Z.x0),lP(X.y0,X.x0),!d):(j>0&&t.arc(h+Z.cx,c+Z.cy,j,lP(Z.y0,Z.x0),lP(Z.y1,Z.x1),!d),t.arc(h,c,r,lP(Z.cy+Z.y1,Z.cx+Z.x1),lP(X.cy+X.y1,X.cx+X.x1),!d),U>0&&t.arc(h+X.cx,c+X.cy,U,lP(X.y1,X.x1),lP(X.y0,X.x0),!d))}else t.moveTo(h+L,c+$),t.arc(h,c,r,l,u,!d);else t.moveTo(h+L,c+$);if(i>1e-4&&E)if(C>1e-4){var j=lR(g,C),U=lR(m,C),Z=lz(P,O,T,I,i,-U,d),X=lz(L,$,D,A,i,-j,d);t.lineTo(h+Z.cx+Z.x0,c+Z.cy+Z.y0),C<k&&j===U?t.arc(h+Z.cx,c+Z.cy,C,lP(Z.y0,Z.x0),lP(X.y0,X.x0),!d):(U>0&&t.arc(h+Z.cx,c+Z.cy,U,lP(Z.y0,Z.x0),lP(Z.y1,Z.x1),!d),t.arc(h,c,i,lP(Z.cy+Z.y1,Z.cx+Z.x1),lP(X.cy+X.y1,X.cx+X.x1),d),j>0&&t.arc(h+X.cx,c+X.cy,j,lP(X.y1,X.x1),lP(X.y0,X.x0),!d))}else t.lineTo(h+P,c+O),t.arc(h,c,i,u,l,d);else t.lineTo(h+P,c+O)}else t.moveTo(h,c);t.closePath()}}}(t,e)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e}(a8);lF.prototype.type="sector";var lV=function(){this.cx=0,this.cy=0,this.r=0,this.r0=0},lW=function(t){function e(e){return t.call(this,e)||this}return tK(e,t),e.prototype.getDefaultShape=function(){return new lV},e.prototype.buildPath=function(t,e){var n=e.cx,r=e.cy,i=2*Math.PI;t.moveTo(n+e.r,r),t.arc(n,r,e.r,0,i,!1),t.moveTo(n+e.r0,r),t.arc(n,r,e.r0,0,i,!0)},e}(a8);function lH(t,e,n){var r=e.smooth,i=e.points;if(i&&i.length>=2){if(r){var o=function(t,e,n,r){var i,o,a,s,l=[],u=[],h=[],c=[];if(r){a=[1/0,1/0],s=[-1/0,-1/0];for(var d=0,p=t.length;d<p;d++)eJ(a,a,t[d]),e0(s,s,t[d]);eJ(a,a,r[0]),e0(s,s,r[1])}for(var d=0,p=t.length;d<p;d++){var f,g,m,y=t[d];if(n)i=t[d?d-1:p-1],o=t[(d+1)%p];else if(0===d||d===p-1){l.push([(f=t[d])[0],f[1]]);continue}else i=t[d-1],o=t[d+1];g=o,m=i,u[0]=g[0]-m[0],u[1]=g[1]-m[1],eX(u,u,e);var v=eY(y,i),_=eY(y,o),x=v+_;0!==x&&(v/=x,_/=x),eX(h,u,-v),eX(c,u,_);var b=eZ([],y,h),w=eZ([],y,c);r&&(e0(b,b,a),eJ(b,b,s),e0(w,w,a),eJ(w,w,s)),l.push(b),l.push(w)}return n&&l.push(l.shift()),l}(i,r,n,e.smoothConstraint);t.moveTo(i[0][0],i[0][1]);for(var a=i.length,s=0;s<(n?a:a-1);s++){var l=o[2*s],u=o[2*s+1],h=i[(s+1)%a];t.bezierCurveTo(l[0],l[1],u[0],u[1],h[0],h[1])}}else{t.moveTo(i[0][0],i[0][1]);for(var s=1,c=i.length;s<c;s++)t.lineTo(i[s][0],i[s][1])}n&&t.closePath()}}lW.prototype.type="ring";var lG=function(){this.points=null,this.smooth=0,this.smoothConstraint=null},lj=function(t){function e(e){return t.call(this,e)||this}return tK(e,t),e.prototype.getDefaultShape=function(){return new lG},e.prototype.buildPath=function(t,e){lH(t,e,!0)},e}(a8);lj.prototype.type="polygon";var lU=function(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null},lZ=function(t){function e(e){return t.call(this,e)||this}return tK(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new lU},e.prototype.buildPath=function(t,e){lH(t,e,!1)},e}(a8);lZ.prototype.type="polyline";var lX={},lY=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1},lq=function(t){function e(e){return t.call(this,e)||this}return tK(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new lY},e.prototype.buildPath=function(t,e){if(this.subPixelOptimize){var n,r,i,o,a=si(lX,e,this.style);n=a.x1,r=a.y1,i=a.x2,o=a.y2}else n=e.x1,r=e.y1,i=e.x2,o=e.y2;var s=e.percent;0!==s&&(t.moveTo(n,r),s<1&&(i=n*(1-s)+i*s,o=r*(1-s)+o*s),t.lineTo(i,o))},e.prototype.pointAt=function(t){var e=this.shape;return[e.x1*(1-t)+e.x2*t,e.y1*(1-t)+e.y2*t]},e}(a8);lq.prototype.type="line";var lQ=[],lK=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1};function lJ(t,e,n){var r=t.cpx2,i=t.cpy2;return null!=r||null!=i?[(n?ry:rm)(t.x1,t.cpx1,t.cpx2,t.x2,e),(n?ry:rm)(t.y1,t.cpy1,t.cpy2,t.y2,e)]:[(n?rw:rb)(t.x1,t.cpx1,t.x2,e),(n?rw:rb)(t.y1,t.cpy1,t.y2,e)]}var l0=function(t){function e(e){return t.call(this,e)||this}return tK(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new lK},e.prototype.buildPath=function(t,e){var n=e.x1,r=e.y1,i=e.x2,o=e.y2,a=e.cpx1,s=e.cpy1,l=e.cpx2,u=e.cpy2,h=e.percent;0!==h&&(t.moveTo(n,r),null==l||null==u?(h<1&&(rk(n,a,i,h,lQ),a=lQ[1],i=lQ[2],rk(r,s,o,h,lQ),s=lQ[1],o=lQ[2]),t.quadraticCurveTo(a,s,i,o)):(h<1&&(rx(n,a,l,i,h,lQ),a=lQ[1],l=lQ[2],i=lQ[3],rx(r,s,u,o,h,lQ),s=lQ[1],u=lQ[2],o=lQ[3]),t.bezierCurveTo(a,s,l,u,i,o)))},e.prototype.pointAt=function(t){return lJ(this.shape,t,!1)},e.prototype.tangentAt=function(t){var e,n=lJ(this.shape,t,!0),r=Math.sqrt((e=n)[0]*e[0]+e[1]*e[1]);return 0===r?(n[0]=0,n[1]=0):(n[0]=n[0]/r,n[1]=n[1]/r),n},e}(a8);l0.prototype.type="bezier-curve";var l1=function(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0},l2=function(t){function e(e){return t.call(this,e)||this}return tK(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new l1},e.prototype.buildPath=function(t,e){var n=e.cx,r=e.cy,i=Math.max(e.r,0),o=e.startAngle,a=e.endAngle,s=e.clockwise,l=Math.cos(o),u=Math.sin(o);t.moveTo(l*i+n,u*i+r),t.arc(n,r,i,o,a,!s)},e}(a8);l2.prototype.type="arc";var l5=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="compound",e}return tK(e,t),e.prototype._updatePathDirty=function(){for(var t=this.shape.paths,e=this.shapeChanged(),n=0;n<t.length;n++)e=e||t[n].shapeChanged();e&&this.dirtyShape()},e.prototype.beforeBrush=function(){this._updatePathDirty();for(var t=this.shape.paths||[],e=this.getGlobalScale(),n=0;n<t.length;n++)t[n].path||t[n].createPathProxy(),t[n].path.setScale(e[0],e[1],t[n].segmentIgnoreThreshold)},e.prototype.buildPath=function(t,e){for(var n=e.paths||[],r=0;r<n.length;r++)n[r].buildPath(t,n[r].shape,!0)},e.prototype.afterBrush=function(){for(var t=this.shape.paths||[],e=0;e<t.length;e++)t[e].pathUpdated()},e.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),a8.prototype.getBoundingRect.call(this)},e}(a8),l3=function(){function t(t){this.colorStops=t||[]}return t.prototype.addColorStop=function(t,e){this.colorStops.push({offset:t,color:e})},t}(),l4=function(t){function e(e,n,r,i,o,a){var s=t.call(this,o)||this;return s.x=e??0,s.y=n??0,s.x2=r??1,s.y2=i??0,s.type="linear",s.global=a||!1,s}return tK(e,t),e}(l3),l6=function(t){function e(e,n,r,i,o){var a=t.call(this,i)||this;return a.x=e??.5,a.y=n??.5,a.r=r??.5,a.type="radial",a.global=o||!1,a}return tK(e,t),e}(l3),l8=Math.min,l7=Math.max,l9=Math.abs,ut=[0,0],ue=[0,0],un=nF(),ur=un.minTv,ui=un.maxTv,uo=function(){function t(t,e){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new nw;for(var n=0;n<2;n++)this._axes[n]=new nw;t&&this.fromBoundingRect(t,e)}return t.prototype.fromBoundingRect=function(t,e){var n=this._corners,r=this._axes,i=t.x,o=t.y,a=i+t.width,s=o+t.height;if(n[0].set(i,o),n[1].set(a,o),n[2].set(a,s),n[3].set(i,s),e)for(var l=0;l<4;l++)n[l].transform(e);nw.sub(r[0],n[1],n[0]),nw.sub(r[1],n[3],n[0]),r[0].normalize(),r[1].normalize();for(var l=0;l<2;l++)this._origin[l]=r[l].dot(n[0])},t.prototype.intersect=function(t,e,n){var r=!0,i=!e;return e&&nw.set(e,0,0),un.reset(n,!i),!this._intersectCheckOneSide(this,t,i,1)&&(r=!1,i)||!this._intersectCheckOneSide(t,this,i,-1)&&(r=!1,i)||i||un.negativeSize||nw.copy(e,r?un.useDir?un.dirMinTv:ur:ui),r},t.prototype._intersectCheckOneSide=function(t,e,n,r){for(var i=!0,o=0;o<2;o++){var a=t._axes[o];if(t._getProjMinMaxOnAxis(o,t._corners,ut),t._getProjMinMaxOnAxis(o,e._corners,ue),un.negativeSize||ut[1]<ue[0]||ut[0]>ue[1]){if(i=!1,un.negativeSize||n)return i;var s=l9(ue[0]-ut[1]),l=l9(ut[0]-ue[1]);l8(s,l)>ui.len()&&(s<l?nw.scale(ui,a,-s*r):nw.scale(ui,a,l*r))}else if(!n){var s=l9(ue[0]-ut[1]),l=l9(ut[0]-ue[1]);(un.useDir||l8(s,l)<ur.len())&&((s<l||!un.bidirectional)&&(nw.scale(ur,a,s*r),un.useDir&&un.calcDirMTV()),(s>=l||!un.bidirectional)&&(nw.scale(ur,a,-l*r),un.useDir&&un.calcDirMTV()))}}return i},t.prototype._getProjMinMaxOnAxis=function(t,e,n){for(var r=this._axes[t],i=this._origin,o=e[0].dot(r)+i[t],a=o,s=o,l=1;l<e.length;l++){var u=e[l].dot(r)+i[t];a=l8(u,a),s=l7(u,s)}n[0]=a+un.touchThreshold,n[1]=s-un.touchThreshold,un.negativeSize=n[1]<n[0]},t}(),ua=[],us=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.notClear=!0,e.incremental=!0,e._displayables=[],e._temporaryDisplayables=[],e._cursor=0,e}return tK(e,t),e.prototype.traverse=function(t,e){t.call(e,this)},e.prototype.useStyle=function(){this.style={}},e.prototype.getCursor=function(){return this._cursor},e.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},e.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},e.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},e.prototype.addDisplayable=function(t,e){e?this._temporaryDisplayables.push(t):this._displayables.push(t),this.markRedraw()},e.prototype.addDisplayables=function(t,e){e=e||!1;for(var n=0;n<t.length;n++)this.addDisplayable(t[n],e)},e.prototype.getDisplayables=function(){return this._displayables},e.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},e.prototype.eachPendingDisplayable=function(t){for(var e=this._cursor;e<this._displayables.length;e++)t&&t(this._displayables[e]);for(var e=0;e<this._temporaryDisplayables.length;e++)t&&t(this._temporaryDisplayables[e])},e.prototype.update=function(){this.updateTransform();for(var t=this._cursor;t<this._displayables.length;t++){var e=this._displayables[t];e.parent=this,e.update(),e.parent=null}for(var t=0;t<this._temporaryDisplayables.length;t++){var e=this._temporaryDisplayables[t];e.parent=this,e.update(),e.parent=null}},e.prototype.getBoundingRect=function(){if(!this._rect){for(var t=new nN(1/0,1/0,-1/0,-1/0),e=0;e<this._displayables.length;e++){var n=this._displayables[e],r=n.getBoundingRect().clone();n.needLocalTransform()&&r.applyTransform(n.getLocalTransform(ua)),t.union(r)}this._rect=t}return this._rect},e.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e);if(this.getBoundingRect().contain(n[0],n[1])){for(var r=0;r<this._displayables.length;r++)if(this._displayables[r].contain(t,e))return!0}return!1},e}(ag),ul=oN();function uu(t,e,n,r,i,o,a){var s,l=!1;eS(i)?(a=o,o=i,i=null):eT(i)&&(o=i.cb,a=i.during,l=i.isFrom,s=i.removeOpt,i=i.dataIndex);var u="leave"===t;u||e.stopAnimation("leave");var h=function(t,e,n,r,i){if(e&&e.ecModel){var o,a=e.ecModel.getUpdatePayload();o=a&&a.animation}var s=e&&e.isAnimationEnabled(),l="update"===t;if(!s)return null;var u=void 0,h=void 0,c=void 0;return r?(u=r.duration??200,h=r.easing??"cubicOut",c=0):(u=e.getShallow(l?"animationDurationUpdate":"animationDuration"),h=e.getShallow(l?"animationEasingUpdate":"animationEasing"),c=e.getShallow(l?"animationDelayUpdate":"animationDelay")),o&&(null!=o.duration&&(u=o.duration),null!=o.easing&&(h=o.easing),null!=o.delay&&(c=o.delay)),eS(c)&&(c=c(n,i)),eS(u)&&(u=u(n)),{duration:u||0,delay:c,easing:h}}(t,r,i,u?s||{}:null,r&&r.getAnimationDelayParams?r.getAnimationDelayParams(e,i):null);if(h&&h.duration>0){var c={duration:h.duration,delay:h.delay||0,easing:h.easing,done:o,force:!!o||!!a,setToFinal:!u,scope:t,during:a};l?e.animateFrom(n,c):e.animateTo(n,c)}else e.stopAnimation(),l||e.attr(n),a&&a(1),o&&o()}function uh(t,e,n,r,i,o){uu("update",t,e,n,r,i,o)}function uc(t,e,n,r,i,o){uu("enter",t,e,n,r,i,o)}function ud(t){if(!t.__zr)return!0;for(var e=0;e<t.animators.length;e++)if("leave"===t.animators[e].scope)return!0;return!1}function up(t,e,n,r,i,o){ud(t)||uu("leave",t,e,n,r,i,o)}function uf(t,e,n,r){t.removeTextContent(),t.removeTextGuideLine(),up(t,{style:{opacity:0}},e,n,r)}function ug(t,e,n){function r(){t.parent&&t.parent.remove(t)}t.isGroup?t.traverse(function(t){t.isGroup||uf(t,e,n,r)}):uf(t,e,n,r)}function um(t){ul(t).oldStyle=t.style}var uy={},uv=["x","y"],u_=["width","height"],ux=function(t,e){var n=lS(t,e),r=lb;function i(t){var e=r.call(this,t)||this;return e.applyTransform=n.applyTransform,e.buildPath=n.buildPath,e}return tK(i,r),i};function ub(t,e){uy[t]=e}function uw(t,e,n,r){var i=new lb(lS(t,e));return n&&("center"===r&&(n=uk(n,i.getBoundingRect())),uM(i,n)),i}function uS(t,e,n){var r=new sn({style:{image:t,x:e.x,y:e.y,width:e.width,height:e.height},onload:function(t){if("center"===n){var i={width:t.width,height:t.height};r.setStyle(uk(e,i))}}});return r}function uk(t,e){var n,r=e.width/e.height,i=t.height*r;return n=i<=t.width?t.height:(i=t.width)/r,{x:t.x+t.width/2-i/2,y:t.y+t.height/2-n/2,width:i,height:n}}function uM(t,e){if(t.applyTransform){var n=t.getBoundingRect().calculateTransform(e);t.applyTransform(n)}}function uC(t,e){return si(t,t,{lineWidth:e}),t}function uT(t,e,n){return e&&!ef(e)&&(e=iF.getLocalTransform(e)),n&&(e=nb([],e)),eK([],t,e)}function uI(t,e,n){if(t&&e){var r,i=(r={},t.traverse(function(t){!t.isGroup&&t.anid&&(r[t.anid]=t)}),r);e.traverse(function(t){if(!t.isGroup&&t.anid){var e=i[t.anid];if(e){var r=o(t);t.attr(o(e)),uh(t,r,n,sC(t).dataIndex)}}})}function o(t){var e={x:t.x,y:t.y,rotation:t.rotation};return null!=t.shape&&(e.shape=el(t.shape)),e}}function uD(t,e,n){var r=eh({rectHover:!0},e),i=r.style={strokeNoScale:!0};if(n=n||{x:-1,y:-1,width:2,height:2},t)return 0===t.indexOf("image://")?(i.image=t.slice(8),ec(i,n),new sn(r)):uw(t.replace("path://",""),r,n,"center")}function uA(t,e,n,r,i,o,a,s){var l,u=n-t,h=r-e,c=a-i,d=s-o,p=c*h-u*d;if((l=p)<=1e-6&&l>=-1e-6)return!1;var f=t-i,g=e-o,m=(f*h-u*g)/p;if(m<0||m>1)return!1;var y=(f*d-c*g)/p;return!(y<0||y>1)}function uL(t,e,n,r,i){return null==e||(eC(e)?u$[0]=u$[1]=u$[2]=u$[3]=e:(u$[0]=e[0],u$[1]=e[1],u$[2]=e[2],u$[3]=e[3]),r&&(u$[0]=oo(0,u$[0]),u$[1]=oo(0,u$[1]),u$[2]=oo(0,u$[2]),u$[3]=oo(0,u$[3])),n&&(u$[0]=-u$[0],u$[1]=-u$[1],u$[2]=-u$[2],u$[3]=-u$[3]),uP(t,u$,"x","width",3,1,i&&i[0]||0),uP(t,u$,"y","height",0,2,i&&i[1]||0)),t}var u$=[0,0,0,0];function uP(t,e,n,r,i,o,a){var s=e[o]+e[i],l=t[r];t[r]+=s,a=oo(0,oi(a,l)),t[r]<a?(t[r]=a,t[n]+=e[i]>=0?-e[i]:e[o]>=0?l+e[o]:oa(s)>1e-8?(l-a)*e[i]/s:0):t[n]-=e[i]}function uO(t){var e=t.itemTooltipOption,n=t.componentModel,r=t.itemName,i=ek(e)?{formatter:e}:e,o=n.mainType,a=n.componentIndex,s={componentType:o,name:r,$vars:["name"]};s[o+"Index"]=a;var l=t.formatterParamsExtra;l&&eg(e_(l),function(t){eH(s,t)||(s[t]=l[t],s.$vars.push(t))});var u=sC(t.el);u.componentMainType=o,u.componentIndex=a,u.tooltipConfig={name:r,option:ec({content:r,encodeHTMLContent:!0,formatterParams:s},i)}}function uE(t,e){var n;t.isGroup&&(n=e(t)),n||t.traverse(e)}function uN(t,e){if(t)if(ew(t))for(var n=0;n<t.length;n++)uE(t[n],e);else uE(t,e)}function uR(t){return!t||oa(t[1])<uz&&oa(t[2])<uz||oa(t[0])<uz&&oa(t[3])<uz}var uz=1e-5;function uB(t,e){return t?nN.copy(t,e):e.clone()}function uF(t,e){return e?ny(t||ng(),e):void 0}function uV(t){return{z:t.get("z")||0,zlevel:t.get("zlevel")||0}}function uW(t,e,n){!function t(e,n,r,i){if(e.ignoreModelZ)return i;var o=e.getTextContent(),a=e.getTextGuideLine();if(e.isGroup)for(var s=e.childrenRef(),l=0;l<s.length;l++)i=oo(t(s[l],n,r,i),i);else e.z=n,e.zlevel=r,i=oo(e.z2||0,i);if(o&&(o.z=n,o.zlevel=r,isFinite(i)&&(o.z2=i+2)),a){var u=e.textGuideLineConfig;a.z=n,a.zlevel=r,isFinite(i)&&(a.z2=i+(u&&u.showAbove?1:-1))}return i}(t,e,n,-1/0)}ub("circle",lM),ub("ellipse",lT),ub("sector",lF),ub("ring",lW),ub("polygon",lj),ub("polyline",lZ),ub("rect",su),ub("line",lq),ub("bezierCurve",l0),ub("arc",l2);let uH=Object.freeze(Object.defineProperty({__proto__:null,Arc:l2,BezierCurve:l0,BoundingRect:nN,Circle:lM,CompoundPath:l5,Ellipse:lT,Group:i9,Image:sn,IncrementalDisplayable:us,Line:lq,LinearGradient:l4,OrientedBoundingRect:uo,Path:a8,Point:nw,Polygon:lj,Polyline:lZ,RadialGradient:l6,Rect:su,Ring:lW,Sector:lF,Text:sp,WH:u_,XY:uv,applyTransform:uT,calcZ2Range:function(t){var e=-1/0,n=1/0;function r(t){if(!(!t||t.isGroup)){var e=t.currentStates;if(e.length)for(var n=0;n<e.length;n++)i(t.states[e[n]]);i(t)}}function i(t){if(t){var r=t.z2;r>e&&(e=r),r<n&&(n=r)}}return uE(t,function(t){r(t),r(t.getTextContent()),r(t.getTextGuideLine())}),n>e&&(n=e=0),{min:n,max:e}},clipPointsByRect:function(t,e){return em(t,function(t){var n=t[0];n=oi(n=oo(n,e.x),e.x+e.width);var r=t[1];return[n,r=oi(r=oo(r,e.y),e.y+e.height)]})},clipRectByRect:function(t,e){var n=oo(t.x,e.x),r=oi(t.x+t.width,e.x+e.width),i=oo(t.y,e.y),o=oi(t.y+t.height,e.y+e.height);if(r>=n&&o>=i)return{x:n,y:i,width:r-n,height:o-i}},createIcon:uD,ensureCopyRect:uB,ensureCopyTransform:uF,expandOrShrinkRect:uL,extendPath:function(t,e){return ux(t,e)},extendShape:function(t){return a8.extend(t)},getShapeClass:function(t){if(uy.hasOwnProperty(t))return uy[t]},getTransform:function(t,e){for(var n=nm([]);t&&t!==e;)nv(n,t.getLocalTransform(),n),t=t.parent;return n},groupTransition:uI,initProps:uc,isBoundingRectAxisAligned:uR,isElementRemoved:ud,lineLineIntersect:uA,linePolygonIntersect:function(t,e,n,r,i){for(var o=0,a=i[i.length-1];o<i.length;o++){var s=i[o];if(uA(t,e,n,r,s[0],s[1],a[0],a[1]))return!0;a=s}},makeImage:uS,makePath:uw,mergePath:function(t,e){for(var n=[],r=t.length,i=0;i<r;i++){var o=t[i];n.push(o.getUpdatedPathProxy(!0))}var a=new a8(e);return a.createPathProxy(),a.buildPath=function(t){if(lw(t)){t.appendPath(n);var e=t.getContext();e&&t.rebuildPath(e,1)}},a},registerShape:ub,removeElement:up,removeElementWithFadeOut:ug,resizePath:uM,retrieveZInfo:uV,setTooltipConfig:uO,subPixelOptimize:sa,subPixelOptimizeLine:uC,subPixelOptimizeRect:function(t,e){return so(t,t,e),t},transformDirection:function(t,e,n){var r=0===e[4]||0===e[5]||0===e[0]?1:oa(2*e[4]/e[0]),i=0===e[4]||0===e[5]||0===e[2]?1:oa(2*e[4]/e[2]),o=["left"===t?-r:"right"===t?r:0,"top"===t?-i:"bottom"===t?i:0];return oa((o=uT(o,e,n))[0])>oa(o[1])?o[0]>0?"right":"left":o[1]>0?"bottom":"top"},traverseElements:uN,traverseUpdateZ:uW,updateProps:uh},Symbol.toStringTag,{value:"Module"}));var uG={};function uj(t,e,n){var r,i=t.labelFetcher,o=t.labelDataIndex,a=t.labelDimIndex,s=e.normal;i&&(r=i.getFormattedLabel(o,"normal",null,a,s&&s.get("formatter"),null!=n?{interpolatedValue:n}:null)),null==r&&(r=eS(t.defaultText)?t.defaultText(o,t,n):t.defaultText);for(var l={normal:r},u=0;u<s$.length;u++){var h,c,d=s$[u],p=e[d];l[d]=(h=i?i.getFormattedLabel(o,d,null,a,p&&p.get("formatter")):null,c=r,h??c)}return l}function uU(t,e,n,r){n=n||uG;for(var i=t instanceof sp,o=!1,a=0;a<sP.length;a++){var s=e[sP[a]];if(s&&s.getShallow("show")){o=!0;break}}var l=i?t:t.getTextContent();if(o){i||(l||(l=new sp,t.setTextContent(l)),t.stateProxy&&(l.stateProxy=t.stateProxy));var u=uj(n,e),h=e.normal,c=!!h.getShallow("show"),d=uX(h,r&&r.normal,n,!1,!i);d.text=u.normal,i||t.setTextConfig(uY(h,n,!1));for(var a=0;a<s$.length;a++){var p=s$[a],s=e[p];if(s){var f,g=l.ensureState(p),m=(f=s.getShallow("show"),!!(f??c));m!==c&&(g.ignore=!m),g.style=uX(s,r&&r[p],n,!0,!i),g.style.text=u[p],i||(t.ensureState(p).textConfig=uY(s,n,!0))}}l.silent=!!h.getShallow("silent"),null!=l.style.x&&(d.x=l.style.x),null!=l.style.y&&(d.y=l.style.y),l.ignore=!c,l.useStyle(d),l.dirty(),n.enableTextSetter&&(u0(l).setLabelText=function(t){var r=uj(n,e,t);!function(t,e){for(var n=0;n<s$.length;n++){var r=s$[n],i=e[r],o=t.ensureState(r);o.style=o.style||{},o.style.text=i}var a=t.currentStates.slice();t.clearStates(!0),t.setStyle({text:e.normal}),t.useStates(a,!0)}(l,r)})}else l&&(l.ignore=!0);t.dirty()}function uZ(t,e){e=e||"label";for(var n={normal:t.getModel(e)},r=0;r<s$.length;r++){var i=s$[r];n[i]=t.getModel([i,e])}return n}function uX(t,e,n,r,i){var o={};return function(t,e,n,r,i){n=n||uG;var o,a=e.ecModel,s=a&&a.option.textStyle,l=function(t){for(var e;t&&t!==t.ecModel;){var n=(t.option||uG).rich;if(n){e=e||{};for(var r=e_(n),i=0;i<r.length;i++)e[r[i]]=1}t=t.parentModel}return e}(e);if(l){o={};var u,h,c="richInheritPlainLabel",d=(u=e.get(c),h=a?a.get(c):void 0,u??h);for(var p in l)if(l.hasOwnProperty(p)){var f=e.getModel(["rich",p]);uJ(o[p]={},f,s,e,d,n,r,i,!1,!0)}}o&&(t.rich=o);var g=e.get("overflow");g&&(t.overflow=g);var m=e.get("lineOverflow");m&&(t.lineOverflow=m);var y=e.get("minMargin");if(null!=y)t.margin=[y=eC(y)?y/2:0,y,y,y],t.__marginType=u1.minMargin;else{var v=e.get("textMargin");null!=v&&(t.margin=eO(v),t.__marginType=u1.textMargin)}uJ(t,e,s,null,null,n,r,i,!0,!1)}(o,t,n,r,i),e&&eh(o,e),o}function uY(t,e,n){e=e||{};var r,i,o,a={},s=t.getShallow("rotate"),l=(r=t.getShallow("distance"),i=n?null:5,r??i),u=t.getShallow("offset");return"outside"===(o=t.getShallow("position")||(n?null:"inside"))&&(o=e.defaultOutsidePosition||"top"),null!=o&&(a.position=o),null!=u&&(a.offset=u),null!=s&&(a.rotation=s*=Math.PI/180),null!=l&&(a.distance=l),a.outsideFill="inherit"===t.get("color")?e.inheritColor||null:"auto",null!=e.autoOverflowArea&&(a.autoOverflowArea=e.autoOverflowArea),null!=e.layoutRect&&(a.layoutRect=e.layoutRect),a}var uq=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],uQ=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],uK=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function uJ(t,e,n,r,i,o,a,s,l,u){n=!a&&n||uG;var h=o&&o.inheritColor,c=e.getShallow("color"),d=e.getShallow("textBorderColor"),p=(v=e.getShallow("opacity"),_=n.opacity,v??_);("inherit"===c||"auto"===c)&&(c=h||null),("inherit"===d||"auto"===d)&&(d=h||null),s||(c=c||n.color,d=d||n.textBorderColor),null!=c&&(t.fill=c),null!=d&&(t.stroke=d);var f=(x=e.getShallow("textBorderWidth"),b=n.textBorderWidth,x??b);null!=f&&(t.lineWidth=f);var g=(w=e.getShallow("textBorderType"),S=n.textBorderType,w??S);null!=g&&(t.lineDash=g);var m=(k=e.getShallow("textBorderDashOffset"),M=n.textBorderDashOffset,k??M);null!=m&&(t.lineDashOffset=m),a||null!=p||u||(p=o&&o.defaultOpacity),null!=p&&(t.opacity=p),a||s||null!=t.fill||!o.inheritColor||(t.fill=o.inheritColor);for(var y=0;y<uq.length;y++){var v,_,x,b,w,S,k,M,C,T,I,D,A,L=uq[y],$=!1!==i&&r?(C=e.getShallow(L),T=r.getShallow(L),I=n[L],C??T??I):(D=e.getShallow(L),A=n[L],D??A);null!=$&&(t[L]=$)}for(var y=0;y<uQ.length;y++){var L=uQ[y],$=e.getShallow(L);null!=$&&(t[L]=$)}if(null==t.verticalAlign){var P=e.getShallow("baseline");null!=P&&(t.verticalAlign=P)}if(!l||!o.disableBox){for(var y=0;y<uK.length;y++){var L=uK[y],$=e.getShallow(L);null!=$&&(t[L]=$)}var O=e.getShallow("borderType");null!=O&&(t.borderDash=O),("auto"===t.backgroundColor||"inherit"===t.backgroundColor)&&h&&(t.backgroundColor=h),("auto"===t.borderColor||"inherit"===t.borderColor)&&h&&(t.borderColor=h)}}var u0=oN(),u1={minMargin:1,textMargin:2},u2=["textStyle","color"],u5=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],u3=new sp,u4=function(){function t(){}return t.prototype.getTextColor=function(t){var e=this.ecModel;return this.getShallow("color")||(!t&&e?e.get(u2):null)},t.prototype.getFont=function(){var t,e,n;return t={fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},n=(e=this.ecModel)&&e.getModel("textStyle"),eN([t.fontStyle||n&&n.getShallow("fontStyle")||"",t.fontWeight||n&&n.getShallow("fontWeight")||"",(t.fontSize||n&&n.getShallow("fontSize")||12)+"px",t.fontFamily||n&&n.getShallow("fontFamily")||"sans-serif"].join(" "))},t.prototype.getTextRect=function(t){for(var e={text:t,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},n=0;n<u5.length;n++)e[u5[n]]=this.getShallow(u5[n]);return u3.useStyle(e),u3.update(),u3.getBoundingRect()},t}(),u6=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],u8=oK(u6),u7=function(){function t(){}return t.prototype.getLineStyle=function(t){return u8(this,t)},t}(),u9=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],ht=oK(u9),he=function(){function t(){}return t.prototype.getItemStyle=function(t,e){return ht(this,t,e)},t}(),hn=function(){function t(t,e,n){this.parentModel=e,this.ecModel=n,this.option=t}return t.prototype.init=function(t,e,n){},t.prototype.mergeOption=function(t,e){eu(this.option,t,!0)},t.prototype.get=function(t,e){return null==t?this.option:this._doGet(this.parsePath(t),!e&&this.parentModel)},t.prototype.getShallow=function(t,e){var n=this.option,r=null==n?n:n[t];if(null==r&&!e){var i=this.parentModel;i&&(r=i.getShallow(t))}return r},t.prototype.getModel=function(e,n){var r=null!=e,i=r?this.parsePath(e):null;return new t(r?this._doGet(i):this.option,n=n||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(i)),this.ecModel)},t.prototype.isEmpty=function(){return null==this.option},t.prototype.restoreData=function(){},t.prototype.clone=function(){return new this.constructor(el(this.option))},t.prototype.parsePath=function(t){return"string"==typeof t?t.split("."):t},t.prototype.resolveParentPath=function(t){return t},t.prototype.isAnimationEnabled=function(){if(!t0.node&&this.option){if(null!=this.option.animation)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},t.prototype._doGet=function(t,e){var n=this.option;if(!t)return n;for(var r=0;r<t.length&&!(t[r]&&null==(n=n&&"object"==typeof n?n[t[r]]:null));r++);return null==n&&e&&(n=e._doGet(this.resolveParentPath(t),e.parentModel)),n},t}();oU(hn),ck=["__\0is_clz",oX++].join("_"),hn.prototype[ck]=!0,hn.isInstance=function(t){return!!(t&&t[ck])},ep(hn,u7),ep(hn,he),ep(hn,o0),ep(hn,u4);var hr=Math.round(10*Math.random());function hi(t){return[t||"",hr++].join("_")}function ho(t,e){return eu(eu({},t,!0),e,!0)}var ha={},hs={},hl=t0.domSupported&&(document.documentElement.lang||navigator.language||navigator.browserLanguage||"EN").toUpperCase().indexOf("ZH")>-1?"ZH":"EN";function hu(t,e){hs[t=t.toUpperCase()]=new hn(e),ha[t]=e}hu("EN",{time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst",custom:"Custom chart",chart:"Chart"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}}),hu("ZH",{time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图",custom:"自定义图表",chart:"图表"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType},",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}});var hh={year:/({yyyy}|{yy})/,month:/({MMMM}|{MMM}|{MM}|{M})/,day:/({dd}|{d})/,hour:/({HH}|{H}|{hh}|{h})/,minute:/({mm}|{m})/,second:/({ss}|{s})/,millisecond:/({SSS}|{S})/},hc={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}"},hd="{yyyy}-{MM}-{dd}",hp={year:"{yyyy}",month:"{yyyy}-{MM}",day:hd,hour:hd+" "+hc.hour,minute:hd+" "+hc.minute,second:hd+" "+hc.second,millisecond:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},hf=["year","month","day","hour","minute","second","millisecond"],hg=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function hm(t,e){return t+="","0000".substr(0,e-t.length)+t}function hy(t){switch(t){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return t}}function hv(t,e,n,r){var i=og(t),o=i[hb(n)](),a=i[hw(n)]()+1,s=Math.floor((a-1)/3)+1,l=i[hS(n)](),u=i["get"+(n?"UTC":"")+"Day"](),h=i[hk(n)](),c=(h-1)%12+1,d=i[hM(n)](),p=i[hC(n)](),f=i[hT(n)](),g=h>=12?"pm":"am",m=g.toUpperCase(),y=(r instanceof hn?r:hs[r||hl]||hs.EN).getModel("time"),v=y.get("month"),_=y.get("monthAbbr"),x=y.get("dayOfWeek"),b=y.get("dayOfWeekAbbr");return(e||"").replace(/{a}/g,g+"").replace(/{A}/g,m+"").replace(/{yyyy}/g,o+"").replace(/{yy}/g,hm(o%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,v[a-1]).replace(/{MMM}/g,_[a-1]).replace(/{MM}/g,hm(a,2)).replace(/{M}/g,a+"").replace(/{dd}/g,hm(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,x[u]).replace(/{ee}/g,b[u]).replace(/{e}/g,u+"").replace(/{HH}/g,hm(h,2)).replace(/{H}/g,h+"").replace(/{hh}/g,hm(c+"",2)).replace(/{h}/g,c+"").replace(/{mm}/g,hm(d,2)).replace(/{m}/g,d+"").replace(/{ss}/g,hm(p,2)).replace(/{s}/g,p+"").replace(/{SSS}/g,hm(f,3)).replace(/{S}/g,f+"")}function h_(t,e){var n=og(t),r=n[hw(e)]()+1,i=n[hS(e)](),o=n[hk(e)](),a=n[hM(e)](),s=n[hC(e)](),l=0===n[hT(e)](),u=l&&0===s,h=u&&0===a,c=h&&0===o,d=c&&1===i;return d&&1===r?"year":d?"month":c?"day":h?"hour":u?"minute":l?"second":"millisecond"}function hx(t,e,n){switch(e){case"year":t[hI(n)](0);case"month":t[hD(n)](1);case"day":t[hA(n)](0);case"hour":t[hL(n)](0);case"minute":t[h$(n)](0);case"second":t[hP(n)](0)}return t}function hb(t){return t?"getUTCFullYear":"getFullYear"}function hw(t){return t?"getUTCMonth":"getMonth"}function hS(t){return t?"getUTCDate":"getDate"}function hk(t){return t?"getUTCHours":"getHours"}function hM(t){return t?"getUTCMinutes":"getMinutes"}function hC(t){return t?"getUTCSeconds":"getSeconds"}function hT(t){return t?"getUTCMilliseconds":"getMilliseconds"}function hI(t){return t?"setUTCMonth":"setMonth"}function hD(t){return t?"setUTCDate":"setDate"}function hA(t){return t?"setUTCHours":"setHours"}function hL(t){return t?"setUTCMinutes":"setMinutes"}function h$(t){return t?"setUTCSeconds":"setSeconds"}function hP(t){return t?"setUTCMilliseconds":"setMilliseconds"}function hO(t){if(isNaN(ov(t)))return ek(t)?t:"-";var e=(t+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function hE(t,e){return t=(t||"").toLowerCase().replace(/-(.)/g,function(t,e){return e.toUpperCase()}),e&&t&&(t=t.charAt(0).toUpperCase()+t.slice(1)),t}function hN(t,e,n){function r(t){return t&&eN(t)?t:"-"}function i(t){return!!(null!=t&&!isNaN(t)&&isFinite(t))}var o="time"===e,a=t instanceof Date;if(o||a){var s=o?og(t):t;if(!isNaN(+s))return hv(s,"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}",n);if(a)return"-"}if("ordinal"===e)return eM(t)?r(t):eC(t)&&i(t)?t+"":"-";var l=ov(t);return i(l)?hO(l):eM(t)?r(t):"boolean"==typeof t?t+"":"-"}var hR=["a","b","c","d","e","f","g"],hz=function(t,e){return"{"+t+(e??"")+"}"};function hB(t,e,n){ew(e)||(e=[e]);var r=e.length;if(!r)return"";for(var i=e[0].$vars||[],o=0;o<i.length;o++){var a=hR[o];t=t.replace(hz(a),hz(a,0))}for(var s=0;s<r;s++)for(var l=0;l<i.length;l++){var u=e[s][i[l]];t=t.replace(hz(hR[l],s),n?nr(u):u)}return t}function hF(t,e){return e=e||"transparent",ek(t)?t:eT(t)&&t.colorStops&&(t.colorStops[0]||{}).color||e}function hV(t,e){if("_blank"===e||"blank"===e){var n=window.open();n.opener=null,n.location.href=t}else window.open(t,e)}var hW={},hH={},hG=function(){function t(){this._normalMasterList=[],this._nonSeriesBoxMasterList=[]}return t.prototype.create=function(t,e){this._nonSeriesBoxMasterList=n(hW,!0),this._normalMasterList=n(hH,!1);function n(n,r){var i=[];return eg(n,function(n,r){var o=n.create(t,e);i=i.concat(o||[])}),i}},t.prototype.update=function(t,e){eg(this._normalMasterList,function(n){n.update&&n.update(t,e)})},t.prototype.getCoordinateSystems=function(){return this._normalMasterList.concat(this._nonSeriesBoxMasterList)},t.register=function(t,e){if("matrix"===t||"calendar"===t){hW[t]=e;return}hH[t]=e},t.get=function(t){return hH[t]||hW[t]},t}(),hj=eV(),hU=["left","right","top","bottom","width","height"],hZ=[["width","left","right"],["height","top","bottom"]];function hX(t,e,n,r,i){var o=0,a=0;null==r&&(r=1/0),null==i&&(i=1/0);var s=0;e.eachChild(function(l,u){var h,c,d=l.getBoundingRect(),p=e.childAt(u+1),f=p&&p.getBoundingRect();if("horizontal"===t){var g=d.width+(f?-f.x+d.x:0);(h=o+g)>r||l.newline?(o=0,h=g,a+=s+n,s=d.height):s=Math.max(s,d.height)}else{var m=d.height+(f?-f.y+d.y:0);(c=a+m)>i||l.newline?(o+=s+n,a=0,c=m,s=d.width):s=Math.max(s,d.width)}l.newline||(l.x=o,l.y=a,l.markRedraw(),"horizontal"===t?o=h+n:a=c+n)})}function hY(t,e,n){n=eO(n||0);var r=e.width,i=e.height,o=ol(t.left,r),a=ol(t.top,i),s=ol(t.right,r),l=ol(t.bottom,i),u=ol(t.width,r),h=ol(t.height,i),c=n[2]+n[0],d=n[1]+n[3],p=t.aspect;switch(isNaN(u)&&(u=r-s-d-o),isNaN(h)&&(h=i-l-c-a),null!=p&&(isNaN(u)&&isNaN(h)&&(p>r/i?u=.8*r:h=.8*i),isNaN(u)&&(u=p*h),isNaN(h)&&(h=u/p)),isNaN(o)&&(o=r-s-u-d),isNaN(a)&&(a=i-l-h-c),t.left||t.right){case"center":o=r/2-u/2-n[3];break;case"right":o=r-u-d}switch(t.top||t.bottom){case"middle":case"center":a=i/2-h/2-n[0];break;case"bottom":a=i-h-c}o=o||0,a=a||0,isNaN(u)&&(u=r-d-o-(s||0)),isNaN(h)&&(h=i-c-a-(l||0));var f=new nN((e.x||0)+o+n[3],(e.y||0)+a+n[0],u,h);return f.margin=n,f}eb(hX,"vertical"),eb(hX,"horizontal");var hq=1,hQ=2;function hK(t,e,n){var r,i,o,a,s=t.boxCoordinateSystem;if(s){var l=function(t){var e=t.getShallow("coord",!0),n=1;if(null==e){var r=hj.get(t.type);r&&r.getCoord2&&(n=2,e=r.getCoord2(t))}return{coord:e,from:n}}(t),u=l.coord,h=l.from;if(s.dataToLayout){o=hq,a=h;var c=s.dataToLayout(u);r=c.contentRect||c.rect}else n&&n.enableLayoutOnlyByCenter&&s.dataToPoint&&(o=hQ,a=h,i=s.dataToPoint(u))}return null==o&&(o=hq),o===hq&&(r||(r={x:0,y:0,width:e.getWidth(),height:e.getHeight()}),i=[r.x+r.width/2,r.y+r.height/2]),{type:o,refContainer:r,refPoint:i,boxCoordFrom:a}}function hJ(t){var e=t.layoutMode||t.constructor.layoutMode;return eT(e)?e:e?{type:e}:null}function h0(t,e,n){var r=n&&n.ignoreSize;ew(r)||(r=[r,r]);var i=a(hZ[0],0),o=a(hZ[1],1);function a(n,i){var o={},a=0,l={},u=0;if(eg(n,function(e){l[e]=t[e]}),eg(n,function(t){eH(e,t)&&(o[t]=l[t]=e[t]),s(o,t)&&a++,s(l,t)&&u++}),r[i])return s(e,n[1])?l[n[2]]=null:s(e,n[2])&&(l[n[1]]=null),l;if(2===u||!a)return l;if(a>=2)return o;for(var h=0;h<n.length;h++){var c=n[h];if(!eH(o,c)&&eH(t,c)){o[c]=t[c];break}}return o}function s(t,e){return null!=t[e]&&"auto"!==t[e]}function l(t,e,n){eg(t,function(t){e[t]=n[t]})}l(hZ[0],t,i),l(hZ[1],t,o)}function h1(t){var e,n;return e={},(n=t)&&e&&eg(hU,function(t){eH(n,t)&&(e[t]=n[t])}),e}var h2=oN(),h5=function(t){var e;function n(e,n,r){var i=t.call(this,e,n,r)||this;return i.uid=hi("ec_cpt_model"),i}return tK(n,t),n.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n)},n.prototype.mergeDefaultAndTheme=function(t,e){var n=hJ(this),r=n?h1(t):{};eu(t,e.getTheme().get(this.mainType)),eu(t,this.getDefaultOption()),n&&h0(t,r,n)},n.prototype.mergeOption=function(t,e){eu(this.option,t,!0);var n=hJ(this);n&&h0(this.option,t,n)},n.prototype.optionUpdated=function(t,e){},n.prototype.getDefaultOption=function(){var t=this.constructor;if(!(t&&t[oG]))return t.defaultOption;var e=h2(this);if(!e.defaultOption){for(var n=[],r=t;r;){var i=r.prototype.defaultOption;i&&n.push(i),r=r.superClass}for(var o={},a=n.length-1;a>=0;a--)o=eu(o,n[a],!0);e.defaultOption=o}return e.defaultOption},n.prototype.getReferringComponents=function(t,e){return oV(this.ecModel,t,{index:this.get(t+"Index",!0),id:this.get(t+"Id",!0)},e)},n.prototype.getBoxLayoutParams=function(){return{left:this.getShallow("left",!1),top:this.getShallow("top",!1),right:this.getShallow("right",!1),bottom:this.getShallow("bottom",!1),width:this.getShallow("width",!1),height:this.getShallow("height",!1)}},n.prototype.getZLevelKey=function(){return""},n.prototype.setZLevel=function(t){this.option.zlevel=t},n.protoInitialize=void((e=n.prototype).type="component",e.id="",e.name="",e.mainType="",e.subType="",e.componentIndex=0),n}(hn);oZ(h5,hn),oQ(h5),cM={},h5.registerSubTypeDefaulter=function(t,e){cM[oj(t).main]=e},h5.determineSubType=function(t,e){var n=e.type;if(!n){var r=oj(t).main;h5.hasSubTypes(t)&&cM[r]&&(n=cM[r](e))}return n};var h3=function(t){var e=[];return eg(h5.getClassesByMainType(t),function(t){e=e.concat(t.dependencies||t.prototype.dependencies||[])}),e=em(e,function(t){return oj(t).main}),"dataset"!==t&&0>=ed(e,"dataset")&&e.unshift("dataset"),e};function h4(t,e){return t[e]||(t[e]={predecessor:[],successor:[]}),t[e]}h5.topologicalTravel=function(t,e,n,r){if(t.length){var i,o,a,s=(o={},a=[],eg(i=e,function(t){var e,n,r,s=h4(o,t),l=(e=s.originalDeps=h3(t),n=i,r=[],eg(e,function(t){ed(n,t)>=0&&r.push(t)}),r);s.entryCount=l.length,0===s.entryCount&&a.push(t),eg(l,function(e){0>ed(s.predecessor,e)&&s.predecessor.push(e);var n=h4(o,e);0>ed(n.successor,e)&&n.successor.push(t)})}),{graph:o,noEntryList:a}),l=s.graph,u=s.noEntryList,h={};for(eg(t,function(t){h[t]=!0});u.length;){var c=u.pop(),d=l[c],p=!!h[c];p&&(n.call(r,c,d.originalDeps.slice()),delete h[c]),eg(d.successor,p?g:f)}eg(h,function(){throw Error("")})}function f(t){l[t].entryCount--,0===l[t].entryCount&&u.push(t)}function g(t){h[t]=!0,f(t)}};var h6={color:{},darkColor:{},size:{}},h8=h6.color={theme:["#5070dd","#b6d634","#505372","#ff994d","#0ca8df","#ffd10a","#fb628b","#785db0","#3fbe95"],neutral00:"#fff",neutral05:"#f4f7fd",neutral10:"#e8ebf0",neutral15:"#dbdee4",neutral20:"#cfd2d7",neutral25:"#c3c5cb",neutral30:"#b7b9be",neutral35:"#aaacb2",neutral40:"#9ea0a5",neutral45:"#929399",neutral50:"#86878c",neutral55:"#797b7f",neutral60:"#6d6e73",neutral65:"#616266",neutral70:"#54555a",neutral75:"#48494d",neutral80:"#3c3c41",neutral85:"#303034",neutral90:"#232328",neutral95:"#17171b",neutral99:"#000",accent05:"#eff1f9",accent10:"#e0e4f2",accent15:"#d0d6ec",accent20:"#c0c9e6",accent25:"#b1bbdf",accent30:"#a1aed9",accent35:"#91a0d3",accent40:"#8292cc",accent45:"#7285c6",accent50:"#6578ba",accent55:"#5c6da9",accent60:"#536298",accent65:"#4a5787",accent70:"#404c76",accent75:"#374165",accent80:"#2e3654",accent85:"#252b43",accent90:"#1b2032",accent95:"#121521",transparent:"rgba(0,0,0,0)",highlight:"rgba(255,231,130,0.8)"};for(var h7 in eh(h8,{primary:h8.neutral80,secondary:h8.neutral70,tertiary:h8.neutral60,quaternary:h8.neutral50,disabled:h8.neutral20,border:h8.neutral30,borderTint:h8.neutral20,borderShade:h8.neutral40,background:h8.neutral05,backgroundTint:"rgba(234,237,245,0.5)",backgroundTransparent:"rgba(255,255,255,0)",backgroundShade:h8.neutral10,shadow:"rgba(0,0,0,0.2)",shadowTint:"rgba(129,130,136,0.2)",axisLine:h8.neutral70,axisLineTint:h8.neutral40,axisTick:h8.neutral70,axisTickMinor:h8.neutral60,axisLabel:h8.neutral70,axisSplitLine:h8.neutral15,axisMinorSplitLine:h8.neutral05}),h8)if(h8.hasOwnProperty(h7)){var h9=h8[h7];"theme"===h7?h6.darkColor.theme=h8.theme.slice():"highlight"===h7?h6.darkColor.highlight="rgba(255,231,130,0.4)":0===h7.indexOf("accent")?h6.darkColor[h7]=rj(h9,null,function(t){return .5*t},function(t){return Math.min(1,1.3-t)}):h6.darkColor[h7]=rj(h9,null,function(t){return .9*t},function(t){return 1-Math.pow(t,1.5)})}h6.size={xxs:2,xs:5,s:10,m:15,l:20,xl:30,xxl:40,xxxl:50};var ct="";"u">typeof navigator&&(ct=navigator.platform||"");var ce="rgba(0, 0, 0, 0.2)",cn=h6.color.theme[0],cr=rj(cn,null,null,.9);let ci={darkMode:"auto",colorBy:"series",color:h6.color.theme,gradientColor:[cr,cn],aria:{decal:{decals:[{color:ce,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:ce,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:ce,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:ce,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:ce,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:ce,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:ct.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 co=eV(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),ca="original",cs="arrayRows",cl="objectRows",cu="keyedColumns",ch="typedArray",cc="unknown",cd="column",cp=oN();function cf(t,e,n){var r={},i=cm(e);if(!i||!t)return r;var o,a,s=[],l=[],u=cp(e.ecModel).datasetMap,h=i.uid+"_"+n.seriesLayoutBy;eg(t=t.slice(),function(e,n){var i=eT(e)?e:t[n]={name:e};"ordinal"===i.type&&null==o&&(o=n,a=p(i)),r[i.name]=[]});var c=u.get(h)||u.set(h,{categoryWayDim:a,valueWayDim:0});function d(t,e,n){for(var r=0;r<n;r++)t.push(e+r)}function p(t){var e=t.dimsDef;return e?e.length:1}return eg(t,function(t,e){var n=t.name,i=p(t);if(null==o){var a=c.valueWayDim;d(r[n],a,i),d(l,a,i),c.valueWayDim+=i}else if(o===e)d(r[n],0,i),d(s,0,i);else{var a=c.categoryWayDim;d(r[n],a,i),d(l,a,i),c.categoryWayDim+=i}}),s.length&&(r.itemName=s),l.length&&(r.seriesName=l),r}function cg(t,e,n){var r={};if(!cm(t))return r;var i,o=e.sourceFormat,a=e.dimensionsDefine;(o===cl||o===cu)&&eg(a,function(t,e){(eT(t)?t.name:t)==="name"&&(i=e)});var s=function(){for(var t={},r={},s=[],l=0,u=Math.min(5,n);l<u;l++){var h=cv(e.data,o,e.seriesLayoutBy,a,e.startIndex,l);s.push(h);var c=3===h;if(c&&null==t.v&&l!==i&&(t.v=l),null!=t.n&&t.n!==t.v&&(c||3!==s[t.n])||(t.n=l),d(t)&&3!==s[t.n])return t;c||(2===h&&null==r.v&&l!==i&&(r.v=l),(null==r.n||r.n===r.v)&&(r.n=l))}function d(t){return null!=t.v&&null!=t.n}return d(t)?t:d(r)?r:null}();if(s){r.value=[s.v];var l=i??s.n;r.itemName=[l],r.seriesName=[l]}return r}function cm(t){if(!t.get("data",!0))return oV(t.ecModel,"dataset",{index:t.get("datasetIndex",!0),id:t.get("datasetId",!0)},oF).models[0]}function cy(t,e){return cv(t.data,t.sourceFormat,t.seriesLayoutBy,t.dimensionsDefine,t.startIndex,e)}function cv(t,e,n,r,i,o){var a,s,l;if(eD(t))return 3;if(r){var u=r[o];eT(u)?(a=u.name,s=u.type):ek(u)&&(a=u)}if(null!=s)return"ordinal"===s?1:3;if(e===cs)if("row"===n){for(var h=t[o],c=0;c<(h||[]).length&&c<5;c++)if(null!=(l=g(h[i+c])))return l}else for(var c=0;c<t.length&&c<5;c++){var d=t[i+c];if(d&&null!=(l=g(d[o])))return l}else if(e===cl){if(!a)return 3;for(var c=0;c<t.length&&c<5;c++){var p=t[c];if(p&&null!=(l=g(p[a])))return l}}else if(e===cu){if(!a)return 3;var h=t[a];if(!h||eD(h))return 3;for(var c=0;c<h.length&&c<5;c++)if(null!=(l=g(h[c])))return l}else if(e===ca)for(var c=0;c<t.length&&c<5;c++){var p=t[c],f=oD(p);if(!ew(f))return 3;if(null!=(l=g(f[o])))return l}function g(t){var e=ek(t);return null!=t&&Number.isFinite(Number(t))&&""!==t?e?2:3:e&&"-"!==t?1:void 0}return 3}var c_=eV(),cx=oN();oN();var cb,cw,cS,ck,cM,cC,cT,cI,cD,cA,cL=function(){function t(){}return t.prototype.getColorFromPalette=function(t,e,n){return function(t,e,n,r,i,o,a){var s=e(o=o||t),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(i))return u[i];var h=null!=a&&r?function(t,e){for(var n=t.length,r=0;r<n;r++)if(t[r].length>e)return t[r];return t[n-1]}(r,a):n;if(!(!(h=h||n)||!h.length)){var c=h[l];return i&&(u[i]=c),s.paletteIdx=(l+1)%h.length,c}}(this,cx,oC(this.get("color",!0)),this.get("colorLayer",!0),t,e,n)},t.prototype.clearColorPalette=function(){var t,e;t=this,(e=cx)(t).paletteIdx=0,e(t).paletteNameMap={}},t}(),c$="\0_ec_inner",cP=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return tK(e,t),e.prototype.init=function(t,e,n,r,i,o){r=r||{},this.option=null,this._theme=new hn(r),this._locale=new hn(i),this._optionManager=o},e.prototype.setOption=function(t,e,n){var r=cN(e);this._optionManager.setOption(t,n,r),this._resetOption(null,r)},e.prototype.resetOption=function(t,e){return this._resetOption(t,cN(e))},e.prototype._resetOption=function(t,e){var n=!1,r=this._optionManager;if(!t||"recreate"===t){var i=r.mountOption("recreate"===t);this.option&&"recreate"!==t?(this.restoreData(),this._mergeOption(i,e)):cA(this,i),n=!0}if(("timeline"===t||"media"===t)&&this.restoreData(),!t||"recreate"===t||"timeline"===t){var o=r.getTimelineOption(this);o&&(n=!0,this._mergeOption(o,e))}if(!t||"recreate"===t||"media"===t){var a=r.getMediaOption(this);a.length&&eg(a,function(t){n=!0,this._mergeOption(t,e)},this)}return n},e.prototype.mergeOption=function(t){this._mergeOption(t,null)},e.prototype._mergeOption=function(t,e){var n=this.option,r=this._componentsMap,i=this._componentsCount,o=[],a=eV(),s=e&&e.replaceMergeMainTypeMap;cp(this).datasetMap=eV(),eg(t,function(t,e){null!=t&&(h5.hasClass(e)?e&&(o.push(e),a.set(e,!0)):n[e]=null==n[e]?el(t):eu(n[e],t,!0))}),s&&s.each(function(t,e){h5.hasClass(e)&&!a.get(e)&&(o.push(e),a.set(e,!0))}),h5.topologicalTravel(o,h5.getAllClassMainTypes(),function(e){var o=function(t,e,n){var r=c_.get(e);if(!r)return n;var i=r(t);return i?n.concat(i):n}(this,e,oC(t[e])),a=r.get(e),l=a?s&&s.get(e)?"replaceMerge":"normalMerge":"replaceAll",u=(w=a,S=o,k="normalMerge"===l,M="replaceMerge"===l,C="replaceAll"===l,w=w||[],S=(S||[]).slice(),T=eV(),eg(S,function(t,e){if(!eT(t)){S[e]=null;return}}),I=function(t,e,n){var r=[];if("replaceAll"===n)return r;for(var i=0;i<t.length;i++){var o=t[i];o&&null!=o.id&&e.set(o.id,i),r.push({existing:"replaceMerge"===n||oO(o)?null:o,newOption:null,keyInfo:null,brandNew:null})}return r}(w,T,l),(k||M)&&(h=I,c=w,d=T,eg(p=S,function(t,e){if(!(!t||null==t.id)){var n=oL(t.id),r=d.get(n);if(null!=r){var i=h[r];eE(!i.newOption,'Duplicated option on id "'+n+'".'),i.newOption=t,i.existing=c[r],p[e]=null}}})),k&&(f=I,eg(g=S,function(t,e){if(!(!t||null==t.name))for(var n=0;n<f.length;n++){var r=f[n].existing;if(!f[n].newOption&&r&&(null==r.id||null==t.id)&&!oO(t)&&!oO(r)&&oA("name",r,t)){f[n].newOption=t,g[e]=null;return}}})),k||M?(m=I,y=S,v=M,eg(y,function(t){if(t){for(var e,n=0;(e=m[n])&&(e.newOption||oO(e.existing)||e.existing&&null!=t.id&&!oA("id",t,e.existing));)n++;e?(e.newOption=t,e.brandNew=v):m.push({newOption:t,brandNew:v,existing:null,keyInfo:null}),n++}})):C&&(_=I,eg(S,function(t){_.push({newOption:t,brandNew:!0,existing:null,keyInfo:null})})),x=I,b=eV(),eg(x,function(t){var e=t.existing;e&&b.set(e.id,t)}),eg(x,function(t){var e=t.newOption;eE(!e||null==e.id||!b.get(e.id)||b.get(e.id)===t,"id duplicates: "+(e&&e.id)),e&&null!=e.id&&b.set(e.id,t),t.keyInfo||(t.keyInfo={})}),eg(x,function(t,e){var n=t.existing,r=t.newOption,i=t.keyInfo;if(eT(r)){if(i.name=null!=r.name?oL(r.name):n?n.name:oM+e,n)i.id=oL(n.id);else if(null!=r.id)i.id=oL(r.id);else{var o=0;do i.id="\0"+i.name+"\0"+o++;while(b.get(i.id))}b.set(i.id,t)}}),I);eg(u,function(t){var n,r,i,o,a=t.newOption;eT(a)&&(t.keyInfo.mainType=e,t.keyInfo.subType=(n=e,r=a,i=t.existing,o=h5,r.type?r.type:i?i.subType:o.determineSubType(n,r)))}),n[e]=null,r.set(e,null),i.set(e,0);var h,c,d,p,f,g,m,y,v,_,x,b,w,S,k,M,C,T,I,D,A=[],L=[],$=0;eg(u,function(t,n){var r=t.existing,i=t.newOption;if(i){var o="series"===e,a=h5.getClass(e,t.keyInfo.subType,!o);if(!a)return;if("tooltip"===e){if(D)return;D=!0}if(r&&r.constructor===a)r.name=t.keyInfo.name,r.mergeOption(i,this),r.optionUpdated(i,!1);else{var s=eh({componentIndex:n},t.keyInfo);eh(r=new a(i,this,this,s),s),t.brandNew&&(r.__requireNewView=!0),r.init(i,this,this),r.optionUpdated(null,!0)}}else r&&(r.mergeOption({},this),r.optionUpdated({},!1));r?(A.push(r.option),L.push(r),$++):(A.push(void 0),L.push(void 0))},this),n[e]=A,r.set(e,L),i.set(e,$),"series"===e&&cI(this)},this),this._seriesIndices||cI(this)},e.prototype.getOption=function(){var t=el(this.option);return eg(t,function(e,n){if(h5.hasClass(n)){for(var r=oC(e),i=r.length,o=!1,a=i-1;a>=0;a--)r[a]&&!oO(r[a])?o=!0:(r[a]=null,!o&&i--);r.length=i,t[n]=r}}),delete t[c$],t},e.prototype.setTheme=function(t){this._theme=new hn(t),this._resetOption("recreate",null)},e.prototype.getTheme=function(){return this._theme},e.prototype.getLocaleModel=function(){return this._locale},e.prototype.setUpdatePayload=function(t){this._payload=t},e.prototype.getUpdatePayload=function(){return this._payload},e.prototype.getComponent=function(t,e){var n=this._componentsMap.get(t);if(n){var r=n[e||0];if(r)return r;if(null==e){for(var i=0;i<n.length;i++)if(n[i])return n[i]}}},e.prototype.queryComponents=function(t){var e,n=t.mainType;if(!n)return[];var r=t.index,i=t.id,o=t.name,a=this._componentsMap.get(n);return a&&a.length?(null!=r?(e=[],eg(oC(r),function(t){a[t]&&e.push(a[t])})):e=null!=i?cO("id",i,a):null!=o?cO("name",o,a):ev(a,function(t){return!!t}),cE(e,t)):[]},e.prototype.findComponents=function(t){var e,n,r,i,o,a=t.query,s=t.mainType,l=(e=a,n=s+"Index",r=s+"Id",i=s+"Name",e&&(null!=e[n]||null!=e[r]||null!=e[i])?{mainType:s,index:e[n],id:e[r],name:e[i]}:null);return o=cE(l?this.queryComponents(l):ev(this._componentsMap.get(s),function(t){return!!t}),t),t.filter?ev(o,t.filter):o},e.prototype.eachComponent=function(t,e,n){var r=this._componentsMap;if(eS(t))r.each(function(n,r){for(var i=0;n&&i<n.length;i++){var o=n[i];o&&t.call(e,r,o,o.componentIndex)}});else for(var i=ek(t)?r.get(t):eT(t)?this.findComponents(t):null,o=0;i&&o<i.length;o++){var a=i[o];a&&e.call(n,a,a.componentIndex)}},e.prototype.getSeriesByName=function(t){var e=o$(t,null);return ev(this._componentsMap.get("series"),function(t){return!!t&&null!=e&&t.name===e})},e.prototype.getSeriesByIndex=function(t){return this._componentsMap.get("series")[t]},e.prototype.getSeriesByType=function(t){return ev(this._componentsMap.get("series"),function(e){return!!e&&e.subType===t})},e.prototype.getSeries=function(){return ev(this._componentsMap.get("series"),function(t){return!!t})},e.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},e.prototype.eachSeries=function(t,e){cD(this),eg(this._seriesIndices,function(n){var r=this._componentsMap.get("series")[n];t.call(e,r,n)},this)},e.prototype.eachRawSeries=function(t,e){eg(this._componentsMap.get("series"),function(n){n&&t.call(e,n,n.componentIndex)})},e.prototype.eachSeriesByType=function(t,e,n){cD(this),eg(this._seriesIndices,function(r){var i=this._componentsMap.get("series")[r];i.subType===t&&e.call(n,i,r)},this)},e.prototype.eachRawSeriesByType=function(t,e,n){return eg(this.getSeriesByType(t),e,n)},e.prototype.isSeriesFiltered=function(t){return cD(this),null==this._seriesIndicesMap.get(t.componentIndex)},e.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},e.prototype.filterSeries=function(t,e){cD(this);var n=[];eg(this._seriesIndices,function(r){var i=this._componentsMap.get("series")[r];t.call(e,i,r)&&n.push(r)},this),this._seriesIndices=n,this._seriesIndicesMap=eV(n)},e.prototype.restoreData=function(t){cI(this);var e=this._componentsMap,n=[];e.each(function(t,e){h5.hasClass(e)&&n.push(e)}),h5.topologicalTravel(n,h5.getAllClassMainTypes(),function(n){eg(e.get(n),function(e){e&&("series"!==n||!function(t,e){if(e){var n=e.seriesIndex,r=e.seriesId,i=e.seriesName;return null!=n&&t.componentIndex!==n||null!=r&&t.id!==r||null!=i&&t.name!==i}}(e,t))&&e.restoreData()})})},e.internalField=void(cI=function(t){var e=t._seriesIndices=[];eg(t._componentsMap.get("series"),function(t){t&&e.push(t.componentIndex)}),t._seriesIndicesMap=eV(e)},cD=function(t){},cA=function(t,e){t.option={},t.option[c$]=1,t._componentsMap=eV({series:[]}),t._componentsCount=eV();var n,r,i,o=e.aria;eT(o)&&null==o.enabled&&(o.enabled=!0),n=e,r=t._theme.option,i=n.color&&!n.colorLayer,eg(r,function(t,e){"colorLayer"===e&&i||"color"===e&&n.color||h5.hasClass(e)||("object"==typeof t?n[e]=n[e]?eu(n[e],t,!1):el(t):null==n[e]&&(n[e]=t))}),eu(e,ci,!1),t._mergeOption(e,null)}),e}(hn);function cO(t,e,n){if(ew(e)){var r=eV();return eg(e,function(t){null!=t&&null!=o$(t,null)&&r.set(t,!0)}),ev(n,function(e){return e&&r.get(e[t])})}var i=o$(e,null);return ev(n,function(e){return e&&null!=i&&e[t]===i})}function cE(t,e){return e.hasOwnProperty("subType")?ev(t,function(t){return t&&t.subType===e.subType}):t}function cN(t){var e=eV();return t&&eg(oC(t.replaceMerge),function(t){e.set(t,!0)}),{replaceMergeMainTypeMap:e}}ep(cP,cL);var cR=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],cz=function(t){eg(cR,function(e){this[e]=ex(t[e],t)},this)},cB=/^(min|max)?(.+)$/,cF=function(){function t(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}return t.prototype.setOption=function(t,e,n){t&&(eg(oC(t.series),function(t){t&&t.data&&eD(t.data)&&(t.data[eR]=!0)}),eg(oC(t.dataset),function(t){t&&t.source&&eD(t.source)&&(t.source[eR]=!0)})),t=el(t);var r=this._optionBackup,i=function(t,e,n){var r,i,o=[],a=t.baseOption,s=t.timeline,l=t.options,u=t.media,h=!!t.media,c=!!(l||s||a&&a.timeline);function d(t){eg(e,function(e){e(t,n)})}return a?(i=a).timeline||(i.timeline=s):((c||h)&&(t.options=t.media=null),i=t),h&&ew(u)&&eg(u,function(t){t&&t.option&&(t.query?o.push(t):r||(r=t))}),d(i),eg(l,function(t){return d(t)}),eg(o,function(t){return d(t.option)}),{baseOption:i,timelineOptions:l||[],mediaDefault:r,mediaList:o}}(t,e,!r);this._newBaseOption=i.baseOption,r?(i.timelineOptions.length&&(r.timelineOptions=i.timelineOptions),i.mediaList.length&&(r.mediaList=i.mediaList),i.mediaDefault&&(r.mediaDefault=i.mediaDefault)):this._optionBackup=i},t.prototype.mountOption=function(t){var e=this._optionBackup;return this._timelineOptions=e.timelineOptions,this._mediaList=e.mediaList,this._mediaDefault=e.mediaDefault,this._currentMediaIndices=[],el(t?e.baseOption:this._newBaseOption)},t.prototype.getTimelineOption=function(t){var e,n=this._timelineOptions;if(n.length){var r=t.getComponent("timeline");r&&(e=el(n[r.getCurrentIndex()]))}return e},t.prototype.getMediaOption=function(t){var e,n,r=this._api.getWidth(),i=this._api.getHeight(),o=this._mediaList,a=this._mediaDefault,s=[],l=[];if(!o.length&&!a)return l;for(var u=0,h=o.length;u<h;u++)(function(t,e,n){var r={width:e,height:n,aspectratio:e/n},i=!0;return eg(t,function(t,e){var n=e.match(cB);if(!(!n||!n[1]||!n[2])){var o,a,s,l=n[1];o=r[n[2].toLowerCase()],a=t,("min"===(s=l)?o>=a:"max"===s?o<=a:o===a)||(i=!1)}}),i})(o[u].query,r,i)&&s.push(u);return!s.length&&a&&(s=[-1]),s.length&&(e=s,n=this._currentMediaIndices,e.join(",")!==n.join(","))&&(l=em(s,function(t){return el(-1===t?a.option:o[t].option)})),this._currentMediaIndices=s,l},t}(),cV=eT,cW=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function cH(t){var e=t&&t.itemStyle;if(e)for(var n=0,r=cW.length;n<r;n++){var i=cW[n],o=e.normal,a=e.emphasis;o&&o[i]&&(t[i]=t[i]||{},t[i].normal?eu(t[i].normal,o[i]):t[i].normal=o[i],o[i]=null),a&&a[i]&&(t[i]=t[i]||{},t[i].emphasis?eu(t[i].emphasis,a[i]):t[i].emphasis=a[i],a[i]=null)}}function cG(t,e,n){if(t&&t[e]&&(t[e].normal||t[e].emphasis)){var r=t[e].normal,i=t[e].emphasis;r&&(n?(t[e].normal=t[e].emphasis=null,ec(t[e],r)):t[e]=r),i&&(t.emphasis=t.emphasis||{},t.emphasis[e]=i,i.focus&&(t.emphasis.focus=i.focus),i.blurScope&&(t.emphasis.blurScope=i.blurScope))}}function cj(t){cG(t,"itemStyle"),cG(t,"lineStyle"),cG(t,"areaStyle"),cG(t,"label"),cG(t,"labelLine"),cG(t,"upperLabel"),cG(t,"edgeLabel")}function cU(t,e){var n=cV(t)&&t[e],r=cV(n)&&n.textStyle;if(r)for(var i=0,o=oI.length;i<o;i++){var a=oI[i];r.hasOwnProperty(a)&&(n[a]=r[a])}}function cZ(t){t&&(cj(t),cU(t,"label"),t.emphasis&&cU(t.emphasis,"label"))}function cX(t){return ew(t)?t:t?[t]:[]}function cY(t){return(ew(t)?t[0]:t)||{}}function cq(t){t&&eg(cQ,function(e){e[0]in t&&!(e[1]in t)&&(t[e[1]]=t[e[0]])})}var cQ=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],cK=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],cJ=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function c0(t){var e=t&&t.itemStyle;if(e)for(var n=0;n<cJ.length;n++){var r=cJ[n][1],i=cJ[n][0];null!=e[r]&&(e[i]=e[r])}}function c1(t){t&&"edge"===t.alignTo&&null!=t.margin&&null==t.edgeDistance&&(t.edgeDistance=t.margin)}function c2(t){t&&t.downplay&&!t.blur&&(t.blur=t.downplay)}function c5(t,e){var n;eg(cX(t.series),function(t){cV(t)&&function(t){if(cV(t)){cH(t),cj(t),cU(t,"label"),cU(t,"upperLabel"),cU(t,"edgeLabel"),t.emphasis&&(cU(t.emphasis,"label"),cU(t.emphasis,"upperLabel"),cU(t.emphasis,"edgeLabel"));var e=t.markPoint;e&&(cH(e),cZ(e));var n=t.markLine;n&&(cH(n),cZ(n));var r=t.markArea;r&&cZ(r);var i=t.data;if("graph"===t.type){i=i||t.nodes;var o=t.links||t.edges;if(o&&!eD(o))for(var a=0;a<o.length;a++)cZ(o[a]);eg(t.categories,function(t){cj(t)})}if(i&&!eD(i))for(var a=0;a<i.length;a++)cZ(i[a]);if((e=t.markPoint)&&e.data)for(var s=e.data,a=0;a<s.length;a++)cZ(s[a]);if((n=t.markLine)&&n.data)for(var l=n.data,a=0;a<l.length;a++)ew(l[a])?(cZ(l[a][0]),cZ(l[a][1])):cZ(l[a]);"gauge"===t.type?(cU(t,"axisLabel"),cU(t,"title"),cU(t,"detail")):"treemap"===t.type?(cG(t.breadcrumb,"itemStyle"),eg(t.levels,function(t){cj(t)})):"tree"===t.type&&cj(t.leaves)}}(t)}),n=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"],e&&n.push("valueAxis","categoryAxis","logAxis","timeAxis"),eg(n,function(e){eg(cX(t[e]),function(t){t&&(cU(t,"axisLabel"),cU(t.axisPointer,"label"))})}),eg(cX(t.parallel),function(t){var e=t&&t.parallelAxisDefault;cU(e,"axisLabel"),cU(e&&e.axisPointer,"label")}),eg(cX(t.calendar),function(t){cG(t,"itemStyle"),cU(t,"dayLabel"),cU(t,"monthLabel"),cU(t,"yearLabel")}),eg(cX(t.radar),function(t){cU(t,"name"),t.name&&null==t.axisName&&(t.axisName=t.name,delete t.name),null!=t.nameGap&&null==t.axisNameGap&&(t.axisNameGap=t.nameGap,delete t.nameGap)}),eg(cX(t.geo),function(t){cV(t)&&(cZ(t),eg(cX(t.regions),function(t){cZ(t)}))}),eg(cX(t.timeline),function(t){cZ(t),cG(t,"label"),cG(t,"itemStyle"),cG(t,"controlStyle",!0);var e=t.data;ew(e)&&eg(e,function(t){eT(t)&&(cG(t,"label"),cG(t,"itemStyle"))})}),eg(cX(t.toolbox),function(t){cG(t,"iconStyle"),eg(t.feature,function(t){cG(t,"iconStyle")})}),cU(cY(t.axisPointer),"label"),cU(cY(t.tooltip).axisPointer,"label"),t.series=oC(t.series),eg(t.series,function(t){if(eT(t)){var e=t.type;if("line"===e)null!=t.clipOverflow&&(t.clip=t.clipOverflow);else if("pie"===e||"gauge"===e){null!=t.clockWise&&(t.clockwise=t.clockWise),c1(t.label);var n=t.data;if(n&&!eD(n))for(var r=0;r<n.length;r++)c1(n[r]);null!=t.hoverOffset&&(t.emphasis=t.emphasis||{},t.emphasis.scaleSize=null)}else if("gauge"===e){var i=function(t,e){for(var n=e.split(","),r=t,i=0;i<n.length&&null!=(r=r&&r[n[i]]);i++);return r}(t,"pointer.color");null!=i&&function(t,e,n){for(var r,i=e.split(","),o=t,a=0;a<i.length-1;a++)null==o[r=i[a]]&&(o[r]={}),o=o[r];null==o[i[a]]&&(o[i[a]]=n)}(t,"itemStyle.color",i)}else if("bar"===e){c0(t),c0(t.backgroundStyle),c0(t.emphasis);var n=t.data;if(n&&!eD(n))for(var r=0;r<n.length;r++)"object"==typeof n[r]&&(c0(n[r]),c0(n[r]&&n[r].emphasis))}else if("sunburst"===e){var o=t.highlightPolicy;o&&(t.emphasis=t.emphasis||{},t.emphasis.focus||(t.emphasis.focus=o)),c2(t),function t(e,n){if(e)for(var r=0;r<e.length;r++)n(e[r]),e[r]&&t(e[r].children,n)}(t.data,c2)}else"graph"===e||"sankey"===e?t&&null!=t.focusNodeAdjacency&&(t.emphasis=t.emphasis||{},null==t.emphasis.focus&&(t.emphasis.focus="adjacency")):"map"===e&&(t.mapType&&!t.map&&(t.map=t.mapType),t.mapLocation&&ec(t,t.mapLocation));null!=t.hoverAnimation&&(t.emphasis=t.emphasis||{},t.emphasis&&null==t.emphasis.scale&&(t.emphasis.scale=t.hoverAnimation)),cq(t)}}),t.dataRange&&(t.visualMap=t.dataRange),eg(cK,function(e){var n=t[e];n&&(ew(n)||(n=[n]),eg(n,function(t){cq(t)}))})}var c3=function(t){this.data=t.data||(t.sourceFormat===cu?{}:[]),this.sourceFormat=t.sourceFormat||cc,this.seriesLayoutBy=t.seriesLayoutBy||cd,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var e=this.dimensionsDefine=t.dimensionsDefine;if(e)for(var n=0;n<e.length;n++){var r=e[n];null==r.type&&1===cy(this,n)&&(r.type="ordinal")}};function c4(t){return t instanceof c3}function c6(t,e,n){n=n||c7(t);var r=e.seriesLayoutBy,i=function(t,e,n,r,i){var o,a;if(!t)return{dimensionsDefine:c9(i),startIndex:a,dimensionsDetectedCount:o};if(e===cs)"auto"===r||null==r?dt(function(t){null!=t&&"-"!==t&&(ek(t)?null==a&&(a=1):a=0)},n,t,10):a=eC(r)?r:+!!r,i||1!==a||(i=[],dt(function(t,e){i[e]=null!=t?t+"":""},n,t,1/0)),o=i?i.length:"row"===n?t.length:t[0]?t[0].length:null;else if(e===cl)i||(i=function(t){for(var e,n=0;n<t.length&&!(e=t[n++]););if(e)return e_(e)}(t));else if(e===cu)i||(i=[],eg(t,function(t,e){i.push(e)}));else if(e===ca){var s=oD(t[0]);o=ew(s)&&s.length||1}return{startIndex:a,dimensionsDefine:c9(i),dimensionsDetectedCount:o}}(t,n,r,e.sourceHeader,e.dimensions);return new c3({data:t,sourceFormat:n,seriesLayoutBy:r,dimensionsDefine:i.dimensionsDefine,startIndex:i.startIndex,dimensionsDetectedCount:i.dimensionsDetectedCount,metaRawOption:el(e)})}function c8(t){return new c3({data:t,sourceFormat:eD(t)?ch:ca})}function c7(t){var e=cc;if(eD(t))e=ch;else if(ew(t)){0===t.length&&(e=cs);for(var n=0,r=t.length;n<r;n++){var i=t[n];if(null!=i){if(ew(i)||eD(i)){e=cs;break}else if(eT(i)){e=cl;break}}}}else if(eT(t)){for(var o in t)if(eH(t,o)&&ef(t[o])){e=cu;break}}return e}function c9(t){if(t){var e=eV();return em(t,function(t,n){var r={name:(t=eT(t)?t:{name:t}).name,displayName:t.displayName,type:t.type};if(null==r.name)return r;r.name+="",null==r.displayName&&(r.displayName=r.name);var i=e.get(r.name);return i?r.name+="-"+i.count++:e.set(r.name,{count:1}),r})}}function dt(t,e,n,r){if("row"===e)for(var i=0;i<n.length&&i<r;i++)t(n[i]?n[i][0]:null,i);else for(var o=n[0]||[],i=0;i<o.length&&i<r;i++)t(o[i],i)}function de(t){var e=t.sourceFormat;return e===cl||e===cu}var dn,dr,di,da,ds,dl,du=function(){var t;function e(t,e){var n=c4(t)?t:c8(t);this._source=n;var r=this._data=n.data,i=n.sourceFormat;n.seriesLayoutBy,i===ch&&(this._offset=0,this._dimSize=e,this._data=r),dl(this,r,n)}return e.prototype.getSource=function(){return this._source},e.prototype.count=function(){return 0},e.prototype.getItem=function(t,e){},e.prototype.appendData=function(t){},e.prototype.clean=function(){},e.protoInitialize=void((t=e.prototype).pure=!1,t.persistent=!0),e.internalField=function(){dl=function(t,i,o){var a=o.sourceFormat,s=o.seriesLayoutBy,l=o.startIndex,u=o.dimensionsDefine;(eh(t,ds[dy(a,s)]),a===ch)?(t.getItem=e,t.count=r,t.fillStorage=n):(t.getItem=ex(dd[dy(a,s)],null,i,l,u),t.count=ex(df[dy(a,s)],null,i,l,u))};var t,e=function(t,e){t-=this._offset,e=e||[];for(var n=this._data,r=this._dimSize,i=r*t,o=0;o<r;o++)e[o]=n[i+o];return e},n=function(t,e,n,r){for(var i=this._data,o=this._dimSize,a=0;a<o;a++){for(var s=r[a],l=null==s[0]?1/0:s[0],u=null==s[1]?-1/0:s[1],h=e-t,c=n[a],d=0;d<h;d++){var p=i[d*o+a];c[t+d]=p,p<l&&(l=p),p>u&&(u=p)}s[0]=l,s[1]=u}},r=function(){return this._data?this._data.length/this._dimSize:0};function i(t){for(var e=0;e<t.length;e++)this._data.push(t[e])}(t={})[cs+"_"+cd]={pure:!0,appendData:i},t[cs+"_row"]={pure:!0,appendData:function(){throw Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[cl]={pure:!0,appendData:i},t[cu]={pure:!0,appendData:function(t){var e=this._data;eg(t,function(t,n){for(var r=e[n]||(e[n]=[]),i=0;i<(t||[]).length;i++)r.push(t[i])})}},t[ca]={appendData:i},t[ch]={persistent:!1,pure:!0,appendData:function(t){this._data=t},clean:function(){this._offset+=this.count(),this._data=null}},ds=t}(),e}(),dh=function(t){ew(t)||oS("series.data or dataset.source must be an array.")},dc=((dn={})[cs+"_"+cd]=dh,dn[cs+"_row"]=dh,dn[cl]=dh,dn[cu]=function(t,e){for(var n=0;n<e.length;n++)null==e[n].name&&oS("dimension name must not be null/undefined.")},dn[ca]=dh,function(t,e,n,r){return t[r]}),dd=((dr={})[cs+"_"+cd]=function(t,e,n,r){return t[r+e]},dr[cs+"_row"]=function(t,e,n,r,i){r+=e;for(var o=i||[],a=0;a<t.length;a++){var s=t[a];o[a]=s?s[r]:null}return o},dr[cl]=dc,dr[cu]=function(t,e,n,r,i){for(var o=i||[],a=0;a<n.length;a++){var s=n[a].name,l=null!=s?t[s]:null;o[a]=l?l[r]:null}return o},dr[ca]=dc,dr),dp=function(t,e,n){return t.length},df=((di={})[cs+"_"+cd]=function(t,e,n){return Math.max(0,t.length-e)},di[cs+"_row"]=function(t,e,n){var r=t[0];return r?Math.max(0,r.length-e):0},di[cl]=dp,di[cu]=function(t,e,n){var r=n[0].name,i=null!=r?t[r]:null;return i?i.length:0},di[ca]=dp,di),dg=function(t,e,n){return t[e]},dm=((da={})[cs]=dg,da[cl]=function(t,e,n){return t[n]},da[cu]=dg,da[ca]=function(t,e,n){var r=oD(t);return r instanceof Array?r[e]:r},da[ch]=dg,da);function dy(t,e){return t===cs?t+"_"+e:t}function dv(t,e,n){if(t){var r=t.getRawDataItem(e);if(null!=r){var i=t.getStore(),o=i.getSource().sourceFormat;if(null!=n){var a=t.getDimensionIndex(n),s=i.getDimensionProperty(a);return dm[o](r,a,s)}var l=r;return o===ca&&(l=oD(r)),l}}}var d_=/\{@(.+?)\}/g,dx=function(){function t(){}return t.prototype.getDataParams=function(t,e){var n=this.getData(e),r=this.getRawValue(t,e),i=n.getRawIndex(t),o=n.getName(t),a=n.getRawDataItem(t),s=n.getItemVisual(t,"style"),l=s&&s[n.getItemVisual(t,"drawType")||"fill"],u=s&&s.stroke,h=this.mainType,c="series"===h,d=n.userOutput&&n.userOutput.get();return{componentType:h,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:c?this.subType:null,seriesIndex:this.seriesIndex,seriesId:c?this.id:null,seriesName:c?this.name:null,name:o,dataIndex:i,data:a,dataType:e,value:r,color:l,borderColor:u,dimensionNames:d?d.fullDimensions:null,encode:d?d.encode:null,$vars:["seriesName","name","value"]}},t.prototype.getFormattedLabel=function(t,e,n,r,i,o){e=e||"normal";var a=this.getData(n),s=this.getDataParams(t,n);return(o&&(s.value=o.interpolatedValue),null!=r&&ew(s.value)&&(s.value=s.value[r]),i||(i=a.getItemModel(t).get("normal"===e?["label","formatter"]:[e,"label","formatter"])),eS(i))?(s.status=e,s.dimensionIndex=r,i(s)):ek(i)?hB(i,s).replace(d_,function(e,n){var r=n.length,i=n;"["===i.charAt(0)&&"]"===i.charAt(r-1)&&(i=+i.slice(1,r-1));var s=dv(a,t,i);if(o&&ew(o.interpolatedValue)){var l=a.getDimensionIndex(i);l>=0&&(s=o.interpolatedValue[l])}return null!=s?s+"":""}):void 0},t.prototype.getRawValue=function(t,e){return dv(this.getData(e),t)},t.prototype.formatTooltip=function(t,e,n){},t}();function db(t){var e,n;return eT(t)?t.type&&(n=t):e=t,{text:e,frag:n}}function dw(t){return new dS(t)}var dS=function(){function t(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return t.prototype.perform=function(t){var e,n,r,i,o=this._upstream,a=t&&t.skip;if(this._dirty&&o){var s=this.context;s.data=s.outputData=o.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this),this._plan&&!a&&(r=this._plan(this.context));var l=((e=this._modBy)>=1||(e=1),e),u=this._modDataCount||0,h=((n=t&&t.modBy)>=1||(n=1),n),c=t&&t.modDataCount||0;(l!==h||u!==c)&&(r="reset"),(this._dirty||"reset"===r)&&(this._dirty=!1,i=this._doReset(a)),this._modBy=h,this._modDataCount=c;var d=t&&t.step;if(o?this._dueEnd=o._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var p=this._dueIndex,f=Math.min(null!=d?this._dueIndex+d:1/0,this._dueEnd);if(!a&&(i||p<f)){var g=this._progress;if(ew(g))for(var m=0;m<g.length;m++)this._doProgress(g[m],p,f,h,c);else this._doProgress(g,p,f,h,c)}this._dueIndex=f;var y=null!=this._settedOutputEnd?this._settedOutputEnd:f;this._outputDueEnd=y}else this._dueIndex=this._outputDueEnd=null!=this._settedOutputEnd?this._settedOutputEnd:this._dueEnd;return this.unfinished()},t.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},t.prototype._doProgress=function(t,e,n,r,i){dk.reset(e,n,r,i),this._callingProgress=t,this._callingProgress({start:e,end:n,count:n-e,next:dk.next},this.context)},t.prototype._doReset=function(t){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null,!t&&this._reset&&((e=this._reset(this.context))&&e.progress&&(n=e.forceFirstProgress,e=e.progress),ew(e)&&!e.length&&(e=null)),this._progress=e,this._modBy=this._modDataCount=null;var e,n,r=this._downstream;return r&&r.dirty(),n},t.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},t.prototype.pipe=function(t){(this._downstream!==t||this._dirty)&&(this._downstream=t,t._upstream=this,t.dirty())},t.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},t.prototype.getUpstream=function(){return this._upstream},t.prototype.getDownstream=function(){return this._downstream},t.prototype.setOutputEnd=function(t){this._outputDueEnd=this._settedOutputEnd=t},t}(),dk=function(){var t,e,n,r,i,o={reset:function(l,u,h,c){e=l,t=u,n=h,i=Math.ceil((r=c)/n),o.next=n>1&&r>0?s:a}};return o;function a(){return e<t?e++:null}function s(){var o=e%i*n+Math.ceil(e/i),a=e>=t?null:o<r?o:e;return e++,a}}();function dM(t,e){var n=e&&e.type;return"ordinal"===n?t:("time"!==n||eC(t)||null==t||"-"===t||(t=+og(t)),null==t||""===t?NaN:Number(t))}eV({number:function(t){return parseFloat(t)},time:function(t){return+og(t)},trim:function(t){return ek(t)?eN(t):t}});var dC=function(){function t(t,e){var n="desc"===t;this._resultLT=n?1:-1,null==e&&(e=n?"min":"max"),this._incomparable="min"===e?-1/0:1/0}return t.prototype.evaluate=function(t,e){var n=eC(t)?t:ov(t),r=eC(e)?e:ov(e),i=isNaN(n),o=isNaN(r);if(i&&(n=this._incomparable),o&&(r=this._incomparable),i&&o){var a=ek(t),s=ek(e);a&&(n=s?t:0),s&&(r=a?e:0)}return n<r?this._resultLT:n>r?-this._resultLT:0},t}(),dT=function(){function t(){}return t.prototype.getRawData=function(){throw Error("not supported")},t.prototype.getRawDataItem=function(t){throw Error("not supported")},t.prototype.cloneRawData=function(){},t.prototype.getDimensionInfo=function(t){},t.prototype.cloneAllDimensionInfo=function(){},t.prototype.count=function(){},t.prototype.retrieveValue=function(t,e){},t.prototype.retrieveValueFromItem=function(t,e){},t.prototype.convertValue=function(t,e){return dM(t,e)},t}();function dI(t){return dP(t.sourceFormat)||ok(""),t.data}function dD(t){var e=t.sourceFormat,n=t.data;if(dP(e)||ok(""),e===cs){for(var r=[],i=0,o=n.length;i<o;i++)r.push(n[i].slice());return r}if(e===cl){for(var r=[],i=0,o=n.length;i<o;i++)r.push(eh({},n[i]));return r}}function dA(t,e,n){if(null!=n){if(eC(n)||!isNaN(n)&&!eH(e,n))return t[n];if(eH(e,n))return e[n]}}function dL(t){return el(t)}var d$=eV();function dP(t){return t===cs||t===cl}var dO,dE="undefined",dN=typeof Uint32Array===dE?Array:Uint32Array,dR=typeof Uint16Array===dE?Array:Uint16Array,dz=typeof Int32Array===dE?Array:Int32Array,dB=typeof Float64Array===dE?Array:Float64Array,dF={float:dB,int:dz,ordinal:Array,number:Array,time:dB};function dV(t){return t>65535?dN:dR}function dW(){return[1/0,-1/0]}function dH(t,e,n,r,i){var o=dF[n||"float"];if(i){var a=t[e],s=a&&a.length;if(s!==r){for(var l=new o(r),u=0;u<s;u++)l[u]=a[u];t[e]=l}}else t[e]=new o(r)}var dG=function(){function t(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=eV()}return t.prototype.initData=function(t,e,n){this._provider=t,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var r=t.getSource(),i=this.defaultDimValueGetter=dO[r.sourceFormat];this._dimValueGetter=n||i,this._rawExtent=[],de(r),this._dimensions=em(e,function(t){return{type:t.type,property:t.property}}),this._initDataFromProvider(0,t.count())},t.prototype.getProvider=function(){return this._provider},t.prototype.getSource=function(){return this._provider.getSource()},t.prototype.ensureCalculationDimension=function(t,e){var n=this._calcDimNameToIdx,r=this._dimensions,i=n.get(t);if(null!=i){if(r[i].type===e)return i}else i=r.length;return r[i]={type:e},n.set(t,i),this._chunks[i]=new dF[e||"float"](this._rawCount),this._rawExtent[i]=dW(),i},t.prototype.collectOrdinalMeta=function(t,e){var n=this._chunks[t],r=this._dimensions[t],i=this._rawExtent,o=r.ordinalOffset||0,a=n.length;0===o&&(i[t]=dW());for(var s=i[t],l=o;l<a;l++){var u=n[l]=e.parseAndCollect(n[l]);isNaN(u)||(s[0]=Math.min(u,s[0]),s[1]=Math.max(u,s[1]))}r.ordinalMeta=e,r.ordinalOffset=a,r.type="ordinal"},t.prototype.getOrdinalMeta=function(t){return this._dimensions[t].ordinalMeta},t.prototype.getDimensionProperty=function(t){var e=this._dimensions[t];return e&&e.property},t.prototype.appendData=function(t){var e=this._provider,n=this.count();e.appendData(t);var r=e.count();return e.persistent||(r+=n),n<r&&this._initDataFromProvider(n,r,!0),[n,r]},t.prototype.appendValues=function(t,e){for(var n=this._chunks,r=this._dimensions,i=r.length,o=this._rawExtent,a=this.count(),s=a+Math.max(t.length,e||0),l=0;l<i;l++){var u=r[l];dH(n,l,u.type,s,!0)}for(var h=[],c=a;c<s;c++)for(var d=c-a,p=0;p<i;p++){var u=r[p],f=dO.arrayRows.call(this,t[d]||h,u.property,d,p);n[p][c]=f;var g=o[p];f<g[0]&&(g[0]=f),f>g[1]&&(g[1]=f)}return this._rawCount=this._count=s,{start:a,end:s}},t.prototype._initDataFromProvider=function(t,e,n){for(var r=this._provider,i=this._chunks,o=this._dimensions,a=o.length,s=this._rawExtent,l=em(o,function(t){return t.property}),u=0;u<a;u++){var h=o[u];s[u]||(s[u]=dW()),dH(i,u,h.type,e,n)}if(r.fillStorage)r.fillStorage(t,e,i,s);else for(var c=[],d=t;d<e;d++){c=r.getItem(d,c);for(var p=0;p<a;p++){var f=i[p],g=this._dimValueGetter(c,l[p],d,p);f[d]=g;var m=s[p];g<m[0]&&(m[0]=g),g>m[1]&&(m[1]=g)}}!r.persistent&&r.clean&&r.clean(),this._rawCount=this._count=e,this._extent=[]},t.prototype.count=function(){return this._count},t.prototype.get=function(t,e){if(!(e>=0&&e<this._count))return NaN;var n=this._chunks[t];return n?n[this.getRawIndex(e)]:NaN},t.prototype.getValues=function(t,e){var n=[],r=[];if(null==e){e=t,t=[];for(var i=0;i<this._dimensions.length;i++)r.push(i)}else r=t;for(var i=0,o=r.length;i<o;i++)n.push(this.get(r[i],e));return n},t.prototype.getByRawIndex=function(t,e){if(!(e>=0&&e<this._rawCount))return NaN;var n=this._chunks[t];return n?n[e]:NaN},t.prototype.getSum=function(t){var e=this._chunks[t],n=0;if(e)for(var r=0,i=this.count();r<i;r++){var o=this.get(t,r);isNaN(o)||(n+=o)}return n},t.prototype.getMedian=function(t){var e=[];this.each([t],function(t){isNaN(t)||e.push(t)});var n=e.sort(function(t,e){return t-e}),r=this.count();return 0===r?0:r%2==1?n[(r-1)/2]:(n[r/2]+n[r/2-1])/2},t.prototype.indexOfRawIndex=function(t){if(t>=this._rawCount||t<0)return -1;if(!this._indices)return t;var e=this._indices,n=e[t];if(null!=n&&n<this._count&&n===t)return t;for(var r=0,i=this._count-1;r<=i;){var o=(r+i)/2|0;if(e[o]<t)r=o+1;else{if(!(e[o]>t))return o;i=o-1}}return -1},t.prototype.getIndices=function(){var t,e=this._indices;if(e){var n=e.constructor,r=this._count;if(n===Array){t=new n(r);for(var i=0;i<r;i++)t[i]=e[i]}else t=new n(e.buffer,0,r)}else{var n=dV(this._rawCount);t=new n(this.count());for(var i=0;i<t.length;i++)t[i]=i}return t},t.prototype.filter=function(t,e){if(!this._count)return this;for(var n=this.clone(),r=n.count(),i=dV(n._rawCount),o=new i(r),a=[],s=t.length,l=0,u=t[0],h=n._chunks,c=0;c<r;c++){var d=void 0,p=n.getRawIndex(c);if(0===s)d=e(c);else if(1===s)d=e(h[u][p],c);else{for(var f=0;f<s;f++)a[f]=h[t[f]][p];a[f]=c,d=e.apply(null,a)}d&&(o[l++]=p)}return l<r&&(n._indices=o),n._count=l,n._extent=[],n._updateGetRawIdx(),n},t.prototype.selectRange=function(t){var e=this.clone(),n=e._count;if(!n)return this;var r=e_(t),i=r.length;if(!i)return this;var o=e.count(),a=new(dV(e._rawCount))(o),s=0,l=r[0],u=t[l][0],h=t[l][1],c=e._chunks,d=!1;if(!e._indices){var p=0;if(1===i){for(var f=c[r[0]],g=0;g<n;g++){var m=f[g];(m>=u&&m<=h||isNaN(m))&&(a[s++]=p),p++}d=!0}else if(2===i){for(var f=c[r[0]],y=c[r[1]],v=t[r[1]][0],_=t[r[1]][1],g=0;g<n;g++){var m=f[g],x=y[g];(m>=u&&m<=h||isNaN(m))&&(x>=v&&x<=_||isNaN(x))&&(a[s++]=p),p++}d=!0}}if(!d)if(1===i)for(var g=0;g<o;g++){var b=e.getRawIndex(g),m=c[r[0]][b];(m>=u&&m<=h||isNaN(m))&&(a[s++]=b)}else for(var g=0;g<o;g++){for(var w=!0,b=e.getRawIndex(g),S=0;S<i;S++){var k=r[S],m=c[k][b];(m<t[k][0]||m>t[k][1])&&(w=!1)}w&&(a[s++]=e.getRawIndex(g))}return s<o&&(e._indices=a),e._count=s,e._extent=[],e._updateGetRawIdx(),e},t.prototype.map=function(t,e){var n=this.clone(t);return this._updateDims(n,t,e),n},t.prototype.modify=function(t,e){this._updateDims(this,t,e)},t.prototype._updateDims=function(t,e,n){for(var r=t._chunks,i=[],o=e.length,a=t.count(),s=[],l=t._rawExtent,u=0;u<e.length;u++)l[e[u]]=dW();for(var h=0;h<a;h++){for(var c=t.getRawIndex(h),d=0;d<o;d++)s[d]=r[e[d]][c];s[o]=h;var p=n&&n.apply(null,s);if(null!=p){"object"!=typeof p&&(i[0]=p,p=i);for(var u=0;u<p.length;u++){var f=e[u],g=p[u],m=l[f],y=r[f];y&&(y[c]=g),g<m[0]&&(m[0]=g),g>m[1]&&(m[1]=g)}}}},t.prototype.lttbDownSample=function(t,e){var n,r,i,o=this.clone([t],!0),a=o._chunks[t],s=this.count(),l=0,u=Math.floor(1/e),h=this.getRawIndex(0),c=new(dV(this._rawCount))(Math.min((Math.ceil(s/u)+2)*2,s));c[l++]=h;for(var d=1;d<s-1;d+=u){for(var p=Math.min(d+u,s-1),f=Math.min(d+2*u,s),g=(f+p)/2,m=0,y=p;y<f;y++){var v=this.getRawIndex(y),_=a[v];isNaN(_)||(m+=_)}m/=f-p;var x=d,b=Math.min(d+u,s),w=d-1,S=a[h];n=-1,i=x;for(var k=-1,M=0,y=x;y<b;y++){var v=this.getRawIndex(y),_=a[v];if(isNaN(_)){M++,k<0&&(k=v);continue}(r=Math.abs((w-g)*(_-S)-(w-y)*(m-S)))>n&&(n=r,i=v)}M>0&&M<b-x&&(c[l++]=Math.min(k,i),i=Math.max(k,i)),c[l++]=i,h=i}return c[l++]=this.getRawIndex(s-1),o._count=l,o._indices=c,o.getRawIndex=this._getRawIdx,o},t.prototype.minmaxDownSample=function(t,e){for(var n=this.clone([t],!0),r=n._chunks,i=Math.floor(1/e),o=r[t],a=this.count(),s=new(dV(this._rawCount))(2*Math.ceil(a/i)),l=0,u=0;u<a;u+=i){var h=u,c=o[this.getRawIndex(h)],d=u,p=o[this.getRawIndex(d)],f=i;u+i>a&&(f=a-u);for(var g=0;g<f;g++){var m=o[this.getRawIndex(u+g)];m<c&&(c=m,h=u+g),m>p&&(p=m,d=u+g)}var y=this.getRawIndex(h),v=this.getRawIndex(d);h<d?(s[l++]=y,s[l++]=v):(s[l++]=v,s[l++]=y)}return n._count=l,n._indices=s,n._updateGetRawIdx(),n},t.prototype.downSample=function(t,e,n,r){for(var i=this.clone([t],!0),o=i._chunks,a=[],s=Math.floor(1/e),l=o[t],u=this.count(),h=i._rawExtent[t]=dW(),c=new(dV(this._rawCount))(Math.ceil(u/s)),d=0,p=0;p<u;p+=s){s>u-p&&(a.length=s=u-p);for(var f=0;f<s;f++){var g=this.getRawIndex(p+f);a[f]=l[g]}var m=n(a),y=this.getRawIndex(Math.min(p+r(a,m)||0,u-1));l[y]=m,m<h[0]&&(h[0]=m),m>h[1]&&(h[1]=m),c[d++]=y}return i._count=d,i._indices=c,i._updateGetRawIdx(),i},t.prototype.each=function(t,e){if(this._count)for(var n=t.length,r=this._chunks,i=0,o=this.count();i<o;i++){var a=this.getRawIndex(i);switch(n){case 0:e(i);break;case 1:e(r[t[0]][a],i);break;case 2:e(r[t[0]][a],r[t[1]][a],i);break;default:for(var s=0,l=[];s<n;s++)l[s]=r[t[s]][a];l[s]=i,e.apply(null,l)}}},t.prototype.getDataExtent=function(t){var e=this._chunks[t],n=dW();if(!e)return n;var r,i=this.count();if(!this._indices)return this._rawExtent[t].slice();if(r=this._extent[t])return r.slice();r=n;for(var o=r[0],a=r[1],s=0;s<i;s++){var l=e[this.getRawIndex(s)];l<o&&(o=l),l>a&&(a=l)}return r=[o,a],this._extent[t]=r,r},t.prototype.getRawDataItem=function(t){var e=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(e);for(var n=[],r=this._chunks,i=0;i<r.length;i++)n.push(r[i][e]);return n},t.prototype.clone=function(e,n){var r=new t,i=this._chunks,o=e&&ey(e,function(t,e){return t[e]=!0,t},{});if(o)for(var a=0;a<i.length;a++)r._chunks[a]=o[a]?function(t){var e=t.constructor;return e===Array?t.slice():new e(t)}(i[a]):i[a];else r._chunks=i;return this._copyCommonProps(r),n||(r._indices=this._cloneIndices()),r._updateGetRawIdx(),r},t.prototype._copyCommonProps=function(t){t._count=this._count,t._rawCount=this._rawCount,t._provider=this._provider,t._dimensions=this._dimensions,t._extent=el(this._extent),t._rawExtent=el(this._rawExtent)},t.prototype._cloneIndices=function(){if(this._indices){var t=this._indices.constructor,e=void 0;if(t===Array){var n=this._indices.length;e=new t(n);for(var r=0;r<n;r++)e[r]=this._indices[r]}else e=new t(this._indices);return e}return null},t.prototype._getRawIdxIdentity=function(t){return t},t.prototype._getRawIdx=function(t){return t<this._count&&t>=0?this._indices[t]:-1},t.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},t.internalField=function(){function t(t,e,n,r){return dM(t[r],this._dimensions[r])}dO={arrayRows:t,objectRows:function(t,e,n,r){return dM(t[e],this._dimensions[r])},keyedColumns:t,original:function(t,e,n,r){var i=t&&(null==t.value?t:t.value);return dM(i instanceof Array?i[r]:i,this._dimensions[r])},typedArray:function(t,e,n,r){return t[r]}}}(),t}(),dj=function(){function t(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return t.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},t.prototype._setLocalSource=function(t,e){this._sourceList=t,this._upstreamSignList=e,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},t.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},t.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},t.prototype._createSource=function(){this._setLocalSource([],[]);var t,e,n=this._sourceHost,r=this._getUpstreamSourceManagers(),i=!!r.length;if(dU(n)){var o,a,s,l,u,h,c=void 0,d=void 0,p=void 0;if(i){var f=r[0];f.prepareSource(),c=(p=f.getSource()).data,d=p.sourceFormat,e=[f._getVersionSign()]}else d=eD(c=n.get("data",!0))?ch:ca,e=[];var g=this._getSourceMetaRawOption()||{},m=p&&p.metaRawOption||{},y=(o=g.seriesLayoutBy,a=m.seriesLayoutBy,(o??a)||null),v=(s=g.sourceHeader,l=m.sourceHeader,s??l),_=(u=g.dimensions,h=m.dimensions,u??h);t=y!==m.seriesLayoutBy||!!v!=!!m.sourceHeader||_?[c6(c,{seriesLayoutBy:y,sourceHeader:v,dimensions:_},d)]:[]}else if(i){var x=this._applyTransform(r);t=x.sourceList,e=x.upstreamSignList}else t=[c6(n.get("source",!0),this._getSourceMetaRawOption(),null)],e=[];this._setLocalSource(t,e)},t.prototype._applyTransform=function(t){var e,n=this._sourceHost,r=n.get("transform",!0),i=n.get("fromTransformResult",!0);null!=i&&1!==t.length&&dZ("");var o,a=[],s=[];return eg(t,function(t){t.prepareSource();var e=t.getSource(i||0);null==i||e||dZ(""),a.push(e),s.push(t._getVersionSign())}),r?o=function(t,e,n){var r=oC(t),i=r.length;i||ok("");for(var o=0;o<i;o++)e=function(t,e){e.length||ok(""),eT(t)||ok("");var n=t.type,r=d$.get(n);r||ok("");var i=em(e,function(t){return function(t,e){var n=new dT,r=t.data,i=n.sourceFormat=t.sourceFormat,o=t.startIndex;t.seriesLayoutBy!==cd&&ok("");var a=[],s={},l=t.dimensionsDefine;if(l)eg(l,function(t,e){var n=t.name,r={index:e,name:n,displayName:t.displayName};a.push(r),null!=n&&(eH(s,n)&&ok(""),s[n]=r)});else for(var u=0;u<t.dimensionsDetectedCount;u++)a.push({index:u});var h=dd[dy(i,cd)];e.__isBuiltIn&&(n.getRawDataItem=function(t){return h(r,o,a,t)},n.getRawData=ex(dI,null,t)),n.cloneRawData=ex(dD,null,t),n.count=ex(df[dy(i,cd)],null,r,o,a);var c=dm[i];n.retrieveValue=function(t,e){return d(h(r,o,a,t),e)};var d=n.retrieveValueFromItem=function(t,e){if(null!=t){var n=a[e];if(n)return c(t,e,n.name)}};return n.getDimensionInfo=ex(dA,null,a,s),n.cloneAllDimensionInfo=ex(dL,null,a),n}(t,r)});return em(oC(r.transform({upstream:i[0],upstreamList:i,config:el(t.config)})),function(t,n){eT(t)||ok(""),t.data||ok(""),dP(c7(t.data))||ok("");var r,i=e[0];if(i&&0===n&&!t.dimensions){var o=i.startIndex;o&&(t.data=i.data.slice(0,o).concat(t.data)),r={seriesLayoutBy:cd,sourceHeader:o,dimensions:i.metaRawOption.dimensions}}else r={seriesLayoutBy:cd,sourceHeader:0,dimensions:t.dimensions};return c6(t.data,r,null)})}(r[o],e),o!==i-1&&(e.length=Math.max(e.length,1));return e}(r,a,{datasetIndex:n.componentIndex}):null!=i&&(o=[new c3({data:(e=a[0]).data,sourceFormat:e.sourceFormat,seriesLayoutBy:e.seriesLayoutBy,dimensionsDefine:el(e.dimensionsDefine),startIndex:e.startIndex,dimensionsDetectedCount:e.dimensionsDetectedCount})]),{sourceList:o,upstreamSignList:s}},t.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),e=0;e<t.length;e++){var n=t[e];if(n._isDirty()||this._upstreamSignList[e]!==n._getVersionSign())return!0}},t.prototype.getSource=function(t){t=t||0;var e=this._sourceList[t];if(!e){var n=this._getUpstreamSourceManagers();return n[0]&&n[0].getSource(t)}return e},t.prototype.getSharedDataStore=function(t){var e=t.makeStoreSchema();return this._innerGetDataStore(e.dimensions,t.source,e.hash)},t.prototype._innerGetDataStore=function(t,e,n){var r=this._storeList,i=r[0];i||(i=r[0]={});var o=i[n];if(!o){var a=this._getUpstreamSourceManagers()[0];dU(this._sourceHost)&&a?o=a._innerGetDataStore(t,e,n):(o=new dG).initData(new du(e,t.length),t),i[n]=o}return o},t.prototype._getUpstreamSourceManagers=function(){var t=this._sourceHost;if(dU(t)){var e=cm(t);return e?[e.getSourceManager()]:[]}return em(t.get("transform",!0)||t.get("fromTransformResult",!0)?oV(t.ecModel,"dataset",{index:t.get("fromDatasetIndex",!0),id:t.get("fromDatasetId",!0)},oF).models:[],function(t){return t.getSourceManager()})},t.prototype._getSourceMetaRawOption=function(){var t,e,n,r=this._sourceHost;return dU(r)?(t=r.get("seriesLayoutBy",!0),e=r.get("sourceHeader",!0),n=r.get("dimensions",!0)):this._getUpstreamSourceManagers().length||(t=r.get("seriesLayoutBy",!0),e=r.get("sourceHeader",!0),n=r.get("dimensions",!0)),{seriesLayoutBy:t,sourceHeader:e,dimensions:n}},t}();function dU(t){return"series"===t.mainType}function dZ(t){throw Error(t)}function dX(t){var e=t.lineHeight;return null==e?"line-height:1":"line-height:"+nr(e+"")+"px"}function dY(t,e){var n=t.color||h6.color.tertiary,r=t.fontSize||12,i=t.fontWeight||"400",o=t.color||h6.color.secondary,a=t.fontSize||14,s=t.fontWeight||"900";return"html"===e?{nameStyle:"font-size:"+nr(r+"")+"px;color:"+nr(n)+";font-weight:"+nr(i+""),valueStyle:"font-size:"+nr(a+"")+"px;color:"+nr(o)+";font-weight:"+nr(s+"")}:{nameStyle:{fontSize:r,fill:n,fontWeight:i},valueStyle:{fontSize:a,fill:o,fontWeight:s}}}var dq=[0,10,20,30],dQ=["",`
|
|
36
|
+
`,`
|
|
37
|
+
|
|
38
|
+
`,`
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
`];function dK(t,e){return e.type=t,e}function dJ(t){return"section"===t.type}function d0(t,e,n,r){var i,o=e.noHeader,a={html:dq[i=function t(e){if(dJ(e)){var n=0,r=e.blocks.length,i=r>1||r>0&&!e.noHeader;return eg(e.blocks,function(e){var r=t(e);r>=n&&(n=r+ +(i&&(!r||dJ(e)&&!e.noHeader)))}),n}return 0}(e)],richText:dQ[i]},s=[],l=e.blocks||[];eE(!l||ew(l)),l=l||[];var u=t.orderMode;if(e.sortBlocks&&u){l=l.slice();var h={valueAsc:"asc",valueDesc:"desc"};if(eH(h,u)){var c=new dC(h[u],null);l.sort(function(t,e){return c.evaluate(t.sortParam,e.sortParam)})}else"seriesDesc"===u&&l.reverse()}eg(l,function(n,i){var o=e.valueFormatter,l=(dJ(n)?d0:d1)(o?eh(eh({},t),{valueFormatter:o}):t,n,i>0?a.html:0,r);null!=l&&s.push(l)});var d="richText"===t.renderMode?s.join(a.richText):d5(r,s.join(""),o?n:a.html);if(o)return d;var p=hN(e.header,"ordinal",t.useUTC),f=dY(r,t.renderMode).nameStyle,g=dX(r);return"richText"===t.renderMode?d3(t,p,f)+a.richText+d:d5(r,'<div style="'+f+";"+g+';">'+nr(p)+"</div>"+d,n)}function d1(t,e,n,r){var i=t.renderMode,o=e.noName,a=e.noValue,s=!e.markerType,l=e.name,u=t.useUTC,h=e.valueFormatter||t.valueFormatter||function(t){return em(t=ew(t)?t:[t],function(t,e){return hN(t,ew(b)?b[e]:b,u)})};if(!(o&&a)){var c,d,p,f,g,m,y,v,_=s?"":t.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||h6.color.secondary,i),x=o?"":hN(l,"ordinal",u),b=e.valueType,w=a?[]:h(e.value,e.dataIndex),S=!s||!o,k=!s&&o,M=dY(r,i),C=M.nameStyle,T=M.valueStyle;return"richText"===i?(s?"":_)+(o?"":d3(t,x,C))+(a?"":(c=t,d=w,p=S,f=k,g=[T],p&&g.push({padding:[0,0,0,f?10:20],align:"right"}),c.markupStyleCreator.wrapRichTextStyle(ew(d)?d.join(" "):d,g))):d5(r,(s?"":_)+(o?"":'<span style="'+C+";"+(s?"":"margin-left:2px")+'">'+nr(x)+"</span>")+(a?"":(m=w,y=S,v=k,'<span style="'+(y?"float:right;margin-left:"+(v?"10px":"20px"):"")+";"+T+'">'+em(m=ew(m)?m:[m],function(t){return nr(t)}).join(" ")+"</span>")),n)}}function d2(t,e,n,r,i,o){if(t)return(dJ(t)?d0:d1)({useUTC:i,renderMode:n,orderMode:r,markupStyleCreator:e,valueFormatter:t.valueFormatter},t,0,o)}function d5(t,e,n){return'<div style="margin: '+n+"px 0 0;"+dX(t)+';">'+e+'<div style="clear:both"></div></div>'}function d3(t,e,n){return t.markupStyleCreator.wrapRichTextStyle(e,n)}function d4(t,e){return t.get("padding")??("richText"===e?[8,10]:10)}var d6=function(){function t(){this.richTextStyles={},this._nextStyleNameId=o_()}return t.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},t.prototype.makeTooltipMarker=function(t,e,n){var r,i,o,a,s,l,u="richText"===n?this._generateStyleName():null,h=(a=(o=ek(r={color:e,type:t,renderMode:n,markerId:u})?{color:r,extraCssText:i}:r||{}).color,s=o.type,i=o.extraCssText,l=o.renderMode||"html",a?"html"===l?"subItem"===s?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+nr(a)+";"+(i||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+nr(a)+";"+(i||"")+'"></span>':{renderMode:l,content:"{"+(o.markerId||"markerX")+"|} ",style:"subItem"===s?{width:4,height:4,borderRadius:2,backgroundColor:a}:{width:10,height:10,borderRadius:5,backgroundColor:a}}:"");return ek(h)?h:(this.richTextStyles[u]=h.style,h.content)},t.prototype.wrapRichTextStyle=function(t,e){var n={};ew(e)?eg(e,function(t){return eh(n,t)}):eh(n,e);var r=this._generateStyleName();return this.richTextStyles[r]=n,"{"+r+"|"+t+"}"},t}(),d8=oN();function d7(t,e){return t.getName(e)||t.getId(e)}var d9=function(t){var e;function n(){var e=null!==t&&t.apply(this,arguments)||this;return e._selectedDataIndicesMap={},e}return tK(n,t),n.prototype.init=function(t,e,n){this.seriesIndex=this.componentIndex,this.dataTask=dw({count:pe,reset:pn}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,n),(d8(this).sourceManager=new dj(this)).prepareSource();var r=this.getInitialData(t,n);pi(r,this),this.dataTask.context.data=r,d8(this).dataBeforeProcessed=r,pt(this),this._initSelectedMapFromData(r)},n.prototype.mergeDefaultAndTheme=function(t,e){var n=hJ(this),r=n?h1(t):{},i=this.subType;h5.hasClass(i)&&(i+="Series"),eu(t,e.getTheme().get(this.subType)),eu(t,this.getDefaultOption()),oT(t,"label",["show"]),this.fillDataTextStyle(t.data),n&&h0(t,r,n)},n.prototype.mergeOption=function(t,e){t=eu(this.option,t,!0),this.fillDataTextStyle(t.data);var n=hJ(this);n&&h0(this.option,t,n);var r=d8(this).sourceManager;r.dirty(),r.prepareSource();var i=this.getInitialData(t,e);pi(i,this),this.dataTask.dirty(),this.dataTask.context.data=i,d8(this).dataBeforeProcessed=i,pt(this),this._initSelectedMapFromData(i)},n.prototype.fillDataTextStyle=function(t){if(t&&!eD(t))for(var e=["show"],n=0;n<t.length;n++)t[n]&&t[n].label&&oT(t[n],"label",e)},n.prototype.getInitialData=function(t,e){},n.prototype.appendData=function(t){this.getRawData().appendData(t.data)},n.prototype.getData=function(t){var e=pa(this);if(!e)return d8(this).data;var n=e.context.data;return null!=t&&n.getLinkedData?n.getLinkedData(t):n},n.prototype.getAllData=function(){var t=this.getData();return t&&t.getLinkedDataAll?t.getLinkedDataAll():[{data:t}]},n.prototype.setData=function(t){var e=pa(this);if(e){var n=e.context;n.outputData=t,e!==this.dataTask&&(n.data=t)}d8(this).data=t},n.prototype.getEncode=function(){var t=this.get("encode",!0);if(t)return eV(t)},n.prototype.getSourceManager=function(){return d8(this).sourceManager},n.prototype.getSource=function(){return this.getSourceManager().getSource()},n.prototype.getRawData=function(){return d8(this).dataBeforeProcessed},n.prototype.getColorBy=function(){return this.get("colorBy")||"series"},n.prototype.isColorBySeries=function(){return"series"===this.getColorBy()},n.prototype.getBaseAxis=function(){var t=this.coordinateSystem;return t&&t.getBaseAxis&&t.getBaseAxis()},n.prototype.indicesOfNearest=function(t,e,n,r){var i=this.getData(),o=this.coordinateSystem,a=o&&o.getAxis(t);if(!o||!a)return[];var s=a.dataToCoord(n);null==r&&(r=1/0);var l=[],u=1/0,h=-1,c=0;return i.each(e,function(t,e){var n=s-a.dataToCoord(t),i=Math.abs(n);i<=r&&((i<u||i===u&&n>=0&&h<0)&&(u=i,h=n,c=0),n===h&&(l[c++]=e))}),l.length=c,l},n.prototype.formatTooltip=function(t,e,n){return function(t){var e,n,r,i,o=t.series,a=t.dataIndex,s=t.multipleSeries,l=o.getData(),u=l.mapDimensionsAll("defaultedTooltip"),h=u.length,c=o.getRawValue(a),d=ew(c),p=hF(o.getData().getItemVisual(a,"style")[o.visualDrawType]);if(h>1||d&&!h){var f=function(t,e,n,r,i){var o=e.getData(),a=ey(t,function(t,e,n){var r=o.getDimensionInfo(n);return t||r&&!1!==r.tooltip&&null!=r.displayName},!1),s=[],l=[],u=[];function h(t,e){var n=o.getDimensionInfo(e);n&&!1!==n.otherDims.tooltip&&(a?u.push(dK("nameValue",{markerType:"subItem",markerColor:i,name:n.displayName,value:t,valueType:n.type})):(s.push(t),l.push(n.type)))}return r.length?eg(r,function(t){h(dv(o,n,t),t)}):eg(t,h),{inlineValues:s,inlineValueTypes:l,blocks:u}}(c,o,a,u,p);e=f.inlineValues,n=f.inlineValueTypes,r=f.blocks,i=f.inlineValues[0]}else if(h){var g=l.getDimensionInfo(u[0]);i=e=dv(l,a,u[0]),n=g.type}else i=e=d?c[0]:c;var m=oP(o),y=m&&o.name||"",v=l.getName(a),_=s?y:v;return dK("section",{header:y,noHeader:s||!m,sortParam:i,blocks:[dK("nameValue",{markerType:"item",markerColor:p,name:_,noName:!eN(_),value:e,valueType:n,dataIndex:a})].concat(r||[])})}({series:this,dataIndex:t,multipleSeries:e})},n.prototype.isAnimationEnabled=function(){var t=this.ecModel;if(t0.node&&!(t&&t.ssr))return!1;var e=this.getShallow("animation");return e&&this.getData().count()>this.getShallow("animationThreshold")&&(e=!1),!!e},n.prototype.restoreData=function(){this.dataTask.dirty()},n.prototype.getColorFromPalette=function(t,e,n){var r=this.ecModel,i=cL.prototype.getColorFromPalette.call(this,t,e,n);return i||(i=r.getColorFromPalette(t,e,n)),i},n.prototype.coordDimToDataDim=function(t){return this.getRawData().mapDimensionsAll(t)},n.prototype.getProgressive=function(){return this.get("progressive")},n.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},n.prototype.select=function(t,e){this._innerSelect(this.getData(e),t)},n.prototype.unselect=function(t,e){var n=this.option.selectedMap;if(n){var r=this.option.selectedMode,i=this.getData(e);if("series"===r||"all"===n){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var o=0;o<t.length;o++){var a=d7(i,t[o]);n[a]=!1,this._selectedDataIndicesMap[a]=-1}}},n.prototype.toggleSelect=function(t,e){for(var n=[],r=0;r<t.length;r++)n[0]=t[r],this.isSelected(t[r],e)?this.unselect(n,e):this.select(n,e)},n.prototype.getSelectedDataIndices=function(){if("all"===this.option.selectedMap)return[].slice.call(this.getData().getIndices());for(var t=this._selectedDataIndicesMap,e=e_(t),n=[],r=0;r<e.length;r++){var i=t[e[r]];i>=0&&n.push(i)}return n},n.prototype.isSelected=function(t,e){var n=this.option.selectedMap;if(!n)return!1;var r=this.getData(e);return("all"===n||n[d7(r,t)])&&!r.getItemModel(t).get(["select","disabled"])},n.prototype.isUniversalTransitionEnabled=function(){if(this.__universalTransitionEnabled)return!0;var t=this.option.universalTransition;return!!t&&(!0===t||t&&t.enabled)},n.prototype._innerSelect=function(t,e){var n,r,i=this.option,o=i.selectedMode,a=e.length;if(!(!o||!a)){if("series"===o)i.selectedMap="all";else if("multiple"===o){eT(i.selectedMap)||(i.selectedMap={});for(var s=i.selectedMap,l=0;l<a;l++){var u=e[l],h=d7(t,u);s[h]=!0,this._selectedDataIndicesMap[h]=t.getRawIndex(u)}}else if("single"===o||!0===o){var c=e[a-1],h=d7(t,c);(n={})[h]=!0,i.selectedMap=n,this._selectedDataIndicesMap=((r={})[h]=t.getRawIndex(c),r)}}},n.prototype._initSelectedMapFromData=function(t){if(!this.option.selectedMap){var e=[];t.hasItemOption&&t.each(function(n){var r=t.getRawDataItem(n);r&&r.selected&&e.push(n)}),e.length>0&&this._innerSelect(t,e)}},n.registerClass=function(t){return h5.registerClass(t)},n.protoInitialize=void((e=n.prototype).type="series.__base__",e.seriesIndex=0,e.ignoreStyleOnData=!1,e.hasSymbolVisual=!1,e.defaultSymbol="circle",e.visualStyleAccessPath="itemStyle",e.visualDrawType="fill"),n}(h5);function pt(t){var e,n,r,i=t.name;oP(t)||(t.name=(n=(e=t.getRawData()).mapDimensionsAll("seriesName"),r=[],eg(n,function(t){var n=e.getDimensionInfo(t);n.displayName&&r.push(n.displayName)}),r.join(" ")||i))}function pe(t){return t.model.getRawData().count()}function pn(t){var e=t.model;return e.setData(e.getRawData().cloneShallow()),pr}function pr(t,e){e.outputData&&t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function pi(t,e){eg(function(t,e){for(var n=new t.constructor(t.length+e.length),r=0;r<t.length;r++)n[r]=t[r];for(var i=t.length,r=0;r<e.length;r++)n[r+i]=e[r];return n}(t.CHANGABLE_METHODS,t.DOWNSAMPLE_METHODS),function(n){t.wrapMethod(n,eb(po,e))})}function po(t,e){var n=pa(t);return n&&n.setOutputEnd((e||this).count()),e}function pa(t){var e=(t.ecModel||{}).scheduler,n=e&&e.getPipeline(t.uid);if(n){var r=n.currentTask;if(r){var i=r.agentStubMap;i&&(r=i.get(t.uid))}return r}}ep(d9,dx),ep(d9,cL),oZ(d9,h5);var ps=function(){function t(){this.group=new i9,this.uid=hi("viewComponent")}return t.prototype.init=function(t,e){},t.prototype.render=function(t,e,n,r){},t.prototype.dispose=function(t,e){},t.prototype.updateView=function(t,e,n,r){},t.prototype.updateLayout=function(t,e,n,r){},t.prototype.updateVisual=function(t,e,n,r){},t.prototype.toggleBlurSeries=function(t,e,n){},t.prototype.eachRendered=function(t){var e=this.group;e&&e.traverse(t)},t}();function pl(){var t=oN();return function(e){var n=t(e),r=e.pipelineContext,i=!!n.large,o=!!n.progressiveRender,a=n.large=!!(r&&r.large),s=n.progressiveRender=!!(r&&r.progressiveRender);return(i!==a||o!==s)&&"reset"}}oU(ps),oQ(ps);var pu=oN(),ph=pl(),pc=function(){function t(){this.group=new i9,this.uid=hi("viewChart"),this.renderTask=dw({plan:pf,reset:pg}),this.renderTask.context={view:this}}return t.prototype.init=function(t,e){},t.prototype.render=function(t,e,n,r){},t.prototype.highlight=function(t,e,n,r){var i=t.getData(r&&r.dataType);i&&pp(i,r,"emphasis")},t.prototype.downplay=function(t,e,n,r){var i=t.getData(r&&r.dataType);i&&pp(i,r,"normal")},t.prototype.remove=function(t,e){this.group.removeAll()},t.prototype.dispose=function(t,e){},t.prototype.updateView=function(t,e,n,r){this.render(t,e,n,r)},t.prototype.updateLayout=function(t,e,n,r){this.render(t,e,n,r)},t.prototype.updateVisual=function(t,e,n,r){this.render(t,e,n,r)},t.prototype.eachRendered=function(t){uN(this.group,t)},t.markUpdateMethod=function(t,e){pu(t).updateMethod=e},t.protoInitialize=void(t.prototype.type="chart"),t}();function pd(t,e,n){t&&li(t)&&("emphasis"===e?s0:s1)(t,n)}function pp(t,e,n){var r,i,o=oE(t,e),a=e&&null!=e.highlightKey?(null==(i=sD[r=e.highlightKey])&&sI<=32&&(i=sD[r]=sI++),i):null;null!=o?eg(oC(o),function(e){pd(t.getItemGraphicEl(e),n,a)}):t.eachItemGraphicEl(function(t){pd(t,n,a)})}function pf(t){return ph(t.model)}function pg(t){var e=t.model,n=t.ecModel,r=t.api,i=t.payload,o=e.pipelineContext.progressiveRender,a=t.view,s=i&&pu(i).updateMethod,l=o?"incrementalPrepareRender":s&&a[s]?s:"render";return"render"!==l&&a[l](e,n,r,i),pm[l]}oU(pc,["dispose"]),oQ(pc);var pm={incrementalPrepareRender:{progress:function(t,e){e.view.incrementalRender(t,e.model,e.ecModel,e.api,e.payload)}},render:{forceFirstProgress:!0,progress:function(t,e){e.view.render(e.model,e.ecModel,e.api,e.payload)}}},py="\0__throttleOriginMethod",pv="\0__throttleRate",p_="\0__throttleType";function px(t,e,n){var r,i,o,a,s,l=0,u=0,h=null;function c(){u=new Date().getTime(),h=null,t.apply(o,a||[])}e=e||0;var d=function(){for(var t=[],d=0;d<arguments.length;d++)t[d]=arguments[d];r=new Date().getTime(),o=this,a=t;var p=s||e,f=s||n;s=null,i=r-(f?l:u)-p,clearTimeout(h),f?h=setTimeout(c,p):i>=0?c():h=setTimeout(c,-i),l=r};return d.clear=function(){h&&(clearTimeout(h),h=null)},d.debounceNextCall=function(t){s=t},d}function pb(t,e,n,r){var i=t[e];if(i){var o=i[py]||i,a=i[p_];if(i[pv]!==n||a!==r){if(null==n||!r)return t[e]=o;(i=t[e]=px(o,n,"debounce"===r))[py]=o,i[p_]=r,i[pv]=n}return i}}function pw(t,e){var n=t[e];n&&n[py]&&(n.clear&&n.clear(),t[e]=n[py])}var pS=oN(),pk={itemStyle:oK(u9,!0),lineStyle:oK(u6,!0)},pM={lineStyle:"stroke",itemStyle:"fill"};function pC(t,e){return t.visualStyleMapper||pk[e]||(console.warn("Unknown style type '"+e+"'."),pk.itemStyle)}function pT(t,e){return t.visualDrawType||pM[e]||(console.warn("Unknown style type '"+e+"'."),"fill")}var pI=new hn,pD=Math.PI,pA=function(){function t(t,e,n,r){this._stageTaskMap=eV(),this.ecInstance=t,this.api=e,n=this._dataProcessorHandlers=n.slice(),r=this._visualHandlers=r.slice(),this._allHandlers=n.concat(r)}return t.prototype.restoreData=function(t,e){t.restoreData(e),this._stageTaskMap.each(function(t){var e=t.overallTask;e&&e.dirty()})},t.prototype.getPerformArgs=function(t,e){if(t.__pipeline){var n=this._pipelineMap.get(t.__pipeline.id),r=n.context,i=!e&&n.progressiveEnabled&&(!r||r.progressiveRender)&&t.__idxInPipeline>n.blockIndex?n.step:null,o=r&&r.modDataCount,a=null!=o?Math.ceil(o/i):null;return{step:i,modBy:a,modDataCount:o}}},t.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},t.prototype.updateStreamModes=function(t,e){var n=this._pipelineMap.get(t.uid),r=t.getData().count(),i=n.progressiveEnabled&&e.incrementalPrepareRender&&r>=n.threshold,o=t.get("large")&&r>=t.get("largeThreshold"),a="mod"===t.get("progressiveChunkMode")?r:null;t.pipelineContext=n.context={progressiveRender:i,modDataCount:a,large:o}},t.prototype.restorePipelines=function(t){var e=this,n=e._pipelineMap=eV();t.eachSeries(function(t){var r=t.getProgressive(),i=t.uid;n.set(i,{id:i,head:null,tail:null,threshold:t.getProgressiveThreshold(),progressiveEnabled:r&&!(t.preventIncremental&&t.preventIncremental()),blockIndex:-1,step:Math.round(r||700),count:0}),e._pipe(t,t.dataTask)})},t.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.api.getModel(),n=this.api;eg(this._allHandlers,function(r){var i=t.get(r.uid)||t.set(r.uid,{});eE(!(r.reset&&r.overallReset),""),r.reset&&this._createSeriesStageTask(r,i,e,n),r.overallReset&&this._createOverallStageTask(r,i,e,n)},this)},t.prototype.prepareView=function(t,e,n,r){var i=t.renderTask,o=i.context;o.model=e,o.ecModel=n,o.api=r,i.__block=!t.incrementalPrepareRender,this._pipe(e,i)},t.prototype.performDataProcessorTasks=function(t,e){this._performStageTasks(this._dataProcessorHandlers,t,e,{block:!0})},t.prototype.performVisualTasks=function(t,e,n){this._performStageTasks(this._visualHandlers,t,e,n)},t.prototype._performStageTasks=function(t,e,n,r){r=r||{};var i=!1,o=this;function a(t,e){return t.setDirty&&(!t.dirtyMap||t.dirtyMap.get(e.__pipeline.id))}eg(t,function(t,s){if(!(r.visualType&&r.visualType!==t.visualType)){var l=o._stageTaskMap.get(t.uid),u=l.seriesTaskMap,h=l.overallTask;if(h){var c,d=h.agentStubMap;d.each(function(t){a(r,t)&&(t.dirty(),c=!0)}),c&&h.dirty(),o.updatePayload(h,n);var p=o.getPerformArgs(h,r.block);d.each(function(t){t.perform(p)}),h.perform(p)&&(i=!0)}else u&&u.each(function(s,l){a(r,s)&&s.dirty();var u=o.getPerformArgs(s,r.block);u.skip=!t.performRawSeries&&e.isSeriesFiltered(s.context.model),o.updatePayload(s,n),s.perform(u)&&(i=!0)})}}),this.unfinished=i||this.unfinished},t.prototype.performSeriesTasks=function(t){var e;t.eachSeries(function(t){e=t.dataTask.perform()||e}),this.unfinished=e||this.unfinished},t.prototype.plan=function(){this._pipelineMap.each(function(t){var e=t.tail;do{if(e.__block){t.blockIndex=e.__idxInPipeline;break}e=e.getUpstream()}while(e)})},t.prototype.updatePayload=function(t,e){"remain"!==e&&(t.context.payload=e)},t.prototype._createSeriesStageTask=function(t,e,n,r){var i=this,o=e.seriesTaskMap,a=e.seriesTaskMap=eV(),s=t.seriesType,l=t.getTargetSeries;function u(e){var s=e.uid,l=a.set(s,o&&o.get(s)||dw({plan:pE,reset:pN,count:pB}));l.context={model:e,ecModel:n,api:r,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:i},i._pipe(e,l)}t.createOnAllSeries?n.eachRawSeries(u):s?n.eachRawSeriesByType(s,u):l&&l(n,r).each(u)},t.prototype._createOverallStageTask=function(t,e,n,r){var i=this,o=e.overallTask=e.overallTask||dw({reset:pL});o.context={ecModel:n,api:r,overallReset:t.overallReset,scheduler:i};var a=o.agentStubMap,s=o.agentStubMap=eV(),l=t.seriesType,u=t.getTargetSeries,h=!0,c=!1;function d(t){var e=t.uid,n=s.set(e,a&&a.get(e)||(c=!0,dw({reset:p$,onDirty:pO})));n.context={model:t,overallProgress:h},n.agent=o,n.__block=h,i._pipe(t,n)}eE(!t.createOnAllSeries,""),l?n.eachRawSeriesByType(l,d):u?u(n,r).each(d):(h=!1,eg(n.getSeries(),d)),c&&o.dirty()},t.prototype._pipe=function(t,e){var n=t.uid,r=this._pipelineMap.get(n);r.head||(r.head=e),r.tail&&r.tail.pipe(e),r.tail=e,e.__idxInPipeline=r.count++,e.__pipeline=r},t.wrapStageHandler=function(t,e){return eS(t)&&(t={overallReset:t,seriesType:function(t){pF=null;try{t(pV,pW)}catch{}return pF}(t)}),t.uid=hi("stageHandler"),e&&(t.visualType=e),t},t}();function pL(t){t.overallReset(t.ecModel,t.api,t.payload)}function p$(t){return t.overallProgress&&pP}function pP(){this.agent.dirty(),this.getDownstream().dirty()}function pO(){this.agent&&this.agent.dirty()}function pE(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function pN(t){t.useClearVisual&&t.data.clearAllVisual();var e=t.resetDefines=oC(t.reset(t.model,t.ecModel,t.api,t.payload));return e.length>1?em(e,function(t,e){return pz(e)}):pR}var pR=pz(0);function pz(t){return function(e,n){var r=n.data,i=n.resetDefines[t];if(i&&i.dataEach)for(var o=e.start;o<e.end;o++)i.dataEach(r,o);else i&&i.progress&&i.progress(e,r)}}function pB(t){return t.data.count()}var pF,pV={},pW={};function pH(t,e){for(var n in e.prototype)t[n]=eG}pH(pV,cP),pH(pW,cz),pV.eachSeriesByType=pV.eachRawSeriesByType=function(t){pF=t},pV.eachComponent=function(t){"series"===t.mainType&&t.subType&&(pF=t.subType)};var pG=h6.darkColor,pj=pG.background,pU=function(){return{axisLine:{lineStyle:{color:pG.axisLine}},splitLine:{lineStyle:{color:pG.axisSplitLine}},splitArea:{areaStyle:{color:[pG.backgroundTint,pG.backgroundTransparent]}},minorSplitLine:{lineStyle:{color:pG.axisMinorSplitLine}},axisLabel:{color:pG.axisLabel},axisName:{}}},pZ={label:{color:pG.secondary},itemStyle:{borderColor:pG.borderTint},dividerLineStyle:{color:pG.border}},pX={darkMode:!0,color:pG.theme,backgroundColor:pj,axisPointer:{lineStyle:{color:pG.border},crossStyle:{color:pG.borderShade},label:{color:pG.tertiary}},legend:{textStyle:{color:pG.secondary},pageTextStyle:{color:pG.tertiary}},textStyle:{color:pG.secondary},title:{textStyle:{color:pG.primary},subtextStyle:{color:pG.quaternary}},toolbox:{iconStyle:{borderColor:pG.accent50}},tooltip:{backgroundColor:pG.neutral20,defaultBorderColor:pG.border,textStyle:{color:pG.tertiary}},dataZoom:{borderColor:pG.accent10,textStyle:{color:pG.tertiary},brushStyle:{color:pG.backgroundTint},handleStyle:{color:pG.neutral00,borderColor:pG.accent20},moveHandleStyle:{color:pG.accent40},emphasis:{handleStyle:{borderColor:pG.accent50}},dataBackground:{lineStyle:{color:pG.accent30},areaStyle:{color:pG.accent20}},selectedDataBackground:{lineStyle:{color:pG.accent50},areaStyle:{color:pG.accent30}}},visualMap:{textStyle:{color:pG.secondary},handleStyle:{borderColor:pG.neutral30}},timeline:{lineStyle:{color:pG.accent10},label:{color:pG.tertiary},controlStyle:{color:pG.accent30,borderColor:pG.accent30}},calendar:{itemStyle:{color:pG.neutral00,borderColor:pG.neutral20},dayLabel:{color:pG.tertiary},monthLabel:{color:pG.secondary},yearLabel:{color:pG.secondary}},matrix:{x:pZ,y:pZ,backgroundColor:{borderColor:pG.axisLine},body:{itemStyle:{borderColor:pG.borderTint}}},timeAxis:pU(),logAxis:pU(),valueAxis:pU(),categoryAxis:pU(),line:{symbol:"circle"},graph:{color:pG.theme},gauge:{title:{color:pG.secondary},axisLine:{lineStyle:{color:[[1,pG.neutral05]]}},axisLabel:{color:pG.axisLabel},detail:{color:pG.primary}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}},funnel:{itemStyle:{borderColor:pG.background}},radar:((fF=pU()).axisName={color:pG.axisLabel},fF.axisLine.lineStyle.color=pG.neutral20,fF),treemap:{breadcrumb:{itemStyle:{color:pG.neutral20,textStyle:{color:pG.secondary}},emphasis:{itemStyle:{color:pG.neutral30}}}},sunburst:{itemStyle:{borderColor:pG.background}},map:{itemStyle:{borderColor:pG.border,areaColor:pG.neutral10},label:{color:pG.tertiary},emphasis:{label:{color:pG.primary},itemStyle:{areaColor:pG.highlight}},select:{label:{color:pG.primary},itemStyle:{areaColor:pG.highlight}}},geo:{itemStyle:{borderColor:pG.border,areaColor:pG.neutral10},emphasis:{label:{color:pG.primary},itemStyle:{areaColor:pG.highlight}},select:{label:{color:pG.primary},itemStyle:{color:pG.highlight}}}};pX.categoryAxis.splitLine.show=!1;var pY=function(){function t(){}return t.prototype.normalizeQuery=function(t){var e={},n={},r={};if(ek(t)){var i=oj(t);e.mainType=i.main||null,e.subType=i.sub||null}else{var o=["Index","Name","Id"],a={name:1,dataIndex:1,dataType:1};eg(t,function(t,i){for(var s=!1,l=0;l<o.length;l++){var u=o[l],h=i.lastIndexOf(u);if(h>0&&h===i.length-u.length){var c=i.slice(0,h);"data"!==c&&(e.mainType=c,e[u.toLowerCase()]=t,s=!0)}}a.hasOwnProperty(i)&&(n[i]=t,s=!0),s||(r[i]=t)})}return{cptQuery:e,dataQuery:n,otherQuery:r}},t.prototype.filter=function(t,e){var n=this.eventInfo;if(!n)return!0;var r=n.targetEl,i=n.packedEvent,o=n.model,a=n.view;if(!o||!a)return!0;var s=e.cptQuery,l=e.dataQuery;return u(s,o,"mainType")&&u(s,o,"subType")&&u(s,o,"index","componentIndex")&&u(s,o,"name")&&u(s,o,"id")&&u(l,i,"name")&&u(l,i,"dataIndex")&&u(l,i,"dataType")&&(!a.filterForExposedEvent||a.filterForExposedEvent(t,e.otherQuery,r,i));function u(t,e,n,r){return null==t[n]||e[r||n]===t[n]}},t.prototype.afterTrigger=function(){this.eventInfo=null},t}(),pq=["symbol","symbolSize","symbolRotate","symbolOffset"],pQ=pq.concat(["symbolKeepAspect"]);function pK(t,e,n,r,i){var o=t+e;n.isSilent(o)||r.eachComponent({mainType:"series",subType:"pie"},function(t){for(var e=t.seriesIndex,r=t.option.selectedMap,a=i.selected,s=0;s<a.length;s++)if(a[s].seriesIndex===e){var l=t.getData(),u=oE(l,i.fromActionPayload);n.trigger(o,{type:o,seriesId:t.id,name:ew(u)?l.getName(u[0]):l.getName(u),selected:ek(r)?r:eh({},r)})}})}function pJ(t,e,n){for(var r;t&&!(e(t)&&(r=t,n));)t=t.__hostTarget||t.parent;return r}var p0=Math.round(9*Math.random()),p1="function"==typeof Object.defineProperty,p2=function(){function t(){this._id="__ec_inner_"+p0++}return t.prototype.get=function(t){return this._guard(t)[this._id]},t.prototype.set=function(t,e){var n=this._guard(t);return p1?Object.defineProperty(n,this._id,{value:e,enumerable:!1,configurable:!0}):n[this._id]=e,this},t.prototype.delete=function(t){return!!this.has(t)&&(delete this._guard(t)[this._id],!0)},t.prototype.has=function(t){return!!this._guard(t)[this._id]},t.prototype._guard=function(t){if(t!==Object(t))throw TypeError("Value of WeakMap is not a non-null object.");return t},t}(),p5=a8.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var n=e.cx,r=e.cy,i=e.width/2,o=e.height/2;t.moveTo(n,r-o),t.lineTo(n+i,r+o),t.lineTo(n-i,r+o),t.closePath()}}),p3=a8.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var n=e.cx,r=e.cy,i=e.width/2,o=e.height/2;t.moveTo(n,r-o),t.lineTo(n+i,r),t.lineTo(n,r+o),t.lineTo(n-i,r),t.closePath()}}),p4=a8.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var n=e.x,r=e.y,i=e.width/5*3,o=Math.max(i,e.height),a=i/2,s=a*a/(o-a),l=r-o+a+s,u=Math.asin(s/a),h=Math.cos(u)*a,c=Math.sin(u),d=Math.cos(u),p=.6*a,f=.7*a;t.moveTo(n-h,l+s),t.arc(n,l,a,Math.PI-u,2*Math.PI+u),t.bezierCurveTo(n+h-c*p,l+s+d*p,n,r-f,n,r),t.bezierCurveTo(n,r-f,n-h+c*p,l+s+d*p,n-h,l+s),t.closePath()}}),p6=a8.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var n=e.height,r=e.width,i=e.x,o=e.y,a=r/3*2;t.moveTo(i,o),t.lineTo(i+a,o+n),t.lineTo(i,o+n/4*3),t.lineTo(i-a,o+n),t.lineTo(i,o),t.closePath()}}),p8={line:function(t,e,n,r,i){i.x1=t,i.y1=e+r/2,i.x2=t+n,i.y2=e+r/2},rect:function(t,e,n,r,i){i.x=t,i.y=e,i.width=n,i.height=r},roundRect:function(t,e,n,r,i){i.x=t,i.y=e,i.width=n,i.height=r,i.r=Math.min(n,r)/4},square:function(t,e,n,r,i){var o=Math.min(n,r);i.x=t,i.y=e,i.width=o,i.height=o},circle:function(t,e,n,r,i){i.cx=t+n/2,i.cy=e+r/2,i.r=Math.min(n,r)/2},diamond:function(t,e,n,r,i){i.cx=t+n/2,i.cy=e+r/2,i.width=n,i.height=r},pin:function(t,e,n,r,i){i.x=t+n/2,i.y=e+r/2,i.width=n,i.height=r},arrow:function(t,e,n,r,i){i.x=t+n/2,i.y=e+r/2,i.width=n,i.height=r},triangle:function(t,e,n,r,i){i.cx=t+n/2,i.cy=e+r/2,i.width=n,i.height=r}},p7={};eg({line:lq,rect:su,roundRect:su,square:su,circle:lM,diamond:p3,pin:p4,arrow:p6,triangle:p5},function(t,e){p7[e]=new t});var p9=a8.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(t,e,n){var r=iJ(t,e,n),i=this.shape;return i&&"pin"===i.symbolType&&"inside"===e.position&&(r.y=n.y+.4*n.height),r},buildPath:function(t,e,n){var r=e.symbolType;if("none"!==r){var i=p7[r];i||(i=p7[r="rect"]),p8[r](e.x,e.y,e.width,e.height,i.shape),i.buildPath(t,i.shape,n)}}});function ft(t,e){if("image"!==this.type){var n=this.style;this.__isEmptyBrush?(n.stroke=t,n.fill=e||h6.color.neutral00,n.lineWidth=2):"line"===this.shape.symbolType?n.stroke=t:n.fill=t,this.markRedraw()}}function fe(t,e,n,r,i,o,a){var s,l=0===t.indexOf("empty");return l&&(t=t.substr(5,1).toLowerCase()+t.substr(6)),(s=0===t.indexOf("image://")?uS(t.slice(8),new nN(e,n,r,i),a?"center":"cover"):0===t.indexOf("path://")?uw(t.slice(7),{},new nN(e,n,r,i),a?"center":"cover"):new p9({shape:{symbolType:t,x:e,y:n,width:r,height:i}})).__isEmptyBrush=l,s.setColor=ft,o&&s.setColor(o),s}function fn(t,e){if(null!=t){var n,r;return ew(t)||(t=[t,t]),[ol(t[0],e[0])||0,ol((n=t[1],r=t[0],n??r),e[1])||0]}}function fr(t){return isFinite(t)}function fi(t,e,n){for(var r,i,o,a,s,l,u,h,c,d,p="radial"===e.type?(o=Math.min(r=n.width,i=n.height),a=null==e.x?.5:e.x,s=null==e.y?.5:e.y,l=null==e.r?.5:e.r,e.global||(a=a*r+n.x,s=s*i+n.y,l*=o),a=fr(a)?a:.5,s=fr(s)?s:.5,l=l>=0&&fr(l)?l:.5,t.createRadialGradient(a,s,0,a,s,l)):(u=null==e.x?0:e.x,h=null==e.x2?1:e.x2,c=null==e.y?0:e.y,d=null==e.y2?0:e.y2,e.global||(u=u*n.width+n.x,h=h*n.width+n.x,c=c*n.height+n.y,d=d*n.height+n.y),u=fr(u)?u:0,h=fr(h)?h:1,c=fr(c)?c:0,d=fr(d)?d:0,t.createLinearGradient(u,c,h,d)),f=e.colorStops,g=0;g<f.length;g++)p.addColorStop(f[g].offset,f[g].color);return p}function fo(t){return parseInt(t,10)}function fa(t,e,n){var r=["width","height"][e],i=["clientWidth","clientHeight"][e],o=["paddingLeft","paddingTop"][e],a=["paddingRight","paddingBottom"][e];if(null!=n[r]&&"auto"!==n[r])return parseFloat(n[r]);var s=document.defaultView.getComputedStyle(t);return(t[i]||fo(s[r])||fo(t.style[r]))-(fo(s[o])||0)-(fo(s[a])||0)|0}function fs(t){var e,n,r=t.style,i=r.lineDash&&r.lineWidth>0&&(e=r.lineDash,n=r.lineWidth,e&&"solid"!==e&&n>0?"dashed"===e?[4*n,2*n]:"dotted"===e?[n]:eC(e)?[e]:ew(e)?e:null:null),o=r.lineDashOffset;if(i){var a=r.strokeNoScale&&t.getLineScale?t.getLineScale():1;a&&1!==a&&(i=em(i,function(t){return t/a}),o/=a)}return[i,o]}var fl=new aZ(!0);function fu(t){var e=t.stroke;return null!=e&&"none"!==e&&t.lineWidth>0}function fh(t){return"string"==typeof t&&"none"!==t}function fc(t){var e=t.fill;return null!=e&&"none"!==e}function fd(t,e){if(null!=e.fillOpacity&&1!==e.fillOpacity){var n=t.globalAlpha;t.globalAlpha=e.fillOpacity*e.opacity,t.fill(),t.globalAlpha=n}else t.fill()}function fp(t,e){if(null!=e.strokeOpacity&&1!==e.strokeOpacity){var n=t.globalAlpha;t.globalAlpha=e.strokeOpacity*e.opacity,t.stroke(),t.globalAlpha=n}else t.stroke()}function ff(t,e,n){var r=o2(e.image,e.__image,n);if(o3(r)){var i=t.createPattern(r,e.repeat||"repeat");if("function"==typeof DOMMatrix&&i&&i.setTransform){var o=new DOMMatrix;o.translateSelf(e.x||0,e.y||0),o.rotateSelf(0,0,(e.rotation||0)*ej),o.scaleSelf(e.scaleX||1,e.scaleY||1),i.setTransform(o)}return i}}var fg=["shadowBlur","shadowOffsetX","shadowOffsetY"],fm=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function fy(t,e,n,r,i){var o=!1;if(!r&&e===(n=n||{}))return!1;if(r||e.opacity!==n.opacity){fx(t,i),o=!0;var a=Math.max(Math.min(e.opacity,1),0);t.globalAlpha=isNaN(a)?ac.opacity:a}(r||e.blend!==n.blend)&&(o||(fx(t,i),o=!0),t.globalCompositeOperation=e.blend||ac.blend);for(var s=0;s<fg.length;s++){var l=fg[s];(r||e[l]!==n[l])&&(o||(fx(t,i),o=!0),t[l]=t.dpr*(e[l]||0))}return(r||e.shadowColor!==n.shadowColor)&&(o||(fx(t,i),o=!0),t.shadowColor=e.shadowColor||ac.shadowColor),o}function fv(t,e,n,r,i){var o=fb(e,i.inHover),a=r?null:n&&fb(n,i.inHover)||{};if(o===a)return!1;var s=fy(t,o,a,r,i);if((r||o.fill!==a.fill)&&(s||(fx(t,i),s=!0),fh(o.fill)&&(t.fillStyle=o.fill)),(r||o.stroke!==a.stroke)&&(s||(fx(t,i),s=!0),fh(o.stroke)&&(t.strokeStyle=o.stroke)),(r||o.opacity!==a.opacity)&&(s||(fx(t,i),s=!0),t.globalAlpha=null==o.opacity?1:o.opacity),e.hasStroke()){var l=o.lineWidth/(o.strokeNoScale&&e.getLineScale?e.getLineScale():1);t.lineWidth!==l&&(s||(fx(t,i),s=!0),t.lineWidth=l)}for(var u=0;u<fm.length;u++){var h=fm[u],c=h[0];(r||o[c]!==a[c])&&(s||(fx(t,i),s=!0),t[c]=o[c]||h[1])}return s}function f_(t,e){var n=e.transform,r=t.dpr||1;n?t.setTransform(r*n[0],r*n[1],r*n[2],r*n[3],r*n[4],r*n[5]):t.setTransform(r,0,0,r,0,0)}function fx(t,e){e.batchFill&&t.fill(),e.batchStroke&&t.stroke(),e.batchFill="",e.batchStroke=""}function fb(t,e){return e&&t.__hoverStyle||t.style}var fw=new p2,fS=new rA(100),fk=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function fM(t,e){if("none"===t)return null;var n=e.getDevicePixelRatio(),r=e.getZr(),i="svg"===r.painter.type;t.dirty&&fw.delete(t);var o=fw.get(t);if(o)return o;var a=ec(t,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});"none"===a.backgroundColor&&(a.backgroundColor=null);var s={repeat:"repeat"};return function(t){for(var e=[n],o=!0,s=0;s<fk.length;++s){var l=a[fk[s]];if(null!=l&&!ew(l)&&!ek(l)&&!eC(l)&&"boolean"!=typeof l){o=!1;break}e.push(l)}if(o){h=e.join(",")+(i?"-svg":"");var u=fS.get(h);u&&(i?t.svgElement=u:t.image=u)}var h,c,d=function t(e){if(!e||0===e.length)return[[0,0]];if(eC(e)){var n=Math.ceil(e);return[[n,n]]}for(var r=!0,i=0;i<e.length;++i)if(!eC(e[i])){r=!1;break}if(r)return t([e]);for(var o=[],i=0;i<e.length;++i)if(eC(e[i])){var n=Math.ceil(e[i]);o.push([n,n])}else{var n=em(e[i],function(t){return Math.ceil(t)});n.length%2==1?o.push(n.concat(n)):o.push(n)}return o}(a.dashArrayX),p=function(t){if(!t||"object"==typeof t&&0===t.length)return[0,0];if(eC(t)){var e=Math.ceil(t);return[e,e]}var n=em(t,function(t){return Math.ceil(t)});return t.length%2?n.concat(n):n}(a.dashArrayY),f=function t(e){if(!e||0===e.length)return[["rect"]];if(ek(e))return[[e]];for(var n=!0,r=0;r<e.length;++r)if(!ek(e[r])){n=!1;break}if(n)return t([e]);for(var i=[],r=0;r<e.length;++r)ek(e[r])?i.push([e[r]]):i.push(e[r]);return i}(a.symbol),g=em(d,function(t){return fC(t)}),m=fC(p),y=!i&&t3.createCanvas(),v=i&&{tag:"g",attrs:{},key:"dcl",children:[]},_=function(){for(var t=1,e=0,n=g.length;e<n;++e)t=ox(t,g[e]);for(var r=1,e=0,n=f.length;e<n;++e)r=ox(r,f[e].length);t*=r;var i=m*g.length*f.length;return{width:Math.max(1,Math.min(t,a.maxTileWidth)),height:Math.max(1,Math.min(i,a.maxTileHeight))}}();y&&(y.width=_.width*n,y.height=_.height*n,c=y.getContext("2d")),function(){c&&(c.clearRect(0,0,y.width,y.height),a.backgroundColor&&(c.fillStyle=a.backgroundColor,c.fillRect(0,0,y.width,y.height)));for(var t=0,e=0;e<p.length;++e)t+=p[e];if(!(t<=0))for(var o=-m,s=0,l=0,u=0;o<_.height;){if(s%2==0){for(var h=l/2%f.length,g=0,x=0,b=0;g<2*_.width;){for(var w=0,e=0;e<d[u].length;++e)w+=d[u][e];if(w<=0)break;if(x%2==0){var S=(1-a.symbolSize)*.5,k=g+d[u][x]*S,M=o+p[s]*S,C=d[u][x]*a.symbolSize,T=p[s]*a.symbolSize,I=b/2%f[h].length;!function(t,e,o,s,l){var u=i?1:n,h=fe(l,t*u,e*u,o*u,s*u,a.color,a.symbolKeepAspect);if(i){var d=r.painter.renderOneToVNode(h);d&&v.children.push(d)}else!function t(e,n,r,i){var o,a,s,l,u,h=n.transform;if(!n.shouldBePainted(r.viewWidth,r.viewHeight,!1,!1)){n.__dirty&=-2,n.__isRendered=!1;return}var c=n.__clipPaths,d=r.prevElClipPaths,p=!1,f=!1;if((!d||function(t,e){if(t===e||!t&&!e)return!1;if(!t||!e||t.length!==e.length)return!0;for(var n=0;n<t.length;n++)if(t[n]!==e[n])return!0;return!1}(c,d))&&(d&&d.length&&(fx(e,r),e.restore(),f=p=!0,r.prevElClipPaths=null,r.allClipped=!1,r.prevEl=null),c&&c.length&&(fx(e,r),e.save(),function(t,e,n){for(var r=!1,i=0;i<t.length;i++){var o=t[i];r=r||o.isZeroArea(),f_(e,o),e.beginPath(),o.buildPath(e,o.shape),e.clip()}n.allClipped=r}(c,e,r),p=!0),r.prevElClipPaths=c),r.allClipped){n.__isRendered=!1;return}n.beforeBrush&&n.beforeBrush(),n.innerBeforeBrush();var g=r.prevEl;g||(f=p=!0);var m=n instanceof a8&&n.autoBatch&&(a=fc(o=n.style),s=fu(o),!(o.lineDash||!(a^s)||a&&"string"!=typeof o.fill||s&&"string"!=typeof o.stroke||o.strokePercent<1||o.strokeOpacity<1||o.fillOpacity<1));p||(l=g.transform,h&&l?h[0]!==l[0]||h[1]!==l[1]||h[2]!==l[2]||h[3]!==l[3]||h[4]!==l[4]||h[5]!==l[5]:!(!h&&!l))?(fx(e,r),f_(e,n)):m||fx(e,r);var y=fb(n,r.inHover);n instanceof a8?(1!==r.lastDrawType&&(f=!0,r.lastDrawType=1),fv(e,n,g,f,r),m&&(r.batchFill||r.batchStroke)||e.beginPath(),function(t,e,n,r){var i,o,a,s=fu(n),l=fc(n),u=n.strokePercent,h=u<1,c=!e.path;(!e.silent||h)&&c&&e.createPathProxy();var d=e.path||fl,p=e.__dirty;if(!r){var f=n.fill,g=n.stroke,m=l&&!!f.colorStops,y=s&&!!g.colorStops,v=l&&!!f.image,_=s&&!!g.image,x=void 0,b=void 0,w=void 0,S=void 0,k=void 0;(m||y)&&(k=e.getBoundingRect()),m&&(x=p?fi(t,f,k):e.__canvasFillGradient,e.__canvasFillGradient=x),y&&(b=p?fi(t,g,k):e.__canvasStrokeGradient,e.__canvasStrokeGradient=b),v&&(w=p||!e.__canvasFillPattern?ff(t,f,e):e.__canvasFillPattern,e.__canvasFillPattern=w),_&&(S=p||!e.__canvasStrokePattern?ff(t,g,e):e.__canvasStrokePattern,e.__canvasStrokePattern=S),m?t.fillStyle=x:v&&(w?t.fillStyle=w:l=!1),y?t.strokeStyle=b:_&&(S?t.strokeStyle=S:s=!1)}var M=e.getGlobalScale();d.setScale(M[0],M[1],e.segmentIgnoreThreshold),t.setLineDash&&n.lineDash&&(i=(a=fs(e))[0],o=a[1]);var C=!0;(c||4&p)&&(d.setDPR(t.dpr),h?d.setContext(null):(d.setContext(t),C=!1),d.reset(),e.buildPath(d,e.shape,r),d.toStatic(),e.pathUpdated()),C&&d.rebuildPath(t,h?u:1),i&&(t.setLineDash(i),t.lineDashOffset=o),r||(n.strokeFirst?(s&&fp(t,n),l&&fd(t,n)):(l&&fd(t,n),s&&fp(t,n))),i&&t.setLineDash([])}(e,n,y,m),m&&(r.batchFill=y.fill||"",r.batchStroke=y.stroke||"")):n instanceof a9?(3!==r.lastDrawType&&(f=!0,r.lastDrawType=3),fv(e,n,g,f,r),function(t,e,n){var r,i=n.text;if(null!=i&&(i+=""),i){t.font=n.font||t2,t.textAlign=n.textAlign,t.textBaseline=n.textBaseline;var o=void 0,a=void 0;t.setLineDash&&n.lineDash&&(o=(r=fs(e))[0],a=r[1]),o&&(t.setLineDash(o),t.lineDashOffset=a),n.strokeFirst?(fu(n)&&t.strokeText(i,n.x,n.y),fc(n)&&t.fillText(i,n.x,n.y)):(fc(n)&&t.fillText(i,n.x,n.y),fu(n)&&t.strokeText(i,n.x,n.y)),o&&t.setLineDash([])}}(e,n,y)):n instanceof sn?(2!==r.lastDrawType&&(f=!0,r.lastDrawType=2),u=f,fy(e,fb(n,r.inHover),g&&fb(g,r.inHover),u,r),function(t,e,n){var r=e.__image=o2(n.image,e.__image,e,e.onload);if(!(!r||!o3(r))){var i=n.x||0,o=n.y||0,a=e.getWidth(),s=e.getHeight(),l=r.width/r.height;if(null==a&&null!=s?a=s*l:null==s&&null!=a?s=a/l:null==a&&null==s&&(a=r.width,s=r.height),n.sWidth&&n.sHeight){var u=n.sx||0,h=n.sy||0;t.drawImage(r,u,h,n.sWidth,n.sHeight,i,o,a,s)}else if(n.sx&&n.sy){var u=n.sx,h=n.sy,c=a-u,d=s-h;t.drawImage(r,u,h,c,d,i,o,a,s)}else t.drawImage(r,i,o,a,s)}}(e,n,y)):n.getTemporalDisplayables&&(4!==r.lastDrawType&&(f=!0,r.lastDrawType=4),function(e,n,r){var i=n.getDisplayables(),o=n.getTemporalDisplayables();e.save();var a,s,l={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:r.viewWidth,viewHeight:r.viewHeight,inHover:r.inHover};for(a=n.getCursor(),s=i.length;a<s;a++){var u=i[a];u.beforeBrush&&u.beforeBrush(),u.innerBeforeBrush(),t(e,u,l,a===s-1),u.innerAfterBrush(),u.afterBrush&&u.afterBrush(),l.prevEl=u}for(var h=0,c=o.length;h<c;h++){var u=o[h];u.beforeBrush&&u.beforeBrush(),u.innerBeforeBrush(),t(e,u,l,h===c-1),u.innerAfterBrush(),u.afterBrush&&u.afterBrush(),l.prevEl=u}n.clearTemporalDisplayables(),n.notClear=!0,e.restore()}(e,n,r)),m&&i&&fx(e,r),n.innerAfterBrush(),n.afterBrush&&n.afterBrush(),r.prevEl=n,n.__dirty=0,n.__isRendered=!0}(c,h,{inHover:!1,viewWidth:0,viewHeight:0},!0)}(k,M,C,T,f[h][I])}g+=d[u][x],++b,++x===d[u].length&&(x=0)}++u===d.length&&(u=0)}o+=p[s],++l,++s===p.length&&(s=0)}}(),o&&fS.put(h,y||v),t.image=y,t.svgElement=v,t.svgWidth=_.width,t.svgHeight=_.height}(s),s.rotation=a.rotation,s.scaleX=s.scaleY=i?1:1/n,fw.set(t,s),t.dirty=!1,s}function fC(t){for(var e=0,n=0;n<t.length;++n)e+=t[n];return t.length%2==1?2*e:e}var fT=new e5,fI={},fD="__flagInMainProcess",fA="__mainProcessVersion",fL="__pendingUpdate",f$="__needsUpdateStatus",fP=/^[a-zA-Z0-9_]+$/,fO="__connectUpdateStatus";function fE(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return this.isDisposed()?void this.id:fR(this,t,e)}}function fN(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return fR(this,t,e)}}function fR(t,e,n){return n[0]=n[0]&&n[0].toLowerCase(),e5.prototype[e].apply(t,n)}var fz=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return tK(e,t),e}(e5),fB=fz.prototype;fB.on=fN("on"),fB.off=fN("off");var fF,fV,fW,fH,fG,fj,fU,fZ,fX,fY,fq,fQ,fK,fJ,f0,f1,f2,f5,f3,f4,f6=function(t){function e(e,n,r){var i,o=t.call(this,new pY)||this;o._chartsViews=[],o._chartsMap={},o._componentsViews=[],o._componentsMap={},o._pendingActions=[],r=r||{},o._dom=e,o[fA]=1,r.ssr&&(cT=function(t){var e=sC(t),n=e.dataIndex;if(null!=n){var r=eV();return r.set("series_index",e.seriesIndex),r.set("data_index",n),e.ssrType&&r.set("ssr_type",e.ssrType),r}});var a=o._zr=or(e,{renderer:r.renderer||"canvas",devicePixelRatio:r.devicePixelRatio,width:r.width,height:r.height,ssr:r.ssr,useDirtyRect:(i=r.useDirtyRect,i??!1),useCoarsePointer:r.useCoarsePointer??"auto",pointerSize:r.pointerSize});o._ssr=r.ssr,o._throttledZrFlush=px(ex(a.flush,a),17),o._updateTheme(n),o._locale=function(t){if(!ek(t))return eu(el(t),el(ha.EN),!1);var e=ha[t.toUpperCase()]||{};return"ZH"===t||"EN"===t?el(e):eu(el(e),el(ha.EN),!1)}(r.locale||hl),o._coordSysMgr=new hG;var s=o._api=f1(o);function l(t,e){return t.__prio-e.__prio}return n0(gi,l),n0(gn,l),o._scheduler=new pA(o,s,gn,gi),o._messageCenter=new fz,o._initEvents(),o.resize=ex(o.resize,o),a.animation.on("frame",o._onframe,o),fq(a,o),fQ(a,o),o[eR]=!0,o}return tK(e,t),e.prototype._onframe=function(){if(!this._disposed){f3(this);var t=this._scheduler;if(this[fL]){var e=this[fL].silent;this[fD]=!0,f4(this);try{fV(this),fG.update.call(this,null,this[fL].updateParams)}catch(t){throw this[fD]=!1,this[fL]=null,t}this._zr.flush(),this[fD]=!1,this[fL]=null,fX.call(this,e),fY.call(this,e)}else if(t.unfinished){var n=1,r=this._model,i=this._api;t.unfinished=!1;do{var o=+new Date;t.performSeriesTasks(r),t.performDataProcessorTasks(r),fU(this,r),t.performVisualTasks(r),f0(this,this._model,i,"remain",{}),n-=new Date-o}while(n>0&&t.unfinished);t.unfinished||this._zr.flush()}}},e.prototype.getDom=function(){return this._dom},e.prototype.getId=function(){return this.id},e.prototype.getZr=function(){return this._zr},e.prototype.isSSR=function(){return this._ssr},e.prototype.setOption=function(t,e,n){if(!this[fD]){if(this._disposed)return void this.id;if(eT(e)&&(n=e.lazyUpdate,r=e.silent,i=e.replaceMerge,o=e.transition,e=e.notMerge),this[fD]=!0,f4(this),!this._model||e){var r,i,o,a=new cF(this._api),s=this._theme,l=this._model=new cP;l.scheduler=this._scheduler,l.ssr=this._ssr,l.init(null,null,null,s,this._locale,a)}this._model.setOption(t,{replaceMerge:i},gr);var u={seriesTransition:o,optionChanged:!0};if(n)this[fL]={silent:r,updateParams:u},this[fD]=!1,this.getZr().wakeUp();else{try{fV(this),fG.update.call(this,null,u)}catch(t){throw this[fL]=null,this[fD]=!1,t}this._ssr||this._zr.flush(),this[fL]=null,this[fD]=!1,fX.call(this,r),fY.call(this,r)}}},e.prototype.setTheme=function(t,e){if(!this[fD]){if(this._disposed)return void this.id;var n=this._model;if(n){var r=e&&e.silent,i=null;this[fL]&&(null==r&&(r=this[fL].silent),i=this[fL].updateParams,this[fL]=null),this[fD]=!0,f4(this);try{this._updateTheme(t),n.setTheme(this._theme),fV(this),fG.update.call(this,{type:"setTheme"},i)}catch(t){throw this[fD]=!1,t}this[fD]=!1,fX.call(this,r),fY.call(this,r)}}},e.prototype._updateTheme=function(t){ek(t)&&(t=go[t]),t&&((t=el(t))&&c5(t,!0),this._theme=t)},e.prototype.getModel=function(){return this._model},e.prototype.getOption=function(){return this._model&&this._model.getOption()},e.prototype.getWidth=function(){return this._zr.getWidth()},e.prototype.getHeight=function(){return this._zr.getHeight()},e.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||t0.hasGlobalWindow&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(t){return this.renderToCanvas(t)},e.prototype.renderToCanvas=function(t){return t=t||{},this._zr.painter.getRenderedCanvas({backgroundColor:t.backgroundColor||this._model.get("backgroundColor"),pixelRatio:t.pixelRatio||this.getDevicePixelRatio()})},e.prototype.renderToSVGString=function(t){return t=t||{},this._zr.painter.renderToString({useViewBox:t.useViewBox})},e.prototype.getSvgDataURL=function(){var t=this._zr;return eg(t.storage.getDisplayList(),function(t){t.stopAnimation(null,!0)}),t.painter.toDataURL()},e.prototype.getDataURL=function(t){if(this._disposed)return void this.id;var e=(t=t||{}).excludeComponents,n=this._model,r=[],i=this;eg(e,function(t){n.eachComponent({mainType:t},function(t){var e=i._componentsMap[t.__viewId];e.group.ignore||(r.push(e),e.group.ignore=!0)})});var o="svg"===this._zr.painter.getType()?this.getSvgDataURL():this.renderToCanvas(t).toDataURL("image/"+(t&&t.type||"png"));return eg(r,function(t){t.group.ignore=!1}),o},e.prototype.getConnectedDataURL=function(t){if(this._disposed)return void this.id;var e="svg"===t.type,n=this.group,r=Math.min,i=Math.max,o=1/0;if(!gl[n])return this.getDataURL(t);var a=o,s=o,l=-o,u=-o,h=[],c=t&&t.pixelRatio||this.getDevicePixelRatio();eg(gs,function(o,c){if(o.group===n){var d=e?o.getZr().painter.getSvgDom().innerHTML:o.renderToCanvas(el(t)),p=o.getDom().getBoundingClientRect();a=r(p.left,a),s=r(p.top,s),l=i(p.right,l),u=i(p.bottom,u),h.push({dom:d,left:p.left,top:p.top})}}),a*=c,s*=c,l*=c,u*=c;var d=l-a,p=u-s,f=t3.createCanvas(),g=or(f,{renderer:e?"svg":"canvas"});if(g.resize({width:d,height:p}),!e)return t.connectedBackgroundColor&&g.add(new su({shape:{x:0,y:0,width:d,height:p},style:{fill:t.connectedBackgroundColor}})),eg(h,function(t){var e=new sn({style:{x:t.left*c-a,y:t.top*c-s,image:t.dom}});g.add(e)}),g.refreshImmediately(),f.toDataURL("image/"+(t&&t.type||"png"));var m="";return eg(h,function(t){var e=t.left-a,n=t.top-s;m+='<g transform="translate('+e+","+n+')">'+t.dom+"</g>"}),g.painter.getSvgRoot().innerHTML=m,t.connectedBackgroundColor&&g.painter.setBackgroundColor(t.connectedBackgroundColor),g.refreshImmediately(),g.painter.toDataURL()},e.prototype.convertToPixel=function(t,e,n){return fj(this,"convertToPixel",t,e,n)},e.prototype.convertToLayout=function(t,e,n){return fj(this,"convertToLayout",t,e,n)},e.prototype.convertFromPixel=function(t,e,n){return fj(this,"convertFromPixel",t,e,n)},e.prototype.containPixel=function(t,e){var n;return this._disposed?void this.id:(eg(oz(this._model,t),function(t,r){r.indexOf("Models")>=0&&eg(t,function(t){var i=t.coordinateSystem;if(i&&i.containPoint)n=n||!!i.containPoint(e);else if("seriesModels"===r){var o=this._chartsMap[t.__viewId];o&&o.containPoint&&(n=n||o.containPoint(e,t))}},this)},this),!!n)},e.prototype.getVisual=function(t,e){var n=oz(this._model,t,{defaultMainType:"series"}),r=n.seriesModel.getData(),i=n.hasOwnProperty("dataIndexInside")?n.dataIndexInside:n.hasOwnProperty("dataIndex")?r.indexOfRawIndex(n.dataIndex):null;return null!=i?function(t,e,n){switch(n){case"color":return t.getItemVisual(e,"style")[t.getVisual("drawType")];case"opacity":return t.getItemVisual(e,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getItemVisual(e,n)}}(r,i,e):function(t,e){switch(e){case"color":return t.getVisual("style")[t.getVisual("drawType")];case"opacity":return t.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getVisual(e)}}(r,e)},e.prototype.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},e.prototype.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]},e.prototype._initEvents=function(){var t,e,n=this;eg(f7,function(t){var e=function(e){var r,i=n.getModel(),o=e.target;if("globalout"===t?r={}:o&&pJ(o,function(t){var e=sC(t);if(e&&null!=e.dataIndex){var n=e.dataModel||i.getSeriesByIndex(e.seriesIndex);return r=n&&n.getDataParams(e.dataIndex,e.dataType,o)||{},!0}if(e.eventData)return r=eh({},e.eventData),!0},!0),r){var a=r.componentType,s=r.componentIndex;("markLine"===a||"markPoint"===a||"markArea"===a)&&(a="series",s=r.seriesIndex);var l=a&&null!=s&&i.getComponent(a,s),u=l&&n["series"===l.mainType?"_chartsMap":"_componentsMap"][l.__viewId];r.event=e,r.type=t,n._$eventProcessor.eventInfo={targetEl:o,packedEvent:r,model:l,view:u},n.trigger(t,r)}};e.zrEventfulCallAtLast=!0,n._zr.on(t,e,n)});var r=this._messageCenter;eg(ge,function(t,e){r.on(e,function(t){n.trigger(e,t)})}),t=this,e=this._api,r.on("selectchanged",function(n){var r=e.getModel();n.isFromClick?(pK("map","selectchanged",t,r,n),pK("pie","selectchanged",t,r,n)):"select"===n.fromAction?(pK("map","selected",t,r,n),pK("pie","selected",t,r,n)):"unselect"===n.fromAction&&(pK("map","unselected",t,r,n),pK("pie","unselected",t,r,n))})},e.prototype.isDisposed=function(){return this._disposed},e.prototype.clear=function(){this._disposed?this.id:this.setOption({series:[]},!0)},e.prototype.dispose=function(){if(this._disposed)return void this.id;this._disposed=!0,this.getDom()&&oW(this.getDom(),gh,"");var t=this._api,e=this._model;eg(this._componentsViews,function(n){n.dispose(e,t)}),eg(this._chartsViews,function(n){n.dispose(e,t)}),this._zr.dispose(),this._dom=this._model=this._chartsMap=this._componentsMap=this._chartsViews=this._componentsViews=this._scheduler=this._api=this._zr=this._throttledZrFlush=this._theme=this._coordSysMgr=this._messageCenter=null,delete gs[this.id]},e.prototype.resize=function(t){if(!this[fD]){if(this._disposed)return void this.id;this._zr.resize(t);var e=this._model;if(this._loadingFX&&this._loadingFX.resize(),e){var n=e.resetOption("media"),r=t&&t.silent;this[fL]&&(null==r&&(r=this[fL].silent),n=!0,this[fL]=null),this[fD]=!0,f4(this);try{n&&fV(this),fG.update.call(this,{type:"resize",animation:eh({duration:0},t&&t.animation)})}catch(t){throw this[fD]=!1,t}this[fD]=!1,fX.call(this,r),fY.call(this,r)}}},e.prototype.showLoading=function(t,e){if(this._disposed)return void this.id;if(eT(t)&&(e=t,t=""),t=t||"default",this.hideLoading(),ga[t]){var n=ga[t](this._api,e),r=this._zr;this._loadingFX=n,r.add(n)}},e.prototype.hideLoading=function(){this._disposed?this.id:(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},e.prototype.makeActionFromEvent=function(t){var e=eh({},t);return e.type=gt[t.type],e},e.prototype.dispatchAction=function(t,e){if(this._disposed)return void this.id;if(eT(e)||(e={silent:!!e}),f9[t.type]&&this._model){if(this[fD])return void this._pendingActions.push(t);var n=e.silent;fZ.call(this,t,n);var r=e.flush;r?this._zr.flush():!1!==r&&t0.browser.weChat&&this._throttledZrFlush(),fX.call(this,n),fY.call(this,n)}},e.prototype.updateLabelLayout=function(){fT.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(t){if(this._disposed)return void this.id;var e=t.seriesIndex;this.getModel().getSeriesByIndex(e).appendData(t),this._scheduler.unfinished=!0,this.getZr().wakeUp()},e.internalField=function(){function t(t){t.clearColorPalette(),t.eachSeries(function(t){t.clearColorPalette()})}function e(t){for(var e=[],n=t.currentStates,r=0;r<n.length;r++){var i=n[r];"emphasis"===i||"blur"===i||"select"===i||e.push(i)}t.selected&&t.states.select&&e.push("select"),2===t.hoverState&&t.states.emphasis?e.push("emphasis"):1===t.hoverState&&t.states.blur&&e.push("blur"),t.useStates(e)}function n(t,e){if(!t.preventAutoZ){var n=uV(t);e.eachRendered(function(t){return uW(t,n.z,n.zlevel),!0})}}function r(t,e){e.eachRendered(function(t){if(!ud(t)){var e=t.getTextContent(),n=t.getTextGuideLine();t.stateTransition&&(t.stateTransition=null),e&&e.stateTransition&&(e.stateTransition=null),n&&n.stateTransition&&(n.stateTransition=null),t.hasState()?(t.prevStates=t.currentStates,t.clearStates()):t.prevStates&&(t.prevStates=null)}})}function i(t,n){var r=t.getModel("stateAnimation"),i=t.isAnimationEnabled(),o=r.get("duration"),a=o>0?{duration:o,delay:r.get("delay"),easing:r.get("easing")}:null;n.eachRendered(function(t){if(t.states&&t.states.emphasis&&!ud(t)){if(t instanceof a8&&((n=sA(t)).normalFill=t.style.fill,n.normalStroke=t.style.stroke,n.selectFill=(r=t.states.select||{}).style&&r.style.fill||null,n.selectStroke=r.style&&r.style.stroke||null),t.__dirty){var n,r,o=t.prevStates;o&&t.useStates(o)}if(i){t.stateTransition=a;var s=t.getTextContent(),l=t.getTextGuideLine();s&&(s.stateTransition=a),l&&(l.stateTransition=a)}t.__dirty&&e(t)}})}fV=function(t){var e=t._scheduler;e.restorePipelines(t._model),e.prepareStageTasks(),fW(t,!0),fW(t,!1),e.plan()},fW=function(t,e){for(var n=t._model,r=t._scheduler,i=e?t._componentsViews:t._chartsViews,o=e?t._componentsMap:t._chartsMap,a=t._zr,s=t._api,l=0;l<i.length;l++)i[l].__alive=!1;function u(t){var l=t.__requireNewView;t.__requireNewView=!1;var u="_ec_"+t.id+"_"+t.type,h=!l&&o[u];if(!h){var c=oj(t.type);(h=new(e?ps.getClass(c.main,c.sub):pc.getClass(c.sub))).init(n,s),o[u]=h,i.push(h),a.add(h.group)}t.__viewId=h.__id=u,h.__alive=!0,h.__model=t,h.group.__ecComponentInfo={mainType:t.mainType,index:t.componentIndex},e||r.prepareView(h,t,n,s)}e?n.eachComponent(function(t,e){"series"!==t&&u(e)}):n.eachSeries(u);for(var l=0;l<i.length;){var h=i[l];h.__alive?l++:(e||h.renderTask.dispose(),a.remove(h.group),h.dispose(n,s),i.splice(l,1),o[h.__id]===h&&delete o[h.__id],h.__id=h.group.__ecComponentInfo=null)}},fH=function(t,e,n,r,i){var o=t._model;if(o.setUpdatePayload(n),!r)return void eg([].concat(t._componentsViews).concat(t._chartsViews),h);var a={};a[r+"Id"]=n[r+"Id"],a[r+"Index"]=n[r+"Index"],a[r+"Name"]=n[r+"Name"];var s={mainType:r,query:a};i&&(s.subType=i);var l,u=n.excludeSeriesId;function h(r){r&&r.__alive&&r[e]&&r[e](r.__model,o,t._api,n)}null!=u&&(l=eV(),eg(oC(u),function(t){var e=o$(t,null);null!=e&&l.set(e,!0)})),o&&o.eachComponent(s,function(e){if(!(l&&null!=l.get(e.id)))if(la(n))if(e instanceof d9)n.type!==sO||n.notBlur||e.get(["emphasis","disabled"])||function(t,e,n){var r=t.seriesIndex,i=t.getData(e.dataType);if(i){var o=oE(i,e);o=(ew(o)?o[0]:o)||0;var a=i.getItemGraphicEl(o);if(!a)for(var s=i.count(),l=0;!a&&l<s;)a=i.getItemGraphicEl(l++);if(a){var u=sC(a);s3(r,u.focus,u.blurScope,n)}else{var h=t.get(["emphasis","focus"]),c=t.get(["emphasis","blurScope"]);null!=h&&s3(r,h,c,n)}}}(e,n,t._api);else{var r=s6(e.mainType,e.componentIndex,n.name,t._api),i=r.focusSelf,o=r.dispatchers;n.type===sO&&i&&!n.notBlur&&s4(e.mainType,e.componentIndex,t._api),o&&eg(o,function(t){n.type===sO?s0(t):s1(t)})}else lo(n)&&e instanceof d9&&(function(t,e,n){if(lo(e)){var r=e.dataType,i=oE(t.getData(r),e);ew(i)||(i=[i]),t[e.type===sz?"toggleSelect":e.type===sN?"select":"unselect"](i,r)}}(e,n,t._api),s8(e),f5(t))},t),o&&o.eachComponent(s,function(e){l&&null!=l.get(e.id)||h(t["series"===r?"_chartsMap":"_componentsMap"][e.__viewId])},t)},fG={prepareAndUpdate:function(t){fV(this),fG.update.call(this,t,t&&{optionChanged:null!=t.newOption})},update:function(e,n){var r=this._model,i=this._api,o=this._zr,a=this._coordSysMgr,s=this._scheduler;if(r){r.setUpdatePayload(e),s.restoreData(r,e),s.performSeriesTasks(r),a.create(r,i),s.performDataProcessorTasks(r,e),fU(this,r),a.update(r,i),t(r),s.performVisualTasks(r,e);var l=r.get("backgroundColor")||"transparent";o.setBackgroundColor(l);var u=r.get("darkMode");null!=u&&"auto"!==u&&o.setDarkMode(u),fK(this,r,i,e,n),fT.trigger("afterupdate",r,i)}},updateTransform:function(e){var n=this,r=this._model,i=this._api;if(r){r.setUpdatePayload(e);var o=[];r.eachComponent(function(t,a){if("series"!==t){var s=n.getViewOfComponentModel(a);if(s&&s.__alive)if(s.updateTransform){var l=s.updateTransform(a,r,i,e);l&&l.update&&o.push(s)}else o.push(s)}});var a=eV();r.eachSeries(function(t){var o=n._chartsMap[t.__viewId];if(o.updateTransform){var s=o.updateTransform(t,r,i,e);s&&s.update&&a.set(t.uid,1)}else a.set(t.uid,1)}),t(r),this._scheduler.performVisualTasks(r,e,{setDirty:!0,dirtyMap:a}),f0(this,r,i,e,{},a),fT.trigger("afterupdate",r,i)}},updateView:function(e){var n=this._model;n&&(n.setUpdatePayload(e),pc.markUpdateMethod(e,"updateView"),t(n),this._scheduler.performVisualTasks(n,e,{setDirty:!0}),fK(this,n,this._api,e,{}),fT.trigger("afterupdate",n,this._api))},updateVisual:function(e){var n=this,r=this._model;r&&(r.setUpdatePayload(e),r.eachSeries(function(t){t.getData().clearAllVisual()}),pc.markUpdateMethod(e,"updateVisual"),t(r),this._scheduler.performVisualTasks(r,e,{visualType:"visual",setDirty:!0}),r.eachComponent(function(t,i){if("series"!==t){var o=n.getViewOfComponentModel(i);o&&o.__alive&&o.updateVisual(i,r,n._api,e)}}),r.eachSeries(function(t){n._chartsMap[t.__viewId].updateVisual(t,r,n._api,e)}),fT.trigger("afterupdate",r,this._api))},updateLayout:function(t){fG.update.call(this,t)}},fj=function(t,e,n,r,i){if(t._disposed)return void t.id;for(var o,a=t._model,s=t._coordSysMgr.getCoordinateSystems(),l=oz(a,n),u=0;u<s.length;u++){var h=s[u];if(h[e]&&null!=(o=h[e](a,l,r,i)))return o}},fU=function(t,e){var n=t._chartsMap,r=t._scheduler;e.eachSeries(function(t){r.updateStreamModes(t,n[t.__viewId])})},fZ=function(t,e){var n=this,r=this.getModel(),i=t.type,o=t.escapeConnect,a=f9[i],s=(a.update||"update").split(":"),l=s.pop(),u=null!=s[0]&&oj(s[0]);this[fD]=!0,f4(this);var h=[t],c=!1;t.batch&&(c=!0,h=em(t.batch,function(e){return(e=ec(eh({},e),t)).batch=null,e}));var d,p=[],f=[],g=a.nonRefinedEventType,m=lo(t),y=la(t);if(y&&s5(this._api),eg(h,function(e){var i=a.action(e,r,n._api);if(a.refineEvent?f.push(i):d=i,(d=d||eh({},e)).type=g,p.push(d),y){var o=oB(t),s=o.queryOptionMap;fH(n,l,e,o.mainTypeSpecified?s.keys()[0]:"series"),f5(n)}else m?(fH(n,l,e,"series"),f5(n)):u&&fH(n,l,e,u.main,u.sub)}),"none"!==l&&!y&&!m&&!u)try{this[fL]?(fV(this),fG.update.call(this,t),this[fL]=null):fG[l].call(this,t)}catch(t){throw this[fD]=!1,t}if(d=c?{type:g,escapeConnect:o,batch:p}:p[0],this[fD]=!1,!e){var v=void 0;if(a.refineEvent){var _=a.refineEvent(f,t,r,this._api).eventContent;eE(eT(_)),(v=ec({type:a.refinedEventType},_)).fromAction=t.type,v.fromActionPayload=t,v.escapeConnect=!0}var x=this._messageCenter;x.trigger(d.type,d),v&&x.trigger(v.type,v)}},fX=function(t){for(var e=this._pendingActions;e.length;){var n=e.shift();fZ.call(this,n,t)}},fY=function(t){t||this.trigger("updated")},fq=function(t,e){t.on("rendered",function(n){e.trigger("rendered",n),!t.animation.isFinished()||e[fL]||e._scheduler.unfinished||e._pendingActions.length||e.trigger("finished")})},fQ=function(t,e){t.on("mouseover",function(t){var n,r,i,o,a,s=pJ(t.target,li);s&&(n=e._api,o=(i=s6((r=sC(s)).componentMainType,r.componentIndex,r.componentHighDownName,n)).dispatchers,a=i.focusSelf,o?(a&&s4(r.componentMainType,r.componentIndex,n),eg(o,function(e){return sK(e,t)})):(s3(r.seriesIndex,r.focus,r.blurScope,n),"self"===r.focus&&s4(r.componentMainType,r.componentIndex,n),sK(s,t)),f5(e))}).on("mouseout",function(t){var n,r,i,o=pJ(t.target,li);o&&(s5(n=e._api),(i=s6((r=sC(o)).componentMainType,r.componentIndex,r.componentHighDownName,n).dispatchers)?eg(i,function(e){return sJ(e,t)}):sJ(o,t),f5(e))}).on("click",function(t){var n=pJ(t.target,function(t){return null!=sC(t).dataIndex},!0);if(n){var r=n.selected?"unselect":"select",i=sC(n);e._api.dispatchAction({type:r,dataType:i.dataType,dataIndexInside:i.dataIndex,seriesIndex:i.seriesIndex,isFromClick:!0})}})},fK=function(t,e,n,r,i){(function(t){var e=[],n=[],r=!1;if(t.eachComponent(function(t,i){var o=i.get("zlevel")||0,a=i.get("z")||0,s=i.getZLevelKey();r=r||!!s,("series"===t?n:e).push({zlevel:o,z:a,idx:i.componentIndex,type:t,key:s})}),r){var i,o,a=e.concat(n);n0(a,function(t,e){return t.zlevel===e.zlevel?t.z-e.z:t.zlevel-e.zlevel}),eg(a,function(e){var n=t.getComponent(e.type,e.idx),r=e.zlevel,a=e.key;null!=i&&(r=Math.max(i,r)),a?(r===i&&a!==o&&r++,o=a):o&&(r===i&&r++,o=""),i=r,n.setZLevel(r)})}})(e),fJ(t,e,n,r,i),eg(t._chartsViews,function(t){t.__alive=!1}),f0(t,e,n,r,i),eg(t._chartsViews,function(t){t.__alive||t.remove(e,n)})},fJ=function(t,e,o,a,s,l){eg(l||t._componentsViews,function(t){var s=t.__model;r(s,t),t.render(s,e,o,a),n(s,t),i(s,t)})},f0=function(t,e,o,a,s,l){var u,h,c,d,p=t._scheduler;s=eh(s||{},{updatedSeries:e.getSeries()}),fT.trigger("series:beforeupdate",e,o,s);var f=!1;e.eachSeries(function(e){var n,i,o,s=t._chartsMap[e.__viewId];s.__alive=!0;var u=s.renderTask;p.updatePayload(u,a),r(e,s),l&&l.get(e.uid)&&u.dirty(),u.perform(p.getPerformArgs(u))&&(f=!0),s.group.silent=!!e.get("silent"),n=e,i=s,o=n.get("blendMode")||null,i.eachRendered(function(t){t.isGroup||(t.style.blend=o)}),s8(e)}),p.unfinished=f||p.unfinished,fT.trigger("series:layoutlabels",e,o,s),fT.trigger("series:transition",e,o,s),e.eachSeries(function(e){var r=t._chartsMap[e.__viewId];n(e,r),i(e,r)}),u=t,h=e,c=u._zr.storage,d=0,c.traverse(function(t){t.isGroup||d++}),!(d>h.get("hoverLayerThreshold"))||t0.node||t0.worker||h.eachSeries(function(t){if(!t.preventUsingHoverLayer){var e=u._chartsMap[t.__viewId];e.__alive&&e.eachRendered(function(t){t.states.emphasis&&(t.states.emphasis.hoverLayer=!0)})}}),fT.trigger("series:afterupdate",e,o,s)},f5=function(t){t[f$]=!0,t.getZr().wakeUp()},f4=function(t){t[fA]=(t[fA]+1)%1e3},f3=function(t){t[f$]&&(t.getZr().storage.traverse(function(t){ud(t)||e(t)}),t[f$]=!1)},f1=function(t){return new(function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return tK(n,e),n.prototype.getCoordinateSystems=function(){return t._coordSysMgr.getCoordinateSystems()},n.prototype.getComponentByElement=function(e){for(;e;){var n=e.__ecComponentInfo;if(null!=n)return t._model.getComponent(n.mainType,n.index);e=e.parent}},n.prototype.enterEmphasis=function(e,n){s0(e,n),f5(t)},n.prototype.leaveEmphasis=function(e,n){s1(e,n),f5(t)},n.prototype.enterBlur=function(e){sX(e,sG),f5(t)},n.prototype.leaveBlur=function(e){sX(e,sj),f5(t)},n.prototype.enterSelect=function(e){sX(e,sU),f5(t)},n.prototype.leaveSelect=function(e){sX(e,sZ),f5(t)},n.prototype.getModel=function(){return t.getModel()},n.prototype.getViewOfComponentModel=function(e){return t.getViewOfComponentModel(e)},n.prototype.getViewOfSeriesModel=function(e){return t.getViewOfSeriesModel(e)},n.prototype.getMainProcessVersion=function(){return t[fA]},n}(cz))(t)},f2=function(t){function e(t,e){for(var n=0;n<t.length;n++)t[n][fO]=e}eg(gt,function(n,r){t._messageCenter.on(r,function(n){if(gl[t.group]&&0!==t[fO]&&(!n||!n.escapeConnect)){var r=t.makeActionFromEvent(n),i=[];eg(gs,function(e){e!==t&&e.group===t.group&&i.push(e)}),e(i,0),eg(i,function(t){1!==t[fO]&&t.dispatchAction(r)}),e(i,2)}})})}}(),e}(e5),f8=f6.prototype;f8.on=fE("on"),f8.off=fE("off"),f8.one=function(t,e,n){var r=this;this.on.call(this,t,function n(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];e&&e.apply&&e.apply(this,i),r.off(t,n)},n)};var f7=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"],f9={},gt={},ge={},gn=[],gr=[],gi=[],go={},ga={},gs={},gl={},gu=new Date-0,gh="_echarts_instance_";function gc(t){0>ed(gr,t)&&gr.push(t)}function gd(t,e){gy(gn,t,e,2e3)}function gp(t,e){fT.on(t,e)}function gf(t,e,n){function r(t){return t.toLowerCase()}eS(e)&&(n=e,e=""),eT(t)?(i=t.type,l=t.event,a=t.update,s=t.publishNonRefinedEvent,n||(n=t.action),o=t.refineEvent):(i=t,l=e);var i,o,a,s,l=r(l||i),u=o?r(i):l;f9[i]||(eE(fP.test(i)&&fP.test(l)),o&&eE(l!==i),f9[i]={actionType:i,refinedEventType:l,nonRefinedEventType:u,update:a,action:n,refineEvent:o},ge[l]=1,o&&s&&(ge[u]=1),gt[u]=i)}function gg(t,e){gy(gi,t,e,3e3,"visual")}var gm=[];function gy(t,e,n,r,i){if((eS(e)||eT(e))&&(n=e,e=r),!(ed(gm,n)>=0)){gm.push(n);var o=pA.wrapStageHandler(n,i);o.__prio=e,o.__raw=n,t.push(o)}}function gv(t,e,n,r){var i;return{eventContent:{selected:(i=[],n.eachSeries(function(t){eg(t.getAllData(),function(e){e.data;var n=e.type,r=t.getSelectedDataIndices();if(r.length>0){var o={dataIndex:r,seriesIndex:t.seriesIndex};null!=n&&(o.dataType=n),i.push(o)}})}),i),isFromClick:e.isFromClick||!1}}}function g_(t){return null==t?0:t.length||1}function gx(t){return t}gg(2e3,{createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var n=t.getData(),r=t.visualStyleAccessPath||"itemStyle",i=t.getModel(r),o=pC(t,r)(i),a=i.getShallow("decal");a&&(n.setVisual("decal",a),a.dirty=!0);var s=pT(t,r),l=o[s],u=eS(l)?l:null,h="auto"===o.fill||"auto"===o.stroke;if(!o[s]||u||h){var c=t.getColorFromPalette(t.name,null,e.getSeriesCount());o[s]||(o[s]=c,n.setVisual("colorFromPalette",!0)),o.fill="auto"===o.fill||eS(o.fill)?c:o.fill,o.stroke="auto"===o.stroke||eS(o.stroke)?c:o.stroke}if(n.setVisual("style",o),n.setVisual("drawType",s),!e.isSeriesFiltered(t)&&u)return n.setVisual("colorFromPalette",!1),{dataEach:function(e,n){var r=t.getDataParams(n),i=eh({},o);i[s]=u(r),e.setItemVisual(n,"style",i)}}}}),gg(4500,{createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(!(t.ignoreStyleOnData||e.isSeriesFiltered(t))){var n=t.getData(),r=t.visualStyleAccessPath||"itemStyle",i=pC(t,r),o=n.getVisual("drawType");return{dataEach:n.hasItemOption?function(t,e){var n=t.getRawDataItem(e);if(n&&n[r]){pI.option=n[r];var a=i(pI);eh(t.ensureUniqueItemVisual(e,"style"),a),pI.option.decal&&(t.setItemVisual(e,"decal",pI.option.decal),pI.option.decal.dirty=!0),o in a&&t.setItemVisual(e,"colorFromPalette",!1)}}:null}}}}),gg(4500,{performRawSeries:!0,overallReset:function(t){var e=eV();t.eachSeries(function(t){var n=t.getColorBy();if(!t.isColorBySeries()){var r=t.type+"-"+n,i=e.get(r);i||(i={},e.set(r,i)),pS(t).scope=i}}),t.eachSeries(function(e){if(!(e.isColorBySeries()||t.isSeriesFiltered(e))){var n=e.getRawData(),r={},i=e.getData(),o=pS(e).scope,a=e.visualStyleAccessPath||"itemStyle",s=pT(e,a);i.each(function(t){r[i.getRawIndex(t)]=t}),n.each(function(t){var a=r[t];if(i.getItemVisual(a,"colorFromPalette")){var l=i.ensureUniqueItemVisual(a,"style"),u=n.getName(t)||t+"",h=n.count();l[s]=e.getColorFromPalette(u,o,h)}})}})}}),gg(2e3,{createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var n=t.getData();if(t.legendIcon&&n.setVisual("legendIcon",t.legendIcon),t.hasSymbolVisual){for(var r={},i={},o=!1,a=0;a<pq.length;a++){var s=pq[a],l=t.get(s);eS(l)?(o=!0,i[s]=l):r[s]=l}if(r.symbol=r.symbol||t.defaultSymbol,n.setVisual(eh({legendIcon:t.legendIcon||r.symbol,symbolKeepAspect:t.get("symbolKeepAspect")},r)),!e.isSeriesFiltered(t)){var u=e_(i);return{dataEach:o?function(e,n){for(var r=t.getRawValue(n),o=t.getDataParams(n),a=0;a<u.length;a++){var s=u[a];e.setItemVisual(n,s,i[s](r,o))}}:null}}}}}),gg(4500,{createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(!(!t.hasSymbolVisual||e.isSeriesFiltered(t)))return{dataEach:t.getData().hasItemOption?function(t,e){for(var n=t.getItemModel(e),r=0;r<pQ.length;r++){var i=pQ[r],o=n.getShallow(i,!0);null!=o&&t.setItemVisual(e,i,o)}}:null}}}),gg(7e3,function(t,e){t.eachRawSeries(function(n){if(!t.isSeriesFiltered(n)){var r=n.getData();r.hasItemVisual()&&r.each(function(t){var n=r.getItemVisual(t,"decal");n&&(r.ensureUniqueItemVisual(t,"style").decal=fM(n,e))});var i=r.getVisual("decal");i&&(r.getVisual("style").decal=fM(i,e))}})}),gc(c5),gd(900,function(t){var e=eV();t.eachSeries(function(t){var n=t.get("stack");if(n){var r=e.get(n)||e.set(n,[]),i=t.getData(),o={stackResultDimension:i.getCalculationInfo("stackResultDimension"),stackedOverDimension:i.getCalculationInfo("stackedOverDimension"),stackedDimension:i.getCalculationInfo("stackedDimension"),stackedByDimension:i.getCalculationInfo("stackedByDimension"),isStackedByIndex:i.getCalculationInfo("isStackedByIndex"),data:i,seriesModel:t};if(!o.stackedDimension||!(o.isStackedByIndex||o.stackedByDimension))return;r.push(o)}}),e.each(function(t){var e;0!==t.length&&("seriesDesc"===(t[0].seriesModel.get("stackOrder")||"seriesAsc")&&t.reverse(),eg(t,function(e,n){e.data.setCalculationInfo("stackedOnSeries",n>0?t[n-1].seriesModel:null)}),eg(e=t,function(t,n){var r=[],i=[NaN,NaN],o=[t.stackResultDimension,t.stackedOverDimension],a=t.data,s=t.isStackedByIndex,l=t.seriesModel.get("stackStrategy")||"samesign";a.modify(o,function(o,u,h){var c,d,p=a.get(t.stackedDimension,h);if(isNaN(p))return i;s?d=a.getRawIndex(h):c=a.get(t.stackedByDimension,h);for(var f=NaN,g=n-1;g>=0;g--){var m=e[g];if(s||(d=m.data.rawIndexOf(m.stackedByDimension,c)),d>=0){var y=m.data.getByRawIndex(m.stackResultDimension,d);if("all"===l||"positive"===l&&y>0||"negative"===l&&y<0||"samesign"===l&&p>=0&&y>0||"samesign"===l&&p<=0&&y<0){p=function(t,e){var n=Math.max(oc(t),oc(e)),r=t+e;return n>20?r:oh(r,n)}(p,y),f=y;break}}}return r[0]=p,r[1]=f,r})}))})}),ga.default=function(t,e){ec(e=e||{},{text:"loading",textColor:h6.color.primary,fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255,255,255,0.8)",showSpinner:!0,color:h6.color.theme[0],spinnerRadius:10,lineWidth:5,zlevel:0});var n,r=new i9,i=new su({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});r.add(i);var o=new sp({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 su({style:{fill:"none"},textContent:o,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});return r.add(a),e.showSpinner&&((n=new l2({shape:{startAngle:-pD/2,endAngle:-pD/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001})).animateShape(!0).when(1e3,{endAngle:3*pD/2}).start("circularInOut"),n.animateShape(!0).when(1e3,{startAngle:3*pD/2}).delay(300).start("circularInOut"),r.add(n)),r.resize=function(){var r=o.getBoundingRect().width,s=e.showSpinner?e.spinnerRadius:0,l=(t.getWidth()-2*s-(e.showSpinner&&r?10:0)-r)/2-(e.showSpinner&&r?0:5+r/2)+(e.showSpinner?0:r/2)+(r?0:s),u=t.getHeight()/2;e.showSpinner&&n.setShape({cx:l,cy:u}),a.setShape({x:l-s,y:u-s,width:2*s,height:2*s}),i.setShape({x:0,y:0,width:t.getWidth(),height:t.getHeight()})},r.resize(),r},gf({type:sO,event:sO,update:sO},eG),gf({type:sE,event:sE,update:sE},eG),gf({type:sN,event:sB,update:sN,action:eG,refineEvent:gv,publishNonRefinedEvent:!0}),gf({type:sR,event:sB,update:sR,action:eG,refineEvent:gv,publishNonRefinedEvent:!0}),gf({type:sz,event:sB,update:sz,action:eG,refineEvent:gv,publishNonRefinedEvent:!0}),go.default={},go.dark=pX;var gb=function(){function t(t,e,n,r,i,o){this._old=t,this._new=e,this._oldKeyGetter=n||gx,this._newKeyGetter=r||gx,this.context=i,this._diffModeMultiple="multiple"===o}return t.prototype.add=function(t){return this._add=t,this},t.prototype.update=function(t){return this._update=t,this},t.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},t.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},t.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},t.prototype.remove=function(t){return this._remove=t,this},t.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},t.prototype._executeOneToOne=function(){var t=this._old,e=this._new,n={},r=Array(t.length),i=Array(e.length);this._initIndexMap(t,null,r,"_oldKeyGetter"),this._initIndexMap(e,n,i,"_newKeyGetter");for(var o=0;o<t.length;o++){var a=r[o],s=n[a],l=g_(s);if(l>1){var u=s.shift();1===s.length&&(n[a]=s[0]),this._update&&this._update(u,o)}else 1===l?(n[a]=null,this._update&&this._update(s,o)):this._remove&&this._remove(o)}this._performRestAdd(i,n)},t.prototype._executeMultiple=function(){var t=this._old,e=this._new,n={},r={},i=[],o=[];this._initIndexMap(t,n,i,"_oldKeyGetter"),this._initIndexMap(e,r,o,"_newKeyGetter");for(var a=0;a<i.length;a++){var s=i[a],l=n[s],u=r[s],h=g_(l),c=g_(u);if(h>1&&1===c)this._updateManyToOne&&this._updateManyToOne(u,l),r[s]=null;else if(1===h&&c>1)this._updateOneToMany&&this._updateOneToMany(u,l),r[s]=null;else if(1===h&&1===c)this._update&&this._update(u,l),r[s]=null;else if(h>1&&c>1)this._updateManyToMany&&this._updateManyToMany(u,l),r[s]=null;else if(h>1)for(var d=0;d<h;d++)this._remove&&this._remove(l[d]);else this._remove&&this._remove(l)}this._performRestAdd(o,r)},t.prototype._performRestAdd=function(t,e){for(var n=0;n<t.length;n++){var r=t[n],i=e[r],o=g_(i);if(o>1)for(var a=0;a<o;a++)this._add&&this._add(i[a]);else 1===o&&this._add&&this._add(i);e[r]=null}},t.prototype._initIndexMap=function(t,e,n,r){for(var i=this._diffModeMultiple,o=0;o<t.length;o++){var a="_ec_"+this[r](t[o],o);if(i||(n[o]=a),e){var s=e[a],l=g_(s);0===l?(e[a]=o,i&&n.push(a)):1===l?e[a]=[s,o]:s.push(o)}}},t}(),gw=function(){function t(t,e){this._encode=t,this._schema=e}return t.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},t.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},t}();function gS(t,e){return t.hasOwnProperty(e)||(t[e]=[]),t[e]}var gk=function(t){this.otherDims={},null!=t&&eh(this,t)},gM=oN(),gC={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},gT=function(){function t(t){this.dimensions=t.dimensions,this._dimOmitted=t.dimensionOmitted,this.source=t.source,this._fullDimCount=t.fullDimensionCount,this._updateDimOmitted(t.dimensionOmitted)}return t.prototype.isDimensionOmitted=function(){return this._dimOmitted},t.prototype._updateDimOmitted=function(t){this._dimOmitted=t,t&&(this._dimNameMap||(this._dimNameMap=gA(this.source)))},t.prototype.getSourceDimensionIndex=function(t){return this._dimNameMap.get(t)??-1},t.prototype.getSourceDimension=function(t){var e=this.source.dimensionsDefine;if(e)return e[t]},t.prototype.makeStoreSchema=function(){for(var t=this._fullDimCount,e=de(this.source),n=!(t>30),r="",i=[],o=0,a=0;o<t;o++){var s=void 0,l=void 0,u=void 0,h=this.dimensions[a];if(h&&h.storeDimIndex===o)s=e?h.name:null,l=h.type,u=h.ordinalMeta,a++;else{var c=this.getSourceDimension(o);c&&(s=e?c.name:null,l=c.type)}i.push({property:s,type:l,ordinalMeta:u}),!e||null==s||h&&h.isCalculationCoord||(r+=n?s.replace(/\`/g,"`1").replace(/\$/g,"`2"):s),r+="$",r+=gC[l]||"f",u&&(r+=u.uid),r+="$"}var d=this.source;return{dimensions:i,hash:[d.seriesLayoutBy,d.startIndex,r].join("$$")}},t.prototype.makeOutputDimensionNames=function(){for(var t=[],e=0,n=0;e<this._fullDimCount;e++){var r=void 0,i=this.dimensions[n];if(i&&i.storeDimIndex===e)i.isCalculationCoord||(r=i.name),n++;else{var o=this.getSourceDimension(e);o&&(r=o.name)}t.push(r)}return t},t.prototype.appendCalculationDimension=function(t){this.dimensions.push(t),t.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},t}();function gI(t){return t instanceof gT}function gD(t){for(var e=eV(),n=0;n<(t||[]).length;n++){var r=t[n],i=eT(r)?r.name:r;null!=i&&null==e.get(i)&&e.set(i,n)}return e}function gA(t){var e=gM(t);return e.dimNameMap||(e.dimNameMap=gD(t.dimensionsDefine))}var gL,g$,gP,gO,gE,gN,gR,gz=eT,gB=typeof Int32Array>"u"?Array:Int32Array,gF=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],gV=["_approximateExtent"],gW=function(){function t(t,e){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","minmaxDownSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","minmaxDownSample","lttbDownSample"];var n,r=!1;gI(t)?(n=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(r=!0,n=t),n=n||["x","y"];for(var i={},o=[],a={},s=!1,l={},u=0;u<n.length;u++){var h=n[u],c=ek(h)?new gk({name:h}):h instanceof gk?h:new gk(h),d=c.name;c.type=c.type||"float",c.coordDim||(c.coordDim=d,c.coordDimIndex=0);var p=c.otherDims=c.otherDims||{};o.push(d),i[d]=c,null!=l[d]&&(s=!0),c.createInvertedIndices&&(a[d]=[]);var f=u;eC(c.storeDimIndex)&&(f=c.storeDimIndex),0===p.itemName&&(this._nameDimIdx=f),0===p.itemId&&(this._idDimIdx=f),r&&(c.storeDimIndex=u)}if(this.dimensions=o,this._dimInfos=i,this._initGetDimensionInfo(s),this.hostModel=e,this._invertedIndicesMap=a,this._dimOmitted){var g=this._dimIdxToName=eV();eg(o,function(t){g.set(i[t].storeDimIndex,t)})}}return t.prototype.getDimension=function(t){var e=this._recognizeDimIndex(t);if(null==e)return t;if(e=t,!this._dimOmitted)return this.dimensions[e];var n=this._dimIdxToName.get(e);if(null!=n)return n;var r=this._schema.getSourceDimension(e);if(r)return r.name},t.prototype.getDimensionIndex=function(t){var e=this._recognizeDimIndex(t);if(null!=e)return e;if(null==t)return -1;var n=this._getDimInfo(t);return n?n.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(t):-1},t.prototype._recognizeDimIndex=function(t){if(eC(t)||null!=t&&!isNaN(t)&&!this._getDimInfo(t)&&(!this._dimOmitted||0>this._schema.getSourceDimensionIndex(t)))return+t},t.prototype._getStoreDimIndex=function(t){return this.getDimensionIndex(t)},t.prototype.getDimensionInfo=function(t){return this._getDimInfo(this.getDimension(t))},t.prototype._initGetDimensionInfo=function(t){var e=this._dimInfos;this._getDimInfo=t?function(t){return e.hasOwnProperty(t)?e[t]:void 0}:function(t){return e[t]}},t.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},t.prototype.mapDimension=function(t,e){var n=this._dimSummary;if(null==e)return n.encodeFirstDimNotExtra[t];var r=n.encode[t];return r?r[e]:null},t.prototype.mapDimensionsAll=function(t){return(this._dimSummary.encode[t]||[]).slice()},t.prototype.getStore=function(){return this._store},t.prototype.initData=function(t,e,n){var r,i,o,a,s,l,u,h,c,d,p,f,g,m=this;if(t instanceof dG&&(g=t),!g){var y=this.dimensions,v=c4(t)||ef(t)?new du(t,y.length):t;g=new dG;var _=em(y,function(t){return{type:m._dimInfos[t].type,property:t}});g.initData(v,_,n)}this._store=g,this._nameList=(e||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,g.count()),this._dimSummary=(r=this,i=this._schema,a=(o={}).encode={},s=eV(),l=[],u=[],h={},eg(r.dimensions,function(t){var e=r.getDimensionInfo(t),n=e.coordDim;if(n){var i,o=e.coordDimIndex;gS(a,n)[o]=t,e.isExtraCoord||(s.set(n,1),"ordinal"!==(i=e.type)&&"time"!==i&&(l[0]=t),gS(h,n)[o]=r.getDimensionIndex(e.name)),e.defaultTooltip&&u.push(t)}co.each(function(t,n){var r=gS(a,n),i=e.otherDims[n];null!=i&&!1!==i&&(r[i]=e.name)})}),c=[],d={},s.each(function(t,e){var n=a[e];d[e]=n[0],c=c.concat(n)}),o.dataDimsOnCoord=c,o.dataDimIndicesOnCoord=em(c,function(t){return r.getDimensionInfo(t).storeDimIndex}),o.encodeFirstDimNotExtra=d,(p=a.label)&&p.length&&(l=p.slice()),(f=a.tooltip)&&f.length?u=f.slice():u.length||(u=l.slice()),a.defaultedLabel=l,a.defaultedTooltip=u,o.userOutput=new gw(h,i),o),this.userOutput=this._dimSummary.userOutput},t.prototype.appendData=function(t){var e=this._store.appendData(t);this._doInit(e[0],e[1])},t.prototype.appendValues=function(t,e){var n=this._store.appendValues(t,e&&e.length),r=n.start,i=n.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),e)for(var a=r;a<i;a++){var s=a-r;this._nameList[a]=e[s],o&&gR(this,a)}},t.prototype._updateOrdinalMeta=function(){for(var t=this._store,e=this.dimensions,n=0;n<e.length;n++){var r=this._dimInfos[e[n]];r.ordinalMeta&&t.collectOrdinalMeta(r.storeDimIndex,r.ordinalMeta)}},t.prototype._shouldMakeIdFromName=function(){var t=this._store.getProvider();return null==this._idDimIdx&&t.getSource().sourceFormat!==ch&&!t.fillStorage},t.prototype._doInit=function(t,e){if(!(t>=e)){var n=this._store.getProvider();this._updateOrdinalMeta();var r=this._nameList,i=this._idList;if(n.getSource().sourceFormat===ca&&!n.pure)for(var o=[],a=t;a<e;a++){var s,l=n.getItem(a,o);if(!(!this.hasItemOption&&eT(s=l))||s instanceof Array||(this.hasItemOption=!0),l){var u=l.name;null==r[a]&&null!=u&&(r[a]=o$(u,null));var h=l.id;null==i[a]&&null!=h&&(i[a]=o$(h,null))}}if(this._shouldMakeIdFromName())for(var a=t;a<e;a++)gR(this,a);gL(this)}},t.prototype.getApproximateExtent=function(t){return this._approximateExtent[t]||this._store.getDataExtent(this._getStoreDimIndex(t))},t.prototype.setApproximateExtent=function(t,e){e=this.getDimension(e),this._approximateExtent[e]=t.slice()},t.prototype.getCalculationInfo=function(t){return this._calculationInfo[t]},t.prototype.setCalculationInfo=function(t,e){gz(t)?eh(this._calculationInfo,t):this._calculationInfo[t]=e},t.prototype.getName=function(t){var e=this.getRawIndex(t),n=this._nameList[e];return null==n&&null!=this._nameDimIdx&&(n=gP(this,this._nameDimIdx,e)),null==n&&(n=""),n},t.prototype._getCategory=function(t,e){var n=this._store.get(t,e),r=this._store.getOrdinalMeta(t);return r?r.categories[n]:n},t.prototype.getId=function(t){return g$(this,this.getRawIndex(t))},t.prototype.count=function(){return this._store.count()},t.prototype.get=function(t,e){var n=this._store,r=this._dimInfos[t];if(r)return n.get(r.storeDimIndex,e)},t.prototype.getByRawIndex=function(t,e){var n=this._store,r=this._dimInfos[t];if(r)return n.getByRawIndex(r.storeDimIndex,e)},t.prototype.getIndices=function(){return this._store.getIndices()},t.prototype.getDataExtent=function(t){return this._store.getDataExtent(this._getStoreDimIndex(t))},t.prototype.getSum=function(t){return this._store.getSum(this._getStoreDimIndex(t))},t.prototype.getMedian=function(t){return this._store.getMedian(this._getStoreDimIndex(t))},t.prototype.getValues=function(t,e){var n=this,r=this._store;return ew(t)?r.getValues(em(t,function(t){return n._getStoreDimIndex(t)}),e):r.getValues(t)},t.prototype.hasValue=function(t){for(var e=this._dimSummary.dataDimIndicesOnCoord,n=0,r=e.length;n<r;n++)if(isNaN(this._store.get(e[n],t)))return!1;return!0},t.prototype.indexOfName=function(t){for(var e=0,n=this._store.count();e<n;e++)if(this.getName(e)===t)return e;return -1},t.prototype.getRawIndex=function(t){return this._store.getRawIndex(t)},t.prototype.indexOfRawIndex=function(t){return this._store.indexOfRawIndex(t)},t.prototype.rawIndexOf=function(t,e){var n=t&&this._invertedIndicesMap[t],r=n&&n[e];return null==r||isNaN(r)?-1:r},t.prototype.each=function(t,e,n){eS(t)&&(n=e,e=t,t=[]);var r=n||this,i=em(gO(t),this._getStoreDimIndex,this);this._store.each(i,r?ex(e,r):e)},t.prototype.filterSelf=function(t,e,n){eS(t)&&(n=e,e=t,t=[]);var r=n||this,i=em(gO(t),this._getStoreDimIndex,this);return this._store=this._store.filter(i,r?ex(e,r):e),this},t.prototype.selectRange=function(t){var e=this,n={};return eg(e_(t),function(r){n[e._getStoreDimIndex(r)]=t[r]}),this._store=this._store.selectRange(n),this},t.prototype.mapArray=function(t,e,n){eS(t)&&(n=e,e=t,t=[]),n=n||this;var r=[];return this.each(t,function(){r.push(e&&e.apply(this,arguments))},n),r},t.prototype.map=function(t,e,n,r){var i=n||r||this,o=em(gO(t),this._getStoreDimIndex,this),a=gN(this);return a._store=this._store.map(o,i?ex(e,i):e),a},t.prototype.modify=function(t,e,n,r){var i=n||r||this,o=em(gO(t),this._getStoreDimIndex,this);this._store.modify(o,i?ex(e,i):e)},t.prototype.downSample=function(t,e,n,r){var i=gN(this);return i._store=this._store.downSample(this._getStoreDimIndex(t),e,n,r),i},t.prototype.minmaxDownSample=function(t,e){var n=gN(this);return n._store=this._store.minmaxDownSample(this._getStoreDimIndex(t),e),n},t.prototype.lttbDownSample=function(t,e){var n=gN(this);return n._store=this._store.lttbDownSample(this._getStoreDimIndex(t),e),n},t.prototype.getRawDataItem=function(t){return this._store.getRawDataItem(t)},t.prototype.getItemModel=function(t){var e=this.hostModel;return new hn(this.getRawDataItem(t),e,e&&e.ecModel)},t.prototype.diff=function(t){var e=this;return new gb(t?t.getStore().getIndices():[],this.getStore().getIndices(),function(e){return g$(t,e)},function(t){return g$(e,t)})},t.prototype.getVisual=function(t){var e=this._visual;return e&&e[t]},t.prototype.setVisual=function(t,e){this._visual=this._visual||{},gz(t)?eh(this._visual,t):this._visual[t]=e},t.prototype.getItemVisual=function(t,e){var n=this._itemVisuals[t];return(n&&n[e])??this.getVisual(e)},t.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},t.prototype.ensureUniqueItemVisual=function(t,e){var n=this._itemVisuals,r=n[t];r||(r=n[t]={});var i=r[e];return null==i&&(ew(i=this.getVisual(e))?i=i.slice():gz(i)&&(i=eh({},i)),r[e]=i),i},t.prototype.setItemVisual=function(t,e,n){var r=this._itemVisuals[t]||{};this._itemVisuals[t]=r,gz(e)?eh(r,e):r[e]=n},t.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},t.prototype.setLayout=function(t,e){gz(t)?eh(this._layout,t):this._layout[t]=e},t.prototype.getLayout=function(t){return this._layout[t]},t.prototype.getItemLayout=function(t){return this._itemLayouts[t]},t.prototype.setItemLayout=function(t,e,n){this._itemLayouts[t]=n?eh(this._itemLayouts[t]||{},e):e},t.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},t.prototype.setItemGraphicEl=function(t,e){sT(this.hostModel&&this.hostModel.seriesIndex,this.dataType,t,e),this._graphicEls[t]=e},t.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},t.prototype.eachItemGraphicEl=function(t,e){eg(this._graphicEls,function(n,r){n&&t&&t.call(e,n,r)})},t.prototype.cloneShallow=function(e){return e||(e=new t(this._schema?this._schema:em(this.dimensions,this._getDimInfo,this),this.hostModel)),gE(e,this),e._store=this._store,e},t.prototype.wrapMethod=function(t,e){var n=this[t];eS(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var t=n.apply(this,arguments);return e.apply(this,[t].concat(eP(arguments)))})},t.internalField=void(gL=function(t){var e=t._invertedIndicesMap;eg(e,function(n,r){var i=t._dimInfos[r],o=i.ordinalMeta,a=t._store;if(o){n=e[r]=new gB(o.categories.length);for(var s=0;s<n.length;s++)n[s]=-1;for(var s=0;s<a.count();s++)n[a.get(i.storeDimIndex,s)]=s}})},gP=function(t,e,n){return o$(t._getCategory(e,n),null)},g$=function(t,e){var n=t._idList[e];return null==n&&null!=t._idDimIdx&&(n=gP(t,t._idDimIdx,e)),null==n&&(n="e\0\0"+e),n},gO=function(t){return ew(t)||(t=null!=t?[t]:[]),t},gN=function(e){var n=new t(e._schema?e._schema:em(e.dimensions,e._getDimInfo,e),e.hostModel);return gE(n,e),n},gE=function(t,e){eg(gF.concat(e.__wrappedMethods||[]),function(n){e.hasOwnProperty(n)&&(t[n]=e[n])}),t.__wrappedMethods=e.__wrappedMethods,eg(gV,function(n){t[n]=el(e[n])}),t._calculationInfo=eh({},e._calculationInfo)},gR=function(t,e){var n=t._nameList,r=t._idList,i=t._nameDimIdx,o=t._idDimIdx,a=n[e],s=r[e];if(null==a&&null!=i&&(n[e]=a=gP(t,i,e)),null==s&&null!=o&&(r[e]=s=gP(t,o,e)),null==s&&null!=a){var l=t._nameRepeatCount,u=l[a]=(l[a]||0)+1;s=a,u>1&&(s+="__ec__"+u),r[e]=s}}),t}();function gH(t,e){c4(t)||(t=c8(t));var n,r,i,o,a,s=(e=e||{}).coordDimensions||[],l=e.dimensionsDefine||t.dimensionsDefine||[],u=eV(),h=[],c=(n=t,r=s,i=l,o=e.dimensionsCount,a=Math.max(n.dimensionsDetectedCount||1,r.length,i.length,o||0),eg(r,function(t){var e;eT(t)&&(e=t.dimsDef)&&(a=Math.max(a,e.length))}),a),d=e.canOmitUnusedDimensions&&c>30,p=l===t.dimensionsDefine,f=p?gA(t):gD(l),g=e.encodeDefine;!g&&e.encodeDefaulter&&(g=e.encodeDefaulter(t,c));for(var m=eV(g),y=new dz(c),v=0;v<y.length;v++)y[v]=-1;function _(t){var e=y[t];if(e<0){var n=l[t],r=eT(n)?n:{name:n},i=new gk,o=r.name;null!=o&&null!=f.get(o)&&(i.name=i.displayName=o),null!=r.type&&(i.type=r.type),null!=r.displayName&&(i.displayName=r.displayName);var a=h.length;return y[t]=a,i.storeDimIndex=t,h.push(i),i}return h[e]}if(!d)for(var v=0;v<c;v++)_(v);m.each(function(t,e){var n=oC(t).slice();if(1===n.length&&!ek(n[0])&&n[0]<0)return void m.set(e,!1);var r=m.set(e,[]);eg(n,function(t,n){var i=ek(t)?f.get(t):t;null!=i&&i<c&&(r[n]=i,b(_(i),e,n))})});var x=0;function b(t,e,n){null!=co.get(e)?t.otherDims[e]=n:(t.coordDim=e,t.coordDimIndex=n,u.set(e,!0))}eg(s,function(t){if(ek(t))i=t,r={};else{var e,n,r,i=(r=t).name,o=r.ordinalMeta;r.ordinalMeta=null,(r=eh({},r)).ordinalMeta=o,e=r.dimsDef,n=r.otherDims,r.name=r.coordDim=r.coordDimIndex=r.dimsDef=r.otherDims=null}var a=m.get(i);if(!1!==a){if(!(a=oC(a)).length)for(var s=0;s<(e&&e.length||1);s++){for(;x<c&&null!=_(x).coordDim;)x++;x<c&&a.push(x++)}eg(a,function(t,o){var a=_(t);if(p&&null!=r.type&&(a.type=r.type),b(ec(a,r),i,o),null==a.name&&e){var s=e[o];eT(s)||(s={name:s}),a.name=a.displayName=s.name,a.defaultTooltip=s.defaultTooltip}n&&ec(a.otherDims,n)})}});var w=e.generateCoord,S=e.generateCoordCount,k=null!=S;S=w?S||1:0;var M=w||"value";function C(t){null==t.name&&(t.name=t.coordDim)}if(d)eg(h,function(t){C(t)}),h.sort(function(t,e){return t.storeDimIndex-e.storeDimIndex});else for(var T=0;T<c;T++){var I=_(T);null==I.coordDim&&(I.coordDim=function(t,e,n){if(n||e.hasKey(t)){for(var r=0;e.hasKey(t+r);)r++;t+=r}return e.set(t,!0),t}(M,u,k),I.coordDimIndex=0,(!w||S<=0)&&(I.isExtraCoord=!0),S--),C(I),null==I.type&&(1===cy(t,T)||I.isExtraCoord&&(null!=I.otherDims.itemName||null!=I.otherDims.seriesName))&&(I.type="ordinal")}return function(t){for(var e=eV(),n=0;n<t.length;n++){var r=t[n],i=r.name,o=e.get(i)||0;o>0&&(r.name=i+(o-1)),o++,e.set(i,o)}}(h),new gT({source:t,dimensions:h,fullDimensionCount:c,dimensionOmitted:d})}var gG=function(t){this.coordSysDims=[],this.axisMap=eV(),this.categoryAxisMap=eV(),this.coordSysName=t},gj={cartesian2d:function(t,e,n,r){var i=t.getReferringComponents("xAxis",oF).models[0],o=t.getReferringComponents("yAxis",oF).models[0];e.coordSysDims=["x","y"],n.set("x",i),n.set("y",o),gU(i)&&(r.set("x",i),e.firstCategoryDimIndex=0),gU(o)&&(r.set("y",o),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=1))},singleAxis:function(t,e,n,r){var i=t.getReferringComponents("singleAxis",oF).models[0];e.coordSysDims=["single"],n.set("single",i),gU(i)&&(r.set("single",i),e.firstCategoryDimIndex=0)},polar:function(t,e,n,r){var i=t.getReferringComponents("polar",oF).models[0],o=i.findAxisModel("radiusAxis"),a=i.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],n.set("radius",o),n.set("angle",a),gU(o)&&(r.set("radius",o),e.firstCategoryDimIndex=0),gU(a)&&(r.set("angle",a),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=1))},geo:function(t,e,n,r){e.coordSysDims=["lng","lat"]},parallel:function(t,e,n,r){var i=t.ecModel,o=i.getComponent("parallel",t.get("parallelIndex")),a=e.coordSysDims=o.dimensions.slice();eg(o.parallelAxisIndex,function(t,o){var s=i.getComponent("parallelAxis",t),l=a[o];n.set(l,s),gU(s)&&(r.set(l,s),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=o))})},matrix:function(t,e,n,r){var i=t.getReferringComponents("matrix",oF).models[0];e.coordSysDims=["x","y"];var o=i.getDimensionModel("x"),a=i.getDimensionModel("y");n.set("x",o),n.set("y",a),r.set("x",o),r.set("y",a)}};function gU(t){return"category"===t.get("type")}function gZ(t,e){return!!e&&e===t.getCalculationInfo("stackedDimension")}function gX(t,e,n){n=n||{};var r,i,o,a,s,l,u,h,c=e.getSourceManager(),d=!1;d=(h=c.getSource()).sourceFormat===ca;var p=function(t){var e=t.get("coordinateSystem"),n=new gG(e),r=gj[e];if(r)return r(t,n,n.axisMap,n.categoryAxisMap),n}(e),f=(i=e.get("coordinateSystem"),o=hG.get(i),p&&p.coordSysDims&&(r=em(p.coordSysDims,function(t){var e,n={name:t},r=p.axisMap.get(t);return r&&(n.type="category"===(e=r.get("type"))?"ordinal":"time"===e?"time":"float"),n})),r||(r=o&&(o.getDimensionsInfo?o.getDimensionsInfo():o.dimensions.slice())||["x","y"]),r),g=n.useEncodeDefaulter,m=eS(g)?g:g?eb(cf,f,e):null,y=gH(h,{coordDimensions:f,generateCoord:n.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:m,canOmitUnusedDimensions:!d}),v=(a=y.dimensions,s=n.createInvertedIndices,p&&eg(a,function(t,e){var n=t.coordDim,r=p.categoryAxisMap.get(n);r&&(null==l&&(l=e),t.ordinalMeta=r.getOrdinalMeta(),s&&(t.createInvertedIndices=!0)),null!=t.otherDims.itemName&&(u=!0)}),u||null==l||(a[l].otherDims.itemName=0),l),_=d?null:c.getSharedDataStore(y),x=function(t,e,n){var r,i,o,a=(n=n||{}).byIndex,s=n.stackedCoordDimension;gI(e.schema)?(r=(i=e.schema).dimensions,o=e.store):r=e;var l,u,h,c,d=!!(t&&t.get("stack"));if(eg(r,function(t,e){ek(t)&&(r[e]=t={name:t}),d&&!t.isExtraCoord&&(a||l||!t.ordinalMeta||(l=t),u||"ordinal"===t.type||"time"===t.type||s&&s!==t.coordDim||(u=t))}),!u||a||l||(a=!0),u){h="__\0ecstackresult_"+t.id,c="__\0ecstackedover_"+t.id,l&&(l.createInvertedIndices=!0);var p=u.coordDim,f=u.type,g=0;eg(r,function(t){t.coordDim===p&&g++});var m={name:h,coordDim:p,coordDimIndex:g,type:f,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:r.length},y={name:c,coordDim:c,coordDimIndex:g+1,type:f,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:r.length+1};i?(o&&(m.storeDimIndex=o.ensureCalculationDimension(c,f),y.storeDimIndex=o.ensureCalculationDimension(h,f)),i.appendCalculationDimension(m),i.appendCalculationDimension(y)):(r.push(m),r.push(y))}return{stackedDimension:u&&u.name,stackedByDimension:l&&l.name,isStackedByIndex:a,stackedOverDimension:c,stackResultDimension:h}}(e,{schema:y,store:_}),b=new gW(y,e);b.setCalculationInfo(x);var w=null!=v&&function(t){if(t.sourceFormat===ca)return!ew(oD(function(t){for(var e=0;e<t.length&&null==t[e];)e++;return t[e]}(t.data||[])))}(h)?function(t,e,n,r){return r===v?n:this.defaultDimValueGetter(t,e,n,r)}:null;return b.hasItemOption=!1,b.initData(d?h:_,null,w),b}function gY(t){return"interval"===t.type||"log"===t.type}function gq(t){var e=Math.pow(10,om(t)),n=t/e;return n?2===n?n=3:3===n?n=5:n*=2:n=1,oh(n*e)}function gQ(t){return oc(t)+2}function gK(t,e,n){t[e]=Math.max(Math.min(t[e],n[1]),n[0])}function gJ(t,e){return t>=e[0]&&t<=e[1]}var g0=function(){function t(){this.normalize=g1,this.scale=g2}return t.prototype.updateMethods=function(t){t.hasBreaks()?(this.normalize=ex(t.normalize,t),this.scale=ex(t.scale,t)):(this.normalize=g1,this.scale=g2)},t}();function g1(t,e){return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])}function g2(t,e){return t*(e[1]-e[0])+e[0]}function g5(t,e,n){var r=Math.log(t);return[Math.log(n?e[0]:Math.max(0,e[0]))/r,Math.log(n?e[1]:Math.max(0,e[1]))/r]}var g3=function(){function t(t){this._calculator=new g0,this._setting=t||{},this._extent=[1/0,-1/0]}return t.prototype.getSetting=function(t){return this._setting[t]},t.prototype._innerUnionExtent=function(t){var e=this._extent;this._innerSetExtent(t[0]<e[0]?t[0]:e[0],t[1]>e[1]?t[1]:e[1])},t.prototype.unionExtentFromData=function(t,e){this._innerUnionExtent(t.getApproximateExtent(e))},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.setExtent=function(t,e){this._innerSetExtent(t,e)},t.prototype._innerSetExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=t),isNaN(e)||(n[1]=e),this._brkCtx&&this._brkCtx.update(n)},t.prototype.setBreaksFromOption=function(t){},t.prototype._innerSetBreak=function(t){this._brkCtx&&(this._brkCtx.setBreaks(t),this._calculator.updateMethods(this._brkCtx),this._brkCtx.update(this._extent))},t.prototype._innerGetBreaks=function(){return this._brkCtx?this._brkCtx.breaks:[]},t.prototype.hasBreaks=function(){return!!this._brkCtx&&this._brkCtx.hasBreaks()},t.prototype._getExtentSpanWithBreaks=function(){return this._brkCtx&&this._brkCtx.hasBreaks()?this._brkCtx.getExtentSpan():this._extent[1]-this._extent[0]},t.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},t.prototype.isBlank=function(){return this._isBlank},t.prototype.setBlank=function(t){this._isBlank=t},t}();oQ(g3);var g4=0,g6=function(){function t(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++g4,this._onCollect=t.onCollect}return t.createByAxisModel=function(e){var n=e.option,r=n.data,i=r&&em(r,g8);return new t({categories:i,needCollect:!i,deduplication:!1!==n.dedplication})},t.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},t.prototype.parseAndCollect=function(t){var e,n=this._needCollect;if(!ek(t)&&!n)return t;if(n&&!this._deduplication)return e=this.categories.length,this.categories[e]=t,this._onCollect&&this._onCollect(t,e),e;var r=this._getOrCreateMap();return null==(e=r.get(t))&&(n?(e=this.categories.length,this.categories[e]=t,r.set(t,e),this._onCollect&&this._onCollect(t,e)):e=NaN),e},t.prototype._getOrCreateMap=function(){return this._map||(this._map=eV(this.categories))},t}();function g8(t){return eT(t)&&null!=t.value?t.value:t+""}var g7=function(t){function e(e){var n=t.call(this,e)||this;n.type="ordinal";var r=n.getSetting("ordinalMeta");return r||(r=new g6({})),ew(r)&&(r=new g6({categories:em(r,function(t){return eT(t)?t.value:t})})),n._ordinalMeta=r,n._extent=n.getSetting("extent")||[0,r.categories.length-1],n}return tK(e,t),e.prototype.parse=function(t){return null==t?NaN:ek(t)?this._ordinalMeta.getOrdinal(t):Math.round(t)},e.prototype.contain=function(t){return gJ(t,this._extent)&&t>=0&&t<this._ordinalMeta.categories.length},e.prototype.normalize=function(t){return t=this._getTickNumber(t),this._calculator.normalize(t,this._extent)},e.prototype.scale=function(t){return t=Math.round(this._calculator.scale(t,this._extent)),this.getRawOrdinalNumber(t)},e.prototype.getTicks=function(){for(var t=[],e=this._extent,n=e[0];n<=e[1];)t.push({value:n}),n++;return t},e.prototype.getMinorTicks=function(t){},e.prototype.setSortInfo=function(t){if(null==t){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var e=t.ordinalNumbers,n=this._ordinalNumbersByTick=[],r=this._ticksByOrdinalNumber=[],i=0,o=this._ordinalMeta.categories.length,a=Math.min(o,e.length);i<a;++i){var s=e[i];n[i]=s,r[s]=i}for(var l=0;i<o;++i){for(;null!=r[l];)l++;n.push(l),r[l]=i}},e.prototype._getTickNumber=function(t){var e=this._ticksByOrdinalNumber;return e&&t>=0&&t<e.length?e[t]:t},e.prototype.getRawOrdinalNumber=function(t){var e=this._ordinalNumbersByTick;return e&&t>=0&&t<e.length?e[t]:t},e.prototype.getLabel=function(t){if(!this.isBlank()){var e=this.getRawOrdinalNumber(t.value),n=this._ordinalMeta.categories[e];return null==n?"":n+""}},e.prototype.count=function(){return this._extent[1]-this._extent[0]+1},e.prototype.isInExtentRange=function(t){return t=this._getTickNumber(t),this._extent[0]<=t&&this._extent[1]>=t},e.prototype.getOrdinalMeta=function(){return this._ordinalMeta},e.prototype.calcNiceTicks=function(){},e.prototype.calcNiceExtent=function(){},e.type="ordinal",e}(g3);g3.registerClass(g7);var g9=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="interval",e._interval=0,e._intervalPrecision=2,e}return tK(e,t),e.prototype.parse=function(t){return null==t||""===t?NaN:Number(t)},e.prototype.contain=function(t){return gJ(t,this._extent)},e.prototype.normalize=function(t){return this._calculator.normalize(t,this._extent)},e.prototype.scale=function(t){return this._calculator.scale(t,this._extent)},e.prototype.getInterval=function(){return this._interval},e.prototype.setInterval=function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=gQ(t)},e.prototype.getTicks=function(t){t=t||{};var e=this._interval,n=this._extent,r=this._niceExtent,i=this._intervalPrecision,o=[];if(!e)return o;t.breakTicks,n[0]<r[0]&&(t.expandToNicedExtent?o.push({value:oh(r[0]-e,i)}):o.push({value:n[0]}));for(var a=function(t,n){return Math.round((n-t)/e)},s=r[0];s<=r[1];){if(o.push({value:s}),s=oh(s+e,i),this._brkCtx){var l=this._brkCtx.calcNiceTickMultiple(s,a);l>=0&&(s=oh(s+l*e,i))}if(o.length>0&&s===o[o.length-1].value)break;if(o.length>1e4)return[]}var u=o.length?o[o.length-1].value:r[1];return n[1]>u&&(t.expandToNicedExtent?o.push({value:oh(u+e,i)}):o.push({value:n[1]})),t.breakTicks,o},e.prototype.getMinorTicks=function(t){for(var e=this.getTicks({expandToNicedExtent:!0}),n=[],r=this.getExtent(),i=1;i<e.length;i++){var o=e[i],a=e[i-1];if(!(a.break||o.break)){for(var s=0,l=[],u=o.value-a.value,h=u/t,c=gQ(h);s<t-1;){var d=oh(a.value+(s+1)*h,c);d>r[0]&&d<r[1]&&l.push(d),s++}n.push(l)}}return n},e.prototype._getNonTransBreaks=function(){return this._brkCtx?this._brkCtx.breaks:[]},e.prototype.getLabel=function(t,e){if(null==t)return"";var n=e&&e.precision;return null==n?n=oc(t.value)||0:"auto"===n&&(n=this._intervalPrecision),hO(oh(t.value,n,!0))},e.prototype.calcNiceTicks=function(t,e,n){t=t||5;var r=this._extent.slice(),i=this._getExtentSpanWithBreaks();if(isFinite(i)){i<0&&(i=-i,r.reverse(),this._innerSetExtent(r[0],r[1]),r=this._extent.slice());var o,a,s,l,u,h,c,d,p=(s=r,l=i,u=t,c=(h={}).interval=oy(l/u),null!=e&&c<e&&(c=h.interval=e),null!=n&&c>n&&(c=h.interval=n),d=h.intervalPrecision=gQ(c),o=h.niceTickExtent=[oh(Math.ceil(s[0]/c)*c,d),oh(Math.floor(s[1]/c)*c,d)],a=s,isFinite(o[0])||(o[0]=a[0]),isFinite(o[1])||(o[1]=a[1]),gK(o,0,a),gK(o,1,a),o[0]>o[1]&&(o[0]=o[1]),h);this._intervalPrecision=p.intervalPrecision,this._interval=p.interval,this._niceExtent=p.niceTickExtent}},e.prototype.calcNiceExtent=function(t){var e=this._extent.slice();if(e[0]===e[1])if(0!==e[0]){var n=Math.abs(e[0]);t.fixMax||(e[1]+=n/2),e[0]-=n/2}else e[1]=1;isFinite(e[1]-e[0])||(e[0]=0,e[1]=1),this._innerSetExtent(e[0],e[1]),e=this._extent.slice(),this.calcNiceTicks(t.splitNumber,t.minInterval,t.maxInterval);var r=this._interval,i=this._intervalPrecision;t.fixMin||(e[0]=oh(Math.floor(e[0]/r)*r,i)),t.fixMax||(e[1]=oh(Math.ceil(e[1]/r)*r,i)),this._innerSetExtent(e[0],e[1])},e.prototype.setNiceExtent=function(t,e){this._niceExtent=[t,e]},e.type="interval",e}(g3);g3.registerClass(g9);var mt="u">typeof Float32Array,me=mt?Float32Array:Array;function mn(t){return ew(t)?mt?new Float32Array(t):t:new me(t)}function mr(t){return t.get("stack")||"__ec_stack_"+t.seriesIndex}function mi(t){return t.dim+t.index}function mo(t,e){var n=[];return e.eachSeriesByType(t,function(t){ml(t)&&n.push(t)}),n}function ma(t){var e,n,r=function(t){var e={};eg(t,function(t){var n=t.coordinateSystem.getBaseAxis();if("time"===n.type||"value"===n.type)for(var r=t.getData(),i=n.dim+"_"+n.index,o=r.getDimensionIndex(r.mapDimension(n.dim)),a=r.getStore(),s=0,l=a.count();s<l;++s){var u=a.get(o,s);e[i]?e[i].push(u):e[i]=[u]}});var n={};for(var r in e)if(e.hasOwnProperty(r)){var i=e[r];if(i){i.sort(function(t,e){return t-e});for(var o=null,a=1;a<i.length;++a){var s=i[a]-i[a-1];s>0&&(o=null===o?s:Math.min(o,s))}n[r]=o}}return n}(t),i=[];return eg(t,function(t){var e,n=t.coordinateSystem.getBaseAxis(),o=n.getExtent();if("category"===n.type)e=n.getBandWidth();else if("value"===n.type||"time"===n.type){var a=r[n.dim+"_"+n.index],s=Math.abs(o[1]-o[0]),l=n.scale.getExtent(),u=Math.abs(l[1]-l[0]);e=a?s/u*a:s}else{var h=t.getData();e=Math.abs(o[1]-o[0])/h.count()}var c=ol(t.get("barWidth"),e),d=ol(t.get("barMaxWidth"),e),p=ol(t.get("barMinWidth")||(mu(t)?.5:1),e),f=t.get("barGap"),g=t.get("barCategoryGap"),m=t.get("defaultBarGap");i.push({bandWidth:e,barWidth:c,barMaxWidth:d,barMinWidth:p,barGap:f,barCategoryGap:g,defaultBarGap:m,axisKey:mi(n),stackId:mr(t)})}),e={},eg(i,function(t,n){var r=t.axisKey,i=t.bandWidth,o=e[r]||{bandWidth:i,remainedWidth:i,autoWidthCount:0,categoryGap:null,gap:t.defaultBarGap||0,stacks:{}},a=o.stacks;e[r]=o;var s=t.stackId;a[s]||o.autoWidthCount++,a[s]=a[s]||{width:0,maxWidth:0};var l=t.barWidth;l&&!a[s].width&&(a[s].width=l,l=Math.min(o.remainedWidth,l),o.remainedWidth-=l);var u=t.barMaxWidth;u&&(a[s].maxWidth=u);var h=t.barMinWidth;h&&(a[s].minWidth=h);var c=t.barGap;null!=c&&(o.gap=c);var d=t.barCategoryGap;null!=d&&(o.categoryGap=d)}),n={},eg(e,function(t,e){n[e]={};var r=t.stacks,i=t.bandWidth,o=t.categoryGap;null==o&&(o=Math.max(35-4*e_(r).length,15)+"%");var a=ol(o,i),s=ol(t.gap,1),l=t.remainedWidth,u=t.autoWidthCount,h=(l-a)/(u+(u-1)*s);h=Math.max(h,0),eg(r,function(t){var e=t.maxWidth,n=t.minWidth;if(t.width){var r=t.width;e&&(r=Math.min(r,e)),n&&(r=Math.max(r,n)),t.width=r,l-=r+s*r,u--}else{var r=h;e&&e<r&&(r=Math.min(e,l)),n&&n>r&&(r=n),r!==h&&(t.width=r,l-=r+s*r,u--)}}),h=Math.max(h=(l-a)/(u+(u-1)*s),0);var c,d=0;eg(r,function(t,e){t.width||(t.width=h),c=t,d+=t.width*(1+s)}),c&&(d-=c.width*s);var p=-d/2;eg(r,function(t,r){n[e][r]=n[e][r]||{bandWidth:i,offset:p,width:t.width},p+=t.width*(1+s)})}),n}function ms(t,e){var n=mo(t,e),r=ma(n);eg(n,function(t){var e=t.getData(),n=t.coordinateSystem.getBaseAxis(),i=mr(t),o=r[mi(n)][i],a=o.offset,s=o.width;e.setLayout({bandWidth:o.bandWidth,offset:a,size:s})})}function ml(t){return t.coordinateSystem&&"cartesian2d"===t.coordinateSystem.type}function mu(t){return t.pipelineContext&&t.pipelineContext.large}var mh=function(t,e,n,r){for(;n<r;){var i=n+r>>>1;t[i][1]<e?n=i+1:r=i}return n},mc=function(t){function e(e){var n=t.call(this,e)||this;return n.type="time",n}return tK(e,t),e.prototype.getLabel=function(t){var e=this.getSetting("useUTC");return hv(t.value,hp[function(t){switch(t){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}(hy(this._minLevelUnit))]||hp.second,e,this.getSetting("locale"))},e.prototype.getFormattedLabel=function(t,e,n){var r=this.getSetting("useUTC");return function(t,e,n,r,i){var o=null;if(ek(n))o=n;else if(eS(n)){var a={time:t.time,level:t.time.level};o=n(t.value,e,a)}else{var s=t.time;if(s){var l=n[s.lowerTimeUnit][s.upperTimeUnit];o=l[Math.min(s.level,l.length-1)]||""}else{var u=h_(t.value,i);o=n[u][u][0]}}return hv(new Date(t.value),o,i,r)}(t,e,n,this.getSetting("locale"),r)},e.prototype.getTicks=function(t){var e=this._interval,n=this._extent,r=[];if(!e)return r;var i=this.getSetting("useUTC"),o=h_(n[1],i);r.push({value:n[0],time:{level:0,upperTimeUnit:o,lowerTimeUnit:o}});var a=function(t,e,n,r,i,o){for(var a=0,s=[],l=[],u=0,h=0,c=0;c<hg.length;++c){var d,p=hy(hg[c]);if((d=hg[c])===hy(d)&&(!function(t,i,s){var l=[],u=!i.length;if(p=hy(t),f=r[0],g=r[1],hx(new Date(f),p,n).getTime()!==hx(new Date(g),p,n).getTime()){u&&(i=[{value:(m=r[0],y=Math.max(0,ed(hf,t)-1),hx(new Date(m),hf[y],n).getTime())},{value:r[1]}]);for(var h=0;h<i.length-1;h++){var c=i[h].value,d=i[h+1].value;if(c!==d){var p,f,g,m,y,v,_,x,b=void 0,w=void 0,S=void 0;switch(t){case"year":b=Math.max(1,Math.round(e/864e5/365)),w=hb(n),S=n?"setUTCFullYear":"setFullYear";break;case"half-year":case"quarter":case"month":b=(v=e/2592e6)>6?6:v>3?3:v>2?2:1,w=hw(n),S=hI(n);break;case"week":case"half-week":case"day":b=(_=e/864e5)>16?16:_>7.5?7:_>3.5?4:_>1.5?2:1,w=hS(n),S=hD(n);break;case"half-day":case"quarter-day":case"hour":b=(x=e/36e5)>12?12:x>6?6:x>3.5?4:x>2?2:1,w=hk(n),S=hA(n);break;case"minute":b=mp(e,!0),w=hM(n),S=hL(n);break;case"second":b=mp(e,!1),w=hC(n),S=h$(n);break;case"millisecond":b=oy(e),w=hT(n),S=hP(n)}d>=r[0]&&c<=r[1]&&function(t,e,n,i,s,l){for(var u,h,c,d=((u=new Date(0))[s](1),h=u.getTime(),u[s](1+t),c=u.getTime()-h,function(t,e){return Math.max(0,Math.round((e-t)/c))}),p=e,f=new Date(p);p<n&&p<=r[1]&&(l.push({value:p}),!(a++>1e4));)if(f[s](f[i]()+t),p=f.getTime(),o){var g=o.calcNiceTickMultiple(p,d);g>0&&(f[s](f[i]()+g*t),p=f.getTime())}l.push({value:p,notAdd:!0})}(b,c,d,w,S,l),"year"===t&&s.length>1&&0===h&&s.unshift({value:s[0].value-b})}}for(var h=0;h<l.length;h++)s.push(l[h])}}(hg[c],s[s.length-1]||[],l),p!==(hg[c+1]?hy(hg[c+1]):null))){if(l.length){h=u,l.sort(function(t,e){return t.value-e.value});for(var f=[],g=0;g<l.length;++g){var m=l[g].value;(0===g||l[g-1].value!==m)&&(f.push(l[g]),m>=r[0]&&m<=r[1]&&u++)}var y=i/e;if(u>1.5*y&&h>y/1.5||(s.push(f),u>y||t===hg[c]))break}l=[]}}for(var v=ev(em(s,function(t){return ev(t,function(t){return t.value>=r[0]&&t.value<=r[1]&&!t.notAdd})}),function(t){return t.length>0}),_=[],x=v.length-1,c=0;c<v.length;++c)for(var b=v[c],w=0;w<b.length;++w){var S=h_(b[w].value,n);_.push({value:b[w].value,time:{level:x-c,upperTimeUnit:S,lowerTimeUnit:S}})}_.sort(function(t,e){return t.value-e.value});for(var k=[],c=0;c<_.length;++c)(0===c||_[c].value!==_[c-1].value)&&k.push(_[c]);return k}(this._minLevelUnit,this._approxInterval,i,n,this._getExtentSpanWithBreaks(),this._brkCtx);r=r.concat(a);var s=h_(n[1],i);r.push({value:n[1],time:{level:0,upperTimeUnit:s,lowerTimeUnit:s}}),this.getSetting("useUTC");var l=hf.length-1,u=0;return eg(r,function(t){l=Math.min(l,ed(hf,t.time.upperTimeUnit)),u=Math.max(u,t.time.level)}),r},e.prototype.calcNiceExtent=function(t){var e=this.getExtent();if(e[0]===e[1]&&(e[0]-=864e5,e[1]+=864e5),e[1]===-1/0&&e[0]===1/0){var n=new Date;e[1]=+new Date(n.getFullYear(),n.getMonth(),n.getDate()),e[0]=e[1]-864e5}this._innerSetExtent(e[0],e[1]),this.calcNiceTicks(t.splitNumber,t.minInterval,t.maxInterval)},e.prototype.calcNiceTicks=function(t,e,n){t=t||10;var r=this._getExtentSpanWithBreaks();this._approxInterval=r/t,null!=e&&this._approxInterval<e&&(this._approxInterval=e),null!=n&&this._approxInterval>n&&(this._approxInterval=n);var i=md.length,o=Math.min(mh(md,this._approxInterval,0,i),i-1);this._interval=md[o][1],this._intervalPrecision=gQ(this._interval),this._minLevelUnit=md[Math.max(o-1,0)][0]},e.prototype.parse=function(t){return eC(t)?t:+og(t)},e.prototype.contain=function(t){return gJ(t,this._extent)},e.prototype.normalize=function(t){return this._calculator.normalize(t,this._extent)},e.prototype.scale=function(t){return this._calculator.scale(t,this._extent)},e.type="time",e}(g9),md=[["second",1e3],["minute",6e4],["hour",36e5],["quarter-day",216e5],["half-day",432e5],["day",10368e4],["half-week",3024e5],["week",6048e5],["month",26784e5],["quarter",8208e6],["half-year",31536e6/2],["year",31536e6]];function mp(t,e){return(t/=e?6e4:1e3)>30?30:t>20?20:t>15?15:t>10?10:t>5?5:t>2?2:1}g3.registerClass(mc);var mf=Math.floor,mg=Math.ceil,mm=Math.pow,my=Math.log,mv=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="log",e.base=10,e._originalScale=new g9,e}return tK(e,t),e.prototype.getTicks=function(e){e=e||{};var n=this._extent.slice(),r=this._originalScale.getExtent(),i=t.prototype.getTicks.call(this,e),o=this.base;return this._originalScale._innerGetBreaks(),em(i,function(t){var e,i=t.value,a=null,s=mm(o,i);return i===n[0]&&this._fixMin?a=r[0]:i===n[1]&&this._fixMax&&(a=r[1]),null!=a&&(s=oh(s,oc(a))),{value:s,break:e}},this)},e.prototype._getNonTransBreaks=function(){return this._originalScale._innerGetBreaks()},e.prototype.setExtent=function(e,n){this._originalScale.setExtent(e,n);var r=g5(this.base,[e,n]);t.prototype.setExtent.call(this,r[0],r[1])},e.prototype.getExtent=function(){var e,n,r=this.base,i=t.prototype.getExtent.call(this);i[0]=mm(r,i[0]),i[1]=mm(r,i[1]);var o=this._originalScale.getExtent();return this._fixMin&&(i[0]=(e=i[0],oh(e,oc(o[0])))),this._fixMax&&(i[1]=(n=i[1],oh(n,oc(o[1])))),i},e.prototype.unionExtentFromData=function(t,e){this._originalScale.unionExtentFromData(t,e);var n=g5(this.base,t.getApproximateExtent(e),!0);this._innerUnionExtent(n)},e.prototype.calcNiceTicks=function(t){t=t||10;var e=this._extent.slice(),n=this._getExtentSpanWithBreaks();if(!(!isFinite(n)||n<=0)){var r=Math.pow(10,om(n));for(t/n*r<=.5&&(r*=10);!isNaN(r)&&1>Math.abs(r)&&Math.abs(r)>0;)r*=10;var i=[oh(mg(e[0]/r)*r),oh(mf(e[1]/r)*r)];this._interval=r,this._intervalPrecision=gQ(r),this._niceExtent=i}},e.prototype.calcNiceExtent=function(e){t.prototype.calcNiceExtent.call(this,e),this._fixMin=e.fixMin,this._fixMax=e.fixMax},e.prototype.contain=function(e){return e=my(e)/my(this.base),t.prototype.contain.call(this,e)},e.prototype.normalize=function(e){return e=my(e)/my(this.base),t.prototype.normalize.call(this,e)},e.prototype.scale=function(e){return e=t.prototype.scale.call(this,e),mm(this.base,e)},e.prototype.setBreaksFromOption=function(t){},e.type="log",e}(g9);g3.registerClass(mv);var m_=function(){function t(t,e,n){this._prepareParams(t,e,n)}return t.prototype._prepareParams=function(t,e,n){n[1]<n[0]&&(n=[NaN,NaN]),this._dataMin=n[0],this._dataMax=n[1];var r=this._isOrdinal="ordinal"===t.type;this._needCrossZero="interval"===t.type&&e.getNeedCrossZero&&e.getNeedCrossZero();var i=e.get("min",!0);null==i&&(i=e.get("startValue",!0));var o=this._modelMinRaw=i;eS(o)?this._modelMinNum=mw(t,o({min:n[0],max:n[1]})):"dataMin"!==o&&(this._modelMinNum=mw(t,o));var a=this._modelMaxRaw=e.get("max",!0);if(eS(a)?this._modelMaxNum=mw(t,a({min:n[0],max:n[1]})):"dataMax"!==a&&(this._modelMaxNum=mw(t,a)),r)this._axisDataLen=e.getCategories().length;else{var s=e.get("boundaryGap"),l=ew(s)?s:[s||0,s||0];"boolean"==typeof l[0]||"boolean"==typeof l[1]?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[iK(l[0],1),iK(l[1],1)]}},t.prototype.calculate=function(){var t,e,n=this._isOrdinal,r=this._dataMin,i=this._dataMax,o=this._axisDataLen,a=this._boundaryGapInner,s=n?null:i-r||Math.abs(r),l="dataMin"===this._modelMinRaw?r:this._modelMinNum,u="dataMax"===this._modelMaxRaw?i:this._modelMaxNum,h=null!=l,c=null!=u;null==l&&(l=n?o?0:NaN:r-a[0]*s),null==u&&(u=n?o?o-1:NaN:i+a[1]*s),null!=l&&isFinite(l)||(l=NaN),null!=u&&isFinite(u)||(u=NaN);var d=(t=l)!=t||(e=u)!=e||n&&!o;this._needCrossZero&&(l>0&&u>0&&!h&&(l=0),l<0&&u<0&&!c&&(u=0));var p=this._determinedMin,f=this._determinedMax;return null!=p&&(l=p,h=!0),null!=f&&(u=f,c=!0),{min:l,max:u,minFixed:h,maxFixed:c,isBlank:d}},t.prototype.modifyDataMinMax=function(t,e){this[mb[t]]=e},t.prototype.setDeterminedMinMax=function(t,e){this[mx[t]]=e},t.prototype.freeze=function(){this.frozen=!0},t}(),mx={min:"_determinedMin",max:"_determinedMax"},mb={min:"_dataMin",max:"_dataMax"};function mw(t,e){return null==e?null:e!=e?NaN:t.parse(e)}function mS(t,e){var n,r,i=t.type,o=(n=t.getExtent(),(r=t.rawExtentInfo)||(r=new m_(t,e,n),t.rawExtentInfo=r,r)).calculate();t.setBlank(o.isBlank);var a=o.min,s=o.max,l=e.ecModel;if(l&&"time"===i){var u=mo("bar",l),h=!1;if(eg(u,function(t){h=h||t.getBaseAxis()===e.axis}),h){var c=function(t,e,n,r){var i=n.axis.getExtent(),o=Math.abs(i[1]-i[0]),a=function(t,e){if(t&&e)return t[mi(e)]}(r,n.axis);if(void 0===a)return{min:t,max:e};var s=1/0;eg(a,function(t){s=Math.min(t.offset,s)});var l=-1/0;eg(a,function(t){l=Math.max(t.offset+t.width,l)});var u=(s=Math.abs(s))+(l=Math.abs(l)),h=e-t,c=h/(1-(s+l)/o)-h;return e+=l/u*c,{min:t-=s/u*c,max:e}}(a,s,e,ma(u));a=c.min,s=c.max}}return{extent:[a,s],fixMin:o.minFixed,fixMax:o.maxFixed}}function mk(t,e){var n=mS(t,e),r=n.extent,i=e.get("splitNumber");t instanceof mv&&(t.base=e.get("logBase"));var o=t.type,a=e.get("interval"),s="interval"===o||"time"===o;t.setBreaksFromOption(mL(e)),t.setExtent(r[0],r[1]),t.calcNiceExtent({splitNumber:i,fixMin:n.fixMin,fixMax:n.fixMax,minInterval:s?e.get("minInterval"):null,maxInterval:s?e.get("maxInterval"):null}),null!=a&&t.setInterval&&t.setInterval(a)}function mM(t){var e=t.getLabelModel().get("formatter");if("time"===t.type){var n,r,i,o=ek(e)||eS(e)?e:(n=(n=e)||{},r={},i=!0,eg(hf,function(t){i&&(i=null==n[t])}),eg(hf,function(t,e){var o=n[t];r[t]={};for(var a=null,s=e;s>=0;s--){var l=hf[s],u=eT(o)&&!ew(o)?o[l]:o,h=void 0;ew(u)?a=(h=u.slice())[0]||"":ek(u)?h=[a=u]:(null==a?a=hc[t]:hh[l].test(a)||(a=r[l][l][0]+" "+a),h=[a],i&&(h[1]="{primary|"+a+"}")),r[t][l]=h}}),r);return function(e,n){return t.scale.getFormattedLabel(e,n,o)}}return ek(e)?function(n){var r=t.scale.getLabel(n);return e.replace("{value}",r??"")}:eS(e)?"category"===t.type?function(n,r){return e(mC(t,n),n.value-t.scale.getExtent()[0],null)}:function(n,r){return e(mC(t,n),r,null)}:function(e){return t.scale.getLabel(e)}}function mC(t,e){return"category"===t.type?t.scale.getLabel(e):e.value}function mT(t){return t.get("interval")??"auto"}function mI(t){return"category"===t.type&&0===mT(t.getLabelModel())}function mD(t){return"middle"===t||"center"===t}function mA(t){return t.getShallow("show")}function mL(t){if(null!=t.get("breaks",!0))return}var m$=function(){function t(){}return t.prototype.getNeedCrossZero=function(){return!this.option.scale},t.prototype.getCoordSysModel=function(){},t}(),mP=[],mO={registerPreprocessor:gc,registerProcessor:gd,registerPostInit:function(t){gp("afterinit",t)},registerPostUpdate:function(t){gp("afterupdate",t)},registerUpdateLifecycle:gp,registerAction:gf,registerCoordinateSystem:function(t,e){hG.register(t,e)},registerLayout:function(t,e){gy(gi,t,e,1e3,"layout")},registerVisual:gg,registerTransform:function(t){var e=(t=el(t)).type;e||ok("");var n=e.split(":");2!==n.length&&ok("");var r=!1;"echarts"===n[0]&&(e=n[1],r=!0),t.__isBuiltIn=r,d$.set(e,t)},registerLoading:function(t,e){ga[t]=e},registerMap:function(t,e,n){var r=fI.registerMap;r&&r(t,e,n)},registerImpl:function(t,e){fI[t]=e},PRIORITY:{PROCESSOR:{FILTER:1e3,SERIES_FILTER:800,STATISTIC:5e3},VISUAL:{LAYOUT:1e3,PROGRESSIVE_LAYOUT:1100,GLOBAL:2e3,CHART:3e3,POST_CHART_LAYOUT:4600,COMPONENT:4e3,BRUSH:5e3,CHART_ITEM:4500,ARIA:6e3,DECAL:7e3}},ComponentModel:h5,ComponentView:ps,SeriesModel:d9,ChartView:pc,registerComponentModel:function(t){h5.registerClass(t)},registerComponentView:function(t){ps.registerClass(t)},registerSeriesModel:function(t){d9.registerClass(t)},registerChartView:function(t){pc.registerClass(t)},registerCustomSeries:function(t,e){},registerSubTypeDefaulter:function(t,e){h5.registerSubTypeDefaulter(t,e)},registerPainter:function(t,e){ot[t]=e}};function mE(t){ew(t)?eg(t,function(t){mE(t)}):ed(mP,t)>=0||(mP.push(t),eS(t)&&(t={install:t}),t.install(mO))}var mN=oN(),mR=oN();function mz(t){return{out:{noPxChangeTryDetermine:[]},kind:t}}function mB(t,e){var n=em(e,function(e){return t.scale.parse(e)});return"time"===t.type&&n.length>0&&(n.sort(),n.unshift(n[0]),n.push(n[n.length-1])),n}function mF(t,e,n){var r,i,o=mW(t),a=mT(e),s=1===n.kind;if(!s){var l=mG(o,a);if(l)return l}eS(a)?r=mY(t,a):(i="auto"===a?function(t,e){if(1===e.kind){var n=t.calculateCategoryInterval(e);return e.out.noPxChangeTryDetermine.push(function(){return mR(t).autoInterval=n,!0}),n}return mR(t).autoInterval??(mR(t).autoInterval=t.calculateCategoryInterval(e))}(t,n):a,r=mX(t,i));var u={labels:r,labelCategoryInterval:i};return s?n.out.noPxChangeTryDetermine.push(function(){return mj(o,a,u),!0}):mj(o,a,u),u}var mV=mH("axisTick"),mW=mH("axisLabel");function mH(t){return function(e){return mR(e)[t]||(mR(e)[t]={list:[]})}}function mG(t,e){for(var n=0;n<t.list.length;n++)if(t.list[n].key===e)return t.list[n].value}function mj(t,e,n){return t.list.push({key:e,value:n}),n}function mU(t,e,n){return null==mZ(t,e,n)}function mZ(t,e,n){var r=mN(t.model),i=t.getExtent(),o=r.lastAutoInterval,a=r.lastTickCount;if(null!=o&&null!=a&&1>=Math.abs(o-e)&&1>=Math.abs(a-n)&&o>e&&r.axisExtent0===i[0]&&r.axisExtent1===i[1])return o;r.lastTickCount=n,r.lastAutoInterval=e,r.axisExtent0=i[0],r.axisExtent1=i[1]}function mX(t,e,n){var r=mM(t),i=t.scale,o=i.getExtent(),a=t.getLabelModel(),s=[],l=Math.max((e||0)+1,1),u=o[0],h=i.count();0!==u&&l>1&&h/l>2&&(u=Math.round(Math.ceil(u/l)*l));var c=mI(t),d=a.get("showMinLabel")||c,p=a.get("showMaxLabel")||c;d&&u!==o[0]&&g(o[0]);for(var f=u;f<=o[1];f+=l)g(f);function g(t){var e={value:t};s.push(n?t:{formattedLabel:r(e),rawLabel:i.getLabel(e),tickValue:t,time:void 0,break:void 0})}return p&&f-l!==o[1]&&g(o[1]),s}function mY(t,e,n){var r=t.scale,i=mM(t),o=[];return eg(r.getTicks(),function(t){var a=r.getLabel(t),s=t.value;e(t.value,a)&&o.push(n?s:{formattedLabel:i(t),rawLabel:a,tickValue:s,time:void 0,break:void 0})}),o}var mq=[0,1],mQ=function(){function t(t,e,n){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=e,this._extent=n||[0,0]}return t.prototype.contain=function(t){var e=this._extent,n=Math.min(e[0],e[1]),r=Math.max(e[0],e[1]);return t>=n&&t<=r},t.prototype.containData=function(t){return this.scale.contain(this.scale.parse(t))},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.getPixelPrecision=function(t){var e,n,r,i,o;return e=t||this.scale.getExtent(),n=this._extent,r=Math.log,i=Math.LN10,isFinite(o=Math.min(Math.max(-Math.floor(r(e[1]-e[0])/i)+Math.round(r(oa(n[1]-n[0]))/i),0),20))?o:20},t.prototype.setExtent=function(t,e){var n=this._extent;n[0]=t,n[1]=e},t.prototype.dataToCoord=function(t,e){var n=this._extent,r=this.scale;return t=r.normalize(r.parse(t)),this.onBand&&"ordinal"===r.type&&mK(n=n.slice(),r.count()),os(t,mq,n,e)},t.prototype.coordToData=function(t,e){var n=this._extent,r=this.scale;this.onBand&&"ordinal"===r.type&&mK(n=n.slice(),r.count());var i=os(t,n,mq,e);return this.scale.scale(i)},t.prototype.pointToData=function(t,e){},t.prototype.getTicksCoords=function(t){var e=(t=t||{}).tickModel||this.getTickModel(),n=function(t,e,n){var r=t.getTickModel().get("customValues");if(r){var i=t.scale.getExtent();return{ticks:ev(mB(t,r),function(t){return t>=i[0]&&t<=i[1]})}}return"category"===t.type?function(t,e){var n,r,i=mV(t),o=mT(e),a=mG(i,o);if(a)return a;if((!e.get("show")||t.scale.isBlank())&&(n=[]),eS(o))n=mY(t,o,!0);else if("auto"===o){var s=mF(t,t.getLabelModel(),mz(2));r=s.labelCategoryInterval,n=em(s.labels,function(t){return t.tickValue})}else n=mX(t,r=o,!0);return mj(i,o,{ticks:n,tickCategoryInterval:r})}(t,e):{ticks:em(t.scale.getTicks(n),function(t){return t.value})}}(this,e,{breakTicks:t.breakTicks,pruneByBreak:t.pruneByBreak}).ticks,r=em(n,function(t){return{coord:this.dataToCoord("ordinal"===this.scale.type?this.scale.getRawOrdinalNumber(t):t),tickValue:t}},this);return function(t,e,n,r){var i=e.length;if(t.onBand&&!n&&i){var o,a,s=t.getExtent();if(1===i)e[0].coord=s[0],e[0].onBand=!0,o=e[1]={coord:s[1],tickValue:e[0].tickValue,onBand:!0};else{var l=e[i-1].tickValue-e[0].tickValue,u=(e[i-1].coord-e[0].coord)/l;eg(e,function(t){t.coord-=u/2,t.onBand=!0});var h=t.scale.getExtent();a=1+h[1]-e[i-1].tickValue,o={coord:e[i-1].coord+u*a,tickValue:h[1]+1,onBand:!0},e.push(o)}var c=s[0]>s[1];d(e[0].coord,s[0])&&(r?e[0].coord=s[0]:e.shift()),r&&d(s[0],e[0].coord)&&e.unshift({coord:s[0],onBand:!0}),d(s[1],o.coord)&&(r?o.coord=s[1]:e.pop()),r&&d(o.coord,s[1])&&e.push({coord:s[1],onBand:!0})}function d(t,e){return t=oh(t),e=oh(e),c?t>e:t<e}}(this,r,e.get("alignWithLabel"),t.clamp),r},t.prototype.getMinorTicksCoords=function(){if("ordinal"===this.scale.type)return[];var t=this.model.getModel("minorTick").get("splitNumber");return t>0&&t<100||(t=5),em(this.scale.getMinorTicks(t),function(t){return em(t,function(t){return{coord:this.dataToCoord(t),tickValue:t}},this)},this)},t.prototype.getViewLabels=function(t){return function(t,e){var n,r,i,o,a,s,l,u=t.getLabelModel().get("customValues");if(u){var h=mM(t),c=t.scale.getExtent();return{labels:em(ev(mB(t,u),function(t){return t>=c[0]&&t<=c[1]}),function(e){var n={value:e};return{formattedLabel:h(n),rawLabel:t.scale.getLabel(n),tickValue:e,time:void 0,break:void 0}})}}return"category"===t.type?(n=t,r=e,i=n.getLabelModel(),o=mF(n,i,r),!i.get("show")||n.scale.isBlank()?{labels:[]}:o):(s=(a=t).scale.getTicks(),l=mM(a),{labels:em(s,function(t,e){return{formattedLabel:l(t,e),rawLabel:a.scale.getLabel(t),tickValue:t.value,time:t.time,break:t.break}})})}(this,t=t||mz(2)).labels},t.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},t.prototype.getTickModel=function(){return this.model.getModel("axisTick")},t.prototype.getBandWidth=function(){var t=this._extent,e=this.scale.getExtent(),n=e[1]-e[0]+ +!!this.onBand;return 0===n&&(n=1),Math.abs(Math.abs(t[1]-t[0]))/n},t.prototype.calculateCategoryInterval=function(t){return function(t,e){var n,r,i=e.kind,o=(r=(n=t).getLabelModel(),{axisRotate:n.getRotate?n.getRotate():n.isHorizontal&&!n.isHorizontal()?90:0,labelRotate:r.get("rotate")||0,font:r.getFont()}),a=mM(t),s=(o.axisRotate-o.labelRotate)/180*Math.PI,l=t.scale,u=l.getExtent(),h=l.count();if(u[1]-u[0]<1)return 0;var c=1;h>40&&(c=Math.max(1,Math.floor(h/40)));for(var d=u[0],p=t.dataToCoord(d+1)-t.dataToCoord(d),f=Math.abs(p*Math.cos(s)),g=Math.abs(p*Math.sin(s)),m=0,y=0;d<=u[1];d+=c){var v=0,_=0,x=iX(a({value:d}),o.font,"center","top");v=1.3*x.width,_=1.3*x.height,m=Math.max(m,v,7),y=Math.max(y,_,7)}var b=m/f,w=y/g;isNaN(b)&&(b=1/0),isNaN(w)&&(w=1/0);var S=Math.max(0,Math.floor(Math.min(b,w)));return 1===i?(e.out.noPxChangeTryDetermine.push(ex(mU,null,t,S,h)),S):mZ(t,S,h)??S}(this,t=t||mz(2))},t}();function mK(t,e){var n=(t[1]-t[0])/e/2;t[0]+=n,t[1]-=n}function mJ(t,e,n,r,i,o,a,s){var l=n-t,u=r-e,h=Math.sqrt(l*l+u*u),c=((i-t)*(l/=h)+(o-e)*(u/=h))/h;c*=h;var d=a[0]=t+c*l,p=a[1]=e+c*u;return Math.sqrt((d-i)*(d-i)+(p-o)*(p-o))}var m0=new nw,m1=new nw,m2=new nw,m5=new nw,m3=new nw,m4=[],m6=new nw;function m8(t,e,n,r){var i="normal"===n,o=i?t:t.ensureState(n);o.ignore=e;var a=r.get("smooth");a&&!0===a&&(a=.3),o.shape=o.shape||{},a>0&&(o.shape.smooth=a);var s=r.getModel("lineStyle").getLineStyle();i?t.useStyle(s):o.style=s}function m7(t,e){var n=e.smooth,r=e.points;if(r)if(t.moveTo(r[0][0],r[0][1]),n>0&&r.length>=3){var i=eY(r[0],r[1]),o=eY(r[1],r[2]);if(!i||!o){t.lineTo(r[1][0],r[1][1]),t.lineTo(r[2][0],r[2][1]);return}var a=Math.min(i,o)*n,s=eQ([],r[1],r[0],a/i),l=eQ([],r[1],r[2],a/o),u=eQ([],s,l,.5);t.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),t.bezierCurveTo(l[0],l[1],l[0],l[1],r[2][0],r[2][1])}else for(var h=1;h<r.length;h++)t.lineTo(r[h][0],r[h][1])}var m9=["label","labelLine","layoutOption","priority","defaultAttr","marginForce","minMarginForce","marginDefault","suggestIgnore"];function yt(t,e,n){n=n||3,e?t.dirty|=n:t.dirty&=~n}function ye(t,e){return e=e||3,null==t.dirty||!!(t.dirty&e)}function yn(t){if(t)return ye(t)&&yr(t,t.label,t),t}function yr(t,e,n){var r=e.getComputedTransform();t.transform=uF(t.transform,r);var i=t.localRect=uB(t.localRect,e.getBoundingRect()),o=e.style,a=o.margin,s=n&&n.marginForce,l=n&&n.minMarginForce,u=n&&n.marginDefault,h=o.__marginType;null==h&&u&&(a=u,h=u1.textMargin);for(var c=0;c<4;c++)yi[c]=h===u1.minMargin&&l&&null!=l[c]?l[c]:s&&null!=s[c]?s[c]:a?a[c]:0;h===u1.textMargin&&uL(i,yi,!1,!1);var d=t.rect=uB(t.rect,i);return r&&d.applyTransform(r),h===u1.minMargin&&uL(d,yi,!1,!1),t.axisAligned=uR(r),(t.label=t.label||{}).ignore=e.ignore,yt(t,!1),yt(t,!0,2),t}var yi=[0,0,0,0];function yo(t,e){for(var n=0;n<m9.length;n++){var r=m9[n];null==t[r]&&(t[r]=e[r])}return yn(t)}function ya(t){var e=t.obb;return(!e||ye(t,2))&&(t.obb=e=e||new uo,e.fromBoundingRect(t.localRect,t.transform),yt(t,!1,2)),e}function ys(t,e,n,r){return!!t&&!!e&&(!t.label||!t.label.ignore)&&(!e.label||!e.label.ignore)&&!!t.rect.intersect(e.rect,n,r)&&(!!t.axisAligned&&!!e.axisAligned||ya(t).intersect(ya(e),n,r))}var yl=Math.sin,yu=Math.cos,yh=Math.PI,yc=2*Math.PI,yd=180/yh,yp=function(){function t(){}return t.prototype.reset=function(t){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,t||4)},t.prototype.moveTo=function(t,e){this._add("M",t,e)},t.prototype.lineTo=function(t,e){this._add("L",t,e)},t.prototype.bezierCurveTo=function(t,e,n,r,i,o){this._add("C",t,e,n,r,i,o)},t.prototype.quadraticCurveTo=function(t,e,n,r){this._add("Q",t,e,n,r)},t.prototype.arc=function(t,e,n,r,i,o){this.ellipse(t,e,n,n,0,r,i,o)},t.prototype.ellipse=function(t,e,n,r,i,o,a,s){var l=a-o,u=!s,h=Math.abs(l),c=rK(h-yc)||(u?l>=yc:-l>=yc),d=l>0?l%yc:l%yc+yc,p=!1;p=!!c||!rK(h)&&d>=yh==!!u;var f=t+n*yu(o),g=e+r*yl(o);this._start&&this._add("M",f,g);var m=Math.round(i*yd);if(c){var y=1/this._p,v=(u?1:-1)*(yc-y);this._add("A",n,r,m,1,+u,t+n*yu(o+v),e+r*yl(o+v)),y>.01&&this._add("A",n,r,m,0,+u,f,g)}else{var _=t+n*yu(a),x=e+r*yl(a);this._add("A",n,r,m,+p,+u,_,x)}},t.prototype.rect=function(t,e,n,r){this._add("M",t,e),this._add("l",n,0),this._add("l",0,r),this._add("l",-n,0),this._add("Z")},t.prototype.closePath=function(){this._d.length>0&&this._add("Z")},t.prototype._add=function(t,e,n,r,i,o,a,s,l){for(var u=[],h=this._p,c=1;c<arguments.length;c++){var d=arguments[c];if(isNaN(d)){this._invalid=!0;return}u.push(Math.round(d*h)/h)}this._d.push(t+u.join(" ")),this._start="Z"===t},t.prototype.generateStr=function(){this._str=this._invalid?"":this._d.join(""),this._d=[]},t.prototype.getStr=function(){return this._str},t}(),yf="none",yg=Math.round,ym=["lineCap","miterLimit","lineJoin"],yy=em(ym,function(t){return"stroke-"+t.toLowerCase()}),yv="http://www.w3.org/2000/svg",y_="http://www.w3.org/1999/xlink",yx="ecmeta_";function yb(t){return document.createElementNS(yv,t)}function yw(t,e,n,r,i){return{tag:t,attrs:n||{},children:r,text:i,key:e}}function yS(t,e){var n=(e=e||{}).newline?`
|
|
42
|
+
`:"";return function t(e){var r=e.children,i=e.tag,o=e.attrs,a=e.text;return function(t,e){var n=[];if(e)for(var r in e){var i=e[r],o=r;!1!==i&&(!0!==i&&null!=i&&(o+='="'+i+'"'),n.push(o))}return"<"+t+" "+n.join(" ")+">"}(i,o)+("style"!==i?nr(a):a||"")+(r?""+n+em(r,function(e){return t(e)}).join(n)+n:"")+"</"+i+">"}(t)}function yk(t){return{zrId:t,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function yM(t,e,n,r){return yw("svg","root",{width:t,height:e,xmlns:yv,"xmlns:xlink":y_,version:"1.1",baseProfile:"full",viewBox:!!r&&"0 0 "+t+" "+e},n)}var yC=0,yT={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"},yI="transform-origin",yD={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function yA(t,e){var n=e.zrId+"-ani-"+e.cssAnimIdx++;return e.cssAnims[n]=t,n}function yL(t){return ek(t)?yT[t]?"cubic-bezier("+yT[t]+")":rC(t)?t:"":""}function y$(t,e,n,r){var i=t.animators,o=i.length,a=[];if(t instanceof l5){var s=function(t,e,n){var r,i,o=t.shape.paths,a={};if(eg(o,function(t){var e=yk(n.zrId);e.animation=!0,y$(t,{},e,!0);var o=e.cssAnims,s=e.cssNodes,l=e_(o),u=l.length;if(u){var h=o[i=l[u-1]];for(var c in h){var d=h[c];a[c]=a[c]||{d:""},a[c].d+=d.d||""}for(var p in s){var f=s[p].animation;f.indexOf(i)>=0&&(r=f)}}}),r){e.d=!1;var s=yA(a,n);return r.replace(i,s)}}(t,e,n);if(s)a.push(s);else if(!o)return}else if(!o)return;for(var l={},u=0;u<o;u++){var h=i[u],c=[h.getMaxTime()/1e3+"s"],d=yL(h.getClip().easing),p=h.getDelay();d?c.push(d):c.push("linear"),p&&c.push(p/1e3+"s"),h.getLoop()&&c.push("infinite");var f=c.join(" ");l[f]=l[f]||[f,[]],l[f][1].push(h)}for(var g in l){var s=function(i){var o=i[1],a=o.length,s={},l={},u={},h="animation-timing-function";function c(t,e,n){for(var r=t.getTracks(),i=t.getMaxTime(),o=0;o<r.length;o++){var a=r[o];if(a.needsAnimate()){var s=a.keyframes,l=a.propName;if(n&&(l=n(l)),l)for(var u=0;u<s.length;u++){var c=s[u],d=Math.round(c.time/i*100)+"%",p=yL(c.easing),f=c.rawValue;(ek(f)||eC(f))&&(e[d]=e[d]||{},e[d][l]=c.rawValue,p&&(e[d][h]=p))}}}}for(var d=0;d<a;d++){var p=o[d],f=p.targetName;f?"shape"===f&&c(p,l):r||c(p,s)}for(var g in s){var m={};iW(m,t),eh(m,s[g]);var y=r9(m),v=s[g][h];u[g]=y?{transform:y}:{},function(t,e){var n=e.originX,r=e.originY;(n||r)&&(t[yI]=n+"px "+r+"px")}(u[g],m),v&&(u[g][h]=v)}var _,x=!0;for(var g in l){u[g]=u[g]||{};var b=!_,v=l[g][h];b&&(_=new aZ);var w=_.len();_.reset(),u[g].d=function(t,e,n){var r=eh({},t.shape);eh(r,e),t.buildPath(n,r);var i=new yp;return i.reset(r7(t)),n.rebuildPath(i,1),i.generateStr(),i.getStr()}(t,l[g],_);var S=_.len();if(!b&&w!==S){x=!1;break}v&&(u[g][h]=v)}if(!x)for(var g in u)delete u[g].d;if(!r)for(var d=0;d<a;d++){var p=o[d],f=p.targetName;"style"===f&&c(p,u,function(t){return yD[t]})}for(var k,M=e_(u),C=!0,d=1;d<M.length;d++){var T=M[d-1],I=M[d];if(u[T][yI]!==u[I][yI]){C=!1;break}k=u[T][yI]}if(C&&k){for(var g in u)u[g][yI]&&delete u[g][yI];e[yI]=k}if(ev(M,function(t){return e_(u[t]).length>0}).length)return yA(u,n)+" "+i[0]+" both"}(l[g]);s&&a.push(s)}if(a.length){var m=n.zrId+"-cls-"+yC++;n.cssNodes["."+m]={animation:a.join(",")},e.class=m}}function yP(t,e,n,r){var i=JSON.stringify(t),o=n.cssStyleCache[i];o||(o=n.zrId+"-cls-"+yC++,n.cssStyleCache[i]=o,n.cssNodes["."+o+":hover"]=t),e.class=e.class?e.class+" "+o:o}var yO=Math.round;function yE(t){return t&&eS(t.toDataURL)}function yN(t,e,n,r){(function(t,e,n,r){var i,o,a=null==e.opacity?1:e.opacity;if(n instanceof sn)return t("opacity",a);if(null!=(i=e.fill)&&i!==yf){var s=rQ(e.fill);t("fill",s.color);var l=null!=e.fillOpacity?e.fillOpacity*s.opacity*a:s.opacity*a;l<1&&t("fill-opacity",l)}else t("fill",yf);if(null!=(o=e.stroke)&&o!==yf){var u=rQ(e.stroke);t("stroke",u.color);var h=e.strokeNoScale?n.getLineScale():1,c=h?(e.lineWidth||0)/h:0,d=null!=e.strokeOpacity?e.strokeOpacity*u.opacity*a:u.opacity*a,p=e.strokeFirst;if(1!==c&&t("stroke-width",c),p&&t("paint-order",p?"stroke":"fill"),d<1&&t("stroke-opacity",d),e.lineDash){var f=fs(n),g=f[0],m=f[1];g&&(m=yg(m||0),t("stroke-dasharray",g.join(",")),(m||r)&&t("stroke-dashoffset",m))}for(var y=0;y<ym.length;y++){var v=ym[y];if(e[v]!==a3[v]){var _=e[v]||a3[v];_&&t(yy[y],_)}}}})(function(i,o){var a="fill"===i||"stroke"===i;a&&r6(o)?yj(e,t,i,r):a&&r5(o)?yU(n,t,i,r):t[i]=o,a&&r.ssr&&"none"===o&&(t["pointer-events"]="visible")},e,n,!1),function(t,e,n){var r=t.style;if(r&&(r.shadowBlur||r.shadowOffsetX||r.shadowOffsetY)){var i,o,a=(i=t.style,o=t.getGlobalScale(),[i.shadowColor,(i.shadowBlur||0).toFixed(2),(i.shadowOffsetX||0).toFixed(2),(i.shadowOffsetY||0).toFixed(2),o[0],o[1]].join(",")),s=n.shadowCache,l=s[a];if(!l){var u=t.getGlobalScale(),h=u[0],c=u[1];if(!h||!c)return;var d=r.shadowOffsetX||0,p=r.shadowOffsetY||0,f=r.shadowBlur,g=rQ(r.shadowColor),m=g.opacity,y=g.color;l=n.zrId+"-s"+n.shadowIdx++,n.defs[l]=yw("filter",l,{id:l,x:"-100%",y:"-100%",width:"300%",height:"300%"},[yw("feDropShadow","",{dx:d/h,dy:p/c,stdDeviation:f/2/h+" "+f/2/c,"flood-color":y,"flood-opacity":m})]),s[a]=l}e.filter=r8(l)}}(n,t,r)}function yR(t,e){var n=function(t){if("function"==typeof cT)return cT(t)}(e);n&&(n.each(function(e,n){null!=e&&(t[(yx+n).toLowerCase()]=e+"")}),e.isSilent()&&(t[yx+"silent"]="true"))}function yz(t){return rK(t[0]-1)&&rK(t[1])&&rK(t[2])&&rK(t[3]-1)}function yB(t,e,n){e&&!(rK(e[4])&&rK(e[5])&&yz(e))&&(t.transform=yz(e)?"translate("+yO(1e4*e[4])/1e4+" "+yO(1e4*e[5])/1e4+")":"matrix("+rJ(e[0])+","+rJ(e[1])+","+rJ(e[2])+","+rJ(e[3])+","+r0(e[4])+","+r0(e[5])+")")}function yF(t,e,n){for(var r=t.points,i=[],o=0;o<r.length;o++)i.push(yO(r[o][0]*n)/n),i.push(yO(r[o][1]*n)/n);e.points=i.join(" ")}function yV(t){return!t.smooth}var yW={circle:[(r=em(["cx","cy","r"],function(t){return"string"==typeof t?[t,t]:t}),function(t,e,n){for(var i=0;i<r.length;i++){var o=r[i],a=t[o[0]];null!=a&&(e[o[1]]=yO(a*n)/n)}})],polyline:[yF,yV],polygon:[yF,yV]};function yH(t,e){var n=t.style,r=t.shape,i=yW[t.type],o={},a=e.animation,s="path",l=t.style.strokePercent,u=e.compress&&r7(t)||4;if(!i||e.willUpdate||i[1]&&!i[1](r)||a&&function(t){for(var e=t.animators,n=0;n<e.length;n++)if("shape"===e[n].targetName)return!0;return!1}(t)||l<1){var h=!t.path||t.shapeChanged();t.path||t.createPathProxy();var c=t.path;h&&(c.beginPath(),t.buildPath(c,t.shape),t.pathUpdated());var d=c.getVersion(),p=t.__svgPathBuilder;t.__svgPathVersion===d&&p&&l===t.__svgPathStrokePercent||(p||(p=t.__svgPathBuilder=new yp),p.reset(u),c.rebuildPath(p,l),p.generateStr(),t.__svgPathVersion=d,t.__svgPathStrokePercent=l),o.d=p.getStr()}else{s=t.type;var f=Math.pow(10,u);i[0](r,o,f)}return yB(o,t.transform),yN(o,n,t,e),yR(o,t),e.animation&&y$(t,o,e),e.emphasis&&function(t,e,n){if(!t.ignore)if(t.isSilent()){var r={"pointer-events":"none"};yP(r,e,n)}else{var i=t.states.emphasis&&t.states.emphasis.style?t.states.emphasis.style:{},o=i.fill;if(!o){var a=t.style&&t.style.fill,s=t.states.select&&t.states.select.style&&t.states.select.style.fill,l=t.currentStates.indexOf("select")>=0&&s||a;l&&(o=rY(l))}var u=i.lineWidth;u&&(u/=!i.strokeNoScale&&t.transform?t.transform[0]:1);var r={cursor:"pointer"};o&&(r.fill=o),i.stroke&&(r.stroke=i.stroke),u&&(r["stroke-width"]=u),yP(r,e,n)}}(t,o,e),yw(s,t.id+"",o)}function yG(t,e){return t instanceof a8?yH(t,e):t instanceof sn?function(t,e){var n,r=t.style,i=r.image;if(i&&!ek(i)&&((n=i)&&ek(n.src)?i=i.src:yE(i)&&(i=i.toDataURL())),i){var o=r.x||0,a=r.y||0,s={href:i,width:r.width,height:r.height};return o&&(s.x=o),a&&(s.y=a),yB(s,t.transform),yN(s,r,t,e),yR(s,t),e.animation&&y$(t,s,e),yw("image",t.id+"",s)}}(t,e):t instanceof a9?function(t,e){var n=t.style,r=n.text;if(null!=r&&(r+=""),!(!r||isNaN(n.x)||isNaN(n.y))){var i,o,a,s=n.font||t2,l=n.x||0,u=(i=n.y||0,o=iQ(s),"top"===(a=n.textBaseline)?i+=o/2:"bottom"===a&&(i-=o/2),i),h={"dominant-baseline":"central","text-anchor":r1[n.textAlign]||n.textAlign};if(s_(n)){var c="",d=n.fontStyle,p=sy(n.fontSize);if(!parseFloat(p))return;var f=n.fontFamily||t1,g=n.fontWeight;c+="font-size:"+p+";font-family:"+f+";",d&&"normal"!==d&&(c+="font-style:"+d+";"),g&&"normal"!==g&&(c+="font-weight:"+g+";"),h.style=c}else h.style="font: "+s;return r.match(/\s/)&&(h["xml:space"]="preserve"),l&&(h.x=l),u&&(h.y=u),yB(h,t.transform),yN(h,n,t,e),yR(h,t),e.animation&&y$(t,h,e),yw("text",t.id+"",h,void 0,r)}}(t,e):void 0}function yj(t,e,n,r){var i,o=t[n],a={gradientUnits:o.global?"userSpaceOnUse":"objectBoundingBox"};if(r3(o))i="linearGradient",a.x1=o.x,a.y1=o.y,a.x2=o.x2,a.y2=o.y2;else{if(!r4(o))return;i="radialGradient",a.cx=o.x??.5,a.cy=o.y??.5,a.r=o.r??.5}for(var s=o.colorStops,l=[],u=0,h=s.length;u<h;++u){var c=100*r0(s[u].offset)+"%",d=rQ(s[u].color),p=d.color,f=d.opacity,g={offset:c};g["stop-color"]=p,f<1&&(g["stop-opacity"]=f),l.push(yw("stop",u+"",g))}var m=yS(yw(i,"",a,l)),y=r.gradientCache,v=y[m];v||(v=r.zrId+"-g"+r.gradientIdx++,y[m]=v,a.id=v,r.defs[v]=yw(i,v,a,l)),e[n]=r8(v)}function yU(t,e,n,r){var i,o=t.style[n],a=t.getBoundingRect(),s={},l=o.repeat,u="no-repeat"===l,h="repeat-x"===l,c="repeat-y"===l;if(r2(o)){var d=o.imageWidth,p=o.imageHeight,f=void 0,g=o.image;if(ek(g)?f=g:g&&ek(g.src)?f=g.src:yE(g)&&(f=g.toDataURL()),typeof Image>"u"){var m="Image width/height must been given explictly in svg-ssr renderer.";eE(d,m),eE(p,m)}else if(null==d||null==p){var y=function(t,e){if(t){var n=t.elm,r=d||e.width,i=p||e.height;"pattern"===t.tag&&(h?(i=1,r/=a.width):c&&(r=1,i/=a.height)),t.attrs.width=r,t.attrs.height=i,n&&(n.setAttribute("width",r),n.setAttribute("height",i))}},v=o2(f,null,t,function(t){u||y(w,t),y(i,t)});v&&v.width&&v.height&&(d=d||v.width,p=p||v.height)}i=yw("image","img",{href:f,width:d,height:p}),s.width=d,s.height=p}else o.svgElement&&(i=el(o.svgElement),s.width=o.svgWidth,s.height=o.svgHeight);if(i){u?_=x=1:h?(x=1,_=s.width/a.width):c?(_=1,x=s.height/a.height):s.patternUnits="userSpaceOnUse",null==_||isNaN(_)||(s.width=_),null==x||isNaN(x)||(s.height=x);var _,x,b=r9(o);b&&(s.patternTransform=b);var w=yw("pattern","",s,[i]),S=yS(w),k=r.patternCache,M=k[S];M||(M=r.zrId+"-p"+r.patternIdx++,k[S]=M,s.id=M,w=r.defs[M]=yw("pattern",M,s,[i])),e[n]=r8(M)}}function yZ(t){return document.createTextNode(t)}function yX(t,e,n){t.insertBefore(e,n)}function yY(t,e){t.removeChild(e)}function yq(t,e){t.appendChild(e)}function yQ(t){return t.parentNode}function yK(t){return t.nextSibling}function yJ(t,e){t.textContent=e}var y0=yw("","");function y1(t){return void 0===t}function y2(t){return void 0!==t}function y5(t,e){var n=t.key===e.key;return t.tag===e.tag&&n}function y3(t){var e,n=t.children,r=t.tag;if(y2(r)){var i=t.elm=yb(r);if(y8(y0,t),ew(n))for(e=0;e<n.length;++e){var o=n[e];null!=o&&yq(i,y3(o))}else y2(t.text)&&!eT(t.text)&&yq(i,yZ(t.text))}else t.elm=yZ(t.text);return t.elm}function y4(t,e,n,r,i){for(;r<=i;++r){var o=n[r];null!=o&&yX(t,y3(o),e)}}function y6(t,e,n,r){for(;n<=r;++n){var i=e[n];null!=i&&(y2(i.tag)?yY(yQ(i.elm),i.elm):yY(t,i.elm))}}function y8(t,e){var n,r=e.elm,i=t&&t.attrs||{},o=e.attrs||{};if(i!==o){for(n in o){var a=o[n];i[n]!==a&&(!0===a?r.setAttribute(n,""):!1===a?r.removeAttribute(n):"style"===n?r.style.cssText=a:120!==n.charCodeAt(0)?r.setAttribute(n,a):"xmlns:xlink"===n||"xmlns"===n?r.setAttributeNS("http://www.w3.org/2000/xmlns/",n,a):58===n.charCodeAt(3)?r.setAttributeNS("http://www.w3.org/XML/1998/namespace",n,a):58===n.charCodeAt(5)?r.setAttributeNS(y_,n,a):r.setAttribute(n,a))}for(n in i)n in o||r.removeAttribute(n)}}var y7=0,y9=function(){function t(t,e,n){if(this.type="svg",this.refreshHover=vt("refreshHover"),this.configLayer=vt("configLayer"),this.storage=e,this._opts=n=eh({},n),this.root=t,this._id="zr"+y7++,this._oldVNode=yM(n.width,n.height),t&&!n.ssr){var r=this._viewport=document.createElement("div");r.style.cssText="position:relative;overflow:hidden";var i=this._svgDom=this._oldVNode.elm=yb("svg");y8(null,this._oldVNode),r.appendChild(i),t.appendChild(r)}this.resize(n.width,n.height)}return t.prototype.getType=function(){return this.type},t.prototype.getViewportRoot=function(){return this._viewport},t.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},t.prototype.getSvgDom=function(){return this._svgDom},t.prototype.refresh=function(){if(this.root){var t=this.renderToVNode({willUpdate:!0});t.attrs.style="position:absolute;left:0;top:0;user-select:none",function(t,e){if(y5(t,e))!function t(e,n){var r=n.elm=e.elm,i=e.children,o=n.children;e!==n&&(y8(e,n),y1(n.text)?y2(i)&&y2(o)?i!==o&&function(e,n,r){for(var i,o,a,s=0,l=0,u=n.length-1,h=n[0],c=n[u],d=r.length-1,p=r[0],f=r[d];s<=u&&l<=d;)null==h?h=n[++s]:null==c?c=n[--u]:null==p?p=r[++l]:null==f?f=r[--d]:y5(h,p)?(t(h,p),h=n[++s],p=r[++l]):y5(c,f)?(t(c,f),c=n[--u],f=r[--d]):y5(h,f)?(t(h,f),yX(e,h.elm,yK(c.elm)),h=n[++s],f=r[--d]):(y5(c,p)?(t(c,p),yX(e,c.elm,h.elm),c=n[--u]):(y1(i)&&(i=function(t,e,n){for(var r={},i=e;i<=n;++i){var o=t[i].key;void 0!==o&&(r[o]=i)}return r}(n,s,u)),y1(o=i[p.key])||(a=n[o]).tag!==p.tag?yX(e,y3(p),h.elm):(t(a,p),n[o]=void 0,yX(e,a.elm,h.elm))),p=r[++l]);(s<=u||l<=d)&&(s>u?y4(e,null==r[d+1]?null:r[d+1].elm,r,l,d):y6(e,n,s,u))}(r,i,o):y2(o)?(y2(e.text)&&yJ(r,""),y4(r,null,o,0,o.length-1)):y2(i)?y6(r,i,0,i.length-1):y2(e.text)&&yJ(r,""):e.text!==n.text&&(y2(i)&&y6(r,i,0,i.length-1),yJ(r,n.text)))}(t,e);else{var n=t.elm,r=yQ(n);y3(e),null!==r&&(yX(r,e.elm,yK(n)),y6(r,[t],0,0))}}(this._oldVNode,t),this._oldVNode=t}},t.prototype.renderOneToVNode=function(t){return yG(t,yk(this._id))},t.prototype.renderToVNode=function(t){t=t||{};var e=this.storage.getDisplayList(!0),n=this._width,r=this._height,i=yk(this._id);i.animation=t.animation,i.willUpdate=t.willUpdate,i.compress=t.compress,i.emphasis=t.emphasis,i.ssr=this._opts.ssr;var o=[],a=this._bgVNode=function(t,e,n,r){var i;if(n&&"none"!==n)if(i=yw("rect","bg",{width:t,height:e,x:"0",y:"0"}),r6(n))yj({fill:n},i.attrs,"fill",r);else if(r5(n))yU({style:{fill:n},dirty:eG,getBoundingRect:function(){return{width:t,height:e}}},i.attrs,"fill",r);else{var o=rQ(n),a=o.color,s=o.opacity;i.attrs.fill=a,s<1&&(i.attrs["fill-opacity"]=s)}return i}(n,r,this._backgroundColor,i);a&&o.push(a);var s=t.compress?null:this._mainVNode=yw("g","main",{},[]);this._paintList(e,i,s?s.children:o),s&&o.push(s);var l=em(e_(i.defs),function(t){return i.defs[t]});if(l.length&&o.push(yw("defs","defs",{},l)),t.animation){var u,h,c,d,p,f,g,m,y=(u=i.cssNodes,h=i.cssAnims,p=" {"+(d=(c={newline:!0}).newline?`
|
|
43
|
+
`:""),f=d+"}",g=em(e_(u),function(t){return t+p+em(e_(u[t]),function(e){return e+":"+u[t][e]+";"}).join(d)+f}).join(d),m=em(e_(h),function(t){return"@keyframes "+t+p+em(e_(h[t]),function(e){return e+p+em(e_(h[t][e]),function(n){var r=h[t][e][n];return"d"===n&&(r='path("'+r+'")'),n+":"+r+";"}).join(d)+f}).join(d)+f}).join(d),g||m?["<![CDATA[",g,m,"]]>"].join(d):"");if(y){var v=yw("style","stl",{},[],y);o.push(v)}}return yM(n,r,o,t.useViewBox)},t.prototype.renderToString=function(t){var e,n,r;return t=t||{},yS(this.renderToVNode({animation:(e=t.cssAnimation,e??!0),emphasis:(n=t.cssEmphasis,n??!0),willUpdate:!1,compress:!0,useViewBox:(r=t.useViewBox,r??!0)}),{newline:!0})},t.prototype.setBackgroundColor=function(t){this._backgroundColor=t},t.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},t.prototype._paintList=function(t,e,n){for(var r,i,o=t.length,a=[],s=0,l=0,u=0;u<o;u++){var h=t[u];if(!h.invisible){var c=h.__clipPaths,d=c&&c.length||0,p=i&&i.length||0,f=void 0;for(f=Math.max(d-1,p-1);f>=0&&!(c&&i&&c[f]===i[f]);f--);for(var g=p-1;g>f;g--)r=a[--s-1];for(var m=f+1;m<d;m++){var y={};!function(t,e,n){var r=n.clipPathCache,i=n.defs,o=r[t.id];if(!o){var a={id:o=n.zrId+"-c"+n.clipPathIdx++};r[t.id]=o,i[o]=yw("clipPath",o,a,[yH(t,n)])}e["clip-path"]=r8(o)}(c[m],y,e);var v=yw("g","clip-g-"+l++,y,[]);(r?r.children:n).push(v),a[s++]=v,r=v}i=c;var _=yG(h,e);_&&(r?r.children:n).push(_)}}},t.prototype.resize=function(t,e){var n=this._opts,r=this.root,i=this._viewport;if(null!=t&&(n.width=t),null!=e&&(n.height=e),r&&i&&(i.style.display="none",t=fa(r,0,n),e=fa(r,1,n),i.style.display=""),this._width!==t||this._height!==e){if(this._width=t,this._height=e,i){var o=i.style;o.width=t+"px",o.height=e+"px"}if(r5(this._backgroundColor))this.refresh();else{var a=this._svgDom;a&&(a.setAttribute("width",t),a.setAttribute("height",e));var s=this._bgVNode&&this._bgVNode.elm;s&&(s.setAttribute("width",t),s.setAttribute("height",e))}}},t.prototype.getWidth=function(){return this._width},t.prototype.getHeight=function(){return this._height},t.prototype.dispose=function(){this.root&&(this.root.innerHTML=""),this._svgDom=this._viewport=this.storage=this._oldVNode=this._bgVNode=this._mainVNode=null},t.prototype.clear=function(){this._svgDom&&(this._svgDom.innerHTML=null),this._oldVNode=null},t.prototype.toDataURL=function(t){var e=this.renderToString(),n="data:image/svg+xml;";return t?(e=it(e))&&n+"base64,"+e:n+"charset=UTF-8,"+encodeURIComponent(e)},t}();function vt(t){return function(){}}var ve=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return tK(e,t),e.prototype.getInitialData=function(t){return gX(null,this,{useEncodeDefaulter:!0})},e.prototype.getLegendIcon=function(t){var e=new i9,n=fe("line",0,t.itemHeight/2,t.itemWidth,0,t.lineStyle.stroke,!1);e.add(n),n.setStyle(t.lineStyle);var r=this.getData().getVisual("symbol"),i=this.getData().getVisual("symbolRotate"),o="none"===r?"circle":r,a=.8*t.itemHeight,s=fe(o,(t.itemWidth-a)/2,(t.itemHeight-a)/2,a,a,t.itemStyle.fill);return e.add(s),s.setStyle(t.itemStyle),s.rotation=("inherit"===t.iconRotate?i:t.iconRotate||0)*Math.PI/180,s.setOrigin([t.itemWidth/2,t.itemHeight/2]),o.indexOf("empty")>-1&&(s.style.stroke=s.style.fill,s.style.fill=h6.color.neutral00,s.style.lineWidth=2),e},e.type="series.line",e.dependencies=["grid","polar"],e.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:6,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},e}(d9);function vn(t,e){var n=t.mapDimensionsAll("defaultedLabel"),r=n.length;if(1===r){var i=dv(t,e,n[0]);return null!=i?i+"":null}if(r){for(var o=[],a=0;a<n.length;a++)o.push(dv(t,e,n[a]));return o.join(" ")}}function vr(t,e){var n=t.mapDimensionsAll("defaultedLabel");if(!ew(e))return e+"";for(var r=[],i=0;i<n.length;i++){var o=t.getDimensionIndex(n[i]);o>=0&&r.push(e[o])}return r.join(" ")}var vi=function(t){function e(e,n,r,i){var o=t.call(this)||this;return o.updateData(e,n,r,i),o}return tK(e,t),e.prototype._createSymbol=function(t,e,n,r,i,o){this.removeAll();var a=fe(t,-1,-1,2,2,null,o);a.attr({z2:i??100,culling:!0,scaleX:r[0]/2,scaleY:r[1]/2}),a.drift=vo,this._symbolType=t,this.add(a)},e.prototype.stopSymbolAnimation=function(t){this.childAt(0).stopAnimation(null,t)},e.prototype.getSymbolType=function(){return this._symbolType},e.prototype.getSymbolPath=function(){return this.childAt(0)},e.prototype.highlight=function(){s0(this.childAt(0))},e.prototype.downplay=function(){s1(this.childAt(0))},e.prototype.setZ=function(t,e){var n=this.childAt(0);n.zlevel=t,n.z=e},e.prototype.setDraggable=function(t,e){var n=this.childAt(0);n.draggable=t,n.cursor=!e&&t?"move":n.cursor},e.prototype.updateData=function(t,n,r,i){this.silent=!1;var o=t.getItemVisual(n,"symbol")||"circle",a=t.hostModel,s=e.getSymbolSize(t,n),l=e.getSymbolZ2(t,n),u=o!==this._symbolType,h=i&&i.disableAnimation;if(u){var c=t.getItemVisual(n,"symbolKeepAspect");this._createSymbol(o,t,n,s,l,c)}else{var d=this.childAt(0);d.silent=!1;var p={scaleX:s[0]/2,scaleY:s[1]/2};h?d.attr(p):uh(d,p,a,n),um(d)}if(this._updateCommon(t,n,s,r,i),u){var d=this.childAt(0);if(!h){var p={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:d.style.opacity}};d.scaleX=d.scaleY=0,d.style.opacity=0,uc(d,p,a,n)}}h&&this.childAt(0).stopAnimation("leave")},e.prototype._updateCommon=function(t,e,n,r,i){var o,a,s,l,u,h,c,d,p,f=this.childAt(0),g=t.hostModel;if(r&&(o=r.emphasisItemStyle,a=r.blurItemStyle,s=r.selectItemStyle,l=r.focus,u=r.blurScope,c=r.labelStatesModels,d=r.hoverScale,p=r.cursorStyle,h=r.emphasisDisabled),!r||t.hasItemOption){var m=r&&r.itemModel?r.itemModel:t.getItemModel(e),y=m.getModel("emphasis");o=y.getModel("itemStyle").getItemStyle(),s=m.getModel(["select","itemStyle"]).getItemStyle(),a=m.getModel(["blur","itemStyle"]).getItemStyle(),l=y.get("focus"),u=y.get("blurScope"),h=y.get("disabled"),c=uZ(m),d=y.getShallow("scale"),p=m.getShallow("cursor")}var v=t.getItemVisual(e,"symbolRotate");f.attr("rotation",(v||0)*Math.PI/180||0);var _=fn(t.getItemVisual(e,"symbolOffset"),n);_&&(f.x=_[0],f.y=_[1]),p&&f.attr("cursor",p);var x=t.getItemVisual(e,"style"),b=x.fill;if(f instanceof sn){var w=f.style;f.useStyle(eh({image:w.image,x:w.x,y:w.y,width:w.width,height:w.height},x))}else f.__isEmptyBrush?f.useStyle(eh({},x)):f.useStyle(x),f.style.decal=null,f.setColor(b,i&&i.symbolInnerColor),f.style.strokeNoScale=!0;var S=t.getItemVisual(e,"liftZ"),k=this._z2;null!=S?null==k&&(this._z2=f.z2,f.z2+=S):null!=k&&(f.z2=k,this._z2=null);var M=i&&i.useNameLabel;uU(f,c,{labelFetcher:g,labelDataIndex:e,defaultText:function(e){return M?t.getName(e):vn(t,e)},inheritColor:b,defaultOpacity:x.opacity}),this._sizeX=n[0]/2,this._sizeY=n[1]/2;var C=f.ensureState("emphasis");C.style=o,f.ensureState("select").style=s,f.ensureState("blur").style=a;var T=null==d||!0===d?Math.max(1.1,3/this._sizeY):isFinite(d)&&d>0?+d:1;C.scaleX=this._sizeX*T,C.scaleY=this._sizeY*T,this.setSymbolScale(1),s9(this,l,u,h)},e.prototype.setSymbolScale=function(t){this.scaleX=this.scaleY=t},e.prototype.fadeOut=function(t,e,n){var r=this.childAt(0),i=sC(this).dataIndex,o=n&&n.animation;if(this.silent=r.silent=!0,n&&n.fadeLabel){var a=r.getTextContent();a&&up(a,{style:{opacity:0}},e,{dataIndex:i,removeOpt:o,cb:function(){r.removeTextContent()}})}else r.removeTextContent();up(r,{style:{opacity:0},scaleX:0,scaleY:0},e,{dataIndex:i,cb:t,removeOpt:o})},e.getSymbolSize=function(t,e){var n;return ew(n=t.getItemVisual(e,"symbolSize"))||(n=[+n,+n]),[n[0]||0,n[1]||0]},e.getSymbolZ2=function(t,e){return t.getItemVisual(e,"z2")},e}(i9);function vo(t,e){this.parent.drift(t,e)}function va(t,e,n,r){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(r.isIgnore&&r.isIgnore(n))&&!(r.clipShape&&!r.clipShape.contain(e[0],e[1]))&&"none"!==t.getItemVisual(n,"symbol")}function vs(t){return null==t||eT(t)||(t={isIgnore:t}),t||{}}function vl(t){var e=t.hostModel,n=e.getModel("emphasis");return{emphasisItemStyle:n.getModel("itemStyle").getItemStyle(),blurItemStyle:e.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:e.getModel(["select","itemStyle"]).getItemStyle(),focus:n.get("focus"),blurScope:n.get("blurScope"),emphasisDisabled:n.get("disabled"),hoverScale:n.get("scale"),labelStatesModels:uZ(e),cursorStyle:e.get("cursor")}}var vu=function(){function t(t){this.group=new i9,this._SymbolCtor=t||vi}return t.prototype.updateData=function(t,e){this._progressiveEls=null,e=vs(e);var n=this.group,r=t.hostModel,i=this._data,o=this._SymbolCtor,a=e.disableAnimation,s=vl(t),l={disableAnimation:a},u=e.getSymbolPoint||function(e){return t.getItemLayout(e)};i||n.removeAll(),t.diff(i).add(function(r){var i=u(r);if(va(t,i,r,e)){var a=new o(t,r,s,l);a.setPosition(i),t.setItemGraphicEl(r,a),n.add(a)}}).update(function(h,c){var d=i.getItemGraphicEl(c),p=u(h);if(!va(t,p,h,e))return void n.remove(d);var f=t.getItemVisual(h,"symbol")||"circle",g=d&&d.getSymbolType&&d.getSymbolType();if(!d||g&&g!==f)n.remove(d),(d=new o(t,h,s,l)).setPosition(p);else{d.updateData(t,h,s,l);var m={x:p[0],y:p[1]};a?d.attr(m):uh(d,m,r)}n.add(d),t.setItemGraphicEl(h,d)}).remove(function(t){var e=i.getItemGraphicEl(t);e&&e.fadeOut(function(){n.remove(e)},r)}).execute(),this._getSymbolPoint=u,this._data=t},t.prototype.updateLayout=function(){var t=this,e=this._data;e&&e.eachItemGraphicEl(function(e,n){var r=t._getSymbolPoint(n);e.setPosition(r),e.markRedraw()})},t.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=vl(t),this._data=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(t,e,n){function r(t){t.isGroup||(t.incremental=!0,t.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[],n=vs(n);for(var i=t.start;i<t.end;i++){var o=e.getItemLayout(i);if(va(e,o,i,n)){var a=new this._SymbolCtor(e,i,this._seriesScope);a.traverse(r),a.setPosition(o),this.group.add(a),e.setItemGraphicEl(i,a),this._progressiveEls.push(a)}}},t.prototype.eachRendered=function(t){uN(this._progressiveEls||this.group,t)},t.prototype.remove=function(t){var e=this.group,n=this._data;n&&t?n.eachItemGraphicEl(function(t){t.fadeOut(function(){e.remove(t)},n.hostModel)}):e.removeAll()},t}();function vh(t,e,n){var r,i,o,a,s=t.getBaseAxis(),l=t.getOtherAxis(s),u=(r=l,i=n,o=0,a=r.scale.getExtent(),"start"===i?o=a[0]:"end"===i?o=a[1]:eC(i)&&!isNaN(i)?o=i:a[0]>0?o=a[0]:a[1]<0&&(o=a[1]),o),h=s.dim,c=l.dim,d=e.mapDimension(c),p=e.mapDimension(h),f=+("x"===c||"radius"===c),g=em(t.dimensions,function(t){return e.mapDimension(t)}),m=!1,y=e.getCalculationInfo("stackResultDimension");return gZ(e,g[0])&&(m=!0,g[0]=y),gZ(e,g[1])&&(m=!0,g[1]=y),{dataDimsForPoint:g,valueStart:u,valueAxisDim:c,baseAxisDim:h,stacked:!!m,valueDim:d,baseDim:p,baseDataOffset:f,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}}function vc(t,e,n,r){var i=NaN;t.stacked&&(i=n.get(n.getCalculationInfo("stackedOverDimension"),r)),isNaN(i)&&(i=t.valueStart);var o=t.baseDataOffset,a=[];return a[o]=n.get(t.baseDim,r),a[1-o]=i,e.dataToPoint(a)}var vd=Math.min,vp=Math.max;function vf(t,e){return isNaN(t)||isNaN(e)}function vg(t,e,n,r,i,o,a,s,l){for(var u,h,c,d,p,f,g=n,m=0;m<r;m++){var y=e[2*g],v=e[2*g+1];if(g>=i||g<0)break;if(vf(y,v)){if(l){g+=o;continue}break}if(g===n)t[o>0?"moveTo":"lineTo"](y,v),c=y,d=v;else{var _=y-u,x=v-h;if(_*_+x*x<.5){g+=o;continue}if(a>0){for(var b=g+o,w=e[2*b],S=e[2*b+1];w===y&&S===v&&m<r;)m++,b+=o,g+=o,w=e[2*b],S=e[2*b+1],y=e[2*g],v=e[2*g+1],_=y-u,x=v-h;var k=m+1;if(l)for(;vf(w,S)&&k<r;)k++,b+=o,w=e[2*b],S=e[2*b+1];var M=.5,C=0,T=0,I=void 0,D=void 0;if(k>=r||vf(w,S))p=y,f=v;else{C=w-u,T=S-h;var A=y-u,L=w-y,$=v-h,P=S-v,O=void 0,E=void 0;if("x"===s){O=Math.abs(A),E=Math.abs(L);var N=C>0?1:-1;p=y-N*O*a,f=v,I=y+N*E*a,D=v}else if("y"===s){O=Math.abs($),E=Math.abs(P);var R=T>0?1:-1;p=y,f=v-R*O*a,I=y,D=v+R*E*a}else O=Math.sqrt(A*A+$*$),p=y-C*a*(1-(M=(E=Math.sqrt(L*L+P*P))/(E+O))),f=v-T*a*(1-M),I=y+C*a*M,D=v+T*a*M,I=vd(I,vp(w,y)),D=vd(D,vp(S,v)),I=vp(I,vd(w,y)),D=vp(D,vd(S,v)),C=I-y,T=D-v,p=y-C*O/E,f=v-T*O/E,p=vd(p,vp(u,y)),f=vd(f,vp(h,v)),p=vp(p,vd(u,y)),f=vp(f,vd(h,v)),C=y-p,T=v-f,I=y+C*E/O,D=v+T*E/O}t.bezierCurveTo(c,d,p,f,y,v),c=I,d=D}else t.lineTo(y,v)}u=y,h=v,g+=o}return m}var vm=function(){this.smooth=0,this.smoothConstraint=!0},vy=function(t){function e(e){var n=t.call(this,e)||this;return n.type="ec-polyline",n}return tK(e,t),e.prototype.getDefaultStyle=function(){return{stroke:h6.color.neutral99,fill:null}},e.prototype.getDefaultShape=function(){return new vm},e.prototype.buildPath=function(t,e){var n=e.points,r=0,i=n.length/2;if(e.connectNulls){for(;i>0&&vf(n[2*i-2],n[2*i-1]);i--);for(;r<i&&vf(n[2*r],n[2*r+1]);r++);}for(;r<i;)r+=vg(t,n,r,i,i,1,e.smooth,e.smoothMonotone,e.connectNulls)+1},e.prototype.getPointOn=function(t,e){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var n,r,i=this.path,o=i.data,a=aZ.CMD,s="x"===e,l=[],u=0;u<o.length;){var h=o[u++],c=void 0,d=void 0,p=void 0,f=void 0,g=void 0,m=void 0,y=void 0;switch(h){case a.M:n=o[u++],r=o[u++];break;case a.L:if(c=o[u++],d=o[u++],(y=s?(t-n)/(c-n):(t-r)/(d-r))<=1&&y>=0){var v=s?(d-r)*y+r:(c-n)*y+n;return s?[t,v]:[v,t]}n=c,r=d;break;case a.C:c=o[u++],d=o[u++],p=o[u++],f=o[u++],g=o[u++],m=o[u++];var _=s?rv(n,c,p,g,t,l):rv(r,d,f,m,t,l);if(_>0)for(var x=0;x<_;x++){var b=l[x];if(b<=1&&b>=0){var v=s?rm(r,d,f,m,b):rm(n,c,p,g,b);return s?[t,v]:[v,t]}}n=g,r=m}}},e}(a8),vv=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return tK(e,t),e}(vm),v_=function(t){function e(e){var n=t.call(this,e)||this;return n.type="ec-polygon",n}return tK(e,t),e.prototype.getDefaultShape=function(){return new vv},e.prototype.buildPath=function(t,e){var n=e.points,r=e.stackedOnPoints,i=0,o=n.length/2,a=e.smoothMonotone;if(e.connectNulls){for(;o>0&&vf(n[2*o-2],n[2*o-1]);o--);for(;i<o&&vf(n[2*i],n[2*i+1]);i++);}for(;i<o;){var s=vg(t,n,i,o,o,1,e.smooth,a,e.connectNulls);vg(t,r,i+s-1,s,o,-1,e.stackedOnSmooth,a,e.connectNulls),i+=s+1,t.closePath()}},e}(a8);function vx(t,e,n,r,i){var o=t.getArea(),a=o.x,s=o.y,l=o.width,u=o.height,h=n.get(["lineStyle","width"])||0;a-=h/2,s-=h/2,l+=h,u+=h,l=Math.ceil(l),a!==Math.floor(a)&&(a=Math.floor(a),l++);var c=new su({shape:{x:a,y:s,width:l,height:u}});if(e){var d=t.getBaseAxis(),p=d.isHorizontal(),f=d.inverse;p?(f&&(c.shape.x+=l),c.shape.width=0):(f||(c.shape.y+=u),c.shape.height=0);var g=eS(i)?function(t){i(t,c)}:null;uc(c,{shape:{width:l,height:u,x:a,y:s}},n,null,r,g)}return c}function vb(t,e,n){var r=t.getArea(),i=oh(r.r0,1),o=oh(r.r,1),a=new lF({shape:{cx:oh(t.cx,1),cy:oh(t.cy,1),r0:i,r:o,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}});return e&&("angle"===t.getBaseAxis().dim?a.shape.endAngle=r.startAngle:a.shape.r=i,uc(a,{shape:{endAngle:r.endAngle,r:o}},n)),a}function vw(t,e){if(t.length===e.length){for(var n=0;n<t.length;n++)if(t[n]!==e[n])return;return!0}}function vS(t){for(var e=1/0,n=1/0,r=-1/0,i=-1/0,o=0;o<t.length;){var a=t[o++],s=t[o++];isNaN(a)||(e=Math.min(a,e),r=Math.max(a,r)),isNaN(s)||(n=Math.min(s,n),i=Math.max(s,i))}return[[e,n],[r,i]]}function vk(t,e){var n=vS(t),r=n[0],i=n[1],o=vS(e),a=o[0],s=o[1];return Math.max(Math.abs(r[0]-a[0]),Math.abs(r[1]-a[1]),Math.abs(i[0]-s[0]),Math.abs(i[1]-s[1]))}function vM(t){return eC(t)?t:.5*!!t}function vC(t,e,n,r,i){var o=n.getBaseAxis(),a=+("x"!==o.dim&&"radius"!==o.dim),s=[],l=0,u=[],h=[],c=[],d=[];if(i){for(l=0;l<t.length;l+=2){var p=e||t;isNaN(p[l])||isNaN(p[l+1])||d.push(t[l],t[l+1])}t=d}for(l=0;l<t.length-2;l+=2)switch(c[0]=t[l+2],c[1]=t[l+3],h[0]=t[l],h[1]=t[l+1],s.push(h[0],h[1]),r){case"end":u[a]=c[a],u[1-a]=h[1-a],s.push(u[0],u[1]);break;case"middle":var f=(h[a]+c[a])/2,g=[];u[a]=g[a]=f,u[1-a]=h[1-a],g[1-a]=c[1-a],s.push(u[0],u[1]),s.push(g[0],g[1]);break;default:u[a]=h[a],u[1-a]=c[1-a],s.push(u[0],u[1])}return s.push(t[l++],t[l++]),s}function vT(t,e){return[t[2*e],t[2*e+1]]}function vI(t){if(t.get(["endLabel","show"]))return!0;for(var e=0;e<s$.length;e++)if(t.get([s$[e],"endLabel","show"]))return!0;return!1}function vD(t,e,n,r){if("cartesian2d"!==e.type)return vb(e,n,r);var i=r.getModel("endLabel"),o=i.get("valueAnimation"),a=r.getData(),s={lastFrameIndex:0},l=vI(r)?function(n,r){t._endLabelOnDuring(n,r,a,s,o,i,e)}:null,u=e.getBaseAxis().isHorizontal(),h=vx(e,n,r,function(){var e=t._endLabel;e&&n&&null!=s.originalX&&e.attr({x:s.originalX,y:s.originalY})},l);if(!r.get("clip",!0)){var c=h.shape,d=Math.max(c.width,c.height);u?(c.y-=d,c.height+=2*d):(c.x-=d,c.width+=2*d)}return l&&l(1,h),h}var vA=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return tK(e,t),e.prototype.init=function(){var t=new i9,e=new vu;this.group.add(e.group),this._symbolDraw=e,this._lineGroup=t,this._changePolyState=ex(this._changePolyState,this)},e.prototype.render=function(t,e,n){var r=t.coordinateSystem,i=this.group,o=t.getData(),a=t.getModel("lineStyle"),s=t.getModel("areaStyle"),l=o.getLayout("points")||[],u="polar"===r.type,h=this._coordSys,c=this._symbolDraw,d=this._polyline,p=this._polygon,f=this._lineGroup,g=!e.ssr&&t.get("animation"),m=!s.isEmpty(),y=s.get("origin"),v=vh(r,o,y),_=m&&function(t,e,n){if(!n.valueDim)return[];for(var r=e.count(),i=mn(2*r),o=0;o<r;o++){var a=vc(n,t,e,o);i[2*o]=a[0],i[2*o+1]=a[1]}return i}(r,o,v),x=t.get("showSymbol"),b=t.get("connectNulls"),w=x&&!u&&function(t,e,n){var r=t.get("showAllSymbol"),i="auto"===r;if(!(r&&!i)){var o=n.getAxesByScale("ordinal")[0];if(o&&!(i&&function(t,e){var n=t.getExtent(),r=Math.abs(n[1]-n[0])/t.scale.count();isNaN(r)&&(r=0);for(var i=e.count(),o=Math.max(1,Math.round(i/5)),a=0;a<i;a+=o)if(1.5*vi.getSymbolSize(e,a)[+!!t.isHorizontal()]>r)return!1;return!0}(o,e))){var a=e.mapDimension(o.dim),s={};return eg(o.getViewLabels(),function(t){s[o.scale.getRawOrdinalNumber(t.tickValue)]=1}),function(t){return!s.hasOwnProperty(e.get(a,t))}}}}(t,o,r),S=this._data;S&&S.eachItemGraphicEl(function(t,e){t.__temp&&(i.remove(t),S.setItemGraphicEl(e,null))}),x||c.remove(),i.add(f);var k,M=!u&&t.get("step");r&&r.getArea&&t.get("clip",!0)&&(null!=(k=r.getArea()).width?(k.x-=.1,k.y-=.1,k.width+=.2,k.height+=.2):k.r0&&(k.r0-=.5,k.r+=.5)),this._clipShapeForSymbol=k;var C=function(t,e,n){var r=t.getVisual("visualMeta");if(!(!r||!r.length||!t.count())){if("cartesian2d"!==e.type)return;for(var i,o,a=r.length-1;a>=0;a--){var s=t.getDimensionInfo(r[a].dimension);if("x"===(i=s&&s.coordDim)||"y"===i){o=r[a];break}}if(!o)return;var l=e.getAxis(i),u=em(o.stops,function(t){return{coord:l.toGlobalCoord(l.dataToCoord(t.value)),color:t.color}}),h=u.length,c=o.outerColors.slice();h&&u[0].coord>u[h-1].coord&&(u.reverse(),c.reverse());var d=function(t,e){var n,r,i=[],o=t.length;function a(t,e,n){var r=t.coord,i=function(t,e){if(!(!(e&&e.length)||!(t>=0&&t<=1))){var n,r,i,o,a=t*(e.length-1),s=Math.floor(a),l=Math.ceil(a),u=rW(e[s]),h=rW(e[l]),c=a-s;return rU([r$((n=u[0],n+(h[0]-n)*c)),r$((r=u[1],r+(h[1]-r)*c)),r$((i=u[2],i+(h[2]-i)*c)),rP((o=u[3],o+(h[3]-o)*c))],"rgba")}}((n-r)/(e.coord-r),[t.color,e.color]);return{coord:n,color:i}}for(var s=0;s<o;s++){var l=t[s],u=l.coord;if(u<0)n=l;else if(u>e){r?i.push(a(r,l,e)):n&&i.push(a(n,l,0),a(n,l,e));break}else n&&(i.push(a(n,l,0)),n=null),i.push(l),r=l}return i}(u,"x"===i?n.getWidth():n.getHeight()),p=d.length;if(!p&&h)return u[0].coord<0?c[1]?c[1]:u[h-1].color:c[0]?c[0]:u[0].color;var f=d[0].coord-10,g=d[p-1].coord+10,m=g-f;if(m<.001)return"transparent";eg(d,function(t){t.offset=(t.coord-f)/m}),d.push({offset:p?d[p-1].offset:.5,color:c[1]||"transparent"}),d.unshift({offset:p?d[0].offset:.5,color:c[0]||"transparent"});var y=new l4(0,0,0,0,d,!0);return y[i]=f,y[i+"2"]=g,y}}(o,r,n)||o.getVisual("style")[o.getVisual("drawType")];if(d&&h.type===r.type&&M===this._step){m&&!p?p=this._newPolygon(l,_):p&&!m&&(f.remove(p),p=this._polygon=null),u||this._initOrUpdateEndLabel(t,r,hF(C));var T=f.getClipPath();T?uc(T,{shape:vD(this,r,!1,t).shape},t):f.setClipPath(vD(this,r,!0,t)),x&&c.updateData(o,{isIgnore:w,clipShape:k,disableAnimation:!0,getSymbolPoint:function(t){return[l[2*t],l[2*t+1]]}}),vw(this._stackedOnPoints,_)&&vw(this._points,l)||(g?this._doUpdateAnimation(o,_,r,n,M,y,b):(M&&(_&&(_=vC(_,l,r,M,b)),l=vC(l,null,r,M,b)),d.setShape({points:l}),p&&p.setShape({points:l,stackedOnPoints:_})))}else x&&c.updateData(o,{isIgnore:w,clipShape:k,disableAnimation:!0,getSymbolPoint:function(t){return[l[2*t],l[2*t+1]]}}),g&&this._initSymbolLabelAnimation(o,r,k),M&&(_&&(_=vC(_,l,r,M,b)),l=vC(l,null,r,M,b)),d=this._newPolyline(l),m?p=this._newPolygon(l,_):p&&(f.remove(p),p=this._polygon=null),u||this._initOrUpdateEndLabel(t,r,hF(C)),f.setClipPath(vD(this,r,!0,t));var I=t.getModel("emphasis"),D=I.get("focus"),A=I.get("blurScope"),L=I.get("disabled");d.useStyle(ec(a.getLineStyle(),{fill:"none",stroke:C,lineJoin:"bevel"})),ln(d,t,"lineStyle"),d.style.lineWidth>0&&"bolder"===t.get(["emphasis","lineStyle","width"])&&(d.getState("emphasis").style.lineWidth=+d.style.lineWidth+1),sC(d).seriesIndex=t.seriesIndex,s9(d,D,A,L);var $=vM(t.get("smooth")),P=t.get("smoothMonotone");if(d.setShape({smooth:$,smoothMonotone:P,connectNulls:b}),p){var O=o.getCalculationInfo("stackedOnSeries"),E=0;p.useStyle(ec(s.getAreaStyle(),{fill:C,opacity:.7,lineJoin:"bevel",decal:o.getVisual("style").decal})),O&&(E=vM(O.get("smooth"))),p.setShape({smooth:$,stackedOnSmooth:E,smoothMonotone:P,connectNulls:b}),ln(p,t,"areaStyle"),sC(p).seriesIndex=t.seriesIndex,s9(p,D,A,L)}var N=this._changePolyState;o.eachItemGraphicEl(function(t){t&&(t.onHoverStateChange=N)}),this._polyline.onHoverStateChange=N,this._data=o,this._coordSys=r,this._stackedOnPoints=_,this._points=l,this._step=M,this._valueOrigin=y,t.get("triggerLineEvent")&&(this.packEventData(t,d),p&&this.packEventData(t,p))},e.prototype.packEventData=function(t,e){sC(e).eventData={componentType:"series",componentSubType:"line",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"line"}},e.prototype.highlight=function(t,e,n,r){var i=t.getData(),o=oE(i,r);if(this._changePolyState("emphasis"),o instanceof Array||null==o||!(o>=0))pc.prototype.highlight.call(this,t,e,n,r);else{var a=i.getLayout("points"),s=i.getItemGraphicEl(o);if(!s){var l=a[2*o],u=a[2*o+1];if(isNaN(l)||isNaN(u)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(l,u))return;var h=t.get("zlevel")||0,c=t.get("z")||0;(s=new vi(i,o)).x=l,s.y=u,s.setZ(h,c);var d=s.getSymbolPath().getTextContent();d&&(d.zlevel=h,d.z=c,d.z2=this._polyline.z2+1),s.__temp=!0,i.setItemGraphicEl(o,s),s.stopSymbolAnimation(!0),this.group.add(s)}s.highlight()}},e.prototype.downplay=function(t,e,n,r){var i=t.getData(),o=oE(i,r);if(this._changePolyState("normal"),null!=o&&o>=0){var a=i.getItemGraphicEl(o);a&&(a.__temp?(i.setItemGraphicEl(o,null),this.group.remove(a)):a.downplay())}else pc.prototype.downplay.call(this,t,e,n,r)},e.prototype._changePolyState=function(t){var e=this._polygon;sY(this._polyline,t),e&&sY(e,t)},e.prototype._newPolyline=function(t){var e=this._polyline;return e&&this._lineGroup.remove(e),e=new vy({shape:{points:t},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(e),this._polyline=e,e},e.prototype._newPolygon=function(t,e){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new v_({shape:{points:t,stackedOnPoints:e},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n,n},e.prototype._initSymbolLabelAnimation=function(t,e,n){var r,i,o=e.getBaseAxis(),a=o.inverse;"cartesian2d"===e.type?(r=o.isHorizontal(),i=!1):"polar"===e.type&&(r="angle"===o.dim,i=!0);var s=t.hostModel,l=s.get("animationDuration");eS(l)&&(l=l(null));var u=s.get("animationDelay")||0,h=eS(u)?u(null):u;t.eachItemGraphicEl(function(t,o){if(t){var s=[t.x,t.y],c=void 0,d=void 0,p=void 0;if(n)if(i){var f=e.pointToCoord(s);r?(c=n.startAngle,d=n.endAngle,p=-f[1]/180*Math.PI):(c=n.r0,d=n.r,p=f[0])}else r?(c=n.x,d=n.x+n.width,p=t.x):(c=n.y+n.height,d=n.y,p=t.y);var g=d===c?0:(p-c)/(d-c);a&&(g=1-g);var m=eS(u)?u(o):l*g+h,y=t.getSymbolPath(),v=y.getTextContent();t.attr({scaleX:0,scaleY:0}),t.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:m}),v&&v.animateFrom({style:{opacity:0}},{duration:300,delay:m}),y.disableLabelAnimation=!0}})},e.prototype._initOrUpdateEndLabel=function(t,e,n){var r=t.getModel("endLabel");if(vI(t)){var i,o,a,s=t.getData(),l=this._polyline,u=s.getLayout("points");if(!u){l.removeTextContent(),this._endLabel=null;return}var h=this._endLabel;h||((h=this._endLabel=new sp({z2:200})).ignoreClip=!0,l.setTextContent(this._endLabel),l.disableLabelAnimation=!0);var c=function(t){for(var e,n,r=t.length/2;r>0&&(e=t[2*r-2],n=t[2*r-1],isNaN(e)||isNaN(n));r--);return r-1}(u);c>=0&&(uU(l,uZ(t,"endLabel"),{inheritColor:n,labelFetcher:t,labelDataIndex:c,defaultText:function(t,e,n){return null!=n?vr(s,n):vn(s,t)},enableTextSetter:!0},(o=(i=e.getBaseAxis()).isHorizontal(),a=i.inverse,{normal:{align:r.get("align")||(o?a?"right":"left":"center"),verticalAlign:r.get("verticalAlign")||(o?"middle":a?"top":"bottom")}})),l.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},e.prototype._endLabelOnDuring=function(t,e,n,r,i,o,a){var s=this._endLabel,l=this._polyline;if(s){t<1&&null==r.originalX&&(r.originalX=s.x,r.originalY=s.y);var u=n.getLayout("points"),h=n.hostModel,c=h.get("connectNulls"),d=o.get("precision"),p=o.get("distance")||0,f=a.getBaseAxis(),g=f.isHorizontal(),m=f.inverse,y=e.shape,v=m?g?y.x:y.y+y.height:g?y.x+y.width:y.y,_=(g?p:0)*(m?-1:1),x=(g?0:-p)*(m?-1:1),b=g?"x":"y",w=function(t,e,n){for(var r,i,o=t.length/2,a=+("x"!==n),s=0,l=-1,u=0;u<o;u++)if(!(isNaN(i=t[2*u+a])||isNaN(t[2*u+1-a]))){if(0===u){r=i;continue}if(r<=e&&i>=e||r>=e&&i<=e){l=u;break}s=u,r=i}return{range:[s,l],t:(e-r)/(i-r)}}(u,v,b),S=w.range,k=S[1]-S[0],M=void 0;if(k>=1){if(k>1&&!c){var C=vT(u,S[0]);s.attr({x:C[0]+_,y:C[1]+x}),i&&(M=h.getRawValue(S[0]))}else{var C=l.getPointOn(v,b);C&&s.attr({x:C[0]+_,y:C[1]+x});var T=h.getRawValue(S[0]),I=h.getRawValue(S[1]);i&&(M=function(t,e,n,r,i){var o=null==e||"auto"===e;if(null==r)return r;if(eC(r)){var a,s=(r-(a=n||0))*i+a;return oh(s,o?Math.max(oc(n||0),oc(r)):e)}if(ek(r))return i<1?n:r;for(var l=[],u=Math.max(n?n.length:0,r.length),h=0;h<u;++h){var c=t.getDimensionInfo(h);if(c&&"ordinal"===c.type)l[h]=(i<1&&n?n:r)[h];else{var d=n&&n[h]?n[h]:0,p=r[h],s=(p-d)*i+d;l[h]=oh(s,o?Math.max(oc(d),oc(p)):e)}}return l}(n,d,T,I,w.t))}r.lastFrameIndex=S[0]}else{var D=1===t||r.lastFrameIndex>0?S[0]:0,C=vT(u,D);i&&(M=h.getRawValue(D)),s.attr({x:C[0]+_,y:C[1]+x})}if(i){var A=u0(s);"function"==typeof A.setLabelText&&A.setLabelText(M)}}},e.prototype._doUpdateAnimation=function(t,e,n,r,i,o,a){var s=this._polyline,l=this._polygon,u=t.hostModel,h=function(t,e,n,r,i,o){for(var a,s=(a=[],e.diff(t).add(function(t){a.push({cmd:"+",idx:t})}).update(function(t,e){a.push({cmd:"=",idx:e,idx1:t})}).remove(function(t){a.push({cmd:"-",idx:t})}).execute(),a),l=[],u=[],h=[],c=[],d=[],p=[],f=[],g=vh(i,e,o),m=t.getLayout("points")||[],y=e.getLayout("points")||[],v=0;v<s.length;v++){var _=s[v],x=!0,b=void 0,w=void 0;switch(_.cmd){case"=":b=2*_.idx,w=2*_.idx1;var S=m[b],k=m[b+1],M=y[w],C=y[w+1];(isNaN(S)||isNaN(k))&&(S=M,k=C),l.push(S,k),u.push(M,C),h.push(n[b],n[b+1]),c.push(r[w],r[w+1]),f.push(e.getRawIndex(_.idx1));break;case"+":var T=_.idx,I=g.dataDimsForPoint,D=i.dataToPoint([e.get(I[0],T),e.get(I[1],T)]);w=2*T,l.push(D[0],D[1]),u.push(y[w],y[w+1]);var A=vc(g,i,e,T);h.push(A[0],A[1]),c.push(r[w],r[w+1]),f.push(e.getRawIndex(T));break;case"-":x=!1}x&&(d.push(_),p.push(p.length))}p.sort(function(t,e){return f[t]-f[e]});for(var L=l.length,$=mn(L),P=mn(L),O=mn(L),E=mn(L),N=[],v=0;v<p.length;v++){var R=p[v],z=2*v,B=2*R;$[z]=l[B],$[z+1]=l[B+1],P[z]=u[B],P[z+1]=u[B+1],O[z]=h[B],O[z+1]=h[B+1],E[z]=c[B],E[z+1]=c[B+1],N[v]=d[R]}return{current:$,next:P,stackedOnCurrent:O,stackedOnNext:E,status:N}}(this._data,t,this._stackedOnPoints,e,this._coordSys,this._valueOrigin),c=h.current,d=h.stackedOnCurrent,p=h.next,f=h.stackedOnNext;if(i&&(d=vC(h.stackedOnCurrent,h.current,n,i,a),c=vC(h.current,null,n,i,a),f=vC(h.stackedOnNext,h.next,n,i,a),p=vC(h.next,null,n,i,a)),vk(c,p)>3e3||l&&vk(d,f)>3e3){s.stopAnimation(),s.setShape({points:p}),l&&(l.stopAnimation(),l.setShape({points:p,stackedOnPoints:f}));return}s.shape.__points=h.current,s.shape.points=c;var g={shape:{points:p}};h.current!==c&&(g.shape.__points=h.next),s.stopAnimation(),uh(s,g,u),l&&(l.setShape({points:c,stackedOnPoints:d}),l.stopAnimation(),uh(l,{shape:{stackedOnPoints:f}},u),s.shape.points!==l.shape.points&&(l.shape.points=s.shape.points));for(var m=[],y=h.status,v=0;v<y.length;v++)if("="===y[v].cmd){var _=t.getItemGraphicEl(y[v].idx1);_&&m.push({el:_,ptIdx:v})}s.animators&&s.animators.length&&s.animators[0].during(function(){l&&l.dirtyShape();for(var t=s.shape.__points,e=0;e<m.length;e++){var n=m[e].el,r=2*m[e].ptIdx;n.x=t[r],n.y=t[r+1],n.markRedraw()}})},e.prototype.remove=function(t){var e=this.group,n=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),n&&n.eachItemGraphicEl(function(t,r){t.__temp&&(e.remove(t),n.setItemGraphicEl(r,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},e.type="line",e}(pc);function vL(t,e){return{seriesType:t,plan:pl(),reset:function(t){var n=t.getData(),r=t.coordinateSystem,i=t.pipelineContext,o=e||i.large;if(r){var a=em(r.dimensions,function(t){return n.mapDimension(t)}).slice(0,2),s=a.length,l=n.getCalculationInfo("stackResultDimension");gZ(n,a[0])&&(a[0]=l),gZ(n,a[1])&&(a[1]=l);var u=n.getStore(),h=n.getDimensionIndex(a[0]),c=n.getDimensionIndex(a[1]);return s&&{progress:function(t,e){for(var n=t.end-t.start,i=o&&mn(n*s),a=[],l=[],d=t.start,p=0;d<t.end;d++){var f=void 0;if(1===s){var g=u.get(h,d);f=r.dataToPoint(g,null,l)}else a[0]=u.get(h,d),a[1]=u.get(c,d),f=r.dataToPoint(a,null,l);o?(i[p++]=f[0],i[p++]=f[1]):e.setItemLayout(d,f.slice())}o&&e.setLayout("points",i)}}}}}}var v$={average:function(t){for(var e=0,n=0,r=0;r<t.length;r++)isNaN(t[r])||(e+=t[r],n++);return 0===n?NaN:e/n},sum:function(t){for(var e=0,n=0;n<t.length;n++)e+=t[n]||0;return e},max:function(t){for(var e=-1/0,n=0;n<t.length;n++)t[n]>e&&(e=t[n]);return isFinite(e)?e:NaN},min:function(t){for(var e=1/0,n=0;n<t.length;n++)t[n]<e&&(e=t[n]);return isFinite(e)?e:NaN},nearest:function(t){return t[0]}},vP=function(t){return Math.round(t.length/2)};function vO(t){return{seriesType:t,reset:function(t,e,n){var r=t.getData(),i=t.get("sampling"),o=t.coordinateSystem,a=r.count();if(a>10&&"cartesian2d"===o.type&&i){var s=o.getBaseAxis(),l=o.getOtherAxis(s),u=s.getExtent(),h=n.getDevicePixelRatio(),c=Math.round(a/(Math.abs(u[1]-u[0])*(h||1)));if(isFinite(c)&&c>1){"lttb"===i?t.setData(r.lttbDownSample(r.mapDimension(l.dim),1/c)):"minmax"===i&&t.setData(r.minmaxDownSample(r.mapDimension(l.dim),1/c));var d=void 0;ek(i)?d=v$[i]:eS(i)&&(d=i),d&&t.setData(r.downSample(r.mapDimension(l.dim),1/c,d,vP))}}}}}var vE=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return tK(e,t),e.prototype.getInitialData=function(t,e){return gX(null,this,{useEncodeDefaulter:!0})},e.prototype.getMarkerPosition=function(t,e,n){var r=this.coordinateSystem;if(r&&r.clampData){var i=r.clampData(t),o=r.dataToPoint(i);if(n)eg(r.getAxes(),function(t,n){if("category"===t.type&&null!=e){var r=t.getTicksCoords(),a=t.getTickModel().get("alignWithLabel"),s=i[n],l="x1"===e[n]||"y1"===e[n];if(l&&!a&&(s+=1),!(r.length<2)){if(2===r.length){o[n]=t.toGlobalCoord(t.getExtent()[+!!l]);return}for(var u=void 0,h=void 0,c=1,d=0;d<r.length;d++){var p=r[d].coord,f=d===r.length-1?r[d-1].tickValue+c:r[d].tickValue;if(f===s){h=p;break}if(f<s)u=p;else if(null!=u&&f>s){h=(p+u)/2;break}1===d&&(c=f-r[0].tickValue)}null==h&&(u?u&&(h=r[r.length-1].coord):h=r[0].coord),o[n]=t.toGlobalCoord(h)}}});else{var a=this.getData(),s=a.getLayout("offset"),l=a.getLayout("size"),u=+!r.getBaseAxis().isHorizontal();o[u]+=s+l/2}return o}return[NaN,NaN]},e.type="series.__base_bar__",e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod",defaultBarGap:"10%"},e}(d9);d9.registerClass(vE);var vN=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return tK(e,t),e.prototype.getInitialData=function(){return gX(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},e.prototype.getProgressive=function(){return!!this.get("large")&&this.get("progressive")},e.prototype.getProgressiveThreshold=function(){var t=this.get("progressiveThreshold"),e=this.get("largeThreshold");return e>t&&(t=e),t},e.prototype.brushSelector=function(t,e,n){return n.rect(e.getItemLayout(t))},e.type="series.bar",e.dependencies=["grid","polar"],e.defaultOption=ho(vE.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:h6.color.primary,borderWidth:2}},realtimeSort:!1}),e}(vE),vR=function(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0},vz=function(t){function e(e){var n=t.call(this,e)||this;return n.type="sausage",n}return tK(e,t),e.prototype.getDefaultShape=function(){return new vR},e.prototype.buildPath=function(t,e){var n=e.cx,r=e.cy,i=Math.max(e.r0||0,0),o=Math.max(e.r,0),a=(o-i)*.5,s=i+a,l=e.startAngle,u=e.endAngle,h=e.clockwise,c=2*Math.PI,d=h?u-l<c:l-u<c;d||(l=u-(h?c:-c));var p=Math.cos(l),f=Math.sin(l),g=Math.cos(u),m=Math.sin(u);d?(t.moveTo(p*i+n,f*i+r),t.arc(p*s+n,f*s+r,a,-Math.PI+l,l,!h)):t.moveTo(p*o+n,f*o+r),t.arc(n,r,o,l,u,!h),t.arc(g*s+n,m*s+r,a,u-2*Math.PI,u-Math.PI,!h),0!==i&&t.arc(n,r,i,u,l,h)},e}(a8);function vB(t,e,n){return e*Math.sin(t)*(n?-1:1)}function vF(t,e,n){return e*Math.cos(t)*(n?1:-1)}function vV(t,e,n){var r=t.get("borderRadius");if(null==r)return n?{cornerRadius:0}:null;ew(r)||(r=[r,r,r,r]);var i=Math.abs(e.r||0-e.r0||0);return{cornerRadius:em(r,function(t){return iK(t,i)})}}var vW=Math.max,vH=Math.min,vG=function(t){function e(){var n=t.call(this)||this;return n.type=e.type,n._isFirstFrame=!0,n}return tK(e,t),e.prototype.render=function(t,e,n,r){this._model=t,this._removeOnRenderedListener(n),this._updateDrawMode(t);var i=t.get("coordinateSystem");("cartesian2d"===i||"polar"===i)&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(t,e,n):this._renderNormal(t,e,n,r))},e.prototype.incrementalPrepareRender=function(t){this._clear(),this._updateDrawMode(t),this._updateLargeClip(t)},e.prototype.incrementalRender=function(t,e){this._progressiveEls=[],this._incrementalRenderLarge(t,e)},e.prototype.eachRendered=function(t){uN(this._progressiveEls||this.group,t)},e.prototype._updateDrawMode=function(t){var e=t.pipelineContext.large;(null==this._isLargeDraw||e!==this._isLargeDraw)&&(this._isLargeDraw=e,this._clear())},e.prototype._renderNormal=function(t,e,n,r){var i,o=this.group,a=t.getData(),s=this._data,l=t.coordinateSystem,u=l.getBaseAxis();"cartesian2d"===l.type?i=u.isHorizontal():"polar"===l.type&&(i="angle"===u.dim);var h=t.isAnimationEnabled()?t:null,c=function(t,e){var n=t.get("realtimeSort",!0),r=e.getBaseAxis();if(n&&"category"===r.type&&"cartesian2d"===e.type)return{baseAxis:r,otherAxis:e.getOtherAxis(r)}}(t,l);c&&this._enableRealtimeSort(c,a,n);var d=t.get("clip",!0)||c,p=function(t,e){var n=t.getArea&&t.getArea();if("cartesian2d"===t.type){var r=t.getBaseAxis();if("category"!==r.type||!r.onBand){var i=e.getLayout("bandWidth");r.isHorizontal()?(n.x-=i,n.width+=2*i):(n.y-=i,n.height+=2*i)}}return n}(l,a);o.removeClipPath();var f=t.get("roundCap",!0),g=t.get("showBackground",!0),m=t.getModel("backgroundStyle"),y=m.get("borderRadius")||0,v=[],_=this._backgroundEls,x=r&&r.isInitSort,b=r&&"changeAxisOrder"===r.type;function w(t){var e,n,r,o=vK[l.type](a,t);if(!o)return null;var s=(e=l,n=i,r=o,new("polar"===e.type?lF:su)({shape:v4(n,r,e),silent:!0,z2:0}));return s.useStyle(m.getItemStyle()),"cartesian2d"===l.type?s.setShape("r",y):s.setShape("cornerRadius",y),v[t]=s,s}a.diff(s).add(function(e){var n=a.getItemModel(e),r=vK[l.type](a,e,n);if(r&&(g&&w(e),!(!a.hasValue(e)||!vQ[l.type](r)))){var s=!1;d&&(s=vj[l.type](p,r));var m=vU[l.type](t,a,e,r,i,h,u.model,!1,f);c&&(m.forceLabelAnimation=!0),v0(m,a,e,n,r,t,i,"polar"===l.type),x?m.attr({shape:r}):c?vZ(c,h,m,r,e,i,!1,!1):uc(m,{shape:r},t,e),a.setItemGraphicEl(e,m),o.add(m),m.ignore=s}}).update(function(e,n){var r=a.getItemModel(e),S=vK[l.type](a,e,r);if(S){if(g){var k=void 0;0===_.length?k=w(n):((k=_[n]).useStyle(m.getItemStyle()),"cartesian2d"===l.type?k.setShape("r",y):k.setShape("cornerRadius",y),v[e]=k);var M=vK[l.type](a,e);uh(k,{shape:v4(i,M,l)},h,e)}var C=s.getItemGraphicEl(n);if(!a.hasValue(e)||!vQ[l.type](S))return void o.remove(C);var T=!1;if(d&&(T=vj[l.type](p,S))&&o.remove(C),C&&("sector"===C.type&&f||"sausage"===C.type&&!f)&&(C&&ug(C,t,n),C=null),C?um(C):C=vU[l.type](t,a,e,S,i,h,u.model,!0,f),c&&(C.forceLabelAnimation=!0),b){var I=C.getTextContent();if(I){var D=u0(I);null!=D.prevValue&&(D.prevValue=D.value)}}else v0(C,a,e,r,S,t,i,"polar"===l.type);x?C.attr({shape:S}):c?vZ(c,h,C,S,e,i,!0,b):uh(C,{shape:S},t,e,null),a.setItemGraphicEl(e,C),C.ignore=T,o.add(C)}}).remove(function(e){var n=s.getItemGraphicEl(e);n&&ug(n,t,e)}).execute();var S=this._backgroundGroup||(this._backgroundGroup=new i9);S.removeAll();for(var k=0;k<v.length;++k)S.add(v[k]);o.add(S),this._backgroundEls=v,this._data=a},e.prototype._renderLarge=function(t,e,n){this._clear(),v5(t,this.group),this._updateLargeClip(t)},e.prototype._incrementalRenderLarge=function(t,e){this._removeBackground(),v5(e,this.group,this._progressiveEls,!0)},e.prototype._updateLargeClip=function(t){var e=t.get("clip",!0)&&function(t,e,n){if(t){if("polar"===t.type)return vb(t,e,n);if("cartesian2d"===t.type)return vx(t,e,n,void 0,void 0)}return null}(t.coordinateSystem,!1,t),n=this.group;e?n.setClipPath(e):n.removeClipPath()},e.prototype._enableRealtimeSort=function(t,e,n){var r=this;if(e.count()){var i=t.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(e,t,n),this._isFirstFrame=!1;else{var o=function(t){var n=e.getItemGraphicEl(t),r=n&&n.shape;return r&&Math.abs(i.isHorizontal()?r.height:r.width)||0};this._onRendered=function(){r._updateSortWithinSameData(e,o,i,n)},n.getZr().on("rendered",this._onRendered)}}},e.prototype._dataSort=function(t,e,n){var r=[];return t.each(t.mapDimension(e.dim),function(t,e){var i=n(e);i=i??NaN,r.push({dataIndex:e,mappedValue:i,ordinalNumber:t})}),r.sort(function(t,e){return e.mappedValue-t.mappedValue}),{ordinalNumbers:em(r,function(t){return t.ordinalNumber})}},e.prototype._isOrderChangedWithinSameData=function(t,e,n){for(var r=n.scale,i=t.mapDimension(n.dim),o=Number.MAX_VALUE,a=0,s=r.getOrdinalMeta().categories.length;a<s;++a){var l=t.rawIndexOf(i,r.getRawOrdinalNumber(a)),u=l<0?5e-324:e(t.indexOfRawIndex(l));if(u>o)return!0;o=u}return!1},e.prototype._isOrderDifferentInView=function(t,e){for(var n=e.scale,r=n.getExtent(),i=Math.max(0,r[0]),o=Math.min(r[1],n.getOrdinalMeta().categories.length-1);i<=o;++i)if(t.ordinalNumbers[i]!==n.getRawOrdinalNumber(i))return!0},e.prototype._updateSortWithinSameData=function(t,e,n,r){if(this._isOrderChangedWithinSameData(t,e,n)){var i=this._dataSort(t,n,e);this._isOrderDifferentInView(i,n)&&(this._removeOnRenderedListener(r),r.dispatchAction({type:"changeAxisOrder",componentType:n.dim+"Axis",axisId:n.index,sortInfo:i}))}},e.prototype._dispatchInitSort=function(t,e,n){var r=e.baseAxis,i=this._dataSort(t,r,function(n){return t.get(t.mapDimension(e.otherAxis.dim),n)});n.dispatchAction({type:"changeAxisOrder",componentType:r.dim+"Axis",isInitSort:!0,axisId:r.index,sortInfo:i})},e.prototype.remove=function(t,e){this._clear(this._model),this._removeOnRenderedListener(e)},e.prototype.dispose=function(t,e){this._removeOnRenderedListener(e)},e.prototype._removeOnRenderedListener=function(t){this._onRendered&&(t.getZr().off("rendered",this._onRendered),this._onRendered=null)},e.prototype._clear=function(t){var e=this.group,n=this._data;t&&t.isAnimationEnabled()&&n&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],n.eachItemGraphicEl(function(e){ug(e,t,sC(e).dataIndex)})):e.removeAll(),this._data=null,this._isFirstFrame=!0},e.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},e.type="bar",e}(pc),vj={cartesian2d:function(t,e){var n=e.width<0?-1:1,r=e.height<0?-1:1;n<0&&(e.x+=e.width,e.width=-e.width),r<0&&(e.y+=e.height,e.height=-e.height);var i=t.x+t.width,o=t.y+t.height,a=vW(e.x,t.x),s=vH(e.x+e.width,i),l=vW(e.y,t.y),u=vH(e.y+e.height,o),h=s<a,c=u<l;return e.x=h&&a>i?s:a,e.y=c&&l>o?u:l,e.width=h?0:s-a,e.height=c?0:u-l,n<0&&(e.x+=e.width,e.width=-e.width),r<0&&(e.y+=e.height,e.height=-e.height),h||c},polar:function(t,e){var n=e.r0<=e.r?1:-1;if(n<0){var r=e.r;e.r=e.r0,e.r0=r}var i=vH(e.r,t.r),o=vW(e.r0,t.r0);e.r=i,e.r0=o;var a=i-o<0;if(n<0){var r=e.r;e.r=e.r0,e.r0=r}return a}},vU={cartesian2d:function(t,e,n,r,i,o,a,s,l){var u=new su({shape:eh({},r),z2:1});return u.__dataIndex=n,u.name="item",o&&(u.shape[i?"height":"width"]=0),u},polar:function(t,e,n,r,i,o,a,s,l){var u,h,c=!i&&l?vz:lF,d=new c({shape:r,z2:1});if(d.name="item",u=vJ(i),h=c===vz,d.calculateTextPosition=function(t,e,n){var r=e.position;if(!r||r instanceof Array)return iJ(t,e,n);var i=u(r),o=null!=e.distance?e.distance:5,a=this.shape,s=a.cx,l=a.cy,c=a.r,d=a.r0,p=(c+d)/2,f=a.startAngle,g=a.endAngle,m=(f+g)/2,y=h?Math.abs(c-d)/2:0,v=Math.cos,_=Math.sin,x=s+c*v(f),b=l+c*_(f),w="left",S="top";switch(i){case"startArc":x=s+(d-o)*v(m),b=l+(d-o)*_(m),w="center",S="top";break;case"insideStartArc":x=s+(d+o)*v(m),b=l+(d+o)*_(m),w="center",S="bottom";break;case"startAngle":x=s+p*v(f)+vB(f,o+y,!1),b=l+p*_(f)+vF(f,o+y,!1),w="right",S="middle";break;case"insideStartAngle":x=s+p*v(f)+vB(f,-o+y,!1),b=l+p*_(f)+vF(f,-o+y,!1),w="left",S="middle";break;case"middle":x=s+p*v(m),b=l+p*_(m),w="center",S="middle";break;case"endArc":x=s+(c+o)*v(m),b=l+(c+o)*_(m),w="center",S="bottom";break;case"insideEndArc":x=s+(c-o)*v(m),b=l+(c-o)*_(m),w="center",S="top";break;case"endAngle":x=s+p*v(g)+vB(g,o+y,!0),b=l+p*_(g)+vF(g,o+y,!0),w="left",S="middle";break;case"insideEndAngle":x=s+p*v(g)+vB(g,-o+y,!0),b=l+p*_(g)+vF(g,-o+y,!0),w="right",S="middle";break;default:return iJ(t,e,n)}return(t=t||{}).x=x,t.y=b,t.align=w,t.verticalAlign=S,t},o){var p=d.shape,f=i?"r":"endAngle",g={};p[f]=i?r.r0:r.startAngle,g[f]=r[f],(s?uh:uc)(d,{shape:g},o)}return d}};function vZ(t,e,n,r,i,o,a,s){var l,u;o?(u={x:r.x,width:r.width},l={y:r.y,height:r.height}):(u={y:r.y,height:r.height},l={x:r.x,width:r.width}),s||(a?uh:uc)(n,{shape:l},e,i,null),(a?uh:uc)(n,{shape:u},e?t.baseAxis.model:null,i)}function vX(t,e){for(var n=0;n<e.length;n++)if(!isFinite(t[e[n]]))return!0;return!1}var vY=["x","y","width","height"],vq=["cx","cy","r","startAngle","endAngle"],vQ={cartesian2d:function(t){return!vX(t,vY)},polar:function(t){return!vX(t,vq)}},vK={cartesian2d:function(t,e,n){var r,i,o,a=t.getItemLayout(e);if(!a)return null;var s=n?(r=n,i=a,(o=r.get(["itemStyle","borderColor"]))&&"none"!==o?Math.min(r.get(["itemStyle","borderWidth"])||0,isNaN(i.width)?Number.MAX_VALUE:Math.abs(i.width),isNaN(i.height)?Number.MAX_VALUE:Math.abs(i.height)):0):0,l=a.width>0?1:-1,u=a.height>0?1:-1;return{x:a.x+l*s/2,y:a.y+u*s/2,width:a.width-l*s,height:a.height-u*s}},polar:function(t,e,n){var r=t.getItemLayout(e);return{cx:r.cx,cy:r.cy,r0:r.r0,r:r.r,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}}};function vJ(t){var e;return e=t?"Arc":"Angle",function(t){switch(t){case"start":case"insideStart":case"end":case"insideEnd":return t+e;default:return t}}}function v0(t,e,n,r,i,o,a,s){var l=e.getItemVisual(n,"style");if(s){if(!o.get("roundCap")){var u=t.shape,h=vV(r.getModel("itemStyle"),u,!0);eh(u,h),t.setShape(u)}}else{var c=r.get(["itemStyle","borderRadius"])||0;t.setShape("r",c)}t.useStyle(l);var d=r.getShallow("cursor");d&&t.attr("cursor",d);var p=s?a?i.r>=i.r0?"endArc":"startArc":i.endAngle>=i.startAngle?"endAngle":"startAngle":a?i.height>=0?"bottom":"top":i.width>=0?"right":"left",f=uZ(r);uU(t,f,{labelFetcher:o,labelDataIndex:n,defaultText:vn(o.getData(),n),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:p});var g=t.getTextContent();if(s&&g){var m=r.get(["label","position"]);t.textConfig.inside="middle"===m||null,function(t,e,n,r){if(eC(r))return t.setTextConfig({rotation:r});if(ew(e))return t.setTextConfig({rotation:0});var i,o=t.shape,a=o.clockwise?o.startAngle:o.endAngle,s=o.clockwise?o.endAngle:o.startAngle,l=n(e);switch(l){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":i=(a+s)/2;break;case"startAngle":case"insideStartAngle":i=a;break;case"endAngle":case"insideEndAngle":i=s;break;default:t.setTextConfig({rotation:0});return}var u=1.5*Math.PI-i;"middle"===l&&u>Math.PI/2&&u<1.5*Math.PI&&(u-=Math.PI),t.setTextConfig({rotation:u})}(t,"outside"===m?p:m,vJ(a),r.get(["label","rotate"]))}!function(t,e,n,r){if(t){var i=u0(t);i.prevValue=i.value,i.value=n;var o=e.normal;i.valueAnimation=o.get("valueAnimation"),i.valueAnimation&&(i.precision=o.get("precision"),i.defaultInterpolatedText=r,i.statesModels=e)}}(g,f,o.getRawValue(n),function(t){return vr(e,t)});var y=r.getModel(["emphasis"]);s9(t,y.get("focus"),y.get("blurScope"),y.get("disabled")),ln(t,r),null!=i.startAngle&&null!=i.endAngle&&i.startAngle===i.endAngle&&(t.style.fill="none",t.style.stroke="none",eg(t.states,function(t){t.style&&(t.style.fill=t.style.stroke="none")}))}var v1=function(){},v2=function(t){function e(e){var n=t.call(this,e)||this;return n.type="largeBar",n}return tK(e,t),e.prototype.getDefaultShape=function(){return new v1},e.prototype.buildPath=function(t,e){for(var n=e.points,r=this.baseDimIdx,i=1-this.baseDimIdx,o=[],a=[],s=this.barWidth,l=0;l<n.length;l+=3)a[r]=s,a[i]=n[l+2],o[r]=n[l+r],o[i]=n[l+i],t.rect(o[0],o[1],a[0],a[1])},e}(a8);function v5(t,e,n,r){var i=t.getData(),o=+!!i.getLayout("valueAxisHorizontal"),a=i.getLayout("largeDataIndices"),s=i.getLayout("size"),l=t.getModel("backgroundStyle"),u=i.getLayout("largeBackgroundPoints");if(u){var h=new v2({shape:{points:u},incremental:!!r,silent:!0,z2:0});h.baseDimIdx=o,h.largeDataIndices=a,h.barWidth=s,h.useStyle(l.getItemStyle()),e.add(h),n&&n.push(h)}var c=new v2({shape:{points:i.getLayout("largePoints")},incremental:!!r,ignoreCoarsePointer:!0,z2:1});c.baseDimIdx=o,c.largeDataIndices=a,c.barWidth=s,e.add(c),c.useStyle(i.getVisual("style")),c.style.stroke=null,sC(c).seriesIndex=t.seriesIndex,t.get("silent")||(c.on("mousedown",v3),c.on("mousemove",v3)),n&&n.push(c)}var v3=px(function(t){var e=function(t,e,n){for(var r=t.baseDimIdx,i=1-r,o=t.shape.points,a=t.largeDataIndices,s=[],l=[],u=t.barWidth,h=0,c=o.length/3;h<c;h++){var d=3*h;if(l[r]=u,l[i]=o[d+2],s[r]=o[d+r],s[i]=o[d+i],l[i]<0&&(s[i]+=l[i],l[i]=-l[i]),e>=s[0]&&e<=s[0]+l[0]&&n>=s[1]&&n<=s[1]+l[1])return a[h]}return -1}(this,t.offsetX,t.offsetY);sC(this).dataIndex=e>=0?e:null},30,!1);function v4(t,e,n){if("cartesian2d"===n.type){var r=n.getArea();return{x:t?e.x:r.x,y:t?r.y:e.y,width:t?e.width:r.width,height:t?r.height:e.height}}var r=n.getArea();return{cx:r.cx,cy:r.cy,r0:t?r.r0:e.r0,r:t?r.r:e.r,startAngle:t?e.startAngle:0,endAngle:t?e.endAngle:2*Math.PI}}var v6=2*Math.PI,v8=Math.PI/180;function v7(t,e,n){e.eachSeriesByType(t,function(t){var e,r,i,o,a,s,l,u=t.getData(),h=u.mapDimension("value"),c=(r=(e=function(t,e){var n,r,i=hK(t,e,{enableLayoutOnlyByCenter:!0}),o=t.getBoxLayoutParams();if(i.type===hQ)r=i.refPoint,n=hY(o,{width:e.getWidth(),height:e.getHeight()});else{var a=t.get("center"),s=ew(a)?a:[a,a];n=hY(o,i.refContainer),r=2===i.boxCoordFrom?i.refPoint:[ol(s[0],n.width)+n.x,ol(s[1],n.height)+n.y]}return{viewRect:n,center:r}}(t,n)).viewRect,i=e.center,ew(o=t.get("radius"))||(o=[0,o]),a=Math.min(ol(r.width,n.getWidth()),ol(r.height,n.getHeight())),s=ol(o[0],a/2),l=ol(o[1],a/2),{cx:i[0],cy:i[1],r0:s,r:l,viewRect:r}),d=c.cx,p=c.cy,f=c.r,g=c.r0,m=c.viewRect,y=-t.get("startAngle")*v8,v=t.get("endAngle"),_=t.get("padAngle")*v8;v="auto"===v?y-v6:-v*v8;var x=t.get("minAngle")*v8+_,b=0;u.each(h,function(t){!isNaN(t)&&b++});var w=u.getSum(h),S=Math.PI/(w||b)*2,k=t.get("clockwise"),M=t.get("roseType"),C=t.get("stillShowZeroSum"),T=u.getDataExtent(h);T[0]=0;var I=k?1:-1,D=[y,v],A=I*_/2;aU(D,!k),y=D[0],v=D[1];var L=v9(t);L.startAngle=y,L.endAngle=v,L.clockwise=k,L.cx=d,L.cy=p,L.r=f,L.r0=g;var $=Math.abs(v-y),P=$,O=0,E=y;if(u.setLayout({viewRect:m,r:f}),u.each(h,function(t,e){if(isNaN(t))return void u.setItemLayout(e,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:k,cx:d,cy:p,r0:g,r:M?NaN:f});(n="area"!==M?0===w&&C?S:t*S:$/b)<x?(n=x,P-=x):O+=t;var n,r=E+I*n,i=0,o=0;_>n?o=i=E+I*n/2:(i=E+A,o=r-A),u.setItemLayout(e,{angle:n,startAngle:i,endAngle:o,clockwise:k,cx:d,cy:p,r0:g,r:M?os(t,T,[g,f]):f}),E=r}),P<v6&&b)if(P<=.001){var N=$/b;u.each(h,function(t,e){if(!isNaN(t)){var n=u.getItemLayout(e);n.angle=N;var r=0,i=0;N<_?i=r=y+I*(e+.5)*N:(r=y+I*e*N+A,i=y+I*(e+1)*N-A),n.startAngle=r,n.endAngle=i}})}else S=P/O,E=y,u.each(h,function(t,e){if(!isNaN(t)){var n=u.getItemLayout(e),r=n.angle===x?x:t*S,i=0,o=0;r<_?o=i=E+I*r/2:(i=E+A,o=E+I*r-A),n.startAngle=i,n.endAngle=o,E+=I*r}})})}var v9=oN(),_t=Math.PI/180;function _e(t,e,n,r,i,o,a,s,l,u){if(!(t.length<2)){for(var h=t.length,c=0;c<h;c++)if("outer"===t[c].position&&"labelLine"===t[c].labelAlignTo){var d=t[c].label.x-u;t[c].linePoints[1][0]+=d,t[c].label.x=u}(function(t,e,n){var r=t.length,i=uv[1],o=u_[1];if(r<2)return!1;t.sort(function(t,e){return t.rect[i]-e.rect[i]});for(var a,s=0,l=!1,u=0;u<r;u++){var h=t[u],c=h.rect;(a=c[i]-s)<0&&(c[i]-=a,h.label[i]-=a,l=!0),s=c[i]+c[o]}var d,p,f=t[0],g=t[r-1];function m(){d=f.rect[i]-e,p=n-g.rect[i]-g.rect[o]}function y(t,e,n){if(t<0){var i=Math.min(e,-t);if(i>0){v(i*n,0,r);var o=i+t;o<0&&_(-o*n,1)}else _(-t*n,1)}}function v(e,n,r){0!==e&&(l=!0);for(var o=n;o<r;o++){var a=t[o],s=a.rect;s[i]+=e,a.label[i]+=e}}function _(e,n){for(var a=[],s=0,l=1;l<r;l++){var u=t[l-1].rect,h=Math.max(t[l].rect[i]-u[i]-u[o],0);a.push(h),s+=h}if(s){var c=Math.min(Math.abs(e)/s,n);if(e>0)for(var l=0;l<r-1;l++){var d=a[l]*c;v(d,0,l+1)}else for(var l=r-1;l>0;l--){var d=a[l-1]*c;v(-d,l,r)}}}function x(t){var e=t<0?-1:1;t=Math.abs(t);for(var n=Math.ceil(t/(r-1)),i=0;i<r-1;i++)if(e>0?v(n,0,i+1):v(-n,r-i-1,r),(t-=n)<=0)return}return m(),d<0&&_(-d,.8),p<0&&_(p,.8),m(),y(d,p,1),y(p,d,-1),m(),d<0&&x(-d),p<0&&x(p),l})(t,l,l+a)&&function(t){for(var o={list:[],maxY:0},a={list:[],maxY:0},s=0;s<t.length;s++)if("none"===t[s].labelAlignTo){var l=t[s],u=l.label.y>n?a:o,h=Math.abs(l.label.y-n);if(h>=u.maxY){var c=l.label.x-e-l.len2*i,d=r+l.len;u.rB=Math.abs(c)<d?Math.sqrt(h*h/(1-c*c/d/d)):d,u.maxY=h}u.list.push(l)}p(o),p(a)}(t)}function p(t){for(var o=t.rB,a=o*o,s=0;s<t.list.length;s++){var l=t.list[s],u=Math.abs(l.label.y-n),h=r+l.len,c=e+(Math.sqrt(Math.abs(h*h*(1-u*u/a)))+l.len2)*i,d=c-l.label.x,p=l.targetTextWidth-d*i;_n(l,p,!0),l.label.x=c}}}function _n(t,e,n){if(null==t.labelStyleWidth){var r=t.label,i=r.style,o=t.rect,a=i.backgroundColor,s=i.padding,l=s?s[1]+s[3]:0,u=i.overflow,h=o.width+(a?0:l);if(e<h||n){if(u&&u.match("break")){r.setStyle("backgroundColor",null),r.setStyle("width",e-l);var c=r.getBoundingRect();r.setStyle("width",Math.ceil(c.width)),r.setStyle("backgroundColor",a)}else{var d=e-l,p=e<h?d:n?d>t.unconstrainedWidth?null:d:null;r.setStyle("width",p)}_r(o,r)}}}function _r(t,e){_o.rect=t,yr(_o,e,_i)}var _i={minMarginForce:[null,0,null,0],marginDefault:[1,0,1,0]},_o={};function _a(t){return"center"===t.position}var _s=function(t){function e(e,n,r){var i=t.call(this)||this;i.z2=2;var o=new sp;return i.setTextContent(o),i.updateData(e,n,r,!0),i}return tK(e,t),e.prototype.updateData=function(t,e,n,r){var i=t.hostModel,o=t.getItemModel(e),a=o.getModel("emphasis"),s=t.getItemLayout(e),l=eh(vV(o.getModel("itemStyle"),s,!0),s);if(isNaN(l.startAngle))return void this.setShape(l);if(r){this.setShape(l);var u=i.getShallow("animationType");i.ecModel.ssr?(uc(this,{scaleX:0,scaleY:0},i,{dataIndex:e,isFrom:!0}),this.originX=l.cx,this.originY=l.cy):"scale"===u?(this.shape.r=s.r0,uc(this,{shape:{r:s.r}},i,e)):null!=n?(this.setShape({startAngle:n,endAngle:n}),uc(this,{shape:{startAngle:s.startAngle,endAngle:s.endAngle}},i,e)):(this.shape.endAngle=s.startAngle,uh(this,{shape:{endAngle:s.endAngle}},i,e))}else um(this),uh(this,{shape:l},i,e);this.useStyle(t.getItemVisual(e,"style")),ln(this,o);var h=(s.startAngle+s.endAngle)/2,c=i.get("selectedOffset"),d=Math.cos(h)*c,p=Math.sin(h)*c,f=o.getShallow("cursor");f&&this.attr("cursor",f),this._updateLabel(i,t,e),this.ensureState("emphasis").shape=eh({r:s.r+(a.get("scale")&&a.get("scaleSize")||0)},vV(a.getModel("itemStyle"),s)),eh(this.ensureState("select"),{x:d,y:p,shape:vV(o.getModel(["select","itemStyle"]),s)}),eh(this.ensureState("blur"),{shape:vV(o.getModel(["blur","itemStyle"]),s)});var g=this.getTextGuideLine(),m=this.getTextContent();g&&eh(g.ensureState("select"),{x:d,y:p}),eh(m.ensureState("select"),{x:d,y:p}),s9(this,a.get("focus"),a.get("blurScope"),a.get("disabled"))},e.prototype._updateLabel=function(t,e,n){var r=e.getItemModel(n),i=r.getModel("labelLine"),o=e.getItemVisual(n,"style"),a=o&&o.fill,s=o&&o.opacity;uU(this,uZ(r),{labelFetcher:e.hostModel,labelDataIndex:n,inheritColor:a,defaultOpacity:s,defaultText:t.getFormattedLabel(n,"normal")||e.getName(n)});var l=this.getTextContent();this.setTextConfig({position:null,rotation:null}),l.attr({z2:10});var u=r.get(["label","position"]);if("outside"!==u&&"outer"!==u)this.removeTextGuideLine();else{var h,c=this.getTextGuideLine();c||(c=new lZ,this.setTextGuideLine(c)),function(t,e,n){var r=t.getTextGuideLine(),i=t.getTextContent();if(!i){r&&t.removeTextGuideLine();return}for(var o=e.normal,a=o.get("show"),s=i.ignore,l=0;l<sP.length;l++){var u=sP[l],h=e[u],c="normal"===u;if(h){var d,p=h.get("show");if((c?s:(d=i.states[u]&&i.states[u].ignore,d??s))||!(p??a)){var f=c?r:r&&r.states[u];f&&(f.ignore=!0),r&&m8(r,!0,u,h);continue}r||(r=new lZ,t.setTextGuideLine(r),c||!s&&a||m8(r,!0,"normal",e.normal),t.stateProxy&&(r.stateProxy=t.stateProxy)),m8(r,!1,u,h)}}if(r){ec(r.style,n),r.style.fill=null;var g=o.get("showAbove");(t.textGuideLineConfig=t.textGuideLineConfig||{}).showAbove=g||!1,r.buildPath=m7}}(this,function(t,e){e=e||"labelLine";for(var n={normal:t.getModel(e)},r=0;r<s$.length;r++){var i=s$[r];n[i]=t.getModel([i,e])}return n}(r),{stroke:a,opacity:(h=i.get(["lineStyle","opacity"]),h??s??1)})}},e}(lF),_l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.ignoreLabelLineUpdate=!0,e}return tK(e,t),e.prototype.render=function(t,e,n,r){var i,o=t.getData(),a=this._data,s=this.group;if(!a&&o.count()>0){for(var l=o.getItemLayout(0),u=1;isNaN(l&&l.startAngle)&&u<o.count();++u)l=o.getItemLayout(u);l&&(i=l.startAngle)}if(this._emptyCircleSector&&s.remove(this._emptyCircleSector),0===o.count()&&t.get("showEmptyCircle")){var h=new lF({shape:el(v9(t))});h.useStyle(t.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=h,s.add(h)}o.diff(a).add(function(t){var e=new _s(o,t,i);o.setItemGraphicEl(t,e),s.add(e)}).update(function(t,e){var n=a.getItemGraphicEl(e);n.updateData(o,t,i),n.off("click"),s.add(n),o.setItemGraphicEl(t,n)}).remove(function(e){ug(a.getItemGraphicEl(e),t,e)}).execute(),function(t){var e,n,r=t.getData(),i=[],o=!1,a=(t.get("minShowLabelAngle")||0)*_t,s=r.getLayout("viewRect"),l=r.getLayout("r"),u=s.width,h=s.x,c=s.y,d=s.height;function p(t){t.ignore=!0}r.each(function(t){var s=r.getItemGraphicEl(t),c=s.shape,f=s.getTextContent(),g=s.getTextGuideLine(),m=r.getItemModel(t),y=m.getModel("label"),v=y.get("position")||m.get(["emphasis","label","position"]),_=y.get("distanceToLabelLine"),x=y.get("alignTo"),b=ol(y.get("edgeDistance"),u),w=y.get("bleedMargin");null==w&&(w=Math.min(u,d)>200?10:2);var S=m.getModel("labelLine"),k=S.get("length");k=ol(k,u);var M=S.get("length2");if(M=ol(M,u),Math.abs(c.endAngle-c.startAngle)<a){eg(f.states,p),f.ignore=!0,g&&(eg(g.states,p),g.ignore=!0);return}if(function(t){if(!t.ignore)return!0;for(var e in t.states)if(!1===t.states[e].ignore)return!0;return!1}(f)){var C,T,I,D,A=(c.startAngle+c.endAngle)/2,L=Math.cos(A),$=Math.sin(A);e=c.cx,n=c.cy;var P="inside"===v||"inner"===v;if("center"===v)C=c.cx,T=c.cy,D="center";else{var O=(P?(c.r+c.r0)/2*L:c.r*L)+e,E=(P?(c.r+c.r0)/2*$:c.r*$)+n;if(C=O+3*L,T=E+3*$,!P){var N=O+L*(k+l-c.r),R=E+$*(k+l-c.r),z=N+(L<0?-1:1)*M;C="edge"===x?L<0?h+b:h+u-b:z+(L<0?-_:_),T=R,I=[[O,E],[N,R],[z,R]]}D=P?"center":"edge"===x?L>0?"right":"left":L>0?"left":"right"}var B=Math.PI,F=0,V=y.get("rotate");if(eC(V))F=B/180*V;else if("center"===v)F=0;else if("radial"===V||!0===V)F=L<0?-A+B:-A;else if("tangential"===V&&"outside"!==v&&"outer"!==v){var W=Math.atan2(L,$);W<0&&(W=2*B+W),$>0&&(W=B+W),F=W-B}if(o=!!F,f.x=C,f.y=T,f.rotation=F,f.setStyle({verticalAlign:"middle"}),P){f.setStyle({align:D});var H=f.states.select;H&&(H.x+=f.x,H.y+=f.y)}else{var G=new nN(0,0,0,0);_r(G,f),i.push({label:f,labelLine:g,position:v,len:k,len2:M,minTurnAngle:S.get("minTurnAngle"),maxSurfaceAngle:S.get("maxSurfaceAngle"),surfaceNormal:new nw(L,$),linePoints:I,textAlign:D,labelDistance:_,labelAlignTo:x,edgeDistance:b,bleedMargin:w,rect:G,unconstrainedWidth:G.width,labelStyleWidth:f.style.width})}s.setTextConfig({inside:P})}}),!o&&t.get("avoidLabelOverlap")&&function(t,e,n,r,i,o,a,s){for(var l=[],u=[],h=Number.MAX_VALUE,c=-Number.MAX_VALUE,d=0;d<t.length;d++){var p=t[d].label;_a(t[d])||(p.x<e?(h=Math.min(h,p.x),l.push(t[d])):(c=Math.max(c,p.x),u.push(t[d])))}for(var d=0;d<t.length;d++){var f=t[d];if(!_a(f)&&f.linePoints){if(null!=f.labelStyleWidth)continue;var p=f.label,g=f.linePoints,m=void 0;m="edge"===f.labelAlignTo?p.x<e?g[2][0]-f.labelDistance-a-f.edgeDistance:a+i-f.edgeDistance-g[2][0]-f.labelDistance:"labelLine"===f.labelAlignTo?p.x<e?h-a-f.bleedMargin:a+i-c-f.bleedMargin:p.x<e?p.x-a-f.bleedMargin:a+i-p.x-f.bleedMargin,f.targetTextWidth=m,_n(f,m,!1)}}_e(u,e,n,r,1,i,o,a,s,c),_e(l,e,n,r,-1,i,o,a,s,h);for(var d=0;d<t.length;d++){var f=t[d];if(!_a(f)&&f.linePoints){var p=f.label,g=f.linePoints,y="edge"===f.labelAlignTo,v=p.style.padding,_=v?v[1]+v[3]:0,x=p.style.backgroundColor?0:_,b=f.rect.width+x,w=g[1][0]-g[2][0];y?p.x<e?g[2][0]=a+f.edgeDistance+b+f.labelDistance:g[2][0]=a+i-f.edgeDistance-b-f.labelDistance:(p.x<e?g[2][0]=p.x+f.labelDistance:g[2][0]=p.x-f.labelDistance,g[1][0]=g[2][0]+w),g[1][1]=g[2][1]=p.y}}}(i,e,n,l,u,d,h,c);for(var f=0;f<i.length;f++){var g=i[f],m=g.label,y=g.labelLine,v=isNaN(m.x)||isNaN(m.y);if(m){m.setStyle({align:g.textAlign}),v&&(eg(m.states,p),m.ignore=!0);var _=m.states.select;_&&(_.x+=m.x,_.y+=m.y)}if(y){var x=g.linePoints;v||!x?(eg(y.states,p),y.ignore=!0):(function(t,e){if(e<=180&&e>0){e=e/180*Math.PI,m0.fromArray(t[0]),m1.fromArray(t[1]),m2.fromArray(t[2]),nw.sub(m5,m0,m1),nw.sub(m3,m2,m1);var n=m5.len(),r=m3.len();if(!(n<.001||r<.001)&&(m5.scale(1/n),m3.scale(1/r),Math.cos(e)<m5.dot(m3))){var i=mJ(m1.x,m1.y,m2.x,m2.y,m0.x,m0.y,m4);m6.fromArray(m4),m6.scaleAndAdd(m3,i/Math.tan(Math.PI-e));var o=m2.x!==m1.x?(m6.x-m1.x)/(m2.x-m1.x):(m6.y-m1.y)/(m2.y-m1.y);if(isNaN(o))return;o<0?nw.copy(m6,m1):o>1&&nw.copy(m6,m2),m6.toArray(t[1])}}}(x,g.minTurnAngle),function(t,e,n){if(n<=180&&n>0){n=n/180*Math.PI,m0.fromArray(t[0]),m1.fromArray(t[1]),m2.fromArray(t[2]),nw.sub(m5,m1,m0),nw.sub(m3,m2,m1);var r=m5.len(),i=m3.len();if(!(r<.001||i<.001)&&(m5.scale(1/r),m3.scale(1/i),m5.dot(e)<Math.cos(n))){var o=mJ(m1.x,m1.y,m2.x,m2.y,m0.x,m0.y,m4);m6.fromArray(m4);var a=Math.PI/2,s=a+Math.acos(m3.dot(e))-n;if(s>=a)nw.copy(m6,m2);else{m6.scaleAndAdd(m3,o/Math.tan(Math.PI/2-s));var l=m2.x!==m1.x?(m6.x-m1.x)/(m2.x-m1.x):(m6.y-m1.y)/(m2.y-m1.y);if(isNaN(l))return;l<0?nw.copy(m6,m1):l>1&&nw.copy(m6,m2)}m6.toArray(t[1])}}}(x,g.surfaceNormal,g.maxSurfaceAngle),y.setShape({points:x}),m.__hostTarget.textGuideLineConfig={anchor:new nw(x[0][0],x[0][1])})}}}(t),"expansion"!==t.get("animationTypeUpdate")&&(this._data=o)},e.prototype.dispose=function(){},e.prototype.containPoint=function(t,e){var n=e.getData().getItemLayout(0);if(n){var r=t[0]-n.cx,i=t[1]-n.cy,o=Math.sqrt(r*r+i*i);return o<=n.r&&o>=n.r0}},e.type="pie",e}(pc),_u=function(){function t(t,e){this._getDataWithEncodedVisual=t,this._getRawData=e}return t.prototype.getAllNames=function(){var t=this._getRawData();return t.mapArray(t.getName)},t.prototype.containName=function(t){return this._getRawData().indexOfName(t)>=0},t.prototype.indexOfName=function(t){return this._getDataWithEncodedVisual().indexOfName(t)},t.prototype.getItemVisual=function(t,e){return this._getDataWithEncodedVisual().getItemVisual(t,e)},t}(),_h=oN(),_c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return tK(e,t),e.prototype.init=function(e){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new _u(ex(this.getData,this),ex(this.getRawData,this)),this._defaultLabelLine(e)},e.prototype.mergeOption=function(){t.prototype.mergeOption.apply(this,arguments)},e.prototype.getInitialData=function(){var t,e,n;return t=ew(t={coordDimensions:["value"],encodeDefaulter:eb(cg,this)})&&{coordDimensions:t}||eh({encodeDefine:this.getEncode()},t),(n=new gW(gH(e=this.getSource(),t).dimensions,this)).initData(e,void 0),n},e.prototype.getDataParams=function(e){var n=this.getData(),r=_h(n),i=r.seats;if(!i){var o=[];n.each(n.mapDimension("value"),function(t){o.push(t)}),i=r.seats=function(t,e){var n=ey(t,function(t,e){return t+(isNaN(e)?0:e)},0);if(0===n)return[];for(var r=Math.pow(10,e),i=em(t,function(t){return(isNaN(t)?0:t)/n*r*100}),o=100*r,a=em(i,function(t){return Math.floor(t)}),s=ey(a,function(t,e){return t+e},0),l=em(i,function(t,e){return t-a[e]});s<o;){for(var u=-1/0,h=null,c=0,d=l.length;c<d;++c)l[c]>u&&(u=l[c],h=c);++a[h],l[h]=0,++s}return em(a,function(t){return t/r})}(o,n.hostModel.get("percentPrecision"))}var a=t.prototype.getDataParams.call(this,e);return a.percent=i[e]||0,a.$vars.push("percent"),a},e.prototype._defaultLabelLine=function(t){oT(t,"labelLine",["show"]);var e=t.labelLine,n=t.emphasis.labelLine;e.show=e.show&&t.label.show,n.show=n.show&&t.emphasis.label.show},e.type="series.pie",e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"50%"],clockwise:!0,startAngle:90,endAngle:"auto",padAngle:0,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,coordinateSystemUsage:"box",left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:30,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},e}(d9);i={fullType:_c.type,getCoord2:function(t){return t.getShallow("center")}},hj.set(i.fullType,{getCoord2:void 0}).getCoord2=i.getCoord2;var _d=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return tK(e,t),e.prototype.getInitialData=function(t,e){return gX(null,this,{useEncodeDefaulter:!0})},e.prototype.getProgressive=function(){return this.option.progressive??(this.option.large?5e3:this.get("progressive"))},e.prototype.getProgressiveThreshold=function(){return this.option.progressiveThreshold??(this.option.large?1e4:this.get("progressiveThreshold"))},e.prototype.brushSelector=function(t,e,n){return n.point(e.getItemLayout(t))},e.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},e.type="series.scatter",e.dependencies=["grid","polar","geo","singleAxis","calendar","matrix"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:h6.color.primary}},universalTransition:{divideShape:"clone"}},e}(d9),_p=function(){},_f=function(t){function e(e){var n=t.call(this,e)||this;return n._off=0,n.hoverDataIdx=-1,n}return tK(e,t),e.prototype.getDefaultShape=function(){return new _p},e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.buildPath=function(t,e){var n,r=e.points,i=e.size,o=this.symbolProxy,a=o.shape,s=t.getContext?t.getContext():t,l=s&&i[0]<4,u=this.softClipShape;if(l){this._ctx=s;return}for(this._ctx=null,n=this._off;n<r.length;){var h=r[n++],c=r[n++];isNaN(h)||isNaN(c)||u&&!u.contain(h,c)||(a.x=h-i[0]/2,a.y=c-i[1]/2,a.width=i[0],a.height=i[1],o.buildPath(t,a,!0))}this.incremental&&(this._off=n,this.notClear=!0)},e.prototype.afterBrush=function(){var t,e=this.shape,n=e.points,r=e.size,i=this._ctx,o=this.softClipShape;if(i){for(t=this._off;t<n.length;){var a=n[t++],s=n[t++];isNaN(a)||isNaN(s)||o&&!o.contain(a,s)||i.fillRect(a-r[0]/2,s-r[1]/2,r[0],r[1])}this.incremental&&(this._off=t,this.notClear=!0)}},e.prototype.findDataIndex=function(t,e){for(var n=this.shape,r=n.points,i=n.size,o=Math.max(i[0],4),a=Math.max(i[1],4),s=r.length/2-1;s>=0;s--){var l=2*s,u=r[l]-o/2,h=r[l+1]-a/2;if(t>=u&&e>=h&&t<=u+o&&e<=h+a)return s}return -1},e.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e),r=this.getBoundingRect();return(t=n[0],e=n[1],r.contain(t,e))?(this.hoverDataIdx=this.findDataIndex(t,e))>=0:(this.hoverDataIdx=-1,!1)},e.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var e=this.shape,n=e.points,r=e.size,i=r[0],o=r[1],a=1/0,s=1/0,l=-1/0,u=-1/0,h=0;h<n.length;){var c=n[h++],d=n[h++];a=Math.min(c,a),l=Math.max(c,l),s=Math.min(d,s),u=Math.max(d,u)}t=this._rect=new nN(a-i/2,s-o/2,l-a+i,u-s+o)}return t},e}(a8),_g=function(){function t(){this.group=new i9}return t.prototype.updateData=function(t,e){this._clear();var n=this._create();n.setShape({points:t.getLayout("points")}),this._setCommon(n,t,e)},t.prototype.updateLayout=function(t){var e=t.getLayout("points");this.group.eachChild(function(t){if(null!=t.startIndex){var n=(t.endIndex-t.startIndex)*2,r=4*t.startIndex*2;e=new Float32Array(e.buffer,r,n)}t.setShape("points",e),t.reset()})},t.prototype.incrementalPrepareUpdate=function(t){this._clear()},t.prototype.incrementalUpdate=function(t,e,n){var r=this._newAdded[0],i=e.getLayout("points"),o=r&&r.shape.points;if(o&&o.length<2e4){var a=o.length,s=new Float32Array(a+i.length);s.set(o),s.set(i,a),r.endIndex=t.end,r.setShape({points:s})}else{this._newAdded=[];var l=this._create();l.startIndex=t.start,l.endIndex=t.end,l.incremental=!0,l.setShape({points:i}),this._setCommon(l,e,n)}},t.prototype.eachRendered=function(t){this._newAdded[0]&&t(this._newAdded[0])},t.prototype._create=function(){var t=new _f({cursor:"default"});return t.ignoreCoarsePointer=!0,this.group.add(t),this._newAdded.push(t),t},t.prototype._setCommon=function(t,e,n){var r=e.hostModel;n=n||{};var i=e.getVisual("symbolSize");t.setShape("size",i instanceof Array?i:[i,i]),t.softClipShape=n.clipShape||null,t.symbolProxy=fe(e.getVisual("symbol"),0,0,0,0),t.setColor=t.symbolProxy.setColor;var o=t.shape.size[0]<4;t.useStyle(r.getModel("itemStyle").getItemStyle(o?["color","shadowBlur","shadowColor"]:["color"]));var a=e.getVisual("style"),s=a&&a.fill;s&&t.setColor(s);var l=sC(t);l.seriesIndex=r.seriesIndex,t.on("mousemove",function(e){l.dataIndex=null;var n=t.hoverDataIdx;n>=0&&(l.dataIndex=n+(t.startIndex||0))})},t.prototype.remove=function(){this._clear()},t.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},t}(),_m=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return tK(e,t),e.prototype.render=function(t,e,n){var r=t.getData();this._updateSymbolDraw(r,t).updateData(r,{clipShape:this._getClipShape(t)}),this._finished=!0},e.prototype.incrementalPrepareRender=function(t,e,n){var r=t.getData();this._updateSymbolDraw(r,t).incrementalPrepareUpdate(r),this._finished=!1},e.prototype.incrementalRender=function(t,e,n){this._symbolDraw.incrementalUpdate(t,e.getData(),{clipShape:this._getClipShape(e)}),this._finished=t.end===e.getData().count()},e.prototype.updateTransform=function(t,e,n){var r=t.getData();if(this.group.dirty(),!this._finished||r.count()>1e4)return{update:!0};var i=vL("").reset(t,e,n);i.progress&&i.progress({start:0,end:r.count(),count:r.count()},r),this._symbolDraw.updateLayout(r)},e.prototype.eachRendered=function(t){this._symbolDraw&&this._symbolDraw.eachRendered(t)},e.prototype._getClipShape=function(t){if(t.get("clip",!0)){var e=t.coordinateSystem;return e&&e.getArea&&e.getArea(.1)}},e.prototype._updateSymbolDraw=function(t,e){var n=this._symbolDraw,r=e.pipelineContext.large;return n&&r===this._isLargeDraw||(n&&n.remove(),n=this._symbolDraw=r?new _g:new vu,this._isLargeDraw=r,this.group.removeAll()),this.group.add(n.group),n},e.prototype.remove=function(t,e){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},e.prototype.dispose=function(){},e.type="scatter",e}(pc),_y={left:0,right:0,top:0,bottom:0},_v=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return tK(e,t),e.prototype.mergeDefaultAndTheme=function(e,n){var r=h1(e.outerBounds);t.prototype.mergeDefaultAndTheme.apply(this,arguments),r&&e.outerBounds&&h0(e.outerBounds,r)},e.prototype.mergeOption=function(e,n){t.prototype.mergeOption.apply(this,arguments),this.option.outerBounds&&e.outerBounds&&h0(this.option.outerBounds,e.outerBounds)},e.type="grid",e.dependencies=["xAxis","yAxis"],e.layoutMode="box",e.defaultOption={show:!1,z:0,left:"15%",top:65,right:"10%",bottom:80,containLabel:!1,outerBoundsMode:"auto",outerBounds:_y,outerBoundsContain:"all",outerBoundsClampWidth:"25%",outerBoundsClampHeight:"25%",backgroundColor:h6.color.transparent,borderWidth:1,borderColor:h6.color.neutral30},e}(h5),__=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return tK(e,t),e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",oF).models[0]},e.type="cartesian2dAxis",e}(h5);ep(__,m$);var _x={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:h6.color.axisLine,width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15],breakLine:!0},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12,color:h6.color.axisLabel,textMargin:[0,3]},splitLine:{show:!0,showMinLine:!0,showMaxLine:!0,lineStyle:{color:h6.color.axisSplitLine,width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:[h6.color.backgroundTint,h6.color.backgroundTransparent]}},breakArea:{show:!0,itemStyle:{color:h6.color.neutral00,borderColor:h6.color.border,borderWidth:1,borderType:[3,3],opacity:.6},zigzagAmplitude:4,zigzagMinSpan:4,zigzagMaxSpan:20,zigzagZ:100,expandOnClick:!0},breakLabelLayout:{moveOverlap:"auto"}},_b=eu({boundaryGap:!0,deduplication:null,jitter:0,jitterOverlap:!0,jitterMargin:2,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto",show:"auto"},axisLabel:{interval:"auto"}},_x),_w=eu({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:h6.color.axisMinorSplitLine,width:1}}},_x),_S=eu({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},_w),_k=ec({logBase:10},_w);let _M={category:_b,value:_w,time:_S,log:_k};var _C={value:1,category:1,time:1,log:1};function _T(t,e,n,r){eg(_C,function(i,o){var a=eu(eu({},_M[o],!0),r,!0),s=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e+"Axis."+o,n}return tK(n,t),n.prototype.mergeDefaultAndTheme=function(t,e){var n=hJ(this),r=n?h1(t):{};eu(t,e.getTheme().get(o+"Axis")),eu(t,this.getDefaultOption()),t.type=_I(t),n&&h0(t,r,n)},n.prototype.optionUpdated=function(){"category"===this.option.type&&(this.__ordinalMeta=g6.createByAxisModel(this))},n.prototype.getCategories=function(t){var e=this.option;if("category"===e.type)return t?e.data:this.__ordinalMeta.categories},n.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},n.prototype.updateAxisBreaks=function(t){return{breaks:[]}},n.type=e+"Axis."+o,n.defaultOption=a,n}(n);t.registerComponentModel(s)}),t.registerSubTypeDefaulter(e+"Axis",_I)}function _I(t){return t.type||(t.data?"category":"value")}var _D=function(){function t(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}return t.prototype.getAxis=function(t){return this._axes[t]},t.prototype.getAxes=function(){return em(this._dimList,function(t){return this._axes[t]},this)},t.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),ev(this.getAxes(),function(e){return e.scale.type===t})},t.prototype.addAxis=function(t){var e=t.dim;this._axes[e]=t,this._dimList.push(e)},t}(),_A=["x","y"];function _L(t){return("interval"===t.type||"time"===t.type)&&!t.hasBreaks()}var _$=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="cartesian2d",e.dimensions=_A,e}return tK(e,t),e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var t=this.getAxis("x").scale,e=this.getAxis("y").scale;if(!(!_L(t)||!_L(e))){var n=t.getExtent(),r=e.getExtent(),i=this.dataToPoint([n[0],r[0]]),o=this.dataToPoint([n[1],r[1]]),a=n[1]-n[0],s=r[1]-r[0];if(!(!a||!s)){var l=(o[0]-i[0])/a,u=(o[1]-i[1])/s,h=i[0]-n[0]*l,c=i[1]-r[0]*u,d=this._transform=[l,0,0,u,h,c];this._invTransform=nb([],d)}}},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},e.prototype.containPoint=function(t){var e=this.getAxis("x"),n=this.getAxis("y");return e.contain(e.toLocalCoord(t[0]))&&n.contain(n.toLocalCoord(t[1]))},e.prototype.containData=function(t){return this.getAxis("x").containData(t[0])&&this.getAxis("y").containData(t[1])},e.prototype.containZone=function(t,e){var n=this.dataToPoint(t),r=this.dataToPoint(e),i=this.getArea(),o=new nN(n[0],n[1],r[0]-n[0],r[1]-n[1]);return i.intersect(o)},e.prototype.dataToPoint=function(t,e,n){n=n||[];var r=t[0],i=t[1];if(this._transform&&null!=r&&isFinite(r)&&null!=i&&isFinite(i))return eK(n,t,this._transform);var o=this.getAxis("x"),a=this.getAxis("y");return n[0]=o.toGlobalCoord(o.dataToCoord(r,e)),n[1]=a.toGlobalCoord(a.dataToCoord(i,e)),n},e.prototype.clampData=function(t,e){var n=this.getAxis("x").scale,r=this.getAxis("y").scale,i=n.getExtent(),o=r.getExtent(),a=n.parse(t[0]),s=r.parse(t[1]);return(e=e||[])[0]=Math.min(Math.max(Math.min(i[0],i[1]),a),Math.max(i[0],i[1])),e[1]=Math.min(Math.max(Math.min(o[0],o[1]),s),Math.max(o[0],o[1])),e},e.prototype.pointToData=function(t,e,n){if(n=n||[],this._invTransform)return eK(n,t,this._invTransform);var r=this.getAxis("x"),i=this.getAxis("y");return n[0]=r.coordToData(r.toLocalCoord(t[0]),e),n[1]=i.coordToData(i.toLocalCoord(t[1]),e),n},e.prototype.getOtherAxis=function(t){return this.getAxis("x"===t.dim?"y":"x")},e.prototype.getArea=function(t){t=t||0;var e=this.getAxis("x").getGlobalExtent(),n=this.getAxis("y").getGlobalExtent(),r=Math.min(e[0],e[1])-t,i=Math.min(n[0],n[1])-t,o=Math.max(e[0],e[1])-r+t,a=Math.max(n[0],n[1])-i+t;return new nN(r,i,o,a)},e}(_D),_P=function(t){function e(e,n,r,i,o){var a=t.call(this,e,n,r)||this;return a.index=0,a.type=i||"value",a.position=o||"bottom",a}return tK(e,t),e.prototype.isHorizontal=function(){var t=this.position;return"top"===t||"bottom"===t},e.prototype.getGlobalExtent=function(t){var e=this.getExtent();return e[0]=this.toGlobalCoord(e[0]),e[1]=this.toGlobalCoord(e[1]),t&&e[0]>e[1]&&e.reverse(),e},e.prototype.pointToData=function(t,e){return this.coordToData(this.toLocalCoord(t[+("x"!==this.dim)]),e)},e.prototype.setCategorySortInfo=function(t){if("category"!==this.type)return!1;this.model.option.categorySortInfo=t,this.scale.setSortInfo(t)},e}(mQ),_O=Math.PI,_E=[[1,2,1,2],[5,3,5,3],[8,3,8,3]],_N=[[0,1,0,1],[0,3,0,3],[0,3,0,3]],_R=oN(),_z=oN(),_B=function(){function t(t){this.recordMap={},this.resolveAxisNameOverlap=t}return t.prototype.ensureRecord=function(t){var e=t.axis.dim,n=t.componentIndex,r=this.recordMap,i=r[e]||(r[e]=[]);return i[n]||(i[n]={ready:{}})},t}(),_F=ng(),_V=new nN(0,0,0,0),_W=function(t,e,n,r,i,o){if(mD(t.nameLocation)){var a,s,l=o.stOccupiedRect;l&&_H((a={},s=o.transGroup.transform,a.transform=uF(a.transform,s),a.localRect=uB(a.localRect,l),a.rect=uB(a.rect,l),s&&a.rect.applyTransform(s),a.axisAligned=uR(s),a.obb=void 0,(a.label=a.label||{}).ignore=!1,a),r,i)}else _G(o.labelInfoList,o.dirVec,r,i)};function _H(t,e,n){var r=new nw;ys(t,e,r,{direction:Math.atan2(n.y,n.x),bidirectional:!1,touchThreshold:.05})&&function(t,e){if(t){t.label.x+=e.x,t.label.y+=e.y,t.label.markRedraw();var n=t.transform;n&&(n[4]+=e.x,n[5]+=e.y);var r=t.rect;r&&(r.x+=e.x,r.y+=e.y);var i=t.obb;i&&i.fromBoundingRect(t.localRect,n)}}(e,r)}function _G(t,e,n,r){for(var i=nw.dot(r,e)>=0,o=0,a=t.length;o<a;o++){var s=t[i?o:a-1-o];s.label.ignore||_H(s,n,r)}}var _j=function(){function t(t,e,n,r){this.group=new i9,this._axisModel=t,this._api=e,this._local={},this._shared=r||new _B(_W),this._resetCfgDetermined(n)}return t.prototype.updateCfg=function(t){var e=this._cfg.raw;e.position=t.position,e.labelOffset=t.labelOffset,this._resetCfgDetermined(e)},t.prototype.__getRawCfg=function(){return this._cfg.raw},t.prototype._resetCfgDetermined=function(t){var e,n,r,i,o,a,s=this._axisModel,l=s.getDefaultOption?s.getDefaultOption():{},u=(e=t.axisName,n=s.get("name"),e??n),h=s.get("nameMoveOverlap");(null==h||"auto"===h)&&(r=t.defaultNameMoveOverlap,h=r??!0);var c={raw:t,position:t.position,rotation:t.rotation,nameDirection:t.nameDirection??1,tickDirection:t.tickDirection??1,labelDirection:t.labelDirection??1,labelOffset:t.labelOffset??0,silent:(i=t.silent,i??!0),axisName:u,nameLocation:(o=s.get("nameLocation"),a=l.nameLocation,o??a??"end"),shouldNameMoveOverlap:!!u&&h,optionHideOverlap:s.get(["axisLabel","hideOverlap"]),showMinorTicks:s.get(["minorTick","show"])};this._cfg=c;var d=new i9({x:c.position[0],y:c.position[1],rotation:c.rotation});d.updateTransform(),this._transformGroup=d;var p=this._shared.ensureRecord(s);p.transGroup=this._transformGroup,p.dirVec=new nw(Math.cos(-c.rotation),Math.sin(-c.rotation))},t.prototype.build=function(t,e){var n=this;return t||(t={axisLine:!0,axisTickLabelEstimate:!1,axisTickLabelDetermine:!0,axisName:!0}),eg(_U,function(r){t[r]&&_Z[r](n._cfg,n._local,n._shared,n._axisModel,n.group,n._transformGroup,n._api,e||{})}),this},t.innerTextLayout=function(t,e,n){var r,i,o=od(e-t);return op(o)?(i=n>0?"top":"bottom",r="center"):op(o-_O)?(i=n>0?"bottom":"top",r="center"):(i="middle",r=o>0&&o<_O?n>0?"right":"left":n>0?"left":"right"),{rotation:o,textAlign:r,textVerticalAlign:i}},t.makeAxisEventDataBase=function(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+"Index"]=t.componentIndex,e},t.isLabelSilent=function(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)},t}(),_U=["axisLine","axisTickLabelEstimate","axisTickLabelDetermine","axisName"],_Z={axisLine:function(t,e,n,r,i,o,a){var s=r.get(["axisLine","show"]);if("auto"===s&&(s=!0,null!=t.raw.axisLineAutoShow&&(s=!!t.raw.axisLineAutoShow)),s){var l=r.axis.getExtent(),u=o.transform,h=[l[0],0],c=[l[1],0],d=h[0]>c[0];u&&(eK(h,h,u),eK(c,c,u));var p=eh({lineCap:"round"},r.getModel(["axisLine","lineStyle"]).getLineStyle()),f={strokeContainThreshold:t.raw.strokeContainThreshold||5,silent:!0,z2:1,style:p};if(r.get(["axisLine","breakLine"])&&r.axis.scale.hasBreaks())null.buildAxisBreakLine(r,i,o,f);else{var g=new lq(eh({shape:{x1:h[0],y1:h[1],x2:c[0],y2:c[1]}},f));uC(g.shape,g.style.lineWidth),g.anid="line",i.add(g)}var m=r.get(["axisLine","symbol"]);if(null!=m){var y=r.get(["axisLine","symbolSize"]);ek(m)&&(m=[m,m]),(ek(y)||eC(y))&&(y=[y,y]);var v=fn(r.get(["axisLine","symbolOffset"])||0,y),_=y[0],x=y[1];eg([{rotate:t.rotation+Math.PI/2,offset:v[0],r:0},{rotate:t.rotation-Math.PI/2,offset:v[1],r:Math.sqrt((h[0]-c[0])*(h[0]-c[0])+(h[1]-c[1])*(h[1]-c[1]))}],function(e,n){if("none"!==m[n]&&null!=m[n]){var r=fe(m[n],-_/2,-x/2,_,x,p.stroke,!0),o=e.r+e.offset,a=d?c:h;r.attr({rotation:e.rotate,x:a[0]+o*Math.cos(t.rotation),y:a[1]-o*Math.sin(t.rotation),silent:!0,z2:11}),i.add(r)}})}}},axisTickLabelEstimate:function(t,e,n,r,i,o,a,s){_Q(e,i,s)&&_X(t,e,n,r,i,o,a,1)},axisTickLabelDetermine:function(t,e,n,r,i,o,a,s){_Q(e,i,s)&&_X(t,e,n,r,i,o,a,2);var l,u,h,c=function(t,e,n,r){var i=r.axis,o=r.getModel("axisTick"),a=o.get("show");if("auto"===a&&(a=!0,null!=t.raw.axisTickAutoShow&&(a=!!t.raw.axisTickAutoShow)),!a||i.scale.isBlank())return[];for(var s=o.getModel("lineStyle"),l=t.tickDirection*o.get("length"),u=i.getTicksCoords(),h=_q(u,n.transform,l,ec(s.getLineStyle(),{stroke:r.get(["axisLine","lineStyle","color"])}),"ticks"),c=0;c<h.length;c++)e.add(h[c]);return h}(t,i,o,r);l=t,u=e.labelLayoutList,h=c,l.showMinorTicks||eg(u,function(t){if(t&&t.label.ignore)for(var e=0;e<h.length;e++){var n=h[e],r=_z(n),i=_R(t.label);if(null!=r.tickValue&&!r.onBand&&r.tickValue===i.tickValue)return void _Y(n)}}),function(t,e,n,r,i){var o=r.axis,a=r.getModel("minorTick");if(!(!t.showMinorTicks||o.scale.isBlank())){var s=o.getMinorTicksCoords();if(s.length)for(var l=a.getModel("lineStyle"),u=i*a.get("length"),h=ec(l.getLineStyle(),ec(r.getModel("axisTick").getLineStyle(),{stroke:r.get(["axisLine","lineStyle","color"])})),c=0;c<s.length;c++)for(var d=_q(s[c],n.transform,u,h,"minorticks_"+c),p=0;p<d.length;p++)e.add(d[p])}}(t,i,o,r,t.tickDirection)},axisName:function(t,e,n,r,i,o,a,s){var l=n.ensureRecord(r);e.nameEl&&(i.remove(e.nameEl),e.nameEl=l.nameLayout=l.nameLocation=null);var u=t.axisName;if(u){var h,c,d,p,f,g,m,y,v,_,x,b=t.nameLocation,w=t.nameDirection,S=r.getModel("nameTextStyle"),k=r.get("nameGap")||0,M=r.axis.getExtent(),C=r.axis.inverse?-1:1,T=new nw(0,0),I=new nw(0,0);"start"===b?(T.x=M[0]-C*k,I.x=-C):"end"===b?(T.x=M[1]+C*k,I.x=C):(T.x=(M[0]+M[1])/2,T.y=t.labelOffset+w*k,I.y=w);var D=ng();I.transform(nx(D,D,t.rotation));var A=r.get("nameRotate");null!=A&&(A=A*_O/180),mD(b)?_=_j.innerTextLayout(t.rotation,A??t.rotation,w):(h=t.rotation,c=b,d=A||0,p=M,m=od(d-h),y=p[0]>p[1],v="start"===c&&!y||"start"!==c&&y,op(m-_O/2)?(g=v?"bottom":"top",f="center"):op(m-1.5*_O)?(g=v?"top":"bottom",f="center"):(g="middle",f=m<1.5*_O&&m>_O/2?v?"left":"right":v?"right":"left"),_={rotation:m,textAlign:f,textVerticalAlign:g},null!=(x=t.raw.axisNameAvailableWidth)&&(isFinite(x=Math.abs(x/Math.sin(_.rotation)))||(x=null)));var L=S.getFont(),$=r.get("nameTruncate",!0)||{},P=$.ellipsis,O=e$(t.raw.nameTruncateMaxWidth,$.maxWidth,x),E=s.nameMarginLevel||0,N=new sp({x:T.x,y:T.y,rotation:_.rotation,silent:_j.isLabelSilent(r),style:uX(S,{text:u,font:L,overflow:"truncate",width:O,ellipsis:P,fill:S.getTextColor()||r.get(["axisLine","lineStyle","color"]),align:S.get("align")||_.textAlign,verticalAlign:S.get("verticalAlign")||_.textVerticalAlign}),z2:1});if(uO({el:N,componentModel:r,itemName:u}),N.__fullText=u,N.anid="name",r.get("triggerEvent")){var R=_j.makeAxisEventDataBase(r);R.targetType="axisName",R.name=u,sC(N).eventData=R}o.add(N),N.updateTransform(),e.nameEl=N;var z=l.nameLayout=yn({label:N,priority:N.z2,defaultAttr:{ignore:N.ignore},marginDefault:mD(b)?_E[E]:_N[E]});if(l.nameLocation=b,i.add(N),N.decomposeTransform(),t.shouldNameMoveOverlap&&z){var B=n.ensureRecord(r);n.resolveAxisNameOverlap(t,n,r,z,I,B)}}}};function _X(t,e,n,r,i,o,a,s){_K(e)||function(t,e,n,r,i,o){var a=i.axis,s=e$(t.raw.axisLabelShow,i.get(["axisLabel","show"])),l=new i9;n.add(l);var u=mz(r);if(!s||a.scale.isBlank())return _J(e,[],l,u);var h=i.getModel("axisLabel"),c=a.getViewLabels(u),d=(e$(t.raw.labelRotate,h.get("rotate"))||0)*_O/180,p=_j.innerTextLayout(t.rotation,d,t.labelDirection),f=i.getCategories&&i.getCategories(!0),g=[],m=i.get("triggerEvent"),y=1/0,v=-1/0;eg(c,function(t,e){var n,r,s,u,d,_="ordinal"===a.scale.type?a.scale.getRawOrdinalNumber(t.tickValue):t.tickValue,x=t.formattedLabel,b=t.rawLabel,w=h;if(f&&f[_]){var S=f[_];eT(S)&&S.textStyle&&(w=new hn(S.textStyle,h,i.ecModel))}var k=w.getTextColor()||i.get(["axisLine","lineStyle","color"]),M=w.getShallow("align",!0)||p.textAlign,C=(n=w.getShallow("alignMinLabel",!0),n??M),T=(r=w.getShallow("alignMaxLabel",!0),r??M),I=w.getShallow("verticalAlign",!0)||w.getShallow("baseline",!0)||p.textVerticalAlign,D=(s=w.getShallow("verticalAlignMinLabel",!0),s??I),A=(u=w.getShallow("verticalAlignMaxLabel",!0),u??I),L=10+((null==(d=t.time)?void 0:d.level)||0);y=Math.min(y,L),v=Math.max(v,L);var $=new sp({x:0,y:0,rotation:0,silent:_j.isLabelSilent(i),z2:L,style:uX(w,{text:x,align:0===e?C:e===c.length-1?T:M,verticalAlign:0===e?D:e===c.length-1?A:I,fill:eS(k)?k("category"===a.type?b:"value"===a.type?_+"":_,e):k})});$.anid="label_"+_;var P=_R($);if(P.break=t.break,P.tickValue=_,P.layoutRotation=p.rotation,uO({el:$,componentModel:i,itemName:x,formatterParamsExtra:{isTruncated:function(){return $.isTruncated},value:b,tickIndex:e}}),m){var O,E,N,R,z=_j.makeAxisEventDataBase(i);z.targetType="axisLabel",z.value=b,z.tickIndex=e,t.break&&(z.break={start:t.break.parsedBreak.vmin,end:t.break.parsedBreak.vmax}),"category"===a.type&&(z.dataIndex=_),sC($).eventData=z,t.break&&(O=i,E=o,N=$,R=t.break,N.on("click",function(t){var e={type:"expandAxisBreak",breaks:[{start:R.parsedBreak.breakOption.start,end:R.parsedBreak.breakOption.end}]};e[O.axis.dim+"AxisIndex"]=O.componentIndex,E.dispatchAction(e)}))}g.push($),l.add($)}),_J(e,em(g,function(t){return{label:t,priority:_R(t).break?t.z2+(v-y+1):t.z2,defaultAttr:{ignore:t.ignore}}}),l,u)}(t,e,i,s,r,a);var l,u,h,c,d,p=e.labelLayoutList;l=t,u=r,h=p,c=o,d=u.get(["axisLabel","margin"]),eg(h,function(t,e){var n=yn(t);if(n){var r=n.label,i=_R(r);n.suggestIgnore=r.ignore,r.ignore=!1,iW(_0,_1),_0.x=u.axis.dataToCoord(i.tickValue),_0.y=l.labelOffset+l.labelDirection*d,_0.rotation=i.layoutRotation,c.add(_0),_0.updateTransform(),c.remove(_0),_0.decomposeTransform(),iW(r,_0),r.markRedraw(),yt(n,!0),yn(n)}}),t.rotation;var f=t.optionHideOverlap;(function(t,e,n){if(!mI(t.axis)){var r=t.get(["axisLabel","showMinLabel"]),i=t.get(["axisLabel","showMaxLabel"]),o=e.length;a(r,0,1),a(i,o-1,o-2)}function a(t,r,i){var o=yn(e[r]),a=yn(e[i]);if(!(!o||!a)){if(!1===t||o.suggestIgnore)return void _Y(o.label);if(a.suggestIgnore)return void _Y(a.label);if(!n){var s=[0,0,0,0];o=yo({marginForce:s},o),a=yo({marginForce:s},a)}ys(o,a,null,{touchThreshold:.1})&&_Y(t?a.label:o.label)}}})(r,p,f),f&&function(t){var e=[];function n(t){if(!t.ignore){var e=t.ensureState("emphasis");null==e.ignore&&(e.ignore=!1)}t.ignore=!0}t.sort(function(t,e){return!!e.suggestIgnore-!!t.suggestIgnore||e.priority-t.priority});for(var r=0;r<t.length;r++){var i=yn(t[r]);if(!i.label.ignore){for(var o=i.label,a=i.labelLine,s=!1,l=0;l<e.length;l++)if(ys(i,e[l],null,{touchThreshold:.05})){s=!0;break}s?(n(o),a&&n(a)):e.push(i)}}}(ev(p,function(t){return t&&!t.label.ignore})),function(t,e,n,r){var i,o=n.axis,a=e.ensureRecord(n),s=[],l=!!t.axisName&&mD(t.nameLocation);eg(r,function(t){var e=yn(t);if(!(!e||e.label.ignore)){s.push(e);var n=a.transGroup;l&&(n.transform?nb(_F,n.transform):nm(_F),e.transform&&nv(_F,_F,e.transform),nN.copy(_V,e.localRect),_V.applyTransform(_F),i?i.union(_V):nN.copy(i=new nN(0,0,0,0),_V))}});var u=Math.abs(a.dirVec.x)>.1?"x":"y",h=a.transGroup[u];if(s.sort(function(t,e){return Math.abs(t.label[u]-h)-Math.abs(e.label[u]-h)}),l&&i){var c=o.getExtent(),d=Math.min(c[0],c[1]),p=Math.max(c[0],c[1])-d;i.union(new nN(d,0,p,1))}a.stOccupiedRect=i,a.labelInfoList=s}(t,n,r,p)}function _Y(t){t&&(t.ignore=!0)}function _q(t,e,n,r,i){for(var o=[],a=[],s=[],l=0;l<t.length;l++){var u=t[l].coord;a[0]=u,a[1]=0,s[0]=u,s[1]=n,e&&(eK(a,a,e),eK(s,s,e));var h=new lq({shape:{x1:a[0],y1:a[1],x2:s[0],y2:s[1]},style:r,z2:2,autoBatch:!0,silent:!0});uC(h.shape,h.style.lineWidth),h.anid=i+"_"+t[l].tickValue,o.push(h);var c=_z(h);c.onBand=!!t[l].onBand,c.tickValue=t[l].tickValue}return o}function _Q(t,e,n){if(_K(t)){var r=t.axisLabelsCreationContext.out.noPxChangeTryDetermine;if(n.noPxChange){for(var i=!0,o=0;o<r.length;o++)i=i&&r[o]();if(i)return!1}r.length&&(e.remove(t.labelGroup),_J(t,null,null,null))}return!0}function _K(t){return!!t.labelLayoutList}function _J(t,e,n,r){t.labelLayoutList=e,t.labelGroup=n,t.axisLabelsCreationContext=r}var _0=new su,_1=new su;function _2(t,e,n){n=n||{};var r=e.axis,i={},o=r.getAxesOnZeroOf()[0],a=r.position,s=o?"onZero":a,l=r.dim,u=[t.x,t.x+t.width,t.y,t.y+t.height],h={left:0,right:1,top:0,bottom:1,onZero:2},c=e.get("offset")||0,d="x"===l?[u[2]-c,u[3]+c]:[u[0]-c,u[1]+c];if(o){var p=o.toGlobalCoord(o.dataToCoord(0));d[h.onZero]=Math.max(Math.min(p,d[1]),d[0])}i.position=["y"===l?d[h[s]]:u[0],"x"===l?d[h[s]]:u[3]],i.rotation=Math.PI/2*("x"!==l),i.labelDirection=i.tickDirection=i.nameDirection=({top:-1,bottom:1,left:-1,right:1})[a],i.labelOffset=o?d[h[a]]-d[h.onZero]:0,e.get(["axisTick","inside"])&&(i.tickDirection=-i.tickDirection),e$(n.labelInside,e.get(["axisLabel","inside"]))&&(i.labelDirection=-i.labelDirection);var f=e.get(["axisLabel","rotate"]);return i.labelRotate="top"===s?-f:f,i.z2=1,i}function _5(t){var e={xAxisModel:null,yAxisModel:null};return eg(e,function(n,r){var i=r.replace(/Model$/,""),o=t.getReferringComponents(i,oF).models[0];e[r]=o}),e}var _3=[[3,1],[0,2]],_4=function(){function t(t,e,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=_A,this._initCartesian(t,e,n),this.model=t}return t.prototype.getRect=function(){return this._rect},t.prototype.update=function(t,e){var n=this._axesMap;function r(t){var e,n=e_(t),r=n.length;if(r){for(var i=[],o=r-1;o>=0;o--){var a=t[+n[o]],s=a.model,l=a.scale;gY(l)&&s.get("alignTicks")&&null==s.get("interval")?i.push(a):(mk(l,s),gY(l)&&(e=a))}i.length&&(e||mk((e=i.pop()).scale,e.model),eg(i,function(t){!function(t,e,n){var r=g9.prototype,i=r.getTicks.call(n),o=r.getTicks.call(n,{expandToNicedExtent:!0}),a=i.length-1,s=r.getInterval.call(n),l=mS(t,e),u=l.extent,h=l.fixMin,c=l.fixMax;"log"===t.type&&(u=g5(t.base,u,!0)),t.setBreaksFromOption(mL(e)),t.setExtent(u[0],u[1]),t.calcNiceExtent({splitNumber:a,fixMin:h,fixMax:c});var d=r.getExtent.call(t);h&&(u[0]=d[0]),c&&(u[1]=d[1]);var p=r.getInterval.call(t),f=u[0],g=u[1];if(h&&c)p=(g-f)/a;else if(h)for(g=u[0]+p*a;g<u[1]&&isFinite(g)&&isFinite(u[1]);)p=gq(p),g=u[0]+p*a;else if(c)for(f=u[1]-p*a;f>u[0]&&isFinite(f)&&isFinite(u[0]);)p=gq(p),f=u[1]-p*a;else{t.getTicks().length-1>a&&(p=gq(p));var m=p*a;(f=oh((g=Math.ceil(u[1]/p)*p)-m))<0&&u[0]>=0?(f=0,g=oh(m)):g>0&&u[1]<=0&&(g=0,f=-oh(m))}var y=(i[0].value-o[0].value)/s,v=(i[a].value-o[a].value)/s;r.setExtent.call(t,f+p*y,g+p*v),r.setInterval.call(t,p),(y||v)&&r.setNiceExtent.call(t,f+p,g-p)}(t.scale,t.model,e.scale)}))}}this._updateScale(t,this.model),r(n.x),r(n.y);var i={};eg(n.x,function(t){_8(n,"y",t,i)}),eg(n.y,function(t){_8(n,"x",t,i)}),this.resize(this.model,e)},t.prototype.resize=function(t,e,n){var r=hK(t,e),i=this._rect=hY(t.getBoxLayoutParams(),r.refContainer),o=this._axesMap,a=this._coordsList,s=t.get("containLabel");if(_9(o,i),!n){var l,u,h,c,d,p,f=(l=i,u=a,h=o,c=s,d=e,p=new _B(xr),eg(h,function(t){return eg(t,function(t){mA(t.model)&&(t.axisBuilder=function(t,e,n,r,i,o){for(var a=_2(t,n),s=!1,l=!1,u=0;u<e.length;u++)gY(e[u].getOtherAxis(n.axis).scale)&&(s=l=!0,"category"===n.axis.type&&n.axis.onBand&&(l=!1));return a.axisLineAutoShow=s,a.axisTickAutoShow=l,a.defaultNameMoveOverlap=o,new _j(n,r,a,i)}(l,u,t.model,d,p,!c))})}),p),g=void 0;if(s)g=xe(i.clone(),"axisLabel",null,i,o,f,r);else{var m=function(t,e,n){var r,i,o,a=t.get("outerBoundsMode",!0);"same"===a?o=e.clone():(null==a||"auto"===a)&&(o=hY(t.get("outerBounds",!0)||_y,n.refContainer));var s=t.get("outerBoundsContain",!0);return{outerBoundsRect:o,parsedOuterBoundsContain:null==s||"auto"===s||0>ed(["all","axisLabel"],s)?"all":s,outerBoundsClamp:[ou((r=t.get("outerBoundsClampWidth",!0),r??"25%"),e.width),ou((i=t.get("outerBoundsClampHeight",!0),i??"25%"),e.height)]}}(t,i,r),y=m.outerBoundsRect,v=m.parsedOuterBoundsContain,_=m.outerBoundsClamp;y&&(g=xe(y,v,_,i,o,f,r))}xn(i,o,2,null,g,r)}eg(this._coordsList,function(t){t.calcAffineTransform()})},t.prototype.getAxis=function(t,e){var n=this._axesMap[t];if(null!=n)return n[e||0]},t.prototype.getAxes=function(){return this._axesList.slice()},t.prototype.getCartesian=function(t,e){if(null!=t&&null!=e){var n="x"+t+"y"+e;return this._coordsMap[n]}eT(t)&&(e=t.yAxisIndex,t=t.xAxisIndex);for(var r=0,i=this._coordsList;r<i.length;r++)if(i[r].getAxis("x").index===t||i[r].getAxis("y").index===e)return i[r]},t.prototype.getCartesians=function(){return this._coordsList.slice()},t.prototype.convertToPixel=function(t,e,n){var r=this._findConvertTarget(e);return r.cartesian?r.cartesian.dataToPoint(n):r.axis?r.axis.toGlobalCoord(r.axis.dataToCoord(n)):null},t.prototype.convertFromPixel=function(t,e,n){var r=this._findConvertTarget(e);return r.cartesian?r.cartesian.pointToData(n):r.axis?r.axis.coordToData(r.axis.toLocalCoord(n)):null},t.prototype._findConvertTarget=function(t){var e,n,r=t.seriesModel,i=t.xAxisModel||r&&r.getReferringComponents("xAxis",oF).models[0],o=t.yAxisModel||r&&r.getReferringComponents("yAxis",oF).models[0],a=t.gridModel,s=this._coordsList;return r?0>ed(s,e=r.coordinateSystem)&&(e=null):i&&o?e=this.getCartesian(i.componentIndex,o.componentIndex):i?n=this.getAxis("x",i.componentIndex):o?n=this.getAxis("y",o.componentIndex):a&&a.coordinateSystem===this&&(e=this._coordsList[0]),{cartesian:e,axis:n}},t.prototype.containPoint=function(t){var e=this._coordsList[0];if(e)return e.containPoint(t)},t.prototype._initCartesian=function(t,e,n){var r=this,i=this,o={left:!1,right:!1,top:!1,bottom:!1},a={x:{},y:{}},s={x:0,y:0};if(e.eachComponent("xAxis",l("x"),this),e.eachComponent("yAxis",l("y"),this),!s.x||!s.y){this._axesMap={},this._axesList=[];return}function l(e){return function(n,r){if(_6(n,t)){var l=n.get("position");"x"===e?"top"!==l&&"bottom"!==l&&(l=o.bottom?"top":"bottom"):"left"!==l&&"right"!==l&&(l=o.left?"right":"left"),o[l]=!0;var u=new _P(e,function(t,e){if(e=e||t.get("type"))switch(e){case"category":return new g7({ordinalMeta:t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),extent:[1/0,-1/0]});case"time":return new mc({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC")});default:return new(g3.getClass(e)||g9)}}(n),[0,0],n.get("type"),l),h="category"===u.type;u.onBand=h&&n.get("boundaryGap"),u.inverse=n.get("inverse"),n.axis=u,u.model=n,u.grid=i,u.index=r,i._axesList.push(u),a[e][r]=u,s[e]++}}}this._axesMap=a,eg(a.x,function(e,n){eg(a.y,function(i,o){var a="x"+n+"y"+o,s=new _$(a);s.master=r,s.model=t,r._coordsMap[a]=s,r._coordsList.push(s),s.addAxis(e),s.addAxis(i)})})},t.prototype._updateScale=function(t,e){eg(this._axesList,function(t){if(t.scale.setExtent(1/0,-1/0),"category"===t.type){var e=t.model.get("categorySortInfo");t.scale.setSortInfo(e)}}),t.eachSeries(function(t){if(t.coordinateSystem&&"cartesian2d"===t.coordinateSystem.type){var r=_5(t),i=r.xAxisModel,o=r.yAxisModel;if(_6(i,e)&&_6(o,e)){var a=this.getCartesian(i.componentIndex,o.componentIndex),s=t.getData(),l=a.getAxis("x"),u=a.getAxis("y");n(s,l),n(s,u)}}},this);function n(t,e){var n,r;eg((n=e.dim,r={},eg(t.mapDimensionsAll(n),function(e){r[gZ(t,e)?t.getCalculationInfo("stackResultDimension"):e]=!0}),e_(r)),function(n){e.scale.unionExtentFromData(t,n)})}},t.prototype.getTooltipAxes=function(t){var e=[],n=[];return eg(this.getCartesians(),function(r){var i=null!=t&&"auto"!==t?r.getAxis(t):r.getBaseAxis(),o=r.getOtherAxis(i);0>ed(e,i)&&e.push(i),0>ed(n,o)&&n.push(o)}),{baseAxes:e,otherAxes:n}},t.create=function(e,n){var r=[];return e.eachComponent("grid",function(i,o){var a=new t(i,e,n);a.name="grid_"+o,a.resize(i,n,!0),i.coordinateSystem=a,r.push(a)}),e.eachSeries(function(t){!function(t){var e=t.targetModel,n=t.coordSysType,r=t.coordSysProvider,i=t.isDefaultDataCoordSys;t.allowNotFound;var o=function(t){var e=t.getShallow("coordinateSystem"),n=t.getShallow("coordinateSystemUsage",!0),r=0;if(e){var i="series"===t.mainType;null==n&&(n=i?"data":"box"),"data"===n?(r=1,i||(r=0)):"box"===n&&(r=2,i||hW[e]||(r=0))}return{coordSysType:e,kind:r}}(e),a=o.kind,s=o.coordSysType;if(i&&1!==a&&(a=1,s=n),0!==a&&s===n){var l=r(n,e);l&&(1===a?e.coordinateSystem=l:e.boxCoordinateSystem=l)}}({targetModel:t,coordSysType:"cartesian2d",coordSysProvider:function(){var e=_5(t),n=e.xAxisModel,r=e.yAxisModel;return n.getCoordSysModel().coordinateSystem.getCartesian(n.componentIndex,r.componentIndex)}})}),r},t.dimensions=_A,t}();function _6(t,e){return t.getCoordSysModel()===e}function _8(t,e,n,r){n.getAxesOnZeroOf=function(){return i?[i]:[]};var i,o=t[e],a=n.model,s=a.get(["axisLine","onZero"]),l=a.get(["axisLine","onZeroAxisIndex"]);if(s){if(null!=l)_7(o[l])&&(i=o[l]);else for(var u in o)if(o.hasOwnProperty(u)&&_7(o[u])&&!r[h(o[u])]){i=o[u];break}i&&(r[h(i)]=!0)}function h(t){return t.dim+"_"+t.index}}function _7(t){var e,n,r;return t&&"category"!==t.type&&"time"!==t.type&&(n=(e=t.scale.getExtent())[0],r=e[1],!(n>0&&r>0||n<0&&r<0))}function _9(t,e){eg(t.x,function(t){return xt(t,e.x,e.width)}),eg(t.y,function(t){return xt(t,e.y,e.height)})}function xt(t,e,n){var r,i,o=[0,n],a=+!!t.inverse;t.setExtent(o[a],o[1-a]),i=(r=t.getExtent())[0]+r[1],t.toGlobalCoord="x"===t.dim?function(t){return t+e}:function(t){return i-t+e},t.toLocalCoord="x"===t.dim?function(t){return t-e}:function(t){return i-t+e}}function xe(t,e,n,r,i,o,a){xn(r,i,1,e,!1,a);var s=[0,0,0,0];u(0),u(1),h(r,0,NaN),h(r,1,NaN);var l=null==function(t,e){if(t&&e){for(var n=0,r=t.length;n<r;n++)if(e.call(void 0,t[n],n,t))return t[n]}}(s,function(t){return t>0});return uL(r,s,!0,!0,n),_9(i,r),l;function u(t){eg(i[uv[t]],function(e){if(mA(e.model)){var n=o.ensureRecord(e.model),r=n.labelInfoList;if(r)for(var i=0;i<r.length;i++){var a=r[i],s=e.scale.normalize(_R(a.label).tickValue);s=1===t?1-s:s,h(a.rect,t,s),h(a.rect,1-t,NaN)}var l=n.nameLayout;if(l){var s=mD(n.nameLocation)?.5:NaN;h(l.rect,t,s),h(l.rect,1-t,NaN)}}})}function h(e,n,r){var i=t[uv[n]]-e[uv[n]],o=e[u_[n]]+e[uv[n]]-(t[u_[n]]+t[uv[n]]);i=c(i,1-r),o=c(o,r);var a=_3[n][0],l=_3[n][1];s[a]=oo(s[a],i),s[l]=oo(s[l],o)}function c(t,e){return t>0&&e==e&&e>1e-4&&(t/=e),t}}function xn(t,e,n,r,i,o){var a=2===n;eg(e,function(e){return eg(e,function(e){var n,r;mA(e.model)&&(n=e.axisBuilder,r=_2(t,e.model),n.updateCfg(r),e.axisBuilder.build(a?{axisTickLabelDetermine:!0}:{axisTickLabelEstimate:!0},{noPxChange:i}))})});var s={x:0,y:0};function l(e){s[uv[1-e]]=t[u_[e]]<=.5*o.refContainer[u_[e]]?0:1-e==1?2:1}l(0),l(1),eg(e,function(t,e){return eg(t,function(t){mA(t.model)&&(("all"===r||a)&&t.axisBuilder.build({axisName:!0},{nameMarginLevel:s[e]}),a&&t.axisBuilder.build({axisLine:!0}))})})}var xr=function(t,e,n,r,i,o){var a="x"===n.axis.dim?"y":"x";_W(t,e,n,r,i,o),mD(t.nameLocation)||eg(e.recordMap[a],function(t){t&&t.labelInfoList&&t.dirVec&&_G(t.labelInfoList,t.dirVec,r,i)})};function xi(t,e){return"all"===t||ew(t)&&ed(t,e)>=0||t===e}function xo(t){var e=(t.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[xs(t)]}function xa(t){return!!t.get(["handle","show"])}function xs(t){return t.type+"||"+t.id}var xl={},xu=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return tK(e,t),e.prototype.render=function(e,n,r,i){this.axisPointerClass&&function(t){var e=xo(t);if(e){var n=e.axisPointerModel,r=e.axis.scale,i=n.option,o=n.get("status"),a=n.get("value");null!=a&&(a=r.parse(a));var s=xa(n);null==o&&(i.status=s?"show":"hide");var l=r.getExtent().slice();l[0]>l[1]&&l.reverse(),(null==a||a>l[1])&&(a=l[1]),a<l[0]&&(a=l[0]),i.value=a,s&&(i.status=e.axis.scale.isBlank()?"hide":"show")}}(e),t.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(e,r,!0)},e.prototype.updateAxisPointer=function(t,e,n,r){this._doUpdateAxisPointerClass(t,n,!1)},e.prototype.remove=function(t,e){var n=this._axisPointer;n&&n.remove(e)},e.prototype.dispose=function(e,n){this._disposeAxisPointer(n),t.prototype.dispose.apply(this,arguments)},e.prototype._doUpdateAxisPointerClass=function(t,n,r){var i=e.getAxisPointerClass(this.axisPointerClass);if(i){var o,a=(o=xo(t))&&o.axisPointerModel;a?(this._axisPointer||(this._axisPointer=new i)).render(t,a,n,r):this._disposeAxisPointer(n)}},e.prototype._disposeAxisPointer=function(t){this._axisPointer&&this._axisPointer.dispose(t),this._axisPointer=null},e.registerAxisPointerClass=function(t,e){xl[t]=e},e.getAxisPointerClass=function(t){return t&&xl[t]},e.type="axis",e}(ps),xh=oN(),xc=["splitArea","splitLine","minorSplitLine","breakArea"],xd=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.axisPointerClass="CartesianAxisPointer",n}return tK(e,t),e.prototype.render=function(e,n,r,i){this.group.removeAll();var o=this._axisGroup;this._axisGroup=new i9,this.group.add(this._axisGroup),mA(e)&&(this._axisGroup.add(e.axis.axisBuilder.group),eg(xc,function(t){e.get([t,"show"])&&xp[t](this,this._axisGroup,e,e.getCoordSysModel(),r)},this),i&&"changeAxisOrder"===i.type&&i.isInitSort||uI(o,this._axisGroup,e),t.prototype.render.call(this,e,n,r,i))},e.prototype.remove=function(){xh(this).splitAreaColors=null},e.type="cartesianAxis",e}(xu),xp={splitLine:function(t,e,n,r,i){var o=n.axis;if(!o.scale.isBlank()){var a=n.getModel("splitLine"),s=a.getModel("lineStyle"),l=s.get("color"),u=!1!==a.get("showMinLine"),h=!1!==a.get("showMaxLine");l=ew(l)?l:[l];for(var c=r.coordinateSystem.getRect(),d=o.isHorizontal(),p=0,f=o.getTicksCoords({tickModel:a,breakTicks:"none",pruneByBreak:"preserve_extent_bound"}),g=[],m=[],y=s.getLineStyle(),v=0;v<f.length;v++){var _=o.toGlobalCoord(f[v].coord);if(!(0===v&&!u||v===f.length-1&&!h)){var x=f[v].tickValue;d?(g[0]=_,g[1]=c.y,m[0]=_,m[1]=c.y+c.height):(g[0]=c.x,g[1]=_,m[0]=c.x+c.width,m[1]=_);var b=p++%l.length,w=new lq({anid:null!=x?"line_"+x:null,autoBatch:!0,shape:{x1:g[0],y1:g[1],x2:m[0],y2:m[1]},style:ec({stroke:l[b]},y),silent:!0});uC(w.shape,y.lineWidth),e.add(w)}}}},minorSplitLine:function(t,e,n,r,i){var o=n.axis,a=n.getModel("minorSplitLine").getModel("lineStyle"),s=r.coordinateSystem.getRect(),l=o.isHorizontal(),u=o.getMinorTicksCoords();if(u.length)for(var h=[],c=[],d=a.getLineStyle(),p=0;p<u.length;p++)for(var f=0;f<u[p].length;f++){var g=o.toGlobalCoord(u[p][f].coord);l?(h[0]=g,h[1]=s.y,c[0]=g,c[1]=s.y+s.height):(h[0]=s.x,h[1]=g,c[0]=s.x+s.width,c[1]=g);var m=new lq({anid:"minor_line_"+u[p][f].tickValue,autoBatch:!0,shape:{x1:h[0],y1:h[1],x2:c[0],y2:c[1]},style:d,silent:!0});uC(m.shape,d.lineWidth),e.add(m)}},splitArea:function(t,e,n,r,i){!function(t,e,n,r){var i=n.axis;if(!i.scale.isBlank()){var o=n.getModel("splitArea"),a=o.getModel("areaStyle"),s=a.get("color"),l=r.coordinateSystem.getRect(),u=i.getTicksCoords({tickModel:o,clamp:!0,breakTicks:"none",pruneByBreak:"preserve_extent_bound"});if(u.length){var h=s.length,c=xh(t).splitAreaColors,d=eV(),p=0;if(c)for(var f=0;f<u.length;f++){var g=c.get(u[f].tickValue);if(null!=g){p=(g+(h-1)*f)%h;break}}var m=i.toGlobalCoord(u[0].coord),y=a.getAreaStyle();s=ew(s)?s:[s];for(var f=1;f<u.length;f++){var v=i.toGlobalCoord(u[f].coord),_=void 0,x=void 0,b=void 0,w=void 0;i.isHorizontal()?(_=m,x=l.y,b=v-_,w=l.height,m=_+b):(_=l.x,x=m,b=l.width,w=v-x,m=x+w);var S=u[f-1].tickValue;null!=S&&d.set(S,p),e.add(new su({anid:null!=S?"area_"+S:null,shape:{x:_,y:x,width:b,height:w},style:ec({fill:s[p]},y),autoBatch:!0,silent:!0})),p=(p+1)%h}xh(t).splitAreaColors=d}}}(t,e,n,r)},breakArea:function(t,e,n,r,i){n.axis.scale}},xf=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return tK(e,t),e.type="xAxis",e}(xd),xg=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=xf.type,e}return tK(e,t),e.type="yAxis",e}(xd),xm=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="grid",e}return tK(e,t),e.prototype.render=function(t,e){this.group.removeAll(),t.get("show")&&this.group.add(new su({shape:t.coordinateSystem.getRect(),style:ec({fill:t.get("backgroundColor")},t.getItemStyle()),silent:!0,z2:-1}))},e.type="grid",e}(ps),xy={offset:0};function xv(t){t.registerComponentView(xm),t.registerComponentModel(_v),t.registerCoordinateSystem("cartesian2d",_4),_T(t,"x",__,xy),_T(t,"y",__,xy),t.registerComponentView(xf),t.registerComponentView(xg),t.registerPreprocessor(function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})})}var x_=oN();function xx(t,e,n,r){(function t(e,n){if(!(eT(e)&&eT(n)))return e===n;var r=!0;return eg(n,function(n,i){r=r&&t(e[i],n)}),!!r})(x_(n).lastProp,r)||(x_(n).lastProp=r,e?uh(n,r,t):(n.stopAnimation(),n.attr(r)))}function xb(t,e){t[e.get(["label","show"])?"show":"hide"]()}function xw(t){return{x:t.x||0,y:t.y||0,rotation:t.rotation||0}}function xS(t,e,n){var r=e.get("z"),i=e.get("zlevel");t&&t.traverse(function(t){"group"!==t.type&&(null!=r&&(t.z=r),null!=i&&(t.zlevel=i),t.silent=n)})}function xk(t,e,n,r,i){t=e.scale.parse(t);var o=e.scale.getLabel({value:t},{precision:i.precision}),a=i.formatter;if(a){var s={value:mC(e,{value:t}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};eg(r,function(t){var e=n.getSeriesByIndex(t.seriesIndex),r=t.dataIndexInside,i=e&&e.getDataParams(r);i&&s.seriesData.push(i)}),ek(a)?o=a.replace("{value}",o):eS(a)&&(o=a(s))}return o}function xM(t,e,n){var r=ng();return nx(r,r,n.rotation),n_(r,r,n.position),uT([t.dataToCoord(e),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],r)}var xC=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return tK(e,t),e.prototype.makeElOption=function(t,e,n,r,i){var o,a,s,l,u,h,c,d,p,f,g,m,y,v,_,x,b,w,S,k=n.axis,M=k.grid,C=r.get("type"),T=xT(M,k).getOtherAxis(k).getGlobalExtent(),I=k.toGlobalCoord(k.dataToCoord(e,!0));if(C&&"none"!==C){var D,A,L,$=(A=r.get("type"),L=r.getModel(A+"Style"),"line"===A?(D=L.getLineStyle()).fill=null:"shadow"===A&&((D=L.getAreaStyle()).stroke=null),D),P=xI[C](k,I,T);P.style=$,t.graphicKey=P.type,t.pointer=P}var O=_2(M.getRect(),n);c=_j.innerTextLayout(O.rotation,0,O.labelDirection),O.labelMargin=r.get(["label","margin"]),d={position:xM(n.axis,e,O),align:c.textAlign,verticalAlign:c.textVerticalAlign},p=xk(r.get("value"),n.axis,n.ecModel,r.get("seriesDataIndices"),{precision:r.get(["label","precision"]),formatter:r.get(["label","formatter"])}),g=eO((f=r.getModel("label")).get("padding")||0),y=iX(p,m=f.getFont()),v=d.position,_=y.width+g[1]+g[3],x=y.height+g[0]+g[2],"right"===(b=d.align)&&(v[0]-=_),"center"===b&&(v[0]-=_/2),"bottom"===(w=d.verticalAlign)&&(v[1]-=x),"middle"===w&&(v[1]-=x/2),o=v,a=_,s=x,u=(l=i).getWidth(),h=l.getHeight(),o[0]=Math.min(o[0]+a,u)-a,o[1]=Math.min(o[1]+s,h)-s,o[0]=Math.max(o[0],0),o[1]=Math.max(o[1],0),(S=f.get("backgroundColor"))&&"auto"!==S||(S=n.get(["axisLine","lineStyle","color"])),t.label={x:v[0],y:v[1],style:uX(f,{text:p,font:m,fill:f.getTextColor(),padding:g,backgroundColor:S}),z2:10}},e.prototype.getHandleTransform=function(t,e,n){var r=_2(e.axis.grid.getRect(),e,{labelInside:!1});r.labelMargin=n.get(["handle","margin"]);var i=xM(e.axis,t,r);return{x:i[0],y:i[1],rotation:r.rotation+(r.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,e,n,r){var i=n.axis,o=i.grid,a=i.getGlobalExtent(!0),s=xT(o,i).getOtherAxis(i).getGlobalExtent(),l=+("x"!==i.dim),u=[t.x,t.y];u[l]+=e[l],u[l]=Math.min(a[1],u[l]),u[l]=Math.max(a[0],u[l]);var h=(s[1]+s[0])/2,c=[h,h];return c[l]=u[l],{x:u[0],y:u[1],rotation:t.rotation,cursorPoint:c,tooltipOption:[{verticalAlign:"middle"},{align:"center"}][l]}},e}(function(){function t(){this._dragging=!1,this.animationThreshold=15}return t.prototype.render=function(t,e,n,r){var i=e.get("value"),o=e.get("status");if(this._axisModel=t,this._axisPointerModel=e,this._api=n,!(!r&&this._lastValue===i&&this._lastStatus===o)){this._lastValue=i,this._lastStatus=o;var a=this._group,s=this._handle;if(!o||"hide"===o){a&&a.hide(),s&&s.hide();return}a&&a.show(),s&&s.show();var l={};this.makeElOption(l,i,t,e,n);var u=l.graphicKey;u!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=u;var h=this._moveAnimation=this.determineAnimation(t,e);if(a){var c=eb(xx,e,h);this.updatePointerEl(a,l,c),this.updateLabelEl(a,l,c,e)}else a=this._group=new i9,this.createPointerEl(a,l,t,e),this.createLabelEl(a,l,t,e),n.getZr().add(a);xS(a,e,!0),this._renderHandle(i)}},t.prototype.remove=function(t){this.clear(t)},t.prototype.dispose=function(t){this.clear(t)},t.prototype.determineAnimation=function(t,e){var n=e.get("animation"),r=t.axis,i="category"===r.type,o=e.get("snap");if(!o&&!i)return!1;if("auto"===n||null==n){var a=this.animationThreshold;if(i&&r.getBandWidth()>a)return!0;if(o){var s=xo(t).seriesDataCount,l=r.getExtent();return Math.abs(l[0]-l[1])/s>a}return!1}return!0===n},t.prototype.makeElOption=function(t,e,n,r,i){},t.prototype.createPointerEl=function(t,e,n,r){var i=e.pointer;if(i){var o=x_(t).pointerEl=new uH[i.type](el(e.pointer));t.add(o)}},t.prototype.createLabelEl=function(t,e,n,r){if(e.label){var i=x_(t).labelEl=new sp(el(e.label));t.add(i),xb(i,r)}},t.prototype.updatePointerEl=function(t,e,n){var r=x_(t).pointerEl;r&&e.pointer&&(r.setStyle(e.pointer.style),n(r,{shape:e.pointer.shape}))},t.prototype.updateLabelEl=function(t,e,n,r){var i=x_(t).labelEl;i&&(i.setStyle(e.label.style),n(i,{x:e.label.x,y:e.label.y}),xb(i,r))},t.prototype._renderHandle=function(t){if(!(this._dragging||!this.updateHandleTransform)){var e,n=this._axisPointerModel,r=this._api.getZr(),i=this._handle,o=n.getModel("handle"),a=n.get("status");if(!o.get("show")||!a||"hide"===a){i&&r.remove(i),this._handle=null;return}this._handle||(e=!0,i=this._handle=uD(o.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(t){nc(t.event)},onmousedown:ex(this._onHandleDragMove,this,0,0),drift:ex(this._onHandleDragMove,this),ondragend:ex(this._onHandleDragEnd,this)}),r.add(i)),xS(i,n,!1),i.setStyle(o.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var s=o.get("size");ew(s)||(s=[s,s]),i.scaleX=s[0]/2,i.scaleY=s[1]/2,pb(this,"_doDispatchAxisPointer",o.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,e)}},t.prototype._moveHandleToValue=function(t,e){xx(this._axisPointerModel,!e&&this._moveAnimation,this._handle,xw(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},t.prototype._onHandleDragMove=function(t,e){var n=this._handle;if(n){this._dragging=!0;var r=this.updateHandleTransform(xw(n),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=r,n.stopAnimation(),n.attr(xw(r)),x_(n).lastProp=null,this._doDispatchAxisPointer()}},t.prototype._doDispatchAxisPointer=function(){if(this._handle){var t=this._payloadInfo,e=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:t.cursorPoint[0],y:t.cursorPoint[1],tooltipOption:t.tooltipOption,axesInfo:[{axisDim:e.axis.dim,axisIndex:e.componentIndex}]})}},t.prototype._onHandleDragEnd=function(){if(this._dragging=!1,this._handle){var t=this._axisPointerModel.get("value");this._moveHandleToValue(t),this._api.dispatchAction({type:"hideTip"})}},t.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var e=t.getZr(),n=this._group,r=this._handle;e&&n&&(this._lastGraphicKey=null,n&&e.remove(n),r&&e.remove(r),this._group=null,this._handle=null,this._payloadInfo=null),pw(this,"_doDispatchAxisPointer")},t.prototype.doClear=function(){},t.prototype.buildLabel=function(t,e,n){return{x:t[n=n||0],y:t[1-n],width:e[n],height:e[1-n]}},t}());function xT(t,e){var n={};return n[e.dim+"AxisIndex"]=e.index,t.getCartesian(n)}var xI={line:function(t,e,n){var r,i,o;return{type:"Line",subPixelOptimize:!0,shape:(r=[e,n[0]],i=[e,n[1]],{x1:r[o=(o=xD(t))||0],y1:r[1-o],x2:i[o],y2:i[1-o]})}},shadow:function(t,e,n){var r,i,o,a=Math.max(1,t.getBandWidth()),s=n[1]-n[0];return{type:"Rect",shape:(r=[e-a/2,n[0]],i=[a,s],{x:r[o=(o=xD(t))||0],y:r[1-o],width:i[o],height:i[1-o]})}}};function xD(t){return+("x"!==t.dim)}var xA=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return tK(e,t),e.type="axisPointer",e.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:h6.color.border,width:1,type:"dashed"},shadowStyle:{color:h6.color.shadowTint},label:{show:!0,formatter:null,precision:"auto",margin:3,color:h6.color.neutral00,padding:[5,7,5,7],backgroundColor:h6.color.accent60,borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:h6.color.accent40,throttle:40}},e}(h5),xL=oN();function x$(t,e,n){if(!t0.node){var r=e.getZr();xL(r).records||(xL(r).records={}),function(t,e){xL(t).initialized||(xL(t).initialized=!0,n("click",eb(xO,"click")),n("mousemove",eb(xO,"mousemove")),n("globalout",xP));function n(n,r){t.on(n,function(n){var i,o,a,s,l,u,h,c,d=(i=e,o={showTip:[],hideTip:[]},{dispatchAction:a=function(t){var e=o[t.type];e?e.push(t):(t.dispatchAction=a,i.dispatchAction(t))},pendings:o});eg(xL(t).records,function(t){t&&r(t,n,d.dispatchAction)}),s=d.pendings,l=e,h=s.showTip.length,c=s.hideTip.length,h?u=s.showTip[h-1]:c&&(u=s.hideTip[c-1]),u&&(u.dispatchAction=null,l.dispatchAction(u))})}}(r,e),(xL(r).records[t]||(xL(r).records[t]={})).handler=n}}function xP(t,e,n){t.handler("leave",null,n)}function xO(t,e,n,r){e.handler(t,n,r)}function xE(t,e){if(!t0.node){var n=e.getZr();(xL(n).records||{})[t]&&(xL(n).records[t]=null)}}var xN=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return tK(e,t),e.prototype.render=function(t,e,n){var r=e.getComponent("tooltip"),i=t.get("triggerOn")||r&&r.get("triggerOn")||"mousemove|click";x$("axisPointer",n,function(t,e,n){"none"!==i&&("leave"===t||i.indexOf(t)>=0)&&n({type:"updateAxisPointer",currTrigger:t,x:e&&e.offsetX,y:e&&e.offsetY})})},e.prototype.remove=function(t,e){xE("axisPointer",e)},e.prototype.dispose=function(t,e){xE("axisPointer",e)},e.type="axisPointer",e}(ps);function xR(t,e){var n,r=[],i=t.seriesIndex;if(null==i||!(n=e.getSeriesByIndex(i)))return{point:[]};var o=n.getData(),a=oE(o,t);if(null==a||a<0||ew(a))return{point:[]};var s=o.getItemGraphicEl(a),l=n.coordinateSystem;if(n.getTooltipPosition)r=n.getTooltipPosition(a)||[];else if(l&&l.dataToPoint)if(t.isStacked){var u=l.getBaseAxis(),h=l.getOtherAxis(u).dim,c=u.dim,d=+("x"===h||"radius"===h),p=o.mapDimension(c),f=[];f[d]=o.get(p,a),f[1-d]=o.get(o.getCalculationInfo("stackResultDimension"),a),r=l.dataToPoint(f)||[]}else r=l.dataToPoint(o.getValues(em(l.dimensions,function(t){return o.mapDimension(t)}),a))||[];else if(s){var g=s.getBoundingRect().clone();g.applyTransform(s.transform),r=[g.x+g.width/2,g.y+g.height/2]}return{point:r,el:s}}var xz=oN();function xB(t,e,n){var r=t.currTrigger,i=[t.x,t.y],o=t.dispatchAction||ex(n.dispatchAction,n),a=e.getComponent("axisPointer").coordSysAxesInfo;if(a){xG(i)&&(i=xR({seriesIndex:t.seriesIndex,dataIndex:t.dataIndex},e).point);var s,l,u,h,c,d,p,f,g,m,y,v=xG(i),_=t.axesInfo,x=a.axesInfo,b="leave"===r||xG(i),w={},S={},k={list:[],map:{}},M={showPointer:eb(xV,S),showTooltip:eb(xW,k)};eg(a.coordSysMap,function(t,e){var n=v||t.containPoint(i);eg(a.coordSysAxesInfo[e],function(t,e){var r=t.axis,o=function(t,e){for(var n=0;n<(t||[]).length;n++){var r=t[n];if(e.axis.dim===r.axisDim&&e.axis.model.componentIndex===r.axisIndex)return r}}(_,t);if(!b&&n&&(!_||o)){var a=o&&o.value;null!=a||v||(a=r.pointToData(i)),null!=a&&xF(t,a,M,!1,w)}})});var C={};return eg(x,function(t,e){var n=t.linkGroup;n&&!S[e]&&eg(n.axesInfo,function(e,r){var i=S[r];if(e!==t&&i){var o=i.value;n.mapper&&(o=t.axis.scale.parse(n.mapper(o,xH(e),xH(t)))),C[t.key]=o}})}),eg(C,function(t,e){xF(x[e],t,M,!0,w)}),s=S,l=x,u=w.axesInfo=[],eg(l,function(t,e){var n=t.axisPointerModel.option,r=s[e];r?(t.useHandle||(n.status="show"),n.value=r.value,n.seriesDataIndices=(r.payloadBatch||[]).slice()):t.useHandle||(n.status="hide"),"show"===n.status&&u.push({axisDim:t.axis.dim,axisIndex:t.axis.model.componentIndex,value:n.value})}),function(t,e,n,r){if(xG(e)||!t.list.length)return r({type:"hideTip"});var i=((t.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};r({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:n.tooltipOption,position:n.position,dataIndexInside:i.dataIndexInside,dataIndex:i.dataIndex,seriesIndex:i.seriesIndex,dataByCoordSys:t.list})}(k,i,t,o),h=x,d=(c=n).getZr(),p="axisPointerLastHighlights",f=xz(d)[p]||{},g=xz(d)[p]={},eg(h,function(t,e){var n=t.axisPointerModel.option;"show"===n.status&&t.triggerEmphasis&&eg(n.seriesDataIndices,function(t){g[t.seriesIndex+" | "+t.dataIndex]=t})}),m=[],y=[],eg(f,function(t,e){g[e]||y.push(t)}),eg(g,function(t,e){f[e]||m.push(t)}),y.length&&c.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:y}),m.length&&c.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:m}),w}}function xF(t,e,n,r,i){var o=t.axis;if(!(o.scale.isBlank()||!o.containData(e))){if(!t.involveSeries)return void n.showPointer(t,e);var a,s,l,u,h,c,d,p,f=(a=e,u=(l=(s=t).axis).dim,h=a,c=[],d=Number.MAX_VALUE,p=-1,eg(s.seriesModels,function(t,e){var n,r,i=t.getData().mapDimensionsAll(u);if(t.getAxisTooltipData){var o=t.getAxisTooltipData(i,a,l);r=o.dataIndices,n=o.nestestValue}else{if(!(r=t.indicesOfNearest(u,i[0],a,"category"===l.type?.5:null)).length)return;n=t.getData().get(i[0],r[0])}if(!(null==n||!isFinite(n))){var s=a-n,f=Math.abs(s);f<=d&&((f<d||s>=0&&p<0)&&(d=f,p=s,h=n,c.length=0),eg(r,function(e){c.push({seriesIndex:t.seriesIndex,dataIndexInside:e,dataIndex:t.getData().getRawIndex(e)})}))}}),{payloadBatch:c,snapToValue:h}),g=f.payloadBatch,m=f.snapToValue;g[0]&&null==i.seriesIndex&&eh(i,g[0]),!r&&t.snap&&o.containData(m)&&null!=m&&(e=m),n.showPointer(t,e,g),n.showTooltip(t,f,m)}}function xV(t,e,n,r){t[e.key]={value:n,payloadBatch:r}}function xW(t,e,n,r){var i=n.payloadBatch,o=e.axis,a=o.model,s=e.axisPointerModel;if(!(!e.triggerTooltip||!i.length)){var l=e.coordSys.model,u=xs(l),h=t.map[u];h||(h=t.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},t.list.push(h)),h.dataByAxis.push({axisDim:o.dim,axisIndex:a.componentIndex,axisType:a.type,axisId:a.id,value:r,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:i.slice()})}}function xH(t){var e=t.axis.model,n={},r=n.axisDim=t.axis.dim;return n.axisIndex=n[r+"AxisIndex"]=e.componentIndex,n.axisName=n[r+"AxisName"]=e.name,n.axisId=n[r+"AxisId"]=e.id,n}function xG(t){return!t||null==t[0]||isNaN(t[0])||null==t[1]||isNaN(t[1])}function xj(t){xu.registerAxisPointerClass("CartesianAxisPointer",xC),t.registerComponentModel(xA),t.registerComponentView(xN),t.registerPreprocessor(function(t){if(t){t.axisPointer&&0!==t.axisPointer.length||(t.axisPointer={});var e=t.axisPointer.link;e&&!ew(e)&&(t.axisPointer.link=[e])}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,function(t,e){var n,r,i,o,a,s,l,u,h;t.getComponent("axisPointer").coordSysAxesInfo=(r=n={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}},i=t,o=e,a=i.getComponent("tooltip"),l=(s=i.getComponent("axisPointer")).get("link",!0)||[],u=[],eg(o.getCoordinateSystems(),function(t){if(t.axisPointerEnabled){var e=xs(t.model),n=r.coordSysAxesInfo[e]={};r.coordSysMap[e]=t;var o=t.model.getModel("tooltip",a);if(eg(t.getAxes(),eb(p,!1,null)),t.getTooltipAxes&&a&&o.get("show")){var h="axis"===o.get("trigger"),c="cross"===o.get(["axisPointer","type"]),d=t.getTooltipAxes(o.get(["axisPointer","axis"]));(h||c)&&eg(d.baseAxes,eb(p,!c||"cross",h)),c&&eg(d.otherAxes,eb(p,"cross",!1))}}function p(e,a,h){var c=h.model.getModel("axisPointer",s),d=c.get("show");if(!(!d||"auto"===d&&!e&&!xa(c))){null==a&&(a=c.get("triggerTooltip"));var p=(c=e?function(t,e,n,r,i,o){var a=e.getModel("axisPointer"),s={};eg(["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],function(t){s[t]=el(a.get(t))}),s.snap="category"!==t.type&&!!o,"cross"===a.get("type")&&(s.type="line");var l=s.label||(s.label={});if(null==l.show&&(l.show=!1),"cross"===i&&(l.show=a.get(["label","show"])??!0,!o)){var u=s.lineStyle=a.get("crossStyle");u&&ec(l,u.textStyle)}return t.model.getModel("axisPointer",new hn(s,n,r))}(h,o,s,i,e,a):c).get("snap"),f=c.get("triggerEmphasis"),g=xs(h.model),m=a||p||"category"===h.type,y=r.axesInfo[g]={key:g,axis:h,coordSys:t,axisPointerModel:c,triggerTooltip:a,triggerEmphasis:f,involveSeries:m,snap:p,useHandle:xa(c),seriesModels:[],linkGroup:null};n[g]=y,r.seriesInvolved=r.seriesInvolved||m;var v=function(t,e){for(var n=e.model,r=e.dim,i=0;i<t.length;i++){var o=t[i]||{};if(xi(o[r+"AxisId"],n.id)||xi(o[r+"AxisIndex"],n.componentIndex)||xi(o[r+"AxisName"],n.name))return i}}(l,h);if(null!=v){var _=u[v]||(u[v]={axesInfo:{}});_.axesInfo[g]=y,_.mapper=l[v].mapper,y.linkGroup=_}}}}),n.seriesInvolved&&(h=n,t.eachSeries(function(t){var e=t.coordinateSystem,n=t.get(["tooltip","trigger"],!0),r=t.get(["tooltip","show"],!0);e&&e.model&&"none"!==n&&!1!==n&&"item"!==n&&!1!==r&&!1!==t.get(["axisPointer","show"],!0)&&eg(h.coordSysAxesInfo[xs(e.model)],function(n){var r=n.axis;e.getAxis(r.dim)===r&&(n.seriesModels.push(t),null==n.seriesDataCount&&(n.seriesDataCount=0),n.seriesDataCount+=t.getData().count())})})),n)}),t.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},xB)}var xU=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return tK(e,t),e.type="tooltip",e.dependencies=["axisPointer"],e.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,displayTransition:!0,enterable:!1,backgroundColor:h6.color.neutral00,shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,defaultBorderColor:h6.color.border,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:h6.color.borderShade,width:1,type:"dashed",textStyle:{}}},textStyle:{color:h6.color.tertiary,fontSize:14}},e}(h5);function xZ(t){var e=t.get("confine");return null!=e?!!e:"richText"===t.get("renderMode")}function xX(t){if(t0.domSupported){for(var e=document.documentElement.style,n=0,r=t.length;n<r;n++)if(t[n]in e)return t[n]}}var xY=xX(["transform","webkitTransform","OTransform","MozTransform","msTransform"]);function xq(t,e){if(!t)return e;e=hE(e,!0);var n=t.indexOf(e);return(t=-1===n?e:"-"+t.slice(0,n)+"-"+e).toLowerCase()}var xQ=xq(xX(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),"transition"),xK=xq(xY,"transform"),xJ="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(t0.transform3dSupported?"will-change:transform;":"");function x0(t,e,n){var r=t.toFixed(0)+"px",i=e.toFixed(0)+"px";if(!t0.transformSupported)return n?"top:"+i+";left:"+r+";":[["top",i],["left",r]];var o=t0.transform3dSupported,a="translate"+(o?"3d":"")+"("+r+","+i+(o?",0":"")+")";return n?"top:0;left:0;"+xK+":"+a+";":[["top",0],["left",0],[xY,a]]}function x1(t,e,n,r,i){var o=e&&e.painter;if(n){var a=o&&o.getViewportRoot();a&&e9(e7,a,r,i,!0)&&e9(t,n,e7[0],e7[1])}else{t[0]=r,t[1]=i;var s=o&&o.getViewportRootOffset();s&&(t[0]+=s.offsetLeft,t[1]+=s.offsetTop)}t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var x2=function(){function t(t,e){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,t0.wxa)return null;var n=document.createElement("div");n.domBelongToZr=!0,this.el=n;var r=this._zr=t.getZr(),i=e.appendTo,o=i&&(ek(i)?document.querySelector(i):eA(i)?i:eS(i)&&i(t.getDom()));x1(this._styleCoord,r,o,t.getWidth()/2,t.getHeight()/2),(o||t.getDom()).appendChild(n),this._api=t,this._container=o;var a=this;n.onmouseenter=function(){a._enterable&&(clearTimeout(a._hideTimeout),a._show=!0),a._inContent=!0},n.onmousemove=function(t){if(t=t||window.event,!a._enterable){var e=r.handler;nh(r.painter.getViewportRoot(),t,!0),e.dispatch("mousemove",t)}},n.onmouseleave=function(){a._inContent=!1,a._enterable&&a._show&&a.hideLater(a._hideDelay)}}return t.prototype.update=function(t){if(!this._container){var e,n=this._api.getDom(),r=(e=n.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(n))?e.position:null,i=n.style;"absolute"!==i.position&&"absolute"!==r&&(i.position="relative")}var o=t.get("alwaysShowContent");o&&this._moveIfResized(),this._alwaysShowContent=o,this._enableDisplayTransition=t.get("displayTransition")&&t.get("transitionDuration")>0,this.el.className=t.get("className")||""},t.prototype.show=function(t,e){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n,r,i,o,a,s,l,u,h,c,d,p,f,g,m,y,v,_,x,b,w,S,k,M,C,T,I=this.el,D=I.style,A=this._styleCoord;I.innerHTML?D.cssText=xJ+(n=!this._firstShow,r=this._longHide,i=this._enableDisplayTransition,o=[],a=t.get("transitionDuration"),s=t.get("backgroundColor"),l=t.get("shadowBlur"),u=t.get("shadowColor"),h=t.get("shadowOffsetX"),c=t.get("shadowOffsetY"),d=t.getModel("textStyle"),p=d4(t,"html"),f=h+"px "+c+"px "+l+"px "+u,o.push("box-shadow:"+f),n&&a>0&&o.push((g="cubic-bezier(0.23,1,0.32,1)",m="",y="",i&&(y="opacity"+(m=" "+a/2+"s "+g)+",visibility"+m),r||(m=" "+a+"s "+g,y+=(y.length?",":"")+(t0.transformSupported?""+xK+m:",left"+m+",top"+m)),xQ+":"+y)),s&&o.push("background-color:"+s),eg(["width","color","radius"],function(e){var n="border-"+e,r=hE(n),i=t.get(r);null!=i&&o.push(n+":"+i+("color"===e?"":"px"))}),o.push((v=[],_=d.get("fontSize"),(x=d.getTextColor())&&v.push("color:"+x),v.push("font:"+d.getFont()),b=d.get("lineHeight"),w=Math.round(3*_/2),S=b??w,_&&v.push("line-height:"+S+"px"),k=d.get("textShadowColor"),M=d.get("textShadowBlur")||0,C=d.get("textShadowOffsetX")||0,T=d.get("textShadowOffsetY")||0,k&&M&&v.push("text-shadow:"+C+"px "+T+"px "+M+"px "+k),eg(["decoration","align"],function(t){var e=d.get(t);e&&v.push("text-"+t+":"+e)}),v.join(";"))),null!=p&&o.push("padding:"+eO(p).join("px ")+"px"),o.join(";")+";")+x0(A[0],A[1],!0)+"border-color:"+hF(e)+";"+(t.get("extraCssText")||"")+";pointer-events:"+(this._enterable?"auto":"none"):D.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},t.prototype.setContent=function(t,e,n,r,i){var o=this.el;if(null==t){o.innerHTML="";return}var a="";if(ek(i)&&"item"===n.get("trigger")&&!xZ(n)&&(a=function(t,e,n){if(!ek(n)||"inside"===n)return"";var r=t.get("backgroundColor"),i=t.get("borderWidth");e=hF(e);var o,a="left"===n?"right":"right"===n?"left":"top"===n?"bottom":"top",s=Math.max(1.5*Math.round(i),6),l="",u=xK+":";ed(["left","right"],a)>-1?(l+="top:50%",u+="translateY(-50%) rotate("+(o="left"===a?-225:-45)+"deg)"):(l+="left:50%",u+="translateX(-50%) rotate("+(o="top"===a?225:45)+"deg)");var h=o*Math.PI/180,c=s+i,d=c*Math.abs(Math.cos(h))+c*Math.abs(Math.sin(h));l+=";"+a+":-"+Math.round(((d-Math.SQRT2*i)/2+Math.SQRT2*i-(d-c)/2)*100)/100+"px";var p=e+" solid "+i+"px;";return'<div style="'+["position:absolute;width:"+s+"px;height:"+s+"px;z-index:-1;",l+";"+u+";","border-bottom:"+p,"border-right:"+p,"background-color:"+r+";"].join("")+'"></div>'}(n,r,i)),ek(t))o.innerHTML=t+a;else if(t){o.innerHTML="",ew(t)||(t=[t]);for(var s=0;s<t.length;s++)eA(t[s])&&t[s].parentNode!==o&&o.appendChild(t[s]);if(a&&o.childNodes.length){var l=document.createElement("div");l.innerHTML=a,o.appendChild(l)}}},t.prototype.setEnterable=function(t){this._enterable=t},t.prototype.getSize=function(){var t=this.el;return t?[t.offsetWidth,t.offsetHeight]:[0,0]},t.prototype.moveTo=function(t,e){if(this.el){var n=this._styleCoord;if(x1(n,this._zr,this._container,t,e),null!=n[0]&&null!=n[1]){var r=this.el.style;eg(x0(n[0],n[1]),function(t){r[t[0]]=t[1]})}}},t.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},t.prototype.hide=function(){var t=this,e=this.el.style;this._enableDisplayTransition?(e.visibility="hidden",e.opacity="0"):e.display="none",t0.transform3dSupported&&(e.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return t._longHide=!0},500)},t.prototype.hideLater=function(t){!this._show||this._inContent&&this._enterable||this._alwaysShowContent||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(ex(this.hide,this),t)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var t=this._zr;!function(t,e){t&&n(t),e&&n(e);function n(t){var e=t[e8];e&&(e.clearMarkers&&e.clearMarkers(),delete t[e8])}}(t&&t.painter&&t.painter.getViewportRoot(),this._container);var e=this.el;if(e){e.onmouseenter=e.onmousemove=e.onmouseleave=null;var n=e.parentNode;n&&n.removeChild(e)}this.el=this._container=null},t}(),x5=function(){function t(t){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=t.getZr(),x6(this._styleCoord,this._zr,t.getWidth()/2,t.getHeight()/2)}return t.prototype.update=function(t){var e=t.get("alwaysShowContent");e&&this._moveIfResized(),this._alwaysShowContent=e},t.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},t.prototype.setContent=function(t,e,n,r,i){var o=this;eT(t)&&ok(""),this.el&&this._zr.remove(this.el);var a=n.getModel("textStyle");this.el=new sp({style:{rich:e.richTextStyles,text:t,lineHeight:22,borderWidth:1,borderColor:r,textShadowColor:a.get("textShadowColor"),fill:n.get(["textStyle","color"]),padding:d4(n,"richText"),verticalAlign:"top",align:"left"},z:n.get("z")}),eg(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(t){o.el.style[t]=n.get(t)}),eg(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(t){o.el.style[t]=a.get(t)||0}),this._zr.add(this.el);var s=this;this.el.on("mouseover",function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0}),this.el.on("mouseout",function(){s._enterable&&s._show&&s.hideLater(s._hideDelay),s._inContent=!1})},t.prototype.setEnterable=function(t){this._enterable=t},t.prototype.getSize=function(){var t=this.el,e=this.el.getBoundingRect(),n=x4(t.style);return[e.width+n.left+n.right,e.height+n.top+n.bottom]},t.prototype.moveTo=function(t,e){var n=this.el;if(n){var r=this._styleCoord;x6(r,this._zr,t,e),t=r[0],e=r[1];var i=n.style,o=x3(i.borderWidth||0),a=x4(i);n.x=t+o+a.left,n.y=e+o+a.top,n.markRedraw()}},t.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},t.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},t.prototype.hideLater=function(t){!this._show||this._inContent&&this._enterable||this._alwaysShowContent||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(ex(this.hide,this),t)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){this._zr.remove(this.el)},t}();function x3(t){return Math.max(0,t)}function x4(t){var e=x3(t.shadowBlur||0),n=x3(t.shadowOffsetX||0),r=x3(t.shadowOffsetY||0);return{left:x3(e-n),right:x3(e+n),top:x3(e-r),bottom:x3(e+r)}}function x6(t,e,n,r){t[0]=n,t[1]=r,t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var x8=new su({shape:{x:-1,y:-1,width:2,height:2}}),x7=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return tK(e,t),e.prototype.init=function(t,e){if(!(t0.node||!e.getDom())){var n,r=t.getComponent("tooltip"),i=this._renderMode="auto"===(n=r.get("renderMode"))?t0.domSupported?"html":"richText":n||"html";this._tooltipContent="richText"===i?new x5(e):new x2(e,{appendTo:r.get("appendToBody",!0)?"body":r.get("appendTo",!0)})}},e.prototype.render=function(t,e,n){if(!(t0.node||!n.getDom())){this.group.removeAll(),this._tooltipModel=t,this._ecModel=e,this._api=n;var r=this._tooltipContent;r.update(t),r.setEnterable(t.get("enterable")),this._initGlobalListener(),this._keepShow(),"richText"!==this._renderMode&&t.get("transitionDuration")?pb(this,"_updatePosition",50,"fixRate"):pw(this,"_updatePosition")}},e.prototype._initGlobalListener=function(){var t=this._tooltipModel.get("triggerOn");x$("itemTooltip",this._api,ex(function(e,n,r){"none"!==t&&(t.indexOf(e)>=0?this._tryShow(n,r):"leave"===e&&this._hide(r))},this))},e.prototype._keepShow=function(){var t=this._tooltipModel,e=this._ecModel,n=this._api,r=t.get("triggerOn");if(null!=this._lastX&&null!=this._lastY&&"none"!==r&&"click"!==r){var i=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){n.isDisposed()||i.manuallyShowTip(t,e,n,{x:i._lastX,y:i._lastY,dataByCoordSys:i._lastDataByCoordSys})})}},e.prototype.manuallyShowTip=function(t,e,n,r){if(!(r.from===this.uid||t0.node||!n.getDom())){var i=bt(r,n);this._ticket="";var o=r.dataByCoordSys,a=function(t,e,n){var r=oB(t).queryOptionMap,i=r.keys()[0];if(!(!i||"series"===i)){var o,a=oV(e,i,r.get(i),{useDefault:!1,enableAll:!1,enableNone:!1}).models[0];if(a&&(n.getViewOfComponentModel(a).group.traverse(function(e){var n=sC(e).tooltipConfig;if(n&&n.name===t.name)return o=e,!0}),o))return{componentMainType:i,componentIndex:a.componentIndex,el:o}}}(r,e,n);if(a){var s=a.el.getBoundingRect().clone();s.applyTransform(a.el.transform),this._tryShow({offsetX:s.x+s.width/2,offsetY:s.y+s.height/2,target:a.el,position:r.position,positionDefault:"bottom"},i)}else if(r.tooltip&&null!=r.x&&null!=r.y)x8.x=r.x,x8.y=r.y,x8.update(),sC(x8).tooltipConfig={name:null,option:r.tooltip},this._tryShow({offsetX:r.x,offsetY:r.y,target:x8},i);else if(o)this._tryShow({offsetX:r.x,offsetY:r.y,position:r.position,dataByCoordSys:o,tooltipOption:r.tooltipOption},i);else if(null!=r.seriesIndex){if(this._manuallyAxisShowTip(t,e,n,r))return;var l=xR(r,e),u=l.point[0],h=l.point[1];null!=u&&null!=h&&this._tryShow({offsetX:u,offsetY:h,target:l.el,position:r.position,positionDefault:"bottom"},i)}else null!=r.x&&null!=r.y&&(n.dispatchAction({type:"updateAxisPointer",x:r.x,y:r.y}),this._tryShow({offsetX:r.x,offsetY:r.y,position:r.position,target:n.getZr().findHover(r.x,r.y).target},i))}},e.prototype.manuallyHideTip=function(t,e,n,r){var i=this._tooltipContent;this._tooltipModel&&i.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,r.from!==this.uid&&this._hide(bt(r,n))},e.prototype._manuallyAxisShowTip=function(t,e,n,r){var i=r.seriesIndex,o=r.dataIndex,a=e.getComponent("axisPointer").coordSysAxesInfo;if(null!=i&&null!=o&&null!=a){var s=e.getSeriesByIndex(i);if(s&&"axis"===x9([s.getData().getItemModel(o),s,(s.coordinateSystem||{}).model],this._tooltipModel).get("trigger"))return n.dispatchAction({type:"updateAxisPointer",seriesIndex:i,dataIndex:o,position:r.position}),!0}},e.prototype._tryShow=function(t,e){var n=t.target;if(this._tooltipModel){this._lastX=t.offsetX,this._lastY=t.offsetY;var r,i,o=t.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,t);else if(n){if("legend"===sC(n).ssrType)return;this._lastDataByCoordSys=null,pJ(n,function(t){if(t.tooltipDisabled)return r=i=null,!0;r||i||(null!=sC(t).dataIndex?r=t:null!=sC(t).tooltipConfig&&(i=t))},!0),r?this._showSeriesItemTooltip(t,r,e):i?this._showComponentItemTooltip(t,i,e):this._hide(e)}else this._lastDataByCoordSys=null,this._hide(e)}},e.prototype._showOrMove=function(t,e){var n=t.get("showDelay");e=ex(e,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(e,n):e()},e.prototype._showAxisTooltip=function(t,e){var n=this._ecModel,r=this._tooltipModel,i=[e.offsetX,e.offsetY],o=x9([e.tooltipOption],r),a=this._renderMode,s=[],l=dK("section",{blocks:[],noHeader:!0}),u=[],h=new d6;eg(t,function(t){eg(t.dataByAxis,function(t){var e=n.getComponent(t.axisDim+"Axis",t.axisIndex),i=t.value;if(!(!e||null==i)){var o=xk(i,e.axis,n,t.seriesDataIndices,t.valueLabelOpt),c=dK("section",{header:o,noHeader:!eN(o),sortBlocks:!0,blocks:[]});l.blocks.push(c),eg(t.seriesDataIndices,function(l){var d=n.getSeriesByIndex(l.seriesIndex),p=l.dataIndexInside,f=d.getDataParams(p);if(!(f.dataIndex<0)){f.axisDim=t.axisDim,f.axisIndex=t.axisIndex,f.axisType=t.axisType,f.axisId=t.axisId,f.axisValue=mC(e.axis,{value:i}),f.axisValueLabel=o,f.marker=h.makeTooltipMarker("item",hF(f.color),a);var g=db(d.formatTooltip(p,!0,null)),m=g.frag;if(m){var y=x9([d],r).get("valueFormatter");c.blocks.push(y?eh({valueFormatter:y},m):m)}g.text&&u.push(g.text),s.push(f)}})}})}),l.blocks.reverse(),u.reverse();var c=e.position,d=d2(l,h,a,o.get("order"),n.get("useUTC"),o.get("textStyle"));d&&u.unshift(d);var p="richText"===a?`
|
|
44
|
+
|
|
45
|
+
`:"<br/>",f=u.join(p);this._showOrMove(o,function(){this._updateContentNotChangedOnAxis(t,s)?this._updatePosition(o,c,i[0],i[1],this._tooltipContent,s):this._showTooltipContent(o,f,s,Math.random()+"",i[0],i[1],c,null,h)})},e.prototype._showSeriesItemTooltip=function(t,e,n){var r=this._ecModel,i=sC(e),o=i.seriesIndex,a=r.getSeriesByIndex(o),s=i.dataModel||a,l=i.dataIndex,u=i.dataType,h=s.getData(u),c=this._renderMode,d=t.positionDefault,p=x9([h.getItemModel(l),s,a&&(a.coordinateSystem||{}).model],this._tooltipModel,d?{position:d}:null),f=p.get("trigger");if(null==f||"item"===f){var g=s.getDataParams(l,u),m=new d6;g.marker=m.makeTooltipMarker("item",hF(g.color),c);var y=db(s.formatTooltip(l,!1,u)),v=p.get("order"),_=p.get("valueFormatter"),x=y.frag,b=x?d2(_?eh({valueFormatter:_},x):x,m,c,v,r.get("useUTC"),p.get("textStyle")):y.text,w="item_"+s.name+"_"+l;this._showOrMove(p,function(){this._showTooltipContent(p,b,g,w,t.offsetX,t.offsetY,t.position,t.target,m)}),n({type:"showTip",dataIndexInside:l,dataIndex:h.getRawIndex(l),seriesIndex:o,from:this.uid})}},e.prototype._showComponentItemTooltip=function(t,e,n){var r="html"===this._renderMode,i=sC(e),o=i.tooltipConfig.option||{},a=o.encodeHTMLContent;if(ek(o)){var s=o;o={content:s,formatter:s},a=!0}a&&r&&o.content&&((o=el(o)).content=nr(o.content));var l=[o],u=this._ecModel.getComponent(i.componentMainType,i.componentIndex);u&&l.push(u),l.push({formatter:o.content});var h=t.positionDefault,c=x9(l,this._tooltipModel,h?{position:h}:null),d=c.get("content"),p=Math.random()+"",f=new d6;this._showOrMove(c,function(){var n=el(c.get("formatterParams")||{});this._showTooltipContent(c,d,n,p,t.offsetX,t.offsetY,t.position,e,f)}),n({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(t,e,n,r,i,o,a,s,l){if(this._ticket="",!(!t.get("showContent")||!t.get("show"))){var u=this._tooltipContent;u.setEnterable(t.get("enterable"));var h=t.get("formatter");a=a||t.get("position");var c=e,d=this._getNearestPoint([i,o],n,t.get("trigger"),t.get("borderColor"),t.get("defaultBorderColor",!0)).color;if(h)if(ek(h)){var p=t.ecModel.get("useUTC"),f=ew(n)?n[0]:n,g=f&&f.axisType&&f.axisType.indexOf("time")>=0;c=h,g&&(c=hv(f.axisValue,c,p)),c=hB(c,n,!0)}else if(eS(h)){var m=ex(function(e,r){e===this._ticket&&(u.setContent(r,l,t,d,a),this._updatePosition(t,a,i,o,u,n,s))},this);this._ticket=r,c=h(n,r,m)}else c=h;u.setContent(c,l,t,d,a),u.show(t,d),this._updatePosition(t,a,i,o,u,n,s)}},e.prototype._getNearestPoint=function(t,e,n,r,i){return"axis"===n||ew(e)?{color:r||i}:ew(e)?void 0:{color:r||e.color||e.borderColor}},e.prototype._updatePosition=function(t,e,n,r,i,o,a){var s=this._api.getWidth(),l=this._api.getHeight();e=e||t.get("position");var u=i.getSize(),h=t.get("align"),c=t.get("verticalAlign"),d=a&&a.getBoundingRect().clone();if(a&&d.applyTransform(a.transform),eS(e)&&(e=e([n,r],o,i.el,d,{viewSize:[s,l],contentSize:u.slice()})),ew(e))n=ol(e[0],s),r=ol(e[1],l);else if(eT(e)){var p=e;p.width=u[0],p.height=u[1];var f=hY(p,{width:s,height:l});n=f.x,r=f.y,h=null,c=null}else if(ek(e)&&a){var g=function(t,e,n,r){var i=n[0],o=n[1],a=Math.ceil(Math.SQRT2*r)+8,s=0,l=0,u=e.width,h=e.height;switch(t){case"inside":s=e.x+u/2-i/2,l=e.y+h/2-o/2;break;case"top":s=e.x+u/2-i/2,l=e.y-o-a;break;case"bottom":s=e.x+u/2-i/2,l=e.y+h+a;break;case"left":s=e.x-i-a,l=e.y+h/2-o/2;break;case"right":s=e.x+u+a,l=e.y+h/2-o/2}return[s,l]}(e,d,u,t.get("borderWidth"));n=g[0],r=g[1]}else{var m,y,v,_,x,b,w,S,k,M,g=(m=n,y=r,v=i,_=s,x=l,b=h?null:20,w=c?null:20,k=(S=v.getSize())[0],M=S[1],null!=b&&(m+k+b+2>_?m-=k+b:m+=b),null!=w&&(y+M+w>x?y-=M+w:y+=w),[m,y]);n=g[0],r=g[1]}if(h&&(n-=be(h)?u[0]/2:"right"===h?u[0]:0),c&&(r-=be(c)?u[1]/2:"bottom"===c?u[1]:0),xZ(t)){var C,T,I,D,A,L,$,P,g=(C=n,T=r,I=i,D=s,A=l,$=(L=I.getSize())[0],P=L[1],C=Math.min(C+$,D)-$,T=Math.min(T+P,A)-P,[C=Math.max(C,0),T=Math.max(T,0)]);n=g[0],r=g[1]}i.moveTo(n,r)},e.prototype._updateContentNotChangedOnAxis=function(t,e){var n=this._lastDataByCoordSys,r=this._cbParamsList,i=!!n&&n.length===t.length;return i&&eg(n,function(n,o){var a=n.dataByAxis||[],s=(t[o]||{}).dataByAxis||[];(i=i&&a.length===s.length)&&eg(a,function(t,n){var o=s[n]||{},a=t.seriesDataIndices||[],l=o.seriesDataIndices||[];(i=i&&t.value===o.value&&t.axisType===o.axisType&&t.axisId===o.axisId&&a.length===l.length)&&eg(a,function(t,e){var n=l[e];i=i&&t.seriesIndex===n.seriesIndex&&t.dataIndex===n.dataIndex}),r&&eg(t.seriesDataIndices,function(t){var n=t.seriesIndex,o=e[n],a=r[n];o&&a&&a.data!==o.data&&(i=!1)})})}),this._lastDataByCoordSys=t,this._cbParamsList=e,!!i},e.prototype._hide=function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},e.prototype.dispose=function(t,e){t0.node||!e.getDom()||(pw(this,"_updatePosition"),this._tooltipContent.dispose(),xE("itemTooltip",e))},e.type="tooltip",e}(ps);function x9(t,e,n){var r,i=e.ecModel;n?(r=new hn(n,i,i),r=new hn(e.option,r,i)):r=e;for(var o=t.length-1;o>=0;o--){var a=t[o];a&&(a instanceof hn&&(a=a.get("tooltip",!0)),ek(a)&&(a={formatter:a}),a&&(r=new hn(a,r,i)))}return r}function bt(t,e){return t.dispatchAction||ex(e.dispatchAction,e)}function be(t){return"center"===t||"middle"===t}var bn=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.layoutMode={type:"box",ignoreSize:!0},n}return tK(e,t),e.type="title",e.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:"center",top:h6.size.m,backgroundColor:h6.color.transparent,borderColor:h6.color.primary,borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:h6.color.primary},subtextStyle:{fontSize:12,color:h6.color.quaternary}},e}(h5),br=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return tK(e,t),e.prototype.render=function(t,e,n){if(this.group.removeAll(),t.get("show")){var r,i,o=this.group,a=t.getModel("textStyle"),s=t.getModel("subtextStyle"),l=t.get("textAlign"),u=(r=t.get("textBaseline"),i=t.get("textVerticalAlign"),r??i),h=new sp({style:uX(a,{text:t.get("text"),fill:a.getTextColor()},{disableBox:!0}),z2:10}),c=h.getBoundingRect(),d=t.get("subtext"),p=new sp({style:uX(s,{text:d,fill:s.getTextColor(),y:c.height+t.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),f=t.get("link"),g=t.get("sublink"),m=t.get("triggerEvent",!0);h.silent=!f&&!m,p.silent=!g&&!m,f&&h.on("click",function(){hV(f,"_"+t.get("target"))}),g&&p.on("click",function(){hV(g,"_"+t.get("subtarget"))}),sC(h).eventData=sC(p).eventData=m?{componentType:"title",componentIndex:t.componentIndex}:null,o.add(h),d&&o.add(p);var y=o.getBoundingRect(),v=t.getBoxLayoutParams();v.width=y.width,v.height=y.height;var _=hY(v,hK(t,n).refContainer,t.get("padding"));l||("middle"===(l=t.get("left")||t.get("right"))&&(l="center"),"right"===l?_.x+=_.width:"center"===l&&(_.x+=_.width/2)),u||("center"===(u=t.get("top")||t.get("bottom"))&&(u="middle"),"bottom"===u?_.y+=_.height:"middle"===u&&(_.y+=_.height/2),u=u||"top"),o.x=_.x,o.y=_.y,o.markRedraw();var x={align:l,verticalAlign:u};h.setStyle(x),p.setStyle(x),y=o.getBoundingRect();var b=_.margin,w=t.getItemStyle(["color","opacity"]);w.fill=t.get("backgroundColor");var S=new su({shape:{x:y.x-b[3],y:y.y-b[0],width:y.width+b[1]+b[3],height:y.height+b[0]+b[2],r:t.get("borderRadius")},style:w,subPixelOptimize:!0,silent:!0});o.add(S)}},e.type="title",e}(ps),bi=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.layoutMode={type:"box",ignoreSize:!0},n}return tK(e,t),e.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n),t.selected=t.selected||{},this._updateSelector(t)},e.prototype.mergeOption=function(e,n){t.prototype.mergeOption.call(this,e,n),this._updateSelector(e)},e.prototype._updateSelector=function(t){var e=t.selector,n=this.ecModel;!0===e&&(e=t.selector=["all","inverse"]),ew(e)&&eg(e,function(t,r){var i;ek(t)&&(t={type:t}),e[r]=eu(t,"all"===(i=t.type)?{type:"all",title:n.getLocaleModel().get(["legend","selector","all"])}:"inverse"===i?{type:"inverse",title:n.getLocaleModel().get(["legend","selector","inverse"])}:void 0)})},e.prototype.optionUpdated=function(){this._updateData(this.ecModel);var t=this._data;if(t[0]&&"single"===this.get("selectedMode")){for(var e=!1,n=0;n<t.length;n++){var r=t[n].get("name");if(this.isSelected(r)){this.select(r),e=!0;break}}e||this.select(t[0].get("name"))}},e.prototype._updateData=function(t){var e=[],n=[];t.eachRawSeries(function(r){var i,o=r.name;if(n.push(o),r.legendVisualProvider){var a=r.legendVisualProvider.getAllNames();t.isSeriesFiltered(r)||(n=n.concat(a)),a.length?e=e.concat(a):i=!0}else i=!0;i&&oP(r)&&e.push(r.name)}),this._availableNames=n;var r=this.get("data")||e,i=eV(),o=em(r,function(t){return(ek(t)||eC(t))&&(t={name:t}),i.get(t.name)?null:(i.set(t.name,!0),new hn(t,this,this.ecModel))},this);this._data=ev(o,function(t){return!!t})},e.prototype.getData=function(){return this._data},e.prototype.select=function(t){var e=this.option.selected;"single"===this.get("selectedMode")&&eg(this._data,function(t){e[t.get("name")]=!1}),e[t]=!0},e.prototype.unSelect=function(t){"single"!==this.get("selectedMode")&&(this.option.selected[t]=!1)},e.prototype.toggleSelected=function(t){var e=this.option.selected;e.hasOwnProperty(t)||(e[t]=!0),this[e[t]?"unSelect":"select"](t)},e.prototype.allSelect=function(){var t=this._data,e=this.option.selected;eg(t,function(t){e[t.get("name",!0)]=!0})},e.prototype.inverseSelect=function(){var t=this._data,e=this.option.selected;eg(t,function(t){var n=t.get("name",!0);e.hasOwnProperty(n)||(e[n]=!0),e[n]=!e[n]})},e.prototype.isSelected=function(t){var e=this.option.selected;return!(e.hasOwnProperty(t)&&!e[t])&&ed(this._availableNames,t)>=0},e.prototype.getOrient=function(){return"vertical"===this.get("orient")?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},e.type="legend.plain",e.dependencies=["series"],e.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",bottom:h6.size.m,align:"auto",backgroundColor:h6.color.transparent,borderColor:h6.color.border,borderRadius:0,borderWidth:0,padding:5,itemGap:8,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:h6.color.disabled,inactiveBorderColor:h6.color.disabled,inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:h6.color.disabled,inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:h6.color.secondary},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:h6.color.tertiary,borderWidth:1,borderColor:h6.color.border},emphasis:{selectorLabel:{show:!0,color:h6.color.quaternary}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1},triggerEvent:!1},e}(h5),bo=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.newlineDisabled=!1,n}return tK(e,t),e.prototype.init=function(){this.group.add(this._contentGroup=new i9),this.group.add(this._selectorGroup=new i9),this._isFirstRender=!0},e.prototype.getContentGroup=function(){return this._contentGroup},e.prototype.getSelectorGroup=function(){return this._selectorGroup},e.prototype.render=function(t,e,n){var r=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),t.get("show",!0)){var i,o,a=t.get("align"),s=t.get("orient");a&&"auto"!==a||(a="right"===t.get("left")&&"vertical"===s?"right":"left");var l=t.get("selector",!0),u=t.get("selectorPosition",!0);l&&(!u||"auto"===u)&&(u="horizontal"===s?"end":"start"),this.renderInner(a,t,e,n,l,s,u);var h=hK(t,n).refContainer,c=t.getBoxLayoutParams(),d=t.get("padding"),p=hY(c,h,d),f=this.layoutInner(t,a,p,r,l,u),g=hY(ec({width:f.width,height:f.height},c),h,d);this.group.x=g.x-f.x,this.group.y=g.y-f.y,this.group.markRedraw(),this.group.add(this._backgroundEl=(i=eO(t.get("padding")),(o=t.getItemStyle(["color","opacity"])).fill=t.get("backgroundColor"),new su({shape:{x:f.x-i[3],y:f.y-i[0],width:f.width+i[1]+i[3],height:f.height+i[0]+i[2],r:t.get("borderRadius")},style:o,silent:!0,z2:-1})))}},e.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},e.prototype.renderInner=function(t,e,n,r,i,o,a){var s=this.getContentGroup(),l=eV(),u=e.get("selectedMode"),h=e.get("triggerEvent"),c=[];n.eachRawSeries(function(t){t.get("legendHoverLink")||c.push(t.id)}),eg(e.getData(),function(i,o){var a=this,d=i.get("name");if(!this.newlineDisabled&&(""===d||d===`
|
|
46
|
+
`)){var p=new i9;p.newline=!0,s.add(p);return}var f=n.getSeriesByName(d)[0];if(!l.get(d))if(f){var g=f.getData(),m=g.getVisual("legendLineStyle")||{},y=g.getVisual("legendIcon"),v=g.getVisual("style"),_=this._createItem(f,d,o,i,e,t,m,v,y,u,r);_.on("click",eb(ba,d,null,r,c)).on("mouseover",eb(bl,f.name,null,r,c)).on("mouseout",eb(bu,f.name,null,r,c)),n.ssr&&_.eachChild(function(t){var e=sC(t);e.seriesIndex=f.seriesIndex,e.dataIndex=o,e.ssrType="legend"}),h&&_.eachChild(function(t){a.packEventData(t,e,f,o,d)}),l.set(d,!0)}else n.eachRawSeries(function(a){var s=this;if(!l.get(d)&&a.legendVisualProvider){var p=a.legendVisualProvider;if(!p.containName(d))return;var f=p.indexOfName(d),g=p.getItemVisual(f,"style"),m=p.getItemVisual(f,"legendIcon"),y=rW(g.fill);y&&0===y[3]&&(y[3]=.2,g=eh(eh({},g),{fill:rU(y,"rgba")}));var v=this._createItem(a,d,o,i,e,t,{},g,m,u,r);v.on("click",eb(ba,null,d,r,c)).on("mouseover",eb(bl,null,d,r,c)).on("mouseout",eb(bu,null,d,r,c)),n.ssr&&v.eachChild(function(t){var e=sC(t);e.seriesIndex=a.seriesIndex,e.dataIndex=o,e.ssrType="legend"}),h&&v.eachChild(function(t){s.packEventData(t,e,a,o,d)}),l.set(d,!0)}},this)},this),i&&this._createSelector(i,e,r,o,a)},e.prototype.packEventData=function(t,e,n,r,i){var o={componentType:"legend",componentIndex:e.componentIndex,dataIndex:r,value:i,seriesIndex:n.seriesIndex};sC(t).eventData=o},e.prototype._createSelector=function(t,e,n,r,i){var o=this.getSelectorGroup();eg(t,function(t){var r=t.type,i=new sp({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:"all"===r?"legendAllSelect":"legendInverseSelect",legendId:e.id})}});o.add(i),uU(i,{normal:e.getModel("selectorLabel"),emphasis:e.getModel(["emphasis","selectorLabel"])},{defaultText:t.title}),s7(i)})},e.prototype._createItem=function(t,e,n,r,i,o,a,s,l,u,h){var c=t.visualDrawType,d=i.get("itemWidth"),p=i.get("itemHeight"),f=i.isSelected(e),g=r.get("symbolRotate"),m=r.get("symbolKeepAspect"),y=r.get("icon"),v=function(t,e,n,r,i,o,a){function s(t,e){"auto"===t.lineWidth&&(t.lineWidth=2*(e.lineWidth>0)),eg(t,function(n,r){"inherit"===t[r]&&(t[r]=e[r])})}var l=e.getModel("itemStyle"),u=l.getItemStyle(),h=0===t.lastIndexOf("empty",0)?"fill":"stroke",c=l.getShallow("decal");u.decal=c&&"inherit"!==c?fM(c,a):r.decal,"inherit"===u.fill&&(u.fill=r[i]),"inherit"===u.stroke&&(u.stroke=r[h]),"inherit"===u.opacity&&(u.opacity=("fill"===i?r:n).opacity),s(u,r);var d=e.getModel("lineStyle"),p=d.getLineStyle();if(s(p,n),"auto"===u.fill&&(u.fill=r.fill),"auto"===u.stroke&&(u.stroke=r.fill),"auto"===p.stroke&&(p.stroke=r.fill),!o){var f=e.get("inactiveBorderWidth"),g=u[h];u.lineWidth="auto"===f?r.lineWidth>0&&g?2:0:u.lineWidth,u.fill=e.get("inactiveColor"),u.stroke=e.get("inactiveBorderColor"),p.stroke=d.get("inactiveColor"),p.lineWidth=d.get("inactiveWidth")}return{itemStyle:u,lineStyle:p}}(l=y||l||"roundRect",r,a,s,c,f,h),_=new i9,x=r.getModel("textStyle");if(eS(t.getLegendIcon)&&(!y||"inherit"===y))_.add(t.getLegendIcon({itemWidth:d,itemHeight:p,icon:l,iconRotate:g,itemStyle:v.itemStyle,lineStyle:v.lineStyle,symbolKeepAspect:m}));else{var b,w,S,k="inherit"===y&&t.getData().getVisual("symbol")?"inherit"===g?t.getData().getVisual("symbolRotate"):g:0;_.add(((S=fe(w=(b={itemWidth:d,itemHeight:p,icon:l,iconRotate:k,itemStyle:v.itemStyle,symbolKeepAspect:m}).icon||"roundRect",0,0,b.itemWidth,b.itemHeight,b.itemStyle.fill,b.symbolKeepAspect)).setStyle(b.itemStyle),S.rotation=(b.iconRotate||0)*Math.PI/180,S.setOrigin([b.itemWidth/2,b.itemHeight/2]),w.indexOf("empty")>-1&&(S.style.stroke=S.style.fill,S.style.fill=h6.color.neutral00,S.style.lineWidth=2),S))}var M=i.get("formatter"),C=e;ek(M)&&M?C=M.replace("{name}",e??""):eS(M)&&(C=M(e));var T=f?x.getTextColor():r.get("inactiveColor");_.add(new sp({style:uX(x,{text:C,x:"left"===o?d+5:-5,y:p/2,fill:T,align:o,verticalAlign:"middle"},{inheritColor:T})}));var I=new su({shape:_.getBoundingRect(),style:{fill:"transparent"}}),D=r.getModel("tooltip");return D.get("show")&&uO({el:I,componentModel:i,itemName:e,itemTooltipOption:D.option}),_.add(I),_.eachChild(function(t){t.silent=!0}),I.silent=!u,this.getContentGroup().add(_),s7(_),_.__legendDataIndex=n,_},e.prototype.layoutInner=function(t,e,n,r,i,o){var a=this.getContentGroup(),s=this.getSelectorGroup();hX(t.get("orient"),a,t.get("itemGap"),n.width,n.height);var l=a.getBoundingRect(),u=[-l.x,-l.y];if(s.markRedraw(),a.markRedraw(),!i)return a.x=u[0],a.y=u[1],this.group.getBoundingRect();hX("horizontal",s,t.get("selectorItemGap",!0));var h=s.getBoundingRect(),c=[-h.x,-h.y],d=t.get("selectorButtonGap",!0),p=t.getOrient().index,f=0===p?"width":"height",g=0===p?"height":"width",m=0===p?"y":"x";"end"===o?c[p]+=l[f]+d:u[p]+=h[f]+d,c[1-p]+=l[g]/2-h[g]/2,s.x=c[0],s.y=c[1],a.x=u[0],a.y=u[1];var y={x:0,y:0};return y[f]=l[f]+d+h[f],y[g]=Math.max(l[g],h[g]),y[m]=Math.min(0,h[m]+c[1-p]),y},e.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},e.type="legend.plain",e}(ps);function ba(t,e,n,r){bu(t,e,n,r),n.dispatchAction({type:"legendToggleSelect",name:t??e}),bl(t,e,n,r)}function bs(t){for(var e,n=t.getZr().storage.getDisplayList(),r=0,i=n.length;r<i&&!(e=n[r].states.emphasis);)r++;return e&&e.hoverLayer}function bl(t,e,n,r){bs(n)||n.dispatchAction({type:"highlight",seriesName:t,name:e,excludeSeriesId:r})}function bu(t,e,n,r){bs(n)||n.dispatchAction({type:"downplay",seriesName:t,name:e,excludeSeriesId:r})}function bh(t){var e=t.findComponents({mainType:"legend"});e&&e.length&&t.filterSeries(function(t){for(var n=0;n<e.length;n++)if(!e[n].isSelected(t.name))return!1;return!0})}function bc(t,e,n){var r="allSelect"===t||"inverseSelect"===t,i={},o=[];n.eachComponent({mainType:"legend",query:e},function(n){r?n[t]():n[t](e.name),bd(n,i),o.push(n.componentIndex)});var a={};return n.eachComponent("legend",function(t){eg(i,function(e,n){t[e?"select":"unSelect"](n)}),bd(t,a)}),r?{selected:a,legendIndex:o}:{name:e.name,selected:a}}function bd(t,e){var n=e||{};return eg(t.getData(),function(e){var r=e.get("name");if(r!==`
|
|
47
|
+
`&&""!==r){var i=t.isSelected(r);eH(n,r)?n[r]=n[r]&&i:n[r]=i}}),n}function bp(t){t.registerComponentModel(bi),t.registerComponentView(bo),t.registerProcessor(t.PRIORITY.PROCESSOR.SERIES_FILTER,bh),t.registerSubTypeDefaulter("legend",function(){return"plain"}),t.registerAction("legendToggleSelect","legendselectchanged",eb(bc,"toggleSelected")),t.registerAction("legendAllSelect","legendselectall",eb(bc,"allSelect")),t.registerAction("legendInverseSelect","legendinverseselect",eb(bc,"inverseSelect")),t.registerAction("legendSelect","legendselected",eb(bc,"select")),t.registerAction("legendUnSelect","legendunselected",eb(bc,"unSelect"))}var bf=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return tK(e,t),e.prototype.setScrollDataIndex=function(t){this.option.scrollDataIndex=t},e.prototype.init=function(e,n,r){var i=h1(e);t.prototype.init.call(this,e,n,r),bg(this,e,i)},e.prototype.mergeOption=function(e,n){t.prototype.mergeOption.call(this,e,n),bg(this,this.option,e)},e.type="legend.scroll",e.defaultOption=ho(bi.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:h6.color.accent50,pageIconInactiveColor:h6.color.accent10,pageIconSize:15,pageTextStyle:{color:h6.color.tertiary},animationDurationUpdate:800}),e}(bi);function bg(t,e,n){var r=t.getOrient(),i=[1,1];i[r.index]=0,h0(e,n,{type:"box",ignoreSize:!!i})}var bm=["width","height"],by=["x","y"],bv=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.newlineDisabled=!0,n._currentIndex=0,n}return tK(e,t),e.prototype.init=function(){t.prototype.init.call(this),this.group.add(this._containerGroup=new i9),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new i9)},e.prototype.resetInner=function(){t.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},e.prototype.renderInner=function(e,n,r,i,o,a,s){var l=this;t.prototype.renderInner.call(this,e,n,r,i,o,a,s);var u=this._controllerGroup,h=n.get("pageIconSize",!0),c=ew(h)?h:[h,h];p("pagePrev",0);var d=n.getModel("pageTextStyle");function p(t,e){var r=uD(n.get("pageIcons",!0)[n.getOrient().name][e],{onclick:ex(l._pageGo,l,t+"DataIndex",n,i)},{x:-c[0]/2,y:-c[1]/2,width:c[0],height:c[1]});r.name=t,u.add(r)}u.add(new sp({name:"pageText",style:{text:"xx/xx",fill:d.getTextColor(),font:d.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),p("pageNext",1)},e.prototype.layoutInner=function(t,e,n,r,i,o){var a=this.getSelectorGroup(),s=t.getOrient().index,l=bm[s],u=by[s],h=bm[1-s],c=by[1-s];i&&hX("horizontal",a,t.get("selectorItemGap",!0));var d=t.get("selectorButtonGap",!0),p=a.getBoundingRect(),f=[-p.x,-p.y],g=el(n);i&&(g[l]=n[l]-p[l]-d);var m=this._layoutContentAndController(t,r,g,s,l,h,c,u);if(i){if("end"===o)f[s]+=m[l]+d;else{var y=p[l]+d;f[s]-=y,m[u]-=y}m[l]+=p[l]+d,f[1-s]+=m[c]+m[h]/2-p[h]/2,m[h]=Math.max(m[h],p[h]),m[c]=Math.min(m[c],p[c]+f[1-s]),a.x=f[0],a.y=f[1],a.markRedraw()}return m},e.prototype._layoutContentAndController=function(t,e,n,r,i,o,a,s){var l,u,h=this.getContentGroup(),c=this._containerGroup,d=this._controllerGroup;hX(t.get("orient"),h,t.get("itemGap"),r?n.width:null,r?null:n.height),hX("horizontal",d,t.get("pageButtonItemGap",!0));var p=h.getBoundingRect(),f=d.getBoundingRect(),g=this._showController=p[i]>n[i],m=[-p.x,-p.y];e||(m[r]=h[s]);var y=[0,0],v=[-f.x,-f.y],_=(l=t.get("pageButtonGap",!0),u=t.get("itemGap",!0),l??u);g&&("end"===t.get("pageButtonPosition",!0)?v[r]+=n[i]-f[i]:y[r]+=f[i]+_),v[1-r]+=p[o]/2-f[o]/2,h.setPosition(m),c.setPosition(y),d.setPosition(v);var x={x:0,y:0};if(x[i]=g?n[i]:p[i],x[o]=Math.max(p[o],f[o]),x[a]=Math.min(0,f[a]+v[1-r]),c.__rectSize=n[i],g){var b={x:0,y:0};b[i]=Math.max(n[i]-f[i]-_,0),b[o]=x[o],c.setClipPath(new su({shape:b})),c.__rectSize=b[i]}else d.eachChild(function(t){t.attr({invisible:!0,silent:!0})});var w=this._getPageInfo(t);return null!=w.pageIndex&&uh(h,{x:w.contentPosition[0],y:w.contentPosition[1]},g?t:null),this._updatePageInfoView(t,w),x},e.prototype._pageGo=function(t,e,n){var r=this._getPageInfo(e)[t];null!=r&&n.dispatchAction({type:"legendScroll",scrollDataIndex:r,legendId:e.id})},e.prototype._updatePageInfoView=function(t,e){var n=this._controllerGroup;eg(["pagePrev","pageNext"],function(r){var i=null!=e[r+"DataIndex"],o=n.childOfName(r);o&&(o.setStyle("fill",i?t.get("pageIconColor",!0):t.get("pageIconInactiveColor",!0)),o.cursor=i?"pointer":"default")});var r=n.childOfName("pageText"),i=t.get("pageFormatter"),o=e.pageIndex,a=null!=o?o+1:0,s=e.pageCount;r&&i&&r.setStyle("text",ek(i)?i.replace("{current}",null==a?"":a+"").replace("{total}",null==s?"":s+""):i({current:a,total:s}))},e.prototype._getPageInfo=function(t){var e=t.get("scrollDataIndex",!0),n=this.getContentGroup(),r=this._containerGroup.__rectSize,i=t.getOrient().index,o=bm[i],a=by[i],s=this._findTargetItemIndex(e),l=n.children(),u=l[s],h=l.length,c=+!!h,d={contentPosition:[n.x,n.y],pageCount:c,pageIndex:c-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!u)return d;var p=v(u);d.contentPosition[i]=-p.s;for(var f=s+1,g=p,m=p,y=null;f<=h;++f)(!(y=v(l[f]))&&m.e>g.s+r||y&&!_(y,g.s))&&(g=m.i>g.i?m:y)&&(null==d.pageNextDataIndex&&(d.pageNextDataIndex=g.i),++d.pageCount),m=y;for(var f=s-1,g=p,m=p,y=null;f>=-1;--f)(!(y=v(l[f]))||!_(m,y.s))&&g.i<m.i&&(m=g,null==d.pagePrevDataIndex&&(d.pagePrevDataIndex=g.i),++d.pageCount,++d.pageIndex),g=y;return d;function v(t){if(t){var e=t.getBoundingRect(),n=e[a]+t[a];return{s:n,e:n+e[o],i:t.__legendDataIndex}}}function _(t,e){return t.e>=e&&t.s<=e+r}},e.prototype._findTargetItemIndex=function(t){var e,n;return this._showController?(this.getContentGroup().eachChild(function(r,i){var o=r.__legendDataIndex;null==n&&null!=o&&(n=i),o===t&&(e=i)}),e??n):0},e.type="legend.scroll",e}(bo);function b_(t){mE(bp),t.registerComponentModel(bf),t.registerComponentView(bv),t.registerAction("legendScroll","legendscroll",function(t,e){var n=t.scrollDataIndex;null!=n&&e.eachComponent({mainType:"legend",subType:"scroll",query:t},function(t){t.setScrollDataIndex(n)})})}function bx({node:t}){let e=(0,a.useRef)(null);return(0,a.useEffect)(()=>{var n,r;if(!e.current)return;let i=function(t,e){var n=!(e&&e.ssr);if(n){var r=function(t){return gs[t.getAttribute?t.getAttribute(gh):t[gh]]}(t);if(r)return r}var i=new f6(t,null,e);return i.id="ec_"+gu++,gs[i.id]=i,n&&oW(t,gh,i.id),f2(i),fT.trigger("afterinit",i),i}(e.current,{renderer:"svg"}),{chartData:o}=t;if(!o)return;let a=o.type;"area"===a&&(a="line"),"unknown"===a&&(a="bar");let s={show:o.hasLegend};"top"===o.legendPos?(s.top=0,s.left="center"):"bottom"===o.legendPos?(s.bottom=0,s.left="center"):"left"===o.legendPos?(s.left=0,s.top="middle",s.orient="vertical"):"right"===o.legendPos&&(s.right=0,s.top="middle",s.orient="vertical");let l={left:"left"===o.legendPos?"20%":"10%",right:"right"===o.legendPos?"20%":"10%",bottom:"bottom"===o.legendPos?"15%":"10%",top:"top"===o.legendPos||o.title?"15%":"10%",containLabel:!0},u={title:o.title?{text:o.title,left:"center",textStyle:{fontSize:14,fontWeight:"normal"}}:void 0,tooltip:{trigger:"axis"},legend:s,grid:l,series:o.series.map(t=>({name:t.name,type:a,data:"pie"===o.type?t.values.map((t,e)=>({value:t,name:o.categories[e]})):t.values,areaStyle:"area"===o.type?{}:void 0,itemStyle:t.color?{color:t.color}:void 0}))};if("pie"!==o.type){let t=(null==(n=o.axes)?void 0:n.x)||{showLabels:!0,showGrid:!1},e=(null==(r=o.axes)?void 0:r.y)||{showLabels:!1,showGrid:!1},i=t=>{var e;if(!t)return;let n="",r="";if((t.includes("$")||t.includes("€")||t.includes("\xa3"))&&(n=(null==(e=t.match(/[$€£]/))?void 0:e[0])||""),t.includes("%")&&(r="%"),n||r)return t=>`${n}${t}${r}`};u.xAxis={type:"category",data:o.categories,name:t.title,nameLocation:"middle",nameGap:25,axisLabel:{show:!1!==t.showLabels,interval:0,rotate:45*(o.categories.length>5),formatter:i(t.formatCode)},splitLine:{show:!0===t.showGrid},axisLine:{show:!0,lineStyle:{color:"#ccc"}},axisTick:{show:!1},min:void 0!==t.min?t.min:void 0,max:void 0!==t.max?t.max:void 0},u.yAxis={type:"value",name:e.title,nameLocation:"middle",nameGap:30,axisLabel:{show:!1!==e.showLabels,formatter:i(e.formatCode)},splitLine:{show:!0===e.showGrid},axisLine:{show:!0,lineStyle:{color:"#ccc"}},axisTick:{show:!1},min:void 0!==e.min?e.min:void 0,max:void 0!==e.max?e.max:void 0}}else u.tooltip.trigger="item",u.series.forEach(t=>{t.radius="60%",t.center=["50%","50%"],t.label={show:!0,formatter:"{b}: {d}%"}});return i.setOption(u),()=>i.dispose()},[t]),(0,o.jsx)("div",{ref:e,style:{width:"100%",height:"100%"}})}function bb({node:t}){var e,n,r;let i,a,s,l=null==(e=t.effectProps)?void 0:e.shadow,u={position:"absolute",left:`${t.offset.x}px`,top:`${t.offset.y}px`,width:`${t.size.w}px`,height:`${t.size.h}px`,zIndex:t.order,overflow:"table"===t.type?"hidden":void 0},h=[];t.rotate&&h.push(`rotate(${t.rotate}deg)`),t.flipH&&h.push("scaleX(-1)"),t.flipV&&h.push("scaleY(-1)"),h.length>0&&(u.transform=h.join(" "),u.transformOrigin="center center"),l&&(u.filter=`drop-shadow(${l.dx.toFixed(1)}px ${l.dy.toFixed(1)}px ${l.blur.toFixed(1)}px ${n=l.color,r=l.opacity,i=parseInt(n.slice(1,3),16),a=parseInt(n.slice(3,5),16),s=parseInt(n.slice(5,7),16),`rgba(${i},${a},${s},${r.toFixed(2)})`})`);let c=null;switch(t.type){case"shape":c=(0,o.jsx)(tU,{node:t});break;case"picture":c=(0,o.jsx)(tX,{node:t});break;case"table":c=(0,o.jsx)(tY,{node:t});break;case"chart":c=(0,o.jsx)(bx,{node:t});break;case"group":c=(0,o.jsx)(tq,{node:t})}return(0,o.jsx)("div",{style:u,children:c})}function bw({slide:t,width:e,height:n}){let r=tB(t.background);return(0,o.jsx)("div",{style:{width:`${e}px`,height:`${n}px`,position:"relative",overflow:"hidden",...r},children:[...t.nodes].sort((t,e)=>t.order-e.order).map((t,e)=>(0,o.jsx)(bb,{node:t},e))})}function bS({slide:t,slideWidth:e,slideHeight:n,userZoom:r=1,onZoomChange:i}){let s=(0,a.useRef)(null),[l,u]=(0,a.useState)(1);(0,a.useEffect)(()=>{window.myNodes=t.nodes;let r=()=>{s.current&&u(Math.min(Math.max(.1,(s.current.clientWidth-40)/e),Math.max(.1,(s.current.clientHeight-40)/n)))};r();let i=new ResizeObserver(r);return s.current&&i.observe(s.current),()=>i.disconnect()},[e,n]);let h=l*r,c=(0,a.useCallback)(t=>{if(t.ctrlKey||t.metaKey){t.preventDefault();let e=t.deltaY>0?-.08:.08;null==i||i(Math.max(.25,Math.min(3,r+e)))}},[r,i]);return(0,o.jsx)("div",{ref:s,onWheel:c,style:{flex:1,display:"flex",alignItems:"center",justifyContent:"center",overflow:"auto",padding:20,backgroundColor:"#d8dce3"},children:(0,o.jsx)("div",{style:{width:e*h,height:n*h,flexShrink:0,position:"relative",boxShadow:"0 4px 24px rgba(0,0,0,0.22)",backgroundColor:"#fff"},children:(0,o.jsx)("div",{style:{position:"absolute",top:0,left:0,width:e,height:n,transform:`scale(${h})`,transformOrigin:"top left"},children:(0,o.jsx)(bw,{slide:t,width:e,height:n})})})})}function bk({slides:t,slideWidth:e,slideHeight:n,currentIndex:r,onSelect:i}){let a=180/e,s=n*a;return(0,o.jsx)("div",{style:{width:"212px",overflowY:"auto",padding:"12px 16px",backgroundColor:"#f5f5f5",borderRight:"1px solid #ddd",flexShrink:0},children:t.map((t,l)=>(0,o.jsxs)("div",{onClick:()=>i(l),style:{marginBottom:"12px",cursor:"pointer",border:l===r?"2px solid #4285f4":"2px solid transparent",borderRadius:"4px",overflow:"hidden",position:"relative"},children:[(0,o.jsx)("div",{style:{width:"180px",height:`${s}px`,overflow:"hidden",position:"relative"},children:(0,o.jsx)("div",{style:{transform:`scale(${a})`,transformOrigin:"0 0",pointerEvents:"none"},children:(0,o.jsx)(bw,{slide:t,width:e,height:n})})}),(0,o.jsx)("div",{style:{position:"absolute",bottom:"4px",right:"6px",fontSize:"11px",color:"#666",backgroundColor:"rgba(255,255,255,0.8)",padding:"1px 4px",borderRadius:"2px"},children:l+1})]},l))})}mE([function(t){t.registerPainter("svg",y9)},function(t){t.registerChartView(vG),t.registerSeriesModel(vN),t.registerLayout(t.PRIORITY.VISUAL.LAYOUT,eb(ms,"bar")),t.registerLayout(t.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,{seriesType:"bar",plan:pl(),reset:function(t){if(ml(t)){var e,n,r=t.getData(),i=t.coordinateSystem,o=i.getBaseAxis(),a=i.getOtherAxis(o),s=r.getDimensionIndex(r.mapDimension(a.dim)),l=r.getDimensionIndex(r.mapDimension(o.dim)),u=t.get("showBackground",!0),h=r.mapDimension(a.dim),c=r.getCalculationInfo("stackResultDimension"),d=gZ(r,h)&&!!r.getCalculationInfo("stackedOnSeries"),p=a.isHorizontal(),f=((n=(e=a).model.get("startValue"))||(n=0),e.toGlobalCoord(e.dataToCoord("log"===e.type?n>0?n:1:n))),g=mu(t),m=t.get("barMinHeight")||0,y=c&&r.getDimensionIndex(c),v=r.getLayout("size"),_=r.getLayout("offset");return{progress:function(t,e){for(var n,r=t.count,o=g&&mn(3*r),a=g&&u&&mn(3*r),h=g&&mn(r),c=i.master.getRect(),x=p?c.width:c.height,b=e.getStore(),w=0;null!=(n=t.next());){var S=b.get(d?y:s,n),k=b.get(l,n),M=f,C=void 0;d&&(C=S-b.get(s,n));var T=void 0,I=void 0,D=void 0,A=void 0;if(p){var L=i.dataToPoint([S,k]);if(d){var $=i.dataToPoint([C,k]);M=$[0]}T=M,I=L[1]+_,D=L[0]-M,A=v,Math.abs(D)<m&&(D=(D<0?-1:1)*m)}else{var L=i.dataToPoint([k,S]);if(d){var $=i.dataToPoint([k,C]);M=$[1]}T=L[0]+_,I=M,D=v,Math.abs(A=L[1]-M)<m&&(A=(A<=0?-1:1)*m)}g?(o[w]=T,o[w+1]=I,o[w+2]=p?D:A,a&&(a[w]=p?c.x:T,a[w+1]=p?I:c.y,a[w+2]=x),h[n]=n):e.setItemLayout(n,{x:T,y:I,width:D,height:A}),w+=3}g&&e.setLayout({largePoints:o,largeDataIndices:h,largeBackgroundPoints:a,valueAxisHorizontal:p})}}}}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,vO("bar")),t.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(t,e){var n=t.componentType||"series";e.eachComponent({mainType:n,query:t},function(e){t.sortInfo&&e.axis.setCategorySortInfo(t.sortInfo)})})},function(t){t.registerChartView(vA),t.registerSeriesModel(ve),t.registerLayout(vL("line",!0)),t.registerVisual({seriesType:"line",reset:function(t){var e=t.getData(),n=t.getModel("lineStyle").getLineStyle();n&&!n.stroke&&(n.stroke=e.getVisual("style").fill),e.setVisual("legendLineStyle",n)}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,vO("line"))},function(t){var e;t.registerChartView(_l),t.registerSeriesModel(_c),e=t.registerAction,eg([["pieToggleSelect","toggleSelect"],["pieSelect","select"],["pieUnSelect","unselect"]],function(t){e(t[0],function(e,n,r){var i,o;e=eh({},e),r.dispatchAction(eh(e,{type:t[1],seriesIndex:(i=e,o=[],n.eachComponent({mainType:"series",subType:"pie",query:i},function(t){o.push(t.seriesIndex)}),o)}))})}),t.registerLayout(eb(v7,"pie")),t.registerProcessor({seriesType:"pie",reset:function(t,e){var n=e.findComponents({mainType:"legend"});if(!(!n||!n.length)){var r=t.getData();r.filterSelf(function(t){for(var e=r.getName(t),i=0;i<n.length;i++)if(!n[i].isSelected(e))return!1;return!0})}}}),t.registerProcessor({seriesType:"pie",reset:function(t,e){var n=t.getData();n.filterSelf(function(t){var e=n.mapDimension("value"),r=n.get(e,t);return!(eC(r)&&!isNaN(r)&&r<0)})}})},function(t){mE(xv),t.registerSeriesModel(_d),t.registerChartView(_m),t.registerLayout(vL("scatter"))},function(t){mE(xv),mE(xj)},function(t){mE(xj),t.registerComponentModel(xU),t.registerComponentView(x7),t.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},eG),t.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},eG)},function(t){mE(bp),mE(b_)},function(t){t.registerComponentModel(bn),t.registerComponentView(br)}]);let bM={Calibri:"Open Sans","Calibri Light":"Open Sans",Aptos:"Inter","Aptos Display":"Inter","Aptos Narrow":"Inter","Aptos Serif":"Merriweather",Cambria:"Merriweather","Cambria Math":"Merriweather",Arial:"Roboto","Arial Black":"Roboto","Times New Roman":"Lora","Segoe UI":"Open Sans","Segoe UI Light":"Open Sans","Segoe UI Semibold":"Open Sans",Tahoma:"PT Sans",Verdana:"PT Sans","Trebuchet MS":"Fira Sans",Georgia:"PT Serif","Century Gothic":"Questrial","Comic Sans MS":"Comic Neue",Consolas:"Inconsolata","Courier New":"Courier Prime"};function bC({slides:t,themeFonts:e}){return(0,a.useEffect)(()=>{let n,r;if(!t||0===t.length)return;let i=(n=new Set,r=t=>{var e;("shape"===t.type||"table"===t.type)&&"textBody"in t&&null!=(e=t.textBody)&&e.paragraphs&&t.textBody.paragraphs.forEach(t=>{t.runs.forEach(t=>{var e;null!=(e=t.props)&&e.fontFamily&&n.add(t.props.fontFamily)})}),"table"===t.type&&t.rows.forEach(t=>t.cells.forEach(t=>{var e;null!=(e=t.textBody)&&e.paragraphs&&t.textBody.paragraphs.forEach(t=>{t.runs.forEach(t=>{var e;null!=(e=t.props)&&e.fontFamily&&n.add(t.props.fontFamily)})})})),"group"===t.type&&t.children.forEach(r)},t.forEach(t=>t.nodes.forEach(r)),n),o=new Set,a="";for(let t of Array.from(i)){let n=function(t,e){let n=t;return n.startsWith("+")&&e&&(n.includes("mj")&&(n=e.majorFont),n.includes("mn")&&(n=e.minorFont)),bM[n]?bM[n]:n}(t,e);n&&bM[t]===n&&(o.add(n),a+=`@font-face { font-family: "${t}"; src: local("${n}"); }
|
|
48
|
+
`)}if(o.size>0||a){let t="pptx-dynamic-font-loader";if(!document.getElementById(t)){let e=document.createElement("style");e.id=t;let n="";o.size>0&&(n=`@import url('https://fonts.googleapis.com/css2?family=${Array.from(o).map(t=>t.replace(/\s+/g,"+")).join("&family=")}&display=swap');
|
|
49
|
+
`),e.innerHTML=n+a,document.head.appendChild(e)}}},[t,e]),null}function bT({file:t}){var e;let{data:n,loading:r,error:i}=function(t){let[e,n]=(0,a.useState)(null),[r,i]=(0,a.useState)(!1),[o,s]=(0,a.useState)(null);return(0,a.useEffect)(()=>{if(!t)return void n(null);let e=!1;return i(!0),s(null),tN(t).then(t=>{e||n(t)}).catch(t=>{e||s(t instanceof Error?t:Error(String(t)))}).finally(()=>{e||i(!1)}),()=>{e=!0}},[t]),{data:e,loading:r,error:o}}(t),[s,l]=(0,a.useState)(0),[u,h]=(0,a.useState)(1),c=(0,a.useCallback)(t=>{n&&("ArrowRight"===t.key||"ArrowDown"===t.key?l(t=>Math.min(t+1,n.slides.length-1)):"ArrowLeft"===t.key||"ArrowUp"===t.key?l(t=>Math.max(t-1,0)):"Home"===t.key?l(0):"End"===t.key?l(n.slides.length-1):"+"===t.key||"="===t.key?h(t=>Math.min(t+.1,3)):"-"===t.key&&h(t=>Math.max(t-.1,.25)))},[n]);if(r)return(0,o.jsx)("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%"},children:(0,o.jsxs)("div",{style:{textAlign:"center"},children:[(0,o.jsx)("div",{style:{width:40,height:40,border:"3px solid #333",borderTopColor:"#7c6af7",borderRadius:"50%",animation:"spin 0.8s linear infinite",margin:"0 auto 12px"}}),(0,o.jsx)("p",{style:{color:"#888"},children:"Parsing presentation..."})]})});if(i)return(0,o.jsx)("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%"},children:(0,o.jsxs)("div",{style:{textAlign:"center",color:"#e53935",padding:24,background:"#fff",borderRadius:12,boxShadow:"0 2px 12px rgba(0,0,0,.1)"},children:[(0,o.jsx)("p",{style:{fontSize:18,fontWeight:"bold"},children:"Failed to parse PPTX"}),(0,o.jsx)("p",{style:{fontSize:13,marginTop:8,color:"#666"},children:i.message})]})});if(!n||0===n.slides.length)return(0,o.jsx)("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%"},children:(0,o.jsx)("p",{style:{color:"#999"},children:"No slides to display"})});let d=Math.min(s,n.slides.length-1);return(0,o.jsxs)("div",{tabIndex:0,onKeyDown:c,style:{display:"flex",flexDirection:"column",height:"100%",outline:"none"},children:[(0,o.jsx)(bC,{slides:n.slides,themeFonts:null==(e=n.theme)?void 0:e.fontScheme}),(0,o.jsxs)("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"6px 16px",background:"#fff",borderBottom:"1px solid #e5e5e5",flexShrink:0},children:[(0,o.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8},children:[(0,o.jsx)("button",{onClick:()=>l(t=>Math.max(t-1,0)),disabled:0===d,style:bI,children:"‹"}),(0,o.jsxs)("span",{style:{fontSize:13,color:"#555",minWidth:70,textAlign:"center"},children:[d+1," / ",n.slides.length]}),(0,o.jsx)("button",{onClick:()=>l(t=>Math.min(t+1,n.slides.length-1)),disabled:d===n.slides.length-1,style:bI,children:"›"})]}),(0,o.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8},children:[(0,o.jsx)("button",{onClick:()=>h(t=>Math.max(t-.1,.25)),style:bI,children:"−"}),(0,o.jsxs)("span",{style:{fontSize:13,color:"#555",minWidth:44,textAlign:"center"},children:[Math.round(100*u),"%"]}),(0,o.jsx)("button",{onClick:()=>h(t=>Math.min(t+.1,3)),style:bI,children:"+"}),(0,o.jsx)("button",{onClick:()=>h(1),style:{...bI,fontSize:11},children:"Fit"})]})]}),(0,o.jsxs)("div",{style:{display:"flex",flex:1,overflow:"hidden"},children:[(0,o.jsx)(bk,{slides:n.slides,slideWidth:n.width,slideHeight:n.height,currentIndex:d,onSelect:l}),(0,o.jsx)(bS,{slide:n.slides[d],slideWidth:n.width,slideHeight:n.height,userZoom:u,onZoomChange:h})]})]})}let bI={padding:"3px 10px",background:"#f5f5f5",border:"1px solid #ddd",borderRadius:6,cursor:"pointer",fontSize:14,color:"#333"}},559:function(t,e,n){n.r(e),n.d(e,{PptxPreview:function(){return r.P},parsePptx:function(){return r.p}});var r=n(511)}}]);
|