iobroker.eos-admin 9.0.36 → 9.0.39
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/NEXOWATT_EOS_BUILD_INFO.json +12 -10
- package/README.md +23 -3
- package/adminWww/.vite/manifest.json +39 -39
- package/adminWww/NEXOWATT_EOS_FRONTEND_MANIFEST.json +107 -107
- package/adminWww/assets/{AdapterUpdateDialog-D2nDWE_N.js → AdapterUpdateDialog-DDmYbnK4.js} +1 -1
- package/adminWww/assets/{Adapters-D0sVqNBU.js → Adapters-73Uo4VUy.js} +1 -1
- package/adminWww/assets/{ConfigManager-Zm7UoaaN.js → ConfigManager-DoFx_j4o.js} +1 -1
- package/adminWww/assets/{Enums-BGL7pR-O.js → Enums-BRQSAW9I.js} +1 -1
- package/adminWww/assets/{Fields-A8J3u1yq.js → Fields-pcmISvLk.js} +1 -1
- package/adminWww/assets/{Files-CQPjCvW6.js → Files-E8-7c9Ab.js} +1 -1
- package/adminWww/assets/{Hosts-CxzkkNBj.js → Hosts-D4a3shrq.js} +1 -1
- package/adminWww/assets/{Instances-eEbEukDh.js → Instances-ByxEHRoo.js} +1 -1
- package/adminWww/assets/{Intro-I_Tknp0E.js → Intro-DFriWa6g.js} +1 -1
- package/adminWww/assets/{Logs-C3GPz61Q.js → Logs-BXR0h5Sz.js} +1 -1
- package/adminWww/assets/{Objects-DDnisxNB.js → Objects-h6jg_6uT.js} +1 -1
- package/adminWww/assets/{Overview-BpZFdEmp.js → Overview-B39PiMGJ.js} +1 -1
- package/adminWww/assets/{State-DY6Nw0SB.js → State-CqF2ARx_.js} +1 -1
- package/adminWww/assets/{UsedResources-CtUpdP2b.js → UsedResources-CnbnoF3d.js} +1 -1
- package/adminWww/assets/{Users-DcqlSfc5.js → Users-BQik0rIi.js} +1 -1
- package/adminWww/assets/{bootstrap-Didkuj-F.js → bootstrap-Dllnekqb.js} +3 -3
- package/adminWww/assets/{hostInit-Chrs-wsg.js → hostInit-CQbS-SCS.js} +1 -1
- package/adminWww/assets/{icons-material-SqwOQW6y.js → icons-material-rYFYu2DM.js} +1 -1
- package/adminWww/assets/{index-CpDo61Mz.js → index-BzbVZbb2.js} +2 -2
- package/adminWww/assets/{installSVGRenderer-DZMZ3pJw.js → installSVGRenderer-DbH6B8B8.js} +1 -1
- package/adminWww/assets/{mf-entry-bootstrap-0-b0c4981a.js → mf-entry-bootstrap-0-4dee1225.js} +2 -2
- package/adminWww/index.html +23 -23
- package/adminWww/mf-manifest.json +1 -1
- package/adminWww/mf-stats.json +1 -1
- package/adminWww/remoteEntry-eos-9.0.39.js +12 -0
- package/adminWww/remoteEntry.js +1 -1
- package/build/lib/eosLegacyMigration.js +351 -60
- package/build/lib/eosLegacyMigration.js.map +1 -1
- package/build/lib/eosLegacySource.js +172 -0
- package/build/lib/eosLegacySource.js.map +1 -0
- package/build/lib/eosModuleHost.js +38 -1
- package/build/lib/eosModuleHost.js.map +1 -1
- package/build/lib/eosModuleHttp.js +55 -8
- package/build/lib/eosModuleHttp.js.map +1 -1
- package/build/lib/eosRuntimeControl.js +3 -1
- package/build/lib/eosRuntimeControl.js.map +1 -1
- package/build/main.js +1 -1
- package/build/main.js.map +1 -1
- package/docs/README.md +3 -0
- package/docs/reports/EMS_ZIELLADEN_2026-11-28.md +45 -0
- package/docs/reports/unified-9.0.37/PRUEFBERICHT.md +59 -0
- package/docs/reports/unified-9.0.37/PRUEFERGEBNISSE.json +112 -0
- package/docs/reports/unified-9.0.37/raw/INDEX.json +232 -0
- package/docs/reports/unified-9.0.37/raw/backend.log +5 -0
- package/docs/reports/unified-9.0.37/raw/core-final-node22.log +1439 -0
- package/docs/reports/unified-9.0.37/raw/core-final-node24.log +1381 -0
- package/docs/reports/unified-9.0.37/raw/dashboard-935-screenshot.json +15 -0
- package/docs/reports/unified-9.0.37/raw/dashboard-de-en-nl.json +1059 -0
- package/docs/reports/unified-9.0.37/raw/ems-ui-nvp-integration.json +245 -0
- package/docs/reports/unified-9.0.37/raw/farm-and-dashboard-935.json +11 -0
- package/docs/reports/unified-9.0.37/raw/farm-tracking-source-tests.log +80 -0
- package/docs/reports/unified-9.0.37/raw/fixtures-verification.log +39 -0
- package/docs/reports/unified-9.0.37/raw/frontend.log +160 -0
- package/docs/reports/unified-9.0.37/raw/installer.log +26 -0
- package/docs/reports/unified-9.0.37/raw/lint.log +45 -0
- package/docs/reports/unified-9.0.37/raw/measure-storage-display.cjs +47 -0
- package/docs/reports/unified-9.0.37/raw/modules.log +5 -0
- package/docs/reports/unified-9.0.37/raw/node22-isolated-start-deadlines.log +28 -0
- package/docs/reports/unified-9.0.37/raw/node22-migration.log +1329 -0
- package/docs/reports/unified-9.0.37/raw/node22-mira.log +222 -0
- package/docs/reports/unified-9.0.37/raw/node22-parallel-initial.log +13278 -0
- package/docs/reports/unified-9.0.37/raw/node22-startzeiten.json +21 -0
- package/docs/reports/unified-9.0.37/raw/node22-system-status.log +639 -0
- package/docs/reports/unified-9.0.37/raw/node22-tests-final.log +18494 -0
- package/docs/reports/unified-9.0.37/raw/node22-version.log +1 -0
- package/docs/reports/unified-9.0.37/raw/node24-migration.log +1301 -0
- package/docs/reports/unified-9.0.37/raw/node24-mira.log +41 -0
- package/docs/reports/unified-9.0.37/raw/node24-system-status.log +111 -0
- package/docs/reports/unified-9.0.37/raw/node24-tests-final.log +3080 -0
- package/docs/reports/unified-9.0.37/raw/node24-version.log +1 -0
- package/docs/reports/unified-9.0.37/raw/npm-runtime-audit.json +77 -0
- package/docs/reports/unified-9.0.37/raw/platform-acl-node22.log +98 -0
- package/docs/reports/unified-9.0.37/raw/platform-acl-node24.log +22 -0
- package/docs/reports/unified-9.0.37/raw/platform-nginx-node22.json +21 -0
- package/docs/reports/unified-9.0.37/raw/platform-nginx-node24.json +21 -0
- package/docs/reports/unified-9.0.37/raw/qa-source-check.log +2 -0
- package/docs/reports/unified-9.0.37/raw/release-metadata.log +13 -0
- package/docs/reports/unified-9.0.37/raw/sbom.log +8 -0
- package/docs/reports/unified-9.0.37/raw/speicher-warnschwelle-integration.json +172 -0
- package/docs/reports/unified-9.0.37/raw/sse-backpressure-9.0.35.log +1 -0
- package/docs/reports/unified-9.0.37/raw/sse-backpressure-9.0.37.log +1 -0
- package/docs/reports/unified-9.0.37/raw/storage-display-memory-node22.json +19 -0
- package/docs/reports/unified-9.0.37/raw/storage-display-memory-node24.json +19 -0
- package/docs/reports/unified-9.0.37/raw/typecheck.log +5 -0
- package/docs/reports/unified-9.0.37/raw/ui-runtime.log +7 -0
- package/docs/reports/unified-9.0.38/PRUEFBERICHT.md +51 -0
- package/docs/reports/unified-9.0.38/PRUEFERGEBNISSE.json +112 -0
- package/docs/reports/unified-9.0.38/raw/INDEX.json +272 -0
- package/docs/reports/unified-9.0.38/raw/backend.log +5 -0
- package/docs/reports/unified-9.0.38/raw/core-final-node22.log +1439 -0
- package/docs/reports/unified-9.0.38/raw/core-final-node24.log +1381 -0
- package/docs/reports/unified-9.0.38/raw/dashboard-de-en-nl.json +1044 -0
- package/docs/reports/unified-9.0.38/raw/field-upgrade-936-node22.log +21 -0
- package/docs/reports/unified-9.0.38/raw/field-upgrade-936-node24.log +10 -0
- package/docs/reports/unified-9.0.38/raw/fixtures-verification.log +39 -0
- package/docs/reports/unified-9.0.38/raw/frontend.log +152 -0
- package/docs/reports/unified-9.0.38/raw/installer.log +26 -0
- package/docs/reports/unified-9.0.38/raw/legacy-historian-provenance.json +44 -0
- package/docs/reports/unified-9.0.38/raw/legacy-history-built-influx.log +10 -0
- package/docs/reports/unified-9.0.38/raw/legacy-history-misbinding-937.log +1 -0
- package/docs/reports/unified-9.0.38/raw/legacy-history-providers-node22.log +326 -0
- package/docs/reports/unified-9.0.38/raw/legacy-history-providers-node24.log +58 -0
- package/docs/reports/unified-9.0.38/raw/legacy-history-real-influx.log +10 -0
- package/docs/reports/unified-9.0.38/raw/legacy-history-source-comparison.json +12 -0
- package/docs/reports/unified-9.0.38/raw/legacy-template-interfaces.json +21 -0
- package/docs/reports/unified-9.0.38/raw/lint.log +45 -0
- package/docs/reports/unified-9.0.38/raw/migration-admin-browser-node22.log +86 -0
- package/docs/reports/unified-9.0.38/raw/migration-admin-browser-node24.log +84 -0
- package/docs/reports/unified-9.0.38/raw/migration-live-children-node22.log +20 -0
- package/docs/reports/unified-9.0.38/raw/migration-live-children-node24.log +9 -0
- package/docs/reports/unified-9.0.38/raw/migration-process-admin-node22.log +831 -0
- package/docs/reports/unified-9.0.38/raw/migration-process-admin-node24.log +144 -0
- package/docs/reports/unified-9.0.38/raw/modules.log +5 -0
- package/docs/reports/unified-9.0.38/raw/node22-initial-destination-channel.log +13298 -0
- package/docs/reports/unified-9.0.38/raw/node22-migration.log +1443 -0
- package/docs/reports/unified-9.0.38/raw/node22-mira.log +222 -0
- package/docs/reports/unified-9.0.38/raw/node22-system-status.log +639 -0
- package/docs/reports/unified-9.0.38/raw/node22-tests-final.log +18620 -0
- package/docs/reports/unified-9.0.38/raw/node22-version.log +1 -0
- package/docs/reports/unified-9.0.38/raw/node24-migration.log +1411 -0
- package/docs/reports/unified-9.0.38/raw/node24-mira.log +41 -0
- package/docs/reports/unified-9.0.38/raw/node24-system-status.log +111 -0
- package/docs/reports/unified-9.0.38/raw/node24-tests-final.log +3102 -0
- package/docs/reports/unified-9.0.38/raw/node24-version.log +1 -0
- package/docs/reports/unified-9.0.38/raw/npm-runtime-audit.json +77 -0
- package/docs/reports/unified-9.0.38/raw/platform-acl-node22.log +98 -0
- package/docs/reports/unified-9.0.38/raw/platform-acl-node24.log +22 -0
- package/docs/reports/unified-9.0.38/raw/platform-nginx-node22.json +21 -0
- package/docs/reports/unified-9.0.38/raw/platform-nginx-node24.json +21 -0
- package/docs/reports/unified-9.0.38/raw/qa-source-check.log +2 -0
- package/docs/reports/unified-9.0.38/raw/release-metadata.log +13 -0
- package/docs/reports/unified-9.0.38/raw/sbom.log +8 -0
- package/docs/reports/unified-9.0.38/raw/source-shape-node22.log +438 -0
- package/docs/reports/unified-9.0.38/raw/source-shape-node24.log +78 -0
- package/docs/reports/unified-9.0.38/raw/target-owner-bootstrap-node22.log +509 -0
- package/docs/reports/unified-9.0.38/raw/target-owner-bootstrap-node24.log +92 -0
- package/docs/reports/unified-9.0.38/raw/typecheck.log +5 -0
- package/docs/reports/unified-9.0.38/raw/ui-runtime.log +7 -0
- package/docs/reports/unified-9.0.39/PRUEFBERICHT.md +48 -0
- package/docs/reports/unified-9.0.39/raw/INDEX.json +51 -0
- package/docs/reports/unified-9.0.39/raw/node22-tests-final.log +18189 -0
- package/docs/reports/unified-9.0.39/raw/node22-version.log +1 -0
- package/docs/reports/unified-9.0.39/raw/node24-tests-final.log +3129 -0
- package/docs/reports/unified-9.0.39/raw/node24-version.log +1 -0
- package/docs/reports/unified-9.0.39/raw/npm-runtime-audit.json +77 -0
- package/docs/reports/unified-9.0.39/raw/overnight-simulation.json +117 -0
- package/docs/start/START_HIER_9.0.37.md +38 -0
- package/docs/start/START_HIER_9.0.38.md +21 -0
- package/docs/start/START_HIER_9.0.39.md +14 -0
- package/docs/unified/BESTANDSUEBERNAHME_9_0_7.md +2 -0
- package/docs/unified/DEVELOPMENT_FINDINGS.md +3 -1
- package/docs/unified/SECURITY_CRA.md +6 -0
- package/io-package.json +16 -16
- package/modules/ocpp/README.md +2 -0
- package/modules/ocpp/ocpp/common.js +64 -40
- package/modules/ocpp/ocpp/eos-contract.js +8 -3
- package/modules/ocpp/runtime.js +10 -5
- package/modules/ocpp/test/eos-contract.test.js +67 -0
- package/modules/ocpp/test/hosted.test.cjs +29 -1
- package/package.json +12 -4
- package/public/eos-migration/index.html +11 -4
- package/public/eos-migration/index.js +156 -18
- package/release-manifests/unified/build-environment.cdx.json +6 -6
- package/release-manifests/unified/files.json +290 -164
- package/release-manifests/unified/frontend.cdx.json +6 -6
- package/release-manifests/unified/installer.cdx.json +6 -6
- package/release-manifests/unified/obsolete-admin-assets.json +249 -0
- package/release-manifests/unified/runtime.cdx.json +27 -27
- package/release-manifests/unified/validation.json +17 -17
- package/tools/eos-release-manifest.cjs +3 -1
- package/ui/docs/STATES_AND_DATAPOINTS_DE.md +132 -0
- package/ui/ems/engine.js +5 -3
- package/ui/ems/evcs-control-mapping.js +13 -1
- package/ui/ems/modules/charging-management.js +40 -76
- package/ui/ems/modules/para14a.js +8 -3
- package/ui/ems/modules/storage-control.js +10 -5
- package/ui/ems/services/admin-overview-publisher.js +13 -7
- package/ui/ems/services/charging-management-audit.js +32 -1
- package/ui/ems/services/forecast-aware-target-planner.js +12 -5
- package/ui/ems/services/forecast-target-runtime-bridge.js +12 -5
- package/ui/io-package.json +13 -1
- package/ui/lib/charging-point-identity.js +91 -16
- package/ui/lib/hosted-adapter.js +35 -1
- package/ui/lib/notification-mail.js +95 -8
- package/ui/main.js +407 -61
- package/ui/package.json +1 -1
- package/ui/www/app.js +104 -89
- package/ui/www/charging-diagnostics-appcenter.js +12 -7
- package/ui/www/dashboard-lp-status.js +19 -12
- package/ui/www/evcs.js +71 -98
- package/ui/www/i18n/en.json +15 -0
- package/ui/www/i18n/nl.json +15 -0
- package/ui/www/live-display.js +145 -27
- package/ui/www/manifest.webmanifest +2 -2
- package/ui/www/storagefarm-dispatch.js +59 -8
- package/ui/www/storagefarm-summary.css +3 -1
- package/ui/www/storagefarm.html +2 -0
- package/adminWww/remoteEntry-eos-9.0.36.js +0 -12
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./bootstrap-
|
|
2
|
-
import{t as e}from"./vite-preload-helper-BbbETgeG.js";(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),t.credentials=e.crossOrigin===`use-credentials`?`include`:e.crossOrigin===`anonymous`?`omit`:`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})(),e(()=>import(`./bootstrap-
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./bootstrap-Dllnekqb.js","./rolldown-runtime-sJBDdmOt.js","./vite-preload-helper-BbbETgeG.js","./loadShare-eager-dmdYQhAl.js","./AccessTime-CuR73YC3.js","./prod-ChPGnyiA.js","./en-US-BjjaEI6N.js","./setYear-DDSuW45e.js","./AdminUtils-Dc1eHsx5.js","./AceEditor-BgLZBrSD.js","./ctrlEnter-CruFIPb_.js","./bootstrap-BxGG6BRn.css"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{t as e}from"./vite-preload-helper-BbbETgeG.js";(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),t.credentials=e.crossOrigin===`use-credentials`?`include`:e.crossOrigin===`anonymous`?`omit`:`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})(),e(()=>import(`./bootstrap-Dllnekqb.js`).then(e=>e.t),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11]),import.meta.url);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as e,r as t,t as n}from"./rolldown-runtime-sJBDdmOt.js";import{hc as r,qs as i}from"./loadShare-eager-dmdYQhAl.js";import{U as a}from"./bootstrap-Didkuj-F.js";var o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)};function s(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Class extends value `+String(t)+` is not a constructor or null`);o(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var c=function(){return c=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},c.apply(this,arguments)};function l(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function u(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})}function d(e,t){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},r,i,a,o={next:s(0),throw:s(1),return:s(2)};return typeof Symbol==`function`&&(o[Symbol.iterator]=function(){return this}),o;function s(e){return function(t){return c([e,t])}}function c(o){if(r)throw TypeError(`Generator is already executing.`);for(;n;)try{if(r=1,i&&(a=o[0]&2?i.return:o[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,o[1])).done)return a;switch(i=0,a&&(o=[o[0]&2,a.value]),o[0]){case 0:case 1:a=o;break;case 4:return n.label++,{value:o[1],done:!1};case 5:n.label++,i=o[1],o=[0];continue;case 7:o=n.ops.pop(),n.trys.pop();continue;default:if(a=n.trys,!(a=a.length>0&&a[a.length-1])&&(o[0]===6||o[0]===2)){n=0;continue}if(o[0]===3&&(!a||o[1]>a[0]&&o[1]<a[3])){n.label=o[1];break}if(o[0]===6&&n.label<a[1]){n.label=a[1],a=o;break}if(a&&n.label<a[2]){n.label=a[2],n.ops.push(o);break}a[2]&&n.ops.pop(),n.trys.pop();continue}o=t.call(e,n)}catch(e){o=[6,e],i=0}finally{r=a=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}}var f=n((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=1;e.default=function(){return`${t++}`}})),p=n((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:60,n=null;return function(){var r=this,i=[...arguments];clearTimeout(n),n=setTimeout(function(){e.apply(r,i)},t)}}})),m=n((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.SizeSensorId=e.SensorTabIndex=e.SensorClassName=void 0,e.SizeSensorId=`size-sensor-id`,e.SensorClassName=`size-sensor-object`,e.SensorTabIndex=`-1`})),h=n((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.createSensor=void 0;var t=r(p()),n=m();function r(e){return e&&e.__esModule?e:{default:e}}e.createSensor=function(e,r){var i=void 0,a=[],o=function(){getComputedStyle(e).position===`static`&&(e.style.position=`relative`);var t=document.createElement(`object`);return t.onload=function(){t.contentDocument.defaultView.addEventListener(`resize`,s),s()},t.style.display=`block`,t.style.position=`absolute`,t.style.top=`0`,t.style.left=`0`,t.style.height=`100%`,t.style.width=`100%`,t.style.overflow=`hidden`,t.style.pointerEvents=`none`,t.style.zIndex=`-1`,t.style.opacity=`0`,t.setAttribute(`class`,n.SensorClassName),t.setAttribute(`tabindex`,n.SensorTabIndex),t.type=`text/html`,e.appendChild(t),t.data=`about:blank`,t},s=(0,t.default)(function(){a.forEach(function(t){t(e)})}),c=function(e){i||=o(),a.indexOf(e)===-1&&a.push(e)},l=function(){i&&i.parentNode&&(i.contentDocument&&i.contentDocument.defaultView.removeEventListener(`resize`,s),i.parentNode.removeChild(i),e.removeAttribute(n.SizeSensorId),i=void 0,a=[],r&&r())};return{element:e,bind:c,destroy:l,unbind:function(e){var t=a.indexOf(e);t!==-1&&a.splice(t,1),a.length===0&&i&&l()}}}})),g=n((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.createSensor=void 0;var t=m(),n=r(p());function r(e){return e&&e.__esModule?e:{default:e}}e.createSensor=function(e,r){var i=void 0,a=[],o=(0,n.default)(function(){a.forEach(function(t){t(e)})}),s=function(){var t=new ResizeObserver(o);return t.observe(e),o(),t},c=function(e){i||=s(),a.indexOf(e)===-1&&a.push(e)},l=function(){i.disconnect(),a=[],i=void 0,e.removeAttribute(t.SizeSensorId),r&&r()};return{element:e,bind:c,destroy:l,unbind:function(e){var t=a.indexOf(e);t!==-1&&a.splice(t,1),a.length===0&&i&&l()}}}})),_=n((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.createSensor=void 0;var t=h(),n=g();e.createSensor=typeof ResizeObserver<`u`?n.createSensor:t.createSensor})),v=n((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.removeSensor=e.getSensor=e.Sensors=void 0;var t=i(f()),n=_(),r=m();function i(e){return e&&e.__esModule?e:{default:e}}var a={};e.Sensors=a;function o(e){e&&a[e]&&delete a[e]}e.getSensor=function(e){var i=e.getAttribute(r.SizeSensorId);if(i&&a[i])return a[i];var s=(0,t.default)();e.setAttribute(r.SizeSensorId,s);var c=(0,n.createSensor)(e,function(){return o(s)});return a[s]=c,c},e.removeSensor=function(e){var t=e.element.getAttribute(r.SizeSensorId);e.destroy(),o(t)}})),y=n((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.ver=e.clear=e.bind=void 0;var t=v();e.bind=function(e,n){var r=(0,t.getSensor)(e);return r.bind(n),function(){r.unbind(n)}},e.clear=function(e){var n=(0,t.getSensor)(e);(0,t.removeSensor)(n)},e.ver=`1.0.2`}))();function b(e,t){var n={};return t.forEach(function(t){n[t]=e[t]}),n}function x(e){return typeof e==`function`}function S(e){return typeof e==`string`}var C=e(a()),w=function(e){s(t,e);function t(t){var n=e.call(this,t)||this;return n.echarts=t.echarts,n.ele=null,n.isInitialResize=!0,n.eventHandlerRefs={},n}return t.prototype.componentDidMount=function(){this.renderNewEcharts()},t.prototype.componentDidUpdate=function(e){var t=this.props.shouldSetOption;if(!x(t)||t(e,this.props)){if(!(0,C.default)(e.theme,this.props.theme)||!(0,C.default)(e.opts,this.props.opts))this.dispose(),this.renderNewEcharts();else{var n=this.getEchartsInstance();(0,C.default)(e.onEvents,this.props.onEvents)||(this.unbindEvents(n),this.bindEvents(n,this.props.onEvents));var r=[`option`,`notMerge`,`replaceMerge`,`lazyUpdate`,`showLoading`,`loadingOption`];(0,C.default)(b(this.props,r),b(e,r))||this.updateEChartsOption(),(0,C.default)(e.style,this.props.style)&&(0,C.default)(e.className,this.props.className)||this.resize()}}},t.prototype.componentWillUnmount=function(){this.dispose()},t.prototype.initEchartsInstance=function(){return u(this,void 0,void 0,function(){var e=this;return d(this,function(t){return[2,new Promise(function(t){e.echarts.init(e.ele,e.props.theme,e.props.opts),e.getEchartsInstance().on(`finished`,function(){var n=e.ele.clientWidth,r=e.ele.clientHeight;e.echarts.dispose(e.ele);var i=c({width:n,height:r},e.props.opts);t(e.echarts.init(e.ele,e.props.theme,i))})})]})})},t.prototype.getEchartsInstance=function(){return this.echarts.getInstanceByDom(this.ele)},t.prototype.dispose=function(){if(this.ele){try{(0,y.clear)(this.ele)}catch(e){console.warn(e)}this.echarts.dispose(this.ele)}},t.prototype.renderNewEcharts=function(){return u(this,void 0,void 0,function(){var e,t,n,r,i,a,o=this;return d(this,function(s){switch(s.label){case 0:return e=this.props,t=e.onEvents,n=e.onChartReady,r=e.autoResize,i=r===void 0||r,[4,this.initEchartsInstance()];case 1:return s.sent(),a=this.updateEChartsOption(),this.bindEvents(a,t||{}),x(n)&&n(a),this.ele&&i&&(0,y.bind)(this.ele,function(){o.resize()}),[2]}})})},t.prototype.bindEvents=function(e,t){var n=this,r=function(t,r){if(S(t)&&x(r)){var i=function(t){r(t,e)};e.on(t,i),n.eventHandlerRefs[t]=i}};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&r(i,t[i])},t.prototype.unbindEvents=function(e){for(var t=0,n=Object.entries(this.eventHandlerRefs);t<n.length;t++){var r=n[t],i=r[0],a=r[1];e.off(i,a)}this.eventHandlerRefs={}},t.prototype.updateEChartsOption=function(){var e=this.props,t=e.option,n=e.notMerge,r=n!==void 0&&n,i=e.replaceMerge,a=i===void 0?null:i,o=e.lazyUpdate,s=o!==void 0&&o,c=e.showLoading,l=e.loadingOption,u=l===void 0?null:l,d=this.getEchartsInstance();return d.setOption(t,{notMerge:r,replaceMerge:a,lazyUpdate:s}),c?d.showLoading(u):d.hideLoading(),d},t.prototype.resize=function(){var e=this.getEchartsInstance();if(!this.isInitialResize)try{e.resize({width:`auto`,height:`auto`})}catch(e){console.warn(e)}this.isInitialResize=!1},t.prototype.render=function(){var e=this,t=this.props,n=t.style,r=t.className,a=r===void 0?``:r;t.echarts,t.option,t.theme,t.notMerge,t.replaceMerge,t.lazyUpdate,t.showLoading,t.loadingOption,t.opts,t.onChartReady,t.onEvents,t.shouldSetOption,t.autoResize;var o=l(t,[`style`,`className`,`echarts`,`option`,`theme`,`notMerge`,`replaceMerge`,`lazyUpdate`,`showLoading`,`loadingOption`,`opts`,`onChartReady`,`onEvents`,`shouldSetOption`,`autoResize`]),s=c({height:300},n);return i.createElement(`div`,c({ref:function(t){e.ele=t},style:s,className:`echarts-for-react ${a}`},o))},t}(r),T=function(){function e(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return e}(),E=new(function(){function e(){this.browser=new T,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow=typeof window<`u`}return e}());typeof wx==`object`&&typeof wx.getSystemInfoSync==`function`?(E.wxa=!0,E.touchEventsSupported=!0):typeof document>`u`&&typeof self<`u`?E.worker=!0:!E.hasGlobalWindow||`Deno`in window||typeof navigator<`u`&&typeof navigator.userAgent==`string`&&navigator.userAgent.indexOf(`Node.js`)>-1?(E.node=!0,E.svgSupported=!0):D(navigator.userAgent,E);function D(e,t){var n=t.browser,r=e.match(/Firefox\/([\d.]+)/),i=e.match(/MSIE\s([\d.]+)/)||e.match(/Trident\/.+?rv:(([\d.]+))/),a=e.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(e);if(r&&(n.firefox=!0,n.version=r[1]),i&&(n.ie=!0,n.version=i[1]),a&&(n.edge=!0,n.version=a[1],n.newEdge=+a[1].split(`.`)[0]>18),o&&(n.weChat=!0),t.svgSupported=typeof SVGRect<`u`,t.touchEventsSupported=`ontouchstart`in window&&!n.ie&&!n.edge,t.pointerEventsSupported=`onpointerdown`in window&&(n.edge||n.ie&&+n.version>=11),t.domSupported=typeof document<`u`){var s=document.documentElement.style;t.transform3dSupported=(n.ie&&`transition`in s||n.edge||`WebKitCSSMatrix`in window&&`m11`in new WebKitCSSMatrix||`MozPerspective`in s)&&!(`OTransition`in s),t.transformSupported=t.transform3dSupported||n.ie&&+n.version>=9}}var O=`12px sans-serif`,k=20,A=100,j=`007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N`;function ee(e){var t={};if(typeof JSON>`u`)return t;for(var n=0;n<e.length;n++){var r=String.fromCharCode(n+32);t[r]=(e.charCodeAt(n)-k)/A}return t}var te=ee(j),M={createCanvas:function(){return typeof document<`u`&&document.createElement(`canvas`)},measureText:(function(){var e,t;return function(n,r){if(!e){var i=M.createCanvas();e=i&&i.getContext(`2d`)}if(e)return t!==r&&(t=e.font=r||`12px sans-serif`),e.measureText(n);n||=``,r||=`12px sans-serif`;var a=/((?:\d+)?\.?\d*)px/.exec(r),o=a&&+a[1]||12,s=0;if(r.indexOf(`mono`)>=0)s=o*n.length;else for(var c=0;c<n.length;c++){var l=te[n[c]];s+=l==null?o:l*o}return{width:s}}})(),loadImage:function(e,t,n){var r=new Image;return r.onload=t,r.onerror=n,r.src=e,r},getTime:function(){return Date.now?Date.now():+new Date}};function ne(e){for(var t in M)M.hasOwnProperty(t)&&e[t]&&(M[t]=e[t])}var re=t({EPSILON:()=>rt,HashMap:()=>Xe,RADIAN_TO_DEGREE:()=>nt,assert:()=>He,assignProps:()=>ve,bind:()=>De,clone:()=>I,concatArray:()=>Ze,createCanvas:()=>ye,createHashMap:()=>J,createObject:()=>Qe,curry:()=>Oe,defaults:()=>R,disableUserSelect:()=>$e,each:()=>B,eqNaN:()=>Le,extend:()=>L,filter:()=>we,find:()=>Te,guid:()=>me,hasOwn:()=>et,indexOf:()=>z,inherits:()=>be,isArray:()=>U,isArrayLike:()=>Se,isBuiltInObject:()=>je,isDom:()=>Ne,isFunction:()=>W,isGradientObject:()=>Pe,isImagePatternObject:()=>Fe,isNumber:()=>Ae,isObject:()=>K,isPrimitive:()=>Ke,isRegExp:()=>Ie,isString:()=>G,isStringSafe:()=>ke,isTypedArray:()=>Me,keys:()=>H,logError:()=>he,map:()=>V,merge:()=>ge,mergeAll:()=>_e,mixin:()=>xe,noop:()=>tt,normalizeCssArray:()=>Ve,reduce:()=>Ce,retrieve:()=>Re,retrieve2:()=>q,retrieve3:()=>ze,setAsPrimitive:()=>Ge,slice:()=>Be,trim:()=>Ue}),ie=Ce([`Function`,`RegExp`,`Date`,`Error`,`CanvasGradient`,`CanvasPattern`,`Image`,`Canvas`],function(e,t){return e[`[object `+t+`]`]=!0,e},{}),ae=Ce([`Int8`,`Uint8`,`Uint8Clamped`,`Int16`,`Uint16`,`Int32`,`Uint32`,`Float32`,`Float64`],function(e,t){return e[`[object `+t+`Array]`]=!0,e},{}),N=Object.prototype.toString,oe=Array.prototype,se=oe.forEach,ce=oe.filter,le=oe.slice,ue=oe.map,de=function(){}.constructor,P=de?de.prototype:null,F=`__proto__`,fe=2311,pe=2**53-1;function me(){return fe>=pe&&(fe=0),fe++}function he(){var e=[...arguments];typeof console<`u`&&console.error.apply(console,e)}function I(e){if(typeof e!=`object`||!e)return e;var t=e,n=N.call(e);if(n===`[object Array]`){if(!Ke(e)){t=[];for(var r=0,i=e.length;r<i;r++)t[r]=I(e[r])}}else if(ae[n]){if(!Ke(e)){var a=e.constructor;if(a.from)t=a.from(e);else{t=new a(e.length);for(var r=0,i=e.length;r<i;r++)t[r]=e[r]}}}else if(!ie[n]&&!Ke(e)&&!Ne(e))for(var o in t={},e)e.hasOwnProperty(o)&&o!==F&&(t[o]=I(e[o]));return t}function ge(e,t,n){if(!K(t)||!K(e))return n?I(t):e;for(var r in t)if(t.hasOwnProperty(r)&&r!==F){var i=e[r],a=t[r];K(a)&&K(i)&&!U(a)&&!U(i)&&!Ne(a)&&!Ne(i)&&!je(a)&&!je(i)&&!Ke(a)&&!Ke(i)?ge(i,a,n):(n||!(r in e))&&(e[r]=I(t[r]))}return e}function _e(e,t){for(var n=e[0],r=1,i=e.length;r<i;r++)n=ge(n,e[r],t);return n}function L(e,t){if(Object.assign)Object.assign(e,t);else for(var n in t)t.hasOwnProperty(n)&&n!==F&&(e[n]=t[n]);return e}function ve(e,t,n){e||={};for(var r=0;r<n.length;r++){var i=n[r];e[i]=t[i]}return e}function R(e,t,n){for(var r=H(t),i=0,a=r.length;i<a;i++){var o=r[i];(n?t[o]!=null:e[o]==null)&&(e[o]=t[o])}return e}var ye=M.createCanvas;function z(e,t){if(e){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n}return-1}function be(e,t){var n=e.prototype;function r(){}for(var i in r.prototype=t.prototype,e.prototype=new r,n)n.hasOwnProperty(i)&&(e.prototype[i]=n[i]);e.prototype.constructor=e,e.superClass=t}function xe(e,t,n){if(e=`prototype`in e?e.prototype:e,t=`prototype`in t?t.prototype:t,Object.getOwnPropertyNames)for(var r=Object.getOwnPropertyNames(t),i=0;i<r.length;i++){var a=r[i];a!==`constructor`&&(n?t[a]!=null:e[a]==null)&&(e[a]=t[a])}else R(e,t,n)}function Se(e){return!e||typeof e==`string`?!1:typeof e.length==`number`}function B(e,t,n){if(e&&t){if(e.forEach&&e.forEach===se)e.forEach(t,n);else if(e.length===+e.length)for(var r=0,i=e.length;r<i;r++)t.call(n,e[r],r,e);else for(var a in e)e.hasOwnProperty(a)&&t.call(n,e[a],a,e)}}function V(e,t,n){if(!e)return[];if(!t)return Be(e);if(e.map&&e.map===ue)return e.map(t,n);for(var r=[],i=0,a=e.length;i<a;i++)r.push(t.call(n,e[i],i,e));return r}function Ce(e,t,n,r){if(e&&t){for(var i=0,a=e.length;i<a;i++)n=t.call(r,n,e[i],i,e);return n}}function we(e,t,n){if(!e)return[];if(!t)return Be(e);if(e.filter&&e.filter===ce)return e.filter(t,n);for(var r=[],i=0,a=e.length;i<a;i++)t.call(n,e[i],i,e)&&r.push(e[i]);return r}function Te(e,t,n){if(e&&t){for(var r=0,i=e.length;r<i;r++)if(t.call(n,e[r],r,e))return e[r]}}function H(e){if(!e)return[];if(Object.keys)return Object.keys(e);var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(n);return t}function Ee(e,t){var n=[...arguments].slice(2);return function(){return e.apply(t,n.concat(le.call(arguments)))}}var De=P&&W(P.bind)?P.call.bind(P.bind):Ee;function Oe(e){var t=[...arguments].slice(1);return function(){return e.apply(this,t.concat(le.call(arguments)))}}function U(e){return Array.isArray?Array.isArray(e):N.call(e)===`[object Array]`}function W(e){return typeof e==`function`}function G(e){return typeof e==`string`}function ke(e){return N.call(e)===`[object String]`}function Ae(e){return typeof e==`number`}function K(e){var t=typeof e;return t===`function`||!!e&&t===`object`}function je(e){return!!ie[N.call(e)]}function Me(e){return!!ae[N.call(e)]}function Ne(e){return typeof e==`object`&&typeof e.nodeType==`number`&&typeof e.ownerDocument==`object`}function Pe(e){return e.colorStops!=null}function Fe(e){return e.image!=null}function Ie(e){return N.call(e)===`[object RegExp]`}function Le(e){return e!==e}function Re(){for(var e=[...arguments],t=0,n=e.length;t<n;t++)if(e[t]!=null)return e[t]}function q(e,t){return e??t}function ze(e,t,n){return e??t??n}function Be(e){var t=[...arguments].slice(1);return le.apply(e,t)}function Ve(e){if(typeof e==`number`)return[e,e,e,e];var t=e.length;return t===2?[e[0],e[1],e[0],e[1]]:t===3?[e[0],e[1],e[2],e[1]]:e}function He(e,t){if(!e)throw Error(t)}function Ue(e){return e==null?null:typeof e.trim==`function`?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,``)}var We=`__ec_primitive__`;function Ge(e){e[We]=!0}function Ke(e){return e[We]}var qe=function(){function e(){this.data={}}return e.prototype.delete=function(e){var t=this.has(e);return t&&delete this.data[e],t},e.prototype.has=function(e){return this.data.hasOwnProperty(e)},e.prototype.get=function(e){return this.data[e]},e.prototype.set=function(e,t){return this.data[e]=t,this},e.prototype.keys=function(){return H(this.data)},e.prototype.forEach=function(e){var t=this.data;for(var n in t)t.hasOwnProperty(n)&&e(t[n],n)},e}(),Je=typeof Map==`function`;function Ye(){return Je?new Map:new qe}var Xe=function(){function e(t){var n=U(t);this.data=Ye();var r=this;t instanceof e?t.each(i):t&&B(t,i);function i(e,t){n?r.set(e,t):r.set(t,e)}}return e.prototype.hasKey=function(e){return this.data.has(e)},e.prototype.get=function(e){return this.data.get(e)},e.prototype.set=function(e,t){return this.data.set(e,t),t},e.prototype.each=function(e,t){this.data.forEach(function(n,r){e.call(t,n,r)})},e.prototype.keys=function(){var e=this.data.keys();return Je?Array.from(e):e},e.prototype.removeKey=function(e){this.data.delete(e)},e}();function J(e){return new Xe(e)}function Ze(e,t){for(var n=new e.constructor(e.length+t.length),r=0;r<e.length;r++)n[r]=e[r];for(var i=e.length,r=0;r<t.length;r++)n[r+i]=t[r];return n}function Qe(e,t){var n;if(Object.create)n=Object.create(e);else{var r=function(){};r.prototype=e,n=new r}return t&&L(n,t),n}function $e(e){var t=e.style;t.webkitUserSelect=`none`,t.userSelect=`none`,t.webkitTapHighlightColor=`rgba(0,0,0,0)`,t[`-webkit-touch-callout`]=`none`}function et(e,t){return e.hasOwnProperty(t)}function tt(){}var nt=180/Math.PI,rt=2**-52||2**-52,it=t({add:()=>lt,applyTransform:()=>Dt,clone:()=>st,copy:()=>ot,create:()=>at,dist:()=>St,distSquare:()=>wt,distance:()=>xt,distanceSquare:()=>Ct,div:()=>_t,dot:()=>vt,len:()=>ft,lenSquare:()=>mt,length:()=>pt,lengthSquare:()=>ht,lerp:()=>Et,max:()=>kt,min:()=>Ot,mul:()=>gt,negate:()=>Tt,normalize:()=>bt,scale:()=>yt,scaleAndAdd:()=>ut,set:()=>ct,sub:()=>dt});function at(e,t){return e??=0,t??=0,[e,t]}function ot(e,t){return e[0]=t[0],e[1]=t[1],e}function st(e){return[e[0],e[1]]}function ct(e,t,n){return e[0]=t,e[1]=n,e}function lt(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e}function ut(e,t,n,r){return e[0]=t[0]+n[0]*r,e[1]=t[1]+n[1]*r,e}function dt(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e}function ft(e){return Math.sqrt(mt(e))}var pt=ft;function mt(e){return e[0]*e[0]+e[1]*e[1]}var ht=mt;function gt(e,t,n){return e[0]=t[0]*n[0],e[1]=t[1]*n[1],e}function _t(e,t,n){return e[0]=t[0]/n[0],e[1]=t[1]/n[1],e}function vt(e,t){return e[0]*t[0]+e[1]*t[1]}function yt(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e}function bt(e,t){var n=ft(t);return n===0?(e[0]=0,e[1]=0):(e[0]=t[0]/n,e[1]=t[1]/n),e}function xt(e,t){return Math.sqrt((e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1]))}var St=xt;function Ct(e,t){return(e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1])}var wt=Ct;function Tt(e,t){return e[0]=-t[0],e[1]=-t[1],e}function Et(e,t,n,r){return e[0]=t[0]+r*(n[0]-t[0]),e[1]=t[1]+r*(n[1]-t[1]),e}function Dt(e,t,n){var r=t[0],i=t[1];return e[0]=n[0]*r+n[2]*i+n[4],e[1]=n[1]*r+n[3]*i+n[5],e}function Ot(e,t,n){return e[0]=Math.min(t[0],n[0]),e[1]=Math.min(t[1],n[1]),e}function kt(e,t,n){return e[0]=Math.max(t[0],n[0]),e[1]=Math.max(t[1],n[1]),e}var At=function(){function e(e,t){this.target=e,this.topTarget=t&&t.topTarget}return e}(),jt=function(){function e(e){this.handler=e,e.on(`mousedown`,this._dragStart,this),e.on(`mousemove`,this._drag,this),e.on(`mouseup`,this._dragEnd,this)}return e.prototype._dragStart=function(e){for(var t=e.target;t&&!t.draggable;)t=t.parent||t.__hostTarget;t&&(this._draggingTarget=t,t.dragging=!0,this._x=e.offsetX,this._y=e.offsetY,this.handler.dispatchToElement(new At(t,e),`dragstart`,e.event))},e.prototype._drag=function(e){var t=this._draggingTarget;if(t){var n=e.offsetX,r=e.offsetY,i=n-this._x,a=r-this._y;this._x=n,this._y=r,t.drift(i,a,e),this.handler.dispatchToElement(new At(t,e),`drag`,e.event);var o=this.handler.findHover(n,r,t).target,s=this._dropTarget;this._dropTarget=o,t!==o&&(s&&o!==s&&this.handler.dispatchToElement(new At(s,e),`dragleave`,e.event),o&&o!==s&&this.handler.dispatchToElement(new At(o,e),`dragenter`,e.event))}},e.prototype._dragEnd=function(e){var t=this._draggingTarget;t&&(t.dragging=!1),this.handler.dispatchToElement(new At(t,e),`dragend`,e.event),this._dropTarget&&this.handler.dispatchToElement(new At(this._dropTarget,e),`drop`,e.event),this._draggingTarget=null,this._dropTarget=null},e}(),Mt=function(){function e(e){e&&(this._$eventProcessor=e)}return e.prototype.on=function(e,t,n,r){this._$handlers||={};var i=this._$handlers;if(typeof t==`function`&&(r=n,n=t,t=null),!n||!e)return this;var a=this._$eventProcessor;t!=null&&a&&a.normalizeQuery&&(t=a.normalizeQuery(t)),i[e]||(i[e]=[]);for(var o=0;o<i[e].length;o++)if(i[e][o].h===n)return this;var s={h:n,query:t,ctx:r||this,callAtLast:n.zrEventfulCallAtLast},c=i[e].length-1,l=i[e][c];return l&&l.callAtLast?i[e].splice(c,0,s):i[e].push(s),this},e.prototype.isSilent=function(e){var t=this._$handlers;return!t||!t[e]||!t[e].length},e.prototype.off=function(e,t){var n=this._$handlers;if(!n)return this;if(!e)return this._$handlers={},this;if(t){if(n[e]){for(var r=[],i=0,a=n[e].length;i<a;i++)n[e][i].h!==t&&r.push(n[e][i]);n[e]=r}n[e]&&n[e].length===0&&delete n[e]}else delete n[e];return this},e.prototype.trigger=function(e){var t=[...arguments].slice(1);if(!this._$handlers)return this;var n=this._$handlers[e],r=this._$eventProcessor;if(n)for(var i=t.length,a=n.length,o=0;o<a;o++){var s=n[o];if(!(r&&r.filter&&s.query!=null&&!r.filter(e,s.query)))switch(i){case 0:s.h.call(s.ctx);break;case 1:s.h.call(s.ctx,t[0]);break;case 2:s.h.call(s.ctx,t[0],t[1]);break;default:s.h.apply(s.ctx,t)}}return r&&r.afterTrigger&&r.afterTrigger(e),this},e.prototype.triggerWithContext=function(e){var t=[...arguments].slice(1);if(!this._$handlers)return this;var n=this._$handlers[e],r=this._$eventProcessor;if(n)for(var i=t.length,a=t[i-1],o=n.length,s=0;s<o;s++){var c=n[s];if(!(r&&r.filter&&c.query!=null&&!r.filter(e,c.query)))switch(i){case 0:c.h.call(a);break;case 1:c.h.call(a,t[0]);break;case 2:c.h.call(a,t[0],t[1]);break;default:c.h.apply(a,t.slice(1,i-1))}}return r&&r.afterTrigger&&r.afterTrigger(e),this},e}(),Nt=Math.log(2);function Pt(e,t,n,r,i,a){var o=r+`-`+i,s=e.length;if(a.hasOwnProperty(o))return a[o];if(t===1){var c=Math.round(Math.log((1<<s)-1&~i)/Nt);return e[n][c]}for(var l=r|1<<n,u=n+1;r&1<<u;)u++;for(var d=0,f=0,p=0;f<s;f++){var m=1<<f;m&i||(d+=(p%2?-1:1)*e[n][f]*Pt(e,t-1,u,l,i|m,a),p++)}return a[o]=d,d}function Ft(e,t){var n=[[e[0],e[1],1,0,0,0,-t[0]*e[0],-t[0]*e[1]],[0,0,0,e[0],e[1],1,-t[1]*e[0],-t[1]*e[1]],[e[2],e[3],1,0,0,0,-t[2]*e[2],-t[2]*e[3]],[0,0,0,e[2],e[3],1,-t[3]*e[2],-t[3]*e[3]],[e[4],e[5],1,0,0,0,-t[4]*e[4],-t[4]*e[5]],[0,0,0,e[4],e[5],1,-t[5]*e[4],-t[5]*e[5]],[e[6],e[7],1,0,0,0,-t[6]*e[6],-t[6]*e[7]],[0,0,0,e[6],e[7],1,-t[7]*e[6],-t[7]*e[7]]],r={},i=Pt(n,8,0,0,0,r);if(i!==0){for(var a=[],o=0;o<8;o++)for(var s=0;s<8;s++)a[s]??(a[s]=0),a[s]+=((o+s)%2?-1:1)*Pt(n,7,+(o===0),1<<o,1<<s,r)/i*t[o];return function(e,t,n){var r=t*a[6]+n*a[7]+1;e[0]=(t*a[0]+n*a[1]+a[2])/r,e[1]=(t*a[3]+n*a[4]+a[5])/r}}}var It=`___zrEVENTSAVED`,Lt=[];function Rt(e,t,n,r,i){return Bt(Lt,t,r,i,!0)&&Bt(e,n,Lt[0],Lt[1])}function zt(e,t){e&&n(e),t&&n(t);function n(e){var t=e[It];t&&(t.clearMarkers&&t.clearMarkers(),delete e[It])}}function Bt(e,t,n,r,i){if(t.getBoundingClientRect&&E.domSupported&&!Ut(t)){var a=t[It]||(t[It]={}),o=Ht(Vt(t,a),a,i);if(o)return o(e,n,r),!0}return!1}function Vt(e,t){var n=t.markers;if(n)return n;n=t.markers=[];for(var r=[`left`,`right`],i=[`top`,`bottom`],a=0;a<4;a++){var o=document.createElement(`div`),s=o.style,c=a%2,l=(a>>1)%2;s.cssText=[`position: absolute`,`visibility: hidden`,`padding: 0`,`margin: 0`,`border-width: 0`,`user-select: none`,`width:0`,`height:0`,r[c]+`:0`,i[l]+`:0`,r[1-c]+`:auto`,i[1-l]+`:auto`,``].join(`!important;`),e.appendChild(o),n.push(o)}return t.clearMarkers=function(){B(n,function(e){e.parentNode&&e.parentNode.removeChild(e)})},n}function Ht(e,t,n){for(var r=n?`invTrans`:`trans`,i=t[r],a=t.srcCoords,o=[],s=[],c=!0,l=0;l<4;l++){var u=e[l].getBoundingClientRect(),d=2*l,f=u.left,p=u.top;o.push(f,p),c=c&&a&&f===a[d]&&p===a[d+1],s.push(e[l].offsetLeft,e[l].offsetTop)}return c&&i?i:(t.srcCoords=o,t[r]=n?Ft(s,o):Ft(o,s))}function Ut(e){return e.nodeName.toUpperCase()===`CANVAS`}var Wt=/([&<>"'])/g,Gt={"&":`&`,"<":`<`,">":`>`,'"':`"`,"'":`'`};function Kt(e){return e==null?``:(e+``).replace(Wt,function(e,t){return Gt[t]})}var qt=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Jt=[],Yt=E.browser.firefox&&+E.browser.version.split(`.`)[0]<39;function Xt(e,t,n,r){return n||={},r?Zt(e,t,n):Yt&&t.layerX!=null&&t.layerX!==t.offsetX?(n.zrX=t.layerX,n.zrY=t.layerY):t.offsetX==null?Zt(e,t,n):(n.zrX=t.offsetX,n.zrY=t.offsetY),n}function Zt(e,t,n){if(E.domSupported&&e.getBoundingClientRect){var r=t.clientX,i=t.clientY;if(Ut(e)){var a=e.getBoundingClientRect();n.zrX=r-a.left,n.zrY=i-a.top;return}if(Bt(Jt,e,r,i)){n.zrX=Jt[0],n.zrY=Jt[1];return}}n.zrX=n.zrY=0}function Qt(e){return e||window.event}function $t(e,t,n){if(t=Qt(t),t.zrX!=null)return t;var r=t.type;if(r&&r.indexOf(`touch`)>=0){var i=r===`touchend`?t.changedTouches[0]:t.targetTouches[0];i&&Xt(e,i,t,n)}else{Xt(e,t,t,n);var a=en(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var o=t.button;return t.which==null&&o!==void 0&&qt.test(t.type)&&(t.which=o&1?1:o&2?3:o&4?2:0),t}function en(e){var t=e.wheelDelta;if(t)return t;var n=e.deltaX,r=e.deltaY;if(n==null||r==null)return t;var i=Math.abs(r===0?n:r),a=r>0?-1:r<0?1:n>0?-1:1;return 3*i*a}function tn(e,t,n,r){e.addEventListener(t,n,r)}function nn(e,t,n,r){e.removeEventListener(t,n,r)}var rn=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0},an=function(){function e(){this._track=[]}return e.prototype.recognize=function(e,t,n){return this._doTrack(e,t,n),this._recognize(e)},e.prototype.clear=function(){return this._track.length=0,this},e.prototype._doTrack=function(e,t,n){var r=e.touches;if(r){for(var i={points:[],touches:[],target:t,event:e},a=0,o=r.length;a<o;a++){var s=r[a],c=Xt(n,s,{});i.points.push([c.zrX,c.zrY]),i.touches.push(s)}this._track.push(i)}},e.prototype._recognize=function(e){for(var t in cn)if(cn.hasOwnProperty(t)){var n=cn[t](this._track,e);if(n)return n}},e}();function on(e){var t=e[1][0]-e[0][0],n=e[1][1]-e[0][1];return Math.sqrt(t*t+n*n)}function sn(e){return[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]}var cn={pinch:function(e,t){var n=e.length;if(n){var r=(e[n-1]||{}).points,i=(e[n-2]||{}).points||r;if(i&&i.length>1&&r&&r.length>1){var a=on(r)/on(i);!isFinite(a)&&(a=1),t.pinchScale=a;var o=sn(r);return t.pinchX=o[0],t.pinchY=o[1],{type:`pinch`,target:e[0].target,event:t}}}}},ln=t({clone:()=>vn,copy:()=>fn,create:()=>un,identity:()=>dn,invert:()=>_n,mul:()=>pn,rotate:()=>hn,scale:()=>gn,translate:()=>mn});function un(){return[1,0,0,1,0,0]}function dn(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function fn(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function pn(e,t,n){var r=t[0]*n[0]+t[2]*n[1],i=t[1]*n[0]+t[3]*n[1],a=t[0]*n[2]+t[2]*n[3],o=t[1]*n[2]+t[3]*n[3],s=t[0]*n[4]+t[2]*n[5]+t[4],c=t[1]*n[4]+t[3]*n[5]+t[5];return e[0]=r,e[1]=i,e[2]=a,e[3]=o,e[4]=s,e[5]=c,e}function mn(e,t,n){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4]+n[0],e[5]=t[5]+n[1],e}function hn(e,t,n,r){r===void 0&&(r=[0,0]);var i=t[0],a=t[2],o=t[4],s=t[1],c=t[3],l=t[5],u=Math.sin(n),d=Math.cos(n);return e[0]=i*d+s*u,e[1]=-i*u+s*d,e[2]=a*d+c*u,e[3]=-a*u+d*c,e[4]=d*(o-r[0])+u*(l-r[1])+r[0],e[5]=d*(l-r[1])-u*(o-r[0])+r[1],e}function gn(e,t,n){var r=n[0],i=n[1];return e[0]=t[0]*r,e[1]=t[1]*i,e[2]=t[2]*r,e[3]=t[3]*i,e[4]=t[4]*r,e[5]=t[5]*i,e}function _n(e,t){var n=t[0],r=t[2],i=t[4],a=t[1],o=t[3],s=t[5],c=n*o-a*r;return c?(c=1/c,e[0]=o*c,e[1]=-a*c,e[2]=-r*c,e[3]=n*c,e[4]=(r*s-o*i)*c,e[5]=(a*i-n*s)*c,e):null}function vn(e){var t=un();return fn(t,e),t}var yn=function(){function e(e,t){this.x=e||0,this.y=t||0}return e.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},e.prototype.clone=function(){return new e(this.x,this.y)},e.prototype.set=function(e,t){return this.x=e,this.y=t,this},e.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},e.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},e.prototype.scale=function(e){this.x*=e,this.y*=e},e.prototype.scaleAndAdd=function(e,t){this.x+=e.x*t,this.y+=e.y*t},e.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},e.prototype.dot=function(e){return this.x*e.x+this.y*e.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 e=this.len();return this.x/=e,this.y/=e,this},e.prototype.distance=function(e){var t=this.x-e.x,n=this.y-e.y;return Math.sqrt(t*t+n*n)},e.prototype.distanceSquare=function(e){var t=this.x-e.x,n=this.y-e.y;return t*t+n*n},e.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},e.prototype.transform=function(e){if(e){var t=this.x,n=this.y;return this.x=e[0]*t+e[2]*n+e[4],this.y=e[1]*t+e[3]*n+e[5],this}},e.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},e.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},e.set=function(e,t,n){e.x=t,e.y=n},e.copy=function(e,t){e.x=t.x,e.y=t.y},e.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},e.lenSquare=function(e){return e.x*e.x+e.y*e.y},e.dot=function(e,t){return e.x*t.x+e.y*t.y},e.add=function(e,t,n){e.x=t.x+n.x,e.y=t.y+n.y},e.sub=function(e,t,n){e.x=t.x-n.x,e.y=t.y-n.y},e.scale=function(e,t,n){e.x=t.x*n,e.y=t.y*n},e.scaleAndAdd=function(e,t,n,r){e.x=t.x+n.x*r,e.y=t.y+n.y*r},e.lerp=function(e,t,n,r){var i=1-r;e.x=i*t.x+r*n.x,e.y=i*t.y+r*n.y},e}(),bn=Math.min,xn=Math.max,Sn=Math.abs,Cn=[`x`,`y`],wn=[`width`,`height`],Tn=new yn,En=new yn,Dn=new yn,On=new yn,kn=Un(),An=kn.minTv,jn=kn.maxTv,Mn=[0,0],Y=function(){function e(e,t,n,r){Pn(this,e,t,n,r)}return e.set=function(e,t,n,r,i){return r<0&&(t+=r,r=-r),i<0&&(n+=i,i=-i),e.x=t,e.y=n,e.width=r,e.height=i,e},e.prototype.union=function(e){var t=bn(e.x,this.x),n=bn(e.y,this.y);this.width=isFinite(this.x)&&isFinite(this.width)?xn(e.x+e.width,this.x+this.width)-t:e.width,this.height=isFinite(this.y)&&isFinite(this.height)?xn(e.y+e.height,this.y+this.height)-n:e.height,this.x=t,this.y=n},e.prototype.applyTransform=function(t){e.applyTransform(this,this,t)},e.prototype.calculateTransform=function(e){return In(un(),this,e)},e.prototype.intersect=function(t,n,r){return e.intersect(this,t,n,r)},e.intersect=function(t,n,r,i){r&&yn.set(r,0,0);var a=i&&i.outIntersectRect||null,o=i&&i.clamp;if(a&&(a.x=a.y=a.width=a.height=NaN),!t||!n)return!1;t instanceof e||(t=Pn(zn,t.x,t.y,t.width,t.height)),n instanceof e||(n=Pn(Bn,n.x,n.y,n.width,n.height));var s=!!r;kn.reset(i,s);var c=kn.touchThreshold,l=t.x+c,u=t.x+t.width-c,d=t.y+c,f=t.y+t.height-c,p=n.x+c,m=n.x+n.width-c,h=n.y+c,g=n.y+n.height-c;if(l>u||d>f||p>m||h>g)return!1;var _=!(u<p||m<l||f<h||g<d);return(s||a)&&(Mn[0]=1/0,Mn[1]=0,Hn(l,u,p,m,0,s,a,o),Hn(d,f,h,g,1,s,a,o),s&&yn.copy(r,_?kn.useDir?kn.dirMinTv:An:jn)),_},e.contain=function(e,t,n){return t>=e.x&&t<=e.x+e.width&&n>=e.y&&n<=e.y+e.height},e.prototype.contain=function(t,n){return e.contain(this,t,n)},e.prototype.clone=function(){return new e(this.x,this.y,this.width,this.height)},e.prototype.copy=function(e){Fn(this,e)},e.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},e.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},e.prototype.isZero=function(){return this.width===0||this.height===0},e.create=function(t){return new e(t?t.x:0,t?t.y:0,t?t.width:0,t?t.height:0)},e.copy=function(e,t){return e.x=t.x,e.y=t.y,e.width=t.width,e.height=t.height,e},e.applyTransform=function(e,t,n){if(!n)e!==t&&Fn(e,t);else if(n[1]<1e-5&&n[1]>-1e-5&&n[2]<1e-5&&n[2]>-1e-5){var r=n[0],i=n[3],a=n[4],o=n[5];e.x=t.x*r+a,e.y=t.y*i+o,e.width=t.width*r,e.height=t.height*i,e.width<0&&(e.x+=e.width,e.width=-e.width),e.height<0&&(e.y+=e.height,e.height=-e.height)}else{Tn.x=Dn.x=t.x,Tn.y=On.y=t.y,En.x=On.x=t.x+t.width,En.y=Dn.y=t.y+t.height,Tn.transform(n),On.transform(n),En.transform(n),Dn.transform(n),e.x=bn(Tn.x,En.x,Dn.x,On.x),e.y=bn(Tn.y,En.y,Dn.y,On.y);var s=xn(Tn.x,En.x,Dn.x,On.x),c=xn(Tn.y,En.y,Dn.y,On.y);e.width=s-e.x,e.height=c-e.y}},e.calculateTransform=function(e,t,n){var r=n.width/t.width,i=n.height/t.height;return e=dn(e||[]),mn(e,e,ct(Vn,-t.x,-t.y)),gn(e,e,ct(Vn,r,i)),mn(e,e,ct(Vn,n.x,n.y)),e},e}(),Nn=Y.create,Pn=Y.set,Fn=Y.copy,In=Y.calculateTransform,Ln=Y.applyTransform,Rn=Y.contain,zn=new Y(0,0,0,0),Bn=new Y(0,0,0,0),Vn=[];function Hn(e,t,n,r,i,a,o,s){var c=Sn(t-n),l=Sn(r-e),u=bn(c,l),d=Cn[i],f=Cn[1-i],p=wn[i];t<n||r<e?c<l?(a&&(jn[d]=-c),s&&(o[d]=t,o[p]=0)):(a&&(jn[d]=l),s&&(o[d]=e,o[p]=0)):(o&&(o[d]=xn(e,n),o[p]=bn(t,r)-o[d]),a&&(u<Mn[0]||kn.useDir)&&(Mn[0]=bn(u,Mn[0]),(c<l||!kn.bidirectional)&&(An[d]=c,An[f]=0,kn.useDir&&kn.calcDirMTV()),(c>=l||!kn.bidirectional)&&(An[d]=-l,An[f]=0,kn.useDir&&kn.calcDirMTV())))}function Un(){var e=0,t=new yn,n=new yn,r={minTv:new yn,maxTv:new yn,useDir:!1,dirMinTv:new yn,touchThreshold:0,bidirectional:!0,negativeSize:!1,reset:function(i,a){r.touchThreshold=0,i&&i.touchThreshold!=null&&(r.touchThreshold=xn(0,i.touchThreshold)),r.negativeSize=!1,a&&(r.minTv.set(1/0,1/0),r.maxTv.set(0,0),r.useDir=!1,i&&i.direction!=null&&(r.useDir=!0,r.dirMinTv.copy(r.minTv),n.copy(r.minTv),e=i.direction,r.bidirectional=i.bidirectional==null||!!i.bidirectional,r.bidirectional||t.set(Math.cos(e),Math.sin(e))))},calcDirMTV:function(){var a=r.minTv,o=r.dirMinTv,s=a.y*a.y+a.x*a.x,c=Math.sin(e),l=Math.cos(e),u=c*a.y+l*a.x;i(u)?i(a.x)&&i(a.y)&&o.set(0,0):(n.x=s*l/u,n.y=s*c/u,i(n.x)&&i(n.y)?o.set(0,0):(r.bidirectional||t.dot(n)>0)&&n.len()<o.len()&&o.copy(n))}};function i(e){return Sn(e)<1e-10}return r}var Wn=`silent`;function Gn(e,t,n){return{type:e,event:n,target: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:Kn}}function Kn(){rn(this.event)}var qn=function(e){s(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.handler=null,t}return t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t}(Mt),Jn=function(){function e(e,t){this.x=e,this.y=t}return e}(),Yn=[`click`,`dblclick`,`mousewheel`,`mouseout`,`mouseup`,`mousedown`,`mousemove`,`contextmenu`],Xn=new Y(0,0,0,0),Zn=function(e){s(t,e);function t(t,n,r,i,a){var o=e.call(this)||this;return o._hovered=new Jn(0,0),o.storage=t,o.painter=n,o.painterRoot=i,o._pointerSize=a,r||=new qn,o.proxy=null,o.setHandlerProxy(r),o._draggingMgr=new jt(o),o}return t.prototype.setHandlerProxy=function(e){this.proxy&&this.proxy.dispose(),e&&(B(Yn,function(t){e.on&&e.on(t,this[t],this)},this),e.handler=this),this.proxy=e},t.prototype.mousemove=function(e){var t=e.zrX,n=e.zrY,r=er(this,t,n),i=this._hovered,a=i.target;a&&!a.__zr&&(i=this.findHover(i.x,i.y),a=i.target);var o=this._hovered=r?new Jn(t,n):this.findHover(t,n),s=o.target,c=this.proxy;c.setCursor&&c.setCursor(s?s.cursor:`default`),a&&s!==a&&this.dispatchToElement(i,`mouseout`,e),this.dispatchToElement(o,`mousemove`,e),s&&s!==a&&this.dispatchToElement(o,`mouseover`,e)},t.prototype.mouseout=function(e){var t=e.zrEventControl;t!==`only_globalout`&&this.dispatchToElement(this._hovered,`mouseout`,e),t!==`no_globalout`&&this.trigger(`globalout`,{type:`globalout`,event:e})},t.prototype.resize=function(){this._hovered=new Jn(0,0)},t.prototype.dispatch=function(e,t){var n=this[e];n&&n.call(this,t)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(e){var t=this.proxy;t.setCursor&&t.setCursor(e)},t.prototype.dispatchToElement=function(e,t,n){e||={};var r=e.target;if(!(r&&r.silent)){for(var i=`on`+t,a=Gn(t,e,n);r&&(r[i]&&(a.cancelBubble=!!r[i].call(r,a)),r.trigger(t,a),r=r.__hostTarget?r.__hostTarget:r.parent,!a.cancelBubble););a.cancelBubble||(this.trigger(t,a),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(e){typeof e[i]==`function`&&e[i].call(e,a),e.trigger&&e.trigger(t,a)}))}},t.prototype.findHover=function(e,t,n){var r=this.storage.getDisplayList(),i=new Jn(e,t);if($n(r,i,e,t,n),this._pointerSize&&!i.target){for(var a=[],o=this._pointerSize,s=o/2,c=new Y(e-s,t-s,o,o),l=r.length-1;l>=0;l--){var u=r[l];u===n||u.ignore||u.ignoreCoarsePointer||u.parent&&u.parent.ignoreCoarsePointer||(Xn.copy(u.getBoundingRect()),u.transform&&Xn.applyTransform(u.transform),Xn.intersect(c)&&a.push(u))}if(a.length){for(var d=4,f=Math.PI/12,p=Math.PI*2,m=0;m<s;m+=d)for(var h=0;h<p;h+=f)if($n(a,i,e+m*Math.cos(h),t+m*Math.sin(h),n),i.target)return i}}return i},t.prototype.processGesture=function(e,t){this._gestureMgr||=new an;var n=this._gestureMgr;t===`start`&&n.clear();var r=n.recognize(e,this.findHover(e.zrX,e.zrY,null).target,this.proxy.dom);if(t===`end`&&n.clear(),r){var i=r.type;e.gestureEvent=i;var a=new Jn;a.target=r.target,this.dispatchToElement(a,i,r.event)}},t}(Mt);B([`click`,`mousedown`,`mouseup`,`mousewheel`,`dblclick`,`contextmenu`],function(e){Zn.prototype[e]=function(t){var n=t.zrX,r=t.zrY,i=er(this,n,r),a,o;if(e===`mouseup`&&i||(a=this.findHover(n,r),o=a.target),e===`mousedown`)this._downEl=o,this._downPoint=[t.zrX,t.zrY],this._upEl=o;else if(e===`mouseup`)this._upEl=o;else if(e===`click`){if(this._downEl!==this._upEl||!this._downPoint||St(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(a,e,t)}});function Qn(e,t,n){if(e[e.rectHover?`rectContain`:`contain`](t,n)){for(var r=e,i=void 0,a=!1;r;){if(r.ignoreClip&&(a=!0),!a){var o=r.getClipPath();if(o&&!o.contain(t,n))return!1}r.silent&&(i=!0);var s=r.__hostTarget;r=s?r.ignoreHostSilent?null:s:r.parent}return!i||Wn}return!1}function $n(e,t,n,r,i){for(var a=e.length-1;a>=0;a--){var o=e[a],s=void 0;if(o!==i&&!o.ignore&&(s=Qn(o,n,r))&&(!t.topTarget&&(t.topTarget=o),s!==Wn)){t.target=o;break}}}function er(e,t,n){var r=e.painter;return t<0||t>r.getWidth()||n<0||n>r.getHeight()}var tr=32,nr=7;function rr(e){for(var t=0;e>=tr;)t|=e&1,e>>=1;return e+t}function ir(e,t,n,r){var i=t+1;if(i===n)return 1;if(r(e[i++],e[t])<0){for(;i<n&&r(e[i],e[i-1])<0;)i++;ar(e,t,i)}else for(;i<n&&r(e[i],e[i-1])>=0;)i++;return i-t}function ar(e,t,n){for(n--;t<n;){var r=e[t];e[t++]=e[n],e[n--]=r}}function or(e,t,n,r,i){for(r===t&&r++;r<n;r++){for(var a=e[r],o=t,s=r,c;o<s;)c=o+s>>>1,i(a,e[c])<0?s=c:o=c+1;var l=r-o;switch(l){case 3:e[o+3]=e[o+2];case 2:e[o+2]=e[o+1];case 1:e[o+1]=e[o];break;default:for(;l>0;)e[o+l]=e[o+l-1],l--}e[o]=a}}function sr(e,t,n,r,i,a){var o=0,s=0,c=1;if(a(e,t[n+i])>0){for(s=r-i;c<s&&a(e,t[n+i+c])>0;)o=c,c=(c<<1)+1,c<=0&&(c=s);c>s&&(c=s),o+=i,c+=i}else{for(s=i+1;c<s&&a(e,t[n+i-c])<=0;)o=c,c=(c<<1)+1,c<=0&&(c=s);c>s&&(c=s);var l=o;o=i-c,c=i-l}for(o++;o<c;){var u=o+(c-o>>>1);a(e,t[n+u])>0?o=u+1:c=u}return c}function cr(e,t,n,r,i,a){var o=0,s=0,c=1;if(a(e,t[n+i])<0){for(s=i+1;c<s&&a(e,t[n+i-c])<0;)o=c,c=(c<<1)+1,c<=0&&(c=s);c>s&&(c=s);var l=o;o=i-c,c=i-l}else{for(s=r-i;c<s&&a(e,t[n+i+c])>=0;)o=c,c=(c<<1)+1,c<=0&&(c=s);c>s&&(c=s),o+=i,c+=i}for(o++;o<c;){var u=o+(c-o>>>1);a(e,t[n+u])<0?c=u:o=u+1}return c}function lr(e,t){var n=nr,r,i,a=0,o=[];r=[],i=[];function s(e,t){r[a]=e,i[a]=t,a+=1}function c(){for(;a>1;){var e=a-2;if(e>=1&&i[e-1]<=i[e]+i[e+1]||e>=2&&i[e-2]<=i[e]+i[e-1])i[e-1]<i[e+1]&&e--;else if(i[e]>i[e+1])break;u(e)}}function l(){for(;a>1;){var e=a-2;e>0&&i[e-1]<i[e+1]&&e--,u(e)}}function u(n){var o=r[n],s=i[n],c=r[n+1],l=i[n+1];i[n]=s+l,n===a-3&&(r[n+1]=r[n+2],i[n+1]=i[n+2]),a--;var u=cr(e[c],e,o,s,0,t);o+=u,s-=u,s!==0&&(l=sr(e[o+s-1],e,c,l,l-1,t),l!==0&&(s<=l?d(o,s,c,l):f(o,s,c,l)))}function d(r,i,a,s){var c=0;for(c=0;c<i;c++)o[c]=e[r+c];var l=0,u=a,d=r;if(e[d++]=e[u++],--s===0)for(c=0;c<i;c++)e[d+c]=o[l+c];else if(i===1){for(c=0;c<s;c++)e[d+c]=e[u+c];e[d+s]=o[l]}else{for(var f=n,p,m,h;;){p=0,m=0,h=!1;do if(t(e[u],o[l])<0){if(e[d++]=e[u++],m++,p=0,--s===0){h=!0;break}}else if(e[d++]=o[l++],p++,m=0,--i===1){h=!0;break}while((p|m)<f);if(h)break;do{if(p=cr(e[u],o,l,i,0,t),p!==0){for(c=0;c<p;c++)e[d+c]=o[l+c];if(d+=p,l+=p,i-=p,i<=1){h=!0;break}}if(e[d++]=e[u++],--s===0){h=!0;break}if(m=sr(o[l],e,u,s,0,t),m!==0){for(c=0;c<m;c++)e[d+c]=e[u+c];if(d+=m,u+=m,s-=m,s===0){h=!0;break}}if(e[d++]=o[l++],--i===1){h=!0;break}f--}while(p>=nr||m>=nr);if(h)break;f<0&&(f=0),f+=2}if(n=f,n<1&&(n=1),i===1){for(c=0;c<s;c++)e[d+c]=e[u+c];e[d+s]=o[l]}else if(i===0)throw Error();else for(c=0;c<i;c++)e[d+c]=o[l+c]}}function f(r,i,a,s){var c=0;for(c=0;c<s;c++)o[c]=e[a+c];var l=r+i-1,u=s-1,d=a+s-1,f=0,p=0;if(e[d--]=e[l--],--i===0)for(f=d-(s-1),c=0;c<s;c++)e[f+c]=o[c];else if(s===1){for(d-=i,l-=i,p=d+1,f=l+1,c=i-1;c>=0;c--)e[p+c]=e[f+c];e[d]=o[u]}else{for(var m=n;;){var h=0,g=0,_=!1;do if(t(o[u],e[l])<0){if(e[d--]=e[l--],h++,g=0,--i===0){_=!0;break}}else if(e[d--]=o[u--],g++,h=0,--s===1){_=!0;break}while((h|g)<m);if(_)break;do{if(h=i-cr(o[u],e,r,i,i-1,t),h!==0){for(d-=h,l-=h,i-=h,p=d+1,f=l+1,c=h-1;c>=0;c--)e[p+c]=e[f+c];if(i===0){_=!0;break}}if(e[d--]=o[u--],--s===1){_=!0;break}if(g=s-sr(e[l],o,0,s,s-1,t),g!==0){for(d-=g,u-=g,s-=g,p=d+1,f=u+1,c=0;c<g;c++)e[p+c]=o[f+c];if(s<=1){_=!0;break}}if(e[d--]=e[l--],--i===0){_=!0;break}m--}while(h>=nr||g>=nr);if(_)break;m<0&&(m=0),m+=2}if(n=m,n<1&&(n=1),s===1){for(d-=i,l-=i,p=d+1,f=l+1,c=i-1;c>=0;c--)e[p+c]=e[f+c];e[d]=o[u]}else if(s===0)throw Error();else for(f=d-(s-1),c=0;c<s;c++)e[f+c]=o[c]}}return{mergeRuns:c,forceMergeRuns:l,pushRun:s}}function ur(e,t,n,r){n||=0,r||=e.length;var i=r-n;if(!(i<2)){var a=0;if(i<tr)a=ir(e,n,r,t),or(e,n,r,n+a,t);else{var o=lr(e,t),s=rr(i);do{if(a=ir(e,n,r,t),a<s){var c=i;c>s&&(c=s),or(e,n,n+c,n+a,t),a=c}o.pushRun(n,a),o.mergeRuns(),i-=a,n+=a}while(i!==0);o.forceMergeRuns()}}}var dr=!1;function fr(){dr||(dr=!0,console.warn(`z / z2 / zlevel of displayable is invalid, which may cause unexpected errors`))}function pr(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var mr=function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=pr}return e.prototype.traverse=function(e,t){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(e,t)},e.prototype.getDisplayList=function(e,t){t||=!1;var n=this._displayList;return(e||!n.length)&&this.updateDisplayList(t),n},e.prototype.updateDisplayList=function(e){this._displayListLen=0;for(var t=this._roots,n=this._displayList,r=0,i=t.length;r<i;r++)this._updateAndAddDisplayable(t[r],null,e);n.length=this._displayListLen,ur(n,pr)},e.prototype._updateAndAddDisplayable=function(e,t,n){if(!e.ignore||n){e.beforeUpdate(),e.update(),e.afterUpdate();var r=e.getClipPath(),i=t&&t.length,a=0,o=e.__clipPaths;if(!e.ignoreClip&&(i||r)){if(o||=e.__clipPaths=[],i)for(var s=0;s<t.length;s++)o[a++]=t[s];for(var c=r,l=e;c;)c.parent=l,c.updateTransform(),o[a++]=c,l=c,c=c.getClipPath()}if(o&&(o.length=a),e.childrenRef){for(var u=e.childrenRef(),d=0;d<u.length;d++){var f=u[d];e.__dirty&&(f.__dirty|=1),this._updateAndAddDisplayable(f,o,n)}e.__dirty=0}else{var p=e;isNaN(p.z)&&(fr(),p.z=0),isNaN(p.z2)&&(fr(),p.z2=0),isNaN(p.zlevel)&&(fr(),p.zlevel=0),this._displayList[this._displayListLen++]=p}var m=e.getDecalElement&&e.getDecalElement();m&&this._updateAndAddDisplayable(m,o,n);var h=e.getTextGuideLine();h&&this._updateAndAddDisplayable(h,o,n);var g=e.getTextContent();g&&this._updateAndAddDisplayable(g,o,n)}},e.prototype.addRoot=function(e){e.__zr&&e.__zr.storage===this||this._roots.push(e)},e.prototype.delRoot=function(e){if(e instanceof Array)for(var t=0,n=e.length;t<n;t++)this.delRoot(e[t]);else{var r=z(this._roots,e);r>=0&&this._roots.splice(r,1)}},e.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},e.prototype.getRoots=function(){return this._roots},e.prototype.dispose=function(){this._displayList=null,this._roots=null},e}(),hr=E.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)},gr={linear:function(e){return e},quadraticIn:function(e){return e*e},quadraticOut:function(e){return e*(2-e)},quadraticInOut:function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)},cubicIn:function(e){return e*e*e},cubicOut:function(e){return--e*e*e+1},cubicInOut:function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},quarticIn:function(e){return e*e*e*e},quarticOut:function(e){return 1- --e*e*e*e},quarticInOut:function(e){return(e*=2)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)},quinticIn:function(e){return e*e*e*e*e},quinticOut:function(e){return--e*e*e*e*e+1},quinticInOut:function(e){return(e*=2)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},sinusoidalIn:function(e){return 1-Math.cos(e*Math.PI/2)},sinusoidalOut:function(e){return Math.sin(e*Math.PI/2)},sinusoidalInOut:function(e){return .5*(1-Math.cos(Math.PI*e))},exponentialIn:function(e){return e===0?0:1024**(e-1)},exponentialOut:function(e){return e===1?1:1-2**(-10*e)},exponentialInOut:function(e){return e===0?0:e===1?1:(e*=2)<1?.5*1024**(e-1):.5*(-(2**(-10*(e-1)))+2)},circularIn:function(e){return 1-Math.sqrt(1-e*e)},circularOut:function(e){return Math.sqrt(1- --e*e)},circularInOut:function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},elasticIn:function(e){var t,n=.1,r=.4;return e===0?0:e===1?1:(!n||n<1?(n=1,t=r/4):t=r*Math.asin(1/n)/(2*Math.PI),-(n*2**(10*--e)*Math.sin((e-t)*(2*Math.PI)/r)))},elasticOut:function(e){var t,n=.1,r=.4;return e===0?0:e===1?1:(!n||n<1?(n=1,t=r/4):t=r*Math.asin(1/n)/(2*Math.PI),n*2**(-10*e)*Math.sin((e-t)*(2*Math.PI)/r)+1)},elasticInOut:function(e){var t,n=.1,r=.4;return e===0?0:e===1?1:(!n||n<1?(n=1,t=r/4):t=r*Math.asin(1/n)/(2*Math.PI),(e*=2)<1?-.5*(n*2**(10*--e)*Math.sin((e-t)*(2*Math.PI)/r)):n*2**(-10*--e)*Math.sin((e-t)*(2*Math.PI)/r)*.5+1)},backIn:function(e){var t=1.70158;return e*e*((t+1)*e-t)},backOut:function(e){var t=1.70158;return--e*e*((t+1)*e+t)+1},backInOut:function(e){var t=2.5949095;return(e*=2)<1?.5*(e*e*((t+1)*e-t)):.5*((e-=2)*e*((t+1)*e+t)+2)},bounceIn:function(e){return 1-gr.bounceOut(1-e)},bounceOut:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},bounceInOut:function(e){return e<.5?gr.bounceIn(e*2)*.5:gr.bounceOut(e*2-1)*.5+.5}},_r=Math.pow,vr=Math.sqrt,yr=1e-8,br=1e-4,xr=vr(3),Sr=1/3,Cr=at(),wr=at(),Tr=at();function Er(e){return e>-yr&&e<yr}function Dr(e){return e>yr||e<-yr}function Or(e,t,n,r,i){var a=1-i;return a*a*(a*e+3*i*t)+i*i*(i*r+3*a*n)}function kr(e,t,n,r,i){var a=1-i;return 3*(((t-e)*a+2*(n-t)*i)*a+(r-n)*i*i)}function Ar(e,t,n,r,i,a){var o=r+3*(t-n)-e,s=3*(n-t*2+e),c=3*(t-e),l=e-i,u=s*s-3*o*c,d=s*c-9*o*l,f=c*c-3*s*l,p=0;if(Er(u)&&Er(d)){if(Er(s))a[0]=0;else{var m=-c/s;m>=0&&m<=1&&(a[p++]=m)}}else{var h=d*d-4*u*f;if(Er(h)){var g=d/u,m=-s/o+g,_=-g/2;m>=0&&m<=1&&(a[p++]=m),_>=0&&_<=1&&(a[p++]=_)}else if(h>0){var v=vr(h),y=u*s+1.5*o*(-d+v),b=u*s+1.5*o*(-d-v);y=y<0?-_r(-y,Sr):_r(y,Sr),b=b<0?-_r(-b,Sr):_r(b,Sr);var m=(-s-(y+b))/(3*o);m>=0&&m<=1&&(a[p++]=m)}else{var x=(2*u*s-3*o*d)/(2*vr(u*u*u)),S=Math.acos(x)/3,C=vr(u),w=Math.cos(S),m=(-s-2*C*w)/(3*o),_=(-s+C*(w+xr*Math.sin(S)))/(3*o),T=(-s+C*(w-xr*Math.sin(S)))/(3*o);m>=0&&m<=1&&(a[p++]=m),_>=0&&_<=1&&(a[p++]=_),T>=0&&T<=1&&(a[p++]=T)}}return p}function jr(e,t,n,r,i){var a=6*n-12*t+6*e,o=9*t+3*r-3*e-9*n,s=3*t-3*e,c=0;if(Er(o)){if(Dr(a)){var l=-s/a;l>=0&&l<=1&&(i[c++]=l)}}else{var u=a*a-4*o*s;if(Er(u))i[0]=-a/(2*o);else if(u>0){var d=vr(u),l=(-a+d)/(2*o),f=(-a-d)/(2*o);l>=0&&l<=1&&(i[c++]=l),f>=0&&f<=1&&(i[c++]=f)}}return c}function Mr(e,t,n,r,i,a){var o=(t-e)*i+e,s=(n-t)*i+t,c=(r-n)*i+n,l=(s-o)*i+o,u=(c-s)*i+s,d=(u-l)*i+l;a[0]=e,a[1]=o,a[2]=l,a[3]=d,a[4]=d,a[5]=u,a[6]=c,a[7]=r}function Nr(e,t,n,r,i,a,o,s,c,l,u){var d,f=.005,p=1/0,m,h,g,_;Cr[0]=c,Cr[1]=l;for(var v=0;v<1;v+=.05)wr[0]=Or(e,n,i,o,v),wr[1]=Or(t,r,a,s,v),g=wt(Cr,wr),g<p&&(d=v,p=g);p=1/0;for(var y=0;y<32&&!(f<br);y++)m=d-f,h=d+f,wr[0]=Or(e,n,i,o,m),wr[1]=Or(t,r,a,s,m),g=wt(wr,Cr),m>=0&&g<p?(d=m,p=g):(Tr[0]=Or(e,n,i,o,h),Tr[1]=Or(t,r,a,s,h),_=wt(Tr,Cr),h<=1&&_<p?(d=h,p=_):f*=.5);return u&&(u[0]=Or(e,n,i,o,d),u[1]=Or(t,r,a,s,d)),vr(p)}function Pr(e,t,n,r,i,a,o,s,c){for(var l=e,u=t,d=0,f=1/c,p=1;p<=c;p++){var m=p*f,h=Or(e,n,i,o,m),g=Or(t,r,a,s,m),_=h-l,v=g-u;d+=Math.sqrt(_*_+v*v),l=h,u=g}return d}function Fr(e,t,n,r){var i=1-r;return i*(i*e+2*r*t)+r*r*n}function Ir(e,t,n,r){return 2*((1-r)*(t-e)+r*(n-t))}function Lr(e,t,n,r,i){var a=e-2*t+n,o=2*(t-e),s=e-r,c=0;if(Er(a)){if(Dr(o)){var l=-s/o;l>=0&&l<=1&&(i[c++]=l)}}else{var u=o*o-4*a*s;if(Er(u)){var l=-o/(2*a);l>=0&&l<=1&&(i[c++]=l)}else if(u>0){var d=vr(u),l=(-o+d)/(2*a),f=(-o-d)/(2*a);l>=0&&l<=1&&(i[c++]=l),f>=0&&f<=1&&(i[c++]=f)}}return c}function Rr(e,t,n){var r=e+n-2*t;return r===0?.5:(e-t)/r}function zr(e,t,n,r,i){var a=(t-e)*r+e,o=(n-t)*r+t,s=(o-a)*r+a;i[0]=e,i[1]=a,i[2]=s,i[3]=s,i[4]=o,i[5]=n}function Br(e,t,n,r,i,a,o,s,c){var l,u=.005,d=1/0;Cr[0]=o,Cr[1]=s;for(var f=0;f<1;f+=.05){wr[0]=Fr(e,n,i,f),wr[1]=Fr(t,r,a,f);var p=wt(Cr,wr);p<d&&(l=f,d=p)}d=1/0;for(var m=0;m<32&&!(u<br);m++){var h=l-u,g=l+u;wr[0]=Fr(e,n,i,h),wr[1]=Fr(t,r,a,h);var p=wt(wr,Cr);if(h>=0&&p<d)l=h,d=p;else{Tr[0]=Fr(e,n,i,g),Tr[1]=Fr(t,r,a,g);var _=wt(Tr,Cr);g<=1&&_<d?(l=g,d=_):u*=.5}}return c&&(c[0]=Fr(e,n,i,l),c[1]=Fr(t,r,a,l)),vr(d)}function Vr(e,t,n,r,i,a,o){for(var s=e,c=t,l=0,u=1/o,d=1;d<=o;d++){var f=d*u,p=Fr(e,n,i,f),m=Fr(t,r,a,f),h=p-s,g=m-c;l+=Math.sqrt(h*h+g*g),s=p,c=m}return l}var Hr=/cubic-bezier\(([0-9,\.e ]+)\)/;function Ur(e){var t=e&&Hr.exec(e);if(t){var n=t[1].split(`,`),r=+Ue(n[0]),i=+Ue(n[1]),a=+Ue(n[2]),o=+Ue(n[3]);if(isNaN(r+i+a+o))return;var s=[];return function(e){return e<=0?0:e>=1?1:Ar(0,r,a,1,e,s)&&Or(0,i,o,1,s[0])}}}var Wr=function(){function e(e){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=e.life||1e3,this._delay=e.delay||0,this.loop=e.loop||!1,this.onframe=e.onframe||tt,this.ondestroy=e.ondestroy||tt,this.onrestart=e.onrestart||tt,e.easing&&this.setEasing(e.easing)}return e.prototype.step=function(e,t){if(this._inited||=(this._startTime=e+this._delay,!0),this._paused)this._pausedTime+=t;else{var n=this._life,r=e-this._startTime-this._pausedTime,i=r/n;i<0&&(i=0),i=Math.min(i,1);var a=this.easingFunc,o=a?a(i):i;if(this.onframe(o),i===1){if(this.loop){var s=r%n;this._startTime=e-s,this._pausedTime=0,this.onrestart()}else return!0}return!1}},e.prototype.pause=function(){this._paused=!0},e.prototype.resume=function(){this._paused=!1},e.prototype.setEasing=function(e){this.easing=e,this.easingFunc=W(e)?e:gr[e]||Ur(e)},e}(),Gr=function(){function e(e){this.value=e}return e}(),Kr=function(){function e(){this._len=0}return e.prototype.insert=function(e){var t=new Gr(e);return this.insertEntry(t),t},e.prototype.insertEntry=function(e){this.head?(this.tail.next=e,e.prev=this.tail,e.next=null,this.tail=e):this.head=this.tail=e,this._len++},e.prototype.remove=function(e){var t=e.prev,n=e.next;t?t.next=n:this.head=n,n?n.prev=t:this.tail=t,e.next=e.prev=null,this._len--},e.prototype.len=function(){return this._len},e.prototype.clear=function(){this.head=this.tail=null,this._len=0},e}(),qr=function(){function e(e){this._list=new Kr,this._maxSize=10,this._map={},this._maxSize=e}return e.prototype.put=function(e,t){var n=this._list,r=this._map,i=null;if(r[e]==null){var a=n.len(),o=this._lastRemovedEntry;if(a>=this._maxSize&&a>0){var s=n.head;n.remove(s),delete r[s.key],i=s.value,this._lastRemovedEntry=s}o?o.value=t:o=new Gr(t),o.key=e,n.insertEntry(o),r[e]=o}return i},e.prototype.get=function(e){var t=this._map[e],n=this._list;if(t!=null)return t!==n.tail&&(n.remove(t),n.insertEntry(t)),t.value},e.prototype.clear=function(){this._list.clear(),this._map={}},e.prototype.len=function(){return this._list.len()},e}(),Jr=t({fastLerp:()=>pi,fastMapToColor:()=>mi,lerp:()=>hi,lift:()=>di,liftColor:()=>Ci,lum:()=>bi,mapToColor:()=>gi,modifyAlpha:()=>vi,modifyHSL:()=>_i,parse:()=>ci,parseCssFloat:()=>ei,parseCssInt:()=>$r,random:()=>xi,stringify:()=>yi,toHex:()=>fi}),Yr={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 Xr(e){return e=Math.round(e),e<0?0:e>255?255:e}function Zr(e){return e=Math.round(e),e<0?0:e>360?360:e}function Qr(e){return e<0?0:e>1?1:e}function $r(e){var t=e;return t.length&&t.charAt(t.length-1)===`%`?Xr(parseFloat(t)/100*255):Xr(parseInt(t,10))}function ei(e){var t=e;return t.length&&t.charAt(t.length-1)===`%`?Qr(parseFloat(t)/100):Qr(parseFloat(t))}function ti(e,t,n){return n<0?n+=1:n>1&&--n,n*6<1?e+(t-e)*n*6:n*2<1?t:n*3<2?e+(t-e)*(2/3-n)*6:e}function ni(e,t,n){return e+(t-e)*n}function ri(e,t,n,r,i){return e[0]=t,e[1]=n,e[2]=r,e[3]=i,e}function ii(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var ai=new qr(20),oi=null;function si(e,t){oi&&ii(oi,t),oi=ai.put(e,oi||t.slice())}function ci(e,t){if(e){t||=[];var n=ai.get(e);if(n)return ii(t,n);e+=``;var r=e.replace(/ /g,``).toLowerCase();if(r in Yr)return ii(t,Yr[r]),si(e,t),t;var i=r.length;if(r.charAt(0)===`#`){if(i===4||i===5){var a=parseInt(r.slice(1,4),16);if(!(a>=0&&a<=4095)){ri(t,0,0,0,1);return}return ri(t,(a&3840)>>4|(a&3840)>>8,a&240|(a&240)>>4,a&15|(a&15)<<4,i===5?parseInt(r.slice(4),16)/15:1),si(e,t),t}if(i===7||i===9){var a=parseInt(r.slice(1,7),16);if(!(a>=0&&a<=16777215)){ri(t,0,0,0,1);return}return ri(t,(a&16711680)>>16,(a&65280)>>8,a&255,i===9?parseInt(r.slice(7),16)/255:1),si(e,t),t}}else{var o=r.indexOf(`(`),s=r.indexOf(`)`);if(o!==-1&&s+1===i){var c=r.substr(0,o),l=r.substr(o+1,s-(o+1)).split(`,`),u=1;switch(c){case`rgba`:if(l.length!==4)return l.length===3?ri(t,+l[0],+l[1],+l[2],1):ri(t,0,0,0,1);u=ei(l.pop());case`rgb`:if(l.length>=3)return ri(t,$r(l[0]),$r(l[1]),$r(l[2]),l.length===3?u:ei(l[3])),si(e,t),t;ri(t,0,0,0,1);return;case`hsla`:if(l.length!==4){ri(t,0,0,0,1);return}return l[3]=ei(l[3]),li(l,t),si(e,t),t;case`hsl`:if(l.length!==3){ri(t,0,0,0,1);return}return li(l,t),si(e,t),t;default:return}}ri(t,0,0,0,1)}}}function li(e,t){var n=(parseFloat(e[0])%360+360)%360/360,r=ei(e[1]),i=ei(e[2]),a=i<=.5?i*(r+1):i+r-i*r,o=i*2-a;return t||=[],ri(t,Xr(ti(o,a,n+1/3)*255),Xr(ti(o,a,n)*255),Xr(ti(o,a,n-1/3)*255),1),e.length===4&&(t[3]=e[3]),t}function ui(e){if(e){var t=e[0]/255,n=e[1]/255,r=e[2]/255,i=Math.min(t,n,r),a=Math.max(t,n,r),o=a-i,s=(a+i)/2,c,l;if(o===0)c=0,l=0;else{l=s<.5?o/(a+i):o/(2-a-i);var u=((a-t)/6+o/2)/o,d=((a-n)/6+o/2)/o,f=((a-r)/6+o/2)/o;t===a?c=f-d:n===a?c=1/3+u-f:r===a&&(c=2/3+d-u),c<0&&(c+=1),c>1&&--c}var p=[c*360,l,s];return e[3]!=null&&p.push(e[3]),p}}function di(e,t){var n=ci(e);if(n){for(var r=0;r<3;r++)t<0?n[r]=n[r]*(1-t)|0:n[r]=(255-n[r])*t+n[r]|0,n[r]>255?n[r]=255:n[r]<0&&(n[r]=0);return yi(n,n.length===4?`rgba`:`rgb`)}}function fi(e){var t=ci(e);if(t)return((1<<24)+(t[0]<<16)+(t[1]<<8)+ +t[2]).toString(16).slice(1)}function pi(e,t,n){if(t&&t.length&&e>=0&&e<=1){n||=[];var r=e*(t.length-1),i=Math.floor(r),a=Math.ceil(r),o=t[i],s=t[a],c=r-i;return n[0]=Xr(ni(o[0],s[0],c)),n[1]=Xr(ni(o[1],s[1],c)),n[2]=Xr(ni(o[2],s[2],c)),n[3]=Qr(ni(o[3],s[3],c)),n}}var mi=pi;function hi(e,t,n){if(t&&t.length&&e>=0&&e<=1){var r=e*(t.length-1),i=Math.floor(r),a=Math.ceil(r),o=ci(t[i]),s=ci(t[a]),c=r-i,l=yi([Xr(ni(o[0],s[0],c)),Xr(ni(o[1],s[1],c)),Xr(ni(o[2],s[2],c)),Qr(ni(o[3],s[3],c))],`rgba`);return n?{color:l,leftIndex:i,rightIndex:a,value:r}:l}}var gi=hi;function _i(e,t,n,r){var i=ci(e);if(e)return i=ui(i),t!=null&&(i[0]=Zr(W(t)?t(i[0]):t)),n!=null&&(i[1]=ei(W(n)?n(i[1]):n)),r!=null&&(i[2]=ei(W(r)?r(i[2]):r)),yi(li(i),`rgba`)}function vi(e,t){var n=ci(e);if(n&&t!=null)return n[3]=Qr(t),yi(n,`rgba`)}function yi(e,t){if(e&&e.length){var n=e[0]+`,`+e[1]+`,`+e[2];return(t===`rgba`||t===`hsva`||t===`hsla`)&&(n+=`,`+e[3]),t+`(`+n+`)`}}function bi(e,t){var n=ci(e);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*t:0}function xi(){return yi([Math.round(Math.random()*255),Math.round(Math.random()*255),Math.round(Math.random()*255)],`rgb`)}var Si=new qr(100);function Ci(e){if(G(e)){var t=Si.get(e);return t||(t=di(e,-.1),Si.put(e,t)),t}if(Pe(e)){var n=L({},e);return n.colorStops=V(e.colorStops,function(e){return{offset:e.offset,color:di(e.color,-.1)}}),n}return e}var wi=Math.round;function Ti(e){var t;if(!e||e===`transparent`)e=`none`;else if(typeof e==`string`&&e.indexOf(`rgba`)>-1){var n=ci(e);n&&(e=`rgb(`+n[0]+`,`+n[1]+`,`+n[2]+`)`,t=n[3])}return{color:e,opacity:t??1}}var Ei=1e-4;function Di(e){return e<Ei&&e>-Ei}function Oi(e){return wi(e*1e3)/1e3}function ki(e){return wi(e*1e4)/1e4}function Ai(e){return`matrix(`+Oi(e[0])+`,`+Oi(e[1])+`,`+Oi(e[2])+`,`+Oi(e[3])+`,`+ki(e[4])+`,`+ki(e[5])+`)`}var ji={left:`start`,right:`end`,center:`middle`,middle:`middle`};function Mi(e,t,n){return n===`top`?e+=t/2:n===`bottom`&&(e-=t/2),e}function Ni(e){return e&&(e.shadowBlur||e.shadowOffsetX||e.shadowOffsetY)}function Pi(e){var t=e.style,n=e.getGlobalScale();return[t.shadowColor,(t.shadowBlur||0).toFixed(2),(t.shadowOffsetX||0).toFixed(2),(t.shadowOffsetY||0).toFixed(2),n[0],n[1]].join(`,`)}function Fi(e){return e&&!!e.image}function Ii(e){return e&&!!e.svgElement}function Li(e){return Fi(e)||Ii(e)}function Ri(e){return e.type===`linear`}function zi(e){return e.type===`radial`}function Bi(e){return e&&(e.type===`linear`||e.type===`radial`)}function Vi(e){return`url(#`+e+`)`}function Hi(e){var t=e.getGlobalScale(),n=Math.max(t[0],t[1]);return Math.max(Math.ceil(Math.log(n)/Math.log(10)),1)}function Ui(e){var t=e.x||0,n=e.y||0,r=(e.rotation||0)*nt,i=q(e.scaleX,1),a=q(e.scaleY,1),o=e.skewX||0,s=e.skewY||0,c=[];return(t||n)&&c.push(`translate(`+t+`px,`+n+`px)`),r&&c.push(`rotate(`+r+`)`),(i!==1||a!==1)&&c.push(`scale(`+i+`,`+a+`)`),(o||s)&&c.push(`skew(`+wi(o*nt)+`deg, `+wi(s*nt)+`deg)`),c.join(` `)}var Wi=(function(){return typeof Buffer<`u`&&typeof Buffer.from==`function`?function(e){return Buffer.from(e).toString(`base64`)}:typeof btoa==`function`&&typeof unescape==`function`&&typeof encodeURIComponent==`function`?function(e){return btoa(unescape(encodeURIComponent(e)))}:function(e){return null}})(),Gi=Array.prototype.slice;function Ki(e,t,n){return(t-e)*n+e}function qi(e,t,n,r){for(var i=t.length,a=0;a<i;a++)e[a]=Ki(t[a],n[a],r);return e}function Ji(e,t,n,r){for(var i=t.length,a=i&&t[0].length,o=0;o<i;o++){e[o]||(e[o]=[]);for(var s=0;s<a;s++)e[o][s]=Ki(t[o][s],n[o][s],r)}return e}function Yi(e,t,n,r){for(var i=t.length,a=0;a<i;a++)e[a]=t[a]+n[a]*r;return e}function Xi(e,t,n,r){for(var i=t.length,a=i&&t[0].length,o=0;o<i;o++){e[o]||(e[o]=[]);for(var s=0;s<a;s++)e[o][s]=t[o][s]+n[o][s]*r}return e}function Zi(e,t){for(var n=e.length,r=t.length,i=n>r?t:e,a=Math.min(n,r),o=i[a-1]||{color:[0,0,0,0],offset:0},s=a;s<Math.max(n,r);s++)i.push({offset:o.offset,color:o.color.slice()})}function Qi(e,t,n){var r=e,i=t;if(r.push&&i.push){var a=r.length,o=i.length;if(a!==o){if(a>o)r.length=o;else for(var s=a;s<o;s++)r.push(n===1?i[s]:Gi.call(i[s]))}for(var c=r[0]&&r[0].length,s=0;s<r.length;s++)if(n===1)isNaN(r[s])&&(r[s]=i[s]);else for(var l=0;l<c;l++)isNaN(r[s][l])&&(r[s][l]=i[s][l])}}function $i(e){if(Se(e)){var t=e.length;if(Se(e[0])){for(var n=[],r=0;r<t;r++)n.push(Gi.call(e[r]));return n}return Gi.call(e)}return e}function ea(e){return e[0]=Math.floor(e[0])||0,e[1]=Math.floor(e[1])||0,e[2]=Math.floor(e[2])||0,e[3]=e[3]==null?1:e[3],`rgba(`+e.join(`,`)+`)`}function ta(e){return Se(e&&e[0])?2:1}var na=0,ra=1,ia=2,aa=3,oa=4,sa=5,ca=6;function la(e){return e===oa||e===sa}function ua(e){return e===ra||e===ia}var da=[0,0,0,0],fa=function(){function e(e){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=e}return e.prototype.isFinished=function(){return this._finished},e.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},e.prototype.needsAnimate=function(){return this.keyframes.length>=1},e.prototype.getAdditiveTrack=function(){return this._additiveTrack},e.prototype.addKeyframe=function(e,t,n){this._needsSort=!0;var r=this.keyframes,i=r.length,a=!1,o=ca,s=t;if(Se(t)){var c=ta(t);o=c,(c===1&&!Ae(t[0])||c===2&&!Ae(t[0][0]))&&(a=!0)}else if(Ae(t)&&!Le(t))o=na;else if(G(t)){if(!isNaN(+t))o=na;else{var l=ci(t);l&&(s=l,o=aa)}}else if(Pe(t)){var u=L({},s);u.colorStops=V(t.colorStops,function(e){return{offset:e.offset,color:ci(e.color)}}),Ri(t)?o=oa:zi(t)&&(o=sa),s=u}i===0?this.valType=o:(o!==this.valType||o===ca)&&(a=!0),this.discrete=this.discrete||a;var d={time:e,value:s,rawValue:t,percent:0};return n&&(d.easing=n,d.easingFunc=W(n)?n:gr[n]||Ur(n)),r.push(d),d},e.prototype.prepare=function(e,t){var n=this.keyframes;this._needsSort&&n.sort(function(e,t){return e.time-t.time});for(var r=this.valType,i=n.length,a=n[i-1],o=this.discrete,s=ua(r),c=la(r),l=0;l<i;l++){var u=n[l],d=u.value,f=a.value;u.percent=u.time/e,o||(s&&l!==i-1?Qi(d,f,r):c&&Zi(d.colorStops,f.colorStops))}if(!o&&r!==sa&&t&&this.needsAnimate()&&t.needsAnimate()&&r===t.valType&&!t._finished){this._additiveTrack=t;for(var p=n[0].value,l=0;l<i;l++)r===na?n[l].additiveValue=n[l].value-p:r===aa?n[l].additiveValue=Yi([],n[l].value,p,-1):ua(r)&&(n[l].additiveValue=r===ra?Yi([],n[l].value,p,-1):Xi([],n[l].value,p,-1))}},e.prototype.step=function(e,t){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n=this._additiveTrack!=null,r=n?`additiveValue`:`value`,i=this.valType,a=this.keyframes,o=a.length,s=this.propName,c=i===aa,l,u=this._lastFr,d=Math.min,f,p;if(o===1)f=p=a[0];else{if(t<0)l=0;else if(t<this._lastFrP){for(l=d(u+1,o-1);l>=0&&!(a[l].percent<=t);l--);l=d(l,o-2)}else{for(l=u;l<o&&!(a[l].percent>t);l++);l=d(l-1,o-2)}p=a[l+1],f=a[l]}if(f&&p){this._lastFr=l,this._lastFrP=t;var m=p.percent-f.percent,h=m===0?1:d((t-f.percent)/m,1);p.easingFunc&&(h=p.easingFunc(h));var g=n?this._additiveValue:c?da:e[s];if((ua(i)||c)&&!g&&(g=this._additiveValue=[]),this.discrete)e[s]=h<1?f.rawValue:p.rawValue;else if(ua(i))i===ra?qi(g,f[r],p[r],h):Ji(g,f[r],p[r],h);else if(la(i)){var _=f[r],v=p[r],y=i===oa;e[s]={type:y?`linear`:`radial`,x:Ki(_.x,v.x,h),y:Ki(_.y,v.y,h),colorStops:V(_.colorStops,function(e,t){var n=v.colorStops[t];return{offset:Ki(e.offset,n.offset,h),color:ea(qi([],e.color,n.color,h))}}),global:v.global},y?(e[s].x2=Ki(_.x2,v.x2,h),e[s].y2=Ki(_.y2,v.y2,h)):e[s].r=Ki(_.r,v.r,h)}else if(c)qi(g,f[r],p[r],h),n||(e[s]=ea(g));else{var b=Ki(f[r],p[r],h);n?this._additiveValue=b:e[s]=b}n&&this._addToTarget(e)}}},e.prototype._addToTarget=function(e){var t=this.valType,n=this.propName,r=this._additiveValue;t===na?e[n]=e[n]+r:t===aa?(ci(e[n],da),Yi(da,da,r,1),e[n]=ea(da)):t===ra?Yi(e[n],e[n],r,1):t===ia&&Xi(e[n],e[n],r,1)},e}(),pa=function(){function e(e,t,n,r){this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=t,t&&r?he(`Can' use additive animation on looped animation.`):(this._additiveAnimators=r,this._allowDiscrete=n)}return e.prototype.getMaxTime=function(){return this._maxTime},e.prototype.getDelay=function(){return this._delay},e.prototype.getLoop=function(){return this._loop},e.prototype.getTarget=function(){return this._target},e.prototype.changeTarget=function(e){this._target=e},e.prototype.when=function(e,t,n){return this.whenWithKeys(e,t,H(t),n)},e.prototype.whenWithKeys=function(e,t,n,r){for(var i=this._tracks,a=0;a<n.length;a++){var o=n[a],s=i[o];if(!s){s=i[o]=new fa(o);var c=void 0,l=this._getAdditiveTrack(o);if(l){var u=l.keyframes,d=u[u.length-1];c=d&&d.value,l.valType===aa&&c&&(c=ea(c))}else c=this._target[o];if(c==null)continue;e>0&&s.addKeyframe(0,$i(c),r),this._trackKeys.push(o)}s.addKeyframe(e,$i(t[o]),r)}return this._maxTime=Math.max(this._maxTime,e),this},e.prototype.pause=function(){this._clip.pause(),this._paused=!0},e.prototype.resume=function(){this._clip.resume(),this._paused=!1},e.prototype.isPaused=function(){return!!this._paused},e.prototype.duration=function(e){return this._maxTime=e,this._force=!0,this},e.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var t=e.length,n=0;n<t;n++)e[n].call(this)},e.prototype._abortedCallback=function(){this._setTracksFinished();var e=this.animation,t=this._abortedCbs;if(e&&e.removeClip(this._clip),this._clip=null,t)for(var n=0;n<t.length;n++)t[n].call(this)},e.prototype._setTracksFinished=function(){for(var e=this._tracks,t=this._trackKeys,n=0;n<t.length;n++)e[t[n]].setFinished()},e.prototype._getAdditiveTrack=function(e){var t,n=this._additiveAnimators;if(n)for(var r=0;r<n.length;r++){var i=n[r].getTrack(e);i&&(t=i)}return t},e.prototype.start=function(e){if(!(this._started>0)){this._started=1;for(var t=this,n=[],r=this._maxTime||0,i=0;i<this._trackKeys.length;i++){var a=this._trackKeys[i],o=this._tracks[a],s=this._getAdditiveTrack(a),c=o.keyframes,l=c.length;if(o.prepare(r,s),o.needsAnimate()){if(!this._allowDiscrete&&o.discrete){var u=c[l-1];u&&(t._target[o.propName]=u.rawValue),o.setFinished()}else n.push(o)}}if(n.length||this._force){var d=new Wr({life:r,loop:this._loop,delay:this._delay||0,onframe:function(e){t._started=2;var r=t._additiveAnimators;if(r){for(var i=!1,a=0;a<r.length;a++)if(r[a]._clip){i=!0;break}i||(t._additiveAnimators=null)}for(var a=0;a<n.length;a++)n[a].step(t._target,e);var o=t._onframeCbs;if(o)for(var a=0;a<o.length;a++)o[a](t._target,e)},ondestroy:function(){t._doneCallback()}});this._clip=d,this.animation&&this.animation.addClip(d),e&&d.setEasing(e)}else this._doneCallback();return this}},e.prototype.stop=function(e){if(this._clip){var t=this._clip;e&&t.onframe(1),this._abortedCallback()}},e.prototype.delay=function(e){return this._delay=e,this},e.prototype.during=function(e){return e&&(this._onframeCbs||=[],this._onframeCbs.push(e)),this},e.prototype.done=function(e){return e&&(this._doneCbs||=[],this._doneCbs.push(e)),this},e.prototype.aborted=function(e){return e&&(this._abortedCbs||=[],this._abortedCbs.push(e)),this},e.prototype.getClip=function(){return this._clip},e.prototype.getTrack=function(e){return this._tracks[e]},e.prototype.getTracks=function(){var e=this;return V(this._trackKeys,function(t){return e._tracks[t]})},e.prototype.stopTracks=function(e,t){if(!e.length||!this._clip)return!0;for(var n=this._tracks,r=this._trackKeys,i=0;i<e.length;i++){var a=n[e[i]];a&&!a.isFinished()&&(t?a.step(this._target,1):this._started===1&&a.step(this._target,0),a.setFinished())}for(var o=!0,i=0;i<r.length;i++)if(!n[r[i]].isFinished()){o=!1;break}return o&&this._abortedCallback(),o},e.prototype.saveTo=function(e,t,n){if(e){t||=this._trackKeys;for(var r=0;r<t.length;r++){var i=t[r],a=this._tracks[i];if(a&&!a.isFinished()){var o=a.keyframes,s=o[n?0:o.length-1];s&&(e[i]=$i(s.rawValue))}}}},e.prototype.__changeFinalValue=function(e,t){t||=H(e);for(var n=0;n<t.length;n++){var r=t[n],i=this._tracks[r];if(i){var a=i.keyframes;if(a.length>1){var o=a.pop();i.addKeyframe(o.time,e[r]),i.prepare(this._maxTime,i.getAdditiveTrack())}}}},e}();function ma(){return new Date().getTime()}var ha=function(e){s(t,e);function t(t){var n=e.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,t||={},n.stage=t.stage||{},n}return t.prototype.addClip=function(e){e.animation&&this.removeClip(e),this._head?(this._tail.next=e,e.prev=this._tail,e.next=null,this._tail=e):this._head=this._tail=e,e.animation=this},t.prototype.addAnimator=function(e){e.animation=this;var t=e.getClip();t&&this.addClip(t)},t.prototype.removeClip=function(e){if(e.animation){var t=e.prev,n=e.next;t?t.next=n:this._head=n,n?n.prev=t:this._tail=t,e.next=e.prev=e.animation=null}},t.prototype.removeAnimator=function(e){var t=e.getClip();t&&this.removeClip(t),e.animation=null},t.prototype.update=function(e){for(var t=ma()-this._pausedTime,n=t-this._time,r=this._head;r;){var i=r.next;r.step(t,n)&&(r.ondestroy(),this.removeClip(r)),r=i}this._time=t,e||(this.trigger(`frame`,n),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var e=this;this._running=!0;function t(){e._running&&(hr(t),!e._paused&&e.update())}hr(t)},t.prototype.start=function(){this._running||(this._time=ma(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||=(this._pauseStart=ma(),!0)},t.prototype.resume=function(){this._paused&&=(this._pausedTime+=ma()-this._pauseStart,!1)},t.prototype.clear=function(){for(var e=this._head;e;){var t=e.next;e.prev=e.next=e.animation=null,e=t}this._head=this._tail=null},t.prototype.isFinished=function(){return this._head==null},t.prototype.animate=function(e,t){t||={},this.start();var n=new pa(e,t.loop);return this.addAnimator(n),n},t}(Mt),ga=300,_a=E.domSupported,va=(function(){var e=[`click`,`dblclick`,`mousewheel`,`wheel`,`mouseout`,`mouseup`,`mousedown`,`mousemove`,`contextmenu`],t=[`touchstart`,`touchend`,`touchmove`],n={pointerdown:1,pointerup:1,pointermove:1,pointerout:1};return{mouse:e,touch:t,pointer:V(e,function(e){var t=e.replace(`mouse`,`pointer`);return n.hasOwnProperty(t)?t:e})}})(),ya={mouse:[`mousemove`,`mouseup`],pointer:[`pointermove`,`pointerup`]},ba=!1;function xa(e){var t=e.pointerType;return t===`pen`||t===`touch`}function Sa(e){e.touching=!0,e.touchTimer!=null&&(clearTimeout(e.touchTimer),e.touchTimer=null),e.touchTimer=setTimeout(function(){e.touching=!1,e.touchTimer=null},700)}function Ca(e){e&&(e.zrByTouch=!0)}function wa(e,t){return $t(e.dom,new Ea(e,t),!0)}function Ta(e,t){for(var n=t,r=!1;n&&n.nodeType!==9&&!(r=n.domBelongToZr||n!==t&&n===e.painterRoot);)n=n.parentNode;return r}var Ea=function(){function e(e,t){this.stopPropagation=tt,this.stopImmediatePropagation=tt,this.preventDefault=tt,this.type=t.type,this.target=this.currentTarget=e.dom,this.pointerType=t.pointerType,this.clientX=t.clientX,this.clientY=t.clientY}return e}(),Da={mousedown:function(e){e=$t(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger(`mousedown`,e)},mousemove:function(e){e=$t(this.dom,e);var t=this.__mayPointerCapture;t&&(e.zrX!==t[0]||e.zrY!==t[1])&&this.__togglePointerCapture(!0),this.trigger(`mousemove`,e)},mouseup:function(e){e=$t(this.dom,e),this.__togglePointerCapture(!1),this.trigger(`mouseup`,e)},mouseout:function(e){e=$t(this.dom,e);var t=e.toElement||e.relatedTarget;Ta(this,t)||(this.__pointerCapturing&&(e.zrEventControl=`no_globalout`),this.trigger(`mouseout`,e))},wheel:function(e){ba=!0,e=$t(this.dom,e),this.trigger(`mousewheel`,e)},mousewheel:function(e){ba||(e=$t(this.dom,e),this.trigger(`mousewheel`,e))},touchstart:function(e){e=$t(this.dom,e),Ca(e),this.__lastTouchMoment=new Date,this.handler.processGesture(e,`start`),Da.mousemove.call(this,e),Da.mousedown.call(this,e)},touchmove:function(e){e=$t(this.dom,e),Ca(e),this.handler.processGesture(e,`change`),Da.mousemove.call(this,e)},touchend:function(e){e=$t(this.dom,e),Ca(e),this.handler.processGesture(e,`end`),Da.mouseup.call(this,e),+new Date-this.__lastTouchMoment<ga&&Da.click.call(this,e)},pointerdown:function(e){Da.mousedown.call(this,e)},pointermove:function(e){xa(e)||Da.mousemove.call(this,e)},pointerup:function(e){Da.mouseup.call(this,e)},pointerout:function(e){xa(e)||Da.mouseout.call(this,e)}};B([`click`,`dblclick`,`contextmenu`],function(e){Da[e]=function(t){t=$t(this.dom,t),this.trigger(e,t)}});var Oa={pointermove:function(e){xa(e)||Oa.mousemove.call(this,e)},pointerup:function(e){Oa.mouseup.call(this,e)},mousemove:function(e){this.trigger(`mousemove`,e)},mouseup:function(e){var t=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger(`mouseup`,e),t&&(e.zrEventControl=`only_globalout`,this.trigger(`mouseout`,e))}};function ka(e,t){var n=t.domHandlers;E.pointerEventsSupported?B(va.pointer,function(r){ja(t,r,function(t){n[r].call(e,t)})}):(E.touchEventsSupported&&B(va.touch,function(r){ja(t,r,function(i){n[r].call(e,i),Sa(t)})}),B(va.mouse,function(r){ja(t,r,function(i){i=Qt(i),t.touching||n[r].call(e,i)})}))}function Aa(e,t){E.pointerEventsSupported?B(ya.pointer,n):E.touchEventsSupported||B(ya.mouse,n);function n(n){function r(r){r=Qt(r),Ta(e,r.target)||(r=wa(e,r),t.domHandlers[n].call(e,r))}ja(t,n,r,{capture:!0})}}function ja(e,t,n,r){e.mounted[t]=n,e.listenerOpts[t]=r,tn(e.domTarget,t,n,r)}function Ma(e){var t=e.mounted;for(var n in t)t.hasOwnProperty(n)&&nn(e.domTarget,n,t[n],e.listenerOpts[n]);e.mounted={}}var Na=function(){function e(e,t){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=e,this.domHandlers=t}return e}(),Pa=function(e){s(t,e);function t(t,n){var r=e.call(this)||this;return r.__pointerCapturing=!1,r.dom=t,r.painterRoot=n,r._localHandlerScope=new Na(t,Da),_a&&(r._globalHandlerScope=new Na(document,Oa)),ka(r,r._localHandlerScope),r}return t.prototype.dispose=function(){Ma(this._localHandlerScope),_a&&Ma(this._globalHandlerScope)},t.prototype.setCursor=function(e){this.dom.style&&(this.dom.style.cursor=e||`default`)},t.prototype.__togglePointerCapture=function(e){if(this.__mayPointerCapture=null,_a&&+this.__pointerCapturing^e){this.__pointerCapturing=e;var t=this._globalHandlerScope;e?Aa(this,t):Ma(t)}},t}(Mt),Fa=1;E.hasGlobalWindow&&(Fa=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var Ia=Fa,La=.4,Ra=`#333`,za=`#ccc`,Ba=`#eee`,Va=dn,Ha=5e-5;function Ua(e){return e>Ha||e<-Ha}var Wa=[],Ga=[],Ka=un(),qa=Math.abs,Ja=function(){function e(){}return e.prototype.getLocalTransform=function(e){return Ya(this,e)},e.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},e.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},e.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},e.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},e.prototype.needLocalTransform=function(){return Ua(this.rotation)||Ua(this.x)||Ua(this.y)||Ua(this.scaleX-1)||Ua(this.scaleY-1)||Ua(this.skewX)||Ua(this.skewY)},e.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,t=this.needLocalTransform(),n=this.transform;t||e?(n||=un(),t?this.getLocalTransform(n):Va(n),e&&(t?pn(n,e,n):fn(n,e)),this.transform=n,this._resolveGlobalScaleRatio(n),this.invTransform=this.invTransform||un(),_n(this.invTransform,n)):n&&(Va(n),this.invTransform=null)},e.prototype._resolveGlobalScaleRatio=function(e){var t=this.globalScaleRatio;if(t!=null&&t!==1){this.getGlobalScale(Wa);var n=Wa[0]<0?-1:1,r=Wa[1]<0?-1:1,i=((Wa[0]-n)*t+n)/Wa[0]||0,a=((Wa[1]-r)*t+r)/Wa[1]||0;e[0]*=i,e[1]*=i,e[2]*=a,e[3]*=a}},e.prototype.getComputedTransform=function(){for(var e=this,t=[];e;)t.push(e),e=e.parent;for(;e=t.pop();)e.updateTransform();return this.transform},e.prototype.setLocalTransform=function(e){if(e){var t=e[0]*e[0]+e[1]*e[1],n=e[2]*e[2]+e[3]*e[3],r=Math.atan2(e[1],e[0]),i=Math.PI/2+r-Math.atan2(e[3],e[2]);n=Math.sqrt(n)*Math.cos(i),t=Math.sqrt(t),this.skewX=i,this.skewY=0,this.rotation=-r,this.x=+e[4],this.y=+e[5],this.scaleX=t,this.scaleY=n,this.originX=0,this.originY=0}},e.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,t=this.transform;e&&e.transform&&(e.invTransform=e.invTransform||un(),pn(Ga,e.invTransform,t),t=Ga);var n=this.originX,r=this.originY;(n||r)&&(Ka[4]=n,Ka[5]=r,pn(Ga,t,Ka),Ga[4]-=n,Ga[5]-=r,t=Ga),this.setLocalTransform(t)}},e.prototype.getGlobalScale=function(e){var t=this.transform;return e||=[],t?(e[0]=Math.sqrt(t[0]*t[0]+t[1]*t[1]),e[1]=Math.sqrt(t[2]*t[2]+t[3]*t[3]),t[0]<0&&(e[0]=-e[0]),t[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},e.prototype.transformCoordToLocal=function(e,t){var n=[e,t],r=this.invTransform;return r&&Dt(n,n,r),n},e.prototype.transformCoordToGlobal=function(e,t){var n=[e,t],r=this.transform;return r&&Dt(n,n,r),n},e.prototype.getLineScale=function(){var e=this.transform;return e&&qa(e[0]-1)>1e-10&&qa(e[3]-1)>1e-10?Math.sqrt(qa(e[0]*e[3]-e[2]*e[1])):1},e.prototype.copyTransform=function(e){Qa(this,e)},e.getLocalTransform=function(e,t){t||=[];var n=e.originX||0,r=e.originY||0,i=e.scaleX,a=e.scaleY,o=e.anchorX,s=e.anchorY,c=e.rotation||0,l=e.x,u=e.y,d=e.skewX?Math.tan(e.skewX):0,f=e.skewY?Math.tan(-e.skewY):0;if(n||r||o||s){var p=n+o,m=r+s;t[4]=-p*i-d*m*a,t[5]=-m*a-f*p*i}else t[4]=t[5]=0;return t[0]=i,t[3]=a,t[1]=f*i,t[2]=d*a,c&&hn(t,t,c),t[4]+=n+l,t[5]+=r+u,t},e.initDefaultProps=(function(){var t=e.prototype;t.scaleX=t.scaleY=t.globalScaleRatio=1,t.x=t.y=t.originX=t.originY=t.skewX=t.skewY=t.rotation=t.anchorX=t.anchorY=0})(),e}(),Ya=Ja.getLocalTransform;function Xa(){return new Ja}var Za=[`x`,`y`,`originX`,`originY`,`anchorX`,`anchorY`,`rotation`,`scaleX`,`scaleY`,`skewX`,`skewY`];function Qa(e,t){return ve(e,t,Za)}function $a(e){eo||=new qr(100),e||=`12px sans-serif`;var t=eo.get(e);return t||(t={font:e,strWidthCache:new qr(500),asciiWidthMap:null,asciiWidthMapTried:!1,stWideCharWidth:M.measureText(`国`,e).width,asciiCharWidth:M.measureText(`a`,e).width},eo.put(e,t)),t}var eo;function to(e){if(!(no>=ro)){e||=`12px sans-serif`;for(var t=[],n=+new Date,r=0;r<=127;r++)t[r]=M.measureText(String.fromCharCode(r),e).width;var i=+new Date-n;return i>16?no=ro:i>2&&no++,t}}var no=0,ro=5;function io(e,t){return e.asciiWidthMapTried||=(e.asciiWidthMap=to(e.font),!0),0<=t&&t<=127?e.asciiWidthMap==null?e.asciiCharWidth:e.asciiWidthMap[t]:e.stWideCharWidth}function ao(e,t){var n=e.strWidthCache,r=n.get(t);return r??(r=M.measureText(t,e.font).width,n.put(t,r)),r}function oo(e,t,n,r){var i=ao($a(t),e),a=uo(t);return new Y(co(0,i,n),lo(0,a,r),i,a)}function so(e,t,n,r){var i=((e||``)+``).split(`
|
|
1
|
+
import{a as e,r as t,t as n}from"./rolldown-runtime-sJBDdmOt.js";import{hc as r,qs as i}from"./loadShare-eager-dmdYQhAl.js";import{U as a}from"./bootstrap-Dllnekqb.js";var o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)};function s(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Class extends value `+String(t)+` is not a constructor or null`);o(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var c=function(){return c=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},c.apply(this,arguments)};function l(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function u(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})}function d(e,t){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},r,i,a,o={next:s(0),throw:s(1),return:s(2)};return typeof Symbol==`function`&&(o[Symbol.iterator]=function(){return this}),o;function s(e){return function(t){return c([e,t])}}function c(o){if(r)throw TypeError(`Generator is already executing.`);for(;n;)try{if(r=1,i&&(a=o[0]&2?i.return:o[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,o[1])).done)return a;switch(i=0,a&&(o=[o[0]&2,a.value]),o[0]){case 0:case 1:a=o;break;case 4:return n.label++,{value:o[1],done:!1};case 5:n.label++,i=o[1],o=[0];continue;case 7:o=n.ops.pop(),n.trys.pop();continue;default:if(a=n.trys,!(a=a.length>0&&a[a.length-1])&&(o[0]===6||o[0]===2)){n=0;continue}if(o[0]===3&&(!a||o[1]>a[0]&&o[1]<a[3])){n.label=o[1];break}if(o[0]===6&&n.label<a[1]){n.label=a[1],a=o;break}if(a&&n.label<a[2]){n.label=a[2],n.ops.push(o);break}a[2]&&n.ops.pop(),n.trys.pop();continue}o=t.call(e,n)}catch(e){o=[6,e],i=0}finally{r=a=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}}var f=n((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=1;e.default=function(){return`${t++}`}})),p=n((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:60,n=null;return function(){var r=this,i=[...arguments];clearTimeout(n),n=setTimeout(function(){e.apply(r,i)},t)}}})),m=n((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.SizeSensorId=e.SensorTabIndex=e.SensorClassName=void 0,e.SizeSensorId=`size-sensor-id`,e.SensorClassName=`size-sensor-object`,e.SensorTabIndex=`-1`})),h=n((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.createSensor=void 0;var t=r(p()),n=m();function r(e){return e&&e.__esModule?e:{default:e}}e.createSensor=function(e,r){var i=void 0,a=[],o=function(){getComputedStyle(e).position===`static`&&(e.style.position=`relative`);var t=document.createElement(`object`);return t.onload=function(){t.contentDocument.defaultView.addEventListener(`resize`,s),s()},t.style.display=`block`,t.style.position=`absolute`,t.style.top=`0`,t.style.left=`0`,t.style.height=`100%`,t.style.width=`100%`,t.style.overflow=`hidden`,t.style.pointerEvents=`none`,t.style.zIndex=`-1`,t.style.opacity=`0`,t.setAttribute(`class`,n.SensorClassName),t.setAttribute(`tabindex`,n.SensorTabIndex),t.type=`text/html`,e.appendChild(t),t.data=`about:blank`,t},s=(0,t.default)(function(){a.forEach(function(t){t(e)})}),c=function(e){i||=o(),a.indexOf(e)===-1&&a.push(e)},l=function(){i&&i.parentNode&&(i.contentDocument&&i.contentDocument.defaultView.removeEventListener(`resize`,s),i.parentNode.removeChild(i),e.removeAttribute(n.SizeSensorId),i=void 0,a=[],r&&r())};return{element:e,bind:c,destroy:l,unbind:function(e){var t=a.indexOf(e);t!==-1&&a.splice(t,1),a.length===0&&i&&l()}}}})),g=n((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.createSensor=void 0;var t=m(),n=r(p());function r(e){return e&&e.__esModule?e:{default:e}}e.createSensor=function(e,r){var i=void 0,a=[],o=(0,n.default)(function(){a.forEach(function(t){t(e)})}),s=function(){var t=new ResizeObserver(o);return t.observe(e),o(),t},c=function(e){i||=s(),a.indexOf(e)===-1&&a.push(e)},l=function(){i.disconnect(),a=[],i=void 0,e.removeAttribute(t.SizeSensorId),r&&r()};return{element:e,bind:c,destroy:l,unbind:function(e){var t=a.indexOf(e);t!==-1&&a.splice(t,1),a.length===0&&i&&l()}}}})),_=n((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.createSensor=void 0;var t=h(),n=g();e.createSensor=typeof ResizeObserver<`u`?n.createSensor:t.createSensor})),v=n((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.removeSensor=e.getSensor=e.Sensors=void 0;var t=i(f()),n=_(),r=m();function i(e){return e&&e.__esModule?e:{default:e}}var a={};e.Sensors=a;function o(e){e&&a[e]&&delete a[e]}e.getSensor=function(e){var i=e.getAttribute(r.SizeSensorId);if(i&&a[i])return a[i];var s=(0,t.default)();e.setAttribute(r.SizeSensorId,s);var c=(0,n.createSensor)(e,function(){return o(s)});return a[s]=c,c},e.removeSensor=function(e){var t=e.element.getAttribute(r.SizeSensorId);e.destroy(),o(t)}})),y=n((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.ver=e.clear=e.bind=void 0;var t=v();e.bind=function(e,n){var r=(0,t.getSensor)(e);return r.bind(n),function(){r.unbind(n)}},e.clear=function(e){var n=(0,t.getSensor)(e);(0,t.removeSensor)(n)},e.ver=`1.0.2`}))();function b(e,t){var n={};return t.forEach(function(t){n[t]=e[t]}),n}function x(e){return typeof e==`function`}function S(e){return typeof e==`string`}var C=e(a()),w=function(e){s(t,e);function t(t){var n=e.call(this,t)||this;return n.echarts=t.echarts,n.ele=null,n.isInitialResize=!0,n.eventHandlerRefs={},n}return t.prototype.componentDidMount=function(){this.renderNewEcharts()},t.prototype.componentDidUpdate=function(e){var t=this.props.shouldSetOption;if(!x(t)||t(e,this.props)){if(!(0,C.default)(e.theme,this.props.theme)||!(0,C.default)(e.opts,this.props.opts))this.dispose(),this.renderNewEcharts();else{var n=this.getEchartsInstance();(0,C.default)(e.onEvents,this.props.onEvents)||(this.unbindEvents(n),this.bindEvents(n,this.props.onEvents));var r=[`option`,`notMerge`,`replaceMerge`,`lazyUpdate`,`showLoading`,`loadingOption`];(0,C.default)(b(this.props,r),b(e,r))||this.updateEChartsOption(),(0,C.default)(e.style,this.props.style)&&(0,C.default)(e.className,this.props.className)||this.resize()}}},t.prototype.componentWillUnmount=function(){this.dispose()},t.prototype.initEchartsInstance=function(){return u(this,void 0,void 0,function(){var e=this;return d(this,function(t){return[2,new Promise(function(t){e.echarts.init(e.ele,e.props.theme,e.props.opts),e.getEchartsInstance().on(`finished`,function(){var n=e.ele.clientWidth,r=e.ele.clientHeight;e.echarts.dispose(e.ele);var i=c({width:n,height:r},e.props.opts);t(e.echarts.init(e.ele,e.props.theme,i))})})]})})},t.prototype.getEchartsInstance=function(){return this.echarts.getInstanceByDom(this.ele)},t.prototype.dispose=function(){if(this.ele){try{(0,y.clear)(this.ele)}catch(e){console.warn(e)}this.echarts.dispose(this.ele)}},t.prototype.renderNewEcharts=function(){return u(this,void 0,void 0,function(){var e,t,n,r,i,a,o=this;return d(this,function(s){switch(s.label){case 0:return e=this.props,t=e.onEvents,n=e.onChartReady,r=e.autoResize,i=r===void 0||r,[4,this.initEchartsInstance()];case 1:return s.sent(),a=this.updateEChartsOption(),this.bindEvents(a,t||{}),x(n)&&n(a),this.ele&&i&&(0,y.bind)(this.ele,function(){o.resize()}),[2]}})})},t.prototype.bindEvents=function(e,t){var n=this,r=function(t,r){if(S(t)&&x(r)){var i=function(t){r(t,e)};e.on(t,i),n.eventHandlerRefs[t]=i}};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&r(i,t[i])},t.prototype.unbindEvents=function(e){for(var t=0,n=Object.entries(this.eventHandlerRefs);t<n.length;t++){var r=n[t],i=r[0],a=r[1];e.off(i,a)}this.eventHandlerRefs={}},t.prototype.updateEChartsOption=function(){var e=this.props,t=e.option,n=e.notMerge,r=n!==void 0&&n,i=e.replaceMerge,a=i===void 0?null:i,o=e.lazyUpdate,s=o!==void 0&&o,c=e.showLoading,l=e.loadingOption,u=l===void 0?null:l,d=this.getEchartsInstance();return d.setOption(t,{notMerge:r,replaceMerge:a,lazyUpdate:s}),c?d.showLoading(u):d.hideLoading(),d},t.prototype.resize=function(){var e=this.getEchartsInstance();if(!this.isInitialResize)try{e.resize({width:`auto`,height:`auto`})}catch(e){console.warn(e)}this.isInitialResize=!1},t.prototype.render=function(){var e=this,t=this.props,n=t.style,r=t.className,a=r===void 0?``:r;t.echarts,t.option,t.theme,t.notMerge,t.replaceMerge,t.lazyUpdate,t.showLoading,t.loadingOption,t.opts,t.onChartReady,t.onEvents,t.shouldSetOption,t.autoResize;var o=l(t,[`style`,`className`,`echarts`,`option`,`theme`,`notMerge`,`replaceMerge`,`lazyUpdate`,`showLoading`,`loadingOption`,`opts`,`onChartReady`,`onEvents`,`shouldSetOption`,`autoResize`]),s=c({height:300},n);return i.createElement(`div`,c({ref:function(t){e.ele=t},style:s,className:`echarts-for-react ${a}`},o))},t}(r),T=function(){function e(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return e}(),E=new(function(){function e(){this.browser=new T,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow=typeof window<`u`}return e}());typeof wx==`object`&&typeof wx.getSystemInfoSync==`function`?(E.wxa=!0,E.touchEventsSupported=!0):typeof document>`u`&&typeof self<`u`?E.worker=!0:!E.hasGlobalWindow||`Deno`in window||typeof navigator<`u`&&typeof navigator.userAgent==`string`&&navigator.userAgent.indexOf(`Node.js`)>-1?(E.node=!0,E.svgSupported=!0):D(navigator.userAgent,E);function D(e,t){var n=t.browser,r=e.match(/Firefox\/([\d.]+)/),i=e.match(/MSIE\s([\d.]+)/)||e.match(/Trident\/.+?rv:(([\d.]+))/),a=e.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(e);if(r&&(n.firefox=!0,n.version=r[1]),i&&(n.ie=!0,n.version=i[1]),a&&(n.edge=!0,n.version=a[1],n.newEdge=+a[1].split(`.`)[0]>18),o&&(n.weChat=!0),t.svgSupported=typeof SVGRect<`u`,t.touchEventsSupported=`ontouchstart`in window&&!n.ie&&!n.edge,t.pointerEventsSupported=`onpointerdown`in window&&(n.edge||n.ie&&+n.version>=11),t.domSupported=typeof document<`u`){var s=document.documentElement.style;t.transform3dSupported=(n.ie&&`transition`in s||n.edge||`WebKitCSSMatrix`in window&&`m11`in new WebKitCSSMatrix||`MozPerspective`in s)&&!(`OTransition`in s),t.transformSupported=t.transform3dSupported||n.ie&&+n.version>=9}}var O=`12px sans-serif`,k=20,A=100,j=`007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N`;function ee(e){var t={};if(typeof JSON>`u`)return t;for(var n=0;n<e.length;n++){var r=String.fromCharCode(n+32);t[r]=(e.charCodeAt(n)-k)/A}return t}var te=ee(j),M={createCanvas:function(){return typeof document<`u`&&document.createElement(`canvas`)},measureText:(function(){var e,t;return function(n,r){if(!e){var i=M.createCanvas();e=i&&i.getContext(`2d`)}if(e)return t!==r&&(t=e.font=r||`12px sans-serif`),e.measureText(n);n||=``,r||=`12px sans-serif`;var a=/((?:\d+)?\.?\d*)px/.exec(r),o=a&&+a[1]||12,s=0;if(r.indexOf(`mono`)>=0)s=o*n.length;else for(var c=0;c<n.length;c++){var l=te[n[c]];s+=l==null?o:l*o}return{width:s}}})(),loadImage:function(e,t,n){var r=new Image;return r.onload=t,r.onerror=n,r.src=e,r},getTime:function(){return Date.now?Date.now():+new Date}};function ne(e){for(var t in M)M.hasOwnProperty(t)&&e[t]&&(M[t]=e[t])}var re=t({EPSILON:()=>rt,HashMap:()=>Xe,RADIAN_TO_DEGREE:()=>nt,assert:()=>He,assignProps:()=>ve,bind:()=>De,clone:()=>I,concatArray:()=>Ze,createCanvas:()=>ye,createHashMap:()=>J,createObject:()=>Qe,curry:()=>Oe,defaults:()=>R,disableUserSelect:()=>$e,each:()=>B,eqNaN:()=>Le,extend:()=>L,filter:()=>we,find:()=>Te,guid:()=>me,hasOwn:()=>et,indexOf:()=>z,inherits:()=>be,isArray:()=>U,isArrayLike:()=>Se,isBuiltInObject:()=>je,isDom:()=>Ne,isFunction:()=>W,isGradientObject:()=>Pe,isImagePatternObject:()=>Fe,isNumber:()=>Ae,isObject:()=>K,isPrimitive:()=>Ke,isRegExp:()=>Ie,isString:()=>G,isStringSafe:()=>ke,isTypedArray:()=>Me,keys:()=>H,logError:()=>he,map:()=>V,merge:()=>ge,mergeAll:()=>_e,mixin:()=>xe,noop:()=>tt,normalizeCssArray:()=>Ve,reduce:()=>Ce,retrieve:()=>Re,retrieve2:()=>q,retrieve3:()=>ze,setAsPrimitive:()=>Ge,slice:()=>Be,trim:()=>Ue}),ie=Ce([`Function`,`RegExp`,`Date`,`Error`,`CanvasGradient`,`CanvasPattern`,`Image`,`Canvas`],function(e,t){return e[`[object `+t+`]`]=!0,e},{}),ae=Ce([`Int8`,`Uint8`,`Uint8Clamped`,`Int16`,`Uint16`,`Int32`,`Uint32`,`Float32`,`Float64`],function(e,t){return e[`[object `+t+`Array]`]=!0,e},{}),N=Object.prototype.toString,oe=Array.prototype,se=oe.forEach,ce=oe.filter,le=oe.slice,ue=oe.map,de=function(){}.constructor,P=de?de.prototype:null,F=`__proto__`,fe=2311,pe=2**53-1;function me(){return fe>=pe&&(fe=0),fe++}function he(){var e=[...arguments];typeof console<`u`&&console.error.apply(console,e)}function I(e){if(typeof e!=`object`||!e)return e;var t=e,n=N.call(e);if(n===`[object Array]`){if(!Ke(e)){t=[];for(var r=0,i=e.length;r<i;r++)t[r]=I(e[r])}}else if(ae[n]){if(!Ke(e)){var a=e.constructor;if(a.from)t=a.from(e);else{t=new a(e.length);for(var r=0,i=e.length;r<i;r++)t[r]=e[r]}}}else if(!ie[n]&&!Ke(e)&&!Ne(e))for(var o in t={},e)e.hasOwnProperty(o)&&o!==F&&(t[o]=I(e[o]));return t}function ge(e,t,n){if(!K(t)||!K(e))return n?I(t):e;for(var r in t)if(t.hasOwnProperty(r)&&r!==F){var i=e[r],a=t[r];K(a)&&K(i)&&!U(a)&&!U(i)&&!Ne(a)&&!Ne(i)&&!je(a)&&!je(i)&&!Ke(a)&&!Ke(i)?ge(i,a,n):(n||!(r in e))&&(e[r]=I(t[r]))}return e}function _e(e,t){for(var n=e[0],r=1,i=e.length;r<i;r++)n=ge(n,e[r],t);return n}function L(e,t){if(Object.assign)Object.assign(e,t);else for(var n in t)t.hasOwnProperty(n)&&n!==F&&(e[n]=t[n]);return e}function ve(e,t,n){e||={};for(var r=0;r<n.length;r++){var i=n[r];e[i]=t[i]}return e}function R(e,t,n){for(var r=H(t),i=0,a=r.length;i<a;i++){var o=r[i];(n?t[o]!=null:e[o]==null)&&(e[o]=t[o])}return e}var ye=M.createCanvas;function z(e,t){if(e){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n}return-1}function be(e,t){var n=e.prototype;function r(){}for(var i in r.prototype=t.prototype,e.prototype=new r,n)n.hasOwnProperty(i)&&(e.prototype[i]=n[i]);e.prototype.constructor=e,e.superClass=t}function xe(e,t,n){if(e=`prototype`in e?e.prototype:e,t=`prototype`in t?t.prototype:t,Object.getOwnPropertyNames)for(var r=Object.getOwnPropertyNames(t),i=0;i<r.length;i++){var a=r[i];a!==`constructor`&&(n?t[a]!=null:e[a]==null)&&(e[a]=t[a])}else R(e,t,n)}function Se(e){return!e||typeof e==`string`?!1:typeof e.length==`number`}function B(e,t,n){if(e&&t){if(e.forEach&&e.forEach===se)e.forEach(t,n);else if(e.length===+e.length)for(var r=0,i=e.length;r<i;r++)t.call(n,e[r],r,e);else for(var a in e)e.hasOwnProperty(a)&&t.call(n,e[a],a,e)}}function V(e,t,n){if(!e)return[];if(!t)return Be(e);if(e.map&&e.map===ue)return e.map(t,n);for(var r=[],i=0,a=e.length;i<a;i++)r.push(t.call(n,e[i],i,e));return r}function Ce(e,t,n,r){if(e&&t){for(var i=0,a=e.length;i<a;i++)n=t.call(r,n,e[i],i,e);return n}}function we(e,t,n){if(!e)return[];if(!t)return Be(e);if(e.filter&&e.filter===ce)return e.filter(t,n);for(var r=[],i=0,a=e.length;i<a;i++)t.call(n,e[i],i,e)&&r.push(e[i]);return r}function Te(e,t,n){if(e&&t){for(var r=0,i=e.length;r<i;r++)if(t.call(n,e[r],r,e))return e[r]}}function H(e){if(!e)return[];if(Object.keys)return Object.keys(e);var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(n);return t}function Ee(e,t){var n=[...arguments].slice(2);return function(){return e.apply(t,n.concat(le.call(arguments)))}}var De=P&&W(P.bind)?P.call.bind(P.bind):Ee;function Oe(e){var t=[...arguments].slice(1);return function(){return e.apply(this,t.concat(le.call(arguments)))}}function U(e){return Array.isArray?Array.isArray(e):N.call(e)===`[object Array]`}function W(e){return typeof e==`function`}function G(e){return typeof e==`string`}function ke(e){return N.call(e)===`[object String]`}function Ae(e){return typeof e==`number`}function K(e){var t=typeof e;return t===`function`||!!e&&t===`object`}function je(e){return!!ie[N.call(e)]}function Me(e){return!!ae[N.call(e)]}function Ne(e){return typeof e==`object`&&typeof e.nodeType==`number`&&typeof e.ownerDocument==`object`}function Pe(e){return e.colorStops!=null}function Fe(e){return e.image!=null}function Ie(e){return N.call(e)===`[object RegExp]`}function Le(e){return e!==e}function Re(){for(var e=[...arguments],t=0,n=e.length;t<n;t++)if(e[t]!=null)return e[t]}function q(e,t){return e??t}function ze(e,t,n){return e??t??n}function Be(e){var t=[...arguments].slice(1);return le.apply(e,t)}function Ve(e){if(typeof e==`number`)return[e,e,e,e];var t=e.length;return t===2?[e[0],e[1],e[0],e[1]]:t===3?[e[0],e[1],e[2],e[1]]:e}function He(e,t){if(!e)throw Error(t)}function Ue(e){return e==null?null:typeof e.trim==`function`?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,``)}var We=`__ec_primitive__`;function Ge(e){e[We]=!0}function Ke(e){return e[We]}var qe=function(){function e(){this.data={}}return e.prototype.delete=function(e){var t=this.has(e);return t&&delete this.data[e],t},e.prototype.has=function(e){return this.data.hasOwnProperty(e)},e.prototype.get=function(e){return this.data[e]},e.prototype.set=function(e,t){return this.data[e]=t,this},e.prototype.keys=function(){return H(this.data)},e.prototype.forEach=function(e){var t=this.data;for(var n in t)t.hasOwnProperty(n)&&e(t[n],n)},e}(),Je=typeof Map==`function`;function Ye(){return Je?new Map:new qe}var Xe=function(){function e(t){var n=U(t);this.data=Ye();var r=this;t instanceof e?t.each(i):t&&B(t,i);function i(e,t){n?r.set(e,t):r.set(t,e)}}return e.prototype.hasKey=function(e){return this.data.has(e)},e.prototype.get=function(e){return this.data.get(e)},e.prototype.set=function(e,t){return this.data.set(e,t),t},e.prototype.each=function(e,t){this.data.forEach(function(n,r){e.call(t,n,r)})},e.prototype.keys=function(){var e=this.data.keys();return Je?Array.from(e):e},e.prototype.removeKey=function(e){this.data.delete(e)},e}();function J(e){return new Xe(e)}function Ze(e,t){for(var n=new e.constructor(e.length+t.length),r=0;r<e.length;r++)n[r]=e[r];for(var i=e.length,r=0;r<t.length;r++)n[r+i]=t[r];return n}function Qe(e,t){var n;if(Object.create)n=Object.create(e);else{var r=function(){};r.prototype=e,n=new r}return t&&L(n,t),n}function $e(e){var t=e.style;t.webkitUserSelect=`none`,t.userSelect=`none`,t.webkitTapHighlightColor=`rgba(0,0,0,0)`,t[`-webkit-touch-callout`]=`none`}function et(e,t){return e.hasOwnProperty(t)}function tt(){}var nt=180/Math.PI,rt=2**-52||2**-52,it=t({add:()=>lt,applyTransform:()=>Dt,clone:()=>st,copy:()=>ot,create:()=>at,dist:()=>St,distSquare:()=>wt,distance:()=>xt,distanceSquare:()=>Ct,div:()=>_t,dot:()=>vt,len:()=>ft,lenSquare:()=>mt,length:()=>pt,lengthSquare:()=>ht,lerp:()=>Et,max:()=>kt,min:()=>Ot,mul:()=>gt,negate:()=>Tt,normalize:()=>bt,scale:()=>yt,scaleAndAdd:()=>ut,set:()=>ct,sub:()=>dt});function at(e,t){return e??=0,t??=0,[e,t]}function ot(e,t){return e[0]=t[0],e[1]=t[1],e}function st(e){return[e[0],e[1]]}function ct(e,t,n){return e[0]=t,e[1]=n,e}function lt(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e}function ut(e,t,n,r){return e[0]=t[0]+n[0]*r,e[1]=t[1]+n[1]*r,e}function dt(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e}function ft(e){return Math.sqrt(mt(e))}var pt=ft;function mt(e){return e[0]*e[0]+e[1]*e[1]}var ht=mt;function gt(e,t,n){return e[0]=t[0]*n[0],e[1]=t[1]*n[1],e}function _t(e,t,n){return e[0]=t[0]/n[0],e[1]=t[1]/n[1],e}function vt(e,t){return e[0]*t[0]+e[1]*t[1]}function yt(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e}function bt(e,t){var n=ft(t);return n===0?(e[0]=0,e[1]=0):(e[0]=t[0]/n,e[1]=t[1]/n),e}function xt(e,t){return Math.sqrt((e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1]))}var St=xt;function Ct(e,t){return(e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1])}var wt=Ct;function Tt(e,t){return e[0]=-t[0],e[1]=-t[1],e}function Et(e,t,n,r){return e[0]=t[0]+r*(n[0]-t[0]),e[1]=t[1]+r*(n[1]-t[1]),e}function Dt(e,t,n){var r=t[0],i=t[1];return e[0]=n[0]*r+n[2]*i+n[4],e[1]=n[1]*r+n[3]*i+n[5],e}function Ot(e,t,n){return e[0]=Math.min(t[0],n[0]),e[1]=Math.min(t[1],n[1]),e}function kt(e,t,n){return e[0]=Math.max(t[0],n[0]),e[1]=Math.max(t[1],n[1]),e}var At=function(){function e(e,t){this.target=e,this.topTarget=t&&t.topTarget}return e}(),jt=function(){function e(e){this.handler=e,e.on(`mousedown`,this._dragStart,this),e.on(`mousemove`,this._drag,this),e.on(`mouseup`,this._dragEnd,this)}return e.prototype._dragStart=function(e){for(var t=e.target;t&&!t.draggable;)t=t.parent||t.__hostTarget;t&&(this._draggingTarget=t,t.dragging=!0,this._x=e.offsetX,this._y=e.offsetY,this.handler.dispatchToElement(new At(t,e),`dragstart`,e.event))},e.prototype._drag=function(e){var t=this._draggingTarget;if(t){var n=e.offsetX,r=e.offsetY,i=n-this._x,a=r-this._y;this._x=n,this._y=r,t.drift(i,a,e),this.handler.dispatchToElement(new At(t,e),`drag`,e.event);var o=this.handler.findHover(n,r,t).target,s=this._dropTarget;this._dropTarget=o,t!==o&&(s&&o!==s&&this.handler.dispatchToElement(new At(s,e),`dragleave`,e.event),o&&o!==s&&this.handler.dispatchToElement(new At(o,e),`dragenter`,e.event))}},e.prototype._dragEnd=function(e){var t=this._draggingTarget;t&&(t.dragging=!1),this.handler.dispatchToElement(new At(t,e),`dragend`,e.event),this._dropTarget&&this.handler.dispatchToElement(new At(this._dropTarget,e),`drop`,e.event),this._draggingTarget=null,this._dropTarget=null},e}(),Mt=function(){function e(e){e&&(this._$eventProcessor=e)}return e.prototype.on=function(e,t,n,r){this._$handlers||={};var i=this._$handlers;if(typeof t==`function`&&(r=n,n=t,t=null),!n||!e)return this;var a=this._$eventProcessor;t!=null&&a&&a.normalizeQuery&&(t=a.normalizeQuery(t)),i[e]||(i[e]=[]);for(var o=0;o<i[e].length;o++)if(i[e][o].h===n)return this;var s={h:n,query:t,ctx:r||this,callAtLast:n.zrEventfulCallAtLast},c=i[e].length-1,l=i[e][c];return l&&l.callAtLast?i[e].splice(c,0,s):i[e].push(s),this},e.prototype.isSilent=function(e){var t=this._$handlers;return!t||!t[e]||!t[e].length},e.prototype.off=function(e,t){var n=this._$handlers;if(!n)return this;if(!e)return this._$handlers={},this;if(t){if(n[e]){for(var r=[],i=0,a=n[e].length;i<a;i++)n[e][i].h!==t&&r.push(n[e][i]);n[e]=r}n[e]&&n[e].length===0&&delete n[e]}else delete n[e];return this},e.prototype.trigger=function(e){var t=[...arguments].slice(1);if(!this._$handlers)return this;var n=this._$handlers[e],r=this._$eventProcessor;if(n)for(var i=t.length,a=n.length,o=0;o<a;o++){var s=n[o];if(!(r&&r.filter&&s.query!=null&&!r.filter(e,s.query)))switch(i){case 0:s.h.call(s.ctx);break;case 1:s.h.call(s.ctx,t[0]);break;case 2:s.h.call(s.ctx,t[0],t[1]);break;default:s.h.apply(s.ctx,t)}}return r&&r.afterTrigger&&r.afterTrigger(e),this},e.prototype.triggerWithContext=function(e){var t=[...arguments].slice(1);if(!this._$handlers)return this;var n=this._$handlers[e],r=this._$eventProcessor;if(n)for(var i=t.length,a=t[i-1],o=n.length,s=0;s<o;s++){var c=n[s];if(!(r&&r.filter&&c.query!=null&&!r.filter(e,c.query)))switch(i){case 0:c.h.call(a);break;case 1:c.h.call(a,t[0]);break;case 2:c.h.call(a,t[0],t[1]);break;default:c.h.apply(a,t.slice(1,i-1))}}return r&&r.afterTrigger&&r.afterTrigger(e),this},e}(),Nt=Math.log(2);function Pt(e,t,n,r,i,a){var o=r+`-`+i,s=e.length;if(a.hasOwnProperty(o))return a[o];if(t===1){var c=Math.round(Math.log((1<<s)-1&~i)/Nt);return e[n][c]}for(var l=r|1<<n,u=n+1;r&1<<u;)u++;for(var d=0,f=0,p=0;f<s;f++){var m=1<<f;m&i||(d+=(p%2?-1:1)*e[n][f]*Pt(e,t-1,u,l,i|m,a),p++)}return a[o]=d,d}function Ft(e,t){var n=[[e[0],e[1],1,0,0,0,-t[0]*e[0],-t[0]*e[1]],[0,0,0,e[0],e[1],1,-t[1]*e[0],-t[1]*e[1]],[e[2],e[3],1,0,0,0,-t[2]*e[2],-t[2]*e[3]],[0,0,0,e[2],e[3],1,-t[3]*e[2],-t[3]*e[3]],[e[4],e[5],1,0,0,0,-t[4]*e[4],-t[4]*e[5]],[0,0,0,e[4],e[5],1,-t[5]*e[4],-t[5]*e[5]],[e[6],e[7],1,0,0,0,-t[6]*e[6],-t[6]*e[7]],[0,0,0,e[6],e[7],1,-t[7]*e[6],-t[7]*e[7]]],r={},i=Pt(n,8,0,0,0,r);if(i!==0){for(var a=[],o=0;o<8;o++)for(var s=0;s<8;s++)a[s]??(a[s]=0),a[s]+=((o+s)%2?-1:1)*Pt(n,7,+(o===0),1<<o,1<<s,r)/i*t[o];return function(e,t,n){var r=t*a[6]+n*a[7]+1;e[0]=(t*a[0]+n*a[1]+a[2])/r,e[1]=(t*a[3]+n*a[4]+a[5])/r}}}var It=`___zrEVENTSAVED`,Lt=[];function Rt(e,t,n,r,i){return Bt(Lt,t,r,i,!0)&&Bt(e,n,Lt[0],Lt[1])}function zt(e,t){e&&n(e),t&&n(t);function n(e){var t=e[It];t&&(t.clearMarkers&&t.clearMarkers(),delete e[It])}}function Bt(e,t,n,r,i){if(t.getBoundingClientRect&&E.domSupported&&!Ut(t)){var a=t[It]||(t[It]={}),o=Ht(Vt(t,a),a,i);if(o)return o(e,n,r),!0}return!1}function Vt(e,t){var n=t.markers;if(n)return n;n=t.markers=[];for(var r=[`left`,`right`],i=[`top`,`bottom`],a=0;a<4;a++){var o=document.createElement(`div`),s=o.style,c=a%2,l=(a>>1)%2;s.cssText=[`position: absolute`,`visibility: hidden`,`padding: 0`,`margin: 0`,`border-width: 0`,`user-select: none`,`width:0`,`height:0`,r[c]+`:0`,i[l]+`:0`,r[1-c]+`:auto`,i[1-l]+`:auto`,``].join(`!important;`),e.appendChild(o),n.push(o)}return t.clearMarkers=function(){B(n,function(e){e.parentNode&&e.parentNode.removeChild(e)})},n}function Ht(e,t,n){for(var r=n?`invTrans`:`trans`,i=t[r],a=t.srcCoords,o=[],s=[],c=!0,l=0;l<4;l++){var u=e[l].getBoundingClientRect(),d=2*l,f=u.left,p=u.top;o.push(f,p),c=c&&a&&f===a[d]&&p===a[d+1],s.push(e[l].offsetLeft,e[l].offsetTop)}return c&&i?i:(t.srcCoords=o,t[r]=n?Ft(s,o):Ft(o,s))}function Ut(e){return e.nodeName.toUpperCase()===`CANVAS`}var Wt=/([&<>"'])/g,Gt={"&":`&`,"<":`<`,">":`>`,'"':`"`,"'":`'`};function Kt(e){return e==null?``:(e+``).replace(Wt,function(e,t){return Gt[t]})}var qt=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Jt=[],Yt=E.browser.firefox&&+E.browser.version.split(`.`)[0]<39;function Xt(e,t,n,r){return n||={},r?Zt(e,t,n):Yt&&t.layerX!=null&&t.layerX!==t.offsetX?(n.zrX=t.layerX,n.zrY=t.layerY):t.offsetX==null?Zt(e,t,n):(n.zrX=t.offsetX,n.zrY=t.offsetY),n}function Zt(e,t,n){if(E.domSupported&&e.getBoundingClientRect){var r=t.clientX,i=t.clientY;if(Ut(e)){var a=e.getBoundingClientRect();n.zrX=r-a.left,n.zrY=i-a.top;return}if(Bt(Jt,e,r,i)){n.zrX=Jt[0],n.zrY=Jt[1];return}}n.zrX=n.zrY=0}function Qt(e){return e||window.event}function $t(e,t,n){if(t=Qt(t),t.zrX!=null)return t;var r=t.type;if(r&&r.indexOf(`touch`)>=0){var i=r===`touchend`?t.changedTouches[0]:t.targetTouches[0];i&&Xt(e,i,t,n)}else{Xt(e,t,t,n);var a=en(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var o=t.button;return t.which==null&&o!==void 0&&qt.test(t.type)&&(t.which=o&1?1:o&2?3:o&4?2:0),t}function en(e){var t=e.wheelDelta;if(t)return t;var n=e.deltaX,r=e.deltaY;if(n==null||r==null)return t;var i=Math.abs(r===0?n:r),a=r>0?-1:r<0?1:n>0?-1:1;return 3*i*a}function tn(e,t,n,r){e.addEventListener(t,n,r)}function nn(e,t,n,r){e.removeEventListener(t,n,r)}var rn=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0},an=function(){function e(){this._track=[]}return e.prototype.recognize=function(e,t,n){return this._doTrack(e,t,n),this._recognize(e)},e.prototype.clear=function(){return this._track.length=0,this},e.prototype._doTrack=function(e,t,n){var r=e.touches;if(r){for(var i={points:[],touches:[],target:t,event:e},a=0,o=r.length;a<o;a++){var s=r[a],c=Xt(n,s,{});i.points.push([c.zrX,c.zrY]),i.touches.push(s)}this._track.push(i)}},e.prototype._recognize=function(e){for(var t in cn)if(cn.hasOwnProperty(t)){var n=cn[t](this._track,e);if(n)return n}},e}();function on(e){var t=e[1][0]-e[0][0],n=e[1][1]-e[0][1];return Math.sqrt(t*t+n*n)}function sn(e){return[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]}var cn={pinch:function(e,t){var n=e.length;if(n){var r=(e[n-1]||{}).points,i=(e[n-2]||{}).points||r;if(i&&i.length>1&&r&&r.length>1){var a=on(r)/on(i);!isFinite(a)&&(a=1),t.pinchScale=a;var o=sn(r);return t.pinchX=o[0],t.pinchY=o[1],{type:`pinch`,target:e[0].target,event:t}}}}},ln=t({clone:()=>vn,copy:()=>fn,create:()=>un,identity:()=>dn,invert:()=>_n,mul:()=>pn,rotate:()=>hn,scale:()=>gn,translate:()=>mn});function un(){return[1,0,0,1,0,0]}function dn(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function fn(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function pn(e,t,n){var r=t[0]*n[0]+t[2]*n[1],i=t[1]*n[0]+t[3]*n[1],a=t[0]*n[2]+t[2]*n[3],o=t[1]*n[2]+t[3]*n[3],s=t[0]*n[4]+t[2]*n[5]+t[4],c=t[1]*n[4]+t[3]*n[5]+t[5];return e[0]=r,e[1]=i,e[2]=a,e[3]=o,e[4]=s,e[5]=c,e}function mn(e,t,n){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4]+n[0],e[5]=t[5]+n[1],e}function hn(e,t,n,r){r===void 0&&(r=[0,0]);var i=t[0],a=t[2],o=t[4],s=t[1],c=t[3],l=t[5],u=Math.sin(n),d=Math.cos(n);return e[0]=i*d+s*u,e[1]=-i*u+s*d,e[2]=a*d+c*u,e[3]=-a*u+d*c,e[4]=d*(o-r[0])+u*(l-r[1])+r[0],e[5]=d*(l-r[1])-u*(o-r[0])+r[1],e}function gn(e,t,n){var r=n[0],i=n[1];return e[0]=t[0]*r,e[1]=t[1]*i,e[2]=t[2]*r,e[3]=t[3]*i,e[4]=t[4]*r,e[5]=t[5]*i,e}function _n(e,t){var n=t[0],r=t[2],i=t[4],a=t[1],o=t[3],s=t[5],c=n*o-a*r;return c?(c=1/c,e[0]=o*c,e[1]=-a*c,e[2]=-r*c,e[3]=n*c,e[4]=(r*s-o*i)*c,e[5]=(a*i-n*s)*c,e):null}function vn(e){var t=un();return fn(t,e),t}var yn=function(){function e(e,t){this.x=e||0,this.y=t||0}return e.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},e.prototype.clone=function(){return new e(this.x,this.y)},e.prototype.set=function(e,t){return this.x=e,this.y=t,this},e.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},e.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},e.prototype.scale=function(e){this.x*=e,this.y*=e},e.prototype.scaleAndAdd=function(e,t){this.x+=e.x*t,this.y+=e.y*t},e.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},e.prototype.dot=function(e){return this.x*e.x+this.y*e.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 e=this.len();return this.x/=e,this.y/=e,this},e.prototype.distance=function(e){var t=this.x-e.x,n=this.y-e.y;return Math.sqrt(t*t+n*n)},e.prototype.distanceSquare=function(e){var t=this.x-e.x,n=this.y-e.y;return t*t+n*n},e.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},e.prototype.transform=function(e){if(e){var t=this.x,n=this.y;return this.x=e[0]*t+e[2]*n+e[4],this.y=e[1]*t+e[3]*n+e[5],this}},e.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},e.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},e.set=function(e,t,n){e.x=t,e.y=n},e.copy=function(e,t){e.x=t.x,e.y=t.y},e.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},e.lenSquare=function(e){return e.x*e.x+e.y*e.y},e.dot=function(e,t){return e.x*t.x+e.y*t.y},e.add=function(e,t,n){e.x=t.x+n.x,e.y=t.y+n.y},e.sub=function(e,t,n){e.x=t.x-n.x,e.y=t.y-n.y},e.scale=function(e,t,n){e.x=t.x*n,e.y=t.y*n},e.scaleAndAdd=function(e,t,n,r){e.x=t.x+n.x*r,e.y=t.y+n.y*r},e.lerp=function(e,t,n,r){var i=1-r;e.x=i*t.x+r*n.x,e.y=i*t.y+r*n.y},e}(),bn=Math.min,xn=Math.max,Sn=Math.abs,Cn=[`x`,`y`],wn=[`width`,`height`],Tn=new yn,En=new yn,Dn=new yn,On=new yn,kn=Un(),An=kn.minTv,jn=kn.maxTv,Mn=[0,0],Y=function(){function e(e,t,n,r){Pn(this,e,t,n,r)}return e.set=function(e,t,n,r,i){return r<0&&(t+=r,r=-r),i<0&&(n+=i,i=-i),e.x=t,e.y=n,e.width=r,e.height=i,e},e.prototype.union=function(e){var t=bn(e.x,this.x),n=bn(e.y,this.y);this.width=isFinite(this.x)&&isFinite(this.width)?xn(e.x+e.width,this.x+this.width)-t:e.width,this.height=isFinite(this.y)&&isFinite(this.height)?xn(e.y+e.height,this.y+this.height)-n:e.height,this.x=t,this.y=n},e.prototype.applyTransform=function(t){e.applyTransform(this,this,t)},e.prototype.calculateTransform=function(e){return In(un(),this,e)},e.prototype.intersect=function(t,n,r){return e.intersect(this,t,n,r)},e.intersect=function(t,n,r,i){r&&yn.set(r,0,0);var a=i&&i.outIntersectRect||null,o=i&&i.clamp;if(a&&(a.x=a.y=a.width=a.height=NaN),!t||!n)return!1;t instanceof e||(t=Pn(zn,t.x,t.y,t.width,t.height)),n instanceof e||(n=Pn(Bn,n.x,n.y,n.width,n.height));var s=!!r;kn.reset(i,s);var c=kn.touchThreshold,l=t.x+c,u=t.x+t.width-c,d=t.y+c,f=t.y+t.height-c,p=n.x+c,m=n.x+n.width-c,h=n.y+c,g=n.y+n.height-c;if(l>u||d>f||p>m||h>g)return!1;var _=!(u<p||m<l||f<h||g<d);return(s||a)&&(Mn[0]=1/0,Mn[1]=0,Hn(l,u,p,m,0,s,a,o),Hn(d,f,h,g,1,s,a,o),s&&yn.copy(r,_?kn.useDir?kn.dirMinTv:An:jn)),_},e.contain=function(e,t,n){return t>=e.x&&t<=e.x+e.width&&n>=e.y&&n<=e.y+e.height},e.prototype.contain=function(t,n){return e.contain(this,t,n)},e.prototype.clone=function(){return new e(this.x,this.y,this.width,this.height)},e.prototype.copy=function(e){Fn(this,e)},e.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},e.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},e.prototype.isZero=function(){return this.width===0||this.height===0},e.create=function(t){return new e(t?t.x:0,t?t.y:0,t?t.width:0,t?t.height:0)},e.copy=function(e,t){return e.x=t.x,e.y=t.y,e.width=t.width,e.height=t.height,e},e.applyTransform=function(e,t,n){if(!n)e!==t&&Fn(e,t);else if(n[1]<1e-5&&n[1]>-1e-5&&n[2]<1e-5&&n[2]>-1e-5){var r=n[0],i=n[3],a=n[4],o=n[5];e.x=t.x*r+a,e.y=t.y*i+o,e.width=t.width*r,e.height=t.height*i,e.width<0&&(e.x+=e.width,e.width=-e.width),e.height<0&&(e.y+=e.height,e.height=-e.height)}else{Tn.x=Dn.x=t.x,Tn.y=On.y=t.y,En.x=On.x=t.x+t.width,En.y=Dn.y=t.y+t.height,Tn.transform(n),On.transform(n),En.transform(n),Dn.transform(n),e.x=bn(Tn.x,En.x,Dn.x,On.x),e.y=bn(Tn.y,En.y,Dn.y,On.y);var s=xn(Tn.x,En.x,Dn.x,On.x),c=xn(Tn.y,En.y,Dn.y,On.y);e.width=s-e.x,e.height=c-e.y}},e.calculateTransform=function(e,t,n){var r=n.width/t.width,i=n.height/t.height;return e=dn(e||[]),mn(e,e,ct(Vn,-t.x,-t.y)),gn(e,e,ct(Vn,r,i)),mn(e,e,ct(Vn,n.x,n.y)),e},e}(),Nn=Y.create,Pn=Y.set,Fn=Y.copy,In=Y.calculateTransform,Ln=Y.applyTransform,Rn=Y.contain,zn=new Y(0,0,0,0),Bn=new Y(0,0,0,0),Vn=[];function Hn(e,t,n,r,i,a,o,s){var c=Sn(t-n),l=Sn(r-e),u=bn(c,l),d=Cn[i],f=Cn[1-i],p=wn[i];t<n||r<e?c<l?(a&&(jn[d]=-c),s&&(o[d]=t,o[p]=0)):(a&&(jn[d]=l),s&&(o[d]=e,o[p]=0)):(o&&(o[d]=xn(e,n),o[p]=bn(t,r)-o[d]),a&&(u<Mn[0]||kn.useDir)&&(Mn[0]=bn(u,Mn[0]),(c<l||!kn.bidirectional)&&(An[d]=c,An[f]=0,kn.useDir&&kn.calcDirMTV()),(c>=l||!kn.bidirectional)&&(An[d]=-l,An[f]=0,kn.useDir&&kn.calcDirMTV())))}function Un(){var e=0,t=new yn,n=new yn,r={minTv:new yn,maxTv:new yn,useDir:!1,dirMinTv:new yn,touchThreshold:0,bidirectional:!0,negativeSize:!1,reset:function(i,a){r.touchThreshold=0,i&&i.touchThreshold!=null&&(r.touchThreshold=xn(0,i.touchThreshold)),r.negativeSize=!1,a&&(r.minTv.set(1/0,1/0),r.maxTv.set(0,0),r.useDir=!1,i&&i.direction!=null&&(r.useDir=!0,r.dirMinTv.copy(r.minTv),n.copy(r.minTv),e=i.direction,r.bidirectional=i.bidirectional==null||!!i.bidirectional,r.bidirectional||t.set(Math.cos(e),Math.sin(e))))},calcDirMTV:function(){var a=r.minTv,o=r.dirMinTv,s=a.y*a.y+a.x*a.x,c=Math.sin(e),l=Math.cos(e),u=c*a.y+l*a.x;i(u)?i(a.x)&&i(a.y)&&o.set(0,0):(n.x=s*l/u,n.y=s*c/u,i(n.x)&&i(n.y)?o.set(0,0):(r.bidirectional||t.dot(n)>0)&&n.len()<o.len()&&o.copy(n))}};function i(e){return Sn(e)<1e-10}return r}var Wn=`silent`;function Gn(e,t,n){return{type:e,event:n,target: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:Kn}}function Kn(){rn(this.event)}var qn=function(e){s(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.handler=null,t}return t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t}(Mt),Jn=function(){function e(e,t){this.x=e,this.y=t}return e}(),Yn=[`click`,`dblclick`,`mousewheel`,`mouseout`,`mouseup`,`mousedown`,`mousemove`,`contextmenu`],Xn=new Y(0,0,0,0),Zn=function(e){s(t,e);function t(t,n,r,i,a){var o=e.call(this)||this;return o._hovered=new Jn(0,0),o.storage=t,o.painter=n,o.painterRoot=i,o._pointerSize=a,r||=new qn,o.proxy=null,o.setHandlerProxy(r),o._draggingMgr=new jt(o),o}return t.prototype.setHandlerProxy=function(e){this.proxy&&this.proxy.dispose(),e&&(B(Yn,function(t){e.on&&e.on(t,this[t],this)},this),e.handler=this),this.proxy=e},t.prototype.mousemove=function(e){var t=e.zrX,n=e.zrY,r=er(this,t,n),i=this._hovered,a=i.target;a&&!a.__zr&&(i=this.findHover(i.x,i.y),a=i.target);var o=this._hovered=r?new Jn(t,n):this.findHover(t,n),s=o.target,c=this.proxy;c.setCursor&&c.setCursor(s?s.cursor:`default`),a&&s!==a&&this.dispatchToElement(i,`mouseout`,e),this.dispatchToElement(o,`mousemove`,e),s&&s!==a&&this.dispatchToElement(o,`mouseover`,e)},t.prototype.mouseout=function(e){var t=e.zrEventControl;t!==`only_globalout`&&this.dispatchToElement(this._hovered,`mouseout`,e),t!==`no_globalout`&&this.trigger(`globalout`,{type:`globalout`,event:e})},t.prototype.resize=function(){this._hovered=new Jn(0,0)},t.prototype.dispatch=function(e,t){var n=this[e];n&&n.call(this,t)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(e){var t=this.proxy;t.setCursor&&t.setCursor(e)},t.prototype.dispatchToElement=function(e,t,n){e||={};var r=e.target;if(!(r&&r.silent)){for(var i=`on`+t,a=Gn(t,e,n);r&&(r[i]&&(a.cancelBubble=!!r[i].call(r,a)),r.trigger(t,a),r=r.__hostTarget?r.__hostTarget:r.parent,!a.cancelBubble););a.cancelBubble||(this.trigger(t,a),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(e){typeof e[i]==`function`&&e[i].call(e,a),e.trigger&&e.trigger(t,a)}))}},t.prototype.findHover=function(e,t,n){var r=this.storage.getDisplayList(),i=new Jn(e,t);if($n(r,i,e,t,n),this._pointerSize&&!i.target){for(var a=[],o=this._pointerSize,s=o/2,c=new Y(e-s,t-s,o,o),l=r.length-1;l>=0;l--){var u=r[l];u===n||u.ignore||u.ignoreCoarsePointer||u.parent&&u.parent.ignoreCoarsePointer||(Xn.copy(u.getBoundingRect()),u.transform&&Xn.applyTransform(u.transform),Xn.intersect(c)&&a.push(u))}if(a.length){for(var d=4,f=Math.PI/12,p=Math.PI*2,m=0;m<s;m+=d)for(var h=0;h<p;h+=f)if($n(a,i,e+m*Math.cos(h),t+m*Math.sin(h),n),i.target)return i}}return i},t.prototype.processGesture=function(e,t){this._gestureMgr||=new an;var n=this._gestureMgr;t===`start`&&n.clear();var r=n.recognize(e,this.findHover(e.zrX,e.zrY,null).target,this.proxy.dom);if(t===`end`&&n.clear(),r){var i=r.type;e.gestureEvent=i;var a=new Jn;a.target=r.target,this.dispatchToElement(a,i,r.event)}},t}(Mt);B([`click`,`mousedown`,`mouseup`,`mousewheel`,`dblclick`,`contextmenu`],function(e){Zn.prototype[e]=function(t){var n=t.zrX,r=t.zrY,i=er(this,n,r),a,o;if(e===`mouseup`&&i||(a=this.findHover(n,r),o=a.target),e===`mousedown`)this._downEl=o,this._downPoint=[t.zrX,t.zrY],this._upEl=o;else if(e===`mouseup`)this._upEl=o;else if(e===`click`){if(this._downEl!==this._upEl||!this._downPoint||St(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(a,e,t)}});function Qn(e,t,n){if(e[e.rectHover?`rectContain`:`contain`](t,n)){for(var r=e,i=void 0,a=!1;r;){if(r.ignoreClip&&(a=!0),!a){var o=r.getClipPath();if(o&&!o.contain(t,n))return!1}r.silent&&(i=!0);var s=r.__hostTarget;r=s?r.ignoreHostSilent?null:s:r.parent}return!i||Wn}return!1}function $n(e,t,n,r,i){for(var a=e.length-1;a>=0;a--){var o=e[a],s=void 0;if(o!==i&&!o.ignore&&(s=Qn(o,n,r))&&(!t.topTarget&&(t.topTarget=o),s!==Wn)){t.target=o;break}}}function er(e,t,n){var r=e.painter;return t<0||t>r.getWidth()||n<0||n>r.getHeight()}var tr=32,nr=7;function rr(e){for(var t=0;e>=tr;)t|=e&1,e>>=1;return e+t}function ir(e,t,n,r){var i=t+1;if(i===n)return 1;if(r(e[i++],e[t])<0){for(;i<n&&r(e[i],e[i-1])<0;)i++;ar(e,t,i)}else for(;i<n&&r(e[i],e[i-1])>=0;)i++;return i-t}function ar(e,t,n){for(n--;t<n;){var r=e[t];e[t++]=e[n],e[n--]=r}}function or(e,t,n,r,i){for(r===t&&r++;r<n;r++){for(var a=e[r],o=t,s=r,c;o<s;)c=o+s>>>1,i(a,e[c])<0?s=c:o=c+1;var l=r-o;switch(l){case 3:e[o+3]=e[o+2];case 2:e[o+2]=e[o+1];case 1:e[o+1]=e[o];break;default:for(;l>0;)e[o+l]=e[o+l-1],l--}e[o]=a}}function sr(e,t,n,r,i,a){var o=0,s=0,c=1;if(a(e,t[n+i])>0){for(s=r-i;c<s&&a(e,t[n+i+c])>0;)o=c,c=(c<<1)+1,c<=0&&(c=s);c>s&&(c=s),o+=i,c+=i}else{for(s=i+1;c<s&&a(e,t[n+i-c])<=0;)o=c,c=(c<<1)+1,c<=0&&(c=s);c>s&&(c=s);var l=o;o=i-c,c=i-l}for(o++;o<c;){var u=o+(c-o>>>1);a(e,t[n+u])>0?o=u+1:c=u}return c}function cr(e,t,n,r,i,a){var o=0,s=0,c=1;if(a(e,t[n+i])<0){for(s=i+1;c<s&&a(e,t[n+i-c])<0;)o=c,c=(c<<1)+1,c<=0&&(c=s);c>s&&(c=s);var l=o;o=i-c,c=i-l}else{for(s=r-i;c<s&&a(e,t[n+i+c])>=0;)o=c,c=(c<<1)+1,c<=0&&(c=s);c>s&&(c=s),o+=i,c+=i}for(o++;o<c;){var u=o+(c-o>>>1);a(e,t[n+u])<0?c=u:o=u+1}return c}function lr(e,t){var n=nr,r,i,a=0,o=[];r=[],i=[];function s(e,t){r[a]=e,i[a]=t,a+=1}function c(){for(;a>1;){var e=a-2;if(e>=1&&i[e-1]<=i[e]+i[e+1]||e>=2&&i[e-2]<=i[e]+i[e-1])i[e-1]<i[e+1]&&e--;else if(i[e]>i[e+1])break;u(e)}}function l(){for(;a>1;){var e=a-2;e>0&&i[e-1]<i[e+1]&&e--,u(e)}}function u(n){var o=r[n],s=i[n],c=r[n+1],l=i[n+1];i[n]=s+l,n===a-3&&(r[n+1]=r[n+2],i[n+1]=i[n+2]),a--;var u=cr(e[c],e,o,s,0,t);o+=u,s-=u,s!==0&&(l=sr(e[o+s-1],e,c,l,l-1,t),l!==0&&(s<=l?d(o,s,c,l):f(o,s,c,l)))}function d(r,i,a,s){var c=0;for(c=0;c<i;c++)o[c]=e[r+c];var l=0,u=a,d=r;if(e[d++]=e[u++],--s===0)for(c=0;c<i;c++)e[d+c]=o[l+c];else if(i===1){for(c=0;c<s;c++)e[d+c]=e[u+c];e[d+s]=o[l]}else{for(var f=n,p,m,h;;){p=0,m=0,h=!1;do if(t(e[u],o[l])<0){if(e[d++]=e[u++],m++,p=0,--s===0){h=!0;break}}else if(e[d++]=o[l++],p++,m=0,--i===1){h=!0;break}while((p|m)<f);if(h)break;do{if(p=cr(e[u],o,l,i,0,t),p!==0){for(c=0;c<p;c++)e[d+c]=o[l+c];if(d+=p,l+=p,i-=p,i<=1){h=!0;break}}if(e[d++]=e[u++],--s===0){h=!0;break}if(m=sr(o[l],e,u,s,0,t),m!==0){for(c=0;c<m;c++)e[d+c]=e[u+c];if(d+=m,u+=m,s-=m,s===0){h=!0;break}}if(e[d++]=o[l++],--i===1){h=!0;break}f--}while(p>=nr||m>=nr);if(h)break;f<0&&(f=0),f+=2}if(n=f,n<1&&(n=1),i===1){for(c=0;c<s;c++)e[d+c]=e[u+c];e[d+s]=o[l]}else if(i===0)throw Error();else for(c=0;c<i;c++)e[d+c]=o[l+c]}}function f(r,i,a,s){var c=0;for(c=0;c<s;c++)o[c]=e[a+c];var l=r+i-1,u=s-1,d=a+s-1,f=0,p=0;if(e[d--]=e[l--],--i===0)for(f=d-(s-1),c=0;c<s;c++)e[f+c]=o[c];else if(s===1){for(d-=i,l-=i,p=d+1,f=l+1,c=i-1;c>=0;c--)e[p+c]=e[f+c];e[d]=o[u]}else{for(var m=n;;){var h=0,g=0,_=!1;do if(t(o[u],e[l])<0){if(e[d--]=e[l--],h++,g=0,--i===0){_=!0;break}}else if(e[d--]=o[u--],g++,h=0,--s===1){_=!0;break}while((h|g)<m);if(_)break;do{if(h=i-cr(o[u],e,r,i,i-1,t),h!==0){for(d-=h,l-=h,i-=h,p=d+1,f=l+1,c=h-1;c>=0;c--)e[p+c]=e[f+c];if(i===0){_=!0;break}}if(e[d--]=o[u--],--s===1){_=!0;break}if(g=s-sr(e[l],o,0,s,s-1,t),g!==0){for(d-=g,u-=g,s-=g,p=d+1,f=u+1,c=0;c<g;c++)e[p+c]=o[f+c];if(s<=1){_=!0;break}}if(e[d--]=e[l--],--i===0){_=!0;break}m--}while(h>=nr||g>=nr);if(_)break;m<0&&(m=0),m+=2}if(n=m,n<1&&(n=1),s===1){for(d-=i,l-=i,p=d+1,f=l+1,c=i-1;c>=0;c--)e[p+c]=e[f+c];e[d]=o[u]}else if(s===0)throw Error();else for(f=d-(s-1),c=0;c<s;c++)e[f+c]=o[c]}}return{mergeRuns:c,forceMergeRuns:l,pushRun:s}}function ur(e,t,n,r){n||=0,r||=e.length;var i=r-n;if(!(i<2)){var a=0;if(i<tr)a=ir(e,n,r,t),or(e,n,r,n+a,t);else{var o=lr(e,t),s=rr(i);do{if(a=ir(e,n,r,t),a<s){var c=i;c>s&&(c=s),or(e,n,n+c,n+a,t),a=c}o.pushRun(n,a),o.mergeRuns(),i-=a,n+=a}while(i!==0);o.forceMergeRuns()}}}var dr=!1;function fr(){dr||(dr=!0,console.warn(`z / z2 / zlevel of displayable is invalid, which may cause unexpected errors`))}function pr(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var mr=function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=pr}return e.prototype.traverse=function(e,t){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(e,t)},e.prototype.getDisplayList=function(e,t){t||=!1;var n=this._displayList;return(e||!n.length)&&this.updateDisplayList(t),n},e.prototype.updateDisplayList=function(e){this._displayListLen=0;for(var t=this._roots,n=this._displayList,r=0,i=t.length;r<i;r++)this._updateAndAddDisplayable(t[r],null,e);n.length=this._displayListLen,ur(n,pr)},e.prototype._updateAndAddDisplayable=function(e,t,n){if(!e.ignore||n){e.beforeUpdate(),e.update(),e.afterUpdate();var r=e.getClipPath(),i=t&&t.length,a=0,o=e.__clipPaths;if(!e.ignoreClip&&(i||r)){if(o||=e.__clipPaths=[],i)for(var s=0;s<t.length;s++)o[a++]=t[s];for(var c=r,l=e;c;)c.parent=l,c.updateTransform(),o[a++]=c,l=c,c=c.getClipPath()}if(o&&(o.length=a),e.childrenRef){for(var u=e.childrenRef(),d=0;d<u.length;d++){var f=u[d];e.__dirty&&(f.__dirty|=1),this._updateAndAddDisplayable(f,o,n)}e.__dirty=0}else{var p=e;isNaN(p.z)&&(fr(),p.z=0),isNaN(p.z2)&&(fr(),p.z2=0),isNaN(p.zlevel)&&(fr(),p.zlevel=0),this._displayList[this._displayListLen++]=p}var m=e.getDecalElement&&e.getDecalElement();m&&this._updateAndAddDisplayable(m,o,n);var h=e.getTextGuideLine();h&&this._updateAndAddDisplayable(h,o,n);var g=e.getTextContent();g&&this._updateAndAddDisplayable(g,o,n)}},e.prototype.addRoot=function(e){e.__zr&&e.__zr.storage===this||this._roots.push(e)},e.prototype.delRoot=function(e){if(e instanceof Array)for(var t=0,n=e.length;t<n;t++)this.delRoot(e[t]);else{var r=z(this._roots,e);r>=0&&this._roots.splice(r,1)}},e.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},e.prototype.getRoots=function(){return this._roots},e.prototype.dispose=function(){this._displayList=null,this._roots=null},e}(),hr=E.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)},gr={linear:function(e){return e},quadraticIn:function(e){return e*e},quadraticOut:function(e){return e*(2-e)},quadraticInOut:function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)},cubicIn:function(e){return e*e*e},cubicOut:function(e){return--e*e*e+1},cubicInOut:function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},quarticIn:function(e){return e*e*e*e},quarticOut:function(e){return 1- --e*e*e*e},quarticInOut:function(e){return(e*=2)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)},quinticIn:function(e){return e*e*e*e*e},quinticOut:function(e){return--e*e*e*e*e+1},quinticInOut:function(e){return(e*=2)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},sinusoidalIn:function(e){return 1-Math.cos(e*Math.PI/2)},sinusoidalOut:function(e){return Math.sin(e*Math.PI/2)},sinusoidalInOut:function(e){return .5*(1-Math.cos(Math.PI*e))},exponentialIn:function(e){return e===0?0:1024**(e-1)},exponentialOut:function(e){return e===1?1:1-2**(-10*e)},exponentialInOut:function(e){return e===0?0:e===1?1:(e*=2)<1?.5*1024**(e-1):.5*(-(2**(-10*(e-1)))+2)},circularIn:function(e){return 1-Math.sqrt(1-e*e)},circularOut:function(e){return Math.sqrt(1- --e*e)},circularInOut:function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},elasticIn:function(e){var t,n=.1,r=.4;return e===0?0:e===1?1:(!n||n<1?(n=1,t=r/4):t=r*Math.asin(1/n)/(2*Math.PI),-(n*2**(10*--e)*Math.sin((e-t)*(2*Math.PI)/r)))},elasticOut:function(e){var t,n=.1,r=.4;return e===0?0:e===1?1:(!n||n<1?(n=1,t=r/4):t=r*Math.asin(1/n)/(2*Math.PI),n*2**(-10*e)*Math.sin((e-t)*(2*Math.PI)/r)+1)},elasticInOut:function(e){var t,n=.1,r=.4;return e===0?0:e===1?1:(!n||n<1?(n=1,t=r/4):t=r*Math.asin(1/n)/(2*Math.PI),(e*=2)<1?-.5*(n*2**(10*--e)*Math.sin((e-t)*(2*Math.PI)/r)):n*2**(-10*--e)*Math.sin((e-t)*(2*Math.PI)/r)*.5+1)},backIn:function(e){var t=1.70158;return e*e*((t+1)*e-t)},backOut:function(e){var t=1.70158;return--e*e*((t+1)*e+t)+1},backInOut:function(e){var t=2.5949095;return(e*=2)<1?.5*(e*e*((t+1)*e-t)):.5*((e-=2)*e*((t+1)*e+t)+2)},bounceIn:function(e){return 1-gr.bounceOut(1-e)},bounceOut:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},bounceInOut:function(e){return e<.5?gr.bounceIn(e*2)*.5:gr.bounceOut(e*2-1)*.5+.5}},_r=Math.pow,vr=Math.sqrt,yr=1e-8,br=1e-4,xr=vr(3),Sr=1/3,Cr=at(),wr=at(),Tr=at();function Er(e){return e>-yr&&e<yr}function Dr(e){return e>yr||e<-yr}function Or(e,t,n,r,i){var a=1-i;return a*a*(a*e+3*i*t)+i*i*(i*r+3*a*n)}function kr(e,t,n,r,i){var a=1-i;return 3*(((t-e)*a+2*(n-t)*i)*a+(r-n)*i*i)}function Ar(e,t,n,r,i,a){var o=r+3*(t-n)-e,s=3*(n-t*2+e),c=3*(t-e),l=e-i,u=s*s-3*o*c,d=s*c-9*o*l,f=c*c-3*s*l,p=0;if(Er(u)&&Er(d)){if(Er(s))a[0]=0;else{var m=-c/s;m>=0&&m<=1&&(a[p++]=m)}}else{var h=d*d-4*u*f;if(Er(h)){var g=d/u,m=-s/o+g,_=-g/2;m>=0&&m<=1&&(a[p++]=m),_>=0&&_<=1&&(a[p++]=_)}else if(h>0){var v=vr(h),y=u*s+1.5*o*(-d+v),b=u*s+1.5*o*(-d-v);y=y<0?-_r(-y,Sr):_r(y,Sr),b=b<0?-_r(-b,Sr):_r(b,Sr);var m=(-s-(y+b))/(3*o);m>=0&&m<=1&&(a[p++]=m)}else{var x=(2*u*s-3*o*d)/(2*vr(u*u*u)),S=Math.acos(x)/3,C=vr(u),w=Math.cos(S),m=(-s-2*C*w)/(3*o),_=(-s+C*(w+xr*Math.sin(S)))/(3*o),T=(-s+C*(w-xr*Math.sin(S)))/(3*o);m>=0&&m<=1&&(a[p++]=m),_>=0&&_<=1&&(a[p++]=_),T>=0&&T<=1&&(a[p++]=T)}}return p}function jr(e,t,n,r,i){var a=6*n-12*t+6*e,o=9*t+3*r-3*e-9*n,s=3*t-3*e,c=0;if(Er(o)){if(Dr(a)){var l=-s/a;l>=0&&l<=1&&(i[c++]=l)}}else{var u=a*a-4*o*s;if(Er(u))i[0]=-a/(2*o);else if(u>0){var d=vr(u),l=(-a+d)/(2*o),f=(-a-d)/(2*o);l>=0&&l<=1&&(i[c++]=l),f>=0&&f<=1&&(i[c++]=f)}}return c}function Mr(e,t,n,r,i,a){var o=(t-e)*i+e,s=(n-t)*i+t,c=(r-n)*i+n,l=(s-o)*i+o,u=(c-s)*i+s,d=(u-l)*i+l;a[0]=e,a[1]=o,a[2]=l,a[3]=d,a[4]=d,a[5]=u,a[6]=c,a[7]=r}function Nr(e,t,n,r,i,a,o,s,c,l,u){var d,f=.005,p=1/0,m,h,g,_;Cr[0]=c,Cr[1]=l;for(var v=0;v<1;v+=.05)wr[0]=Or(e,n,i,o,v),wr[1]=Or(t,r,a,s,v),g=wt(Cr,wr),g<p&&(d=v,p=g);p=1/0;for(var y=0;y<32&&!(f<br);y++)m=d-f,h=d+f,wr[0]=Or(e,n,i,o,m),wr[1]=Or(t,r,a,s,m),g=wt(wr,Cr),m>=0&&g<p?(d=m,p=g):(Tr[0]=Or(e,n,i,o,h),Tr[1]=Or(t,r,a,s,h),_=wt(Tr,Cr),h<=1&&_<p?(d=h,p=_):f*=.5);return u&&(u[0]=Or(e,n,i,o,d),u[1]=Or(t,r,a,s,d)),vr(p)}function Pr(e,t,n,r,i,a,o,s,c){for(var l=e,u=t,d=0,f=1/c,p=1;p<=c;p++){var m=p*f,h=Or(e,n,i,o,m),g=Or(t,r,a,s,m),_=h-l,v=g-u;d+=Math.sqrt(_*_+v*v),l=h,u=g}return d}function Fr(e,t,n,r){var i=1-r;return i*(i*e+2*r*t)+r*r*n}function Ir(e,t,n,r){return 2*((1-r)*(t-e)+r*(n-t))}function Lr(e,t,n,r,i){var a=e-2*t+n,o=2*(t-e),s=e-r,c=0;if(Er(a)){if(Dr(o)){var l=-s/o;l>=0&&l<=1&&(i[c++]=l)}}else{var u=o*o-4*a*s;if(Er(u)){var l=-o/(2*a);l>=0&&l<=1&&(i[c++]=l)}else if(u>0){var d=vr(u),l=(-o+d)/(2*a),f=(-o-d)/(2*a);l>=0&&l<=1&&(i[c++]=l),f>=0&&f<=1&&(i[c++]=f)}}return c}function Rr(e,t,n){var r=e+n-2*t;return r===0?.5:(e-t)/r}function zr(e,t,n,r,i){var a=(t-e)*r+e,o=(n-t)*r+t,s=(o-a)*r+a;i[0]=e,i[1]=a,i[2]=s,i[3]=s,i[4]=o,i[5]=n}function Br(e,t,n,r,i,a,o,s,c){var l,u=.005,d=1/0;Cr[0]=o,Cr[1]=s;for(var f=0;f<1;f+=.05){wr[0]=Fr(e,n,i,f),wr[1]=Fr(t,r,a,f);var p=wt(Cr,wr);p<d&&(l=f,d=p)}d=1/0;for(var m=0;m<32&&!(u<br);m++){var h=l-u,g=l+u;wr[0]=Fr(e,n,i,h),wr[1]=Fr(t,r,a,h);var p=wt(wr,Cr);if(h>=0&&p<d)l=h,d=p;else{Tr[0]=Fr(e,n,i,g),Tr[1]=Fr(t,r,a,g);var _=wt(Tr,Cr);g<=1&&_<d?(l=g,d=_):u*=.5}}return c&&(c[0]=Fr(e,n,i,l),c[1]=Fr(t,r,a,l)),vr(d)}function Vr(e,t,n,r,i,a,o){for(var s=e,c=t,l=0,u=1/o,d=1;d<=o;d++){var f=d*u,p=Fr(e,n,i,f),m=Fr(t,r,a,f),h=p-s,g=m-c;l+=Math.sqrt(h*h+g*g),s=p,c=m}return l}var Hr=/cubic-bezier\(([0-9,\.e ]+)\)/;function Ur(e){var t=e&&Hr.exec(e);if(t){var n=t[1].split(`,`),r=+Ue(n[0]),i=+Ue(n[1]),a=+Ue(n[2]),o=+Ue(n[3]);if(isNaN(r+i+a+o))return;var s=[];return function(e){return e<=0?0:e>=1?1:Ar(0,r,a,1,e,s)&&Or(0,i,o,1,s[0])}}}var Wr=function(){function e(e){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=e.life||1e3,this._delay=e.delay||0,this.loop=e.loop||!1,this.onframe=e.onframe||tt,this.ondestroy=e.ondestroy||tt,this.onrestart=e.onrestart||tt,e.easing&&this.setEasing(e.easing)}return e.prototype.step=function(e,t){if(this._inited||=(this._startTime=e+this._delay,!0),this._paused)this._pausedTime+=t;else{var n=this._life,r=e-this._startTime-this._pausedTime,i=r/n;i<0&&(i=0),i=Math.min(i,1);var a=this.easingFunc,o=a?a(i):i;if(this.onframe(o),i===1){if(this.loop){var s=r%n;this._startTime=e-s,this._pausedTime=0,this.onrestart()}else return!0}return!1}},e.prototype.pause=function(){this._paused=!0},e.prototype.resume=function(){this._paused=!1},e.prototype.setEasing=function(e){this.easing=e,this.easingFunc=W(e)?e:gr[e]||Ur(e)},e}(),Gr=function(){function e(e){this.value=e}return e}(),Kr=function(){function e(){this._len=0}return e.prototype.insert=function(e){var t=new Gr(e);return this.insertEntry(t),t},e.prototype.insertEntry=function(e){this.head?(this.tail.next=e,e.prev=this.tail,e.next=null,this.tail=e):this.head=this.tail=e,this._len++},e.prototype.remove=function(e){var t=e.prev,n=e.next;t?t.next=n:this.head=n,n?n.prev=t:this.tail=t,e.next=e.prev=null,this._len--},e.prototype.len=function(){return this._len},e.prototype.clear=function(){this.head=this.tail=null,this._len=0},e}(),qr=function(){function e(e){this._list=new Kr,this._maxSize=10,this._map={},this._maxSize=e}return e.prototype.put=function(e,t){var n=this._list,r=this._map,i=null;if(r[e]==null){var a=n.len(),o=this._lastRemovedEntry;if(a>=this._maxSize&&a>0){var s=n.head;n.remove(s),delete r[s.key],i=s.value,this._lastRemovedEntry=s}o?o.value=t:o=new Gr(t),o.key=e,n.insertEntry(o),r[e]=o}return i},e.prototype.get=function(e){var t=this._map[e],n=this._list;if(t!=null)return t!==n.tail&&(n.remove(t),n.insertEntry(t)),t.value},e.prototype.clear=function(){this._list.clear(),this._map={}},e.prototype.len=function(){return this._list.len()},e}(),Jr=t({fastLerp:()=>pi,fastMapToColor:()=>mi,lerp:()=>hi,lift:()=>di,liftColor:()=>Ci,lum:()=>bi,mapToColor:()=>gi,modifyAlpha:()=>vi,modifyHSL:()=>_i,parse:()=>ci,parseCssFloat:()=>ei,parseCssInt:()=>$r,random:()=>xi,stringify:()=>yi,toHex:()=>fi}),Yr={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 Xr(e){return e=Math.round(e),e<0?0:e>255?255:e}function Zr(e){return e=Math.round(e),e<0?0:e>360?360:e}function Qr(e){return e<0?0:e>1?1:e}function $r(e){var t=e;return t.length&&t.charAt(t.length-1)===`%`?Xr(parseFloat(t)/100*255):Xr(parseInt(t,10))}function ei(e){var t=e;return t.length&&t.charAt(t.length-1)===`%`?Qr(parseFloat(t)/100):Qr(parseFloat(t))}function ti(e,t,n){return n<0?n+=1:n>1&&--n,n*6<1?e+(t-e)*n*6:n*2<1?t:n*3<2?e+(t-e)*(2/3-n)*6:e}function ni(e,t,n){return e+(t-e)*n}function ri(e,t,n,r,i){return e[0]=t,e[1]=n,e[2]=r,e[3]=i,e}function ii(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var ai=new qr(20),oi=null;function si(e,t){oi&&ii(oi,t),oi=ai.put(e,oi||t.slice())}function ci(e,t){if(e){t||=[];var n=ai.get(e);if(n)return ii(t,n);e+=``;var r=e.replace(/ /g,``).toLowerCase();if(r in Yr)return ii(t,Yr[r]),si(e,t),t;var i=r.length;if(r.charAt(0)===`#`){if(i===4||i===5){var a=parseInt(r.slice(1,4),16);if(!(a>=0&&a<=4095)){ri(t,0,0,0,1);return}return ri(t,(a&3840)>>4|(a&3840)>>8,a&240|(a&240)>>4,a&15|(a&15)<<4,i===5?parseInt(r.slice(4),16)/15:1),si(e,t),t}if(i===7||i===9){var a=parseInt(r.slice(1,7),16);if(!(a>=0&&a<=16777215)){ri(t,0,0,0,1);return}return ri(t,(a&16711680)>>16,(a&65280)>>8,a&255,i===9?parseInt(r.slice(7),16)/255:1),si(e,t),t}}else{var o=r.indexOf(`(`),s=r.indexOf(`)`);if(o!==-1&&s+1===i){var c=r.substr(0,o),l=r.substr(o+1,s-(o+1)).split(`,`),u=1;switch(c){case`rgba`:if(l.length!==4)return l.length===3?ri(t,+l[0],+l[1],+l[2],1):ri(t,0,0,0,1);u=ei(l.pop());case`rgb`:if(l.length>=3)return ri(t,$r(l[0]),$r(l[1]),$r(l[2]),l.length===3?u:ei(l[3])),si(e,t),t;ri(t,0,0,0,1);return;case`hsla`:if(l.length!==4){ri(t,0,0,0,1);return}return l[3]=ei(l[3]),li(l,t),si(e,t),t;case`hsl`:if(l.length!==3){ri(t,0,0,0,1);return}return li(l,t),si(e,t),t;default:return}}ri(t,0,0,0,1)}}}function li(e,t){var n=(parseFloat(e[0])%360+360)%360/360,r=ei(e[1]),i=ei(e[2]),a=i<=.5?i*(r+1):i+r-i*r,o=i*2-a;return t||=[],ri(t,Xr(ti(o,a,n+1/3)*255),Xr(ti(o,a,n)*255),Xr(ti(o,a,n-1/3)*255),1),e.length===4&&(t[3]=e[3]),t}function ui(e){if(e){var t=e[0]/255,n=e[1]/255,r=e[2]/255,i=Math.min(t,n,r),a=Math.max(t,n,r),o=a-i,s=(a+i)/2,c,l;if(o===0)c=0,l=0;else{l=s<.5?o/(a+i):o/(2-a-i);var u=((a-t)/6+o/2)/o,d=((a-n)/6+o/2)/o,f=((a-r)/6+o/2)/o;t===a?c=f-d:n===a?c=1/3+u-f:r===a&&(c=2/3+d-u),c<0&&(c+=1),c>1&&--c}var p=[c*360,l,s];return e[3]!=null&&p.push(e[3]),p}}function di(e,t){var n=ci(e);if(n){for(var r=0;r<3;r++)t<0?n[r]=n[r]*(1-t)|0:n[r]=(255-n[r])*t+n[r]|0,n[r]>255?n[r]=255:n[r]<0&&(n[r]=0);return yi(n,n.length===4?`rgba`:`rgb`)}}function fi(e){var t=ci(e);if(t)return((1<<24)+(t[0]<<16)+(t[1]<<8)+ +t[2]).toString(16).slice(1)}function pi(e,t,n){if(t&&t.length&&e>=0&&e<=1){n||=[];var r=e*(t.length-1),i=Math.floor(r),a=Math.ceil(r),o=t[i],s=t[a],c=r-i;return n[0]=Xr(ni(o[0],s[0],c)),n[1]=Xr(ni(o[1],s[1],c)),n[2]=Xr(ni(o[2],s[2],c)),n[3]=Qr(ni(o[3],s[3],c)),n}}var mi=pi;function hi(e,t,n){if(t&&t.length&&e>=0&&e<=1){var r=e*(t.length-1),i=Math.floor(r),a=Math.ceil(r),o=ci(t[i]),s=ci(t[a]),c=r-i,l=yi([Xr(ni(o[0],s[0],c)),Xr(ni(o[1],s[1],c)),Xr(ni(o[2],s[2],c)),Qr(ni(o[3],s[3],c))],`rgba`);return n?{color:l,leftIndex:i,rightIndex:a,value:r}:l}}var gi=hi;function _i(e,t,n,r){var i=ci(e);if(e)return i=ui(i),t!=null&&(i[0]=Zr(W(t)?t(i[0]):t)),n!=null&&(i[1]=ei(W(n)?n(i[1]):n)),r!=null&&(i[2]=ei(W(r)?r(i[2]):r)),yi(li(i),`rgba`)}function vi(e,t){var n=ci(e);if(n&&t!=null)return n[3]=Qr(t),yi(n,`rgba`)}function yi(e,t){if(e&&e.length){var n=e[0]+`,`+e[1]+`,`+e[2];return(t===`rgba`||t===`hsva`||t===`hsla`)&&(n+=`,`+e[3]),t+`(`+n+`)`}}function bi(e,t){var n=ci(e);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*t:0}function xi(){return yi([Math.round(Math.random()*255),Math.round(Math.random()*255),Math.round(Math.random()*255)],`rgb`)}var Si=new qr(100);function Ci(e){if(G(e)){var t=Si.get(e);return t||(t=di(e,-.1),Si.put(e,t)),t}if(Pe(e)){var n=L({},e);return n.colorStops=V(e.colorStops,function(e){return{offset:e.offset,color:di(e.color,-.1)}}),n}return e}var wi=Math.round;function Ti(e){var t;if(!e||e===`transparent`)e=`none`;else if(typeof e==`string`&&e.indexOf(`rgba`)>-1){var n=ci(e);n&&(e=`rgb(`+n[0]+`,`+n[1]+`,`+n[2]+`)`,t=n[3])}return{color:e,opacity:t??1}}var Ei=1e-4;function Di(e){return e<Ei&&e>-Ei}function Oi(e){return wi(e*1e3)/1e3}function ki(e){return wi(e*1e4)/1e4}function Ai(e){return`matrix(`+Oi(e[0])+`,`+Oi(e[1])+`,`+Oi(e[2])+`,`+Oi(e[3])+`,`+ki(e[4])+`,`+ki(e[5])+`)`}var ji={left:`start`,right:`end`,center:`middle`,middle:`middle`};function Mi(e,t,n){return n===`top`?e+=t/2:n===`bottom`&&(e-=t/2),e}function Ni(e){return e&&(e.shadowBlur||e.shadowOffsetX||e.shadowOffsetY)}function Pi(e){var t=e.style,n=e.getGlobalScale();return[t.shadowColor,(t.shadowBlur||0).toFixed(2),(t.shadowOffsetX||0).toFixed(2),(t.shadowOffsetY||0).toFixed(2),n[0],n[1]].join(`,`)}function Fi(e){return e&&!!e.image}function Ii(e){return e&&!!e.svgElement}function Li(e){return Fi(e)||Ii(e)}function Ri(e){return e.type===`linear`}function zi(e){return e.type===`radial`}function Bi(e){return e&&(e.type===`linear`||e.type===`radial`)}function Vi(e){return`url(#`+e+`)`}function Hi(e){var t=e.getGlobalScale(),n=Math.max(t[0],t[1]);return Math.max(Math.ceil(Math.log(n)/Math.log(10)),1)}function Ui(e){var t=e.x||0,n=e.y||0,r=(e.rotation||0)*nt,i=q(e.scaleX,1),a=q(e.scaleY,1),o=e.skewX||0,s=e.skewY||0,c=[];return(t||n)&&c.push(`translate(`+t+`px,`+n+`px)`),r&&c.push(`rotate(`+r+`)`),(i!==1||a!==1)&&c.push(`scale(`+i+`,`+a+`)`),(o||s)&&c.push(`skew(`+wi(o*nt)+`deg, `+wi(s*nt)+`deg)`),c.join(` `)}var Wi=(function(){return typeof Buffer<`u`&&typeof Buffer.from==`function`?function(e){return Buffer.from(e).toString(`base64`)}:typeof btoa==`function`&&typeof unescape==`function`&&typeof encodeURIComponent==`function`?function(e){return btoa(unescape(encodeURIComponent(e)))}:function(e){return null}})(),Gi=Array.prototype.slice;function Ki(e,t,n){return(t-e)*n+e}function qi(e,t,n,r){for(var i=t.length,a=0;a<i;a++)e[a]=Ki(t[a],n[a],r);return e}function Ji(e,t,n,r){for(var i=t.length,a=i&&t[0].length,o=0;o<i;o++){e[o]||(e[o]=[]);for(var s=0;s<a;s++)e[o][s]=Ki(t[o][s],n[o][s],r)}return e}function Yi(e,t,n,r){for(var i=t.length,a=0;a<i;a++)e[a]=t[a]+n[a]*r;return e}function Xi(e,t,n,r){for(var i=t.length,a=i&&t[0].length,o=0;o<i;o++){e[o]||(e[o]=[]);for(var s=0;s<a;s++)e[o][s]=t[o][s]+n[o][s]*r}return e}function Zi(e,t){for(var n=e.length,r=t.length,i=n>r?t:e,a=Math.min(n,r),o=i[a-1]||{color:[0,0,0,0],offset:0},s=a;s<Math.max(n,r);s++)i.push({offset:o.offset,color:o.color.slice()})}function Qi(e,t,n){var r=e,i=t;if(r.push&&i.push){var a=r.length,o=i.length;if(a!==o){if(a>o)r.length=o;else for(var s=a;s<o;s++)r.push(n===1?i[s]:Gi.call(i[s]))}for(var c=r[0]&&r[0].length,s=0;s<r.length;s++)if(n===1)isNaN(r[s])&&(r[s]=i[s]);else for(var l=0;l<c;l++)isNaN(r[s][l])&&(r[s][l]=i[s][l])}}function $i(e){if(Se(e)){var t=e.length;if(Se(e[0])){for(var n=[],r=0;r<t;r++)n.push(Gi.call(e[r]));return n}return Gi.call(e)}return e}function ea(e){return e[0]=Math.floor(e[0])||0,e[1]=Math.floor(e[1])||0,e[2]=Math.floor(e[2])||0,e[3]=e[3]==null?1:e[3],`rgba(`+e.join(`,`)+`)`}function ta(e){return Se(e&&e[0])?2:1}var na=0,ra=1,ia=2,aa=3,oa=4,sa=5,ca=6;function la(e){return e===oa||e===sa}function ua(e){return e===ra||e===ia}var da=[0,0,0,0],fa=function(){function e(e){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=e}return e.prototype.isFinished=function(){return this._finished},e.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},e.prototype.needsAnimate=function(){return this.keyframes.length>=1},e.prototype.getAdditiveTrack=function(){return this._additiveTrack},e.prototype.addKeyframe=function(e,t,n){this._needsSort=!0;var r=this.keyframes,i=r.length,a=!1,o=ca,s=t;if(Se(t)){var c=ta(t);o=c,(c===1&&!Ae(t[0])||c===2&&!Ae(t[0][0]))&&(a=!0)}else if(Ae(t)&&!Le(t))o=na;else if(G(t)){if(!isNaN(+t))o=na;else{var l=ci(t);l&&(s=l,o=aa)}}else if(Pe(t)){var u=L({},s);u.colorStops=V(t.colorStops,function(e){return{offset:e.offset,color:ci(e.color)}}),Ri(t)?o=oa:zi(t)&&(o=sa),s=u}i===0?this.valType=o:(o!==this.valType||o===ca)&&(a=!0),this.discrete=this.discrete||a;var d={time:e,value:s,rawValue:t,percent:0};return n&&(d.easing=n,d.easingFunc=W(n)?n:gr[n]||Ur(n)),r.push(d),d},e.prototype.prepare=function(e,t){var n=this.keyframes;this._needsSort&&n.sort(function(e,t){return e.time-t.time});for(var r=this.valType,i=n.length,a=n[i-1],o=this.discrete,s=ua(r),c=la(r),l=0;l<i;l++){var u=n[l],d=u.value,f=a.value;u.percent=u.time/e,o||(s&&l!==i-1?Qi(d,f,r):c&&Zi(d.colorStops,f.colorStops))}if(!o&&r!==sa&&t&&this.needsAnimate()&&t.needsAnimate()&&r===t.valType&&!t._finished){this._additiveTrack=t;for(var p=n[0].value,l=0;l<i;l++)r===na?n[l].additiveValue=n[l].value-p:r===aa?n[l].additiveValue=Yi([],n[l].value,p,-1):ua(r)&&(n[l].additiveValue=r===ra?Yi([],n[l].value,p,-1):Xi([],n[l].value,p,-1))}},e.prototype.step=function(e,t){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n=this._additiveTrack!=null,r=n?`additiveValue`:`value`,i=this.valType,a=this.keyframes,o=a.length,s=this.propName,c=i===aa,l,u=this._lastFr,d=Math.min,f,p;if(o===1)f=p=a[0];else{if(t<0)l=0;else if(t<this._lastFrP){for(l=d(u+1,o-1);l>=0&&!(a[l].percent<=t);l--);l=d(l,o-2)}else{for(l=u;l<o&&!(a[l].percent>t);l++);l=d(l-1,o-2)}p=a[l+1],f=a[l]}if(f&&p){this._lastFr=l,this._lastFrP=t;var m=p.percent-f.percent,h=m===0?1:d((t-f.percent)/m,1);p.easingFunc&&(h=p.easingFunc(h));var g=n?this._additiveValue:c?da:e[s];if((ua(i)||c)&&!g&&(g=this._additiveValue=[]),this.discrete)e[s]=h<1?f.rawValue:p.rawValue;else if(ua(i))i===ra?qi(g,f[r],p[r],h):Ji(g,f[r],p[r],h);else if(la(i)){var _=f[r],v=p[r],y=i===oa;e[s]={type:y?`linear`:`radial`,x:Ki(_.x,v.x,h),y:Ki(_.y,v.y,h),colorStops:V(_.colorStops,function(e,t){var n=v.colorStops[t];return{offset:Ki(e.offset,n.offset,h),color:ea(qi([],e.color,n.color,h))}}),global:v.global},y?(e[s].x2=Ki(_.x2,v.x2,h),e[s].y2=Ki(_.y2,v.y2,h)):e[s].r=Ki(_.r,v.r,h)}else if(c)qi(g,f[r],p[r],h),n||(e[s]=ea(g));else{var b=Ki(f[r],p[r],h);n?this._additiveValue=b:e[s]=b}n&&this._addToTarget(e)}}},e.prototype._addToTarget=function(e){var t=this.valType,n=this.propName,r=this._additiveValue;t===na?e[n]=e[n]+r:t===aa?(ci(e[n],da),Yi(da,da,r,1),e[n]=ea(da)):t===ra?Yi(e[n],e[n],r,1):t===ia&&Xi(e[n],e[n],r,1)},e}(),pa=function(){function e(e,t,n,r){this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=t,t&&r?he(`Can' use additive animation on looped animation.`):(this._additiveAnimators=r,this._allowDiscrete=n)}return e.prototype.getMaxTime=function(){return this._maxTime},e.prototype.getDelay=function(){return this._delay},e.prototype.getLoop=function(){return this._loop},e.prototype.getTarget=function(){return this._target},e.prototype.changeTarget=function(e){this._target=e},e.prototype.when=function(e,t,n){return this.whenWithKeys(e,t,H(t),n)},e.prototype.whenWithKeys=function(e,t,n,r){for(var i=this._tracks,a=0;a<n.length;a++){var o=n[a],s=i[o];if(!s){s=i[o]=new fa(o);var c=void 0,l=this._getAdditiveTrack(o);if(l){var u=l.keyframes,d=u[u.length-1];c=d&&d.value,l.valType===aa&&c&&(c=ea(c))}else c=this._target[o];if(c==null)continue;e>0&&s.addKeyframe(0,$i(c),r),this._trackKeys.push(o)}s.addKeyframe(e,$i(t[o]),r)}return this._maxTime=Math.max(this._maxTime,e),this},e.prototype.pause=function(){this._clip.pause(),this._paused=!0},e.prototype.resume=function(){this._clip.resume(),this._paused=!1},e.prototype.isPaused=function(){return!!this._paused},e.prototype.duration=function(e){return this._maxTime=e,this._force=!0,this},e.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var t=e.length,n=0;n<t;n++)e[n].call(this)},e.prototype._abortedCallback=function(){this._setTracksFinished();var e=this.animation,t=this._abortedCbs;if(e&&e.removeClip(this._clip),this._clip=null,t)for(var n=0;n<t.length;n++)t[n].call(this)},e.prototype._setTracksFinished=function(){for(var e=this._tracks,t=this._trackKeys,n=0;n<t.length;n++)e[t[n]].setFinished()},e.prototype._getAdditiveTrack=function(e){var t,n=this._additiveAnimators;if(n)for(var r=0;r<n.length;r++){var i=n[r].getTrack(e);i&&(t=i)}return t},e.prototype.start=function(e){if(!(this._started>0)){this._started=1;for(var t=this,n=[],r=this._maxTime||0,i=0;i<this._trackKeys.length;i++){var a=this._trackKeys[i],o=this._tracks[a],s=this._getAdditiveTrack(a),c=o.keyframes,l=c.length;if(o.prepare(r,s),o.needsAnimate()){if(!this._allowDiscrete&&o.discrete){var u=c[l-1];u&&(t._target[o.propName]=u.rawValue),o.setFinished()}else n.push(o)}}if(n.length||this._force){var d=new Wr({life:r,loop:this._loop,delay:this._delay||0,onframe:function(e){t._started=2;var r=t._additiveAnimators;if(r){for(var i=!1,a=0;a<r.length;a++)if(r[a]._clip){i=!0;break}i||(t._additiveAnimators=null)}for(var a=0;a<n.length;a++)n[a].step(t._target,e);var o=t._onframeCbs;if(o)for(var a=0;a<o.length;a++)o[a](t._target,e)},ondestroy:function(){t._doneCallback()}});this._clip=d,this.animation&&this.animation.addClip(d),e&&d.setEasing(e)}else this._doneCallback();return this}},e.prototype.stop=function(e){if(this._clip){var t=this._clip;e&&t.onframe(1),this._abortedCallback()}},e.prototype.delay=function(e){return this._delay=e,this},e.prototype.during=function(e){return e&&(this._onframeCbs||=[],this._onframeCbs.push(e)),this},e.prototype.done=function(e){return e&&(this._doneCbs||=[],this._doneCbs.push(e)),this},e.prototype.aborted=function(e){return e&&(this._abortedCbs||=[],this._abortedCbs.push(e)),this},e.prototype.getClip=function(){return this._clip},e.prototype.getTrack=function(e){return this._tracks[e]},e.prototype.getTracks=function(){var e=this;return V(this._trackKeys,function(t){return e._tracks[t]})},e.prototype.stopTracks=function(e,t){if(!e.length||!this._clip)return!0;for(var n=this._tracks,r=this._trackKeys,i=0;i<e.length;i++){var a=n[e[i]];a&&!a.isFinished()&&(t?a.step(this._target,1):this._started===1&&a.step(this._target,0),a.setFinished())}for(var o=!0,i=0;i<r.length;i++)if(!n[r[i]].isFinished()){o=!1;break}return o&&this._abortedCallback(),o},e.prototype.saveTo=function(e,t,n){if(e){t||=this._trackKeys;for(var r=0;r<t.length;r++){var i=t[r],a=this._tracks[i];if(a&&!a.isFinished()){var o=a.keyframes,s=o[n?0:o.length-1];s&&(e[i]=$i(s.rawValue))}}}},e.prototype.__changeFinalValue=function(e,t){t||=H(e);for(var n=0;n<t.length;n++){var r=t[n],i=this._tracks[r];if(i){var a=i.keyframes;if(a.length>1){var o=a.pop();i.addKeyframe(o.time,e[r]),i.prepare(this._maxTime,i.getAdditiveTrack())}}}},e}();function ma(){return new Date().getTime()}var ha=function(e){s(t,e);function t(t){var n=e.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,t||={},n.stage=t.stage||{},n}return t.prototype.addClip=function(e){e.animation&&this.removeClip(e),this._head?(this._tail.next=e,e.prev=this._tail,e.next=null,this._tail=e):this._head=this._tail=e,e.animation=this},t.prototype.addAnimator=function(e){e.animation=this;var t=e.getClip();t&&this.addClip(t)},t.prototype.removeClip=function(e){if(e.animation){var t=e.prev,n=e.next;t?t.next=n:this._head=n,n?n.prev=t:this._tail=t,e.next=e.prev=e.animation=null}},t.prototype.removeAnimator=function(e){var t=e.getClip();t&&this.removeClip(t),e.animation=null},t.prototype.update=function(e){for(var t=ma()-this._pausedTime,n=t-this._time,r=this._head;r;){var i=r.next;r.step(t,n)&&(r.ondestroy(),this.removeClip(r)),r=i}this._time=t,e||(this.trigger(`frame`,n),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var e=this;this._running=!0;function t(){e._running&&(hr(t),!e._paused&&e.update())}hr(t)},t.prototype.start=function(){this._running||(this._time=ma(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||=(this._pauseStart=ma(),!0)},t.prototype.resume=function(){this._paused&&=(this._pausedTime+=ma()-this._pauseStart,!1)},t.prototype.clear=function(){for(var e=this._head;e;){var t=e.next;e.prev=e.next=e.animation=null,e=t}this._head=this._tail=null},t.prototype.isFinished=function(){return this._head==null},t.prototype.animate=function(e,t){t||={},this.start();var n=new pa(e,t.loop);return this.addAnimator(n),n},t}(Mt),ga=300,_a=E.domSupported,va=(function(){var e=[`click`,`dblclick`,`mousewheel`,`wheel`,`mouseout`,`mouseup`,`mousedown`,`mousemove`,`contextmenu`],t=[`touchstart`,`touchend`,`touchmove`],n={pointerdown:1,pointerup:1,pointermove:1,pointerout:1};return{mouse:e,touch:t,pointer:V(e,function(e){var t=e.replace(`mouse`,`pointer`);return n.hasOwnProperty(t)?t:e})}})(),ya={mouse:[`mousemove`,`mouseup`],pointer:[`pointermove`,`pointerup`]},ba=!1;function xa(e){var t=e.pointerType;return t===`pen`||t===`touch`}function Sa(e){e.touching=!0,e.touchTimer!=null&&(clearTimeout(e.touchTimer),e.touchTimer=null),e.touchTimer=setTimeout(function(){e.touching=!1,e.touchTimer=null},700)}function Ca(e){e&&(e.zrByTouch=!0)}function wa(e,t){return $t(e.dom,new Ea(e,t),!0)}function Ta(e,t){for(var n=t,r=!1;n&&n.nodeType!==9&&!(r=n.domBelongToZr||n!==t&&n===e.painterRoot);)n=n.parentNode;return r}var Ea=function(){function e(e,t){this.stopPropagation=tt,this.stopImmediatePropagation=tt,this.preventDefault=tt,this.type=t.type,this.target=this.currentTarget=e.dom,this.pointerType=t.pointerType,this.clientX=t.clientX,this.clientY=t.clientY}return e}(),Da={mousedown:function(e){e=$t(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger(`mousedown`,e)},mousemove:function(e){e=$t(this.dom,e);var t=this.__mayPointerCapture;t&&(e.zrX!==t[0]||e.zrY!==t[1])&&this.__togglePointerCapture(!0),this.trigger(`mousemove`,e)},mouseup:function(e){e=$t(this.dom,e),this.__togglePointerCapture(!1),this.trigger(`mouseup`,e)},mouseout:function(e){e=$t(this.dom,e);var t=e.toElement||e.relatedTarget;Ta(this,t)||(this.__pointerCapturing&&(e.zrEventControl=`no_globalout`),this.trigger(`mouseout`,e))},wheel:function(e){ba=!0,e=$t(this.dom,e),this.trigger(`mousewheel`,e)},mousewheel:function(e){ba||(e=$t(this.dom,e),this.trigger(`mousewheel`,e))},touchstart:function(e){e=$t(this.dom,e),Ca(e),this.__lastTouchMoment=new Date,this.handler.processGesture(e,`start`),Da.mousemove.call(this,e),Da.mousedown.call(this,e)},touchmove:function(e){e=$t(this.dom,e),Ca(e),this.handler.processGesture(e,`change`),Da.mousemove.call(this,e)},touchend:function(e){e=$t(this.dom,e),Ca(e),this.handler.processGesture(e,`end`),Da.mouseup.call(this,e),+new Date-this.__lastTouchMoment<ga&&Da.click.call(this,e)},pointerdown:function(e){Da.mousedown.call(this,e)},pointermove:function(e){xa(e)||Da.mousemove.call(this,e)},pointerup:function(e){Da.mouseup.call(this,e)},pointerout:function(e){xa(e)||Da.mouseout.call(this,e)}};B([`click`,`dblclick`,`contextmenu`],function(e){Da[e]=function(t){t=$t(this.dom,t),this.trigger(e,t)}});var Oa={pointermove:function(e){xa(e)||Oa.mousemove.call(this,e)},pointerup:function(e){Oa.mouseup.call(this,e)},mousemove:function(e){this.trigger(`mousemove`,e)},mouseup:function(e){var t=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger(`mouseup`,e),t&&(e.zrEventControl=`only_globalout`,this.trigger(`mouseout`,e))}};function ka(e,t){var n=t.domHandlers;E.pointerEventsSupported?B(va.pointer,function(r){ja(t,r,function(t){n[r].call(e,t)})}):(E.touchEventsSupported&&B(va.touch,function(r){ja(t,r,function(i){n[r].call(e,i),Sa(t)})}),B(va.mouse,function(r){ja(t,r,function(i){i=Qt(i),t.touching||n[r].call(e,i)})}))}function Aa(e,t){E.pointerEventsSupported?B(ya.pointer,n):E.touchEventsSupported||B(ya.mouse,n);function n(n){function r(r){r=Qt(r),Ta(e,r.target)||(r=wa(e,r),t.domHandlers[n].call(e,r))}ja(t,n,r,{capture:!0})}}function ja(e,t,n,r){e.mounted[t]=n,e.listenerOpts[t]=r,tn(e.domTarget,t,n,r)}function Ma(e){var t=e.mounted;for(var n in t)t.hasOwnProperty(n)&&nn(e.domTarget,n,t[n],e.listenerOpts[n]);e.mounted={}}var Na=function(){function e(e,t){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=e,this.domHandlers=t}return e}(),Pa=function(e){s(t,e);function t(t,n){var r=e.call(this)||this;return r.__pointerCapturing=!1,r.dom=t,r.painterRoot=n,r._localHandlerScope=new Na(t,Da),_a&&(r._globalHandlerScope=new Na(document,Oa)),ka(r,r._localHandlerScope),r}return t.prototype.dispose=function(){Ma(this._localHandlerScope),_a&&Ma(this._globalHandlerScope)},t.prototype.setCursor=function(e){this.dom.style&&(this.dom.style.cursor=e||`default`)},t.prototype.__togglePointerCapture=function(e){if(this.__mayPointerCapture=null,_a&&+this.__pointerCapturing^e){this.__pointerCapturing=e;var t=this._globalHandlerScope;e?Aa(this,t):Ma(t)}},t}(Mt),Fa=1;E.hasGlobalWindow&&(Fa=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var Ia=Fa,La=.4,Ra=`#333`,za=`#ccc`,Ba=`#eee`,Va=dn,Ha=5e-5;function Ua(e){return e>Ha||e<-Ha}var Wa=[],Ga=[],Ka=un(),qa=Math.abs,Ja=function(){function e(){}return e.prototype.getLocalTransform=function(e){return Ya(this,e)},e.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},e.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},e.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},e.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},e.prototype.needLocalTransform=function(){return Ua(this.rotation)||Ua(this.x)||Ua(this.y)||Ua(this.scaleX-1)||Ua(this.scaleY-1)||Ua(this.skewX)||Ua(this.skewY)},e.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,t=this.needLocalTransform(),n=this.transform;t||e?(n||=un(),t?this.getLocalTransform(n):Va(n),e&&(t?pn(n,e,n):fn(n,e)),this.transform=n,this._resolveGlobalScaleRatio(n),this.invTransform=this.invTransform||un(),_n(this.invTransform,n)):n&&(Va(n),this.invTransform=null)},e.prototype._resolveGlobalScaleRatio=function(e){var t=this.globalScaleRatio;if(t!=null&&t!==1){this.getGlobalScale(Wa);var n=Wa[0]<0?-1:1,r=Wa[1]<0?-1:1,i=((Wa[0]-n)*t+n)/Wa[0]||0,a=((Wa[1]-r)*t+r)/Wa[1]||0;e[0]*=i,e[1]*=i,e[2]*=a,e[3]*=a}},e.prototype.getComputedTransform=function(){for(var e=this,t=[];e;)t.push(e),e=e.parent;for(;e=t.pop();)e.updateTransform();return this.transform},e.prototype.setLocalTransform=function(e){if(e){var t=e[0]*e[0]+e[1]*e[1],n=e[2]*e[2]+e[3]*e[3],r=Math.atan2(e[1],e[0]),i=Math.PI/2+r-Math.atan2(e[3],e[2]);n=Math.sqrt(n)*Math.cos(i),t=Math.sqrt(t),this.skewX=i,this.skewY=0,this.rotation=-r,this.x=+e[4],this.y=+e[5],this.scaleX=t,this.scaleY=n,this.originX=0,this.originY=0}},e.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,t=this.transform;e&&e.transform&&(e.invTransform=e.invTransform||un(),pn(Ga,e.invTransform,t),t=Ga);var n=this.originX,r=this.originY;(n||r)&&(Ka[4]=n,Ka[5]=r,pn(Ga,t,Ka),Ga[4]-=n,Ga[5]-=r,t=Ga),this.setLocalTransform(t)}},e.prototype.getGlobalScale=function(e){var t=this.transform;return e||=[],t?(e[0]=Math.sqrt(t[0]*t[0]+t[1]*t[1]),e[1]=Math.sqrt(t[2]*t[2]+t[3]*t[3]),t[0]<0&&(e[0]=-e[0]),t[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},e.prototype.transformCoordToLocal=function(e,t){var n=[e,t],r=this.invTransform;return r&&Dt(n,n,r),n},e.prototype.transformCoordToGlobal=function(e,t){var n=[e,t],r=this.transform;return r&&Dt(n,n,r),n},e.prototype.getLineScale=function(){var e=this.transform;return e&&qa(e[0]-1)>1e-10&&qa(e[3]-1)>1e-10?Math.sqrt(qa(e[0]*e[3]-e[2]*e[1])):1},e.prototype.copyTransform=function(e){Qa(this,e)},e.getLocalTransform=function(e,t){t||=[];var n=e.originX||0,r=e.originY||0,i=e.scaleX,a=e.scaleY,o=e.anchorX,s=e.anchorY,c=e.rotation||0,l=e.x,u=e.y,d=e.skewX?Math.tan(e.skewX):0,f=e.skewY?Math.tan(-e.skewY):0;if(n||r||o||s){var p=n+o,m=r+s;t[4]=-p*i-d*m*a,t[5]=-m*a-f*p*i}else t[4]=t[5]=0;return t[0]=i,t[3]=a,t[1]=f*i,t[2]=d*a,c&&hn(t,t,c),t[4]+=n+l,t[5]+=r+u,t},e.initDefaultProps=(function(){var t=e.prototype;t.scaleX=t.scaleY=t.globalScaleRatio=1,t.x=t.y=t.originX=t.originY=t.skewX=t.skewY=t.rotation=t.anchorX=t.anchorY=0})(),e}(),Ya=Ja.getLocalTransform;function Xa(){return new Ja}var Za=[`x`,`y`,`originX`,`originY`,`anchorX`,`anchorY`,`rotation`,`scaleX`,`scaleY`,`skewX`,`skewY`];function Qa(e,t){return ve(e,t,Za)}function $a(e){eo||=new qr(100),e||=`12px sans-serif`;var t=eo.get(e);return t||(t={font:e,strWidthCache:new qr(500),asciiWidthMap:null,asciiWidthMapTried:!1,stWideCharWidth:M.measureText(`国`,e).width,asciiCharWidth:M.measureText(`a`,e).width},eo.put(e,t)),t}var eo;function to(e){if(!(no>=ro)){e||=`12px sans-serif`;for(var t=[],n=+new Date,r=0;r<=127;r++)t[r]=M.measureText(String.fromCharCode(r),e).width;var i=+new Date-n;return i>16?no=ro:i>2&&no++,t}}var no=0,ro=5;function io(e,t){return e.asciiWidthMapTried||=(e.asciiWidthMap=to(e.font),!0),0<=t&&t<=127?e.asciiWidthMap==null?e.asciiCharWidth:e.asciiWidthMap[t]:e.stWideCharWidth}function ao(e,t){var n=e.strWidthCache,r=n.get(t);return r??(r=M.measureText(t,e.font).width,n.put(t,r)),r}function oo(e,t,n,r){var i=ao($a(t),e),a=uo(t);return new Y(co(0,i,n),lo(0,a,r),i,a)}function so(e,t,n,r){var i=((e||``)+``).split(`
|
|
2
2
|
`);if(i.length===1)return oo(i[0],t,n,r);for(var a=new Y(0,0,0,0),o=0;o<i.length;o++){var s=oo(i[o],t,n,r);o===0?a.copy(s):a.union(s)}return a}function co(e,t,n,r){return n===`right`?r?e+=t:e-=t:n===`center`&&(r?e+=t/2:e-=t/2),e}function lo(e,t,n,r){return n===`middle`?r?e+=t/2:e-=t/2:n===`bottom`&&(r?e+=t:e-=t),e}function uo(e){return $a(e).stWideCharWidth}function fo(e,t){return typeof e==`string`?e.lastIndexOf(`%`)>=0?parseFloat(e)/100*t:parseFloat(e):e}function po(e,t,n){var r=t.position||`inside`,i=t.distance==null?5:t.distance,a=n.height,o=n.width,s=a/2,c=n.x,l=n.y,u=`left`,d=`top`;if(r instanceof Array)c+=fo(r[0],n.width),l+=fo(r[1],n.height),u=null,d=null;else switch(r){case`left`:c-=i,l+=s,u=`right`,d=`middle`;break;case`right`:c+=i+o,l+=s,d=`middle`;break;case`top`:c+=o/2,l-=i,u=`center`,d=`bottom`;break;case`bottom`:c+=o/2,l+=a+i,u=`center`;break;case`inside`:c+=o/2,l+=s,u=`center`,d=`middle`;break;case`insideLeft`:c+=i,l+=s,d=`middle`;break;case`insideRight`:c+=o-i,l+=s,u=`right`,d=`middle`;break;case`insideTop`:c+=o/2,l+=i,u=`center`;break;case`insideBottom`:c+=o/2,l+=a-i,u=`center`,d=`bottom`;break;case`insideTopLeft`:c+=i,l+=i;break;case`insideTopRight`:c+=o-i,l+=i,u=`right`;break;case`insideBottomLeft`:c+=i,l+=a-i,d=`bottom`;break;case`insideBottomRight`:c+=o-i,l+=a-i,u=`right`,d=`bottom`}return e||={},e.x=c,e.y=l,e.align=u,e.verticalAlign=d,e}var mo=`__zr_normal__`,ho=Za.concat([`ignore`]),go=Ce(Za,function(e,t){return e[t]=!0,e},{ignore:!1}),_o={},vo=new Y(0,0,0,0),yo=[],bo=function(){function e(e){this.id=me(),this.animators=[],this.currentStates=[],this.states={},this._init(e)}return e.prototype._init=function(e){this.attr(e)},e.prototype.drift=function(e,t,n){switch(this.draggable){case`horizontal`:t=0;break;case`vertical`:e=0}var r=this.transform;r||=this.transform=[1,0,0,1,0,0],r[4]+=e,r[5]+=t,this.decomposeTransform(),this.markRedraw()},e.prototype.beforeUpdate=function(){},e.prototype.afterUpdate=function(){},e.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},e.prototype.updateInnerText=function(e){var t=this._textContent;if(t&&(!t.ignore||e)){this.textConfig||={};var n=this.textConfig,r=n.local,i=t.innerTransformable,a=void 0,o=void 0,s=!1;i.parent=r?this:null;var c=!1;i.copyTransform(t);var l=n.position!=null,u=n.autoOverflowArea,d=void 0;if((u||l)&&(d=vo,n.layoutRect?d.copy(n.layoutRect):d.copy(this.getBoundingRect()),r||d.applyTransform(this.transform)),l){this.calculateTextPosition?this.calculateTextPosition(_o,n,d):po(_o,n,d),i.x=_o.x,i.y=_o.y,a=_o.align,o=_o.verticalAlign;var f=n.origin;if(f&&n.rotation!=null){var p=void 0,m=void 0;f===`center`?(p=d.width*.5,m=d.height*.5):(p=fo(f[0],d.width),m=fo(f[1],d.height)),c=!0,i.originX=-i.x+p+(r?0:d.x),i.originY=-i.y+m+(r?0:d.y)}}n.rotation!=null&&(i.rotation=n.rotation);var h=n.offset;h&&(i.x+=h[0],i.y+=h[1],c||(i.originX=-h[0],i.originY=-h[1]));var g=this._innerTextDefaultStyle||={};if(u){var _=g.overflowRect=g.overflowRect||new Y(0,0,0,0);i.getLocalTransform(yo),_n(yo,yo),Y.copy(_,d),_.applyTransform(yo)}else g.overflowRect=null;var v=n.inside==null?typeof n.position==`string`&&n.position.indexOf(`inside`)>=0:n.inside,y=void 0,b=void 0,x=void 0;v&&this.canBeInsideText()?(y=n.insideFill,b=n.insideStroke,(y==null||y===`auto`)&&(y=this.getInsideTextFill()),(b==null||b===`auto`)&&(b=this.getInsideTextStroke(y),x=!0)):(y=n.outsideFill,b=n.outsideStroke,(y==null||y===`auto`)&&(y=this.getOutsideFill()),(b==null||b===`auto`)&&(b=this.getOutsideStroke(y),x=!0)),y||=`#000`,(y!==g.fill||b!==g.stroke||x!==g.autoStroke||a!==g.align||o!==g.verticalAlign)&&(s=!0,g.fill=y,g.stroke=b,g.autoStroke=x,g.align=a,g.verticalAlign=o,t.setDefaultTextStyle(g)),t.__dirty|=1,s&&t.dirtyStyle(!0)}},e.prototype.canBeInsideText=function(){return!0},e.prototype.getInsideTextFill=function(){return`#fff`},e.prototype.getInsideTextStroke=function(e){return`#000`},e.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?za:Ra},e.prototype.getOutsideStroke=function(e){var t=this.__zr&&this.__zr.getBackgroundColor(),n=typeof t==`string`&&ci(t);n||=[255,255,255,1];for(var r=n[3],i=this.__zr.isDarkMode(),a=0;a<3;a++)n[a]=n[a]*r+(i?0:255)*(1-r);return n[3]=1,yi(n,`rgba`)},e.prototype.traverse=function(e,t){},e.prototype.attrKV=function(e,t){e===`textConfig`?this.setTextConfig(t):e===`textContent`?this.setTextContent(t):e===`clipPath`?this.setClipPath(t):e===`extra`?(this.extra=this.extra||{},L(this.extra,t)):this[e]=t},e.prototype.hide=function(){this.ignore=!0,this.markRedraw()},e.prototype.show=function(){this.ignore=!1,this.markRedraw()},e.prototype.attr=function(e,t){if(typeof e==`string`)this.attrKV(e,t);else if(K(e))for(var n=H(e),r=0;r<n.length;r++){var i=n[r];this.attrKV(i,e[i])}return this.markRedraw(),this},e.prototype.saveCurrentToNormalState=function(e){this._innerSaveToNormal(e);for(var t=this._normalState,n=0;n<this.animators.length;n++){var r=this.animators[n],i=r.__fromStateTransition;if(!(r.getLoop()||i&&i!==`__zr_normal__`)){var a=r.targetName,o=a?t[a]:t;r.saveTo(o)}}},e.prototype._innerSaveToNormal=function(e){var t=this._normalState;t||=this._normalState={},e.textConfig&&!t.textConfig&&(t.textConfig=this.textConfig),this._savePrimaryToNormal(e,t,ho)},e.prototype._savePrimaryToNormal=function(e,t,n){for(var r=0;r<n.length;r++){var i=n[r];e[i]!=null&&!(i in t)&&(t[i]=this[i])}},e.prototype.hasState=function(){return this.currentStates.length>0},e.prototype.getState=function(e){return this.states[e]},e.prototype.ensureState=function(e){var t=this.states;return t[e]||(t[e]={}),t[e]},e.prototype.clearStates=function(e){this.useState(mo,!1,e)},e.prototype.useState=function(e,t,n,r){var i=e===mo;if(this.hasState()||!i){var a=this.currentStates,o=this.stateTransition;if(!(z(a,e)>=0&&(t||a.length===1))){var s;if(this.stateProxy&&!i&&(s=this.stateProxy(e)),s||=this.states&&this.states[e],!s&&!i)he(`State `+e+` not exists.`);else{i||this.saveCurrentToNormalState(s);var c=this._textContent,l=Oo(this,c,s,r);l&&!this.__inHover&&(this.__inHover=l),this._applyStateObj(e,s,this._normalState,t,Ao(this,n,o),o);var u=this._textGuide;return c&&c.useState(e,t,n,!!l),u&&u.useState(e,t,n,!!l),i?(this.currentStates=[],this._normalState={}):t?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!l&&this.__inHover&&(this.__inHover=0,this.__dirty&=-2),s}}}},e.prototype.useStates=function(e,t,n){if(!e.length)this.clearStates();else{var r=[],i=this.currentStates,a=e.length,o=a===i.length;if(o){for(var s=0;s<a;s++)if(e[s]!==i[s]){o=!1;break}}if(o)return;for(var s=0;s<a;s++){var c=e[s],l=void 0;this.stateProxy&&(l=this.stateProxy(c,e)),l||=this.states[c],l&&r.push(l)}var u=r[a-1],d=this._textContent,f=Oo(this,d,u,n);f&&!this.__inHover&&(this.__inHover=f);var p=this._mergeStates(r),m=this.stateTransition;this.saveCurrentToNormalState(p),this._applyStateObj(e.join(`,`),p,this._normalState,!1,Ao(this,t,m),m);var h=this._textGuide;d&&d.useStates(e,t,!!f),h&&h.useStates(e,t,!!f),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!f&&this.__inHover&&(this.__inHover=0,this.__dirty&=-2)}},e.prototype.isSilent=function(){for(var e=this;e;){if(e.silent)return!0;var t=e.__hostTarget;e=t?e.ignoreHostSilent?null:t:e.parent}return!1},e.prototype._updateAnimationTargets=function(){for(var e=0;e<this.animators.length;e++){var t=this.animators[e];t.targetName&&t.changeTarget(this[t.targetName])}},e.prototype.removeState=function(e){var t=z(this.currentStates,e);if(t>=0){var n=this.currentStates.slice();n.splice(t,1),this.useStates(n)}},e.prototype.replaceState=function(e,t,n){var r=this.currentStates.slice(),i=z(r,e),a=z(r,t)>=0;i>=0?a?r.splice(i,1):r[i]=t:n&&!a&&r.push(t),this.useStates(r)},e.prototype.toggleState=function(e,t){t?this.useState(e,!0):this.removeState(e)},e.prototype._mergeStates=function(e){for(var t={},n,r=0;r<e.length;r++){var i=e[r];L(t,i),i.textConfig&&(n||={},L(n,i.textConfig))}return n&&(t.textConfig=n),t},e.prototype._applyStateObj=function(e,t,n,r,i,a){if(this.__inHover!==1){var o=!(t&&r);t&&t.textConfig?(this.textConfig=L({},r?this.textConfig:n.textConfig),L(this.textConfig,t.textConfig)):o&&n.textConfig&&(this.textConfig=n.textConfig);for(var s={},c=!1,l=0;l<ho.length;l++){var u=ho[l],d=i&&go[u];t&&t[u]!=null?d?(c=!0,s[u]=t[u]):this[u]=t[u]:o&&n[u]!=null&&(d?(c=!0,s[u]=n[u]):this[u]=n[u])}if(!i)for(var l=0;l<this.animators.length;l++){var f=this.animators[l],p=f.targetName;f.getLoop()||f.__changeFinalValue(p?(t||n)[p]:t||n)}c&&this._transitionState(e,s,a)}},e.prototype._attachComponent=function(e){if((!e.__zr||e.__hostTarget)&&e!==this){var t=this.__zr;t&&e.addSelfToZr(t),e.__zr=t,e.__hostTarget=this}},e.prototype._detachComponent=function(e){e.__zr&&e.removeSelfFromZr(e.__zr),e.__zr=null,e.__hostTarget=null},e.prototype.getClipPath=function(){return this._clipPath},e.prototype.setClipPath=function(e){this._clipPath&&this._clipPath!==e&&this.removeClipPath(),this._attachComponent(e),this._clipPath=e,this.markRedraw()},e.prototype.removeClipPath=function(){var e=this._clipPath;e&&(this._detachComponent(e),this._clipPath=null,this.markRedraw())},e.prototype.getTextContent=function(){return this._textContent},e.prototype.setTextContent=function(e){var t=this._textContent;t!==e&&(t&&t!==e&&this.removeTextContent(),e.innerTransformable=new Ja,this._attachComponent(e),this._textContent=e,this.markRedraw())},e.prototype.setTextConfig=function(e){this.textConfig||={},L(this.textConfig,e),this.markRedraw()},e.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},e.prototype.removeTextContent=function(){var e=this._textContent;e&&(e.innerTransformable=null,this._detachComponent(e),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},e.prototype.getTextGuideLine=function(){return this._textGuide},e.prototype.setTextGuideLine=function(e){this._textGuide&&this._textGuide!==e&&this.removeTextGuideLine(),this._attachComponent(e),this._textGuide=e,this.markRedraw()},e.prototype.removeTextGuideLine=function(){var e=this._textGuide;e&&(this._detachComponent(e),this._textGuide=null,this.markRedraw())},e.prototype.markRedraw=function(){this.__dirty|=1;var e=this.__zr;e&&(this.__inHover?e.refreshHover():e.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},e.prototype.dirty=function(){this.markRedraw()},e.prototype.addSelfToZr=function(e){if(this.__zr!==e){this.__zr=e;var t=this.animators;if(t)for(var n=0;n<t.length;n++)e.animation.addAnimator(t[n]);this._clipPath&&this._clipPath.addSelfToZr(e),this._textContent&&this._textContent.addSelfToZr(e),this._textGuide&&this._textGuide.addSelfToZr(e)}},e.prototype.removeSelfFromZr=function(e){if(this.__zr){this.__zr=null;var t=this.animators;if(t)for(var n=0;n<t.length;n++)e.animation.removeAnimator(t[n]);this._clipPath&&this._clipPath.removeSelfFromZr(e),this._textContent&&this._textContent.removeSelfFromZr(e),this._textGuide&&this._textGuide.removeSelfFromZr(e)}},e.prototype.animate=function(e,t,n){var r=new pa(e?this[e]:this,t,n);return e&&(r.targetName=e),this.addAnimator(r,e),r},e.prototype.addAnimator=function(e,t){var n=this.__zr,r=this;e.during(function(){r.updateDuringAnimation(t)}).done(function(){var t=r.animators,n=z(t,e);n>=0&&t.splice(n,1)}),this.animators.push(e),n&&n.animation.addAnimator(e),n&&n.wakeUp()},e.prototype.updateDuringAnimation=function(e){this.markRedraw()},e.prototype.stopAnimation=function(e,t){for(var n=this.animators,r=n.length,i=[],a=0;a<r;a++){var o=n[a];!e||e===o.scope?o.stop(t):i.push(o)}return this.animators=i,this},e.prototype.animateTo=function(e,t,n){xo(this,e,t,n)},e.prototype.animateFrom=function(e,t,n){xo(this,e,t,n,!0)},e.prototype._transitionState=function(e,t,n,r){for(var i=xo(this,t,n,r),a=0;a<i.length;a++)i[a].__fromStateTransition=e},e.prototype.getBoundingRect=function(){return null},e.prototype.getPaintRect=function(){return null},e.initDefaultProps=(function(){var t=e.prototype;t.type=`element`,t.name=``,t.ignore=t.silent=t.ignoreHostSilent=t.isGroup=t.draggable=t.dragging=t.ignoreClip=!1,t.__inHover=0,t.__dirty=1;function n(e,n,r,i){Object.defineProperty(t,e,{get:function(){if(!this[n]){var e=this[n]=[];a(this,e)}return this[n]},set:function(e){this[r]=e[0],this[i]=e[1],this[n]=e,a(this,e)}});function a(e,t){Object.defineProperty(t,0,{get:function(){return e[r]},set:function(t){e[r]=t}}),Object.defineProperty(t,1,{get:function(){return e[i]},set:function(t){e[i]=t}})}}Object.defineProperty&&(n(`position`,`_legacyPos`,`x`,`y`),n(`scale`,`_legacyScale`,`scaleX`,`scaleY`),n(`origin`,`_legacyOrigin`,`originX`,`originY`))})(),e}();xe(bo,Mt),xe(bo,Ja);function xo(e,t,n,r,i){n||={};var a=[];Do(e,``,e,t,n,r,a,i);var o=a.length,s=!1,c=n.done,l=n.aborted,u=function(){s=!0,o--,o<=0&&(s?c&&c():l&&l())},d=function(){o--,o<=0&&(s?c&&c():l&&l())};o||c&&c(),a.length>0&&n.during&&a[0].during(function(e,t){n.during(t)});for(var f=0;f<a.length;f++){var p=a[f];u&&p.done(u),d&&p.aborted(d),n.force&&p.duration(n.duration),p.start(n.easing)}return a}function So(e,t,n){for(var r=0;r<n;r++)e[r]=t[r]}function Co(e){return Se(e[0])}function wo(e,t,n){if(Se(t[n])){if(Se(e[n])||(e[n]=[]),Me(t[n])){var r=t[n].length;e[n].length!==r&&(e[n]=new t[n].constructor(r),So(e[n],t[n],r))}else{var i=t[n],a=e[n],o=i.length;if(Co(i))for(var s=i[0].length,c=0;c<o;c++)a[c]?So(a[c],i[c],s):a[c]=Array.prototype.slice.call(i[c]);else So(a,i,o);a.length=i.length}}else e[n]=t[n]}function To(e,t){return e===t||Se(e)&&Se(t)&&Eo(e,t)}function Eo(e,t){var n=e.length;if(n!==t.length)return!1;for(var r=0;r<n;r++)if(e[r]!==t[r])return!1;return!0}function Do(e,t,n,r,i,a,o,s){for(var c=H(r),l=i.duration,u=i.delay,d=i.additive,f=i.setToFinal,p=!K(a),m=e.animators,h=[],g=0;g<c.length;g++){var _=c[g],v=r[_];if(v!=null&&n[_]!=null&&(p||a[_])){if(K(v)&&!Se(v)&&!Pe(v)){if(t){s||(n[_]=v,e.updateDuringAnimation(t));continue}Do(e,_,n[_],v,i,a&&a[_],o,s)}else h.push(_)}else s||(n[_]=v,e.updateDuringAnimation(t),h.push(_))}var y=h.length;if(!d&&y)for(var b=0;b<m.length;b++){var x=m[b];if(x.targetName===t&&x.stopTracks(h)){var S=z(m,x);m.splice(S,1)}}if(i.force||(h=we(h,function(e){return!To(r[e],n[e])}),y=h.length),y>0||i.force&&!o.length){var C=void 0,w=void 0,T=void 0;if(s){w={},f&&(C={});for(var b=0;b<y;b++){var _=h[b];w[_]=n[_],f?C[_]=r[_]:n[_]=r[_]}}else if(f){T={};for(var b=0;b<y;b++){var _=h[b];T[_]=$i(n[_]),wo(n,r,_)}}var x=new pa(n,!1,!1,d?we(m,function(e){return e.targetName===t}):null);x.targetName=t,i.scope&&(x.scope=i.scope),f&&C&&x.whenWithKeys(0,C,h),T&&x.whenWithKeys(0,T,h),x.whenWithKeys(l??500,s?w:r,h).delay(u||0),e.addAnimator(x,t),o.push(x)}}function Oo(e,t,n,r){return!(n&&n.hoverLayer||r)||ko(e)||t&&ko(t)?0:1}function ko(e){return e.type===`text`||e.type===`tspan`}function Ao(e,t,n){return!t&&!e.__inHover&&n&&n.duration>0}var jo=function(e){s(t,e);function t(t){var n=e.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(t),n}return t.prototype.childrenRef=function(){return this._children},t.prototype.children=function(){return this._children.slice()},t.prototype.childAt=function(e){return this._children[e]},t.prototype.childOfName=function(e){for(var t=this._children,n=0;n<t.length;n++)if(t[n].name===e)return t[n]},t.prototype.childCount=function(){return this._children.length},t.prototype.add=function(e){return e&&e!==this&&e.parent!==this&&(this._children.push(e),this._doAdd(e)),this},t.prototype.addBefore=function(e,t){if(e&&e!==this&&e.parent!==this&&t&&t.parent===this){var n=this._children,r=n.indexOf(t);r>=0&&(n.splice(r,0,e),this._doAdd(e))}return this},t.prototype.replace=function(e,t){var n=z(this._children,e);return n>=0&&this.replaceAt(t,n),this},t.prototype.replaceAt=function(e,t){var n=this._children,r=n[t];if(e&&e!==this&&e.parent!==this&&e!==r){n[t]=e,r.parent=null;var i=this.__zr;i&&r.removeSelfFromZr(i),this._doAdd(e)}return this},t.prototype._doAdd=function(e){e.parent&&e.parent.remove(e),e.parent=this;var t=this.__zr;t&&t!==e.__zr&&e.addSelfToZr(t),t&&t.refresh()},t.prototype.remove=function(e){var t=this.__zr,n=this._children,r=z(n,e);return r<0||(n.splice(r,1),e.parent=null,t&&e.removeSelfFromZr(t),t&&t.refresh()),this},t.prototype.removeAll=function(){for(var e=this._children,t=this.__zr,n=0;n<e.length;n++){var r=e[n];t&&r.removeSelfFromZr(t),r.parent=null}return e.length=0,this},t.prototype.eachChild=function(e,t){for(var n=this._children,r=0;r<n.length;r++){var i=n[r];e.call(t,i,r)}return this},t.prototype.traverse=function(e,t){for(var n=0;n<this._children.length;n++){var r=this._children[n],i=e.call(t,r);r.isGroup&&!i&&r.traverse(e,t)}return this},t.prototype.addSelfToZr=function(t){e.prototype.addSelfToZr.call(this,t);for(var n=0;n<this._children.length;n++)this._children[n].addSelfToZr(t)},t.prototype.removeSelfFromZr=function(t){e.prototype.removeSelfFromZr.call(this,t);for(var n=0;n<this._children.length;n++)this._children[n].removeSelfFromZr(t)},t.prototype.getBoundingRect=function(e){for(var t=new Y(0,0,0,0),n=e||this._children,r=[],i=null,a=0;a<n.length;a++){var o=n[a];if(!(o.ignore||o.invisible)){var s=o.getBoundingRect(),c=o.getLocalTransform(r);c?(Y.applyTransform(t,s,c),i||=t.clone(),i.union(t)):(i||=s.clone(),i.union(s))}}return i||t},t}(bo);jo.prototype.type=`group`;var Mo=t({dispose:()=>zo,disposeAll:()=>Bo,getElementSSRData:()=>Wo,getInstance:()=>Vo,init:()=>Ro,registerPainter:()=>Ho,registerSSRDataGetter:()=>Go,version:()=>Ko}),No={},Po={};function Fo(e){delete Po[e]}function Io(e){if(!e)return!1;if(typeof e==`string`)return bi(e,1)<La;if(e.colorStops){for(var t=e.colorStops,n=0,r=t.length,i=0;i<r;i++)n+=bi(t[i].color,1);return n/=r,n<La}return!1}var Lo=function(){function e(e,t,n){var r=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!1,this._darkMode=!1,n||={},this.dom=t,this.id=e;var i=new mr,a=n.renderer||`canvas`;No[a]||(a=H(No)[0]),n.useDirtyRect=n.useDirtyRect!=null&&n.useDirtyRect;var o=new No[a](t,i,n,e),s=n.ssr||o.ssrOnly;this.storage=i,this.painter=o;var c=!E.node&&!E.worker&&!s?new Pa(o.getViewportRoot(),o.root):null,l=n.useCoarsePointer,u=l==null||l===`auto`?E.touchEventsSupported:!!l,d=44,f;u&&(f=q(n.pointerSize,d)),this.handler=new Zn(i,o,c,o.root,f),this.animation=new ha({stage:{update:s?null:function(){return r._flush(!1)}}}),s||this.animation.start()}return e.prototype.add=function(e){!this._disposed&&e&&(this.storage.addRoot(e),e.addSelfToZr(this),this.refresh())},e.prototype.remove=function(e){!this._disposed&&e&&(this.storage.delRoot(e),e.removeSelfFromZr(this),this.refresh())},e.prototype.configLayer=function(e,t){this._disposed||(this.painter.configLayer&&this.painter.configLayer(e,t),this.refresh())},e.prototype.setBackgroundColor=function(e){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(e),this.refresh(),this._backgroundColor=e,this._darkMode=Io(e))},e.prototype.getBackgroundColor=function(){return this._backgroundColor},e.prototype.setDarkMode=function(e){this._darkMode=e},e.prototype.isDarkMode=function(){return this._darkMode},e.prototype.refreshImmediately=function(e){this._disposed||this._refresh({animUpdate:!e,refresh:!0,refreshHover:!1})},e.prototype._refresh=function(e){e.animUpdate&&this.animation.update(!0),this._needsRefresh=this._needsRefreshHover=!1,this.painter.refresh({refresh:e.refresh,refreshHover:e.refreshHover}),this._needsRefresh=this._needsRefreshHover=!1},e.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},e.prototype.flush=function(){this._disposed||this._flush(!0)},e.prototype._flush=function(e){var t,n=ma(),r=this._needsRefresh,i=this._needsRefreshHover;(r||i)&&(t=!0,this._refresh({animUpdate:e,refresh:r,refreshHover:i}));var a=ma();t?(this._stillFrameAccum=0,this.trigger(`rendered`,{elapsedTime:a-n})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},e.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},e.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},e.prototype.refreshHover=function(){this._needsRefreshHover=!0},e.prototype.refreshHoverImmediately=function(){this._disposed||this._refresh({animUpdate:!1,refresh:!1,refreshHover:!0})},e.prototype.resize=function(e){this._disposed||(e||={},this.painter.resize(e.width,e.height),this.handler.resize())},e.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},e.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},e.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},e.prototype.setCursorStyle=function(e){this._disposed||this.handler.setCursorStyle(e)},e.prototype.findHover=function(e,t){if(!this._disposed)return this.handler.findHover(e,t)},e.prototype.on=function(e,t,n){return this._disposed||this.handler.on(e,t,n),this},e.prototype.off=function(e,t){this._disposed||this.handler.off(e,t)},e.prototype.trigger=function(e,t){this._disposed||this.handler.trigger(e,t)},e.prototype.clear=function(){if(!this._disposed){for(var e=this.storage.getRoots(),t=0;t<e.length;t++)e[t]instanceof jo&&e[t].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},e.prototype.dispose=function(){this._disposed||(this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,this._disposed=!0,Fo(this.id))},e}();function Ro(e,t){var n=new Lo(me(),e,t);return Po[n.id]=n,n}function zo(e){e.dispose()}function Bo(){for(var e in Po)Po.hasOwnProperty(e)&&Po[e].dispose();Po={}}function Vo(e){return Po[e]}function Ho(e,t){No[e]=t}var Uo;function Wo(e){if(typeof Uo==`function`)return Uo(e)}function Go(e){Uo=e}var Ko=`6.1.0`,qo=1e-4,Jo=20;function Yo(e){return e.replace(/^\s+|\s+$/g,``)}var Xo=Math.min,Zo=Math.max,Qo=Math.abs,$o=Math.round,es=Math.floor,ts=Math.ceil,ns=Math.pow,rs=Math.log,is=Math.LN10,as=Math.PI,os=Math.random;function ss(e,t,n,r){var i=t[0],a=t[1],o=n[0],s=n[1],c=a-i,l=s-o;if(c===0)return l===0?o:(o+s)/2;if(r){if(c>0){if(e<=i)return o;if(e>=a)return s}else if(e>=i)return o;else if(e<=a)return s}else{if(e===i)return o;if(e===a)return s}return(e-i)/c*l+o}var cs=ls;function ls(e,t,n){switch(e){case`center`:case`middle`:e=`50%`;break;case`left`:case`top`:e=`0%`;break;case`right`:case`bottom`:e=`100%`}return us(e,t,n)}function us(e,t,n){return G(e)?ds(e)?parseFloat(e)/100*t+(n||0):parseFloat(e):e==null?NaN:+e}function ds(e){return!!Yo(e).match(/%$/)}function X(e,t,n){return isNaN(t)?n?``+e:+e:(t=Xo(Zo(0,t),Jo),e=(+e).toFixed(t),n?e:+e)}function fs(e,t,n){return t??=10,X(e,t,n)}function ps(e){return e.sort(function(e,t){return e-t}),e}function ms(e){if(e=+e,isNaN(e))return 0;if(e>1e-14){for(var t=1,n=0;n<15;n++,t*=10)if($o(e*t)/t===e)return n}return hs(e)}function hs(e){var t=e.toString().toLowerCase(),n=t.indexOf(`e`),r=n>0?+t.slice(n+1):0,i=n>0?n:t.length,a=t.indexOf(`.`);return Zo(0,(a<0?0:i-1-a)-r)}function gs(e,t){var n=es(rs(e[1]-e[0])/is),r=$o(rs(Qo(t[1]-t[0]))/is),i=Xo(Zo(-n+r,0),Jo);return isFinite(i)?i:Jo}function _s(e,t,n){var r=Qo(e[1]-e[0]);if(!isFinite(r)||r===0)return NaN;var i=rs(2*Qo(n||1)*Qo(r))/is,a=rs(Qo(t))/is,o=Zo(0,ts(-i+a));return isFinite(o)||(o=NaN),o}function vs(e,t,n){return e[t]&&ys(e,n)[t]||0}function ys(e,t){var n=Ce(e,function(e,t){return e+(isNaN(t)?0:t)},0);if(n===0)return[];for(var r=ns(10,t),i=V(e,function(e){return(isNaN(e)?0:e)/n*r*100}),a=r*100,o=V(i,function(e){return es(e)}),s=Ce(o,function(e,t){return e+t},0),c=V(i,function(e,t){return e-o[t]});s<a;){for(var l=-1/0,u=null,d=0,f=c.length;d<f;++d)c[d]>l&&(l=c[d],u=d);++o[u],c[u]=0,++s}return V(o,function(e){return e/r})}function bs(e,t){var n=Zo(ms(e),ms(t)),r=e+t;return n>Jo?r:X(r,n)}var xs=ns(2,53)-1;function Ss(e){var t=as*2;return(e%t+t)%t}function Cs(e){return e>-qo&&e<qo}var ws=/^(?:(\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 Ts(e){if(e instanceof Date)return e;if(G(e)){var t=ws.exec(e);if(!t)return new Date(NaN);if(t[8]){var n=+t[4]||0;return t[8].toUpperCase()!==`Z`&&(n-=+t[8].slice(0,3)),new Date(Date.UTC(+t[1],(t[2]||1)-1,+t[3]||1,n,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0))}return new Date(+t[1],(t[2]||1)-1,+t[3]||1,+t[4]||0,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0)}return e==null?new Date(NaN):new Date($o(e))}function Es(e){return ns(10,Ds(e))}function Ds(e){if(e===0)return 0;var t=es(rs(e)/is);return e/ns(10,t)>=10&&t++,t}function Os(e,t){var n=Ds(e),r=ns(10,n),i=e/r;return e=(t===2?1:t?i<1.5?1:i<2.5?2:i<4?3:i<7?5:10:i<1?1:i<2?2:i<3?3:i<5?5:10)*r,X(e,-n)}function ks(e,t){var n=(e.length-1)*t+1,r=es(n),i=+e[r-1],a=n-r;return a?i+a*(e[r]-i):i}function As(e){e.sort(function(e,t){return s(e,t,0)?-1:1});for(var t=-1/0,n=1,r=0;r<e.length;){for(var i=e[r].interval,a=e[r].close,o=0;o<2;o++)i[o]<=t&&(i[o]=t,a[o]=o?1:1-n),t=i[o],n=a[o];i[0]===i[1]&&a[0]*a[1]!==1?e.splice(r,1):r++}return e;function s(e,t,n){return e.interval[n]<t.interval[n]||e.interval[n]===t.interval[n]&&(e.close[n]-t.close[n]===(n?-1:1)||!n&&s(e,t,1))}}function js(e){var t=parseFloat(e);return t==e&&(t!==0||!G(e)||e.indexOf(`x`)<=0)?t:NaN}function Ms(e){return!isNaN(js(e))}function Ns(){return $o(os()*9)}function Ps(e,t){return t===0?e:Ps(t,e%t)}function Fs(e,t){return e==null?t:t==null?e:e*t/Ps(e,t)}function Is(e){return e!=null&&isFinite(e)}var Ls=`[ECharts] `,Rs={},zs=typeof console<`u`&&console.warn&&console.log;function Bs(e,t,n){if(zs){if(n){if(Rs[t])return;Rs[t]=!0}console[e](Ls+t)}}function Vs(e,t){Bs(`error`,e,t)}function Hs(e){throw Error(e)}function Us(e,t,n){return(t-e)*n+e}var Ws=`series\0`,Gs=`\0_ec_\0`;function Ks(e){return e instanceof Array?e:e==null?[]:[e]}function qs(e,t,n){if(e){e[t]=e[t]||{},e.emphasis=e.emphasis||{},e.emphasis[t]=e.emphasis[t]||{};for(var r=0,i=n.length;r<i;r++){var a=n[r];!e.emphasis[t].hasOwnProperty(a)&&e[t].hasOwnProperty(a)&&(e.emphasis[t][a]=e[t][a])}}}var Js=`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`.split(`.`);function Ys(e){return K(e)&&!U(e)&&!(e instanceof Date)?e.value:e}function Xs(e){return K(e)&&!(e instanceof Array)}function Zs(e,t,n){var r=n===`normalMerge`,i=n===`replaceMerge`,a=n===`replaceAll`;e||=[],t=(t||[]).slice();var o=J();B(t,function(e,n){K(e)||(t[n]=null)});var s=Qs(e,o,n);return(r||i)&&$s(s,e,o,t),r&&ec(s,t),r||i?tc(s,t,i):a&&nc(s,t),rc(s),s}function Qs(e,t,n){var r=[];if(n===`replaceAll`)return r;for(var i=0;i<e.length;i++){var a=e[i];a&&a.id!=null&&t.set(a.id,i),r.push({existing:n===`replaceMerge`||cc(a)?null:a,newOption:null,keyInfo:null,brandNew:null})}return r}function $s(e,t,n,r){B(r,function(i,a){if(i&&i.id!=null){var o=ac(i.id),s=n.get(o);if(s!=null){var c=e[s];He(!c.newOption,`Duplicated option on id "`+o+`".`),c.newOption=i,c.existing=t[s],r[a]=null}}})}function ec(e,t){B(t,function(n,r){if(n&&n.name!=null)for(var i=0;i<e.length;i++){var a=e[i].existing;if(!e[i].newOption&&a&&(a.id==null||n.id==null)&&!cc(n)&&!cc(a)&&ic(`name`,a,n)){e[i].newOption=n,t[r]=null;return}}})}function tc(e,t,n){B(t,function(t){if(t){for(var r,i=0;(r=e[i])&&(r.newOption||cc(r.existing)||r.existing&&t.id!=null&&!ic(`id`,t,r.existing));)i++;r?(r.newOption=t,r.brandNew=n):e.push({newOption:t,brandNew:n,existing:null,keyInfo:null}),i++}})}function nc(e,t){B(t,function(t){e.push({newOption:t,brandNew:!0,existing:null,keyInfo:null})})}function rc(e){var t=J();B(e,function(e){var n=e.existing;n&&t.set(n.id,e)}),B(e,function(e){var n=e.newOption;He(!n||n.id==null||!t.get(n.id)||t.get(n.id)===e,`id duplicates: `+(n&&n.id)),n&&n.id!=null&&t.set(n.id,e),!e.keyInfo&&(e.keyInfo={})}),B(e,function(e,n){var r=e.existing,i=e.newOption,a=e.keyInfo;if(K(i)){if(a.name=i.name==null?r?r.name:Ws+n:ac(i.name),r)a.id=ac(r.id);else if(i.id!=null)a.id=ac(i.id);else{var o=0;do a.id=`\0`+a.name+`\0`+o++;while(t.get(a.id))}t.set(a.id,e)}})}function ic(e,t,n){var r=oc(t[e],null),i=oc(n[e],null);return r!=null&&i!=null&&r===i}function ac(e){return oc(e,``)}function oc(e,t){return e==null?t:G(e)?e:Ae(e)||ke(e)?e+``:t}function sc(e){var t=e.name;return!!(t&&t.indexOf(Ws))}function cc(e){return e&&e.id!=null&&ac(e.id).indexOf(Gs)===0}function lc(e){return Gs+e}function uc(e,t,n){B(e,function(e){var r=e.newOption;K(r)&&(e.keyInfo.mainType=t,e.keyInfo.subType=dc(t,r,e.existing,n))})}function dc(e,t,n,r){return t.type?t.type:n?n.subType:r.determineSubType(e,t)}function fc(e,t){if(t.dataIndexInside!=null)return t.dataIndexInside;if(t.dataIndex!=null)return U(t.dataIndex)?V(t.dataIndex,function(t){return e.indexOfRawIndex(t)}):e.indexOfRawIndex(t.dataIndex);if(t.name!=null)return U(t.name)?V(t.name,function(t){return e.indexOfName(t)}):e.indexOfName(t.name)}function pc(){var e=`__ec_inner_`+mc++;return function(t){return t[e]||(t[e]={})}}var mc=Ns();function hc(e,t,n){var r=gc(t,n),i=r.mainTypeSpecified,a=r.queryOptionMap,o=r.others,s=n?n.defaultMainType:null;return!i&&s&&a.set(s,{}),a.each(function(t,r){var i=yc(e,r,t,{useDefault:s===r,enableAll:n&&n.enableAll!=null?n.enableAll:!0,enableNone:n&&n.enableNone!=null?n.enableNone:!0});o[r+`Models`]=i.models,o[r+`Model`]=i.models[0]}),o}function gc(e,t){var n;if(G(e)){var r={};r[e+`Index`]=0,n=r}else n=e;var i=J(),a={},o=!1;return B(n,function(e,n){if(n===`dataIndex`||n===`dataIndexInside`)a[n]=e;else{var r=n.match(/^(\w+)(Index|Id|Name)$/)||[],s=r[1],c=(r[2]||``).toLowerCase();if(!(!s||!c||t&&t.includeMainTypes&&z(t.includeMainTypes,s)<0)){o||=!!s;var l=i.get(s)||i.set(s,{});l[c]=e}}}),{mainTypeSpecified:o,queryOptionMap:i,others:a}}var _c={useDefault:!0,enableAll:!1,enableNone:!1},vc={useDefault:!1,enableAll:!0,enableNone:!0};function yc(e,t,n,r){r||=_c;var i=n.index,a=n.id,o=n.name,s={models:null,specified:i!=null||a!=null||o!=null};if(!s.specified){var c=void 0;return s.models=r.useDefault&&(c=e.getComponent(t))?[c]:[],s}if(i===`none`||i===!1){if(r.enableNone)return s.models=[],s;i=-1}return i===`all`&&(i=r.enableAll?a=o=null:-1),s.models=e.queryComponents({mainType:t,index:i,id:a,name:o}),s}function bc(e,t,n){var r={};r[t+`Id`]=e[t+`Id`],r[t+`Index`]=e[t+`Index`],r[t+`Name`]=e[t+`Name`];var i={mainType:t,query:r};return n&&(i.subType=n),i}function xc(e,t,n){e.setAttribute?e.setAttribute(t,n):e[t]=n}function Sc(e,t){return e.getAttribute?e.getAttribute(t):e[t]}function Cc(e){return e===`auto`?E.domSupported?`html`:`richText`:e||`html`}function wc(e,t,n,r,i){var a=t==null||t===`auto`;if(r==null)return r;if(Ae(r)){var o=Us(n||0,r,i);return X(o,a?Math.max(ms(n||0),ms(r)):t)}if(G(r))return i<1?n:r;for(var s=[],c=n,l=r,u=Math.max(c?c.length:0,l.length),d=0;d<u;++d){var f=e.getDimensionInfo(d);if(f&&f.type===`ordinal`)s[d]=(i<1&&c?c:l)[d];else{var p=c&&c[d]?c[d]:0,m=l[d],o=Us(p,m,i);s[d]=X(o,a?Math.max(ms(p),ms(m)):t)}}return s}(function(){function e(){}return e.prototype.reset=function(e,t,n,r){return this._list=e,this._step=r||=1,this._idx=t,this._end=n??(r>0?e.length:0),this.item=null,this.key=NaN,this},e.prototype.next=function(){return(this._step>0?this._idx<this._end:this._idx>=this._end)&&(this.item=this._list[this._idx],this.key=this._idx+=this._step,!0)},e})();function Tc(){return[1/0,-1/0]}function Ec(e,t){Ac(t)&&(t<e[0]&&(e[0]=t),t>e[1]&&(e[1]=t))}function Dc(e,t){Ac(t)&&t<e[0]&&(e[0]=t)}function Oc(e,t){Ac(t)&&t>e[1]&&(e[1]=t)}function kc(e,t){jc(t[0],t[1])&&(t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1]))}function Ac(e){return e!=null&&isFinite(e)}function jc(e,t){return Ac(e)&&Ac(t)&&e<=t}function Mc(e){var t=e[1]-e[0];return isFinite(t)&&t>=0}function Nc(e){jc(e[0],e[1])&&e[0]>e[1]&&(e[0]=e[1])}function Pc(){var e=`__ec_once_`+Fc++;return function(t,n){et(t,e)||(t[e]=1,n())}}var Fc=Ns();function Ic(e,t,n){var r=J(),i=0;B(e,function(a){var o=t(a),s=r.get(o)||0;n&&n(a,s),!s&&!n&&(e[i++]=a),r.set(o,s+1)}),n||(e.length=i)}function Lc(e){return e.value+``}function Rc(e){return e+``}function zc(e,t,n){var r=e.getData().count();return{progressiveRender:n.progressiveEnabled&&t.incrementalPrepareRender&&r>=n.threshold,large:e.get(`large`)&&r>=e.get(`largeThreshold`),modDataCount:e.get(`progressiveChunkMode`)===`mod`?e.getData().count():null}}function Bc(e){return{overallReset:e}}var Vc=`.`,Hc=`___EC__COMPONENT__CONTAINER___`,Uc=`___EC__EXTENDED_CLASS___`;function Wc(e){var t={main:``,sub:``};if(e){var n=e.split(Vc);t.main=n[0]||``,t.sub=n[1]||``}return t}function Gc(e){He(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(e),`componentType "`+e+`" illegal`)}function Kc(e){return!!(e&&e[Uc])}function qc(e,t){e.$constructor=e,e.extend=function(e){var t=this,n;return Jc(t)?n=function(e){s(t,e);function t(){return e.apply(this,arguments)||this}return t}(t):(n=function(){(e.$constructor||t).apply(this,arguments)},be(n,this)),L(n.prototype,e),n[Uc]=!0,n.extend=this.extend,n.superCall=Qc,n.superApply=$c,n.superClass=t,n}}function Jc(e){return W(e)&&/^class\s/.test(Function.prototype.toString.call(e))}function Yc(e,t){e.extend=t.extend}var Xc=Math.round(Math.random()*10);function Zc(e){var t=[`__\0is_clz`,Xc++].join(`_`);e.prototype[t]=!0,e.isInstance=function(e){return!!(e&&e[t])}}function Qc(e,t){var n=[...arguments].slice(2);return this.superClass.prototype[t].apply(e,n)}function $c(e,t,n){return this.superClass.prototype[t].apply(e,n)}function el(e){var t={};e.registerClass=function(e){var r=e.type||e.prototype.type;if(r){Gc(r),e.prototype.type=r;var i=Wc(r);if(!i.sub)t[i.main]=e;else if(i.sub!==Hc){var a=n(i);a[i.sub]=e}}return e},e.getClass=function(e,n,r){var i=t[e];if(i&&i[Hc]&&(i=n?i[n]:null),r&&!i)throw Error(n?`Component `+e+`.`+(n||``)+` is used but not imported.`:e+`.type should be specified.`);return i},e.getClassesByMainType=function(e){var n=Wc(e),r=[],i=t[n.main];return i&&i[Hc]?B(i,function(e,t){t!==Hc&&r.push(e)}):r.push(i),r},e.hasClass=function(e){return!!t[Wc(e).main]},e.getAllClassMainTypes=function(){var e=[];return B(t,function(t,n){e.push(n)}),e},e.hasSubTypes=function(e){var n=t[Wc(e).main];return n&&n[Hc]};function n(e){var n=t[e.main];return n&&n[Hc]||(n=t[e.main]={},n[Hc]=!0),n}}function tl(e,t){for(var n=0;n<e.length;n++)e[n][1]||(e[n][1]=e[n][0]);return t||=!1,function(n,r,i){for(var a={},o=0;o<e.length;o++){var s=e[o][1];if(!(r&&z(r,s)>=0||i&&z(i,s)<0)){var c=n.getShallow(s,t);c!=null&&(a[e[o][0]]=c)}}return a}}var nl=tl([[`fill`,`color`],[`shadowBlur`],[`shadowOffsetX`],[`shadowOffsetY`],[`opacity`],[`shadowColor`]]),rl=function(){function e(){}return e.prototype.getAreaStyle=function(e,t){return nl(this,e,t)},e}(),il=new qr(50);function al(e){if(typeof e==`string`){var t=il.get(e);return t&&t.image}return e}function ol(e,t,n,r,i){if(!e)return t;if(typeof e==`string`){if(t&&t.__zrImageSrc===e||!n)return t;var a=il.get(e),o={hostEl:n,cb:r,cbPayload:i};return a?(t=a.image,!cl(t)&&a.pending.push(o)):(t=M.loadImage(e,sl,sl),t.__zrImageSrc=e,il.put(e,t.__cachedImgObj={image:t,pending:[o]})),t}return e}function sl(){var e=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t<e.pending.length;t++){var n=e.pending[t],r=n.cb;r&&r(this,n.cbPayload),n.hostEl.dirty()}e.pending.length=0}function cl(e){return e&&e.width&&e.height}var ll=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function ul(e,t,n,r,i){var a={};return dl(a,e,t,n,r,i),a.text}function dl(e,t,n,r,i,a){if(!n)e.text=``,e.isTruncated=!1;else{var o=(t+``).split(`
|
|
3
3
|
`);a=fl(n,r,i,a);for(var s=!1,c={},l=0,u=o.length;l<u;l++)pl(c,o[l],a),o[l]=c.textLine,s||=c.isTruncated;e.text=o.join(`
|
|
4
4
|
`),e.isTruncated=s}}function fl(e,t,n,r){r||={};var i=L({},r);n=q(n,`...`),i.maxIterations=q(r.maxIterations,2);var a=i.minChar=q(r.minChar,0),o=i.fontMeasureInfo=$a(t),s=o.asciiCharWidth;i.placeholder=q(r.placeholder,``);for(var c=e=Math.max(0,e-1),l=0;l<a&&c>=s;l++)c-=s;var u=ao(o,n);return u>c&&(n=``,u=0),c=e-u,i.ellipsis=n,i.ellipsisWidth=u,i.contentWidth=c,i.containerWidth=e,i}function pl(e,t,n){var r=n.containerWidth,i=n.contentWidth,a=n.fontMeasureInfo;if(!r)e.textLine=``,e.isTruncated=!1;else{var o=ao(a,t);if(o<=r)e.textLine=t,e.isTruncated=!1;else{for(var s=0;;s++){if(o<=i||s>=n.maxIterations){t+=n.ellipsis;break}var c=s===0?ml(t,i,a):o>0?Math.floor(t.length*i/o):0;t=t.substr(0,c),o=ao(a,t)}t===``&&(t=n.placeholder),e.textLine=t,e.isTruncated=!0}}}function ml(e,t,n){for(var r=0,i=0,a=e.length;i<a&&r<t;i++)r+=io(n,e.charCodeAt(i));return i}function hl(e,t,n,r){var i=Ol(e),a=t.overflow,o=t.padding,s=o?o[1]+o[3]:0,c=o?o[0]+o[2]:0,l=t.font,u=a===`truncate`,d=uo(l),f=q(t.lineHeight,d),p=t.lineOverflow===`truncate`,m=!1,h=t.width;h==null&&n!=null&&(h=n-s);var g=t.height;g==null&&r!=null&&(g=r-c);var _=h!=null&&(a===`break`||a===`breakAll`)?i?wl(i,t.font,h,a===`breakAll`,0).lines:[]:i?i.split(`
|
package/adminWww/assets/{mf-entry-bootstrap-0-b0c4981a.js → mf-entry-bootstrap-0-4dee1225.js}
RENAMED
|
@@ -37,7 +37,7 @@ const __mfImport = (src) =>
|
|
|
37
37
|
|
|
38
38
|
|
|
39
39
|
(async () => {
|
|
40
|
-
const __mfHostInit = await __mfImport("./hostInit-
|
|
40
|
+
const __mfHostInit = await __mfImport("./hostInit-CQbS-SCS.js");
|
|
41
41
|
await __mfHostInit.__tla;
|
|
42
42
|
const { initHost } = __mfHostInit;
|
|
43
43
|
await initHost();
|
|
@@ -50,4 +50,4 @@ const __mfImport = (src) =>
|
|
|
50
50
|
if (__mfReactServerModuleCache?.pendingShareLoads) {
|
|
51
51
|
await Promise.all(__mfReactServerModuleCache.pendingShareLoads);
|
|
52
52
|
}
|
|
53
|
-
})().then(() => __mfImport("./index-
|
|
53
|
+
})().then(() => __mfImport("./index-BzbVZbb2.js"));
|