From 7d1f18053bb7d0bdd55a38f44b0979615d00936b Mon Sep 17 00:00:00 2001
From: zuoxiao <zuoxiao>
Date: 星期二, 02 九月 2025 13:46:45 +0800
Subject: [PATCH] 更新首页,新增模型计算功能并添加登录检查逻辑;修改app.json以包含新页面配置;更新项目配置以支持大包体积;优化样式以提升用户体验。

---
 pages/home/home.js                 |   57 +
 pages/modeCompute/modeCompute.json |    9 
 images/chart.svg                   |    4 
 images/mode.svg                    |    1 
 miniprogram_npm/dayjs/index.js     |    4 
 project.private.config.json        |    2 
 ec-canvas/ec-canvas.wxss           |    5 
 pages/modeCompute/modeCompute.wxss |  556 +++++++++++
 README.md                          |  189 +++
 ec-canvas/ec-canvas.json           |    4 
 pages/modeCompute/modeCompute.wxml |  128 ++
 app.json                           |   10 
 ec-canvas/ec-canvas.wxml           |    4 
 images/list.svg                    |    8 
 ec-canvas/echarts.js               |    1 
 pages/modeCompute/modeCompute.js   |  478 +++++++++
 ec-canvas/ec-canvas.js             |  284 +++++
 ec-canvas/wx-canvas.js             |  111 ++
 images/calendar.svg                |    6 
 pages/home/home.wxml               |   58 
 pages/home/home.wxss               | 1022 ++++++++++---------
 21 files changed, 2,436 insertions(+), 505 deletions(-)

diff --git a/README.md b/README.md
new file mode 100644
index 0000000..f34b099
--- /dev/null
+++ b/README.md
@@ -0,0 +1,189 @@
+# 鏅鸿兘鐏屾簤鐢ㄦ埛绔皬绋嬪簭
+
+## 椤圭洰姒傝堪
+
+杩欐槸涓�涓熀浜庡井淇″皬绋嬪簭鐨勬櫤鑳界亴婧夌郴缁熺敤鎴风搴旂敤锛屼富瑕佺敤浜庡啘涓氱亴婧夌殑鏅鸿兘鍖栫鐞嗗拰鐩戞帶銆傜敤鎴峰彲浠ラ�氳繃璇ュ簲鐢ㄨ繘琛岀亴婧夋帶鍒躲�佹暟鎹洃娴嬨�佹ā鍨嬭绠楃瓑鎿嶄綔銆�
+
+## 鎶�鏈灦鏋�
+
+### 鍓嶇鎶�鏈�
+- **妗嗘灦**: 寰俊灏忕▼搴忓師鐢熸鏋�
+- **UI缁勪欢搴�**: TDesign-MiniProgram (鑵捐璁捐璇█)
+- **鍥捐〃缁樺埗**: Canvas 2D API
+- **鏃ユ湡澶勭悊**: Day.js
+- **鏍峰紡**: WXSS (鏀寔CSS3鐗规��)
+
+### 鍚庣鎺ュ彛
+- **API鍩虹璺緞**: 閫氳繃鍏ㄥ眬閰嶇疆绠$悊
+- **璁よ瘉鏂瑰紡**: Bearer Token
+- **璇锋眰灏佽**: 缁熶竴鐨剅equest宸ュ叿绫�
+- **鐘舵�佺爜澶勭悊**: 鏍囧噯鍖栫殑鍝嶅簲鐘舵�佺爜
+
+## 椤圭洰缁撴瀯
+
+```
+irrigate_user/
+鈹溾攢鈹� api/                    # API鐩稿叧閰嶇疆鍜屽伐鍏�
+鈹�   鈹溾攢鈹� config.js          # 鐜閰嶇疆
+鈹�   鈹溾攢鈹� env.js             # 鐜鍙橀噺
+鈹�   鈹溾攢鈹� request.js         # 璇锋眰宸ュ叿绫�
+鈹�   鈹斺攢鈹� statusCode.js      # 鐘舵�佺爜瀹氫箟
+鈹溾攢鈹� app.js                 # 灏忕▼搴忓叆鍙f枃浠�
+鈹溾攢鈹� app.json              # 灏忕▼搴忛厤缃枃浠�
+鈹溾攢鈹� app.wxss              # 鍏ㄥ眬鏍峰紡鏂囦欢
+鈹溾攢鈹� images/               # 鍥炬爣鍜屽浘鐗囪祫婧�
+鈹�   鈹溾攢鈹� chart.svg         # 鍥捐〃鍥炬爣
+鈹�   鈹溾攢鈹� list.svg          # 鍒楄〃鍥炬爣
+鈹�   鈹溾攢鈹� calendar.svg      # 鏃ュ巻鍥炬爣
+鈹�   鈹斺攢鈹� ...               # 鍏朵粬鍥炬爣璧勬簮
+鈹溾攢鈹� miniprogram_npm/      # 绗笁鏂逛緷璧栧寘
+鈹�   鈹斺攢鈹� tdesign-miniprogram/  # TDesign缁勪欢搴�
+鈹溾攢鈹� pages/                # 椤甸潰鏂囦欢
+鈹�   鈹溾攢鈹� home/             # 棣栭〉
+鈹�   鈹溾攢鈹� modeCompute/      # 妯″瀷璁$畻椤甸潰
+鈹�   鈹溾攢鈹� irrigation/       # 鐏屾簤鎺у埗椤甸潰
+鈹�   鈹溾攢鈹� stationMonitor/   # 绔欑偣鐩戞帶椤甸潰
+鈹�   鈹斺攢鈹� ...               # 鍏朵粬鍔熻兘椤甸潰
+鈹斺攢鈹� utils/                # 宸ュ叿鍑芥暟
+    鈹溾攢鈹� projectConfig.js  # 椤圭洰閰嶇疆
+    鈹溾攢鈹� storage.js        # 瀛樺偍宸ュ叿
+    鈹斺攢鈹� util.js           # 閫氱敤宸ュ叿
+```
+
+## 鏍稿績鍔熻兘妯″潡
+
+### 1. 棣栭〉 (pages/home)
+- 鐢ㄦ埛淇℃伅灞曠ず
+- 椤圭洰鍒囨崲鍔熻兘
+- 鍔熻兘妯″潡瀵艰埅
+- 蹇�熷叧闃�鎿嶄綔
+
+### 2. 妯″瀷璁$畻 (pages/modeCompute)
+- **鍐滀綔鐗╅�夋嫨**: 浠嶢PI鑾峰彇鍐滀綔鐗╁垪琛�
+- **鏁版嵁灞曠ず**: 鍥捐〃鍜屽垪琛ㄤ袱绉嶅睍绀烘ā寮�
+- **鏃ユ湡绛涢��**: 鏀寔鑷畾涔夋椂闂磋寖鍥�
+- **钂歌吘閲忚绠�**: 鍩轰簬ET0鍊肩殑鏅鸿兘璁$畻
+
+#### API鎺ュ彛
+- **鍐滀綔鐗╁垪琛�**: `GET /wx/mdVapor/allCropsWithYesterday`
+- **鍝嶅簲鏍煎紡**:
+```json
+{
+  "code": "0001",
+  "content": [
+    {
+      "cropId": "2025081915503200013",
+      "cropName": "鏄ョ帀绫�",
+      "et0": 13.79,
+      "factor": null,
+      "maxTmp": null,
+      "minTmp": null
+    }
+  ],
+  "success": true
+}
+```
+
+### 3. 鐏屾簤鎺у埗 (pages/irrigation)
+- 鐏屾簤璁″垝绠$悊
+- 闃�闂ㄦ帶鍒�
+- 鐏屾簤璁板綍
+
+### 4. 绔欑偣鐩戞帶 (pages/stationMonitor)
+- 瀹炴椂鏁版嵁鐩戞帶
+- 璁惧鐘舵�佹樉绀�
+- 鎶ヨ淇℃伅澶勭悊
+
+## 璁捐鐗硅壊
+
+### 1. 鐜颁唬鍖朥I璁捐
+- 娓愬彉鑳屾櫙鍜屽崱鐗囧紡甯冨眬
+- 鍦嗚璁捐鍜岄槾褰辨晥鏋�
+- 缁熶竴鐨勮摑鑹蹭富棰樿壊褰� (#1890FF)
+
+### 2. 浜や簰浣撻獙浼樺寲
+- 瑙︽懜鍙嶉鍔ㄧ敾
+- 骞虫粦杩囨浮鏁堟灉
+- 鍔犺浇鐘舵�佹彁绀�
+- 閿欒澶勭悊鏈哄埗
+
+### 3. 鍝嶅簲寮忚璁�
+- 绉诲姩绔紭鍏堣璁�
+- 鑷�傚簲甯冨眬
+- 瑙︽懜鍙嬪ソ鐨勪氦浜掑尯鍩�
+
+### 4. 鍥捐〃鍙鍖�
+- Canvas 2D缁樺埗
+- 缃戞牸鑳屾櫙
+- 娓愬彉濉厖
+- 鍔ㄦ�佹爣绛�
+
+## 寮�鍙戣鑼�
+
+### 1. 浠g爜椋庢牸
+- 浣跨敤ES6+璇硶
+- 缁熶竴鐨勫懡鍚嶈鑼�
+- 妯″潡鍖栧紑鍙�
+- 娉ㄩ噴瀹屽杽
+
+### 2. 閿欒澶勭悊
+- 缃戠粶璇锋眰寮傚父澶勭悊
+- 鐢ㄦ埛鍙嬪ソ鐨勯敊璇彁绀�
+- 鏃ュ織璁板綍鍜岃皟璇�
+
+### 3. 鎬ц兘浼樺寲
+- 鍚堢悊鐨勫姞杞界姸鎬�
+- 鏁版嵁缂撳瓨鏈哄埗
+- 鍥剧墖璧勬簮浼樺寲
+
+## 閮ㄧ讲璇存槑
+
+### 1. 鐜閰嶇疆
+- 寮�鍙戠幆澧�: 閫氳繃 `api/config.js` 閰嶇疆
+- 鐢熶骇鐜: 閫氳繃鍏ㄥ眬鍙橀噺鍔ㄦ�侀厤缃�
+
+### 2. 鏋勫缓閮ㄧ讲
+- 浣跨敤寰俊寮�鍙戣�呭伐鍏�
+- 鏀寔鐪熸満璋冭瘯
+- 鏀寔浜戝紑鍙戦儴缃�
+
+### 3. 鐗堟湰绠$悊
+- 閬靛惊璇箟鍖栫増鏈彿
+- 璁板綍鍔熻兘鏇存柊鏃ュ織
+- 鏀寔鍥炴粴鎿嶄綔
+
+## 渚濊禆绠$悊
+
+### 1. 鏍稿績渚濊禆
+- **dayjs**: 杞婚噺绾ф棩鏈熷鐞嗗簱
+- **tdesign-miniprogram**: 浼佷笟绾I缁勪欢搴�
+- **echarts-for-weixin**锛氬浘琛ㄦ帶浠�
+
+### 2. 鐗堟湰瑕佹眰
+- 寰俊灏忕▼搴忓熀纭�搴�: 2.0.0+
+- Node.js: 14.0.0+
+- 寰俊寮�鍙戣�呭伐鍏�: 鏈�鏂扮増鏈�
+
+## 寮�鍙戝洟闃�
+
+- **鍓嶇寮�鍙�**: 鏅鸿兘鐏屾簤鍥㈤槦
+- **UI璁捐**: 閬靛惊TDesign璁捐瑙勮寖
+- **娴嬭瘯楠岃瘉**: 瀹屾暣鐨勬祴璇曟祦绋�
+
+## 鏇存柊鏃ュ織
+
+### v1.0.0 (2024-01-XX)
+- 鍒濆鐗堟湰鍙戝竷
+- 鏍稿績鍔熻兘妯″潡瀹屾垚
+- 妯″瀷璁$畻椤甸潰瀹炵幇
+- 瀹屾暣鐨勭敤鎴风晫闈㈣璁�
+
+## 鑱旂郴鏂瑰紡
+
+- **鎶�鏈敮鎸�**: 鏅鸿兘鐏屾簤鎶�鏈洟闃�
+- **闂鍙嶉**: 閫氳繃搴旂敤鍐呭弽棣堝姛鑳�
+- **鏂囨。鏇存柊**: 瀹氭湡缁存姢鍜屾洿鏂�
+
+---
+
+*鏈枃妗d細闅忕潃椤圭洰鍙戝睍鎸佺画鏇存柊锛岃鍏虫敞鏈�鏂扮増鏈��*
diff --git a/app.json b/app.json
index d88b19a..40abae5 100644
--- a/app.json
+++ b/app.json
@@ -1,6 +1,5 @@
 {
   "pages": [
-
     "pages/home/home",
     "pages/stationMonitor/stationMonitor",
     "pages/valveList/valveList",
@@ -21,7 +20,8 @@
     "pages/irrigation/irrigation",
     "pages/createIrrigation/createIrrigation",
     "pages/irrigationDetail/irrigationDetail",
-    "pages/groupDetail/groupDetail"
+    "pages/groupDetail/groupDetail",
+    "pages/modeCompute/modeCompute"
   ],
   "window": {
     "navigationBarTextStyle": "white",
@@ -33,8 +33,8 @@
   "lazyCodeLoading": "requiredComponents",
   "plugins": {
     "ezplayer": {
-        "version": "1.1.0",
-        "provider": "wxf2b3a0262975d8c2"
+      "version": "1.1.0",
+      "provider": "wxf2b3a0262975d8c2"
     }
-}
+  }
 }
\ No newline at end of file
diff --git a/ec-canvas/ec-canvas.js b/ec-canvas/ec-canvas.js
new file mode 100644
index 0000000..278f4a9
--- /dev/null
+++ b/ec-canvas/ec-canvas.js
@@ -0,0 +1,284 @@
+import WxCanvas from './wx-canvas';
+import * as echarts from './echarts';
+
+let ctx;
+
+function compareVersion(v1, v2) {
+  v1 = v1.split('.')
+  v2 = v2.split('.')
+  const len = Math.max(v1.length, v2.length)
+
+  while (v1.length < len) {
+    v1.push('0')
+  }
+  while (v2.length < len) {
+    v2.push('0')
+  }
+
+  for (let i = 0; i < len; i++) {
+    const num1 = parseInt(v1[i])
+    const num2 = parseInt(v2[i])
+
+    if (num1 > num2) {
+      return 1
+    } else if (num1 < num2) {
+      return -1
+    }
+  }
+  return 0
+}
+
+Component({
+  properties: {
+    canvasId: {
+      type: String,
+      value: 'ec-canvas'
+    },
+
+    ec: {
+      type: Object
+    },
+
+    forceUseOldCanvas: {
+      type: Boolean,
+      value: false
+    }
+  },
+
+  data: {
+    isUseNewCanvas: false
+  },
+
+  ready: function () {
+    // Disable prograssive because drawImage doesn't support DOM as parameter
+    // See https://developers.weixin.qq.com/miniprogram/dev/api/canvas/CanvasContext.drawImage.html
+    echarts.registerPreprocessor(option => {
+      if (option && option.series) {
+        if (option.series.length > 0) {
+          option.series.forEach(series => {
+            series.progressive = 0;
+          });
+        }
+        else if (typeof option.series === 'object') {
+          option.series.progressive = 0;
+        }
+      }
+    });
+
+    if (!this.data.ec) {
+      console.warn('缁勪欢闇�缁戝畾 ec 鍙橀噺锛屼緥锛�<ec-canvas id="mychart-dom-bar" '
+        + 'canvas-id="mychart-bar" ec="{{ ec }}"></ec-canvas>');
+      return;
+    }
+
+    if (!this.data.ec.lazyLoad) {
+      this.init();
+    }
+  },
+
+  methods: {
+    init: function (callback) {
+      const version = wx.getSystemInfoSync().SDKVersion
+
+      const canUseNewCanvas = compareVersion(version, '2.9.0') >= 0;
+      const forceUseOldCanvas = this.data.forceUseOldCanvas;
+      const isUseNewCanvas = canUseNewCanvas && !forceUseOldCanvas;
+      this.setData({ isUseNewCanvas });
+
+      if (forceUseOldCanvas && canUseNewCanvas) {
+        console.warn('寮�鍙戣�呭己鍒朵娇鐢ㄦ棫canvas,寤鸿鍏抽棴');
+      }
+
+      if (isUseNewCanvas) {
+        // console.log('寰俊鍩虹搴撶増鏈ぇ浜�2.9.0锛屽紑濮嬩娇鐢�<canvas type="2d"/>');
+        // 2.9.0 鍙互浣跨敤 <canvas type="2d"></canvas>
+        this.initByNewWay(callback);
+      } else {
+        const isValid = compareVersion(version, '1.9.91') >= 0
+        if (!isValid) {
+          console.error('寰俊鍩虹搴撶増鏈繃浣庯紝闇�澶т簬绛変簬 1.9.91銆�'
+            + '鍙傝锛歨ttps://github.com/ecomfe/echarts-for-weixin'
+            + '#%E5%BE%AE%E4%BF%A1%E7%89%88%E6%9C%AC%E8%A6%81%E6%B1%82');
+          return;
+        } else {
+          console.warn('寤鸿灏嗗井淇″熀纭�搴撹皟鏁村ぇ浜庣瓑浜�2.9.0鐗堟湰銆傚崌绾у悗缁樺浘灏嗘湁鏇村ソ鎬ц兘');
+          this.initByOldWay(callback);
+        }
+      }
+    },
+
+    initByOldWay(callback) {
+      // 1.9.91 <= version < 2.9.0锛氬師鏉ョ殑鏂瑰紡鍒濆鍖�
+      ctx = wx.createCanvasContext(this.data.canvasId, this);
+      const canvas = new WxCanvas(ctx, this.data.canvasId, false);
+
+      if (echarts.setPlatformAPI) {
+        echarts.setPlatformAPI({
+          createCanvas: () => canvas,
+        });
+      } else {
+        echarts.setCanvasCreator(() => canvas);
+      };
+      // const canvasDpr = wx.getSystemInfoSync().pixelRatio // 寰俊鏃х殑canvas涓嶈兘浼犲叆dpr
+      const canvasDpr = 1
+      var query = wx.createSelectorQuery().in(this);
+      query.select('.ec-canvas').boundingClientRect(res => {
+        if (typeof callback === 'function') {
+          this.chart = callback(canvas, res.width, res.height, canvasDpr);
+        }
+        else if (this.data.ec && typeof this.data.ec.onInit === 'function') {
+          this.chart = this.data.ec.onInit(canvas, res.width, res.height, canvasDpr);
+        }
+        else {
+          this.triggerEvent('init', {
+            canvas: canvas,
+            width: res.width,
+            height: res.height,
+            canvasDpr: canvasDpr // 澧炲姞浜哾pr锛屽彲鏂逛究澶栭潰echarts.init
+          });
+        }
+      }).exec();
+    },
+
+    initByNewWay(callback) {
+      // version >= 2.9.0锛氫娇鐢ㄦ柊鐨勬柟寮忓垵濮嬪寲
+      const query = wx.createSelectorQuery().in(this)
+      query
+        .select('.ec-canvas')
+        .fields({ node: true, size: true })
+        .exec(res => {
+          const canvasNode = res[0].node
+          this.canvasNode = canvasNode
+
+          const canvasDpr = wx.getSystemInfoSync().pixelRatio
+          const canvasWidth = res[0].width
+          const canvasHeight = res[0].height
+
+          const ctx = canvasNode.getContext('2d')
+
+          const canvas = new WxCanvas(ctx, this.data.canvasId, true, canvasNode)
+          if (echarts.setPlatformAPI) {
+            echarts.setPlatformAPI({
+              createCanvas: () => canvas,
+              loadImage: (src, onload, onerror) => {
+                if (canvasNode.createImage) {
+                  const image = canvasNode.createImage();
+                  image.onload = onload;
+                  image.onerror = onerror;
+                  image.src = src;
+                  return image;
+                }
+                console.error('鍔犺浇鍥剧墖渚濊禆 `Canvas.createImage()` API锛岃姹傚皬绋嬪簭鍩虹搴撶増鏈湪 2.7.0 鍙婁互涓娿��');
+                // PENDING fallback?
+              }
+            })
+          } else {
+            echarts.setCanvasCreator(() => canvas)
+          }
+
+          if (typeof callback === 'function') {
+            this.chart = callback(canvas, canvasWidth, canvasHeight, canvasDpr)
+          } else if (this.data.ec && typeof this.data.ec.onInit === 'function') {
+            this.chart = this.data.ec.onInit(canvas, canvasWidth, canvasHeight, canvasDpr)
+          } else {
+            this.triggerEvent('init', {
+              canvas: canvas,
+              width: canvasWidth,
+              height: canvasHeight,
+              dpr: canvasDpr
+            })
+          }
+        })
+    },
+    canvasToTempFilePath(opt) {
+      if (this.data.isUseNewCanvas) {
+        // 鏂扮増
+        const query = wx.createSelectorQuery().in(this)
+        query
+          .select('.ec-canvas')
+          .fields({ node: true, size: true })
+          .exec(res => {
+            const canvasNode = res[0].node
+            opt.canvas = canvasNode
+            wx.canvasToTempFilePath(opt)
+          })
+      } else {
+        // 鏃х殑
+        if (!opt.canvasId) {
+          opt.canvasId = this.data.canvasId;
+        }
+        ctx.draw(true, () => {
+          wx.canvasToTempFilePath(opt, this);
+        });
+      }
+    },
+
+    touchStart(e) {
+      if (this.chart && e.touches.length > 0) {
+        var touch = e.touches[0];
+        var handler = this.chart.getZr().handler;
+        handler.dispatch('mousedown', {
+          zrX: touch.x,
+          zrY: touch.y,
+          preventDefault: () => {},
+          stopImmediatePropagation: () => {},
+          stopPropagation: () => {}
+        });
+        handler.dispatch('mousemove', {
+          zrX: touch.x,
+          zrY: touch.y,
+          preventDefault: () => {},
+          stopImmediatePropagation: () => {},
+          stopPropagation: () => {}
+        });
+        handler.processGesture(wrapTouch(e), 'start');
+      }
+    },
+
+    touchMove(e) {
+      if (this.chart && e.touches.length > 0) {
+        var touch = e.touches[0];
+        var handler = this.chart.getZr().handler;
+        handler.dispatch('mousemove', {
+          zrX: touch.x,
+          zrY: touch.y,
+          preventDefault: () => {},
+          stopImmediatePropagation: () => {},
+          stopPropagation: () => {}
+        });
+        handler.processGesture(wrapTouch(e), 'change');
+      }
+    },
+
+    touchEnd(e) {
+      if (this.chart) {
+        const touch = e.changedTouches ? e.changedTouches[0] : {};
+        var handler = this.chart.getZr().handler;
+        handler.dispatch('mouseup', {
+          zrX: touch.x,
+          zrY: touch.y,
+          preventDefault: () => {},
+          stopImmediatePropagation: () => {},
+          stopPropagation: () => {}
+        });
+        handler.dispatch('click', {
+          zrX: touch.x,
+          zrY: touch.y,
+          preventDefault: () => {},
+          stopImmediatePropagation: () => {},
+          stopPropagation: () => {}
+        });
+        handler.processGesture(wrapTouch(e), 'end');
+      }
+    }
+  }
+});
+
+function wrapTouch(event) {
+  for (let i = 0; i < event.touches.length; ++i) {
+    const touch = event.touches[i];
+    touch.offsetX = touch.x;
+    touch.offsetY = touch.y;
+  }
+  return event;
+}
diff --git a/ec-canvas/ec-canvas.json b/ec-canvas/ec-canvas.json
new file mode 100644
index 0000000..e8cfaaf
--- /dev/null
+++ b/ec-canvas/ec-canvas.json
@@ -0,0 +1,4 @@
+{
+  "component": true,
+  "usingComponents": {}
+}
\ No newline at end of file
diff --git a/ec-canvas/ec-canvas.wxml b/ec-canvas/ec-canvas.wxml
new file mode 100644
index 0000000..88826d9
--- /dev/null
+++ b/ec-canvas/ec-canvas.wxml
@@ -0,0 +1,4 @@
+<!-- 鏂扮殑锛氭帴鍙e鍏朵簡H5 -->
+<canvas wx:if="{{isUseNewCanvas}}" type="2d" class="ec-canvas" canvas-id="{{ canvasId }}" bindinit="init" bindtouchstart="{{ ec.disableTouch ? '' : 'touchStart' }}" bindtouchmove="{{ ec.disableTouch ? '' : 'touchMove' }}" bindtouchend="{{ ec.disableTouch ? '' : 'touchEnd' }}"></canvas>
+<!-- 鏃х殑 -->
+<canvas wx:else class="ec-canvas" canvas-id="{{ canvasId }}" bindinit="init" bindtouchstart="{{ ec.disableTouch ? '' : 'touchStart' }}" bindtouchmove="{{ ec.disableTouch ? '' : 'touchMove' }}" bindtouchend="{{ ec.disableTouch ? '' : 'touchEnd' }}"></canvas>
diff --git a/ec-canvas/ec-canvas.wxss b/ec-canvas/ec-canvas.wxss
new file mode 100644
index 0000000..5307021
--- /dev/null
+++ b/ec-canvas/ec-canvas.wxss
@@ -0,0 +1,5 @@
+.ec-canvas {
+  width: 100%;
+  height: 100%;
+  z-index: 1;
+}
diff --git a/ec-canvas/echarts.js b/ec-canvas/echarts.js
new file mode 100644
index 0000000..fb4c5c0
--- /dev/null
+++ b/ec-canvas/echarts.js
@@ -0,0 +1 @@
+!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).echarts={})}(this,function(t){"use strict";var x=function(t,e){return(x=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 u(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}x(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var b=function(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1},w=new function(){this.browser=new b,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="undefined"!=typeof window};"object"==typeof wx&&"function"==typeof wx.getSystemInfoSync?(w.wxa=!0,w.touchEventsSupported=!0):"undefined"==typeof document&&"undefined"!=typeof self?w.worker=!0:!w.hasGlobalWindow||"Deno"in window||"undefined"!=typeof navigator&&"string"==typeof navigator.userAgent&&-1<navigator.userAgent.indexOf("Node.js")?(w.node=!0,w.svgSupported=!0):(J=navigator.userAgent,Ut=(Gt=w).browser,rt=J.match(/Firefox\/([\d.]+)/),R=J.match(/MSIE\s([\d.]+)/)||J.match(/Trident\/.+?rv:(([\d.]+))/),Q=J.match(/Edge?\/([\d.]+)/),J=/micromessenger/i.test(J),rt&&(Ut.firefox=!0,Ut.version=rt[1]),R&&(Ut.ie=!0,Ut.version=R[1]),Q&&(Ut.edge=!0,Ut.version=Q[1],Ut.newEdge=18<+Q[1].split(".")[0]),J&&(Ut.weChat=!0),Gt.svgSupported="undefined"!=typeof SVGRect,Gt.touchEventsSupported="ontouchstart"in window&&!Ut.ie&&!Ut.edge,Gt.pointerEventsSupported="onpointerdown"in window&&(Ut.edge||Ut.ie&&11<=+Ut.version),(Gt.domSupported="undefined"!=typeof document)&&(rt=document.documentElement.style,Gt.transform3dSupported=(Ut.ie&&"transition"in rt||Ut.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in rt)&&!("OTransition"in rt),Gt.transformSupported=Gt.transform3dSupported||Ut.ie&&9<=+Ut.version));var j="12px sans-serif";var S,T,C=function(t){var e={};if("undefined"!=typeof JSON)for(var n=0;n<t.length;n++){var i=String.fromCharCode(n+32),r=(t.charCodeAt(n)-20)/100;e[i]=r}return e}("007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N"),U={createCanvas:function(){return"undefined"!=typeof document&&document.createElement("canvas")},measureText:function(t,e){if(S||(n=U.createCanvas(),S=n&&n.getContext("2d")),S)return T!==e&&(T=S.font=e||j),S.measureText(t);t=t||"",e=e||j;var n=/((?:\d+)?\.?\d*)px/.exec(e),i=n&&+n[1]||12,r=0;if(0<=e.indexOf("mono"))r=i*t.length;else for(var o=0;o<t.length;o++){var a=C[t[o]];r+=null==a?i:a*i}return{width:r}},loadImage:function(t,e,n){var i=new Image;return i.onload=e,i.onerror=n,i.src=t,i}};function k(t){for(var e in U)t[e]&&(U[e]=t[e])}var D=lt(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(t,e){return t["[object "+e+"]"]=!0,t},{}),A=lt(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(t,e){return t["[object "+e+"Array]"]=!0,t},{}),L=Object.prototype.toString,R=Array.prototype,q=R.forEach,Z=R.filter,K=R.slice,$=R.map,Q=function(){}.constructor,J=Q?Q.prototype:null,tt="__proto__",et=2311;function nt(){return et++}function it(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];"undefined"!=typeof console&&console.error.apply(console,t)}function y(t){if(null==t||"object"!=typeof t)return t;var e=t,n=L.call(t);if("[object Array]"===n){if(!Lt(t))for(var e=[],i=0,r=t.length;i<r;i++)e[i]=y(t[i])}else if(A[n]){if(!Lt(t)){var o=t.constructor;if(o.from)e=o.from(t);else{e=new o(t.length);for(i=0,r=t.length;i<r;i++)e[i]=t[i]}}}else if(!D[n]&&!Lt(t)&&!vt(t))for(var a in e={},t)t.hasOwnProperty(a)&&a!==tt&&(e[a]=y(t[a]));return e}function d(t,e,n){if(!H(e)||!H(t))return n?y(e):t;for(var i in e){var r,o;e.hasOwnProperty(i)&&i!==tt&&(r=t[i],!H(o=e[i])||!H(r)||F(o)||F(r)||vt(o)||vt(r)||yt(o)||yt(r)||Lt(o)||Lt(r)?!n&&i in t||(t[i]=y(e[i])):d(r,o,n))}return t}function P(t,e){if(Object.assign)Object.assign(t,e);else for(var n in e)e.hasOwnProperty(n)&&n!==tt&&(t[n]=e[n]);return t}function z(t,e,n){for(var i=ct(e),r=0,o=i.length;r<o;r++){var a=i[r];(n?null!=e[a]:null==t[a])&&(t[a]=e[a])}return t}var rt=U.createCanvas;function I(t,e){if(t){if(t.indexOf)return t.indexOf(e);for(var n=0,i=t.length;n<i;n++)if(t[n]===e)return n}return-1}function ot(t,e){var n,i=t.prototype;function r(){}for(n in r.prototype=e.prototype,t.prototype=new r,i)i.hasOwnProperty(n)&&(t.prototype[n]=i[n]);(t.prototype.constructor=t).superClass=e}function at(t,e,n){if(t="prototype"in t?t.prototype:t,e="prototype"in e?e.prototype:e,Object.getOwnPropertyNames)for(var i=Object.getOwnPropertyNames(e),r=0;r<i.length;r++){var o=i[r];"constructor"!==o&&(n?null!=e[o]:null==t[o])&&(t[o]=e[o])}else z(t,e,n)}function st(t){return!!t&&"string"!=typeof t&&"number"==typeof t.length}function N(t,e,n){if(t&&e)if(t.forEach&&t.forEach===q)t.forEach(e,n);else if(t.length===+t.length)for(var i=0,r=t.length;i<r;i++)e.call(n,t[i],i,t);else for(var o in t)t.hasOwnProperty(o)&&e.call(n,t[o],o,t)}function E(t,e,n){if(!t)return[];if(!e)return Tt(t);if(t.map&&t.map===$)return t.map(e,n);for(var i=[],r=0,o=t.length;r<o;r++)i.push(e.call(n,t[r],r,t));return i}function lt(t,e,n,i){if(t&&e){for(var r=0,o=t.length;r<o;r++)n=e.call(i,n,t[r],r,t);return n}}function ut(t,e,n){if(!t)return[];if(!e)return Tt(t);if(t.filter&&t.filter===Z)return t.filter(e,n);for(var i=[],r=0,o=t.length;r<o;r++)e.call(n,t[r],r,t)&&i.push(t[r]);return i}function ht(t,e,n){if(t&&e)for(var i=0,r=t.length;i<r;i++)if(e.call(n,t[i],i,t))return t[i]}function ct(t){if(!t)return[];if(Object.keys)return Object.keys(t);var e,n=[];for(e in t)t.hasOwnProperty(e)&&n.push(e);return n}var pt=J&&B(J.bind)?J.call.bind(J.bind):function(t,e){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];return function(){return t.apply(e,n.concat(K.call(arguments)))}};function dt(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return function(){return t.apply(this,e.concat(K.call(arguments)))}}function F(t){return Array.isArray?Array.isArray(t):"[object Array]"===L.call(t)}function B(t){return"function"==typeof t}function V(t){return"string"==typeof t}function ft(t){return"[object String]"===L.call(t)}function gt(t){return"number"==typeof t}function H(t){var e=typeof t;return"function"==e||!!t&&"object"==e}function yt(t){return!!D[L.call(t)]}function mt(t){return!!A[L.call(t)]}function vt(t){return"object"==typeof t&&"number"==typeof t.nodeType&&"object"==typeof t.ownerDocument}function _t(t){return null!=t.colorStops}function xt(t){return null!=t.image}function bt(t){return"[object RegExp]"===L.call(t)}function wt(t){return t!=t}function St(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n=0,i=t.length;n<i;n++)if(null!=t[n])return t[n]}function W(t,e){return null!=t?t:e}function Mt(t,e,n){return null!=t?t:null!=e?e:n}function Tt(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return K.apply(t,e)}function Ct(t){var e;return"number"==typeof t?[t,t,t,t]:2===(e=t.length)?[t[0],t[1],t[0],t[1]]:3===e?[t[0],t[1],t[2],t[1]]:t}function kt(t,e){if(!t)throw new Error(e)}function It(t){return null==t?null:"function"==typeof t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var Dt="__ec_primitive__";function At(t){t[Dt]=!0}function Lt(t){return t[Dt]}Ot.prototype.delete=function(t){var e=this.has(t);return e&&delete this.data[t],e},Ot.prototype.has=function(t){return this.data.hasOwnProperty(t)},Ot.prototype.get=function(t){return this.data[t]},Ot.prototype.set=function(t,e){return this.data[t]=e,this},Ot.prototype.keys=function(){return ct(this.data)},Ot.prototype.forEach=function(t){var e,n=this.data;for(e in n)n.hasOwnProperty(e)&&t(n[e],e)};var Pt=Ot;function Ot(){this.data={}}var Rt="function"==typeof Map;Bt.prototype.hasKey=function(t){return this.data.has(t)},Bt.prototype.get=function(t){return this.data.get(t)},Bt.prototype.set=function(t,e){return this.data.set(t,e),e},Bt.prototype.each=function(n,i){this.data.forEach(function(t,e){n.call(i,t,e)})},Bt.prototype.keys=function(){var t=this.data.keys();return Rt?Array.from(t):t},Bt.prototype.removeKey=function(t){this.data.delete(t)};var Nt=Bt;function Bt(t){var n=F(t),i=(this.data=new(Rt?Map:Pt),this);function e(t,e){n?i.set(t,e):i.set(e,t)}t instanceof Bt?t.each(e):t&&N(t,e)}function O(t){return new Nt(t)}function zt(t,e){for(var n=new t.constructor(t.length+e.length),i=0;i<t.length;i++)n[i]=t[i];for(var r=t.length,i=0;i<e.length;i++)n[i+r]=e[i];return n}function Et(t,e){var n,t=Object.create?Object.create(t):((n=function(){}).prototype=t,new n);return e&&P(t,e),t}function Ft(t){t=t.style;t.webkitUserSelect="none",t.userSelect="none",t.webkitTapHighlightColor="rgba(0,0,0,0)",t["-webkit-touch-callout"]="none"}function Vt(t,e){return t.hasOwnProperty(e)}function Ht(){}var Wt=180/Math.PI,Gt=Number.EPSILON||Math.pow(2,-52),Ut=Object.freeze({__proto__:null,EPSILON:Gt,HashMap:Nt,RADIAN_TO_DEGREE:Wt,assert:kt,bind:pt,clone:y,concatArray:zt,createCanvas:rt,createHashMap:O,createObject:Et,curry:dt,defaults:z,disableUserSelect:Ft,each:N,eqNaN:wt,extend:P,filter:ut,find:ht,guid:nt,hasOwn:Vt,indexOf:I,inherits:ot,isArray:F,isArrayLike:st,isBuiltInObject:yt,isDom:vt,isFunction:B,isGradientObject:_t,isImagePatternObject:xt,isNumber:gt,isObject:H,isPrimitive:Lt,isRegExp:bt,isString:V,isStringSafe:ft,isTypedArray:mt,keys:ct,logError:it,map:E,merge:d,mergeAll:function(t,e){for(var n=t[0],i=1,r=t.length;i<r;i++)n=d(n,t[i],e);return n},mixin:at,noop:Ht,normalizeCssArray:Ct,reduce:lt,retrieve:St,retrieve2:W,retrieve3:Mt,setAsPrimitive:At,slice:Tt,trim:It});function Xt(t,e){return[t=null==t?0:t,e=null==e?0:e]}function Yt(t){return[t[0],t[1]]}function qt(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t}function Zt(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t}function jt(t){return Math.sqrt(Kt(t))}function Kt(t){return t[0]*t[0]+t[1]*t[1]}function $t(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t}function Qt(t,e){var n=jt(e);return 0===n?(t[0]=0,t[1]=0):(t[0]=e[0]/n,t[1]=e[1]/n),t}function Jt(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}var te=Jt;function ee(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])}var ne=ee;function ie(t,e,n,i){return t[0]=e[0]+i*(n[0]-e[0]),t[1]=e[1]+i*(n[1]-e[1]),t}function re(t,e,n){var i=e[0],e=e[1];return t[0]=n[0]*i+n[2]*e+n[4],t[1]=n[1]*i+n[3]*e+n[5],t}function oe(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t}function ae(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t}var se=Object.freeze({__proto__:null,add:qt,applyTransform:re,clone:Yt,copy:function(t,e){return t[0]=e[0],t[1]=e[1],t},create:Xt,dist:te,distSquare:ne,distance:Jt,distanceSquare:ee,div:function(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t},dot:function(t,e){return t[0]*e[0]+t[1]*e[1]},len:jt,lenSquare:Kt,length:jt,lengthSquare:Kt,lerp:ie,max:ae,min:oe,mul:function(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t},negate:function(t,e){return t[0]=-e[0],t[1]=-e[1],t},normalize:Qt,scale:$t,scaleAndAdd:function(t,e,n,i){return t[0]=e[0]+n[0]*i,t[1]=e[1]+n[1]*i,t},set:function(t,e,n){return t[0]=e,t[1]=n,t},sub:Zt}),le=function(t,e){this.target=t,this.topTarget=e&&e.topTarget},ue=(he.prototype._dragStart=function(t){for(var e=t.target;e&&!e.draggable;)e=e.parent||e.__hostTarget;e&&((this._draggingTarget=e).dragging=!0,this._x=t.offsetX,this._y=t.offsetY,this.handler.dispatchToElement(new le(e,t),"dragstart",t.event))},he.prototype._drag=function(t){var e,n,i,r,o=this._draggingTarget;o&&(e=t.offsetX,n=t.offsetY,i=e-this._x,r=n-this._y,this._x=e,this._y=n,o.drift(i,r,t),this.handler.dispatchToElement(new le(o,t),"drag",t.event),i=this.handler.findHover(e,n,o).target,r=this._dropTarget,o!==(this._dropTarget=i))&&(r&&i!==r&&this.handler.dispatchToElement(new le(r,t),"dragleave",t.event),i)&&i!==r&&this.handler.dispatchToElement(new le(i,t),"dragenter",t.event)},he.prototype._dragEnd=function(t){var e=this._draggingTarget;e&&(e.dragging=!1),this.handler.dispatchToElement(new le(e,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new le(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},he);function he(t){(this.handler=t).on("mousedown",this._dragStart,this),t.on("mousemove",this._drag,this),t.on("mouseup",this._dragEnd,this)}pe.prototype.on=function(t,e,n,i){this._$handlers||(this._$handlers={});var r=this._$handlers;if("function"==typeof e&&(i=n,n=e,e=null),n&&t){var o=this._$eventProcessor;null!=e&&o&&o.normalizeQuery&&(e=o.normalizeQuery(e)),r[t]||(r[t]=[]);for(var a=0;a<r[t].length;a++)if(r[t][a].h===n)return this;o={h:n,query:e,ctx:i||this,callAtLast:n.zrEventfulCallAtLast},e=r[t].length-1,i=r[t][e];i&&i.callAtLast?r[t].splice(e,0,o):r[t].push(o)}return this},pe.prototype.isSilent=function(t){var e=this._$handlers;return!e||!e[t]||!e[t].length},pe.prototype.off=function(t,e){var n=this._$handlers;if(n)if(t)if(e){if(n[t]){for(var i=[],r=0,o=n[t].length;r<o;r++)n[t][r].h!==e&&i.push(n[t][r]);n[t]=i}n[t]&&0===n[t].length&&delete n[t]}else delete n[t];else this._$handlers={};return this},pe.prototype.trigger=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(this._$handlers){var i=this._$handlers[t],r=this._$eventProcessor;if(i)for(var o=e.length,a=i.length,s=0;s<a;s++){var l=i[s];if(!r||!r.filter||null==l.query||r.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)}}r&&r.afterTrigger&&r.afterTrigger(t)}return this},pe.prototype.triggerWithContext=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(this._$handlers){var i=this._$handlers[t],r=this._$eventProcessor;if(i)for(var o=e.length,a=e[o-1],s=i.length,l=0;l<s;l++){var u=i[l];if(!r||!r.filter||null==u.query||r.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))}}r&&r.afterTrigger&&r.afterTrigger(t)}return this};var ce=pe;function pe(t){t&&(this._$eventProcessor=t)}var de=Math.log(2);function fe(t,e,n,i,r,o){var a,s=i+"-"+r,l=t.length;if(o.hasOwnProperty(s))return o[s];if(1===e)return a=Math.round(Math.log((1<<l)-1&~r)/de),t[n][a];for(var u=i|1<<n,h=n+1;i&1<<h;)h++;for(var c=0,p=0,d=0;p<l;p++){var f=1<<p;f&r||(c+=(d%2?-1:1)*t[n][p]*fe(t,e-1,h,u,r|f,o),d++)}return o[s]=c}function ge(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]]],i={},r=fe(n,8,0,0,0,i);if(0!==r){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)*fe(n,7,0===a?1:0,1<<a,1<<s,i)/r*e[a];return function(t,e,n){var i=e*o[6]+n*o[7]+1;t[0]=(e*o[0]+n*o[1]+o[2])/i,t[1]=(e*o[3]+n*o[4]+o[5])/i}}}var ye="___zrEVENTSAVED",me=[];function ve(t,e,n,i,r){if(e.getBoundingClientRect&&w.domSupported&&!_e(e)){var o=e[ye]||(e[ye]={}),e=function(t,e,n){for(var i=n?"invTrans":"trans",r=e[i],o=e.srcCoords,a=[],s=[],l=!0,u=0;u<4;u++){var h=t[u].getBoundingClientRect(),c=2*u,p=h.left,h=h.top;a.push(p,h),l=l&&o&&p===o[c]&&h===o[1+c],s.push(t[u].offsetLeft,t[u].offsetTop)}return l&&r?r:(e.srcCoords=a,e[i]=n?ge(s,a):ge(a,s))}(function(t,e){var n=e.markers;if(!n){n=e.markers=[];for(var i=["left","right"],r=["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",i[l]+":0",r[u]+":0",i[1-l]+":auto",r[1-u]+":auto",""].join("!important;"),t.appendChild(a),n.push(a)}e.clearMarkers=function(){N(n,function(t){t.parentNode&&t.parentNode.removeChild(t)})}}return n}(e,o),o,r);if(e)return e(t,n,i),!0}return!1}function _e(t){return"CANVAS"===t.nodeName.toUpperCase()}var xe=/([&<>"'])/g,be={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function we(t){return null==t?"":(t+"").replace(xe,function(t,e){return be[e]})}var Se=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Me=[],Te=w.browser.firefox&&+w.browser.version.split(".")[0]<39;function Ce(t,e,n,i){return n=n||{},i?ke(t,e,n):Te&&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):ke(t,e,n),n}function ke(t,e,n){if(w.domSupported&&t.getBoundingClientRect){var i,r=e.clientX,e=e.clientY;if(_e(t))return i=t.getBoundingClientRect(),n.zrX=r-i.left,void(n.zrY=e-i.top);if(ve(Me,t,r,e))return n.zrX=Me[0],void(n.zrY=Me[1])}n.zrX=n.zrY=0}function Ie(t){return t||window.event}function De(t,e,n){var i;return null==(e=Ie(e)).zrX&&((i=e.type)&&0<=i.indexOf("touch")?(i=("touchend"!==i?e.targetTouches:e.changedTouches)[0])&&Ce(t,i,e,n):(Ce(t,e,e,n),i=function(t){var e=t.wheelDelta;if(e)return e;var n=t.deltaX,t=t.deltaY;return null!=n&&null!=t?3*(0!==t?Math.abs(t):Math.abs(n))*(0<t||!(t<0)&&0<n?-1:1):e}(e),e.zrDelta=i?i/120:-(e.detail||0)/3),t=e.button,null==e.which&&void 0!==t&&Se.test(e.type))&&(e.which=1&t?1:2&t?3:4&t?2:0),e}var Ae=function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0},Le=(Pe.prototype.recognize=function(t,e,n){return this._doTrack(t,e,n),this._recognize(t)},Pe.prototype.clear=function(){return this._track.length=0,this},Pe.prototype._doTrack=function(t,e,n){var i=t.touches;if(i){for(var r={points:[],touches:[],target:e,event:t},o=0,a=i.length;o<a;o++){var s=i[o],l=Ce(n,s,{});r.points.push([l.zrX,l.zrY]),r.touches.push(s)}this._track.push(r)}},Pe.prototype._recognize=function(t){for(var e in Re)if(Re.hasOwnProperty(e)){e=Re[e](this._track,t);if(e)return e}},Pe);function Pe(){this._track=[]}function Oe(t){var e=t[1][0]-t[0][0],t=t[1][1]-t[0][1];return Math.sqrt(e*e+t*t)}var Re={pinch:function(t,e){var n,i=t.length;if(i)return n=(t[i-1]||{}).points,(i=(t[i-2]||{}).points||n)&&1<i.length&&n&&1<n.length?(i=Oe(n)/Oe(i),isFinite(i)||(i=1),e.pinchScale=i,i=[(n[0][0]+n[1][0])/2,(n[0][1]+n[1][1])/2],e.pinchX=i[0],e.pinchY=i[1],{type:"pinch",target:t[0].target,event:e}):void 0}};function Ne(){return[1,0,0,1,0,0]}function Be(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function ze(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 Ee(t,e,n){var i=e[0]*n[0]+e[2]*n[1],r=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],n=e[1]*n[4]+e[3]*n[5]+e[5];return t[0]=i,t[1]=r,t[2]=o,t[3]=a,t[4]=s,t[5]=n,t}function Fe(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 Ve(t,e,n,i){void 0===i&&(i=[0,0]);var r=e[0],o=e[2],a=e[4],s=e[1],l=e[3],e=e[5],u=Math.sin(n),n=Math.cos(n);return t[0]=r*n+s*u,t[1]=-r*u+s*n,t[2]=o*n+l*u,t[3]=-o*u+n*l,t[4]=n*(a-i[0])+u*(e-i[1])+i[0],t[5]=n*(e-i[1])-u*(a-i[0])+i[1],t}function He(t,e,n){var i=n[0],n=n[1];return t[0]=e[0]*i,t[1]=e[1]*n,t[2]=e[2]*i,t[3]=e[3]*n,t[4]=e[4]*i,t[5]=e[5]*n,t}function We(t,e){var n=e[0],i=e[2],r=e[4],o=e[1],a=e[3],e=e[5],s=n*a-o*i;return s?(t[0]=a*(s=1/s),t[1]=-o*s,t[2]=-i*s,t[3]=n*s,t[4]=(i*e-a*r)*s,t[5]=(o*r-n*e)*s,t):null}var Ge=Object.freeze({__proto__:null,clone:function(t){var e=Ne();return ze(e,t),e},copy:ze,create:Ne,identity:Be,invert:We,mul:Ee,rotate:Ve,scale:He,translate:Fe}),M=(e.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},e.prototype.clone=function(){return new e(this.x,this.y)},e.prototype.set=function(t,e){return this.x=t,this.y=e,this},e.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},e.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},e.prototype.scale=function(t){this.x*=t,this.y*=t},e.prototype.scaleAndAdd=function(t,e){this.x+=t.x*e,this.y+=t.y*e},e.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},e.prototype.dot=function(t){return this.x*t.x+this.y*t.y},e.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},e.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},e.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},e.prototype.distance=function(t){var e=this.x-t.x,t=this.y-t.y;return Math.sqrt(e*e+t*t)},e.prototype.distanceSquare=function(t){var e=this.x-t.x,t=this.y-t.y;return e*e+t*t},e.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},e.prototype.transform=function(t){var e,n;if(t)return e=this.x,n=this.y,this.x=t[0]*e+t[2]*n+t[4],this.y=t[1]*e+t[3]*n+t[5],this},e.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},e.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},e.set=function(t,e,n){t.x=e,t.y=n},e.copy=function(t,e){t.x=e.x,t.y=e.y},e.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},e.lenSquare=function(t){return t.x*t.x+t.y*t.y},e.dot=function(t,e){return t.x*e.x+t.y*e.y},e.add=function(t,e,n){t.x=e.x+n.x,t.y=e.y+n.y},e.sub=function(t,e,n){t.x=e.x-n.x,t.y=e.y-n.y},e.scale=function(t,e,n){t.x=e.x*n,t.y=e.y*n},e.scaleAndAdd=function(t,e,n,i){t.x=e.x+n.x*i,t.y=e.y+n.y*i},e.lerp=function(t,e,n,i){var r=1-i;t.x=r*e.x+i*n.x,t.y=r*e.y+i*n.y},e);function e(t,e){this.x=t||0,this.y=e||0}var Ue=Math.min,Xe=Math.max,Ye=Math.abs,qe=["x","y"],Ze=["width","height"],je=new M,Ke=new M,$e=new M,Qe=new M,Je=ln(),tn=Je.minTv,en=Je.maxTv,nn=[0,0],X=(rn.set=function(t,e,n,i,r){return i<0&&(e+=i,i=-i),r<0&&(n+=r,r=-r),t.x=e,t.y=n,t.width=i,t.height=r,t},rn.prototype.union=function(t){var e=Ue(t.x,this.x),n=Ue(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Xe(t.x+t.width,this.x+this.width)-e:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=Xe(t.y+t.height,this.y+this.height)-n:this.height=t.height,this.x=e,this.y=n},rn.prototype.applyTransform=function(t){rn.applyTransform(this,this,t)},rn.prototype.calculateTransform=function(t){var e=t.width/this.width,n=t.height/this.height,i=Ne();return Fe(i,i,[-this.x,-this.y]),He(i,i,[e,n]),Fe(i,i,[t.x,t.y]),i},rn.prototype.intersect=function(t,e,n){return rn.intersect(this,t,e,n)},rn.intersect=function(t,e,n,i){n&&M.set(n,0,0);var r=i&&i.outIntersectRect||null,o=i&&i.clamp;if(r&&(r.x=r.y=r.width=r.height=NaN),!t||!e)return!1;t instanceof rn||(t=rn.set(on,t.x,t.y,t.width,t.height)),e instanceof rn||(e=rn.set(an,e.x,e.y,e.width,e.height));var a=!!n,i=(Je.reset(i,a),Je.touchThreshold),s=t.x+i,l=t.x+t.width-i,u=t.y+i,t=t.y+t.height-i,h=e.x+i,c=e.x+e.width-i,p=e.y+i,e=e.y+e.height-i;return!(l<s||t<u||c<h||e<p)&&(i=!(l<h||c<s||t<p||e<u),(a||r)&&(nn[0]=1/0,sn(s,l,h,c,nn[1]=0,a,r,o),sn(u,t,p,e,1,a,r,o),a)&&M.copy(n,i?Je.useDir?Je.dirMinTv:tn:en),i)},rn.contain=function(t,e,n){return e>=t.x&&e<=t.x+t.width&&n>=t.y&&n<=t.y+t.height},rn.prototype.contain=function(t,e){return rn.contain(this,t,e)},rn.prototype.clone=function(){return new rn(this.x,this.y,this.width,this.height)},rn.prototype.copy=function(t){rn.copy(this,t)},rn.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},rn.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},rn.prototype.isZero=function(){return 0===this.width||0===this.height},rn.create=function(t){return new rn(t.x,t.y,t.width,t.height)},rn.copy=function(t,e){return t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height,t},rn.applyTransform=function(t,e,n){var i,r,o,a;n?n[1]<1e-5&&-1e-5<n[1]&&n[2]<1e-5&&-1e-5<n[2]?(i=n[0],r=n[3],o=n[4],a=n[5],t.x=e.x*i+o,t.y=e.y*r+a,t.width=e.width*i,t.height=e.height*r,t.width<0&&(t.x+=t.width,t.width=-t.width),t.height<0&&(t.y+=t.height,t.height=-t.height)):(je.x=$e.x=e.x,je.y=Qe.y=e.y,Ke.x=Qe.x=e.x+e.width,Ke.y=$e.y=e.y+e.height,je.transform(n),Qe.transform(n),Ke.transform(n),$e.transform(n),t.x=Ue(je.x,Ke.x,$e.x,Qe.x),t.y=Ue(je.y,Ke.y,$e.y,Qe.y),o=Xe(je.x,Ke.x,$e.x,Qe.x),a=Xe(je.y,Ke.y,$e.y,Qe.y),t.width=o-t.x,t.height=a-t.y):t!==e&&rn.copy(t,e)},rn);function rn(t,e,n,i){rn.set(this,t,e,n,i)}var on=new X(0,0,0,0),an=new X(0,0,0,0);function sn(t,e,n,i,r,o,a,s){var l=Ye(e-n),u=Ye(i-t),h=Ue(l,u),c=qe[r],p=qe[1-r],r=Ze[r];e<n||i<t?l<u?(o&&(en[c]=-l),s&&(a[c]=e,a[r]=0)):(o&&(en[c]=u),s&&(a[c]=t,a[r]=0)):(a&&(a[c]=Xe(t,n),a[r]=Ue(e,i)-a[c]),o&&(h<nn[0]||Je.useDir)&&(nn[0]=Ue(h,nn[0]),(l<u||!Je.bidirectional)&&(tn[c]=l,tn[p]=0,Je.useDir)&&Je.calcDirMTV(),u<=l||!Je.bidirectional)&&(tn[c]=-u,tn[p]=0,Je.useDir)&&Je.calcDirMTV())}function ln(){var a=0,s=new M,l=new M,u={minTv:new M,maxTv:new M,useDir:!1,dirMinTv:new M,touchThreshold:0,bidirectional:!0,negativeSize:!1,reset:function(t,e){u.touchThreshold=0,t&&null!=t.touchThreshold&&(u.touchThreshold=Xe(0,t.touchThreshold)),u.negativeSize=!1,e&&(u.minTv.set(1/0,1/0),u.maxTv.set(0,0),u.useDir=!1,t)&&null!=t.direction&&(u.useDir=!0,u.dirMinTv.copy(u.minTv),l.copy(u.minTv),a=t.direction,u.bidirectional=null==t.bidirectional||!!t.bidirectional,u.bidirectional||s.set(Math.cos(a),Math.sin(a)))},calcDirMTV:function(){var t=u.minTv,e=u.dirMinTv,n=t.y*t.y+t.x*t.x,i=Math.sin(a),r=Math.cos(a),o=i*t.y+r*t.x;h(o)?h(t.x)&&h(t.y)&&e.set(0,0):(l.x=n*r/o,l.y=n*i/o,h(l.x)&&h(l.y)?e.set(0,0):(u.bidirectional||0<s.dot(l))&&l.len()<e.len()&&e.copy(l))}};function h(t){return Ye(t)<1e-10}return u}var un="silent";function hn(){Ae(this.event)}u(dn,cn=ce),dn.prototype.dispose=function(){},dn.prototype.setCursor=function(){};var cn,pn=dn;function dn(){var t=null!==cn&&cn.apply(this,arguments)||this;return t.handler=null,t}var fn,gn=function(t,e){this.x=t,this.y=e},yn=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],mn=new X(0,0,0,0),vn=(u(_n,fn=ce),_n.prototype.setHandlerProxy=function(e){this.proxy&&this.proxy.dispose(),e&&(N(yn,function(t){e.on&&e.on(t,this[t],this)},this),e.handler=this),this.proxy=e},_n.prototype.mousemove=function(t){var e=t.zrX,n=t.zrY,i=bn(this,e,n),r=this._hovered,o=r.target,i=(o&&!o.__zr&&(o=(r=this.findHover(r.x,r.y)).target),this._hovered=i?new gn(e,n):this.findHover(e,n)),e=i.target,n=this.proxy;n.setCursor&&n.setCursor(e?e.cursor:"default"),o&&e!==o&&this.dispatchToElement(r,"mouseout",t),this.dispatchToElement(i,"mousemove",t),e&&e!==o&&this.dispatchToElement(i,"mouseover",t)},_n.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})},_n.prototype.resize=function(){this._hovered=new gn(0,0)},_n.prototype.dispatch=function(t,e){t=this[t];t&&t.call(this,e)},_n.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},_n.prototype.setCursorStyle=function(t){var e=this.proxy;e.setCursor&&e.setCursor(t)},_n.prototype.dispatchToElement=function(t,e,n){var i=(t=t||{}).target;if(!i||!i.silent){for(var r="on"+e,o={type:e,event:n,target:(t=t).target,topTarget:t.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:hn};i&&(i[r]&&(o.cancelBubble=!!i[r].call(i,o)),i.trigger(e,o),i=i.__hostTarget||i.parent,!o.cancelBubble););o.cancelBubble||(this.trigger(e,o),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(t){"function"==typeof t[r]&&t[r].call(t,o),t.trigger&&t.trigger(e,o)}))}},_n.prototype.findHover=function(t,e,n){var i=this.storage.getDisplayList(),r=new gn(t,e);if(xn(i,r,t,e,n),this._pointerSize&&!r.target){for(var o=[],a=this._pointerSize,s=a/2,l=new X(t-s,e-s,a,a),u=i.length-1;0<=u;u--){var h=i[u];h===n||h.ignore||h.ignoreCoarsePointer||h.parent&&h.parent.ignoreCoarsePointer||(mn.copy(h.getBoundingRect()),h.transform&&mn.applyTransform(h.transform),mn.intersect(l)&&o.push(h))}if(o.length)for(var c=Math.PI/12,p=2*Math.PI,d=0;d<s;d+=4)for(var f=0;f<p;f+=c)if(xn(o,r,t+d*Math.cos(f),e+d*Math.sin(f),n),r.target)return r}return r},_n.prototype.processGesture=function(t,e){this._gestureMgr||(this._gestureMgr=new Le);var n=this._gestureMgr,i=("start"===e&&n.clear(),n.recognize(t,this.findHover(t.zrX,t.zrY,null).target,this.proxy.dom));"end"===e&&n.clear(),i&&(e=i.type,t.gestureEvent=e,(n=new gn).target=i.target,this.dispatchToElement(n,e,i.event))},_n);function _n(t,e,n,i,r){var o=fn.call(this)||this;return o._hovered=new gn(0,0),o.storage=t,o.painter=e,o.painterRoot=i,o._pointerSize=r,n=n||new pn,o.proxy=null,o.setHandlerProxy(n),o._draggingMgr=new ue(o),o}function xn(t,e,n,i,r){for(var o=t.length-1;0<=o;o--){var a=t[o],s=void 0;if(a!==r&&!a.ignore&&(s=function(t,e,n){if(t[t.rectHover?"rectContain":"contain"](e,n)){for(var i=t,r=void 0,o=!1;i;){if(!(o=i.ignoreClip?!0:o)){var a=i.getClipPath();if(a&&!a.contain(e,n))return!1}i.silent&&(r=!0);a=i.__hostTarget,i=a?i.ignoreHostSilent?null:a:i.parent}return!r||un}return!1}(a,n,i))&&(e.topTarget||(e.topTarget=a),s!==un)){e.target=a;break}}}function bn(t,e,n){t=t.painter;return e<0||e>t.getWidth()||n<0||n>t.getHeight()}N(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(a){vn.prototype[a]=function(t){var e,n,i=t.zrX,r=t.zrY,o=bn(this,i,r);if("mouseup"===a&&o||(n=(e=this.findHover(i,r)).target),"mousedown"===a)this._downEl=n,this._downPoint=[t.zrX,t.zrY],this._upEl=n;else if("mouseup"===a)this._upEl=n;else if("click"===a){if(this._downEl!==this._upEl||!this._downPoint||4<te(this._downPoint,[t.zrX,t.zrY]))return;this._downPoint=null}this.dispatchToElement(e,a,t)}});var wn=32,Sn=7;function Mn(t,e,n,i){var r=e+1;if(r===n)return 1;if(i(t[r++],t[e])<0){for(;r<n&&i(t[r],t[r-1])<0;)r++;var o=t,a=e,s=r;for(s--;a<s;){var l=o[a];o[a++]=o[s],o[s--]=l}}else for(;r<n&&0<=i(t[r],t[r-1]);)r++;return r-e}function Tn(t,e,n,i,r){for(i===e&&i++;i<n;i++){for(var o,a=t[i],s=e,l=i;s<l;)r(a,t[o=s+l>>>1])<0?l=o:s=1+o;var u=i-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(;0<u;)t[s+u]=t[s+u-1],u--}t[s]=a}}function Cn(t,e,n,i,r,o){var a=0,s=0,l=1;if(0<o(t,e[n+r])){for(s=i-r;l<s&&0<o(t,e[n+r+l]);)(l=1+((a=l)<<1))<=0&&(l=s);s<l&&(l=s),a+=r,l+=r}else{for(s=r+1;l<s&&o(t,e[n+r-l])<=0;)(l=1+((a=l)<<1))<=0&&(l=s);i=a,a=r-(l=s<l?s:l),l=r-i}for(a++;a<l;){var u=a+(l-a>>>1);0<o(t,e[n+u])?a=u+1:l=u}return l}function kn(t,e,n,i,r,o){var a=0,s=0,l=1;if(o(t,e[n+r])<0){for(s=r+1;l<s&&o(t,e[n+r-l])<0;)(l=1+((a=l)<<1))<=0&&(l=s);var u=a,a=r-(l=s<l?s:l),l=r-u}else{for(s=i-r;l<s&&0<=o(t,e[n+r+l]);)(l=1+((a=l)<<1))<=0&&(l=s);s<l&&(l=s),a+=r,l+=r}for(a++;a<l;){var h=a+(l-a>>>1);o(t,e[n+h])<0?l=h:a=h+1}return l}function In(A,L){var P,O,R=Sn,N=0,B=[];function e(t){var e=P[t],n=O[t],i=P[t+1],r=O[t+1],t=(O[t]=n+r,t===N-3&&(P[t+1]=P[t+2],O[t+1]=O[t+2]),N--,kn(A[i],A,e,n,0,L));if(e+=t,0!=(n-=t)&&0!==(r=Cn(A[e+n-1],A,i,r,r-1,L)))if(n<=r){var o=e,a=n,t=i,s=r,l=0;for(l=0;l<a;l++)B[l]=A[o+l];var u=0,h=t,c=o;if(A[c++]=A[h++],0==--s)for(l=0;l<a;l++)A[c+l]=B[u+l];else if(1===a){for(l=0;l<s;l++)A[c+l]=A[h+l];A[c+s]=B[u]}else{for(var p,d,f,g=R;;){d=p=0,f=!1;do{if(L(A[h],B[u])<0){if(A[c++]=A[h++],d++,(p=0)==--s){f=!0;break}}else if(A[c++]=B[u++],p++,d=0,1==--a){f=!0;break}}while((p|d)<g);if(f)break;do{if(0!==(p=kn(A[h],B,u,a,0,L))){for(l=0;l<p;l++)A[c+l]=B[u+l];if(c+=p,u+=p,(a-=p)<=1){f=!0;break}}if(A[c++]=A[h++],0==--s){f=!0;break}if(0!==(d=Cn(B[u],A,h,s,0,L))){for(l=0;l<d;l++)A[c+l]=A[h+l];if(c+=d,h+=d,0===(s-=d)){f=!0;break}}if(A[c++]=B[u++],1==--a){f=!0;break}}while(g--,Sn<=p||Sn<=d);if(f)break;g<0&&(g=0),g+=2}if((R=g)<1&&(R=1),1===a){for(l=0;l<s;l++)A[c+l]=A[h+l];A[c+s]=B[u]}else{if(0===a)throw new Error;for(l=0;l<a;l++)A[c+l]=B[u+l]}}}else{var y=e,m=n,v=i,_=r,x=0;for(x=0;x<_;x++)B[x]=A[v+x];var b=y+m-1,w=_-1,S=v+_-1,M=0,T=0;if(A[S--]=A[b--],0==--m)for(M=S-(_-1),x=0;x<_;x++)A[M+x]=B[x];else if(1===_){for(T=(S-=m)+1,M=(b-=m)+1,x=m-1;0<=x;x--)A[T+x]=A[M+x];A[S]=B[w]}else{for(var C=R;;){var k=0,I=0,D=!1;do{if(L(B[w],A[b])<0){if(A[S--]=A[b--],k++,(I=0)==--m){D=!0;break}}else if(A[S--]=B[w--],I++,k=0,1==--_){D=!0;break}}while((k|I)<C);if(D)break;do{if(0!==(k=m-kn(B[w],A,y,m,m-1,L))){for(m-=k,T=(S-=k)+1,M=(b-=k)+1,x=k-1;0<=x;x--)A[T+x]=A[M+x];if(0===m){D=!0;break}}if(A[S--]=B[w--],1==--_){D=!0;break}if(0!==(I=_-Cn(A[b],B,0,_,_-1,L))){for(_-=I,T=(S-=I)+1,M=(w-=I)+1,x=0;x<I;x++)A[T+x]=B[M+x];if(_<=1){D=!0;break}}if(A[S--]=A[b--],0==--m){D=!0;break}}while(C--,Sn<=k||Sn<=I);if(D)break;C<0&&(C=0),C+=2}if((R=C)<1&&(R=1),1===_){for(T=(S-=m)+1,M=(b-=m)+1,x=m-1;0<=x;x--)A[T+x]=A[M+x];A[S]=B[w]}else{if(0===_)throw new Error;for(M=S-(_-1),x=0;x<_;x++)A[M+x]=B[x]}}}}return P=[],O=[],{mergeRuns:function(){for(;1<N;){var t=N-2;if(1<=t&&O[t-1]<=O[t]+O[t+1]||2<=t&&O[t-2]<=O[t]+O[t-1])O[t-1]<O[t+1]&&t--;else if(O[t]>O[t+1])break;e(t)}},forceMergeRuns:function(){for(;1<N;){var t=N-2;0<t&&O[t-1]<O[t+1]&&t--,e(t)}},pushRun:function(t,e){P[N]=t,O[N]=e,N+=1}}}function Dn(t,e,n,i){var r=(i=i||t.length)-(n=n||0);if(!(r<2)){var o=0;if(r<wn)Tn(t,n,i,n+(o=Mn(t,n,i,e)),e);else{var a,s=In(t,e),l=function(t){for(var e=0;wn<=t;)e|=1&t,t>>=1;return t+e}(r);do{}while((o=Mn(t,n,i,e))<l&&(Tn(t,n,n+(a=l<(a=r)?l:r),n+o,e),o=a),s.pushRun(n,o),s.mergeRuns(),n+=o,0!==(r-=o));s.forceMergeRuns()}}}var An=1,Ln=4,Pn=!1;function On(){Pn||(Pn=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function Rn(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}Bn.prototype.traverse=function(t,e){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(t,e)},Bn.prototype.getDisplayList=function(t,e){e=e||!1;var n=this._displayList;return!t&&n.length||this.updateDisplayList(e),n},Bn.prototype.updateDisplayList=function(t){this._displayListLen=0;for(var e=this._roots,n=this._displayList,i=0,r=e.length;i<r;i++)this._updateAndAddDisplayable(e[i],null,t);n.length=this._displayListLen,Dn(n,Rn)},Bn.prototype._updateAndAddDisplayable=function(t,e,n){if(!t.ignore||n){t.beforeUpdate(),t.update(),t.afterUpdate();var i=t.getClipPath(),r=e&&e.length,o=0,a=t.__clipPaths;if(!t.ignoreClip&&(r||i)){if(a=a||(t.__clipPaths=[]),r)for(var s=0;s<e.length;s++)a[o++]=e[s];for(var l=i,u=t;l;)l.parent=u,l.updateTransform(),l=(u=a[o++]=l).getClipPath()}if(a&&(a.length=o),t.childrenRef){for(var h=t.childrenRef(),c=0;c<h.length;c++){var p=h[c];t.__dirty&&(p.__dirty|=An),this._updateAndAddDisplayable(p,a,n)}t.__dirty=0}else{r=t;isNaN(r.z)&&(On(),r.z=0),isNaN(r.z2)&&(On(),r.z2=0),isNaN(r.zlevel)&&(On(),r.zlevel=0),this._displayList[this._displayListLen++]=r}i=t.getDecalElement&&t.getDecalElement(),r=(i&&this._updateAndAddDisplayable(i,a,n),t.getTextGuideLine()),i=(r&&this._updateAndAddDisplayable(r,a,n),t.getTextContent());i&&this._updateAndAddDisplayable(i,a,n)}},Bn.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},Bn.prototype.delRoot=function(t){if(t instanceof Array)for(var e=0,n=t.length;e<n;e++)this.delRoot(t[e]);else{var i=I(this._roots,t);0<=i&&this._roots.splice(i,1)}},Bn.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},Bn.prototype.getRoots=function(){return this._roots},Bn.prototype.dispose=function(){this._displayList=null,this._roots=null};var Nn=Bn;function Bn(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=Rn}var zn=w.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){return setTimeout(t,16)},En={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*(2-Math.pow(2,-10*(t-1)))},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:(e=!n||n<1?(n=1,.1):.4*Math.asin(1/n)/(2*Math.PI),-(n*Math.pow(2,10*--t)*Math.sin((t-e)*(2*Math.PI)/.4)))},elasticOut:function(t){var e,n=.1;return 0===t?0:1===t?1:(e=!n||n<1?(n=1,.1):.4*Math.asin(1/n)/(2*Math.PI),n*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/.4)+1)},elasticInOut:function(t){var e,n=.1;return 0===t?0:1===t?1:(e=!n||n<1?(n=1,.1):.4*Math.asin(1/n)/(2*Math.PI),(t*=2)<1?n*Math.pow(2,10*--t)*Math.sin((t-e)*(2*Math.PI)/.4)*-.5:n*Math.pow(2,-10*--t)*Math.sin((t-e)*(2*Math.PI)/.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){var e=2.5949095;return(t*=2)<1?t*t*((1+e)*t-e)*.5:.5*((t-=2)*t*((1+e)*t+e)+2)},bounceIn:function(t){return 1-En.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*En.bounceIn(2*t):.5*En.bounceOut(2*t-1)+.5}},Fn=Math.pow,Vn=Math.sqrt,Hn=1e-8,Wn=Vn(3),Gn=1/3,Un=Xt(),Xn=Xt(),Yn=Xt();function qn(t){return-Hn<t&&t<Hn}function Zn(t){return Hn<t||t<-Hn}function jn(t,e,n,i,r){var o=1-r;return o*o*(o*t+3*r*e)+r*r*(r*i+3*o*n)}function Kn(t,e,n,i,r){var o=1-r;return 3*(((e-t)*o+2*(n-e)*r)*o+(i-n)*r*r)}function $n(t,e,n,i,r,o){var a,s,i=i+3*(e-n)-t,n=3*(n-2*e+t),e=3*(e-t),t=t-r,r=n*n-3*i*e,l=n*e-9*i*t,t=e*e-3*n*t,u=0;return qn(r)&&qn(l)?qn(n)?o[0]=0:0<=(a=-e/n)&&a<=1&&(o[u++]=a):qn(e=l*l-4*r*t)?(s=-(t=l/r)/2,0<=(a=-n/i+t)&&a<=1&&(o[u++]=a),0<=s&&s<=1&&(o[u++]=s)):0<e?(e=r*n+1.5*i*(-l-(t=Vn(e))),0<=(a=(-n-((t=(t=r*n+1.5*i*(-l+t))<0?-Fn(-t,Gn):Fn(t,Gn))+(e=e<0?-Fn(-e,Gn):Fn(e,Gn))))/(3*i))&&a<=1&&(o[u++]=a)):(t=(2*r*n-3*i*l)/(2*Vn(r*r*r)),e=Math.acos(t)/3,a=(-n-2*(l=Vn(r))*(t=Math.cos(e)))/(3*i),s=(-n+l*(t+Wn*Math.sin(e)))/(3*i),r=(-n+l*(t-Wn*Math.sin(e)))/(3*i),0<=a&&a<=1&&(o[u++]=a),0<=s&&s<=1&&(o[u++]=s),0<=r&&r<=1&&(o[u++]=r)),u}function Qn(t,e,n,i,r){var o,a=6*n-12*e+6*t,i=9*e+3*i-3*t-9*n,n=3*e-3*t,e=0;return qn(i)?Zn(a)&&0<=(o=-n/a)&&o<=1&&(r[e++]=o):qn(t=a*a-4*i*n)?r[0]=-a/(2*i):0<t&&(t=(-a-(n=Vn(t)))/(2*i),0<=(o=(-a+n)/(2*i))&&o<=1&&(r[e++]=o),0<=t)&&t<=1&&(r[e++]=t),e}function Jn(t,e,n,i,r,o){var a=(e-t)*r+t,e=(n-e)*r+e,n=(i-n)*r+n,s=(e-a)*r+a,e=(n-e)*r+e,r=(e-s)*r+s;o[0]=t,o[1]=a,o[2]=s,o[3]=r,o[4]=r,o[5]=e,o[6]=n,o[7]=i}function ti(t,e,n,i,r,o,a,s,l,u,h){var c,p,d,f,g=.005,y=1/0;Un[0]=l,Un[1]=u;for(var m=0;m<1;m+=.05)Xn[0]=jn(t,n,r,a,m),Xn[1]=jn(e,i,o,s,m),(d=ne(Un,Xn))<y&&(c=m,y=d);for(var y=1/0,v=0;v<32&&!(g<1e-4);v++)p=c+g,Xn[0]=jn(t,n,r,a,f=c-g),Xn[1]=jn(e,i,o,s,f),d=ne(Xn,Un),0<=f&&d<y?(c=f,y=d):(Yn[0]=jn(t,n,r,a,p),Yn[1]=jn(e,i,o,s,p),f=ne(Yn,Un),p<=1&&f<y?(c=p,y=f):g*=.5);return h&&(h[0]=jn(t,n,r,a,c),h[1]=jn(e,i,o,s,c)),Vn(y)}function ei(t,e,n,i){var r=1-i;return r*(r*t+2*i*e)+i*i*n}function ni(t,e,n,i){return 2*((1-i)*(e-t)+i*(n-e))}function ii(t,e,n){n=t+n-2*e;return 0==n?.5:(t-e)/n}function ri(t,e,n,i,r){var o=(e-t)*i+t,e=(n-e)*i+e,i=(e-o)*i+o;r[0]=t,r[1]=o,r[2]=i,r[3]=i,r[4]=e,r[5]=n}function oi(t,e,n,i,r,o,a,s,l){var u,h=.005,c=1/0;Un[0]=a,Un[1]=s;for(var p=0;p<1;p+=.05)Xn[0]=ei(t,n,r,p),Xn[1]=ei(e,i,o,p),(y=ne(Un,Xn))<c&&(u=p,c=y);for(var c=1/0,d=0;d<32&&!(h<1e-4);d++){var f=u-h,g=u+h,y=(Xn[0]=ei(t,n,r,f),Xn[1]=ei(e,i,o,f),ne(Xn,Un));0<=f&&y<c?(u=f,c=y):(Yn[0]=ei(t,n,r,g),Yn[1]=ei(e,i,o,g),f=ne(Yn,Un),g<=1&&f<c?(u=g,c=f):h*=.5)}return l&&(l[0]=ei(t,n,r,u),l[1]=ei(e,i,o,u)),Vn(c)}var ai=/cubic-bezier\(([0-9,\.e ]+)\)/;function si(t){t=t&&ai.exec(t);if(t){var e,t=t[1].split(","),n=+It(t[0]),i=+It(t[1]),r=+It(t[2]),o=+It(t[3]);if(!isNaN(n+i+r+o))return e=[],function(t){return t<=0?0:1<=t?1:$n(0,n,r,1,t,e)&&jn(0,i,o,1,e[0])}}}ui.prototype.step=function(t,e){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),!this._paused){var n=this._life,i=t-this._startTime-this._pausedTime,r=i/n,o=(r<0&&(r=0),r=Math.min(r,1),this.easingFunc),o=o?o(r):r;if(this.onframe(o),1===r){if(!this.loop)return!0;this._startTime=t-i%n,this._pausedTime=0,this.onrestart()}return!1}this._pausedTime+=e},ui.prototype.pause=function(){this._paused=!0},ui.prototype.resume=function(){this._paused=!1},ui.prototype.setEasing=function(t){this.easing=t,this.easingFunc=B(t)?t:En[t]||si(t)};var li=ui;function ui(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||Ht,this.ondestroy=t.ondestroy||Ht,this.onrestart=t.onrestart||Ht,t.easing&&this.setEasing(t.easing)}var hi=function(t){this.value=t},ci=(pi.prototype.insert=function(t){t=new hi(t);return this.insertEntry(t),t},pi.prototype.insertEntry=function(t){this.head?((this.tail.next=t).prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},pi.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--},pi.prototype.len=function(){return this._len},pi.prototype.clear=function(){this.head=this.tail=null,this._len=0},pi);function pi(){this._len=0}fi.prototype.put=function(t,e){var n,i,r=this._list,o=this._map,a=null;return null==o[t]&&(i=r.len(),n=this._lastRemovedEntry,i>=this._maxSize&&0<i&&(i=r.head,r.remove(i),delete o[i.key],a=i.value,this._lastRemovedEntry=i),n?n.value=e:n=new hi(e),n.key=t,r.insertEntry(n),o[t]=n),a},fi.prototype.get=function(t){var t=this._map[t],e=this._list;if(null!=t)return t!==e.tail&&(e.remove(t),e.insertEntry(t)),t.value},fi.prototype.clear=function(){this._list.clear(),this._map={}},fi.prototype.len=function(){return this._list.len()};var di=fi;function fi(t){this._list=new ci,this._maxSize=10,this._map={},this._maxSize=t}var gi={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 yi(t){return(t=Math.round(t))<0?0:255<t?255:t}function mi(t){return t<0?0:1<t?1:t}function vi(t){return t.length&&"%"===t.charAt(t.length-1)?yi(parseFloat(t)/100*255):yi(parseInt(t,10))}function _i(t){return t.length&&"%"===t.charAt(t.length-1)?mi(parseFloat(t)/100):mi(parseFloat(t))}function xi(t,e,n){return n<0?n+=1:1<n&&--n,6*n<1?t+(e-t)*n*6:2*n<1?e:3*n<2?t+(e-t)*(2/3-n)*6:t}function bi(t,e,n){return t+(e-t)*n}function wi(t,e,n,i,r){return t[0]=e,t[1]=n,t[2]=i,t[3]=r,t}function Si(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}var Mi=new di(20),Ti=null;function Ci(t,e){Ti&&Si(Ti,e),Ti=Mi.put(t,Ti||e.slice())}function ki(t,e){if(t){e=e||[];var n=Mi.get(t);if(n)return Si(e,n);n=(t+="").replace(/ /g,"").toLowerCase();if(n in gi)return Si(e,gi[n]),Ci(t,e),e;var i=n.length;if("#"===n.charAt(0))return 4===i||5===i?0<=(r=parseInt(n.slice(1,4),16))&&r<=4095?(wi(e,(3840&r)>>4|(3840&r)>>8,240&r|(240&r)>>4,15&r|(15&r)<<4,5===i?parseInt(n.slice(4),16)/15:1),Ci(t,e),e):void wi(e,0,0,0,1):7===i||9===i?0<=(r=parseInt(n.slice(1,7),16))&&r<=16777215?(wi(e,(16711680&r)>>16,(65280&r)>>8,255&r,9===i?parseInt(n.slice(7),16)/255:1),Ci(t,e),e):void wi(e,0,0,0,1):void 0;var r=n.indexOf("("),o=n.indexOf(")");if(-1!==r&&o+1===i){var i=n.substr(0,r),a=n.substr(r+1,o-(r+1)).split(","),s=1;switch(i){case"rgba":if(4!==a.length)return 3===a.length?wi(e,+a[0],+a[1],+a[2],1):wi(e,0,0,0,1);s=_i(a.pop());case"rgb":return 3<=a.length?(wi(e,vi(a[0]),vi(a[1]),vi(a[2]),3===a.length?s:_i(a[3])),Ci(t,e),e):void wi(e,0,0,0,1);case"hsla":return 4!==a.length?void wi(e,0,0,0,1):(a[3]=_i(a[3]),Ii(a,e),Ci(t,e),e);case"hsl":return 3!==a.length?void wi(e,0,0,0,1):(Ii(a,e),Ci(t,e),e);default:return}}wi(e,0,0,0,1)}}function Ii(t,e){var n=(parseFloat(t[0])%360+360)%360/360,i=_i(t[1]),r=_i(t[2]),i=r<=.5?r*(i+1):r+i-r*i,r=2*r-i;return wi(e=e||[],yi(255*xi(r,i,n+1/3)),yi(255*xi(r,i,n)),yi(255*xi(r,i,n-1/3)),1),4===t.length&&(e[3]=t[3]),e}function Di(t,e){var n=ki(t);if(n){for(var i=0;i<3;i++)n[i]=e<0?n[i]*(1-e)|0:(255-n[i])*e+n[i]|0,255<n[i]?n[i]=255:n[i]<0&&(n[i]=0);return Ri(n,4===n.length?"rgba":"rgb")}}function Ai(t,e,n){var i,r,o;if(e&&e.length&&0<=t&&t<=1)return n=n||[],t=t*(e.length-1),i=Math.floor(t),o=Math.ceil(t),r=e[i],e=e[o],n[0]=yi(bi(r[0],e[0],o=t-i)),n[1]=yi(bi(r[1],e[1],o)),n[2]=yi(bi(r[2],e[2],o)),n[3]=mi(bi(r[3],e[3],o)),n}var Li=Ai;function Pi(t,e,n){var i,r,o,a;if(e&&e.length&&0<=t&&t<=1)return t=t*(e.length-1),i=Math.floor(t),r=Math.ceil(t),a=ki(e[i]),e=ki(e[r]),a=Ri([yi(bi(a[0],e[0],o=t-i)),yi(bi(a[1],e[1],o)),yi(bi(a[2],e[2],o)),mi(bi(a[3],e[3],o))],"rgba"),n?{color:a,leftIndex:i,rightIndex:r,value:t}:a}var n=Pi;function Oi(t,e,n,i){var r=ki(t);if(t)return r=function(t){var e,n,i,r,o,a,s,l,u,h;if(t)return h=t[0]/255,e=t[1]/255,n=t[2]/255,s=Math.min(h,e,n),r=((i=Math.max(h,e,n))+s)/2,0==(u=i-s)?a=o=0:(a=r<.5?u/(i+s):u/(2-i-s),s=((i-h)/6+u/2)/u,l=((i-e)/6+u/2)/u,u=((i-n)/6+u/2)/u,h===i?o=u-l:e===i?o=1/3+s-u:n===i&&(o=2/3+l-s),o<0&&(o+=1),1<o&&--o),h=[360*o,a,r],null!=t[3]&&h.push(t[3]),h}(r),null!=e&&(r[0]=(t=B(e)?e(r[0]):e,(t=Math.round(t))<0?0:360<t?360:t)),null!=n&&(r[1]=_i(B(n)?n(r[1]):n)),null!=i&&(r[2]=_i(B(i)?i(r[2]):i)),Ri(Ii(r),"rgba")}function Ri(t,e){var n;if(t&&t.length)return n=t[0]+","+t[1]+","+t[2],"rgba"!==e&&"hsva"!==e&&"hsla"!==e||(n+=","+t[3]),e+"("+n+")"}function Ni(t,e){t=ki(t);return t?(.299*t[0]+.587*t[1]+.114*t[2])*t[3]/255+(1-t[3])*e:0}var Bi=new di(100);function zi(t){var e;return V(t)?((e=Bi.get(t))||(e=Di(t,-.1),Bi.put(t,e)),e):_t(t)?((e=P({},t)).colorStops=E(t.colorStops,function(t){return{offset:t.offset,color:Di(t.color,-.1)}}),e):t}Li=Object.freeze({__proto__:null,fastLerp:Ai,fastMapToColor:Li,lerp:Pi,lift:Di,liftColor:zi,lum:Ni,mapToColor:n,modifyAlpha:function(t,e){if((t=ki(t))&&null!=e)return t[3]=mi(e),Ri(t,"rgba")},modifyHSL:Oi,parse:ki,parseCssFloat:_i,parseCssInt:vi,random:function(){return Ri([Math.round(255*Math.random()),Math.round(255*Math.random()),Math.round(255*Math.random())],"rgb")},stringify:Ri,toHex:function(t){if(t=ki(t))return((1<<24)+(t[0]<<16)+(t[1]<<8)+ +t[2]).toString(16).slice(1)}});w.hasGlobalWindow&&B(window.btoa);var Ei=Array.prototype.slice;function Fi(t,e,n){return(e-t)*n+t}function Vi(t,e,n,i){for(var r=e.length,o=0;o<r;o++)t[o]=Fi(e[o],n[o],i);return t}function Hi(t,e,n,i){for(var r=e.length,o=0;o<r;o++)t[o]=e[o]+n[o]*i;return t}function Wi(t,e,n,i){for(var r=e.length,o=r&&e[0].length,a=0;a<r;a++){t[a]||(t[a]=[]);for(var s=0;s<o;s++)t[a][s]=e[a][s]+n[a][s]*i}return t}function Gi(t){if(st(t)){var e=t.length;if(st(t[0])){for(var n=[],i=0;i<e;i++)n.push(Ei.call(t[i]));return n}return Ei.call(t)}return t}function Ui(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 Xi(t){return 4===t||5===t}function Yi(t){return 1===t||2===t}var qi=[0,0,0,0],Zi=(ji.prototype.isFinished=function(){return this._finished},ji.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},ji.prototype.needsAnimate=function(){return 1<=this.keyframes.length},ji.prototype.getAdditiveTrack=function(){return this._additiveTrack},ji.prototype.addKeyframe=function(t,e,n){this._needsSort=!0;var i,r=this.keyframes,o=r.length,a=!1,s=6,l=e,u=(st(e)?(1==(s=i=st((i=e)&&i[0])?2:1)&&!gt(e[0])||2==i&&!gt(e[0][0]))&&(a=!0):gt(e)&&!wt(e)?s=0:V(e)?isNaN(+e)?(i=ki(e))&&(l=i,s=3):s=0:_t(e)&&((u=P({},l)).colorStops=E(e.colorStops,function(t){return{offset:t.offset,color:ki(t.color)}}),"linear"===e.type?s=4:"radial"===e.type&&(s=5),l=u),0===o?this.valType=s:s===this.valType&&6!==s||(a=!0),this.discrete=this.discrete||a,{time:t,value:l,rawValue:e,percent:0});return n&&(u.easing=n,u.easingFunc=B(n)?n:En[n]||si(n)),r.push(u),u},ji.prototype.prepare=function(t,e){for(var n=this.keyframes,i=(this._needsSort&&n.sort(function(t,e){return t.time-e.time}),this.valType),r=n.length,o=n[r-1],a=this.discrete,s=Yi(i),l=Xi(i),u=0;u<r;u++){var h=n[u],c=h.value,p=o.value;if(h.percent=h.time/t,!a)if(s&&u!==r-1){x=_=v=m=y=g=f=d=h=void 0;var d=p,f=i,g=h=c,y=d;if(g.push&&y.push){var h=g.length,m=y.length;if(h!==m)if(m<h)g.length=m;else for(var v=h;v<m;v++)g.push(1===f?y[v]:Ei.call(y[v]));for(var _=g[0]&&g[0].length,v=0;v<g.length;v++)if(1===f)isNaN(g[v])&&(g[v]=y[v]);else for(var x=0;x<_;x++)isNaN(g[v][x])&&(g[v][x]=y[v][x])}}else if(l){T=M=S=w=b=h=d=void 0;for(var d=c.colorStops,h=p.colorStops,b=d.length,w=h.length,S=w<b?h:d,h=Math.min(b,w),M=S[h-1]||{color:[0,0,0,0],offset:0},T=h;T<Math.max(b,w);T++)S.push({offset:M.offset,color:M.color.slice()})}}if(!a&&5!==i&&e&&this.needsAnimate()&&e.needsAnimate()&&i===e.valType&&!e._finished){this._additiveTrack=e;for(var C=n[0].value,u=0;u<r;u++)0===i?n[u].additiveValue=n[u].value-C:3===i?n[u].additiveValue=Hi([],n[u].value,C,-1):Yi(i)&&(n[u].additiveValue=(1===i?Hi:Wi)([],n[u].value,C,-1))}},ji.prototype.step=function(t,e){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n,i,r,o,a=null!=this._additiveTrack,s=a?"additiveValue":"value",l=this.valType,u=this.keyframes,h=u.length,c=this.propName,p=3===l,d=this._lastFr,f=Math.min;if(1===h)n=i=u[0];else{if(e<0)g=0;else if(e<this._lastFrP){for(var g=f(d+1,h-1);0<=g&&!(u[g].percent<=e);g--);g=f(g,h-2)}else{for(g=d;g<h&&!(u[g].percent>e);g++);g=f(g-1,h-2)}i=u[g+1],n=u[g]}n&&i&&(this._lastFr=g,this._lastFrP=e,d=i.percent-n.percent,r=0==d?1:f((e-n.percent)/d,1),i.easingFunc&&(r=i.easingFunc(r)),f=a?this._additiveValue:p?qi:t[c],(Yi(l)||p)&&(f=f||(this._additiveValue=[])),this.discrete?t[c]=(r<1?n:i).rawValue:Yi(l)?(1===l?Vi:function(t,e,n,i){for(var r=e.length,o=r&&e[0].length,a=0;a<r;a++){t[a]||(t[a]=[]);for(var s=0;s<o;s++)t[a][s]=Fi(e[a][s],n[a][s],i)}})(f,n[s],i[s],r):Xi(l)?(d=n[s],o=i[s],t[c]={type:(l=4===l)?"linear":"radial",x:Fi(d.x,o.x,r),y:Fi(d.y,o.y,r),colorStops:E(d.colorStops,function(t,e){e=o.colorStops[e];return{offset:Fi(t.offset,e.offset,r),color:Ui(Vi([],t.color,e.color,r))}}),global:o.global},l?(t[c].x2=Fi(d.x2,o.x2,r),t[c].y2=Fi(d.y2,o.y2,r)):t[c].r=Fi(d.r,o.r,r)):p?(Vi(f,n[s],i[s],r),a||(t[c]=Ui(f))):(l=Fi(n[s],i[s],r),a?this._additiveValue=l:t[c]=l),a)&&this._addToTarget(t)}},ji.prototype._addToTarget=function(t){var e=this.valType,n=this.propName,i=this._additiveValue;0===e?t[n]=t[n]+i:3===e?(ki(t[n],qi),Hi(qi,qi,i,1),t[n]=Ui(qi)):1===e?Hi(t[n],t[n],i,1):2===e&&Wi(t[n],t[n],i,1)},ji);function ji(t){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=t}$i.prototype.getMaxTime=function(){return this._maxTime},$i.prototype.getDelay=function(){return this._delay},$i.prototype.getLoop=function(){return this._loop},$i.prototype.getTarget=function(){return this._target},$i.prototype.changeTarget=function(t){this._target=t},$i.prototype.when=function(t,e,n){return this.whenWithKeys(t,e,ct(e),n)},$i.prototype.whenWithKeys=function(t,e,n,i){for(var r=this._tracks,o=0;o<n.length;o++){var a=n[o];if(!(l=r[a])){var s,l=r[a]=new Zi(a),u=void 0,h=this._getAdditiveTrack(a);if(h?(u=(s=(s=h.keyframes)[s.length-1])&&s.value,3===h.valType&&(u=u&&Ui(u))):u=this._target[a],null==u)continue;0<t&&l.addKeyframe(0,Gi(u),i),this._trackKeys.push(a)}l.addKeyframe(t,Gi(e[a]),i)}return this._maxTime=Math.max(this._maxTime,t),this},$i.prototype.pause=function(){this._clip.pause(),this._paused=!0},$i.prototype.resume=function(){this._clip.resume(),this._paused=!1},$i.prototype.isPaused=function(){return!!this._paused},$i.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},$i.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)},$i.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)},$i.prototype._setTracksFinished=function(){for(var t=this._tracks,e=this._trackKeys,n=0;n<e.length;n++)t[e[n]].setFinished()},$i.prototype._getAdditiveTrack=function(t){var e,n=this._additiveAnimators;if(n)for(var i=0;i<n.length;i++){var r=n[i].getTrack(t);r&&(e=r)}return e},$i.prototype.start=function(t){if(!(0<this._started)){this._started=1;for(var e,o=this,a=[],n=this._maxTime||0,i=0;i<this._trackKeys.length;i++){var r=this._trackKeys[i],s=this._tracks[r],r=this._getAdditiveTrack(r),l=s.keyframes,u=l.length;s.prepare(n,r),s.needsAnimate()&&(!this._allowDiscrete&&s.discrete?((r=l[u-1])&&(o._target[s.propName]=r.rawValue),s.setFinished()):a.push(s))}return a.length||this._force?(e=new li({life:n,loop:this._loop,delay:this._delay||0,onframe:function(t){o._started=2;var e=o._additiveAnimators;if(e){for(var n=!1,i=0;i<e.length;i++)if(e[i]._clip){n=!0;break}n||(o._additiveAnimators=null)}for(i=0;i<a.length;i++)a[i].step(o._target,t);var r=o._onframeCbs;if(r)for(i=0;i<r.length;i++)r[i](o._target,t)},ondestroy:function(){o._doneCallback()}}),this._clip=e,this.animation&&this.animation.addClip(e),t&&e.setEasing(t)):this._doneCallback(),this}},$i.prototype.stop=function(t){var e;this._clip&&(e=this._clip,t&&e.onframe(1),this._abortedCallback())},$i.prototype.delay=function(t){return this._delay=t,this},$i.prototype.during=function(t){return t&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(t)),this},$i.prototype.done=function(t){return t&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(t)),this},$i.prototype.aborted=function(t){return t&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(t)),this},$i.prototype.getClip=function(){return this._clip},$i.prototype.getTrack=function(t){return this._tracks[t]},$i.prototype.getTracks=function(){var e=this;return E(this._trackKeys,function(t){return e._tracks[t]})},$i.prototype.stopTracks=function(t,e){if(!t.length||!this._clip)return!0;for(var n=this._tracks,i=this._trackKeys,r=0;r<t.length;r++){var o=n[t[r]];o&&!o.isFinished()&&(e?o.step(this._target,1):1===this._started&&o.step(this._target,0),o.setFinished())}for(var a=!0,r=0;r<i.length;r++)if(!n[i[r]].isFinished()){a=!1;break}return a&&this._abortedCallback(),a},$i.prototype.saveTo=function(t,e,n){if(t){e=e||this._trackKeys;for(var i=0;i<e.length;i++){var r=e[i],o=this._tracks[r];o&&!o.isFinished()&&(o=(o=o.keyframes)[n?0:o.length-1])&&(t[r]=Gi(o.rawValue))}}},$i.prototype.__changeFinalValue=function(t,e){e=e||ct(t);for(var n=0;n<e.length;n++){var i,r=e[n],o=this._tracks[r];o&&1<(i=o.keyframes).length&&(i=i.pop(),o.addKeyframe(i.time,t[r]),o.prepare(this._maxTime,o.getAdditiveTrack()))}};var Ki=$i;function $i(t,e,n,i){this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,(this._loop=e)&&i?it("Can' use additive animation on looped animation."):(this._additiveAnimators=i,this._allowDiscrete=n)}function Qi(){return(new Date).getTime()}u(er,Ji=ce),er.prototype.addClip=function(t){t.animation&&this.removeClip(t),this._head?((this._tail.next=t).prev=this._tail,t.next=null,this._tail=t):this._head=this._tail=t,t.animation=this},er.prototype.addAnimator=function(t){t.animation=this;t=t.getClip();t&&this.addClip(t)},er.prototype.removeClip=function(t){var e,n;t.animation&&(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)},er.prototype.removeAnimator=function(t){var e=t.getClip();e&&this.removeClip(e),t.animation=null},er.prototype.update=function(t){for(var e=Qi()-this._pausedTime,n=e-this._time,i=this._head;i;)var r=i.next,i=(i.step(e,n)&&(i.ondestroy(),this.removeClip(i)),r);this._time=e,t||(this.trigger("frame",n),this.stage.update&&this.stage.update())},er.prototype._startLoop=function(){var e=this;this._running=!0,zn(function t(){e._running&&(zn(t),e._paused||e.update())})},er.prototype.start=function(){this._running||(this._time=Qi(),this._pausedTime=0,this._startLoop())},er.prototype.stop=function(){this._running=!1},er.prototype.pause=function(){this._paused||(this._pauseStart=Qi(),this._paused=!0)},er.prototype.resume=function(){this._paused&&(this._pausedTime+=Qi()-this._pauseStart,this._paused=!1)},er.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},er.prototype.isFinished=function(){return null==this._head},er.prototype.animate=function(t,e){e=e||{},this.start();t=new Ki(t,e.loop);return this.addAnimator(t),t};var Ji,tr=er;function er(t){var e=Ji.call(this)||this;return e._running=!1,e._time=0,e._pausedTime=0,e._pauseStart=0,e._paused=!1,e.stage=(t=t||{}).stage||{},e}var nr,ir=w.domSupported,rr=(nr={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},{mouse:n=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],touch:["touchstart","touchend","touchmove"],pointer:E(n,function(t){var e=t.replace("mouse","pointer");return nr.hasOwnProperty(e)?e:t})}),or=["mousemove","mouseup"],ar=["pointermove","pointerup"],sr=!1;function lr(t){t=t.pointerType;return"pen"===t||"touch"===t}function ur(t){t&&(t.zrByTouch=!0)}function hr(t,e){for(var n=e,i=!1;n&&9!==n.nodeType&&!(i=n.domBelongToZr||n!==e&&n===t.painterRoot);)n=n.parentNode;return i}var cr=function(t,e){this.stopPropagation=Ht,this.stopImmediatePropagation=Ht,this.preventDefault=Ht,this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY},pr={mousedown:function(t){t=De(this.dom,t),this.__mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=De(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=De(this.dom,t),this.__togglePointerCapture(!1),this.trigger("mouseup",t)},mouseout:function(t){hr(this,(t=De(this.dom,t)).toElement||t.relatedTarget)||(this.__pointerCapturing&&(t.zrEventControl="no_globalout"),this.trigger("mouseout",t))},wheel:function(t){sr=!0,t=De(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){sr||(t=De(this.dom,t),this.trigger("mousewheel",t))},touchstart:function(t){ur(t=De(this.dom,t)),this.__lastTouchMoment=new Date,this.handler.processGesture(t,"start"),pr.mousemove.call(this,t),pr.mousedown.call(this,t)},touchmove:function(t){ur(t=De(this.dom,t)),this.handler.processGesture(t,"change"),pr.mousemove.call(this,t)},touchend:function(t){ur(t=De(this.dom,t)),this.handler.processGesture(t,"end"),pr.mouseup.call(this,t),+new Date-+this.__lastTouchMoment<300&&pr.click.call(this,t)},pointerdown:function(t){pr.mousedown.call(this,t)},pointermove:function(t){lr(t)||pr.mousemove.call(this,t)},pointerup:function(t){pr.mouseup.call(this,t)},pointerout:function(t){lr(t)||pr.mouseout.call(this,t)}},dr=(N(["click","dblclick","contextmenu"],function(e){pr[e]=function(t){t=De(this.dom,t),this.trigger(e,t)}}),{pointermove:function(t){lr(t)||dr.mousemove.call(this,t)},pointerup:function(t){dr.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 fr(i,r){var o=r.domHandlers;w.pointerEventsSupported?N(rr.pointer,function(e){yr(r,e,function(t){o[e].call(i,t)})}):(w.touchEventsSupported&&N(rr.touch,function(n){yr(r,n,function(t){var e;o[n].call(i,t),(e=r).touching=!0,null!=e.touchTimer&&(clearTimeout(e.touchTimer),e.touchTimer=null),e.touchTimer=setTimeout(function(){e.touching=!1,e.touchTimer=null},700)})}),N(rr.mouse,function(e){yr(r,e,function(t){t=Ie(t),r.touching||o[e].call(i,t)})}))}function gr(i,r){function t(n){yr(r,n,function(t){var e;t=Ie(t),hr(i,t.target)||(e=t,t=De(i.dom,new cr(i,e),!0),r.domHandlers[n].call(i,t))},{capture:!0})}w.pointerEventsSupported?N(ar,t):w.touchEventsSupported||N(or,t)}function yr(t,e,n,i){t.mounted[e]=n,t.listenerOpts[e]=i,t.domTarget.addEventListener(e,n,i)}function mr(t){var e,n,i,r,o,a=t.mounted;for(e in a)a.hasOwnProperty(e)&&(n=t.domTarget,r=a[i=e],o=t.listenerOpts[e],n.removeEventListener(i,r,o));t.mounted={}}var vr,_r=function(t,e){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=e},xr=(u(br,vr=ce),br.prototype.dispose=function(){mr(this._localHandlerScope),ir&&mr(this._globalHandlerScope)},br.prototype.setCursor=function(t){this.dom.style&&(this.dom.style.cursor=t||"default")},br.prototype.__togglePointerCapture=function(t){var e;this.__mayPointerCapture=null,ir&&+this.__pointerCapturing^+t&&(this.__pointerCapturing=t,e=this._globalHandlerScope,t?gr(this,e):mr(e))},br);function br(t,e){var n=vr.call(this)||this;return n.__pointerCapturing=!1,n.dom=t,n.painterRoot=e,n._localHandlerScope=new _r(t,pr),ir&&(n._globalHandlerScope=new _r(document,dr)),fr(n,n._localHandlerScope),n}var n=1,wr=n=w.hasGlobalWindow?Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1):n,Sr="#333",Mr="#ccc",Tr=Be;function Cr(t){return 5e-5<t||t<-5e-5}var kr=[],Ir=[],Dr=Ne(),Ar=Math.abs,Lr=(Pr.prototype.getLocalTransform=function(t){return Pr.getLocalTransform(this,t)},Pr.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},Pr.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},Pr.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},Pr.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},Pr.prototype.needLocalTransform=function(){return Cr(this.rotation)||Cr(this.x)||Cr(this.y)||Cr(this.scaleX-1)||Cr(this.scaleY-1)||Cr(this.skewX)||Cr(this.skewY)},Pr.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,e=this.needLocalTransform(),n=this.transform;e||t?(n=n||Ne(),e?this.getLocalTransform(n):Tr(n),t&&(e?Ee(n,t,n):ze(n,t)),this.transform=n,this._resolveGlobalScaleRatio(n)):n&&(Tr(n),this.invTransform=null)},Pr.prototype._resolveGlobalScaleRatio=function(t){var e,n,i=this.globalScaleRatio;null!=i&&1!==i&&(this.getGlobalScale(kr),n=((kr[1]-(n=kr[1]<0?-1:1))*i+n)/kr[1]||0,t[0]*=i=((kr[0]-(e=kr[0]<0?-1:1))*i+e)/kr[0]||0,t[1]*=i,t[2]*=n,t[3]*=n),this.invTransform=this.invTransform||Ne(),We(this.invTransform,t)},Pr.prototype.getComputedTransform=function(){for(var t=this,e=[];t;)e.push(t),t=t.parent;for(;t=e.pop();)t.updateTransform();return this.transform},Pr.prototype.setLocalTransform=function(t){var e,n,i,r;t&&(r=t[0]*t[0]+t[1]*t[1],i=t[2]*t[2]+t[3]*t[3],e=Math.atan2(t[1],t[0]),n=Math.PI/2+e-Math.atan2(t[3],t[2]),i=Math.sqrt(i)*Math.cos(n),r=Math.sqrt(r),this.skewX=n,this.skewY=0,this.rotation=-e,this.x=+t[4],this.y=+t[5],this.scaleX=r,this.scaleY=i,this.originX=0,this.originY=0)},Pr.prototype.decomposeTransform=function(){var t,e,n;this.transform&&(e=this.parent,t=this.transform,e&&e.transform&&(e.invTransform=e.invTransform||Ne(),Ee(Ir,e.invTransform,t),t=Ir),e=this.originX,n=this.originY,(e||n)&&(Dr[4]=e,Dr[5]=n,Ee(Ir,t,Dr),Ir[4]-=e,Ir[5]-=n,t=Ir),this.setLocalTransform(t))},Pr.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},Pr.prototype.transformCoordToLocal=function(t,e){t=[t,e],e=this.invTransform;return e&&re(t,t,e),t},Pr.prototype.transformCoordToGlobal=function(t,e){t=[t,e],e=this.transform;return e&&re(t,t,e),t},Pr.prototype.getLineScale=function(){var t=this.transform;return t&&1e-10<Ar(t[0]-1)&&1e-10<Ar(t[3]-1)?Math.sqrt(Ar(t[0]*t[3]-t[2]*t[1])):1},Pr.prototype.copyTransform=function(t){Nr(this,t)},Pr.getLocalTransform=function(t,e){e=e||[];var n=t.originX||0,i=t.originY||0,r=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,t=t.skewY?Math.tan(-t.skewY):0;return n||i||a||s?(e[4]=-(a=n+a)*r-c*(s=i+s)*o,e[5]=-s*o-t*a*r):e[4]=e[5]=0,e[0]=r,e[3]=o,e[1]=t*r,e[2]=c*o,l&&Ve(e,e,l),e[4]+=n+u,e[5]+=i+h,e},Pr.initDefaultProps=((n=Pr.prototype).scaleX=n.scaleY=n.globalScaleRatio=1,void(n.x=n.y=n.originX=n.originY=n.skewX=n.skewY=n.rotation=n.anchorX=n.anchorY=0)),Pr);function Pr(){}var Or,Rr=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function Nr(t,e){for(var n=0;n<Rr.length;n++){var i=Rr[n];t[i]=e[i]}}function Br(t){Or=Or||new di(100),t=t||j;var e=Or.get(t);return e||(e={font:t,strWidthCache:new di(500),asciiWidthMap:null,asciiWidthMapTried:!1,stWideCharWidth:U.measureText("鍥�",t).width,asciiCharWidth:U.measureText("a",t).width},Or.put(t,e)),e}var zr=0;function Er(t,e){return t.asciiWidthMapTried||(t.asciiWidthMap=function(t){if(!(5<=zr)){t=t||j;for(var e=[],n=+new Date,i=0;i<=127;i++)e[i]=U.measureText(String.fromCharCode(i),t).width;n=+new Date-n;return 16<n?zr=5:2<n&&zr++,e}}(t.font),t.asciiWidthMapTried=!0),0<=e&&e<=127?null!=t.asciiWidthMap?t.asciiWidthMap[e]:t.asciiCharWidth:t.stWideCharWidth}function Fr(t,e){var n=t.strWidthCache,i=n.get(e);return null==i&&(i=U.measureText(e,t.font).width,n.put(e,i)),i}function Vr(t,e,n,i){t=Fr(Br(e),t),e=Ur(e),n=Wr(0,t,n),i=Gr(0,e,i);return new X(n,i,t,e)}function Hr(t,e,n,i){var r=((t||"")+"").split("\n");if(1===r.length)return Vr(r[0],e,n,i);for(var o=new X(0,0,0,0),a=0;a<r.length;a++){var s=Vr(r[a],e,n,i);0===a?o.copy(s):o.union(s)}return o}function Wr(t,e,n,i){return"right"===n?i?t+=e:t-=e:"center"===n&&(i?t+=e/2:t-=e/2),t}function Gr(t,e,n,i){return"middle"===n?i?t+=e/2:t-=e/2:"bottom"===n&&(i?t+=e:t-=e),t}function Ur(t){return Br(t).stWideCharWidth}function Xr(t,e){return"string"==typeof t?0<=t.lastIndexOf("%")?parseFloat(t)/100*e:parseFloat(t):t}function Yr(t,e,n){var i=e.position||"inside",r=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(i instanceof Array)l+=Xr(i[0],n.width),u+=Xr(i[1],n.height),c=h=null;else switch(i){case"left":l-=r,u+=s,h="right",c="middle";break;case"right":l+=r+a,u+=s,c="middle";break;case"top":l+=a/2,u-=r,h="center",c="bottom";break;case"bottom":l+=a/2,u+=o+r,h="center";break;case"inside":l+=a/2,u+=s,h="center",c="middle";break;case"insideLeft":l+=r,u+=s,c="middle";break;case"insideRight":l+=a-r,u+=s,h="right",c="middle";break;case"insideTop":l+=a/2,u+=r,h="center";break;case"insideBottom":l+=a/2,u+=o-r,h="center",c="bottom";break;case"insideTopLeft":l+=r,u+=r;break;case"insideTopRight":l+=a-r,u+=r,h="right";break;case"insideBottomLeft":l+=r,u+=o-r,c="bottom";break;case"insideBottomRight":l+=a-r,u+=o-r,h="right",c="bottom"}return(t=t||{}).x=l,t.y=u,t.align=h,t.verticalAlign=c,t}var qr,Zr="__zr_normal__",jr=Rr.concat(["ignore"]),Kr=lt(Rr,function(t,e){return t[e]=!0,t},{ignore:!1}),$r={},Qr=new X(0,0,0,0),Jr=[],n=(i.prototype._init=function(t){this.attr(t)},i.prototype.drift=function(t,e,n){switch(this.draggable){case"horizontal":e=0;break;case"vertical":t=0}var i=this.transform;(i=i||(this.transform=[1,0,0,1,0,0]))[4]+=t,i[5]+=e,this.decomposeTransform(),this.markRedraw()},i.prototype.beforeUpdate=function(){},i.prototype.afterUpdate=function(){},i.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},i.prototype.updateInnerText=function(t){var e,n,i,r,o,a,s,l,u,h,c,p=this._textContent;!p||p.ignore&&!t||(this.textConfig||(this.textConfig={}),u=(t=this.textConfig).local,a=o=void 0,n=!1,(e=p.innerTransformable).parent=u?this:null,h=!1,e.copyTransform(p),c=null!=t.position,r=void 0,((i=t.autoOverflowArea)||c)&&(r=Qr,t.layoutRect?r.copy(t.layoutRect):r.copy(this.getBoundingRect()),u||r.applyTransform(this.transform)),c&&(this.calculateTextPosition?this.calculateTextPosition($r,t,r):Yr($r,t,r),e.x=$r.x,e.y=$r.y,o=$r.align,a=$r.verticalAlign,c=t.origin)&&null!=t.rotation&&(l=s=void 0,l="center"===c?(s=.5*r.width,.5*r.height):(s=Xr(c[0],r.width),Xr(c[1],r.height)),h=!0,e.originX=-e.x+s+(u?0:r.x),e.originY=-e.y+l+(u?0:r.y)),null!=t.rotation&&(e.rotation=t.rotation),(c=t.offset)&&(e.x+=c[0],e.y+=c[1],h||(e.originX=-c[0],e.originY=-c[1])),s=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),i?(l=s.overflowRect=s.overflowRect||new X(0,0,0,0),e.getLocalTransform(Jr),We(Jr,Jr),X.copy(l,r),l.applyTransform(Jr)):s.overflowRect=null,c=h=u=void 0,(null==t.inside?"string"==typeof t.position&&0<=t.position.indexOf("inside"):t.inside)&&this.canBeInsideText()?(u=t.insideFill,h=t.insideStroke,null!=u&&"auto"!==u||(u=this.getInsideTextFill()),null!=h&&"auto"!==h||(h=this.getInsideTextStroke(u),c=!0)):(u=t.outsideFill,h=t.outsideStroke,null!=u&&"auto"!==u||(u=this.getOutsideFill()),null!=h&&"auto"!==h||(h=this.getOutsideStroke(u),c=!0)),(u=u||"#000")===s.fill&&h===s.stroke&&c===s.autoStroke&&o===s.align&&a===s.verticalAlign||(n=!0,s.fill=u,s.stroke=h,s.autoStroke=c,s.align=o,s.verticalAlign=a,p.setDefaultTextStyle(s)),p.__dirty|=An,n&&p.dirtyStyle(!0))},i.prototype.canBeInsideText=function(){return!0},i.prototype.getInsideTextFill=function(){return"#fff"},i.prototype.getInsideTextStroke=function(t){return"#000"},i.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?Mr:Sr},i.prototype.getOutsideStroke=function(t){for(var e=this.__zr&&this.__zr.getBackgroundColor(),n="string"==typeof e&&ki(e),i=(n=n||[255,255,255,1])[3],r=this.__zr.isDarkMode(),o=0;o<3;o++)n[o]=n[o]*i+(r?0:255)*(1-i);return n[3]=1,Ri(n,"rgba")},i.prototype.traverse=function(t,e){},i.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||{},P(this.extra,e)):this[t]=e},i.prototype.hide=function(){this.ignore=!0,this.markRedraw()},i.prototype.show=function(){this.ignore=!1,this.markRedraw()},i.prototype.attr=function(t,e){if("string"==typeof t)this.attrKV(t,e);else if(H(t))for(var n=ct(t),i=0;i<n.length;i++){var r=n[i];this.attrKV(r,t[r])}return this.markRedraw(),this},i.prototype.saveCurrentToNormalState=function(t){this._innerSaveToNormal(t);for(var e=this._normalState,n=0;n<this.animators.length;n++){var i=this.animators[n],r=i.__fromStateTransition;i.getLoop()||r&&r!==Zr||(r=(r=i.targetName)?e[r]:e,i.saveTo(r))}},i.prototype._innerSaveToNormal=function(t){var e=(e=this._normalState)||(this._normalState={});t.textConfig&&!e.textConfig&&(e.textConfig=this.textConfig),this._savePrimaryToNormal(t,e,jr)},i.prototype._savePrimaryToNormal=function(t,e,n){for(var i=0;i<n.length;i++){var r=n[i];null==t[r]||r in e||(e[r]=this[r])}},i.prototype.hasState=function(){return 0<this.currentStates.length},i.prototype.getState=function(t){return this.states[t]},i.prototype.ensureState=function(t){var e=this.states;return e[t]||(e[t]={}),e[t]},i.prototype.clearStates=function(t){this.useState(Zr,!1,t)},i.prototype.useState=function(t,e,n,i){var r=t===Zr,o=this.hasState();if(o||!r){var a,o=this.currentStates,s=this.stateTransition;if(!(0<=I(o,t))||!e&&1!==o.length){if((a=(a=this.stateProxy&&!r?this.stateProxy(t):a)||this.states&&this.states[t])||r)return r||this.saveCurrentToNormalState(a),(o=!!(a&&a.hoverLayer||i))&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,a,this._normalState,e,!n&&!this.__inHover&&s&&0<s.duration,s),i=this._textContent,s=this._textGuide,i&&i.useState(t,e,n,o),s&&s.useState(t,e,n,o),r?(this.currentStates=[],this._normalState={}):e?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!o&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~An),a;it("State "+t+" not exists.")}}},i.prototype.useStates=function(t,e,n){if(t.length){var i=[],r=this.currentStates,o=t.length,a=o===r.length;if(a)for(var s=0;s<o;s++)if(t[s]!==r[s]){a=!1;break}if(!a){for(s=0;s<o;s++){var l=t[s],u=void 0;(u=(u=this.stateProxy?this.stateProxy(l,t):u)||this.states[l])&&i.push(u)}var h=i[o-1],h=!!(h&&h.hoverLayer||n),n=(h&&this._toggleHoverLayerFlag(!0),this._mergeStates(i)),c=this.stateTransition,n=(this.saveCurrentToNormalState(n),this._applyStateObj(t.join(","),n,this._normalState,!1,!e&&!this.__inHover&&c&&0<c.duration,c),this._textContent),c=this._textGuide;n&&n.useStates(t,e,h),c&&c.useStates(t,e,h),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!h&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~An)}}else this.clearStates()},i.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},i.prototype._updateAnimationTargets=function(){for(var t=0;t<this.animators.length;t++){var e=this.animators[t];e.targetName&&e.changeTarget(this[e.targetName])}},i.prototype.removeState=function(t){var e,t=I(this.currentStates,t);0<=t&&((e=this.currentStates.slice()).splice(t,1),this.useStates(e))},i.prototype.replaceState=function(t,e,n){var i=this.currentStates.slice(),t=I(i,t),r=0<=I(i,e);0<=t?r?i.splice(t,1):i[t]=e:n&&!r&&i.push(e),this.useStates(i)},i.prototype.toggleState=function(t,e){e?this.useState(t,!0):this.removeState(t)},i.prototype._mergeStates=function(t){for(var e,n={},i=0;i<t.length;i++){var r=t[i];P(n,r),r.textConfig&&P(e=e||{},r.textConfig)}return e&&(n.textConfig=e),n},i.prototype._applyStateObj=function(t,e,n,i,r,o){for(var a=!(e&&i),s=(e&&e.textConfig?(this.textConfig=P({},(i?this:n).textConfig),P(this.textConfig,e.textConfig)):a&&n.textConfig&&(this.textConfig=n.textConfig),{}),l=!1,u=0;u<jr.length;u++){var h=jr[u],c=r&&Kr[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(!r)for(u=0;u<this.animators.length;u++){var p=this.animators[u],d=p.targetName;p.getLoop()||p.__changeFinalValue(d?(e||n)[d]:e||n)}l&&this._transitionState(t,s,o)},i.prototype._attachComponent=function(t){var e;t.__zr&&!t.__hostTarget||t!==this&&((e=this.__zr)&&t.addSelfToZr(e),t.__zr=e,t.__hostTarget=this)},i.prototype._detachComponent=function(t){t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__hostTarget=null},i.prototype.getClipPath=function(){return this._clipPath},i.prototype.setClipPath=function(t){this._clipPath&&this._clipPath!==t&&this.removeClipPath(),this._attachComponent(t),this._clipPath=t,this.markRedraw()},i.prototype.removeClipPath=function(){var t=this._clipPath;t&&(this._detachComponent(t),this._clipPath=null,this.markRedraw())},i.prototype.getTextContent=function(){return this._textContent},i.prototype.setTextContent=function(t){var e=this._textContent;e!==t&&(e&&e!==t&&this.removeTextContent(),t.innerTransformable=new Lr,this._attachComponent(t),this._textContent=t,this.markRedraw())},i.prototype.setTextConfig=function(t){this.textConfig||(this.textConfig={}),P(this.textConfig,t),this.markRedraw()},i.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},i.prototype.removeTextContent=function(){var t=this._textContent;t&&(t.innerTransformable=null,this._detachComponent(t),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},i.prototype.getTextGuideLine=function(){return this._textGuide},i.prototype.setTextGuideLine=function(t){this._textGuide&&this._textGuide!==t&&this.removeTextGuideLine(),this._attachComponent(t),this._textGuide=t,this.markRedraw()},i.prototype.removeTextGuideLine=function(){var t=this._textGuide;t&&(this._detachComponent(t),this._textGuide=null,this.markRedraw())},i.prototype.markRedraw=function(){this.__dirty|=An;var t=this.__zr;t&&(this.__inHover?t.refreshHover():t.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},i.prototype.dirty=function(){this.markRedraw()},i.prototype._toggleHoverLayerFlag=function(t){this.__inHover=t;var e=this._textContent,n=this._textGuide;e&&(e.__inHover=t),n&&(n.__inHover=t)},i.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)}},i.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)}},i.prototype.animate=function(t,e,n){var i=t?this[t]:this,i=new Ki(i,e,n);return t&&(i.targetName=t),this.addAnimator(i,t),i},i.prototype.addAnimator=function(n,t){var e=this.__zr,i=this;n.during(function(){i.updateDuringAnimation(t)}).done(function(){var t=i.animators,e=I(t,n);0<=e&&t.splice(e,1)}),this.animators.push(n),e&&e.animation.addAnimator(n),e&&e.wakeUp()},i.prototype.updateDuringAnimation=function(t){this.markRedraw()},i.prototype.stopAnimation=function(t,e){for(var n=this.animators,i=n.length,r=[],o=0;o<i;o++){var a=n[o];t&&t!==a.scope?r.push(a):a.stop(e)}return this.animators=r,this},i.prototype.animateTo=function(t,e,n){eo(this,t,e,n)},i.prototype.animateFrom=function(t,e,n){eo(this,t,e,n,!0)},i.prototype._transitionState=function(t,e,n,i){for(var r=eo(this,e,n,i),o=0;o<r.length;o++)r[o].__fromStateTransition=t},i.prototype.getBoundingRect=function(){return null},i.prototype.getPaintRect=function(){return null},i.initDefaultProps=((qr=i.prototype).type="element",qr.name="",qr.ignore=qr.silent=qr.ignoreHostSilent=qr.isGroup=qr.draggable=qr.dragging=qr.ignoreClip=qr.__inHover=!1,qr.__dirty=An,void(Object.defineProperty&&(to("position","_legacyPos","x","y"),to("scale","_legacyScale","scaleX","scaleY"),to("origin","_legacyOrigin","originX","originY")))),i);function i(t){this.id=et++,this.animators=[],this.currentStates=[],this.states={},this._init(t)}function to(t,e,n,i){function r(e,t){Object.defineProperty(t,0,{get:function(){return e[n]},set:function(t){e[n]=t}}),Object.defineProperty(t,1,{get:function(){return e[i]},set:function(t){e[i]=t}})}Object.defineProperty(qr,t,{get:function(){var t;return this[e]||(t=this[e]=[],r(this,t)),this[e]},set:function(t){this[n]=t[0],this[i]=t[1],this[e]=t,r(this,t)}})}function eo(t,e,n,i,r){function o(){u=!0,--l<=0&&(u?h&&h():c&&c())}function a(){--l<=0&&(u?h&&h():c&&c())}var s=[],l=(!function t(e,n,i,r,o,a,s,l){var u=ct(r);var h=o.duration;var c=o.delay;var p=o.additive;var d=o.setToFinal;var f=!H(a);var g=e.animators;var y=[];for(var m=0;m<u.length;m++){var v=u[m],_=r[v];null!=_&&null!=i[v]&&(f||a[v])?!H(_)||st(_)||_t(_)?y.push(v):n?l||(i[v]=_,e.updateDuringAnimation(n)):t(e,v,i[v],_,o,a&&a[v],s,l):l||(i[v]=_,e.updateDuringAnimation(n),y.push(v))}var x=y.length;if(!p&&x)for(var b,w=0;w<g.length;w++)(S=g[w]).targetName===n&&S.stopTracks(y)&&(b=I(g,S),g.splice(b,1));o.force||(y=ut(y,function(t){return!ro(r[t],i[t])}),x=y.length);if(0<x||o.force&&!s.length){var S,M=void 0,T=void 0,C=void 0;if(l){T={},d&&(M={});for(w=0;w<x;w++){v=y[w];T[v]=i[v],d?M[v]=r[v]:i[v]=r[v]}}else if(d){C={};for(w=0;w<x;w++){v=y[w];C[v]=Gi(i[v]),io(i,r,v)}}(S=new Ki(i,!1,!1,p?ut(g,function(t){return t.targetName===n}):null)).targetName=n,o.scope&&(S.scope=o.scope),d&&M&&S.whenWithKeys(0,M,y),C&&S.whenWithKeys(0,C,y),S.whenWithKeys(null==h?500:h,l?T:r,y).delay(c||0),e.addAnimator(S,n),s.push(S)}}(t,"",t,e,n=n||{},i,s,r),s.length),u=!1,h=n.done,c=n.aborted;l||h&&h(),0<s.length&&n.during&&s[0].during(function(t,e){n.during(e)});for(var p=0;p<s.length;p++){var d=s[p];d.done(o),d.aborted(a),n.force&&d.duration(n.duration),d.start(n.easing)}return s}function no(t,e,n){for(var i=0;i<n;i++)t[i]=e[i]}function io(t,e,n){if(st(e[n]))if(st(t[n])||(t[n]=[]),mt(e[n])){var i=e[n].length;t[n].length!==i&&(t[n]=new e[n].constructor(i),no(t[n],e[n],i))}else{var r=e[n],o=t[n],a=r.length;if(st(r[0]))for(var s=r[0].length,l=0;l<a;l++)o[l]?no(o[l],r[l],s):o[l]=Array.prototype.slice.call(r[l]);else no(o,r,a);o.length=r.length}else t[n]=e[n]}function ro(t,e){return t===e||st(t)&&st(e)&&function(t,e){var n=t.length;if(n!==e.length)return!1;for(var i=0;i<n;i++)if(t[i]!==e[i])return!1;return!0}(t,e)}at(n,ce),at(n,Lr);u(so,oo=n),so.prototype.childrenRef=function(){return this._children},so.prototype.children=function(){return this._children.slice()},so.prototype.childAt=function(t){return this._children[t]},so.prototype.childOfName=function(t){for(var e=this._children,n=0;n<e.length;n++)if(e[n].name===t)return e[n]},so.prototype.childCount=function(){return this._children.length},so.prototype.add=function(t){return t&&t!==this&&t.parent!==this&&(this._children.push(t),this._doAdd(t)),this},so.prototype.addBefore=function(t,e){var n;return t&&t!==this&&t.parent!==this&&e&&e.parent===this&&0<=(e=(n=this._children).indexOf(e))&&(n.splice(e,0,t),this._doAdd(t)),this},so.prototype.replace=function(t,e){t=I(this._children,t);return 0<=t&&this.replaceAt(e,t),this},so.prototype.replaceAt=function(t,e){var n=this._children,i=n[e];return t&&t!==this&&t.parent!==this&&t!==i&&(n[e]=t,i.parent=null,(n=this.__zr)&&i.removeSelfFromZr(n),this._doAdd(t)),this},so.prototype._doAdd=function(t){t.parent&&t.parent.remove(t);var e=(t.parent=this).__zr;e&&e!==t.__zr&&t.addSelfToZr(e),e&&e.refresh()},so.prototype.remove=function(t){var e=this.__zr,n=this._children,i=I(n,t);return i<0||(n.splice(i,1),t.parent=null,e&&t.removeSelfFromZr(e),e&&e.refresh()),this},so.prototype.removeAll=function(){for(var t=this._children,e=this.__zr,n=0;n<t.length;n++){var i=t[n];e&&i.removeSelfFromZr(e),i.parent=null}return t.length=0,this},so.prototype.eachChild=function(t,e){for(var n=this._children,i=0;i<n.length;i++){var r=n[i];t.call(e,r,i)}return this},so.prototype.traverse=function(t,e){for(var n=0;n<this._children.length;n++){var i=this._children[n],r=t.call(e,i);i.isGroup&&!r&&i.traverse(t,e)}return this},so.prototype.addSelfToZr=function(t){oo.prototype.addSelfToZr.call(this,t);for(var e=0;e<this._children.length;e++)this._children[e].addSelfToZr(t)},so.prototype.removeSelfFromZr=function(t){oo.prototype.removeSelfFromZr.call(this,t);for(var e=0;e<this._children.length;e++)this._children[e].removeSelfFromZr(t)},so.prototype.getBoundingRect=function(t){for(var e=new X(0,0,0,0),n=t||this._children,i=[],r=null,o=0;o<n.length;o++){var a,s=n[o];s.ignore||s.invisible||(a=s.getBoundingRect(),(s=s.getLocalTransform(i))?(X.applyTransform(e,a,s),(r=r||e.clone()).union(e)):(r=r||a.clone()).union(a))}return r||e};var oo,ao=so;function so(t){var e=oo.call(this)||this;return e.isGroup=!0,e._children=[],e.attr(t),e}ao.prototype.type="group";var lo={},uo={};po.prototype.add=function(t){!this._disposed&&t&&(this.storage.addRoot(t),t.addSelfToZr(this),this.refresh())},po.prototype.remove=function(t){!this._disposed&&t&&(this.storage.delRoot(t),t.removeSelfFromZr(this),this.refresh())},po.prototype.configLayer=function(t,e){this._disposed||(this.painter.configLayer&&this.painter.configLayer(t,e),this.refresh())},po.prototype.setBackgroundColor=function(t){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(t),this.refresh(),this._backgroundColor=t,this._darkMode=function(t){if(t){if("string"==typeof t)return Ni(t,1)<.4;if(t.colorStops){for(var e=t.colorStops,n=0,i=e.length,r=0;r<i;r++)n+=Ni(e[r].color,1);return(n/=i)<.4}}return!1}(t))},po.prototype.getBackgroundColor=function(){return this._backgroundColor},po.prototype.setDarkMode=function(t){this._darkMode=t},po.prototype.isDarkMode=function(){return this._darkMode},po.prototype.refreshImmediately=function(t){this._disposed||(t||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1)},po.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},po.prototype.flush=function(){this._disposed||this._flush(!1)},po.prototype._flush=function(t){var e,n=Qi(),t=(this._needsRefresh&&(e=!0,this.refreshImmediately(t)),this._needsRefreshHover&&(e=!0,this.refreshHoverImmediately()),Qi());e?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:t-n})):0<this._sleepAfterStill&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill)&&this.animation.stop()},po.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},po.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},po.prototype.refreshHover=function(){this._needsRefreshHover=!0},po.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&"canvas"===this.painter.getType()&&this.painter.refreshHover())},po.prototype.resize=function(t){this._disposed||(this.painter.resize((t=t||{}).width,t.height),this.handler.resize())},po.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},po.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},po.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},po.prototype.setCursorStyle=function(t){this._disposed||this.handler.setCursorStyle(t)},po.prototype.findHover=function(t,e){if(!this._disposed)return this.handler.findHover(t,e)},po.prototype.on=function(t,e,n){return this._disposed||this.handler.on(t,e,n),this},po.prototype.off=function(t,e){this._disposed||this.handler.off(t,e)},po.prototype.trigger=function(t,e){this._disposed||this.handler.trigger(t,e)},po.prototype.clear=function(){if(!this._disposed){for(var t=this.storage.getRoots(),e=0;e<t.length;e++)t[e]instanceof ao&&t[e].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},po.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 uo[t])};var ho,co=po;function po(t,e,n){var i,r=this,o=(this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,n=n||{},this.dom=e,this.id=t,new Nn),a=n.renderer||"canvas",a=(lo[a]||(a=ct(lo)[0]),n.useDirtyRect=null!=n.useDirtyRect&&n.useDirtyRect,new lo[a](e,o,n,t)),e=n.ssr||a.ssrOnly,t=(this.storage=o,this.painter=a,w.node||w.worker||e?null:new xr(a.getViewportRoot(),a.root)),s=n.useCoarsePointer;(null==s||"auto"===s?w.touchEventsSupported:!!s)&&(i=W(n.pointerSize,44)),this.handler=new vn(o,a,t,a.root,i),this.animation=new tr({stage:{update:e?null:function(){return r._flush(!0)}}}),e||this.animation.start()}function fo(t,e){t=new co(et++,t,e);return uo[t.id]=t}function go(t,e){lo[t]=e}function yo(t){ho=t}var mo=Object.freeze({__proto__:null,dispose:function(t){t.dispose()},disposeAll:function(){for(var t in uo)uo.hasOwnProperty(t)&&uo[t].dispose();uo={}},getElementSSRData:function(t){if("function"==typeof ho)return ho(t)},getInstance:function(t){return uo[t]},init:fo,registerPainter:go,registerSSRDataGetter:yo,version:"6.0.0"}),vo=20;var _o=Math.min,xo=Math.max,bo=Math.abs;function wo(t,e,n,i){var r=e[0],e=e[1],o=n[0],n=n[1],a=e-r,s=n-o;if(0==a)return 0==s?o:(o+n)/2;if(i)if(0<a){if(t<=r)return o;if(e<=t)return n}else{if(r<=t)return o;if(t<=e)return n}else{if(t===r)return o;if(t===e)return n}return(t-r)/a*s+o}var So=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 Mo(t,e,n)};function Mo(t,e,n){return V(t)?t.replace(/^\s+|\s+$/g,"").match(/%$/)?parseFloat(t)/100*e+(n||0):parseFloat(t):null==t?NaN:+t}function To(t,e,n){return null==e&&(e=10),e=Math.min(Math.max(0,e),vo),t=(+t).toFixed(e),n?t:+t}function Co(t){if(t=+t,isNaN(t))return 0;if(1e-14<t)for(var e=1,n=0;n<15;n++,e*=10)if(Math.round(t*e)/e===t)return n;return ko(t)}function ko(t){var t=t.toString().toLowerCase(),e=t.indexOf("e"),n=0<e?+t.slice(e+1):0,e=0<e?e:t.length,t=t.indexOf(".");return Math.max(0,(t<0?0:e-1-t)-n)}function Io(t,e){var n=Math.log,i=Math.LN10,t=Math.floor(n(t[1]-t[0])/i),n=Math.round(n(bo(e[1]-e[0]))/i),e=Math.min(Math.max(-t+n,0),20);return isFinite(e)?e:20}function Do(t){var e=2*Math.PI;return(t%e+e)%e}function Ao(t){return-1e-4<t&&t<1e-4}var Lo=/^(?:(\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 Po(t){var e,n;return t instanceof Date?t:V(t)?(e=Lo.exec(t))?e[8]?(n=+e[4]||0,"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))):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):new Date(NaN):null==t?new Date(NaN):new Date(Math.round(t))}function Oo(t){return Math.pow(10,Ro(t))}function Ro(t){var e;return 0===t?0:(e=Math.floor(Math.log(t)/Math.LN10),10<=t/Math.pow(10,e)&&e++,e)}function No(t,e){var n=Ro(t),i=Math.pow(10,n),r=t/i,e=e?r<1.5?1:r<2.5?2:r<4?3:r<7?5:10:r<1?1:r<2?2:r<3?3:r<5?5:10;return t=e*i,-20<=n?+t.toFixed(n<0?-n:0):t}function Bo(t){var e=parseFloat(t);return e==t&&(0!==e||!V(t)||t.indexOf("x")<=0)?e:NaN}function zo(t){return!isNaN(Bo(t))}function Eo(){return Math.round(9*Math.random())}function Fo(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)}function f(t){throw new Error(t)}function Vo(t,e,n){return(e-t)*n+t}var Ho="series\0";function Wo(t){return t instanceof Array?t:null==t?[]:[t]}function Go(t,e,n){if(t){t[e]=t[e]||{},t.emphasis=t.emphasis||{},t.emphasis[e]=t.emphasis[e]||{};for(var i=0,r=n.length;i<r;i++){var o=n[i];!t.emphasis[e].hasOwnProperty(o)&&t[e].hasOwnProperty(o)&&(t.emphasis[e][o]=t[e][o])}}}var Uo=["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 Xo(t){return!H(t)||F(t)||t instanceof Date?t:t.value}function Yo(t,n,e){var o,a,s,l,r,u,i,h,c,p,d="normalMerge"===e,f="replaceMerge"===e,g="replaceAll"===e,y=(t=t||[],n=(n||[]).slice(),O()),e=(N(n,function(t,e){H(t)||(n[e]=null)}),function(t,e,n){var i=[];if("replaceAll"!==n)for(var r=0;r<t.length;r++){var o=t[r];o&&null!=o.id&&e.set(o.id,r),i.push({existing:"replaceMerge"===n||$o(o)?null:o,newOption:null,keyInfo:null,brandNew:null})}return i}(t,y,e));return(d||f)&&(o=e,a=t,s=y,N(l=n,function(t,e){var n,i,r;t&&null!=t.id&&(n=Zo(t.id),null!=(i=s.get(n)))&&(kt(!(r=o[i]).newOption,'Duplicated option on id "'+n+'".'),r.newOption=t,r.existing=a[i],l[e]=null)})),d&&(r=e,N(u=n,function(t,e){if(t&&null!=t.name)for(var n=0;n<r.length;n++){var i=r[n].existing;if(!r[n].newOption&&i&&(null==i.id||null==t.id)&&!$o(t)&&!$o(i)&&qo("name",i,t))return r[n].newOption=t,void(u[e]=null)}})),d||f?(h=e,c=f,N(n,function(t){if(t){for(var e,n=0;(e=h[n])&&(e.newOption||$o(e.existing)||e.existing&&null!=t.id&&!qo("id",t,e.existing));)n++;e?(e.newOption=t,e.brandNew=c):h.push({newOption:t,brandNew:c,existing:null,keyInfo:null}),n++}})):g&&(i=e,N(n,function(t){i.push({newOption:t,brandNew:!0,existing:null,keyInfo:null})})),t=e,p=O(),N(t,function(t){var e=t.existing;e&&p.set(e.id,t)}),N(t,function(t){var e=t.newOption;kt(!e||null==e.id||!p.get(e.id)||p.get(e.id)===t,"id duplicates: "+(e&&e.id)),e&&null!=e.id&&p.set(e.id,t),t.keyInfo||(t.keyInfo={})}),N(t,function(t,e){var n=t.existing,i=t.newOption,r=t.keyInfo;if(H(i)){if(r.name=null!=i.name?Zo(i.name):n?n.name:Ho+e,n)r.id=Zo(n.id);else if(null!=i.id)r.id=Zo(i.id);else for(var o=0;r.id="\0"+r.name+"\0"+o++,p.get(r.id););p.set(r.id,t)}}),e}function qo(t,e,n){e=jo(e[t],null),n=jo(n[t],null);return null!=e&&null!=n&&e===n}function Zo(t){return jo(t,"")}function jo(t,e){return null==t?e:V(t)?t:gt(t)||ft(t)?t+"":e}function Ko(t){t=t.name;return!(!t||!t.indexOf(Ho))}function $o(t){return t&&null!=t.id&&0===Zo(t.id).indexOf("\0_ec_\0")}function Qo(t,r,o){N(t,function(t){var e,n,i=t.newOption;H(i)&&(t.keyInfo.mainType=r,t.keyInfo.subType=(e=r,i=i,t=t.existing,n=o,i.type||(t?t.subType:n.determineSubType(e,i))))})}function Jo(e,t){return null!=t.dataIndexInside?t.dataIndexInside:null!=t.dataIndex?F(t.dataIndex)?E(t.dataIndex,function(t){return e.indexOfRawIndex(t)}):e.indexOfRawIndex(t.dataIndex):null!=t.name?F(t.name)?E(t.name,function(t){return e.indexOfName(t)}):e.indexOfName(t.name):void 0}function ta(){var e="__ec_inner_"+ea++;return function(t){return t[e]||(t[e]={})}}var ea=Eo();function na(n,t,i){var t=ia(t,i),e=t.mainTypeSpecified,r=t.queryOptionMap,o=t.others,a=i?i.defaultMainType:null;return!e&&a&&r.set(a,{}),r.each(function(t,e){t=oa(n,e,t,{useDefault:a===e,enableAll:!i||null==i.enableAll||i.enableAll,enableNone:!i||null==i.enableNone||i.enableNone});o[e+"Models"]=t.models,o[e+"Model"]=t.models[0]}),o}function ia(t,i){var e=V(t)?((e={})[t+"Index"]=0,e):t,r=O(),o={},a=!1;return N(e,function(t,e){var n;"dataIndex"===e||"dataIndexInside"===e?o[e]=t:(n=(e=e.match(/^(\w+)(Index|Id|Name)$/)||[])[1],e=(e[2]||"").toLowerCase(),!n||!e||i&&i.includeMainTypes&&I(i.includeMainTypes,n)<0||(a=a||!!n,(r.get(n)||r.set(n,{}))[e]=t))}),{mainTypeSpecified:a,queryOptionMap:r,others:o}}var ra={useDefault:!0,enableAll:!1,enableNone:!1};function oa(t,e,n,i){i=i||ra;var r=n.index,o=n.id,n=n.name,a={models:null,specified:null!=r||null!=o||null!=n};if(a.specified){if("none"===r||!1===r){if(i.enableNone)return a.models=[],a;r=-1}"all"===r&&(r=i.enableAll?o=n=null:-1),a.models=t.queryComponents({mainType:e,index:r,id:o,name:n})}else r=void 0,a.models=i.useDefault&&(r=t.getComponent(e))?[r]:[];return a}function aa(t,e,n){t.setAttribute?t.setAttribute(e,n):t[e]=n}function sa(t,e,n,i,r){var o=null==e||"auto"===e;if(null==i)return i;if(gt(i))return To(p=Vo(n||0,i,r),o?Math.max(Co(n||0),Co(i)):e);if(V(i))return r<1?n:i;for(var a=[],s=n,l=i,u=Math.max(s?s.length:0,l.length),h=0;h<u;++h){var c,p,d=t.getDimensionInfo(h);d&&"ordinal"===d.type?a[h]=(r<1&&s?s:l)[h]:(p=Vo(d=s&&s[h]?s[h]:0,c=l[h],r),a[h]=To(p,o?Math.max(Co(d),Co(c)):e))}return a}var la=".",ua="___EC__COMPONENT__CONTAINER___",ha="___EC__EXTENDED_CLASS___";function ca(t){var e={main:"",sub:""};return t&&(t=t.split(la),e.main=t[0]||"",e.sub=t[1]||""),e}function pa(t){(t.$constructor=t).extend=function(t){var e,n,i,r=this;function o(){return n.apply(this,arguments)||this}return B(i=r)&&/^class\s/.test(Function.prototype.toString.call(i))?(u(o,n=r),e=o):ot(e=function(){(t.$constructor||r).apply(this,arguments)},this),P(e.prototype,t),e[ha]=!0,e.extend=this.extend,e.superCall=ga,e.superApply=ya,e.superClass=r,e}}function da(t,e){t.extend=e.extend}var fa=Math.round(10*Math.random());function ga(t,e){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];return this.superClass.prototype[e].apply(t,n)}function ya(t,e,n){return this.superClass.prototype[e].apply(t,n)}function ma(t){var r={};t.registerClass=function(t){var e,n=t.type||t.prototype.type;return n&&(kt(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(e=n),'componentType "'+e+'" illegal'),(e=ca(t.prototype.type=n)).sub?e.sub!==ua&&(function(t){var e=r[t.main];e&&e[ua]||(e=r[t.main]={___EC__COMPONENT__CONTAINER___:!0});return e}(e)[e.sub]=t):r[e.main]=t),t},t.getClass=function(t,e,n){var i=r[t];if(i&&i[ua]&&(i=e?i[e]:null),n&&!i)throw new Error(e?"Component "+t+"."+(e||"")+" is used but not imported.":t+".type should be specified.");return i},t.getClassesByMainType=function(t){var t=ca(t),n=[],t=r[t.main];return t&&t[ua]?N(t,function(t,e){e!==ua&&n.push(t)}):n.push(t),n},t.hasClass=function(t){t=ca(t);return!!r[t.main]},t.getAllClassMainTypes=function(){var n=[];return N(r,function(t,e){n.push(e)}),n},t.hasSubTypes=function(t){t=ca(t),t=r[t.main];return t&&t[ua]}}function va(a,s){for(var t=0;t<a.length;t++)a[t][1]||(a[t][1]=a[t][0]);return s=s||!1,function(t,e,n){for(var i={},r=0;r<a.length;r++){var o=a[r][1];e&&0<=I(e,o)||n&&I(n,o)<0||null!=(o=t.getShallow(o,s))&&(i[a[r][0]]=o)}return i}}var _a=va([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]]),xa=(ba.prototype.getAreaStyle=function(t,e){return _a(this,t,e)},ba);function ba(){}var wa=new di(50);function Sa(t,e,n,i,r){return t?"string"==typeof t?(e&&e.__zrImageSrc===t||!n||(n={hostEl:n,cb:i,cbPayload:r},(i=wa.get(t))?Ta(e=i.image)||i.pending.push(n):((e=U.loadImage(t,Ma,Ma)).__zrImageSrc=t,wa.put(t,e.__cachedImgObj={image:e,pending:[n]}))),e):t:e}function Ma(){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],i=n.cb;i&&i(this,n.cbPayload),n.hostEl.dirty()}t.pending.length=0}function Ta(t){return t&&t.width&&t.height}var Ca=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function ka(t,e,n,i,r,o){if(n){for(var a=(e+"").split("\n"),s=(o=Ia(n,i,r,o),!1),l={},u=0,h=a.length;u<h;u++)Da(l,a[u],o),a[u]=l.textLine,s=s||l.isTruncated;t.text=a.join("\n"),t.isTruncated=s}else t.text="",t.isTruncated=!1}function Ia(t,e,n,i){for(var r=P({},i=i||{}),o=(n=W(n,"..."),r.maxIterations=W(i.maxIterations,2),r.minChar=W(i.minChar,0)),e=r.fontMeasureInfo=Br(e),a=e.asciiCharWidth,s=(r.placeholder=W(i.placeholder,""),t=Math.max(0,t-1)),l=0;l<o&&a<=s;l++)s-=a;i=Fr(e,n);return s<i&&(n="",i=0),s=t-i,r.ellipsis=n,r.ellipsisWidth=i,r.contentWidth=s,r.containerWidth=t,r}function Da(t,e,n){var i=n.containerWidth,r=n.contentWidth,o=n.fontMeasureInfo;if(i)if((l=Fr(o,e))<=i)t.textLine=e,t.isTruncated=!1;else{for(var a=0;;a++){if(l<=r||a>=n.maxIterations){e+=n.ellipsis;break}var s=0===a?function(t,e,n){for(var i=0,r=0,o=t.length;r<o&&i<e;r++)i+=Er(n,t.charCodeAt(r));return r}(e,r,o):0<l?Math.floor(e.length*r/l):0,l=Fr(o,e=e.substr(0,s))}""===e&&(e=n.placeholder),t.textLine=e,t.isTruncated=!0}else t.textLine="",t.isTruncated=!1}var Aa=function(){},La=function(t){this.tokens=[],t&&(this.tokens=t)},Pa=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 Oa(t,e,n,i,r){var o=new Pa,a=Va(t);if(a){for(var s,t=e.padding,l=t?t[1]+t[3]:0,t=t?t[0]+t[2]:0,u=e.width,h=(null==u&&null!=n&&(u=n-l),e.height),n=(null==h&&null!=i&&(h=i-t),e.overflow),c="break"!==n&&"breakAll"!==n||null==u?null:{width:u,accumWidth:0,breakAll:"breakAll"===n},p=Ca.lastIndex=0;null!=(s=Ca.exec(a));){var d=s.index;p<d&&Ra(o,a.substring(p,d),e,c),Ra(o,s[2],e,c,s[1]),p=Ca.lastIndex}p<a.length&&Ra(o,a.substring(p,a.length),e,c);var f,g=[],y=0,m=0,v="truncate"===n,_="truncate"===e.lineOverflow,x={};t:for(var b=0;b<o.lines.length;b++){for(var w=o.lines[b],S=0,M=0,T=0;T<w.tokens.length;T++){var C=(O=w.tokens[T]).styleName&&e.rich[O.styleName]||{},k=O.textPadding=C.padding,I=k?k[1]+k[3]:0,D=O.font=C.font||e.font,A=(O.contentHeight=Ur(D),W(C.height,O.contentHeight));if(O.innerHeight=A,k&&(A+=k[0]+k[2]),O.height=A,O.lineHeight=Mt(C.lineHeight,e.lineHeight,A),O.align=C&&C.align||r,O.verticalAlign=C&&C.verticalAlign||"middle",_&&null!=h&&y+O.lineHeight>h){k=o.lines.length;0<T?(w.tokens=w.tokens.slice(0,T),N(w,M,S),o.lines=o.lines.slice(0,b+1)):o.lines=o.lines.slice(0,b),o.isTruncated=o.isTruncated||o.lines.length<k;break t}var L,k=C.width,P=null==k||"auto"===k;"string"==typeof k&&"%"===k.charAt(k.length-1)?(O.percentWidth=k,g.push(O),O.contentWidth=Fr(Br(D),O.text)):(P&&(k=(k=C.backgroundColor)&&k.image)&&(L=void 0,Ta(k="string"==typeof(f=k)?(L=wa.get(f))&&L.image:f))&&(O.width=Math.max(O.width,k.width*A/k.height)),null!=(L=v&&null!=u?u-M:null)&&L<O.width?!P||L<I?(O.text="",O.width=O.contentWidth=0):(ka(x,O.text,L-I,D,e.ellipsis,{minChar:e.truncateMinChar}),O.text=x.text,o.isTruncated=o.isTruncated||x.isTruncated,O.width=O.contentWidth=Fr(Br(D),O.text)):O.contentWidth=Fr(Br(D),O.text)),O.width+=I,M+=O.width,C&&(S=Math.max(S,O.lineHeight))}N(w,M,S)}o.outerWidth=o.width=W(u,m),o.outerHeight=o.height=W(h,y),o.contentHeight=y,o.contentWidth=m,o.outerWidth+=l,o.outerHeight+=t;for(b=0;b<g.length;b++){var O,R=(O=g[b]).percentWidth;O.width=parseInt(R,10)/100*o.width}}return o;function N(t,e,n){t.width=e,t.lineHeight=n,y+=n,m=Math.max(m,e)}}function Ra(t,e,n,i,r){for(var o,a,s,l=""===e,u=r&&n.rich[r]||{},h=t.lines,t=u.font||n.font,c=!1,p=(i&&(n=(n=u.padding)?n[1]+n[3]:0,null!=u.width&&"auto"!==u.width?(s=Xr(u.width,i.width)+n,0<h.length&&s+i.accumWidth>i.width&&(o=e.split("\n"),c=!0),i.accumWidth=s):(s=Ba(e,t,i.width,i.breakAll,i.accumWidth),i.accumWidth=s.accumWidth+n,a=s.linesWidths,o=s.lines)),o=o||e.split("\n"),Br(t)),d=0;d<o.length;d++){var f,g,y=o[d],m=new Aa;m.styleName=r,m.text=y,m.isLineHolder=!y&&!l,"number"==typeof u.width?m.width=u.width:m.width=a?a[d]:Fr(p,y),d||c?h.push(new La([m])):1===(g=(f=(h[h.length-1]||(h[0]=new La)).tokens).length)&&f[0].isLineHolder?f[0]=m:!y&&g&&!l||f.push(m)}}var Na=lt(",&?/;] ".split(""),function(t,e){return t[e]=!0,t},{});function Ba(t,e,n,i,r){for(var o,a=[],s=[],l="",u="",h=0,c=0,p=Br(e),d=0;d<t.length;d++){var f,g,y=t.charAt(d);"\n"===y?(u&&(l+=u,c+=h),a.push(l),s.push(c),u=l="",c=h=0):(f=Er(p,y.charCodeAt(0)),g=!(i||(g=void 0,!(32<=(g=(g=o=y).charCodeAt(0))&&g<=591||880<=g&&g<=4351||4608<=g&&g<=5119||7680<=g&&g<=8303))||!!Na[o]),(a.length?n<c+f:n<r+c+f)?c?(l||u)&&(c=g?(l||(l=u,u="",c=h=0),a.push(l),s.push(c-h),u+=y,l="",h+=f):(u&&(l+=u,u="",h=0),a.push(l),s.push(c),l=y,f)):g?(a.push(u),s.push(h),u=y,h=f):(a.push(y),s.push(f)):(c+=f,g?(u+=y,h+=f):(u&&(l+=u,u="",h=0),l+=y)))}return u&&(l+=u),l&&(a.push(l),s.push(c)),1===a.length&&(c+=r),{accumWidth:c,lines:a,linesWidths:s}}function za(t,e,n,i,r,o){var a,s;t.baseX=n,t.baseY=i,t.outerWidth=t.outerHeight=null,e&&(a=2*e.width,s=2*e.height,X.set(Ea,Wr(n,a,r),Gr(i,s,o),a,s),X.intersect(e,Ea,null,Fa),t.outerWidth=(n=Fa.outIntersectRect).width,t.outerHeight=n.height,t.baseX=Wr(n.x,n.width,r,!0),t.baseY=Gr(n.y,n.height,o,!0))}var Ea=new X(0,0,0,0),Fa={outIntersectRect:{},clamp:!0};function Va(t){return null!=t?t+"":""}function Ha(t,e,n,i){e=new X(Wr(t.x||0,e,t.textAlign),Gr(t.y||0,n,t.textBaseline),e,n),n=null!=i?i:Wa(t)?t.lineWidth:0;return 0<n&&(e.x-=n/2,e.y-=n/2,e.width+=n,e.height+=n),e}function Wa(t){var e=t.stroke;return null!=e&&"none"!==e&&0<t.lineWidth}var Ga,Ua="__zr_style_"+Math.round(10*Math.random()),Xa={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Ya={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}},qa=(Xa[Ua]=!0,["z","z2","invisible"]),Za=["invisible"],n=(u(r,Ga=n),r.prototype._init=function(t){for(var e=ct(t),n=0;n<e.length;n++){var i=e[n];"style"===i?this.useStyle(t[i]):Ga.prototype.attrKV.call(this,i,t[i])}this.style||this.useStyle({})},r.prototype.beforeBrush=function(){},r.prototype.afterBrush=function(){},r.prototype.innerBeforeBrush=function(){},r.prototype.innerAfterBrush=function(){},r.prototype.shouldBePainted=function(t,e,n,i){var r=this.transform;if(this.ignore||this.invisible||0===this.style.opacity||this.culling&&function(t,e,n){ja.copy(t.getBoundingRect()),t.transform&&ja.applyTransform(t.transform);return Ka.width=e,Ka.height=n,!ja.intersect(Ka)}(this,t,e)||r&&!r[0]&&!r[3])return!1;if(n&&this.__clipPaths&&this.__clipPaths.length)for(var o=0;o<this.__clipPaths.length;++o)if(this.__clipPaths[o].isZeroArea())return!1;if(i&&this.parent)for(var a=this.parent;a;){if(a.ignore)return!1;a=a.parent}return!0},r.prototype.contain=function(t,e){return this.rectContain(t,e)},r.prototype.traverse=function(t,e){t.call(e,this)},r.prototype.rectContain=function(t,e){t=this.transformCoordToLocal(t,e);return this.getBoundingRect().contain(t[0],t[1])},r.prototype.getPaintRect=function(){var t,e,n,i,r,o=this._paintRect;return this._paintRect&&!this.__dirty||(r=this.transform,t=this.getBoundingRect(),e=(i=this.style).shadowBlur||0,n=i.shadowOffsetX||0,i=i.shadowOffsetY||0,o=this._paintRect||(this._paintRect=new X(0,0,0,0)),r?X.applyTransform(o,t,r):o.copy(t),(e||n||i)&&(o.width+=2*e+Math.abs(n),o.height+=2*e+Math.abs(i),o.x=Math.min(o.x,o.x+n-e),o.y=Math.min(o.y,o.y+i-e)),r=this.dirtyRectTolerance,o.isZero())||(o.x=Math.floor(o.x-r),o.y=Math.floor(o.y-r),o.width=Math.ceil(o.width+1+2*r),o.height=Math.ceil(o.height+1+2*r)),o},r.prototype.setPrevPaintRect=function(t){t?(this._prevPaintRect=this._prevPaintRect||new X(0,0,0,0),this._prevPaintRect.copy(t)):this._prevPaintRect=null},r.prototype.getPrevPaintRect=function(){return this._prevPaintRect},r.prototype.animateStyle=function(t){return this.animate("style",t)},r.prototype.updateDuringAnimation=function(t){"style"===t?this.dirtyStyle():this.markRedraw()},r.prototype.attrKV=function(t,e){"style"!==t?Ga.prototype.attrKV.call(this,t,e):this.style?this.setStyle(e):this.useStyle(e)},r.prototype.setStyle=function(t,e){return"string"==typeof t?this.style[t]=e:P(this.style,t),this.dirtyStyle(),this},r.prototype.dirtyStyle=function(t){t||this.markRedraw(),this.__dirty|=2,this._rect&&(this._rect=null)},r.prototype.dirty=function(){this.dirtyStyle()},r.prototype.styleChanged=function(){return!!(2&this.__dirty)},r.prototype.styleUpdated=function(){this.__dirty&=-3},r.prototype.createStyle=function(t){return Et(Xa,t)},r.prototype.useStyle=function(t){t[Ua]||(t=this.createStyle(t)),this.__inHover?this.__hoverStyle=t:this.style=t,this.dirtyStyle()},r.prototype.isStyleObject=function(t){return t[Ua]},r.prototype._innerSaveToNormal=function(t){Ga.prototype._innerSaveToNormal.call(this,t);var e=this._normalState;t.style&&!e.style&&(e.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(t,e,qa)},r.prototype._applyStateObj=function(t,e,n,i,r,o){Ga.prototype._applyStateObj.call(this,t,e,n,i,r,o);var a,s=!(e&&i);if(e&&e.style?r?i?a=e.style:(a=this._mergeStyle(this.createStyle(),n.style),this._mergeStyle(a,e.style)):(a=this._mergeStyle(this.createStyle(),(i?this:n).style),this._mergeStyle(a,e.style)):s&&(a=n.style),a)if(r){var l=this.style;if(this.style=this.createStyle(s?{}:l),s)for(var u=ct(l),h=0;h<u.length;h++)(p=u[h])in a&&(a[p]=a[p],this.style[p]=l[p]);for(var c=ct(a),h=0;h<c.length;h++){var p=c[h];this.style[p]=this.style[p]}this._transitionState(t,{style:a},o,this.getAnimationStyleProps())}else this.useStyle(a);for(var d=this.__inHover?Za:qa,h=0;h<d.length;h++){p=d[h];e&&null!=e[p]?this[p]=e[p]:s&&null!=n[p]&&(this[p]=n[p])}},r.prototype._mergeStates=function(t){for(var e,n=Ga.prototype._mergeStates.call(this,t),i=0;i<t.length;i++){var r=t[i];r.style&&this._mergeStyle(e=e||{},r.style)}return e&&(n.style=e),n},r.prototype._mergeStyle=function(t,e){return P(t,e),t},r.prototype.getAnimationStyleProps=function(){return Ya},r.initDefaultProps=((n=r.prototype).type="displayable",n.invisible=!1,n.z=0,n.z2=0,n.zlevel=0,n.culling=!1,n.cursor="pointer",n.rectHover=!1,n.incremental=!1,n._rect=null,n.dirtyRectTolerance=0,void(n.__dirty=2|An)),r);function r(t){return Ga.call(this,t)||this}var ja=new X(0,0,0,0),Ka=new X(0,0,0,0);var $a=Math.min,Qa=Math.max,Ja=Math.sin,ts=Math.cos,es=2*Math.PI,ns=Xt(),is=Xt(),rs=Xt();function os(t,e,n,i,r,o){r[0]=$a(t,n),r[1]=$a(e,i),o[0]=Qa(t,n),o[1]=Qa(e,i)}var as=[],ss=[];var Y={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},ls=[],us=[],hs=[],cs=[],ps=[],ds=[],fs=Math.min,gs=Math.max,ys=Math.cos,ms=Math.sin,vs=Math.abs,_s=Math.PI,xs=2*_s,bs="undefined"!=typeof Float32Array,ws=[];function Ss(t){return Math.round(t/_s*1e8)/1e8%2*_s}o.prototype.increaseVersion=function(){this._version++},o.prototype.getVersion=function(){return this._version},o.prototype.setScale=function(t,e,n){0<(n=n||0)&&(this._ux=vs(n/wr/t)||0,this._uy=vs(n/wr/e)||0)},o.prototype.setDPR=function(t){this.dpr=t},o.prototype.setContext=function(t){this._ctx=t},o.prototype.getContext=function(){return this._ctx},o.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},o.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},o.prototype.moveTo=function(t,e){return this._drawPendingPt(),this.addData(Y.M,t,e),this._ctx&&this._ctx.moveTo(t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},o.prototype.lineTo=function(t,e){var n=vs(t-this._xi),i=vs(e-this._yi),r=n>this._ux||i>this._uy;return this.addData(Y.L,t,e),this._ctx&&r&&this._ctx.lineTo(t,e),r?(this._xi=t,this._yi=e,this._pendingPtDist=0):(r=n*n+i*i)>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=e,this._pendingPtDist=r),this},o.prototype.bezierCurveTo=function(t,e,n,i,r,o){return this._drawPendingPt(),this.addData(Y.C,t,e,n,i,r,o),this._ctx&&this._ctx.bezierCurveTo(t,e,n,i,r,o),this._xi=r,this._yi=o,this},o.prototype.quadraticCurveTo=function(t,e,n,i){return this._drawPendingPt(),this.addData(Y.Q,t,e,n,i),this._ctx&&this._ctx.quadraticCurveTo(t,e,n,i),this._xi=n,this._yi=i,this},o.prototype.arc=function(t,e,n,i,r,o){this._drawPendingPt(),ws[0]=i,ws[1]=r,s=o,(l=Ss((a=ws)[0]))<0&&(l+=xs),h=l-a[0],u=a[1],u+=h,!s&&xs<=u-l?u=l+xs:s&&xs<=l-u?u=l-xs:!s&&u<l?u=l+(xs-Ss(l-u)):s&&l<u&&(u=l-(xs-Ss(u-l))),a[0]=l,a[1]=u;var a,s,l,u,h=(r=ws[1])-(i=ws[0]);return this.addData(Y.A,t,e,n,n,i,h,0,o?0:1),this._ctx&&this._ctx.arc(t,e,n,i,r,o),this._xi=ys(r)*n+t,this._yi=ms(r)*n+e,this},o.prototype.arcTo=function(t,e,n,i,r){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,e,n,i,r),this},o.prototype.rect=function(t,e,n,i){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,e,n,i),this.addData(Y.R,t,e,n,i),this},o.prototype.closePath=function(){this._drawPendingPt(),this.addData(Y.Z);var t=this._ctx,e=this._x0,n=this._y0;return t&&t.closePath(),this._xi=e,this._yi=n,this},o.prototype.fill=function(t){t&&t.fill(),this.toStatic()},o.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},o.prototype.len=function(){return this._len},o.prototype.setData=function(t){if(this._saveData){var e=t.length;this.data&&this.data.length===e||!bs||(this.data=new Float32Array(e));for(var n=0;n<e;n++)this.data[n]=t[n];this._len=e}},o.prototype.appendPath=function(t){if(this._saveData){for(var e=(t=t instanceof Array?t:[t]).length,n=0,i=this._len,r=0;r<e;r++)n+=t[r].len();var o=this.data;if(bs&&(o instanceof Float32Array||!o)&&(this.data=new Float32Array(i+n),0<i)&&o)for(var a=0;a<i;a++)this.data[a]=o[a];for(r=0;r<e;r++)for(var s=t[r].data,a=0;a<s.length;a++)this.data[i++]=s[a];this._len=i}},o.prototype.addData=function(t,e,n,i,r,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]}},o.prototype._drawPendingPt=function(){0<this._pendingPtDist&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},o.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}},o.prototype.toStatic=function(){var t;this._saveData&&(this._drawPendingPt(),(t=this.data)instanceof Array)&&(t.length=this._len,bs)&&11<this._len&&(this.data=new Float32Array(t))},o.prototype.getBoundingRect=function(){hs[0]=hs[1]=ps[0]=ps[1]=Number.MAX_VALUE,cs[0]=cs[1]=ds[0]=ds[1]=-Number.MAX_VALUE;for(var t,e=this.data,n=0,i=0,r=0,o=0,a=0;a<this._len;){var B=e[a++],z=1===a;switch(z&&(r=n=e[a],o=i=e[a+1]),B){case Y.M:n=r=e[a++],i=o=e[a++],ps[0]=r,ps[1]=o,ds[0]=r,ds[1]=o;break;case Y.L:os(n,i,e[a],e[a+1],ps,ds),n=e[a++],i=e[a++];break;case Y.C:W=H=m=y=V=g=f=d=p=c=F=E=h=u=l=s=void 0;var s=n,l=i,u=e[a++],h=e[a++],E=e[a++],F=e[a++],c=e[a],p=e[a+1],d=ps,f=ds,g=Qn,V=jn,y=g(s,u,E,c,as);d[0]=1/0,d[1]=1/0,f[0]=-1/0,f[1]=-1/0;for(var m=0;m<y;m++){var H=V(s,u,E,c,as[m]);d[0]=$a(H,d[0]),f[0]=Qa(H,f[0])}for(y=g(l,h,F,p,ss),m=0;m<y;m++){var W=V(l,h,F,p,ss[m]);d[1]=$a(W,d[1]),f[1]=Qa(W,f[1])}d[0]=$a(s,d[0]),f[0]=Qa(s,f[0]),d[0]=$a(c,d[0]),f[0]=Qa(c,f[0]),d[1]=$a(l,d[1]),f[1]=Qa(l,f[1]),d[1]=$a(p,d[1]),f[1]=Qa(p,f[1]),n=e[a++],i=e[a++];break;case Y.Q:g=n,P=i,M=e[a++],x=e[a++],S=e[a],v=e[a+1],w=ps,T=ds,t=b=t=_=void 0,_=ei,t=Qa($a((b=ii)(g,M,S),1),0),b=Qa($a(b(P,x,v),1),0),M=_(g,M,S,t),t=_(P,x,v,b),w[0]=$a(g,S,M),w[1]=$a(P,v,t),T[0]=Qa(g,S,M),T[1]=Qa(P,v,t),n=e[a++],i=e[a++];break;case Y.A:var v,_=e[a++],x=e[a++],b=e[a++],w=e[a++],S=e[a++],M=e[a++]+S,T=(a+=1,!e[a++]),C=(z&&(r=ys(S)*b+_,o=ms(S)*w+x),N=v=U=G=R=O=P=L=A=D=I=k=C=void 0,_),k=x,I=b,D=w,A=S,L=M,P=T,O=ps,R=ds,G=oe,U=ae;if((v=Math.abs(A-L))%es<1e-4&&1e-4<v)O[0]=C-I,O[1]=k-D,R[0]=C+I,R[1]=k+D;else{ns[0]=ts(A)*I+C,ns[1]=Ja(A)*D+k,is[0]=ts(L)*I+C,is[1]=Ja(L)*D+k,G(O,ns,is),U(R,ns,is),(A%=es)<0&&(A+=es),(L%=es)<0&&(L+=es),L<A&&!P?L+=es:A<L&&P&&(A+=es),P&&(v=L,L=A,A=v);for(var N=0;N<L;N+=Math.PI/2)A<N&&(rs[0]=ts(N)*I+C,rs[1]=Ja(N)*D+k,G(O,rs,O),U(R,rs,R))}n=ys(M)*b+_,i=ms(M)*w+x;break;case Y.R:os(r=n=e[a++],o=i=e[a++],r+e[a++],o+e[a++],ps,ds);break;case Y.Z:n=r,i=o}oe(hs,hs,ps),ae(cs,cs,ds)}return 0===a&&(hs[0]=hs[1]=cs[0]=cs[1]=0),new X(hs[0],hs[1],cs[0]-hs[0],cs[1]-hs[1])},o.prototype._calculateLength=function(){for(var t=this.data,e=this._len,n=this._ux,i=this._uy,r=0,o=0,a=0,s=0,l=(this._pathSegLen||(this._pathSegLen=[]),this._pathSegLen),u=0,h=0,c=0;c<e;){var p=t[c++],d=1===c,f=(d&&(a=r=t[c],s=o=t[c+1]),-1);switch(p){case Y.M:r=a=t[c++],o=s=t[c++];break;case Y.L:var g=t[c++],y=(_=t[c++])-o;(vs(k=g-r)>n||vs(y)>i||c===e-1)&&(f=Math.sqrt(k*k+y*y),r=g,o=_);break;case Y.C:var m=t[c++],v=t[c++],g=t[c++],_=t[c++],x=t[c++],b=t[c++],f=function(t,e,n,i,r,o,a,s,l){for(var u=t,h=e,c=0,p=1/l,d=1;d<=l;d++){var f=d*p,g=jn(t,n,r,a,f),f=jn(e,i,o,s,f),y=g-u,m=f-h;c+=Math.sqrt(y*y+m*m),u=g,h=f}return c}(r,o,m,v,g,_,x,b,10),r=x,o=b;break;case Y.Q:f=function(t,e,n,i,r,o,a){for(var s=t,l=e,u=0,h=1/a,c=1;c<=a;c++){var p=c*h,d=ei(t,n,r,p),p=ei(e,i,o,p),f=d-s,g=p-l;u+=Math.sqrt(f*f+g*g),s=d,l=p}return u}(r,o,m=t[c++],v=t[c++],g=t[c++],_=t[c++],10),r=g,o=_;break;case Y.A:var x=t[c++],b=t[c++],w=t[c++],S=t[c++],M=t[c++],T=t[c++],C=T+M;c+=1,d&&(a=ys(M)*w+x,s=ms(M)*S+b),f=gs(w,S)*fs(xs,Math.abs(T)),r=ys(C)*w+x,o=ms(C)*S+b;break;case Y.R:a=r=t[c++],s=o=t[c++];f=2*t[c++]+2*t[c++];break;case Y.Z:var k=a-r,y=s-o;f=Math.sqrt(k*k+y*y),r=a,o=s}0<=f&&(u+=l[h++]=f)}return this._pathLen=u},o.prototype.rebuildPath=function(t,e){var n,i,r,o,a,s,l,u,h=this.data,B=this._ux,z=this._uy,E=this._len,c=e<1,p=0,d=0,f=0;if(!c||(this._pathSegLen||this._calculateLength(),a=this._pathSegLen,s=e*this._pathLen))t:for(var g=0;g<E;){var y=h[g++],F=1===g;switch(F&&(n=r=h[g],i=o=h[g+1]),y!==Y.L&&0<f&&(t.lineTo(l,u),f=0),y){case Y.M:n=r=h[g++],i=o=h[g++],t.moveTo(r,o);break;case Y.L:var m=h[g++],v=h[g++],_=vs(m-r),x=vs(v-o);if(B<_||z<x){if(c){if(s<p+(N=a[d++])){var b=(s-p)/N;t.lineTo(r*(1-b)+m*b,o*(1-b)+v*b);break t}p+=N}t.lineTo(m,v),r=m,o=v,f=0}else{_=_*_+x*x;f<_&&(l=m,u=v,f=_)}break;case Y.C:var w=h[g++],S=h[g++],M=h[g++],T=h[g++],x=h[g++],_=h[g++];if(c){if(s<p+(N=a[d++])){Jn(r,w,M,x,b=(s-p)/N,ls),Jn(o,S,T,_,b,us),t.bezierCurveTo(ls[1],us[1],ls[2],us[2],ls[3],us[3]);break t}p+=N}t.bezierCurveTo(w,S,M,T,x,_),r=x,o=_;break;case Y.Q:w=h[g++],S=h[g++],M=h[g++],T=h[g++];if(c){if(s<p+(N=a[d++])){ri(r,w,M,b=(s-p)/N,ls),ri(o,S,T,b,us),t.quadraticCurveTo(ls[1],us[1],ls[2],us[2]);break t}p+=N}t.quadraticCurveTo(w,S,M,T),r=M,o=T;break;case Y.A:var C=h[g++],k=h[g++],I=h[g++],D=h[g++],A=h[g++],L=h[g++],P=h[g++],V=!h[g++],H=D<I?I:D,O=.001<vs(I-D),R=A+L,W=!1;if(c&&(s<p+(N=a[d++])&&(R=A+L*(s-p)/N,W=!0),p+=N),O&&t.ellipse?t.ellipse(C,k,I,D,P,A,R,V):t.arc(C,k,H,A,R,V),W)break t;F&&(n=ys(A)*I+C,i=ms(A)*D+k),r=ys(R)*I+C,o=ms(R)*D+k;break;case Y.R:n=r=h[g],i=o=h[g+1],m=h[g++],v=h[g++];var N,L=h[g++],O=h[g++];if(c){if(s<p+(N=a[d++])){P=s-p;t.moveTo(m,v),t.lineTo(m+fs(P,L),v),0<(P-=L)&&t.lineTo(m+L,v+fs(P,O)),0<(P-=O)&&t.lineTo(m+gs(L-P,0),v+O),0<(P-=L)&&t.lineTo(m,v+gs(O-P,0));break t}p+=N}t.rect(m,v,L,O);break;case Y.Z:if(c){if(s<p+(N=a[d++])){b=(s-p)/N;t.lineTo(r*(1-b)+n*b,o*(1-b)+i*b);break t}p+=N}t.closePath(),r=n,o=i}}},o.prototype.clone=function(){var t=new o,e=this.data;return t.data=e.slice?e.slice():Array.prototype.slice.call(e),t._len=this._len,t},o.prototype.canSave=function(){return!!this._saveData},o.CMD=Y,o.initDefaultProps=((zl=o.prototype)._saveData=!0,zl._ux=0,zl._uy=0,zl._pendingPtDist=0,void(zl._version=0));var Ms=o;function o(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=[])}function Ts(t,e,n,i,r,o,a){var s;if(0!==r)return s=0,!(e+(r=r)<a&&i+r<a||a<e-r&&a<i-r||t+r<o&&n+r<o||o<t-r&&o<n-r)&&(t===n?Math.abs(o-t)<=r/2:(o=(s=(e-i)/(t-n))*o-a+(t*i-n*e)/(t-n))*o/(s*s+1)<=r/2*r/2)}var Cs=2*Math.PI;function ks(t){return(t%=Cs)<0&&(t+=Cs),t}var Is=2*Math.PI;function Ds(t,e,n,i,r,o){return e<o&&i<o||o<e&&o<i||i===e?0:(n=(o=(o-e)/(i-e))*(n-t)+t)===r?1/0:r<n?1!=o&&0!=o?i<e?1:-1:i<e?.5:-.5:0}var As=Ms.CMD,Ls=2*Math.PI,Ps=1e-4;var Os=[-1,-1,-1],Rs=[-1,-1];function Ns(t,e,n,i,r,o,a,s,l,u){if(e<u&&i<u&&o<u&&s<u||u<e&&u<i&&u<o&&u<s)return 0;var h=$n(e,i,o,s,u,Os);if(0===h)return 0;for(var c,p=0,d=-1,f=void 0,g=void 0,y=0;y<h;y++){var m=Os[y],v=0===m||1===m?.5:1;jn(t,n,r,a,m)<l||(d<0&&(d=Qn(e,i,o,s,Rs),Rs[1]<Rs[0]&&1<d&&(c=void 0,c=Rs[0],Rs[0]=Rs[1],Rs[1]=c),f=jn(e,i,o,s,Rs[0]),1<d)&&(g=jn(e,i,o,s,Rs[1])),2===d?m<Rs[0]?p+=f<e?v:-v:m<Rs[1]?p+=g<f?v:-v:p+=s<g?v:-v:m<Rs[0]?p+=f<e?v:-v:p+=s<f?v:-v)}return p}function Bs(t,e,n,i,r,o,a,s){if(e<s&&i<s&&o<s||s<e&&s<i&&s<o)return 0;c=Os,h=(l=e)-2*(u=i)+(h=o),u=2*(u-l),l-=s=s,s=0,qn(h)?Zn(u)&&0<=(p=-l/u)&&p<=1&&(c[s++]=p):qn(l=u*u-4*h*l)?0<=(p=-u/(2*h))&&p<=1&&(c[s++]=p):0<l&&(d=(-u-(l=Vn(l)))/(2*h),0<=(p=(-u+l)/(2*h))&&p<=1&&(c[s++]=p),0<=d)&&d<=1&&(c[s++]=d);var l,u,h,c,p,d,f=s;if(0===f)return 0;var g=ii(e,i,o);if(0<=g&&g<=1){for(var y=0,m=ei(e,i,o,g),v=0;v<f;v++){var _=0===Os[v]||1===Os[v]?.5:1;ei(t,n,r,Os[v])<a||(Os[v]<g?y+=m<e?_:-_:y+=o<m?_:-_)}return y}return _=0===Os[0]||1===Os[0]?.5:1,ei(t,n,r,Os[0])<a?0:o<e?_:-_}function zs(t,e,n,i,r){for(var o,a=t.data,s=t.len(),l=0,u=0,h=0,c=0,p=0,d=0;d<s;){var f=a[d++],g=1===d;switch(f===As.M&&1<d&&(n||(l+=Ds(u,h,c,p,i,r))),g&&(c=u=a[d],p=h=a[d+1]),f){case As.M:u=c=a[d++],h=p=a[d++];break;case As.L:if(n){if(Ts(u,h,a[d],a[d+1],e,i,r))return!0}else l+=Ds(u,h,a[d],a[d+1],i,r)||0;u=a[d++],h=a[d++];break;case As.C:if(n){if(function(t,e,n,i,r,o,a,s,l,u,h){if(0!==l)return!(e+(l=l)<h&&i+l<h&&o+l<h&&s+l<h||h<e-l&&h<i-l&&h<o-l&&h<s-l||t+l<u&&n+l<u&&r+l<u&&a+l<u||u<t-l&&u<n-l&&u<r-l&&u<a-l)&&ti(t,e,n,i,r,o,a,s,u,h,null)<=l/2}(u,h,a[d++],a[d++],a[d++],a[d++],a[d],a[d+1],e,i,r))return!0}else l+=Ns(u,h,a[d++],a[d++],a[d++],a[d++],a[d],a[d+1],i,r)||0;u=a[d++],h=a[d++];break;case As.Q:if(n){if(function(t,e,n,i,r,o,a,s,l){if(0!==a)return!(e+(a=a)<l&&i+a<l&&o+a<l||l<e-a&&l<i-a&&l<o-a||t+a<s&&n+a<s&&r+a<s||s<t-a&&s<n-a&&s<r-a)&&oi(t,e,n,i,r,o,s,l,null)<=a/2}(u,h,a[d++],a[d++],a[d],a[d+1],e,i,r))return!0}else l+=Bs(u,h,a[d++],a[d++],a[d],a[d+1],i,r)||0;u=a[d++],h=a[d++];break;case As.A:var y=a[d++],m=a[d++],v=a[d++],_=a[d++],x=a[d++],b=a[d++],w=(d+=1,!!(1-a[d++])),S=Math.cos(x)*v+y,M=Math.sin(x)*_+m,T=(g?(c=S,p=M):l+=Ds(u,h,S,M,i,r),(i-y)*_/v+y);if(n){if(function(t,e,n,i,r,o,a,s,l){if(0!==a)return a=a,s-=t,l-=e,!(n<(t=Math.sqrt(s*s+l*l))-a||t+a<n)&&(Math.abs(i-r)%Is<1e-4||((r=o?(e=i,i=ks(r),ks(e)):(i=ks(i),ks(r)))<i&&(r+=Is),(t=Math.atan2(l,s))<0&&(t+=Is),i<=t&&t<=r)||i<=t+Is&&t+Is<=r)}(y,m,_,x,x+b,w,e,T,r))return!0}else l+=function(t,e,n,i,r,o,a,s){if(n<(s-=e)||s<-n)return 0;var e=Math.sqrt(n*n-s*s);if(Os[0]=-e,Os[1]=e,(n=Math.abs(i-r))<1e-4)return 0;if(Ls-1e-4<=n)return r=Ls,h=o?1:-1,a>=Os[i=0]+t&&a<=Os[1]+t?h:0;r<i&&(e=i,i=r,r=e),i<0&&(i+=Ls,r+=Ls);for(var l=0,u=0;u<2;u++){var h,c=Os[u];a<c+t&&(h=o?1:-1,i<=(c=(c=Math.atan2(s,c))<0?Ls+c:c)&&c<=r||i<=c+Ls&&c+Ls<=r)&&(l+=h=c>Math.PI/2&&c<1.5*Math.PI?-h:h)}return l}(y,m,_,x,x+b,w,T,r);u=Math.cos(x+b)*v+y,h=Math.sin(x+b)*_+m;break;case As.R:c=u=a[d++],p=h=a[d++];if(S=c+a[d++],M=p+a[d++],n){if(Ts(c,p,S,p,e,i,r)||Ts(S,p,S,M,e,i,r)||Ts(S,M,c,M,e,i,r)||Ts(c,M,c,p,e,i,r))return!0}else l=(l+=Ds(S,p,S,M,i,r))+Ds(c,M,c,p,i,r);break;case As.Z:if(n){if(Ts(u,h,c,p,e,i,r))return!0}else l+=Ds(u,h,c,p,i,r);u=c,h=p}}return n||(t=h,o=p,Math.abs(t-o)<Ps)||(l+=Ds(u,h,c,p,i,r)||0),0!==l}var Es,Fs=z({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},Xa),Vs={style:z({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Ya.style)},Hs=Rr.concat(["invisible","culling","z","z2","zlevel","parent"]),Ws=(u(a,Es=n),a.prototype.update=function(){var e=this,t=(Es.prototype.update.call(this),this.style);if(t.decal){var n,i=this._decalEl=this._decalEl||new a,r=(i.buildPath===a.prototype.buildPath&&(i.buildPath=function(t){e.buildPath(t,e.shape)}),i.silent=!0,i.style);for(n in t)r[n]!==t[n]&&(r[n]=t[n]);r.fill=t.fill?t.decal:null,r.decal=null,r.shadowColor=null,t.strokeFirst&&(r.stroke=null);for(var o=0;o<Hs.length;++o)i[Hs[o]]=this[Hs[o]];i.__dirty|=An}else this._decalEl&&(this._decalEl=null)},a.prototype.getDecalElement=function(){return this._decalEl},a.prototype._init=function(t){var e=ct(t),n=(this.shape=this.getDefaultShape(),this.getDefaultStyle());n&&this.useStyle(n);for(var i=0;i<e.length;i++){var r=e[i],o=t[r];"style"===r?this.style?P(this.style,o):this.useStyle(o):"shape"===r?P(this.shape,o):Es.prototype.attrKV.call(this,r,o)}this.style||this.useStyle({})},a.prototype.getDefaultStyle=function(){return null},a.prototype.getDefaultShape=function(){return{}},a.prototype.canBeInsideText=function(){return this.hasFill()},a.prototype.getInsideTextFill=function(){var t,e=this.style.fill;if("none"!==e){if(V(e))return.5<(t=Ni(e,0))?Sr:.2<t?"#eee":Mr;if(e)return Mr}return Sr},a.prototype.getInsideTextStroke=function(t){var e=this.style.fill;if(V(e)){var n=this.__zr;if(!(!n||!n.isDarkMode())==Ni(t,0)<.4)return e}},a.prototype.buildPath=function(t,e,n){},a.prototype.pathUpdated=function(){this.__dirty&=~Ln},a.prototype.getUpdatedPathProxy=function(t){return this.path||this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,t),this.path},a.prototype.createPathProxy=function(){this.path=new Ms(!1)},a.prototype.hasStroke=function(){var t=this.style,e=t.stroke;return!(null==e||"none"===e||!(0<t.lineWidth))},a.prototype.hasFill=function(){var t=this.style.fill;return null!=t&&"none"!==t},a.prototype.getBoundingRect=function(){var t,e,n=this._rect,i=this.style,r=!n;return r&&(t=!1,this.path||(t=!0,this.createPathProxy()),e=this.path,(t||this.__dirty&Ln)&&(e.beginPath(),this.buildPath(e,this.shape,!1),this.pathUpdated()),n=e.getBoundingRect()),this._rect=n,this.hasStroke()&&this.path&&0<this.path.len()?(t=this._rectStroke||(this._rectStroke=n.clone()),(this.__dirty||r)&&(t.copy(n),e=i.strokeNoScale?this.getLineScale():1,r=i.lineWidth,this.hasFill()||(i=this.strokeContainThreshold,r=Math.max(r,null==i?4:i)),1e-10<e)&&(t.width+=r/e,t.height+=r/e,t.x-=r/e/2,t.y-=r/e/2),t):n},a.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e),i=this.getBoundingRect(),r=this.style;if(t=n[0],e=n[1],i.contain(t,e)){n=this.path;if(this.hasStroke()){i=r.lineWidth,r=r.strokeNoScale?this.getLineScale():1;if(1e-10<r&&(this.hasFill()||(i=Math.max(i,this.strokeContainThreshold)),zs(n,i/r,!0,t,e)))return!0}if(this.hasFill())return zs(n,0,!1,t,e)}return!1},a.prototype.dirtyShape=function(){this.__dirty|=Ln,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},a.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},a.prototype.animateShape=function(t){return this.animate("shape",t)},a.prototype.updateDuringAnimation=function(t){"style"===t?this.dirtyStyle():"shape"===t?this.dirtyShape():this.markRedraw()},a.prototype.attrKV=function(t,e){"shape"===t?this.setShape(e):Es.prototype.attrKV.call(this,t,e)},a.prototype.setShape=function(t,e){var n=(n=this.shape)||(this.shape={});return"string"==typeof t?n[t]=e:P(n,t),this.dirtyShape(),this},a.prototype.shapeChanged=function(){return!!(this.__dirty&Ln)},a.prototype.createStyle=function(t){return Et(Fs,t)},a.prototype._innerSaveToNormal=function(t){Es.prototype._innerSaveToNormal.call(this,t);var e=this._normalState;t.shape&&!e.shape&&(e.shape=P({},this.shape))},a.prototype._applyStateObj=function(t,e,n,i,r,o){Es.prototype._applyStateObj.call(this,t,e,n,i,r,o);var a,s=!(e&&i);if(e&&e.shape?r?i?a=e.shape:(a=P({},n.shape),P(a,e.shape)):(a=P({},(i?this:n).shape),P(a,e.shape)):s&&(a=n.shape),a)if(r){this.shape=P({},this.shape);for(var l={},u=ct(a),h=0;h<u.length;h++){var c=u[h];"object"==typeof a[c]?this.shape[c]=a[c]:l[c]=a[c]}this._transitionState(t,{shape:l},o)}else this.shape=a,this.dirtyShape()},a.prototype._mergeStates=function(t){for(var e,n=Es.prototype._mergeStates.call(this,t),i=0;i<t.length;i++){var r=t[i];r.shape&&this._mergeStyle(e=e||{},r.shape)}return e&&(n.shape=e),n},a.prototype.getAnimationStyleProps=function(){return Vs},a.prototype.isZeroArea=function(){return!1},a.extend=function(n){u(r,i=a),r.prototype.getDefaultStyle=function(){return y(n.style)},r.prototype.getDefaultShape=function(){return y(n.shape)};var i,t,e=r;function r(t){var e=i.call(this,t)||this;return n.init&&n.init.call(e,t),e}for(t in n)"function"==typeof n[t]&&(e.prototype[t]=n[t]);return e},a.initDefaultProps=((zl=a.prototype).type="path",zl.strokeContainThreshold=5,zl.segmentIgnoreThreshold=0,zl.subPixelOptimize=!1,zl.autoBatch=!1,void(zl.__dirty=2|An|Ln)),a);function a(t){return Es.call(this,t)||this}var Gs,Us=z({strokeFirst:!0,font:j,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},Fs),Xs=(u(Ys,Gs=n),Ys.prototype.hasStroke=function(){return Wa(this.style)},Ys.prototype.hasFill=function(){var t=this.style.fill;return null!=t&&"none"!==t},Ys.prototype.createStyle=function(t){return Et(Us,t)},Ys.prototype.setBoundingRect=function(t){this._rect=t},Ys.prototype.getBoundingRect=function(){var t,e,n;return this._rect||(this._rect=(t=this.style,e=Va(t.text),n=t.font,Ha(t,Fr(Br(n),e),Ur(n),null))),this._rect},Ys.initDefaultProps=void(Ys.prototype.dirtyRectTolerance=10),Ys);function Ys(){return null!==Gs&&Gs.apply(this,arguments)||this}Xs.prototype.type="tspan";var qs=z({x:0,y:0},Xa),Zs={style:z({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Ya.style)};u($s,js=n),$s.prototype.createStyle=function(t){return Et(qs,t)},$s.prototype._getSize=function(t){var e,n=this.style,i=n[t];return null!=i?i:(i=(i=n.image)&&"string"!=typeof i&&i.width&&i.height?n.image:this.__image)?null==(e=n[n="width"===t?"height":"width"])?i[t]:i[t]/i[n]*e:0},$s.prototype.getWidth=function(){return this._getSize("width")},$s.prototype.getHeight=function(){return this._getSize("height")},$s.prototype.getAnimationStyleProps=function(){return Zs},$s.prototype.getBoundingRect=function(){var t=this.style;return this._rect||(this._rect=new X(t.x||0,t.y||0,this.getWidth(),this.getHeight())),this._rect};var js,Ks=$s;function $s(){return null!==js&&js.apply(this,arguments)||this}Ks.prototype.type="image";var Qs=Math.round;function Js(t,e,n){var i,r,o;if(e)return i=e.x1,r=e.x2,o=e.y1,e=e.y2,t.x1=i,t.x2=r,t.y1=o,t.y2=e,(n=n&&n.lineWidth)&&(Qs(2*i)===Qs(2*r)&&(t.x1=t.x2=el(i,n,!0)),Qs(2*o)===Qs(2*e))&&(t.y1=t.y2=el(o,n,!0)),t}function tl(t,e,n){var i,r,o;if(e)return i=e.x,r=e.y,o=e.width,e=e.height,t.x=i,t.y=r,t.width=o,t.height=e,(n=n&&n.lineWidth)&&(t.x=el(i,n,!0),t.y=el(r,n,!0),t.width=Math.max(el(i+o,n,!1)-t.x,0===o?0:1),t.height=Math.max(el(r+e,n,!1)-t.y,0===e?0:1)),t}function el(t,e,n){var i;return e?((i=Qs(2*t))+Qs(e))%2==0?i/2:(i+(n?1:-1))/2:t}var nl,il=function(){this.x=0,this.y=0,this.width=0,this.height=0},rl={},ol=(u(al,nl=Ws),al.prototype.getDefaultShape=function(){return new il},al.prototype.buildPath=function(t,e){var n,i,r,o,a,s,l,u,h,c,p,d,f,g;this.subPixelOptimize?(n=(a=tl(rl,e,this.style)).x,i=a.y,r=a.width,o=a.height,a.r=e.r,e=a):(n=e.x,i=e.y,r=e.width,o=e.height),e.r?(a=t,p=(e=e).x,d=e.y,f=e.width,g=e.height,e=e.r,f<0&&(p+=f,f=-f),g<0&&(d+=g,g=-g),"number"==typeof e?s=l=u=h=e:e instanceof Array?1===e.length?s=l=u=h=e[0]:2===e.length?(s=u=e[0],l=h=e[1]):3===e.length?(s=e[0],l=h=e[1],u=e[2]):(s=e[0],l=e[1],u=e[2],h=e[3]):s=l=u=h=0,f<s+l&&(s*=f/(c=s+l),l*=f/c),f<u+h&&(u*=f/(c=u+h),h*=f/c),g<l+u&&(l*=g/(c=l+u),u*=g/c),g<s+h&&(s*=g/(c=s+h),h*=g/c),a.moveTo(p+s,d),a.lineTo(p+f-l,d),0!==l&&a.arc(p+f-l,d+l,l,-Math.PI/2,0),a.lineTo(p+f,d+g-u),0!==u&&a.arc(p+f-u,d+g-u,u,0,Math.PI/2),a.lineTo(p+h,d+g),0!==h&&a.arc(p+h,d+g-h,h,Math.PI/2,Math.PI),a.lineTo(p,d+s),0!==s&&a.arc(p+s,d+s,s,Math.PI,1.5*Math.PI)):t.rect(n,i,r,o)},al.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},al);function al(t){return nl.call(this,t)||this}ol.prototype.type="rect";var sl,ll={fill:"#000"},ul={},hl={style:z({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},Ya.style)},cl=(u(pl,sl=n),pl.prototype.childrenRef=function(){return this._children},pl.prototype.update=function(){sl.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var t=0;t<this._children.length;t++){var e=this._children[t];e.zlevel=this.zlevel,e.z=this.z,e.z2=this.z2,e.culling=this.culling,e.cursor=this.cursor,e.invisible=this.invisible}},pl.prototype.updateTransform=function(){var t=this.innerTransformable;t?(t.updateTransform(),t.transform&&(this.transform=t.transform)):sl.prototype.updateTransform.call(this)},pl.prototype.getLocalTransform=function(t){var e=this.innerTransformable;return e?e.getLocalTransform(t):sl.prototype.getLocalTransform.call(this,t)},pl.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),sl.prototype.getComputedTransform.call(this)},pl.prototype._updateSubTexts=function(){var t;this._childCursor=0,ml(t=this.style),N(t.rich,ml),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},pl.prototype.addSelfToZr=function(t){sl.prototype.addSelfToZr.call(this,t);for(var e=0;e<this._children.length;e++)this._children[e].__zr=t},pl.prototype.removeSelfFromZr=function(t){sl.prototype.removeSelfFromZr.call(this,t);for(var e=0;e<this._children.length;e++)this._children[e].__zr=null},pl.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var t=new X(0,0,0,0),e=this._children,n=[],i=null,r=0;r<e.length;r++){var o=e[r],a=o.getBoundingRect(),o=o.getLocalTransform(n);o?(t.copy(a),t.applyTransform(o),(i=i||t.clone()).union(t)):(i=i||a.clone()).union(a)}this._rect=i||t}return this._rect},pl.prototype.setDefaultTextStyle=function(t){this._defaultStyle=t||ll},pl.prototype.setTextContent=function(t){},pl.prototype._mergeStyle=function(t,e){var n,i;return e&&(n=e.rich,i=t.rich||n&&{},P(t,e),n&&i?(this._mergeRich(i,n),t.rich=i):i&&(t.rich=i)),t},pl.prototype._mergeRich=function(t,e){for(var n=ct(e),i=0;i<n.length;i++){var r=n[i];t[r]=t[r]||{},P(t[r],e[r])}},pl.prototype.getAnimationStyleProps=function(){return hl},pl.prototype._getOrCreateChild=function(t){var e=this._children[this._childCursor];return e&&e instanceof t||(e=new t),(this._children[this._childCursor++]=e).__zr=this.__zr,e.parent=this,e},pl.prototype._updatePlainTexts=function(){var t=this.style,e=t.font||j,n=t.padding,i=this._defaultStyle,r=t.x||0,o=t.y||0,a=t.align||i.align||"left",s=t.verticalAlign||i.verticalAlign||"top";za(ul,i.overflowRect,r,o,a,s);for(var l,r=ul.baseX,o=ul.baseY,u=function(t,e,n,i){var r,t=Va(t),o=e.overflow,a=(s=e.padding)?s[1]+s[3]:0,s=s?s[0]+s[2]:0,l=e.font,u="truncate"===o,h=Ur(l),c=W(e.lineHeight,h),p="truncate"===e.lineOverflow,d=!1,f=e.width,g=e.height,i=(null==g&&null!=i&&(g=i-s),(r=null==(f=null==f&&null!=n?n-a:f)||"break"!==o&&"breakAll"!==o?t?t.split("\n"):[]:t?Ba(t,e.font,f,"breakAll"===o,0).lines:[]).length*c);if((g=null==g?i:g)<i&&p&&(n=Math.floor(g/c),d=d||r.length>n,i=(r=r.slice(0,n)).length*c),t&&u&&null!=f)for(var y=Ia(f,l,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),m={},v=0;v<r.length;v++)Da(m,r[v],y),r[v]=m.textLine,d=d||m.isTruncated;for(var o=g,_=0,x=Br(l),v=0;v<r.length;v++)_=Math.max(Fr(x,r[v]),_);return p=f=null==f?_:f,{lines:r,height:g,outerWidth:p+=a,outerHeight:o+=s,lineHeight:c,calculatedLineHeight:h,contentWidth:_,contentHeight:i,width:f,isTruncated:d}}(bl(t),t,ul.outerWidth,ul.outerHeight),h=wl(t),c=!!t.backgroundColor,p=u.outerHeight,d=u.outerWidth,f=u.lines,g=u.lineHeight,y=(this.isTruncated=!!u.isTruncated,r),m=Gr(o,u.contentHeight,s),v=((h||n)&&(l=Wr(r,d,a),o=Gr(o,p,s),h)&&this._renderBackground(t,t,l,o,d,p),m+=g/2,n&&(y=xl(r,a,n),"top"===s?m+=n[0]:"bottom"===s&&(m-=n[2])),0),_=!1,h=!1,x=(_l(("fill"in t?t:(h=!0,i)).fill)),b=(vl("stroke"in t?t.stroke:c||i.autoStroke&&!h?null:(v=2,_=!0,i.stroke))),w=0<t.textShadowBlur,S=0;S<f.length;S++){var M=this._getOrCreateChild(Xs),T=M.createStyle();M.useStyle(T),T.text=f[S],T.x=y,T.y=m,a&&(T.textAlign=a),T.textBaseline="middle",T.opacity=t.opacity,T.strokeFirst=!0,w&&(T.shadowBlur=t.textShadowBlur||0,T.shadowColor=t.textShadowColor||"transparent",T.shadowOffsetX=t.textShadowOffsetX||0,T.shadowOffsetY=t.textShadowOffsetY||0),T.stroke=b,T.fill=x,b&&(T.lineWidth=t.lineWidth||v,T.lineDash=t.lineDash,T.lineDashOffset=t.lineDashOffset||0),T.font=e,yl(T,t),m+=g,M.setBoundingRect(Ha(T,u.contentWidth,u.calculatedLineHeight,_?0:null))}},pl.prototype._updateRichTexts=function(){var t=this.style,e=this._defaultStyle,n=t.align||e.align,i=t.verticalAlign||e.verticalAlign,r=t.x||0,o=t.y||0;za(ul,e.overflowRect,r,o,n,i);for(var r=ul.baseX,o=ul.baseY,a=Oa(bl(t),t,ul.outerWidth,ul.outerHeight,n),s=a.width,e=a.outerWidth,l=a.outerHeight,u=t.padding,r=(this.isTruncated=!!a.isTruncated,Wr(r,e,n)),n=Gr(o,l,i),h=r,c=n,p=(u&&(h+=u[3],c+=u[0]),h+s),d=(wl(t)&&this._renderBackground(t,t,r,n,e,l),!!t.backgroundColor),f=0;f<a.lines.length;f++){for(var g=a.lines[f],y=g.tokens,m=y.length,v=g.lineHeight,_=g.width,x=0,b=h,w=p,S=m-1,M=void 0;x<m&&(!(M=y[x]).align||"left"===M.align);)this._placeToken(M,t,v,c,b,"left",d),_-=M.width,b+=M.width,x++;for(;0<=S&&"right"===(M=y[S]).align;)this._placeToken(M,t,v,c,w,"right",d),_-=M.width,w-=M.width,S--;for(b+=(s-(b-h)-(p-w)-_)/2;x<=S;)M=y[x],this._placeToken(M,t,v,c,b+M.width/2,"center",d),b+=M.width,x++;c+=v}},pl.prototype._placeToken=function(t,e,n,i,r,o,a){var s=e.rich[t.styleName]||{},l=(s.text=t.text,t.verticalAlign),u=i+n/2;"top"===l?u=i+t.height/2:"bottom"===l&&(u=i+n-t.height/2);!t.isLineHolder&&wl(s)&&this._renderBackground(s,e,"right"===o?r-t.width:"center"===o?r-t.width/2:r,u-t.height/2,t.width,t.height);var l=!!s.backgroundColor,i=t.textPadding,n=(i&&(r=xl(r,o,i),u-=t.height/2-i[0]-t.innerHeight/2),this._getOrCreateChild(Xs)),i=n.createStyle(),h=(n.useStyle(i),this._defaultStyle),c=!1,p=0,d=!1,f=_l(("fill"in s?s:"fill"in e?e:(c=!0,h)).fill),l=vl("stroke"in s?s.stroke:"stroke"in e?e.stroke:l||a||h.autoStroke&&!c?null:(p=2,d=!0,h.stroke)),a=0<s.textShadowBlur||0<e.textShadowBlur;i.text=t.text,i.x=r,i.y=u,a&&(i.shadowBlur=s.textShadowBlur||e.textShadowBlur||0,i.shadowColor=s.textShadowColor||e.textShadowColor||"transparent",i.shadowOffsetX=s.textShadowOffsetX||e.textShadowOffsetX||0,i.shadowOffsetY=s.textShadowOffsetY||e.textShadowOffsetY||0),i.textAlign=o,i.textBaseline="middle",i.font=t.font||j,i.opacity=Mt(s.opacity,e.opacity,1),yl(i,s),l&&(i.lineWidth=Mt(s.lineWidth,e.lineWidth,p),i.lineDash=W(s.lineDash,e.lineDash),i.lineDashOffset=e.lineDashOffset||0,i.stroke=l),f&&(i.fill=f),n.setBoundingRect(Ha(i,t.contentWidth,t.contentHeight,d?0:null))},pl.prototype._renderBackground=function(t,e,n,i,r,o){var a,s,l,u,h=t.backgroundColor,c=t.borderWidth,p=t.borderColor,d=h&&h.image,f=h&&!d,g=t.borderRadius,y=this,g=((f||t.lineHeight||c&&p)&&((a=this._getOrCreateChild(ol)).useStyle(a.createStyle()),a.style.fill=null,(l=a.shape).x=n,l.y=i,l.width=r,l.height=o,l.r=g,a.dirtyShape()),f?((u=a.style).fill=h||null,u.fillOpacity=W(t.fillOpacity,1)):d&&((s=this._getOrCreateChild(Ks)).onload=function(){y.dirtyStyle()},(l=s.style).image=h.image,l.x=n,l.y=i,l.width=r,l.height=o),c&&p&&((u=a.style).lineWidth=c,u.stroke=p,u.strokeOpacity=W(t.strokeOpacity,1),u.lineDash=t.borderDash,u.lineDashOffset=t.borderDashOffset||0,a.strokeContainThreshold=0,a.hasFill())&&a.hasStroke()&&(u.strokeFirst=!0,u.lineWidth*=2),(a||s).style);g.shadowBlur=t.shadowBlur||0,g.shadowColor=t.shadowColor||"transparent",g.shadowOffsetX=t.shadowOffsetX||0,g.shadowOffsetY=t.shadowOffsetY||0,g.opacity=Mt(t.opacity,e.opacity,1)},pl.makeFont=function(t){var e,n="";return(n=null!=(e=t).fontSize||e.fontFamily||e.fontWeight?[t.fontStyle,t.fontWeight,"string"!=typeof(e=t.fontSize)||-1===e.indexOf("px")&&-1===e.indexOf("rem")&&-1===e.indexOf("em")?isNaN(+e)?"12px":e+"px":e,t.fontFamily||"sans-serif"].join(" "):n)&&It(n)||t.textFont||t.font},pl);function pl(t){var e=sl.call(this)||this;return e.type="text",e._children=[],e._defaultStyle=ll,e.attr(t),e}var dl={left:!0,right:1,center:1},fl={top:1,bottom:1,middle:1},gl=["fontStyle","fontWeight","fontSize","fontFamily"];function yl(t,e){for(var n=0;n<gl.length;n++){var i=gl[n],r=e[i];null!=r&&(t[i]=r)}}function ml(t){var e;t&&(t.font=cl.makeFont(t),e=t.align,t.align=null==(e="middle"===e?"center":e)||dl[e]?e:"left",e=t.verticalAlign,t.verticalAlign=null==(e="center"===e?"middle":e)||fl[e]?e:"top",t.padding)&&(t.padding=Ct(t.padding))}function vl(t,e){return null==t||e<=0||"transparent"===t||"none"===t?null:t.image||t.colorStops?"#000":t}function _l(t){return null==t||"none"===t?null:t.image||t.colorStops?"#000":t}function xl(t,e,n){return"right"===e?t-n[1]:"center"===e?t+n[3]/2-n[1]/2:t+n[3]}function bl(t){t=t.text;return null!=t&&(t+=""),t}function wl(t){return!!(t.backgroundColor||t.lineHeight||t.borderWidth&&t.borderColor)}var G=ta(),Sl=1,Ml={},Tl=ta(),Cl=ta(),kl=0,Il=1,Dl=2,Al=["emphasis","blur","select"],Ll=["normal","emphasis","blur","select"],Pl="highlight",Ol="downplay",Rl="select",Nl="unselect",Bl="toggleSelect",zl="selectchanged";function El(t){return null!=t&&"none"!==t}function Fl(t,e,n){t.onHoverStateChange&&(t.hoverState||0)!==n&&t.onHoverStateChange(e),t.hoverState=n}function Vl(t){Fl(t,"emphasis",Dl)}function Hl(t){t.hoverState===Dl&&Fl(t,"normal",kl)}function Wl(t){Fl(t,"blur",Il)}function Gl(t){t.hoverState===Il&&Fl(t,"normal",kl)}function Ul(t){t.selected=!0}function Xl(t){t.selected=!1}function Yl(t,e,n){e(t,n)}function ql(t,e,n){Yl(t,e,n),t.isGroup&&t.traverse(function(t){Yl(t,e,n)})}function Zl(t,e){switch(e){case"emphasis":t.hoverState=Dl;break;case"normal":t.hoverState=kl;break;case"blur":t.hoverState=Il;break;case"select":t.selected=!0}}function jl(t,e,n){var i=0<=I(t.currentStates,e),r=t.style.opacity,t=i?null:function(t,e,n,i){for(var r=t.style,o={},a=0;a<e.length;a++){var s=e[a],l=r[s];o[s]=null==l?i&&i[s]:l}for(a=0;a<t.animators.length;a++){var u=t.animators[a];u.__fromStateTransition&&u.__fromStateTransition.indexOf(n)<0&&"style"===u.targetName&&u.saveTo(o,e)}return o}(t,["opacity"],e,{opacity:1}),e=(n=n||{}).style||{};return null==e.opacity&&(n=P({},n),e=P({opacity:i?r:.1*t.opacity},e),n.style=e),n}function Kl(t,e){var n,i,r,o,a,s=this.states[t];if(this.style){if("emphasis"===t)return n=this,i=s,e=(e=e)&&0<=I(e,"select"),a=!1,n instanceof Ws&&(r=Tl(n),o=e&&r.selectFill||r.normalFill,e=e&&r.selectStroke||r.normalStroke,El(o)||El(e))&&("inherit"===(r=(i=i||{}).style||{}).fill?(a=!0,i=P({},i),(r=P({},r)).fill=o):!El(r.fill)&&El(o)?(a=!0,i=P({},i),(r=P({},r)).fill=zi(o)):!El(r.stroke)&&El(e)&&(a||(i=P({},i),r=P({},r)),r.stroke=zi(e)),i.style=r),i&&null==i.z2&&(a||(i=P({},i)),o=n.z2EmphasisLift,i.z2=n.z2+(null!=o?o:10)),i;if("blur"===t)return jl(this,t,s);if("select"===t)return e=this,(r=s)&&null==r.z2&&(r=P({},r),a=e.z2SelectLift,r.z2=e.z2+(null!=a?a:9)),r}return s}function $l(t){t.stateProxy=Kl;var e=t.getTextContent(),t=t.getTextGuideLine();e&&(e.stateProxy=Kl),t&&(t.stateProxy=Kl)}function Ql(t,e){ou(t,e)||t.__highByOuter||ql(t,Vl)}function Jl(t,e){ou(t,e)||t.__highByOuter||ql(t,Hl)}function tu(t,e){t.__highByOuter|=1<<(e||0),ql(t,Vl)}function eu(t,e){(t.__highByOuter&=~(1<<(e||0)))||ql(t,Hl)}function nu(t){ql(t,Gl)}function iu(t){ql(t,Ul)}function ru(t){ql(t,Xl)}function ou(t,e){return t.__highDownSilentOnTouch&&e.zrByTouch}function au(r){var e=r.getModel(),o=[],a=[];e.eachComponent(function(t,e){var n=Cl(e),t="series"===t,i=t?r.getViewOfSeriesModel(e):r.getViewOfComponentModel(e);t||a.push(i),n.isBlured&&(i.group.traverse(function(t){Gl(t)}),t)&&o.push(e),n.isBlured=!1}),N(a,function(t){t&&t.toggleBlurSeries&&t.toggleBlurSeries(o,!1,e)})}function su(t,o,a,s){var l,u,h,n=s.getModel();function c(t,e){for(var n=0;n<e.length;n++){var i=t.getItemGraphicEl(e[n]);i&&nu(i)}}a=a||"coordinateSystem",null!=t&&o&&"none"!==o&&(l=n.getSeriesByIndex(t),(u=l.coordinateSystem)&&u.master&&(u=u.master),h=[],n.eachSeries(function(t){var e=l===t,n=t.coordinateSystem,n=(n=n&&n.master?n.master:n)&&u?n===u:e;if(!("series"===a&&!e||"coordinateSystem"===a&&!n||"series"===o&&e)){if(s.getViewOfSeriesModel(t).group.traverse(function(t){t.__highByOuter&&e&&"self"===o||Wl(t)}),st(o))c(t.getData(),o);else if(H(o))for(var i=ct(o),r=0;r<i.length;r++)c(t.getData(i[r]),o[i[r]]);h.push(t),Cl(t).isBlured=!0}}),n.eachComponent(function(t,e){"series"!==t&&(t=s.getViewOfComponentModel(e))&&t.toggleBlurSeries&&t.toggleBlurSeries(h,!0,n)}))}function lu(t,e,n){var i;null!=t&&null!=e&&(t=n.getModel().getComponent(t,e))&&(Cl(t).isBlured=!0,i=n.getViewOfComponentModel(t))&&i.focusBlurEnabled&&i.group.traverse(function(t){Wl(t)})}function uu(t,e,n,i){var r={focusSelf:!1,dispatchers:null};if(null==t||"series"===t||null==e||null==n)return r;t=i.getModel().getComponent(t,e);if(!t)return r;e=i.getViewOfComponentModel(t);if(!e||!e.findHighDownDispatchers)return r;for(var o,a=e.findHighDownDispatchers(n),s=0;s<a.length;s++)if("self"===G(a[s]).focus){o=!0;break}return{focusSelf:o,dispatchers:a}}function hu(i){N(i.getAllData(),function(t){var e=t.data,n=t.type;e.eachItemGraphicEl(function(t,e){(i.isSelected(e,n)?iu:ru)(t)})})}function cu(t,e,n){yu(t,!0),ql(t,$l);t=G(t),null!=e?(t.focus=e,t.blurScope=n):t.focus&&(t.focus=null)}function pu(t,e,n,i){i?yu(t,!1):cu(t,e,n)}var du=["emphasis","blur","select"],fu={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function gu(t,e,n,i){n=n||"itemStyle";for(var r=0;r<du.length;r++){var o=du[r],a=e.getModel([o,n]);t.ensureState(o).style=i?i(a):a[fu[n]]()}}function yu(t,e){var e=!1===e,n=t;t.highDownSilentOnTouch&&(n.__highDownSilentOnTouch=t.highDownSilentOnTouch),e&&!n.__highDownDispatcher||(n.__highByOuter=n.__highByOuter||0,n.__highDownDispatcher=!e)}function mu(t){return!(!t||!t.__highDownDispatcher)}function vu(t){t=t.type;return t===Rl||t===Nl||t===Bl}function _u(t){t=t.type;return t===Pl||t===Ol}var xu=Ms.CMD,bu=[[],[],[]],wu=Math.sqrt,Su=Math.atan2;var Mu=Math.sqrt,Tu=Math.sin,Cu=Math.cos,ku=Math.PI;function Iu(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function Du(t,e){return(t[0]*e[0]+t[1]*e[1])/(Iu(t)*Iu(e))}function Au(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(Du(t,e))}function Lu(t,e,n,i,r,o,a,s,l,u,h){var l=l*(ku/180),c=Cu(l)*(t-n)/2+Tu(l)*(e-i)/2,p=-1*Tu(l)*(t-n)/2+Cu(l)*(e-i)/2,d=c*c/(a*a)+p*p/(s*s),d=(1<d&&(a*=Mu(d),s*=Mu(d)),(r===o?-1:1)*Mu((a*a*(s*s)-a*a*(p*p)-s*s*(c*c))/(a*a*(p*p)+s*s*(c*c)))||0),r=d*a*p/s,d=d*-s*c/a,t=(t+n)/2+Cu(l)*r-Tu(l)*d,n=(e+i)/2+Tu(l)*r+Cu(l)*d,e=Au([1,0],[(c-r)/a,(p-d)/s]),i=[(c-r)/a,(p-d)/s],c=[(-1*c-r)/a,(-1*p-d)/s],r=Au(i,c);Du(i,c)<=-1&&(r=ku),(r=1<=Du(i,c)?0:r)<0&&(p=Math.round(r/ku*1e6)/1e6,r=2*ku+p%2*ku),h.addData(u,t,n,a,s,e,r,l,o)}var Pu=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,Ou=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;u(Bu,Ru=Ws),Bu.prototype.applyTransform=function(t){};var Ru,Nu=Bu;function Bu(){return null!==Ru&&Ru.apply(this,arguments)||this}function zu(t){return null!=t.setData}function Eu(t,e){var S=function(t){var e=new Ms;if(t){var n,i=0,r=0,o=i,a=r,s=Ms.CMD,l=t.match(Pu);if(l){for(var u=0;u<l.length;u++){for(var h=l[u],c=h.charAt(0),p=void 0,d=h.match(Ou)||[],f=d.length,g=0;g<f;g++)d[g]=parseFloat(d[g]);for(var y=0;y<f;){var m=void 0,v=void 0,_=void 0,x=void 0,b=void 0,w=void 0,S=void 0,M=i,T=r,C=void 0,k=void 0;switch(c){case"l":i+=d[y++],r+=d[y++],p=s.L,e.addData(p,i,r);break;case"L":i=d[y++],r=d[y++],p=s.L,e.addData(p,i,r);break;case"m":i+=d[y++],r+=d[y++],p=s.M,e.addData(p,i,r),o=i,a=r,c="l";break;case"M":i=d[y++],r=d[y++],p=s.M,e.addData(p,i,r),o=i,a=r,c="L";break;case"h":i+=d[y++],p=s.L,e.addData(p,i,r);break;case"H":i=d[y++],p=s.L,e.addData(p,i,r);break;case"v":r+=d[y++],p=s.L,e.addData(p,i,r);break;case"V":r=d[y++],p=s.L,e.addData(p,i,r);break;case"C":p=s.C,e.addData(p,d[y++],d[y++],d[y++],d[y++],d[y++],d[y++]),i=d[y-2],r=d[y-1];break;case"c":p=s.C,e.addData(p,d[y++]+i,d[y++]+r,d[y++]+i,d[y++]+r,d[y++]+i,d[y++]+r),i+=d[y-2],r+=d[y-1];break;case"S":m=i,v=r,C=e.len(),k=e.data,n===s.C&&(m+=i-k[C-4],v+=r-k[C-3]),p=s.C,M=d[y++],T=d[y++],i=d[y++],r=d[y++],e.addData(p,m,v,M,T,i,r);break;case"s":m=i,v=r,C=e.len(),k=e.data,n===s.C&&(m+=i-k[C-4],v+=r-k[C-3]),p=s.C,M=i+d[y++],T=r+d[y++],i+=d[y++],r+=d[y++],e.addData(p,m,v,M,T,i,r);break;case"Q":M=d[y++],T=d[y++],i=d[y++],r=d[y++],p=s.Q,e.addData(p,M,T,i,r);break;case"q":M=d[y++]+i,T=d[y++]+r,i+=d[y++],r+=d[y++],p=s.Q,e.addData(p,M,T,i,r);break;case"T":m=i,v=r,C=e.len(),k=e.data,n===s.Q&&(m+=i-k[C-4],v+=r-k[C-3]),i=d[y++],r=d[y++],p=s.Q,e.addData(p,m,v,i,r);break;case"t":m=i,v=r,C=e.len(),k=e.data,n===s.Q&&(m+=i-k[C-4],v+=r-k[C-3]),i+=d[y++],r+=d[y++],p=s.Q,e.addData(p,m,v,i,r);break;case"A":_=d[y++],x=d[y++],b=d[y++],w=d[y++],S=d[y++],Lu(M=i,T=r,i=d[y++],r=d[y++],w,S,_,x,b,p=s.A,e);break;case"a":_=d[y++],x=d[y++],b=d[y++],w=d[y++],S=d[y++],Lu(M=i,T=r,i+=d[y++],r+=d[y++],w,S,_,x,b,p=s.A,e)}}"z"!==c&&"Z"!==c||(p=s.Z,e.addData(p),i=o,r=a),n=p}e.toStatic()}}return e}(t),t=P({},e);return t.buildPath=function(t){var e,n=zu(t);n&&t.canSave()?(t.appendPath(S),(e=t.getContext())&&t.rebuildPath(e,1)):(e=n?t.getContext():t)&&S.rebuildPath(e,1)},t.applyTransform=function(t){var e=S,n=t;if(n){for(var i,r,o,a,s=e.data,l=e.len(),u=xu.M,h=xu.C,c=xu.L,p=xu.R,d=xu.A,f=xu.Q,g=0,y=0;g<l;){switch(i=s[g++],y=g,r=0,i){case u:case c:r=1;break;case h:r=3;break;case f:r=2;break;case d:var m=n[4],v=n[5],_=wu(n[0]*n[0]+n[1]*n[1]),x=wu(n[2]*n[2]+n[3]*n[3]),b=Su(-n[1]/x,n[0]/_);s[g]*=_,s[g++]+=m,s[g]*=x,s[g++]+=v,s[g++]*=_,s[g++]*=x,s[g++]+=b,s[g++]+=b,y=g+=2;break;case p:a[0]=s[g++],a[1]=s[g++],re(a,a,n),s[y++]=a[0],s[y++]=a[1],a[0]+=s[g++],a[1]+=s[g++],re(a,a,n),s[y++]=a[0],s[y++]=a[1]}for(o=0;o<r;o++){var w=bu[o];w[0]=s[g++],w[1]=s[g++],re(w,w,n),s[y++]=w[0],s[y++]=w[1]}}e.increaseVersion()}this.dirtyShape()},t}var Fu,Vu=function(){this.cx=0,this.cy=0,this.r=0},Hu=(u(Wu,Fu=Ws),Wu.prototype.getDefaultShape=function(){return new Vu},Wu.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)},Wu);function Wu(t){return Fu.call(this,t)||this}Hu.prototype.type="circle";var Gu,Uu=function(){this.cx=0,this.cy=0,this.rx=0,this.ry=0},Xu=(u(Yu,Gu=Ws),Yu.prototype.getDefaultShape=function(){return new Uu},Yu.prototype.buildPath=function(t,e){var n=e.cx,i=e.cy,r=e.rx,e=e.ry,o=.5522848*r,a=.5522848*e;t.moveTo(n-r,i),t.bezierCurveTo(n-r,i-a,n-o,i-e,n,i-e),t.bezierCurveTo(n+o,i-e,n+r,i-a,n+r,i),t.bezierCurveTo(n+r,i+a,n+o,i+e,n,i+e),t.bezierCurveTo(n-o,i+e,n-r,i+a,n-r,i),t.closePath()},Yu);function Yu(t){return Gu.call(this,t)||this}Xu.prototype.type="ellipse";var qu=Math.PI,Zu=2*qu,ju=Math.sin,Ku=Math.cos,$u=Math.acos,Qu=Math.atan2,Ju=Math.abs,th=Math.sqrt,eh=Math.max,nh=Math.min,ih=1e-4;function rh(t,e,n,i,r,o,a){var s=t-n,l=e-i,a=(a?o:-o)/th(s*s+l*l),l=a*l,a=-a*s,s=t+l,t=e+a,e=n+l,n=i+a,i=(s+e)/2,u=(t+n)/2,h=e-s,c=n-t,p=h*h+c*c,o=r-o,s=s*n-e*t,n=(c<0?-1:1)*th(eh(0,o*o*p-s*s)),e=(s*c-h*n)/p,t=(-s*h-c*n)/p,d=(s*c+h*n)/p,s=(-s*h+c*n)/p,h=e-i,c=t-u,n=d-i,p=s-u;return n*n+p*p<h*h+c*c&&(e=d,t=s),{cx:e,cy:t,x0:-l,y0:-a,x1:e*(r/o-1),y1:t*(r/o-1)}}function oh(t,e){var n,i,r,o,a,s,l,u,h,c,p,d,f,g,y,m,v,_,x,b,w,S,M,T,C,k,I,D,A,L,P=eh(e.r,0),O=eh(e.r0||0,0),R=0<P;(R||0<O)&&(R||(P=O,O=0),P<O&&(R=P,P=O,O=R),R=e.startAngle,n=e.endAngle,isNaN(R)||isNaN(n)||(i=e.cx,r=e.cy,o=!!e.clockwise,m=Ju(n-R),ih<(a=Zu<m&&m%Zu)&&(m=a),ih<P?Zu-ih<m?(t.moveTo(i+P*Ku(R),r+P*ju(R)),t.arc(i,r,P,R,n,!o),ih<O&&(t.moveTo(i+O*Ku(n),r+O*ju(n)),t.arc(i,r,O,n,R,o))):(S=w=b=x=_=v=c=h=k=C=T=M=u=l=s=a=void 0,p=P*Ku(R),d=P*ju(R),f=O*Ku(n),g=O*ju(n),(y=ih<m)&&((e=e.cornerRadius)&&(a=(e=function(t){if(F(t)){var e=t.length;if(!e)return t;e=1===e?[t[0],t[0],0,0]:2===e?[t[0],t[0],t[1],t[1]]:3===e?t.concat(t[2]):t}else e=[t,t,t,t];return e}(e))[0],s=e[1],l=e[2],u=e[3]),e=Ju(P-O)/2,M=nh(e,l),T=nh(e,u),C=nh(e,a),k=nh(e,s),v=h=eh(M,T),_=c=eh(C,k),ih<h||ih<c)&&(x=P*Ku(n),b=P*ju(n),w=O*Ku(R),S=O*ju(R),m<qu)&&(e=function(t,e,n,i,r,o,a,s){var l=(s=s-o)*(n=n-t)-(a=a-r)*(i=i-e);if(!(l*l<ih))return[t+(l=(a*(e-o)-s*(t-r))/l)*n,e+l*i]}(p,d,w,S,x,b,f,g))&&(M=p-e[0],T=d-e[1],C=x-e[0],k=b-e[1],m=1/ju($u((M*C+T*k)/(th(M*M+T*T)*th(C*C+k*k)))/2),M=th(e[0]*e[0]+e[1]*e[1]),v=nh(h,(P-M)/(1+m)),_=nh(c,(O-M)/(m-1))),y?ih<v?(I=nh(l,v),D=nh(u,v),A=rh(w,S,p,d,P,I,o),L=rh(x,b,f,g,P,D,o),t.moveTo(i+A.cx+A.x0,r+A.cy+A.y0),v<h&&I===D?t.arc(i+A.cx,r+A.cy,v,Qu(A.y0,A.x0),Qu(L.y0,L.x0),!o):(0<I&&t.arc(i+A.cx,r+A.cy,I,Qu(A.y0,A.x0),Qu(A.y1,A.x1),!o),t.arc(i,r,P,Qu(A.cy+A.y1,A.cx+A.x1),Qu(L.cy+L.y1,L.cx+L.x1),!o),0<D&&t.arc(i+L.cx,r+L.cy,D,Qu(L.y1,L.x1),Qu(L.y0,L.x0),!o))):(t.moveTo(i+p,r+d),t.arc(i,r,P,R,n,!o)):t.moveTo(i+p,r+d),ih<O&&y?ih<_?(I=nh(a,_),A=rh(f,g,x,b,O,-(D=nh(s,_)),o),L=rh(p,d,w,S,O,-I,o),t.lineTo(i+A.cx+A.x0,r+A.cy+A.y0),_<c&&I===D?t.arc(i+A.cx,r+A.cy,_,Qu(A.y0,A.x0),Qu(L.y0,L.x0),!o):(0<D&&t.arc(i+A.cx,r+A.cy,D,Qu(A.y0,A.x0),Qu(A.y1,A.x1),!o),t.arc(i,r,O,Qu(A.cy+A.y1,A.cx+A.x1),Qu(L.cy+L.y1,L.cx+L.x1),o),0<I&&t.arc(i+L.cx,r+L.cy,I,Qu(L.y1,L.x1),Qu(L.y0,L.x0),!o))):(t.lineTo(i+f,r+g),t.arc(i,r,O,n,R,o)):t.lineTo(i+f,r+g)):t.moveTo(i,r),t.closePath()))}var ah,sh=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},lh=(u(uh,ah=Ws),uh.prototype.getDefaultShape=function(){return new sh},uh.prototype.buildPath=function(t,e){oh(t,e)},uh.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},uh);function uh(t){return ah.call(this,t)||this}lh.prototype.type="sector";var hh,ch=function(){this.cx=0,this.cy=0,this.r=0,this.r0=0},ph=(u(dh,hh=Ws),dh.prototype.getDefaultShape=function(){return new ch},dh.prototype.buildPath=function(t,e){var n=e.cx,i=e.cy,r=2*Math.PI;t.moveTo(n+e.r,i),t.arc(n,i,e.r,0,r,!1),t.moveTo(n+e.r0,i),t.arc(n,i,e.r0,0,r,!0)},dh);function dh(t){return hh.call(this,t)||this}function fh(t,e,n){var i=e.smooth,r=e.points;if(r&&2<=r.length){if(i)for(var o=function(t,e,n,i){var r,o,a=[],s=[],l=[],u=[];if(i){for(var h=[1/0,1/0],c=[-1/0,-1/0],p=0,d=t.length;p<d;p++)oe(h,h,t[p]),ae(c,c,t[p]);oe(h,h,i[0]),ae(c,c,i[1])}for(p=0,d=t.length;p<d;p++){var f=t[p];if(n)r=t[p?p-1:d-1],o=t[(p+1)%d];else{if(0===p||p===d-1){a.push(Yt(t[p]));continue}r=t[p-1],o=t[p+1]}Zt(s,o,r),$t(s,s,e);var g=Jt(f,r),y=Jt(f,o),m=g+y,m=(0!==m&&(g/=m,y/=m),$t(l,s,-g),$t(u,s,y),qt([],f,l)),g=qt([],f,u);i&&(ae(m,m,h),oe(m,m,c),ae(g,g,h),oe(g,g,c)),a.push(m),a.push(g)}return n&&a.push(a.shift()),a}(r,i,n,e.smoothConstraint),a=(t.moveTo(r[0][0],r[0][1]),r.length),s=0;s<(n?a:a-1);s++){var l=o[2*s],u=o[2*s+1],h=r[(s+1)%a];t.bezierCurveTo(l[0],l[1],u[0],u[1],h[0],h[1])}else{t.moveTo(r[0][0],r[0][1]);for(var s=1,c=r.length;s<c;s++)t.lineTo(r[s][0],r[s][1])}n&&t.closePath()}}ph.prototype.type="ring";var gh,yh=function(){this.points=null,this.smooth=0,this.smoothConstraint=null},mh=(u(vh,gh=Ws),vh.prototype.getDefaultShape=function(){return new yh},vh.prototype.buildPath=function(t,e){fh(t,e,!0)},vh);function vh(t){return gh.call(this,t)||this}mh.prototype.type="polygon";var _h,xh=function(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null},bh=(u(wh,_h=Ws),wh.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},wh.prototype.getDefaultShape=function(){return new xh},wh.prototype.buildPath=function(t,e){fh(t,e,!1)},wh);function wh(t){return _h.call(this,t)||this}bh.prototype.type="polyline";var Sh,Mh={},Th=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1},Ch=(u(kh,Sh=Ws),kh.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},kh.prototype.getDefaultShape=function(){return new Th},kh.prototype.buildPath=function(t,e){o=(this.subPixelOptimize?(n=(o=Js(Mh,e,this.style)).x1,i=o.y1,r=o.x2,o):(n=e.x1,i=e.y1,r=e.x2,e)).y2;var n,i,r,o,e=e.percent;0!==e&&(t.moveTo(n,i),e<1&&(r=n*(1-e)+r*e,o=i*(1-e)+o*e),t.lineTo(r,o))},kh.prototype.pointAt=function(t){var e=this.shape;return[e.x1*(1-t)+e.x2*t,e.y1*(1-t)+e.y2*t]},kh);function kh(t){return Sh.call(this,t)||this}Ch.prototype.type="line";var Ih=[],Dh=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1};function Ah(t,e,n){var i=t.cpx2,r=t.cpy2;return null!=i||null!=r?[(n?Kn:jn)(t.x1,t.cpx1,t.cpx2,t.x2,e),(n?Kn:jn)(t.y1,t.cpy1,t.cpy2,t.y2,e)]:[(n?ni:ei)(t.x1,t.cpx1,t.x2,e),(n?ni:ei)(t.y1,t.cpy1,t.y2,e)]}u(Oh,Lh=Ws),Oh.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},Oh.prototype.getDefaultShape=function(){return new Dh},Oh.prototype.buildPath=function(t,e){var n=e.x1,i=e.y1,r=e.x2,o=e.y2,a=e.cpx1,s=e.cpy1,l=e.cpx2,u=e.cpy2,e=e.percent;0!==e&&(t.moveTo(n,i),null==l||null==u?(e<1&&(ri(n,a,r,e,Ih),a=Ih[1],r=Ih[2],ri(i,s,o,e,Ih),s=Ih[1],o=Ih[2]),t.quadraticCurveTo(a,s,r,o)):(e<1&&(Jn(n,a,l,r,e,Ih),a=Ih[1],l=Ih[2],r=Ih[3],Jn(i,s,u,o,e,Ih),s=Ih[1],u=Ih[2],o=Ih[3]),t.bezierCurveTo(a,s,l,u,r,o)))},Oh.prototype.pointAt=function(t){return Ah(this.shape,t,!1)},Oh.prototype.tangentAt=function(t){t=Ah(this.shape,t,!0);return Qt(t,t)};var Lh,Ph=Oh;function Oh(t){return Lh.call(this,t)||this}Ph.prototype.type="bezier-curve";var Rh,Nh=function(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0},Bh=(u(zh,Rh=Ws),zh.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},zh.prototype.getDefaultShape=function(){return new Nh},zh.prototype.buildPath=function(t,e){var n=e.cx,i=e.cy,r=Math.max(e.r,0),o=e.startAngle,a=e.endAngle,e=e.clockwise,s=Math.cos(o),l=Math.sin(o);t.moveTo(s*r+n,l*r+i),t.arc(n,i,r,o,a,!e)},zh);function zh(t){return Rh.call(this,t)||this}Bh.prototype.type="arc";u(Vh,Eh=Ws),Vh.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()},Vh.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)},Vh.prototype.buildPath=function(t,e){for(var n=e.paths||[],i=0;i<n.length;i++)n[i].buildPath(t,n[i].shape,!0)},Vh.prototype.afterBrush=function(){for(var t=this.shape.paths||[],e=0;e<t.length;e++)t[e].pathUpdated()},Vh.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),Ws.prototype.getBoundingRect.call(this)};var Eh,Fh=Vh;function Vh(){var t=null!==Eh&&Eh.apply(this,arguments)||this;return t.type="compound",t}Wh.prototype.addColorStop=function(t,e){this.colorStops.push({offset:t,color:e})};var Hh=Wh;function Wh(t){this.colorStops=t||[]}u(Xh,Gh=Hh);var Gh,Uh=Xh;function Xh(t,e,n,i,r,o){r=Gh.call(this,r)||this;return r.x=null==t?0:t,r.y=null==e?0:e,r.x2=null==n?1:n,r.y2=null==i?0:i,r.type="linear",r.global=o||!1,r}u(qh,Yh=Hh);var Yh,Hh=qh;function qh(t,e,n,i,r){i=Yh.call(this,i)||this;return i.x=null==t?.5:t,i.y=null==e?.5:e,i.r=null==n?.5:n,i.type="radial",i.global=r||!1,i}var Zh=Math.min,jh=Math.max,Kh=Math.abs,$h=[0,0],Qh=[0,0],Jh=ln(),tc=Jh.minTv,ec=Jh.maxTv,nc=(ic.prototype.fromBoundingRect=function(t,e){var n=this._corners,i=this._axes,r=t.x,o=t.y,a=r+t.width,t=o+t.height;if(n[0].set(r,o),n[1].set(a,o),n[2].set(a,t),n[3].set(r,t),e)for(var s=0;s<4;s++)n[s].transform(e);M.sub(i[0],n[1],n[0]),M.sub(i[1],n[3],n[0]),i[0].normalize(),i[1].normalize();for(s=0;s<2;s++)this._origin[s]=i[s].dot(n[0])},ic.prototype.intersect=function(t,e,n){var i=!0,r=!e;return e&&M.set(e,0,0),Jh.reset(n,!r),!this._intersectCheckOneSide(this,t,r,1)&&(i=!1,r)||!this._intersectCheckOneSide(t,this,r,-1)&&(i=!1,r)||r||Jh.negativeSize||M.copy(e,i?Jh.useDir?Jh.dirMinTv:tc:ec),i},ic.prototype._intersectCheckOneSide=function(t,e,n,i){for(var r=!0,o=0;o<2;o++){var a=t._axes[o];if(t._getProjMinMaxOnAxis(o,t._corners,$h),t._getProjMinMaxOnAxis(o,e._corners,Qh),Jh.negativeSize||$h[1]<Qh[0]||Qh[1]<$h[0]){if(r=!1,Jh.negativeSize||n)return r;var s=Kh(Qh[0]-$h[1]),l=Kh($h[0]-Qh[1]);Zh(s,l)>ec.len()&&(s<l?M.scale(ec,a,-s*i):M.scale(ec,a,l*i))}else n||(s=Kh(Qh[0]-$h[1]),l=Kh($h[0]-Qh[1]),(Jh.useDir||Zh(s,l)<tc.len())&&((s<l||!Jh.bidirectional)&&(M.scale(tc,a,s*i),Jh.useDir)&&Jh.calcDirMTV(),l<=s||!Jh.bidirectional)&&(M.scale(tc,a,-l*i),Jh.useDir)&&Jh.calcDirMTV())}return r},ic.prototype._getProjMinMaxOnAxis=function(t,e,n){for(var i=this._axes[t],r=this._origin,o=e[0].dot(i)+r[t],a=o,s=o,l=1;l<e.length;l++)var u=e[l].dot(i)+r[t],a=Zh(u,a),s=jh(u,s);n[0]=a+Jh.touchThreshold,n[1]=s-Jh.touchThreshold,Jh.negativeSize=n[1]<n[0]},ic);function ic(t,e){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new M;for(n=0;n<2;n++)this._axes[n]=new M;t&&this.fromBoundingRect(t,e)}var rc,oc=[],n=(u(ac,rc=n),ac.prototype.traverse=function(t,e){t.call(e,this)},ac.prototype.useStyle=function(){this.style={}},ac.prototype.getCursor=function(){return this._cursor},ac.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},ac.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},ac.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},ac.prototype.addDisplayable=function(t,e){(e?this._temporaryDisplayables:this._displayables).push(t),this.markRedraw()},ac.prototype.addDisplayables=function(t,e){e=e||!1;for(var n=0;n<t.length;n++)this.addDisplayable(t[n],e)},ac.prototype.getDisplayables=function(){return this._displayables},ac.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},ac.prototype.eachPendingDisplayable=function(t){for(var e=this._cursor;e<this._displayables.length;e++)t&&t(this._displayables[e]);for(e=0;e<this._temporaryDisplayables.length;e++)t&&t(this._temporaryDisplayables[e])},ac.prototype.update=function(){this.updateTransform();for(var t=this._cursor;t<this._displayables.length;t++)(e=this._displayables[t]).parent=this,e.update(),e.parent=null;for(var e,t=0;t<this._temporaryDisplayables.length;t++)(e=this._temporaryDisplayables[t]).parent=this,e.update(),e.parent=null},ac.prototype.getBoundingRect=function(){if(!this._rect){for(var t=new X(1/0,1/0,-1/0,-1/0),e=0;e<this._displayables.length;e++){var n=this._displayables[e],i=n.getBoundingRect().clone();n.needLocalTransform()&&i.applyTransform(n.getLocalTransform(oc)),t.union(i)}this._rect=t}return this._rect},ac.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e);if(this.getBoundingRect().contain(n[0],n[1]))for(var i=0;i<this._displayables.length;i++)if(this._displayables[i].contain(t,e))return!0;return!1},ac);function ac(){var t=null!==rc&&rc.apply(this,arguments)||this;return t.notClear=!0,t.incremental=!0,t._displayables=[],t._temporaryDisplayables=[],t._cursor=0,t}var sc=ta();function lc(t,e,n,i,r,o,a){var s,l,u,h,c,p,d=!1,f=(B(r)?(a=o,o=r,r=null):H(r)&&(o=r.cb,a=r.during,d=r.isFrom,l=r.removeOpt,r=r.dataIndex),"leave"===t),g=(f||e.stopAnimation("leave"),p=t,s=r,l=f?l||{}:null,i=(g=i)&&i.getAnimationDelayParams?i.getAnimationDelayParams(e,r):null,g&&g.ecModel&&(u=(u=g.ecModel.getUpdatePayload())&&u.animation),p="update"===p,g&&g.isAnimationEnabled()?(c=h=r=void 0,c=l?(r=W(l.duration,200),h=W(l.easing,"cubicOut"),0):(r=g.getShallow(p?"animationDurationUpdate":"animationDuration"),h=g.getShallow(p?"animationEasingUpdate":"animationEasing"),g.getShallow(p?"animationDelayUpdate":"animationDelay")),B(c=u&&(null!=u.duration&&(r=u.duration),null!=u.easing&&(h=u.easing),null!=u.delay)?u.delay:c)&&(c=c(s,i)),{duration:(r=B(r)?r(s):r)||0,delay:c,easing:h}):null);g&&0<g.duration?(p={duration:g.duration,delay:g.delay||0,easing:g.easing,done:o,force:!!o||!!a,setToFinal:!f,scope:t,during:a},d?e.animateFrom(n,p):e.animateTo(n,p)):(e.stopAnimation(),d||e.attr(n),a&&a(1),o&&o())}function uc(t,e,n,i,r,o){lc("update",t,e,n,i,r,o)}function hc(t,e,n,i,r,o){lc("enter",t,e,n,i,r,o)}function cc(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 pc(t,e,n,i,r,o){cc(t)||lc("leave",t,e,n,i,r,o)}function dc(t,e,n,i){t.removeTextContent(),t.removeTextGuideLine(),pc(t,{style:{opacity:0}},e,n,i)}var fc={},gc=["x","y"],yc=["width","height"];function mc(t){return Ws.extend(t)}var vc=function(t,e){var n,i=Eu(t,e);function r(t){t=n.call(this,t)||this;return t.applyTransform=i.applyTransform,t.buildPath=i.buildPath,t}return u(r,n=Nu),r};function _c(t,e){return vc(t,e)}function xc(t,e){fc[t]=e}function bc(t){if(fc.hasOwnProperty(t))return fc[t]}function wc(t,e,n,i){t=new Nu(Eu(t,e));return n&&("center"===i&&(n=Mc(n,t.getBoundingRect())),Cc(t,n)),t}function Sc(t,e,n){var i=new Ks({style:{image:t,x:e.x,y:e.y,width:e.width,height:e.height},onload:function(t){"center"===n&&(t={width:t.width,height:t.height},i.setStyle(Mc(e,t)))}});return i}function Mc(t,e){var e=e.width/e.height,n=t.height*e,e=n<=t.width?t.height:(n=t.width)/e;return{x:t.x+t.width/2-n/2,y:t.y+t.height/2-e/2,width:n,height:e}}function Tc(t,e){for(var n=[],i=t.length,r=0;r<i;r++){var o=t[r];n.push(o.getUpdatedPathProxy(!0))}return(e=new Ws(e)).createPathProxy(),e.buildPath=function(t){var e;zu(t)&&(t.appendPath(n),e=t.getContext())&&t.rebuildPath(e,1)},e}function Cc(t,e){t.applyTransform&&(e=t.getBoundingRect().calculateTransform(e),t.applyTransform(e))}function kc(t,e){return Js(t,t,{lineWidth:e}),t}var Ic=el;function Dc(t,e){for(var n=Be([]);t&&t!==e;)Ee(n,t.getLocalTransform(),n),t=t.parent;return n}function Ac(t,e,n){return e&&!st(e)&&(e=Lr.getLocalTransform(e)),re([],t,e=n?We([],e):e)}function Lc(t){return!t.isGroup}function Pc(t,e,i){var r,n;function o(t){var e={x:t.x,y:t.y,rotation:t.rotation};return null!=t.shape&&(e.shape=y(t.shape)),e}t&&e&&(n={},t.traverse(function(t){Lc(t)&&t.anid&&(n[t.anid]=t)}),r=n,e.traverse(function(t){var e,n;Lc(t)&&t.anid&&(e=r[t.anid])&&(n=o(t),t.attr(o(e)),uc(t,n,i,G(t).dataIndex))}))}function Oc(t,n){return E(t,function(t){var e=t[0],e=xo(e,n.x),t=(e=_o(e,n.x+n.width),t[1]),t=xo(t,n.y);return[e,_o(t,n.y+n.height)]})}function Rc(t,e){var n=xo(t.x,e.x),i=_o(t.x+t.width,e.x+e.width),r=xo(t.y,e.y),t=_o(t.y+t.height,e.y+e.height);if(n<=i&&r<=t)return{x:n,y:r,width:i-n,height:t-r}}function Nc(t,e,n){var e=P({rectHover:!0},e),i=e.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),z(i,n),new Ks(e)):wc(t.replace("path://",""),e,n,"center")}function Bc(t,e,n,i,r,o,a,s){var l,n=n-t,i=i-e,a=a-r,s=s-o,u=a*i-n*s;return!((l=u)<=1e-6&&-1e-6<=l||(r=((l=t-r)*i-n*(t=e-o))/u)<0||1<r||(i=(l*s-a*t)/u)<0||1<i)}function zc(t,e,n,i,r){return null!=e&&(gt(e)?Ec[0]=Ec[1]=Ec[2]=Ec[3]=e:(Ec[0]=e[0],Ec[1]=e[1],Ec[2]=e[2],Ec[3]=e[3]),i&&(Ec[0]=xo(0,Ec[0]),Ec[1]=xo(0,Ec[1]),Ec[2]=xo(0,Ec[2]),Ec[3]=xo(0,Ec[3])),n&&(Ec[0]=-Ec[0],Ec[1]=-Ec[1],Ec[2]=-Ec[2],Ec[3]=-Ec[3]),Fc(t,Ec,"x","width",3,1,r&&r[0]||0),Fc(t,Ec,"y","height",0,2,r&&r[1]||0)),t}var Ec=[0,0,0,0];function Fc(t,e,n,i,r,o,a){var s=e[o]+e[r],l=t[i];t[i]+=s,a=xo(0,_o(a,l)),t[i]<a?(t[i]=a,t[n]+=0<=e[r]?-e[r]:0<=e[o]?l+e[o]:1e-8<bo(s)?(l-a)*e[r]/s:0):t[n]-=e[r]}function Vc(t){var e=t.itemTooltipOption,n=t.componentModel,i=t.itemName,e=V(e)?{formatter:e}:e,r=n.mainType,n=n.componentIndex,o={componentType:r,name:i,$vars:["name"]},a=(o[r+"Index"]=n,t.formatterParamsExtra),t=(a&&N(ct(a),function(t){Vt(o,t)||(o[t]=a[t],o.$vars.push(t))}),G(t.el));t.componentMainType=r,t.componentIndex=n,t.tooltipConfig={name:i,option:z({content:i,encodeHTMLContent:!0,formatterParams:o},e)}}function Hc(t,e){var n;(n=t.isGroup?e(t):n)||t.traverse(e)}function Wc(t,e){if(t)if(F(t))for(var n=0;n<t.length;n++)Hc(t[n],e);else Hc(t,e)}function Gc(t){return!t||bo(t[1])<1e-5&&bo(t[2])<1e-5||bo(t[0])<1e-5&&bo(t[3])<1e-5}function Uc(t,e){return t?X.copy(t,e):e.clone()}function Xc(t,e){return e?ze(t||Ne(),e):void 0}function Yc(t){return{z:t.get("z")||0,zlevel:t.get("zlevel")||0}}function qc(t,e,n){!function t(e,n,i,r){if(e.ignoreModelZ)return r;var o=e.getTextContent();var a=e.getTextGuideLine();var s=e.isGroup;if(s)for(var l=e.childrenRef(),u=0;u<l.length;u++)r=xo(t(l[u],n,i,r),r);else e.z=n,e.zlevel=i,r=xo(e.z2||0,r);o&&(o.z=n,o.zlevel=i,isFinite(r))&&(o.z2=r+2);a&&(s=e.textGuideLineConfig,a.z=n,a.zlevel=i,isFinite(r))&&(a.z2=r+(s&&s.showAbove?1:-1));return r}(t,e,n,-1/0)}xc("circle",Hu),xc("ellipse",Xu),xc("sector",lh),xc("ring",ph),xc("polygon",mh),xc("polyline",bh),xc("rect",ol),xc("line",Ch),xc("bezierCurve",Ph),xc("arc",Bh);var Zc=Object.freeze({__proto__:null,Arc:Bh,BezierCurve:Ph,BoundingRect:X,Circle:Hu,CompoundPath:Fh,Ellipse:Xu,Group:ao,Image:Ks,IncrementalDisplayable:n,Line:Ch,LinearGradient:Uh,OrientedBoundingRect:nc,Path:Ws,Point:M,Polygon:mh,Polyline:bh,RadialGradient:Hh,Rect:ol,Ring:ph,Sector:lh,Text:cl,WH:yc,XY:gc,applyTransform:Ac,calcZ2Range:function(t){var e=-1/0,n=1/0;function i(t){if(t&&!t.isGroup){var e=t.currentStates;if(e.length)for(var n=0;n<e.length;n++)r(t.states[e[n]]);r(t)}}function r(t){t&&(t=t.z2,e<t&&(e=t),t<n)&&(n=t)}return Hc(t,function(t){i(t),i(t.getTextContent()),i(t.getTextGuideLine())}),{min:n=e<n?e=0:n,max:e}},clipPointsByRect:Oc,clipRectByRect:Rc,createIcon:Nc,ensureCopyRect:Uc,ensureCopyTransform:Xc,expandOrShrinkRect:zc,extendPath:_c,extendShape:mc,getShapeClass:bc,getTransform:Dc,groupTransition:Pc,initProps:hc,isBoundingRectAxisAligned:Gc,isElementRemoved:cc,lineLineIntersect:Bc,linePolygonIntersect:function(t,e,n,i,r){for(var o=0,a=r[r.length-1];o<r.length;o++){var s=r[o];if(Bc(t,e,n,i,s[0],s[1],a[0],a[1]))return!0;a=s}},makeImage:Sc,makePath:wc,mergePath:Tc,registerShape:xc,removeElement:pc,removeElementWithFadeOut:function(t,e,n){function i(){t.parent&&t.parent.remove(t)}t.isGroup?t.traverse(function(t){t.isGroup||dc(t,e,n,i)}):dc(t,e,n,i)},resizePath:Cc,retrieveZInfo:Yc,setTooltipConfig:Vc,subPixelOptimize:Ic,subPixelOptimizeLine:kc,subPixelOptimizeRect:function(t,e){return tl(t,t,e),t},transformDirection:function(t,e,n){var i=0===e[4]||0===e[5]||0===e[0]?1:bo(2*e[4]/e[0]),r=0===e[4]||0===e[5]||0===e[2]?1:bo(2*e[4]/e[2]),i=Ac(["left"===t?-i:"right"===t?i:0,"top"===t?-r:"bottom"===t?r:0],e,n);return bo(i[0])>bo(i[1])?0<i[0]?"right":"left":0<i[1]?"bottom":"top"},traverseElements:Wc,traverseUpdateZ:qc,updateProps:uc}),jc={};function Kc(t,e){for(var n=0;n<Al.length;n++){var i=Al[n],r=e[i],i=t.ensureState(i);i.style=i.style||{},i.style.text=r}var o=t.currentStates.slice();t.clearStates(!0),t.setStyle({text:e.normal}),t.useStates(o,!0)}function $c(t,e,n){for(var i,r=t.labelFetcher,o=t.labelDataIndex,a=t.labelDimIndex,s=e.normal,l={normal:i=null==(i=r?r.getFormattedLabel(o,"normal",null,a,s&&s.get("formatter"),null!=n?{interpolatedValue:n}:null):i)?B(t.defaultText)?t.defaultText(o,t,n):t.defaultText:i},u=0;u<Al.length;u++){var h=Al[u],c=e[h];l[h]=W(r?r.getFormattedLabel(o,h,null,a,c&&c.get("formatter")):null,i)}return l}function Qc(t,e,n,i){n=n||jc;for(var r=t instanceof cl,o=!1,a=0;a<Ll.length;a++)if((p=e[Ll[a]])&&p.getShallow("show")){o=!0;break}var s=r?t:t.getTextContent();if(o){r||(s||(s=new cl,t.setTextContent(s)),t.stateProxy&&(s.stateProxy=t.stateProxy));var l=$c(n,e),u=e.normal,h=!!u.getShallow("show"),c=tp(u,i&&i.normal,n,!1,!r);c.text=l.normal,r||t.setTextConfig(ep(u,n,!1));for(a=0;a<Al.length;a++){var p,d,f,g=Al[a];(p=e[g])&&(d=s.ensureState(g),(f=!!W(p.getShallow("show"),h))!=h&&(d.ignore=!f),d.style=tp(p,i&&i[g],n,!0,!r),d.style.text=l[g],r||(t.ensureState(g).textConfig=ep(p,n,!0)))}s.silent=!!u.getShallow("silent"),null!=s.style.x&&(c.x=s.style.x),null!=s.style.y&&(c.y=s.style.y),s.ignore=!h,s.useStyle(c),s.dirty(),n.enableTextSetter&&(ap(s).setLabelText=function(t){t=$c(n,e,t);Kc(s,t)})}else s&&(s.ignore=!0);t.dirty()}function Jc(t,e){for(var n={normal:t.getModel(e=e||"label")},i=0;i<Al.length;i++){var r=Al[i];n[r]=t.getModel([r,e])}return n}function tp(t,e,n,i,r){var o={},a=o,s=t,l=n,u=i,h=r;l=l||jc;var c,t=s.ecModel,p=t&&t.option.textStyle,d=function(t){var e;for(;t&&t!==t.ecModel;){var n=(t.option||jc).rich;if(n){e=e||{};for(var i=ct(n),r=0;r<i.length;r++){var o=i[r];e[o]=1}}t=t.parentModel}return e}(s);if(d){c={};var f,g,y="richInheritPlainLabel",m=W(s.get(y),t?t.get(y):void 0);for(f in d)d.hasOwnProperty(f)&&(g=s.getModel(["rich",f]),op(c[f]={},g,p,s,m,l,u,h,!1,!0))}return c&&(a.rich=c),(t=s.get("overflow"))&&(a.overflow=t),(y=s.get("lineOverflow"))&&(a.lineOverflow=y),t=a,null!=(y=s.get("minMargin"))?(y=gt(y)?y/2:0,t.margin=[y,y,y,y],t.__marginType=lp.minMargin):null!=(y=s.get("textMargin"))&&(t.margin=Ct(y),t.__marginType=lp.textMargin),op(a,s,p,null,null,l,u,h,!0,!1),e&&P(o,e),o}function ep(t,e,n){e=e||{};var i={},r=t.getShallow("rotate"),o=W(t.getShallow("distance"),n?null:5),a=t.getShallow("offset"),n=t.getShallow("position")||(n?null:"inside");return null!=(n="outside"===n?e.defaultOutsidePosition||"top":n)&&(i.position=n),null!=a&&(i.offset=a),null!=r&&(r*=Math.PI/180,i.rotation=r),null!=o&&(i.distance=o),i.outsideFill="inherit"===t.get("color")?e.inheritColor||null:"auto",null!=e.autoOverflowArea&&(i.autoOverflowArea=e.autoOverflowArea),null!=e.layoutRect&&(i.layoutRect=e.layoutRect),i}var np=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],ip=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],rp=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function op(t,e,n,i,r,o,a,s,l,u){n=!a&&n||jc;var h=o&&o.inheritColor,c=e.getShallow("color"),p=e.getShallow("textBorderColor"),d=W(e.getShallow("opacity"),n.opacity),c=("inherit"!==c&&"auto"!==c||(c=h||null),"inherit"!==p&&"auto"!==p||(p=h||null),s||(c=c||n.color,p=p||n.textBorderColor),null!=c&&(t.fill=c),null!=p&&(t.stroke=p),W(e.getShallow("textBorderWidth"),n.textBorderWidth)),p=(null!=c&&(t.lineWidth=c),W(e.getShallow("textBorderType"),n.textBorderType)),c=(null!=p&&(t.lineDash=p),W(e.getShallow("textBorderDashOffset"),n.textBorderDashOffset));null!=c&&(t.lineDashOffset=c),null!=(d=a||null!=d||u?d:o&&o.defaultOpacity)&&(t.opacity=d),a||s||null==t.fill&&o.inheritColor&&(t.fill=o.inheritColor);for(var f=0;f<np.length;f++){var g=np[f];null!=(y=!1!==r&&i?Mt(e.getShallow(g),i.getShallow(g),n[g]):W(e.getShallow(g),n[g]))&&(t[g]=y)}for(var f=0;f<ip.length;f++){g=ip[f];null!=(y=e.getShallow(g))&&(t[g]=y)}if(null==t.verticalAlign&&null!=(p=e.getShallow("baseline"))&&(t.verticalAlign=p),!l||!o.disableBox){for(f=0;f<rp.length;f++){var y,g=rp[f];null!=(y=e.getShallow(g))&&(t[g]=y)}c=e.getShallow("borderType");null!=c&&(t.borderDash=c),"auto"!==t.backgroundColor&&"inherit"!==t.backgroundColor||!h||(t.backgroundColor=h),"auto"!==t.borderColor&&"inherit"!==t.borderColor||!h||(t.borderColor=h)}}var ap=ta();function sp(n,i,r,t,o){var a,s,l,u=ap(n);u.valueAnimation&&u.prevValue!==u.value&&(a=u.defaultInterpolatedText,s=W(u.interpolatedValue,u.prevValue),l=u.value,n.percent=0,(null==u.prevValue?hc:uc)(n,{percent:1},t,i,null,function(t){var e=sa(r,u.precision,s,l,t),t=(u.interpolatedValue=1===t?null:e,$c({labelDataIndex:i,labelFetcher:o,defaultText:a?a(e):e+""},u.statesModels,e));Kc(n,t)}))}var lp={minMargin:1,textMargin:2},up=["textStyle","color"],hp=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],cp=new cl,Ic=(pp.prototype.getTextColor=function(t){var e=this.ecModel;return this.getShallow("color")||(!t&&e?e.get(up):null)},pp.prototype.getFont=function(){return t={fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},e=(e=this.ecModel)&&e.getModel("textStyle"),It([t.fontStyle||e&&e.getShallow("fontStyle")||"",t.fontWeight||e&&e.getShallow("fontWeight")||"",(t.fontSize||e&&e.getShallow("fontSize")||12)+"px",t.fontFamily||e&&e.getShallow("fontFamily")||"sans-serif"].join(" "));var t,e},pp.prototype.getTextRect=function(t){for(var e={text:t,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},n=0;n<hp.length;n++)e[hp[n]]=this.getShallow(hp[n]);return cp.useStyle(e),cp.update(),cp.getBoundingRect()},pp);function pp(){}var dp=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],fp=va(dp),gp=(yp.prototype.getLineStyle=function(t){return fp(this,t)},yp);function yp(){}var mp=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],vp=va(mp),_p=(xp.prototype.getItemStyle=function(t,e){return vp(this,t,e)},xp);function xp(){}Sp.prototype.init=function(t,e,n){},Sp.prototype.mergeOption=function(t,e){d(this.option,t,!0)},Sp.prototype.get=function(t,e){return null==t?this.option:this._doGet(this.parsePath(t),!e&&this.parentModel)},Sp.prototype.getShallow=function(t,e){var n=this.option,n=null==n?n:n[t];return null!=n||e||(e=this.parentModel)&&(n=e.getShallow(t)),n},Sp.prototype.getModel=function(t,e){var n=null!=t,t=n?this.parsePath(t):null;return new Sp(n?this._doGet(t):this.option,e=e||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(t)),this.ecModel)},Sp.prototype.isEmpty=function(){return null==this.option},Sp.prototype.restoreData=function(){},Sp.prototype.clone=function(){return new this.constructor(y(this.option))},Sp.prototype.parsePath=function(t){return"string"==typeof t?t.split("."):t},Sp.prototype.resolveParentPath=function(t){return t},Sp.prototype.isAnimationEnabled=function(){if(!w.node&&this.option)return null!=this.option.animation?!!this.option.animation:this.parentModel?this.parentModel.isAnimationEnabled():void 0},Sp.prototype._doGet=function(t,e){var n=this.option;if(t){for(var i=0;i<t.length&&(!t[i]||null!=(n=n&&"object"==typeof n?n[t[i]]:null));i++);null==n&&e&&(n=e._doGet(this.resolveParentPath(t),e.parentModel))}return n};var bp,wp=Sp;function Sp(t,e,n){this.parentModel=e,this.ecModel=n,this.option=t}pa(wp),Vp=wp,bp=["__\0is_clz",fa++].join("_"),Vp.prototype[bp]=!0,Vp.isInstance=function(t){return!(!t||!t[bp])},at(wp,gp),at(wp,_p),at(wp,xa),at(wp,Ic);var Mp=Math.round(10*Math.random());function Tp(t){return[t||"",Mp++].join("_")}var Cp="ZH",kp="EN",Ip=kp,Dp={},Ap={},Lp=w.domSupported&&-1<(document.documentElement.lang||navigator.language||navigator.browserLanguage||Ip).toUpperCase().indexOf(Cp)?Cp:Ip;function Pp(t,e){t=t.toUpperCase(),Ap[t]=new wp(e),Dp[t]=e}Pp(kp,{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:". "}}}}),Pp(Cp,{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:"鏁g偣鍥�",effectScatter:"娑熸吉鏁g偣鍥�",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 Op=null;var Rp=1e3,Np=60*Rp,Bp=60*Np,zp=24*Bp,fa=365*zp,Ep={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})/},Fp={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}"},Vp="{yyyy}-{MM}-{dd}",Hp={year:"{yyyy}",month:"{yyyy}-{MM}",day:Vp,hour:Vp+" "+Fp.hour,minute:Vp+" "+Fp.minute,second:Vp+" "+Fp.second,millisecond:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},Wp=["year","month","day","hour","minute","second","millisecond"],Gp=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function Up(t){return V(t)||B(t)?t:(l=(l=t)||{},u={},h=!0,N(Wp,function(t){h=h&&null==l[t]}),N(Wp,function(t,e){for(var n=l[t],i=(u[t]={},null),r=e;0<=r;r--){var o=Wp[r],a=H(n)&&!F(n)?n[o]:n,s=void 0;F(a)?i=(s=a.slice())[0]||"":V(a)?s=[i=a]:(null==i?i=Fp[t]:Ep[o].test(i)||(i=u[o][o][0]+" "+i),s=[i],h&&(s[1]="{primary|"+i+"}")),u[t][o]=s}}),u);var l,u,h}function Xp(t,e){return"0000".substr(0,e-(t+="").length)+t}function Yp(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 qp(t,e,n,i){var t=Po(t),r=t[Kp(n)](),o=t[$p(n)]()+1,a=Math.floor((o-1)/3)+1,s=t[Qp(n)](),l=t["get"+(n?"UTC":"")+"Day"](),u=t[Jp(n)](),h=(u-1)%12+1,c=t[td(n)](),p=t[ed(n)](),t=t[nd(n)](),n=12<=u?"pm":"am",d=n.toUpperCase(),i=(i instanceof wp?i:Ap[i||Lp]||Ap[Ip]).getModel("time"),f=i.get("month"),g=i.get("monthAbbr"),y=i.get("dayOfWeek"),i=i.get("dayOfWeekAbbr");return(e||"").replace(/{a}/g,n+"").replace(/{A}/g,d+"").replace(/{yyyy}/g,r+"").replace(/{yy}/g,Xp(r%100+"",2)).replace(/{Q}/g,a+"").replace(/{MMMM}/g,f[o-1]).replace(/{MMM}/g,g[o-1]).replace(/{MM}/g,Xp(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,Xp(s,2)).replace(/{d}/g,s+"").replace(/{eeee}/g,y[l]).replace(/{ee}/g,i[l]).replace(/{e}/g,l+"").replace(/{HH}/g,Xp(u,2)).replace(/{H}/g,u+"").replace(/{hh}/g,Xp(h+"",2)).replace(/{h}/g,h+"").replace(/{mm}/g,Xp(c,2)).replace(/{m}/g,c+"").replace(/{ss}/g,Xp(p,2)).replace(/{s}/g,p+"").replace(/{SSS}/g,Xp(t,3)).replace(/{S}/g,t+"")}function Zp(t,e){var t=Po(t),n=t[$p(e)]()+1,i=t[Qp(e)](),r=t[Jp(e)](),o=t[td(e)](),a=t[ed(e)](),t=0===t[nd(e)](),e=t&&0===a,a=e&&0===o,o=a&&0===r,r=o&&1===i;return r&&1===n?"year":r?"month":o?"day":a?"hour":e?"minute":t?"second":"millisecond"}function jp(t,e,n){switch(e){case"year":t[id(n)](0);case"month":t[rd(n)](1);case"day":t[od(n)](0);case"hour":t[ad(n)](0);case"minute":t[sd(n)](0);case"second":t[ld(n)](0)}return t}function Kp(t){return t?"getUTCFullYear":"getFullYear"}function $p(t){return t?"getUTCMonth":"getMonth"}function Qp(t){return t?"getUTCDate":"getDate"}function Jp(t){return t?"getUTCHours":"getHours"}function td(t){return t?"getUTCMinutes":"getMinutes"}function ed(t){return t?"getUTCSeconds":"getSeconds"}function nd(t){return t?"getUTCMilliseconds":"getMilliseconds"}function id(t){return t?"setUTCMonth":"setMonth"}function rd(t){return t?"setUTCDate":"setDate"}function od(t){return t?"setUTCHours":"setHours"}function ad(t){return t?"setUTCMinutes":"setMinutes"}function sd(t){return t?"setUTCSeconds":"setSeconds"}function ld(t){return t?"setUTCMilliseconds":"setMilliseconds"}function ud(t){var e;return zo(t)?(e=(t+"").split("."))[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(1<e.length?"."+e[1]:""):V(t)?t:"-"}function hd(t,e){return t=(t||"").toLowerCase().replace(/-(.)/g,function(t,e){return e.toUpperCase()}),t=e?t&&t.charAt(0).toUpperCase()+t.slice(1):t}var cd=Ct;function pd(t,e,n){function i(t){return t&&It(t)?t:"-"}function r(t){return null!=t&&!isNaN(t)&&isFinite(t)}var o="time"===e,a=t instanceof Date;if(o||a){var o=o?Po(t):t;if(!isNaN(+o))return qp(o,"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}",n);if(a)return"-"}return"ordinal"===e?ft(t)?i(t):gt(t)&&r(t)?t+"":"-":r(o=Bo(t))?ud(o):ft(t)?i(t):"boolean"==typeof t?t+"":"-"}function dd(t,e){return"{"+t+(null==e?"":e)+"}"}var fd=["a","b","c","d","e","f","g"];function gd(t,e,n){var i=(e=F(e)?e:[e]).length;if(!i)return"";for(var r=e[0].$vars||[],o=0;o<r.length;o++){var a=fd[o];t=t.replace(dd(a),dd(a,0))}for(var s=0;s<i;s++)for(var l=0;l<r.length;l++){var u=e[s][r[l]];t=t.replace(dd(fd[l],s),n?we(u):u)}return t}function yd(t,e){var t=V(t)?{color:t,extraCssText:e}:t||{},n=t.color,i=t.type,r=(e=t.extraCssText,t.renderMode||"html");return n?"html"===r?"subItem"===i?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+we(n)+";"+(e||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+we(n)+";"+(e||"")+'"></span>':{renderMode:r,content:"{"+(t.markerId||"markerX")+"|}  ",style:"subItem"===i?{width:4,height:4,borderRadius:2,backgroundColor:n}:{width:10,height:10,borderRadius:5,backgroundColor:n}}:""}function md(t,e){return e=e||"transparent",V(t)?t:H(t)&&t.colorStops&&(t.colorStops[0]||{}).color||e}var vd={},_d={},xd=(bd.prototype.create=function(i,r){function t(t){var n=[];return N(t,function(t,e){t=t.create(i,r);n=n.concat(t||[])}),n}this._nonSeriesBoxMasterList=t(vd),this._normalMasterList=t(_d)},bd.prototype.update=function(e,n){N(this._normalMasterList,function(t){t.update&&t.update(e,n)})},bd.prototype.getCoordinateSystems=function(){return this._normalMasterList.concat(this._nonSeriesBoxMasterList)},bd.register=function(t,e){"matrix"===t||"calendar"===t?vd[t]=e:_d[t]=e},bd.get=function(t){return _d[t]||vd[t]},bd);function bd(){this._normalMasterList=[],this._nonSeriesBoxMasterList=[]}var wd={coord:1,coord2:2},Sd=O();var Md={none:0,dataCoordSys:1,boxCoordSys:2};function Td(t){var e=t.getShallow("coordinateSystem"),n=t.getShallow("coordinateSystemUsage",!0),i=Md.none;return e&&(t="series"===t.mainType,"data"===(n=null==n?t?"data":"box":n)?(i=Md.dataCoordSys,t||(i=Md.none)):"box"===n&&(i=Md.boxCoordSys,t||vd[e]||(i=Md.none))),{coordSysType:e,kind:i}}var Cd=N,kd=["left","right","top","bottom","width","height"],Id=[["width","left","right"],["height","top","bottom"]];function Dd(a,s,l,u,h){var c=0,p=0,d=(null==u&&(u=1/0),null==h&&(h=1/0),0);s.eachChild(function(t,e){var n,i,r,o=t.getBoundingRect(),e=s.childAt(e+1),e=e&&e.getBoundingRect();d="horizontal"===a?(i=o.width+(e?-e.x+o.x:0),u<(n=c+i)||t.newline?(c=0,n=i,p+=d+l,o.height):Math.max(d,o.height)):(i=o.height+(e?-e.y+o.y:0),h<(r=p+i)||t.newline?(c+=d+l,p=0,r=i,o.width):Math.max(d,o.width)),t.newline||(t.x=c,t.y=p,t.markRedraw(),"horizontal"===a?c=n+l:p=r+l)})}function Ad(t,e,n){n=cd(n||0);var i=e.width,r=e.height,o=So(t.left,i),a=So(t.top,r),s=So(t.right,i),l=So(t.bottom,r),u=So(t.width,i),h=So(t.height,r),c=n[2]+n[0],p=n[1]+n[3],d=t.aspect;switch(isNaN(u)&&(u=i-s-p-o),isNaN(h)&&(h=r-l-c-a),null!=d&&(isNaN(u)&&isNaN(h)&&(i/r<d?u=.8*i:h=.8*r),isNaN(u)&&(u=d*h),isNaN(h))&&(h=u/d),isNaN(o)&&(o=i-s-u-p),isNaN(a)&&(a=r-l-h-c),t.left||t.right){case"center":o=i/2-u/2-n[3];break;case"right":o=i-u-p}switch(t.top||t.bottom){case"middle":case"center":a=r/2-h/2-n[0];break;case"bottom":a=r-h-c}o=o||0,a=a||0,isNaN(u)&&(u=i-p-o-(s||0)),isNaN(h)&&(h=r-c-a-(l||0));d=new X((e.x||0)+o+n[3],(e.y||0)+a+n[0],u,h);return d.margin=n,d}dt(Dd,"vertical"),dt(Dd,"horizontal");var Ld=1,Pd=2;function Od(t,e,n){var i,r,o,a,s,l,u,h=t.boxCoordinateSystem;return h&&(l=(t=t).getShallow("coord",!0),u=wd.coord,null==l&&(s=Sd.get(t.type))&&s.getCoord2&&(u=wd.coord2,l=s.getCoord2(t)),t=(s={coord:l,from:u}).coord,l=s.from,h.dataToLayout?(r=Ld,o=l,a=(u=h.dataToLayout(t)).contentRect||u.rect):n&&n.enableLayoutOnlyByCenter&&h.dataToPoint&&(r=Pd,o=l,i=h.dataToPoint(t))),(r=null==r?Ld:r)===Ld&&(i=[(a=a||{x:0,y:0,width:e.getWidth(),height:e.getHeight()}).x+a.width/2,a.y+a.height/2]),{type:r,refContainer:a,refPoint:i,boxCoordFrom:o}}function Rd(t){t=t.layoutMode||t.constructor.layoutMode;return H(t)?t:t?{type:t}:null}function Nd(l,u,t){var h=t&&t.ignoreSize,t=(F(h)||(h=[h,h]),n(Id[0],0)),e=n(Id[1],1);function n(t,e){var n={},i=0,r={},o=0;if(Cd(t,function(t){r[t]=l[t]}),Cd(t,function(t){Vt(u,t)&&(n[t]=r[t]=u[t]),c(n,t)&&i++,c(r,t)&&o++}),h[e])c(u,t[1])?r[t[2]]=null:c(u,t[2])&&(r[t[1]]=null);else if(2!==o&&i){if(!(2<=i))for(var a=0;a<t.length;a++){var s=t[a];if(!Vt(n,s)&&Vt(l,s)){n[s]=l[s];break}}return n}return r}function c(t,e){return null!=t[e]&&"auto"!==t[e]}function i(t,e,n){Cd(t,function(t){e[t]=n[t]})}i(Id[0],l,t),i(Id[1],l,e)}function Bd(t){return e={},(n=t)&&e&&Cd(kd,function(t){Vt(n,t)&&(e[t]=n[t])}),e;var e,n}var zd,Ed,Fd,Vd,Hd=ta(),g=(u(Wd,zd=wp),Wd.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n)},Wd.prototype.mergeDefaultAndTheme=function(t,e){var n=Rd(this),i=n?Bd(t):{};d(t,e.getTheme().get(this.mainType)),d(t,this.getDefaultOption()),n&&Nd(t,i,n)},Wd.prototype.mergeOption=function(t,e){d(this.option,t,!0);var n=Rd(this);n&&Nd(this.option,t,n)},Wd.prototype.optionUpdated=function(t,e){},Wd.prototype.getDefaultOption=function(){var t=this.constructor;if(!(e=t)||!e[ha])return t.defaultOption;var e=Hd(this);if(!e.defaultOption){for(var n=[],i=t;i;){var r=i.prototype.defaultOption;r&&n.push(r),i=i.superClass}for(var o={},a=n.length-1;0<=a;a--)o=d(o,n[a],!0);e.defaultOption=o}return e.defaultOption},Wd.prototype.getReferringComponents=function(t,e){var n=t+"Id";return oa(this.ecModel,t,{index:this.get(t+"Index",!0),id:this.get(n,!0)},e)},Wd.prototype.getBoxLayoutParams=function(){return e=!1,{left:(t=this).getShallow("left",e),top:t.getShallow("top",e),right:t.getShallow("right",e),bottom:t.getShallow("bottom",e),width:t.getShallow("width",e),height:t.getShallow("height",e)};var t,e},Wd.prototype.getZLevelKey=function(){return""},Wd.prototype.setZLevel=function(t){this.option.zlevel=t},Wd.protoInitialize=((gp=Wd.prototype).type="component",gp.id="",gp.name="",gp.mainType="",gp.subType="",void(gp.componentIndex=0)),Wd);function Wd(t,e,n){t=zd.call(this,t,e,n)||this;return t.uid=Tp("ec_cpt_model"),t}function Gd(t,e){return t[e]||(t[e]={predecessor:[],successor:[]}),t[e]}da(g,wp),ma(g),Fd={},(Ed=g).registerSubTypeDefaulter=function(t,e){t=ca(t);Fd[t.main]=e},Ed.determineSubType=function(t,e){var n,i=e.type;return i||(n=ca(t).main,Ed.hasSubTypes(t)&&Fd[n]&&(i=Fd[n](e))),i},Vd=function(t){var e=[];N(g.getClassesByMainType(t),function(t){e=e.concat(t.dependencies||t.prototype.dependencies||[])}),e=E(e,function(t){return ca(t).main}),"dataset"!==t&&I(e,"dataset")<=0&&e.unshift("dataset");return e},g.topologicalTravel=function(t,e,n,i){if(t.length){a={},s=[],N(o=e,function(n){var e,i,r=Gd(a,n),t=r.originalDeps=Vd(n),t=(e=o,i=[],N(t,function(t){0<=I(e,t)&&i.push(t)}),i);r.entryCount=t.length,0===r.entryCount&&s.push(n),N(t,function(t){I(r.predecessor,t)<0&&r.predecessor.push(t);var e=Gd(a,t);I(e.successor,t)<0&&e.successor.push(n)})});var o,a,s,e={graph:a,noEntryList:s},r=e.graph,l=e.noEntryList,u={};for(N(t,function(t){u[t]=!0});l.length;){var h=l.pop(),c=r[h],p=!!u[h];p&&(n.call(i,h,c.originalDeps.slice()),delete u[h]),N(c.successor,p?f:d)}N(u,function(){throw new Error("")})}function d(t){r[t].entryCount--,0===r[t].entryCount&&l.push(t)}function f(t){u[t]=!0,d(t)}};var Ud,Xd,m={color:{},darkColor:{},size:{}},Yd=m.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(Ud in P(Yd,{primary:Yd.neutral80,secondary:Yd.neutral70,tertiary:Yd.neutral60,quaternary:Yd.neutral50,disabled:Yd.neutral20,border:Yd.neutral30,borderTint:Yd.neutral20,borderShade:Yd.neutral40,background:Yd.neutral05,backgroundTint:"rgba(234,237,245,0.5)",backgroundTransparent:"rgba(255,255,255,0)",backgroundShade:Yd.neutral10,shadow:"rgba(0,0,0,0.2)",shadowTint:"rgba(129,130,136,0.2)",axisLine:Yd.neutral70,axisLineTint:Yd.neutral40,axisTick:Yd.neutral70,axisTickMinor:Yd.neutral60,axisLabel:Yd.neutral70,axisSplitLine:Yd.neutral15,axisMinorSplitLine:Yd.neutral05}),Yd)Yd.hasOwnProperty(Ud)&&(Xd=Yd[Ud],"theme"===Ud?m.darkColor.theme=Yd.theme.slice():"highlight"===Ud?m.darkColor.highlight="rgba(255,231,130,0.4)":0===Ud.indexOf("accent")?m.darkColor[Ud]=Oi(Xd,null,function(t){return.5*t},function(t){return Math.min(1,1.3-t)}):m.darkColor[Ud]=Oi(Xd,null,function(t){return.9*t},function(t){return 1-Math.pow(t,1.5)}));m.size={xxs:2,xs:5,s:10,m:15,l:20,xl:30,xxl:40,xxxl:50};var _p="",xa=("undefined"!=typeof navigator&&(_p=navigator.platform||""),"rgba(0, 0, 0, 0.2)"),Ic=m.color.theme[0],Vp=Oi(Ic,null,null,.9),qd={darkMode:"auto",colorBy:"series",color:m.color.theme,gradientColor:[Vp,Ic],aria:{decal:{decals:[{color:xa,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:xa,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:xa,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:xa,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:xa,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:xa,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:_p.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},Zd=O(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),jd="original",Kd="arrayRows",$d="objectRows",Qd="keyedColumns",Jd="typedArray",tf="unknown",ef="column",nf="row",rf={Must:1,Might:2,Not:3},of=ta();function af(n,t,e){var r,o,a,i,s,l={},u=sf(t);return u&&n&&(r=[],o=[],t=t.ecModel,t=of(t).datasetMap,u=u.uid+"_"+e.seriesLayoutBy,N(n=n.slice(),function(t,e){t=H(t)?t:n[e]={name:t};"ordinal"===t.type&&null==a&&(a=e,i=c(t)),l[t.name]=[]}),s=t.get(u)||t.set(u,{categoryWayDim:i,valueWayDim:0}),N(n,function(t,e){var n,i=t.name,t=c(t);null==a?(n=s.valueWayDim,h(l[i],n,t),h(o,n,t),s.valueWayDim+=t):a===e?(h(l[i],0,t),h(r,0,t)):(n=s.categoryWayDim,h(l[i],n,t),h(o,n,t),s.categoryWayDim+=t)}),r.length&&(l.itemName=r),o.length)&&(l.seriesName=o),l;function h(t,e,n){for(var i=0;i<n;i++)t.push(e+i)}function c(t){t=t.dimsDef;return t?t.length:1}}function sf(t){if(!t.get("data",!0))return oa(t.ecModel,"dataset",{index:t.get("datasetIndex",!0),id:t.get("datasetId",!0)},ra).models[0]}function lf(t,e){var n,i,r,o=t.data,a=t.sourceFormat,s=t.seriesLayoutBy,l=t.dimensionsDefine,u=t.startIndex,h=e;if(!mt(o)){if(l&&(H(l=l[h])?(i=l.name,r=l.type):V(l)&&(i=l)),null!=r)return"ordinal"===r?rf.Must:rf.Not;if(a===Kd){var c=o;if(s===nf){for(var p=c[h],d=0;d<(p||[]).length&&d<5;d++)if(null!=(n=_(p[u+d])))return n}else for(d=0;d<c.length&&d<5;d++){var f=c[u+d];if(f&&null!=(n=_(f[h])))return n}}else if(a===$d){var g=o;if(!i)return rf.Not;for(d=0;d<g.length&&d<5;d++)if((m=g[d])&&null!=(n=_(m[i])))return n}else if(a===Qd){l=o;if(!i)return rf.Not;if(!(p=l[i])||mt(p))return rf.Not;for(d=0;d<p.length&&d<5;d++)if(null!=(n=_(p[d])))return n}else if(a===jd)for(var y=o,d=0;d<y.length&&d<5;d++){var m,v=Xo(m=y[d]);if(!F(v))return rf.Not;if(null!=(n=_(v[h])))return n}}return rf.Not;function _(t){var e=V(t);return null!=t&&Number.isFinite(Number(t))&&""!==t?e?rf.Might:rf.Not:e&&"-"!==t?rf.Must:void 0}}var uf=O();var hf,cf,pf,df=ta(),ff=(ta(),gf.prototype.getColorFromPalette=function(t,e,n){var i=Wo(this.get("color",!0)),r=this.get("colorLayer",!0),o=this,a=df;return a=a(e=e||o),o=a.paletteIdx||0,(e=a.paletteNameMap=a.paletteNameMap||{}).hasOwnProperty(t)?e[t]:(r=(r=n==null||!r?i:yf(r,n))||i)&&r.length?(n=r[o],t&&(e[t]=n),a.paletteIdx=(o+1)%r.length,n):void 0},gf.prototype.clearColorPalette=function(){var t,e;(e=df)(t=this).paletteIdx=0,e(t).paletteNameMap={}},gf);function gf(){}function yf(t,e){for(var n=t.length,i=0;i<n;i++)if(t[i].length>e)return t[i];return t[n-1]}var mf,vf="\0_ec_inner",_f=(u(s,mf=wp),s.prototype.init=function(t,e,n,i,r,o){i=i||{},this.option=null,this._theme=new wp(i),this._locale=new wp(r),this._optionManager=o},s.prototype.setOption=function(t,e,n){e=wf(e);this._optionManager.setOption(t,n,e),this._resetOption(null,e)},s.prototype.resetOption=function(t,e){return this._resetOption(t,wf(e))},s.prototype._resetOption=function(t,e){var n,i=!1,r=this._optionManager;return t&&"recreate"!==t||(n=r.mountOption("recreate"===t),this.option&&"recreate"!==t?(this.restoreData(),this._mergeOption(n,e)):pf(this,n),i=!0),"timeline"!==t&&"media"!==t||this.restoreData(),t&&"recreate"!==t&&"timeline"!==t||(n=r.getTimelineOption(this))&&(i=!0,this._mergeOption(n,e)),t&&"recreate"!==t&&"media"!==t||(n=r.getMediaOption(this)).length&&N(n,function(t){i=!0,this._mergeOption(t,e)},this),i},s.prototype.mergeOption=function(t){this._mergeOption(t,null)},s.prototype._mergeOption=function(i,t){var r=this.option,h=this._componentsMap,c=this._componentsCount,n=[],o=O(),p=t&&t.replaceMergeMainTypeMap;of(this).datasetMap=O(),N(i,function(t,e){null!=t&&(g.hasClass(e)?e&&(n.push(e),o.set(e,!0)):r[e]=null==r[e]?y(t):d(r[e],t,!0))}),p&&p.each(function(t,e){g.hasClass(e)&&!o.get(e)&&(n.push(e),o.set(e,!0))}),g.topologicalTravel(n,g.getAllClassMainTypes(),function(o){var a,t=function(t,e,n){return(e=(e=uf.get(e))&&e(t))?n.concat(e):n}(this,o,Wo(i[o])),e=h.get(o),n=e?p&&p.get(o)?"replaceMerge":"normalMerge":"replaceAll",e=Yo(e,t,n),s=(Qo(e,o,g),r[o]=null,h.set(o,null),c.set(o,0),[]),l=[],u=0;N(e,function(t,e){var n=t.existing,i=t.newOption;if(i){var r=g.getClass(o,t.keyInfo.subType,!("series"===o));if(!r)return;if("tooltip"===o){if(a)return;a=!0}n&&n.constructor===r?(n.name=t.keyInfo.name,n.mergeOption(i,this),n.optionUpdated(i,!1)):(e=P({componentIndex:e},t.keyInfo),P(n=new r(i,this,this,e),e),t.brandNew&&(n.__requireNewView=!0),n.init(i,this,this),n.optionUpdated(null,!0))}else n&&(n.mergeOption({},this),n.optionUpdated({},!1));n?(s.push(n.option),l.push(n),u++):(s.push(void 0),l.push(void 0))},this),r[o]=s,h.set(o,l),c.set(o,u),"series"===o&&hf(this)},this),this._seriesIndices||hf(this)},s.prototype.getOption=function(){var a=y(this.option);return N(a,function(t,e){if(g.hasClass(e)){for(var n=Wo(t),i=n.length,r=!1,o=i-1;0<=o;o--)n[o]&&!$o(n[o])?r=!0:(n[o]=null,r||i--);n.length=i,a[e]=n}}),delete a[vf],a},s.prototype.setTheme=function(t){this._theme=new wp(t),this._resetOption("recreate",null)},s.prototype.getTheme=function(){return this._theme},s.prototype.getLocaleModel=function(){return this._locale},s.prototype.setUpdatePayload=function(t){this._payload=t},s.prototype.getUpdatePayload=function(){return this._payload},s.prototype.getComponent=function(t,e){var n=this._componentsMap.get(t);if(n){t=n[e||0];if(t)return t;if(null==e)for(var i=0;i<n.length;i++)if(n[i])return n[i]}},s.prototype.queryComponents=function(t){var e,n,i,r,o,a=t.mainType;return a&&(e=t.index,n=t.id,i=t.name,r=this._componentsMap.get(a))&&r.length?(null!=e?(o=[],N(Wo(e),function(t){r[t]&&o.push(r[t])})):o=null!=n?xf("id",n,r):null!=i?xf("name",i,r):ut(r,function(t){return!!t}),bf(o,t)):[]},s.prototype.findComponents=function(t){var e,n=t.query,i=t.mainType,r=(r=i+"Index",o=i+"Id",e=i+"Name",!(n=n)||null==n[r]&&null==n[o]&&null==n[e]?null:{mainType:i,index:n[r],id:n[o],name:n[e]}),o=r?this.queryComponents(r):ut(this._componentsMap.get(i),function(t){return!!t});return n=bf(o,t),t.filter?ut(n,t.filter):n},s.prototype.eachComponent=function(t,e,n){var i=this._componentsMap;if(B(t)){var r=e,o=t;i.each(function(t,e){for(var n=0;t&&n<t.length;n++){var i=t[n];i&&o.call(r,e,i,i.componentIndex)}})}else for(var a=V(t)?i.get(t):H(t)?this.findComponents(t):null,s=0;a&&s<a.length;s++){var l=a[s];l&&e.call(n,l,l.componentIndex)}},s.prototype.getSeriesByName=function(t){var e=jo(t,null);return ut(this._componentsMap.get("series"),function(t){return!!t&&null!=e&&t.name===e})},s.prototype.getSeriesByIndex=function(t){return this._componentsMap.get("series")[t]},s.prototype.getSeriesByType=function(e){return ut(this._componentsMap.get("series"),function(t){return!!t&&t.subType===e})},s.prototype.getSeries=function(){return ut(this._componentsMap.get("series"),function(t){return!!t})},s.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},s.prototype.eachSeries=function(n,i){cf(this),N(this._seriesIndices,function(t){var e=this._componentsMap.get("series")[t];n.call(i,e,t)},this)},s.prototype.eachRawSeries=function(e,n){N(this._componentsMap.get("series"),function(t){t&&e.call(n,t,t.componentIndex)})},s.prototype.eachSeriesByType=function(n,i,r){cf(this),N(this._seriesIndices,function(t){var e=this._componentsMap.get("series")[t];e.subType===n&&i.call(r,e,t)},this)},s.prototype.eachRawSeriesByType=function(t,e,n){return N(this.getSeriesByType(t),e,n)},s.prototype.isSeriesFiltered=function(t){return cf(this),null==this._seriesIndicesMap.get(t.componentIndex)},s.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},s.prototype.filterSeries=function(n,i){cf(this);var r=[];N(this._seriesIndices,function(t){var e=this._componentsMap.get("series")[t];n.call(i,e,t)&&r.push(t)},this),this._seriesIndices=r,this._seriesIndicesMap=O(r)},s.prototype.restoreData=function(n){hf(this);var t=this._componentsMap,i=[];t.each(function(t,e){g.hasClass(e)&&i.push(e)}),g.topologicalTravel(i,g.getAllClassMainTypes(),function(e){N(t.get(e),function(t){!t||"series"===e&&function(t,e){{var n,i;if(e)return n=e.seriesIndex,i=e.seriesId,e=e.seriesName,null!=n&&t.componentIndex!==n||null!=i&&t.id!==i||null!=e&&t.name!==e}}(t,n)||t.restoreData()})})},s.internalField=(hf=function(t){var e=t._seriesIndices=[];N(t._componentsMap.get("series"),function(t){t&&e.push(t.componentIndex)}),t._seriesIndicesMap=O(e)},cf=function(t){},void(pf=function(t,e){t.option={},t.option[vf]=1,t._componentsMap=O({series:[]}),t._componentsCount=O();var n,i,r=e.aria;H(r)&&null==r.enabled&&(r.enabled=!0),n=e,r=t._theme.option,i=n.color&&!n.colorLayer,N(r,function(t,e){"colorLayer"===e&&i||"color"===e&&n.color||g.hasClass(e)||("object"==typeof t?n[e]=n[e]?d(n[e],t,!1):y(t):null==n[e]&&(n[e]=t))}),d(e,qd,!1),t._mergeOption(e,null)})),s);function s(){return null!==mf&&mf.apply(this,arguments)||this}function xf(e,t,n){var i,r;return F(t)?(i=O(),N(t,function(t){null!=t&&null!=jo(t,null)&&i.set(t,!0)}),ut(n,function(t){return t&&i.get(t[e])})):(r=jo(t,null),ut(n,function(t){return t&&null!=r&&t[e]===r}))}function bf(t,e){return e.hasOwnProperty("subType")?ut(t,function(t){return t&&t.subType===e.subType}):t}function wf(t){var e=O();return t&&N(Wo(t.replaceMerge),function(t){e.set(t,!0)}),{replaceMergeMainTypeMap:e}}at(_f,ff);function Sf(e){N(Mf,function(t){this[t]=pt(e[t],e)},this)}var Mf=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],Tf=/^(min|max)?(.+)$/,Cf=(kf.prototype.setOption=function(t,e,n){t&&(N(Wo(t.series),function(t){t&&t.data&&mt(t.data)&&At(t.data)}),N(Wo(t.dataset),function(t){t&&t.source&&mt(t.source)&&At(t.source)})),t=y(t);var i=this._optionBackup,t=function(t,n,i){var e,r,o=[],a=t.baseOption,s=t.timeline,l=t.options,u=t.media,h=!!t.media,c=!!(l||s||a&&a.timeline);a?(r=a).timeline||(r.timeline=s):((c||h)&&(t.options=t.media=null),r=t);h&&F(u)&&N(u,function(t){t&&t.option&&(t.query?o.push(t):e=e||t)});function p(e){N(n,function(t){t(e,i)})}return p(r),N(l,p),N(o,function(t){return p(t.option)}),{baseOption:r,timelineOptions:l||[],mediaDefault:e,mediaList:o}}(t,e,!i);this._newBaseOption=t.baseOption,i?(t.timelineOptions.length&&(i.timelineOptions=t.timelineOptions),t.mediaList.length&&(i.mediaList=t.mediaList),t.mediaDefault&&(i.mediaDefault=t.mediaDefault)):this._optionBackup=t},kf.prototype.mountOption=function(t){var e=this._optionBackup;return this._timelineOptions=e.timelineOptions,this._mediaList=e.mediaList,this._mediaDefault=e.mediaDefault,this._currentMediaIndices=[],y(t?e.baseOption:this._newBaseOption)},kf.prototype.getTimelineOption=function(t){var e,n=this._timelineOptions;return e=n.length&&(t=t.getComponent("timeline"))?y(n[t.getCurrentIndex()]):e},kf.prototype.getMediaOption=function(t){var e=this._api.getWidth(),n=this._api.getHeight(),i=this._mediaList,r=this._mediaDefault,o=[],a=[];if(i.length||r){for(var s,l,u=0,h=i.length;u<h;u++)!function(t,e,n){var i={width:e,height:n,aspectratio:e/n},r=!0;return N(t,function(t,e){var n,e=e.match(Tf);e&&e[1]&&e[2]&&(n=e[1],e=e[2].toLowerCase(),e=i[e],t=t,("min"===(n=n)?t<=e:"max"===n?e<=t:e===t)||(r=!1))}),r}(i[u].query,e,n)||o.push(u);(o=!o.length&&r?[-1]:o).length&&(s=o,l=this._currentMediaIndices,s.join(",")!==l.join(","))&&(a=E(o,function(t){return y((-1===t?r:i[t]).option)})),this._currentMediaIndices=o}return a},kf);function kf(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}var If=N,Df=H,Af=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function Lf(t){var e=t&&t.itemStyle;if(e)for(var n=0,i=Af.length;n<i;n++){var r=Af[n],o=e.normal,a=e.emphasis;o&&o[r]&&(t[r]=t[r]||{},t[r].normal?d(t[r].normal,o[r]):t[r].normal=o[r],o[r]=null),a&&a[r]&&(t[r]=t[r]||{},t[r].emphasis?d(t[r].emphasis,a[r]):t[r].emphasis=a[r],a[r]=null)}}function Pf(t,e,n){var i,r;t&&t[e]&&(t[e].normal||t[e].emphasis)&&(i=t[e].normal,r=t[e].emphasis,i&&(n?(t[e].normal=t[e].emphasis=null,z(t[e],i)):t[e]=i),r)&&(t.emphasis=t.emphasis||{},(t.emphasis[e]=r).focus&&(t.emphasis.focus=r.focus),r.blurScope)&&(t.emphasis.blurScope=r.blurScope)}function Of(t){Pf(t,"itemStyle"),Pf(t,"lineStyle"),Pf(t,"areaStyle"),Pf(t,"label"),Pf(t,"labelLine"),Pf(t,"upperLabel"),Pf(t,"edgeLabel")}function Rf(t,e){var n=Df(t)&&t[e],i=Df(n)&&n.textStyle;if(i)for(var r=0,o=Uo.length;r<o;r++){var a=Uo[r];i.hasOwnProperty(a)&&(n[a]=i[a])}}function Nf(t){t&&(Of(t),Rf(t,"label"),t.emphasis)&&Rf(t.emphasis,"label")}function Bf(t){return F(t)?t:t?[t]:[]}function zf(t){return(F(t)?t[0]:t)||{}}function Ef(e,t){If(Bf(e.series),function(t){if(Df(t))if(Df(t)){Lf(t),Of(t),Rf(t,"label"),Rf(t,"upperLabel"),Rf(t,"edgeLabel"),t.emphasis&&(Rf(t.emphasis,"label"),Rf(t.emphasis,"upperLabel"),Rf(t.emphasis,"edgeLabel"));var e=t.markPoint,n=(e&&(Lf(e),Nf(e)),t.markLine),i=(n&&(Lf(n),Nf(n)),t.markArea),r=(i&&Nf(i),t.data);if("graph"===t.type){var r=r||t.nodes,o=t.links||t.edges;if(o&&!mt(o))for(var a=0;a<o.length;a++)Nf(o[a]);N(t.categories,function(t){Of(t)})}if(r&&!mt(r))for(a=0;a<r.length;a++)Nf(r[a]);if((e=t.markPoint)&&e.data)for(var s=e.data,a=0;a<s.length;a++)Nf(s[a]);if((n=t.markLine)&&n.data)for(var l=n.data,a=0;a<l.length;a++)F(l[a])?(Nf(l[a][0]),Nf(l[a][1])):Nf(l[a]);"gauge"===t.type?(Rf(t,"axisLabel"),Rf(t,"title"),Rf(t,"detail")):"treemap"===t.type?(Pf(t.breadcrumb,"itemStyle"),N(t.levels,function(t){Of(t)})):"tree"===t.type&&Of(t.leaves)}});var n=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];t&&n.push("valueAxis","categoryAxis","logAxis","timeAxis"),If(n,function(t){If(Bf(e[t]),function(t){t&&(Rf(t,"axisLabel"),Rf(t.axisPointer,"label"))})}),If(Bf(e.parallel),function(t){t=t&&t.parallelAxisDefault;Rf(t,"axisLabel"),Rf(t&&t.axisPointer,"label")}),If(Bf(e.calendar),function(t){Pf(t,"itemStyle"),Rf(t,"dayLabel"),Rf(t,"monthLabel"),Rf(t,"yearLabel")}),If(Bf(e.radar),function(t){Rf(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)}),If(Bf(e.geo),function(t){Df(t)&&(Nf(t),If(Bf(t.regions),function(t){Nf(t)}))}),If(Bf(e.timeline),function(t){Nf(t),Pf(t,"label"),Pf(t,"itemStyle"),Pf(t,"controlStyle",!0);t=t.data;F(t)&&N(t,function(t){H(t)&&(Pf(t,"label"),Pf(t,"itemStyle"))})}),If(Bf(e.toolbox),function(t){Pf(t,"iconStyle"),If(t.feature,function(t){Pf(t,"iconStyle")})}),Rf(zf(e.axisPointer),"label"),Rf(zf(e.tooltip).axisPointer,"label")}function Ff(e){e&&N(Vf,function(t){t[0]in e&&!(t[1]in e)&&(e[t[1]]=e[t[0]])})}var Vf=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],Hf=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],Wf=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function Gf(t){var e=t&&t.itemStyle;if(e)for(var n=0;n<Wf.length;n++){var i=Wf[n][1],r=Wf[n][0];null!=e[i]&&(e[r]=e[i])}}function Uf(t){t&&"edge"===t.alignTo&&null!=t.margin&&null==t.edgeDistance&&(t.edgeDistance=t.margin)}function Xf(t){t&&t.downplay&&!t.blur&&(t.blur=t.downplay)}function Yf(e,t){Ef(e,t),e.series=Wo(e.series),N(e.series,function(t){if(H(t)){var e,n=t.type;if("line"===n)null!=t.clipOverflow&&(t.clip=t.clipOverflow);else if("pie"===n||"gauge"===n){if(null!=t.clockWise&&(t.clockwise=t.clockWise),Uf(t.label),(e=t.data)&&!mt(e))for(var i=0;i<e.length;i++)Uf(e[i]);null!=t.hoverOffset&&(t.emphasis=t.emphasis||{},t.emphasis.scaleSize=null)&&(t.emphasis.scaleSize=t.hoverOffset)}else if("gauge"===n){var r=function(t,e){for(var n=e.split(","),i=t,r=0;r<n.length&&null!=(i=i&&i[n[r]]);r++);return i}(t,"pointer.color");if(null!=r){var o=t;var a="itemStyle.color";var s=void 0;for(var l,u=a.split(","),h=o,c=0;c<u.length-1;c++)null==h[l=u[c]]&&(h[l]={}),h=h[l];!s&&null!=h[u[c]]||(h[u[c]]=r)}}else if("bar"===n){if(Gf(t),Gf(t.backgroundStyle),Gf(t.emphasis),(e=t.data)&&!mt(e))for(i=0;i<e.length;i++)"object"==typeof e[i]&&(Gf(e[i]),Gf(e[i]&&e[i].emphasis))}else"sunburst"===n?((a=t.highlightPolicy)&&(t.emphasis=t.emphasis||{},t.emphasis.focus||(t.emphasis.focus=a)),Xf(t),function t(e,n){if(e)for(var i=0;i<e.length;i++)n(e[i]),e[i]&&t(e[i].children,n)}(t.data,Xf)):"graph"===n||"sankey"===n?(o=t)&&null!=o.focusNodeAdjacency&&(o.emphasis=o.emphasis||{},null==o.emphasis.focus)&&(o.emphasis.focus="adjacency"):"map"===n&&(t.mapType&&!t.map&&(t.map=t.mapType),t.mapLocation)&&z(t,t.mapLocation);null!=t.hoverAnimation&&(t.emphasis=t.emphasis||{},t.emphasis)&&null==t.emphasis.scale&&(t.emphasis.scale=t.hoverAnimation),Ff(t)}}),e.dataRange&&(e.visualMap=e.dataRange),N(Hf,function(t){t=e[t];t&&N(t=F(t)?t:[t],function(t){Ff(t)})})}var qf,Zf,jf=function(t){this.data=t.data||(t.sourceFormat===Qd?{}:[]),this.sourceFormat=t.sourceFormat||tf,this.seriesLayoutBy=t.seriesLayoutBy||ef,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 i=e[n];null==i.type&&lf(this,n)===rf.Must&&(i.type="ordinal")}};function Kf(t){return t instanceof jf}function $f(t,e,n){n=n||Jf(t);var i=e.seriesLayoutBy,r=function(t,e,n,i,r){var o,a;if(!t)return{dimensionsDefine:tg(r),startIndex:a,dimensionsDetectedCount:o};{var s;e===Kd?(s=t,"auto"===i||null==i?eg(function(t){null!=t&&"-"!==t&&(V(t)?null==a&&(a=1):a=0)},n,s,10):a=gt(i)?i:i?1:0,r||1!==a||(r=[],eg(function(t,e){r[e]=null!=t?t+"":""},n,s,1/0)),o=r?r.length:n===nf?s.length:s[0]?s[0].length:null):e===$d?r=r||function(t){var e,n=0;for(;n<t.length&&!(e=t[n++]););if(e)return ct(e)}(t):e===Qd?r||(r=[],N(t,function(t,e){r.push(e)})):e===jd&&(i=Xo(t[0]),o=F(i)&&i.length||1)}return{startIndex:a,dimensionsDefine:tg(r),dimensionsDetectedCount:o}}(t,n,i,e.sourceHeader,e.dimensions);return new jf({data:t,sourceFormat:n,seriesLayoutBy:i,dimensionsDefine:r.dimensionsDefine,startIndex:r.startIndex,dimensionsDetectedCount:r.dimensionsDetectedCount,metaRawOption:y(e)})}function Qf(t){return new jf({data:t,sourceFormat:mt(t)?Jd:jd})}function Jf(t){var e=tf;if(mt(t))e=Jd;else if(F(t)){0===t.length&&(e=Kd);for(var n=0,i=t.length;n<i;n++){var r=t[n];if(null!=r){if(F(r)||mt(r)){e=Kd;break}if(H(r)){e=$d;break}}}}else if(H(t))for(var o in t)if(Vt(t,o)&&st(t[o])){e=Qd;break}return e}function tg(t){var i;if(t)return i=O(),E(t,function(t,e){var n,t={name:(t=H(t)?t:{name:t}).name,displayName:t.displayName,type:t.type};return null!=t.name&&(t.name+="",null==t.displayName&&(t.displayName=t.name),(n=i.get(t.name))?t.name+="-"+n.count++:i.set(t.name,{count:1})),t})}function eg(t,e,n,i){if(e===nf)for(var r=0;r<n.length&&r<i;r++)t(n[r]?n[r][0]:null,r);else for(var o=n[0]||[],r=0;r<o.length&&r<i;r++)t(o[r],r)}function ng(t){t=t.sourceFormat;return t===$d||t===Qd}sg.prototype.getSource=function(){return this._source},sg.prototype.count=function(){return 0},sg.prototype.getItem=function(t,e){},sg.prototype.appendData=function(t){},sg.prototype.clean=function(){},sg.protoInitialize=((gp=sg.prototype).pure=!1,void(gp.persistent=!0)),sg.internalField=(Zf=function(t,e,n){var i,r=n.sourceFormat,o=n.seriesLayoutBy,a=n.startIndex,n=n.dimensionsDefine;P(t,qf[vg(r,o)]),r===Jd?(t.getItem=ig,t.count=og,t.fillStorage=rg):(i=cg(r,o),t.getItem=pt(i,null,e,a,n),i=fg(r,o),t.count=pt(i,null,e,a,n))},ig=function(t,e){t-=this._offset,e=e||[];for(var n=this._data,i=this._dimSize,r=i*t,o=0;o<i;o++)e[o]=n[r+o];return e},rg=function(t,e,n,i){for(var r=this._data,o=this._dimSize,a=0;a<o;a++){for(var s=i[a],l=null==s[0]?1/0:s[0],u=null==s[1]?-1/0:s[1],h=e-t,c=n[a],p=0;p<h;p++){var d=r[p*o+a];(c[t+p]=d)<l&&(l=d),u<d&&(u=d)}s[0]=l,s[1]=u}},og=function(){return this._data?this._data.length/this._dimSize:0},(gp={})[Kd+"_"+ef]={pure:!0,appendData:lg},gp[Kd+"_"+nf]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},gp[$d]={pure:!0,appendData:lg},gp[Qd]={pure:!0,appendData:function(t){var r=this._data;N(t,function(t,e){for(var n=r[e]||(r[e]=[]),i=0;i<(t||[]).length;i++)n.push(t[i])})}},gp[jd]={appendData:lg},gp[Jd]={persistent:!1,pure:!0,appendData:function(t){this._data=t},clean:function(){this._offset+=this.count(),this._data=null}},void(qf=gp));var ig,rg,og,ag=sg;function sg(t,e){var t=Kf(t)?t:Qf(t),n=(this._source=t,this._data=t.data),i=t.sourceFormat;t.seriesLayoutBy,i===Jd&&(this._offset=0,this._dimSize=e,this._data=n),Zf(this,n,t)}function lg(t){for(var e=0;e<t.length;e++)this._data.push(t[e])}function ug(t,e,n,i){return t[i]}(Vp={})[Kd+"_"+ef]=function(t,e,n,i){return t[i+e]},Vp[Kd+"_"+nf]=function(t,e,n,i,r){i+=e;for(var o=r||[],a=t,s=0;s<a.length;s++){var l=a[s];o[s]=l?l[i]:null}return o},Vp[$d]=ug,Vp[Qd]=function(t,e,n,i,r){for(var o=r||[],a=0;a<n.length;a++){var s=n[a].name,s=null!=s?t[s]:null;o[a]=s?s[i]:null}return o},Vp[jd]=ug;var hg=Vp;function cg(t,e){return hg[vg(t,e)]}function pg(t,e,n){return t.length}(Ic={})[Kd+"_"+ef]=function(t,e,n){return Math.max(0,t.length-e)},Ic[Kd+"_"+nf]=function(t,e,n){t=t[0];return t?Math.max(0,t.length-e):0},Ic[$d]=pg,Ic[Qd]=function(t,e,n){n=n[0].name,t=null!=n?t[n]:null;return t?t.length:0},Ic[jd]=pg;var dg=Ic;function fg(t,e){return dg[vg(t,e)]}function gg(t,e,n){return t[e]}(xa={})[Kd]=gg,xa[$d]=function(t,e,n){return t[n]},xa[Qd]=gg,xa[jd]=function(t,e,n){t=Xo(t);return t instanceof Array?t[e]:t},xa[Jd]=gg;var yg=xa;function mg(t){return yg[t]}function vg(t,e){return t===Kd?t+"_"+e:t}function _g(t,e,n){if(t){var i,r,e=t.getRawDataItem(e);if(null!=e)return i=(r=t.getStore()).getSource().sourceFormat,null!=n?(t=t.getDimensionIndex(n),n=r.getDimensionProperty(t),mg(i)(e,t,n)):(r=e,i===jd?Xo(e):r)}}var xg=/\{@(.+?)\}/g,_p=(bg.prototype.getDataParams=function(t,e){var n=this.getData(e),i=this.getRawValue(t,e),r=n.getRawIndex(t),o=n.getName(t),a=n.getRawDataItem(t),s=n.getItemVisual(t,"style"),t=s&&s[n.getItemVisual(t,"drawType")||"fill"],s=s&&s.stroke,l=this.mainType,u="series"===l,n=n.userOutput&&n.userOutput.get();return{componentType:l,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:u?this.subType:null,seriesIndex:this.seriesIndex,seriesId:u?this.id:null,seriesName:u?this.name:null,name:o,dataIndex:r,data:a,dataType:e,value:i,color:t,borderColor:s,dimensionNames:n?n.fullDimensions:null,encode:n?n.encode:null,$vars:["seriesName","name","value"]}},bg.prototype.getFormattedLabel=function(i,t,e,n,r,o){t=t||"normal";var a=this.getData(e),e=this.getDataParams(i,e);return o&&(e.value=o.interpolatedValue),null!=n&&F(e.value)&&(e.value=e.value[n]),B(r=r||a.getItemModel(i).get("normal"===t?["label","formatter"]:[t,"label","formatter"]))?(e.status=t,e.dimensionIndex=n,r(e)):V(r)?gd(r,e).replace(xg,function(t,e){var n=e.length,n=("["===e.charAt(0)&&"]"===e.charAt(n-1)&&(e=+e.slice(1,n-1)),_g(a,i,e));return null!=(n=o&&F(o.interpolatedValue)&&0<=(e=a.getDimensionIndex(e))?o.interpolatedValue[e]:n)?n+"":""}):void 0},bg.prototype.getRawValue=function(t,e){return _g(this.getData(e),t)},bg.prototype.formatTooltip=function(t,e,n){},bg);function bg(){}function wg(t){var e,n;return H(t)?t.type&&(n=t):e=t,{text:e,frag:n}}function Sg(t){return new Mg(t)}Tg.prototype.perform=function(t){var e,n,i=this._upstream,r=t&&t.skip,o=(this._dirty&&i&&((o=this.context).data=o.outputData=i.context.outputData),this.__pipeline&&(this.__pipeline.currentTask=this),this._plan&&!r&&(e=this._plan(this.context)),u(this._modBy)),a=this._modDataCount||0,s=u(t&&t.modBy),l=t&&t.modDataCount||0;function u(t){return t=1<=t?t:1}o===s&&a===l||(e="reset"),!this._dirty&&"reset"!==e||(this._dirty=!1,n=this._doReset(r)),this._modBy=s,this._modDataCount=l;o=t&&t.step;if(this._dueEnd=i?i._outputDueEnd:this._count?this._count(this.context):1/0,this._progress){var h=this._dueIndex,c=Math.min(null!=o?this._dueIndex+o:1/0,this._dueEnd);if(!r&&(n||h<c)){var p=this._progress;if(F(p))for(var d=0;d<p.length;d++)this._doProgress(p[d],h,c,s,l);else this._doProgress(p,h,c,s,l)}this._dueIndex=c;a=null!=this._settedOutputEnd?this._settedOutputEnd:c;this._outputDueEnd=a}else this._dueIndex=this._outputDueEnd=null!=this._settedOutputEnd?this._settedOutputEnd:this._dueEnd;return this.unfinished()},Tg.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},Tg.prototype._doProgress=function(t,e,n,i,r){Pg.reset(e,n,i,r),this._callingProgress=t,this._callingProgress({start:e,end:n,count:n-e,next:Pg.next},this.context)},Tg.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),F(e))&&!e.length&&(e=null),this._progress=e,this._modBy=this._modDataCount=null;var e,n,t=this._downstream;return t&&t.dirty(),n},Tg.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},Tg.prototype.pipe=function(t){this._downstream===t&&!this._dirty||((this._downstream=t)._upstream=this,t.dirty())},Tg.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},Tg.prototype.getUpstream=function(){return this._upstream},Tg.prototype.getDownstream=function(){return this._downstream},Tg.prototype.setOutputEnd=function(t){this._outputDueEnd=this._settedOutputEnd=t};var Mg=Tg;function Tg(t){this._reset=(t=t||{}).reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}var Cg,kg,Ig,Dg,Ag,Lg,Pg=Lg={reset:function(t,e,n,i){kg=t,Cg=e,Ig=n,Dg=i,Ag=Math.ceil(Dg/Ig),Lg.next=1<Ig&&0<Dg?Rg:Og}};function Og(){return kg<Cg?kg++:null}function Rg(){var t=kg%Ag*Ig+Math.ceil(kg/Ag),t=Cg<=kg?null:t<Dg?t:kg;return kg++,t}function Ng(t,e){e=e&&e.type;return"ordinal"===e?t:null==(t="time"!==e||gt(t)||null==t||"-"===t?t:+Po(t))||""===t?NaN:Number(t)}var Bg=O({number:function(t){return parseFloat(t)},time:function(t){return+Po(t)},trim:function(t){return V(t)?It(t):t}});function zg(t){return Bg.get(t)}var Eg={lt:function(t,e){return t<e},lte:function(t,e){return t<=e},gt:function(t,e){return e<t},gte:function(t,e){return e<=t}},Fg=(Vg.prototype.evaluate=function(t){return gt(t)?this._opFn(t,this._rvalFloat):this._opFn(Bo(t),this._rvalFloat)},Vg);function Vg(t,e){gt(e)||f(""),this._opFn=Eg[t],this._rvalFloat=Bo(e)}Wg.prototype.evaluate=function(t,e){var n=gt(t)?t:Bo(t),i=gt(e)?e:Bo(e),r=isNaN(n),o=isNaN(i);return r&&(n=this._incomparable),o&&(i=this._incomparable),r&&o&&(r=V(t),o=V(e),r&&(n=o?t:0),o)&&(i=r?e:0),n<i?this._resultLT:i<n?-this._resultLT:0};var Hg=Wg;function Wg(t,e){t="desc"===t;this._resultLT=t?1:-1,this._incomparable="min"===(e=null==e?t?"min":"max":e)?-1/0:1/0}Ug.prototype.evaluate=function(t){var e,n=t===this._rval;return n||(e=typeof t)===this._rvalTypeof||"number"!=e&&"number"!==this._rvalTypeof||(n=Bo(t)===this._rvalFloat),this._isEQ?n:!n};var Gg=Ug;function Ug(t,e){this._rval=e,this._isEQ=t,this._rvalTypeof=typeof e,this._rvalFloat=Bo(e)}Yg.prototype.getRawData=function(){throw new Error("not supported")},Yg.prototype.getRawDataItem=function(t){throw new Error("not supported")},Yg.prototype.cloneRawData=function(){},Yg.prototype.getDimensionInfo=function(t){},Yg.prototype.cloneAllDimensionInfo=function(){},Yg.prototype.count=function(){},Yg.prototype.retrieveValue=function(t,e){},Yg.prototype.retrieveValueFromItem=function(t,e){},Yg.prototype.convertValue=Ng;var Xg=Yg;function Yg(){}function qg(t){return Jg(t.sourceFormat)||f(""),t.data}function Zg(t){var e=t.sourceFormat,n=t.data;if(Jg(e)||f(""),e===Kd){for(var i=[],r=0,o=n.length;r<o;r++)i.push(n[r].slice());return i}if(e===$d){for(i=[],r=0,o=n.length;r<o;r++)i.push(P({},n[r]));return i}}function jg(t,e,n){if(null!=n)return gt(n)||!isNaN(n)&&!Vt(e,n)?t[n]:Vt(e,n)?e[n]:void 0}function Kg(t){return y(t)}var $g=O();function Qg(t,e){var n=Wo(t),t=n.length;t||f("");for(var i=0,r=t;i<r;i++)e=function(t,i){i.length||f("");H(t)||f("");var e=t.type,d=$g.get(e);d||f("");e=E(i,function(t){var e=t,t=d,n=new Xg,i=e.data,r=n.sourceFormat=e.sourceFormat,o=e.startIndex,a=(e.seriesLayoutBy!==ef&&f(""),[]),s={};if(h=e.dimensionsDefine)N(h,function(t,e){var n=t.name,e={index:e,name:n,displayName:t.displayName};a.push(e),null!=n&&(Vt(s,n)&&f(""),s[n]=e)});else for(var l=0;l<e.dimensionsDetectedCount;l++)a.push({index:l});var u=cg(r,ef),h=(t.__isBuiltIn&&(n.getRawDataItem=function(t){return u(i,o,a,t)},n.getRawData=pt(qg,null,e)),n.cloneRawData=pt(Zg,null,e),fg(r,ef)),c=(n.count=pt(h,null,i,o,a),mg(r)),p=(n.retrieveValue=function(t,e){t=u(i,o,a,t);return p(t,e)},n.retrieveValueFromItem=function(t,e){var n;return null!=t&&(n=a[e])?c(t,e,n.name):void 0});return n.getDimensionInfo=pt(jg,null,a,s),n.cloneAllDimensionInfo=pt(Kg,null,a),n});return E(Wo(d.transform({upstream:e[0],upstreamList:e,config:y(t.config)})),function(t,e){H(t)||f(""),t.data||f("");Jg(Jf(t.data))||f("");var n=i[0],e=n&&0===e&&!t.dimensions?((e=n.startIndex)&&(t.data=n.data.slice(0,e).concat(t.data)),{seriesLayoutBy:ef,sourceHeader:e,dimensions:n.metaRawOption.dimensions}):{seriesLayoutBy:ef,sourceHeader:0,dimensions:t.dimensions};return $f(t.data,e,null)})}(n[i],e),i!==r-1&&(e.length=Math.max(e.length,1));return e}function Jg(t){return t===Kd||t===$d}var ty,gp="undefined",ey=typeof Uint32Array==gp?Array:Uint32Array,ny=typeof Uint16Array==gp?Array:Uint16Array,iy=typeof Int32Array==gp?Array:Int32Array,Vp=typeof Float64Array==gp?Array:Float64Array,ry={float:Vp,int:iy,ordinal:Array,number:Array,time:Vp};function oy(t){return 65535<t?ey:ny}function ay(){return[1/0,-1/0]}function sy(t,e,n,i,r){n=ry[n||"float"];if(r){var o=t[e],a=o&&o.length;if(a!==i){for(var s=new n(i),l=0;l<a;l++)s[l]=o[l];t[e]=s}}else t[e]=new n(i)}l.prototype.initData=function(t,e,n){this._provider=t,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var i=t.getSource(),r=this.defaultDimValueGetter=ty[i.sourceFormat];this._dimValueGetter=n||r,this._rawExtent=[],ng(i),this._dimensions=E(e,function(t){return{type:t.type,property:t.property}}),this._initDataFromProvider(0,t.count())},l.prototype.getProvider=function(){return this._provider},l.prototype.getSource=function(){return this._provider.getSource()},l.prototype.ensureCalculationDimension=function(t,e){var n=this._calcDimNameToIdx,i=this._dimensions,r=n.get(t);if(null!=r){if(i[r].type===e)return r}else r=i.length;return i[r]={type:e},n.set(t,r),this._chunks[r]=new ry[e||"float"](this._rawCount),this._rawExtent[r]=ay(),r},l.prototype.collectOrdinalMeta=function(t,e){for(var n=this._chunks[t],i=this._dimensions[t],r=this._rawExtent,o=i.ordinalOffset||0,a=n.length,s=(0===o&&(r[t]=ay()),r[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]))}i.ordinalMeta=e,i.ordinalOffset=a,i.type="ordinal"},l.prototype.getOrdinalMeta=function(t){return this._dimensions[t].ordinalMeta},l.prototype.getDimensionProperty=function(t){t=this._dimensions[t];return t&&t.property},l.prototype.appendData=function(t){var e=this._provider,n=this.count(),t=(e.appendData(t),e.count());return e.persistent||(t+=n),n<t&&this._initDataFromProvider(n,t,!0),[n,t]},l.prototype.appendValues=function(t,e){for(var n=this._chunks,i=this._dimensions,r=i.length,o=this._rawExtent,a=this.count(),s=a+Math.max(t.length,e||0),l=0;l<r;l++)sy(n,l,(d=i[l]).type,s,!0);for(var u=[],h=a;h<s;h++)for(var c=h-a,p=0;p<r;p++){var d=i[p],f=ty.arrayRows.call(this,t[c]||u,d.property,c,p),g=(n[p][h]=f,o[p]);f<g[0]&&(g[0]=f),f>g[1]&&(g[1]=f)}return{start:a,end:this._rawCount=this._count=s}},l.prototype._initDataFromProvider=function(t,e,n){for(var i=this._provider,r=this._chunks,o=this._dimensions,a=o.length,s=this._rawExtent,l=E(o,function(t){return t.property}),u=0;u<a;u++){var h=o[u];s[u]||(s[u]=ay()),sy(r,u,h.type,e,n)}if(i.fillStorage)i.fillStorage(t,e,r,s);else for(var c=[],p=t;p<e;p++)for(var c=i.getItem(p,c),d=0;d<a;d++){var f=r[d],g=this._dimValueGetter(c,l[d],p,d),f=(f[p]=g,s[d]);g<f[0]&&(f[0]=g),g>f[1]&&(f[1]=g)}!i.persistent&&i.clean&&i.clean(),this._rawCount=this._count=e,this._extent=[]},l.prototype.count=function(){return this._count},l.prototype.get=function(t,e){return 0<=e&&e<this._count&&(t=this._chunks[t])?t[this.getRawIndex(e)]:NaN},l.prototype.getValues=function(t,e){var n=[],i=[];if(null==e){e=t,t=[];for(var r=0;r<this._dimensions.length;r++)i.push(r)}else i=t;for(var r=0,o=i.length;r<o;r++)n.push(this.get(i[r],e));return n},l.prototype.getByRawIndex=function(t,e){return 0<=e&&e<this._rawCount&&(t=this._chunks[t])?t[e]:NaN},l.prototype.getSum=function(t){var e=0;if(this._chunks[t])for(var n=0,i=this.count();n<i;n++){var r=this.get(t,n);isNaN(r)||(e+=r)}return e},l.prototype.getMedian=function(t){var e=[],t=(this.each([t],function(t){isNaN(t)||e.push(t)}),e.sort(function(t,e){return t-e})),n=this.count();return 0===n?0:n%2==1?t[(n-1)/2]:(t[n/2]+t[n/2-1])/2},l.prototype.indexOfRawIndex=function(t){if(!(t>=this._rawCount||t<0)){if(!this._indices)return t;var e=this._indices,n=e[t];if(null!=n&&n<this._count&&n===t)return t;for(var i=0,r=this._count-1;i<=r;){var o=(i+r)/2|0;if(e[o]<t)i=1+o;else{if(!(e[o]>t))return o;r=o-1}}}return-1},l.prototype.getIndices=function(){var t=this._indices;if(t){var e=t.constructor,n=this._count;if(e===Array)for(var i=new e(n),r=0;r<n;r++)i[r]=t[r];else i=new e(t.buffer,0,n)}else{i=new(e=oy(this._rawCount))(this.count());for(r=0;r<i.length;r++)i[r]=r}return i},l.prototype.filter=function(t,e){if(!this._count)return this;for(var n=this.clone(),i=n.count(),r=new(oy(n._rawCount))(i),o=[],a=t.length,s=0,l=t[0],u=n._chunks,h=0;h<i;h++){var c=void 0,p=n.getRawIndex(h);if(0===a)c=e(h);else if(1===a)c=e(u[l][p],h);else{for(var d=0;d<a;d++)o[d]=u[t[d]][p];o[d]=h,c=e.apply(null,o)}c&&(r[s++]=p)}return s<i&&(n._indices=r),n._count=s,n._extent=[],n._updateGetRawIdx(),n},l.prototype.selectRange=function(t){var e=this.clone(),n=e._count;if(!n)return this;var i=ct(t),r=i.length;if(!r)return this;var o=e.count(),a=new(oy(e._rawCount))(o),s=0,l=i[0],u=t[l][0],h=t[l][1],c=e._chunks,l=!1;if(!e._indices){var p=0;if(1===r){for(var d=c[i[0]],f=0;f<n;f++)(u<=(v=d[f])&&v<=h||isNaN(v))&&(a[s++]=p),p++;l=!0}else if(2===r){for(var d=c[i[0]],g=c[i[1]],y=t[i[1]][0],m=t[i[1]][1],f=0;f<n;f++){var v=d[f],_=g[f];(u<=v&&v<=h||isNaN(v))&&(y<=_&&_<=m||isNaN(_))&&(a[s++]=p),p++}l=!0}}if(!l)if(1===r)for(f=0;f<o;f++){var x=e.getRawIndex(f);(u<=(v=c[i[0]][x])&&v<=h||isNaN(v))&&(a[s++]=x)}else for(f=0;f<o;f++){for(var b=!0,x=e.getRawIndex(f),w=0;w<r;w++){var S=i[w];((v=c[S][x])<t[S][0]||v>t[S][1])&&(b=!1)}b&&(a[s++]=e.getRawIndex(f))}return s<o&&(e._indices=a),e._count=s,e._extent=[],e._updateGetRawIdx(),e},l.prototype.map=function(t,e){var n=this.clone(t);return this._updateDims(n,t,e),n},l.prototype.modify=function(t,e){this._updateDims(this,t,e)},l.prototype._updateDims=function(t,e,n){for(var i=t._chunks,r=[],o=e.length,a=t.count(),s=[],l=t._rawExtent,u=0;u<e.length;u++)l[e[u]]=ay();for(var h=0;h<a;h++){for(var c=t.getRawIndex(h),p=0;p<o;p++)s[p]=i[e[p]][c];s[o]=h;var d=n&&n.apply(null,s);if(null!=d){"object"!=typeof d&&(r[0]=d,d=r);for(u=0;u<d.length;u++){var f=e[u],g=d[u],y=l[f],f=i[f];f&&(f[c]=g),g<y[0]&&(y[0]=g),g>y[1]&&(y[1]=g)}}}},l.prototype.lttbDownSample=function(t,e){var n,i=this.clone([t],!0),r=i._chunks[t],o=this.count(),a=0,s=Math.floor(1/e),l=this.getRawIndex(0),u=new(oy(this._rawCount))(Math.min(2*(Math.ceil(o/s)+2),o));u[a++]=l;for(var h=1;h<o-1;h+=s){for(var c=Math.min(h+s,o-1),p=Math.min(h+2*s,o),d=(p+c)/2,f=0,g=c;g<p;g++){var y=r[M=this.getRawIndex(g)];isNaN(y)||(f+=y)}f/=p-c;for(var c=h,m=Math.min(h+s,o),v=h-1,_=r[l],x=-1,b=c,w=-1,S=0,g=c;g<m;g++){var M,y=r[M=this.getRawIndex(g)];isNaN(y)?(S++,w<0&&(w=M)):x<(n=Math.abs((v-d)*(y-_)-(v-g)*(f-_)))&&(x=n,b=M)}0<S&&S<m-c&&(u[a++]=Math.min(w,b),b=Math.max(w,b)),l=u[a++]=b}return u[a++]=this.getRawIndex(o-1),i._count=a,i._indices=u,i.getRawIndex=this._getRawIdx,i},l.prototype.minmaxDownSample=function(t,e){for(var n=this.clone([t],!0),i=n._chunks,r=Math.floor(1/e),o=i[t],a=this.count(),s=new(oy(this._rawCount))(2*Math.ceil(a/r)),l=0,u=0;u<a;u+=r){var h=u,c=o[this.getRawIndex(h)],p=u,d=o[this.getRawIndex(p)],f=r;a<u+r&&(f=a-u);for(var g=0;g<f;g++){var y=o[this.getRawIndex(u+g)];y<c&&(c=y,h=u+g),d<y&&(d=y,p=u+g)}var m=this.getRawIndex(h),v=this.getRawIndex(p);h<p?(s[l++]=m,s[l++]=v):(s[l++]=v,s[l++]=m)}return n._count=l,n._indices=s,n._updateGetRawIdx(),n},l.prototype.downSample=function(t,e,n,i){for(var r=this.clone([t],!0),o=r._chunks,a=[],s=Math.floor(1/e),l=o[t],u=this.count(),h=r._rawExtent[t]=ay(),c=new(oy(this._rawCount))(Math.ceil(u/s)),p=0,d=0;d<u;d+=s){u-d<s&&(a.length=s=u-d);for(var f=0;f<s;f++){var g=this.getRawIndex(d+f);a[f]=l[g]}var y=n(a),m=this.getRawIndex(Math.min(d+i(a,y)||0,u-1));(l[m]=y)<h[0]&&(h[0]=y),y>h[1]&&(h[1]=y),c[p++]=m}return r._count=p,r._indices=c,r._updateGetRawIdx(),r},l.prototype.each=function(t,e){if(this._count)for(var n=t.length,i=this._chunks,r=0,o=this.count();r<o;r++){var a=this.getRawIndex(r);switch(n){case 0:e(r);break;case 1:e(i[t[0]][a],r);break;case 2:e(i[t[0]][a],i[t[1]][a],r);break;default:for(var s=0,l=[];s<n;s++)l[s]=i[t[s]][a];l[s]=r,e.apply(null,l)}}},l.prototype.getDataExtent=function(t){var e=this._chunks[t],n=ay();if(!e)return n;var i=this.count();if(!this._indices)return this._rawExtent[t].slice();if(r=this._extent[t])return r.slice();for(var r,o=(r=n)[0],a=r[1],s=0;s<i;s++){var l=e[this.getRawIndex(s)];l<o&&(o=l),a<l&&(a=l)}return this._extent[t]=r=[o,a]},l.prototype.getRawDataItem=function(t){var e=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(e);for(var n=[],i=this._chunks,r=0;r<i.length;r++)n.push(i[r][e]);return n},l.prototype.clone=function(t,e){var n,i,r=new l,o=this._chunks,a=t&&lt(t,function(t,e){return t[e]=!0,t},{});if(a)for(var s=0;s<o.length;s++)r._chunks[s]=a[s]?(n=o[s],i=void 0,(i=n.constructor)===Array?n.slice():new i(n)):o[s];else r._chunks=o;return this._copyCommonProps(r),e||(r._indices=this._cloneIndices()),r._updateGetRawIdx(),r},l.prototype._copyCommonProps=function(t){t._count=this._count,t._rawCount=this._rawCount,t._provider=this._provider,t._dimensions=this._dimensions,t._extent=y(this._extent),t._rawExtent=y(this._rawExtent)},l.prototype._cloneIndices=function(){if(this._indices){var t=this._indices.constructor,e=void 0;if(t===Array)for(var n=this._indices.length,e=new t(n),i=0;i<n;i++)e[i]=this._indices[i];else e=new t(this._indices);return e}return null},l.prototype._getRawIdxIdentity=function(t){return t},l.prototype._getRawIdx=function(t){return t<this._count&&0<=t?this._indices[t]:-1},l.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},l.internalField=void(ty={arrayRows:uy,objectRows:function(t,e,n,i){return Ng(t[e],this._dimensions[i])},keyedColumns:uy,original:function(t,e,n,i){t=t&&(null==t.value?t:t.value);return Ng(t instanceof Array?t[i]:t,this._dimensions[i])},typedArray:function(t,e,n,i){return t[i]}});var ly=l;function l(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=O()}function uy(t,e,n,i){return Ng(t[i],this._dimensions[i])}cy.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},cy.prototype._setLocalSource=function(t,e){this._sourceList=t,this._upstreamSignList=e,this._versionSignBase++,9e10<this._versionSignBase&&(this._versionSignBase=0)},cy.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},cy.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},cy.prototype._createSource=function(){this._setLocalSource([],[]);var t,e,n,i,r,o,a,s=this._sourceHost,l=this._getUpstreamSourceManagers(),u=!!l.length;dy(s)?(i=s,r=t=o=void 0,e=u?((e=l[0]).prepareSource(),o=(r=e.getSource()).data,t=r.sourceFormat,[e._getVersionSign()]):(t=mt(o=i.get("data",!0))?Jd:jd,[]),i=this._getSourceMetaRawOption()||{},r=r&&r.metaRawOption||{},a=W(i.seriesLayoutBy,r.seriesLayoutBy)||null,n=W(i.sourceHeader,r.sourceHeader),i=W(i.dimensions,r.dimensions),r=a!==r.seriesLayoutBy||!!n!=!!r.sourceHeader||i?[$f(o,{seriesLayoutBy:a,sourceHeader:n,dimensions:i},t)]:[]):(o=s,e=u?(r=(a=this._applyTransform(l)).sourceList,a.upstreamSignList):(r=[$f(o.get("source",!0),this._getSourceMetaRawOption(),null)],[])),this._setLocalSource(r,e)},cy.prototype._applyTransform=function(t){var e,n=this._sourceHost,i=n.get("transform",!0),r=n.get("fromTransformResult",!0),o=(null!=r&&1!==t.length&&fy(""),[]),a=[];return N(t,function(t){t.prepareSource();var e=t.getSource(r||0);null==r||e||fy(""),o.push(e),a.push(t._getVersionSign())}),i?e=Qg(i,o,n.componentIndex):null!=r&&(e=[new jf({data:(t=o[0]).data,sourceFormat:t.sourceFormat,seriesLayoutBy:t.seriesLayoutBy,dimensionsDefine:y(t.dimensionsDefine),startIndex:t.startIndex,dimensionsDetectedCount:t.dimensionsDetectedCount})]),{sourceList:e,upstreamSignList:a}},cy.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}},cy.prototype.getSource=function(t){var e=this._sourceList[t=t||0];return e||(e=this._getUpstreamSourceManagers())[0]&&e[0].getSource(t)},cy.prototype.getSharedDataStore=function(t){var e=t.makeStoreSchema();return this._innerGetDataStore(e.dimensions,t.source,e.hash)},cy.prototype._innerGetDataStore=function(t,e,n){var i,r=this._storeList,o=r[0],r=(o=o||(r[0]={}))[n];return r||(i=this._getUpstreamSourceManagers()[0],dy(this._sourceHost)&&i?r=i._innerGetDataStore(t,e,n):(r=new ly).initData(new ag(e,t.length),t),o[n]=r),r},cy.prototype._getUpstreamSourceManagers=function(){var t,e=this._sourceHost;return dy(e)?(t=sf(e))?[t.getSourceManager()]:[]:E((t=e).get("transform",!0)||t.get("fromTransformResult",!0)?oa(t.ecModel,"dataset",{index:t.get("fromDatasetIndex",!0),id:t.get("fromDatasetId",!0)},ra).models:[],function(t){return t.getSourceManager()})},cy.prototype._getSourceMetaRawOption=function(){var t,e,n,i=this._sourceHost;return dy(i)?(t=i.get("seriesLayoutBy",!0),e=i.get("sourceHeader",!0),n=i.get("dimensions",!0)):this._getUpstreamSourceManagers().length||(t=(i=i).get("seriesLayoutBy",!0),e=i.get("sourceHeader",!0),n=i.get("dimensions",!0)),{seriesLayoutBy:t,sourceHeader:e,dimensions:n}};var hy=cy;function cy(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}function py(t){t.option.transform&&At(t.option.transform)}function dy(t){return"series"===t.mainType}function fy(t){throw new Error(t)}var gy="line-height:1";function yy(t){t=t.lineHeight;return null==t?gy:"line-height:"+we(t+"")+"px"}function my(t,e){var n=t.color||m.color.tertiary,i=t.fontSize||12,r=t.fontWeight||"400",o=t.color||m.color.secondary,a=t.fontSize||14,t=t.fontWeight||"900";return"html"===e?{nameStyle:"font-size:"+we(i+"")+"px;color:"+we(n)+";font-weight:"+we(r+""),valueStyle:"font-size:"+we(a+"")+"px;color:"+we(o)+";font-weight:"+we(t+"")}:{nameStyle:{fontSize:i,fill:n,fontWeight:r},valueStyle:{fontSize:a,fill:o,fontWeight:t}}}var vy=[0,10,20,30],_y=["","\n","\n\n","\n\n\n"];function xy(t,e){return e.type=t,e}function by(t){return"section"===t.type}function wy(t){return by(t)?Sy:My}function Sy(i,r,t,o){var n,e=r.noHeader,a=(l=function n(t){var i,e,r;return by(t)?(i=0,e=t.blocks.length,r=1<e||0<e&&!t.noHeader,N(t.blocks,function(t){var e=n(t);i<=e&&(i=e+ +(r&&(!e||by(t)&&!t.noHeader)))}),i):0}(r),{html:vy[l],richText:_y[l]}),s=[],l=r.blocks||[],u=(kt(!l||F(l)),l=l||[],i.orderMode),h=(r.sortBlocks&&u&&(l=l.slice(),Vt(h={valueAsc:"asc",valueDesc:"desc"},u)?(n=new Hg(h[u],null),l.sort(function(t,e){return n.evaluate(t.sortParam,e.sortParam)})):"seriesDesc"===u&&l.reverse()),N(l,function(t,e){var n=r.valueFormatter,n=wy(t)(n?P(P({},i),{valueFormatter:n}):i,t,0<e?a.html:0,o);null!=n&&s.push(n)}),"richText"===i.renderMode?s.join(a.richText):Cy(o,s.join(""),e?t:a.html));return e?h:(u=pd(r.header,"ordinal",i.useUTC),l=my(o,i.renderMode).nameStyle,e=yy(o),"richText"===i.renderMode?ky(i,u,l)+a.richText+h:Cy(o,'<div style="'+l+";"+e+';">'+we(u)+"</div>"+h,t))}function My(t,e,n,i){var r,o,a,s,l,u=t.renderMode,h=e.noName,c=e.noValue,p=!e.markerType,d=e.name,f=t.useUTC,g=e.valueFormatter||t.valueFormatter||function(t){return E(t=F(t)?t:[t],function(t,e){return pd(t,F(o)?o[e]:o,f)})};if(!h||!c)return r=p?"":t.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||m.color.secondary,u),d=h?"":pd(d,"ordinal",f),o=e.valueType,g=c?[]:g(e.value,e.dataIndex),e=!p||!h,a=!p&&h,l=my(i,u),s=l.nameStyle,l=l.valueStyle,"richText"===u?(p?"":r)+(h?"":ky(t,d,s))+(c?"":function(t,e,n,i,r){r=[r],i=i?10:20;return n&&r.push({padding:[0,0,0,i],align:"right"}),t.markupStyleCreator.wrapRichTextStyle(F(e)?e.join("  "):e,r)}(t,g,e,a,l)):Cy(i,(p?"":r)+(h?"":'<span style="'+s+";"+(!p?"margin-left:2px":"")+'">'+we(d)+"</span>")+(c?"":function(t,e,n,i){n=n?"10px":"20px",e=e?"float:right;margin-left:"+n:"";return t=F(t)?t:[t],'<span style="'+e+";"+i+'">'+E(t,we).join("&nbsp;&nbsp;")+"</span>"}(g,e,a,l)),n)}function Ty(t,e,n,i,r,o){if(t)return wy(t)({useUTC:r,renderMode:n,orderMode:i,markupStyleCreator:e,valueFormatter:t.valueFormatter},t,0,o)}function Cy(t,e,n){return'<div style="'+("margin: "+n+"px 0 0")+";"+yy(t)+';">'+e+'<div style="clear:both"></div></div>'}function ky(t,e,n){return t.markupStyleCreator.wrapRichTextStyle(e,n)}function Iy(t,e){t=t.get("padding");return null!=t?t:"richText"===e?[8,10]:10}Ay.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},Ay.prototype.makeTooltipMarker=function(t,e,n){var i="richText"===n?this._generateStyleName():null,e=yd({color:e,type:t,renderMode:n,markerId:i});return V(e)?e:(this.richTextStyles[i]=e.style,e.content)},Ay.prototype.wrapRichTextStyle=function(t,e){var n={},e=(F(e)?N(e,function(t){return P(n,t)}):P(n,e),this._generateStyleName());return this.richTextStyles[e]=n,"{"+e+"|"+t+"}"};var Dy=Ay;function Ay(){this.richTextStyles={},this._nextStyleNameId=Eo()}function Ly(t){var e,n,i,r,o,a,s,l,u,h,c,p=t.series,d=t.dataIndex,t=t.multipleSeries,f=p.getData(),g=f.mapDimensionsAll("defaultedTooltip"),y=g.length,m=p.getRawValue(d),v=F(m),_=(_=d,md((b=p).getData().getItemVisual(_,"style")[b.visualDrawType]));function x(t,e){e=s.getDimensionInfo(e);e&&!1!==e.otherDims.tooltip&&(l?c.push(xy("nameValue",{markerType:"subItem",markerColor:a,name:e.displayName,value:t,valueType:e.type})):(u.push(t),h.push(e.type)))}1<y||v&&!y?(b=m,r=d,o=g,a=_,s=p.getData(),l=lt(b,function(t,e,n){n=s.getDimensionInfo(n);return t||n&&!1!==n.tooltip&&null!=n.displayName},!1),u=[],h=[],c=[],o.length?N(o,function(t){x(_g(s,r,t),t)}):N(b,x),e=(o={inlineValues:u,inlineValueTypes:h,blocks:c}).inlineValueTypes,n=o.blocks,i=(o=o.inlineValues)[0]):y?(b=f.getDimensionInfo(g[0]),i=o=_g(f,d,g[0]),e=b.type):i=o=v?m[0]:m;var y=Ko(p),g=y&&p.name||"",b=f.getName(d),v=t?g:b;return xy("section",{header:g,noHeader:t||!y,sortParam:i,blocks:[xy("nameValue",{markerType:"item",markerColor:_,name:v,noName:!It(v),value:o,valueType:e,dataIndex:d})].concat(n||[])})}var Py=ta();function Oy(t,e){return t.getName(e)||t.getId(e)}u(h,Ry=g),h.prototype.init=function(t,e,n){this.seriesIndex=this.componentIndex,this.dataTask=Sg({count:zy,reset:Ey}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,n);(Py(this).sourceManager=new hy(this)).prepareSource();t=this.getInitialData(t,n);Vy(t,this),this.dataTask.context.data=t,Py(this).dataBeforeProcessed=t,By(this),this._initSelectedMapFromData(t)},h.prototype.mergeDefaultAndTheme=function(t,e){var n=Rd(this),i=n?Bd(t):{},r=this.subType;g.hasClass(r),d(t,e.getTheme().get(this.subType)),d(t,this.getDefaultOption()),Go(t,"label",["show"]),this.fillDataTextStyle(t.data),n&&Nd(t,i,n)},h.prototype.mergeOption=function(t,e){t=d(this.option,t,!0),this.fillDataTextStyle(t.data);var n=Rd(this),n=(n&&Nd(this.option,t,n),Py(this).sourceManager),n=(n.dirty(),n.prepareSource(),this.getInitialData(t,e));Vy(n,this),this.dataTask.dirty(),this.dataTask.context.data=n,Py(this).dataBeforeProcessed=n,By(this),this._initSelectedMapFromData(n)},h.prototype.fillDataTextStyle=function(t){if(t&&!mt(t))for(var e=["show"],n=0;n<t.length;n++)t[n]&&t[n].label&&Go(t[n],"label",e)},h.prototype.getInitialData=function(t,e){},h.prototype.appendData=function(t){this.getRawData().appendData(t.data)},h.prototype.getData=function(t){var e=Wy(this);return e?(e=e.context.data,null!=t&&e.getLinkedData?e.getLinkedData(t):e):Py(this).data},h.prototype.getAllData=function(){var t=this.getData();return t&&t.getLinkedDataAll?t.getLinkedDataAll():[{data:t}]},h.prototype.setData=function(t){var e,n=Wy(this);n&&((e=n.context).outputData=t,n!==this.dataTask)&&(e.data=t),Py(this).data=t},h.prototype.getEncode=function(){var t=this.get("encode",!0);if(t)return O(t)},h.prototype.getSourceManager=function(){return Py(this).sourceManager},h.prototype.getSource=function(){return this.getSourceManager().getSource()},h.prototype.getRawData=function(){return Py(this).dataBeforeProcessed},h.prototype.getColorBy=function(){return this.get("colorBy")||"series"},h.prototype.isColorBySeries=function(){return"series"===this.getColorBy()},h.prototype.getBaseAxis=function(){var t=this.coordinateSystem;return t&&t.getBaseAxis&&t.getBaseAxis()},h.prototype.indicesOfNearest=function(t,e,n,i){var r,o,a,s,l,u=this.getData(),h=this.coordinateSystem,c=h&&h.getAxis(t);return h&&c?(r=c.dataToCoord(n),null==i&&(i=1/0),o=[],a=1/0,s=-1,l=0,u.each(e,function(t,e){var t=c.dataToCoord(t),t=r-t,n=Math.abs(t);n<=i&&((n<a||n===a&&0<=t&&s<0)&&(a=n,s=t,l=0),t===s)&&(o[l++]=e)}),o.length=l,o):[]},h.prototype.formatTooltip=function(t,e,n){return Ly({series:this,dataIndex:t,multipleSeries:e})},h.prototype.isAnimationEnabled=function(){var t=this.ecModel;return!!(!w.node||t&&t.ssr)&&!!(t=(t=this.getShallow("animation"))&&this.getData().count()>this.getShallow("animationThreshold")?!1:t)},h.prototype.restoreData=function(){this.dataTask.dirty()},h.prototype.getColorFromPalette=function(t,e,n){var i=this.ecModel;return ff.prototype.getColorFromPalette.call(this,t,e,n)||i.getColorFromPalette(t,e,n)},h.prototype.coordDimToDataDim=function(t){return this.getRawData().mapDimensionsAll(t)},h.prototype.getProgressive=function(){return this.get("progressive")},h.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},h.prototype.select=function(t,e){this._innerSelect(this.getData(e),t)},h.prototype.unselect=function(t,e){var n=this.option.selectedMap;if(n){var i=this.option.selectedMode,r=this.getData(e);if("series"===i||"all"===n)this.option.selectedMap={},this._selectedDataIndicesMap={};else for(var o=0;o<t.length;o++){var a=Oy(r,t[o]);n[a]=!1,this._selectedDataIndicesMap[a]=-1}}},h.prototype.toggleSelect=function(t,e){for(var n=[],i=0;i<t.length;i++)n[0]=t[i],this.isSelected(t[i],e)?this.unselect(n,e):this.select(n,e)},h.prototype.getSelectedDataIndices=function(){if("all"===this.option.selectedMap)return[].slice.call(this.getData().getIndices());for(var t=this._selectedDataIndicesMap,e=ct(t),n=[],i=0;i<e.length;i++){var r=t[e[i]];0<=r&&n.push(r)}return n},h.prototype.isSelected=function(t,e){var n=this.option.selectedMap;return!!n&&(e=this.getData(e),"all"===n||n[Oy(e,t)])&&!e.getItemModel(t).get(["select","disabled"])},h.prototype.isUniversalTransitionEnabled=function(){var t;return!!this.__universalTransitionEnabled||!!(t=this.option.universalTransition)&&(!0===t||t&&t.enabled)},h.prototype._innerSelect=function(t,e){var n=this.option,i=n.selectedMode,r=e.length;if(i&&r)if("series"===i)n.selectedMap="all";else if("multiple"===i){H(n.selectedMap)||(n.selectedMap={});for(var o=n.selectedMap,a=0;a<r;a++){var s,l=e[a];o[s=Oy(t,l)]=!0,this._selectedDataIndicesMap[s]=t.getRawIndex(l)}}else"single"!==i&&!0!==i||(s=Oy(t,i=e[r-1]),n.selectedMap=((n={})[s]=!0,n),this._selectedDataIndicesMap=((n={})[s]=t.getRawIndex(i),n))},h.prototype._initSelectedMapFromData=function(n){var i;this.option.selectedMap||(i=[],n.hasItemOption&&n.each(function(t){var e=n.getRawDataItem(t);e&&e.selected&&i.push(t)}),0<i.length&&this._innerSelect(n,i))},h.registerClass=function(t){return g.registerClass(t)},h.protoInitialize=((Ic=h.prototype).type="series.__base__",Ic.seriesIndex=0,Ic.ignoreStyleOnData=!1,Ic.hasSymbolVisual=!1,Ic.defaultSymbol="circle",Ic.visualStyleAccessPath="itemStyle",void(Ic.visualDrawType="fill"));var Ry,Ny=h;function h(){var t=null!==Ry&&Ry.apply(this,arguments)||this;return t._selectedDataIndicesMap={},t}function By(t){var e,n,i=t.name;Ko(t)||(t.name=(t=(e=(t=t).getRawData()).mapDimensionsAll("seriesName"),n=[],N(t,function(t){t=e.getDimensionInfo(t);t.displayName&&n.push(t.displayName)}),n.join(" ")||i))}function zy(t){return t.model.getRawData().count()}function Ey(t){t=t.model;return t.setData(t.getRawData().cloneShallow()),Fy}function Fy(t,e){e.outputData&&t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function Vy(e,n){N(zt(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(t){e.wrapMethod(t,dt(Hy,n))})}function Hy(t,e){t=Wy(t);return t&&t.setOutputEnd((e||this).count()),e}function Wy(t){var e,n=(t.ecModel||{}).scheduler,n=n&&n.getPipeline(t.uid);if(n)return(n=n.currentTask)&&(e=n.agentStubMap)?e.get(t.uid):n}at(Ny,_p),at(Ny,ff),da(Ny,g);Uy.prototype.init=function(t,e){},Uy.prototype.render=function(t,e,n,i){},Uy.prototype.dispose=function(t,e){},Uy.prototype.updateView=function(t,e,n,i){},Uy.prototype.updateLayout=function(t,e,n,i){},Uy.prototype.updateVisual=function(t,e,n,i){},Uy.prototype.toggleBlurSeries=function(t,e,n){},Uy.prototype.eachRendered=function(t){var e=this.group;e&&e.traverse(t)};var Gy=Uy;function Uy(){this.group=new ao,this.uid=Tp("viewComponent")}function Xy(){var o=ta();return function(t){var e=o(t),t=t.pipelineContext,n=!!e.large,i=!!e.progressiveRender,r=e.large=!(!t||!t.large),e=e.progressiveRender=!(!t||!t.progressiveRender);return!(n==r&&i==e)&&"reset"}}pa(Gy),ma(Gy);var Yy=ta(),qy=Xy(),Zy=(jy.prototype.init=function(t,e){},jy.prototype.render=function(t,e,n,i){},jy.prototype.highlight=function(t,e,n,i){t=t.getData(i&&i.dataType);t&&$y(t,i,"emphasis")},jy.prototype.downplay=function(t,e,n,i){t=t.getData(i&&i.dataType);t&&$y(t,i,"normal")},jy.prototype.remove=function(t,e){this.group.removeAll()},jy.prototype.dispose=function(t,e){},jy.prototype.updateView=function(t,e,n,i){this.render(t,e,n,i)},jy.prototype.updateLayout=function(t,e,n,i){this.render(t,e,n,i)},jy.prototype.updateVisual=function(t,e,n,i){this.render(t,e,n,i)},jy.prototype.eachRendered=function(t){Wc(this.group,t)},jy.markUpdateMethod=function(t,e){Yy(t).updateMethod=e},jy.protoInitialize=void(jy.prototype.type="chart"),jy);function jy(){this.group=new ao,this.uid=Tp("viewChart"),this.renderTask=Sg({plan:Qy,reset:Jy}),this.renderTask.context={view:this}}function Ky(t,e,n){t&&mu(t)&&("emphasis"===e?tu:eu)(t,n)}function $y(e,t,n){var i,r=Jo(e,t),o=t&&null!=t.highlightKey?(t=t.highlightKey,i=null==(i=Ml[t])&&Sl<=32?Ml[t]=Sl++:i):null;null!=r?N(Wo(r),function(t){Ky(e.getItemGraphicEl(t),n,o)}):e.eachItemGraphicEl(function(t){Ky(t,n,o)})}function Qy(t){return qy(t.model)}function Jy(t){var e=t.model,n=t.ecModel,i=t.api,r=t.payload,o=e.pipelineContext.progressiveRender,t=t.view,a=r&&Yy(r).updateMethod,o=o?"incrementalPrepareRender":a&&t[a]?a:"render";return"render"!==o&&t[o](e,n,i,r),tm[o]}pa(Zy),ma(Zy);var tm={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)}}},em="\0__throttleOriginMethod",nm="\0__throttleRate",im="\0__throttleType";function rm(t,r,o){var a,s,l,u,h,c=0,p=0,d=null;function f(){p=(new Date).getTime(),d=null,t.apply(l,u||[])}r=r||0;function e(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];a=(new Date).getTime(),l=this,u=t;var n=h||r,i=h||o;h=null,s=a-(i?c:p)-n,clearTimeout(d),i?d=setTimeout(f,n):0<=s?f():d=setTimeout(f,-s),c=a}return e.clear=function(){d&&(clearTimeout(d),d=null)},e.debounceNextCall=function(t){h=t},e}function om(t,e,n,i){var r=t[e];if(r){var o=r[em]||r,a=r[im];if(r[nm]!==n||a!==i){if(null==n||!i)return t[e]=o;(r=t[e]=rm(o,n,"debounce"===i))[em]=o,r[im]=i,r[nm]=n}}}function am(t,e){var n=t[e];n&&n[em]&&(n.clear&&n.clear(),t[e]=n[em])}var sm=ta(),lm={itemStyle:va(mp,!0),lineStyle:va(dp,!0)},um={lineStyle:"stroke",itemStyle:"fill"};function hm(t,e){t=t.visualStyleMapper||lm[e];return t||(console.warn("Unknown style type '"+e+"'."),lm.itemStyle)}function cm(t,e){t=t.visualDrawType||um[e];return t||(console.warn("Unknown style type '"+e+"'."),"fill")}var xa={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){var e=r.getData(),n=r.visualStyleAccessPath||"itemStyle",i=r.getModel(n),o=hm(r,n)(i),i=i.getShallow("decal"),a=(i&&(e.setVisual("decal",i),i.dirty=!0),cm(r,n)),i=o[a],s=B(i)?i:null,n="auto"===o.fill||"auto"===o.stroke;if(o[a]&&!s&&!n||(i=r.getColorFromPalette(r.name,null,t.getSeriesCount()),o[a]||(o[a]=i,e.setVisual("colorFromPalette",!0)),o.fill="auto"===o.fill||B(o.fill)?i:o.fill,o.stroke="auto"===o.stroke||B(o.stroke)?i:o.stroke),e.setVisual("style",o),e.setVisual("drawType",a),!t.isSeriesFiltered(r)&&s)return e.setVisual("colorFromPalette",!1),{dataEach:function(t,e){var n=r.getDataParams(e),i=P({},o);i[a]=s(n),t.setItemVisual(e,"style",i)}}}},pm=new wp,gp={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var i,r,o;if(!t.ignoreStyleOnData&&!e.isSeriesFiltered(t))return e=t.getData(),i=t.visualStyleAccessPath||"itemStyle",r=hm(t,i),o=e.getVisual("drawType"),{dataEach:e.hasItemOption?function(t,e){var n=t.getRawDataItem(e);n&&n[i]&&(pm.option=n[i],n=r(pm),P(t.ensureUniqueItemVisual(e,"style"),n),pm.option.decal&&(t.setItemVisual(e,"decal",pm.option.decal),pm.option.decal.dirty=!0),o in n)&&t.setItemVisual(e,"colorFromPalette",!1)}:null}}},Vp={performRawSeries:!0,overallReset:function(e){var i=O();e.eachSeries(function(t){var e,n=t.getColorBy();t.isColorBySeries()||(n=t.type+"-"+n,(e=i.get(n))||i.set(n,e={}),sm(t).scope=e)}),e.eachSeries(function(i){var r,o,a,s,t,l;i.isColorBySeries()||e.isSeriesFiltered(i)||(r=i.getRawData(),o={},a=i.getData(),s=sm(i).scope,t=i.visualStyleAccessPath||"itemStyle",l=cm(i,t),a.each(function(t){var e=a.getRawIndex(t);o[e]=t}),r.each(function(t){var e,n=o[t];a.getItemVisual(n,"colorFromPalette")&&(n=a.ensureUniqueItemVisual(n,"style"),t=r.getName(t)||t+"",e=r.count(),n[l]=i.getColorFromPalette(t,s,e))}))})}},dm=Math.PI;gm.prototype.restoreData=function(t,e){t.restoreData(e),this._stageTaskMap.each(function(t){t=t.overallTask;t&&t.dirty()})},gm.prototype.getPerformArgs=function(t,e){var n,i;if(t.__pipeline)return i=(n=this._pipelineMap.get(t.__pipeline.id)).context,{step:e=!e&&n.progressiveEnabled&&(!i||i.progressiveRender)&&t.__idxInPipeline>n.blockIndex?n.step:null,modBy:null!=(t=i&&i.modDataCount)?Math.ceil(t/e):null,modDataCount:t}},gm.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},gm.prototype.updateStreamModes=function(t,e){var n=this._pipelineMap.get(t.uid),i=t.getData().count(),e=n.progressiveEnabled&&e.incrementalPrepareRender&&i>=n.threshold,r=t.get("large")&&i>=t.get("largeThreshold"),i="mod"===t.get("progressiveChunkMode")?i:null;t.pipelineContext=n.context={progressiveRender:e,modDataCount:i,large:r}},gm.prototype.restorePipelines=function(t){var i=this,r=i._pipelineMap=O();t.eachSeries(function(t){var e=t.getProgressive(),n=t.uid;r.set(n,{id:n,head:null,tail:null,threshold:t.getProgressiveThreshold(),progressiveEnabled:e&&!(t.preventIncremental&&t.preventIncremental()),blockIndex:-1,step:Math.round(e||700),count:0}),i._pipe(t,t.dataTask)})},gm.prototype.prepareStageTasks=function(){var n=this._stageTaskMap,i=this.api.getModel(),r=this.api;N(this._allHandlers,function(t){var e=n.get(t.uid)||n.set(t.uid,{});kt(!(t.reset&&t.overallReset),""),t.reset&&this._createSeriesStageTask(t,e,i,r),t.overallReset&&this._createOverallStageTask(t,e,i,r)},this)},gm.prototype.prepareView=function(t,e,n,i){var r=t.renderTask,o=r.context;o.model=e,o.ecModel=n,o.api=i,r.__block=!t.incrementalPrepareRender,this._pipe(e,r)},gm.prototype.performDataProcessorTasks=function(t,e){this._performStageTasks(this._dataProcessorHandlers,t,e,{block:!0})},gm.prototype.performVisualTasks=function(t,e,n){this._performStageTasks(this._visualHandlers,t,e,n)},gm.prototype._performStageTasks=function(t,s,l,u){u=u||{};var h=!1,c=this;function p(t,e){return t.setDirty&&(!t.dirtyMap||t.dirtyMap.get(e.__pipeline.id))}N(t,function(i,t){var e,n,r,o,a;u.visualType&&u.visualType!==i.visualType||(e=(n=c._stageTaskMap.get(i.uid)).seriesTaskMap,(n=n.overallTask)?((o=n.agentStubMap).each(function(t){p(u,t)&&(t.dirty(),r=!0)}),r&&n.dirty(),c.updatePayload(n,l),a=c.getPerformArgs(n,u.block),o.each(function(t){t.perform(a)}),n.perform(a)&&(h=!0)):e&&e.each(function(t,e){p(u,t)&&t.dirty();var n=c.getPerformArgs(t,u.block);n.skip=!i.performRawSeries&&s.isSeriesFiltered(t.context.model),c.updatePayload(t,l),t.perform(n)&&(h=!0)}))}),this.unfinished=h||this.unfinished},gm.prototype.performSeriesTasks=function(t){var e;t.eachSeries(function(t){e=t.dataTask.perform()||e}),this.unfinished=e||this.unfinished},gm.prototype.plan=function(){this._pipelineMap.each(function(t){var e=t.tail;do{if(e.__block){t.blockIndex=e.__idxInPipeline;break}}while(e=e.getUpstream())})},gm.prototype.updatePayload=function(t,e){"remain"!==e&&(t.context.payload=e)},gm.prototype._createSeriesStageTask=function(n,t,i,r){var o=this,a=t.seriesTaskMap,s=t.seriesTaskMap=O(),t=n.seriesType,e=n.getTargetSeries;function l(t){var e=t.uid,e=s.set(e,a&&a.get(e)||Sg({plan:xm,reset:bm,count:Mm}));e.context={model:t,ecModel:i,api:r,useClearVisual:n.isVisual&&!n.isLayout,plan:n.plan,reset:n.reset,scheduler:o},o._pipe(t,e)}n.createOnAllSeries?i.eachRawSeries(l):t?i.eachRawSeriesByType(t,l):e&&e(i,r).each(l)},gm.prototype._createOverallStageTask=function(t,e,n,i){var r=this,o=e.overallTask=e.overallTask||Sg({reset:ym}),a=(o.context={ecModel:n,api:i,overallReset:t.overallReset,scheduler:r},o.agentStubMap),s=o.agentStubMap=O(),e=t.seriesType,l=t.getTargetSeries,u=!0,h=!1;function c(t){var e=t.uid,e=s.set(e,a&&a.get(e)||(h=!0,Sg({reset:mm,onDirty:_m})));e.context={model:t,overallProgress:u},e.agent=o,e.__block=u,r._pipe(t,e)}kt(!t.createOnAllSeries,""),e?n.eachRawSeriesByType(e,c):l?l(n,i).each(c):(u=!1,N(n.getSeries(),c)),h&&o.dirty()},gm.prototype._pipe=function(t,e){t=t.uid,t=this._pipelineMap.get(t);t.head||(t.head=e),t.tail&&t.tail.pipe(e),(t.tail=e).__idxInPipeline=t.count++,e.__pipeline=t},gm.wrapStageHandler=function(t,e){return(t=B(t)?{overallReset:t,seriesType:function(t){Tm=null;try{t(Cm,km)}catch(t){}return Tm}(t)}:t).uid=Tp("stageHandler"),e&&(t.visualType=e),t};var fm=gm;function gm(t,e,n,i){this._stageTaskMap=O(),this.ecInstance=t,this.api=e,n=this._dataProcessorHandlers=n.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=n.concat(i)}function ym(t){t.overallReset(t.ecModel,t.api,t.payload)}function mm(t){return t.overallProgress&&vm}function vm(){this.agent.dirty(),this.getDownstream().dirty()}function _m(){this.agent&&this.agent.dirty()}function xm(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function bm(t){t.useClearVisual&&t.data.clearAllVisual();t=t.resetDefines=Wo(t.reset(t.model,t.ecModel,t.api,t.payload));return 1<t.length?E(t,function(t,e){return Sm(e)}):wm}var wm=Sm(0);function Sm(o){return function(t,e){var n=e.data,i=e.resetDefines[o];if(i&&i.dataEach)for(var r=t.start;r<t.end;r++)i.dataEach(n,r);else i&&i.progress&&i.progress(t,n)}}function Mm(t){return t.data.count()}var Tm,Cm={},km={};function Im(t,e){for(var n in e.prototype)t[n]=Ht}Im(Cm,_f),Im(km,Sf),Cm.eachSeriesByType=Cm.eachRawSeriesByType=function(t){Tm=t},Cm.eachComponent=function(t){"series"===t.mainType&&t.subType&&(Tm=t.subType)};function Dm(){return{axisLine:{lineStyle:{color:c.axisLine}},splitLine:{lineStyle:{color:c.axisSplitLine}},splitArea:{areaStyle:{color:[c.backgroundTint,c.backgroundTransparent]}},minorSplitLine:{lineStyle:{color:c.axisMinorSplitLine}},axisLabel:{color:c.axisLabel},axisName:{}}}var c=m.darkColor,Ic=c.background,_p={label:{color:c.secondary},itemStyle:{borderColor:c.borderTint},dividerLineStyle:{color:c.border}},dp={darkMode:!0,color:c.theme,backgroundColor:Ic,axisPointer:{lineStyle:{color:c.border},crossStyle:{color:c.borderShade},label:{color:c.tertiary}},legend:{textStyle:{color:c.secondary},pageTextStyle:{color:c.tertiary}},textStyle:{color:c.secondary},title:{textStyle:{color:c.primary},subtextStyle:{color:c.quaternary}},toolbox:{iconStyle:{borderColor:c.accent50}},tooltip:{backgroundColor:c.neutral20,defaultBorderColor:c.border,textStyle:{color:c.tertiary}},dataZoom:{borderColor:c.accent10,textStyle:{color:c.tertiary},brushStyle:{color:c.backgroundTint},handleStyle:{color:c.neutral00,borderColor:c.accent20},moveHandleStyle:{color:c.accent40},emphasis:{handleStyle:{borderColor:c.accent50}},dataBackground:{lineStyle:{color:c.accent30},areaStyle:{color:c.accent20}},selectedDataBackground:{lineStyle:{color:c.accent50},areaStyle:{color:c.accent30}}},visualMap:{textStyle:{color:c.secondary},handleStyle:{borderColor:c.neutral30}},timeline:{lineStyle:{color:c.accent10},label:{color:c.tertiary},controlStyle:{color:c.accent30,borderColor:c.accent30}},calendar:{itemStyle:{color:c.neutral00,borderColor:c.neutral20},dayLabel:{color:c.tertiary},monthLabel:{color:c.secondary},yearLabel:{color:c.secondary}},matrix:{x:_p,y:_p,backgroundColor:{borderColor:c.axisLine},body:{itemStyle:{borderColor:c.borderTint}}},timeAxis:Dm(),logAxis:Dm(),valueAxis:Dm(),categoryAxis:Dm(),line:{symbol:"circle"},graph:{color:c.theme},gauge:{title:{color:c.secondary},axisLine:{lineStyle:{color:[[1,c.neutral05]]}},axisLabel:{color:c.axisLabel},detail:{color:c.primary}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}},funnel:{itemStyle:{borderColor:c.background}},radar:((mp=Dm()).axisName={color:c.axisLabel},mp.axisLine.lineStyle.color=c.neutral20,mp),treemap:{breadcrumb:{itemStyle:{color:c.neutral20,textStyle:{color:c.secondary}},emphasis:{itemStyle:{color:c.neutral30}}}},sunburst:{itemStyle:{borderColor:c.background}},map:{itemStyle:{borderColor:c.border,areaColor:c.neutral10},label:{color:c.tertiary},emphasis:{label:{color:c.primary},itemStyle:{areaColor:c.highlight}},select:{label:{color:c.primary},itemStyle:{areaColor:c.highlight}}},geo:{itemStyle:{borderColor:c.border,areaColor:c.neutral10},emphasis:{label:{color:c.primary},itemStyle:{areaColor:c.highlight}},select:{label:{color:c.primary},itemStyle:{color:c.highlight}}}},Am=(dp.categoryAxis.splitLine.show=!1,Lm.prototype.normalizeQuery=function(t){var e,a,s,l={},u={},h={};return V(t)?(e=ca(t),l.mainType=e.main||null,l.subType=e.sub||null):(a=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1},N(t,function(t,e){for(var n=!1,i=0;i<a.length;i++){var r=a[i],o=e.lastIndexOf(r);0<o&&o===e.length-r.length&&"data"!==(o=e.slice(0,o))&&(l.mainType=o,l[r.toLowerCase()]=t,n=!0)}s.hasOwnProperty(e)&&(u[e]=t,n=!0),n||(h[e]=t)})),{cptQuery:l,dataQuery:u,otherQuery:h}},Lm.prototype.filter=function(t,e){var n,i,r,o,a,s=this.eventInfo;return!s||(n=s.targetEl,i=s.packedEvent,r=s.model,s=s.view,!r)||!s||(o=e.cptQuery,a=e.dataQuery,l(o,r,"mainType")&&l(o,r,"subType")&&l(o,r,"index","componentIndex")&&l(o,r,"name")&&l(o,r,"id")&&l(a,i,"name")&&l(a,i,"dataIndex")&&l(a,i,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,e.otherQuery,n,i)));function l(t,e,n,i){return null==t[n]||e[i||n]===t[n]}},Lm.prototype.afterTrigger=function(){this.eventInfo=null},Lm);function Lm(){}var Pm=["symbol","symbolSize","symbolRotate","symbolOffset"],Om=Pm.concat(["symbolKeepAspect"]),Ic={createOnAllSeries:!0,performRawSeries:!0,reset:function(a,t){var e=a.getData();if(a.legendIcon&&e.setVisual("legendIcon",a.legendIcon),a.hasSymbolVisual){for(var s,n={},l={},i=!1,r=0;r<Pm.length;r++){var o=Pm[r],u=a.get(o);B(u)?(i=!0,l[o]=u):n[o]=u}if(n.symbol=n.symbol||a.defaultSymbol,e.setVisual(P({legendIcon:a.legendIcon||n.symbol,symbolKeepAspect:a.get("symbolKeepAspect")},n)),!t.isSeriesFiltered(a))return s=ct(l),{dataEach:i?function(t,e){for(var n=a.getRawValue(e),i=a.getDataParams(e),r=0;r<s.length;r++){var o=s[r];t.setItemVisual(e,o,l[o](n,i))}}:null}}}},_p={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),i=0;i<Om.length;i++){var r=Om[i],o=n.getShallow(r,!0);null!=o&&t.setItemVisual(e,r,o)}}:null}}};function Rm(t,e,s,n,l){var u=t+e;s.isSilent(u)||n.eachComponent({mainType:"series",subType:"pie"},function(t){for(var e,n,i=t.seriesIndex,r=t.option.selectedMap,o=l.selected,a=0;a<o.length;a++)o[a].seriesIndex===i&&(n=Jo(e=t.getData(),l.fromActionPayload),s.trigger(u,{type:u,seriesId:t.id,name:F(n)?e.getName(n[0]):e.getName(n),selected:V(r)?r:P({},r)}))})}function Nm(t,e,n){for(var i;t&&(!e(t)||(i=t,!n));)t=t.__hostTarget||t.parent;return i}var Bm=Math.round(9*Math.random()),zm="function"==typeof Object.defineProperty,mp=(Em.prototype.get=function(t){return this._guard(t)[this._id]},Em.prototype.set=function(t,e){t=this._guard(t);return zm?Object.defineProperty(t,this._id,{value:e,enumerable:!1,configurable:!0}):t[this._id]=e,this},Em.prototype.delete=function(t){return!!this.has(t)&&(delete this._guard(t)[this._id],!0)},Em.prototype.has=function(t){return!!this._guard(t)[this._id]},Em.prototype._guard=function(t){if(t!==Object(t))throw TypeError("Value of WeakMap is not a non-null object.");return t},Em);function Em(){this._id="__ec_inner_"+Bm++}var Fm=Ws.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var n=e.cx,i=e.cy,r=e.width/2,e=e.height/2;t.moveTo(n,i-e),t.lineTo(n+r,i+e),t.lineTo(n-r,i+e),t.closePath()}}),Vm=Ws.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var n=e.cx,i=e.cy,r=e.width/2,e=e.height/2;t.moveTo(n,i-e),t.lineTo(n+r,i),t.lineTo(n,i+e),t.lineTo(n-r,i),t.closePath()}}),Hm=Ws.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var n=e.x,i=e.y,r=e.width/5*3,e=Math.max(r,e.height),r=r/2,o=r*r/(e-r),e=i-e+r+o,a=Math.asin(o/r),s=Math.cos(a)*r,l=Math.sin(a),u=Math.cos(a),h=.6*r,c=.7*r;t.moveTo(n-s,e+o),t.arc(n,e,r,Math.PI-a,2*Math.PI+a),t.bezierCurveTo(n+s-l*h,e+o+u*h,n,i-c,n,i),t.bezierCurveTo(n,i-c,n-s+l*h,e+o+u*h,n-s,e+o),t.closePath()}}),Wm=Ws.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var n=e.height,i=e.width,r=e.x,e=e.y,i=i/3*2;t.moveTo(r,e),t.lineTo(r+i,e+n),t.lineTo(r,e+n/4*3),t.lineTo(r-i,e+n),t.lineTo(r,e),t.closePath()}}),Gm={line:function(t,e,n,i,r){r.x1=t,r.y1=e+i/2,r.x2=t+n,r.y2=e+i/2},rect:function(t,e,n,i,r){r.x=t,r.y=e,r.width=n,r.height=i},roundRect:function(t,e,n,i,r){r.x=t,r.y=e,r.width=n,r.height=i,r.r=Math.min(n,i)/4},square:function(t,e,n,i,r){n=Math.min(n,i);r.x=t,r.y=e,r.width=n,r.height=n},circle:function(t,e,n,i,r){r.cx=t+n/2,r.cy=e+i/2,r.r=Math.min(n,i)/2},diamond:function(t,e,n,i,r){r.cx=t+n/2,r.cy=e+i/2,r.width=n,r.height=i},pin:function(t,e,n,i,r){r.x=t+n/2,r.y=e+i/2,r.width=n,r.height=i},arrow:function(t,e,n,i,r){r.x=t+n/2,r.y=e+i/2,r.width=n,r.height=i},triangle:function(t,e,n,i,r){r.cx=t+n/2,r.cy=e+i/2,r.width=n,r.height=i}},Um={},Xm=(N({line:Ch,rect:ol,roundRect:ol,square:ol,circle:Hu,diamond:Vm,pin:Hm,arrow:Wm,triangle:Fm},function(t,e){Um[e]=new t}),Ws.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(t,e,n){var t=Yr(t,e,n),i=this.shape;return i&&"pin"===i.symbolType&&"inside"===e.position&&(t.y=n.y+.4*n.height),t},buildPath:function(t,e,n){var i,r=e.symbolType;"none"!==r&&(i=(i=Um[r])||Um[r="rect"],Gm[r](e.x,e.y,e.width,e.height,i.shape),i.buildPath(t,i.shape,n))}}));function Ym(t,e){var n;"image"!==this.type&&(n=this.style,this.__isEmptyBrush?(n.stroke=t,n.fill=e||m.color.neutral00,n.lineWidth=2):"line"===this.shape.symbolType?n.stroke=t:n.fill=t,this.markRedraw())}function qm(t,e,n,i,r,o,a){var s=0===t.indexOf("empty");return(a=0===(t=s?t.substr(5,1).toLowerCase()+t.substr(6):t).indexOf("image://")?Sc(t.slice(8),new X(e,n,i,r),a?"center":"cover"):0===t.indexOf("path://")?wc(t.slice(7),{},new X(e,n,i,r),a?"center":"cover"):new Xm({shape:{symbolType:t,x:e,y:n,width:i,height:r}})).__isEmptyBrush=s,a.setColor=Ym,o&&a.setColor(o),a}function Zm(t,e){if(null!=t)return F(t)||(t=[t,t]),[So(t[0],e[0])||0,So(W(t[1],t[0]),e[1])||0]}function jm(t){return isFinite(t)}function Km(t,e,n){for(var i,r,o,a,s,l,u,h,c,p="radial"===e.type?(i=t,r=e,a=(o=n).width,s=o.height,l=Math.min(a,s),u=null==r.x?.5:r.x,h=null==r.y?.5:r.y,c=null==r.r?.5:r.r,r.global||(u=u*a+o.x,h=h*s+o.y,c*=l),u=jm(u)?u:.5,h=jm(h)?h:.5,c=0<=c&&jm(c)?c:.5,i.createRadialGradient(u,h,0,u,h,c)):(r=t,a=n,o=null==(s=e).x?0:s.x,l=null==s.x2?1:s.x2,i=null==s.y?0:s.y,u=null==s.y2?0:s.y2,s.global||(o=o*a.width+a.x,l=l*a.width+a.x,i=i*a.height+a.y,u=u*a.height+a.y),o=jm(o)?o:0,l=jm(l)?l:1,i=jm(i)?i:0,u=jm(u)?u:0,r.createLinearGradient(o,i,l,u)),d=e.colorStops,f=0;f<d.length;f++)p.addColorStop(d[f].offset,d[f].color);return p}function $m(t){return parseInt(t,10)}function Qm(t,e,n){var i=["width","height"][e],r=["clientWidth","clientHeight"][e],o=["paddingLeft","paddingTop"][e],e=["paddingRight","paddingBottom"][e];return null!=n[i]&&"auto"!==n[i]?parseFloat(n[i]):(n=document.defaultView.getComputedStyle(t),(t[r]||$m(n[i])||$m(t.style[i]))-($m(n[o])||0)-($m(n[e])||0)|0)}function Jm(t){var e,n=t.style,i=n.lineDash&&0<n.lineWidth&&(r=n.lineDash,i=n.lineWidth,r&&"solid"!==r&&0<i?"dashed"===r?[4*i,2*i]:"dotted"===r?[i]:gt(r)?[r]:F(r)?r:null:null),r=n.lineDashOffset;return i&&(e=n.strokeNoScale&&t.getLineScale?t.getLineScale():1)&&1!==e&&(i=E(i,function(t){return t/e}),r/=e),[i,r]}var t0=new Ms(!0);function e0(t){var e=t.stroke;return!(null==e||"none"===e||!(0<t.lineWidth))}function n0(t){return"string"==typeof t&&"none"!==t}function i0(t){t=t.fill;return null!=t&&"none"!==t}function r0(t,e){var n;null!=e.fillOpacity&&1!==e.fillOpacity?(n=t.globalAlpha,t.globalAlpha=e.fillOpacity*e.opacity,t.fill(),t.globalAlpha=n):t.fill()}function o0(t,e){var n;null!=e.strokeOpacity&&1!==e.strokeOpacity?(n=t.globalAlpha,t.globalAlpha=e.strokeOpacity*e.opacity,t.stroke(),t.globalAlpha=n):t.stroke()}function a0(t,e,n){var n=Sa(e.image,e.__image,n);if(Ta(n))return t=t.createPattern(n,e.repeat||"repeat"),"function"==typeof DOMMatrix&&t&&t.setTransform&&((n=new DOMMatrix).translateSelf(e.x||0,e.y||0),n.rotateSelf(0,0,(e.rotation||0)*Wt),n.scaleSelf(e.scaleX||1,e.scaleY||1),t.setTransform(n)),t}var s0=["shadowBlur","shadowOffsetX","shadowOffsetY"],l0=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function u0(t,e,n,i,r){var o,a=!1;if(!i&&e===(n=n||{}))return!1;!i&&e.opacity===n.opacity||(y0(t,r),a=!0,o=Math.max(Math.min(e.opacity,1),0),t.globalAlpha=isNaN(o)?Xa.opacity:o),!i&&e.blend===n.blend||(a||(y0(t,r),a=!0),t.globalCompositeOperation=e.blend||Xa.blend);for(var s=0;s<s0.length;s++){var l=s0[s];!i&&e[l]===n[l]||(a||(y0(t,r),a=!0),t[l]=t.dpr*(e[l]||0))}return!i&&e.shadowColor===n.shadowColor||(a||(y0(t,r),a=!0),t.shadowColor=e.shadowColor||Xa.shadowColor),a}function h0(t,e,n,i,r){var o=m0(e,r.inHover),a=i?null:n&&m0(n,r.inHover)||{};if(o!==a){var s=u0(t,o,a,i,r);(i||o.fill!==a.fill)&&(s||(y0(t,r),s=!0),n0(o.fill))&&(t.fillStyle=o.fill),(i||o.stroke!==a.stroke)&&(s||(y0(t,r),s=!0),n0(o.stroke))&&(t.strokeStyle=o.stroke),!i&&o.opacity===a.opacity||(s||(y0(t,r),s=!0),t.globalAlpha=null==o.opacity?1:o.opacity),e.hasStroke()&&(n=o.lineWidth/(o.strokeNoScale&&e.getLineScale?e.getLineScale():1),t.lineWidth!==n)&&(s||(y0(t,r),s=!0),t.lineWidth=n);for(var l=0;l<l0.length;l++){var u=l0[l],h=u[0];!i&&o[h]===a[h]||(s||(y0(t,r),s=!0),t[h]=o[h]||u[1])}}}function c0(t,e){var e=e.transform,n=t.dpr||1;e?t.setTransform(n*e[0],n*e[1],n*e[2],n*e[3],n*e[4],n*e[5]):t.setTransform(n,0,0,n,0,0)}var p0=1,d0=2,f0=3,g0=4;function y0(t,e){e.batchFill&&t.fill(),e.batchStroke&&t.stroke(),e.batchFill="",e.batchStroke=""}function m0(t,e){return e&&t.__hoverStyle||t.style}function v0(t,e){_0(t,e,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function _0(t,e,n,B){var i=e.transform;if(e.shouldBePainted(n.viewWidth,n.viewHeight,!1,!1)){var r=e.__clipPaths,o=n.prevElClipPaths,a=!1,s=!1;if(!o||function(t,e){if(t!==e&&(t||e)){if(!t||!e||t.length!==e.length)return 1;for(var n=0;n<t.length;n++)if(t[n]!==e[n])return 1}}(r,o)){if(o&&o.length&&(y0(t,n),t.restore(),s=a=!0,n.prevElClipPaths=null,n.allClipped=!1,n.prevEl=null),r&&r.length){y0(t,n),t.save();for(var z=r,l=t,o=n,E=!1,F=0;F<z.length;F++){var V=z[F],E=E||V.isZeroArea();c0(l,V),l.beginPath(),V.buildPath(l,V.shape),l.clip()}o.allClipped=E,a=!0}n.prevElClipPaths=r}if(n.allClipped)e.__isRendered=!1;else{e.beforeBrush&&e.beforeBrush(),e.innerBeforeBrush();var u,h,c,p,d,f,g,y,m,v,_,x,b,H,w,S,M,T,C,k,I,D,A,o=n.prevEl,L=(o||(s=a=!0),e instanceof Ws&&e.autoBatch&&(r=e.style,L=i0(r),u=e0(r),!(r.lineDash||!(+L^+u)||L&&"string"!=typeof r.fill||u&&"string"!=typeof r.stroke||r.strokePercent<1||r.strokeOpacity<1||r.fillOpacity<1))),a=(a||(u=i,r=o.transform,u&&r?u[0]!==r[0]||u[1]!==r[1]||u[2]!==r[2]||u[3]!==r[3]||u[4]!==r[4]||u[5]!==r[5]:u||r)?(y0(t,n),c0(t,e)):L||y0(t,n),m0(e,n.inHover));if(e instanceof Ws)n.lastDrawType!==p0&&(s=!0,n.lastDrawType=p0),h0(t,e,o,s,n),L&&(n.batchFill||n.batchStroke)||t.beginPath(),i=t,r=e,R=L,w=e0(p=a),S=i0(p),M=p.strokePercent,T=M<1,C=!r.path,r.silent&&!T||!C||r.createPathProxy(),k=r.path||t0,I=r.__dirty,R||(d=p.fill,A=p.stroke,f=S&&!!d.colorStops,g=w&&!!A.colorStops,y=S&&!!d.image,m=w&&!!A.image,D=b=x=_=v=void 0,(f||g)&&(D=r.getBoundingRect()),f&&(v=I?Km(i,d,D):r.__canvasFillGradient,r.__canvasFillGradient=v),g&&(_=I?Km(i,A,D):r.__canvasStrokeGradient,r.__canvasStrokeGradient=_),y&&(x=I||!r.__canvasFillPattern?a0(i,d,r):r.__canvasFillPattern,r.__canvasFillPattern=x),m&&(b=I||!r.__canvasStrokePattern?a0(i,A,r):r.__canvasStrokePattern,r.__canvasStrokePattern=b),f?i.fillStyle=v:y&&(x?i.fillStyle=x:S=!1),g?i.strokeStyle=_:m&&(b?i.strokeStyle=b:w=!1)),D=r.getGlobalScale(),k.setScale(D[0],D[1],r.segmentIgnoreThreshold),i.setLineDash&&p.lineDash&&(H=(d=Jm(r))[0],O=d[1]),A=!0,(C||I&Ln)&&(k.setDPR(i.dpr),T?k.setContext(null):(k.setContext(i),A=!1),k.reset(),r.buildPath(k,r.shape,R),k.toStatic(),r.pathUpdated()),A&&k.rebuildPath(i,T?M:1),H&&(i.setLineDash(H),i.lineDashOffset=O),R||(p.strokeFirst?(w&&o0(i,p),S&&r0(i,p)):(S&&r0(i,p),w&&o0(i,p))),H&&i.setLineDash([]),L&&(n.batchFill=a.fill||"",n.batchStroke=a.stroke||"");else if(e instanceof Xs)n.lastDrawType!==f0&&(s=!0,n.lastDrawType=f0),h0(t,e,o,s,n),f=t,v=e,null!=(x=(y=a).text)&&(x+=""),x&&(f.font=y.font||j,f.textAlign=y.textAlign,f.textBaseline=y.textBaseline,_=g=void 0,f.setLineDash&&y.lineDash&&(g=(v=Jm(v))[0],_=v[1]),g&&(f.setLineDash(g),f.lineDashOffset=_),y.strokeFirst?(e0(y)&&f.strokeText(x,y.x,y.y),i0(y)&&f.fillText(x,y.x,y.y)):(i0(y)&&f.fillText(x,y.x,y.y),e0(y)&&f.strokeText(x,y.x,y.y)),g)&&f.setLineDash([]);else if(e instanceof Ks)n.lastDrawType!==d0&&(s=!0,n.lastDrawType=d0),m=o,b=s,u0(t,m0(e,(D=n).inHover),m&&m0(m,D.inHover),b,D),d=t,C=a,(r=(I=e).__image=Sa(C.image,I.__image,I,I.onload))&&Ta(r)&&(A=C.x||0,k=C.y||0,T=I.getWidth(),I=I.getHeight(),M=r.width/r.height,null==T&&null!=I?T=I*M:null==I&&null!=T?I=T/M:null==T&&null==I&&(T=r.width,I=r.height),C.sWidth&&C.sHeight?(h=C.sx||0,c=C.sy||0,d.drawImage(r,h,c,C.sWidth,C.sHeight,A,k,T,I)):C.sx&&C.sy?(h=C.sx,c=C.sy,d.drawImage(r,h,c,T-h,I-c,A,k,T,I)):d.drawImage(r,A,k,T,I));else if(e.getTemporalDisplayables){n.lastDrawType!==g0&&(s=!0,n.lastDrawType=g0);var P,W,G=t,O=e,R=n,U=O.getDisplayables(),X=O.getTemporalDisplayables(),Y=(G.save(),{prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:R.viewWidth,viewHeight:R.viewHeight,inHover:R.inHover});for(P=O.getCursor(),W=U.length;P<W;P++)(N=U[P]).beforeBrush&&N.beforeBrush(),N.innerBeforeBrush(),_0(G,N,Y,P===W-1),N.innerAfterBrush(),N.afterBrush&&N.afterBrush(),Y.prevEl=N;for(var N,q=0,Z=X.length;q<Z;q++)(N=X[q]).beforeBrush&&N.beforeBrush(),N.innerBeforeBrush(),_0(G,N,Y,q===Z-1),N.innerAfterBrush(),N.afterBrush&&N.afterBrush(),Y.prevEl=N;O.clearTemporalDisplayables(),O.notClear=!0,G.restore()}L&&B&&y0(t,n),e.innerAfterBrush(),e.afterBrush&&e.afterBrush(),(n.prevEl=e).__dirty=0,e.__isRendered=!0}}else e.__dirty&=~An,e.__isRendered=!1}var x0=new mp,b0=new di(100),w0=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function S0(t,e){if("none"===t)return null;var a=e.getDevicePixelRatio(),s=e.getZr(),l="svg"===s.painter.type,e=(t.dirty&&x0.delete(t),x0.get(t));if(e)return e;for(var n,u=z(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}),e=("none"===u.backgroundColor&&(u.backgroundColor=null),{repeat:"repeat"}),i=e,r=[a],o=!0,h=0;h<w0.length;++h){var c=u[w0[h]];if(null!=c&&!F(c)&&!V(c)&&!gt(c)&&"boolean"!=typeof c){o=!1;break}r.push(c)}o&&(n=r.join(",")+(l?"-svg":""),v=b0.get(n))&&(l?i.svgElement=v:i.image=v);var p,d=function t(e){if(!e||0===e.length)return[[0,0]];if(gt(e))return[[o=Math.ceil(e),o]];var n=!0;for(var i=0;i<e.length;++i)if(!gt(e[i])){n=!1;break}if(n)return t([e]);var r=[];for(i=0;i<e.length;++i){var o;gt(e[i])?(o=Math.ceil(e[i]),r.push([o,o])):(o=E(e[i],function(t){return Math.ceil(t)})).length%2==1?r.push(o.concat(o)):r.push(o)}return r}(u.dashArrayX),f=function(t){if(!t||"object"==typeof t&&0===t.length)return[0,0];if(gt(t))return[e=Math.ceil(t),e];var e=E(t,function(t){return Math.ceil(t)});return t.length%2?e.concat(e):e}(u.dashArrayY),g=function t(e){if(!e||0===e.length)return[["rect"]];if(V(e))return[[e]];var n=!0;for(var i=0;i<e.length;++i)if(!V(e[i])){n=!1;break}if(n)return t([e]);var r=[];for(i=0;i<e.length;++i)V(e[i])?r.push([e[i]]):r.push(e[i]);return r}(u.symbol),y=function(t){return E(t,M0)}(d),m=M0(f),v=!l&&U.createCanvas(),_=l&&{tag:"g",attrs:{},key:"dcl",children:[]},x=function(){for(var t=1,e=0,n=y.length;e<n;++e)t=Fo(t,y[e]);for(var i=1,e=0,n=g.length;e<n;++e)i=Fo(i,g[e].length);t*=i;var r=m*y.length*g.length;return{width:Math.max(1,Math.min(t,u.maxTileWidth)),height:Math.max(1,Math.min(r,u.maxTileHeight))}}();v&&(v.width=x.width*a,v.height=x.height*a,p=v.getContext("2d")),p&&(p.clearRect(0,0,v.width,v.height),u.backgroundColor)&&(p.fillStyle=u.backgroundColor,p.fillRect(0,0,v.width,v.height));for(var b=0,w=0;w<f.length;++w)b+=f[w];if(!(b<=0))for(var S=-m,M=0,T=0,C=0;S<x.height;){if(M%2==0){for(var k=T/2%g.length,I=0,D=0,A=0;I<2*x.width;){for(var L,P,O,R,N,B=0,w=0;w<d[C].length;++w)B+=d[C][w];if(B<=0)break;D%2==0&&(P=.5*(1-u.symbolSize),L=I+d[C][D]*P,P=S+f[M]*P,O=d[C][D]*u.symbolSize,R=f[M]*u.symbolSize,N=A/2%g[k].length,function(t,e,n,i,r){var o=l?1:a,r=qm(r,t*o,e*o,n*o,i*o,u.color,u.symbolKeepAspect);l?(t=s.painter.renderOneToVNode(r))&&_.children.push(t):v0(p,r)}(L,P,O,R,g[k][N])),I+=d[C][D],++A,++D===d[C].length&&(D=0)}++C===d.length&&(C=0)}S+=f[M],++T,++M===f.length&&(M=0)}return o&&b0.put(n,v||_),i.image=v,i.svgElement=_,i.svgWidth=x.width,i.svgHeight=x.height,e.rotation=u.rotation,e.scaleX=e.scaleY=l?1:1/a,x0.set(t,e),t.dirty=!1,e}function M0(t){for(var e=0,n=0;n<t.length;++n)e+=t[n];return t.length%2==1?2*e:e}var T0=new ce,C0={};var Vm={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}},k0="__flagInMainProcess",I0="__mainProcessVersion",D0="__pendingUpdate",A0="__needsUpdateStatus",L0=/^[a-zA-Z0-9_]+$/,P0="__connectUpdateStatus";function O0(n){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(!this.isDisposed())return N0(this,n,t);this.id}}function R0(n){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return N0(this,n,t)}}function N0(t,e,n){return n[0]=n[0]&&n[0].toLowerCase(),ce.prototype[e].apply(t,n)}u(E0,B0=ce);var B0,z0=E0;function E0(){return null!==B0&&B0.apply(this,arguments)||this}var F0,V0,H0,W0,G0,U0,X0,Y0,q0,Z0,j0,K0,$0,Q0,J0,tv,ev,nv,iv,rv,Hm=z0.prototype,ov=(Hm.on=R0("on"),Hm.off=R0("off"),u(p,rv=ce),p.prototype._onframe=function(){if(!this._disposed){nv(this);var t=this._scheduler;if(this[D0]){var e=this[D0].silent;this[k0]=!0,iv(this);try{F0(this),W0.update.call(this,null,this[D0].updateParams)}catch(t){throw this[k0]=!1,this[D0]=null,t}this._zr.flush(),this[k0]=!1,this[D0]=null,Y0.call(this,e),q0.call(this,e)}else if(t.unfinished){var n=1,i=this._model,r=this._api;t.unfinished=!1;do{var o=+new Date}while(t.performSeriesTasks(i),t.performDataProcessorTasks(i),U0(this,i),t.performVisualTasks(i),Q0(this,this._model,r,"remain",{}),0<(n-=+new Date-o)&&t.unfinished);t.unfinished||this._zr.flush()}}},p.prototype.getDom=function(){return this._dom},p.prototype.getId=function(){return this.id},p.prototype.getZr=function(){return this._zr},p.prototype.isSSR=function(){return this._ssr},p.prototype.setOption=function(t,e,n){if(!this[k0])if(this._disposed)this.id;else{H(e)&&(n=e.lazyUpdate,i=e.silent,r=e.replaceMerge,o=e.transition,e=e.notMerge),this[k0]=!0,iv(this),this._model&&!e||(e=new Cf(this._api),a=this._theme,(s=this._model=new _f).scheduler=this._scheduler,s.ssr=this._ssr,s.init(null,null,null,a,this._locale,e)),this._model.setOption(t,{replaceMerge:r},yv);var i,r,o,a,s={seriesTransition:o,optionChanged:!0};if(n)this[D0]={silent:i,updateParams:s},this[k0]=!1,this.getZr().wakeUp();else{try{F0(this),W0.update.call(this,null,s)}catch(t){throw this[D0]=null,this[k0]=!1,t}this._ssr||this._zr.flush(),this[D0]=null,this[k0]=!1,Y0.call(this,i),q0.call(this,i)}}},p.prototype.setTheme=function(t,e){if(!this[k0])if(this._disposed)this.id;else{var n=this._model;if(n){var e=e&&e.silent,i=null;this[D0]&&(null==e&&(e=this[D0].silent),i=this[D0].updateParams,this[D0]=null),this[k0]=!0,iv(this);try{this._updateTheme(t),n.setTheme(this._theme),F0(this),W0.update.call(this,{type:"setTheme"},i)}catch(t){throw this[k0]=!1,t}this[k0]=!1,Y0.call(this,e),q0.call(this,e)}}},p.prototype._updateTheme=function(t){(t=V(t)?vv[t]:t)&&((t=y(t))&&Yf(t,!0),this._theme=t)},p.prototype.getModel=function(){return this._model},p.prototype.getOption=function(){return this._model&&this._model.getOption()},p.prototype.getWidth=function(){return this._zr.getWidth()},p.prototype.getHeight=function(){return this._zr.getHeight()},p.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||w.hasGlobalWindow&&window.devicePixelRatio||1},p.prototype.getRenderedCanvas=function(t){return this.renderToCanvas(t)},p.prototype.renderToCanvas=function(t){return this._zr.painter.getRenderedCanvas({backgroundColor:(t=t||{}).backgroundColor||this._model.get("backgroundColor"),pixelRatio:t.pixelRatio||this.getDevicePixelRatio()})},p.prototype.renderToSVGString=function(t){return this._zr.painter.renderToString({useViewBox:(t=t||{}).useViewBox})},p.prototype.getSvgDataURL=function(){var t=this._zr;return N(t.storage.getDisplayList(),function(t){t.stopAnimation(null,!0)}),t.painter.toDataURL()},p.prototype.getDataURL=function(t){var e,n,i,r;if(!this._disposed)return r=(t=t||{}).excludeComponents,e=this._model,n=[],i=this,N(r,function(t){e.eachComponent({mainType:t},function(t){t=i._componentsMap[t.__viewId];t.group.ignore||(n.push(t),t.group.ignore=!0)})}),r="svg"===this._zr.painter.getType()?this.getSvgDataURL():this.renderToCanvas(t).toDataURL("image/"+(t&&t.type||"png")),N(n,function(t){t.group.ignore=!1}),r;this.id},p.prototype.getConnectedDataURL=function(i){var r,o,a,s,l,u,h,c,p,e,t,n,d,f,g;if(!this._disposed)return r="svg"===i.type,o=this.group,a=Math.min,s=Math.max,bv[o]?(u=l=1/0,c=h=-1/0,p=[],e=i&&i.pixelRatio||this.getDevicePixelRatio(),N(xv,function(t,e){var n;t.group===o&&(n=r?t.getZr().painter.getSvgDom().innerHTML:t.renderToCanvas(y(i)),t=t.getDom().getBoundingClientRect(),l=a(t.left,l),u=a(t.top,u),h=s(t.right,h),c=s(t.bottom,c),p.push({dom:n,left:t.left,top:t.top}))}),t=(h*=e)-(l*=e),n=(c*=e)-(u*=e),d=U.createCanvas(),(f=fo(d,{renderer:r?"svg":"canvas"})).resize({width:t,height:n}),r?(g="",N(p,function(t){var e=t.left-l,n=t.top-u;g+='<g transform="translate('+e+","+n+')">'+t.dom+"</g>"}),f.painter.getSvgRoot().innerHTML=g,i.connectedBackgroundColor&&f.painter.setBackgroundColor(i.connectedBackgroundColor),f.refreshImmediately(),f.painter.toDataURL()):(i.connectedBackgroundColor&&f.add(new ol({shape:{x:0,y:0,width:t,height:n},style:{fill:i.connectedBackgroundColor}})),N(p,function(t){t=new Ks({style:{x:t.left*e-l,y:t.top*e-u,image:t.dom}});f.add(t)}),f.refreshImmediately(),d.toDataURL("image/"+(i&&i.type||"png")))):this.getDataURL(i);this.id},p.prototype.convertToPixel=function(t,e,n){return G0(this,"convertToPixel",t,e,n)},p.prototype.convertToLayout=function(t,e,n){return G0(this,"convertToLayout",t,e,n)},p.prototype.convertFromPixel=function(t,e,n){return G0(this,"convertFromPixel",t,e,n)},p.prototype.containPixel=function(t,i){var r;if(!this._disposed)return N(na(this._model,t),function(t,n){0<=n.indexOf("Models")&&N(t,function(t){var e=t.coordinateSystem;e&&e.containPoint?r=r||!!e.containPoint(i):"seriesModels"===n&&(e=this._chartsMap[t.__viewId])&&e.containPoint&&(r=r||e.containPoint(i,t))},this)},this),!!r;this.id},p.prototype.getVisual=function(t,e){var t=na(this._model,t,{defaultMainType:"series"}),n=t.seriesModel.getData(),t=t.hasOwnProperty("dataIndexInside")?t.dataIndexInside:t.hasOwnProperty("dataIndex")?n.indexOfRawIndex(t.dataIndex):null;if(null!=t){var i=n,r=t,o=e;switch(o){case"color":return i.getItemVisual(r,"style")[i.getVisual("drawType")];case"opacity":return i.getItemVisual(r,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return i.getItemVisual(r,o)}}else{var a=n,s=e;switch(s){case"color":return a.getVisual("style")[a.getVisual("drawType")];case"opacity":return a.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return a.getVisual(s)}}},p.prototype.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},p.prototype.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]},p.prototype._initEvents=function(){var n,i,s=this,r=(N(cv,function(a){function t(t){var n,e,i,r=s.getModel(),o=t.target;"globalout"===a?n={}:o&&Nm(o,function(t){var e,t=G(t);return t&&null!=t.dataIndex?(e=t.dataModel||r.getSeriesByIndex(t.seriesIndex),n=e&&e.getDataParams(t.dataIndex,t.dataType,o)||{},1):t.eventData&&(n=P({},t.eventData),1)},!0),n&&(e=n.componentType,i=n.componentIndex,"markLine"!==e&&"markPoint"!==e&&"markArea"!==e||(e="series",i=n.seriesIndex),i=(e=e&&null!=i&&r.getComponent(e,i))&&s["series"===e.mainType?"_chartsMap":"_componentsMap"][e.__viewId],n.event=t,n.type=a,s._$eventProcessor.eventInfo={targetEl:o,packedEvent:n,model:e,view:i},s.trigger(a,n))}t.zrEventfulCallAtLast=!0,s._zr.on(a,t,s)}),this._messageCenter);N(fv,function(t,e){r.on(e,function(t){s.trigger(e,t)})}),i=(n=this)._api,r.on("selectchanged",function(t){var e=i.getModel();t.isFromClick?(Rm("map","selectchanged",n,e,t),Rm("pie","selectchanged",n,e,t)):"select"===t.fromAction?(Rm("map","selected",n,e,t),Rm("pie","selected",n,e,t)):"unselect"===t.fromAction&&(Rm("map","unselected",n,e,t),Rm("pie","unselected",n,e,t))})},p.prototype.isDisposed=function(){return this._disposed},p.prototype.clear=function(){this._disposed?this.id:this.setOption({series:[]},!0)},p.prototype.dispose=function(){var t,e,n;this._disposed?this.id:(this._disposed=!0,this.getDom()&&aa(this.getDom(),Mv,""),e=(t=this)._api,n=t._model,N(t._componentsViews,function(t){t.dispose(n,e)}),N(t._chartsViews,function(t){t.dispose(n,e)}),t._zr.dispose(),t._dom=t._model=t._chartsMap=t._componentsMap=t._chartsViews=t._componentsViews=t._scheduler=t._api=t._zr=t._throttledZrFlush=t._theme=t._coordSysMgr=t._messageCenter=null,delete xv[t.id])},p.prototype.resize=function(t){if(!this[k0])if(this._disposed)this.id;else{this._zr.resize(t);var e=this._model;if(this._loadingFX&&this._loadingFX.resize(),e){var e=e.resetOption("media"),n=t&&t.silent;this[D0]&&(null==n&&(n=this[D0].silent),e=!0,this[D0]=null),this[k0]=!0,iv(this);try{e&&F0(this),W0.update.call(this,{type:"resize",animation:P({duration:0},t&&t.animation)})}catch(t){throw this[k0]=!1,t}this[k0]=!1,Y0.call(this,n),q0.call(this,n)}}},p.prototype.showLoading=function(t,e){this._disposed?this.id:(H(t)&&(e=t,t=""),t=t||"default",this.hideLoading(),_v[t]&&(t=_v[t](this._api,e),e=this._zr,this._loadingFX=t,e.add(t)))},p.prototype.hideLoading=function(){this._disposed?this.id:(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},p.prototype.makeActionFromEvent=function(t){var e=P({},t);return e.type=dv[t.type],e},p.prototype.dispatchAction=function(t,e){var n;this._disposed?this.id:(H(e)||(e={silent:!!e}),pv[t.type]&&this._model&&(this[k0]?this._pendingActions.push(t):(n=e.silent,X0.call(this,t,n),(t=e.flush)?this._zr.flush():!1!==t&&w.browser.weChat&&this._throttledZrFlush(),Y0.call(this,n),q0.call(this,n))))},p.prototype.updateLabelLayout=function(){T0.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},p.prototype.appendData=function(t){var e;this._disposed?this.id:(e=t.seriesIndex,this.getModel().getSeriesByIndex(e).appendData(t),this._scheduler.unfinished=!0,this.getZr().wakeUp())},p.internalField=(F0=function(t){var e=t._scheduler;e.restorePipelines(t._model),e.prepareStageTasks(),V0(t,!0),V0(t,!1),e.plan()},V0=function(t,r){for(var o=t._model,a=t._scheduler,s=r?t._componentsViews:t._chartsViews,l=r?t._componentsMap:t._chartsMap,u=t._zr,h=t._api,e=0;e<s.length;e++)s[e].__alive=!1;function n(t){var e,n=t.__requireNewView,i=(t.__requireNewView=!1,"_ec_"+t.id+"_"+t.type),n=!n&&l[i];n||(e=ca(t.type),(n=new(r?Gy.getClass(e.main,e.sub):Zy.getClass(e.sub))).init(o,h),l[i]=n,s.push(n),u.add(n.group)),t.__viewId=n.__id=i,n.__alive=!0,n.__model=t,n.group.__ecComponentInfo={mainType:t.mainType,index:t.componentIndex},r||a.prepareView(n,t,o,h)}r?o.eachComponent(function(t,e){"series"!==t&&n(e)}):o.eachSeries(n);for(e=0;e<s.length;){var i=s[e];i.__alive?e++:(r||i.renderTask.dispose(),u.remove(i.group),i.dispose(o,h),s.splice(e,1),l[i.__id]===i&&delete l[i.__id],i.__id=i.group.__ecComponentInfo=null)}},H0=function(c,e,p,n,t){var i,d,r=c._model;function o(t){t&&t.__alive&&t[e]&&t[e](t.__model,r,c._api,p)}r.setUpdatePayload(p),n?((i={})[n+"Id"]=p[n+"Id"],i[n+"Index"]=p[n+"Index"],i[n+"Name"]=p[n+"Name"],i={mainType:n,query:i},t&&(i.subType=t),null!=(t=p.excludeSeriesId)&&(d=O(),N(Wo(t),function(t){t=jo(t,null);null!=t&&d.set(t,!0)})),r&&r.eachComponent(i,function(t){var e,n,i=d&&null!=d.get(t.id);if(!i)if(_u(p))if(t instanceof Ny){if(p.type===Pl&&!p.notBlur&&!t.get(["emphasis","disabled"])){var i=t,r=p,o=c._api,a=i.seriesIndex,s=i.getData(r.dataType);if(s){var r=(F(r=Jo(s,r))?r[0]:r)||0,l=s.getItemGraphicEl(r);if(!l)for(var u=s.count(),h=0;!l&&h<u;)l=s.getItemGraphicEl(h++);l?su(a,(r=G(l)).focus,r.blurScope,o):(r=i.get(["emphasis","focus"]),i=i.get(["emphasis","blurScope"]),null!=r&&su(a,r,i,o))}}}else{a=uu(t.mainType,t.componentIndex,p.name,c._api),r=a.focusSelf,i=a.dispatchers;p.type===Pl&&r&&!p.notBlur&&lu(t.mainType,t.componentIndex,c._api),i&&N(i,function(t){(p.type===Pl?tu:eu)(t)})}else vu(p)&&t instanceof Ny&&(o=t,i=p,c._api,vu(i)&&(e=i.dataType,F(n=Jo(o.getData(e),i))||(n=[n]),o[i.type===Bl?"toggleSelect":i.type===Rl?"select":"unselect"](n,e)),hu(t),ev(c))},c),r&&r.eachComponent(i,function(t){d&&null!=d.get(t.id)||o(c["series"===n?"_chartsMap":"_componentsMap"][t.__viewId])},c)):N([].concat(c._componentsViews).concat(c._chartsViews),o)},W0={prepareAndUpdate:function(t){F0(this),W0.update.call(this,t,t&&{optionChanged:null!=t.newOption})},update:function(t,e){var n=this._model,i=this._api,r=this._zr,o=this._coordSysMgr,a=this._scheduler;n&&(n.setUpdatePayload(t),a.restoreData(n,t),a.performSeriesTasks(n),o.create(n,i),a.performDataProcessorTasks(n,t),U0(this,n),o.update(n,i),av(n),a.performVisualTasks(n,t),o=n.get("backgroundColor")||"transparent",r.setBackgroundColor(o),null!=(a=n.get("darkMode"))&&"auto"!==a&&r.setDarkMode(a),K0(this,n,i,t,e),T0.trigger("afterupdate",n,i))},updateTransform:function(n){var i,r,o=this,a=this._model,s=this._api;a&&(a.setUpdatePayload(n),i=[],a.eachComponent(function(t,e){"series"!==t&&(t=o.getViewOfComponentModel(e))&&t.__alive&&(!t.updateTransform||(e=t.updateTransform(e,a,s,n))&&e.update)&&i.push(t)}),r=O(),a.eachSeries(function(t){var e=o._chartsMap[t.__viewId];(!e.updateTransform||(e=e.updateTransform(t,a,s,n))&&e.update)&&r.set(t.uid,1)}),av(a),this._scheduler.performVisualTasks(a,n,{setDirty:!0,dirtyMap:r}),Q0(this,a,s,n,{},r),T0.trigger("afterupdate",a,s))},updateView:function(t){var e=this._model;e&&(e.setUpdatePayload(t),Zy.markUpdateMethod(t,"updateView"),av(e),this._scheduler.performVisualTasks(e,t,{setDirty:!0}),K0(this,e,this._api,t,{}),T0.trigger("afterupdate",e,this._api))},updateVisual:function(n){var i=this,r=this._model;r&&(r.setUpdatePayload(n),r.eachSeries(function(t){t.getData().clearAllVisual()}),Zy.markUpdateMethod(n,"updateVisual"),av(r),this._scheduler.performVisualTasks(r,n,{visualType:"visual",setDirty:!0}),r.eachComponent(function(t,e){"series"!==t&&(t=i.getViewOfComponentModel(e))&&t.__alive&&t.updateVisual(e,r,i._api,n)}),r.eachSeries(function(t){i._chartsMap[t.__viewId].updateVisual(t,r,i._api,n)}),T0.trigger("afterupdate",r,this._api))},updateLayout:function(t){W0.update.call(this,t)}},G0=function(t,e,n,i,r){if(t._disposed)t.id;else for(var o=t._model,a=t._coordSysMgr.getCoordinateSystems(),s=na(o,n),l=0;l<a.length;l++){var u=a[l];if(u[e]&&null!=(u=u[e](o,s,i,r)))return u}},U0=function(t,e){var n=t._chartsMap,i=t._scheduler;e.eachSeries(function(t){i.updateStreamModes(t,n[t.__viewId])})},X0=function(i,t){var r,o=this,a=this.getModel(),e=i.type,n=i.escapeConnect,s=pv[e],e=(s.update||"update").split(":"),l=e.pop(),u=null!=e[0]&&ca(e[0]),e=(this[k0]=!0,iv(this),[i]),h=!1,c=(i.batch&&(h=!0,e=E(i.batch,function(t){return(t=z(P({},t),i)).batch=null,t})),[]),p=[],d=s.nonRefinedEventType,f=vu(i),g=_u(i);if(g&&au(this._api),N(e,function(t){var e,n=s.action(t,a,o._api);s.refineEvent?p.push(n):r=n,(r=r||P({},t)).type=d,c.push(r),g?(e=(n=ia(i)).queryOptionMap,n=n.mainTypeSpecified?e.keys()[0]:"series",H0(o,l,t,n),ev(o)):f?(H0(o,l,t,"series"),ev(o)):u&&H0(o,l,t,u.main,u.sub)}),"none"!==l&&!g&&!f&&!u)try{this[D0]?(F0(this),W0.update.call(this,i),this[D0]=null):W0[l].call(this,i)}catch(t){throw this[k0]=!1,t}r=h?{type:d,escapeConnect:n,batch:c}:c[0],this[k0]=!1,t||(e=void 0,s.refineEvent&&(kt(H(h=s.refineEvent(p,i,a,this._api).eventContent)),(e=z({type:s.refinedEventType},h)).fromAction=i.type,e.fromActionPayload=i,e.escapeConnect=!0),(n=this._messageCenter).trigger(r.type,r),e&&n.trigger(e.type,e))},Y0=function(t){for(var e=this._pendingActions;e.length;){var n=e.shift();X0.call(this,n,t)}},q0=function(t){t||this.trigger("updated")},Z0=function(e,n){e.on("rendered",function(t){n.trigger("rendered",t),!e.animation.isFinished()||n[D0]||n._scheduler.unfinished||n._pendingActions.length||n.trigger("finished")})},j0=function(t,a){t.on("mouseover",function(t){var e,n,i,r,o=Nm(t.target,mu);o&&(o=o,e=t,t=a._api,n=G(o),i=(r=uu(n.componentMainType,n.componentIndex,n.componentHighDownName,t)).dispatchers,r=r.focusSelf,i?(r&&lu(n.componentMainType,n.componentIndex,t),N(i,function(t){return Ql(t,e)})):(su(n.seriesIndex,n.focus,n.blurScope,t),"self"===n.focus&&lu(n.componentMainType,n.componentIndex,t),Ql(o,e)),ev(a))}).on("mouseout",function(t){var e,n,i=Nm(t.target,mu);i&&(i=i,e=t,au(t=a._api),(n=uu((n=G(i)).componentMainType,n.componentIndex,n.componentHighDownName,t).dispatchers)?N(n,function(t){return Jl(t,e)}):Jl(i,e),ev(a))}).on("click",function(t){var e,t=Nm(t.target,function(t){return null!=G(t).dataIndex},!0);t&&(e=t.selected?"unselect":"select",t=G(t),a._api.dispatchAction({type:e,dataType:t.dataType,dataIndexInside:t.dataIndex,seriesIndex:t.seriesIndex,isFromClick:!0}))})},K0=function(t,e,n,i,r){var o,a,s,l,u,h,c;u=[],c=!(h=[]),(o=e).eachComponent(function(t,e){var n=e.get("zlevel")||0,i=e.get("z")||0,r=e.getZLevelKey();c=c||!!r,("series"===t?h:u).push({zlevel:n,z:i,idx:e.componentIndex,type:t,key:r})}),c&&(Dn(a=u.concat(h),function(t,e){return t.zlevel===e.zlevel?t.z-e.z:t.zlevel-e.zlevel}),N(a,function(t){var e=o.getComponent(t.type,t.idx),n=t.zlevel,t=t.key;null!=s&&(n=Math.max(s,n)),t?(n===s&&t!==l&&n++,l=t):l&&(n===s&&n++,l=""),s=n,e.setZLevel(n)})),$0(t,e,n,i,r),N(t._chartsViews,function(t){t.__alive=!1}),Q0(t,e,n,i,r),N(t._chartsViews,function(t){t.__alive||t.remove(e,n)})},$0=function(t,n,i,r,e,o){N(o||t._componentsViews,function(t){var e=t.__model;uv(0,t),t.render(e,n,i,r),lv(e,t),hv(e,t)})},Q0=function(r,t,e,o,n,a){var i,s,l,u,h=r._scheduler,c=(n=P(n||{},{updatedSeries:t.getSeries()}),T0.trigger("series:beforeupdate",t,e,n),!1);t.eachSeries(function(t){var e,n=r._chartsMap[t.__viewId],i=(n.__alive=!0,n.renderTask);h.updatePayload(i,o),uv(0,n),a&&a.get(t.uid)&&i.dirty(),i.perform(h.getPerformArgs(i))&&(c=!0),n.group.silent=!!t.get("silent"),i=n,e=t.get("blendMode")||null,i.eachRendered(function(t){t.isGroup||(t.style.blend=e)}),hu(t)}),h.unfinished=c||h.unfinished,T0.trigger("series:layoutlabels",t,e,n),T0.trigger("series:transition",t,e,n),t.eachSeries(function(t){var e=r._chartsMap[t.__viewId];lv(t,e),hv(t,e)}),s=t,l=(i=r)._zr.storage,u=0,l.traverse(function(t){t.isGroup||u++}),u>s.get("hoverLayerThreshold")&&!w.node&&!w.worker&&s.eachSeries(function(t){t.preventUsingHoverLayer||(t=i._chartsMap[t.__viewId]).__alive&&t.eachRendered(function(t){t.states.emphasis&&(t.states.emphasis.hoverLayer=!0)})}),T0.trigger("series:afterupdate",t,e,n)},ev=function(t){t[A0]=!0,t.getZr().wakeUp()},iv=function(t){t[I0]=(t[I0]+1)%1e3},nv=function(t){t[A0]&&(t.getZr().storage.traverse(function(t){cc(t)||sv(t)}),t[A0]=!1)},J0=function(n){return u(t,e=Sf),t.prototype.getCoordinateSystems=function(){return n._coordSysMgr.getCoordinateSystems()},t.prototype.getComponentByElement=function(t){for(;t;){var e=t.__ecComponentInfo;if(null!=e)return n._model.getComponent(e.mainType,e.index);t=t.parent}},t.prototype.enterEmphasis=function(t,e){tu(t,e),ev(n)},t.prototype.leaveEmphasis=function(t,e){eu(t,e),ev(n)},t.prototype.enterBlur=function(t){ql(t,Wl),ev(n)},t.prototype.leaveBlur=function(t){nu(t),ev(n)},t.prototype.enterSelect=function(t){iu(t),ev(n)},t.prototype.leaveSelect=function(t){ru(t),ev(n)},t.prototype.getModel=function(){return n.getModel()},t.prototype.getViewOfComponentModel=function(t){return n.getViewOfComponentModel(t)},t.prototype.getViewOfSeriesModel=function(t){return n.getViewOfSeriesModel(t)},t.prototype.getMainProcessVersion=function(){return n[I0]},new t(n);function t(){return null!==e&&e.apply(this,arguments)||this}var e},void(tv=function(i){function r(t,e){for(var n=0;n<t.length;n++)t[n][P0]=e}N(dv,function(t,e){i._messageCenter.on(e,function(t){var e,n;!bv[i.group]||0===i[P0]||t&&t.escapeConnect||(e=i.makeActionFromEvent(t),n=[],N(xv,function(t){t!==i&&t.group===i.group&&n.push(t)}),r(n,0),N(n,function(t){1!==t[P0]&&t.dispatchAction(e)}),r(n,2))})})})),p);function p(t,e,n){var i=rv.call(this,new Am)||this,t=(i._chartsViews=[],i._chartsMap={},i._componentsViews=[],i._componentsMap={},i._pendingActions=[],n=n||{},i._dom=t,i[I0]=1,n.ssr&&yo(function(t){var e,t=G(t),n=t.dataIndex;if(null!=n)return(e=O()).set("series_index",t.seriesIndex),e.set("data_index",n),t.ssrType&&e.set("ssr_type",t.ssrType),e}),i._zr=fo(t,{renderer:n.renderer||"canvas",devicePixelRatio:n.devicePixelRatio,width:n.width,height:n.height,ssr:n.ssr,useDirtyRect:W(n.useDirtyRect,!1),useCoarsePointer:W(n.useCoarsePointer,"auto"),pointerSize:n.pointerSize})),n=(i._ssr=n.ssr,i._throttledZrFlush=rm(pt(t.flush,t),17),i._updateTheme(e),i._locale=V(e=n.locale||Lp)?(n=Dp[e.toUpperCase()]||{},e===Cp||e===kp?y(n):d(y(n),y(Dp[Ip]),!1)):d(y(e),y(Dp[Ip]),!1),i._coordSysMgr=new xd,i._api=J0(i));function r(t,e){return t.__prio-e.__prio}return Dn(mv,r),Dn(gv,r),i._scheduler=new fm(i,n,gv,mv),i._messageCenter=new z0,i._initEvents(),i.resize=pt(i.resize,i),t.animation.on("frame",i._onframe,i),Z0(t,i),j0(t,i),At(i),i}function av(t){t.clearColorPalette(),t.eachSeries(function(t){t.clearColorPalette()})}function sv(t){for(var e=[],n=t.currentStates,i=0;i<n.length;i++){var r=n[i];"emphasis"!==r&&"blur"!==r&&"select"!==r&&e.push(r)}t.selected&&t.states.select&&e.push("select"),t.hoverState===Dl&&t.states.emphasis?e.push("emphasis"):t.hoverState===Il&&t.states.blur&&e.push("blur"),t.useStates(e)}function lv(t,e){var n;t.preventAutoZ||(n=Yc(t),e.eachRendered(function(t){return qc(t,n.z,n.zlevel),!0}))}function uv(t,e){e.eachRendered(function(t){var e,n;cc(t)||(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 hv(t,e){var n=t.getModel("stateAnimation"),r=t.isAnimationEnabled(),t=n.get("duration"),o=0<t?{duration:t,delay:n.get("delay"),easing:n.get("easing")}:null;e.eachRendered(function(t){var e,n,i;t.states&&t.states.emphasis&&(cc(t)||(t instanceof Ws&&((i=Tl(n=t)).normalFill=n.style.fill,i.normalStroke=n.style.stroke,n=n.states.select||{},i.selectFill=n.style&&n.style.fill||null,i.selectStroke=n.style&&n.style.stroke||null),t.__dirty&&(i=t.prevStates)&&t.useStates(i),r&&(t.stateTransition=o,n=t.getTextContent(),e=t.getTextGuideLine(),n&&(n.stateTransition=o),e)&&(e.stateTransition=o),t.__dirty&&sv(t)))})}var Wm=ov.prototype,cv=(Wm.on=O0("on"),Wm.off=O0("off"),Wm.one=function(i,r,t){var o=this;this.on.call(this,i,function t(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];r&&r.apply&&r.apply(this,e),o.off(i,t)},t)},["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"]);var pv={},dv={},fv={},gv=[],yv=[],mv=[],vv={},_v={},xv={},bv={},wv=+new Date,Sv=+new Date,Mv="_echarts_instance_";function Tv(t){bv[t]=!1}Fm=Tv;function Cv(t){return xv[e=Mv,(t=t).getAttribute?t.getAttribute(e):t[e]];var e}function kv(t,e){vv[t]=e}function Iv(t){I(yv,t)<0&&yv.push(t)}function Dv(t,e){Ev(gv,t,e,2e3)}function Av(t){Pv("afterinit",t)}function Lv(t){Pv("afterupdate",t)}function Pv(t,e){T0.on(t,e)}function Ov(t,e,n){var i,r,o,a;function s(t){return t.toLowerCase()}B(e)&&(n=e,e=""),H(t)?(i=t.type,l=t.event,o=t.update,a=t.publishNonRefinedEvent,n=n||t.action,r=t.refineEvent):(i=t,l=e);var l=s(l||i),t=r?s(i):l;pv[i]||(kt(L0.test(i)&&L0.test(l)),r&&kt(l!==i),pv[i]={actionType:i,refinedEventType:l,nonRefinedEventType:t,update:o,action:n,refineEvent:r},fv[l]=1,r&&a&&(fv[t]=1),dv[t]=i)}function Rv(t,e){xd.register(t,e)}function Nv(t,e){Ev(mv,t,e,1e3,"layout")}function Bv(t,e){Ev(mv,t,e,3e3,"visual")}var zv=[];function Ev(t,e,n,i,r){(B(e)||H(e))&&(n=e,e=i),0<=I(zv,n)||(zv.push(n),(i=fm.wrapStageHandler(n,r)).__prio=e,i.__raw=n,t.push(i))}function Fv(t,e){_v[t]=e}function Vv(t,e,n){var i=C0.registerMap;i&&i(t,e,n)}function Hv(t){var e=(t=y(t)).type,n=(e||f(""),e.split(":")),i=(2!==n.length&&f(""),!1);"echarts"===n[0]&&(e=n[1],i=!0),t.__isBuiltIn=i,$g.set(e,t)}function Wv(t,e,n,i){return{eventContent:{selected:(r=[],n.eachSeries(function(n){N(n.getAllData(),function(t){t.data;var t=t.type,e=n.getSelectedDataIndices();0<e.length&&(e={dataIndex:e,seriesIndex:n.seriesIndex},null!=t&&(e.dataType=t),r.push(e))})}),r),isFromClick:e.isFromClick||!1}};var r}Bv(2e3,xa),Bv(4500,gp),Bv(4500,Vp),Bv(2e3,Ic),Bv(4500,_p),Bv(7e3,function(e,i){e.eachRawSeries(function(t){var n;!e.isSeriesFiltered(t)&&((n=t.getData()).hasItemVisual()&&n.each(function(t){var e=n.getItemVisual(t,"decal");e&&(n.ensureUniqueItemVisual(t,"style").decal=S0(e,i))}),t=n.getVisual("decal"))&&(n.getVisual("style").decal=S0(t,i))})}),Iv(Yf),Dv(900,function(t){var i=O();t.eachSeries(function(t){var e,n=t.get("stack");n&&(n=i.get(n)||i.set(n,[]),(e={stackResultDimension:(e=t.getData()).getCalculationInfo("stackResultDimension"),stackedOverDimension:e.getCalculationInfo("stackedOverDimension"),stackedDimension:e.getCalculationInfo("stackedDimension"),stackedByDimension:e.getCalculationInfo("stackedByDimension"),isStackedByIndex:e.getCalculationInfo("isStackedByIndex"),data:e,seriesModel:t}).stackedDimension)&&(e.isStackedByIndex||e.stackedByDimension)&&n.push(e)}),i.each(function(n){var _;0!==n.length&&("seriesDesc"===(n[0].seriesModel.get("stackOrder")||"seriesAsc")&&n.reverse(),N(n,function(t,e){t.data.setCalculationInfo("stackedOnSeries",0<e?n[e-1].seriesModel:null)}),N(_=n,function(p,d){var f=[],g=[NaN,NaN],t=[p.stackResultDimension,p.stackedOverDimension],y=p.data,m=p.isStackedByIndex,v=p.seriesModel.get("stackStrategy")||"samesign";y.modify(t,function(t,e,n){var i,r,o=y.get(p.stackedDimension,n);if(isNaN(o))return g;m?r=y.getRawIndex(n):i=y.get(p.stackedByDimension,n);for(var a,s,l,u=NaN,h=d-1;0<=h;h--){var c=_[h];if(0<=(r=m?r:c.data.rawIndexOf(c.stackedByDimension,i))){c=c.data.getByRawIndex(c.stackResultDimension,r);if("all"===v||"positive"===v&&0<c||"negative"===v&&c<0||"samesign"===v&&0<=o&&0<c||"samesign"===v&&o<=0&&c<0){a=o,s=c,l=void 0,l=Math.max(Co(a),Co(s)),a+=s,o=vo<l?a:To(a,l),u=c;break}}}return f[0]=o,f[1]=u,f})}))})}),Fv("default",function(i,r){z(r=r||{},{text:"loading",textColor:m.color.primary,fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255,255,255,0.8)",showSpinner:!0,color:m.color.theme[0],spinnerRadius:10,lineWidth:5,zlevel:0});var o,t=new ao,a=new ol({style:{fill:r.maskColor},zlevel:r.zlevel,z:1e4}),s=(t.add(a),new cl({style:{text:r.text,fill:r.textColor,fontSize:r.fontSize,fontWeight:r.fontWeight,fontStyle:r.fontStyle,fontFamily:r.fontFamily},zlevel:r.zlevel,z:10001})),l=new ol({style:{fill:"none"},textContent:s,textConfig:{position:"right",distance:10},zlevel:r.zlevel,z:10001});return t.add(l),r.showSpinner&&((o=new Bh({shape:{startAngle:-dm/2,endAngle:-dm/2+.1,r:r.spinnerRadius},style:{stroke:r.color,lineCap:"round",lineWidth:r.lineWidth},zlevel:r.zlevel,z:10001})).animateShape(!0).when(1e3,{endAngle:3*dm/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:3*dm/2}).delay(300).start("circularInOut"),t.add(o)),t.resize=function(){var t=s.getBoundingRect().width,e=r.showSpinner?r.spinnerRadius:0,t=(i.getWidth()-2*e-(r.showSpinner&&t?10:0)-t)/2-(r.showSpinner&&t?0:5+t/2)+(r.showSpinner?0:t/2)+(t?0:e),n=i.getHeight()/2;r.showSpinner&&o.setShape({cx:t,cy:n}),l.setShape({x:t-e,y:n-e,width:2*e,height:2*e}),a.setShape({x:0,y:0,width:i.getWidth(),height:i.getHeight()})},t.resize(),t}),Ov({type:Pl,event:Pl,update:Pl},Ht),Ov({type:Ol,event:Ol,update:Ol},Ht),Ov({type:Rl,event:zl,update:Rl,action:Ht,refineEvent:Wv,publishNonRefinedEvent:!0}),Ov({type:Nl,event:zl,update:Nl,action:Ht,refineEvent:Wv,publishNonRefinedEvent:!0}),Ov({type:Bl,event:zl,update:Bl,action:Ht,refineEvent:Wv,publishNonRefinedEvent:!0}),kv("default",{}),kv("dark",dp);function Gv(t){return null==t?0:t.length||1}function Uv(t){return t}Yv.prototype.add=function(t){return this._add=t,this},Yv.prototype.update=function(t){return this._update=t,this},Yv.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},Yv.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},Yv.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},Yv.prototype.remove=function(t){return this._remove=t,this},Yv.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},Yv.prototype._executeOneToOne=function(){var t=this._old,e=this._new,n={},i=new Array(t.length),r=new Array(e.length);this._initIndexMap(t,null,i,"_oldKeyGetter"),this._initIndexMap(e,n,r,"_newKeyGetter");for(var o=0;o<t.length;o++){var a,s=i[o],l=n[s],u=Gv(l);1<u?(a=l.shift(),1===l.length&&(n[s]=l[0]),this._update&&this._update(a,o)):1===u?(n[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(r,n)},Yv.prototype._executeMultiple=function(){var t=this._old,e=this._new,n={},i={},r=[],o=[];this._initIndexMap(t,n,r,"_oldKeyGetter"),this._initIndexMap(e,i,o,"_newKeyGetter");for(var a=0;a<r.length;a++){var s=r[a],l=n[s],u=i[s],h=Gv(l),c=Gv(u);if(1<h&&1===c)this._updateManyToOne&&this._updateManyToOne(u,l),i[s]=null;else if(1===h&&1<c)this._updateOneToMany&&this._updateOneToMany(u,l),i[s]=null;else if(1===h&&1===c)this._update&&this._update(u,l),i[s]=null;else if(1<h&&1<c)this._updateManyToMany&&this._updateManyToMany(u,l),i[s]=null;else if(1<h)for(var p=0;p<h;p++)this._remove&&this._remove(l[p]);else this._remove&&this._remove(l)}this._performRestAdd(o,i)},Yv.prototype._performRestAdd=function(t,e){for(var n=0;n<t.length;n++){var i=t[n],r=e[i],o=Gv(r);if(1<o)for(var a=0;a<o;a++)this._add&&this._add(r[a]);else 1===o&&this._add&&this._add(r);e[i]=null}},Yv.prototype._initIndexMap=function(t,e,n,i){for(var r=this._diffModeMultiple,o=0;o<t.length;o++){var a,s,l="_ec_"+this[i](t[o],o);r||(n[o]=l),e&&(0===(s=Gv(a=e[l]))?(e[l]=o,r&&n.push(l)):1===s?e[l]=[a,o]:a.push(o))}};var Xv=Yv;function Yv(t,e,n,i,r,o){this._old=t,this._new=e,this._oldKeyGetter=n||Uv,this._newKeyGetter=i||Uv,this.context=r,this._diffModeMultiple="multiple"===o}Zv.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},Zv.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames};var qv=Zv;function Zv(t,e){this._encode=t,this._schema=e}function jv(o,t){var e={},a=e.encode={},s=O(),l=[],u=[],h={},i=(N(o.dimensions,function(t){var e,n,i=o.getDimensionInfo(t),r=i.coordDim;r&&(e=i.coordDimIndex,Kv(a,r)[e]=t,i.isExtraCoord||(s.set(r,1),"ordinal"!==(n=i.type)&&"time"!==n&&(l[0]=t),Kv(h,r)[e]=o.getDimensionIndex(i.name)),i.defaultTooltip)&&u.push(t),Zd.each(function(t,e){var n=Kv(a,e),e=i.otherDims[e];null!=e&&!1!==e&&(n[e]=i.name)})}),[]),r={},n=(s.each(function(t,e){var n=a[e];r[e]=n[0],i=i.concat(n)}),e.dataDimsOnCoord=i,e.dataDimIndicesOnCoord=E(i,function(t){return o.getDimensionInfo(t).storeDimIndex}),e.encodeFirstDimNotExtra=r,a.label),n=(n&&n.length&&(l=n.slice()),a.tooltip);return n&&n.length?u=n.slice():u.length||(u=l.slice()),a.defaultedLabel=l,a.defaultedTooltip=u,e.userOutput=new qv(h,t),e}function Kv(t,e){return t.hasOwnProperty(e)||(t[e]=[]),t[e]}var $v=function(t){this.otherDims={},null!=t&&P(this,t)},Qv=ta(),Jv={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},t_=(e_.prototype.isDimensionOmitted=function(){return this._dimOmitted},e_.prototype._updateDimOmitted=function(t){(this._dimOmitted=t)&&!this._dimNameMap&&(this._dimNameMap=r_(this.source))},e_.prototype.getSourceDimensionIndex=function(t){return W(this._dimNameMap.get(t),-1)},e_.prototype.getSourceDimension=function(t){var e=this.source.dimensionsDefine;if(e)return e[t]},e_.prototype.makeStoreSchema=function(){for(var t=this._fullDimCount,e=ng(this.source),n=!(30<t),i="",r=[],o=0,a=0;o<t;o++){var s,l=void 0,u=void 0,h=void 0,c=this.dimensions[a];c&&c.storeDimIndex===o?(l=e?c.name:null,u=c.type,h=c.ordinalMeta,a++):(s=this.getSourceDimension(o))&&(l=e?s.name:null,u=s.type),r.push({property:l,type:u,ordinalMeta:h}),!e||null==l||c&&c.isCalculationCoord||(i+=n?l.replace(/\`/g,"`1").replace(/\$/g,"`2"):l),i=i+"$"+(Jv[u]||"f"),h&&(i+=h.uid),i+="$"}var p=this.source;return{dimensions:r,hash:[p.seriesLayoutBy,p.startIndex,i].join("$$")}},e_.prototype.makeOutputDimensionNames=function(){for(var t=[],e=0,n=0;e<this._fullDimCount;e++){var i=void 0,r=this.dimensions[n];r&&r.storeDimIndex===e?(r.isCalculationCoord||(i=r.name),n++):(r=this.getSourceDimension(e))&&(i=r.name),t.push(i)}return t},e_.prototype.appendCalculationDimension=function(t){this.dimensions.push(t),t.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},e_);function e_(t){this.dimensions=t.dimensions,this._dimOmitted=t.dimensionOmitted,this.source=t.source,this._fullDimCount=t.fullDimensionCount,this._updateDimOmitted(t.dimensionOmitted)}function n_(t){return t instanceof t_}function i_(t){for(var e=O(),n=0;n<(t||[]).length;n++){var i=t[n],i=H(i)?i.name:i;null!=i&&null==e.get(i)&&e.set(i,n)}return e}function r_(t){var e=Qv(t);return e.dimNameMap||(e.dimNameMap=i_(t.dimensionsDefine))}var o_,a_,s_,l_,u_,h_,c_,p_=H,d_=E,f_="undefined"==typeof Int32Array?Array:Int32Array,g_=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],y_=["_approximateExtent"],m_=(v.prototype.getDimension=function(t){var e;return null==(e=this._recognizeDimIndex(t))?t:(e=t,this._dimOmitted?null!=(t=this._dimIdxToName.get(e))?t:(t=this._schema.getSourceDimension(e))?t.name:void 0:this.dimensions[e])},v.prototype.getDimensionIndex=function(t){var e=this._recognizeDimIndex(t);return null!=e?e:null==t?-1:(e=this._getDimInfo(t))?e.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(t):-1},v.prototype._recognizeDimIndex=function(t){if(gt(t)||null!=t&&!isNaN(t)&&!this._getDimInfo(t)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(t)<0))return+t},v.prototype._getStoreDimIndex=function(t){return this.getDimensionIndex(t)},v.prototype.getDimensionInfo=function(t){return this._getDimInfo(this.getDimension(t))},v.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]}},v.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},v.prototype.mapDimension=function(t,e){var n=this._dimSummary;return null==e?n.encodeFirstDimNotExtra[t]:(n=n.encode[t])?n[e]:null},v.prototype.mapDimensionsAll=function(t){return(this._dimSummary.encode[t]||[]).slice()},v.prototype.getStore=function(){return this._store},v.prototype.initData=function(t,e,n){var i,r,o=this;(i=t instanceof ly?t:i)||(r=this.dimensions,t=Kf(t)||st(t)?new ag(t,r.length):t,i=new ly,r=d_(r,function(t){return{type:o._dimInfos[t].type,property:t}}),i.initData(t,r,n)),this._store=i,this._nameList=(e||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,i.count()),this._dimSummary=jv(this,this._schema),this.userOutput=this._dimSummary.userOutput},v.prototype.appendData=function(t){t=this._store.appendData(t);this._doInit(t[0],t[1])},v.prototype.appendValues=function(t,e){var t=this._store.appendValues(t,e&&e.length),n=t.start,i=t.end,r=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),e)for(var o=n;o<i;o++)this._nameList[o]=e[o-n],r&&c_(this,o)},v.prototype._updateOrdinalMeta=function(){for(var t=this._store,e=this.dimensions,n=0;n<e.length;n++){var i=this._dimInfos[e[n]];i.ordinalMeta&&t.collectOrdinalMeta(i.storeDimIndex,i.ordinalMeta)}},v.prototype._shouldMakeIdFromName=function(){var t=this._store.getProvider();return null==this._idDimIdx&&t.getSource().sourceFormat!==Jd&&!t.fillStorage},v.prototype._doInit=function(t,e){if(!(e<=t)){var n=this._store.getProvider(),i=(this._updateOrdinalMeta(),this._nameList),r=this._idList;if(n.getSource().sourceFormat===jd&&!n.pure)for(var o=[],a=t;a<e;a++){var s,l=n.getItem(a,o);this.hasItemOption||!H(s=l)||s instanceof Array||(this.hasItemOption=!0),l&&(s=l.name,null==i[a]&&null!=s&&(i[a]=jo(s,null)),l=l.id,null==r[a])&&null!=l&&(r[a]=jo(l,null))}if(this._shouldMakeIdFromName())for(a=t;a<e;a++)c_(this,a);o_(this)}},v.prototype.getApproximateExtent=function(t){return this._approximateExtent[t]||this._store.getDataExtent(this._getStoreDimIndex(t))},v.prototype.setApproximateExtent=function(t,e){e=this.getDimension(e),this._approximateExtent[e]=t.slice()},v.prototype.getCalculationInfo=function(t){return this._calculationInfo[t]},v.prototype.setCalculationInfo=function(t,e){p_(t)?P(this._calculationInfo,t):this._calculationInfo[t]=e},v.prototype.getName=function(t){var t=this.getRawIndex(t),e=this._nameList[t];return e=null==(e=null==e&&null!=this._nameDimIdx?s_(this,this._nameDimIdx,t):e)?"":e},v.prototype._getCategory=function(t,e){e=this._store.get(t,e),t=this._store.getOrdinalMeta(t);return t?t.categories[e]:e},v.prototype.getId=function(t){return a_(this,this.getRawIndex(t))},v.prototype.count=function(){return this._store.count()},v.prototype.get=function(t,e){var n=this._store,t=this._dimInfos[t];if(t)return n.get(t.storeDimIndex,e)},v.prototype.getByRawIndex=function(t,e){var n=this._store,t=this._dimInfos[t];if(t)return n.getByRawIndex(t.storeDimIndex,e)},v.prototype.getIndices=function(){return this._store.getIndices()},v.prototype.getDataExtent=function(t){return this._store.getDataExtent(this._getStoreDimIndex(t))},v.prototype.getSum=function(t){return this._store.getSum(this._getStoreDimIndex(t))},v.prototype.getMedian=function(t){return this._store.getMedian(this._getStoreDimIndex(t))},v.prototype.getValues=function(t,e){var n=this,i=this._store;return F(t)?i.getValues(d_(t,function(t){return n._getStoreDimIndex(t)}),e):i.getValues(t)},v.prototype.hasValue=function(t){for(var e=this._dimSummary.dataDimIndicesOnCoord,n=0,i=e.length;n<i;n++)if(isNaN(this._store.get(e[n],t)))return!1;return!0},v.prototype.indexOfName=function(t){for(var e=0,n=this._store.count();e<n;e++)if(this.getName(e)===t)return e;return-1},v.prototype.getRawIndex=function(t){return this._store.getRawIndex(t)},v.prototype.indexOfRawIndex=function(t){return this._store.indexOfRawIndex(t)},v.prototype.rawIndexOf=function(t,e){t=t&&this._invertedIndicesMap[t],t=t&&t[e];return null==t||isNaN(t)?-1:t},v.prototype.each=function(t,e,n){B(t)&&(n=e,e=t,t=[]);n=n||this,t=d_(l_(t),this._getStoreDimIndex,this);this._store.each(t,n?pt(e,n):e)},v.prototype.filterSelf=function(t,e,n){B(t)&&(n=e,e=t,t=[]);n=n||this,t=d_(l_(t),this._getStoreDimIndex,this);return this._store=this._store.filter(t,n?pt(e,n):e),this},v.prototype.selectRange=function(n){var i=this,r={};return N(ct(n),function(t){var e=i._getStoreDimIndex(t);r[e]=n[t]}),this._store=this._store.selectRange(r),this},v.prototype.mapArray=function(t,e,n){B(t)&&(n=e,e=t,t=[]);var i=[];return this.each(t,function(){i.push(e&&e.apply(this,arguments))},n=n||this),i},v.prototype.map=function(t,e,n,i){n=n||i||this,i=d_(l_(t),this._getStoreDimIndex,this),t=h_(this);return t._store=this._store.map(i,n?pt(e,n):e),t},v.prototype.modify=function(t,e,n,i){n=n||i||this,i=d_(l_(t),this._getStoreDimIndex,this);this._store.modify(i,n?pt(e,n):e)},v.prototype.downSample=function(t,e,n,i){var r=h_(this);return r._store=this._store.downSample(this._getStoreDimIndex(t),e,n,i),r},v.prototype.minmaxDownSample=function(t,e){var n=h_(this);return n._store=this._store.minmaxDownSample(this._getStoreDimIndex(t),e),n},v.prototype.lttbDownSample=function(t,e){var n=h_(this);return n._store=this._store.lttbDownSample(this._getStoreDimIndex(t),e),n},v.prototype.getRawDataItem=function(t){return this._store.getRawDataItem(t)},v.prototype.getItemModel=function(t){var e=this.hostModel,t=this.getRawDataItem(t);return new wp(t,e,e&&e.ecModel)},v.prototype.diff=function(e){var n=this;return new Xv(e?e.getStore().getIndices():[],this.getStore().getIndices(),function(t){return a_(e,t)},function(t){return a_(n,t)})},v.prototype.getVisual=function(t){var e=this._visual;return e&&e[t]},v.prototype.setVisual=function(t,e){this._visual=this._visual||{},p_(t)?P(this._visual,t):this._visual[t]=e},v.prototype.getItemVisual=function(t,e){t=this._itemVisuals[t],t=t&&t[e];return null==t?this.getVisual(e):t},v.prototype.hasItemVisual=function(){return 0<this._itemVisuals.length},v.prototype.ensureUniqueItemVisual=function(t,e){var n=this._itemVisuals,i=n[t],n=(i=i||(n[t]={}))[e];return null==n&&(F(n=this.getVisual(e))?n=n.slice():p_(n)&&(n=P({},n)),i[e]=n),n},v.prototype.setItemVisual=function(t,e,n){var i=this._itemVisuals[t]||{};this._itemVisuals[t]=i,p_(e)?P(i,e):i[e]=n},v.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},v.prototype.setLayout=function(t,e){p_(t)?P(this._layout,t):this._layout[t]=e},v.prototype.getLayout=function(t){return this._layout[t]},v.prototype.getItemLayout=function(t){return this._itemLayouts[t]},v.prototype.setItemLayout=function(t,e,n){this._itemLayouts[t]=n?P(this._itemLayouts[t]||{},e):e},v.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},v.prototype.setItemGraphicEl=function(t,e){var n,i,r,o,a=this.hostModel&&this.hostModel.seriesIndex;n=a,i=this.dataType,r=t,(a=e)&&((o=G(a)).dataIndex=r,o.dataType=i,o.seriesIndex=n,o.ssrType="chart","group"===a.type)&&a.traverse(function(t){t=G(t);t.seriesIndex=n,t.dataIndex=r,t.dataType=i,t.ssrType="chart"}),this._graphicEls[t]=e},v.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},v.prototype.eachItemGraphicEl=function(n,i){N(this._graphicEls,function(t,e){t&&n&&n.call(i,t,e)})},v.prototype.cloneShallow=function(t){return t=t||new v(this._schema||d_(this.dimensions,this._getDimInfo,this),this.hostModel),u_(t,this),t._store=this._store,t},v.prototype.wrapMethod=function(t,e){var n=this[t];B(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var t=n.apply(this,arguments);return e.apply(this,[t].concat(Tt(arguments)))})},v.internalField=(o_=function(a){var s=a._invertedIndicesMap;N(s,function(t,e){var n=a._dimInfos[e],i=n.ordinalMeta,r=a._store;if(i){t=s[e]=new f_(i.categories.length);for(var o=0;o<t.length;o++)t[o]=-1;for(o=0;o<r.count();o++)t[r.get(n.storeDimIndex,o)]=o}})},s_=function(t,e,n){return jo(t._getCategory(e,n),null)},a_=function(t,e){var n=t._idList[e];return n=null==(n=null==n&&null!=t._idDimIdx?s_(t,t._idDimIdx,e):n)?"e\0\0"+e:n},l_=function(t){return t=F(t)?t:null!=t?[t]:[]},h_=function(t){var e=new v(t._schema||d_(t.dimensions,t._getDimInfo,t),t.hostModel);return u_(e,t),e},u_=function(e,n){N(g_.concat(n.__wrappedMethods||[]),function(t){n.hasOwnProperty(t)&&(e[t]=n[t])}),e.__wrappedMethods=n.__wrappedMethods,N(y_,function(t){e[t]=y(n[t])}),e._calculationInfo=P({},n._calculationInfo)},void(c_=function(t,e){var n=t._nameList,i=t._idList,r=t._nameDimIdx,o=t._idDimIdx,a=n[e],s=i[e];null==a&&null!=r&&(n[e]=a=s_(t,r,e)),null==s&&null!=o&&(i[e]=s=s_(t,o,e)),null==s&&null!=a&&(s=a,1<(r=(n=t._nameRepeatCount)[a]=(n[a]||0)+1)&&(s+="__ec__"+r),i[e]=s)})),v);function v(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"];for(var n,i,r=!(this.DOWNSAMPLE_METHODS=["downSample","minmaxDownSample","lttbDownSample"]),o=(n_(t)?(n=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(r=!0,n=t),n=n||["x","y"],{}),a=[],s={},l=!1,u={},h=0;h<n.length;h++){var c=n[h],c=V(c)?new $v({name:c}):c instanceof $v?c:new $v(c),p=c.name,d=(c.type=c.type||"float",c.coordDim||(c.coordDim=p,c.coordDimIndex=0),c.otherDims=c.otherDims||{}),p=(a.push(p),null!=u[p]&&(l=!0),(o[p]=c).createInvertedIndices&&(s[p]=[]),h);gt(c.storeDimIndex)&&(p=c.storeDimIndex),0===d.itemName&&(this._nameDimIdx=p),0===d.itemId&&(this._idDimIdx=p),r&&(c.storeDimIndex=h)}this.dimensions=a,this._dimInfos=o,this._initGetDimensionInfo(l),this.hostModel=e,this._invertedIndicesMap=s,this._dimOmitted&&(i=this._dimIdxToName=O(),N(a,function(t){i.set(o[t].storeDimIndex,t)}))}function v_(t,e){Kf(t)||(t=Qf(t));for(var n,i,r=(e=e||{}).coordDimensions||[],o=e.dimensionsDefine||t.dimensionsDefine||[],a=O(),s=[],l=(u=t,n=r,p=e.dimensionsCount,i=Math.max(u.dimensionsDetectedCount||1,n.length,o.length,p||0),N(n,function(t){H(t)&&(t=t.dimsDef)&&(i=Math.max(i,t.length))}),i),u=e.canOmitUnusedDimensions&&30<l,h=o===t.dimensionsDefine,c=h?r_(t):i_(o),p=e.encodeDefine,d=O(p=!p&&e.encodeDefaulter?e.encodeDefaulter(t,l):p),f=new iy(l),g=0;g<f.length;g++)f[g]=-1;function y(t){var e,n,i,r=f[t];return r<0?(e=H(e=o[t])?e:{name:e},n=new $v,null!=(i=e.name)&&null!=c.get(i)&&(n.name=n.displayName=i),null!=e.type&&(n.type=e.type),null!=e.displayName&&(n.displayName=e.displayName),f[t]=s.length,n.storeDimIndex=t,s.push(n),n):s[r]}if(!u)for(g=0;g<l;g++)y(g);d.each(function(t,n){var i,t=Wo(t).slice();1===t.length&&!V(t[0])&&t[0]<0?d.set(n,!1):(i=d.set(n,[]),N(t,function(t,e){t=V(t)?c.get(t):t;null!=t&&t<l&&v(y(i[e]=t),n,e)}))});var m=0;function v(t,e,n){null!=Zd.get(e)?t.otherDims[e]=n:(t.coordDim=e,t.coordDimIndex=n,a.set(e,!0))}N(r,function(t){V(t)?(o=t,r={}):(o=(r=t).name,t=r.ordinalMeta,r.ordinalMeta=null,(r=P({},r)).ordinalMeta=t,n=r.dimsDef,i=r.otherDims,r.name=r.coordDim=r.coordDimIndex=r.dimsDef=r.otherDims=null);var n,i,r,o,e=d.get(o);if(!1!==e){if(!(e=Wo(e)).length)for(var a=0;a<(n&&n.length||1);a++){for(;m<l&&null!=y(m).coordDim;)m++;m<l&&e.push(m++)}N(e,function(t,e){t=y(t);h&&null!=r.type&&(t.type=r.type),v(z(t,r),o,e),null==t.name&&n&&(H(e=n[e])||(e={name:e}),t.name=t.displayName=e.name,t.defaultTooltip=e.defaultTooltip),i&&z(t.otherDims,i)})}});var _=e.generateCoord,x=null!=(b=e.generateCoordCount),b=_?b||1:0,w=_||"value";function S(t){null==t.name&&(t.name=t.coordDim)}if(u)N(s,function(t){S(t)}),s.sort(function(t,e){return t.storeDimIndex-e.storeDimIndex});else for(var M=0;M<l;M++){var T=y(M);null==T.coordDim&&(T.coordDim=function(t,e,n){if(n||e.hasKey(t)){for(var i=0;e.hasKey(t+i);)i++;t+=i}return e.set(t,!0),t}(w,a,x),T.coordDimIndex=0,(!_||b<=0)&&(T.isExtraCoord=!0),b--),S(T),null!=T.type||lf(t,M)!==rf.Must&&(!T.isExtraCoord||null==T.otherDims.itemName&&null==T.otherDims.seriesName)||(T.type="ordinal")}for(var C=s,k=O(),I=0;I<C.length;I++){var D=C[I],A=D.name,L=k.get(A)||0;0<L&&(D.name=A+(L-1)),L++,k.set(A,L)}return new t_({source:t,dimensions:s,fullDimensionCount:l,dimensionOmitted:u})}var __=function(t){this.coordSysDims=[],this.axisMap=O(),this.categoryAxisMap=O(),this.coordSysName=t};var x_={cartesian2d:function(t,e,n,i){var r=t.getReferringComponents("xAxis",ra).models[0],t=t.getReferringComponents("yAxis",ra).models[0];e.coordSysDims=["x","y"],n.set("x",r),n.set("y",t),b_(r)&&(i.set("x",r),e.firstCategoryDimIndex=0),b_(t)&&(i.set("y",t),null==e.firstCategoryDimIndex)&&(e.firstCategoryDimIndex=1)},singleAxis:function(t,e,n,i){t=t.getReferringComponents("singleAxis",ra).models[0];e.coordSysDims=["single"],n.set("single",t),b_(t)&&(i.set("single",t),e.firstCategoryDimIndex=0)},polar:function(t,e,n,i){var t=t.getReferringComponents("polar",ra).models[0],r=t.findAxisModel("radiusAxis"),t=t.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],n.set("radius",r),n.set("angle",t),b_(r)&&(i.set("radius",r),e.firstCategoryDimIndex=0),b_(t)&&(i.set("angle",t),null==e.firstCategoryDimIndex)&&(e.firstCategoryDimIndex=1)},geo:function(t,e,n,i){e.coordSysDims=["lng","lat"]},parallel:function(t,i,r,o){var a=t.ecModel,t=a.getComponent("parallel",t.get("parallelIndex")),s=i.coordSysDims=t.dimensions.slice();N(t.parallelAxisIndex,function(t,e){var t=a.getComponent("parallelAxis",t),n=s[e];r.set(n,t),b_(t)&&(o.set(n,t),null==i.firstCategoryDimIndex)&&(i.firstCategoryDimIndex=e)})},matrix:function(t,e,n,i){t=t.getReferringComponents("matrix",ra).models[0],e.coordSysDims=["x","y"],e=t.getDimensionModel("x"),t=t.getDimensionModel("y");n.set("x",e),n.set("y",t),i.set("x",e),i.set("y",t)}};function b_(t){return"category"===t.get("type")}function w_(t,e,n){var i,r,o,a,s,l,u,h,c,p=(n=n||{}).byIndex,d=n.stackedCoordDimension,f=(n_(e.schema)?(r=e.schema,i=r.dimensions,o=e.store):i=e,!(!t||!t.get("stack")));return N(i,function(t,e){V(t)&&(i[e]=t={name:t}),f&&!t.isExtraCoord&&(p||a||!t.ordinalMeta||(a=t),s||"ordinal"===t.type||"time"===t.type||d&&d!==t.coordDim||(s=t))}),!s||p||a||(p=!0),s&&(l="__\0ecstackresult_"+t.id,u="__\0ecstackedover_"+t.id,a&&(a.createInvertedIndices=!0),h=s.coordDim,n=s.type,c=0,N(i,function(t){t.coordDim===h&&c++}),e={name:l,coordDim:h,coordDimIndex:c,type:n,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length},t={name:u,coordDim:u,coordDimIndex:c+1,type:n,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length+1},r?(o&&(e.storeDimIndex=o.ensureCalculationDimension(u,n),t.storeDimIndex=o.ensureCalculationDimension(l,n)),r.appendCalculationDimension(e),r.appendCalculationDimension(t)):(i.push(e),i.push(t))),{stackedDimension:s&&s.name,stackedByDimension:a&&a.name,isStackedByIndex:p,stackedOverDimension:u,stackResultDimension:l}}function S_(t,e){return!!e&&e===t.getCalculationInfo("stackedDimension")}function M_(t,e){return S_(t,e)?t.getCalculationInfo("stackResultDimension"):e}function T_(t,e,n){n=n||{};var i,r,o,a,s,l,u=e.getSourceManager(),h=!1,t=(t?(h=!0,i=Qf(t)):h=(i=u.getSource()).sourceFormat===jd,function(t){var e=t.get("coordinateSystem"),n=new __(e);if(e=x_[e])return e(t,n,n.axisMap,n.categoryAxisMap),n}(e)),c=(r=t,c=(c=e).get("coordinateSystem"),c=xd.get(c),p=(p=r&&r.coordSysDims?E(r.coordSysDims,function(t){var e={name:t},t=r.axisMap.get(t);return t&&(t=t.get("type"),e.type="category"===(t=t)?"ordinal":"time"===t?"time":"float"),e}):p)||c&&(c.getDimensionsInfo?c.getDimensionsInfo():c.dimensions.slice())||["x","y"]),p=n.useEncodeDefaulter,p=B(p)?p:p?dt(af,c,e):null,c={coordDimensions:c,generateCoord:n.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:p,canOmitUnusedDimensions:!h},p=v_(i,c),d=(c=p.dimensions,o=n.createInvertedIndices,(a=t)&&N(c,function(t,e){var n=t.coordDim,n=a.categoryAxisMap.get(n);n&&(null==s&&(s=e),t.ordinalMeta=n.getOrdinalMeta(),o)&&(t.createInvertedIndices=!0),null!=t.otherDims.itemName&&(l=!0)}),l||null==s||(c[s].otherDims.itemName=0),s),n=h?null:u.getSharedDataStore(p),t=w_(e,{schema:p,store:n}),c=new m_(p,e),p=(c.setCalculationInfo(t),null==d||(u=i).sourceFormat!==jd||F(Xo(function(t){var e=0;for(;e<t.length&&null==t[e];)e++;return t[e]}(u.data||[])))?null:function(t,e,n,i){return i===d?n:this.defaultDimValueGetter(t,e,n,i)});return c.hasItemOption=!1,c.initData(h?i:n,null,p),c}function C_(t){return"interval"===t.type||"log"===t.type}function k_(t,e,n,i,r){var o={},e=o.interval=No(e/n,!0),n=(null!=i&&e<i&&(e=o.interval=i),null!=r&&r<e&&(e=o.interval=r),o.intervalPrecision=D_(e)),i=o.niceTickExtent=[To(Math.ceil(t[0]/e)*e,n),To(Math.floor(t[1]/e)*e,n)];return r=i,e=t,isFinite(r[0])||(r[0]=e[0]),isFinite(r[1])||(r[1]=e[1]),A_(r,0,e),A_(r,1,e),r[0]>r[1]&&(r[0]=r[1]),o}function I_(t){var e=Math.pow(10,Ro(t)),t=t/e;return t?2===t?t=3:3===t?t=5:t*=2:t=1,To(t*e)}function D_(t){return Co(t)+2}function A_(t,e,n){t[e]=Math.max(Math.min(t[e],n[1]),n[0])}function L_(t,e){return t>=e[0]&&t<=e[1]}O_.prototype.updateMethods=function(t){t.hasBreaks()?(this.normalize=pt(t.normalize,t),this.scale=pt(t.scale,t)):(this.normalize=R_,this.scale=N_)};var P_=O_;function O_(){this.normalize=R_,this.scale=N_}function R_(t,e){return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])}function N_(t,e){return t*(e[1]-e[0])+e[0]}function B_(t,e,n){t=Math.log(t);return[Math.log(n?e[0]:Math.max(0,e[0]))/t,Math.log(n?e[1]:Math.max(0,e[1]))/t]}E_.prototype.getSetting=function(t){return this._setting[t]},E_.prototype._innerUnionExtent=function(t){var e=this._extent;this._innerSetExtent((t[0]<e[0]?t:e)[0],(t[1]>e[1]?t:e)[1])},E_.prototype.unionExtentFromData=function(t,e){this._innerUnionExtent(t.getApproximateExtent(e))},E_.prototype.getExtent=function(){return this._extent.slice()},E_.prototype.setExtent=function(t,e){this._innerSetExtent(t,e)},E_.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)},E_.prototype.setBreaksFromOption=function(t){},E_.prototype._innerSetBreak=function(t){this._brkCtx&&(this._brkCtx.setBreaks(t),this._calculator.updateMethods(this._brkCtx),this._brkCtx.update(this._extent))},E_.prototype._innerGetBreaks=function(){return this._brkCtx?this._brkCtx.breaks:[]},E_.prototype.hasBreaks=function(){return!!this._brkCtx&&this._brkCtx.hasBreaks()},E_.prototype._getExtentSpanWithBreaks=function(){return this._brkCtx&&this._brkCtx.hasBreaks()?this._brkCtx.getExtentSpan():this._extent[1]-this._extent[0]},E_.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},E_.prototype.isBlank=function(){return this._isBlank},E_.prototype.setBlank=function(t){this._isBlank=t};var z_=E_;function E_(t){this._calculator=new P_,this._setting=t||{},this._extent=[1/0,-1/0]}ma(z_);var F_=0,V_=(H_.createByAxisModel=function(t){var t=t.option,e=t.data,e=e&&E(e,W_);return new H_({categories:e,needCollect:!e,deduplication:!1!==t.dedplication})},H_.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},H_.prototype.parseAndCollect=function(t){var e,n,i=this._needCollect;return V(t)||i?(i&&!this._deduplication?(n=this.categories.length,this.categories[n]=t,this._onCollect&&this._onCollect(t,n)):null==(n=(e=this._getOrCreateMap()).get(t))&&(i?(n=this.categories.length,this.categories[n]=t,e.set(t,n),this._onCollect&&this._onCollect(t,n)):n=NaN),n):t},H_.prototype._getOrCreateMap=function(){return this._map||(this._map=O(this.categories))},H_);function H_(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++F_,this._onCollect=t.onCollect}function W_(t){return H(t)&&null!=t.value?t.value:t+""}u(X_,G_=z_),X_.prototype.parse=function(t){return null==t?NaN:V(t)?this._ordinalMeta.getOrdinal(t):Math.round(t)},X_.prototype.contain=function(t){return L_(t,this._extent)&&0<=t&&t<this._ordinalMeta.categories.length},X_.prototype.normalize=function(t){return t=this._getTickNumber(t),this._calculator.normalize(t,this._extent)},X_.prototype.scale=function(t){return t=Math.round(this._calculator.scale(t,this._extent)),this.getRawOrdinalNumber(t)},X_.prototype.getTicks=function(){for(var t=[],e=this._extent,n=e[0];n<=e[1];)t.push({value:n}),n++;return t},X_.prototype.getMinorTicks=function(t){},X_.prototype.setSortInfo=function(t){if(null==t)this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;else{for(var e=t.ordinalNumbers,n=this._ordinalNumbersByTick=[],i=this._ticksByOrdinalNumber=[],r=0,o=this._ordinalMeta.categories.length,a=Math.min(o,e.length);r<a;++r){var s=e[r];i[n[r]=s]=r}for(var l=0;r<o;++r){for(;null!=i[l];)l++;n.push(l),i[l]=r}}},X_.prototype._getTickNumber=function(t){var e=this._ticksByOrdinalNumber;return e&&0<=t&&t<e.length?e[t]:t},X_.prototype.getRawOrdinalNumber=function(t){var e=this._ordinalNumbersByTick;return e&&0<=t&&t<e.length?e[t]:t},X_.prototype.getLabel=function(t){if(!this.isBlank())return t=this.getRawOrdinalNumber(t.value),null==(t=this._ordinalMeta.categories[t])?"":t+""},X_.prototype.count=function(){return this._extent[1]-this._extent[0]+1},X_.prototype.isInExtentRange=function(t){return t=this._getTickNumber(t),this._extent[0]<=t&&this._extent[1]>=t},X_.prototype.getOrdinalMeta=function(){return this._ordinalMeta},X_.prototype.calcNiceTicks=function(){},X_.prototype.calcNiceExtent=function(){},X_.type="ordinal";var G_,U_=X_;function X_(t){var t=G_.call(this,t)||this,e=(t.type="ordinal",t.getSetting("ordinalMeta"));return F(e=e||new V_({}))&&(e=new V_({categories:E(e,function(t){return H(t)?t.value:t})})),t._ordinalMeta=e,t._extent=t.getSetting("extent")||[0,e.categories.length-1],t}z_.registerClass(U_);var Y_,q_=To,Z_=(u(j_,Y_=z_),j_.prototype.parse=function(t){return null==t||""===t?NaN:Number(t)},j_.prototype.contain=function(t){return L_(t,this._extent)},j_.prototype.normalize=function(t){return this._calculator.normalize(t,this._extent)},j_.prototype.scale=function(t){return this._calculator.scale(t,this._extent)},j_.prototype.getInterval=function(){return this._interval},j_.prototype.setInterval=function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=D_(t)},j_.prototype.getTicks=function(t){t=t||{};var n=this._interval,e=this._extent,i=this._niceExtent,r=this._intervalPrecision,o=Op,a=[];if(n)if("only_break"===t.breakTicks&&o)o.addBreaksToTicks(a,this._brkCtx.breaks,this._extent);else{e[0]<i[0]&&(t.expandToNicedExtent?a.push({value:q_(i[0]-n,r)}):a.push({value:e[0]}));for(var s,l=function(t,e){return Math.round((e-t)/n)},u=i[0];u<=i[1];){if(a.push({value:u}),u=q_(u+n,r),this._brkCtx&&0<=(s=this._brkCtx.calcNiceTickMultiple(u,l))&&(u=q_(u+s*n,r)),0<a.length&&u===a[a.length-1].value)break;if(1e4<a.length)return[]}var h=a.length?a[a.length-1].value:i[1];e[1]>h&&(t.expandToNicedExtent?a.push({value:q_(h+n,r)}):a.push({value:e[1]})),"none"!==t.breakTicks&&o&&o.addBreaksToTicks(a,this._brkCtx.breaks,this._extent)}return a},j_.prototype.getMinorTicks=function(t){for(var e=this.getTicks({expandToNicedExtent:!0}),n=[],i=this.getExtent(),r=1;r<e.length;r++){var o=e[r],a=e[r-1];if(!a.break&&!o.break){for(var s=0,l=[],u=(o.value-a.value)/t,h=D_(u);s<t-1;){var c=q_(a.value+(s+1)*u,h);c>i[0]&&c<i[1]&&l.push(c),s++}Op&&Op.pruneTicksByBreak("auto",l,this._getNonTransBreaks(),function(t){return t},this._interval,i),n.push(l)}}return n},j_.prototype._getNonTransBreaks=function(){return this._brkCtx?this._brkCtx.breaks:[]},j_.prototype.getLabel=function(t,e){return null==t?"":(null==(e=e&&e.precision)?e=Co(t.value)||0:"auto"===e&&(e=this._intervalPrecision),ud(q_(t.value,e,!0)))},j_.prototype.calcNiceTicks=function(t,e,n){t=t||5;var i=this._extent.slice(),r=this._getExtentSpanWithBreaks();isFinite(r)&&(r<0&&(r=-r,i.reverse(),this._innerSetExtent(i[0],i[1]),i=this._extent.slice()),i=k_(i,r,t,e,n),this._intervalPrecision=i.intervalPrecision,this._interval=i.interval,this._niceExtent=i.niceTickExtent)},j_.prototype.calcNiceExtent=function(t){var e=this._extent.slice(),n=(e[0]===e[1]&&(0!==e[0]?(n=Math.abs(e[0]),t.fixMax||(e[1]+=n/2),e[0]-=n/2):e[1]=1),e[1]-e[0]),n=(isFinite(n)||(e[0]=0,e[1]=1),this._innerSetExtent(e[0],e[1]),e=this._extent.slice(),this.calcNiceTicks(t.splitNumber,t.minInterval,t.maxInterval),this._interval),i=this._intervalPrecision;t.fixMin||(e[0]=q_(Math.floor(e[0]/n)*n,i)),t.fixMax||(e[1]=q_(Math.ceil(e[1]/n)*n,i)),this._innerSetExtent(e[0],e[1])},j_.prototype.setNiceExtent=function(t,e){this._niceExtent=[t,e]},j_.type="interval",j_);function j_(){var t=null!==Y_&&Y_.apply(this,arguments)||this;return t.type="interval",t._interval=0,t._intervalPrecision=2,t}z_.registerClass(Z_);var K_="undefined"!=typeof Float32Array,$_=K_?Float32Array:Array;function Q_(t){return F(t)?K_?new Float32Array(t):t:new $_(t)}function J_(t){return t.get("stack")||"__ec_stack_"+t.seriesIndex}function t1(t){return t.dim+t.index}function e1(t,e){var n=[];return e.eachSeriesByType(t,function(t){var e;(e=t).coordinateSystem&&"cartesian2d"===e.coordinateSystem.type&&n.push(t)}),n}function n1(t){var a,d,h=function(t){var e,l={},n=(N(t,function(t){var e=t.coordinateSystem.getBaseAxis();if("time"===e.type||"value"===e.type)for(var t=t.getData(),n=e.dim+"_"+e.index,i=t.getDimensionIndex(t.mapDimension(e.dim)),r=t.getStore(),o=0,a=r.count();o<a;++o){var s=r.get(i,o);l[n]?l[n].push(s):l[n]=[s]}}),{});for(e in l)if(l.hasOwnProperty(e)){var i=l[e];if(i){i.sort(function(t,e){return t-e});for(var r=null,o=1;o<i.length;++o){var a=i[o]-i[o-1];0<a&&(r=null===r?a:Math.min(r,a))}n[e]=r}}return n}(t),c=[];return N(t,function(t){var e,n,i=t.coordinateSystem.getBaseAxis(),r=i.getExtent(),o=(e="category"===i.type?i.getBandWidth():"value"===i.type||"time"===i.type?(e=i.dim+"_"+i.index,e=h[e],o=Math.abs(r[1]-r[0]),n=i.scale.getExtent(),n=Math.abs(n[1]-n[0]),e?o/n*e:o):(n=t.getData(),Math.abs(r[1]-r[0])/n.count()),So(t.get("barWidth"),e)),r=So(t.get("barMaxWidth"),e),a=So(t.get("barMinWidth")||((n=t).pipelineContext&&n.pipelineContext.large?.5:1),e),s=t.get("barGap"),l=t.get("barCategoryGap"),u=t.get("defaultBarGap");c.push({bandWidth:e,barWidth:o,barMaxWidth:r,barMinWidth:a,barGap:s,barCategoryGap:l,defaultBarGap:u,axisKey:t1(i),stackId:J_(t)})}),a={},N(c,function(t,e){var n=t.axisKey,i=t.bandWidth,i=a[n]||{bandWidth:i,remainedWidth:i,autoWidthCount:0,categoryGap:null,gap:t.defaultBarGap||0,stacks:{}},r=i.stacks,n=(a[n]=i,t.stackId),o=(r[n]||i.autoWidthCount++,r[n]=r[n]||{width:0,maxWidth:0},t.barWidth),o=(o&&!r[n].width&&(r[n].width=o,o=Math.min(i.remainedWidth,o),i.remainedWidth-=o),t.barMaxWidth),o=(o&&(r[n].maxWidth=o),t.barMinWidth),r=(o&&(r[n].minWidth=o),t.barGap),n=(null!=r&&(i.gap=r),t.barCategoryGap);null!=n&&(i.categoryGap=n)}),d={},N(a,function(t,n){d[n]={};var i,e=t.stacks,r=t.bandWidth,o=t.categoryGap,a=(null==o&&(a=ct(e).length,o=Math.max(35-4*a,15)+"%"),So(o,r)),s=So(t.gap,1),l=t.remainedWidth,u=t.autoWidthCount,h=(l-a)/(u+(u-1)*s),h=Math.max(h,0),c=(N(e,function(t){var e,n=t.maxWidth,i=t.minWidth;t.width?(e=t.width,n&&(e=Math.min(e,n)),i&&(e=Math.max(e,i)),t.width=e,l-=e+s*e,u--):(e=h,n&&n<e&&(e=Math.min(n,l)),(e=i&&e<i?i:e)!==h&&(t.width=e,l-=e+s*e,u--))}),h=(l-a)/(u+(u-1)*s),h=Math.max(h,0),0),p=(N(e,function(t,e){t.width||(t.width=h),c+=(i=t).width*(1+s)}),i&&(c-=i.width*s),-c/2);N(e,function(t,e){d[n][e]=d[n][e]||{bandWidth:r,offset:p,width:t.width},p+=t.width*(1+s)})}),d}u(o1,i1=Z_),o1.prototype.getLabel=function(t){var e=this.getSetting("useUTC");return qp(t.value,Hp[function(t){switch(t){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}(Yp(this._minLevelUnit))]||Hp.second,e,this.getSetting("locale"))},o1.prototype.getFormattedLabel=function(t,e,n){var i,r,o=this.getSetting("useUTC"),a=this.getSetting("locale");return t=t,e=e,a=a,o=o,r=null,r=V(n=n)?n:B(n)?(i={time:t.time,level:t.time.level},Op&&Op.makeAxisLabelFormatterParamBreak(i,t.break),n(t.value,e,i)):(e=t.time)?(i=n[e.lowerTimeUnit][e.upperTimeUnit])[Math.min(e.level,i.length-1)]||"":n[e=Zp(t.value,o)][e][0],qp(new Date(t.value),r,o,a)},o1.prototype.getTicks=function(t){var e,n,i,r=this._interval,o=this._extent,a=[];return r&&(r=this.getSetting("useUTC"),e=Zp(o[1],r),a.push({value:o[0],time:{level:0,upperTimeUnit:e,lowerTimeUnit:e}}),e=function(t,m,v,_,e,y){var x=1e4,n=Gp,b=0;function w(t,e,n,i,r,o,a){s=r,l=t,(u=new Date(0))[s](1),h=u.getTime(),u[s](1+l),c=u.getTime()-h;for(var s,l,u,h,c,p,d=function(t,e){return Math.max(0,Math.round((e-t)/c))},f=e,g=new Date(f);f<n&&f<=_[1]&&(a.push({value:f}),!(b++>x));)g[r](g[i]()+t),f=g.getTime(),y&&0<(p=y.calcNiceTickMultiple(f,d))&&(g[r](g[i]()+p*t),f=g.getTime());a.push({value:f,notAdd:!0})}function i(t,e,n){var i,r,o,a,s=[],l=!e.length;if(i=Yp(t),r=_[0],o=_[1],a=v,jp(new Date(r),i,a).getTime()!==jp(new Date(o),i,a).getTime()){l&&(e=[{value:function(t,e,n){e=Math.max(0,I(Wp,e)-1);return jp(new Date(t),Wp[e],n).getTime()}(_[0],t,v)},{value:_[1]}]);for(var u,h,c=0;c<e.length-1;c++){var p=e[c].value,d=e[c+1].value;if(p!==d){var f=void 0,g=void 0,y=void 0;switch(t){case"year":f=Math.max(1,Math.round(m/zp/365)),g=Kp(v),y=v?"setUTCFullYear":"setFullYear";break;case"half-year":case"quarter":case"month":h=m,f=6<(h/=30*zp)?6:3<h?3:2<h?2:1,g=$p(v),y=id(v);break;case"week":case"half-week":case"day":h=m,f=16<(h/=zp)?16:7.5<h?7:3.5<h?4:1.5<h?2:1,g=Qp(v),y=rd(v),0;break;case"half-day":case"quarter-day":case"hour":u=m,f=12<(u/=Bp)?12:6<u?6:3.5<u?4:2<u?2:1,g=Jp(v),y=od(v);break;case"minute":f=s1(m,!0),g=td(v),y=ad(v);break;case"second":f=s1(m,!1),g=ed(v),y=sd(v);break;case"millisecond":f=No(m,!0),g=nd(v),y=ld(v)}d>=_[0]&&p<=_[1]&&w(f,p,d,g,y,0,s),"year"===t&&1<n.length&&0===c&&n.unshift({value:n[0].value-f})}}for(c=0;c<s.length;c++)n.push(s[c])}}for(var r=[],o=[],a=0,s=0,l=0;l<n.length;++l){var u=Yp(n[l]);if(function(t){return t===Yp(t)}(n[l])){i(n[l],r[r.length-1]||[],o);var h=n[l+1]?Yp(n[l+1]):null;if(u!==h){if(o.length){s=a,o.sort(function(t,e){return t.value-e.value});for(var c=[],p=0;p<o.length;++p){var d=o[p].value;0!==p&&o[p-1].value===d||(c.push(o[p]),d>=_[0]&&d<=_[1]&&a++)}u=e/m;if(1.5*u<a&&u/1.5<s)break;if(r.push(c),u<a||t===n[l])break}o=[]}}}for(var f=ut(E(r,function(t){return ut(t,function(t){return t.value>=_[0]&&t.value<=_[1]&&!t.notAdd})}),function(t){return 0<t.length}),g=[],S=f.length-1,l=0;l<f.length;++l)for(var M=f[l],T=0;T<M.length;++T){var C=Zp(M[T].value,v);g.push({value:M[T].value,time:{level:S-l,upperTimeUnit:C,lowerTimeUnit:C}})}g.sort(function(t,e){return t.value-e.value});for(var k=[],l=0;l<g.length;++l)0!==l&&g[l].value===g[l-1].value||k.push(g[l]);return k}(this._minLevelUnit,this._approxInterval,r,o,this._getExtentSpanWithBreaks(),this._brkCtx),a=a.concat(e),e=Zp(o[1],r),a.push({value:o[1],time:{level:0,upperTimeUnit:e,lowerTimeUnit:e}}),this.getSetting("useUTC"),n=Wp.length-1,i=0,N(a,function(t){n=Math.min(n,I(Wp,t.time.upperTimeUnit)),i=Math.max(i,t.time.level)})),a},o1.prototype.calcNiceExtent=function(t){var e,n=this.getExtent();n[0]===n[1]&&(n[0]-=zp,n[1]+=zp),n[1]===-1/0&&n[0]===1/0&&(e=new Date,n[1]=+new Date(e.getFullYear(),e.getMonth(),e.getDate()),n[0]=n[1]-zp),this._innerSetExtent(n[0],n[1]),this.calcNiceTicks(t.splitNumber,t.minInterval,t.maxInterval)},o1.prototype.calcNiceTicks=function(t,e,n){t=t||10;var i=this._getExtentSpanWithBreaks(),i=(this._approxInterval=i/t,null!=e&&this._approxInterval<e&&(this._approxInterval=e),null!=n&&this._approxInterval>n&&(this._approxInterval=n),a1.length),t=Math.min(function(t,e,n,i){for(;n<i;){var r=n+i>>>1;t[r][1]<e?n=1+r:i=r}return n}(a1,this._approxInterval,0,i),i-1);this._interval=a1[t][1],this._intervalPrecision=D_(this._interval),this._minLevelUnit=a1[Math.max(t-1,0)][0]},o1.prototype.parse=function(t){return gt(t)?t:+Po(t)},o1.prototype.contain=function(t){return L_(t,this._extent)},o1.prototype.normalize=function(t){return this._calculator.normalize(t,this._extent)},o1.prototype.scale=function(t){return this._calculator.scale(t,this._extent)},o1.type="time";var i1,r1=o1;function o1(t){t=i1.call(this,t)||this;return t.type="time",t}var a1=[["second",Rp],["minute",Np],["hour",Bp],["quarter-day",6*Bp],["half-day",12*Bp],["day",1.2*zp],["half-week",3.5*zp],["week",7*zp],["month",31*zp],["quarter",95*zp],["half-year",fa/2],["year",fa]];function s1(t,e){return 30<(t/=e?Np:Rp)?30:20<t?20:15<t?15:10<t?10:5<t?5:2<t?2:1}z_.registerClass(r1);var l1,u1=To,h1=Math.floor,c1=Math.ceil,p1=Math.pow,d1=Math.log,f1=(u(g1,l1=Z_),g1.prototype.getTicks=function(t){t=t||{};var i=this._extent.slice(),r=this._originalScale.getExtent(),t=l1.prototype.getTicks.call(this,t),o=this.base;return this._originalScale._innerGetBreaks(),E(t,function(t){var t=t.value,e=null,n=p1(o,t);return t===i[0]&&this._fixMin?e=r[0]:t===i[1]&&this._fixMax&&(e=r[1]),{value:n=null!=e?y1(n,e):n,break:void 0}},this)},g1.prototype._getNonTransBreaks=function(){return this._originalScale._innerGetBreaks()},g1.prototype.setExtent=function(t,e){this._originalScale.setExtent(t,e);t=B_(this.base,[t,e]);l1.prototype.setExtent.call(this,t[0],t[1])},g1.prototype.getExtent=function(){var t=this.base,e=l1.prototype.getExtent.call(this),t=(e[0]=p1(t,e[0]),e[1]=p1(t,e[1]),this._originalScale.getExtent());return this._fixMin&&(e[0]=y1(e[0],t[0])),this._fixMax&&(e[1]=y1(e[1],t[1])),e},g1.prototype.unionExtentFromData=function(t,e){this._originalScale.unionExtentFromData(t,e);t=B_(this.base,t.getApproximateExtent(e),!0);this._innerUnionExtent(t)},g1.prototype.calcNiceTicks=function(t){t=t||10;var e=this._extent.slice(),n=this._getExtentSpanWithBreaks();if(isFinite(n)&&!(n<=0)){var i=Oo(n);for(t/n*i<=.5&&(i*=10);!isNaN(i)&&Math.abs(i)<1&&0<Math.abs(i);)i*=10;t=[u1(c1(e[0]/i)*i),u1(h1(e[1]/i)*i)];this._interval=i,this._intervalPrecision=D_(i),this._niceExtent=t}},g1.prototype.calcNiceExtent=function(t){l1.prototype.calcNiceExtent.call(this,t),this._fixMin=t.fixMin,this._fixMax=t.fixMax},g1.prototype.contain=function(t){return t=d1(t)/d1(this.base),l1.prototype.contain.call(this,t)},g1.prototype.normalize=function(t){return t=d1(t)/d1(this.base),l1.prototype.normalize.call(this,t)},g1.prototype.scale=function(t){return t=l1.prototype.scale.call(this,t),p1(this.base,t)},g1.prototype.setBreaksFromOption=function(t){},g1.type="log",g1);function g1(){var t=null!==l1&&l1.apply(this,arguments)||this;return t.type="log",t.base=10,t._originalScale=new Z_,t}function y1(t,e){return u1(t,Co(e))}z_.registerClass(f1);v1.prototype._prepareParams=function(t,e,n){n[1]<n[0]&&(n=[NaN,NaN]),this._dataMin=n[0],this._dataMax=n[1];var i=this._isOrdinal="ordinal"===t.type,r=(this._needCrossZero="interval"===t.type&&e.getNeedCrossZero&&e.getNeedCrossZero(),e.get("min",!0)),r=(null==r&&(r=e.get("startValue",!0)),this._modelMinRaw=r),r=(B(r)?this._modelMinNum=b1(t,r({min:n[0],max:n[1]})):"dataMin"!==r&&(this._modelMinNum=b1(t,r)),this._modelMaxRaw=e.get("max",!0));B(r)?this._modelMaxNum=b1(t,r({min:n[0],max:n[1]})):"dataMax"!==r&&(this._modelMaxNum=b1(t,r)),i?this._axisDataLen=e.getCategories().length:"boolean"==typeof(t=F(n=e.get("boundaryGap"))?n:[n||0,n||0])[0]||"boolean"==typeof t[1]?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[Xr(t[0],1),Xr(t[1],1)]},v1.prototype.calculate=function(){var t=this._isOrdinal,e=this._dataMin,n=this._dataMax,i=this._axisDataLen,r=this._boundaryGapInner,o=t?null:n-e||Math.abs(e),a="dataMin"===this._modelMinRaw?e:this._modelMinNum,s="dataMax"===this._modelMaxRaw?n:this._modelMaxNum,l=null!=a,u=null!=s,e=(null==a&&(a=t?i?0:NaN:e-r[0]*o),null==s&&(s=t?i?i-1:NaN:n+r[1]*o),null!=a&&isFinite(a)||(a=NaN),null!=s&&isFinite(s)||(s=NaN),wt(a)||wt(s)||t&&!i),n=(this._needCrossZero&&(a=0<a&&0<s&&!l?0:a)<0&&s<0&&!u&&(s=0),this._determinedMin),r=this._determinedMax;return null!=n&&(a=n,l=!0),null!=r&&(s=r,u=!0),{min:a,max:s,minFixed:l,maxFixed:u,isBlank:e}},v1.prototype.modifyDataMinMax=function(t,e){this[x1[t]]=e},v1.prototype.setDeterminedMinMax=function(t,e){this[_1[t]]=e},v1.prototype.freeze=function(){this.frozen=!0};var m1=v1;function v1(t,e,n){this._prepareParams(t,e,n)}var _1={min:"_determinedMin",max:"_determinedMax"},x1={min:"_dataMin",max:"_dataMax"};function b1(t,e){return null==e?null:wt(e)?NaN:t.parse(e)}function w1(t,e){var n,i,r,o,a,s=t.type,l=(l=e,u=(h=t).getExtent(),(c=h.rawExtentInfo)||(c=new m1(h,l,u),h.rawExtentInfo=c),c.calculate()),u=(t.setBlank(l.isBlank),l.min),h=l.max,c=e.ecModel;return c&&"time"===s&&(t=e1("bar",c),n=!1,N(t,function(t){n=n||t.getBaseAxis()===e.axis}),n)&&(s=n1(t),c=u,t=h,s=s,a=(i=e).axis.getExtent(),a=Math.abs(a[1]-a[0]),void 0!==(s=function(t,e,n){if(t&&e)return null!=(t=t[t1(e)])&&null!=n?t[J_(n)]:t}(s,i.axis))&&(r=1/0,N(s,function(t){r=Math.min(t.offset,r)}),o=-1/0,N(s,function(t){o=Math.max(t.offset+t.width,o)}),r=Math.abs(r),o=Math.abs(o),t+=o/(i=r+o)*(a=(s=t-c)/(1-(r+o)/a)-s),c-=r/i*a),u=(s={min:c,max:t}).min,h=s.max),{extent:[u,h],fixMin:l.minFixed,fixMax:l.maxFixed}}function S1(t,e){var n=w1(t,e),i=n.extent,r=e.get("splitNumber"),o=(t instanceof f1&&(t.base=e.get("logBase")),t.type),a=e.get("interval"),o="interval"===o||"time"===o;t.setBreaksFromOption(L1(e)),t.setExtent(i[0],i[1]),t.calcNiceExtent({splitNumber:r,fixMin:n.fixMin,fixMax:n.fixMax,minInterval:o?e.get("minInterval"):null,maxInterval:o?e.get("maxInterval"):null}),null!=a&&t.setInterval&&t.setInterval(a)}function M1(t,e){if(e=e||t.get("type"))switch(e){case"category":return new U_({ordinalMeta:t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),extent:[1/0,-1/0]});case"time":return new r1({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC")});default:return new(z_.getClass(e)||Z_)}}function T1(i){var n,r,o=i.getLabelModel().get("formatter");return"time"===i.type?(n=Up(o),function(t,e){return i.scale.getFormattedLabel(t,e,n)}):V(o)?function(t){t=i.scale.getLabel(t);return o.replace("{value}",null!=t?t:"")}:B(o)?"category"===i.type?function(t,e){return o(C1(i,t),t.value-i.scale.getExtent()[0],null)}:(r=Op,function(t,e){var n=null;return r&&(n=r.makeAxisLabelFormatterParamBreak(n,t.break)),o(C1(i,t),e,n)}):function(t){return i.scale.getLabel(t)}}function C1(t,e){return"category"===t.type?t.scale.getLabel(e):e.value}function k1(t){t=t.get("interval");return null==t?"auto":t}function I1(t){return"category"===t.type&&0===k1(t.getLabelModel())}function D1(t){return"middle"===t||"center"===t}function A1(t){return t.getShallow("show")}function L1(t){t.get("breaks",!0)}O1.prototype.getNeedCrossZero=function(){return!this.option.scale},O1.prototype.getCoordSysModel=function(){};var P1=O1;function O1(){}var mp=Object.freeze({__proto__:null,createDimensions:function(t,e){return v_(t,e).dimensions},createList:function(t){return T_(null,t)},createScale:function(t,e){var n=e;return(e=M1(n=e instanceof wp?n:new wp(e))).setExtent(t[0],t[1]),S1(e,n),e},createSymbol:qm,createTextStyle:function(t,e){return tp(t,null,null,"normal"!==(e=e||{}).state)},dataStack:{isDimensionStacked:S_,enableDataStack:w_,getStackedDimension:M_},enableHoverEmphasis:cu,getECData:G,getLayoutRect:Ad,mixinAxisModelCommonMethods:function(t){at(t,P1)}}),R1=[],N1={registerPreprocessor:Iv,registerProcessor:Dv,registerPostInit:Av,registerPostUpdate:Lv,registerUpdateLifecycle:Pv,registerAction:Ov,registerCoordinateSystem:Rv,registerLayout:Nv,registerVisual:Bv,registerTransform:Hv,registerLoading:Fv,registerMap:Vv,registerImpl:function(t,e){C0[t]=e},PRIORITY:Vm,ComponentModel:g,ComponentView:Gy,SeriesModel:Ny,ChartView:Zy,registerComponentModel:function(t){g.registerClass(t)},registerComponentView:function(t){Gy.registerClass(t)},registerSeriesModel:function(t){Ny.registerClass(t)},registerChartView:function(t){Zy.registerClass(t)},registerCustomSeries:function(t,e){},registerSubTypeDefaulter:function(t,e){g.registerSubTypeDefaulter(t,e)},registerPainter:function(t,e){go(t,e)}};function B1(t){F(t)?N(t,function(t){B1(t)}):0<=I(R1,t)||(R1.push(t),(t=B(t)?{install:t}:t).install(N1))}var z1=1e-8;function E1(t,e){return Math.abs(t-e)<z1}function F1(t,e,n){var i=0,r=t[0];if(r){for(var o=1;o<t.length;o++){var a=t[o];i+=Ds(r[0],r[1],a[0],a[1],e,n),r=a}var s=t[0];return E1(r[0],s[0])&&E1(r[1],s[1])||(i+=Ds(r[0],r[1],s[0],s[1],e,n)),0!==i}}var V1=[];function H1(t,e){for(var n=0;n<t.length;n++)re(t[n],t[n],e)}function W1(t,e,n,i){for(var r=0;r<t.length;r++){var o=t[r];(o=i?i.project(o):o)&&isFinite(o[0])&&isFinite(o[1])&&(oe(e,e,o),ae(n,n,o))}}G1.prototype.setCenter=function(t){this._center=t},G1.prototype.getCenter=function(){return this._center||(this._center=this.calcCenter())};Hm=G1;function G1(t){this.name=t}var U1,X1,Y1=function(t,e){this.type="polygon",this.exterior=t,this.interiors=e},q1=function(t){this.type="linestring",this.points=t},Z1=(u(j1,U1=Hm),j1.prototype.calcCenter=function(){for(var t,e=this.geometries,n=0,i=0;i<e.length;i++){var r=e[i],o=r.exterior,o=o&&o.length;n<o&&(t=r,n=o)}if(t){for(var a=t.exterior,s=0,l=0,u=0,h=a.length,c=a[h-1][0],p=a[h-1][1],d=0;d<h;d++){var f=a[d][0],g=a[d][1],y=c*g-f*p;s+=y,l+=(c+f)*y,u+=(p+g)*y,c=f,p=g}return s?[l/s/3,u/s/3,s]:[a[0][0]||0,a[0][1]||0]}var m=this.getBoundingRect();return[m.x+m.width/2,m.y+m.height/2]},j1.prototype.getBoundingRect=function(e){var n,i,t=this._rect;return t&&!e||(n=[1/0,1/0],i=[-1/0,-1/0],N(this.geometries,function(t){"polygon"===t.type?W1(t.exterior,n,i,e):N(t.points,function(t){W1(t,n,i,e)})}),isFinite(n[0])&&isFinite(n[1])&&isFinite(i[0])&&isFinite(i[1])||(n[0]=n[1]=i[0]=i[1]=0),t=new X(n[0],n[1],i[0]-n[0],i[1]-n[1]),e)||(this._rect=t),t},j1.prototype.contain=function(t){var e=this.getBoundingRect(),n=this.geometries;if(e.contain(t[0],t[1]))t:for(var i=0,r=n.length;i<r;i++){var o=n[i];if("polygon"===o.type){var a=o.exterior,s=o.interiors;if(F1(a,t[0],t[1])){for(var l=0;l<(s?s.length:0);l++)if(F1(s[l],t[0],t[1]))continue t;return!0}}}return!1},j1.prototype.transformTo=function(t,e,n,i){for(var r=this.getBoundingRect(),o=r.width/r.height,o=(n?i=i||n/o:n=o*i,new X(t,e,n,i)),a=r.calculateTransform(o),s=this.geometries,l=0;l<s.length;l++){var u=s[l];"polygon"===u.type?(H1(u.exterior,a),N(u.interiors,function(t){H1(t,a)})):N(u.points,function(t){H1(t,a)})}(r=this._rect).copy(o),this._center=[r.x+r.width/2,r.y+r.height/2]},j1.prototype.cloneShallow=function(t){t=new j1(t=null==t?this.name:t,this.geometries,this._center);return t._rect=this._rect,t.transformTo=null,t},j1);function j1(t,e,n){t=U1.call(this,t)||this;return t.type="geoJSON",t.geometries=e,t._center=n&&[n[0],n[1]],t}function K1(t,e){t=X1.call(this,t)||this;return t.type="geoSVG",t._elOnlyForCalculate=e,t}function $1(t,e,n){for(var i=0;i<t.length;i++)t[i]=Q1(t[i],e[i],n)}function Q1(t,e,n){for(var i=[],r=e[0],o=e[1],a=0;a<t.length;a+=2){var s=(s=t.charCodeAt(a)-64)>>1^-(1&s),l=(l=t.charCodeAt(a+1)-64)>>1^-(1&l);i.push([(r=s+=r)/n,(o=l+=o)/n])}return i}function J1(t,o){var e,n,r;return E(ut((t=(e=t).UTF8Encoding?(null==(r=(n=e).UTF8Scale)&&(r=1024),N(n.features,function(t){var e=t.geometry,n=e.encodeOffsets,i=e.coordinates;if(n)switch(e.type){case"LineString":e.coordinates=Q1(i,n,r);break;case"Polygon":case"MultiLineString":$1(i,n,r);break;case"MultiPolygon":N(i,function(t,e){return $1(t,n[e],r)})}}),n.UTF8Encoding=!1,n):e).features,function(t){return t.geometry&&t.properties&&0<t.geometry.coordinates.length}),function(t){var e=t.properties,n=t.geometry,i=[];switch(n.type){case"Polygon":var r=n.coordinates;i.push(new Y1(r[0],r.slice(1)));break;case"MultiPolygon":N(n.coordinates,function(t){t[0]&&i.push(new Y1(t[0],t.slice(1)))});break;case"LineString":i.push(new q1([n.coordinates]));break;case"MultiLineString":i.push(new q1(n.coordinates))}t=new Z1(e[o||"name"],i,e.cp);return t.properties=e,t})}u(K1,X1=Hm),K1.prototype.calcCenter=function(){for(var t=this._elOnlyForCalculate,e=t.getBoundingRect(),e=[e.x+e.width/2,e.y+e.height/2],n=Be(V1),i=t;i&&!i.isGeoSVGGraphicRoot;)Ee(n,i.getLocalTransform(),n),i=i.parent;return We(n,n),re(e,e,n),e};var Wm=Object.freeze({__proto__:null,MAX_SAFE_INTEGER:9007199254740991,asc:function(t){return t.sort(function(t,e){return t-e}),t},getPercentWithPrecision:function(t,e,n){return t[e]&&function(t,e){var n=lt(t,function(t,e){return t+(isNaN(e)?0:e)},0);if(0===n)return[];var i=Math.pow(10,e),e=E(t,function(t){return(isNaN(t)?0:t)/n*i*100}),r=100*i,o=E(e,function(t){return Math.floor(t)}),a=lt(o,function(t,e){return t+e},0),s=E(e,function(t,e){return t-o[e]});for(;a<r;){for(var l=Number.NEGATIVE_INFINITY,u=null,h=0,c=s.length;h<c;++h)s[h]>l&&(l=s[h],u=h);++o[u],s[u]=0,++a}return E(o,function(t){return t/i})}(t,n)[e]||0},getPixelPrecision:Io,getPrecision:Co,getPrecisionSafe:ko,isNumeric:zo,isRadianAroundZero:Ao,linearMap:wo,nice:No,numericToNumber:Bo,parseDate:Po,parsePercent:So,quantile:function(t,e){var e=(t.length-1)*e+1,n=Math.floor(e),i=+t[n-1];return(e=e-n)?i+e*(t[n]-i):i},quantity:Oo,quantityExponent:Ro,reformIntervals:function(t){t.sort(function(t,e){return function t(e,n,i){return e.interval[i]<n.interval[i]||e.interval[i]===n.interval[i]&&(e.close[i]-n.close[i]==(i?-1:1)||!i&&t(e,n,1))}(t,e,0)?-1:1});for(var e=-1/0,n=1,i=0;i<t.length;){for(var r=t[i].interval,o=t[i].close,a=0;a<2;a++)r[a]<=e&&(r[a]=e,o[a]=a?1:1-n),e=r[a],n=o[a];r[0]===r[1]&&o[0]*o[1]!=1?t.splice(i,1):i++}return t},remRadian:Do,round:To}),xa=Object.freeze({__proto__:null,format:qp,parse:Po,roundTime:jp}),gp=Object.freeze({__proto__:null,Arc:Bh,BezierCurve:Ph,BoundingRect:X,Circle:Hu,CompoundPath:Fh,Ellipse:Xu,Group:ao,Image:Ks,IncrementalDisplayable:n,Line:Ch,LinearGradient:Uh,Polygon:mh,Polyline:bh,RadialGradient:Hh,Rect:ol,Ring:ph,Sector:lh,Text:cl,clipPointsByRect:Oc,clipRectByRect:Rc,createIcon:Nc,extendPath:_c,extendShape:mc,getShapeClass:bc,getTransform:Dc,initProps:hc,makeImage:Sc,makePath:wc,mergePath:Tc,registerShape:xc,resizePath:Cc,updateProps:uc}),Vp=Object.freeze({__proto__:null,addCommas:ud,capitalFirst:function(t){return t&&t.charAt(0).toUpperCase()+t.substr(1)},encodeHTML:we,formatTime:function(t,e,n){"week"!==t&&"month"!==t&&"quarter"!==t&&"half-year"!==t&&"year"!==t||(t="MM-dd\nyyyy");var i=(e=Po(e))[(n=n?"getUTC":"get")+"FullYear"](),r=e[n+"Month"]()+1,o=e[n+"Date"](),a=e[n+"Hours"](),s=e[n+"Minutes"](),l=e[n+"Seconds"](),e=e[n+"Milliseconds"]();return t=t.replace("MM",Xp(r,2)).replace("M",r).replace("yyyy",i).replace("yy",Xp(i%100+"",2)).replace("dd",Xp(o,2)).replace("d",o).replace("hh",Xp(a,2)).replace("h",a).replace("mm",Xp(s,2)).replace("m",s).replace("ss",Xp(l,2)).replace("s",l).replace("SSS",Xp(e,3))},formatTpl:gd,getTextRect:function(t,e,n,i,r,o,a,s){return new cl({style:{text:t,font:e,align:n,verticalAlign:i,padding:r,rich:o,overflow:a?"truncate":null,lineHeight:s}}).getBoundingRect()},getTooltipMarker:yd,normalizeCssArray:cd,toCamelCase:hd,truncateText:function(t,e,n,i,r){var o={};return ka(o,t,e,n,i,r),o.text}}),Ic=Object.freeze({__proto__:null,bind:pt,clone:y,curry:dt,defaults:z,each:N,extend:P,filter:ut,indexOf:I,inherits:ot,isArray:F,isFunction:B,isObject:H,isString:V,map:E,merge:d,reduce:lt}),tx=ta(),ex=ta(),nx={estimate:1,determine:2};function ix(t){return{out:{noPxChangeTryDetermine:[]},kind:t}}function rx(e,t){t=E(t,function(t){return e.scale.parse(t)});return"time"===e.type&&0<t.length&&(t.sort(),t.unshift(t[0]),t.push(t[t.length-1])),t}function ox(n,t){var i,e,r,o,a,s=n.getLabelModel().get("customValues");return s?(i=T1(n),e=n.scale.getExtent(),{labels:E(ut(rx(n,s),function(t){return t>=e[0]&&t<=e[1]}),function(t){var e={value:t};return{formattedLabel:i(e),rawLabel:n.scale.getLabel(e),tickValue:t,time:void 0,break:void 0}})}):"category"===n.type?(s=t,a=(t=n).getLabelModel(),s=sx(t,a,s),!a.get("show")||t.scale.isBlank()?{labels:[]}:s):(a=(r=n).scale.getTicks(),o=T1(r),{labels:E(a,function(t,e){return{formattedLabel:o(t,e),rawLabel:r.scale.getLabel(t),tickValue:t.value,time:t.time,break:t.break}})})}function ax(t,e,n){var i,r,o,a,s,l,u=t.getTickModel().get("customValues");return u?(i=t.scale.getExtent(),{ticks:ut(rx(t,u),function(t){return t>=i[0]&&t<=i[1]})}):"category"===t.type?(u=e,a=lx(e=t),s=k1(u),(l=cx(a,s))||(u.get("show")&&!e.scale.isBlank()||(r=[]),r=B(s)?yx(e,s,!0):"auto"===s?(l=sx(e,e.getLabelModel(),ix(nx.determine)),o=l.labelCategoryInterval,E(l.labels,function(t){return t.tickValue})):gx(e,o=s,!0),px(a,s,{ticks:r,tickCategoryInterval:o}))):{ticks:E(t.scale.getTicks(n),function(t){return t.value})}}function sx(t,e,n){var i,r=ux(t),o=k1(e),e=n.kind===nx.estimate;if(!e){var a=cx(r,o);if(a)return a}var s={labels:B(o)?yx(t,o):gx(t,i="auto"===o?function(t,e){{var n;if(e.kind===nx.estimate)return n=t.calculateCategoryInterval(e),e.out.noPxChangeTryDetermine.push(function(){return ex(t).autoInterval=n,!0}),n}var i=ex(t).autoInterval;return null!=i?i:ex(t).autoInterval=t.calculateCategoryInterval(e)}(t,n):o),labelCategoryInterval:i};return e?n.out.noPxChangeTryDetermine.push(function(){return px(r,o,s),!0}):px(r,o,s),s}var lx=hx("axisTick"),ux=hx("axisLabel");function hx(e){return function(t){return ex(t)[e]||(ex(t)[e]={list:[]})}}function cx(t,e){for(var n=0;n<t.list.length;n++)if(t.list[n].key===e)return t.list[n].value}function px(t,e,n){return t.list.push({key:e,value:n}),n}function dx(t,e,n){return null==fx(t,e,n)}function fx(t,e,n){var i=tx(t.model),t=t.getExtent(),r=i.lastAutoInterval,o=i.lastTickCount;if(null!=r&&null!=o&&Math.abs(r-e)<=1&&Math.abs(o-n)<=1&&e<r&&i.axisExtent0===t[0]&&i.axisExtent1===t[1])return r;i.lastTickCount=n,i.lastAutoInterval=e,i.axisExtent0=t[0],i.axisExtent1=t[1]}function gx(t,e,n){for(var i=T1(t),r=t.scale,o=r.getExtent(),a=t.getLabelModel(),s=[],l=Math.max((e||0)+1,1),e=o[0],u=r.count(),u=(0!==e&&1<l&&2<u/l&&(e=Math.round(Math.ceil(e/l)*l)),I1(t)),t=a.get("showMinLabel")||u,a=a.get("showMaxLabel")||u,h=(t&&e!==o[0]&&c(o[0]),e);h<=o[1];h+=l)c(h);function c(t){var e={value:t};s.push(n?t:{formattedLabel:i(e),rawLabel:r.getLabel(e),tickValue:t,time:void 0,break:void 0})}return a&&h-l!==o[1]&&c(o[1]),s}function yx(t,i,r){var o=t.scale,a=T1(t),s=[];return N(o.getTicks(),function(t){var e=o.getLabel(t),n=t.value;i(t.value,e)&&s.push(r?n:{formattedLabel:a(t),rawLabel:e,tickValue:n,time:void 0,break:void 0})}),s}var mx=[0,1],_p=(vx.prototype.contain=function(t){var e=this._extent,n=Math.min(e[0],e[1]),e=Math.max(e[0],e[1]);return n<=t&&t<=e},vx.prototype.containData=function(t){return this.scale.contain(this.scale.parse(t))},vx.prototype.getExtent=function(){return this._extent.slice()},vx.prototype.getPixelPrecision=function(t){return Io(t||this.scale.getExtent(),this._extent)},vx.prototype.setExtent=function(t,e){var n=this._extent;n[0]=t,n[1]=e},vx.prototype.dataToCoord=function(t,e){var n=this._extent,i=this.scale;return t=i.normalize(i.parse(t)),this.onBand&&"ordinal"===i.type&&_x(n=n.slice(),i.count()),wo(t,mx,n,e)},vx.prototype.coordToData=function(t,e){var n=this._extent,i=this.scale,i=(this.onBand&&"ordinal"===i.type&&_x(n=n.slice(),i.count()),wo(t,n,mx,e));return this.scale.scale(i)},vx.prototype.pointToData=function(t,e){},vx.prototype.getTicksCoords=function(t){var e,n,i,r,o,a,s,l=(t=t||{}).tickModel||this.getTickModel(),u=E(ax(this,l,{breakTicks:t.breakTicks,pruneByBreak:t.pruneByBreak}).ticks,function(t){return{coord:this.dataToCoord("ordinal"===this.scale.type?this.scale.getRawOrdinalNumber(t):t),tickValue:t}},this),l=l.get("alignWithLabel");function h(t,e){return t=To(t),e=To(e),a?e<t:t<e}return e=this,n=u,l=l,t=t.clamp,s=n.length,e.onBand&&!l&&s&&(l=e.getExtent(),1===s?(n[0].coord=l[0],n[0].onBand=!0,i=n[1]={coord:l[1],tickValue:n[0].tickValue,onBand:!0}):(o=n[s-1].tickValue-n[0].tickValue,r=(n[s-1].coord-n[0].coord)/o,N(n,function(t){t.coord-=r/2,t.onBand=!0}),e=1+(o=e.scale.getExtent())[1]-n[s-1].tickValue,i={coord:n[s-1].coord+r*e,tickValue:o[1]+1,onBand:!0},n.push(i)),a=l[0]>l[1],h(n[0].coord,l[0])&&(t?n[0].coord=l[0]:n.shift()),t&&h(l[0],n[0].coord)&&n.unshift({coord:l[0],onBand:!0}),h(l[1],i.coord)&&(t?i.coord=l[1]:n.pop()),t)&&h(i.coord,l[1])&&n.push({coord:l[1],onBand:!0}),u},vx.prototype.getMinorTicksCoords=function(){var t;return"ordinal"===this.scale.type?[]:(t=this.model.getModel("minorTick").get("splitNumber"),E(this.scale.getMinorTicks(t=0<t&&t<100?t:5),function(t){return E(t,function(t){return{coord:this.dataToCoord(t),tickValue:t}},this)},this))},vx.prototype.getViewLabels=function(t){return ox(this,t=t||ix(nx.determine)).labels},vx.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},vx.prototype.getTickModel=function(){return this.model.getModel("axisTick")},vx.prototype.getBandWidth=function(){var t=this._extent,e=this.scale.getExtent(),e=e[1]-e[0]+(this.onBand?1:0),t=(0===e&&(e=1),Math.abs(t[1]-t[0]));return Math.abs(t)/e},vx.prototype.calculateCategoryInterval=function(t){t=t||ix(nx.determine);var e=this,n=t.kind,i=(s=(o=e).getLabelModel(),{axisRotate:o.getRotate?o.getRotate():o.isHorizontal&&!o.isHorizontal()?90:0,labelRotate:s.get("rotate")||0,font:s.getFont()}),r=T1(e),o=(i.axisRotate-i.labelRotate)/180*Math.PI,a=(s=e.scale).getExtent(),s=s.count();if(a[1]-a[0]<1)return 0;for(var l=1,u=(40<s&&(l=Math.max(1,Math.floor(s/40))),a[0]),h=e.dataToCoord(u+1)-e.dataToCoord(u),c=Math.abs(h*Math.cos(o)),h=Math.abs(h*Math.sin(o)),p=0,d=0;u<=a[1];u+=l)var f=1.3*(g=Hr(r({value:u}),i.font,"center","top")).width,g=1.3*g.height,p=Math.max(p,f,7),d=Math.max(d,g,7);var o=p/c,c=d/h,h=(isNaN(o)&&(o=1/0),isNaN(c)&&(c=1/0),Math.max(0,Math.floor(Math.min(o,c))));return n===nx.estimate?(t.out.noPxChangeTryDetermine.push(pt(dx,null,e,h,s)),h):null!=(o=fx(e,h,s))?o:h},vx);function vx(t,e,n){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=e,this._extent=n||[0,0]}function _x(t,e){e=(t[1]-t[0])/e/2;t[0]+=e,t[1]-=e}var xx=2*Math.PI,bx=Ms.CMD,Sx=["top","right","bottom","left"];function Mx(t,e,n,i,r,o,a,s){var l=r-t,u=o-e,n=n-t,i=i-e,h=Math.sqrt(n*n+i*i),l=(l*(n/=h)+u*(i/=h))/h,u=(s&&(l=Math.min(Math.max(l,0),1)),a[0]=t+(l*=h)*n),s=a[1]=e+l*i;return Math.sqrt((u-r)*(u-r)+(s-o)*(s-o))}function Tx(t,e,n,i,r,o,a){n<0&&(t+=n,n=-n),i<0&&(e+=i,i=-i);n=t+n,i=e+i,t=a[0]=Math.min(Math.max(r,t),n),n=a[1]=Math.min(Math.max(o,e),i);return Math.sqrt((t-r)*(t-r)+(n-o)*(n-o))}var Cx=[];function kx(t,e,n){for(var i,r,o,a,s,l,u,h,c,p=0,d=0,f=0,g=0,y=1/0,m=e.data,v=t.x,_=t.y,x=0;x<m.length;){var b=m[x++],w=(1===x&&(f=p=m[x],g=d=m[x+1]),y);switch(b){case bx.M:p=f=m[x++],d=g=m[x++];break;case bx.L:w=Mx(p,d,m[x],m[x+1],v,_,Cx,!0),p=m[x++],d=m[x++];break;case bx.C:w=ti(p,d,m[x++],m[x++],m[x++],m[x++],m[x],m[x+1],v,_,Cx),p=m[x++],d=m[x++];break;case bx.Q:w=oi(p,d,m[x++],m[x++],m[x],m[x+1],v,_,Cx),p=m[x++],d=m[x++];break;case bx.A:var S=m[x++],M=m[x++],T=m[x++],C=m[x++],k=m[x++],I=m[x++],D=(x+=1,!!(1-m[x++])),A=Math.cos(k)*T+S,L=Math.sin(k)*C+M;x<=1&&(f=A,g=L),L=(A=k)+I,D=D,a=(v-S)*(o=C)/T+S,s=_,l=Cx,c=h=u=void 0,a-=i=S,s-=r=M,u=Math.sqrt(a*a+s*s),h=(a/=u)*o+i,c=(s/=u)*o+r,w=Math.abs(A-L)%xx<1e-4||((L=D?(D=A,A=ks(L),ks(D)):(A=ks(A),ks(L)))<A&&(L+=xx),(D=Math.atan2(s,a))<0&&(D+=xx),A<=D&&D<=L)||A<=D+xx&&D+xx<=L?(l[0]=h,l[1]=c,u-o):(c=((D=o*Math.cos(A)+i)-a)*(D-a)+((h=o*Math.sin(A)+r)-s)*(h-s))<(i=((u=o*Math.cos(L)+i)-a)*(u-a)+((A=o*Math.sin(L)+r)-s)*(A-s))?(l[0]=D,l[1]=h,Math.sqrt(c)):(l[0]=u,l[1]=A,Math.sqrt(i)),p=Math.cos(k+I)*T+S,d=Math.sin(k+I)*C+M;break;case bx.R:w=Tx(f=p=m[x++],g=d=m[x++],m[x++],m[x++],v,_,Cx);break;case bx.Z:w=Mx(p,d,f,g,v,_,Cx,!0),p=f,d=g}w<y&&(y=w,n.set(Cx[0],Cx[1]))}return y}var Ix=new M,Dx=new M,Ax=new M,Lx=new M,Px=new M;function Ox(t,e){if(t){var n=t.getTextGuideLine(),i=t.getTextContent();if(i&&n){var r=t.textGuideLineConfig||{},o=[[0,0],[0,0],[0,0]],a=r.candidates||Sx,s=i.getBoundingRect().clone(),l=(s.applyTransform(i.getComputedTransform()),1/0),u=r.anchor,h=t.getComputedTransform(),c=h&&We([],h),p=e.get("length2")||0;u&&Ax.copy(u);for(var d,f,g=0;g<a.length;g++){var y=a[g],m=(S=w=b=x=_=v=m=void 0,y),v=0,_=s,x=Ix,b=Lx,w=_.width,S=_.height;switch(m){case"top":x.set(_.x+w/2,_.y-v),b.set(0,-1);break;case"bottom":x.set(_.x+w/2,_.y+S+v),b.set(0,1);break;case"left":x.set(_.x-v,_.y+S/2),b.set(-1,0);break;case"right":x.set(_.x+w+v,_.y+S/2),b.set(1,0)}M.scaleAndAdd(Dx,Ix,Lx,p),Dx.transform(c);y=t.getBoundingRect(),y=u?u.distance(Dx):t instanceof Ws?kx(Dx,t.path,Ax):(m=Ax,d=Tx((d=y).x,y.y,y.width,y.height,Dx.x,Dx.y,Cx),m.set(Cx[0],Cx[1]),d);y<l&&(l=y,Dx.transform(h),Ax.transform(h),Ax.toArray(o[0]),Dx.toArray(o[1]),Ix.toArray(o[2]))}i=o,(r=e.get("minTurnAngle"))<=180&&0<r&&(r=r/180*Math.PI,Ix.fromArray(i[0]),Dx.fromArray(i[1]),Ax.fromArray(i[2]),M.sub(Lx,Ix,Dx),M.sub(Px,Ax,Dx),e=Lx.len(),f=Px.len(),e<.001||f<.001||(Lx.scale(1/e),Px.scale(1/f),e=Lx.dot(Px),Math.cos(r)<e&&(f=Mx(Dx.x,Dx.y,Ax.x,Ax.y,Ix.x,Ix.y,Rx,!1),Nx.fromArray(Rx),Nx.scaleAndAdd(Px,f/Math.tan(Math.PI-r)),e=Ax.x!==Dx.x?(Nx.x-Dx.x)/(Ax.x-Dx.x):(Nx.y-Dx.y)/(Ax.y-Dx.y),isNaN(e)||(e<0?M.copy(Nx,Dx):1<e&&M.copy(Nx,Ax),Nx.toArray(i[1]))))),n.setShape({points:o})}}}var Rx=[],Nx=new M;function Bx(t,e,n,i){var r="normal"===n,n=r?t:t.ensureState(n),e=(n.ignore=e,i.get("smooth")),e=(e&&!0===e&&(e=.3),n.shape=n.shape||{},0<e&&(n.shape.smooth=e),i.getModel("lineStyle").getLineStyle());r?t.useStyle(e):n.style=e}function zx(t,e){var n=e.smooth,i=e.points;if(i)if(t.moveTo(i[0][0],i[0][1]),0<n&&3<=i.length){var e=te(i[0],i[1]),r=te(i[1],i[2]);e&&r?(n=Math.min(e,r)*n,e=ie([],i[1],i[0],n/e),n=ie([],i[1],i[2],n/r),r=ie([],e,n,.5),t.bezierCurveTo(e[0],e[1],e[0],e[1],r[0],r[1]),t.bezierCurveTo(n[0],n[1],n[0],n[1],i[2][0],i[2][1])):(t.lineTo(i[1][0],i[1][1]),t.lineTo(i[2][0],i[2][1]))}else for(var o=1;o<i.length;o++)t.lineTo(i[o][0],i[o][1])}var Ex=["label","labelLine","layoutOption","priority","defaultAttr","marginForce","minMarginForce","marginDefault","suggestIgnore"],Fx=2,Vx=1|Fx;function Hx(t,e,n){n=n||Vx,e?t.dirty|=n:t.dirty&=~n}function Wx(t,e){return e=e||Vx,null==t.dirty||t.dirty&e}function Gx(t){if(t){if(Wx(t)){var e=t,n=t.label,i=t,r=n.getComputedTransform(),o=(e.transform=Xc(e.transform,r),e.localRect=Uc(e.localRect,n.getBoundingRect())),a=n.style,s=a.margin,l=i&&i.marginForce,u=i&&i.minMarginForce,i=i&&i.marginDefault,h=a.__marginType;null==h&&i&&(s=i,h=lp.textMargin);for(var c=0;c<4;c++)Ux[c]=h===lp.minMargin&&u&&null!=u[c]?u[c]:l&&null!=l[c]?l[c]:s?s[c]:0;h===lp.textMargin&&zc(o,Ux,!1,!1),a=e.rect=Uc(e.rect,o),r&&a.applyTransform(r),h===lp.minMargin&&zc(a,Ux,!1,!1),e.axisAligned=Gc(r),(e.label=e.label||{}).ignore=n.ignore,Hx(e,!1),Hx(e,!0,Fx)}return t}}var Ux=[0,0,0,0];function Xx(t,e){for(var n=0;n<Ex.length;n++){var i=Ex[n];null==t[i]&&(t[i]=e[i])}return Gx(t)}function Yx(t){var e=t.obb;return e&&!Wx(t,Fx)||(t.obb=e=e||new nc,e.fromBoundingRect(t.localRect,t.transform),Hx(t,!1,Fx)),e}function qx(s,t,e,n,i){var l=s.length,u=gc[t],h=yc[t];if(!(l<2)){s.sort(function(t,e){return t.rect[u]-e.rect[u]});for(var r=0,o=0,a=0;a<l;a++){var c,p=s[a],d=p.rect;(c=d[u]-r)<0&&(d[u]-=c,p.label[u]-=c,0),o+=Math.max(-c,0),r=d[u]+d[h]}0<o&&i&&x(-o/l,0,l);var f,g,y=s[0],m=s[l-1];v(),f<0&&b(-f,.8),g<0&&b(g,.8),v(),_(f,g,1),_(g,f,-1),v(),f<0&&w(-f),g<0&&w(g)}function v(){f=y.rect[u]-e,g=n-m.rect[u]-m.rect[h]}function _(t,e,n){t<0&&(0<(e=Math.min(e,-t))?(x(e*n,0,l),(e=e+t)<0&&b(-e*n,1)):b(-t*n,1))}function x(t,e,n){0!==t&&0;for(var i=e;i<n;i++){var r=s[i];r.rect[u]+=t,r.label[u]+=t}}function b(t,e){for(var n=[],i=0,r=1;r<l;r++){var o=s[r-1].rect,o=Math.max(s[r].rect[u]-o[u]-o[h],0);n.push(o),i+=o}if(i){var a=Math.min(Math.abs(t)/i,e);if(0<t)for(r=0;r<l-1;r++)x(n[r]*a,0,r+1);else for(r=l-1;0<r;r--)x(-(n[r-1]*a),r,l)}}function w(t){for(var e=t<0?-1:1,n=(t=Math.abs(t),Math.ceil(t/(l-1))),i=0;i<l-1;i++)if(0<e?x(n,0,i+1):x(-n,l-i-1,l),(t-=n)<=0)return}}function Zx(t){var e=[];function n(t){var e;t.ignore||null==(e=t.ensureState("emphasis")).ignore&&(e.ignore=!1),t.ignore=!0}t.sort(function(t,e){return(e.suggestIgnore?1:0)-(t.suggestIgnore?1:0)||e.priority-t.priority});for(var i=0;i<t.length;i++){var r=Gx(t[i]);if(!r.label.ignore){for(var o=r.label,a=r.labelLine,s=!1,l=0;l<e.length;l++)if(jx(r,e[l],null,{touchThreshold:.05})){s=!0;break}s?(n(o),a&&n(a)):e.push(r)}}}function jx(t,e,n,i){return t&&e&&!(t.label&&t.label.ignore||e.label&&e.label.ignore)&&t.rect.intersect(e.rect,n,i)&&(t.axisAligned&&e.axisAligned||Yx(t).intersect(Yx(e),n,i))}function Kx(t,e){var n=t.label,e=e&&e.getTextGuideLine();return{dataIndex:t.dataIndex,dataType:t.dataType,seriesIndex:t.seriesModel.seriesIndex,text:t.label.style.text,rect:t.hostRect,labelRect:t.rect,align:n.style.align,verticalAlign:n.style.verticalAlign,labelLinePoints:function(t){if(t){for(var e=[],n=0;n<t.length;n++)e.push(t[n].slice());return e}}(e&&e.shape.points)}}var $x=["align","verticalAlign","width","height","fontSize"],Qx=new Lr,Jx=ta(),tb=ta();function eb(t,e,n){for(var i=0;i<n.length;i++){var r=n[i];null!=e[r]&&(t[r]=e[r])}}var nb=["x","y","rotation"],ib=(rb.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},rb.prototype._addLabel=function(t,e,n,i,r){var o,a=i.style,s=i.__hostTarget.textConfig||{},l=i.getComputedTransform(),u=i.getBoundingRect().plain(),l=(X.applyTransform(u,u,l),l?Qx.setLocalTransform(l):(Qx.x=Qx.y=Qx.rotation=Qx.originX=Qx.originY=0,Qx.scaleX=Qx.scaleY=1),Qx.rotation=ks(Qx.rotation),i.__hostTarget),h=(l&&(o=l.getBoundingRect().plain(),h=l.getComputedTransform(),X.applyTransform(o,o,h)),o&&l.getTextGuideLine());this._labelList.push({label:i,labelLine:h,seriesModel:n,dataIndex:t,dataType:e,layoutOptionOrCb:r,layoutOption:null,rect:u,hostRect:o,priority:o?o.width*o.height:0,defaultAttr:{ignore:i.ignore,labelGuideIgnore:h&&h.ignore,x:Qx.x,y:Qx.y,scaleX:Qx.scaleX,scaleY:Qx.scaleY,rotation:Qx.rotation,style:{x:a.x,y:a.y,align:a.align,verticalAlign:a.verticalAlign,width:a.width,height:a.height,fontSize:a.fontSize},cursor:i.cursor,attachedPos:s.position,attachedRot:s.rotation}})},rb.prototype.addLabelsOfSeries=function(t){var n=this,i=(this._chartViewList.push(t),t.__model),r=i.get("labelLayout");(B(r)||ct(r).length)&&t.group.traverse(function(t){if(t.ignore)return!0;var e=t.getTextContent(),t=G(t);e&&!e.disableLabelLayout&&n._addLabel(t.dataIndex,t.dataType,i,e,r)})},rb.prototype.updateLayoutConfig=function(t){var e=t.getWidth(),n=t.getHeight();for(var i=0;i<this._labelList.length;i++){var r=this._labelList[i],o=r.label,a=o.__hostTarget,s=r.defaultAttr,l=void 0,l=B(r.layoutOptionOrCb)?r.layoutOptionOrCb(Kx(r,a)):r.layoutOptionOrCb,u=(r.layoutOption=l=l||{},Math.PI/180),h=(a&&a.setTextConfig({local:!1,position:null!=l.x||null!=l.y?null:s.attachedPos,rotation:null!=l.rotate?l.rotate*u:s.attachedRot,offset:[l.dx||0,l.dy||0]}),!1);null!=l.x?(o.x=So(l.x,e),o.setStyle("x",0),h=!0):(o.x=s.x,o.setStyle("x",s.style.x)),null!=l.y?(o.y=So(l.y,n),o.setStyle("y",0),h=!0):(o.y=s.y,o.setStyle("y",s.style.y)),l.labelLinePoints&&(c=a.getTextGuideLine())&&(c.setShape({points:l.labelLinePoints}),h=!1),Jx(o).needsUpdateLabelLine=h,o.rotation=null!=l.rotate?l.rotate*u:s.rotation,o.scaleX=s.scaleX,o.scaleY=s.scaleY;for(var c,p=0;p<$x.length;p++){var d=$x[p];o.setStyle(d,(null!=l[d]?l:s.style)[d])}l.draggable?(o.draggable=!0,o.cursor="move",a&&(c=r.seriesModel,null!=r.dataIndex&&(c=r.seriesModel.getData(r.dataType).getItemModel(r.dataIndex)),o.on("drag",function(t,e){return function(){Ox(t,e)}}(a,c.getModel("labelLine"))))):(o.off("drag"),o.cursor=s.cursor)}},rb.prototype.layout=function(t){for(var e=t.getWidth(),t=t.getHeight(),n=[],i=(N(this._labelList,function(t){t.defaultAttr.ignore||n.push(Xx({},t))}),ut(n,function(t){return"shiftX"===t.layoutOption.moveOverlap})),r=ut(n,function(t){return"shiftY"===t.layoutOption.moveOverlap}),i=(qx(i,0,0,e),qx(r,1,0,t),ut(n,function(t){return t.layoutOption.hideOverlap})),o=i,a=0;a<o.length;a++){var s=o[a],l=s.defaultAttr,u=s.labelLine;s.label.attr("ignore",l.ignore),u&&u.attr("ignore",l.labelGuideIgnore)}Zx(i)},rb.prototype.processLabelsOverall=function(){var a=this;N(this._chartViewList,function(t){var i=t.__model,r=t.ignoreLabelLineUpdate,o=i.isAnimationEnabled();t.group.traverse(function(t){if(t.ignore&&!t.forceLabelAnimation)return!0;var e=!r,n=t.getTextContent();(e=!e&&n?Jx(n).needsUpdateLabelLine:e)&&a._updateLabelLine(t,i),o&&a._animateLabels(t,i)})})},rb.prototype._updateLabelLine=function(t,e){var n=t.getTextContent(),i=G(t),r=i.dataIndex;if(n&&null!=r){var n=e.getData(i.dataType),e=n.getItemModel(r),i={},r=n.getItemVisual(r,"style"),r=(r&&(n=n.getVisual("drawType"),i.stroke=r[n]),e.getModel("labelLine")),o=t,a=function(t,e){for(var n={normal:t.getModel(e=e||"labelLine")},i=0;i<Al.length;i++){var r=Al[i];n[r]=t.getModel([r,e])}return n}(e),n=i,s=o.getTextGuideLine(),l=o.getTextContent();if(l){for(var e=a.normal,u=e.get("show"),h=l.ignore,c=0;c<Ll.length;c++){var p,d=Ll[c],f=a[d],g="normal"===d;f&&(p=f.get("show"),(g?h:W(l.states[d]&&l.states[d].ignore,h))||!W(p,u)?((p=g?s:s&&s.states[d])&&(p.ignore=!0),s&&Bx(s,!0,d,f)):(s||(s=new bh,o.setTextGuideLine(s),g||!h&&u||Bx(s,!0,"normal",a.normal),o.stateProxy&&(s.stateProxy=o.stateProxy)),Bx(s,!1,d,f)))}s&&(z(s.style,n),s.style.fill=null,n=e.get("showAbove"),(o.textGuideLineConfig=o.textGuideLineConfig||{}).showAbove=n||!1,s.buildPath=zx)}else s&&o.removeTextGuideLine();Ox(t,r)}},rb.prototype._animateLabels=function(t,e){var n,i,r,o,a,s=t.getTextContent(),l=t.getTextGuideLine();!s||!t.forceLabelAnimation&&(s.ignore||s.invisible||t.disableLabelAnimation||cc(t))||(o=(r=Jx(s)).oldLayout,n=(i=G(t)).dataIndex,a={x:s.x,y:s.y,rotation:s.rotation},i=e.getData(i.dataType),o?(s.attr(o),(t=t.prevStates)&&(0<=I(t,"select")&&s.attr(r.oldLayoutSelect),0<=I(t,"emphasis"))&&s.attr(r.oldLayoutEmphasis),uc(s,a,e,n)):(s.attr(a),ap(s).valueAnimation||(t=W(s.style.opacity,1),s.style.opacity=0,hc(s,{style:{opacity:t}},e,n))),r.oldLayout=a,s.states.select&&(eb(t=r.oldLayoutSelect={},a,nb),eb(t,s.states.select,nb)),s.states.emphasis&&(eb(t=r.oldLayoutEmphasis={},a,nb),eb(t,s.states.emphasis,nb)),sp(s,n,i,e,e)),!l||l.ignore||l.invisible||(o=(r=tb(l)).oldLayout,a={points:l.shape.points},o?(l.attr({shape:o}),uc(l,{shape:a},e)):(l.setShape(a),l.style.strokePercent=0,hc(l,{style:{strokePercent:1}},e)),r.oldLayout=a)},rb);function rb(){this._labelList=[],this._chartViewList=[]}var ob=ta();function ab(t){t.registerUpdateLifecycle("series:beforeupdate",function(t,e,n){(ob(e).labelManager||(ob(e).labelManager=new ib)).clearLabels()}),t.registerUpdateLifecycle("series:layoutlabels",function(t,e,n){var i=ob(e).labelManager;n.updatedSeries.forEach(function(t){i.addLabelsOfSeries(e.getViewOfSeriesModel(t))}),i.updateLayoutConfig(e),i.layout(e),i.processLabelsOverall()})}function sb(t,e,n){var i=U.createCanvas(),r=e.getWidth(),e=e.getHeight(),o=i.style;return o&&(o.position="absolute",o.left="0",o.top="0",o.width=r+"px",o.height=e+"px",i.setAttribute("data-zr-dom-id",t)),i.width=r*n,i.height=e*n,i}B1(ab);u(hb,lb=ce),hb.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},hb.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},hb.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},hb.prototype.setUnpainted=function(){this.__firstTimePaint=!0},hb.prototype.createBackBuffer=function(){var t=this.dpr;this.domBack=sb("back-"+this.id,this.painter,t),this.ctxBack=this.domBack.getContext("2d"),1!==t&&this.ctxBack.scale(t,t)},hb.prototype.createRepaintRects=function(t,e,n,i){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var l=[],u=this.maxRepaintRectCount,h=!1,c=new X(0,0,0,0);function r(t){if(t.isFinite()&&!t.isZero())if(0===l.length)(e=new X(0,0,0,0)).copy(t),l.push(e);else{for(var e,n=!1,i=1/0,r=0,o=0;o<l.length;++o){var a=l[o];if(a.intersect(t)){var s=new X(0,0,0,0);s.copy(a),s.union(t),l[o]=s,n=!0;break}h&&(c.copy(t),c.union(a),s=t.width*t.height,a=a.width*a.height,(a=c.width*c.height-s-a)<i)&&(i=a,r=o)}h&&(l[r].union(t),n=!0),n||((e=new X(0,0,0,0)).copy(t),l.push(e)),h=h||l.length>=u}}for(var o,a=this.__startIndex;a<this.__endIndex;++a)(s=t[a])&&(d=s.shouldBePainted(n,i,!0,!0),(p=s.__isRendered&&(s.__dirty&An||!d)?s.getPrevPaintRect():null)&&r(p),o=d&&(s.__dirty&An||!s.__isRendered)?s.getPaintRect():null)&&r(o);for(a=this.__prevStartIndex;a<this.__prevEndIndex;++a){var s,p,d=(s=e[a])&&s.shouldBePainted(n,i,!0,!0);!s||d&&s.__zr||!s.__isRendered||(p=s.getPrevPaintRect())&&r(p)}do{for(var f=!1,a=0;a<l.length;)if(l[a].isZero())l.splice(a,1);else{for(var g=a+1;g<l.length;)l[a].intersect(l[g])?(f=!0,l[a].union(l[g]),l.splice(g,1)):g++;a++}}while(f);return this._paintRects=l},hb.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},hb.prototype.resize=function(t,e){var n=this.dpr,i=this.dom,r=i.style,o=this.domBack;r&&(r.width=t+"px",r.height=e+"px"),i.width=t*n,i.height=e*n,o&&(o.width=t*n,o.height=e*n,1!==n)&&this.ctxBack.scale(n,n)},hb.prototype.clear=function(t,o,e){var n=this.dom,a=this.ctx,i=n.width,r=n.height,s=(o=o||this.clearColor,this.motionBlur&&!t),l=this.lastFrameAlpha,u=this.dpr,h=this,c=(s&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(n,0,0,i/u,r/u)),this.domBack);function p(t,e,n,i){var r;a.clearRect(t,e,n,i),o&&"transparent"!==o&&(r=void 0,_t(o)?(r=(o.global||o.__width===n&&o.__height===i)&&o.__canvasGradient||Km(a,o,{x:0,y:0,width:n,height:i}),o.__canvasGradient=r,o.__width=n,o.__height=i):xt(o)&&(o.scaleX=o.scaleX||u,o.scaleY=o.scaleY||u,r=a0(a,o,{dirty:function(){h.setUnpainted(),h.painter.refresh()}})),a.save(),a.fillStyle=r||o,a.fillRect(t,e,n,i),a.restore()),s&&(a.save(),a.globalAlpha=l,a.drawImage(c,t,e,n,i),a.restore())}!e||s?p(0,0,i,r):e.length&&N(e,function(t){p(t.x*u,t.y*u,t.width*u,t.height*u)})};var lb,ub=hb;function hb(t,e,n){var i,r=lb.call(this)||this,t=(r.motionBlur=!1,r.lastFrameAlpha=.7,r.dpr=1,r.virtual=!1,r.config={},r.incremental=!1,r.zlevel=0,r.maxRepaintRectCount=5,r.__dirty=!0,r.__firstTimePaint=!0,r.__used=!1,r.__drawIndex=0,r.__startIndex=0,r.__endIndex=0,r.__prevStartIndex=null,r.__prevEndIndex=null,n=n||wr,"string"==typeof t?i=sb(t,e,n):H(t)&&(t=(i=t).id),r.id=t,(r.dom=i).style);return t&&(Ft(i),i.onselectstart=function(){return!1},t.padding="0",t.margin="0",t.borderWidth="0"),r.painter=e,r.dpr=n,r}var cb=314159;_.prototype.getType=function(){return"canvas"},_.prototype.isSingleCanvas=function(){return this._singleCanvas},_.prototype.getViewportRoot=function(){return this._domRoot},_.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},_.prototype.refresh=function(t){var e=this.storage.getDisplayList(!0),n=this._prevDisplayList,i=this._zlevelList;this._redrawId=Math.random(),this._paintList(e,n,t,this._redrawId);for(var r=0;r<i.length;r++){var o,a=i[r],a=this._layers[a];!a.__builtin__&&a.refresh&&(o=0===r?this._backgroundColor:null,a.refresh(o))}return this._opts.useDirtyRect&&(this._prevDisplayList=e.slice()),this},_.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},_.prototype._paintHoverList=function(t){var e=t.length,n=this._hoverlayer;if(n&&n.clear(),e){for(var i,r={inHover:!0,viewWidth:this._width,viewHeight:this._height},o=0;o<e;o++){var a=t[o];a.__inHover&&(n=n||(this._hoverlayer=this.getLayer(1e5)),i||(i=n.ctx).save(),_0(i,a,r,o===e-1))}i&&i.restore()}},_.prototype.getHoverLayer=function(){return this.getLayer(1e5)},_.prototype.paintOne=function(t,e){v0(t,e)},_.prototype._paintList=function(t,e,n,i){var r,o,a;this._redrawId===i&&(n=n||!1,this._updateLayerStatus(t),r=(o=this._doPaintList(t,e,n)).finished,o=o.needsRefreshHover,this._needsManuallyCompositing&&this._compositeManually(),o&&this._paintHoverList(t),r?this.eachLayer(function(t){t.afterBrush&&t.afterBrush()}):(a=this,zn(function(){a._paintList(t,e,n,i)})))},_.prototype._compositeManually=function(){var e=this.getLayer(cb).ctx,n=this._domRoot.width,i=this._domRoot.height;e.clearRect(0,0,n,i),this.eachBuiltinLayer(function(t){t.virtual&&e.drawImage(t.dom,0,0,n,i)})},_.prototype._doPaintList=function(d,f,g){for(var y=this,m=[],v=this._opts.useDirtyRect,t=0;t<this._zlevelList.length;t++){var e=this._zlevelList[t],e=this._layers[e];e.__builtin__&&e!==this._hoverlayer&&(e.__dirty||g)&&m.push(e)}for(var _=!0,x=!1,n=function(t){function e(t){var e={inHover:!1,allClipped:!1,prevEl:null,viewWidth:y._width,viewHeight:y._height};for(i=s;i<r.__endIndex;i++){var n=d[i];if(n.__inHover&&(x=!0),y._doPaintEl(n,r,v,t,e,i===r.__endIndex-1),l)if(15<Date.now()-u)break}e.prevElClipPaths&&o.restore()}var n,i,r=m[t],o=r.ctx,a=v&&r.createRepaintRects(d,f,b._width,b._height),s=g?r.__startIndex:r.__drawIndex,l=!g&&r.incremental&&Date.now,u=l&&Date.now(),t=r.zlevel===b._zlevelList[0]?b._backgroundColor:null;r.__startIndex!==r.__endIndex&&(s!==r.__startIndex||(n=d[s]).incremental&&n.notClear&&!g)||r.clear(!1,t,a),-1===s&&(console.error("For some unknown reason. drawIndex is -1"),s=r.__startIndex);if(a)if(0===a.length)i=r.__endIndex;else for(var h=b.dpr,c=0;c<a.length;++c){var p=a[c];o.save(),o.beginPath(),o.rect(p.x*h,p.y*h,p.width*h,p.height*h),o.clip(),e(p),o.restore()}else o.save(),e(),o.restore();r.__drawIndex=i,r.__drawIndex<r.__endIndex&&(_=!1)},b=this,i=0;i<m.length;i++)n(i);return w.wxa&&N(this._layers,function(t){t&&t.ctx&&t.ctx.draw&&t.ctx.draw()}),{finished:_,needsRefreshHover:x}},_.prototype._doPaintEl=function(t,e,n,i,r,o){e=e.ctx;n?(n=t.getPaintRect(),(!i||n&&n.intersect(i))&&(_0(e,t,r,o),t.setPrevPaintRect(n))):_0(e,t,r,o)},_.prototype.getLayer=function(t,e){this._singleCanvas&&!this._needsManuallyCompositing&&(t=cb);var n=this._layers[t];return n||((n=new ub("zr_"+t,this,this.dpr)).zlevel=t,n.__builtin__=!0,this._layerConfig[t]?d(n,this._layerConfig[t],!0):this._layerConfig[t-.01]&&d(n,this._layerConfig[t-.01],!0),e&&(n.virtual=e),this.insertLayer(t,n),n.initContext()),n},_.prototype.insertLayer=function(t,e){var n,i=this._layers,r=this._zlevelList,o=r.length,a=this._domRoot,s=null,l=-1;if(!i[t]&&(n=e)&&(n.__builtin__||"function"==typeof n.resize&&"function"==typeof n.refresh)){if(0<o&&t>r[0]){for(l=0;l<o-1&&!(r[l]<t&&r[l+1]>t);l++);s=i[r[l]]}r.splice(l+1,0,t),(i[t]=e).virtual||(s?(n=s.dom).nextSibling?a.insertBefore(e.dom,n.nextSibling):a.appendChild(e.dom):a.firstChild?a.insertBefore(e.dom,a.firstChild):a.appendChild(e.dom)),e.painter||(e.painter=this)}},_.prototype.eachLayer=function(t,e){for(var n=this._zlevelList,i=0;i<n.length;i++){var r=n[i];t.call(e,this._layers[r],r)}},_.prototype.eachBuiltinLayer=function(t,e){for(var n=this._zlevelList,i=0;i<n.length;i++){var r=n[i],o=this._layers[r];o.__builtin__&&t.call(e,o,r)}},_.prototype.eachOtherLayer=function(t,e){for(var n=this._zlevelList,i=0;i<n.length;i++){var r=n[i],o=this._layers[r];o.__builtin__||t.call(e,o,r)}},_.prototype.getLayers=function(){return this._layers},_.prototype._updateLayerStatus=function(t){function e(t){r&&(r.__endIndex!==t&&(r.__dirty=!0),r.__endIndex=t)}if(this.eachBuiltinLayer(function(t,e){t.__dirty=t.__used=!1}),this._singleCanvas)for(var n=1;n<t.length;n++)if((s=t[n]).zlevel!==t[n-1].zlevel||s.incremental){this._needsManuallyCompositing=!0;break}for(var i,r=null,o=0,a=0;a<t.length;a++){var s,l=(s=t[a]).zlevel,u=void 0;i!==l&&(i=l,o=0),s.incremental?((u=this.getLayer(l+.001,this._needsManuallyCompositing)).incremental=!0,o=1):u=this.getLayer(l+(0<o?.01:0),this._needsManuallyCompositing),u.__builtin__||it("ZLevel "+l+" has been used by unkown layer "+u.id),u!==r&&(u.__used=!0,u.__startIndex!==a&&(u.__dirty=!0),u.__startIndex=a,u.incremental?u.__drawIndex=-1:u.__drawIndex=a,e(a),r=u),s.__dirty&An&&!s.__inHover&&(u.__dirty=!0,u.incremental)&&u.__drawIndex<0&&(u.__drawIndex=a)}e(a),this.eachBuiltinLayer(function(t,e){!t.__used&&0<t.getElementCount()&&(t.__dirty=!0,t.__startIndex=t.__endIndex=t.__drawIndex=0),t.__dirty&&t.__drawIndex<0&&(t.__drawIndex=t.__startIndex)})},_.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},_.prototype._clearLayer=function(t){t.clear()},_.prototype.setBackgroundColor=function(t){this._backgroundColor=t,N(this._layers,function(t){t.setUnpainted()})},_.prototype.configLayer=function(t,e){if(e){var n=this._layerConfig;n[t]?d(n[t],e,!0):n[t]=e;for(var i=0;i<this._zlevelList.length;i++){var r=this._zlevelList[i];r!==t&&r!==t+.01||d(this._layers[r],n[t],!0)}}},_.prototype.delLayer=function(t){var e=this._layers,n=this._zlevelList,i=e[t];i&&(i.dom.parentNode.removeChild(i.dom),delete e[t],n.splice(I(n,t),1))},_.prototype.resize=function(t,e){if(this._domRoot.style){var n=this._domRoot,i=(n.style.display="none",this._opts),r=this.root;if(null!=t&&(i.width=t),null!=e&&(i.height=e),t=Qm(r,0,i),e=Qm(r,1,i),n.style.display="",this._width!==t||e!==this._height){for(var o in n.style.width=t+"px",n.style.height=e+"px",this._layers)this._layers.hasOwnProperty(o)&&this._layers[o].resize(t,e);this.refresh(!0)}this._width=t,this._height=e}else{if(null==t||null==e)return;this._width=t,this._height=e,this.getLayer(cb).resize(t,e)}return this},_.prototype.clearLayer=function(t){t=this._layers[t];t&&t.clear()},_.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},_.prototype.getRenderedCanvas=function(t){if(this._singleCanvas&&!this._compositeManually)return this._layers[cb].dom;var e=new ub("image",this,(t=t||{}).pixelRatio||this.dpr),n=(e.initContext(),e.clear(!1,t.backgroundColor||this._backgroundColor),e.ctx);if(t.pixelRatio<=this.dpr){this.refresh();var i=e.dom.width,r=e.dom.height;this.eachLayer(function(t){t.__builtin__?n.drawImage(t.dom,0,0,i,r):t.renderToCanvas&&(n.save(),t.renderToCanvas(n),n.restore())})}else for(var o={inHover:!1,viewWidth:this._width,viewHeight:this._height},a=this.storage.getDisplayList(!0),s=0,l=a.length;s<l;s++){var u=a[s];_0(n,u,o,s===l-1)}return e.dom},_.prototype.getWidth=function(){return this._width},_.prototype.getHeight=function(){return this._height};var pb=_;function _(t,e,n,i){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var r=!t.nodeName||"CANVAS"===t.nodeName.toUpperCase();this._opts=n=P({},n||{}),this.dpr=n.devicePixelRatio||wr,this._singleCanvas=r;(this.root=t).style&&(Ft(t),t.innerHTML=""),this.storage=e;var o,a,e=this._zlevelList,s=(this._prevDisplayList=[],this._layers);r?(o=(r=t).width,a=r.height,null!=n.width&&(o=n.width),null!=n.height&&(a=n.height),this.dpr=n.devicePixelRatio||1,r.width=o*this.dpr,r.height=a*this.dpr,this._width=o,this._height=a,(o=new ub(r,this,this.dpr)).__builtin__=!0,o.initContext(),(s[cb]=o).zlevel=cb,e.push(cb),this._domRoot=t):(this._width=Qm(t,0,n),this._height=Qm(t,1,n),o=this._domRoot=(a=this._width,r=this._height,(s=document.createElement("div")).style.cssText=["position:relative","width:"+a+"px","height:"+r+"px","padding:0","margin:0","border-width:0"].join(";")+";",s),t.appendChild(o))}u(gb,db=g),gb.prototype.init=function(t,e,n){db.prototype.init.call(this,t,e,n),this._sourceManager=new hy(this),py(this)},gb.prototype.mergeOption=function(t,e){db.prototype.mergeOption.call(this,t,e),py(this)},gb.prototype.optionUpdated=function(){this._sourceManager.dirty()},gb.prototype.getSourceManager=function(){return this._sourceManager},gb.type="dataset",gb.defaultOption={seriesLayoutBy:ef};var db,fb=gb;function gb(){var t=null!==db&&db.apply(this,arguments)||this;return t.type="dataset",t}u(vb,yb=Gy),vb.type="dataset";var yb,mb=vb;function vb(){var t=null!==yb&&yb.apply(this,arguments)||this;return t.type="dataset",t}function _b(t){t.registerComponentModel(fb),t.registerComponentView(mb)}B1([function(t){t.registerPainter("canvas",pb)},_b]),B1(ab);u(wb,xb=Ny),wb.prototype.getInitialData=function(t){return T_(null,this,{useEncodeDefaulter:!0})},wb.prototype.getLegendIcon=function(t){var e=new ao,n=qm("line",0,t.itemHeight/2,t.itemWidth,0,t.lineStyle.stroke,!1),n=(e.add(n),n.setStyle(t.lineStyle),this.getData().getVisual("symbol")),i=this.getData().getVisual("symbolRotate"),n="none"===n?"circle":n,r=.8*t.itemHeight,r=qm(n,(t.itemWidth-r)/2,(t.itemHeight-r)/2,r,r,t.itemStyle.fill),i=(e.add(r),r.setStyle(t.itemStyle),"inherit"===t.iconRotate?i:t.iconRotate||0);return r.rotation=i*Math.PI/180,r.setOrigin([t.itemWidth/2,t.itemHeight/2]),-1<n.indexOf("empty")&&(r.style.stroke=r.style.fill,r.style.fill=m.color.neutral00,r.style.lineWidth=2),e},wb.type="series.line",wb.dependencies=["grid","polar"],wb.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};var xb,bb=wb;function wb(){var t=null!==xb&&xb.apply(this,arguments)||this;return t.type=wb.type,t.hasSymbolVisual=!0,t}function Sb(t,e){var n,i=t.mapDimensionsAll("defaultedLabel"),r=i.length;if(1===r)return null!=(n=_g(t,e,i[0]))?n+"":null;if(r){for(var o=[],a=0;a<i.length;a++)o.push(_g(t,e,i[a]));return o.join(" ")}}u(Cb,Mb=ao),Cb.prototype._createSymbol=function(t,e,n,i,r,o){this.removeAll();o=qm(t,-1,-1,2,2,null,o);o.attr({z2:W(r,100),culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),o.drift=kb,this._symbolType=t,this.add(o)},Cb.prototype.stopSymbolAnimation=function(t){this.childAt(0).stopAnimation(null,t)},Cb.prototype.getSymbolType=function(){return this._symbolType},Cb.prototype.getSymbolPath=function(){return this.childAt(0)},Cb.prototype.highlight=function(){tu(this.childAt(0))},Cb.prototype.downplay=function(){eu(this.childAt(0))},Cb.prototype.setZ=function(t,e){var n=this.childAt(0);n.zlevel=t,n.z=e},Cb.prototype.setDraggable=function(t,e){var n=this.childAt(0);n.draggable=t,n.cursor=!e&&t?"move":n.cursor},Cb.prototype.updateData=function(t,e,n,i){this.silent=!1;var r,o,a,s=t.getItemVisual(e,"symbol")||"circle",l=t.hostModel,u=Cb.getSymbolSize(t,e),h=Cb.getSymbolZ2(t,e),c=s!==this._symbolType,p=i&&i.disableAnimation;c?(r=t.getItemVisual(e,"symbolKeepAspect"),this._createSymbol(s,t,e,u,h,r)):((o=this.childAt(0)).silent=!1,a={scaleX:u[0]/2,scaleY:u[1]/2},p?o.attr(a):uc(o,a,l,e),sc(s=o).oldStyle=s.style),this._updateCommon(t,e,u,n,i),c&&(o=this.childAt(0),p||(a={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:o.style.opacity}},o.scaleX=o.scaleY=0,o.style.opacity=0,hc(o,a,l,e))),p&&this.childAt(0).stopAnimation("leave")},Cb.prototype._updateCommon=function(e,t,n,i,r){var o,a,s,l,u,h,c,p,d=this.childAt(0),f=e.hostModel,g=(i&&(o=i.emphasisItemStyle,s=i.blurItemStyle,a=i.selectItemStyle,l=i.focus,u=i.blurScope,c=i.labelStatesModels,p=i.hoverScale,y=i.cursorStyle,h=i.emphasisDisabled),i&&!e.hasItemOption||(o=(g=(i=i&&i.itemModel?i.itemModel:e.getItemModel(t)).getModel("emphasis")).getModel("itemStyle").getItemStyle(),a=i.getModel(["select","itemStyle"]).getItemStyle(),s=i.getModel(["blur","itemStyle"]).getItemStyle(),l=g.get("focus"),u=g.get("blurScope"),h=g.get("disabled"),c=Jc(i),p=g.getShallow("scale"),y=i.getShallow("cursor")),e.getItemVisual(t,"symbolRotate")),i=(d.attr("rotation",(g||0)*Math.PI/180||0),Zm(e.getItemVisual(t,"symbolOffset"),n)),g=(i&&(d.x=i[0],d.y=i[1]),y&&d.attr("cursor",y),e.getItemVisual(t,"style")),i=g.fill,y=(d instanceof Ks?(y=d.style,d.useStyle(P({image:y.image,x:y.x,y:y.y,width:y.width,height:y.height},g))):(d.__isEmptyBrush?d.useStyle(P({},g)):d.useStyle(g),d.style.decal=null,d.setColor(i,r&&r.symbolInnerColor),d.style.strokeNoScale=!0),e.getItemVisual(t,"liftZ")),m=this._z2,v=(null!=y?null==m&&(this._z2=d.z2,d.z2+=y):null!=m&&(d.z2=m,this._z2=null),r&&r.useNameLabel);Qc(d,c,{labelFetcher:f,labelDataIndex:t,defaultText:function(t){return v?e.getName(t):Sb(e,t)},inheritColor:i,defaultOpacity:g.opacity}),this._sizeX=n[0]/2,this._sizeY=n[1]/2;y=d.ensureState("emphasis"),y.style=o,d.ensureState("select").style=a,d.ensureState("blur").style=s,m=null==p||!0===p?Math.max(1.1,3/this._sizeY):isFinite(p)&&0<p?+p:1;y.scaleX=this._sizeX*m,y.scaleY=this._sizeY*m,this.setSymbolScale(1),pu(this,l,u,h)},Cb.prototype.setSymbolScale=function(t){this.scaleX=this.scaleY=t},Cb.prototype.fadeOut=function(t,e,n){var i=this.childAt(0),r=G(this).dataIndex,o=n&&n.animation;this.silent=i.silent=!0,n&&n.fadeLabel?(n=i.getTextContent())&&pc(n,{style:{opacity:0}},e,{dataIndex:r,removeOpt:o,cb:function(){i.removeTextContent()}}):i.removeTextContent(),pc(i,{style:{opacity:0},scaleX:0,scaleY:0},e,{dataIndex:r,cb:t,removeOpt:o})},Cb.getSymbolSize=function(t,e){return[(t=F(t=t.getItemVisual(e,"symbolSize"))?t:[+t,+t])[0]||0,t[1]||0]},Cb.getSymbolZ2=function(t,e){return t.getItemVisual(e,"z2")};var Mb,Tb=Cb;function Cb(t,e,n,i){var r=Mb.call(this)||this;return r.updateData(t,e,n,i),r}function kb(t,e){this.parent.drift(t,e)}function Ib(t,e,n,i){return e&&!isNaN(e[0])&&!isNaN(e[1])&&(!i.isIgnore||!i.isIgnore(n))&&(!i.clipShape||i.clipShape.contain(e[0],e[1]))&&"none"!==t.getItemVisual(n,"symbol")}function Db(t){return(t=null==t||H(t)?t:{isIgnore:t})||{}}function Ab(t){var t=t.hostModel,e=t.getModel("emphasis");return{emphasisItemStyle:e.getModel("itemStyle").getItemStyle(),blurItemStyle:t.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:t.getModel(["select","itemStyle"]).getItemStyle(),focus:e.get("focus"),blurScope:e.get("blurScope"),emphasisDisabled:e.get("disabled"),hoverScale:e.get("scale"),labelStatesModels:Jc(t),cursorStyle:t.get("cursor")}}Pb.prototype.updateData=function(o,a){this._progressiveEls=null,a=Db(a);var s=this.group,l=o.hostModel,u=this._data,h=this._SymbolCtor,c=a.disableAnimation,p=Ab(o),d={disableAnimation:c},f=a.getSymbolPoint||function(t){return o.getItemLayout(t)};u||s.removeAll(),o.diff(u).add(function(t){var e,n=f(t);Ib(o,n,t,a)&&((e=new h(o,t,p,d)).setPosition(n),o.setItemGraphicEl(t,e),s.add(e))}).update(function(t,e){var n,i,e=u.getItemGraphicEl(e),r=f(t);Ib(o,r,t,a)?(n=o.getItemVisual(t,"symbol")||"circle",i=e&&e.getSymbolType&&e.getSymbolType(),!e||i&&i!==n?(s.remove(e),(e=new h(o,t,p,d)).setPosition(r)):(e.updateData(o,t,p,d),i={x:r[0],y:r[1]},c?e.attr(i):uc(e,i,l)),s.add(e),o.setItemGraphicEl(t,e)):s.remove(e)}).remove(function(t){var e=u.getItemGraphicEl(t);e&&e.fadeOut(function(){s.remove(e)},l)}).execute(),this._getSymbolPoint=f,this._data=o},Pb.prototype.updateLayout=function(){var n=this,t=this._data;t&&t.eachItemGraphicEl(function(t,e){e=n._getSymbolPoint(e);t.setPosition(e),t.markRedraw()})},Pb.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=Ab(t),this._data=null,this.group.removeAll()},Pb.prototype.incrementalUpdate=function(t,e,n){function i(t){t.isGroup||(t.incremental=!0,t.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[],n=Db(n);for(var r=t.start;r<t.end;r++){var o,a=e.getItemLayout(r);Ib(e,a,r,n)&&((o=new this._SymbolCtor(e,r,this._seriesScope)).traverse(i),o.setPosition(a),this.group.add(o),e.setItemGraphicEl(r,o),this._progressiveEls.push(o))}},Pb.prototype.eachRendered=function(t){Wc(this._progressiveEls||this.group,t)},Pb.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()};var Lb=Pb;function Pb(t){this.group=new ao,this._SymbolCtor=t||Tb}function Ob(t,e,n){var i=t.getBaseAxis(),r=t.getOtherAxis(i),n=function(t,e){var n=0,t=t.scale.getExtent();"start"===e?n=t[0]:"end"===e?n=t[1]:gt(e)&&!isNaN(e)?n=e:0<t[0]?n=t[0]:t[1]<0&&(n=t[1]);return n}(r,n),i=i.dim,r=r.dim,o=e.mapDimension(r),a=e.mapDimension(i),s="x"===r||"radius"===r?1:0,t=E(t.dimensions,function(t){return e.mapDimension(t)}),l=!1,u=e.getCalculationInfo("stackResultDimension");return S_(e,t[0])&&(l=!0,t[0]=u),S_(e,t[1])&&(l=!0,t[1]=u),{dataDimsForPoint:t,valueStart:n,valueAxisDim:r,baseAxisDim:i,stacked:!!l,valueDim:o,baseDim:a,baseDataOffset:s,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}}function Rb(t,e,n,i){var r=NaN,o=(t.stacked&&(r=n.get(n.getCalculationInfo("stackedOverDimension"),i)),isNaN(r)&&(r=t.valueStart),t.baseDataOffset),a=[];return a[o]=n.get(t.baseDim,i),a[1-o]=r,e.dataToPoint(a)}var Nb=Math.min,Bb=Math.max;function zb(t,e){return isNaN(t)||isNaN(e)}function Eb(t,e,n,i,r,o,a,s,l){for(var u,h,c,p,d=n,f=0;f<i;f++){var g=e[2*d],y=e[2*d+1];if(r<=d||d<0)break;if(zb(g,y)){if(l){d+=o;continue}break}if(d===n)t[0<o?"moveTo":"lineTo"](g,y),c=g,p=y;else{var m=g-u,v=y-h;if(m*m+v*v<.5){d+=o;continue}if(0<a){for(var _=d+o,x=e[2*_],b=e[2*_+1];x===g&&b===y&&f<i;)f++,d+=o,x=e[2*(_+=o)],b=e[2*_+1],g=e[2*d],y=e[2*d+1];var w=f+1;if(l)for(;zb(x,b)&&w<i;)w++,x=e[2*(_+=o)],b=e[2*_+1];var S,M,T,C,k,I,D,A,L,m=0,v=0,P=void 0,O=void 0;i<=w||zb(x,b)?(D=g,A=y):(m=x-u,v=b-h,S=g-u,M=x-g,T=y-h,C=b-y,I=k=void 0,O="x"===s?(D=g-(L=0<m?1:-1)*(k=Math.abs(S))*a,A=y,P=g+L*(I=Math.abs(M))*a,y):"y"===s?(A=y-(L=0<v?1:-1)*(k=Math.abs(T))*a,P=D=g,y+L*(I=Math.abs(C))*a):(k=Math.sqrt(S*S+T*T),D=g-m*a*(1-(S=(I=Math.sqrt(M*M+C*C))/(I+k))),A=y-v*a*(1-S),O=y+v*a*S,P=Nb(P=g+m*a*S,Bb(x,g)),O=Nb(O,Bb(b,y)),P=Bb(P,Nb(x,g)),A=y-(v=(O=Bb(O,Nb(b,y)))-y)*k/I,D=Nb(D=g-(m=P-g)*k/I,Bb(u,g)),A=Nb(A,Bb(h,y)),P=g+(m=g-(D=Bb(D,Nb(u,g))))*I/k,y+(v=y-(A=Bb(A,Nb(h,y))))*I/k)),t.bezierCurveTo(c,p,D,A,g,y),c=P,p=O}else t.lineTo(g,y)}u=g,h=y,d+=o}return f}var Fb,Vb=function(){this.smooth=0,this.smoothConstraint=!0},Hb=(u(Wb,Fb=Ws),Wb.prototype.getDefaultStyle=function(){return{stroke:m.color.neutral99,fill:null}},Wb.prototype.getDefaultShape=function(){return new Vb},Wb.prototype.buildPath=function(t,e){var n=e.points,i=0,r=n.length/2;if(e.connectNulls){for(;0<r&&zb(n[2*r-2],n[2*r-1]);r--);for(;i<r&&zb(n[2*i],n[2*i+1]);i++);}for(;i<r;)i+=Eb(t,n,i,r,r,1,e.smooth,e.smoothMonotone,e.connectNulls)+1},Wb.prototype.getPointOn=function(t,e){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var n,i,r=this.path.data,o=Ms.CMD,a="x"===e,s=[],l=0;l<r.length;){var u=void 0,h=void 0;switch(r[l++]){case o.M:n=r[l++],i=r[l++];break;case o.L:var c,u=r[l++],h=r[l++];if((c=a?(t-n)/(u-n):(t-i)/(h-i))<=1&&0<=c)return v=a?(h-i)*c+i:(u-n)*c+n,a?[t,v]:[v,t];n=u,i=h;break;case o.C:u=r[l++],h=r[l++];var p=r[l++],d=r[l++],f=r[l++],g=r[l++],y=a?$n(n,u,p,f,t,s):$n(i,h,d,g,t,s);if(0<y)for(var m=0;m<y;m++){var v,_=s[m];if(_<=1&&0<=_)return v=a?jn(i,h,d,g,_):jn(n,u,p,f,_),a?[t,v]:[v,t]}n=f,i=g}}},Wb);function Wb(t){t=Fb.call(this,t)||this;return t.type="ec-polyline",t}u(Xb,Gb=Vb);var Gb,Ub=Xb;function Xb(){return null!==Gb&&Gb.apply(this,arguments)||this}u(Zb,Yb=Ws),Zb.prototype.getDefaultShape=function(){return new Ub},Zb.prototype.buildPath=function(t,e){var n=e.points,i=e.stackedOnPoints,r=0,o=n.length/2,a=e.smoothMonotone;if(e.connectNulls){for(;0<o&&zb(n[2*o-2],n[2*o-1]);o--);for(;r<o&&zb(n[2*r],n[2*r+1]);r++);}for(;r<o;){var s=Eb(t,n,r,o,o,1,e.smooth,a,e.connectNulls);Eb(t,i,r+s-1,s,o,-1,e.stackedOnSmooth,a,e.connectNulls),r+=s+1,t.closePath()}};var Yb,qb=Zb;function Zb(t){t=Yb.call(this,t)||this;return t.type="ec-polygon",t}function jb(t,e){if(t.length===e.length){for(var n=0;n<t.length;n++)if(t[n]!==e[n])return;return 1}}function Kb(t){for(var e=1/0,n=1/0,i=-1/0,r=-1/0,o=0;o<t.length;){var a=t[o++],s=t[o++];isNaN(a)||(e=Math.min(a,e),i=Math.max(a,i)),isNaN(s)||(n=Math.min(s,n),r=Math.max(s,r))}return[[e,n],[i,r]]}function $b(t,e){var t=Kb(t),n=t[0],t=t[1],e=Kb(e),i=e[0],e=e[1];return Math.max(Math.abs(n[0]-i[0]),Math.abs(n[1]-i[1]),Math.abs(t[0]-e[0]),Math.abs(t[1]-e[1]))}function Qb(t){return gt(t)?t:t?.5:0}function Jb(t,e,n,i,r){var n=n.getBaseAxis(),o="x"===n.dim||"radius"===n.dim?0:1,a=[],s=0,l=[],u=[],h=[],c=[];if(r){for(s=0;s<t.length;s+=2){var p=e||t;isNaN(p[s])||isNaN(p[s+1])||c.push(t[s],t[s+1])}t=c}for(s=0;s<t.length-2;s+=2)switch(h[0]=t[s+2],h[1]=t[s+3],u[0]=t[s],u[1]=t[s+1],a.push(u[0],u[1]),i){case"end":l[o]=h[o],l[1-o]=u[1-o],a.push(l[0],l[1]);break;case"middle":var d=[];l[o]=d[o]=(u[o]+h[o])/2,l[1-o]=u[1-o],d[1-o]=h[1-o],a.push(l[0],l[1]),a.push(d[0],d[1]);break;default:l[o]=u[o],l[1-o]=h[1-o],a.push(l[0],l[1])}return a.push(t[s++],t[s++]),a}function tw(t,e,n){var i=t.getVisual("visualMeta");if(i&&i.length&&t.count()&&"cartesian2d"===e.type){for(var r,o=i.length-1;0<=o;o--){var a,s=t.getDimensionInfo(i[o].dimension);if("x"===(a=s&&s.coordDim)||"y"===a){r=i[o];break}}if(r){var l=e.getAxis(a),e=E(r.stops,function(t){return{coord:l.toGlobalCoord(l.dataToCoord(t.value)),color:t.color}}),u=e.length,h=r.outerColors.slice(),n=(u&&e[0].coord>e[u-1].coord&&(e.reverse(),h.reverse()),function(t,e){var n,i,r=[],o=t.length;function a(t,e,n){var i=t.coord;return{coord:n,color:Pi((n-i)/(e.coord-i),[t.color,e.color])}}for(var s=0;s<o;s++){var l=t[s],u=l.coord;if(u<0)n=l;else{if(e<u){i?r.push(a(i,l,e)):n&&r.push(a(n,l,0),a(n,l,e));break}n&&(r.push(a(n,l,0)),n=null),r.push(l),i=l}}return r}(e,"x"===a?n.getWidth():n.getHeight())),c=n.length;if(!c&&u)return e[0].coord<0?h[1]||e[u-1].color:h[0]||e[0].color;var p=n[0].coord-10,u=n[c-1].coord+10,d=u-p;if(d<.001)return"transparent";N(n,function(t){t.offset=(t.coord-p)/d}),n.push({offset:c?n[c-1].offset:.5,color:h[1]||"transparent"}),n.unshift({offset:c?n[0].offset:.5,color:h[0]||"transparent"});e=new Uh(0,0,0,0,n,!0);return e[a]=p,e[a+"2"]=u,e}}}function ew(t,e,n){var t=t.get("showAllSymbol"),i="auto"===t;if(!t||i){var r,o,a=n.getAxesByScale("ordinal")[0];if(a)if(!i||!function(t,e){for(var n=t.getExtent(),i=Math.abs(n[1]-n[0])/t.scale.count(),r=(isNaN(i)&&(i=0),e.count()),o=Math.max(1,Math.round(r/5)),a=0;a<r;a+=o)if(1.5*Tb.getSymbolSize(e,a)[t.isHorizontal()?1:0]>i)return;return 1}(a,e))return r=e.mapDimension(a.dim),o={},N(a.getViewLabels(),function(t){t=a.scale.getRawOrdinalNumber(t.tickValue);o[t]=1}),function(t){return!o.hasOwnProperty(e.get(r,t))}}}function nw(t){for(var e,n,i=t.length/2;0<i&&(e=t[2*i-2],n=t[2*i-1],isNaN(e)||isNaN(n));i--);return i-1}function iw(t,e){return[t[2*e],t[2*e+1]]}function rw(t){if(t.get(["endLabel","show"]))return 1;for(var e=0;e<Al.length;e++)if(t.get([Al[e],"endLabel","show"]))return 1}function ow(n,i,e,t){var r,o,a,s,l,u,h,c,p,d,f,g,y,m,v,_,x;return x="cartesian2d",i.type===x?(r=t.getModel("endLabel"),o=r.get("valueAnimation"),a=t.getData(),s={lastFrameIndex:0},x=rw(t)?function(t,e){n._endLabelOnDuring(t,e,a,s,o,r,i)}:null,l=i.getBaseAxis().isHorizontal(),h=e,c=t,p=function(){var t=n._endLabel;t&&e&&null!=s.originalX&&t.attr({x:s.originalX,y:s.originalY})},d=x,f=(m=(u=i).getArea()).x,g=m.y,y=m.width,m=m.height,v=c.get(["lineStyle","width"])||0,f-=v/2,g-=v/2,y+=v,m+=v,y=Math.ceil(y),f!==Math.floor(f)&&(f=Math.floor(f),y++),_=new ol({shape:{x:f,y:g,width:y,height:m}}),h&&(h=(v=u.getBaseAxis()).isHorizontal(),u=v.inverse,h?(u&&(_.shape.x+=y),_.shape.width=0):(u||(_.shape.y+=m),_.shape.height=0),v=B(d)?function(t){d(t,_)}:null,hc(_,{shape:{width:y,height:m,x:f,y:g}},c,null,p,v)),h=_,t.get("clip",!0)||(u=h.shape,y=Math.max(u.width,u.height),l?(u.y-=y,u.height+=2*y):(u.x-=y,u.width+=2*y)),x&&x(1,h),h):(m=e,f=t,c=(g=i).getArea(),p=To(c.r0,1),v=To(c.r,1),l=new lh({shape:{cx:To(g.cx,1),cy:To(g.cy,1),r0:p,r:v,startAngle:c.startAngle,endAngle:c.endAngle,clockwise:c.clockwise}}),m&&("angle"===g.getBaseAxis().dim?l.shape.endAngle=c.startAngle:l.shape.r=p,hc(l,{shape:{endAngle:c.endAngle,r:v}},f)),l)}u(lw,aw=Zy),lw.prototype.init=function(){var t=new ao,e=new Lb;this.group.add(e.group),this._symbolDraw=e,this._lineGroup=t,this._changePolyState=pt(this._changePolyState,this)},lw.prototype.render=function(t,e,n){var i,r=t.coordinateSystem,o=this.group,a=t.getData(),s=t.getModel("lineStyle"),l=t.getModel("areaStyle"),u=a.getLayout("points")||[],h="polar"===r.type,c=this._coordSys,p=this._symbolDraw,d=this._polyline,f=this._polygon,g=this._lineGroup,e=!e.ssr&&t.get("animation"),y=!l.isEmpty(),m=l.get("origin"),v=Ob(r,a,m),v=y&&function(t,e,n){if(!n.valueDim)return[];for(var i=e.count(),r=Q_(2*i),o=0;o<i;o++){var a=Rb(n,t,e,o);r[2*o]=a[0],r[2*o+1]=a[1]}return r}(r,a,v),_=t.get("showSymbol"),x=t.get("connectNulls"),b=_&&!h&&ew(t,a,r),w=this._data,S=(w&&w.eachItemGraphicEl(function(t,e){t.__temp&&(o.remove(t),w.setItemGraphicEl(e,null))}),_||p.remove(),o.add(g),!h&&t.get("step")),M=(r&&r.getArea&&t.get("clip",!0)&&(null!=(i=r.getArea()).width?(i.x-=.1,i.y-=.1,i.width+=.2,i.height+=.2):i.r0&&(i.r0-=.5,i.r+=.5)),this._clipShapeForSymbol=i,tw(a,r,n)||a.getVisual("style")[a.getVisual("drawType")]),c=(d&&c.type===r.type&&S===this._step?(y&&!f?f=this._newPolygon(u,v):f&&!y&&(g.remove(f),f=this._polygon=null),h||this._initOrUpdateEndLabel(t,r,md(M)),(c=g.getClipPath())?hc(c,{shape:ow(this,r,!1,t).shape},t):g.setClipPath(ow(this,r,!0,t)),_&&p.updateData(a,{isIgnore:b,clipShape:i,disableAnimation:!0,getSymbolPoint:function(t){return[u[2*t],u[2*t+1]]}}),jb(this._stackedOnPoints,v)&&jb(this._points,u)||(e?this._doUpdateAnimation(a,v,r,n,S,m,x):(S&&(v=v&&Jb(v,u,r,S,x),u=Jb(u,null,r,S,x)),d.setShape({points:u}),f&&f.setShape({points:u,stackedOnPoints:v})))):(_&&p.updateData(a,{isIgnore:b,clipShape:i,disableAnimation:!0,getSymbolPoint:function(t){return[u[2*t],u[2*t+1]]}}),e&&this._initSymbolLabelAnimation(a,r,i),S&&(v=v&&Jb(v,u,r,S,x),u=Jb(u,null,r,S,x)),d=this._newPolyline(u),y?f=this._newPolygon(u,v):f&&(g.remove(f),f=this._polygon=null),h||this._initOrUpdateEndLabel(t,r,md(M)),g.setClipPath(ow(this,r,!0,t))),t.getModel("emphasis")),n=c.get("focus"),_=c.get("blurScope"),p=c.get("disabled"),b=(d.useStyle(z(s.getLineStyle(),{fill:"none",stroke:M,lineJoin:"bevel"})),gu(d,t,"lineStyle"),0<d.style.lineWidth&&"bolder"===t.get(["emphasis","lineStyle","width"])&&(d.getState("emphasis").style.lineWidth=+d.style.lineWidth+1),G(d).seriesIndex=t.seriesIndex,pu(d,n,_,p),Qb(t.get("smooth"))),e=t.get("smoothMonotone"),T=(d.setShape({smooth:b,smoothMonotone:e,connectNulls:x}),f&&(i=a.getCalculationInfo("stackedOnSeries"),y=0,f.useStyle(z(l.getAreaStyle(),{fill:M,opacity:.7,lineJoin:"bevel",decal:a.getVisual("style").decal})),i&&(y=Qb(i.get("smooth"))),f.setShape({smooth:b,stackedOnSmooth:y,smoothMonotone:e,connectNulls:x}),gu(f,t,"areaStyle"),G(f).seriesIndex=t.seriesIndex,pu(f,n,_,p)),this._changePolyState);a.eachItemGraphicEl(function(t){t&&(t.onHoverStateChange=T)}),this._polyline.onHoverStateChange=T,this._data=a,this._coordSys=r,this._stackedOnPoints=v,this._points=u,this._step=S,this._valueOrigin=m,t.get("triggerLineEvent")&&(this.packEventData(t,d),f)&&this.packEventData(t,f)},lw.prototype.packEventData=function(t,e){G(e).eventData={componentType:"series",componentSubType:"line",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"line"}},lw.prototype.highlight=function(t,e,n,i){var r=t.getData(),o=Jo(r,i);if(this._changePolyState("emphasis"),!(o instanceof Array)&&null!=o&&0<=o){var a=r.getLayout("points");if(!(l=r.getItemGraphicEl(o))){var s=a[2*o],a=a[2*o+1];if(isNaN(s)||isNaN(a))return;if(this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(s,a))return;var l,u=t.get("zlevel")||0,h=t.get("z")||0,s=((l=new Tb(r,o)).x=s,l.y=a,l.setZ(u,h),l.getSymbolPath().getTextContent());s&&(s.zlevel=u,s.z=h,s.z2=this._polyline.z2+1),l.__temp=!0,r.setItemGraphicEl(o,l),l.stopSymbolAnimation(!0),this.group.add(l)}l.highlight()}else Zy.prototype.highlight.call(this,t,e,n,i)},lw.prototype.downplay=function(t,e,n,i){var r,o=t.getData(),a=Jo(o,i);this._changePolyState("normal"),null!=a&&0<=a?(r=o.getItemGraphicEl(a))&&(r.__temp?(o.setItemGraphicEl(a,null),this.group.remove(r)):r.downplay()):Zy.prototype.downplay.call(this,t,e,n,i)},lw.prototype._changePolyState=function(t){var e=this._polygon;Zl(this._polyline,t),e&&Zl(e,t)},lw.prototype._newPolyline=function(t){var e=this._polyline;return e&&this._lineGroup.remove(e),e=new Hb({shape:{points:t},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(e),this._polyline=e},lw.prototype._newPolygon=function(t,e){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new qb({shape:{points:t,stackedOnPoints:e},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n},lw.prototype._initSymbolLabelAnimation=function(t,l,u){var h,c,e=l.getBaseAxis(),p=e.inverse,e=("cartesian2d"===l.type?(h=e.isHorizontal(),c=!1):"polar"===l.type&&(h="angle"===e.dim,c=!0),t.hostModel),d=e.get("animationDuration"),f=(B(d)&&(d=d(null)),e.get("animationDelay")||0),g=B(f)?f(null):f;t.eachItemGraphicEl(function(t,e){var n,i,r,o,a,s=t;s&&(o=[t.x,t.y],a=i=n=void 0,u&&(a=c?(r=u,o=l.pointToCoord(o),h?(n=r.startAngle,i=r.endAngle,-o[1]/180*Math.PI):(n=r.r0,i=r.r,o[0])):h?(n=u.x,i=u.x+u.width,t.x):(n=u.y+u.height,i=u.y,t.y)),r=i===n?0:(a-n)/(i-n),p&&(r=1-r),o=B(f)?f(e):d*r+g,a=(t=s.getSymbolPath()).getTextContent(),s.attr({scaleX:0,scaleY:0}),s.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:o}),a&&a.animateFrom({style:{opacity:0}},{duration:300,delay:o}),t.disableLabelAnimation=!0)})},lw.prototype._initOrUpdateEndLabel=function(t,e,n){var u,i,r,o=t.getModel("endLabel");rw(t)?(u=t.getData(),i=this._polyline,(r=u.getLayout("points"))?(this._endLabel||((this._endLabel=new cl({z2:200})).ignoreClip=!0,i.setTextContent(this._endLabel),i.disableLabelAnimation=!0),0<=(r=nw(r))&&(Qc(i,Jc(t,"endLabel"),{inheritColor:n,labelFetcher:t,labelDataIndex:r,defaultText:function(t,e,n){if(null==n)return Sb(u,t);var i=u,r=n,o=i.mapDimensionsAll("defaultedLabel");if(!F(r))return r+"";for(var a=[],s=0;s<o.length;s++){var l=i.getDimensionIndex(o[s]);0<=l&&a.push(r[l])}return a.join(" ")},enableTextSetter:!0},(n=o,r=(t=(t=e).getBaseAxis()).isHorizontal(),t=t.inverse,o=r?t?"right":"left":"center",r=r?"middle":t?"top":"bottom",{normal:{align:n.get("align")||o,verticalAlign:n.get("verticalAlign")||r}})),i.textConfig.position=null)):(i.removeTextContent(),this._endLabel=null)):this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},lw.prototype._endLabelOnDuring=function(t,e,n,i,r,o,a){var s,l,u,h,c,p,d,f,g,y,m=this._endLabel,v=this._polyline;m&&(t<1&&null==i.originalX&&(i.originalX=m.x,i.originalY=m.y),s=n.getLayout("points"),g=(l=n.hostModel).get("connectNulls"),u=o.get("precision"),o=o.get("distance")||0,c=(a=a.getBaseAxis()).isHorizontal(),a=a.inverse,e=e.shape,h=(c?o:0)*(a?-1:1),o=(c?0:-o)*(a?-1:1),d=void 0,1<=(f=(p=(c=function(t,e,n){for(var i,r,o=t.length/2,a="x"===n?0:1,s=0,l=-1,u=0;u<o;u++)if(r=t[2*u+a],!isNaN(r)&&!isNaN(t[2*u+1-a])){if(0!==u){if(i<=e&&e<=r||e<=i&&r<=e){l=u;break}s=u}i=r}return{range:[s,l],t:(e-i)/(r-i)}}(s,a=a?c?e.x:e.y+e.height:c?e.x+e.width:e.y,e=c?"x":"y")).range)[1]-p[0])?(1<f&&!g?(y=iw(s,p[0]),m.attr({x:y[0]+h,y:y[1]+o}),r&&(d=l.getRawValue(p[0]))):((y=v.getPointOn(a,e))&&m.attr({x:y[0]+h,y:y[1]+o}),f=l.getRawValue(p[0]),g=l.getRawValue(p[1]),r&&(d=sa(n,u,f,g,c.t))),i.lastFrameIndex=p[0]):(y=iw(s,v=1===t||0<i.lastFrameIndex?p[0]:0),r&&(d=l.getRawValue(v)),m.attr({x:y[0]+h,y:y[1]+o})),r)&&"function"==typeof(a=ap(m)).setLabelText&&a.setLabelText(d)},lw.prototype._doUpdateAnimation=function(t,e,n,i,r,o,a){var s=this._polyline,l=this._polygon,u=t.hostModel,e=function(t,e,n,i,r,o){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();for(var a,s=a,l=[],u=[],h=[],c=[],p=[],d=[],f=[],g=Ob(r,e,o),y=t.getLayout("points")||[],m=e.getLayout("points")||[],v=0;v<s.length;v++){var _=s[v],x=!0,b=void 0;switch(_.cmd){case"=":var w=2*_.idx,b=2*_.idx1,S=y[w],M=y[1+w],T=m[b],C=m[b+1];(isNaN(S)||isNaN(M))&&(S=T,M=C),l.push(S,M),u.push(T,C),h.push(n[w],n[1+w]),c.push(i[b],i[b+1]),f.push(e.getRawIndex(_.idx1));break;case"+":S=_.idx,M=g.dataDimsForPoint,T=r.dataToPoint([e.get(M[0],S),e.get(M[1],S)]),C=(b=2*S,l.push(T[0],T[1]),u.push(m[b],m[b+1]),Rb(g,r,e,S));h.push(C[0],C[1]),c.push(i[b],i[b+1]),f.push(e.getRawIndex(S));break;case"-":x=!1}x&&(p.push(_),d.push(d.length))}d.sort(function(t,e){return f[t]-f[e]});for(var k=Q_(o=l.length),I=Q_(o),D=Q_(o),A=Q_(o),L=[],v=0;v<d.length;v++){var P=d[v],O=2*v,R=2*P;k[O]=l[R],k[1+O]=l[1+R],I[O]=u[R],I[1+O]=u[1+R],D[O]=h[R],D[1+O]=h[1+R],A[O]=c[R],A[1+O]=c[1+R],L[v]=p[P]}return{current:k,next:I,stackedOnCurrent:D,stackedOnNext:A,status:L}}(this._data,t,this._stackedOnPoints,e,this._coordSys,this._valueOrigin),h=e.current,c=e.stackedOnCurrent,p=e.next,d=e.stackedOnNext;if(r&&(c=Jb(e.stackedOnCurrent,e.current,n,r,a),h=Jb(e.current,null,n,r,a),d=Jb(e.stackedOnNext,e.next,n,r,a),p=Jb(e.next,null,n,r,a)),3e3<$b(h,p)||l&&3e3<$b(c,d))s.stopAnimation(),s.setShape({points:p}),l&&(l.stopAnimation(),l.setShape({points:p,stackedOnPoints:d}));else{s.shape.__points=e.current,s.shape.points=h;for(var f,n={shape:{points:p}},g=(e.current!==h&&(n.shape.__points=e.next),s.stopAnimation(),uc(s,n,u),l&&(l.setShape({points:h,stackedOnPoints:c}),l.stopAnimation(),uc(l,{shape:{stackedOnPoints:d}},u),s.shape.points!==l.shape.points)&&(l.shape.points=s.shape.points),[]),y=e.status,m=0;m<y.length;m++)"="===y[m].cmd&&(f=t.getItemGraphicEl(y[m].idx1))&&g.push({el:f,ptIdx:m});s.animators&&s.animators.length&&s.animators[0].during(function(){l&&l.dirtyShape();for(var t=s.shape.__points,e=0;e<g.length;e++){var n=g[e].el,i=2*g[e].ptIdx;n.x=t[i],n.y=t[1+i],n.markRedraw()}})}},lw.prototype.remove=function(t){var n=this.group,i=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),i&&i.eachItemGraphicEl(function(t,e){t.__temp&&(n.remove(t),i.setItemGraphicEl(e,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},lw.type="line";var aw,sw=lw;function lw(){return null!==aw&&aw.apply(this,arguments)||this}var uw={average:function(t){for(var e=0,n=0,i=0;i<t.length;i++)isNaN(t[i])||(e+=t[i],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]}},hw=function(t){return Math.round(t.length/2)};B1(function(t){var i;t.registerChartView(sw),t.registerSeriesModel(bb),t.registerLayout((i=!0,{seriesType:"line",plan:Xy(),reset:function(t){var h,e,c,p,d,n=t.getData(),f=t.coordinateSystem,t=t.pipelineContext,g=i||t.large;if(f)return t=E(f.dimensions,function(t){return n.mapDimension(t)}).slice(0,2),h=t.length,e=n.getCalculationInfo("stackResultDimension"),S_(n,t[0])&&(t[0]=e),S_(n,t[1])&&(t[1]=e),c=n.getStore(),p=n.getDimensionIndex(t[0]),d=n.getDimensionIndex(t[1]),h&&{progress:function(t,e){for(var n=t.end-t.start,i=g&&Q_(n*h),r=[],o=[],a=t.start,s=0;a<t.end;a++){var l,u=void 0;u=1===h?(l=c.get(p,a),f.dataToPoint(l,null,o)):(r[0]=c.get(p,a),r[1]=c.get(d,a),f.dataToPoint(r,null,o)),g?(i[s++]=u[0],i[s++]=u[1]):e.setItemLayout(a,u.slice())}g&&e.setLayout("points",i)}}}})),t.registerVisual({seriesType:"line",reset:function(t){var e=t.getData(),t=t.getModel("lineStyle").getLineStyle();t&&!t.stroke&&(t.stroke=e.getVisual("style").fill),e.setVisual("legendLineStyle",t)}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,{seriesType:"line",reset:function(t,e,n){var i,r=t.getData(),o=t.get("sampling"),a=t.coordinateSystem,s=r.count();10<s&&"cartesian2d"===a.type&&o&&(i=a.getBaseAxis(),a=a.getOtherAxis(i),i=i.getExtent(),n=n.getDevicePixelRatio(),i=Math.abs(i[1]-i[0])*(n||1),n=Math.round(s/i),isFinite(n))&&1<n&&("lttb"===o?t.setData(r.lttbDownSample(r.mapDimension(a.dim),1/n)):"minmax"===o&&t.setData(r.minmaxDownSample(r.mapDimension(a.dim),1/n)),s=void 0,V(o)?s=uw[o]:B(o)&&(s=o),s)&&t.setData(r.downSample(r.mapDimension(a.dim),1/n,s,hw))}})});var cw,pw={left:0,right:0,top:0,bottom:0},dw=["25%","25%"],fw=(u(gw,cw=g),gw.prototype.mergeDefaultAndTheme=function(t,e){var n=Bd(t.outerBounds);cw.prototype.mergeDefaultAndTheme.apply(this,arguments),n&&t.outerBounds&&Nd(t.outerBounds,n)},gw.prototype.mergeOption=function(t,e){cw.prototype.mergeOption.apply(this,arguments),this.option.outerBounds&&t.outerBounds&&Nd(this.option.outerBounds,t.outerBounds)},gw.type="grid",gw.dependencies=["xAxis","yAxis"],gw.layoutMode="box",gw.defaultOption={show:!1,z:0,left:"15%",top:65,right:"10%",bottom:80,containLabel:!1,outerBoundsMode:"auto",outerBounds:pw,outerBoundsContain:"all",outerBoundsClampWidth:dw[0],outerBoundsClampHeight:dw[1],backgroundColor:m.color.transparent,borderWidth:1,borderColor:m.color.neutral30},gw);function gw(){return null!==cw&&cw.apply(this,arguments)||this}u(vw,yw=g),vw.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",ra).models[0]},vw.type="cartesian2dAxis";var yw,mw=vw;function vw(){return null!==yw&&yw.apply(this,arguments)||this}at(mw,P1);var zl={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:m.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:m.color.axisLabel,textMargin:[0,3]},splitLine:{show:!0,showMinLine:!0,showMaxLine:!0,lineStyle:{color:m.color.axisSplitLine,width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:[m.color.backgroundTint,m.color.backgroundTransparent]}},breakArea:{show:!0,itemStyle:{color:m.color.neutral00,borderColor:m.color.border,borderWidth:1,borderType:[3,3],opacity:.6},zigzagAmplitude:4,zigzagMinSpan:4,zigzagMaxSpan:20,zigzagZ:100,expandOnClick:!0},breakLabelLayout:{moveOverlap:"auto"}},dp=d({boundaryGap:!0,deduplication:null,jitter:0,jitterOverlap:!0,jitterMargin:2,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto",show:"auto"},axisLabel:{interval:"auto"}},zl),fa=d({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:m.color.axisMinorSplitLine,width:1}}},zl),_w={category:dp,value:fa,time:d({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},fa),log:z({logBase:10},fa)},xw={value:1,category:1,time:1,log:1},bw=null;function ww(o,a,s,l){N(xw,function(t,r){var e,n=d(d({},_w[r],!0),l,!0),n=(u(i,e=s),i.prototype.mergeDefaultAndTheme=function(t,e){var n=Rd(this),i=n?Bd(t):{};d(t,e.getTheme().get(r+"Axis")),d(t,this.getDefaultOption()),t.type=Sw(t),n&&Nd(t,i,n)},i.prototype.optionUpdated=function(){"category"===this.option.type&&(this.__ordinalMeta=V_.createByAxisModel(this))},i.prototype.getCategories=function(t){var e=this.option;if("category"===e.type)return t?e.data:this.__ordinalMeta.categories},i.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},i.prototype.updateAxisBreaks=function(t){return bw?bw.updateModelAxisBreak(this,t):{breaks:[]}},i.type=a+"Axis."+r,i.defaultOption=n,i);function i(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=a+"Axis."+r,t}o.registerComponentModel(n)}),o.registerSubTypeDefaulter(a+"Axis",Sw)}function Sw(t){return t.type||(t.data?"category":"value")}function Mw(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}Mw.prototype.getAxis=function(t){return this._axes[t]},Mw.prototype.getAxes=function(){return E(this._dimList,function(t){return this._axes[t]},this)},Mw.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),ut(this.getAxes(),function(t){return t.scale.type===e})},Mw.prototype.addAxis=function(t){var e=t.dim;this._axes[e]=t,this._dimList.push(e)};var Tw=["x","y"];function Cw(t){return("interval"===t.type||"time"===t.type)&&!t.hasBreaks()}u(Dw,kw=Mw),Dw.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var t,e,n,i,r=this.getAxis("x").scale,o=this.getAxis("y").scale;Cw(r)&&Cw(o)&&(r=r.getExtent(),o=o.getExtent(),i=this.dataToPoint([r[0],o[0]]),e=this.dataToPoint([r[1],o[1]]),t=r[1]-r[0],n=o[1]-o[0],t)&&n&&(t=(e[0]-i[0])/t,e=(e[1]-i[1])/n,n=i[0]-r[0]*t,r=i[1]-o[0]*e,i=this._transform=[t,0,0,e,n,r],this._invTransform=We([],i))},Dw.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},Dw.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]))},Dw.prototype.containData=function(t){return this.getAxis("x").containData(t[0])&&this.getAxis("y").containData(t[1])},Dw.prototype.containZone=function(t,e){var t=this.dataToPoint(t),e=this.dataToPoint(e),n=this.getArea(),e=new X(t[0],t[1],e[0]-t[0],e[1]-t[1]);return n.intersect(e)},Dw.prototype.dataToPoint=function(t,e,n){n=n||[];var i,r=t[0],o=t[1];return this._transform&&null!=r&&isFinite(r)&&null!=o&&isFinite(o)?re(n,t,this._transform):(t=this.getAxis("x"),i=this.getAxis("y"),n[0]=t.toGlobalCoord(t.dataToCoord(r,e)),n[1]=i.toGlobalCoord(i.dataToCoord(o,e)),n)},Dw.prototype.clampData=function(t,e){var n=this.getAxis("x").scale,i=this.getAxis("y").scale,r=n.getExtent(),o=i.getExtent(),n=n.parse(t[0]),i=i.parse(t[1]);return(e=e||[])[0]=Math.min(Math.max(Math.min(r[0],r[1]),n),Math.max(r[0],r[1])),e[1]=Math.min(Math.max(Math.min(o[0],o[1]),i),Math.max(o[0],o[1])),e},Dw.prototype.pointToData=function(t,e,n){var i,r;return n=n||[],this._invTransform?re(n,t,this._invTransform):(i=this.getAxis("x"),r=this.getAxis("y"),n[0]=i.coordToData(i.toLocalCoord(t[0]),e),n[1]=r.coordToData(r.toLocalCoord(t[1]),e),n)},Dw.prototype.getOtherAxis=function(t){return this.getAxis("x"===t.dim?"y":"x")},Dw.prototype.getArea=function(t){t=t||0;var e=this.getAxis("x").getGlobalExtent(),n=this.getAxis("y").getGlobalExtent(),i=Math.min(e[0],e[1])-t,r=Math.min(n[0],n[1])-t,e=Math.max(e[0],e[1])-i+t,n=Math.max(n[0],n[1])-r+t;return new X(i,r,e,n)};var kw,Iw=Dw;function Dw(){var t=null!==kw&&kw.apply(this,arguments)||this;return t.type="cartesian2d",t.dimensions=Tw,t}u(Pw,Aw=_p),Pw.prototype.isHorizontal=function(){var t=this.position;return"top"===t||"bottom"===t},Pw.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},Pw.prototype.pointToData=function(t,e){return this.coordToData(this.toLocalCoord(t["x"===this.dim?0:1]),e)},Pw.prototype.setCategorySortInfo=function(t){if("category"!==this.type)return!1;this.model.option.categorySortInfo=t,this.scale.setSortInfo(t)};var Aw,Lw=Pw;function Pw(t,e,n,i,r){t=Aw.call(this,t,e,n)||this;return t.index=0,t.type=i||"value",t.position=r||"bottom",t}var Ow="expandAxisBreak",Rw=Math.PI,Nw=[[1,2,1,2],[5,3,5,3],[8,3,8,3]],Bw=[[0,1,0,1],[0,3,0,3],[0,3,0,3]],zw=ta(),Ew=ta(),Fw=(Vw.prototype.ensureRecord=function(t){var e=t.axis.dim,t=t.componentIndex,n=this.recordMap,n=n[e]||(n[e]=[]);return n[t]||(n[t]={ready:{}})},Vw);function Vw(t){this.recordMap={},this.resolveAxisNameOverlap=t}function Hw(t,e,n,i,r,o){var a,s;D1(t.nameLocation)?(t=o.stOccupiedRect)&&Uw((a={},t=t,s=o.transGroup.transform,a.transform=Xc(a.transform,s),a.localRect=Uc(a.localRect,t),a.rect=Uc(a.rect,t),s&&a.rect.applyTransform(s),a.axisAligned=Gc(s),a.obb=void 0,(a.label=a.label||{}).ignore=!1,a),i,r):Xw(o.labelInfoList,o.dirVec,i,r)}var Ww=Ne(),Gw=new X(0,0,0,0);function Uw(t,e,n){var i=new M;jx(t,e,i,{direction:Math.atan2(n.y,n.x),bidirectional:!1,touchThreshold:.05})&&(t=i,n=e)&&(n.label.x+=t.x,n.label.y+=t.y,n.label.markRedraw(),(i=n.transform)&&(i[4]+=t.x,i[5]+=t.y),(e=n.rect)&&(e.x+=t.x,e.y+=t.y),e=n.obb)&&e.fromBoundingRect(n.localRect,i)}function Xw(t,e,n,i){for(var r=0<=M.dot(i,e),o=0,a=t.length;o<a;o++){var s=t[r?o:a-1-o];s.label.ignore||Uw(s,n,i)}}qw.prototype.updateCfg=function(t){var e=this._cfg.raw;e.position=t.position,e.labelOffset=t.labelOffset,this._resetCfgDetermined(e)},qw.prototype.__getRawCfg=function(){return this._cfg.raw},qw.prototype._resetCfgDetermined=function(t){var e=this._axisModel,n=e.getDefaultOption?e.getDefaultOption():{},i=W(t.axisName,e.get("name")),r=e.get("nameMoveOverlap"),t=(null!=r&&"auto"!==r||(r=W(t.defaultNameMoveOverlap,!0)),{raw:t,position:t.position,rotation:t.rotation,nameDirection:W(t.nameDirection,1),tickDirection:W(t.tickDirection,1),labelDirection:W(t.labelDirection,1),labelOffset:W(t.labelOffset,0),silent:W(t.silent,!0),axisName:i,nameLocation:Mt(e.get("nameLocation"),n.nameLocation,"end"),shouldNameMoveOverlap:!!i&&r,optionHideOverlap:e.get(["axisLabel","hideOverlap"]),showMinorTicks:e.get(["minorTick","show"])}),n=(this._cfg=t,new ao({x:t.position[0],y:t.position[1],rotation:t.rotation})),i=(n.updateTransform(),this._transformGroup=n,this._shared.ensureRecord(e));i.transGroup=this._transformGroup,i.dirVec=new M(Math.cos(-t.rotation),Math.sin(-t.rotation))},qw.prototype.build=function(e,n){var i=this;return e=e||{axisLine:!0,axisTickLabelEstimate:!1,axisTickLabelDetermine:!0,axisName:!0},N(Zw,function(t){e[t]&&jw[t](i._cfg,i._local,i._shared,i._axisModel,i.group,i._transformGroup,i._api,n||{})}),this},qw.innerTextLayout=function(t,e,n){var i,e=Do(e-t),t=Ao(e)?(i=0<n?"top":"bottom","center"):Ao(e-Rw)?(i=0<n?"bottom":"top","center"):(i="middle",0<e&&e<Rw?0<n?"right":"left":0<n?"left":"right");return{rotation:e,textAlign:t,textVerticalAlign:i}},qw.makeAxisEventDataBase=function(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+"Index"]=t.componentIndex,e},qw.isLabelSilent=function(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)};var Yw=qw;function qw(t,e,n,i){this.group=new ao,this._axisModel=t,this._api=e,this._local={},this._shared=i||new Fw(Hw),this._resetCfgDetermined(n)}var Zw=["axisLine","axisTickLabelEstimate","axisTickLabelDetermine","axisName"],jw={axisLine:function(i,t,e,n,r,o,a){var s,l,u,h,c,p,d,f,g=n.get(["axisLine","show"]);(g="auto"===g&&(g=!0,null!=i.raw.axisLineAutoShow)?!!i.raw.axisLineAutoShow:g)&&(g=n.axis.getExtent(),c=o.transform,s=[g[0],0],l=[g[1],0],u=l[0]<s[0],c&&(re(s,s,c),re(l,l,c)),h=P({lineCap:"round"},n.getModel(["axisLine","lineStyle"]).getLineStyle()),g={strokeContainThreshold:i.raw.strokeContainThreshold||5,silent:!0,z2:1,style:h},n.get(["axisLine","breakLine"])&&n.axis.scale.hasBreaks()?bw.buildAxisBreakLine(n,r,o,g):(kc((c=new Ch(P({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]}},g))).shape,c.style.lineWidth),c.anid="line",r.add(c)),null!=(p=n.get(["axisLine","symbol"])))&&(o=n.get(["axisLine","symbolSize"]),V(p)&&(p=[p,p]),(V(o)||gt(o))&&(o=[o,o]),g=Zm(n.get(["axisLine","symbolOffset"])||0,o),d=o[0],f=o[1],N([{rotate:i.rotation+Math.PI/2,offset:g[0],r:0},{rotate:i.rotation-Math.PI/2,offset:g[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(t,e){var n;"none"!==p[e]&&null!=p[e]&&(e=qm(p[e],-d/2,-f/2,d,f,h.stroke,!0),n=t.r+t.offset,e.attr({rotation:t.rotate,x:(t=u?l:s)[0]+n*Math.cos(i.rotation),y:t[1]-n*Math.sin(i.rotation),silent:!0,z2:11}),r.add(e))}))},axisTickLabelEstimate:function(t,e,n,i,r,o,a,s){Jw(e,r,s)&&Kw(t,e,n,i,r,o,a,nx.estimate)},axisTickLabelDetermine:function(t,e,n,i,r,o,a,s){Jw(e,r,s)&&Kw(t,e,n,i,r,o,a,nx.determine);var l,s=function(t,e,n,i){var r=i.axis,o=i.getModel("axisTick"),a=o.get("show");"auto"===a&&(a=!0,null!=t.raw.axisTickAutoShow)&&(a=!!t.raw.axisTickAutoShow);if(!a||r.scale.isBlank())return[];for(var a=o.getModel("lineStyle"),t=t.tickDirection*o.get("length"),s=Qw(r.getTicksCoords(),n.transform,t,z(a.getLineStyle(),{stroke:i.get(["axisLine","lineStyle","color"])}),"ticks"),l=0;l<s.length;l++)e.add(s[l]);return s}(t,r,o,i),a=(n=e.labelLayoutList,l=s,t.showMinorTicks||N(n,function(t){if(t&&t.label.ignore)for(var e=0;e<l.length;e++){var n=l[e],i=Ew(n),r=zw(t.label);if(null!=i.tickValue&&!i.onBand&&i.tickValue===r.tickValue)return void $w(n)}}),t),u=r,h=o,e=i,s=t.tickDirection,n=e.axis,r=e.getModel("minorTick");if(a.showMinorTicks&&!n.scale.isBlank()){var c=n.getMinorTicksCoords();if(c.length)for(var a=r.getModel("lineStyle"),p=s*r.get("length"),d=z(a.getLineStyle(),z(e.getModel("axisTick").getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])})),f=0;f<c.length;f++)for(var g=Qw(c[f],h.transform,p,d,"minorticks_"+f),y=0;y<g.length;y++)u.add(g[y])}},axisName:function(t,e,n,i,r,o,a,s){var l,u,h,c,p,d,f,g,y,m,v=n.ensureRecord(i),_=(e.nameEl&&(r.remove(e.nameEl),e.nameEl=v.nameLayout=v.nameLocation=null),t.axisName);_&&(l=t.nameLocation,f=t.nameDirection,u=i.getModel("nameTextStyle"),p=i.get("nameGap")||0,d=i.axis.getExtent(),m=i.axis.inverse?-1:1,y=new M(0,0),h=new M(0,0),"start"===l?(y.x=d[0]-m*p,h.x=-m):"end"===l?(y.x=d[1]+m*p,h.x=m):(y.x=(d[0]+d[1])/2,y.y=t.labelOffset+f*p,h.y=f),m=Ne(),h.transform(Ve(m,m,t.rotation)),null!=(p=i.get("nameRotate"))&&(p=p*Rw/180),D1(l)?c=Yw.innerTextLayout(t.rotation,null!=p?p:t.rotation,f):(c=function(t,e,n,i){var r,n=Do(n-t),t=i[0]>i[1],i="start"===e&&!t||"start"!==e&&t;e=Ao(n-Rw/2)?(r=i?"bottom":"top","center"):Ao(n-1.5*Rw)?(r=i?"top":"bottom","center"):(r="middle",n<1.5*Rw&&Rw/2<n?i?"left":"right":i?"right":"left");return{rotation:n,textAlign:e,textVerticalAlign:r}}(t.rotation,l,p||0,d),null!=(g=t.raw.axisNameAvailableWidth)&&(g=Math.abs(g/Math.sin(c.rotation)),isFinite(g)||(g=null))),m=u.getFont(),p=(f=i.get("nameTruncate",!0)||{}).ellipsis,d=St(t.raw.nameTruncateMaxWidth,f.maxWidth,g),f=s.nameMarginLevel||0,Vc({el:g=new cl({x:y.x,y:y.y,rotation:c.rotation,silent:Yw.isLabelSilent(i),style:tp(u,{text:_,font:m,overflow:"truncate",width:d,ellipsis:p,fill:u.getTextColor()||i.get(["axisLine","lineStyle","color"]),align:u.get("align")||c.textAlign,verticalAlign:u.get("verticalAlign")||c.textVerticalAlign}),z2:1}),componentModel:i,itemName:_}),g.__fullText=_,g.anid="name",i.get("triggerEvent")&&((s=Yw.makeAxisEventDataBase(i)).targetType="axisName",s.name=_,G(g).eventData=s),o.add(g),g.updateTransform(),e.nameEl=g,y=v.nameLayout=Gx({label:g,priority:g.z2,defaultAttr:{ignore:g.ignore},marginDefault:(D1(l)?Nw:Bw)[f]}),v.nameLocation=l,r.add(g),g.decomposeTransform(),t.shouldNameMoveOverlap)&&y&&(m=n.ensureRecord(i),n.resolveAxisNameOverlap(t,n,i,y,h,m))}};function Kw(t,e,n,i,r,o,a,s){tS(e)||(h=t,O=e,r=r,s=s,_=a,I=(v=i).axis,a=St(h.raw.axisLabelShow,v.get(["axisLabel","show"])),D=new ao,r.add(D),r=ix(s),!a||I.scale.isBlank()?eS(O,[],D,r):(x=v.getModel("axisLabel"),b=I.getViewLabels(r),s=(St(h.raw.labelRotate,x.get("rotate"))||0)*Rw/180,w=Yw.innerTextLayout(h.rotation,s,h.labelDirection),S=v.getCategories&&v.getCategories(!0),M=[],T=v.get("triggerEvent"),C=1/0,k=-1/0,N(b,function(t,e){var n,i,r,o="ordinal"===I.scale.type?I.scale.getRawOrdinalNumber(t.tickValue):t.tickValue,a=t.formattedLabel,s=t.rawLabel,l=x,u=(l=S&&S[o]&&H(u=S[o])&&u.textStyle?new wp(u.textStyle,x,v.ecModel):l).getTextColor()||v.get(["axisLine","lineStyle","color"]),h=l.getShallow("align",!0)||w.textAlign,c=W(l.getShallow("alignMinLabel",!0),h),p=W(l.getShallow("alignMaxLabel",!0),h),d=l.getShallow("verticalAlign",!0)||l.getShallow("baseline",!0)||w.textVerticalAlign,f=W(l.getShallow("verticalAlignMinLabel",!0),d),g=W(l.getShallow("verticalAlignMaxLabel",!0),d),y=10+((null==(y=t.time)?void 0:y.level)||0),m=(C=Math.min(C,y),k=Math.max(k,y),new cl({x:0,y:0,rotation:0,silent:Yw.isLabelSilent(v),z2:y,style:tp(l,{text:a,align:0===e?c:e===b.length-1?p:h,verticalAlign:0===e?f:e===b.length-1?g:d,fill:B(u)?u("category"===I.type?s:"value"===I.type?o+"":o,e):u})})),y=(m.anid="label_"+o,zw(m));y.break=t.break,y.tickValue=o,y.layoutRotation=w.rotation,Vc({el:m,componentModel:v,itemName:a,formatterParamsExtra:{isTruncated:function(){return m.isTruncated},value:s,tickIndex:e}}),T&&((l=Yw.makeAxisEventDataBase(v)).targetType="axisLabel",l.value=s,l.tickIndex=e,t.break&&(l.break={start:t.break.parsedBreak.vmin,end:t.break.parsedBreak.vmax}),"category"===I.type&&(l.dataIndex=o),G(m).eventData=l,t.break)&&(n=v,i=_,r=t.break,m.on("click",function(t){var e={type:Ow,breaks:[{start:r.parsedBreak.breakOption.start,end:r.parsedBreak.breakOption.end}]};e[n.axis.dim+"AxisIndex"]=n.componentIndex,i.dispatchAction(e)})),M.push(m),D.add(m)}),a=E(M,function(t){return{label:t,priority:zw(t).break?t.z2+(k-C+1):t.z2,defaultAttr:{ignore:t.ignore}}}),eS(O,a,D,r)));var v,_,x,b,w,S,M,T,C,k,I,D,l,u,h,c,p,d,f,g,y,m,A,L,P,s=e.labelLayoutList,O=(l=t,h=s,c=o,p=(u=i).get(["axisLabel","margin"]),N(h,function(t,e){var n,i,t=Gx(t);t&&(n=t.label,i=zw(n),t.suggestIgnore=n.ignore,n.ignore=!1,Nr(nS,iS),nS.x=u.axis.dataToCoord(i.tickValue),nS.y=l.labelOffset+l.labelDirection*p,nS.rotation=i.layoutRotation,c.add(nS),nS.updateTransform(),c.remove(nS),nS.decomposeTransform(),Nr(n,nS),n.markRedraw(),Hx(t,!0),Gx(t))}),t.rotation,t.optionHideOverlap);function R(t,e,n){var i,e=Gx(d[e]),n=Gx(d[n]);e&&n&&(!1===t||e.suggestIgnore?$w(e.label):n.suggestIgnore?$w(n.label):(f||(e=Xx({marginForce:i=[0,0,0,0]},e),n=Xx({marginForce:i},n)),jx(e,n,null,{touchThreshold:.1})&&$w((t?n:e).label)))}d=s,f=O,I1((a=i).axis)||(r=a.get(["axisLabel","showMinLabel"]),a=a.get(["axisLabel","showMaxLabel"]),e=d.length,R(r,0,1),R(a,e-1,e-2)),O&&Zx(ut(s,function(t){return t&&!t.label.ignore})),o=t,r=n,a=s,t=(e=i).axis,y=r.ensureRecord(e),m=[],A=!!o.axisName&&D1(o.nameLocation),N(a,function(t){var e,t=Gx(t);t&&!t.label.ignore&&(m.push(t),e=y.transGroup,A)&&(e.transform?We(Ww,e.transform):Be(Ww),t.transform&&Ee(Ww,Ww,t.transform),X.copy(Gw,t.localRect),Gw.applyTransform(Ww),g?g.union(Gw):X.copy(g=new X(0,0,0,0),Gw))}),L=.1<Math.abs(y.dirVec.x)?"x":"y",P=y.transGroup[L],m.sort(function(t,e){return Math.abs(t.label[L]-P)-Math.abs(e.label[L]-P)}),A&&g&&(r=t.getExtent(),e=Math.min(r[0],r[1]),o=Math.max(r[0],r[1])-e,g.union(new X(e,0,o,1))),y.stOccupiedRect=g,y.labelInfoList=m}function $w(t){t&&(t.ignore=!0)}function Qw(t,e,n,i,r){for(var o=[],a=[],s=[],l=0;l<t.length;l++){var u=t[l].coord,u=(a[0]=u,s[a[1]=0]=u,s[1]=n,e&&(re(a,a,e),re(s,s,e)),new Ch({shape:{x1:a[0],y1:a[1],x2:s[0],y2:s[1]},style:i,z2:2,autoBatch:!0,silent:!0})),u=(kc(u.shape,u.style.lineWidth),u.anid=r+"_"+t[l].tickValue,o.push(u),Ew(u));u.onBand=!!t[l].onBand,u.tickValue=t[l].tickValue}return o}function Jw(t,e,n){if(tS(t)){var i=t.axisLabelsCreationContext.out.noPxChangeTryDetermine;if(n.noPxChange){for(var r=!0,o=0;o<i.length;o++)r=r&&i[o]();if(r)return!1}i.length&&(e.remove(t.labelGroup),eS(t,null,null,null))}return!0}function tS(t){return t.labelLayoutList}function eS(t,e,n,i){t.labelLayoutList=e,t.labelGroup=n,t.axisLabelsCreationContext=i}var nS=new ol,iS=new ol;function rS(t,e,n){n=n||{};var i=e.axis,r={},o=i.getAxesOnZeroOf()[0],a=i.position,s=o?"onZero":a,i=i.dim,t=[t.x,t.x+t.width,t.y,t.y+t.height],l={left:0,right:1,top:0,bottom:1,onZero:2},u=e.get("offset")||0,u="x"===i?[t[2]-u,t[3]+u]:[t[0]-u,t[1]+u],h=(o&&(h=o.toGlobalCoord(o.dataToCoord(0)),u[l.onZero]=Math.max(Math.min(h,u[1]),u[0])),r.position=["y"===i?u[l[s]]:t[0],"x"===i?u[l[s]]:t[3]],r.rotation=Math.PI/2*("x"===i?0:1),r.labelDirection=r.tickDirection=r.nameDirection={top:-1,bottom:1,left:-1,right:1}[a],r.labelOffset=o?u[l[a]]-u[l.onZero]:0,e.get(["axisTick","inside"])&&(r.tickDirection=-r.tickDirection),St(n.labelInside,e.get(["axisLabel","inside"]))&&(r.labelDirection=-r.labelDirection),e.get(["axisLabel","rotate"]));return r.labelRotate="top"===s?-h:h,r.z2=1,r}function oS(i){var r={xAxisModel:null,yAxisModel:null};return N(r,function(t,e){var n=e.replace(/Model$/,""),n=i.getReferringComponents(n,ra).models[0];r[e]=n}),r}var aS=[[3,1],[0,2]],sS=(lS.prototype.getRect=function(){return this._rect},lS.prototype.update=function(t,e){var n=this._axesMap;function i(t){var d,e=ct(t),n=e.length;if(n){for(var i=[],r=n-1;0<=r;r--){var o=t[+e[r]],a=o.model,s=o.scale;C_(s)&&a.get("alignTicks")&&null==a.get("interval")?i.push(o):(S1(s,a),C_(s)&&(d=o))}i.length&&(d||S1((d=i.pop()).scale,d.model),N(i,function(t){var e=t.scale,t=t.model,n=d.scale,i=Z_.prototype,r=i.getTicks.call(n),o=i.getTicks.call(n,{expandToNicedExtent:!0}),a=r.length-1,n=i.getInterval.call(n),s=(u=w1(e,t)).extent,l=u.fixMin,u=u.fixMax,t=("log"===e.type&&(s=B_(e.base,s,!0)),e.setBreaksFromOption(L1(t)),e.setExtent(s[0],s[1]),e.calcNiceExtent({splitNumber:a,fixMin:l,fixMax:u}),i.getExtent.call(e)),h=(l&&(s[0]=t[0]),u&&(s[1]=t[1]),i.getInterval.call(e)),c=s[0],p=s[1];if(l&&u)h=(p-c)/a;else if(l)for(p=s[0]+h*a;p<s[1]&&isFinite(p)&&isFinite(s[1]);)h=I_(h),p=s[0]+h*a;else if(u)for(c=s[1]-h*a;c>s[0]&&isFinite(c)&&isFinite(s[0]);)h=I_(h),c=s[1]-h*a;else{t=(h=a<e.getTicks().length-1?I_(h):h)*a;(c=To((p=Math.ceil(s[1]/h)*h)-t))<0&&0<=s[0]?(c=0,p=To(t)):0<p&&s[1]<=0&&(p=0,c=-To(t))}l=(r[0].value-o[0].value)/n,u=(r[a].value-o[a].value)/n,i.setExtent.call(e,c+h*l,p+h*u),i.setInterval.call(e,h),(l||u)&&i.setNiceExtent.call(e,c+h,p-h)}))}}this._updateScale(t,this.model),i(n.x),i(n.y);var r={};N(n.x,function(t){hS(n,"y",t,r)}),N(n.y,function(t){hS(n,"x",t,r)}),this.resize(this.model,e)},lS.prototype.resize=function(t,e,n){var i,r,o,a,s,l=Od(t,e),u=this._rect=Ad(t.getBoxLayoutParams(),l.refContainer),h=this._axesMap,c=this._coordsList,p=t.get("containLabel");pS(h,u),n||(i=u,r=c,n=h,o=p,a=e,s=new Fw(yS),N(n,function(t){return N(t,function(t){A1(t.model)&&(t.axisBuilder=function(t,e,n,i,r,o){for(var t=rS(t,n),a=!1,s=!1,l=0;l<e.length;l++)C_(e[l].getOtherAxis(n.axis).scale)&&(a=s=!0,"category"===n.axis.type)&&n.axis.onBand&&(s=!1);return t.axisLineAutoShow=a,t.axisTickAutoShow=s,t.defaultNameMoveOverlap=o,new Yw(n,i,t,r)}(i,r,t.model,a,s,!o))})}),c=s,e=void 0,p?e=fS(u.clone(),"axisLabel",null,u,h,c,l):(p=(n=function(t,e,n){var i,r=t.get("outerBoundsMode",!0);"same"===r?i=e.clone():null!=r&&"auto"!==r||(i=Ad(t.get("outerBounds",!0)||pw,n.refContainer));r=t.get("outerBoundsContain",!0);n=null==r||"auto"===r||I(["all","axisLabel"],r)<0?"all":r;r=[Mo(W(t.get("outerBoundsClampWidth",!0),dw[0]),e.width),Mo(W(t.get("outerBoundsClampHeight",!0),dw[1]),e.height)];return{outerBoundsRect:i,parsedOuterBoundsContain:n,outerBoundsClamp:r}}(t,u,l)).outerBoundsRect,t=n.parsedOuterBoundsContain,n=n.outerBoundsClamp,p&&(e=fS(p,t,n,u,h,c,l))),gS(u,h,nx.determine,null,e,l)),N(this._coordsList,function(t){t.calcAffineTransform()})},lS.prototype.getAxis=function(t,e){t=this._axesMap[t];if(null!=t)return t[e||0]},lS.prototype.getAxes=function(){return this._axesList.slice()},lS.prototype.getCartesian=function(t,e){if(null!=t&&null!=e)return this._coordsMap["x"+t+"y"+e];H(t)&&(e=t.yAxisIndex,t=t.xAxisIndex);for(var n=0,i=this._coordsList;n<i.length;n++)if(i[n].getAxis("x").index===t||i[n].getAxis("y").index===e)return i[n]},lS.prototype.getCartesians=function(){return this._coordsList.slice()},lS.prototype.convertToPixel=function(t,e,n){e=this._findConvertTarget(e);return e.cartesian?e.cartesian.dataToPoint(n):e.axis?e.axis.toGlobalCoord(e.axis.dataToCoord(n)):null},lS.prototype.convertFromPixel=function(t,e,n){e=this._findConvertTarget(e);return e.cartesian?e.cartesian.pointToData(n):e.axis?e.axis.coordToData(e.axis.toLocalCoord(n)):null},lS.prototype._findConvertTarget=function(t){var e,n,i=t.seriesModel,r=t.xAxisModel||i&&i.getReferringComponents("xAxis",ra).models[0],o=t.yAxisModel||i&&i.getReferringComponents("yAxis",ra).models[0],t=t.gridModel,a=this._coordsList;return i?I(a,e=i.coordinateSystem)<0&&(e=null):r&&o?e=this.getCartesian(r.componentIndex,o.componentIndex):r?n=this.getAxis("x",r.componentIndex):o?n=this.getAxis("y",o.componentIndex):t&&t.coordinateSystem===this&&(e=this._coordsList[0]),{cartesian:e,axis:n}},lS.prototype.containPoint=function(t){var e=this._coordsList[0];if(e)return e.containPoint(t)},lS.prototype._initCartesian=function(o,t,e){var a=this,s=this,l={left:!1,right:!1,top:!1,bottom:!1},u={x:{},y:{}},h={x:0,y:0};function n(r){return function(t,e){var n,i;uS(t,o)&&(n=t.get("position"),"x"===r?"top"!==n&&"bottom"!==n&&(n=l.bottom?"top":"bottom"):"left"!==n&&"right"!==n&&(n=l.left?"right":"left"),l[n]=!0,i="category"===(n=new Lw(r,M1(t),[0,0],t.get("type"),n)).type,n.onBand=i&&t.get("boundaryGap"),n.inverse=t.get("inverse"),(t.axis=n).model=t,n.grid=s,n.index=e,s._axesList.push(n),u[r][e]=n,h[r]++)}}t.eachComponent("xAxis",n("x"),this),t.eachComponent("yAxis",n("y"),this),h.x&&h.y?N((this._axesMap=u).x,function(i,r){N(u.y,function(t,e){var e="x"+r+"y"+e,n=new Iw(e);n.master=a,n.model=o,a._coordsMap[e]=n,a._coordsList.push(n),n.addAxis(i),n.addAxis(t)})}):(this._axesMap={},this._axesList=[])},lS.prototype._updateScale=function(t,i){function r(e,n){var i,t,r;N((i=e,t=n.dim,r={},N(i.mapDimensionsAll(t),function(t){r[M_(i,t)]=!0}),ct(r)),function(t){n.scale.unionExtentFromData(e,t)})}N(this._axesList,function(t){var e;t.scale.setExtent(1/0,-1/0),"category"===t.type&&(e=t.model.get("categorySortInfo"),t.scale.setSortInfo(e))}),t.eachSeries(function(t){var e,n;(n=t).coordinateSystem&&"cartesian2d"===n.coordinateSystem.type&&(e=(n=oS(t)).xAxisModel,n=n.yAxisModel,uS(e,i))&&uS(n,i)&&(e=this.getCartesian(e.componentIndex,n.componentIndex),n=t.getData(),t=e.getAxis("x"),e=e.getAxis("y"),r(n,t),r(n,e))},this)},lS.prototype.getTooltipAxes=function(n){var i=[],r=[];return N(this.getCartesians(),function(t){var e=null!=n&&"auto"!==n?t.getAxis(n):t.getBaseAxis(),t=t.getOtherAxis(e);I(i,e)<0&&i.push(e),I(r,t)<0&&r.push(t)}),{baseAxes:i,otherAxes:r}},lS.create=function(i,r){var o=[];return i.eachComponent("grid",function(t,e){var n=new lS(t,i,r);n.name="grid_"+e,n.resize(t,r,!0),t.coordinateSystem=n,o.push(n)}),i.eachSeries(function(n){var t,e,i,r,o,a;e=(t={targetModel:n,coordSysType:"cartesian2d",coordSysProvider:function(){var t=oS(n),e=t.xAxisModel,t=t.yAxisModel;return e.getCoordSysModel().coordinateSystem.getCartesian(e.componentIndex,t.componentIndex)}}).targetModel,i=t.coordSysType,r=t.coordSysProvider,o=t.isDefaultDataCoordSys,t.allowNotFound,a=(t=Td(e)).kind,t=t.coordSysType,o&&a!==Md.dataCoordSys&&(a=Md.dataCoordSys,t=i),a!==Md.none&&t===i&&(o=r(i,e))&&(a===Md.dataCoordSys?e.coordinateSystem=o:e.boxCoordinateSystem=o)}),o},lS.dimensions=Tw,lS);function lS(t,e,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=Tw,this._initCartesian(t,e,n),this.model=t}function uS(t,e){return t.getCoordSysModel()===e}function hS(t,e,n,i){n.getAxesOnZeroOf=function(){return r?[r]:[]};var r,o=t[e],t=n.model,e=t.get(["axisLine","onZero"]),n=t.get(["axisLine","onZeroAxisIndex"]);if(e){if(null!=n)cS(o[n])&&(r=o[n]);else for(var a in o)if(o.hasOwnProperty(a)&&cS(o[a])&&!i[s(o[a])]){r=o[a];break}r&&(i[s(r)]=!0)}function s(t){return t.dim+"_"+t.index}}function cS(t){return t&&"category"!==t.type&&"time"!==t.type&&(e=(t=(t=t).scale.getExtent())[0],t=t[1],!(0<e&&0<t||e<0&&t<0));var e}function pS(t,e){N(t.x,function(t){return dS(t,e.x,e.width)}),N(t.y,function(t){return dS(t,e.y,e.height)})}function dS(t,e,n){var i,r,n=[0,n],o=t.inverse?1:0;t.setExtent(n[o],n[1-o]),i=e,o=(n=t).getExtent(),r=o[0]+o[1],n.toGlobalCoord="x"===n.dim?function(t){return t+i}:function(t){return r-t+i},n.toLocalCoord="x"===n.dim?function(t){return t-i}:function(t){return r-t+i}}function fS(r,t,e,n,i,l,o){gS(n,i,nx.estimate,t,!1,o);var a=[0,0,0,0],t=(s(0),s(1),u(n,0,NaN),u(n,1,NaN),null==ht(a,function(t){return 0<t}));return zc(n,a,!0,!0,e),pS(i,n),t;function s(s){N(i[gc[s]],function(t){if(A1(t.model)){var e=l.ensureRecord(t.model),n=e.labelInfoList;if(n)for(var i=0;i<n.length;i++){var r=n[i],o=t.scale.normalize(zw(r.label).tickValue);u(r.rect,s,o=1===s?1-o:o),u(r.rect,1-s,NaN)}var a=e.nameLayout;a&&(o=D1(e.nameLocation)?.5:NaN,u(a.rect,s,o),u(a.rect,1-s,NaN))}})}function u(t,e,n){var i=r[gc[e]]-t[gc[e]],t=t[yc[e]]+t[gc[e]]-(r[yc[e]]+r[gc[e]]),i=h(i,1-n),t=h(t,n),n=aS[e][0],e=aS[e][1];a[n]=xo(a[n],i),a[e]=xo(a[e],t)}function h(t,e){return 0<t&&!wt(e)&&1e-4<e&&(t/=e),t}}function gS(r,t,e,n,o,i){var a=e===nx.determine,s=(N(t,function(t){return N(t,function(t){var e,n,i;A1(t.model)&&(e=t.axisBuilder,n=r,i=t.model,n=rS(r,i),e.updateCfg(n),t.axisBuilder.build(a?{axisTickLabelDetermine:!0}:{axisTickLabelEstimate:!0},{noPxChange:o}))})}),{x:0,y:0});function l(t){s[gc[1-t]]=r[yc[t]]<=.5*i.refContainer[yc[t]]?0:1-t==1?2:1}l(0),l(1),N(t,function(t,e){return N(t,function(t){A1(t.model)&&("all"!==n&&!a||t.axisBuilder.build({axisName:!0},{nameMarginLevel:s[e]}),a)&&t.axisBuilder.build({axisLine:!0})})})}var yS=function(t,e,n,i,r,o){n="x"===n.axis.dim?"y":"x";Hw(t,0,0,i,r,o),D1(t.nameLocation)||N(e.recordMap[n],function(t){t&&t.labelInfoList&&t.dirVec&&Xw(t.labelInfoList,t.dirVec,i,r)})};function mS(t,e){var h,c,r,p,d,f,o,n={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return h=n,e=e,r=(c=t).getComponent("tooltip"),p=c.getComponent("axisPointer"),d=p.get("link",!0)||[],f=[],N(e.getCoordinateSystems(),function(s){var l,u,t,e,n;function i(t,e,n){var i,r,o=n.model.getModel("axisPointer",p),a=o.get("show");a&&("auto"!==a||t||xS(o))&&(null==e&&(e=o.get("triggerTooltip")),a=(o=t?function(t,e,n,i,r,o){var a=e.getModel("axisPointer"),s={};N(["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],function(t){s[t]=y(a.get(t))}),s.snap="category"!==t.type&&!!o,"cross"===a.get("type")&&(s.type="line");e=s.label||(s.label={});null==e.show&&(e.show=!1),"cross"===r&&(r=a.get(["label","show"]),e.show=null==r||r,o||(r=s.lineStyle=a.get("crossStyle"))&&z(e,r.textStyle));return t.model.getModel("axisPointer",new wp(s,n,i))}(n,u,p,c,t,e):o).get("snap"),t=o.get("triggerEmphasis"),i=bS(n.model),r=e||a||"category"===n.type,e=h.axesInfo[i]={key:i,axis:n,coordSys:s,axisPointerModel:o,triggerTooltip:e,triggerEmphasis:t,involveSeries:r,snap:a,useHandle:xS(o),seriesModels:[],linkGroup:null},l[i]=e,h.seriesInvolved=h.seriesInvolved||r,null!=(t=function(t,e){for(var n=e.model,i=e.dim,r=0;r<t.length;r++){var o=t[r]||{};if(vS(o[i+"AxisId"],n.id)||vS(o[i+"AxisIndex"],n.componentIndex)||vS(o[i+"AxisName"],n.name))return r}}(d,n)))&&((a=f[t]||(f[t]={axesInfo:{}})).axesInfo[i]=e,a.mapper=d[t].mapper,e.linkGroup=a)}s.axisPointerEnabled&&(t=bS(s.model),l=h.coordSysAxesInfo[t]={},u=(h.coordSysMap[t]=s).model.getModel("tooltip",r),N(s.getAxes(),dt(i,!1,null)),s.getTooltipAxes)&&r&&u.get("show")&&(t="axis"===u.get("trigger"),e="cross"===u.get(["axisPointer","type"]),n=s.getTooltipAxes(u.get(["axisPointer","axis"])),(t||e)&&N(n.baseAxes,dt(i,!e||"cross",t)),e)&&N(n.otherAxes,dt(i,"cross",!1))}),n.seriesInvolved&&(o=n,t.eachSeries(function(n){var i=n.coordinateSystem,t=n.get(["tooltip","trigger"],!0),e=n.get(["tooltip","show"],!0);i&&i.model&&"none"!==t&&!1!==t&&"item"!==t&&!1!==e&&!1!==n.get(["axisPointer","show"],!0)&&N(o.coordSysAxesInfo[bS(i.model)],function(t){var e=t.axis;i.getAxis(e.dim)===e&&(t.seriesModels.push(n),null==t.seriesDataCount&&(t.seriesDataCount=0),t.seriesDataCount+=n.getData().count())})})),n}function vS(t,e){return"all"===t||F(t)&&0<=I(t,e)||t===e}function _S(t){var e=(t.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[bS(t)]}function xS(t){return!!t.get(["handle","show"])}function bS(t){return t.type+"||"+t.id}var wS,SS={},MS=(u(TS,wS=Gy),TS.prototype.render=function(t,e,n,i){var r,o,a,s,l,u;this.axisPointerClass&&(r=_S(r=t))&&(l=r.axisPointerModel,o=r.axis.scale,a=l.option,u=l.get("status"),null!=(s=l.get("value"))&&(s=o.parse(s)),l=xS(l),null==u&&(a.status=l?"show":"hide"),(u=o.getExtent().slice())[0]>u[1]&&u.reverse(),(s=null==s||s>u[1]?u[1]:s)<u[0]&&(s=u[0]),a.value=s,l)&&(a.status=r.axis.scale.isBlank()?"hide":"show"),wS.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(t,n,!0)},TS.prototype.updateAxisPointer=function(t,e,n,i){this._doUpdateAxisPointerClass(t,n,!1)},TS.prototype.remove=function(t,e){var n=this._axisPointer;n&&n.remove(e)},TS.prototype.dispose=function(t,e){this._disposeAxisPointer(e),wS.prototype.dispose.apply(this,arguments)},TS.prototype._doUpdateAxisPointerClass=function(t,e,n){var i,r=TS.getAxisPointerClass(this.axisPointerClass);r&&((i=(i=_S(i=t))&&i.axisPointerModel)?(this._axisPointer||(this._axisPointer=new r)).render(t,i,e,n):this._disposeAxisPointer(e))},TS.prototype._disposeAxisPointer=function(t){this._axisPointer&&this._axisPointer.dispose(t),this._axisPointer=null},TS.registerAxisPointerClass=function(t,e){SS[t]=e},TS.getAxisPointerClass=function(t){return t&&SS[t]},TS.type="axis",TS);function TS(){var t=null!==wS&&wS.apply(this,arguments)||this;return t.type=TS.type,t}var CS=ta();var kS,IS=["splitArea","splitLine","minorSplitLine","breakArea"],Hm=(u(DS,kS=MS),DS.prototype.render=function(e,t,n,i){this.group.removeAll();var r=this._axisGroup;this._axisGroup=new ao,this.group.add(this._axisGroup),A1(e)&&(this._axisGroup.add(e.axis.axisBuilder.group),N(IS,function(t){e.get([t,"show"])&&LS[t](this,this._axisGroup,e,e.getCoordSysModel(),n)},this),i&&"changeAxisOrder"===i.type&&i.isInitSort||Pc(r,this._axisGroup,e),kS.prototype.render.call(this,e,t,n,i))},DS.prototype.remove=function(){CS(this).splitAreaColors=null},DS.type="cartesianAxis",DS);function DS(){var t=null!==kS&&kS.apply(this,arguments)||this;return t.type=DS.type,t.axisPointerClass="CartesianAxisPointer",t}var AS,LS={splitLine:function(t,e,n,i,r){var o=n.axis;if(!o.scale.isBlank())for(var n=n.getModel("splitLine"),a=n.getModel("lineStyle"),s=a.get("color"),l=!1!==n.get("showMinLine"),u=!1!==n.get("showMaxLine"),s=F(s)?s:[s],h=i.coordinateSystem.getRect(),c=o.isHorizontal(),p=0,d=o.getTicksCoords({tickModel:n,breakTicks:"none",pruneByBreak:"preserve_extent_bound"}),f=[],g=[],y=a.getLineStyle(),m=0;m<d.length;m++){var v,_=o.toGlobalCoord(d[m].coord);0===m&&!l||m===d.length-1&&!u||(v=d[m].tickValue,c?(f[0]=_,f[1]=h.y,g[0]=_,g[1]=h.y+h.height):(f[0]=h.x,f[1]=_,g[0]=h.x+h.width,g[1]=_),_=p++%s.length,kc((v=new Ch({anid:null!=v?"line_"+v:null,autoBatch:!0,shape:{x1:f[0],y1:f[1],x2:g[0],y2:g[1]},style:z({stroke:s[_]},y),silent:!0})).shape,y.lineWidth),e.add(v))}},minorSplitLine:function(t,e,n,i,r){var o=n.axis,n=n.getModel("minorSplitLine").getModel("lineStyle"),a=i.coordinateSystem.getRect(),s=o.isHorizontal(),l=o.getMinorTicksCoords();if(l.length)for(var u=[],h=[],c=n.getLineStyle(),p=0;p<l.length;p++)for(var d=0;d<l[p].length;d++){var f=o.toGlobalCoord(l[p][d].coord),f=(s?(u[0]=f,u[1]=a.y,h[0]=f,h[1]=a.y+a.height):(u[0]=a.x,u[1]=f,h[0]=a.x+a.width,h[1]=f),new Ch({anid:"minor_line_"+l[p][d].tickValue,autoBatch:!0,shape:{x1:u[0],y1:u[1],x2:h[0],y2:h[1]},style:c,silent:!0}));kc(f.shape,c.lineWidth),e.add(f)}},splitArea:function(t,e,n,i,r){var o=e,e=i,a=(i=n).axis;if(!a.scale.isBlank()){var i=i.getModel("splitArea"),n=i.getModel("areaStyle"),s=n.get("color"),l=e.coordinateSystem.getRect(),u=a.getTicksCoords({tickModel:i,clamp:!0,breakTicks:"none",pruneByBreak:"preserve_extent_bound"});if(u.length){var h=s.length,c=CS(t).splitAreaColors,p=O(),d=0;if(c)for(var f=0;f<u.length;f++){var g=c.get(u[f].tickValue);if(null!=g){d=(g+(h-1)*f)%h;break}}for(var y=a.toGlobalCoord(u[0].coord),m=n.getAreaStyle(),s=F(s)?s:[s],f=1;f<u.length;f++){var v=a.toGlobalCoord(u[f].coord),_=void 0,x=void 0,b=void 0,w=void 0,y=a.isHorizontal()?(_=y,x=l.y,w=l.height,_+(b=v-_)):(_=l.x,x=y,b=l.width,x+(w=v-x)),v=u[f-1].tickValue;null!=v&&p.set(v,d),o.add(new ol({anid:null!=v?"area_"+v:null,shape:{x:_,y:x,width:b,height:w},style:z({fill:s[d]},m),autoBatch:!0,silent:!0})),d=(d+1)%h}CS(t).splitAreaColors=p}}},breakArea:function(t,e,n,i,r){n.axis.scale}},PS=(u(OS,AS=Hm),OS.type="xAxis",OS);function OS(){var t=null!==AS&&AS.apply(this,arguments)||this;return t.type=OS.type,t}u(BS,RS=Hm),BS.type="yAxis";var RS,NS=BS;function BS(){var t=null!==RS&&RS.apply(this,arguments)||this;return t.type=PS.type,t}u(FS,zS=Gy),FS.prototype.render=function(t,e){this.group.removeAll(),t.get("show")&&this.group.add(new ol({shape:t.coordinateSystem.getRect(),style:z({fill:t.get("backgroundColor")},t.getItemStyle()),silent:!0,z2:-1}))},FS.type="grid";var zS,ES=FS;function FS(){var t=null!==zS&&zS.apply(this,arguments)||this;return t.type="grid",t}var VS={offset:0};B1(function(t){t.registerComponentView(ES),t.registerComponentModel(fw),t.registerCoordinateSystem("cartesian2d",sS),ww(t,"x",mw,VS),ww(t,"y",mw,VS),t.registerComponentView(PS),t.registerComponentView(NS),t.registerPreprocessor(function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})})});var HS=ta(),WS=y,GS=pt;function US(){this._dragging=!1,this.animationThreshold=15}function XS(t,e,n,i){!function n(i,t){{var r;return H(i)&&H(t)?(r=!0,N(t,function(t,e){r=r&&n(i[e],t)}),!!r):i===t}}(HS(n).lastProp,i)&&(HS(n).lastProp=i,e?uc(n,i,t):(n.stopAnimation(),n.attr(i)))}function YS(t,e){t[e.get(["label","show"])?"show":"hide"]()}function qS(t){return{x:t.x||0,y:t.y||0,rotation:t.rotation||0}}function ZS(t,e,n){var i=e.get("z"),r=e.get("zlevel");t&&t.traverse(function(t){"group"!==t.type&&(null!=i&&(t.z=i),null!=r&&(t.zlevel=r),t.silent=n)})}function jS(t,e,n,i,r){var o=KS(n.get("value"),e.axis,e.ecModel,n.get("seriesDataIndices"),{precision:n.get(["label","precision"]),formatter:n.get(["label","formatter"])}),n=n.getModel("label"),a=cd(n.get("padding")||0),s=n.getFont(),l=Hr(o,s),u=r.position,h=l.width+a[1]+a[3],l=l.height+a[0]+a[2],c=r.align,c=("right"===c&&(u[0]-=h),"center"===c&&(u[0]-=h/2),r.verticalAlign),i=("bottom"===c&&(u[1]-=l),"middle"===c&&(u[1]-=l/2),r=u,c=h,h=l,i=(l=i).getWidth(),l=l.getHeight(),r[0]=Math.min(r[0]+c,i)-c,r[1]=Math.min(r[1]+h,l)-h,r[0]=Math.max(r[0],0),r[1]=Math.max(r[1],0),n.get("backgroundColor"));i&&"auto"!==i||(i=e.get(["axisLine","lineStyle","color"])),t.label={x:u[0],y:u[1],style:tp(n,{text:o,font:s,fill:n.getTextColor(),padding:a,backgroundColor:i}),z2:10}}function KS(t,e,n,i,r){t=e.scale.parse(t);var o,a=e.scale.getLabel({value:t},{precision:r.precision}),r=r.formatter;return r&&(o={value:C1(e,{value:t}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]},N(i,function(t){var e=n.getSeriesByIndex(t.seriesIndex),t=t.dataIndexInside,e=e&&e.getDataParams(t);e&&o.seriesData.push(e)}),V(r)?a=r.replace("{value}",a):B(r)&&(a=r(o))),a}function $S(t,e,n){var i=Ne();return Ve(i,i,n.rotation),Fe(i,i,n.position),Ac([t.dataToCoord(e),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],i)}US.prototype.render=function(t,e,n,i){var r,o,a=e.get("value"),s=e.get("status");this._axisModel=t,this._axisPointerModel=e,this._api=n,!i&&this._lastValue===a&&this._lastStatus===s||(this._lastValue=a,this._lastStatus=s,i=this._group,r=this._handle,s&&"hide"!==s?(i&&i.show(),r&&r.show(),this.makeElOption(s={},a,t,e,n),(o=s.graphicKey)!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=o,o=this._moveAnimation=this.determineAnimation(t,e),i?(o=dt(XS,e,o),this.updatePointerEl(i,s,o),this.updateLabelEl(i,s,o,e)):(i=this._group=new ao,this.createPointerEl(i,s,t,e),this.createLabelEl(i,s,t,e),n.getZr().add(i)),ZS(i,e,!0),this._renderHandle(a)):(i&&i.hide(),r&&r.hide()))},US.prototype.remove=function(t){this.clear(t)},US.prototype.dispose=function(t){this.clear(t)},US.prototype.determineAnimation=function(t,e){var n,i=e.get("animation"),r=t.axis,o="category"===r.type,e=e.get("snap");return!(!e&&!o)&&("auto"===i||null==i?(n=this.animationThreshold,o&&r.getBandWidth()>n||!!e&&(o=_S(t).seriesDataCount,e=r.getExtent(),Math.abs(e[0]-e[1])/o>n)):!0===i)},US.prototype.makeElOption=function(t,e,n,i,r){},US.prototype.createPointerEl=function(t,e,n,i){var r=e.pointer;r&&(r=HS(t).pointerEl=new Zc[r.type](WS(e.pointer)),t.add(r))},US.prototype.createLabelEl=function(t,e,n,i){e.label&&(e=HS(t).labelEl=new cl(WS(e.label)),t.add(e),YS(e,i))},US.prototype.updatePointerEl=function(t,e,n){t=HS(t).pointerEl;t&&e.pointer&&(t.setStyle(e.pointer.style),n(t,{shape:e.pointer.shape}))},US.prototype.updateLabelEl=function(t,e,n,i){t=HS(t).labelEl;t&&(t.setStyle(e.label.style),n(t,{x:e.label.x,y:e.label.y}),YS(t,i))},US.prototype._renderHandle=function(t){var e,n,i,r,o,a;!this._dragging&&this.updateHandleTransform&&(e=this._axisPointerModel,n=this._api.getZr(),i=this._handle,r=e.getModel("handle"),a=e.get("status"),r.get("show")&&a&&"hide"!==a?(this._handle||(o=!0,i=this._handle=Nc(r.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(t){Ae(t.event)},onmousedown:GS(this._onHandleDragMove,this,0,0),drift:GS(this._onHandleDragMove,this),ondragend:GS(this._onHandleDragEnd,this)}),n.add(i)),ZS(i,e,!1),i.setStyle(r.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"])),F(a=r.get("size"))||(a=[a,a]),i.scaleX=a[0]/2,i.scaleY=a[1]/2,om(this,"_doDispatchAxisPointer",r.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,o)):(i&&n.remove(i),this._handle=null))},US.prototype._moveHandleToValue=function(t,e){XS(this._axisPointerModel,!e&&this._moveAnimation,this._handle,qS(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},US.prototype._onHandleDragMove=function(t,e){var n=this._handle;n&&(this._dragging=!0,t=this.updateHandleTransform(qS(n),[t,e],this._axisModel,this._axisPointerModel),this._payloadInfo=t,n.stopAnimation(),n.attr(qS(t)),HS(n).lastProp=null,this._doDispatchAxisPointer())},US.prototype._doDispatchAxisPointer=function(){var t,e;this._handle&&(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}]}))},US.prototype._onHandleDragEnd=function(){var t;this._dragging=!1,this._handle&&(t=this._axisPointerModel.get("value"),this._moveHandleToValue(t),this._api.dispatchAction({type:"hideTip"}))},US.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var t=t.getZr(),e=this._group,n=this._handle;t&&e&&(this._lastGraphicKey=null,e&&t.remove(e),n&&t.remove(n),this._group=null,this._handle=null,this._payloadInfo=null),am(this,"_doDispatchAxisPointer")},US.prototype.doClear=function(){},US.prototype.buildLabel=function(t,e,n){return{x:t[n=n||0],y:t[1-n],width:e[n],height:e[1-n]}};u(tM,QS=US),tM.prototype.makeElOption=function(t,e,n,i,r){var o,a,s=n.axis,l=s.grid,u=i.get("type"),h=eM(l,s).getOtherAxis(s).getGlobalExtent(),c=s.toGlobalCoord(s.dataToCoord(e,!0)),p=(u&&"none"!==u&&(o=(a=i).get("type"),a=a.getModel(o+"Style"),"line"===o?(p=a.getLineStyle()).fill=null:"shadow"===o&&((p=a.getAreaStyle()).stroke=null),o=p,(a=nM[u](s,c,h)).style=o,t.graphicKey=a.type,t.pointer=a),rS(l.getRect(),n));u=e,s=t,c=p,h=n,o=i,a=r,l=Yw.innerTextLayout(c.rotation,0,c.labelDirection),c.labelMargin=o.get(["label","margin"]),jS(s,h,o,a,{position:$S(h.axis,u,c),align:l.textAlign,verticalAlign:l.textVerticalAlign})},tM.prototype.getHandleTransform=function(t,e,n){var i=rS(e.axis.grid.getRect(),e,{labelInside:!1}),n=(i.labelMargin=n.get(["handle","margin"]),$S(e.axis,t,i));return{x:n[0],y:n[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},tM.prototype.updateHandleTransform=function(t,e,n,i){var n=n.axis,r=n.grid,o=n.getGlobalExtent(!0),r=eM(r,n).getOtherAxis(n).getGlobalExtent(),n="x"===n.dim?0:1,a=[t.x,t.y],e=(a[n]+=e[n],a[n]=Math.min(o[1],a[n]),a[n]=Math.max(o[0],a[n]),(r[1]+r[0])/2),o=[e,e];o[n]=a[n];return{x:a[0],y:a[1],rotation:t.rotation,cursorPoint:o,tooltipOption:[{verticalAlign:"middle"},{align:"center"}][n]}};var QS,JS=tM;function tM(){return null!==QS&&QS.apply(this,arguments)||this}function eM(t,e){var n={};return n[e.dim+"AxisIndex"]=e.index,t.getCartesian(n)}var nM={line:function(t,e,n){var i;return i=[e,n[0]],e=[e,n[1]],n=iM(t),{type:"Line",subPixelOptimize:!0,shape:{x1:i[n=n||0],y1:i[1-n],x2:e[n],y2:e[1-n]}}},shadow:function(t,e,n){var i=Math.max(1,t.getBandWidth()),r=n[1]-n[0];return{type:"Rect",shape:(e=[e-i/2,n[0]],n=[i,r],i=iM(t),{x:e[i=i||0],y:e[1-i],width:n[i],height:n[1-i]})}}};function iM(t){return"x"===t.dim?0:1}u(aM,rM=g),aM.type="axisPointer",aM.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:m.color.border,width:1,type:"dashed"},shadowStyle:{color:m.color.shadowTint},label:{show:!0,formatter:null,precision:"auto",margin:3,color:m.color.neutral00,padding:[5,7,5,7],backgroundColor:m.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:m.color.accent40,throttle:40}};var rM,oM=aM;function aM(){var t=null!==rM&&rM.apply(this,arguments)||this;return t.type=aM.type,t}var sM=ta(),lM=N;function uM(t,e,n){var i,c,p;function r(t,h){c.on(t,function(e){n=p;var n,i,r={dispatchAction:o,pendings:i={showTip:[],hideTip:[]}};function o(t){var e=i[t.type];e?e.push(t):(t.dispatchAction=o,n.dispatchAction(t))}lM(sM(c).records,function(t){t&&h(t,e,r.dispatchAction)});var t,a=r.pendings,s=p,l=a.showTip.length,u=a.hideTip.length;l?t=a.showTip[l-1]:u&&(t=a.hideTip[u-1]),t&&(t.dispatchAction=null,s.dispatchAction(t))})}w.node||(i=e.getZr(),sM(i).records||(sM(i).records={}),p=e,sM(c=i).initialized||(sM(c).initialized=!0,r("click",dt(cM,"click")),r("mousemove",dt(cM,"mousemove")),r("globalout",hM)),(sM(i).records[t]||(sM(i).records[t]={})).handler=n)}function hM(t,e,n){t.handler("leave",null,n)}function cM(t,e,n,i){e.handler(t,n,i)}function pM(t,e){w.node||(e=e.getZr(),(sM(e).records||{})[t]&&(sM(e).records[t]=null))}u(gM,dM=Gy),gM.prototype.render=function(t,e,n){var e=e.getComponent("tooltip"),i=t.get("triggerOn")||e&&e.get("triggerOn")||"mousemove|click";uM("axisPointer",n,function(t,e,n){"none"!==i&&("leave"===t||0<=i.indexOf(t))&&n({type:"updateAxisPointer",currTrigger:t,x:e&&e.offsetX,y:e&&e.offsetY})})},gM.prototype.remove=function(t,e){pM("axisPointer",e)},gM.prototype.dispose=function(t,e){pM("axisPointer",e)},gM.type="axisPointer";var dM,fM=gM;function gM(){var t=null!==dM&&dM.apply(this,arguments)||this;return t.type=gM.type,t}function yM(t,e){var n,i,r,o,a=[],s=t.seriesIndex;return null==s||!(e=e.getSeriesByIndex(s))||null==(s=Jo(n=e.getData(),t))||s<0||F(s)?{point:[]}:(i=n.getItemGraphicEl(s),r=e.coordinateSystem,e.getTooltipPosition?a=e.getTooltipPosition(s)||[]:r&&r.dataToPoint?a=t.isStacked?(e=r.getBaseAxis(),t=r.getOtherAxis(e).dim,e=e.dim,t="x"===t||"radius"===t?1:0,e=n.mapDimension(e),(o=[])[t]=n.get(e,s),o[1-t]=n.get(n.getCalculationInfo("stackResultDimension"),s),r.dataToPoint(o)||[]):r.dataToPoint(n.getValues(E(r.dimensions,function(t){return n.mapDimension(t)}),s))||[]:i&&((e=i.getBoundingRect().clone()).applyTransform(i.transform),a=[e.x+e.width/2,e.y+e.height/2]),{point:a,el:i})}var mM=ta();function vM(t,e,n){var o,a,i,s,l,r,u,h,c,p,d,f,g,y,m=t.currTrigger,v=[t.x,t.y],_=t,x=t.dispatchAction||pt(n.dispatchAction,n),b=e.getComponent("axisPointer").coordSysAxesInfo;if(b)return SM(v)&&(v=yM({seriesIndex:_.seriesIndex,dataIndex:_.dataIndex},e).point),o=SM(v),a=_.axesInfo,i=b.axesInfo,s="leave"===m||SM(v),l={},e={list:[],map:{}},u={showPointer:dt(xM,r={}),showTooltip:dt(bM,e)},N(b.coordSysMap,function(t,e){var r=o||t.containPoint(v);N(b.coordSysAxesInfo[e],function(t,e){var n=t.axis,i=function(t,e){for(var n=0;n<(t||[]).length;n++){var i=t[n];if(e.axis.dim===i.axisDim&&e.axis.model.componentIndex===i.axisIndex)return i}}(a,t);s||!r||a&&!i||null!=(i=null!=(i=i&&i.value)||o?i:n.pointToData(v))&&_M(t,i,u,!1,l)})}),h={},N(i,function(n,t){var i=n.linkGroup;i&&!r[t]&&N(i.axesInfo,function(t,e){var e=r[e];t!==n&&e&&(e=e.value,i.mapper&&(e=n.axis.scale.parse(i.mapper(e,wM(t),wM(n)))),h[n.key]=e)})}),N(h,function(t,e){_M(i[e],t,u,!0,l)}),c=r,_=i,p=l.axesInfo=[],N(_,function(t,e){var n=t.axisPointerModel.option,e=c[e];e?(t.useHandle||(n.status="show"),n.value=e.value,n.seriesDataIndices=(e.payloadBatch||[]).slice()):t.useHandle||(n.status="hide"),"show"===n.status&&p.push({axisDim:t.axis.dim,axisIndex:t.axis.model.componentIndex,value:n.value})}),m=e,_=t,e=x,SM(t=v)||!m.list.length?e({type:"hideTip"}):(x=((m.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{},e({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:_.tooltipOption,position:_.position,dataIndexInside:x.dataIndexInside,dataIndex:x.dataIndex,seriesIndex:x.seriesIndex,dataByCoordSys:m.list})),e=i,_=(t=n).getZr(),x="axisPointerLastHighlights",d=mM(_)[x]||{},f=mM(_)[x]={},N(e,function(t,e){var n=t.axisPointerModel.option;"show"===n.status&&t.triggerEmphasis&&N(n.seriesDataIndices,function(t){var e=t.seriesIndex+" | "+t.dataIndex;f[e]=t})}),g=[],y=[],N(d,function(t,e){f[e]||y.push(t)}),N(f,function(t,e){d[e]||g.push(t)}),y.length&&t.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:y}),g.length&&t.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:g}),l}function _M(t,e,n,i,r){var o,a,s,l,u,h,c,p,d,f,g=t.axis;!g.scale.isBlank()&&g.containData(e)&&(t.involveSeries?(a=e,s=t.axis,l=s.dim,u=a,h=[],c=Number.MAX_VALUE,p=-1,N(t.seriesModels,function(e,t){var n,i=e.getData().mapDimensionsAll(l);if(e.getAxisTooltipData)var r=e.getAxisTooltipData(i,a,s),o=r.dataIndices,r=r.nestestValue;else{if(!(o=e.indicesOfNearest(l,i[0],a,"category"===s.type?.5:null)).length)return;r=e.getData().get(i[0],o[0])}null!=r&&isFinite(r)&&(i=a-r,(n=Math.abs(i))<=c)&&((n<c||0<=i&&p<0)&&(c=n,p=i,u=r,h.length=0),N(o,function(t){h.push({seriesIndex:e.seriesIndex,dataIndexInside:t,dataIndex:e.getData().getRawIndex(t)})}))}),f=(o={payloadBatch:h,snapToValue:u}).snapToValue,(d=o.payloadBatch)[0]&&null==r.seriesIndex&&P(r,d[0]),!i&&t.snap&&g.containData(f)&&null!=f&&(e=f),n.showPointer(t,e,d),n.showTooltip(t,o,f)):n.showPointer(t,e))}function xM(t,e,n,i){t[e.key]={value:n,payloadBatch:i}}function bM(t,e,n,i){var r,o,n=n.payloadBatch,a=e.axis,s=a.model,l=e.axisPointerModel;e.triggerTooltip&&n.length&&(r=bS(e=e.coordSys.model),(o=t.map[r])||(o=t.map[r]={coordSysId:e.id,coordSysIndex:e.componentIndex,coordSysType:e.type,coordSysMainType:e.mainType,dataByAxis:[]},t.list.push(o)),o.dataByAxis.push({axisDim:a.dim,axisIndex:s.componentIndex,axisType:s.type,axisId:s.id,value:i,valueLabelOpt:{precision:l.get(["label","precision"]),formatter:l.get(["label","formatter"])},seriesDataIndices:n.slice()}))}function wM(t){var e=t.axis.model,n={},t=n.axisDim=t.axis.dim;return n.axisIndex=n[t+"AxisIndex"]=e.componentIndex,n.axisName=n[t+"AxisName"]=e.name,n.axisId=n[t+"AxisId"]=e.id,n}function SM(t){return!t||null==t[0]||isNaN(t[0])||null==t[1]||isNaN(t[1])}function MM(t){MS.registerAxisPointerClass("CartesianAxisPointer",JS),t.registerComponentModel(oM),t.registerComponentView(fM),t.registerPreprocessor(function(t){var e;t&&(t.axisPointer&&0!==t.axisPointer.length||(t.axisPointer={}),e=t.axisPointer.link)&&!F(e)&&(t.axisPointer.link=[e])}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=mS(t,e)}),t.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},vM)}u(kM,TM=g),kM.type="tooltip",kM.dependencies=["axisPointer"],kM.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:m.color.neutral00,shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,defaultBorderColor:m.color.border,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:m.color.borderShade,width:1,type:"dashed",textStyle:{}}},textStyle:{color:m.color.tertiary,fontSize:14}};var TM,CM=kM;function kM(){var t=null!==TM&&TM.apply(this,arguments)||this;return t.type=kM.type,t}function IM(t){var e=t.get("confine");return null!=e?e:"richText"===t.get("renderMode")}function DM(t){if(w.domSupported)for(var e=document.documentElement.style,n=0,i=t.length;n<i;n++)if(t[n]in e)return t[n]}var AM=DM(["transform","webkitTransform","OTransform","MozTransform","msTransform"]);function LM(t,e){if(!t)return e;e=hd(e,!0);var n=t.indexOf(e);return(t=-1===n?e:"-"+t.slice(0,n)+"-"+e).toLowerCase()}var PM=LM(DM(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),"transition"),OM=LM(AM,"transform"),RM="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(w.transform3dSupported?"will-change:transform;":"");function NM(t,e,n){var i,t=t.toFixed(0)+"px",e=e.toFixed(0)+"px";return w.transformSupported?(i="translate"+((i=w.transform3dSupported)?"3d":"")+"("+t+","+e+(i?",0":"")+")",n?"top:0;left:0;"+OM+":"+i+";":[["top",0],["left",0],[AM,i]]):n?"top:"+e+";left:"+t+";":[["top",e],["left",t]]}function BM(i,t,e,n){var r,o,a=[],s=i.get("transitionDuration"),l=i.get("backgroundColor"),u=i.get("shadowBlur"),h=i.get("shadowColor"),c=i.get("shadowOffsetX"),p=i.get("shadowOffsetY"),d=i.getModel("textStyle"),f=Iy(i,"html");return a.push("box-shadow:"+(c+"px "+p+"px "+u+"px "+h)),t&&0<s&&a.push((c=s,p="cubic-bezier(0.23,1,0.32,1)",h=u="",n&&(h="opacity"+(u=" "+c/2+"s "+p)+",visibility"+u),e||(u=" "+c+"s "+p,h+=(h.length?",":"")+(w.transformSupported?""+OM+u:",left"+u+",top"+u)),PM+":"+h)),l&&a.push("background-color:"+l),N(["width","color","radius"],function(t){var e="border-"+t,n=hd(e),n=i.get(n);null!=n&&a.push(e+":"+n+("color"===t?"":"px"))}),a.push((o=[],t=(r=d).get("fontSize"),(s=r.getTextColor())&&o.push("color:"+s),o.push("font:"+r.getFont()),s=W(r.get("lineHeight"),Math.round(3*t/2)),t&&o.push("line-height:"+s+"px"),t=r.get("textShadowColor"),s=r.get("textShadowBlur")||0,n=r.get("textShadowOffsetX")||0,e=r.get("textShadowOffsetY")||0,t&&s&&o.push("text-shadow:"+n+"px "+e+"px "+s+"px "+t),N(["decoration","align"],function(t){var e=r.get(t);e&&o.push("text-"+t+":"+e)}),o.join(";"))),null!=f&&a.push("padding:"+cd(f).join("px ")+"px"),a.join(";")+";"}function zM(t,e,n,i,r){var o,a,s=e&&e.painter;n?(o=s&&s.getViewportRoot())&&(a=t,n=n,ve(me,o,i,r,!0))&&ve(a,n,me[0],me[1]):(t[0]=i,t[1]=r,(o=s&&s.getViewportRootOffset())&&(t[0]+=o.offsetLeft,t[1]+=o.offsetTop)),t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}FM.prototype.update=function(t){this._container||(i=this._api.getDom(),n="position",n=(e=(e=i).currentStyle||document.defaultView&&document.defaultView.getComputedStyle(e))?n?e[n]:e:null,"absolute"!==(e=i.style).position&&"absolute"!==n&&(e.position="relative"));var e,n,i=t.get("alwaysShowContent");i&&this._moveIfResized(),this._alwaysShowContent=i,this._enableDisplayTransition=t.get("displayTransition")&&0<t.get("transitionDuration"),this.el.className=t.get("className")||""},FM.prototype.show=function(t,e){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,i=n.style,r=this._styleCoord;n.innerHTML?i.cssText=RM+BM(t,!this._firstShow,this._longHide,this._enableDisplayTransition)+NM(r[0],r[1],!0)+"border-color:"+md(e)+";"+(t.get("extraCssText")||"")+";pointer-events:"+(this._enterable?"auto":"none"):i.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},FM.prototype.setContent=function(t,e,n,i,r){var o=this.el;if(null==t)o.innerHTML="";else{var a,s,l,u,h,c="";if(V(r)&&"item"===n.get("trigger")&&!IM(n)&&(n=n,i=i,c=V(r=r)&&"inside"!==r?(a=n.get("backgroundColor"),n=n.get("borderWidth"),i=md(i),r=r="left"===(r=r)?"right":"right"===r?"left":"top"===r?"bottom":"top",p=Math.max(1.5*Math.round(n),6),s="",l=OM+":",-1<I(["left","right"],r)?(s+="top:50%",l+="translateY(-50%) rotate("+(h="left"==r?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(h="top"==r?225:45)+"deg)"),h=h*Math.PI/180,h=(u=p+n)*Math.abs(Math.cos(h))+u*Math.abs(Math.sin(h)),i=i+" solid "+n+"px;",'<div style="'+["position:absolute;width:"+p+"px;height:"+p+"px;z-index:-1;",(s+=";"+r+":-"+Math.round(100*((h-Math.SQRT2*n)/2+Math.SQRT2*n-(h-u)/2))/100+"px")+";"+l+";","border-bottom:"+i,"border-right:"+i,"background-color:"+a+";"].join("")+'"></div>'):""),V(t))o.innerHTML=t+c;else if(t){o.innerHTML="",F(t)||(t=[t]);for(var p,d=0;d<t.length;d++)vt(t[d])&&t[d].parentNode!==o&&o.appendChild(t[d]);c&&o.childNodes.length&&((p=document.createElement("div")).innerHTML=c,o.appendChild(p))}}},FM.prototype.setEnterable=function(t){this._enterable=t},FM.prototype.getSize=function(){var t=this.el;return t?[t.offsetWidth,t.offsetHeight]:[0,0]},FM.prototype.moveTo=function(t,e){var n,i;this.el&&(zM(n=this._styleCoord,this._zr,this._container,t,e),null!=n[0])&&null!=n[1]&&(i=this.el.style,N(NM(n[0],n[1]),function(t){i[t[0]]=t[1]}))},FM.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},FM.prototype.hide=function(){var t=this,e=this.el.style;this._enableDisplayTransition?(e.visibility="hidden",e.opacity="0"):e.display="none",w.transform3dSupported&&(e.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return t._longHide=!0},500)},FM.prototype.hideLater=function(t){!this._show||this._inContent&&this._enterable||this._alwaysShowContent||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(pt(this.hide,this),t)):this.hide())},FM.prototype.isShow=function(){return this._show},FM.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var t=this._zr;function e(t){var e=t[ye];e&&(e.clearMarkers&&e.clearMarkers(),delete t[ye])}t=t&&t.painter&&t.painter.getViewportRoot(),n=this._container,t&&e(t),n&&e(n);var n,t=this.el;t&&(t.onmouseenter=t.onmousemove=t.onmouseleave=null,n=t.parentNode)&&n.removeChild(t),this.el=this._container=null};var EM=FM;function FM(t,e){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,w.wxa)return null;var n=document.createElement("div"),i=(n.domBelongToZr=!0,this.el=n,this._zr=t.getZr()),e=e.appendTo,e=e&&(V(e)?document.querySelector(e):vt(e)?e:B(e)&&e(t.getDom())),r=(zM(this._styleCoord,i,e,t.getWidth()/2,t.getHeight()/2),(e||t.getDom()).appendChild(n),this._api=t,this._container=e,this);n.onmouseenter=function(){r._enterable&&(clearTimeout(r._hideTimeout),r._show=!0),r._inContent=!0},n.onmousemove=function(t){var e;t=t||window.event,r._enterable||(e=i.handler,De(i.painter.getViewportRoot(),t,!0),e.dispatch("mousemove",t))},n.onmouseleave=function(){r._inContent=!1,r._enterable&&r._show&&r.hideLater(r._hideDelay)}}HM.prototype.update=function(t){t=t.get("alwaysShowContent");t&&this._moveIfResized(),this._alwaysShowContent=t},HM.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},HM.prototype.setContent=function(t,e,n,i,r){var o=this,a=(H(t)&&f(""),this.el&&this._zr.remove(this.el),n.getModel("textStyle")),s=(this.el=new cl({style:{rich:e.richTextStyles,text:t,lineHeight:22,borderWidth:1,borderColor:i,textShadowColor:a.get("textShadowColor"),fill:n.get(["textStyle","color"]),padding:Iy(n,"richText"),verticalAlign:"top",align:"left"},z:n.get("z")}),N(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(t){o.el.style[t]=n.get(t)}),N(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(t){o.el.style[t]=a.get(t)||0}),this._zr.add(this.el),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})},HM.prototype.setEnterable=function(t){this._enterable=t},HM.prototype.getSize=function(){var t=this.el,e=this.el.getBoundingRect(),t=GM(t.style);return[e.width+t.left+t.right,e.height+t.top+t.bottom]},HM.prototype.moveTo=function(t,e){var n,i,r=this.el;r&&(UM(i=this._styleCoord,this._zr,t,e),t=i[0],e=i[1],n=WM((i=r.style).borderWidth||0),i=GM(i),r.x=t+n+i.left,r.y=e+n+i.top,r.markRedraw())},HM.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},HM.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},HM.prototype.hideLater=function(t){!this._show||this._inContent&&this._enterable||this._alwaysShowContent||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(pt(this.hide,this),t)):this.hide())},HM.prototype.isShow=function(){return this._show},HM.prototype.dispose=function(){this._zr.remove(this.el)};var VM=HM;function HM(t){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=t.getZr(),UM(this._styleCoord,this._zr,t.getWidth()/2,t.getHeight()/2)}function WM(t){return Math.max(0,t)}function GM(t){var e=WM(t.shadowBlur||0),n=WM(t.shadowOffsetX||0),t=WM(t.shadowOffsetY||0);return{left:WM(e-n),right:WM(e+n),top:WM(e-t),bottom:WM(e+t)}}function UM(t,e,n,i){t[0]=n,t[1]=i,t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var XM,YM=new ol({shape:{x:-1,y:-1,width:2,height:2}}),qM=(u(ZM,XM=Gy),ZM.prototype.init=function(t,e){var n;!w.node&&e.getDom()&&(t=t.getComponent("tooltip"),n=this._renderMode="auto"===(n=t.get("renderMode"))?w.domSupported?"html":"richText":n||"html",this._tooltipContent="richText"===n?new VM(e):new EM(e,{appendTo:t.get("appendToBody",!0)?"body":t.get("appendTo",!0)}))},ZM.prototype.render=function(t,e,n){!w.node&&n.getDom()&&(this.group.removeAll(),this._tooltipModel=t,this._ecModel=e,this._api=n,(e=this._tooltipContent).update(t),e.setEnterable(t.get("enterable")),this._initGlobalListener(),this._keepShow(),"richText"!==this._renderMode&&t.get("transitionDuration")?om(this,"_updatePosition",50,"fixRate"):am(this,"_updatePosition"))},ZM.prototype._initGlobalListener=function(){var i=this._tooltipModel.get("triggerOn");uM("itemTooltip",this._api,pt(function(t,e,n){"none"!==i&&(0<=i.indexOf(t)?this._tryShow(e,n):"leave"===t&&this._hide(n))},this))},ZM.prototype._keepShow=function(){var t,e=this._tooltipModel,n=this._ecModel,i=this._api,r=e.get("triggerOn");null!=this._lastX&&null!=this._lastY&&"none"!==r&&"click"!==r&&(t=this,clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){i.isDisposed()||t.manuallyShowTip(e,n,i,{x:t._lastX,y:t._lastY,dataByCoordSys:t._lastDataByCoordSys})}))},ZM.prototype.manuallyShowTip=function(t,e,n,i){var r,o,a,s;i.from!==this.uid&&!w.node&&n.getDom()&&(r=KM(i,n),this._ticket="",s=i.dataByCoordSys,(o=function(n,t,e){var i=ia(n).queryOptionMap,r=i.keys()[0];if(r&&"series"!==r){var o,t=oa(t,r,i.get(r),{useDefault:!1,enableAll:!1,enableNone:!1}).models[0];if(t)if(e.getViewOfComponentModel(t).group.traverse(function(t){var e=G(t).tooltipConfig;if(e&&e.name===n.name)return o=t,!0}),o)return{componentMainType:r,componentIndex:t.componentIndex,el:o}}}(i,e,n))?((a=o.el.getBoundingRect().clone()).applyTransform(o.el.transform),this._tryShow({offsetX:a.x+a.width/2,offsetY:a.y+a.height/2,target:o.el,position:i.position,positionDefault:"bottom"},r)):i.tooltip&&null!=i.x&&null!=i.y?((a=YM).x=i.x,a.y=i.y,a.update(),G(a).tooltipConfig={name:null,option:i.tooltip},this._tryShow({offsetX:i.x,offsetY:i.y,target:a},r)):s?this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,dataByCoordSys:s,tooltipOption:i.tooltipOption},r):null!=i.seriesIndex?this._manuallyAxisShowTip(t,e,n,i)||(a=(o=yM(i,e)).point[0],s=o.point[1],null!=a&&null!=s&&this._tryShow({offsetX:a,offsetY:s,target:o.el,position:i.position,positionDefault:"bottom"},r)):null!=i.x&&null!=i.y&&(n.dispatchAction({type:"updateAxisPointer",x:i.x,y:i.y}),this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,target:n.getZr().findHover(i.x,i.y).target},r)))},ZM.prototype.manuallyHideTip=function(t,e,n,i){var r=this._tooltipContent;this._tooltipModel&&r.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,i.from!==this.uid&&this._hide(KM(i,n))},ZM.prototype._manuallyAxisShowTip=function(t,e,n,i){var r=i.seriesIndex,o=i.dataIndex,a=e.getComponent("axisPointer").coordSysAxesInfo;if(null!=r&&null!=o&&null!=a){a=e.getSeriesByIndex(r);if(a){e=jM([a.getData().getItemModel(o),a,(a.coordinateSystem||{}).model],this._tooltipModel);if("axis"===e.get("trigger"))return n.dispatchAction({type:"updateAxisPointer",seriesIndex:r,dataIndex:o,position:i.position}),!0}}},ZM.prototype._tryShow=function(t,e){var n,i,r,o=t.target;this._tooltipModel&&(this._lastX=t.offsetX,this._lastY=t.offsetY,(n=t.dataByCoordSys)&&n.length?this._showAxisTooltip(n,t):o?"legend"!==G(o).ssrType&&(Nm(o,function(t){if(t.tooltipDisabled)return i=r=null,1;i||r||(null!=G(t).dataIndex?i=t:null!=G(t).tooltipConfig&&(r=t))},!(this._lastDataByCoordSys=null)),i?this._showSeriesItemTooltip(t,i,e):r?this._showComponentItemTooltip(t,r,e):this._hide(e)):(this._lastDataByCoordSys=null,this._hide(e)))},ZM.prototype._showOrMove=function(t,e){t=t.get("showDelay");e=pt(e,this),clearTimeout(this._showTimout),0<t?this._showTimout=setTimeout(e,t):e()},ZM.prototype._showAxisTooltip=function(t,e){var u=this._ecModel,h=this._tooltipModel,n=[e.offsetX,e.offsetY],i=jM([e.tooltipOption],h),c=this._renderMode,p=[],d=xy("section",{blocks:[],noHeader:!0}),f=[],g=new Dy,r=(N(t,function(t){N(t.dataByAxis,function(r){var o,a,s=u.getComponent(r.axisDim+"Axis",r.axisIndex),l=r.value;s&&null!=l&&(o=KS(l,s.axis,u,r.seriesDataIndices,r.valueLabelOpt),a=xy("section",{header:o,noHeader:!It(o),sortBlocks:!0,blocks:[]}),d.blocks.push(a),N(r.seriesDataIndices,function(t){var e,n=u.getSeriesByIndex(t.seriesIndex),t=t.dataIndexInside,i=n.getDataParams(t);i.dataIndex<0||(i.axisDim=r.axisDim,i.axisIndex=r.axisIndex,i.axisType=r.axisType,i.axisId=r.axisId,i.axisValue=C1(s.axis,{value:l}),i.axisValueLabel=o,i.marker=g.makeTooltipMarker("item",md(i.color),c),(e=(t=wg(n.formatTooltip(t,!0,null))).frag)&&(n=jM([n],h).get("valueFormatter"),a.blocks.push(n?P({valueFormatter:n},e):e)),t.text&&f.push(t.text),p.push(i))}))})}),d.blocks.reverse(),f.reverse(),e.position),e=i.get("order"),e=Ty(d,g,c,e,u.get("useUTC"),i.get("textStyle")),e=(e&&f.unshift(e),"richText"===c?"\n\n":"<br/>"),o=f.join(e);this._showOrMove(i,function(){this._updateContentNotChangedOnAxis(t,p)?this._updatePosition(i,r,n[0],n[1],this._tooltipContent,p):this._showTooltipContent(i,o,p,Math.random()+"",n[0],n[1],r,null,g)})},ZM.prototype._showSeriesItemTooltip=function(t,e,n){var i,r,o,a,s,l=this._ecModel,e=G(e),u=e.seriesIndex,h=l.getSeriesByIndex(u),c=e.dataModel||h,p=e.dataIndex,e=e.dataType,d=c.getData(e),f=this._renderMode,g=t.positionDefault,y=jM([d.getItemModel(p),c,h&&(h.coordinateSystem||{}).model],this._tooltipModel,g?{position:g}:null),h=y.get("trigger");null!=h&&"item"!==h||(i=c.getDataParams(p,e),r=new Dy,i.marker=r.makeTooltipMarker("item",md(i.color),f),g=wg(c.formatTooltip(p,!1,e)),h=y.get("order"),e=y.get("valueFormatter"),o=g.frag,a=o?Ty(e?P({valueFormatter:e},o):o,r,f,h,l.get("useUTC"),y.get("textStyle")):g.text,s="item_"+c.name+"_"+p,this._showOrMove(y,function(){this._showTooltipContent(y,a,i,s,t.offsetX,t.offsetY,t.position,t.target,r)}),n({type:"showTip",dataIndexInside:p,dataIndex:d.getRawIndex(p),seriesIndex:u,from:this.uid}))},ZM.prototype._showComponentItemTooltip=function(e,n,t){var i="html"===this._renderMode,r=G(n),o=r.tooltipConfig.option||{},a=o.encodeHTMLContent,a=(V(o)&&(o={content:o,formatter:o},a=!0),a&&i&&o.content&&((o=y(o)).content=we(o.content)),[o]),i=this._ecModel.getComponent(r.componentMainType,r.componentIndex),r=(i&&a.push(i),a.push({formatter:o.content}),e.positionDefault),s=jM(a,this._tooltipModel,r?{position:r}:null),l=s.get("content"),u=Math.random()+"",h=new Dy;this._showOrMove(s,function(){var t=y(s.get("formatterParams")||{});this._showTooltipContent(s,l,t,u,e.offsetX,e.offsetY,e.position,n,h)}),t({type:"showTip",from:this.uid})},ZM.prototype._showTooltipContent=function(n,t,i,e,r,o,a,s,l){var u,h,c,p,d;this._ticket="",n.get("showContent")&&n.get("show")&&((u=this._tooltipContent).setEnterable(n.get("enterable")),h=n.get("formatter"),a=a||n.get("position"),t=t,c=this._getNearestPoint([r,o],i,n.get("trigger"),n.get("borderColor"),n.get("defaultBorderColor",!0)).color,h&&(t=V(h)?(p=n.ecModel.get("useUTC"),t=h,gd(t=(d=F(i)?i[0]:i)&&d.axisType&&0<=d.axisType.indexOf("time")?qp(d.axisValue,t,p):t,i,!0)):B(h)?(d=pt(function(t,e){t===this._ticket&&(u.setContent(e,l,n,c,a),this._updatePosition(n,a,r,o,u,i,s))},this),this._ticket=e,h(i,e,d)):h),u.setContent(t,l,n,c,a),u.show(n,c),this._updatePosition(n,a,r,o,u,i,s))},ZM.prototype._getNearestPoint=function(t,e,n,i,r){return"axis"===n||F(e)?{color:i||r}:F(e)?void 0:{color:i||e.color||e.borderColor}},ZM.prototype._updatePosition=function(t,e,n,i,r,o,a){var s,l=this._api.getWidth(),u=this._api.getHeight(),h=(e=e||t.get("position"),r.getSize()),c=t.get("align"),p=t.get("verticalAlign"),d=a&&a.getBoundingRect().clone();a&&d.applyTransform(a.transform),F(e=B(e)?e([n,i],o,r.el,d,{viewSize:[l,u],contentSize:h.slice()}):e)?(n=So(e[0],l),i=So(e[1],u)):H(e)?((o=e).width=h[0],o.height=h[1],n=(o=Ad(o,{width:l,height:u})).x,i=o.y,p=c=null):i=(n=(s=V(e)&&a?function(t,e,n,i){var r=n[0],o=n[1],a=Math.ceil(Math.SQRT2*i)+8,s=0,l=0,u=e.width,h=e.height;switch(t){case"inside":s=e.x+u/2-r/2,l=e.y+h/2-o/2;break;case"top":s=e.x+u/2-r/2,l=e.y-o-a;break;case"bottom":s=e.x+u/2-r/2,l=e.y+h+a;break;case"left":s=e.x-r-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,h,t.get("borderWidth")):function(t,e,n,i,r,o,a){var n=n.getSize(),s=n[0],n=n[1];null!=o&&(i<t+s+o+2?t-=s+o:t+=o);null!=a&&(r<e+n+a?e-=n+a:e+=a);return[t,e]}(n,i,r,l,u,c?null:20,p?null:20))[0],s[1]),c&&(n-=$M(c)?h[0]/2:"right"===c?h[0]:0),p&&(i-=$M(p)?h[1]/2:"bottom"===p?h[1]:0),IM(t)&&(o=n,a=i,e=l,d=u,c=(c=r).getSize(),p=c[0],c=c[1],o=Math.min(o+p,e)-p,a=Math.min(a+c,d)-c,o=Math.max(o,0),a=Math.max(a,0),n=(s=[o,a])[0],i=s[1]),r.moveTo(n,i)},ZM.prototype._updateContentNotChangedOnAxis=function(n,o){var t=this._lastDataByCoordSys,a=this._cbParamsList,s=!!t&&t.length===n.length;return s&&N(t,function(t,e){var t=t.dataByAxis||[],r=(n[e]||{}).dataByAxis||[];(s=s&&t.length===r.length)&&N(t,function(t,e){var e=r[e]||{},n=t.seriesDataIndices||[],i=e.seriesDataIndices||[];(s=s&&t.value===e.value&&t.axisType===e.axisType&&t.axisId===e.axisId&&n.length===i.length)&&N(n,function(t,e){e=i[e];s=s&&t.seriesIndex===e.seriesIndex&&t.dataIndex===e.dataIndex}),a&&N(t.seriesDataIndices,function(t){var t=t.seriesIndex,e=o[t],t=a[t];e&&t&&t.data!==e.data&&(s=!1)})})}),this._lastDataByCoordSys=n,this._cbParamsList=o,!!s},ZM.prototype._hide=function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},ZM.prototype.dispose=function(t,e){!w.node&&e.getDom()&&(am(this,"_updatePosition"),this._tooltipContent.dispose(),pM("itemTooltip",e))},ZM.type="tooltip",ZM);function ZM(){var t=null!==XM&&XM.apply(this,arguments)||this;return t.type=ZM.type,t}function jM(t,e,n){for(var i=e.ecModel,r=n?(r=new wp(n,i,i),new wp(e.option,r,i)):e,o=t.length-1;0<=o;o--){var a=t[o];(a=a&&(V(a=a instanceof wp?a.get("tooltip",!0):a)?{formatter:a}:a))&&(r=new wp(a,r,i))}return r}function KM(t,e){return t.dispatchAction||pt(e.dispatchAction,e)}function $M(t){return"center"===t||"middle"===t}B1(function(t){B1(MM),t.registerComponentModel(CM),t.registerComponentView(qM),t.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},Ht),t.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},Ht)}),B1(_b);var QM={value:"eq","<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},JM=(tT.prototype.evaluate=function(t){var e=typeof t;return V(e)?this._condVal.test(t):!!gt(e)&&this._condVal.test(t+"")},tT);function tT(t){null==(this._condVal=V(t)?new RegExp(t):bt(t)?t:null)&&f("")}nT.prototype.evaluate=function(){return this.value};var eT=nT;function nT(){}rT.prototype.evaluate=function(){for(var t=this.children,e=0;e<t.length;e++)if(!t[e].evaluate())return!1;return!0};var iT=rT;function rT(){}aT.prototype.evaluate=function(){for(var t=this.children,e=0;e<t.length;e++)if(t[e].evaluate())return!0;return!1};var oT=aT;function aT(){}lT.prototype.evaluate=function(){return!this.child.evaluate()};var sT=lT;function lT(){}hT.prototype.evaluate=function(){for(var t=!!this.valueParser,e=(0,this.getValue)(this.valueGetterParam),n=t?this.valueParser(e):null,i=0;i<this.subCondList.length;i++)if(!this.subCondList[i].evaluate(t?n:e))return!1;return!0};var uT=hT;function hT(){}function cT(t,e){if(!0===t||!1===t)return(n=new eT).value=t,n;var n;if(dT(t)||f(""),t.and)return pT("and",t,e);if(t.or)return pT("or",t,e);if(t.not)return n=e,dT(o=(o=t).not)||f(""),(l=new sT).child=cT(o,n),l.child||f(""),l;for(var i=t,r=e,o=r.prepareGetValue(i),a=[],s=ct(i),l=i.parser,u=l?zg(l):null,h=0;h<s.length;h++){var c,p=s[h];"parser"===p||r.valueGetterAttrMap.get(p)||(c=Vt(QM,p)?QM[p]:p,p=i[p],p=u?u(p):p,(c=function(t,e){return"eq"===t||"ne"===t?new Gg("eq"===t,e):Vt(Eg,t)?new Fg(t,e):null}(c,p)||"reg"===c&&new JM(p))||f(""),a.push(c))}return a.length||f(""),(l=new uT).valueGetterParam=o,l.valueParser=u,l.getValue=r.getValue,l.subCondList=a,l}function pT(t,e,n){e=e[t],F(e)||f(""),e.length||f(""),t=new("and"===t?iT:oT);return t.children=E(e,function(t){return cT(t,n)}),t.children.length||f(""),t}function dT(t){return H(t)&&!st(t)}gT.prototype.evaluate=function(){return this._cond.evaluate()};var fT=gT;function gT(t,e){this._cond=cT(t,e)}var yT={type:"echarts:filter",transform:function(t){for(var e,n,i=t.upstream,r=(t=t.config,n={valueGetterAttrMap:O({dimension:!0}),prepareGetValue:function(t){var e=t.dimension,t=(Vt(t,"dimension")||f(""),i.getDimensionInfo(e));return t||f(""),{dimIdx:t.index}},getValue:function(t){return i.retrieveValueFromItem(e,t.dimIdx)}},new fT(t,n)),o=[],a=0,s=i.count();a<s;a++)e=i.getRawDataItem(a),r.evaluate()&&o.push(e);return{data:o}}},mT={type:"echarts:sort",transform:function(t){for(var a=t.upstream,t=t.config,t=Wo(t),s=(t.length||f(""),[]),t=(N(t,function(t){var e=t.dimension,n=t.order,i=t.parser,t=t.incomparable,e=(null==e&&f(""),"asc"!==n&&"desc"!==n&&f(""),t&&"min"!==t&&"max"!==t&&f(""),"asc"!==n&&"desc"!==n&&f(""),a.getDimensionInfo(e)),r=(e||f(""),i?zg(i):null);i&&!r&&f(""),s.push({dimIdx:e.index,parser:r,comparator:new Hg(n,t)})}),a.sourceFormat),e=(t!==Kd&&t!==$d&&f(""),[]),n=0,i=a.count();n<i;n++)e.push(a.getRawDataItem(n));return e.sort(function(t,e){for(var n=0;n<s.length;n++){var i=s[n],r=a.retrieveValueFromItem(t,i.dimIdx),o=a.retrieveValueFromItem(e,i.dimIdx),i=(i.parser&&(r=i.parser(r),o=i.parser(o)),i.comparator.evaluate(r,o));if(0!==i)return i}return 0}),{data:e}}};B1(function(t){t.registerTransform(yT),t.registerTransform(mT)}),t.Axis=_p,t.ChartView=Zy,t.ComponentModel=g,t.ComponentView=Gy,t.List=m_,t.Model=wp,t.PRIORITY=Vm,t.SeriesModel=Ny,t.color=Li,t.connect=function(e){var t;return F(e)&&(t=e,e=null,N(t,function(t){null!=t.group&&(e=t.group)}),e=e||"g_"+Sv++,N(t,function(t){t.group=e})),bv[e]=!0,e},t.dataTool={},t.dependencies={zrender:"6.0.0"},t.disConnect=Fm,t.disconnect=Tv,t.dispose=function(t){V(t)?t=xv[t]:t instanceof ov||(t=Cv(t)),t instanceof ov&&!t.isDisposed()&&t.dispose()},t.env=w,t.extendChartView=function(t){return t=Zy.extend(t),Zy.registerClass(t),t},t.extendComponentModel=function(t){return t=g.extend(t),g.registerClass(t),t},t.extendComponentView=function(t){return t=Gy.extend(t),Gy.registerClass(t),t},t.extendSeriesModel=function(t){return t=Ny.extend(t),Ny.registerClass(t),t},t.format=Vp,t.getCoordinateSystemDimensions=function(t){if(t=xd.get(t))return t.getDimensionsInfo?t.getDimensionsInfo():t.dimensions.slice()},t.getInstanceByDom=Cv,t.getInstanceById=function(t){return xv[t]},t.getMap=function(t){var e=C0.getMap;return e&&e(t)},t.graphic=gp,t.helper=mp,t.init=function(t,e,n){var i=!(n&&n.ssr);if(i){var r=Cv(t);if(r)return r}return(r=new ov(t,e,n)).id="ec_"+wv++,xv[r.id]=r,i&&aa(t,Mv,r.id),tv(r),T0.trigger("afterinit",r),r},t.innerDrawElementOnCanvas=v0,t.matrix=Ge,t.number=Wm,t.parseGeoJSON=J1,t.parseGeoJson=J1,t.registerAction=Ov,t.registerCoordinateSystem=Rv,t.registerCustomSeries=function(t,e){},t.registerLayout=Nv,t.registerLoading=Fv,t.registerLocale=Pp,t.registerMap=Vv,t.registerPostInit=Av,t.registerPostUpdate=Lv,t.registerPreprocessor=Iv,t.registerProcessor=Dv,t.registerTheme=kv,t.registerTransform=Hv,t.registerUpdateLifecycle=Pv,t.registerVisual=Bv,t.setCanvasCreator=function(t){k({createCanvas:t})},t.setPlatformAPI=k,t.throttle=rm,t.time=xa,t.use=B1,t.util=Ic,t.vector=se,t.version="6.0.0",t.zrUtil=Ut,t.zrender=mo});
\ No newline at end of file
diff --git a/ec-canvas/wx-canvas.js b/ec-canvas/wx-canvas.js
new file mode 100644
index 0000000..6c7c90b
--- /dev/null
+++ b/ec-canvas/wx-canvas.js
@@ -0,0 +1,111 @@
+export default class WxCanvas {
+  constructor(ctx, canvasId, isNew, canvasNode) {
+    this.ctx = ctx;
+    this.canvasId = canvasId;
+    this.chart = null;
+    this.isNew = isNew
+    if (isNew) {
+      this.canvasNode = canvasNode;
+    }
+    else {
+      this._initStyle(ctx);
+    }
+
+    // this._initCanvas(zrender, ctx);
+
+    this._initEvent();
+  }
+
+  getContext(contextType) {
+    if (contextType === '2d') {
+      return this.ctx;
+    }
+  }
+
+  // canvasToTempFilePath(opt) {
+  //   if (!opt.canvasId) {
+  //     opt.canvasId = this.canvasId;
+  //   }
+  //   return wx.canvasToTempFilePath(opt, this);
+  // }
+
+  setChart(chart) {
+    this.chart = chart;
+  }
+
+  addEventListener() {
+    // noop
+  }
+
+  attachEvent() {
+    // noop
+  }
+
+  detachEvent() {
+    // noop
+  }
+
+  _initCanvas(zrender, ctx) {
+    zrender.util.getContext = function () {
+      return ctx;
+    };
+
+    zrender.util.$override('measureText', function (text, font) {
+      ctx.font = font || '12px sans-serif';
+      return ctx.measureText(text);
+    });
+  }
+
+  _initStyle(ctx) {
+    ctx.createRadialGradient = () => {
+      return ctx.createCircularGradient(arguments);
+    };
+  }
+
+  _initEvent() {
+    this.event = {};
+    const eventNames = [{
+      wxName: 'touchStart',
+      ecName: 'mousedown'
+    }, {
+      wxName: 'touchMove',
+      ecName: 'mousemove'
+    }, {
+      wxName: 'touchEnd',
+      ecName: 'mouseup'
+    }, {
+      wxName: 'touchEnd',
+      ecName: 'click'
+    }];
+    eventNames.forEach(name => {
+      this.event[name.wxName] = e => {
+        const touch = e.touches[0];
+        this.chart.getZr().handler.dispatch(name.ecName, {
+          zrX: name.wxName === 'tap' ? touch.clientX : touch.x,
+          zrY: name.wxName === 'tap' ? touch.clientY : touch.y,
+          preventDefault: () => {},
+          stopImmediatePropagation: () => {},
+          stopPropagation: () => {}
+        });
+      };
+    });
+  }
+
+  set width(w) {
+    if (this.canvasNode) this.canvasNode.width = w
+  }
+  set height(h) {
+    if (this.canvasNode) this.canvasNode.height = h
+  }
+
+  get width() {
+    if (this.canvasNode)
+      return this.canvasNode.width
+    return 0
+  }
+  get height() {
+    if (this.canvasNode)
+      return this.canvasNode.height
+    return 0
+  }
+}
diff --git a/images/calendar.svg b/images/calendar.svg
new file mode 100644
index 0000000..ee7fe35
--- /dev/null
+++ b/images/calendar.svg
@@ -0,0 +1,6 @@
+<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
+<rect x="3" y="4" width="18" height="18" rx="2" ry="2" stroke="currentColor" stroke-width="2"/>
+<line x1="16" y1="2" x2="16" y2="6" stroke="currentColor" stroke-width="2" stroke-linecap="round"/>
+<line x1="8" y1="2" x2="8" y2="6" stroke="currentColor" stroke-width="2" stroke-linecap="round"/>
+<line x1="3" y1="10" x2="21" y2="10" stroke="currentColor" stroke-width="2" stroke-linecap="round"/>
+</svg>
diff --git a/images/chart.svg b/images/chart.svg
new file mode 100644
index 0000000..22dd0a1
--- /dev/null
+++ b/images/chart.svg
@@ -0,0 +1,4 @@
+<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
+<path d="M3 3V21H21" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
+<path d="M9 9L12 6L16 10L20 6" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
+</svg>
diff --git a/images/list.svg b/images/list.svg
new file mode 100644
index 0000000..8b11c9f
--- /dev/null
+++ b/images/list.svg
@@ -0,0 +1,8 @@
+<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
+<path d="M8 6H21" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
+<path d="M8 12H21" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
+<path d="M8 18H21" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
+<path d="M3 6H3.01" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
+<path d="M3 12H3.01" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
+<path d="M3 18H3.01" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
+</svg>
diff --git a/images/mode.svg b/images/mode.svg
new file mode 100644
index 0000000..eab3336
--- /dev/null
+++ b/images/mode.svg
@@ -0,0 +1 @@
+<svg t="1756468463032" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="1958" data-spm-anchor-id="a313x.search_index.0.i10.21603a81ZVl6vE" width="200" height="200"><path d="M839.2 649.8V402.44c0-22.72-12.12-43.71-31.79-55.07L593.18 223.68a63.586 63.586 0 0 0-63.59 0L315.37 347.37a63.594 63.594 0 0 0-31.79 55.07V649.8c0 22.72 12.12 43.71 31.79 55.07L529.6 828.55a63.586 63.586 0 0 0 63.59 0l214.23-123.68a63.605 63.605 0 0 0 31.78-55.07z" fill="#E9F1FF" p-id="1959" data-spm-anchor-id="a313x.search_index.0.i9.21603a81ZVl6vE" class=""></path><path d="M249.4 255.66c-8.64 0-17.04-4.48-21.67-12.5-6.9-11.96-2.81-27.25 9.15-34.15L473.98 72.1c23.45-13.54 52.59-13.54 76.03 0l151.11 87.24c11.96 6.9 16.05 22.19 9.15 34.15-6.9 11.96-22.19 16.05-34.15 9.15L525.01 115.4c-8.03-4.64-18-4.64-26.03 0l-237.1 136.91a24.936 24.936 0 0 1-12.48 3.35zM669.88 786.94c-8.64 0-17.04-4.48-21.67-12.5-6.9-11.96-2.81-27.25 9.15-34.15l151.86-87.68c8.03-4.64 13.02-13.27 13.02-22.55V359.48c0-13.81 11.19-25 25-25s25 11.19 25 25v270.59c0 27.08-14.57 52.31-38.02 65.85L682.36 783.6a25.026 25.026 0 0 1-12.48 3.34zM439.32 836.26c-4.24 0-8.54-1.08-12.48-3.35L189.9 696.11c-23.45-13.54-38.02-38.77-38.02-65.85V458.21c0-13.81 11.19-25 25-25s25 11.19 25 25v172.05c0 9.27 4.99 17.91 13.02 22.54l236.94 136.8c11.96 6.9 16.05 22.19 9.15 34.15-4.63 8.03-13.03 12.51-21.67 12.51zM512 605.69c-75.86 0-137.57-61.71-137.57-137.57S436.14 330.55 512 330.55s137.57 61.71 137.57 137.57S587.86 605.69 512 605.69z m0-225.14c-48.29 0-87.57 39.28-87.57 87.57 0 48.29 39.28 87.57 87.57 87.57s87.57-39.28 87.57-87.57c0-48.28-39.28-87.57-87.57-87.57z" fill="#3F8BFD" p-id="1960" data-spm-anchor-id="a313x.search_index.0.i11.21603a81ZVl6vE" class="selected"></path><path d="M512 962.09c-60.04 0-108.88-48.85-108.88-108.88 0-19.14 5.04-37.98 14.59-54.47 6.92-11.95 22.21-16.03 34.16-9.12 11.95 6.91 16.03 22.21 9.12 34.16-5.15 8.89-7.87 19.07-7.87 29.43 0 32.47 26.42 58.88 58.88 58.88 32.47 0 58.88-26.42 58.88-58.88s-26.42-58.88-58.88-58.88c-13.81 0-25-11.19-25-25s11.19-25 25-25c60.04 0 108.88 48.85 108.88 108.88S572.04 962.09 512 962.09z" fill="#3F8BFD" p-id="1961" data-spm-anchor-id="a313x.search_index.0.i19.21603a81ZVl6vE" class="selected"></path><path d="M512 878.21c-13.81 0-25-11.19-25-25V580.69c0-13.81 11.19-25 25-25s25 11.19 25 25v272.52c0 13.81-11.19 25-25 25zM847.23 384.46c-13.58 0-24.71-10.87-24.99-24.5-0.27-13.8 10.69-25.22 24.5-25.49 9.84-0.2 19.59-2.92 28.2-7.89 28.12-16.23 37.79-52.32 21.55-80.44-16.23-28.12-52.32-37.79-80.44-21.55-28.12 16.23-37.79 52.32-21.55 80.44 6.9 11.96 2.81 27.25-9.15 34.15-11.96 6.9-27.25 2.81-34.15-9.15-30.02-52-12.14-118.72 39.85-148.74 52-30.02 118.72-12.14 148.74 39.85 30.02 52 12.14 118.72-39.85 148.74-15.89 9.18-33.94 14.22-52.2 14.58h-0.51z" fill="#3F8BFD" p-id="1962" data-spm-anchor-id="a313x.search_index.0.i16.21603a81ZVl6vE" class="selected"></path><path d="M609.51 436.84c-8.64 0-17.04-4.48-21.67-12.5-6.9-11.96-2.81-27.25 9.15-34.15L833 253.93c11.96-6.9 27.25-2.81 34.15 9.15 6.9 11.96 2.81 27.25-9.15 34.15L621.99 433.49a24.936 24.936 0 0 1-12.48 3.35z" fill="#3F8BFD" p-id="1963" data-spm-anchor-id="a313x.search_index.0.i15.21603a81ZVl6vE" class="selected"></path><path d="M178.33 384.51c-18.87 0-37.49-4.95-54.27-14.63-25.19-14.54-43.2-38.02-50.73-66.12-7.53-28.09-3.66-57.44 10.88-82.62 30.02-52 96.74-69.87 148.74-39.85 15.17 8.76 28.12 21.16 37.46 35.87 7.4 11.66 3.95 27.11-7.71 34.51-11.65 7.4-27.1 3.95-34.5-7.71-5.11-8.04-11.92-14.56-20.25-19.37-28.12-16.23-64.2-6.57-80.44 21.55-7.86 13.62-9.95 29.49-5.88 44.68 4.07 15.19 13.81 27.89 27.44 35.76 13.62 7.86 29.49 9.95 44.68 5.88 15.19-4.07 27.89-13.81 35.76-27.44 6.9-11.96 22.19-16.05 34.15-9.15 11.96 6.9 16.05 22.19 9.15 34.15-14.54 25.19-38.02 43.2-66.12 50.73a109.27 109.27 0 0 1-28.36 3.76z" fill="#3F8BFD" p-id="1964" data-spm-anchor-id="a313x.search_index.0.i17.21603a81ZVl6vE" class="selected"></path><path d="M414.49 436.84c-4.24 0-8.54-1.08-12.48-3.35L166 297.23c-11.96-6.9-16.05-22.19-9.15-34.15 6.9-11.96 22.19-16.05 34.15-9.15l236.01 136.26c11.96 6.9 16.05 22.19 9.15 34.15-4.63 8.02-13.03 12.5-21.67 12.5z" fill="#3F8BFD" p-id="1965" data-spm-anchor-id="a313x.search_index.0.i18.21603a81ZVl6vE" class="selected"></path><path d="M512 465.09m-30.6 0a30.6 30.6 0 1 0 61.2 0 30.6 30.6 0 1 0-61.2 0Z" fill="#2C5CCB" p-id="1966"></path><path d="M512 496.19c-17.15 0-31.1-13.95-31.1-31.1 0-17.15 13.95-31.1 31.1-31.1 17.15 0 31.1 13.95 31.1 31.1 0 17.15-13.95 31.1-31.1 31.1z m0-61.2c-16.6 0-30.1 13.5-30.1 30.1s13.5 30.1 30.1 30.1 30.1-13.5 30.1-30.1-13.5-30.1-30.1-30.1z" fill="#2C5CCB" p-id="1967"></path></svg>
\ No newline at end of file
diff --git a/miniprogram_npm/dayjs/index.js b/miniprogram_npm/dayjs/index.js
index b1dd640..193634e 100644
--- a/miniprogram_npm/dayjs/index.js
+++ b/miniprogram_npm/dayjs/index.js
@@ -4,10 +4,10 @@
 var __REQUIRE__ = function(modId, source) { if(!__MODS__[modId]) return require(source); if(!__MODS__[modId].status) { var m = __MODS__[modId].m; m._exports = m._tempexports; var desp = Object.getOwnPropertyDescriptor(m, "exports"); if (desp && desp.configurable) Object.defineProperty(m, "exports", { set: function (val) { if(typeof val === "object" && val !== m._exports) { m._exports.__proto__ = val.__proto__; Object.keys(val).forEach(function (k) { m._exports[k] = val[k]; }); } m._tempexports = val }, get: function () { return m._tempexports; } }); __MODS__[modId].status = 1; __MODS__[modId].func(__MODS__[modId].req, m, m.exports); } return __MODS__[modId].m.exports; };
 var __REQUIRE_WILDCARD__ = function(obj) { if(obj && obj.__esModule) { return obj; } else { var newObj = {}; if(obj != null) { for(var k in obj) { if (Object.prototype.hasOwnProperty.call(obj, k)) newObj[k] = obj[k]; } } newObj.default = obj; return newObj; } };
 var __REQUIRE_DEFAULT__ = function(obj) { return obj && obj.__esModule ? obj.default : obj; };
-__DEFINE__(1742956904314, function(require, module, exports) {
+__DEFINE__(1756457919853, function(require, module, exports) {
 !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).dayjs=e()}(this,(function(){var t=1e3,e=6e4,n=36e5,r="millisecond",i="second",s="minute",u="hour",a="day",o="week",c="month",f="quarter",h="year",d="date",l="Invalid Date",$=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,y=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,M={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(t){var e=["th","st","nd","rd"],n=t%100;return"["+t+(e[(n-20)%10]||e[n]||e[0])+"]"}},m=function(t,e,n){var r=String(t);return!r||r.length>=e?t:""+Array(e+1-r.length).join(n)+t},v={s:m,z:function(t){var e=-t.utcOffset(),n=Math.abs(e),r=Math.floor(n/60),i=n%60;return(e<=0?"+":"-")+m(r,2,"0")+":"+m(i,2,"0")},m:function t(e,n){if(e.date()<n.date())return-t(n,e);var r=12*(n.year()-e.year())+(n.month()-e.month()),i=e.clone().add(r,c),s=n-i<0,u=e.clone().add(r+(s?-1:1),c);return+(-(r+(n-i)/(s?i-u:u-i))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return{M:c,y:h,w:o,d:a,D:d,h:u,m:s,s:i,ms:r,Q:f}[t]||String(t||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},g="en",D={};D[g]=M;var p="$isDayjsObject",S=function(t){return t instanceof _||!(!t||!t[p])},w=function t(e,n,r){var i;if(!e)return g;if("string"==typeof e){var s=e.toLowerCase();D[s]&&(i=s),n&&(D[s]=n,i=s);var u=e.split("-");if(!i&&u.length>1)return t(u[0])}else{var a=e.name;D[a]=e,i=a}return!r&&i&&(g=i),i||!r&&g},O=function(t,e){if(S(t))return t.clone();var n="object"==typeof e?e:{};return n.date=t,n.args=arguments,new _(n)},b=v;b.l=w,b.i=S,b.w=function(t,e){return O(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var _=function(){function M(t){this.$L=w(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[p]=!0}var m=M.prototype;return m.parse=function(t){this.$d=function(t){var e=t.date,n=t.utc;if(null===e)return new Date(NaN);if(b.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var r=e.match($);if(r){var i=r[2]-1||0,s=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)}}return new Date(e)}(t),this.init()},m.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},m.$utils=function(){return b},m.isValid=function(){return!(this.$d.toString()===l)},m.isSame=function(t,e){var n=O(t);return this.startOf(e)<=n&&n<=this.endOf(e)},m.isAfter=function(t,e){return O(t)<this.startOf(e)},m.isBefore=function(t,e){return this.endOf(e)<O(t)},m.$g=function(t,e,n){return b.u(t)?this[e]:this.set(n,t)},m.unix=function(){return Math.floor(this.valueOf()/1e3)},m.valueOf=function(){return this.$d.getTime()},m.startOf=function(t,e){var n=this,r=!!b.u(e)||e,f=b.p(t),l=function(t,e){var i=b.w(n.$u?Date.UTC(n.$y,e,t):new Date(n.$y,e,t),n);return r?i:i.endOf(a)},$=function(t,e){return b.w(n.toDate()[t].apply(n.toDate("s"),(r?[0,0,0,0]:[23,59,59,999]).slice(e)),n)},y=this.$W,M=this.$M,m=this.$D,v="set"+(this.$u?"UTC":"");switch(f){case h:return r?l(1,0):l(31,11);case c:return r?l(1,M):l(0,M+1);case o:var g=this.$locale().weekStart||0,D=(y<g?y+7:y)-g;return l(r?m-D:m+(6-D),M);case a:case d:return $(v+"Hours",0);case u:return $(v+"Minutes",1);case s:return $(v+"Seconds",2);case i:return $(v+"Milliseconds",3);default:return this.clone()}},m.endOf=function(t){return this.startOf(t,!1)},m.$set=function(t,e){var n,o=b.p(t),f="set"+(this.$u?"UTC":""),l=(n={},n[a]=f+"Date",n[d]=f+"Date",n[c]=f+"Month",n[h]=f+"FullYear",n[u]=f+"Hours",n[s]=f+"Minutes",n[i]=f+"Seconds",n[r]=f+"Milliseconds",n)[o],$=o===a?this.$D+(e-this.$W):e;if(o===c||o===h){var y=this.clone().set(d,1);y.$d[l]($),y.init(),this.$d=y.set(d,Math.min(this.$D,y.daysInMonth())).$d}else l&&this.$d[l]($);return this.init(),this},m.set=function(t,e){return this.clone().$set(t,e)},m.get=function(t){return this[b.p(t)]()},m.add=function(r,f){var d,l=this;r=Number(r);var $=b.p(f),y=function(t){var e=O(l);return b.w(e.date(e.date()+Math.round(t*r)),l)};if($===c)return this.set(c,this.$M+r);if($===h)return this.set(h,this.$y+r);if($===a)return y(1);if($===o)return y(7);var M=(d={},d[s]=e,d[u]=n,d[i]=t,d)[$]||1,m=this.$d.getTime()+r*M;return b.w(m,this)},m.subtract=function(t,e){return this.add(-1*t,e)},m.format=function(t){var e=this,n=this.$locale();if(!this.isValid())return n.invalidDate||l;var r=t||"YYYY-MM-DDTHH:mm:ssZ",i=b.z(this),s=this.$H,u=this.$m,a=this.$M,o=n.weekdays,c=n.months,f=n.meridiem,h=function(t,n,i,s){return t&&(t[n]||t(e,r))||i[n].slice(0,s)},d=function(t){return b.s(s%12||12,t,"0")},$=f||function(t,e,n){var r=t<12?"AM":"PM";return n?r.toLowerCase():r};return r.replace(y,(function(t,r){return r||function(t){switch(t){case"YY":return String(e.$y).slice(-2);case"YYYY":return b.s(e.$y,4,"0");case"M":return a+1;case"MM":return b.s(a+1,2,"0");case"MMM":return h(n.monthsShort,a,c,3);case"MMMM":return h(c,a);case"D":return e.$D;case"DD":return b.s(e.$D,2,"0");case"d":return String(e.$W);case"dd":return h(n.weekdaysMin,e.$W,o,2);case"ddd":return h(n.weekdaysShort,e.$W,o,3);case"dddd":return o[e.$W];case"H":return String(s);case"HH":return b.s(s,2,"0");case"h":return d(1);case"hh":return d(2);case"a":return $(s,u,!0);case"A":return $(s,u,!1);case"m":return String(u);case"mm":return b.s(u,2,"0");case"s":return String(e.$s);case"ss":return b.s(e.$s,2,"0");case"SSS":return b.s(e.$ms,3,"0");case"Z":return i}return null}(t)||i.replace(":","")}))},m.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},m.diff=function(r,d,l){var $,y=this,M=b.p(d),m=O(r),v=(m.utcOffset()-this.utcOffset())*e,g=this-m,D=function(){return b.m(y,m)};switch(M){case h:$=D()/12;break;case c:$=D();break;case f:$=D()/3;break;case o:$=(g-v)/6048e5;break;case a:$=(g-v)/864e5;break;case u:$=g/n;break;case s:$=g/e;break;case i:$=g/t;break;default:$=g}return l?$:b.a($)},m.daysInMonth=function(){return this.endOf(c).$D},m.$locale=function(){return D[this.$L]},m.locale=function(t,e){if(!t)return this.$L;var n=this.clone(),r=w(t,e,!0);return r&&(n.$L=r),n},m.clone=function(){return b.w(this.$d,this)},m.toDate=function(){return new Date(this.valueOf())},m.toJSON=function(){return this.isValid()?this.toISOString():null},m.toISOString=function(){return this.$d.toISOString()},m.toString=function(){return this.$d.toUTCString()},M}(),k=_.prototype;return O.prototype=k,[["$ms",r],["$s",i],["$m",s],["$H",u],["$W",a],["$M",c],["$y",h],["$D",d]].forEach((function(t){k[t[1]]=function(e){return this.$g(e,t[0],t[1])}})),O.extend=function(t,e){return t.$i||(t(e,_,O),t.$i=!0),O},O.locale=w,O.isDayjs=S,O.unix=function(t){return O(1e3*t)},O.en=D[g],O.Ls=D,O.p={},O}));
 }, function(modId) {var map = {}; return __REQUIRE__(map[modId], modId); })
-return __REQUIRE__(1742956904314);
+return __REQUIRE__(1756457919853);
 })()
 //miniprogram-npm-outsideDeps=[]
 //# sourceMappingURL=index.js.map
\ No newline at end of file
diff --git a/pages/home/home.js b/pages/home/home.js
index 2f960f6..9035b54 100644
--- a/pages/home/home.js
+++ b/pages/home/home.js
@@ -639,6 +639,63 @@
       url: '/pages/irrigation/irrigation',
     })
   },
+  //璺宠浆妯″瀷璁$畻
+  modeCompute(){
+    const app = getApp();
+    // 妫�鏌ュ綋鍓嶉」鐩槸鍚﹂渶瑕佺櫥褰�
+    const currentProject = app.globalData.selectedProject;
+    if (currentProject && PROJECT_CONFIG[currentProject] && PROJECT_CONFIG[currentProject].needLogin) {
+      // 闇�瑕佺櫥褰曠殑椤圭洰锛屾鏌ユ槸鍚﹀凡鐧诲綍
+      if (!app.globalData.isLoggedIn) {
+        // 鏈櫥褰曪紝鏄剧ず鎻愮ず骞堕樆姝㈡搷浣�
+        wx.showToast({
+          title: '璇峰厛鐧诲綍',
+          icon: 'error',
+          duration: 2000
+        });
+
+        // 鑾峰彇椤圭洰閰嶇疆
+        const projectConfig = PROJECT_CONFIG[currentProject];
+        if (projectConfig) {
+          // 璇㈤棶鐢ㄦ埛鏄惁鍓嶅線鐧诲綍
+          wx.showModal({
+            title: '鎻愮ず',
+            content: '鎮ㄩ渶瑕佺櫥褰曞悗鎵嶈兘浣跨敤缁煎悎绔欑洃娴嬪姛鑳斤紝鏄惁绔嬪嵆鐧诲綍锛�',
+            confirmText: '鍓嶅線鐧诲綍',
+            cancelText: '鍙栨秷',
+            success: (res) => {
+              if (res.confirm) {
+                // 鐢ㄦ埛鐐瑰嚮纭锛岀洿鎺ヨ皟鐢╳xLogin鏂规硶
+                this.wxLogin();
+              }
+            }
+          });
+        }
+        return;
+      } else if (!PROJECT_CONFIG[currentProject].monitor) {
+        // 鏈櫥褰曪紝鏄剧ず鎻愮ず骞堕樆姝㈡搷浣�
+        wx.showToast({
+          title: '褰撳墠椤圭洰涓嶅彲鐢�',
+          icon: 'error',
+          duration: 2000
+        });
+        return;
+      }
+    } else if (!PROJECT_CONFIG[currentProject].monitor) {
+      // 鏈櫥褰曪紝鏄剧ず鎻愮ず骞堕樆姝㈡搷浣�
+      wx.showToast({
+        title: '褰撳墠椤圭洰涓嶅彲鐢�',
+        icon: 'error',
+        duration: 2000
+      });
+      return;
+    }
+
+    // 宸茬櫥褰曟垨涓嶉渶瑕佺櫥褰曠殑椤圭洰锛屾墽琛岃疆鐏屾搷浣�
+    wx.navigateTo({
+      url: '/pages/modeCompute/modeCompute',
+    })
+  },
   handleChange(e) {
     const item = e.currentTarget.dataset.item;
     console.log(item);
diff --git a/pages/home/home.wxml b/pages/home/home.wxml
index 3629ebc..482f022 100644
--- a/pages/home/home.wxml
+++ b/pages/home/home.wxml
@@ -4,9 +4,9 @@
   <view class="head-wrapper">
     <view class="head-top">
       <view class="avatar-project-container">
-       
+
         <t-avatar class="avatar-example" image="{{image}}" size="120rpx" bind:tap="handleAvatarTap" />
-         <view class="current-project">
+        <view class="current-project">
           <text>{{ projectConfig[selectedProject].displayName }}</text>
           <view class="switch-project" bind:tap="switchProject">
             <image class="switch-icon" src="/images/switch.svg" />
@@ -30,25 +30,41 @@
   </view>
 
   <view class="center-wrapper">
-    <!-- <view class="center-view" bind:tap="recharge">
-      <image src="/images/wallet.svg" />
-      <text>鍏呭��</text>
-    </view> -->
-    <view class="center-view" bind:tap="monitor">
-      <image src="/images/monitor.svg" />
-      <text>缁煎悎绔欑洃娴�</text>
-    </view>
-    <view class="center-view" bind:tap="openValve">
-      <image src="/images/valva.svg" />
-      <text>寮�闃�</text>
-    </view>
-    <view class="center-view" bind:tap="openValveList">
-      <image src="/images/record.svg" />
-      <text>寮�鍏抽榾璁板綍</text>
-    </view>
-    <view class="center-view" bind:tap="irrigation">
-      <image src="/images/irrigation.svg" />
-      <text>杞亴</text>
+    <view class="center-grid">
+      <view class="grid-item" bind:tap="monitor">
+        <view class="item-icon">
+          <image src="/images/monitor.svg" />
+        </view>
+        <text class="item-text">缁煎悎绔欑洃娴�</text>
+      </view>
+      
+      <view class="grid-item" bind:tap="openValve">
+        <view class="item-icon">
+          <image src="/images/valva.svg" />
+        </view>
+        <text class="item-text">寮�闃�</text>
+      </view>
+      
+      <view class="grid-item" bind:tap="openValveList">
+        <view class="item-icon">
+          <image src="/images/record.svg" />
+        </view>
+        <text class="item-text">寮�鍏抽榾璁板綍</text>
+      </view>
+      
+      <view class="grid-item" bind:tap="irrigation">
+        <view class="item-icon">
+          <image src="/images/irrigation.svg" />
+        </view>
+        <text class="item-text">杞亴</text>
+      </view>
+      
+      <view class="grid-item" bind:tap="modeCompute">
+        <view class="item-icon">
+          <image src="/images/mode.svg" />
+        </view>
+        <text class="item-text">妯″瀷璁$畻</text>
+      </view> 
     </view>
   </view>
 
diff --git a/pages/home/home.wxss b/pages/home/home.wxss
index 2be6c16..24f006c 100644
--- a/pages/home/home.wxss
+++ b/pages/home/home.wxss
@@ -1,787 +1,858 @@
 /* pages/home/home.wxss */
 .base-wrapper {
-    background-color: #ececec;
-    width: 100%;
-    height: 100vh;
-    overflow: hidden;
-    /* 闃叉搴曢儴鍖哄煙婊氬姩 */
-    display: flex;
-    flex-direction: column;
+  background-color: #ececec;
+  width: 100%;
+  height: 100vh;
+  overflow: hidden;
+  /* 闃叉搴曢儴鍖哄煙婊氬姩 */
+  display: flex;
+  flex-direction: column;
 }
 
 .head-wrapper {
-    background-color: #1890FF;
-    height: 25vh;
-    width: 100%;
-    padding-left: 40rpx;
-    display: grid;
-    flex-direction: column;
-    align-items: center;
-    border-bottom-left-radius: 5rpx;
-    border-bottom-right-radius: 5rpx;
-    z-index: 1;
-    border-top: 1px solid #0484fc;
+  background-color: #1890FF;
+  height: 20vh;
+  width: 100%;
+  padding-left: 40rpx;
+  display: grid;
+  flex-direction: column;
+  align-items: center;
+  border-bottom-left-radius: 5rpx;
+  border-bottom-right-radius: 5rpx;
+  z-index: 1;
+  border-top: 1px solid #0484fc;
 
 }
 
 .head-top {
-    display: flex;
-    align-items: center;
-    /* 鍦ㄧ旱鍚戞柟鍚戜笂灞呬腑瀵归綈 */
+  display: flex;
+  align-items: center;
+  /* 鍦ㄧ旱鍚戞柟鍚戜笂灞呬腑瀵归綈 */
 }
 
 
 .head-text-wrapper {
-    flex: 1;
-    display: flex;
-    flex-direction: column;
-    align-items: left;
-    justify-content: center;
-    margin-left: 15rpx;
-    margin-bottom: 70rpx;
+  flex: 1;
+  display: flex;
+  flex-direction: column;
+  align-items: left;
+  justify-content: center;
+  margin-left: 15rpx;
+  margin-bottom: 70rpx;
 }
 
 .head-button-wrapper {
-    flex: 1;
-    display: flex;
-    flex-direction: column;
-    align-items: center;
-    justify-content: center;
-    margin-left: 15rpx;
+  flex: 1;
+  display: flex;
+  flex-direction: column;
+  align-items: center;
+  justify-content: center;
+  margin-left: 15rpx;
 }
 
 
 .head-bottom {
-    margin-top: 20rpx;
-    color: #fff;
-    font-size: 35rpx;
+  margin-top: 20rpx;
+  color: #fff;
+  font-size: 35rpx;
 }
 
 .unbind {
-    font-size: 30rpx;
-    /* 鎸夐挳鏂囧瓧鐨勫瓧浣撳ぇ灏� */
-    color: #1890FF;
-    /* 鎸夐挳鏂囧瓧棰滆壊 */
-    background-color: #fff;
-    /* 鎸夐挳鑳屾櫙棰滆壊 */
-    border: none;
-    /* 鍘绘帀鎸夐挳杈规 */
-    border-radius: 20px;
-    /* 鎸夐挳鍦嗚 */
-    padding-left: 20rpx;
-    padding-right: 20rpx;
-    padding-top: 5rpx;
-    padding-bottom: 5rpx;
-    margin-bottom: 10rpx;
+  font-size: 30rpx;
+  /* 鎸夐挳鏂囧瓧鐨勫瓧浣撳ぇ灏� */
+  color: #1890FF;
+  /* 鎸夐挳鏂囧瓧棰滆壊 */
+  background-color: #fff;
+  /* 鎸夐挳鑳屾櫙棰滆壊 */
+  border: none;
+  /* 鍘绘帀鎸夐挳杈规 */
+  border-radius: 20px;
+  /* 鎸夐挳鍦嗚 */
+  padding-left: 20rpx;
+  padding-right: 20rpx;
+  padding-top: 5rpx;
+  padding-bottom: 5rpx;
+  margin-bottom: 10rpx;
 }
 
 .head-text-wrapper text {
-    color: #fff;
-    font-size: 32rpx;
+  color: #fff;
+  font-size: 32rpx;
 }
 
 .balance-label {
-    margin-bottom: 40rpx;
-    color: #fff;
-    font-size: 35rpx;
+  margin-bottom: 40rpx;
+  color: #fff;
+  font-size: 35rpx;
 }
 
 .center-wrapper {
-    margin-top: -40rpx;
-    margin-right: 20rpx;
-    margin-left: 20rpx;
-    margin-bottom: 10rpx;
-    height: 18vh;
-    background-color: #fff;
-    border-radius: 5px;
-    display: flex;
-    padding-top: 20rpx;
-    padding-bottom: 20rpx;
-    justify-content: space-around;
-    z-index: 1;
-    /* 浣� center-wrapper 鍦ㄥご閮ㄤ箣涓� */
+  margin: -40rpx 20rpx 10rpx 20rpx;
+  padding: 40rpx 30rpx;
+  background-color: #fff;
+  border-radius: 16rpx;
+  box-shadow: 0 8rpx 32rpx rgba(0, 0, 0, 0.08);
+  z-index: 1;
+  position: relative;
 }
 
-.center-view {
-    flex: 1;
-    /* 姣忎釜鍏冪礌骞冲垎瀹藉害 */
-    display: flex;
-    flex-direction: column;
-    /* 鍦ㄧ旱鍚戜笂鎺掑垪瀛愬厓绱� */
-    align-items: center;
-    /* 鍦ㄧ旱鍚戜笂灞呬腑鏄剧ず瀛愬厓绱� */
-    justify-content: center;
-    /* 鍦ㄦí鍚戝拰绾靛悜涓婇兘灞呬腑鏄剧ず瀛愬厓绱� */
+.center-grid {
+  display: grid;
+  grid-template-columns: repeat(4, 1fr);
+  gap: 10rpx;
+  align-items: stretch;
 }
 
-.center-view image,
-.center-view t-avatar {
-    width: 90rpx;
-    /* 鏍规嵁闇�瑕佽皟鏁村浘鏍囧ぇ灏� */
-    height: 90rpx;
-    /* 鏍规嵁闇�瑕佽皟鏁村浘鏍囧ぇ灏� */
-    margin-bottom: 10rpx;
-    /* 鍥炬爣鍜屾枃鏈箣闂寸殑闂磋窛 */
+.grid-item {
+  display: flex;
+  flex-direction: column;
+  align-items: center;
+  justify-content: flex-start;
+  padding: 10rpx 10rpx;
+  border-radius: 12rpx;
+  transition: all 0.3s ease;
+  cursor: pointer;
+  height: 140rpx;
+  box-sizing: border-box;
 }
 
-.center-view text {
-    margin-top: 15rpx;
-    font-size: 30rpx;
-    color: #1890FF;
+.grid-item:active {
+  transform: scale(0.95);
+  background-color: #f8f9fa;
 }
+
+.grid-item-wide {
+  grid-column: span 2;
+  background: linear-gradient(135deg, #f0f8ff 0%, #e6f3ff 100%);
+  border: 1rpx solid #e1f0ff;
+}
+
+.item-icon {
+  display: flex;
+  align-items: center;
+  justify-content: center;
+  width: 80rpx;
+  height: 80rpx;
+  margin-bottom: 16rpx;
+  border-radius: 50%;
+  background: linear-gradient(135deg, #1890FF 0%, #40a9ff 100%);
+  box-shadow: 0 4rpx 16rpx rgba(24, 144, 255, 0.3);
+  flex-shrink: 0;
+}
+
+.item-icon image {
+  width: 40rpx;
+  height: 40rpx;
+  filter: brightness(0) invert(1);
+}
+
+.item-text {
+  font-size: 23rpx;
+  color: #333;
+  font-weight: 500;
+  text-align: center;
+  line-height: 1.4;
+  max-width: 100%;
+  word-break: break-word;
+  flex: 1;
+  display: flex;
+  align-items: center;
+  justify-content: center;
+  min-height: 0;
+}
+
+/* 鍝嶅簲寮忚璁� */
+@media (max-width: 750rpx) {
+  .center-grid {
+    grid-template-columns: repeat(2, 1fr);
+    gap: 16rpx;
+  }
+  
+  .grid-item-wide {
+    grid-column: span 2;
+  }
+  
+  .grid-item {
+    height: 140rpx;
+    padding: 16rpx 8rpx;
+  }
+  
+  .item-icon {
+    width: 70rpx;
+    height: 70rpx;
+    margin-bottom: 12rpx;
+  }
+  
+  .item-icon image {
+    width: 36rpx;
+    height: 36rpx;
+  }
+  
+  .item-text {
+    font-size: 26rpx;
+  }
+}
+
+
 
 .bottom-wrapper {
-    margin-right: 20rpx;
-    margin-left: 20rpx;
-    display: flex;
-    flex-direction: column;
-    margin-top: 48vh;
+  margin-right: 20rpx;
+  margin-left: 20rpx;
+  display: flex;
+  flex-direction: column;
+  margin-top: 48vh;
 }
 
 .scroll-view {
-    flex: 1;
-    overflow-y: auto;
-    /* 鍏佽鍨傜洿婊氬姩 */
-    z-index: 0;
-    /* 纭繚 scroll-view 鍦ㄥご閮ㄥ拰 center-wrapper 涔嬩笅 */
-    background-color: #f5f5f5;
-    margin-top: 0;
-    padding-top: 0;
-    box-sizing: border-box;
+  flex: 1;
+  overflow-y: auto;
+  /* 鍏佽鍨傜洿婊氬姩 */
+  z-index: 0;
+  /* 纭繚 scroll-view 鍦ㄥご閮ㄥ拰 center-wrapper 涔嬩笅 */
+  background-color: #f5f5f5;
+  margin-top: 0;
+  padding-top: 0;
+  box-sizing: border-box;
 }
 
 .scroll-bg {
-    padding: 20rpx 0;
-    box-sizing: border-box;
-    padding-top: 0;
-    width: 100%;
+  padding: 20rpx 0;
+  box-sizing: border-box;
+  padding-top: 0;
+  width: 100%;
 }
 
 /* 纭繚鎵�鏈夊惈瀹藉害鐨勫厓绱犱娇鐢ㄧ浉鍚岀殑璁$畻鏂瑰紡 */
 .bottom-title,
-.scroll-bg > view {
-    width: calc(100% - 40rpx);
-    margin-left: 20rpx;
-    margin-right: 20rpx;
-    box-sizing: border-box;
+.scroll-bg>view {
+  width: calc(100% - 40rpx);
+  margin-left: 20rpx;
+  margin-right: 20rpx;
+  box-sizing: border-box;
 }
 
-.scroll-bg > view {
-    margin-bottom: 20rpx;
-    border-radius: 12rpx;
-    overflow: hidden;
-    box-shadow: 0 2rpx 10rpx rgba(0, 0, 0, 0.05);
+.scroll-bg>view {
+  margin-bottom: 20rpx;
+  border-radius: 12rpx;
+  overflow: hidden;
+  box-shadow: 0 2rpx 10rpx rgba(0, 0, 0, 0.05);
 }
 
 t-swipe-cell {
-    display: block;
-    width: 100%;
-    border-radius: 12rpx;
-    overflow: hidden;
+  display: block;
+  width: 100%;
+  border-radius: 12rpx;
+  overflow: hidden;
 }
 
 .swipe-cell {
-    display: flex;
-    justify-content: space-between;
-    background-color: #fff;
-    width: 100%;
-    height: 100%;
-    border-radius: 12rpx;
-    overflow: hidden;
+  display: flex;
+  justify-content: space-between;
+  background-color: #fff;
+  width: 100%;
+  height: 100%;
+  border-radius: 12rpx;
+  overflow: hidden;
 }
 
 .list-item {
-    background-color: #fff;
-    display: flex;
-    align-items: center;
-    padding: 30rpx;
-    width: 100%;
-    box-sizing: border-box;
+  background-color: #fff;
+  display: flex;
+  align-items: center;
+  padding: 30rpx;
+  width: 100%;
+  box-sizing: border-box;
 }
 
 .item-left {
-    display: flex;
-    flex-direction: column;
-    flex: 1;
-    width: 100%;
+  display: flex;
+  flex-direction: column;
+  flex: 1;
+  width: 100%;
 }
 
 .left-intake-name {
-    width: 100%;
-    display: flex;
-    align-items: center;
-    margin-bottom: 20rpx;
-    padding-left: 4rpx;
+  width: 100%;
+  display: flex;
+  align-items: center;
+  margin-bottom: 20rpx;
+  padding-left: 4rpx;
 }
 
 .item-img-left {
-    width: 40rpx;
-    height: 40rpx;
-    flex-shrink: 0;
+  width: 40rpx;
+  height: 40rpx;
+  flex-shrink: 0;
 }
 
 .item-img {
-    width: 40rpx;
-    height: 40rpx;
-    flex-shrink: 0;
+  width: 40rpx;
+  height: 40rpx;
+  flex-shrink: 0;
 }
 
 .left-intake-name .item-img {
-    margin-left: 8rpx;
+  margin-left: 8rpx;
 }
 
 .water-intake-name {
-    font-size: 42rpx !important;
-    margin-left: 16rpx;
-    margin-right: 15rpx;
-    white-space: nowrap; /* 闃叉鏂囨湰鎹㈣ */
-    font-weight: 500;
-    color: #333;
-    flex-shrink: 0;
+  font-size: 42rpx !important;
+  margin-left: 16rpx;
+  margin-right: 15rpx;
+  white-space: nowrap;
+  /* 闃叉鏂囨湰鎹㈣ */
+  font-weight: 500;
+  color: #333;
+  flex-shrink: 0;
 }
 
 .left-time {
-    width: 100%;
-    display: flex;
-    align-items: center;
-    color: #666;
-    flex-wrap: nowrap;
-    overflow: hidden;
-    padding-right: 10rpx;
-    padding-left: 4rpx;
+  width: 100%;
+  display: flex;
+  align-items: center;
+  color: #666;
+  flex-wrap: nowrap;
+  overflow: hidden;
+  padding-right: 10rpx;
+  padding-left: 4rpx;
 }
 
 .flow-time {
-    font-size: 28rpx !important;
-    margin-left: 16rpx;
-    margin-right: 2rpx;
-    white-space: nowrap;
-    color: #666;
-    display: inline-block;
+  font-size: 28rpx !important;
+  margin-left: 16rpx;
+  margin-right: 2rpx;
+  white-space: nowrap;
+  color: #666;
+  display: inline-block;
 }
 
 .flow-rate {
-    font-size: 28rpx !important;
-    margin-left: 6rpx;
-    white-space: nowrap;
-    overflow: hidden;
-    text-overflow: ellipsis;
-    flex: 1;
-    color: #666;
+  font-size: 28rpx !important;
+  margin-left: 6rpx;
+  white-space: nowrap;
+  overflow: hidden;
+  text-overflow: ellipsis;
+  flex: 1;
+  color: #666;
 }
 
 .item-right {
-    display: flex;
-    align-items: center;
-    margin-left: 20rpx;
+  display: flex;
+  align-items: center;
+  margin-left: 20rpx;
 }
 
 .item-button {
-    display: flex;
-    height: 70rpx;
-    padding: 0 40rpx;
-    background-color: #1890FF;
-    color: white;
-    border: none;
-    border-radius: 35rpx;
-    font-size: 30rpx !important;
-    align-items: center;
-    justify-content: center;
-    white-space: nowrap; /* 纭繚鏂囧瓧涓嶆崲琛� */
-    box-shadow: 0 4rpx 8rpx rgba(24, 144, 255, 0.2);
-    transition: all 0.3s;
+  display: flex;
+  height: 70rpx;
+  padding: 0 40rpx;
+  background-color: #1890FF;
+  color: white;
+  border: none;
+  border-radius: 35rpx;
+  font-size: 30rpx !important;
+  align-items: center;
+  justify-content: center;
+  white-space: nowrap;
+  /* 纭繚鏂囧瓧涓嶆崲琛� */
+  box-shadow: 0 4rpx 8rpx rgba(24, 144, 255, 0.2);
+  transition: all 0.3s;
 }
 
 .item-button:active {
-    background-color: #1378d8;
-    transform: scale(0.98);
+  background-color: #1378d8;
+  transform: scale(0.98);
 }
 
 .delete-btn {
-    display: flex;
-    align-items: center;
-    justify-content: center;
-    width: 140rpx;
-    height: 100%;
-    color: white;
-    background-color: #e34d59;
-    font-size: 30rpx;
+  display: flex;
+  align-items: center;
+  justify-content: center;
+  width: 140rpx;
+  height: 100%;
+  color: white;
+  background-color: #e34d59;
+  font-size: 30rpx;
 }
 
 .list-item text {
-    font-size: 30rpx;
+  font-size: 30rpx;
 }
 
 
 
 .list-item-piping {
-    display: flex;
-    flex-direction: column;
-    align-items: center;
+  display: flex;
+  flex-direction: column;
+  align-items: center;
 }
 
 .bottom-title {
-    border-radius: 12rpx 12rpx 0 0;
-    background-color: #fff;
-    display: flex;
-    align-items: center;
-    /* 鍨傜洿鏂瑰悜灞呬腑 */
-    justify-content: space-between;
-    /* 瀛愬厓绱犲湪涓昏酱涓婄殑瀵归綈鏂瑰紡 */
-    padding: 30rpx;
-    /* 瀹瑰櫒鐨勫唴杈硅窛 */
-    width: calc(100% - 40rpx);
-    margin-left: 20rpx;
-    margin-right: 20rpx;
-    margin-top: 20rpx;
-    margin-bottom: 0;
-    box-shadow: 0 2rpx 10rpx rgba(0, 0, 0, 0.03);
-    position: relative;
-    box-sizing: border-box;
-    border-bottom: 1rpx solid #e7e7e7;
+  border-radius: 12rpx 12rpx 0 0;
+  background-color: #fff;
+  display: flex;
+  align-items: center;
+  /* 鍨傜洿鏂瑰悜灞呬腑 */
+  justify-content: space-between;
+  /* 瀛愬厓绱犲湪涓昏酱涓婄殑瀵归綈鏂瑰紡 */
+  padding: 30rpx;
+  /* 瀹瑰櫒鐨勫唴杈硅窛 */
+  width: calc(100% - 40rpx);
+  margin-left: 20rpx;
+  margin-right: 20rpx;
+  margin-top: 20rpx;
+  margin-bottom: 0;
+  box-shadow: 0 2rpx 10rpx rgba(0, 0, 0, 0.03);
+  position: relative;
+  box-sizing: border-box;
+  border-bottom: 1rpx solid #e7e7e7;
 }
 
 .bottom-title-text {
-    margin-right: 10rpx;
-    /* 缁欐枃鏈拰鍥炬爣涔嬮棿娣诲姞涓�浜涢棿璺� */
-    font-size: 34rpx;
-    /* 瀛椾綋澶у皬 */
-    color: #333;
-    /* 瀛椾綋棰滆壊 */
-    font-weight: 500;
+  margin-right: 10rpx;
+  /* 缁欐枃鏈拰鍥炬爣涔嬮棿娣诲姞涓�浜涢棿璺� */
+  font-size: 34rpx;
+  /* 瀛椾綋澶у皬 */
+  color: #333;
+  /* 瀛椾綋棰滆壊 */
+  font-weight: 500;
 }
 
 .refresh-button {
-    margin-left: auto;
-    /* 灏嗘寜閽帹鍒板鍣ㄧ殑鏈�鍙充晶 */
-    font-size: 28rpx;
-    /* 鎸夐挳鏂囧瓧鐨勫瓧浣撳ぇ灏� */
-    color: #fff;
-    /* 鎸夐挳鏂囧瓧棰滆壊 */
-    background-color: #1890FF;
-    /* 鎸夐挳鑳屾櫙棰滆壊 */
-    border: none;
-    /* 鍘绘帀鎸夐挳杈规 */
-    border-radius: 30rpx;
-    /* 鎸夐挳鍦嗚 */
-    padding: 15rpx 30rpx;
-    display: flex;
-    align-items: center;
-    justify-content: center;
-    box-shadow: 0 4rpx 8rpx rgba(24, 144, 255, 0.2);
-    transition: all 0.3s;
+  margin-left: auto;
+  /* 灏嗘寜閽帹鍒板鍣ㄧ殑鏈�鍙充晶 */
+  font-size: 28rpx;
+  /* 鎸夐挳鏂囧瓧鐨勫瓧浣撳ぇ灏� */
+  color: #fff;
+  /* 鎸夐挳鏂囧瓧棰滆壊 */
+  background-color: #1890FF;
+  /* 鎸夐挳鑳屾櫙棰滆壊 */
+  border: none;
+  /* 鍘绘帀鎸夐挳杈规 */
+  border-radius: 30rpx;
+  /* 鎸夐挳鍦嗚 */
+  padding: 15rpx 30rpx;
+  display: flex;
+  align-items: center;
+  justify-content: center;
+  box-shadow: 0 4rpx 8rpx rgba(24, 144, 255, 0.2);
+  transition: all 0.3s;
 }
 
 .refresh-button:active {
-    background-color: #1378d8;
-    transform: scale(0.98);
+  background-color: #1378d8;
+  transform: scale(0.98);
 }
 
 .refresh-view {
-    text-align: center;
-    padding: 40rpx;
-    display: flex;
-    justify-content: center;
-    align-items: center;
+  text-align: center;
+  padding: 40rpx;
+  display: flex;
+  justify-content: center;
+  align-items: center;
 }
 
 .dot {
-    width: 16rpx;
-    height: 16rpx;
-    background-color: #1890FF;
-    border-radius: 50%;
-    margin: 0 8rpx;
-    animation: blink 1.4s infinite both;
-    opacity: 0.7;
+  width: 16rpx;
+  height: 16rpx;
+  background-color: #1890FF;
+  border-radius: 50%;
+  margin: 0 8rpx;
+  animation: blink 1.4s infinite both;
+  opacity: 0.7;
 }
 
 .dot:nth-child(2) {
-    animation-delay: 0.2s;
+  animation-delay: 0.2s;
 }
 
 .dot:nth-child(3) {
-    animation-delay: 0.4s;
+  animation-delay: 0.4s;
 }
 
 @keyframes blink {
-    0% {
-        opacity: 0.2;
-        transform: scale(0.8);
-    }
-    50% {
-        opacity: 1;
-        transform: scale(1.2);
-    }
-    100% {
-        opacity: 0.2;
-        transform: scale(0.8);
-    }
+  0% {
+    opacity: 0.2;
+    transform: scale(0.8);
+  }
+
+  50% {
+    opacity: 1;
+    transform: scale(1.2);
+  }
+
+  100% {
+    opacity: 0.2;
+    transform: scale(0.8);
+  }
 }
 
 .switch {
-    --td-switch-checked-color: #1890FF;
+  --td-switch-checked-color: #1890FF;
 }
 
 /* 淇敼閫夋嫨鍣紝浣垮叾涓嶄細褰卞搷flow-time */
 .item-left .water-intake-name {
-    min-width: 150rpx;
+  min-width: 150rpx;
 }
 
 .dialog {
-    --td-dialog-content-font-size: 40rpx;
-    --td-dialog-content-line-height: 50rpx
+  --td-dialog-content-font-size: 40rpx;
+  --td-dialog-content-line-height: 50rpx
 }
 
 .noMore-View-home {
-    display: flex;
-    flex-direction: column;
-    align-items: center;
-    justify-content: center;
-    margin-top: 80rpx;
-    padding: 40rpx;
+  display: flex;
+  flex-direction: column;
+  align-items: center;
+  justify-content: center;
+  margin-top: 80rpx;
+  padding: 40rpx;
 }
 
 .noMore-img {
-    width: 200rpx;
-    height: 200rpx;
-    margin-bottom: 20rpx;
-    opacity: 0.7;
+  width: 200rpx;
+  height: 200rpx;
+  margin-bottom: 20rpx;
+  opacity: 0.7;
 }
 
 .noMore-text {
-    font-size: 32rpx;
-    color: #999;
+  font-size: 32rpx;
+  color: #999;
 }
 
 .error-dialog {
-    --td-dialog-title-color: red;
-    --td-dialog-title-font-size: 40rpx;
+  --td-dialog-title-color: red;
+  --td-dialog-title-font-size: 40rpx;
 }
 
 .scen-view {
-    position: absolute;
-    /* 娣诲姞杩欒 */
-    top: 15rpx;
-    /* 鏍规嵁闇�瑕佽皟鏁磋窛绂婚《閮ㄧ殑璺濈 */
-    right: 30rpx;
-    /* 鏍规嵁闇�瑕佽皟鏁磋窛绂诲彸渚х殑璺濈 */
-    display: flex;
-    align-items: center;
-    /* 鍨傜洿鏂瑰悜灞呬腑 */
-    justify-content: space-between;
+  position: absolute;
+  /* 娣诲姞杩欒 */
+  top: 15rpx;
+  /* 鏍规嵁闇�瑕佽皟鏁磋窛绂婚《閮ㄧ殑璺濈 */
+  right: 30rpx;
+  /* 鏍规嵁闇�瑕佽皟鏁磋窛绂诲彸渚х殑璺濈 */
+  display: flex;
+  align-items: center;
+  /* 鍨傜洿鏂瑰悜灞呬腑 */
+  justify-content: space-between;
 }
 
 .scen-code {
-    width: 40rpx;
-    height: 40rpx;
+  width: 40rpx;
+  height: 40rpx;
 }
 
 .scen-view text {
-    font-size: 30rpx;
-    color: #ffffff;
+  font-size: 30rpx;
+  color: #ffffff;
 }
 
 .project-select-container {
-    padding: 20rpx 0;
+  padding: 20rpx 0;
 }
 
 .project-select-container .t-radio {
-    margin-bottom: 20rpx;
-    padding: 10rpx 0;
+  margin-bottom: 20rpx;
+  padding: 10rpx 0;
 }
 
 .project-select-container .t-radio:last-child {
-    margin-bottom: 0;
+  margin-bottom: 0;
 }
 
 .project-select-container .t-radio__label {
-    font-size: 28rpx;
-    color: #333;
+  font-size: 28rpx;
+  color: #333;
 }
 
 .project-select-container .t-radio--checked {
-    background: #e6f4ff;
+  background: #e6f4ff;
 }
 
 /* 寮圭獥鎸夐挳鏍峰紡 */
 .dialog__button-group {
-    display: flex;
-    justify-content: space-between;
-    margin-top: 32rpx;
+  display: flex;
+  justify-content: space-between;
+  margin-top: 32rpx;
 }
 
 .dialog__button-group .t-button {
-    flex: 1;
-    margin: 0 16rpx;
+  flex: 1;
+  margin: 0 16rpx;
 }
 
 .dialog__button-group .t-button:first-child {
-    margin-left: 0;
+  margin-left: 0;
 }
 
 .dialog__button-group .t-button:last-child {
-    margin-right: 0;
+  margin-right: 0;
 }
 
 .project-select-popup {
-    background-color: #fff;
-    border-radius: 16rpx;
-    width: 600rpx;
+  background-color: #fff;
+  border-radius: 16rpx;
+  width: 600rpx;
 }
 
 .popup-title {
-    font-size: 32rpx;
-    font-weight: bold;
-    text-align: center;
-    padding: 32rpx;
-    border-bottom: 1px solid #f0f0f0;
+  font-size: 32rpx;
+  font-weight: bold;
+  text-align: center;
+  padding: 32rpx;
+  border-bottom: 1px solid #f0f0f0;
 }
 
 .popup-content {
-    padding: 32rpx;
+  padding: 32rpx;
 }
 
 .radio-group {
-    display: flex;
-    flex-direction: column;
-    gap: 20rpx;
+  display: flex;
+  flex-direction: column;
+  gap: 20rpx;
 }
 
 .radio-group .t-radio {
-    margin-bottom: 20rpx;
-    padding: 20rpx;
-    background: #f5f5f5;
-    border-radius: 8rpx;
+  margin-bottom: 20rpx;
+  padding: 20rpx;
+  background: #f5f5f5;
+  border-radius: 8rpx;
 }
 
 .radio-group .t-radio:last-child {
-    margin-bottom: 0;
+  margin-bottom: 0;
 }
 
 .popup-footer {
-    padding: 32rpx;
-    border-top: 1px solid #f0f0f0;
+  padding: 32rpx;
+  border-top: 1px solid #f0f0f0;
 }
 
 .dialog-content {
-    padding: 32rpx;
-    max-height: 60vh;
+  padding: 32rpx;
+  max-height: 60vh;
 }
 
 .project-options {
-    display: flex;
-    flex-direction: column;
-    gap: 20rpx;
+  display: flex;
+  flex-direction: column;
+  gap: 20rpx;
 }
 
 .project-option {
-    display: flex;
-    justify-content: space-between;
-    align-items: center;
-    padding: 30rpx;
-    background: #f5f5f5;
-    border-radius: 8rpx;
-    font-size: 32rpx;
+  display: flex;
+  justify-content: space-between;
+  align-items: center;
+  padding: 30rpx;
+  background: #f5f5f5;
+  border-radius: 8rpx;
+  font-size: 32rpx;
 }
 
 .project-option.selected {
-    background: #e6f4ff;
-    border: 2rpx solid #1890FF;
+  background: #e6f4ff;
+  border: 2rpx solid #1890FF;
 }
 
 .selected-icon {
-    width: 40rpx;
-    height: 40rpx;
+  width: 40rpx;
+  height: 40rpx;
 }
 
 .project-dialog-content {
-    padding: 20rpx;
+  padding: 20rpx;
 }
 
 .project-item {
-    margin: 20rpx 0;
-    padding: 30rpx;
-    background-color: #f5f5f5;
-    border-radius: 8rpx;
-    text-align: center;
-    font-size: 32rpx;
+  margin: 20rpx 0;
+  padding: 30rpx;
+  background-color: #f5f5f5;
+  border-radius: 8rpx;
+  text-align: center;
+  font-size: 32rpx;
 }
 
 .project-item-selected {
-    background-color: #e6f4ff;
-    color: #1890FF;
-    border: 2rpx solid #1890FF;
+  background-color: #e6f4ff;
+  color: #1890FF;
+  border: 2rpx solid #1890FF;
 }
 
 .radio-content {
-    padding: 30rpx 20rpx 10rpx;
+  padding: 30rpx 20rpx 10rpx;
 }
 
 .radio-content .t-radio {
-    margin-bottom: 20rpx;
-    padding: 20rpx;
-    background-color: #f5f5f5;
-    border-radius: 8rpx;
+  margin-bottom: 20rpx;
+  padding: 20rpx;
+  background-color: #f5f5f5;
+  border-radius: 8rpx;
 }
 
 .radio-content .t-radio--checked {
-    background-color: #e6f4ff;
+  background-color: #e6f4ff;
 }
 
 .project-modal {
-    position: fixed;
-    top: 0;
-    left: 0;
-    right: 0;
-    bottom: 0;
-    z-index: 999;
+  position: fixed;
+  top: 0;
+  left: 0;
+  right: 0;
+  bottom: 0;
+  z-index: 999;
 }
 
 .project-modal-mask {
-    position: absolute;
-    top: 0;
-    left: 0;
-    right: 0;
-    bottom: 0;
-    background-color: rgba(0, 0, 0, 0.5);
+  position: absolute;
+  top: 0;
+  left: 0;
+  right: 0;
+  bottom: 0;
+  background-color: rgba(0, 0, 0, 0.5);
 }
 
 .project-modal-content {
-    position: absolute;
-    top: 50%;
-    left: 50%;
-    transform: translate(-50%, -50%);
-    width: 85%;
-    max-width: 600rpx;
-    background-color: #fff;
-    border-radius: 16rpx;
-    overflow: hidden;
-    display: flex;
-    flex-direction: column;
+  position: absolute;
+  top: 50%;
+  left: 50%;
+  transform: translate(-50%, -50%);
+  width: 85%;
+  max-width: 600rpx;
+  background-color: #fff;
+  border-radius: 16rpx;
+  overflow: hidden;
+  display: flex;
+  flex-direction: column;
 }
 
 .project-modal-header {
-    padding: 24rpx;
-    text-align: center;
-    font-size: 32rpx;
-    font-weight: bold;
-    border-bottom: 1rpx solid #eee;
+  padding: 24rpx;
+  text-align: center;
+  font-size: 32rpx;
+  font-weight: bold;
+  border-bottom: 1rpx solid #eee;
 }
 
 .project-modal-body {
-    padding: 0;
-    max-height: 60vh;
+  padding: 0;
+  max-height: 60vh;
 }
 
 .project-scroll-view {
-    max-height: 55vh; /* 绋嶅井鍑忓皬楂樺害锛岀‘淇濆湪灏忓睆骞曚笂涔熻兘鐪嬪埌搴曢儴鎸夐挳 */
-    height: auto;
+  max-height: 55vh;
+  /* 绋嶅井鍑忓皬楂樺害锛岀‘淇濆湪灏忓睆骞曚笂涔熻兘鐪嬪埌搴曢儴鎸夐挳 */
+  height: auto;
 }
 
 .project-radio-group {
-    display: flex;
-    flex-direction: column;
-    width: 100%;
+  display: flex;
+  flex-direction: column;
+  width: 100%;
 }
 
 .project-radio {
-    padding: 24rpx;
-    display: flex;
-    align-items: center;
-    border-bottom: 1rpx solid #f5f5f5;
-    width: 100%;
-    box-sizing: border-box;
+  padding: 24rpx;
+  display: flex;
+  align-items: center;
+  border-bottom: 1rpx solid #f5f5f5;
+  width: 100%;
+  box-sizing: border-box;
 }
 
 .project-radio radio {
-    margin-right: 16rpx;
+  margin-right: 16rpx;
 }
 
 .project-radio text {
-    font-size: 30rpx;
-    color: #333;
+  font-size: 30rpx;
+  color: #333;
 }
 
 .project-radio-selected {
-    background-color: #f0f9ff;
+  background-color: #f0f9ff;
 }
 
 .project-modal-footer {
-    padding: 24rpx;
-    border-top: 1rpx solid #eee;
+  padding: 24rpx;
+  border-top: 1rpx solid #eee;
 }
 
 .project-modal-btn {
-    background-color: #1890FF;
-    color: white;
-    border-radius: 8rpx;
-    font-size: 28rpx;
-    padding: 16rpx 0;
+  background-color: #1890FF;
+  color: white;
+  border-radius: 8rpx;
+  font-size: 28rpx;
+  padding: 16rpx 0;
 }
 
 .project-modal-btn[disabled] {
-    background-color: #cccccc;
-    color: #666666;
+  background-color: #cccccc;
+  color: #666666;
 }
 
 .info-img {
-    width: 50rpx;
-    height: 50rpx;
+  width: 50rpx;
+  height: 50rpx;
 }
 
 .title-center {
-    position: absolute;
-    /* 缁濆瀹氫綅 */
-    left: 50%;
-    /* 绉诲姩鍒板鍣ㄧ殑涓棿 */
-    transform: translateX(-50%);
-    display: flex;
-    justify-content: space-between;
-    /* 浣垮瓙鍏冪礌鍦ㄤ富杞翠笂鍧囧寑鍒嗗竷 */
-    align-items: center;
-    /* 鍨傜洿灞呬腑瀵归綈 */
+  position: absolute;
+  /* 缁濆瀹氫綅 */
+  left: 50%;
+  /* 绉诲姩鍒板鍣ㄧ殑涓棿 */
+  transform: translateX(-50%);
+  display: flex;
+  justify-content: space-between;
+  /* 浣垮瓙鍏冪礌鍦ㄤ富杞翠笂鍧囧寑鍒嗗竷 */
+  align-items: center;
+  /* 鍨傜洿灞呬腑瀵归綈 */
 }
+
 .content-container {
-    white-space: pre-line;
-    word-wrap: break-word;
-    /* 闃叉闀垮崟璇嶆棤娉曟崲琛� */
-  }
-  
-  .long-content {
-    height: 500rpx;
-    margin-top: 16rpx;
-    font-size: 32rpx;
-    color: #888;
-  }
-  
+  white-space: pre-line;
+  word-wrap: break-word;
+  /* 闃叉闀垮崟璇嶆棤娉曟崲琛� */
+}
+
+.long-content {
+  height: 500rpx;
+  margin-top: 16rpx;
+  font-size: 32rpx;
+  color: #888;
+}
+
 .current-project {
-    display: flex;
-    align-items: center;
-    margin-left: 20rpx;
-margin-top: 10rpx;
+  display: flex;
+  align-items: center;
+  margin-left: 20rpx;
+  margin-top: 10rpx;
 
 }
 
 .current-project text {
-    color: #fff;
-    font-size: 32rpx;
-    margin-right: 10rpx;
+  color: #fff;
+  font-size: 32rpx;
+  margin-right: 10rpx;
 }
 
 .switch-project {
-    display: flex;
-    align-items: center;
-    justify-content: center;
-    width: 40rpx;
-    height: 40rpx;
-    background-color: rgba(255, 255, 255, 0.2);
-    border-radius: 50%;
-    margin-left: 5rpx;
+  display: flex;
+  align-items: center;
+  justify-content: center;
+  width: 40rpx;
+  height: 40rpx;
+  background-color: rgba(255, 255, 255, 0.2);
+  border-radius: 50%;
+  margin-left: 5rpx;
 }
 
 .switch-icon {
-    width: 24rpx;
-    height: 24rpx;
+  width: 24rpx;
+  height: 24rpx;
 }
 
 .avatar-project-container {
@@ -804,5 +875,4 @@
   background-color: rgba(255, 255, 255, 0.2);
   border-radius: 15rpx;
   padding: 6rpx 14rpx;
-}
-  
\ No newline at end of file
+}
\ No newline at end of file
diff --git a/pages/modeCompute/modeCompute.js b/pages/modeCompute/modeCompute.js
new file mode 100644
index 0000000..a010efd
--- /dev/null
+++ b/pages/modeCompute/modeCompute.js
@@ -0,0 +1,478 @@
+// pages/modeCompute/modeCompute.js
+const dayjs = require('dayjs');
+const { get } = require('../../api/request');
+
+import * as echarts from '../../ec-canvas/echarts';
+
+function initChart(canvas, width, height, dpr) {
+  const chart = echarts.init(canvas, null, {
+    width: width,
+    height: height,
+    devicePixelRatio: dpr
+  });
+  
+  // 灏哻hart瀹炰緥淇濆瓨鍒伴〉闈㈠疄渚嬩腑
+  const pages = getCurrentPages();
+  const currentPage = pages[pages.length - 1];
+  currentPage.chart = chart;
+  
+  // 纭繚鍥捐〃瀹屽叏鍒濆鍖栧悗鍐嶆洿鏂版暟鎹�
+  setTimeout(() => {
+    if (currentPage.updateEChartsData && currentPage.data.chartData && currentPage.data.chartData.length > 0) {
+      currentPage.updateEChartsData();
+    }
+  }, 200);
+  
+  return chart;
+}
+
+Page({
+  /**
+   * 椤甸潰鐨勫垵濮嬫暟鎹�
+   */
+  data: {
+    // 鏄剧ず绫诲瀷锛歝hart 鍥捐〃锛宭ist 鍒楄〃
+    displayType: 'chart',
+    
+    // 鍔犺浇鐘舵��
+    isLoading: false,
+    
+    // 鍐滀綔鐗╃浉鍏�
+    selectedCrop: {},
+    cropList: [],
+    showCropPopup: false,
+    
+    // 鏃ユ湡鐩稿叧
+    startDate: '',
+    endDate: '',
+    showDatePicker: false,
+    pickerDate: '',
+    currentDateType: '', // 'start' 鎴� 'end'
+    
+    // 鏁版嵁鐩稿叧
+    tableData: [],
+    chartData: [],
+    
+    // ECharts鐩稿叧
+    ec: {
+      onInit: initChart
+    }
+  },
+
+  /**
+   * 鐢熷懡鍛ㄦ湡鍑芥暟--鐩戝惉椤甸潰鍔犺浇
+   */
+  onLoad(options) {
+    this.initDefaultData();
+  },
+
+  /**
+   * 鐢熷懡鍛ㄦ湡鍑芥暟--鐩戝惉椤甸潰鍒濇娓叉煋瀹屾垚
+   */
+  onReady() {
+    // 鍥捐〃鍒濆鍖栫敱ec-canvas缁勪欢鑷姩澶勭悊
+  },
+
+  /**
+   * 鍒濆鍖栧浘琛紙澶囩敤鏂规硶锛�
+   */
+  initChart() {
+    // 杩欎釜鏂规硶涓昏鐢ㄤ簬閲嶆柊鍒濆鍖栧浘琛�
+    console.log('灏濊瘯閲嶆柊鍒濆鍖栧浘琛�');
+  },
+
+  /**
+   * 鐢熷懡鍛ㄦ湡鍑芥暟--鐩戝惉椤甸潰鏄剧ず
+   */
+  onShow() {
+
+  },
+
+  /**
+   * 鍒濆鍖栭粯璁ゆ暟鎹�
+   */
+  initDefaultData() {
+    const today = dayjs();
+    const startDate = today.subtract(30, 'day').format('YYYY-MM-DD');
+    const endDate = today.format('YYYY-MM-DD');
+    
+    this.setData({
+      startDate: startDate,
+      endDate: endDate
+    });
+    
+    // 鑾峰彇鍐滀綔鐗╁垪琛�
+    this.getCropList();
+  },
+
+  /**
+   * 鑾峰彇鍐滀綔鐗╁垪琛�
+   */
+  async getCropList() {
+    try {
+      this.setData({ isLoading: true });
+      
+      const result = await get({
+        url: '/wx/mdVapor/allCropsWithYesterday'
+      });
+      
+      if (result.success && result.content) {
+        this.setData({
+          cropList: result.content,
+          selectedCrop: result.content[0] || {},
+          isLoading: false
+        });
+        
+        // 濡傛灉鏈夐粯璁ら�変腑鐨勫啘浣滅墿锛岃幏鍙栨暟鎹�
+        if (result.content.length > 0) {
+          this.getCropData();
+        }
+      } else {
+        this.setData({ isLoading: false });
+        wx.showToast({
+          title: result.msg || '鑾峰彇鍐滀綔鐗╁垪琛ㄥけ璐�',
+          icon: 'none'
+        });
+      }
+    } catch (error) {
+      this.setData({ isLoading: false });
+      wx.showToast({
+        title: '缃戠粶璇锋眰澶辫触',
+        icon: 'none'
+      });
+      console.error('鑾峰彇鍐滀綔鐗╁垪琛ㄥけ璐�:', error);
+    }
+  },
+
+  /**
+   * 鑾峰彇浣滅墿鏁版嵁
+   */
+  async getCropData() {
+    if (!this.data.selectedCrop.cropId || !this.data.startDate || !this.data.endDate) {
+      console.log('缂哄皯蹇呰鍙傛暟');
+      return;
+    }
+    
+    try {
+      this.setData({ isLoading: true });
+      
+      const result = await get({
+        url: '/wx/mdVapor/oneCropsSomeEt0',
+        data: {
+          cropId: this.data.selectedCrop.cropId,
+          timeStart: this.data.startDate,
+          timeStop: this.data.endDate
+        }
+      });
+      
+      if (result.success && result.content) {
+        const tableData = [];
+        const chartData = [];
+        
+        result.content.forEach((item, index) => {
+          const tableItem = {
+            cropName: item.cropName,
+            date: item.dt,
+            transpiration: item.et0 ? item.et0.toFixed(2) : '0.00',
+            maxTemp: item.maxTmp || 0,
+            minTemp: item.minTmp || 0,
+            cropCoefficient: item.factor ? item.factor.toFixed(2) : '0.00'
+          };
+          
+          tableData.push(tableItem);
+          chartData.push({
+            date: item.dt,
+            value: item.et0 || 0
+          });
+        });
+        
+        this.setData({
+          tableData: tableData,
+          chartData: chartData,
+          isLoading: false
+        });
+        
+        // 濡傛灉鍥捐〃宸插垵濮嬪寲锛屾洿鏂板浘琛ㄦ暟鎹�
+        if (this.chart && this.data.displayType === 'chart') {
+          // 寤惰繜鏇存柊锛岀‘淇濇暟鎹凡璁剧疆
+          setTimeout(() => {
+            this.updateEChartsData();
+          }, 100);
+        }
+      } else {
+        this.setData({ isLoading: false });
+        wx.showToast({
+          title: result.msg || '鑾峰彇浣滅墿鏁版嵁澶辫触',
+          icon: 'none'
+        });
+      }
+    } catch (error) {
+      this.setData({ isLoading: false });
+      wx.showToast({
+        title: '缃戠粶璇锋眰澶辫触',
+        icon: 'none'
+      });
+      console.error('鑾峰彇浣滅墿鏁版嵁澶辫触:', error);
+    }
+  },
+
+  /**
+   * 鍒囨崲鍒板浘琛ㄨ鍥�
+   */
+  switchToChart() {
+    this.setData({
+      displayType: 'chart'
+    });
+    
+    // 寤惰繜鏇存柊鍥捐〃锛岀‘淇滵OM宸叉覆鏌�
+    setTimeout(() => {
+      if (this.chart) {
+        this.updateEChartsData();
+      } else {
+        console.log('鍥捐〃瀹炰緥涓嶅瓨鍦紝灏濊瘯閲嶆柊鍒濆鍖�');
+        // 濡傛灉鍥捐〃瀹炰緥涓嶅瓨鍦紝灏濊瘯閲嶆柊鍒濆鍖�
+        this.initChart();
+      }
+    }, 200);
+  },
+
+  /**
+   * 鍒囨崲鍒板垪琛ㄨ鍥�
+   */
+  switchToList() {
+    this.setData({
+      displayType: 'list'
+    });
+  },
+
+  /**
+   * 鏄剧ず鍐滀綔鐗╅�夋嫨寮圭獥
+   */
+  showCropPicker() {
+    this.setData({
+      showCropPopup: true
+    });
+  },
+
+  /**
+   * 鍐滀綔鐗╁脊绐楁樉绀虹姸鎬佹敼鍙�
+   */
+  onCropPopupChange(e) {
+    this.setData({
+      showCropPopup: e.detail.visible
+    });
+  },
+
+  /**
+   * 閫夋嫨鍐滀綔鐗�
+   */
+  selectCrop(e) {
+    const crop = e.currentTarget.dataset.crop;
+    this.setData({
+      selectedCrop: crop,
+      showCropPopup: false
+    });
+    
+    // 閲嶆柊鑾峰彇鏁版嵁
+    this.getCropData();
+  },
+
+  /**
+   * 鏄剧ず璧峰鏃ユ湡閫夋嫨鍣�
+   */
+  showStartDatePicker() {
+    this.setData({
+      showDatePicker: true,
+      currentDateType: 'start',
+      pickerDate: this.data.startDate || dayjs().format('YYYY-MM-DD')
+    });
+  },
+
+  /**
+   * 鏄剧ず缁撴潫鏃ユ湡閫夋嫨鍣�
+   */
+  showEndDatePicker() {
+    this.setData({
+      showDatePicker: true,
+      currentDateType: 'end',
+      pickerDate: this.data.endDate || dayjs().format('YYYY-MM-DD')
+    });
+  },
+
+  /**
+   * 鏃ユ湡鏀瑰彉
+   */
+  onDateChange(e) {
+    // 鏍煎紡鍖栨棩鏈燂紝鍙繚鐣欏勾鏈堟棩
+    const formattedDate = dayjs(e.detail.value).format('YYYY-MM-DD');
+    this.setData({
+      pickerDate: formattedDate
+    });
+  },
+
+  /**
+   * 鍙栨秷鏃ユ湡閫夋嫨
+   */
+  onDateCancel() {
+    this.setData({
+      showDatePicker: false
+    });
+  },
+
+  /**
+   * 纭鏃ユ湡閫夋嫨
+   */
+  onDateConfirm(e) {
+    const selectedDate = e.detail.value;
+    // 鏍煎紡鍖栨棩鏈燂紝鍙繚鐣欏勾鏈堟棩
+    const formattedDate = dayjs(selectedDate).format('YYYY-MM-DD');
+    
+    const updateData = {
+      showDatePicker: false
+    };
+    
+    if (this.data.currentDateType === 'start') {
+      updateData.startDate = formattedDate;
+    } else {
+      updateData.endDate = formattedDate;
+    }
+    
+    this.setData(updateData);
+    
+    // 閲嶆柊鑾峰彇鏁版嵁
+    this.getCropData();
+  },
+
+  /**
+   * 鏇存柊ECharts鍥捐〃鏁版嵁
+   */
+  updateEChartsData() {
+    if (!this.chart) {
+      console.log('鍥捐〃瀹炰緥涓嶅瓨鍦紝鏃犳硶鏇存柊鏁版嵁');
+      return;
+    }
+    
+    // 澶勭悊鏁版嵁
+    const hasData = this.data.chartData && this.data.chartData.length > 0;
+    const xAxisData = hasData ? 
+      this.data.chartData.map(item => dayjs(item.date).format('MM-DD')) : 
+      ['鏆傛棤鏁版嵁'];
+    const seriesData = hasData ? 
+      this.data.chartData.map(item => item.value) : 
+      [0];
+
+    const option = {
+      backgroundColor: 'transparent',
+      grid: {
+        left: '10%',
+        right: '10%',
+        bottom: '15%',
+        top: '10%',
+        containLabel: true
+      },
+      tooltip: {
+        show: true,
+        trigger: 'axis',
+        backgroundColor: 'rgba(0, 0, 0, 0.8)',
+        borderColor: '#1890FF',
+        borderWidth: 1,
+        textStyle: {
+          color: '#fff',
+          fontSize: 14
+        },
+        formatter: function(params) {
+          if (!params || params.length === 0) return '';
+          const param = params[0];
+          return `${param.axisValue} 钂歌吘閲�: ${param.value} mm/day`;
+        }
+      },
+      xAxis: {
+        type: 'category',
+        data: xAxisData,
+        axisLine: {
+          lineStyle: { color: '#d0d7de', width: 2 }
+        },
+        axisLabel: {
+          color: '#666',
+          fontSize: 12
+        }
+      },
+      yAxis: {
+        type: 'value',
+        name: '钂歌吘閲�(mm/day)',
+        nameTextStyle: {
+          color: '#333',
+          fontSize: 14
+        },
+        axisLine: {
+          lineStyle: { color: '#d0d7de', width: 2 }
+        },
+        axisLabel: {
+          color: '#666',
+          fontSize: 12
+        },
+        splitLine: {
+          lineStyle: {
+            color: 'rgba(0, 0, 0, 0.05)',
+            width: 1
+          }
+        }
+      },
+      series: [{
+        data: seriesData,
+        type: 'line',
+        smooth: true,
+        symbol: hasData ? 'circle' : 'none',
+        symbolSize: 8,
+        lineStyle: {
+          color: '#1890FF',
+          width: 3
+        },
+        itemStyle: {
+          color: '#1890FF',
+          borderColor: '#fff',
+          borderWidth: 2
+        },
+        areaStyle: hasData ? {
+          color: {
+            type: 'linear',
+            x: 0, y: 0, x2: 0, y2: 1,
+            colorStops: [
+              { offset: 0, color: 'rgba(24, 144, 255, 0.3)' },
+              { offset: 1, color: 'rgba(24, 144, 255, 0.05)' }
+            ]
+          }
+        } : null
+      }]
+    };
+    
+    this.chart.setOption(option, true);
+  },
+
+
+
+  /**
+   * 椤甸潰鐩稿叧浜嬩欢澶勭悊鍑芥暟--鐩戝惉鐢ㄦ埛涓嬫媺鍔ㄤ綔
+   */
+  onPullDownRefresh() {
+    this.getCropData();
+    wx.stopPullDownRefresh();
+  },
+
+  /**
+   * 椤甸潰涓婃媺瑙﹀簳浜嬩欢鐨勫鐞嗗嚱鏁�
+   */
+  onReachBottom() {
+
+  },
+
+  /**
+   * 鐢ㄦ埛鐐瑰嚮鍙充笂瑙掑垎浜�
+   */
+  onShareAppMessage() {
+    return {
+      title: '妯″瀷璁$畻',
+      path: '/pages/modeCompute/modeCompute'
+    };
+  }
+})
\ No newline at end of file
diff --git a/pages/modeCompute/modeCompute.json b/pages/modeCompute/modeCompute.json
new file mode 100644
index 0000000..89e5ec2
--- /dev/null
+++ b/pages/modeCompute/modeCompute.json
@@ -0,0 +1,9 @@
+{
+  "navigationBarTitleText": "妯″瀷璁$畻",
+  "enablePullDownRefresh": false,
+  "usingComponents": {
+    "t-popup": "tdesign-miniprogram/popup/popup",
+    "t-date-time-picker": "tdesign-miniprogram/date-time-picker/date-time-picker",
+    "ec-canvas": "../../ec-canvas/ec-canvas"
+  }
+}
\ No newline at end of file
diff --git a/pages/modeCompute/modeCompute.wxml b/pages/modeCompute/modeCompute.wxml
new file mode 100644
index 0000000..8d2b379
--- /dev/null
+++ b/pages/modeCompute/modeCompute.wxml
@@ -0,0 +1,128 @@
+<!--pages/modeCompute/modeCompute.wxml-->
+<view class="container">
+  <!-- 鍥哄畾澶撮儴鍖哄煙 -->
+  <view class="fixed-header">
+    <!-- 椤堕儴涓嬫媺妗� -->
+    <view class="header-section">
+      <view class="dropdown-wrapper">
+        <text class="dropdown-label">鍐滀綔鐗╅�夋嫨</text>
+        <view class="dropdown-container" bind:tap="showCropPicker">
+          <text class="dropdown-text">{{selectedCrop.cropName || '璇烽�夋嫨鍐滀綔鐗�'}}</text>
+          <image class="dropdown-icon" src="/images/arrow-down.svg" />
+        </view>
+      </view>
+    </view>
+
+    <!-- 鏃ユ湡绛涢�� -->
+    <view class="date-filter-section">
+      <view class="date-filter">
+        <view class="date-item">
+          <text class="date-label">璧峰鏃ユ湡</text>
+          <view class="date-picker" bind:tap="showStartDatePicker">
+            <text class="date-text">{{startDate || '閫夋嫨鏃ユ湡'}}</text>
+            <image class="date-icon" src="/images/calendar.svg" />
+          </view>
+        </view>
+        <view class="date-item">
+          <text class="date-label">缁撴潫鏃ユ湡</text>
+          <view class="date-picker" bind:tap="showEndDatePicker">
+            <text class="date-text">{{endDate || '閫夋嫨鏃ユ湡'}}</text>
+            <image class="date-icon" src="/images/calendar.svg" />
+          </view>
+        </view>
+      </view>
+    </view>
+       <!-- 鍥捐〃/鍒楄〃鍒囨崲鎸夐挳 -->
+       <view class="toggle-section">
+      <view class="toggle-buttons">
+        <view class="toggle-btn {{displayType === 'chart' ? 'active' : ''}}" bind:tap="switchToChart">
+          <image class="toggle-icon" src="/images/chart.svg" />
+          <text>鍥捐〃</text>
+        </view>
+        <view class="toggle-btn {{displayType === 'list' ? 'active' : ''}}" bind:tap="switchToList">
+          <image class="toggle-icon" src="/images/list.svg" />
+          <text>鍒楄〃</text>
+        </view>
+      </view>
+    </view>
+  </view>
+ 
+  <!-- 鍙粴鍔ㄥ唴瀹瑰睍绀哄尯鍩� -->
+  <scroll-view class="content-scroll" scroll-y="true">
+
+    <view class="content-section">
+      <!-- 鍔犺浇鐘舵�� -->
+      <view wx:if="{{isLoading}}" class="loading-container">
+        <view class="loading-spinner"></view>
+        <text class="loading-text">鏁版嵁鍔犺浇涓�...</text>
+      </view>
+      
+      <!-- 鍥捐〃灞曠ず -->
+      <view wx:elif="{{displayType === 'chart'}}" class="chart-container">
+        <ec-canvas 
+          id="mychart-dom-line" 
+          canvas-id="mychart-line" 
+          ec="{{ ec }}"
+          class="chart-canvas">
+        </ec-canvas>
+      </view>
+
+      <!-- 鍒楄〃灞曠ず -->
+      <view wx:if="{{displayType === 'list'}}" class="list-container">
+        <!-- 琛ㄥご -->
+        <view class="table-header">
+          <text class="table-cell header-cell">搴忓彿</text>
+          <text class="table-cell header-cell">浣滅墿鍚嶇О</text>
+          <text class="table-cell header-cell">鏃ユ湡</text>
+          <text class="table-cell header-cell">钂歌吘閲�</text>
+          <text class="table-cell header-cell">鏈�楂樻俯搴�</text>
+          <text class="table-cell header-cell">鏈�浣庢俯搴�</text>
+          <text class="table-cell header-cell">浣滅墿绯绘暟</text>
+        </view>
+        
+        <!-- 鏁版嵁鍒楄〃 -->
+        <scroll-view class="table-scroll" scroll-y="true">
+          <view wx:if="{{tableData.length > 0}}" wx:for="{{tableData}}" wx:key="index" class="table-row">
+            <text class="table-cell">{{index + 1}}</text>
+            <text class="table-cell">{{item.cropName}}</text>
+            <text class="table-cell">{{item.date}}</text>
+            <text class="table-cell">{{item.transpiration}}</text>
+            <text class="table-cell">{{item.maxTemp}}掳C</text>
+            <text class="table-cell">{{item.minTemp}}掳C</text>
+            <text class="table-cell">{{item.cropCoefficient}}</text>
+          </view>
+          
+          <!-- 鏃犳暟鎹姸鎬� -->
+          <view wx:if="{{tableData.length === 0}}" class="no-data">
+            <image class="no-data-img" src="/images/no_more.svg" />
+            <text class="no-data-text">鏆傛棤鏁版嵁</text>
+          </view>
+        </scroll-view>
+      </view>
+    </view>
+  </scroll-view>
+</view>
+
+<!-- 鍐滀綔鐗╅�夋嫨寮圭獥 -->
+<t-popup visible="{{showCropPopup}}" placement="bottom" bind:visible-change="onCropPopupChange">
+  <view class="popup-content">
+    <view class="popup-header">
+      <text class="popup-title">閫夋嫨鍐滀綔鐗�</text>
+    </view>
+    <view class="popup-body">
+      <view wx:for="{{cropList}}" wx:key="cropId" class="crop-item {{selectedCrop.cropId === item.cropId ? 'selected' : ''}}" bind:tap="selectCrop" data-crop="{{item}}">
+        <text class="crop-name">{{item.cropName}}</text>
+      </view>
+    </view>
+  </view>
+</t-popup>
+
+<!-- 鏃ユ湡閫夋嫨鍣� -->
+<t-date-time-picker
+  visible="{{showDatePicker}}"
+  mode="date"
+  value="{{pickerDate}}"
+  bind:change="onDateChange"
+  bind:cancel="onDateCancel"
+  bind:confirm="onDateConfirm"
+/>
\ No newline at end of file
diff --git a/pages/modeCompute/modeCompute.wxss b/pages/modeCompute/modeCompute.wxss
new file mode 100644
index 0000000..404b012
--- /dev/null
+++ b/pages/modeCompute/modeCompute.wxss
@@ -0,0 +1,556 @@
+/* pages/modeCompute/modeCompute.wxss */
+
+.container {
+  background: linear-gradient(180deg, #f8fafe 0%, #f5f5f5 100%);
+  height: 100vh;
+  width: 100%;
+  box-sizing: border-box;
+  display: flex;
+  flex-direction: column;
+  overflow: hidden;
+}
+
+/* 鍥哄畾澶撮儴鍖哄煙 */
+.fixed-header {
+  flex-shrink: 0;
+  z-index: 10;
+  background: #fff;
+  height: 25vh;
+  width: 100%;
+  display: flex;
+  flex-direction: column;
+  overflow: hidden;
+  position: relative;
+}
+
+/* 澶撮儴鍖哄煙 */
+.header-section {
+  background: linear-gradient(135deg, #fff 0%, #fafbfc 100%);
+  padding: 15rpx 30rpx;
+  margin: 0;
+  border-radius: 0;
+  box-shadow: 0 2rpx 10rpx rgba(0, 0, 0, 0.06);
+  border: none;
+  width: 100%;
+  border-bottom: 1rpx solid #e6f4ff;
+  height: calc(25vh / 3);
+  display: flex;
+  flex-direction: column;
+  justify-content: center;
+  box-sizing: border-box;
+  overflow: hidden;
+}
+
+.dropdown-wrapper {
+  display: flex;
+  flex-direction: column;
+  width: 100%;
+}
+
+.dropdown-label {
+  font-size: 24rpx;
+  color: #666;
+  margin-bottom: 8rpx;
+}
+
+.dropdown-container {
+  display: flex;
+  align-items: center;
+  justify-content: space-between;
+  padding: 12rpx 20rpx;
+  background: linear-gradient(135deg, #f8fafe 0%, #f0f8ff 100%);
+  border-radius: 12rpx;
+  border: 1rpx solid #e6f4ff;
+  transition: all 0.3s ease;
+  position: relative;
+  overflow: hidden;
+}
+
+.dropdown-container::before {
+  content: '';
+  position: absolute;
+  top: 0;
+  left: 0;
+  right: 0;
+  bottom: 0;
+  background: linear-gradient(135deg, rgba(24, 144, 255, 0.05) 0%, rgba(24, 144, 255, 0.02) 100%);
+  opacity: 0;
+  transition: opacity 0.3s ease;
+}
+
+.dropdown-container:active::before {
+  opacity: 1;
+}
+
+.dropdown-text {
+  font-size: 28rpx;
+  color: #333;
+  flex: 1;
+}
+
+.dropdown-icon {
+  width: 32rpx;
+  height: 32rpx;
+  margin-left: 20rpx;
+}
+
+/* 鍒囨崲鎸夐挳鍖哄煙 */
+.toggle-section {
+  background: linear-gradient(135deg, #fff 0%, #fafbfc 100%);
+  padding: 15rpx 30rpx;
+  margin: 0;
+  border-radius: 0;
+  box-shadow: 0 2rpx 10rpx rgba(0, 0, 0, 0.06);
+  border: none;
+  width: 100%;
+  border-bottom: 1rpx solid #e6f4ff;
+  height: calc(25vh / 3);
+  display: flex;
+  flex-direction: column;
+  justify-content: center;
+  box-sizing: border-box;
+  overflow: hidden;
+}
+
+.toggle-buttons {
+  display: flex;
+  background: linear-gradient(135deg, #f8fafe 0%, #f0f8ff 100%);
+  border-radius: 16rpx;
+  padding: 6rpx;
+  border: 2rpx solid #e6f4ff;
+  position: relative;
+  width: 100%;
+}
+
+.toggle-btn {
+  flex: 1;
+  display: flex;
+  align-items: center;
+  justify-content: center;
+  padding: 12rpx 16rpx;
+  border-radius: 10rpx;
+  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
+  position: relative;
+  z-index: 1;
+}
+
+.toggle-btn.active {
+  background: linear-gradient(135deg, #1890FF 0%, #40a9ff 100%);
+  box-shadow: 0 8rpx 24rpx rgba(24, 144, 255, 0.4);
+  transform: translateY(-2rpx);
+}
+
+.toggle-btn.active .toggle-icon {
+  filter: brightness(0) invert(1);
+}
+
+.toggle-btn.active text {
+  color: #fff;
+}
+
+.toggle-icon {
+  width: 32rpx;
+  height: 32rpx;
+  margin-right: 12rpx;
+}
+
+.toggle-btn text {
+  font-size: 24rpx;
+  color: #666;
+}
+
+/* 鏃ユ湡绛涢�夊尯鍩� */
+.date-filter-section {
+  background: linear-gradient(135deg, #fff 0%, #fafbfc 100%);
+  padding: 15rpx 30rpx;
+  width: 100%;
+  margin: 0;
+  border-radius: 0;
+  box-shadow: 0 2rpx 10rpx rgba(0, 0, 0, 0.06);
+  border: none;
+  border-bottom: none;
+  height: calc(25vh / 3);
+  display: flex;
+  flex-direction: column;
+  justify-content: center;
+  box-sizing: border-box;
+  overflow: hidden;
+}
+
+.date-filter {
+  display: flex;
+  gap: 20rpx;
+  width: 100%;
+}
+
+.date-item {
+  flex: 1;
+  display: flex;
+  flex-direction: column;
+}
+
+.date-label {
+  font-size: 22rpx;
+  color: #666;
+  margin-bottom: 8rpx;
+}
+
+.date-picker {
+  display: flex;
+  align-items: center;
+  justify-content: space-between;
+  padding: 10rpx 20rpx;
+  background: linear-gradient(135deg, #f8fafe 0%, #f0f8ff 100%);
+  border-radius: 10rpx;
+  border: 1rpx solid #e6f4ff;
+}
+
+.date-text {
+  font-size: 24rpx;
+  color: #333;
+  flex: 1;
+}
+
+.date-icon {
+  width: 32rpx;
+  height: 32rpx;
+  margin-left: 20rpx;
+}
+
+/* 婊氬姩鍐呭鍖哄煙 */
+.content-scroll {
+  flex: 1;
+  height: 0;
+  background: #f5f5f5;
+  height: 75vh;
+}
+
+/* 鍐呭灞曠ず鍖哄煙 */
+.content-section {
+  background: linear-gradient(135deg, #fff 0%, #fafbfc 100%);
+  margin: 0;
+  border-radius: 0;
+  box-shadow: none;
+  overflow: hidden;
+  border: none;
+  position: relative;
+  min-height: 100%;
+}
+
+.content-section::before {
+  content: '';
+  position: absolute;
+  top: 0;
+  left: 0;
+  right: 0;
+  height: 4rpx;
+  background: linear-gradient(90deg, #1890FF 0%, #40a9ff 50%, #1890FF 100%);
+  border-radius: 0;
+}
+
+/* 鍔犺浇鐘舵�� */
+.loading-container {
+  display: flex;
+  flex-direction: column;
+  align-items: center;
+  justify-content: center;
+  padding: 120rpx 40rpx;
+}
+
+.loading-spinner {
+  width: 60rpx;
+  height: 60rpx;
+  border: 6rpx solid #f0f8ff;
+  border-top: 6rpx solid #1890FF;
+  border-radius: 50%;
+  animation: spin 1s linear infinite;
+  margin-bottom: 30rpx;
+}
+
+.loading-text {
+  font-size: 28rpx;
+  color: #666;
+  animation: pulse 1.5s ease-in-out infinite;
+}
+
+@keyframes spin {
+  0% { transform: rotate(0deg); }
+  100% { transform: rotate(360deg); }
+}
+
+@keyframes pulse {
+  0%, 100% { opacity: 0.6; }
+  50% { opacity: 1; }
+}
+
+/* 鍥捐〃鍖哄煙 */
+.chart-container {
+  padding: 20rpx;
+  height: 100%;
+  display: block;
+  min-height: 70vh;
+  width: 100%;
+}
+
+
+.chart-canvas {
+  width: 100%;
+  height: 60vh;
+  display: block;
+  flex: 1;
+}
+
+/* 鍒楄〃鍖哄煙 */
+.list-container {
+  padding: 0;
+  height: 100%;
+  display: flex;
+  flex-direction: column;
+  min-height: 70vh;
+}
+
+
+
+/* 琛ㄦ牸鏍峰紡 */
+.table-header,
+.table-row {
+  display: flex;
+  align-items: center;
+  border-bottom: 1rpx solid #f0f0f0;
+}
+
+.table-header {
+  background: linear-gradient(135deg, #f8fafe 0%, #f0f8ff 100%);
+  padding: 24rpx 25rpx;
+  border-radius: 0;
+  border-bottom: 2rpx solid #e6f4ff;
+  position: sticky;
+  top: 0;
+  z-index: 10;
+  flex-shrink: 0;
+}
+
+.table-row {
+  padding: 28rpx 25rpx;
+  transition: background-color 0.2s ease;
+}
+
+.table-row:nth-child(even) {
+  background-color: rgba(248, 250, 254, 0.3);
+}
+
+.table-row:hover {
+  background-color: rgba(24, 144, 255, 0.05);
+}
+
+.table-row:last-child {
+  border-bottom: none;
+}
+
+.table-cell {
+  flex: 1;
+  text-align: center;
+  font-size: 26rpx;
+  color: #333;
+  padding: 0 12rpx;
+  word-break: break-all;
+  line-height: 1.5;
+  font-weight: 400;
+}
+
+.header-cell {
+  font-weight: 600;
+  color: #1890FF;
+  font-size: 28rpx;
+  letter-spacing: 0.5rpx;
+}
+
+.table-scroll {
+  flex: 1;
+  min-height: 60vh;
+  overflow-y: auto;
+}
+
+/* 鏃犳暟鎹姸鎬� */
+.no-data {
+  display: flex;
+  flex-direction: column;
+  align-items: center;
+  justify-content: center;
+  padding: 80rpx 40rpx;
+}
+
+.no-data-img {
+  width: 200rpx;
+  height: 200rpx;
+  margin-bottom: 20rpx;
+  opacity: 0.7;
+}
+
+.no-data-text {
+  font-size: 32rpx;
+  color: #999;
+}
+
+/* 寮圭獥鏍峰紡 */
+.popup-content {
+  background-color: #fff;
+  border-radius: 16rpx 16rpx 0 0;
+  max-height: 70vh;
+}
+
+.popup-header {
+  padding: 30rpx;
+  text-align: center;
+  border-bottom: 1rpx solid #f0f0f0;
+}
+
+.popup-title {
+  font-size: 32rpx;
+  font-weight: 500;
+  color: #333;
+}
+
+.popup-body {
+  padding: 20rpx;
+  max-height: 50vh;
+  overflow-y: auto;
+}
+
+.crop-item {
+  padding: 30rpx;
+  border-radius: 12rpx;
+  margin-bottom: 20rpx;
+  border: 1rpx solid #e9ecef;
+  transition: all 0.3s;
+}
+
+.crop-item:last-child {
+  margin-bottom: 0;
+}
+
+.crop-item.selected {
+  background-color: #e6f4ff;
+  border-color: #1890FF;
+}
+
+.crop-name {
+  font-size: 32rpx;
+  font-weight: 600;
+  color: #333;
+  margin-bottom: 8rpx;
+  display: block;
+}
+
+.crop-info {
+  display: flex;
+  align-items: center;
+  margin-top: 8rpx;
+}
+
+.crop-et0 {
+  font-size: 26rpx;
+  color: #1890FF;
+  background-color: rgba(24, 144, 255, 0.1);
+  padding: 4rpx 12rpx;
+  border-radius: 12rpx;
+  display: inline-block;
+}
+
+/* 鍝嶅簲寮忚璁� */
+@media (max-width: 750rpx) {
+  .container {
+    padding-bottom: 0;
+  }
+  
+  .header-section,
+  .toggle-section,
+  .date-filter-section {
+    margin: 0;
+    padding: 30rpx 20rpx;
+    border-radius: 0;
+  }
+  
+  .content-section {
+    margin: 0;
+    border-radius: 0;
+  }
+  
+  .date-filter {
+    flex-direction: column;
+    gap: 30rpx;
+  }
+  
+  .table-cell {
+    font-size: 22rpx;
+    padding: 0 6rpx;
+  }
+  
+  .header-cell {
+    font-size: 24rpx;
+  }
+  
+
+  
+
+  
+  .toggle-btn {
+    padding: 20rpx 16rpx;
+  }
+  
+  .toggle-icon {
+    width: 28rpx;
+    height: 28rpx;
+    margin-right: 8rpx;
+  }
+  
+  .toggle-btn text {
+    font-size: 26rpx;
+  }
+}
+
+/* 鍔ㄧ敾鏁堟灉 */
+.toggle-btn:active {
+  transform: scale(0.98);
+}
+
+.dropdown-container:active,
+.date-picker:active {
+  background-color: #e9ecef;
+}
+
+.crop-item:active {
+  transform: scale(0.98);
+}
+
+/* 鎵嬫満绔紭鍖� */
+.dropdown-container:active {
+  background: linear-gradient(135deg, #e6f4ff 0%, #d6efff 100%);
+  transform: scale(0.98);
+}
+
+.date-picker:active {
+  background: linear-gradient(135deg, #e6f4ff 0%, #d6efff 100%);
+  transform: scale(0.98);
+}
+
+/* 澧炲己鐐瑰嚮鍙嶉 */
+.toggle-btn:active {
+  transform: scale(0.95) translateY(-1rpx);
+}
+
+/* 浼樺寲婊氬姩鎬ц兘 */
+.table-scroll {
+  -webkit-overflow-scrolling: touch;
+}
+
+.popup-body {
+  -webkit-overflow-scrolling: touch;
+}
+
+/* 纭繚鍥捐〃鍦ㄦ殫鑹蹭富棰樹笅鍙 */
+@media (prefers-color-scheme: dark) {
+  .chart-canvas {
+    background-color: #1a1a1a;
+  }
+}
\ No newline at end of file
diff --git a/project.private.config.json b/project.private.config.json
index 149d03e..1c05edc 100644
--- a/project.private.config.json
+++ b/project.private.config.json
@@ -17,7 +17,7 @@
     "showES6CompileOption": false,
     "checkInvalidKey": true,
     "ignoreDevUnusedFiles": true,
-    "bigPackageSizeSupport": false
+    "bigPackageSizeSupport": true
   },
   "libVersion": "3.9.1",
   "condition": {}

--
Gitblit v1.8.0