From 0887a33b455360056b45c6fb87ba4130f86c2588 Mon Sep 17 00:00:00 2001 From: Justineo Date: Tue, 25 Sep 2018 17:39:42 +0800 Subject: [PATCH] fix: add missing events --- .npmignore | 12 ++++++----- README.md | 2 ++ README.zh_CN.md | 2 ++ bower.json | 20 ------------------- demo/index.html | 2 +- ...c8829ff.js => app.03ee189e24d37f7445fa.js} | 2 +- ...78.js => manifest.831df52c10bd7936a15f.js} | 2 +- dist/vue-echarts.js | 2 +- package.json | 2 +- src/components/ECharts.vue | 4 +++- 10 files changed, 19 insertions(+), 31 deletions(-) delete mode 100644 bower.json rename demo/static/js/{app.089717f64bb56c8829ff.js => app.03ee189e24d37f7445fa.js} (86%) rename demo/static/js/{manifest.6b408d539afab7ef2678.js => manifest.831df52c10bd7936a15f.js} (92%) diff --git a/.npmignore b/.npmignore index c84f988..5b7d3a2 100644 --- a/.npmignore +++ b/.npmignore @@ -1,8 +1,10 @@ -node_modules +.* +*.sh +*.config.js build +config demo +node_modules src -.babelrc -.gitignore -bower.json -webpack.config.js +static +index.html diff --git a/README.md b/README.md index 44f31d3..063e600 100644 --- a/README.md +++ b/README.md @@ -338,9 +338,11 @@ Vue-ECharts support the following events: * `dblclick` * `mouseover` * `mouseout` + * `mousemove` * `mousedown` * `mouseup` * `globalout` + * `contextmenu` For further details, see [ECharts' API documentation](https://ecomfe.github.io/echarts-doc/public/en/api.html). diff --git a/README.zh_CN.md b/README.zh_CN.md index 00d5a1b..13a7129 100644 --- a/README.zh_CN.md +++ b/README.zh_CN.md @@ -343,9 +343,11 @@ Vue-ECharts 支持如下事件: * `dblclick` * `mouseover` * `mouseout` + * `mousemove` * `mousedown` * `mouseup` * `globalout` + * `contextmenu` 更多详细信息请参考 [ECharts 的 API 文档](https://ecomfe.github.io/echarts-doc/public/cn/api.html)。 diff --git a/bower.json b/bower.json deleted file mode 100644 index 4f95293..0000000 --- a/bower.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "name": "vue-echarts", - "version": "2.1.0", - "homepage": "https://github.com/Justineo/vue-echarts", - "authors": [ - "Justineo " - ], - "description": "ECharts component for Vue.js.", - "main": "dist/vue-echarts.js", - "moduleType": [ - "amd", - "globals", - "node" - ], - "keywords": [ - "ECharts", - "Vue.js" - ], - "license": "MIT" -} diff --git a/demo/index.html b/demo/index.html index 8b3e476..8d0e566 100644 --- a/demo/index.html +++ b/demo/index.html @@ -1 +1 @@ -Vue-ECharts Demo
\ No newline at end of file +Vue-ECharts Demo
\ No newline at end of file diff --git a/demo/static/js/app.089717f64bb56c8829ff.js b/demo/static/js/app.03ee189e24d37f7445fa.js similarity index 86% rename from demo/static/js/app.089717f64bb56c8829ff.js rename to demo/static/js/app.03ee189e24d37f7445fa.js index a87e622..ca041fa 100644 --- a/demo/static/js/app.089717f64bb56c8829ff.js +++ b/demo/static/js/app.03ee189e24d37f7445fa.js @@ -1 +1 @@ -webpackJsonp([1],{245:function(e,t,a){"use strict";var n=a(264),o=a.n(n);window.Promise=o.a},246:function(e,t,a){"use strict";function n(e){a(547)}var o=a(259),r=a(563),i=a(224),l=n,s=i(o.a,r.a,!1,l,null,null);t.a=s.exports},247:function(e,t){e.exports={type:"FeatureCollection",features:[{id:"710000",geometry:{type:"MultiPolygon",coordinates:[["@@°Ü¯Û","@@ƛĴÕƊÉɼģºðʀ\\ƎsÆNŌÔĚäœnÜƤɊĂǀĆĴžĤNJŨxĚĮǂƺòƌ‚–âÔ®ĮXŦţƸZûЋƕƑGđ¨ĭMó·ęcëƝɉlÝƯֹÅŃ^Ó·śŃNjƏďíåɛGɉ™¿IċããF¥ĘWǬÏĶñÄ","@@\\p|WoYG¿¥I†j@ž","@@…¡‰@ˆV^RqˆBbAŒnTXe„†žQr™©C","@@ÆEE—„kWqë Iœ"]],encodeOffsets:[[[122886,24033],[123335,22980],[122375,24193],[122518,24117],[124427,22618]]]},properties:{cp:[121.509062,25.044332],name:"台湾",childNum:5}},{id:"130000",geometry:{type:"MultiPolygon",coordinates:[["@@\\a“M`ǽÓnUK…Ĝēs¤­©yrý§uģŒc†JŠ»eIˆ€P]‚ªr‰ºc_ħ²G¼s`jΟnüsœľP","@@U`Ts¿mĂ","@@FŸƒ•›Oh‡đ©OŸ›iÃ`ww^ƒÌkŸ‘ÑH«ƇǤŗĺtFu…{Z}Ö@U‡´…ʚLg®¯Oı°ÃwŸ ^˜—€VbÉs‡ˆmA…ê]]w„§›RRl£‡ŭuw›N—Á`ÇFēÝčȻŽuT¡Ĺ—¯Õ¯sŗő£YªhV’ƍ£ƅnëYNgƒq¼ś¿µı²UºÝUąŽąŖóŒxV@tˆƯŒJ”]eƒR¾fe|rHA˜|h~Ėƍl§ÏŠjVë` ØoˆÅbbx³^zÃ͚¶Sj®A”yÂhðk`š«P€”ˈµEF†Û¬Y¨Ļrõqi¼‰Wi°§’б²°`[ˆÀ|ĠO@ÆxO\\tŽa\\p_Zõ^û{ġŒȧXýĪÓjùÎRb›š^λj{íděYfíÙTyމmńŵōHim½’éŅ­aVcř§ax¹XŻác‡žWU£ôãºQ¨÷Ñws¥qEH‰Ù|‰›šYQoŕÇyáĂ£MðoťÊ‰P¡mšWO¡€v†{ôvîēÜISpÌhp¨ ‘j†deŔQÖj˜X³à™Ĉ[n`Yp@Už–cM`’RKhŒEbœ”pŞlNut®Etq‚nsÁŠgA‹iú‹oH‡qCX‡”hfgu“~ϋWP½¢G^}¯ÅīGCŸÑ^ãziMáļMTÃƘrMc|O_ž¯Ŏ´|‡morDkO\\mĆJfl@c̬¢aĦtRıҙXòë¬WP{ŵǫƝ…›īÛ÷ąV×qƥV¿aȉd³B›qPBm›aËđŻģm“Å®Vйd^K‡KoŸnYg“¯Xhqa”Ldu¥•ÍpDž¡KąÅƒkĝęěhq‡}HyÓ]¹ǧ£…Í÷¿qá•gPmoeœi‰¤o^á¾ZE‡˜Y^…Ný{n•ƒOl±Í“@M’ċèk§da‹‘NaÇį¿]ø‰RiiñE‰€ū‹i„DZàUtėGylƒ}ŒÓM}€jpEC~¡FtoQi‘šHkk{ILgĽxqÈƋÄd–eVŽDJj£€J|Ådz•Ft~žKŨ¸IÆv|”‡¢r}膎onb˜}`RÎÄn°ÒdÞ²„^®’lnÐèĄlðӜ×]ªÆ}LiĂ±Ö`^°Ç¶p®đDcœŋ`–ZÔ’¶êqvFƚ†N®ĆTH®¦O’¾ŠIbÐã´BĐɢŴÆíȦp–ĐÞXR€·nndOž¤’OÀĈƒ­Qg˜µFo|gȒęSWb©osx|hYh•gŃfmÖĩnº€T̒Sp›¢dYĤ¶UĈjl’ǐpäðëx³kÛfw²Xjz~ÂqbTŠÑ„ěŨ@|oM‡’zv¢ZrÃVw¬ŧˏfŒ°ÐT€ªqŽs{Sž¯r æÝl¼ÖĞ džiGʂJ™¼lr}~K¨ŸƐÌWö€™¼œÞ°nÞoĦLš†|C~“D©|q]SvK€ÑcwpÏρ†ĿćènĪWlĄkT}¬Tpš~ƒ®Hgd„‰†˒劔ŽBVt„EÀ¢ôPĎƗè@~‚k–ü\\rÊĔÖæW_§¼F˜†´©òDòj’ˆYÈrbĞāøŀG{ƀ|¦ðrb|ÀH`pʞkv‚GpuARhÞÆǶgƊTǼƹS£¨¡ù³ŘÍ]¿Ây™ôEP xX¶¹܇O¡“gÚ¡IwÃ鑦ÅB‡Ï|ǰ…N«úmH¯‹âŸbę†U~xĈbȒ{^xÖlDž•¸dɂ‡„~"]],encodeOffsets:[[[120023,41045],[121616,39981],[122102,42307]]]},properties:{cp:[114.502461,38.045474],name:"河北",childNum:3}},{id:"140000",geometry:{type:"Polygon",coordinates:["@@žħÜ_ªlìwGkÛÃǏok‘ćiµVZģ¡coœ‘TS˹ĪmnÕńe–hZg{gtwªpXaĚThȑp{¶Eh—®RćƑP¿£‘PmcªaJyý{ƒýȥoÅîɡųAďä³aωJ‘½¥PG­ąSM­sWz½µÛ€‘YӀŖgxoOkĒCo­Èµ]¯_²ÕjāŽK~©ÅØ^ԛkïçămϑk]­±ƒcݯÑÃmQÍ~_a—pm…~ç¡q“ˆu{JÅŧ·Ls}–EyÁÆcI{¤IiCfUc•ƌÃp§]웫vD@¡SÀ‘µM‚ÅwuŽYY‡¡DbÑc¡hƒ×]nkoQdaMç~eD•ÛtT‰©±@¥ù@É¡‰ZcW|WqOJmĩl«ħşvOÓ«IqăV—¥ŸD[mI~Ó¢cehiÍ]Ɠ~ĥqXŠ·eƷœn±“}v•[ěďŽŕ]_‘œ•`‰¹ƒ§ÕōI™o©b­s^}Ét±ū«³p£ÿ¥WÑxçÁ«h×u׌¥ř„‹¾dÒ{ºvĴÎêÌɊ²¶€ü¨|ÞƸµȲ‘LLúÉƎ¤ϊęĔV`„_bª‹S^|ŸdŠzY|dz¥p†ZbÆ£¶ÒK}tĦÔņƠ‚PYzn€ÍvX¶Ěn ĠÔ„zý¦ª˜÷žÑĸَUȌ¸‚dòÜJð´’ìúNM¬ŒXZ´‘¤ŊǸ_tldIš{¦ƀðĠȤ¥NehXnYG‚‡R° ƬDj¬¸|CĞ„Kq‚ºfƐiĺ©ª~ĆOQª ¤@ìǦɌ²æBŒÊ”TœĞšHƘÁĪËĖ’šĴŞ–ȀœÆÿȄlŤĒö„t”νî¼ĨXhŒ‘˜|ªM¤ÐzÞĩ҃S‰rao³"],encodeOffsets:[[117016,41452]]},properties:{cp:[112.549248,37.857014],name:"山西",childNum:1}},{id:"150000",geometry:{type:"MultiPolygon",coordinates:[["@@ǪƫÌÛM…Ă[`՞Cn}¶Vc…ê“sƒ–¯‹PqƒFB…‰|S•³C|kñ•H‹d‘iÄ¥sˆʼnő…PóÑÑE^‘ÅPpy_YtS™hQ·aHwsOnʼnÚs©iqj›‰€USiº]ïWš‰«gW¡A–R붛ijʕ…Œů`çõh]y»ǃŸǛҤxÒm~zf}pf|ÜroÈzrKÈĵSƧ„ż؜Ġu~è¬vîS¼™Ăh–šĖMÈÄw‚\\fŦ°W ¢¾luŸD„wŠ\\Ŗĝ","@@ƒGVu»A—ylßí¹ãe’“]Eāò³C¹ð“¾ˆ²iŒÒAdkò^P“²CǜңDŽ z¼g^èöŰ_‹‚–†IJĕꄜ}gÁnUI«m‰…„‹]j‡vV¼euhwqA„aW˜ƒ_µj…»çjioQR¹ēÃßt@r³[ÛlćË^ÍÉáG“›OUۗOB±•XŸkŇ¹£k|e]ol™ŸkVͼÕqtaÏõjgÁ£§U^Œ”RLˆËnX°Ç’Bz†^~wfvˆypV ¯„ƫĉ˭ȫƗŷɿÿĿƑ˃ĝÿÃǃßËőó©ǐȍŒĖM×ÍEyx‹þp]Évïè‘vƀnÂĴÖ@‚‰†V~Ĉ™Š³MEˆĸÅĖt—ējyÄDXÄxGQuv_›i¦aBçw‘˛wD™©{ŸtāmQ€{EJ§KPśƘƿ¥@‰sCT•É}ɃwˆƇy±ŸgÑ“}T[÷kÐ禫…SÒ¥¸ëBX½‰HáŵÀğtSÝÂa[ƣ°¯¦P]£ġ“–“Òk®G²„èQ°óMq}EŠóƐÇ\\ƒ‡@áügQ͋u¥Fƒ“T՛¿Jû‡]|mvāÎYua^WoÀa·­ząÒot×¶CLƗi¯¤mƎHNJ¤îìɾŊìTdåwsRÖgĒųúÍġäÕ}Q¶—ˆ¿A•†‹[¡Œ{d×uQAƒ›M•xV‹vMOmăl«ct[wº_šÇʊŽŸjb£ĦS_é“QZ“_lwgOiýe`YYJq¥IÁˆdz£ÙË[ÕªuƏ³ÍT—s·bÁĽäė[›b[ˆŗfãcn¥îC¿÷µ[ŏÀQ­ōšĉm¿Á^£mJVm‡—L[{Ï_£›F¥Ö{ŹA}…×Wu©ÅaųijƳhB{·TQqÙIķˑZđ©Yc|M¡…L•eVUóK_QWk’_ĥ‘¿ãZ•»X\\ĴuUƒè‡lG®ěłTĠğDє›žG‚ÆÍz]‹±…ŭ©ŸÅ’]ŒÅÐ}UË¥©Tċ™ïxgckfWgi\\ÏĒ¥HkµE˜ë{»ÏetcG±ahUiñiWsɁˆ·c–C‚Õk]wȑ|ća}w…VaĚ᠞ŒG°ùnM¬¯†{ÈˆÐÆA’¥ÄêJxÙ¢”hP¢Ûˆº€µwWOŸóFŽšÁz^ÀŗÎú´§¢T¤ǻƺSė‰ǵhÝÅQgvBHouʝl_o¿Ga{ïq{¥|ſĿHĂ÷aĝÇq‡Z‘ñiñC³ª—…»E`¨åXēÕqÉû[l•}ç@čƘóO¿¡ƒFUsA‰“ʽīccšocƒ‚ƒÇS}„“£‡IS~ălkĩXçmĈ…ŀЂoÐdxÒuL^T{r@¢‘žÍƒĝKén£kQ™‰yšÅõËXŷƏL§~}kqš»IHėDžjĝŸ»ÑÞoŸå°qTt|r©ÏS‹¯·eŨĕx«È[eMˆ¿yuˆ‘pN~¹ÏyN£{©’—g‹ħWí»Í¾s“əšDž_ÃĀɗ±ą™ijĉʍŌŷ—S›É“A‹±åǥɋ@럣R©ąP©}ĹªƏj¹erƒLDĝ·{i«ƫC½ÉshVz…GS|úþX”gp›{ÁX¿Ÿć{ƱȏñZáĔyoÁhA™}ŅĆfdʼn„_¹„Y°ėǩÑ¡H¯¶oMQqð¡Ë™|‘Ñ`ƭŁX½·óۓxğįÅcQ‡ˆ“ƒs«tȋDžF“Ÿù^i‘t«Č¯[›hAi©á¥ÇĚ×l|¹y¯Kȝqgů{ñǙµï‚ċ™Ĺz—Śȭ¶¡˜›oŽäÕG\\ďT¿Òõr¯œŸLguÏYęRƩšɷŌO\\İТæ^Ŋ IJȶȆbÜGŽĝ¬¿ĚVĎgª^íu½jÿĕęjık@Ľƒ]ėl¥Ë‡ĭûÁ„ƒėéV©±ćn©­ȇžÍq¯½•YÃÔʼn“ÉNѝÅÝy¹NqáʅDǡËñ­ƁYÅy̱os§ȋµʽǘǏƬɱà‘ưN¢ƔÊuľýľώȪƺɂļžxœZĈ}ÌʼnŪ˜ĺœŽĭFЛĽ̅ȣͽÒŵìƩÇϋÿȮǡŏçƑůĕ~Ǎ›¼ȳÐUf†dIxÿ\\G ˆzâɏÙOº·pqy£†@ŒŠqþ@Ǟ˽IBäƣzsÂZ†ÁàĻdñ°ŕzéØűzșCìDȐĴĺf®ŽÀľưø@ɜÖÞKĊŇƄ§‚͑těï͡VAġÑÑ»d³öǍÝXĉĕÖ{þĉu¸ËʅğU̎éhɹƆ̗̮ȘNJ֥ड़ࡰţાíϲäʮW¬®ҌeרūȠkɬɻ̼ãüfƠSצɩςåȈHϚÎKdzͲOðÏȆƘ¼CϚǚ࢚˼ФԂ¤ƌžĞ̪Qʤ´¼mȠJˀŸƲÀɠmɆŠDŽĜƠ´ǠN~€ʢĜ‚¶ƌĆĘźʆȬ˪ĚǏĞGȖƴƀj`ĢçĶāàŃºē̃ĖćšYŒÀŎüôQÐÂŎŞdžŞêƖš˜oˆDĤÕºÑǘÛˤ³̀gńƘĔÀ^žªƂ`ªt¾äƚêĦĀ¼Ð€Ĕǎ¨Ȕ»͠^ˮÊȦƤøxRrŜH¤¸ÂxDĝŒ|ø˂˜ƮÐ¬ɚwɲFjĔ²Äw°dždÀɞ_ĸdîàŎjʜêTĞªŌ‡ŜWÈ|tqĢUB~´°ÎFC•ŽU¼pĀēƄN¦¾O¶ŠłKĊOj“Ě”j´ĜYp˜{¦„ˆSĚÍ\\Tš×ªV–÷Ší¨ÅDK°ßtŇĔKš¨ǵÂcḷ̌ĚǣȄĽF‡lġUĵœŇ‹ȣFʉɁƒMğįʏƶɷØŭOǽ«ƽū¹Ʊő̝Ȩ§ȞʘĖiɜɶʦ}¨֪ࠜ̀ƇǬ¹ǨE˦ĥªÔêFŽxúQ„Er´W„rh¤Ɛ \\talĈDJ˜Ü|[Pll̚¸ƎGú´Pž¬W¦†^¦–H]prR“n|or¾wLVnÇIujkmon£cX^Bh`¥V”„¦U¤¸}€xRj–[^xN[~ªŠxQ„‚[`ªHÆÂExx^wšN¶Ê˜|¨ì†˜€MrœdYp‚oRzNy˜ÀDs~€bcfÌ`L–¾n‹|¾T‚°c¨È¢a‚r¤–`[|òDŞĔöxElÖdH„ÀI`„Ď\\Àì~ƎR¼tf•¦^¢ķ¶e”ÐÚMŒptgj–„ɡČÅyġLû™ŇV®ŠÄÈƀ†Ď°P|ªVV†ªj–¬ĚÒêp¬–E|ŬÂ_~¼rƐK fˆ{ĘFǜƌXưăkÃĄ}nµ–oŸ×q£ç­kX‘{uĩ«āíÓUŅÝVUŌ]€Ť¥lyň[€oi{¦‹L‡ĸ…Ħ^ôâJˆ¨^UZðڔĒL„¿Ì‹ˆfŒ£K£ʺ™oqNŸƒwğc`ue—tOj×°KJ±qƒÆġm‰Ěŗos¬…qehqsuœƒH{¸kH¡Š…ÊRǪÇƌbȆ¢´ä܍¢NìÉʖ¦â©Ɨؗ"]],encodeOffsets:[[[128500,52752],[127089,51784]]]},properties:{cp:[111.670801,40.818311],name:"内蒙古",childNum:2}},{id:"210000",geometry:{type:"MultiPolygon",coordinates:[["@@L–Ž@@s‘]","@@MnNm","@@d†c","@@eÀ‚C@b‚“‰","@@f‡…Xwkbr–Ä`qg","@@^jtWQ","@@~ Y[c","@@I`ĖN^_¿Z‚ÁM","@@Ïxnj{q_×^Gigp","@@iX¶B…Y","@@„Y…Z","@@L_yG`b","@@^WqCTZ","@@\\[“‹§t|”ž]","@@m`p[","@@@œé^B†‡ntˆaÊU—˜Ÿ]x ¯ÄPIJ­°h€ʙK³†VˆÕ@Y~†|EvĹsDŽ¦­L^p²ŸÒG ’Ël]„xxÄ_˜fT¤Ď¤cŽœP„–C¨¸TVjbgH²sdÎdHt`Bˆ—²¬GJję¶[ÐhjeXdlwhšðSȦªVÊπ‹Æ‘Z˜ÆŶ®²†^ŒÎyÅ‚Hœń“ĚDMħĜŁH­ˆk„çvV[ij¼W–‚YÀäĦ’‘`XlžR`žôLUVžfK–¢†{NZdĒª’YĸÌÚJRr¸SA|ƴgŴĴÆbvªØX~†źBŽ|¦ÕœEž¤Ð`\\|Kˆ˜UnnI]¤ÀÂĊnŎ™R®Ő¿¶\\ÀøíDm¦ÎbŨab‰œaĘ\\ľã‚¸a˜tÎSƐ´©v\\ÖÚÌǴ¤Â‡¨JKr€Z_Z€fjþhPkx€`Y”’RIŒjJcVf~sCN¤ ˆE‚œhæm‰–sHy¨SðÑÌ\\\\ŸĐRÊwS¥fqŒßýáЍÙÉÖ[^¯ǤŲ„ê´\\¦¬ĆPM¯£Ÿˆ»uïpùzEx€žanµyoluqe¦W^£ÊL}ñrkqWňûP™‰UP¡ôJŠoo·ŒU}£Œ„[·¨@XŒĸŸ“‹‹DXm­Ûݏº‡›GU‹CÁª½{íĂ^cj‡k“¶Ã[q¤“LÉö³cux«|Zdƒ²BWÇ®Yß½ve±ÃC•ý£W{Ú^’q^sÑ·¨‹ËMƒr“¹·C¥‡GD›rí@wÕKţ݋˜Ÿ«V·i}xËÍ÷‘i©ĝ‡ɝǡ]ƒˆ{c™±OW‹³Ya±Ÿ‰_穂Hžĕoƫ€Ňqƒr³‰Lys[„ñ³¯OS–ďOMisZ†±ÅFC¥Pq{‚Ã[Pg}\\—¿ghćO…•k^ĩÁXaĕËĥM­oEqqZûěʼn³F‘¦oĵ—hŸÕP{¯~TÍlª‰N‰ßY“Ð{Ps{ÃVU™™eĎwk±ʼnVÓ½ŽJãÇÇ»Jm°dhcÀff‘dF~ˆ€ĀeĖ€d`sx² šƒ®EĦ¦–šdQ‹Âd^~ăÔHˆ¦\\›LKpĄVez¤NP ǹӗR™ÆąJSh­a[¦´Âghwm€BÐ¨źhI|žVVŽ—Ž|p] Â¼èNä¶ÜBÖ¼“L`‚¼bØæŒKV”ŸpoœúNZÞÒKxpw|ÊEMnzEQšŽIZ”ŽZ‡NBˆčÚFÜçmĩ‚WĪñt‘ÞĵÇñZ«uD‚±|ƏlǗw·±PmÍa‰–da‡ CL‡Ǒkùó¡³Ï«QaċϑOÃ¥ÕđQȥċƭy‹³ÁA"]],encodeOffsets:[[[123686,41445],[126019,40435],[124393,40128],[126117,39963],[125322,40140],[126686,40700],[126041,40374],[125584,40168],[125509,40217],[125453,40165],[125362,40214],[125280,40291],[125774,39997],[125976,40496],[125822,39993],[122731,40949]]]},properties:{cp:[123.429096,41.796767],name:"辽宁",childNum:16}},{id:"220000",geometry:{type:"Polygon",coordinates:["@@ñr½ÉKāGÁ¤ia É‰™È¹`\\xs€¬dĆkNnuNUŒ–wœNx¶c¸‹|\\¢…ŒGªóĄ~RãÖÎĢù‚đŴÕhQŽxtcæëSɽʼníëlj£ƍG£nj°KƘµDsØÑpyƸ®¿bXp‚]vbÍZuĂ{nˆ^IüœÀSք”¦EŒvRÎûh@℈[‚Əȉô~FNr¯ôçR±ƒ­HÑl•’Ģ–^¤¢‚OðŸŽætxsŒ]ÞÁTĠs¶¿âƊGW¾ìA¦·TѬ†è¥€ÏÐJ¨¼ÒÖ¼ƒƦɄxÊ~S–tD@ŠĂ¼Ŵ¡jlºWžvЉˆzƦZЎ²CH— „Axiukd‹ŒGgetqmcžÛ£Ozy¥cE}|…¾cZ…k‚‰¿uŐã[oxGikfeäT@…šSUwpiÚFM©’£è^ڟ‚`@v¶eň†f h˜eP¶žt“äOlÔUgƒÞzŸU`lœ}ÔÆUvØ_Ō¬Öi^ĉi§²ÃŠB~¡Ĉ™ÚEgc|DC_Ȧm²rBx¼MÔ¦ŮdĨÃâYx‘ƘDVÇĺĿg¿cwÅ\\¹˜¥Yĭlœ¤žOv†šLjM_a W`zļMž·\\swqÝSA‡š—q‰Śij¯Š‘°kŠRē°wx^Đkǂғ„œž“œŽ„‹\\]˜nrĂ}²ĊŲÒøãh·M{yMzysěnĒġV·°“G³¼XÀ““™¤¹i´o¤ŃšŸÈ`̃DzÄUĞd\\i֚ŒˆmÈBĤÜɲDEh LG¾ƀľ{WaŒYÍȏĢĘÔRîĐj‹}Ǟ“ccj‡oUb½š{“h§Ǿ{K‹ƖµÎ÷žGĄØŜçưÌs«l›•yiē«‹`姝H¥Ae^§„GK}iã\\c]v©ģZ“mÃ|“[M}ģTɟĵ‘Â`À–çm‰‘FK¥ÚíÁbXš³ÌQґHof{‰]e€pt·GŋĜYünĎųVY^’˜ydõkÅZW„«WUa~U·Sb•wGçǑ‚“iW^q‹F‚“›uNĝ—·Ew„‹UtW·Ýďæ©PuqEzwAV•—XR‰ãQ`­©GŠY…Yhc•UGorBd}ģɇb¡·µMicF«—YƅŒ»…é\\ƒɹ~ǙG³mØ©BšuT§Ĥ½¢Ã_ý‘L¡‘ûŸsT\\rke™\\PnwAK‚y}’ywdS™efµ]UhĿD@mÿvašÙNSkCun…cÿ`l‚‰W‹„ėVâ¦÷~^fÏ~œvwHCŽį„`xqT­­ƒlW«ï¸skm‹‹ßEG“qd¯•‹R…©Ýޝ¯S†\\cZ¹iűƏCuƍÓX‡oR}“M^o•£…R}oªU­F…uuXHlEŕ‡€Ï©¤ßgXˆþ¤D–²ÄufàÀ­XXȱAc„{Yw¬dvõ´KÊ£”\\rµÄl”iˆdā]|DÂVŒœH¹ˆÞ®ÜWnŒC”Œķ W‹§@\\¸‹ƒ~¤‹Vp¸‰póIO¢ŠVOšŇürXql~òÉK]¤¥Xrfkvzpm¶bwyFoúvð‡¼¤ N°ąO¥«³[ƒéǣű]°Õ\\ÚÊĝŽôîŇÔaâŸBYlďQ[ Ë[ïÒ¥RI|‘`jž]P"],encodeOffsets:[[126831,44503]]},properties:{cp:[125.3245,43.886841],name:"吉林",childNum:1}},{id:"230000",geometry:{type:"MultiPolygon",coordinates:[["@@UƒµNÿ¥īè灋•HÍøƕ¶LŒǽ|g¨|”™Ža¾pViˆdd”~ÈiŒíďÓQġėǐZ΋ŽXb½|ſÃH½ŸKFgɱCģÛÇA‡n™‹jÕc[VĝDZÃ˄Ç_™ £ń³pŽj£º”š¿”»WH´¯”U¸đĢmžtĜyzzNN|g¸÷äűѱĉā~mq^—Œ[ƒ”››”ƒǁÑďlw]¯xQĔ‰¯l‰’€°řĴrŠ™˜BˆÞTxr[tޏĻN_yŸX`biN™Ku…P›£k‚ZĮ—¦[ºxÆÀdhŽĹŀUÈƗCw’áZħÄŭcÓ¥»NAw±qȥnD`{ChdÙFćš}¢‰A±Äj¨]ĊÕjŋ«×`VuÓś~_kŷVÝyh„“VkÄãPs”Oµ—fŸge‚Ň…µf@u_Ù ÙcŸªNªÙEojVx™T@†ãSefjlwH\\pŏäÀvŠŽlY†½d{†F~¦dyz¤PÜndsrhf‹HcŒvlwjFœ£G˜±DύƥY‡yϊu¹XikĿ¦ÏqƗǀOŜ¨LI|FRĂn sª|Cš˜zxAè¥bœfudTrFWÁ¹Am|˜ĔĕsķÆF‡´Nš‰}ć…UŠÕ@Áijſmužç’uð^ÊýowŒFzØÎĕNőžǏȎôªÌŒDŽàĀÄ˄ĞŀƒʀĀƘŸˮȬƬĊ°ƒUŸzou‡xe]}Ž…AyȑW¯ÌmK‡“Q]‹Īºif¸ÄX|sZt|½ÚUΠlkš^p{f¤lˆºlÆW –€A²˜PVܜPH”Êâ]ÎĈÌÜk´\\@qàsĔÄQºpRij¼èi†`¶—„bXƒrBgxfv»ŽuUiˆŒ^v~”J¬mVp´£Œ´VWrnP½ì¢BX‚¬h™ŠðX¹^TjVœŠriªj™tŊÄm€tPGx¸bgRšŽsT`ZozÆO]’ÒFô҆Oƒ‡ŊŒvŞ”p’cGŒêŠsx´DR–Œ{A†„EOr°Œ•žx|íœbˆ³Wm~DVjºéNN†Ëܲɶ­GƒxŷCStŸ}]ûō•SmtuÇÃĕN•™āg»šíT«u}ç½BĵÞʣ¥ëÊ¡Mێ³ãȅ¡ƋaǩÈÉQ‰†G¢·lG|›„tvgrrf«†ptęŘnŠÅĢr„I²¯LiØsPf˜_vĠd„xM prʹšL¤‹¤‡eˌƒÀđK“žïÙVY§]I‡óáĥ]ķ†Kˆ¥Œj|pŇ\\kzţ¦šnņäÔVĂîά|vW’®l¤èØr‚˜•xm¶ă~lÄƯĄ̈́öȄEÔ¤ØQĄ–Ą»ƢjȦOǺ¨ìSŖÆƬy”Qœv`–cwƒZSÌ®ü±DŽ]ŀç¬B¬©ńzƺŷɄeeOĨS’Œfm Ċ‚ƀP̎ēz©Ċ‚ÄÕÊmgŸÇsJ¥ƔˆŊśæ’΁Ñqv¿íUOµª‰ÂnĦÁ_½ä@ê텣P}Ġ[@gġ}g“ɊדûÏWXá¢užƻÌsNͽƎÁ§č՛AēeL³àydl›¦ĘVçŁpśdžĽĺſʃQíÜçÛġԏsĕ¬—Ǹ¯YßċġHµ ¡eå`ļƒrĉŘóƢFì“ĎWøxÊk†”ƈdƬv|–I|·©NqńRŀƒ¤é”eŊœŀ›ˆàŀU²ŕƀB‚Q£Ď}L¹Îk@©ĈuǰųǨ”Ú§ƈnTËÇéƟÊcfčŤ^Xm‡—HĊĕË«W·ċëx³ǔķÐċJā‚wİ_ĸ˜Ȁ^ôWr­°oú¬Ħ…ŨK~”ȰCĐ´Ƕ£’fNÎèâw¢XnŮeÂÆĶŽ¾¾xäLĴĘlļO¤ÒĨA¢Êɚ¨®‚ØCÔ ŬGƠ”ƦYĜ‡ĘÜƬDJ—g_ͥœ@čŅĻA“¶¯@wÎqC½Ĉ»NŸăëK™ďÍQ“Ùƫ[«Ãí•gßÔÇOÝáW‘ñuZ“¯ĥ€Ÿŕā¡ÑķJu¤E Ÿå¯°WKɱ_d_}}vyŸõu¬ï¹ÓU±½@gÏ¿rýD‰†g…Cd‰µ—°MFYxw¿CG£‹Rƛ½Õ{]L§{qqąš¿BÇƻğëšܭNJË|c²}Fµ}›ÙRsÓpg±ŠQNqǫŋRwŕnéÑÉKŸ†«SeYR…ŋ‹@{¤SJ}šD Ûǖ֍Ÿ]gr¡µŷjqWÛham³~S«“„›Ü[","@@ƨƒĶTLÇyqpÇÛqe{~oyen}s‰`q‡iXG”ù]Ëp½“©lɇÁp]Þñ´FÔ^f‘äîºkà˜z¼BUv¬D"]],encodeOffsets:[[[134456,44547],[127123,51780]]]},properties:{cp:[126.642464,45.756967],name:"黑龙江",childNum:2}},{id:"320000",geometry:{type:"Polygon",coordinates:["@@Õg^vÁbnÀ‹`Jnĝ¬ŽòM¶ĘšTÖŒb‚˜e¦¦€{¸ZâćNpŒ©žHp|`ˆmjhŠSEb\\afv`sz^lkŽlj‹Ätg‹¤D˜­¾Xš¿À’|ДiZ„ȀåB·î}GL¢õcßjaŸyBFµÏC^ĭ•cÙt¿sğH]j{s©HM¢ƒQnDÀ©DaÜތ·jgàiDbPufjDk`dPOîƒhw¡ĥ‡¥šG˜ŸP²ĐobºrY†„î¶aHŢ´ ]´‚rılw³r_{£DB_Ûdåuk|ˆŨ¯F Cºyr{XFy™e³Þċ‡¿Â™kĭB¿„MvÛpm`rÚã”@ƹhågËÖƿxnlč¶Åì½Ot¾dJlŠVJʜǀœŞqvnOŠ^ŸJ”Z‘ż·Q}ê͎ÅmµÒ]Žƍ¦Dq}¬R^èĂ´ŀĻĊIԒtžIJyQŐĠMNtœR®òLh‰›Ěs©»œ}OӌGZz¶A\\jĨFˆäOĤ˜HYš†JvÞHNiÜaϚɖnFQlšNM¤ˆB´ĄNöɂtp–ŬdZÅgl•muÇUšŽ“Ş‡Úb¤uŃJŴu»¹Ą•lȖħŴw̌ŵ²ǹǠ͛hĭłƕrçü±Y™rřl¥’i`ã__¢ćSÅr[Çq^ùzWmOĈaŐÝɞï²ʯʊáĘijĒǭPħ͍ôƋĝÄ͎ī‰çÛɈǥ£­ÛmY`ó£Z«§°Ó³QafusNıDž_k}¢m[ÝóDµ—¡RLčiXy‡ÅNïă¡¸iĔϑNÌķoıdōîåŤûHcs}~Ûwbù¹£¦ÓCt‹OPrƒE^ÒoŠg™ĉIµžÛÅʹK…¤½phMˆú`m”R¸¦Pƚg†ÉLRŠs`£¯ãhD„¨|³¤‰C"],encodeOffsets:[[121451,32518]]},properties:{cp:[118.767413,32.041544],name:"江苏",childNum:1}},{id:"330000",geometry:{type:"MultiPolygon",coordinates:[["@@jX^n…","@@sfˆdM‰","@@qP\\xz[_i","@@o\\V’zRZ}mECy","@@‘Rƒ¢‚FX}°[m]","@@Cbœ\\•}","@@e|v\\laus","@@v~s{","@@QxÂF©}","@@¹nŒvÞs©m","@@rQgYIh","@@bi«Z„X","@@p[}ILd","@@À¿|","@@¹dnb’…","@@rS}[Kl","@@g~h}","@@FlCk","@@ůTG°ĄLHm°UF‰","@@OdRe","@@v[u\\","@@FjâL~wyoo~›sµLŒZ","@@¬e¹aH‚","@@\\nÔ¡q]L³ë\\ÿ®ŒQ̆","@@ÊA­©]ª","@@KxŒv{­","@@@hlIk_","@@pWc‡rxp","@@Md|_iA","@@¢…X£½z\\ðpN","@@hlÜ[LykAvyfw^Ež ","@@fp¤MusH","@@®_ma~•LÁ¬’`","@@†@°¡mۛGĕ¨§Ianá[ýƤjfæ‡ÐNž—äGp—","@@iM„t\\","@@Zc[b","@@™X®±GrưZæĉm","@@Z~dOSo|A¿qZv","@@@`”EN£p","@@|–s—","@@@nDi","@@n…a£¾u‰YL¯‰Qª…mĉÅdMˆ•gÇjcº«•ęœ¬­K­´ƒB«Âącoċ\\xK`cįŧ«®á’[~ıxu·Å”KsËɏc¢Ù\\ĭƛëbf¹­ģSƒĜkáƉÔ­ĈZB{ŠaM‘µ‰fzʼnfÓÔŹŁƋǝÊĉ{ğč±g³ne{ç­ií´S¬‚\\ßðK¦w\\™iqªĭiAu‡A­µ”_W¥ƣO\\lċĢttC¨£t`ˆ™PZäuXßBs‡Ļyek€OđġĵHuXBšµ]׌‡­­\\›°®¬F¢¾pµ¼kŘó¬Wät’¸|@ž•L¨¸µr“ºù³Ù~§WI‹ŸZWŽ®’±Ð¨ÒÉx€`‰²pĜ•rOògtÁZ{üÙ[|˜ûŒK‚wsPlU[}¦Rvn`hsª^–nQ´ĘRWb”‚_ rtČFI֊kŠŠĦPJ¶ÖÀÖJĈĄTĚòžC ²@Pú…Øzœ©PœCÈÚœĒ±„hŖ‡l¬â~nm¨f©–iļ«m‡nt–qŒÒTÜÄj“ŠLŽ®E̜Fª²iÊxبžIÈhhst’ˆ’[Ôx†}dtüGæţŔïĬaĸpMËВj碷ðĄÆMzˆjWKĎ¢Q¶˜À_꒖_@ı€i«pZ€gf€¤Nrq]§ĂN®«H±‡yƳí¾×ŊďŀĐÏŴǝĂíÀBŖÕªˆŠÁŐTFqĉ¯³ËCĕģi¨hÜ·ƒñt»¯Ï","@@ºwšZRkĕWK "]],encodeOffsets:[[[125785,31436],[125729,31431],[125513,31380],[125329,30690],[125223,30438],[125115,30114],[124815,29155],[124419,28746],[124095,28635],[124005,28609],[125e3,30713],[125111,30698],[125078,30682],[125150,30684],[124014,28103],[125008,31331],[125411,31468],[125329,31479],[125369,31139],[125626,30916],[125417,30956],[125254,30976],[125199,30997],[125095,31058],[125083,30915],[124885,31015],[125218,30798],[124867,30838],[124755,30788],[124802,30809],[125267,30657],[125218,30578],[125200,30562],[125192,30787],[124968,30474],[125167,30396],[125115,30363],[124955,29879],[124714,29781],[124762,29462],[124325,28754],[124863,30077],[125366,31477]]]},properties:{cp:[120.153576,30.287459],name:"浙江",childNum:43}},{id:"340000",geometry:{type:"MultiPolygon",coordinates:[["@@^iuLV\\","@@‚e©Edh","@@´CE¶zAXœêeödK¡~H¸íæAˆȽ—d{ďő“À½W—®£ChŒÃsiŒkkly]_teu[bFa‰Tig‡n{]Gqªo‹ĈMYá|·¥f¥—őaSÕė™NµñĞ«ImŒ_m¿Âa]uĜp …Z_§{Cƒäg¤°r[_Yj‰ÆOdý“[ŽI[á·¥“Q_n‡ùgL¾mz›ˆDÜÆ¶ĊJhšp“c¹˜O]iŠ]œ¥ jtsggDÑ¡“w×jÉ©±›EFˍ­‰Ki”ÛÃÕYv…s•ˆm¬njĻª•§emná}k«ŕˆƒgđ²Ù›DǤ›í¡ªOy›†×Où±@DŸñSęćăÕIÕ¿IµĥO‰‰‰lJÕÍR›Í|JìĻÒåyķrĕq§ÄĩsWÆßŽF¶žX®¿‰mŒ™w…RIޓfßoG‘³¾©uyH‘į{Ɓħ¯AFnuP…ÍÔzšŒV—dàôº^Ðæd´€‡oG¤{S‰¬ćxã}›ŧ×Kǥĩ«žÕOEзÖdÖsƘѨ[’Û^Xr¢¼˜§xvěƵ`K”§ tÒ´Cvlo¸fzŨð¾NY´ı~ÉĔē…ßúLÃϖ_ÈÏ|]ÂÏHl’g`bšežž€n¾¢pU‚h~ƴ˶_‚r sĄ~cž”ƈ]|r c~`¼{À{ȒiJjz`îÀT¥Û³…]’u}›f…ïQl{skl“oNdŸjŸäËzDvčoQŠďHI¦rb“rHĖ~BmlNž“Ra„ĥTX\\{fÁKÁ®T‚œL‘ŠĄMt›ÊgĀD–ŠĄXœƔvDcÎJbt[¤€D@®hh~kt°ǾzÖ@¾ªdb„YhüóV´ŮŒ¨Üc”±r@J|àuYÇԋG·ĚąĐlŪÚpSJ¨ĸˆLvÞcPæķŨŽ®mАˆál‹sgd×mQ¨ųƩޖ¤IΖs’°ŒKZpĄ|XwWdĎµmkǀwÌÕæhºgBĝâqÙĊz›ÖgņtÀÁÊÆá’hEz|WzqD¹€Ÿ°E‡ŧl{ævÜcA`¤C`|´qžxIJkq^³³ŸGšµbƒíZ…¹qpa±ď OH—¦™Ħˆx¢„gPícOl_iCveaOjCh߸i݋bÛªCC¿€m„RV§¢A|tbkĜEÀtîm‚^g´fÄ"]],encodeOffsets:[[[121722,32278],[119475,30423],[121606,33646]]]},properties:{cp:[117.283042,31.86119],name:"安徽",childNum:3}},{id:"350000",geometry:{type:"MultiPolygon",coordinates:[["@@“zht´}[","@@aj^~ĆGå","@@edœŒH…se","@@@vˆPGsyQ","@@‰sBz‚ddW[O","@@SލQy","@@NŽVucW","@@qptB@q","@@‰’¸[iu","@@Q\\pD[_","@@jSwUappI","@@eXª~•","@@AjvFoo","@@fT–›_Çí\\Ÿ™—v|ba¦jZÆy|®","@@IjLg","@@wJI€ˆxš«¼AoNe{M¥Œ","@@K‰±¡Óˆ”Č~N¾™","@@k¡¹Eh~c®uDq‰Zì¡I•~Māe£bN¨gZý¡a±Öcp©PhžI”Ÿ¢Qq…ÇGj‹|¥U™ g[Ky¬ŏ–v@OpˆtÉEŸF„\\@ åA¬ˆV{Xģ‰ĐBy…cpě…¼³Ăp·¤ƒ¥o“hqqÚ¡ŅLsƒ^ᗞ§qlŸÀhH¨MCe»åÇGD¥zPO£čÙkJA¼ß–ėu›ĕeûҍiÁŧS[¡œUŠûŗ½ùěcݧSùĩąSWó«íęACµ›eR—åǃRCÒÇZÍ¢‹ź±^dlsŒtjD¸•‚ZpužÔâÒH¾oLUêÃÔjjēò´ĄW‚ƛ…^Ñ¥‹ĦŸ@Çò–ŠmŒƒOw¡õyJ†yD}¢ďÑÈġfŠZd–a©º²z£šN–ƒjD°Ötj¶¬ZSÎ~¾c°¶Ðm˜x‚O¸¢Pl´žSL|¥žA†ȪĖM’ņIJg®áIJČĒü` ŽQF‡¬h|ÓJ@zµ |ê³È ¸UÖŬŬÀCtrĸr‚]€˜ðŽM¤ĶIJHtÏ A’†žĬkvsq‡^aÎbvŒd–™fÊòSD€´Z^’xPsÞrv‹ƞŀ˜jJd×ŘÉ ®A–ΦĤd€xĆqAŒ†ZR”ÀMźŒnĊ»ŒİÐZ— YX–æJŠyĊ²ˆ·¶q§·–K@·{s‘Xãô«lŗ¶»o½E¡­«¢±¨Yˆ®Ø‹¶^A™vWĶGĒĢžPlzfˆļŽtàAvWYãšO_‡¤sD§ssČġ[kƤPX¦Ž`¶“ž®ˆBBvĪjv©šjx[L¥àï[F…¼ÍË»ğV`«•Ip™}ccÅĥZE‹ãoP…´B@ŠD—¸m±“z«Ƴ—¿å³BRضˆœWlâþäą`“]Z£Tc— ĹGµ¶H™m@_©—kŒ‰¾xĨ‡ôȉðX«½đCIbćqK³Á‹Äš¬OAwã»aLʼn‡ËĥW[“ÂGI—ÂNxij¤D¢ŽîĎÎB§°_JœGsƒ¥E@…¤uć…P‘å†cuMuw¢BI¿‡]zG¹guĮI‹"]],encodeOffsets:[[[123250,27563],[122541,27268],[123020,27189],[122916,27125],[122887,26845],[122808,26762],[122568,25912],[122778,26197],[122515,26757],[122816,26587],[123388,27005],[122450,26243],[122578,25962],[121255,25103],[120987,24903],[122339,25802],[121042,25093],[122439,26024]]]},properties:{cp:[119.306239,26.075302],name:"福建",childNum:18}},{id:"360000",geometry:{type:"Polygon",coordinates:["@@ÖP¬ǦĪØLœŨä~ĈwŠ«|TH£ˆp€c³Ïå¹]ĉđxe{ÎӐ†vOEm°BƂĨİ|G’vz½ª´€H’àp”eJ݆Qšxn‹ÀŠW­žEµàXÅĪt¨ÃĖrÄwÀFÎ|Ă¡”‡WÕ¸cf¥—‘XaęST±m[“r«_gŽmQu~¥V\\OkxtL E¢‹ƒ‘Ú^~ýØkbē–qo슱_Êw§Ñ²ÏƟ뼋mĉŹ‹¿NQ“…YB‹ąrwģcÍ¥B•Ÿ­ŗÊcØiI—žƝĿuŒqtāwO]‘³YCñTeɕš‹caub͈]trlu€ī…B‘ПGsĵıN£ï—^ķqsq¿DūūV՟·´Ç{éĈý‰ÿ›OEˆR_ŸđûIċâJh­ŅıN‘ȩĕB…¦K{Tk³¡OP·wn—µÏd¯}½TÍ«YiµÕsC¯„iM•¤™­•¦¯P|ÿUHv“he¥oFTu‰õ\\ŽOSs‹MòđƇiaºćXŸĊĵà·çhƃ÷ǜ{‘ígu^›đg’m[ÙxiIN‘¶Õ»lđÕwZSƉv©_ÈëJbVk„ĔVÀ¤P¾ºÈMÖxlò~ªÚàGĂ¢B„±’ÌŒK˜y’ñ`w²¹€·Ÿ…`g›ŸsÙfI›ěxŕeykpŽŒudjˆuTfb·hh„¿JdŠ[\\˜„L‚áƔĨƐAĈepˆÀÂMD~ņªe^\\^§„ý©j׍cZ†Ø¨zdÒa¶ˆlҍJŒìõ`oz÷@¤u޸´†ôęöY¼‰HČƶajlÞƩ¥éZ[”|h}^U Œ ¥p„ĄžƦO lt¸Æ €Q\\€ŠaÆ|CnÂOjt­ĚĤd’ÈŒF`’¶„@Ð딠¦ōҞ¨Sêv†HĢÛ@[ƅQoxHŒ—W[ŰîÀt¦DŽ~NĠ¢l–•ĄtZoœCƞÔºCxrpČN˜pj¢{f_Y`_ƒeq’’®Aot`@o‚DXfkp¨|Šs¬\\D‘ÄSfè©Hn¬…^DhÆyøJh“ØxĢĀLʈ„ƠPżċĄwĮ”¶ž"],encodeOffsets:[[118923,30536]]},properties:{cp:[115.892151,28.676493],name:"江西",childNum:1}},{id:"370000",geometry:{type:"MultiPolygon",coordinates:[["@@Xjd]mE","@@itnq","@@Dl@k","@@T‚ŒG—w","@@K¬˜•‰U","@@Wd`c","@@PtMs","@@•LnXlc","@@ppVƒu]Qn","@@cdzAU_","@@udRhnCE…","@@ˆoIƒpP„","@@M{Ŀčwbxƨî’Kš–ÎMĮ]†—ZFˆ½Y]â£ph’™š¶¨râøÀ†ÎǨ¤^ºÄ”Gzˆ~grĚĜlĞÆ„LĆdž¢Îo¦–cv“Kb€gr°Wh”mZp ˆL]LºcU‰Æ­n”żĤÌǜbAnrOAœ´žȊcÀbƦUØrĆUÜøœĬƞ†ŶǬĴóò_A̈«ªdÎɜnb²ĦhņBĖ›žįĦåXćì@L¯´ywƕCéõė ƿ¸‘lµ‚Zæyj|BíÂKN„NnoƈfÈMZwšnŐNàúĂsT„JUš›‚L„îVj„ǎ¾Ē؍‚Dz²XPn±ŴPè¸ŔLƔÜƺ_T‘üÃĤBBċȉöA´fa„˜M¨{«M`‡¶d¡ô‰Ö°šmȰBÔjjŒ´PM|”c^d¤u•ƒ¤Û´Œä«ƢfPk¶Môlˆ]Lb„}su^ke{lC‘…M•rDŠÇ­]NÑFsmoõľH‰yGă{{çrnÓE‰‹ƕZGª¹Fj¢ÿ©}ÌCǷ돡ąuhÛ¡^Kx•C`C\\bÅxì²ĝÝ¿_N‰īCȽĿåB¥¢·IŖÕy\\‡¹kx‡Ã£ČáKµË¤ÁçFQ¡„KtŵƋ]CgÏAùSed‡cÚź—ŠuYfƒyMmhUWpSyGwMPqŀ—›Á¼zK›¶†G•­Y§Ëƒ@–´śÇµƕBmœ@Io‚g——Z¯u‹TMx}C‘‰VK‚ï{éƵP—™_K«™pÛÙqċtkkù]gŽ‹Tğwo•ɁsMõ³ă‡AN£™MRkmEʕč™ÛbMjÝGu…IZ™—GPģ‡ãħE[iµBEuŸDPԛ~ª¼ętŠœ]ŒûG§€¡QMsğNPŏįzs£Ug{đJĿļā³]ç«Qr~¥CƎÑ^n¶ÆéÎR~ݏY’I“] P‰umŝrƿ›‰›Iā‹[x‰edz‹L‘¯v¯s¬ÁY…~}…ťuٌg›ƋpÝĄ_ņī¶ÏSR´ÁP~ž¿Cyžċßdwk´Ss•X|t‰`Ä Èð€AªìÎT°¦Dd–€a^lĎDĶÚY°Ž`ĪŴǒˆ”àŠv\\ebŒZH„ŖR¬ŢƱùęO•ÑM­³Fۃaj"]],encodeOffsets:[[[123806,39303],[123821,39266],[123742,39256],[123702,39203],[123649,39066],[123847,38933],[123580,38839],[123894,37288],[123043,36624],[123344,38676],[123522,38857],[123628,38858],[118267,36772]]]},properties:{cp:[117.000923,36.675807],name:"山东",childNum:13}},{id:"410000",geometry:{type:"MultiPolygon",coordinates:[["@@dXD}~Hgq~ÔNŽ‹„~zkĘHVsDzßjƒŬŒŠŢ`Pûàl¢˜\\ÀœEhŽİgÞē X¼`kš„h•ÍL™ùµP³swIÓzeŠĠð†´E®žÚPt†ºIŊ–ʺ˜L«šŕQGƒ‹Yfa[şu“ßǑ‡ĩų_Z¯ĵÙčC]kbc•¥CS¯ëÍB©ïŽÇߊ_{s–WTtž³xlàcȂzÀD}ÂOQ³ÐTĬµ‚ƑпŸghœł‹Ŧv~††}ÂZž«¤lPǕ£ªÝŴÅR§ØnhcŒtâk‡nύ­ľŹUÓÝdKuķ‡I§oTũÙďkęĆH¸ÓŒ\\ăŒ¿PcnS{wBIvɘĽ[GqµuŸŇôYgûƒZcaŽ©@½Õǽys¯}lgg@­C\\£as€IdÍuCQñ[L±ęk·‹ţb¨©kK—’»›KC²‘òGKmĨS`ƒ˜UQ™nk}AGē”sqaJ¥ĐGR‰ĎpCuÌy ã iMc”plk|tRk†ðœev~^‘´†¦ÜŽSí¿_iyjI|ȑ|¿_»d}qŸ^{“Ƈdă}Ÿtqµ`ŷ飩V¡om½ZÙϋÁRD|JOÈpÀ—Rs’•I{ùÓjuµ{t}uËR‘iŸvGŠçJFjµŠåkWꖴMƒHewixGw½Yŷpµú³XU›½ġy™łå‰kÚwZXˆ·l„¢Á¢K”zO„Λ΀jc¼htoDHr…|­J“½}JZ_¯iPq{tę½ĕ¦Zpĵø«kQ…Ťƒ]MÛfaQpě±ǽ¾]u­Fu‹÷nƒ™čįADp}AjmcEǒaª³o³ÆÍSƇĈÙDIzçƒñİŸ^ˆKNœ™i—Þñ€[œƒaA²zz‰Ì÷Dœ|[šíijgf‚ÕÞd®|`ƒĆ~„oĠƑô³Ŋ‘D×°¯CsˆøÂ«ì‰UMhTº¨¸ǝêWšÔ„DruÂÇZ£Ćš”PZ„žW”~؋Øv¬gèÂÒw¦X¤Ā´oŬ¬Ž²Ês~€€]®tªašpŎJ¨Öº„_ŠŔ–f”Ő\\Ѝ\\Ĝu–”~m²Ƹ›¸fW‰ĦrƔ}Î^gjdfÔ¡J}\\n C˜¦þWxªJRÔŠu¬ĨĨmF†dM{\\d\\ŠYÊ¢ú@@¦ª²SŠÜsC–}fNècbpRmlØ^g„d¢aÒ¢CZˆZxvÆ¶N¿’¢T@€uCœ¬^ĊðÄn|žlIlŽ—Xhun€[","@@hzUq"]],encodeOffsets:[[[116744,37216],[116480,33048]]]},properties:{cp:[113.665412,34.757975],name:"河南",childNum:2}},{id:"420000",geometry:{type:"MultiPolygon",coordinates:[["@@ASd","@@ls{d","@@¾«}{ra®pîÃ\\™›{øCŠËyyB±„b\\›ò˜Ý˜jK›‡L ]ĎĽÌ’JyÚCƈćÎT´Å´pb©È‘dFin~BCo°BĎĚømvŒ®E^vǾ½Ĝ²Ro‚bÜeNŽ„^ĺ£R†¬lĶ÷YoĖ¥Ě¾|sOr°jY`~I”¾®I†{GqpCgyl{‡£œÍƒÍyPL“¡ƒ¡¸kW‡xYlÙæŠšŁĢzœ¾žV´W¶ùŸo¾ZHxjwfx„GNÁ•³Xéæl¶‰EièIH‰ u’jÌQ~v|sv¶Ôi|ú¢Fh˜Qsğ¦ƒSiŠBg™ÐE^ÁÐ{–čnOÂȞUÎóĔ†ÊēIJ}Z³½Mŧïeyp·uk³DsѨŸL“¶_œÅuèw»—€¡WqÜ]\\‘Ò§tƗcÕ¸ÕFÏǝĉăxŻČƟO‡ƒKÉġÿ×wg”÷IÅzCg†]m«ªGeçÃTC’«[‰t§{loWeC@ps_Bp‘­r‘„f_``Z|ei¡—oċMqow€¹DƝӛDYpûs•–‹Ykıǃ}s¥ç³[§ŸcYЧHK„«Qy‰]¢“wwö€¸ïx¼ņ¾Xv®ÇÀµRĠЋžHMž±cÏd„ƒǍũȅȷ±DSyúĝ£ŤĀàtÖÿï[îb\\}pĭÉI±Ñy…¿³x¯N‰o‰|¹H™ÏÛm‹júË~Tš•u˜ęjCöAwě¬R’đl¯ Ñb­‰ŇT†Ŀ_[Œ‘IčĄʿnM¦ğ\\É[T·™k¹œ©oĕ@A¾w•ya¥Y\\¥Âaz¯ãÁ¡k¥ne£Ûw†E©Êō¶˓uoj_Uƒ¡cF¹­[Wv“P©w—huÕyBF“ƒ`R‹qJUw\\i¡{jŸŸEPïÿ½fć…QÑÀQ{ž‚°‡fLԁ~wXg—ītêݾ–ĺ‘Hdˆ³fJd]‹HJ²…E€ƒoU¥†HhwQsƐ»Xmg±çve›]Dm͂PˆoCc¾‹_h”–høYrŊU¶eD°Č_N~øĹĚ·`z’]Äþp¼…äÌQŒv\\rCŒé¾TnkžŐڀÜa‡“¼ÝƆ̶Ûo…d…ĔňТJq’Pb ¾|JŒ¾fXŠƐîĨ_Z¯À}úƲ‹N_ĒĊ^„‘ĈaŐyp»CÇĕKŠšñL³ŠġMŒ²wrIÒŭxjb[œžn«øœ˜—æˆàƒ ^²­h¯Ú€ŐªÞ¸€Y²ĒVø}Ā^İ™´‚LŠÚm„¥ÀJÞ{JVŒųÞŃx×sxxƈē ģMř–ÚðòIf–Ċ“Œ\\Ʈ±ŒdʧĘD†vČ_Àæ~DŒċ´A®µ†¨ØLV¦êHÒ¤"]],encodeOffsets:[[[113712,34e3],[115612,30507],[113649,34054]]]},properties:{cp:[114.298572,30.584355],name:"湖北",childNum:3}},{id:"430000",geometry:{type:"MultiPolygon",coordinates:[["@@—n„FZw","@@かÆá‰½ÔXr—†CO™“…ËR‘ïÿĩ­TooQyšÓ[‹ŅBE¬–ÎÓXa„į§Ã¸G °ITxp‰úxÚij¥Ïš–̾ŠedžÄ©ĸG…œàGh‚€M¤–Â_U}Ċ}¢pczfŠþg¤€’ÇôAV‘","@@ȴÚŠĖÁĐiO“Ĝ«BxDõĚiv—ž–S™Ì}iùŒžÜnšÐºGŠ{Šp°M°yŠÂÒzJ²Ì ÂcXëöüiáÿñŽőФ‚ùTz²CȆȸǎۃƑÐc°dPÎŸğ˶[Ƚu¯½WM¡­Éž“’B·rížnZŸÒ `‡¨GA¾\\pē˜XhÆRC­üWGġu…T靧Ŏѝ©êL•M³}_‘‹E‘Çģc®ęisÁPDmÅ{‰b[Rşs·€kPŸŽƥƒóRo”O‹ŸVŸ~]{g\\“êYƪ¦kÝbiċƵŠGZ»Ěõ…ó·³vŝž£ø@pyö_‹ëŽIkѵ‡bcѧy…×dY؎ªiþžˆUjŸŅ³C}ÁN‡»hĻħƏâƓK—ƒA·³CQ±µ§¿AUŠƑ¹AŠtćOw™D]ŒJUÖgk¯b£‘ylƒ›ZƒFËѱH™­}˜•EbóľA–¡»Ku¦·‘³†åş¥ùBDž^{ÌC´­¦ŷJ£^[†‹—ª¿‡ğ|‹ƅ…•N… skóā‡¹¿€ï]ă~÷O§­@—Vm¡‹Qđ¦¢Ĥ{ºjԏŽŒª¥nf´•~ÕoŸž×Ûą‹Gû¥cÑ[Zœ‰¶˜ŨβSÊǔƐ˜ƀƒ’AÚŌ¦QؼrŭŽ­«}NÏürʬŒmjr€@ĘrTW ­SsdHzƓ^ÇÂyUi¯DÅYlŹu{hTœ}mĉ–¹¥ě‰Dÿë©ıÓ[Oº£ž“¥ót€ł¹MՄžƪƒ`Pš…Di–ÛUоÅ‌ìˆU’ñB“È£ýhe‰dy¡oċ€`pfmjP~‚kZa…ZsÐd°wj§ƒ@€Ĵ®w~^‚kÀÅKvNmX\\¨a“”сqvíó¿F„¤¡@ũÑVw}S@j}¾«pĂr–ªg àÀ²NJ¶¶Dô…K‚|^ª†Ž°LX¾ŴäPᜣEXd›”^¶›IJÞܓ~‘u¸ǔ˜Ž›MRhsR…e†`ÄofIÔ\\Ø  i”ćymnú¨cj ¢»–GČìƊÿШXeĈ¾Oð Fi ¢|[jVxrIQŒ„_E”zAN¦zLU`œcªx”OTu RLĪpUžĪ‚ȴ^ŎµªÉžFx…Ü€f¤ºgIJèy°Áb[¦Zb¦–z½xBĖ@ªpº›˜jS´rVźOd©ʪiĎă’JP‡ž`"]],encodeOffsets:[[[115640,30489],[112577,27316],[114113,30649]]]},properties:{cp:[112.982279,28.19409],name:"湖南",childNum:3}},{id:"440000",geometry:{type:"MultiPolygon",coordinates:[["@@QdˆAsa","@@ƒlxDRm","@@sbhNLo","@@Ă ý","@@WltOY[","@@Krœ]‰S","@@e„~AS}","@@I|„Mym","@@ƒÛ³LSŒž²Q","@@nvºB–ë¥cÕº","@@zdšÛ›JmŠ","@@†°³","@@a yAª¸ËJIx،@€ĀHÉÕZ™o•fo…o","@@šs‰ŗÃÔėAƁ›ZšÄ ~°ČP‚‹ºb","@@‹¶Ý’Ì‚vmĞh¹Ĺ","@@HœŠdSjĒ¢D}war…“u«ZqadY{K","@@elŒ\\LqqO","@@~rMmX","@@f„^E","@@øPªoj÷ÍÝħXČx”°Q¨ıXJp","@@gÇƳˆˆ–m’Žxa†tfu","@@E–ÆC½‘","@@¸B_¶ekWvSi‡vc•}p}Ăº¾NĎyj¦Èm thœ†_®žÄ}ˆ»âUzL™Ë‹²‘Aƒā¡ßH©Ùñ}wkNÕ¹ÇO½¿£ēUlƒaUìIžÇª`ŠuTÅxYĒÖ¼k֞’µ‚MžjJÚwn\\h‘œĒv]îh|’È›Ƅøègž¸Ķß ĉĈWb¹ƀdéƌNTtP[ŠöSvrCZžžaGuœbo´ŖÒÇА~¡zCI…özx¢„Pn‹•‰Èñ @ŒĥÒ¦†]ƜŽX³ăĔñiiÄÓVépKG½Ä‘ÓávYo–C·sit‹iaÀy„ŧΡÈYDÑům}‰ý|m[węõĉZÅxUO}÷N¹³ĉo_qtă“qwµŁYلǝŕ¹tïÛUïmRCº…ˆĭ|µ›ÕÊK™½R‘ē ó]‘–GªęAx–ŸNqSF•|ām‡¡diď×YïYWªʼnOeÚtĐ«zđ¹T…ā‡úE™áÎÁWw헟HcòßÎſ¿Çdğ·ùT×Çūʄ¡XgWÀLJğ·¿ÃˆOj YÇ÷Sğ³kzőõm‰™ĝ—[³‹¡VÙæÅöM̳¹pÁaËýý©D©Ü“JŹƕģGą¤{Ùū…ǘO²«BƱéA—Ò‰ĥ‡¡«BhlmtÃPµyU¯uc“d·w_bŝcīímGOŽ€GBȅ‰ŹãĻFŷŽŕ@Óoo¿ē‹±ß}Ž}ÓF÷tIJWÈCőâUâǙI›ğʼn©I›ijEׅÁ”³AĥDĈ±ÌŒÜӔĨ£L]ĈÙƺZǾĆĖMĸĤfŒÎĵl•ŨnȈ‘ĐtF”Š–FĤ–‚êk¶œ^k°f¶gŠŽœ}®Fa˜f`vXŲxl˜„¦–ÔÁ²¬ÐŸ¦pqÊ̲ˆi€XŸØRDÎ}†Ä@ZĠ’s„x®AR~®ETtĄZ†–ƈfŠŠHâÒÐA†µ\\S¸„^wĖkRzŠalŽŜ|E¨ÈNĀňZTŒ’pBh£\\ŒĎƀuXĖtKL–¶G|Ž»ĺEļĞ~ÜĢÛĊrˆO˜Ùîvd]nˆ¬VœÊĜ°R֟pM††–€ƀ¬HbwžEÀˆ˜©Œž\\…¤]ŸI®¥D³|ˎ]CúAЦ…æ’´¥¸Lv¼€•¢ĽBaô–F~—š®²GÌҐEY„„œzk¤’°ahlV՞I^‹šCxĈPŽsB‰ƒºV‰ÀB¶¨R²´D","@@OŽR"]],encodeOffsets:[[[117381,22988],[116552,22934],[116790,22617],[116973,22545],[116444,22536],[116931,22515],[116496,22490],[116453,22449],[113301,21439],[118726,21604],[118709,21486],[113210,20816],[115482,22082],[113171,21585],[113199,21590],[115232,22102],[115739,22373],[115134,22184],[113056,21175],[119573,21271],[119957,24020],[115859,22356],[116680,26053],[116561,22649]]]},properties:{cp:[113.280637,23.125178],name:"广东",childNum:24}},{id:"450000",geometry:{type:"MultiPolygon",coordinates:[["@@H– TI¡U","@@Ɣ_LÊFZg…čP­kini«‹qǀcz͔Y®¬Ů»qR×ō©DՄ‘§ƙǃŵTÉĩ±ŸıdÑnYY›IJvNĆÌØÜ Öp–}e³¦m‹©iÓ|¹Ÿħņ›|ª¦QF¢Â¬ʖovg¿em‡^ucäāmÇÖåB¡Õçĝ}FϼĹ{µHK•sLSđƃr‹č¤[Ag‘oS‹ŇYMÿ§Ç{Fśbky‰lQxĕƒ]T·¶[B…ÑÏGáşşƇe€…•ăYSs­FQ}­Bƒw‘tYğÃ@~…C̀Q ×W‡j˱rÉ¥oÏ ±«ÓÂ¥•ƒ€k—ŽwWűŽue_b—­E›~‰µh¯ecl¯›Ïr¯‡E쉕Jƒğƒ}žw³–Ƈē`ãògK_ÛsUʝ“ćğ¶hŒöŒO¤Ǜn³Žc‘`¡yi–ę–‘[ďĵűMę§]X˜Î_‚훘Û]é’ÛUćİÕBƣ±…dƒy¹T^džûÅÑŦ·‡PĻþÙ`K€¦˜…¢ÍeœĥR¿Œ³£[~Œäu¼dl‰t‚†W¸oRM¢ď\\zœ}Æzdvň–{ÎXF¶°Â_„ÒÂÏL©Ö•TmuŸ¼ãl‰›īkiqéfA„·Êµ\\őDc¥ÝF“y›Ôć˜c€űH_hL܋êĺШc}rn`½„Ì@¸¶ªVLŒŠhŒ‹\\•Ţĺk~ŽĠið°|gŒtTĭĸ^x‘vK˜VGréAé‘bUu›MJ‰VÃO¡…qĂXËS‰ģãlýàŸ_ju‡YÛÒB†œG^˜é֊¶§ŽƒEG”ÅzěƒƯ¤Ek‡N[kdåucé¬dnYpAyČ{`]þ±X’\\’ÞÈk‚¡Ĭj†àh„ÂƄ¢H茠Ŕ⪃LƒĒ^Öm¶ħĊAǦė¸zÚGn£¾›rªŀÜt¬@֛ڈSx~øOŒ˜ŶÐÂæȠ\\„ÈÜObĖw^oބLf¬°bI lTØB̈F£Ć¹gñĤaY“t¿¤VSñœK¸¤nM†¼‚JE±„½¸šŠño‹ÜCƆæĪ^ŠĚQÖ¦^‡ˆˆf´Q†üÜʝz¯šlzUĺš@쇀p¶n]sxtx¶@„~ÒĂJb©gk‚{°‚~c°`ԙ¬rV\\“la¼¤ôá`¯¹LC†ÆbŒxEræO‚v[H­˜„[~|aB£ÖsºdAĐzNÂðsŽÞƔ…Ĥªbƒ–ab`ho¡³F«èVZs„\\\\Œ™ÔRzpp®SŽĪº¨ÖƒºN…ij„d`’a”¦¤F³¢@„`¢ĨĀìhYvlŠĆº¦Ċ•~nS›|gźv^kGƄÀè·"]],encodeOffsets:[[[111707,21520],[113706,26955]]]},properties:{cp:[108.320004,22.82402],name:"广西",childNum:2}},{id:"460000",geometry:{type:"Polygon",coordinates:["@@š¦Ŝil¢”XƦ‘ƞò–ïè§ŞCêɕrŧůÇąĻõ™·ĉ³œ̅kÇm@ċȧƒŧĥ‰Ľʉ­ƅſ“ȓÒ˦ŝE}ºƑ[ÍĜȋ gÎfǐÏĤ¨êƺ\\Ɔ¸ĠĎvʄȀœÐ¾jNðĀÒRŒšZdž™zМŒĊ†¢DÀɘZ"],encodeOffsets:[[112750,20508]]},properties:{cp:[110.33119,20.031971],name:"海南",childNum:1}},{id:"510000",geometry:{type:"MultiPolygon",coordinates:[["@@LqSn","@@ĆOìÛÐ@Ğ™ǔNY{¤Á§d…i“´ezÝúØãwŒƒIŸþËQǦÃqɞSJ»ĂéʔõÔƁİlƞ¹„§Ĭqt‘ÀƄmÀêErĒtD®ċæcQƒ”E®³^ĭ¥©l}äQto˜ŖÜqƎkµ–„ªÔĻĴ¡@Ċ°B²Èw^^RsºT£ڿœQP‘JvÄz„^Đ¹Æ¯fLà´GC²‘dt˜­ĀRt¼¤ĦOðğfÔðDŨŁĞƘïžPȆ®âbMüÀXZ ¸£@Ś›»»QÉ­™]d“sÖ×_͖_ÌêŮPrĔĐÕGĂeZÜîĘqBhtO ¤tE[h|Y‹Ô‚ZśÎs´xº±UŒ’ñˆt|O’ĩĠºNbgþŠJy^dÂY Į„]Řz¦gC‚³€R`Šz’¢AjŒ¸CL„¤RÆ»@­Ŏk\\Ç´£YW}z@Z}‰Ã¶“oû¶]´^N‡Ò}èN‚ª–P˜Íy¹`S°´†ATe€VamdUĐwʄvĮÕ\\ƒu‹Æŗ¨Yp¹àZÂm™Wh{á„}WØǍ•Éüw™ga§ßAYŸrÅÂQĀÕ¬LŐý®X˜øxª½Ű¦¦[€—þ„`ÜUÖ´òrÙŠ°²Äk„ijnDX{Uƒ~ET{ļº¦PZc”jF²Ė@Žp˜g€ˆ¨“B{ƒu¨ŦyhoÚD®¯¢˜ WòàFΤ¨GDäz¦kŮPœġq˚¥À]€Ÿ˜eŽâÚ´ªKxī„Pˆ—Ö|æ[xäJÞĥ‚s’NÖ½ž€I†¬nĨY´®Ð—ƐŠ€mD™ŝuäđđEb…e’e_™v¡}ìęNJē}q”É埁T¯µRs¡M@}ůa†a­¯wvƉåZwž\\Z{åû`Ÿ†[±oi•‘JDŦ]‘‰ĕãïrG •réÏ·~ąSfy×͂·ºſƽĵȁŗūmHQ¡Y¡®ÁÃ×t«ƒ­Tƒ¤J–JJŒyJ•ÈŠ`Ohߦ¡uËhIyCjmÿw…ZG……Ti‹SˆsO‰žB²ŸfNmsPaˆ{M{ŠõE‘^Hj}gYpaeuž¯‘oáwHjÁ½M¡pM“–uå‡mni{fk”\\oƒÎqCw†EZ¼K›ĝŠƒAy{m÷L‡wO×SimRI¯rK™õBS«sFe‡]fµ¢óY_ÆPRcue°Cbo׌bd£ŌIHgtrnyPt¦foaXďx›lBowz‹_{ÊéWiêE„GhܸºuFĈIxf®Ž•Y½ĀǙ]¤EyŸF²ċ’w¸¿@g¢§RGv»–áŸW`ÃĵJwi]t¥wO­½a[׈]`Ãi­üL€¦LabbTÀå’c}Íh™Æhˆ‹®BH€î|Ék­¤S†y£„ia©taį·Ɖ`ō¥Uh“O…ƒĝLk}©Fos‰´›Jm„µlŁu—…ø–nÑJWΪ–YÀïAetTžŅ‚ӍG™Ë«bo‰{ıwodƟ½ƒžOġܑµxàNÖ¾P²§HKv¾–]|•B‡ÆåoZ`¡Ø`ÀmºĠ~ÌЧnDž¿¤]wğ@sƒ‰rğu‰~‘Io”[é±¹ ¿žſđӉ@q‹gˆ¹zƱřaí°KtǤV»Ã[ĩǭƑ^ÇÓ@ỗs›Zϕ‹œÅĭ€Ƌ•ěpwDóÖሯneQˌq·•GCœýS]xŸ·ý‹q³•O՜Œ¶Qzßti{ř‰áÍÇWŝŭñzÇW‹pç¿JŒ™‚Xœĩè½cŒF–ÂLiVjx}\\N†ŇĖ¥Ge–“JA¼ÄHfÈu~¸Æ«dE³ÉMA|b˜Ò…˜ćhG¬CM‚õŠ„ƤąAvƒüV€éŀ‰_V̳ĐwQj´·ZeÈÁ¨X´Æ¡Qu·»Ÿ“˜ÕZ³ġqDo‰y`L¬gdp°şŠp¦ėìÅĮZްIä”h‚‘ˆzŠĵœf²å ›ĚрKp‹IN|‹„Ñz]ń……·FU×é»R³™MƒÉ»GM«€ki€™ér™}Ã`¹ăÞmȝnÁîRǀ³ĜoİzŔwǶVÚ£À]ɜ»ĆlƂ²Ġ…þTº·àUȞÏʦ¶†I’«dĽĢdĬ¿–»Ĕ׊h\\c¬†ä²GêëĤł¥ÀǿżÃÆMº}BÕĢyFVvw–ˆxBèĻĒ©Ĉ“t@Ğû¸£B¯¨ˋäߜkŽķŒ½ª“ôNԓ~t¼Ŵ„u„œ^s¼{TA¼ø°¢İªDè¾Ň¶ÝJ‘®Z´ğ~Sn|ªWÚ©òzPOȸ‚bð¢|‹øĞŠŒœŠA"]],encodeOffsets:[[[108815,30935],[100197,35028]]]},properties:{cp:[104.065735,30.659462],name:"四川",childNum:2}},{id:"520000",geometry:{type:"MultiPolygon",coordinates:[["@@†G\\†lY£‘cj","@@q‚|ˆ‚mc¯vωV","@@hÑ£Is‡NgßH†›HªķÃh_¹ƒ¡ĝħń¦uيùŽgS¯JHŸ|sÝÅtÁïyMDč»eÕtA¤{b\\}—ƒG®u\\åPFq‹wÅaD…žK°ºâ_£ùbµ”mÁ‹ÛœĹM[q|hlaªāI}тƒµ@swtwm^oµˆD鼊yV™ky°ÉžûÛR…³‚‡eˆ‡¥]RՋěħ[ƅåÛDpŒ”J„iV™™‰ÂF²I…»mN·£›LbÒYb—WsÀbŽ™pki™TZĄă¶HŒq`……ĥ_JŸ¯ae«ƒKpÝx]aĕÛPƒÇȟ[ÁåŵÏő—÷Pw}‡TœÙ@Õs«ĿÛq©½œm¤ÙH·yǥĘĉBµĨÕnđ]K„©„œá‹ŸG纍§Õßg‡ǗĦTèƤƺ{¶ÉHÎd¾ŚÊ·OÐjXWrãLyzÉAL¾ę¢bĶėy_qMĔąro¼hĊžw¶øV¤w”²Ĉ]ʚKx|`ź¦ÂÈdr„cȁbe¸›`I¼čTF´¼Óýȃr¹ÍJ©k_șl³´_pН`oÒh޶pa‚^ÓĔ}D»^Xyœ`d˜[Kv…JPhèhCrĂĚÂ^Êƌ wˆZL­Ġ£šÁbrzOIl’MM”ĪŐžËr×ÎeŦŽtw|Œ¢mKjSǘňĂStÎŦEtqFT†¾†E쬬ôxÌO¢Ÿ KгŀºäY†„”PVgŎ¦Ŋm޼VZwVlŒ„z¤…ž£Tl®ctĽÚó{G­A‡ŒÇgeš~Αd¿æaSba¥KKûj®_ć^\\ؾbP®¦x^sxjĶI_Ä X‚⼕Hu¨Qh¡À@Ëô}ޱžGNìĎlT¸ˆ…`V~R°tbÕĊ`¸úÛtπFDu€[ƒMfqGH·¥yA‰ztMFe|R‚_Gk†ChZeÚ°to˜v`x‹b„ŒDnÐ{E}šZ˜è€x—†NEފREn˜[Pv@{~rĆAB§‚EO¿|UZ~ì„Uf¨J²ĂÝÆ€‚sª–B`„s¶œfvö¦ŠÕ~dÔq¨¸º»uù[[§´sb¤¢zþFœ¢Æ…Àhˆ™ÂˆW\\ıŽËI݊o±ĭŠ£þˆÊs}¡R]ŒěƒD‚g´VG¢‚j±®è†ºÃmpU[Á›‘Œëº°r›ÜbNu¸}Žº¼‡`ni”ºÔXĄ¤¼Ôdaµ€Á_À…†ftQQgœR—‘·Ǔ’v”}Ýלĵ]µœ“Wc¤F²›OĩųãW½¯K‚©…]€{†LóµCIµ±Mß¿hŸ•©āq¬o‚½ž~@i~TUxð´Đhw­ÀEîô‚uĶ‚’“‚b[§nWuMÆJl½]vuıµb"]],encodeOffsets:[[[112158,27383],[112105,27474],[112095,27476]]]},properties:{cp:[106.713478,26.578343],name:"贵州",childNum:3}},{id:"530000",geometry:{type:"Polygon",coordinates:["@@[„ùx½}ÑRH‘YīĺûsÍn‘iEoã½Ya²ė{c¬ĝg•ĂsA•ØÅwď‚õzFjw}—«Dx¿}UũlŸê™@•HÅ­F‰¨ÇoJ´Ónũuą¡Ã¢pÒŌ“Ø TF²‚xa²ËX€‚cʋlHîAßËŁkŻƑŷÉ©h™W­æßU‡“Ës¡¦}•teèÆ¶StǀÇ}Fd£j‹ĈZĆÆ‹¤T‚č\\Dƒ}O÷š£Uˆ§~ŃG™‚åŃDĝ¸œTsd¶¶Bªš¤u¢ŌĎo~t¾ÍŶÒtD¦Ú„iôö‰€z›ØX²ghįh½Û±¯€ÿm·zR¦Ɵ`ªŊÃh¢rOԍ´£Ym¼èêf¯ŪĽn„†cÚbŒw\\zlvWžªâˆ ¦g–mĿBş£¢ƹřbĥkǫßeeZkÙIKueT»sVesb‘aĕ  ¶®dNœĄÄpªyސ¼—„³BE˜®l‡ŽGœŭCœǶwêżĔÂe„pÍÀQƞpC„–¼ŲÈ­AÎô¶R„ä’Q^Øu¬°š_Èôc´¹ò¨P΢hlϦ´Ħ“Æ´sâDŽŲPnÊD^¯°’Upv†}®BP̪–jǬx–Söwlfòªv€qĸ|`H€­viļ€ndĜ­Ćhň•‚em·FyށqóžSᝑ³X_ĞçêtryvL¤§z„¦c¦¥jnŞk˜ˆlD¤øz½ĜàžĂŧMÅ|áƆàÊcðÂF܎‚áŢ¥\\\\º™İøÒÐJĴ‡„îD¦zK²ǏÎEh~’CD­hMn^ÌöÄ©ČZÀžaü„fɭyœpį´ěFűk]Ôě¢qlÅĆÙa¶~Äqššê€ljN¬¼H„ÊšNQ´ê¼VظE††^ŃÒyŒƒM{ŒJLoÒœęæŸe±Ķ›y‰’‡gã“¯JYÆĭĘëo¥Š‰o¯hcK«z_pŠrC´ĢÖY”—¼ v¸¢RŽÅW³Â§fǸYi³xR´ďUˊ`êĿU„û€uĆBƒƣö‰N€DH«Ĉg†——Ñ‚aB{ÊNF´¬c·Åv}eÇÃGB»”If•¦HňĕM…~[iwjUÁKE•Ž‹¾dĪçW›šI‹èÀŒoÈXòyŞŮÈXâÎŚŠj|àsRy‹µÖ›–Pr´þŒ ¸^wþTDŔ–Hr¸‹žRÌmf‡żÕâCôox–ĜƌÆĮŒ›Ð–œY˜tâŦÔ@]ÈǮƒ\\μģUsȯLbîƲŚºyh‡rŒŠ@ĒԝƀŸÀ²º\\êp“’JŠ}ĠvŠqt„Ġ@^xÀ£È†¨mËÏğ}n¹_¿¢×Y_æpˆÅ–A^{½•Lu¨GO±Õ½ßM¶w’ÁĢۂP‚›Ƣ¼pcIJxŠ|ap̬HšÐŒŊSfsðBZ¿©“XÏÒK•k†÷Eû¿‰S…rEFsÕūk”óVǥʼniTL‚¡n{‹uxţÏh™ôŝ¬ğōN“‘NJkyPaq™Âğ¤K®‡YŸxÉƋÁ]āęDqçgOg†ILu—\\_gz—]W¼ž~CÔē]bµogpў_oď`´³Țkl`IªºÎȄqÔþž»E³ĎSJ»œ_f·‚adÇqƒÇc¥Á_Źw{™L^ɱćx“U£µ÷xgĉp»ĆqNē`rĘzaĵĚ¡K½ÊBzyäKXqiWPÏɸ½řÍcÊG|µƕƣG˛÷Ÿk°_^ý|_zċBZocmø¯hhcæ\\lˆMFlư£Ĝ„ÆyH“„F¨‰µêÕ]—›HA…àӄ^it `þßäkŠĤÎT~Wlÿ¨„ÔPzUC–NVv [jâôDôď[}ž‰z¿–msSh‹¯{jïğl}šĹ[–őŒ‰gK‹©U·µË@¾ƒm_~q¡f¹…ÅË^»‘f³ø}Q•„¡Ö˳gͱ^ǁ…\\ëÃA_—¿bW›Ï[¶ƛ鏝£F{īZgm@|kHǭƁć¦UĔťƒ×ëǟ…eċ¼ȡȘÏíBə£āĘPªij¶“ʼnÿ‡y©n‰ď£G¹¡I›Š±LÉĺÑdĉ܇W¥˜‰}g˜Á†{aqÃ¥aŠıęÏZ—Á`"],encodeOffsets:[[104636,22969]]},properties:{cp:[102.712251,25.040609],name:"云南",childNum:1}},{id:"540000",geometry:{type:"Polygon",coordinates:["@@hžľxŽŖ‰xƒÒVކºÅâAĪÝȆµę¯Ňa±r_w~uSÕň‘qOj]ɄQ…£Z……UDûoY’»©M[‹L¼qãË{V͕çWViŽ]ë©Ä÷àyƛh›ÚU°ŒŒa”d„cQƒ~Mx¥™caŸÛcSyF—ցk­ŒuRýq¿Ôµ•QĽ³aG{¿FµëªéĜÿª@¬·–K‰·àariĕĀ«V»Ŷ™Ĵū˜gèLǴŇƶaf‹tŒèBŚ£^Šâ†ǐÝ®–šM¦ÁǞÿ¬LhŸŽJ¾óƾƺcxw‹f]Y…´ƒ¦|œQLn°aœdĊ…œ\\¨o’œǀÍŎœ´ĩĀd`tÊQŞŕ|‚¨C^©œĈ¦„¦ÎJĊ{ŽëĎjª²rЉšl`¼Ą[t|¦St辉PŒÜK¸€d˜Ƅı]s¤—î_v¹ÎVòŦj˜£Əsc—¬_Ğ´|٘¦Avަw`ăaÝaa­¢e¤ı²©ªSªšÈMĄwžÉØŔì@T‘¤—Ę™\\õª@”þo´­xA s”ÂtŎKzó²Çȵ¢rž^nĊ­Æ¬×üGž¢‚³ {âĊ]š™G‚~bÀgVjzlhǶf€žOšfdЉªB]pj„•TO–tĊ‚n¤}®¦ƒČ¥d¢¼»ddš”Y¼Žt—¢eȤJ¤}Ǿ¡°§¤AГlc@ĝ”sªćļđAç‡wx•UuzEÖġ~AN¹ÄÅȀݦ¿ģŁéì±H…ãd«g[؉¼ēÀ•cīľġ¬cJ‘µ…ÐʥVȝ¸ßS¹†ý±ğkƁ¼ą^ɛ¤Ûÿ‰b[}¬ōõÃ]ËNm®g@•Bg}ÍF±ǐyL¥íCˆƒIij€Ï÷њį[¹¦[⚍EÛïÁÉdƅß{âNÆāŨߝ¾ě÷yC£‡k­´ÓH@¹†TZ¥¢įƒ·ÌAЧ®—Zc…v½ŸZ­¹|ŕWZqgW“|ieZÅYVӁqdq•bc²R@†c‡¥Rã»Ge†ŸeƃīQ•}J[ғK…¬Ə|o’ėjġĠÑN¡ð¯EBčnwôɍėªƒ²•CλŹġǝʅįĭạ̃ūȹ]ΓͧgšsgȽóϧµǛ†ęgſ¶ҍć`ĘąŌJޚä¤rÅň¥ÖÁUětęuůÞiĊÄÀ\\Æs¦ÓRb|Â^řÌkÄŷ¶½÷‡f±iMݑ›‰@ĥ°G¬ÃM¥n£Øą‚ğ¯ß”§aëbéüÑOčœk£{\\‘eµª×M‘šÉfm«Ƒ{Å׃Gŏǩãy³©WÑăû‚··‘Q—òı}¯ã‰I•éÕÂZ¨īès¶ZÈsŽæĔTŘvŽgÌsN@îá¾ó@‰˜ÙwU±ÉT廣TđŸWxq¹Zo‘b‹s[׌¯cĩv‡Œėŧ³BM|¹k‰ªħ—¥TzNYnݍßpęrñĠĉRS~½ŠěVVе‚õ‡«ŒM££µB•ĉ¥áºae~³AuĐh`Ü³ç@BۘïĿa©|z²Ý¼D”£à貋ŸƒIƒû›I ā€óK¥}rÝ_Á´éMaň¨€~ªSĈ½Ž½KÙóĿeƃÆBŽ·¬ën×W|Uº}LJrƳ˜lŒµ`bÔ`QˆˆÐÓ@s¬ñIŒÍ@ûws¡åQÑßÁ`ŋĴ{Ī“T•ÚÅTSij‚‹Yo|Ç[ǾµMW¢ĭiÕØ¿@˜šMh…pÕ]j†éò¿OƇĆƇp€êĉâlØw–ěsˆǩ‚ĵ¸c…bU¹ř¨WavquSMzeo_^gsÏ·¥Ó@~¯¿RiīB™Š\\”qTGªÇĜçPoŠÿfñòą¦óQīÈáP•œābß{ƒZŗĸIæÅ„hnszÁCËìñšÏ·ąĚÝUm®ó­L·ăU›Èíoù´Êj°ŁŤ_uµ^‘°Œìǖ@tĶĒ¡Æ‡M³Ģ«˜İĨÅ®ğ†RŽāð“ggheÆ¢z‚Ê©Ô\\°ÝĎz~ź¤Pn–MĪÖB£Ÿk™n鄧żćŠ˜ĆK„ǰ¼L¶è‰âz¨u¦¥LDĘz¬ýÎmĘd¾ß”Fz“hg²™Fy¦ĝ¤ċņbΛ@y‚Ąæm°NĮZRÖíŽJ²öLĸÒ¨Y®ƌÐV‰à˜tt_ڀÂyĠzž]Ţh€zĎ{†ĢX”ˆc|šÐqŽšfO¢¤ög‚ÌHNŽ„PKŖœŽ˜Uú´xx[xˆvĐCûŠìÖT¬¸^}Ìsòd´_އKgžLĴ…ÀBon|H@–Êx˜—¦BpŰˆŌ¿fµƌA¾zLjRxжF”œkĄźRzŀˆ~¶[”´Hnª–VƞuĒ­È¨ƎcƽÌm¸ÁÈM¦x͊ëÀxdžB’šú^´W†£–d„kɾĬpœw‚˂ØɦļĬIŚœÊ•n›Ŕa¸™~J°î”lɌxĤÊÈðhÌ®‚g˜T´øŽàCˆŽÀ^ªerrƘdž¢İP|Ė ŸWœªĦ^¶´ÂL„aT±üWƜ˜ǀRšŶUńšĖ[QhlLüA†‹Ü\\†qR›Ą©"],encodeOffsets:[[90849,37210]]},properties:{cp:[91.132212,29.660361],name:"西藏",childNum:1}},{id:"610000",geometry:{type:"Polygon",coordinates:["@@¸œÂW¢xR­—ƒFq§uF—Œ@NŸ¢XLƒŠRMº[ğȣſï|¥J™kc`sʼnǷ’£Y³‹WN«ùM‘ëï³ÛIg÷±mTșڍÒķø©—þ¥ƒy‚ÓŸğęmWµÎumZyOŅƟĥÓ~sÑL¤µaŅY¦ocyZ{‰y c]{ŒTa©ƒ`U_Ěē£ωÊƍKù’K¶ȱÝƷ§{û»ÅÁȹÍéuij|¹cÑd‘ŠìUYƒŽO‘uF–ÕÈYvÁCqӃT•Ǣí§·S¹NgŠV¬ë÷Át‡°Dد’C´ʼnƒópģ}„ąiE˅FŸŸéGU¥×K…§­¶³B‹Č}C¿åċ`wġB·¤őcƭ²ő[Å^axwQO…ñJÙïŚ•ĤNĔŸwƇˆÄŠńwĪ­Šo[„_KÓª³“ÙnK‰Çƒěœÿ]ď€ă_d©·©Ýŏ°Ù®g]±„Ÿ‡ßš×¥¬÷m\\›iaǑkěX{¢|ZKlçhLt€Ňîŵ€œè[€É@ƉĄEœ‡tƇÏ˜³­ħZ«mJ…›×¾‘MtÝĦ£IwÄå\\Õ{‡˜ƒOwĬ©LÙ³ÙT“ª¿^™¦r̛ĢŭO¥lãyC§HÍ£ßEñŸX¡—­°ÙCgpťz‘ˆb`wI„vA|¥”‡—hoĕ@E±“iYd¥OÿµÇvPŒW|mCƒĴŜǂ҈W¶¸AĜh^Wx{@„¬‚­F¸¡„ķn£P|ŸªĴ@^ĠĈæb–Ôc¶l˜Yi…–^Mi˜cϰÂ[ä€vï¶gv@À“Ĭ·lJ¸sn|¼u~a]’ÆÈtŌºJp’ƒþ£KKf~ЦUbyäIšĺãn‡Ô¿^­žŵMT–hĠܤko¼Ŏìąǜh`[tŒRd²IJ_œXPrɲ‰l‘‚XžiL§àƒ–¹ŽH˜°Ȧqº®QC—bA†„ŌJ¸ĕÚ³ĺ§ `d¨YjžiZvRĺ±öVKkjGȊĐePОZmļKÀ€‚[ŠŽ`ösìh†ïÎoĬdtKÞ{¬èÒÒBŒÔpIJÇĬJŊ¦±J«ˆ[©ārH€µàåVKe§|P²ÇÓ·vUz‰gnN¾yI@oŸHĆۄķhx“e‘n¡QQ’±”ƝJ‹ǖRbzy€¸ËАl›¼EºpĤ¼Œx¼½~Ğ’”à@†ÚüdK^ˆmÌSjˆp²—ȮµšûG™Ħ}Ħšðǚ¶òƄ€jɂz°{ºØkÈęâ¦jª‚Bg‚\\œċ°s¬Ž’]jžú ‚E”Ȍdž¬s„t‡”RˆÆdĠݎwܔ¸ôW¾ƮłÒ_{’Ìšû¼„jº¹¢GǪÒ¯ĘƒZ`ºŊƒecņąš~BÂgzpâēòYƲȐπ"],encodeOffsets:[[113634,40474]]},properties:{cp:[108.948024,34.263161],name:"陕西",childNum:1}},{id:"620000",geometry:{type:"MultiPolygon",coordinates:[["@@Vu_^","@@ų‹EĠtt~nkh`Q‰¦ÅÄÜdw˜Ab×ĠąJˆ¤DüègĺqBqœj°lI¡Ĩ¶šĖIHdš‰ŠjΑBаaZˆ¢KJŽ’O[|A£žDx}Nì•HUnrk„ kp€¼Y kMJn[aG‚áÚÏ[½rc†}aQxOgsPMnUs‡nc‹Z…ž–sKúvA›t„Þġ’£®ĀYKdnFwš¢JE°”Latf`¼h¬we|€Æ‡šbj}GA€·~WŽ”—`†¢MC¤tL©IJ°qdf”O‚“bÞĬ¹ttu`^ZúE`Œ[@„Æsîz®¡’C„ƳƜG²“R‘¢R’m”fŽwĸg܃‚ą G@pzJM½mŠhVy¸uÈÔO±¨{LfæU¶ßGĂq\\ª¬‡²I‚¥IʼnÈīoı‹ÓÑAçÑ|«LÝcspīðÍg…të_õ‰\\ĉñLYnĝg’ŸRǡÁiHLlõUĹ²uQjYi§Z_c¨Ÿ´ĹĖÙ·ŋI…ƒaBD˜­R¹ȥr—¯G•ºß„K¨jWk’ɱŠOq›Wij\\a­‹Q\\sg_ĆǛōëp»£lğۀgS•ŶN®À]ˆÓäm™ĹãJaz¥V}‰Le¤L„ýo‘¹IsŋÅÇ^‘Žbz…³tmEÁ´aйcčecÇN•ĊãÁ\\蝗dNj•]j†—ZµkÓda•ćå]ğij@ ©O{¤ĸm¢ƒE·®ƒ«|@Xwg]A챝‡XǁÑdzªc›wQÚŝñsÕ³ÛV_ýƒ˜¥\\ů¥©¾÷w—Ž©WÕÊĩhÿÖÁRo¸V¬âDb¨šhûx–Ê×nj~Zâƒg|šXÁnßYoº§ZÅŘvŒ[„ĭÖʃuďxcVbnUSf…B¯³_Tzº—ΕO©çMÑ~Mˆ³]µ^püµ”ŠÄY~y@X~¤Z³€[Èōl@®Å¼£QKƒ·Di‹¡By‘ÿ‰Q_´D¥hŗyƒ^ŸĭÁZ]cIzý‰ah¹MĪğP‘s{ò‡‹‘²Vw¹t³Ŝˁ[ŽÑ}X\\gsFŸ£sPAgěp×ëfYHāďÖqēŭOÏë“dLü•\\iŒ”t^c®šRʺ¶—¢H°mˆ‘rYŸ£BŸ¹čIoľu¶uI]vģSQ{ƒUŻ”Å}QÂ|̋°ƅ¤ĩŪU ęĄžÌZҞ\\v˜²PĔ»ƢNHƒĂyAmƂwVmž`”]ȏb•”H`‰Ì¢²ILvĜ—H®¤Dlt_„¢JJÄämèÔDëþgºƫ™”aʎÌrêYi~ ÎݤNpÀA¾Ĕ¼b…ð÷’Žˆ‡®‚”üs”zMzÖĖQdȨý†v§Tè|ªH’þa¸|šÐ ƒwKĢx¦ivr^ÿ ¸l öæfƟĴ·PJv}n\\h¹¶v†·À|\\ƁĚN´Ĝ€çèÁz]ġ¤²¨QÒŨTIl‡ªťØ}¼˗ƦvÄùØE‹’«Fï˛Iq”ōŒTvāÜŏ‚íÛߜÛV—j³âwGăÂíNOŠˆŠPìyV³ʼnĖýZso§HіiYw[߆\\X¦¥c]ÔƩÜ·«j‡ÐqvÁ¦m^ċ±R™¦΋ƈťĚgÀ»IïĨʗƮްƝ˜ĻþÍAƉſ±tÍEÕÞāNU͗¡\\ſčåÒʻĘm ƭÌŹöʥ’ëQ¤µ­ÇcƕªoIýˆ‰Iɐ_mkl³ă‰Ɠ¦j—¡Yz•Ňi–}Msßõ–īʋ —}ƒÁVmŸ_[n}eı­Uĥ¼‘ª•I{ΧDӜƻėoj‘qYhĹT©oūĶ£]ďxĩ‹ǑMĝ‰q`B´ƃ˺Ч—ç~™²ņj@”¥@đ´ί}ĥtPńǾV¬ufӃÉC‹tÓ̻‰…¹£G³€]ƖƾŎĪŪĘ̖¨ʈĢƂlɘ۪üºňUðǜȢƢż̌ȦǼ‚ĤŊɲĖ­KqĘʼn¼ĔDzņɾªǀÞĈĂD†½ĄĎÌŗĞrôñnŽœN¼â¾ʄľԆ|DŽŽ֦ज़ȗlj̘̭ɺƅêgV̍ʆĠ·ÌĊv|ýĖÕWĊǎÞ´õ¼cÒÒBĢ͢UĜð͒s¨ňƃLĉÕÝ@ɛƯ÷¿Ľ­ĹeȏijëCȚDŲyê×Ŗyò¯ļcÂßY…tÁƤyAã˾J@ǝrý‹‰@¤…rz¸oP¹ɐÚyᐇHŸĀ[Jw…cVeȴϜ»ÈŽĖ}ƒŰŐèȭǢόĀƪÈŶë;Ñ̆ȤМľĮEŔ—ĹŊũ~ËUă{ŸĻƹɁύȩþĽvĽƓÉ@ē„ĽɲßǐƫʾǗĒpäWÐxnsÀ^ƆwW©¦cÅ¡Ji§vúF¶Ž¨c~c¼īŒeXǚ‹\\đ¾JŽwÀďksãA‹fÕ¦L}wa‚o”Z’‹D½†Ml«]eÒÅaɲáo½FõÛ]ĻÒ¡wYR£¢rvÓ®y®LF‹LzĈ„ôe]gx}•|KK}xklL]c¦£fRtív¦†PŨ£","@@Mš T‡¥"]],encodeOffsets:[[[108619,36299],[108594,36341],[108600,36306]]]},properties:{cp:[103.823557,36.058039],name:"甘肃",childNum:3}},{id:"630000",geometry:{type:"MultiPolygon",coordinates:[["@@InJo","@@CƒÆ½OŃĦsΰ~dz¦@@“Ņiš±è}ؘƄ˹A³r_ĞŠǒNΌĐw¤^ŬĵªpĺSZg’rpiƼĘԛ¨C|͖J’©Ħ»®VIJ~f\\m `Un„˜~ʌŸ•ĬàöNt•~ňjy–¢Zi˜Ɣ¥ĄŠk´nl`JʇŠJþ©pdƖ®È£¶ìRʦ‘źõƮËnŸʼėæÑƀĎ[‚˜¢VÎĂMÖÝÎF²sƊƀÎBļýƞ—¯ʘƭðħ¼Jh¿ŦęΌƇš¥²Q]Č¥nuÂÏriˆ¸¬ƪÛ^Ó¦d€¥[Wà…x\\ZŽjҕ¨GtpþYŊĕ´€zUO뇉P‰îMĄÁxH´á˜iÜUà›îÜՁĂÛSuŎ‹r“œJð̬EŒ‘FÁú×uÃÎkr“Ē{V}İ«O_ÌËĬ©ŽÓŧSRѱ§Ģ£^ÂyèçěM³Ƃę{[¸¿u…ºµ[gt£¸OƤĿéYŸõ·kŸq]juw¥Dĩƍ€õÇPéĽG‘ž©ã‡¤G…uȧþRcÕĕNy“yût“ˆ­‡ø‘†ï»a½ē¿BMoᣟÍj}éZËqbʍš“Ƭh¹ìÿÓAçãnIáI`ƒks£CG­ě˜Uy×Cy•…’Ÿ@¶ʡÊBnāzG„ơMē¼±O÷õJËĚăVŸĪũƆ£Œ¯{ËL½Ìzż“„VR|ĠTbuvJvµhĻĖH”Aëáa…­OÇðñęNw‡…œľ·L›mI±íĠĩPÉ×®ÿs—’cB³±JKßĊ«`…ađ»·QAmO’‘Vţéÿ¤¹SQt]]Çx€±¯A@ĉij¢Ó祖•ƒl¶ÅÛr—ŕspãRk~¦ª]Į­´“FR„åd­ČsCqđéFn¿Åƃm’Éx{W©ºƝºįkÕƂƑ¸wWūЩÈFž£\\tÈ¥ÄRÈýÌJ ƒlGr^×äùyÞ³fj”c†€¨£ÂZ|ǓMĝšÏ@ëÜőR‹›ĝ‰Œ÷¡{aïȷPu°ËXÙ{©TmĠ}Y³’­ÞIňµç½©C¡į÷¯B»|St»›]vƒųƒs»”}MÓ ÿʪƟǭA¡fs˜»PY¼c¡»¦c„ċ­¥£~msĉP•–Siƒ^o©A‰Šec‚™PeǵŽkg‚yUi¿h}aH™šĉ^|ᴟ¡HØûÅ«ĉ®]m€¡qċ¶±ÈyôōLÁst“BŸ®wn±ă¥HSò뚣˜S’ë@לÊăxÇN©™©T±ª£IJ¡fb®ÞbŽb_Ą¥xu¥B—ž{łĝ³«`d˜Ɛt—¤ťiñžÍUuºí`£˜^tƃIJc—·ÛLO‹½Šsç¥Ts{ă\\_»™kϊ±q©čiìĉ|ÍIƒ¥ć¥›€]ª§D{ŝŖÉR_sÿc³Īō›ƿΑ›§p›[ĉ†›c¯bKm›R¥{³„Z†e^ŽŒwx¹dƽŽôIg §Mĕ ƹĴ¿—ǣÜ̓]‹Ý–]snåA{‹eŒƭ`ǻŊĿ\\ijŬű”YÂÿ¬jĖqŽßbЏ•L«¸©@ěĀ©ê¶ìÀEH|´bRľž–Ó¶rÀQþ‹vl®Õ‚E˜TzÜdb ˜hw¤{LR„ƒd“c‹b¯‹ÙVgœ‚ƜßzÃô쮍^jUèXΖ|UäÌ»rKŽ\\ŒªN‘¼pZCü†VY††¤ɃRi^rPҒTÖ}|br°qňb̰ªiƶGQ¾²„x¦PœmlŜ‘[Ĥ¡ΞsĦŸÔÏâ\\ªÚŒU\\f…¢N²§x|¤§„xĔsZPòʛ²SÐqF`ª„VƒÞŜĶƨVZŒÌL`ˆ¢dŐIqr\\oäõ–F礻Ŷ×h¹]Clـ\\¦ďÌį¬řtTӺƙgQÇÓHţĒ”´ÃbEÄlbʔC”|CˆŮˆk„Ʈ[ʼ¬ňœ´KŮÈΰÌζƶlð”ļA†TUvdTŠG†º̼ŠÔ€ŒsÊDԄveMg"]],encodeOffsets:[[[105308,37219],[95370,40081]]]},properties:{cp:[101.778916,36.623178],name:"青海",childNum:2}},{id:"640000",geometry:{type:"Polygon",coordinates:["@@KëÀęĞ«OęȿȕŸı]ʼn¡åįÕÔ«Ǵõƪ™ĚQÐZhv K°›öqÀѐS[ÃÖHƖčË‡nL]ûc…Ùß@‚“ĝ‘¾}w»»‹oģF¹œ»kÌÏ·{zPƒ§B­¢íyÅt@ƒ@áš]Yv_ssģ¼i߁”ĻL¾ġsKD£¡N_…“˜X¸}B~Haiˆ™Åf{«x»ge_bs“KF¯¡Ix™mELcÿZ¤­Ģ‘ƒÝœsuBLù•t†ŒYdˆmVtNmtOPhRw~bd…¾qÐ\\âÙH\\bImlNZŸ»loƒŸqlVm–Gā§~QCw¤™{A\\‘PKŸNY‡¯bF‡kC¥’sk‹Šs_Ã\\ă«¢ħkJi¯r›rAhĹûç£CU‡ĕĊ_ԗBixÅُĄnªÑaM~ħpOu¥sîeQ¥¤^dkKwlL~{L~–hw^‚ófćƒKyEŒ­K­zuÔ¡qQ¤xZÑ¢^ļöܾEpž±âbÊÑÆ^fk¬…NC¾‘Œ“YpxbK~¥Že֎ŒäBlt¿Đx½I[ĒǙŒWž‹f»Ĭ}d§dµùEuj¨‚IÆ¢¥dXªƅx¿]mtÏwßR͌X¢͎vÆzƂZò®ǢÌʆCrâºMÞzžÆMҔÊÓŊZľ–r°Î®Ȉmª²ĈUªĚøºˆĮ¦ÌĘk„^FłĬhĚiĀ˾iİbjË"],encodeOffsets:[[109366,40242]]},properties:{cp:[106.278179,38.46637],name:"宁夏",childNum:1}},{id:"650000",geometry:{type:"Polygon",coordinates:["@@QØĔ²X¨”~ǘBºjʐߨvK”ƔX¨vĊOžÃƒ·¢i@~c—‡ĝe_«”Eš“}QxgɪëÏÃ@sÅyXoŖ{ô«ŸuX…ê•Îf`œC‚¹ÂÿÐGĮÕĞXŪōŸMźÈƺQèĽôe|¿ƸJR¤ĘEjcUóº¯Ĩ_ŘÁMª÷Ð¥Oéȇ¿ÖğǤǷÂF҇zÉx[]­Ĥĝ‰œ¦EP}ûƥé¿İƷTėƫœŕƅ™ƱB»Đ±’ēO…¦E–•}‘`cȺrĦáŖuҞª«IJ‡πdƺÏØZƴwʄ¤ĖGЙǂZ̓èH¶}ÚZצʥĪï|ÇĦMŔ»İĝLj‹ì¥Βœba­¯¥ǕǚkĆŵĦɑĺƯxūД̵nơʃĽá½M»›òmqóŘĝč˾ăC…ćāƿÝɽ©DZŅ»ēėŊLrÁ®ɱĕģʼnǻ̋ȥơŻǛȡVï¹Ň۩ûkɗġƁ§ʇė̕ĩũƽō^ƕŠUv£ƁQï“Ƶkŏ½ΉÃŭdzLқʻ«ƭ\\lƒ‡ŭD‡“{ʓDkaFÃÄa“³ŤđÔGRÈƚhSӹŚsİ«ĐË[¥ÚDkº^Øg¼ŵ¸£EÍö•€ůʼnT¡c_‡ËKY‹ƧUśĵ„݃U_©rETÏʜ±OñtYw獃{£¨uM³x½şL©Ùá[ÓÐĥ Νtģ¢\\‚ś’nkO›w¥±ƒT»ƷFɯàĩÞáB¹Æ…ÑUw„੍žĽw]•kE½Èå~‡Æ÷QyŠěCFmĭZī—ŵVÁ™ƿQƛ—ûXS²‰b½KϽĉS›©ŷXĕŸ{ŽĕK·¥Ɨcqq©f¿]‡ßDõU³h—­gËÇïģÉɋw“k¯í}I·šœbmœÉ–ř›īJɥĻˁ×xo›ɹī‡l•c…¤³Xù]‘™DžA¿w͉ì¥wÇN·ÂËnƾƍdǧđ®Ɲv•Um©³G\\“}µĿ‡QyŹl㓛µEw‰LJQ½yƋBe¶ŋÀů‡ož¥A—˜Éw@•{Gpm¿Aij†ŽKLhˆ³`ñcËtW‚±»ÕS‰ëüÿďD‡u\\wwwù³—V›LŕƒOMËGh£õP¡™er™Ïd{“‡ġWÁ…č|yšg^ğyÁzÙs`—s|ÉåªÇ}m¢Ń¨`x¥’ù^•}ƒÌ¥H«‰Yªƅ”Aйn~Ꝛf¤áÀz„gŠÇDIԝ´AňĀ҄¶ûEYospõD[{ù°]u›Jq•U•|Soċxţ[õÔĥkŋÞŭZ˺óYËüċrw €ÞkrťË¿XGÉbřaDü·Ē÷Aê[Ää€I®BÕИÞ_¢āĠpŠÛÄȉĖġDKwbm‡ÄNô‡ŠfœƫVÉvi†dz—H‘‹QµâFšù­Âœ³¦{YGžƒd¢ĚÜO „€{Ö¦ÞÍÀPŒ^b–ƾŠl[‚vt×ĈÍE˨¡Đ~´î¸ùÎh€uè`¸ŸHÕŔVºwĠââWò‡@{œÙNÝ´ə²ȕn{¿¥{l—÷eé^e’ďˆXj©î\\ªÑò˜Üìc\\üqˆÕ[Č¡xoÂċªbØ­Œø|€¶ȴZdÆÂšońéŒGš\\”¼C°ÌƁn´nxšÊOĨ’ہƴĸ¢¸òTxÊǪMīИÖŲÃɎOvˆʦƢ~FއRěò—¿ġ~åŊœú‰Nšžš¸qŽ’Ę[Ĕ¶ÂćnÒPĒÜvúĀÊbÖ{Äî¸~Ŕünp¤ÂH¾œĄYÒ©ÊfºmԈĘcDoĬMŬ’˜S¤„s²‚”ʘچžȂVŦ –ŽèW°ªB|IJXŔþÈJĦÆæFĚêŠYĂªĂ]øªŖNÞüA€’fɨJ€˜¯ÎrDDšĤ€`€mz\\„§~D¬{vJÂ˜«lµĂb–¤p€ŌŰNĄ¨ĊXW|ų ¿¾ɄĦƐMT”‡òP˜÷fØĶK¢ȝ˔Sô¹òEð­”`Ɩ½ǒÂň×äı–§ĤƝ§C~¡‚hlå‚ǺŦŞkâ’~}ŽFøàIJaĞ‚fƠ¥Ž„Ŕdž˜®U¸ˆźXœv¢aƆúŪtŠųƠjd•ƺŠƺÅìnrh\\ĺ¯äɝĦ]èpĄ¦´LƞĬŠ´ƤǬ˼Ēɸ¤rºǼ²¨zÌPðŀbþ¹ļD¢¹œ\\ĜÑŚŸ¶ZƄ³âjĦoâŠȴLʉȮŒĐ­ĚăŽÀêZǚŐ¤qȂ\\L¢ŌİfÆs|zºeªÙæ§΢{Ā´ƐÚ¬¨Ĵà²łhʺKÞºÖTŠiƢ¾ªì°`öøu®Ê¾ãÖ"],encodeOffsets:[[88824,50096]]},properties:{cp:[87.617733,43.792818],name:"新疆",childNum:1}},{id:"110000",geometry:{type:"Polygon",coordinates:["@@R„ºaY՜™QaúÍÔiþĩȨWĢ‹ü|Ėu[qb[swP@ÅğP¿{\\‡¯Y²·‘Ѩj¯ŠX\\¯œMSvU¯YIŕY{[fk­VÁ›ûtŷmiÍt_H»Ĩ±d`й­{bw…Yr“³S]§§o¹€qGtm_Sŧ€“oa›‹FLg‘QN_•dV€@Zom_ć\\ߚW´—€ÕiœRcfi…Ÿ’o§ËgToÛJíĔóu…|wP¤™XnO¢ÉŠŦ¯pNÄā¤zâŖÈRpŢZŠœÚ{GŠrFt¦Òx§ø¹RóäV¤XdˆżâºWbwڍUd®bêņ¾‘jnŎGŃŶŠnzÚScîĚZŠen¬"],encodeOffsets:[[119421,42013]]},properties:{cp:[116.405285,39.904989],name:"北京",childNum:1}},{id:"120000",geometry:{type:"Polygon",coordinates:["@@ŬgX§Ü«E…¶Ḟ“¬O_™ïlÁg“z±AXe™µÄĵ{¶]gitgšIj·›¥ì_iU€‰¨ÐƎk}ĕ{gB—qGf{¿a†U^fI“ư‹³õ{YƒıëNĿžk©ïËZukāA‘īlĕĥs¡bġ«@dekąI[nlPqCnp{ˆō³°`{PNdƗqSÄĻNNâyj]äžÒD ĬH°Æ]~¡HO¾ŒX}ÐxŒgp“gWˆrDGˆŒpù‚Š^L‚ˆrzWxˆZ^¨´T\\|~@I‰zƒ–bĤ‹œjeĊªz£®Ĕvě€L†mV¾Ô_ȔNW~zbĬvG†²ZmDM~”~"],encodeOffsets:[[120237,41215]]},properties:{cp:[117.190182,39.125596],name:"天津",childNum:1}},{id:"310000",geometry:{type:"MultiPolygon",coordinates:[["@@ɧư¬EpƸÁx]‡","@@©„²ƒ","@@”MA‹“˜","@@QpªK†WT…‰‰§¨","@@bŝՕÕEȣÚƥêImɇǦèÜĠŒÚÄÓŴ·ʌÇ","@@S‚ô¤r]ì†ƬįǜûȬɋŠŭ™×^‰sYŒɍDŋ‘ŽąñCG²«ªč@h–_p¯A{‡oloY€¬j@IJ`•gQڙpptǀ^MIJvtbe´Rh@–oj¨ž","@@ÆLH{a}Eo¦"]],encodeOffsets:[[[124702,32062],[124547,32200],[124808,31991],[124726,32110],[124903,32376],[124065,32166],[124870,31965]]]},properties:{cp:[121.472644,31.231706],name:"上海",childNum:7}},{id:"500000",geometry:{type:"Polygon",coordinates:["@@TÂÛ`Ùƅően½S‹êqDu[R‹å͹ˆ÷eXÍy‘¸_ĺę}÷`M¯ċfCVµqʼn÷Z•gg‘Œ^d½pDO‡ÎCnœ^uf²ènh¼WtƏxRGg¦…pV„†FI±ŽG^ŒIc´ec‡’G•ĹÞ½sëÆNä̤“Kӈe¯|‚R¸§L‘ÜkPoïƭNï¶}Gy“wdiù©nkĈzjŸ•@™Óc£»Wă¹Óf§c[µŠo·Ó|MvÛaqœ½«‡èœ’\\ÂoVnŽÓØÍ™²«‹bq¿eƒhCž„€‹Ĝ^Qž~ Évý‡ş¤²Į‰pEĶyhsŊwH‹½‡š¿gņ›¡ýE¡ya£³t\\¨\\vú¹¼©·Ñr_oÒý¥‚‘et³]—Et©uÖ¥±ă©KVeëƒ]}wVPÀFA¨ąB}qTjgRemfFm‰QF݅My˜ù•nцAmыCaƒwŒu_p—¯sfۍ_g†“I_pNysBЦzG¸rHe‚„N\\CvEsÐñÚkcD‘ÖĉsaQ¯€}_U‡†zÁēˆ}Ÿ^R •Äd^ÍĸZ¾·¶ƒ`wećJEž¹vÛ·Hgƒ‚éFXjÉê`|yŒpxkAwœWĐpb¥eOsmzwqChóUQl¥F^laf‹anòsr›EvfQdÁUVf—ÎvÜ^efˆtET¬ôA\\œ¢sJŽnQTjP؈xøK|nBz‰„œĞ»LY‚…FDxӄvr“[ehľš•vN”¢o¾NiÂxGp⬐z›bfZo~hGi’]öF|‰|Nb‡tOMn eA±ŠtPT‡LjpYQ|†SH††YĀxinzDJ€Ìg¢và¥Pg‰_–ÇzII‹€II•„£®S¬„Øsμ–¥¨^LšnGIJļIJƤjÎƀƾ¹¸ØÎezĆT¸}êЖqHŸðqĖ䒊¥^CƒIj–²p…\\_ æüY|[YxƊæuž°xb®…Űb@~¢NQt°¶‚S栓Ê~rljĔëĚ¢~šuf`‘‚†fa‚ĔJåĊ†nÔ]„jƎćÊ@Š£¾a®£Ű{ŶĕF‹ègLk{Y|¡ĜWƔtƬJÑxq‹±ĢN´‰òK‰™–LÈüD|s`ŋ’ć]ƒÃ‰`đŒMùƱ¿~Y°ħ`ƏíW‰½eI‹½{aŸ‘OIrÏ¡ĕŇa†p†µÜƃġ‰²"],encodeOffsets:[[111728,31311]]},properties:{cp:[106.504962,29.533155],name:"重庆",childNum:1}},{id:"810000",geometry:{type:"MultiPolygon",coordinates:[["@@AlFi","@@mŽp","@@EpHo","@@rMUw‡AS¬€]","@@ea¢pl¸Eõ¹‡hj[ƒ]ÔCΖ@lj˜¡uBXŸ…•´‹AI¹…[‹yDUˆ]W`çwZkmc–…M›žp€Åv›}I‹oJlcaƒfёKްä¬XJmРđhI®æÔtSHn€Eˆ„ÒrÄc"]],encodeOffsets:[[[117111,23002],[117072,22876],[117045,22887],[116882,22747],[116975,23082]]]},properties:{cp:[114.173355,22.320048],name:"香港",childNum:5}},{id:"820000",geometry:{type:"Polygon",coordinates:["@@œá—w{ÎrŽ"],encodeOffsets:[[116285,22746]]},properties:{cp:[113.54909,22.198951],name:"澳门",childNum:1}}],UTF8Encoding:!0}},248:function(e,t){e.exports={color:["#4ea397","#22c3aa","#7bd9a5"],backgroundColor:"rgba(0,0,0,0)",textStyle:{},title:{textStyle:{color:"#666666"},subtextStyle:{color:"#999999"}},line:{itemStyle:{normal:{borderWidth:"2"}},lineStyle:{normal:{width:"3"}},symbolSize:"10",symbol:"emptyCircle",smooth:!0},radar:{itemStyle:{normal:{borderWidth:"2"}},lineStyle:{normal:{width:"3"}},symbolSize:"10",symbol:"emptyCircle",smooth:!0},bar:{itemStyle:{normal:{barBorderWidth:"0",barBorderColor:"#444444"},emphasis:{barBorderWidth:"0",barBorderColor:"#444444"}}},pie:{itemStyle:{normal:{borderWidth:"0",borderColor:"#444444"},emphasis:{borderWidth:"0",borderColor:"#444444"}}},scatter:{itemStyle:{normal:{borderWidth:"0",borderColor:"#444444"},emphasis:{borderWidth:"0",borderColor:"#444444"}}},boxplot:{itemStyle:{normal:{borderWidth:"0",borderColor:"#444444"},emphasis:{borderWidth:"0",borderColor:"#444444"}}},parallel:{itemStyle:{normal:{borderWidth:"0",borderColor:"#444444"},emphasis:{borderWidth:"0",borderColor:"#444444"}}},sankey:{itemStyle:{normal:{borderWidth:"0",borderColor:"#444444"},emphasis:{borderWidth:"0",borderColor:"#444444"}}},funnel:{itemStyle:{normal:{borderWidth:"0",borderColor:"#444444"},emphasis:{borderWidth:"0",borderColor:"#444444"}}},gauge:{itemStyle:{normal:{borderWidth:"0",borderColor:"#444444"},emphasis:{borderWidth:"0",borderColor:"#444444"}}},candlestick:{itemStyle:{normal:{color:"#d0648a",color0:"#ffffff",borderColor:"#d0648a",borderColor0:"#22c3aa",borderWidth:1}}},graph:{itemStyle:{normal:{borderWidth:"0",borderColor:"#444444"}},lineStyle:{normal:{width:1,color:"#aaa"}},symbolSize:"10",symbol:"emptyCircle",smooth:!0,color:["#4ea397","#22c3aa","#7bd9a5"],label:{normal:{textStyle:{color:"#ffffff"}}}},map:{itemStyle:{normal:{areaColor:"#eeeeee",borderColor:"#999999",borderWidth:"0.5"},emphasis:{areaColor:"rgba(34,195,170,0.25)",borderColor:"#22c3aa",borderWidth:"0.5"}},label:{normal:{textStyle:{color:"#28544e"}},emphasis:{textStyle:{color:"rgb(52,158,142)"}}}},geo:{itemStyle:{normal:{areaColor:"#eeeeee",borderColor:"#999999",borderWidth:"0.5"},emphasis:{areaColor:"rgba(34,195,170,0.25)",borderColor:"#22c3aa",borderWidth:"0.5"}},label:{normal:{textStyle:{color:"#28544e"}},emphasis:{textStyle:{color:"rgb(52,158,142)"}}}},categoryAxis:{axisLine:{show:!0,lineStyle:{color:"#cccccc"}},axisTick:{show:!1,lineStyle:{color:"#333333"}},axisLabel:{show:!0,textStyle:{color:"#999999"}},splitLine:{show:!0,lineStyle:{color:["#eeeeee"]}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.3)","rgba(200,200,200,0.3)"]}}},valueAxis:{axisLine:{show:!0,lineStyle:{color:"#cccccc"}},axisTick:{show:!1,lineStyle:{color:"#333333"}},axisLabel:{show:!0,textStyle:{color:"#999999"}},splitLine:{show:!0,lineStyle:{color:["#eeeeee"]}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.3)","rgba(200,200,200,0.3)"]}}},logAxis:{axisLine:{show:!0,lineStyle:{color:"#cccccc"}},axisTick:{show:!1,lineStyle:{color:"#333333"}},axisLabel:{show:!0,textStyle:{color:"#999999"}},splitLine:{show:!0,lineStyle:{color:["#eeeeee"]}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.3)","rgba(200,200,200,0.3)"]}}},timeAxis:{axisLine:{show:!0,lineStyle:{color:"#cccccc"}},axisTick:{show:!1,lineStyle:{color:"#333333"}},axisLabel:{show:!0,textStyle:{color:"#999999"}},splitLine:{show:!0,lineStyle:{color:["#eeeeee"]}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.3)","rgba(200,200,200,0.3)"]}}},toolbox:{iconStyle:{normal:{borderColor:"#aaaaaa"},emphasis:{borderColor:"#666"}}},legend:{textStyle:{color:"#999999"}},tooltip:{axisPointer:{lineStyle:{color:"#ccc",width:1},crossStyle:{color:"#ccc",width:1}}},timeline:{lineStyle:{color:"#349e8e",width:1},itemStyle:{normal:{color:"#349e8e",borderWidth:"1"},emphasis:{color:"#57e8d2"}},controlStyle:{normal:{color:"#349e8e",borderColor:"#349e8e",borderWidth:"0"}},checkpointStyle:{color:"#22c3aa",borderColor:"rgba(34,195,170,0.25)"},label:{normal:{textStyle:{color:"#349e8e"}}}},visualMap:{color:["#d0648a","#22c3aa","rgba(123,217,165,0.2)"]},dataZoom:{backgroundColor:"#fff",dataBackgroundColor:"#dedede",fillerColor:"rgba(34,195,170,0.25)",handleColor:"#dddddd",handleSize:"100%",textStyle:{color:"#999"}},markPoint:{label:{normal:{textStyle:{color:"#ffffff"}},emphasis:{textStyle:{color:"#ffffff"}}}}}},249:function(e,t,a){"use strict";function n(){return{legend:{},tooltip:{},dataset:{source:[["Product","2015","2016","2017"],["Matcha Latte"].concat(i()(o())),["Milk Tea"].concat(i()(o())),["Cheese Cocoa"].concat(i()(o())),["Walnut Brownie"].concat(i()(o()))]},xAxis:{type:"category"},yAxis:{},series:[{type:"bar"},{type:"bar"},{type:"bar"}]}}function o(){return[0,0,0].map(function(e){return Math.round(300+700*Math.random())/10})}t.a=n;var r=a(132),i=a.n(r)},250:function(e,t,a){"use strict";a.d(t,"a",function(){return r}),a.d(t,"b",function(){return i});for(var n=[],o=0;o<16;o++)n.push([5*Math.random(),4*Math.random(),12*Math.random(),Math.round(5*Math.random())]);var r={legend:{top:20,data:["scatter"]},tooltip:{formatter:"{c}"},grid:{top:"26%",bottom:"26%"},xAxis:{type:"value",splitLine:{show:!1}},yAxis:{type:"value",splitLine:{show:!1}},visualMap:[{realtime:!1,left:"right",selectedMode:"multiple",dimension:2,selected:[],min:0,max:18,precision:0,splitNumber:0,calculable:!0}],series:[{name:"scatter",type:"scatter",symbolSize:30,data:n}]},i={legend:{top:20,data:["scatter"]},tooltip:{formatter:"{c}"},grid:{top:"26%",bottom:"26%"},xAxis:{type:"value",splitLine:{show:!1}},yAxis:{type:"value",splitLine:{show:!1}},visualMap:[{left:"right",selectedMode:"multiple",dimension:2,selected:[],min:0,max:18,precision:0,splitNumber:0,calculable:!0}],series:[{name:"scatter",type:"scatter",symbolSize:30,data:n}]}},251:function(e,t,a){"use strict";var n=a(561),o=a.n(n),r=o.a.match(/\bd="([^"]+)"/)[1];t.a={series:[{type:"liquidFill",data:[.7,.6,.55,.45],amplitude:6,outline:{show:!1},radius:"60%",color:["#4fc08d","#44d64a","#33c762","#4acc80"],backgroundStyle:{color:"#fff",borderColor:"#2c3e50",borderWidth:1},shape:"path://"+r,label:{normal:{formatter:function(){return""}}}}]}},252:function(e,t,a){"use strict";function n(e){for(var t=[],a=0;a{b} : {c} ({d}%)"},legend:{orient:"vertical",left:"left",data:["直接访问","邮件营销","联盟广告","视频广告","搜索引擎"]},series:[{name:"访问来源",type:"pie",radius:"55%",center:["50%","60%"],data:[{value:335,name:"直接访问"},{value:310,name:"邮件营销"},{value:234,name:"联盟广告"},{value:135,name:"视频广告"},{value:1548,name:"搜索引擎"}],itemStyle:{emphasis:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"}}}]}},254:function(e,t,a){"use strict";for(var n=[],o=0;o<=360;o++){var r=o/180*Math.PI,i=Math.sin(2*r)*Math.cos(2*r);n.push([i,o])}t.a={title:{text:"极坐标双数值轴"},legend:{data:["line"]},polar:{center:["50%","54%"]},tooltip:{trigger:"axis",axisPointer:{type:"cross"}},angleAxis:{type:"value",startAngle:0},radiusAxis:{min:0},series:[{coordinateSystem:"polar",name:"line",type:"line",showSymbol:!1,data:n}],animationDuration:2e3}},255:function(e,t,a){"use strict";var n=a(120),o=(a.n(n),[[[28604,77,17096869,"Australia",1990],[31163,77.4,27662440,"Canada",1990],[1516,68,1154605773,"China",1990],[13670,74.7,10582082,"Cuba",1990],[28599,75,4986705,"Finland",1990],[29476,77.1,56943299,"France",1990],[31476,75.4,78958237,"Germany",1990],[28666,78.1,254830,"Iceland",1990],[1777,57.7,870601776,"India",1990],[29550,79.1,122249285,"Japan",1990],[2076,67.9,20194354,"North Korea",1990],[12087,72,42972254,"South Korea",1990],[24021,75.4,3397534,"New Zealand",1990],[43296,76.8,4240375,"Norway",1990],[10088,70.8,38195258,"Poland",1990],[19349,69.6,147568552,"Russia",1990],[10670,67.3,53994605,"Turkey",1990],[26424,75.7,57110117,"United Kingdom",1990],[37062,75.4,252847810,"United States",1990]],[[44056,81.8,23968973,"Australia",2015],[43294,81.7,35939927,"Canada",2015],[13334,76.9,1376048943,"China",2015],[21291,78.5,11389562,"Cuba",2015],[38923,80.8,5503457,"Finland",2015],[37599,81.9,64395345,"France",2015],[44053,81.1,80688545,"Germany",2015],[42182,82.8,329425,"Iceland",2015],[5903,66.8,1311050527,"India",2015],[36162,83.5,126573481,"Japan",2015],[1390,71.4,25155317,"North Korea",2015],[34644,80.7,50293439,"South Korea",2015],[34186,80.6,4528526,"New Zealand",2015],[64304,81.6,5210967,"Norway",2015],[24787,77.3,38611794,"Poland",2015],[23038,73.13,143456918,"Russia",2015],[19360,76.5,78665830,"Turkey",2015],[38225,81.4,64715810,"United Kingdom",2015],[53354,79.1,321773631,"United States",2015]]]);t.a={title:{text:"各国人均寿命与GDP对比"},legend:{right:10,data:["1990","2015"]},xAxis:{splitLine:{lineStyle:{type:"dashed"}}},yAxis:{splitLine:{lineStyle:{type:"dashed"}},scale:!0},series:[{name:"1990",data:o[0],type:"scatter",symbolSize:function(e){return Math.sqrt(e[2])/500},label:{emphasis:{show:!0,formatter:function(e){return e.data[3]},position:"top"}},itemStyle:{normal:{shadowBlur:10,shadowColor:"rgba(120, 36, 50, 0.5)",shadowOffsetY:5,color:new n.graphic.RadialGradient(.4,.3,1,[{offset:0,color:"rgb(251, 118, 123)"},{offset:1,color:"rgb(204, 46, 72)"}])}}},{name:"2015",data:o[1],type:"scatter",symbolSize:function(e){return Math.sqrt(e[2])/500},label:{emphasis:{show:!0,formatter:function(e){return e.data[3]},position:"top"}},itemStyle:{normal:{shadowBlur:10,shadowColor:"rgba(25, 100, 150, 0.5)",shadowOffsetY:5,color:new n.graphic.RadialGradient(.4,.3,1,[{offset:0,color:"rgb(129, 227, 238)"},{offset:1,color:"rgb(25, 183, 207)"}])}}}]}},256:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=(a(245),a(131)),o=a(246);new n.a({el:"#app",components:{demo:o.a},render:function(e){return e(o.a)}})},257:function(e,t,a){"use strict";var n=a(131),o=a(566);n.a.use(o.a),t.a=new o.a.Store({state:{scores:[{name:"进攻",max:20,value:19},{name:"防守",max:20,value:9},{name:"速度",max:20,value:18},{name:"力量",max:20,value:16},{name:"耐力",max:20,value:16},{name:"敏捷",max:20,value:20}]},getters:{scoreRadar:function(e){var t=e.scores;return{title:{text:"能力雷达图"},tooltip:{},radar:{indicator:t.map(function(e){return{name:e.name,max:e.max}})},series:[{name:"能力值",type:"radar",data:[{value:t.map(function(e){return e.value})}]}]}}},mutations:{increment:function(e,t){var a=e.scores,n=t.amount,o=void 0===n?1:n,r=t.index,i=void 0===r?0:r,l=a[i];l.value=Math.max(Math.min(l.value+o,l.max),0)}},actions:{asyncIncrement:function(e,t){var a=e.commit,n=t.amount,o=void 0===n?1:n,r=t.index,i=t.delay;setTimeout(function(){a("increment",{amount:o,index:r})},i)}}})},259:function(e,t,a){"use strict";var n=a(558),o=a.n(n),r=a(562),i=a(153),l=(a.n(i),a(163)),s=(a.n(l),a(168)),c=(a.n(s),a(167)),d=(a.n(c),a(169)),u=(a.n(d),a(170)),m=(a.n(u),a(156)),p=(a.n(m),a(193)),h=(a.n(p),a(190)),v=(a.n(h),a(179)),g=(a.n(v),a(186)),f=(a.n(g),a(192)),y=(a.n(f),a(194)),b=(a.n(y),a(110)),x=(a.n(b),a(545)),w=(a.n(x),a(243)),_=(a.n(w),a(251)),k=a(249),C=a(253),M=a(254),S=a(255),O=a(252),P=a(250),z=a(257),N=a(546),q=(a.n(N),a(248)),L=a.n(q),j=a(247),A=a.n(j);r.a.registerMap("china",A.a),r.a.registerTheme("ovilia-green",L.a),t.a={components:{chart:r.a},store:z.a,data:function(){var e=o.a.parse(location.search,{ignoreQueryPrefix:!0});return{options:e,logo:_.a,bar:a.i(k.a)(),pie:C.a,polar:M.a,scatter:S.a,map:O.a,c1:P.a,c2:P.b,expand:{bar:!0,pie:!0,polar:!0,scatter:!0,map:!0,radar:!0,connect:!0,flight:!0},initOptions:{renderer:e.renderer||"canvas"},polarTheme:"dark",seconds:-1,asyncCount:!1,connected:!0,metricIndex:0,open:!1,img:{},flightLoaded:!1,flightOptions:null}},computed:{scoreRadar:function(){return this.$store.getters.scoreRadar},metrics:function(){return this.$store.state.scores.map(function(e){return e.name})},isMax:function(){var e=this.$store.state.scores[this.metricIndex];return e.value===e.max},isMin:function(){return 0===this.$store.state.scores[this.metricIndex].value}},methods:{refresh:function(){var e=this;this.seconds=3;var t=this.$refs.bar;t.showLoading({text:"Loading…",color:"#4ea397",maskColor:"rgba(255, 255, 255, 0.4)"});var n=setInterval(function(){0===--e.seconds&&(clearTimeout(n),t.hideLoading(),e.bar=a.i(k.a)())},1e3)},toggleRenderer:function(){"canvas"===this.initOptions.renderer?this.initOptions.renderer="svg":this.initOptions.renderer="canvas"},convert:function(){var e=this.$refs.map,t=e.width,a=e.height;this.img={src:e.getDataURL({pixelRatio:window.devicePixelRatio||1}),width:t,height:a},this.open=!0},increase:function(e){this.asyncCount?this.$store.dispatch("asyncIncrement",{amount:e,index:this.metricIndex,delay:500}):this.$store.commit("increment",{amount:e,index:this.metricIndex})},loadFlights:function(){var e=this;this.flightLoaded=!0;var t=this.$refs.flight;t.showLoading({text:"",color:"#c23531",textColor:"rgba(255, 255, 255, 0.5)",maskColor:"#003",zlevel:0}),fetch("../static/flight.json").then(function(e){return e.json()}).then(function(a){function n(e){return[a.airports[e][3],a.airports[e][4]]}t.hideLoading();var o=a.routes.map(function(e){return[n(e[1]),n(e[2])]});e.flightOptions={title:{text:"World Flights",left:"center",textStyle:{color:"#eee"}},backgroundColor:"#003",tooltip:{formatter:function(e){var t=a.routes[e.dataIndex];return a.airports[t[1]][1]+" > "+a.airports[t[2]][1]}},geo:{map:"world",left:0,right:0,silent:!0,itemStyle:{normal:{borderColor:"#003",color:"#005"}}},series:[{type:"lines",coordinateSystem:"geo",data:o,large:!0,largeThreshold:100,lineStyle:{normal:{opacity:.05,width:.5,curveness:.3}},blendMode:"lighter"}]}})}},watch:{connected:{handler:function(e){r.a[e?"connect":"disconnect"]("radiance")},immediate:!0},"initOptions.renderer":function(e){this.options.renderer="svg"===e?e:void 0;var t=o.a.stringify(this.options);t=t?"?"+t:"",history.pushState({},document.title,""+location.origin+location.pathname+t+location.hash)}},mounted:function(){var e=-1,t=this.$refs.pie,a=t.options.series[0].data.length;setInterval(function(){t.dispatchAction({type:"downplay",seriesIndex:0,dataIndex:e}),e=(e+1)%a,t.dispatchAction({type:"highlight",seriesIndex:0,dataIndex:e}),t.dispatchAction({type:"showTip",seriesIndex:0,dataIndex:e})},1e3)}}},260:function(e,t,a){"use strict";var n=a(262),o=a.n(n),r=a(132),i=a.n(r),l=a(1),s=a.n(l),c=a(553),d=a.n(c),u=a(258),m=["legendselectchanged","legendselected","legendunselected","legendunscroll","datazoom","datarangeselected","timelinechanged","timelineplaychanged","restore","dataviewchanged","magictypechanged","geoselectchanged","geoselected","geounselected","pieselectchanged","pieselected","pieunselected","mapselectchanged","mapselected","mapunselected","axisareaselected","focusnodeadjacency","unfocusnodeadjacency","brush","brushselected","rendered","finished","click","dblclick","mouseover","mouseout","mousedown","mouseup","globalout"];t.a={props:{options:Object,theme:[String,Object],initOptions:Object,group:String,autoResize:Boolean,watchShallow:Boolean,manualUpdate:Boolean},data:function(){return{lastArea:0}},watch:{group:function(e){this.chart.group=e}},methods:{mergeOptions:function(e,t,a){this.manualUpdate&&(this.manualOptions=e),this.chart?this.delegateMethod("setOption",e,t,a):this.init()},appendData:function(e){this.delegateMethod("appendData",e)},resize:function(e){this.delegateMethod("resize",e)},dispatchAction:function(e){this.delegateMethod("dispatchAction",e)},convertToPixel:function(e,t){return this.delegateMethod("convertToPixel",e,t)},convertFromPixel:function(e,t){return this.delegateMethod("convertFromPixel",e,t)},containPixel:function(e,t){return this.delegateMethod("containPixel",e,t)},showLoading:function(e,t){this.delegateMethod("showLoading",e,t)},hideLoading:function(){this.delegateMethod("hideLoading")},getDataURL:function(e){return this.delegateMethod("getDataURL",e)},getConnectedDataURL:function(e){return this.delegateMethod("getConnectedDataURL",e)},clear:function(){this.delegateMethod("clear")},dispose:function(){this.delegateMethod("dispose")},delegateMethod:function(e){var t;this.chart||this.init();for(var a=arguments.length,n=Array(a>1?a-1:0),o=1;o1?"s":"")+"...")])]),e._v(" "),a("p",[a("button",{attrs:{disabled:e.seconds>0},on:{click:e.refresh}},[e._v("Refresh")])])]):e._e(),e._v(" "),a("h2",{attrs:{id:"pie"}},[e._m(2),e._v(" "),a("button",{class:{round:!0,expand:e.expand.pie},attrs:{"aria-label":"toggle"},on:{click:function(t){e.expand.pie=!e.expand.pie}}})]),e._v(" "),e.expand.pie?a("section",[a("figure",[a("chart",{ref:"pie",attrs:{options:e.pie,"init-options":e.initOptions,"auto-resize":""}})],1)]):e._e(),e._v(" "),a("h2",{attrs:{id:"polar"}},[e._m(3),e._v(" "),a("button",{class:{round:!0,expand:e.expand.polar},attrs:{"aria-label":"toggle"},on:{click:function(t){e.expand.polar=!e.expand.polar}}})]),e._v(" "),e.expand.polar?a("section",[a("figure",{style:"dark"===e.polarTheme?"background-color: #333":""},[a("chart",{attrs:{options:e.polar,"init-options":e.initOptions,theme:e.polarTheme,"auto-resize":""}})],1),e._v(" "),a("p",[e._v("\n Theme\n "),a("select",{directives:[{name:"model",rawName:"v-model",value:e.polarTheme,expression:"polarTheme"}],on:{change:function(t){var a=Array.prototype.filter.call(t.target.options,function(e){return e.selected}).map(function(e){return"_value"in e?e._value:e.value});e.polarTheme=t.target.multiple?a:a[0]}}},[a("option",{domProps:{value:null}},[e._v("Default")]),e._v(" "),a("option",{attrs:{value:"dark"}},[e._v("Dark")])])])]):e._e(),e._v(" "),a("h2",{attrs:{id:"scatter"}},[e._m(4),e._v(" "),a("button",{class:{round:!0,expand:e.expand.scatter},attrs:{"aria-label":"toggle"},on:{click:function(t){e.expand.scatter=!e.expand.scatter}}})]),e._v(" "),e.expand.scatter?a("section",[a("figure",[a("chart",{attrs:{options:e.scatter,"init-options":e.initOptions,"auto-resize":""}})],1)]):e._e(),e._v(" "),a("h2",{attrs:{id:"map"}},[e._m(5),e._v(" "),a("button",{class:{round:!0,expand:e.expand.map},attrs:{"aria-label":"toggle"},on:{click:function(t){e.expand.map=!e.expand.map}}})]),e._v(" "),e.expand.map?a("section",[a("figure",{staticStyle:{"background-color":"#404a59"}},[a("chart",{ref:"map",attrs:{options:e.map,"init-options":e.initOptions,"auto-resize":""}})],1),e._v(" "),a("p",[a("button",{on:{click:e.convert}},[e._v("Convert to image")])])]):e._e(),e._v(" "),a("h2",{attrs:{id:"radar"}},[e._m(6),e._v(" "),a("button",{class:{round:!0,expand:e.expand.radar},attrs:{"aria-label":"toggle"},on:{click:function(t){e.expand.radar=!e.expand.radar}}})]),e._v(" "),e.expand.radar?a("section",[a("figure",[a("chart",{attrs:{options:e.scoreRadar,"init-options":e.initOptions,"auto-resize":""}})],1),e._v(" "),a("p",[a("select",{directives:[{name:"model",rawName:"v-model",value:e.metricIndex,expression:"metricIndex"}],on:{change:function(t){var a=Array.prototype.filter.call(t.target.options,function(e){return e.selected}).map(function(e){return"_value"in e?e._value:e.value});e.metricIndex=t.target.multiple?a:a[0]}}},e._l(e.metrics,function(t,n){return a("option",{key:n,domProps:{value:n}},[e._v(e._s(t)+"\n ")])})),e._v(" "),a("button",{attrs:{disabled:e.isMax},on:{click:function(t){e.increase(1)}}},[e._v("Increase")]),e._v(" "),a("button",{attrs:{disabled:e.isMin},on:{click:function(t){e.increase(-1)}}},[e._v("Decrease")]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.asyncCount,expression:"asyncCount"}],attrs:{id:"async",type:"checkbox"},domProps:{checked:Array.isArray(e.asyncCount)?e._i(e.asyncCount,null)>-1:e.asyncCount},on:{change:function(t){var a=e.asyncCount,n=t.target,o=!!n.checked;if(Array.isArray(a)){var r=e._i(a,null);n.checked?r<0&&(e.asyncCount=a.concat([null])):r>-1&&(e.asyncCount=a.slice(0,r).concat(a.slice(r+1)))}else e.asyncCount=o}}}),e._v(" "),a("label",{attrs:{for:"async"}},[e._v("Async")])])]):e._e(),e._v(" "),a("h2",{attrs:{id:"connect"}},[a("a",{attrs:{href:"#connect"}},[e._v("Connectable charts")]),e._v(" "),a("button",{class:{round:!0,expand:e.expand.connect},attrs:{"aria-label":"toggle"},on:{click:function(t){e.expand.connect=!e.expand.connect}}})]),e._v(" "),e.expand.connect?a("section",[a("figure",{staticClass:"half"},[a("chart",{ref:"c1",attrs:{options:e.c1,"init-options":e.initOptions,group:"radiance","auto-resize":""}})],1),e._v(" "),a("figure",{staticClass:"half"},[a("chart",{ref:"c2",attrs:{options:e.c2,"init-options":e.initOptions,group:"radiance","auto-resize":""}})],1),e._v(" "),a("p",[a("label",[a("input",{directives:[{name:"model",rawName:"v-model",value:e.connected,expression:"connected"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(e.connected)?e._i(e.connected,null)>-1:e.connected},on:{change:function(t){var a=e.connected,n=t.target,o=!!n.checked;if(Array.isArray(a)){var r=e._i(a,null);n.checked?r<0&&(e.connected=a.concat([null])):r>-1&&(e.connected=a.slice(0,r).concat(a.slice(r+1)))}else e.connected=o}}}),e._v("\n Connected\n ")])])]):e._e(),e._v(" "),a("h2",{attrs:{id:"flight"}},[a("a",{attrs:{href:"#flight"}},[e._v("Manual updates")]),e._v(" "),a("button",{class:{round:!0,expand:e.expand.flight},attrs:{"aria-label":"toggle"},on:{click:function(t){e.expand.flight=!e.expand.flight}}})]),e._v(" "),e.expand.flight?a("section",[e._m(7),e._v(" "),a("p",[a("button",{attrs:{disabled:e.flightLoaded},on:{click:e.loadFlights}},[e._v("Load")])]),e._v(" "),a("figure",{staticStyle:{"background-color":"#003"}},[a("chart",{ref:"flight",attrs:{"init-options":e.initOptions,options:e.flightOptions,"auto-resize":""}})],1)]):e._e(),e._v(" "),e._m(8),e._v(" "),a("aside",{class:{modal:!0,open:e.open},on:{click:function(t){e.open=!1}}},[e.img.src?a("img",{attrs:{src:e.img.src,width:e.img.width}}):e._e()]),e._v(" "),a("aside",{staticClass:"renderer"},[a("button",{class:{active:"canvas"===e.initOptions.renderer},on:{click:function(t){e.initOptions.renderer="canvas"}}},[e._v("Canvas")]),e._v(" "),a("button",{class:{active:"svg"===e.initOptions.renderer},on:{click:function(t){e.initOptions.renderer="svg"}}},[e._v("SVG")])])])},o=[function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("h1",[a("a",{attrs:{href:"https://github.com/Justineo/vue-echarts"}},[e._v("Vue-ECharts")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("a",{attrs:{href:"#bar"}},[e._v("Bar chart "),a("small",[e._v("(with async data & custom theme)")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("a",{attrs:{href:"#pie"}},[e._v("Pie chart "),a("small",[e._v("(with action dispatch)")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("a",{attrs:{href:"#polar"}},[e._v("Polar plot "),a("small",[e._v("(with built-in theme)")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("a",{attrs:{href:"#scatter"}},[e._v("Scatter plot "),a("small",[e._v("(with gradient)")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("a",{attrs:{href:"#map"}},[e._v("Map "),a("small",[e._v("(with GeoJSON & image converter)")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("a",{attrs:{href:"#radar"}},[e._v("Radar chart "),a("small",[e._v("(with Vuex integration)")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("p",[a("small",[e._v("You may use "),a("code",[e._v("manual-update")]),e._v(" prop for performance critical use cases.")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("footer",[a("a",{attrs:{href:"//github.com/Justineo"}},[e._v("@Justineo")]),e._v("|"),a("a",{attrs:{href:"//github.com/Justineo/vue-echarts/blob/master/LICENSE"}},[e._v("MIT License")]),e._v("|"),a("a",{attrs:{href:"//github.com/Justineo/vue-echarts"}},[e._v("View on GitHub")])])}],r={render:n,staticRenderFns:o};t.a=r},564:function(e,t,a){"use strict";var n=function(){var e=this,t=e.$createElement;return(e._self._c||t)("div",{staticClass:"echarts"})},o=[],r={render:n,staticRenderFns:o};t.a=r}},[256]); \ No newline at end of file +webpackJsonp([1],{245:function(e,t,a){"use strict";var n=a(264),o=a.n(n);window.Promise=o.a},246:function(e,t,a){"use strict";function n(e){a(548)}var o=a(259),r=a(564),i=a(224),l=n,s=i(o.a,r.a,!1,l,null,null);t.a=s.exports},247:function(e,t){e.exports={type:"FeatureCollection",features:[{id:"710000",geometry:{type:"MultiPolygon",coordinates:[["@@°Ü¯Û","@@ƛĴÕƊÉɼģºðʀ\\ƎsÆNŌÔĚäœnÜƤɊĂǀĆĴžĤNJŨxĚĮǂƺòƌ‚–âÔ®ĮXŦţƸZûЋƕƑGđ¨ĭMó·ęcëƝɉlÝƯֹÅŃ^Ó·śŃNjƏďíåɛGɉ™¿IċããF¥ĘWǬÏĶñÄ","@@\\p|WoYG¿¥I†j@ž","@@…¡‰@ˆV^RqˆBbAŒnTXe„†žQr™©C","@@ÆEE—„kWqë Iœ"]],encodeOffsets:[[[122886,24033],[123335,22980],[122375,24193],[122518,24117],[124427,22618]]]},properties:{cp:[121.509062,25.044332],name:"台湾",childNum:5}},{id:"130000",geometry:{type:"MultiPolygon",coordinates:[["@@\\a“M`ǽÓnUK…Ĝēs¤­©yrý§uģŒc†JŠ»eIˆ€P]‚ªr‰ºc_ħ²G¼s`jΟnüsœľP","@@U`Ts¿mĂ","@@FŸƒ•›Oh‡đ©OŸ›iÃ`ww^ƒÌkŸ‘ÑH«ƇǤŗĺtFu…{Z}Ö@U‡´…ʚLg®¯Oı°ÃwŸ ^˜—€VbÉs‡ˆmA…ê]]w„§›RRl£‡ŭuw›N—Á`ÇFēÝčȻŽuT¡Ĺ—¯Õ¯sŗő£YªhV’ƍ£ƅnëYNgƒq¼ś¿µı²UºÝUąŽąŖóŒxV@tˆƯŒJ”]eƒR¾fe|rHA˜|h~Ėƍl§ÏŠjVë` ØoˆÅbbx³^zÃ͚¶Sj®A”yÂhðk`š«P€”ˈµEF†Û¬Y¨Ļrõqi¼‰Wi°§’б²°`[ˆÀ|ĠO@ÆxO\\tŽa\\p_Zõ^û{ġŒȧXýĪÓjùÎRb›š^λj{íděYfíÙTyމmńŵōHim½’éŅ­aVcř§ax¹XŻác‡žWU£ôãºQ¨÷Ñws¥qEH‰Ù|‰›šYQoŕÇyáĂ£MðoťÊ‰P¡mšWO¡€v†{ôvîēÜISpÌhp¨ ‘j†deŔQÖj˜X³à™Ĉ[n`Yp@Už–cM`’RKhŒEbœ”pŞlNut®Etq‚nsÁŠgA‹iú‹oH‡qCX‡”hfgu“~ϋWP½¢G^}¯ÅīGCŸÑ^ãziMáļMTÃƘrMc|O_ž¯Ŏ´|‡morDkO\\mĆJfl@c̬¢aĦtRıҙXòë¬WP{ŵǫƝ…›īÛ÷ąV×qƥV¿aȉd³B›qPBm›aËđŻģm“Å®Vйd^K‡KoŸnYg“¯Xhqa”Ldu¥•ÍpDž¡KąÅƒkĝęěhq‡}HyÓ]¹ǧ£…Í÷¿qá•gPmoeœi‰¤o^á¾ZE‡˜Y^…Ný{n•ƒOl±Í“@M’ċèk§da‹‘NaÇį¿]ø‰RiiñE‰€ū‹i„DZàUtėGylƒ}ŒÓM}€jpEC~¡FtoQi‘šHkk{ILgĽxqÈƋÄd–eVŽDJj£€J|Ådz•Ft~žKŨ¸IÆv|”‡¢r}膎onb˜}`RÎÄn°ÒdÞ²„^®’lnÐèĄlðӜ×]ªÆ}LiĂ±Ö`^°Ç¶p®đDcœŋ`–ZÔ’¶êqvFƚ†N®ĆTH®¦O’¾ŠIbÐã´BĐɢŴÆíȦp–ĐÞXR€·nndOž¤’OÀĈƒ­Qg˜µFo|gȒęSWb©osx|hYh•gŃfmÖĩnº€T̒Sp›¢dYĤ¶UĈjl’ǐpäðëx³kÛfw²Xjz~ÂqbTŠÑ„ěŨ@|oM‡’zv¢ZrÃVw¬ŧˏfŒ°ÐT€ªqŽs{Sž¯r æÝl¼ÖĞ džiGʂJ™¼lr}~K¨ŸƐÌWö€™¼œÞ°nÞoĦLš†|C~“D©|q]SvK€ÑcwpÏρ†ĿćènĪWlĄkT}¬Tpš~ƒ®Hgd„‰†˒劔ŽBVt„EÀ¢ôPĎƗè@~‚k–ü\\rÊĔÖæW_§¼F˜†´©òDòj’ˆYÈrbĞāøŀG{ƀ|¦ðrb|ÀH`pʞkv‚GpuARhÞÆǶgƊTǼƹS£¨¡ù³ŘÍ]¿Ây™ôEP xX¶¹܇O¡“gÚ¡IwÃ鑦ÅB‡Ï|ǰ…N«úmH¯‹âŸbę†U~xĈbȒ{^xÖlDž•¸dɂ‡„~"]],encodeOffsets:[[[120023,41045],[121616,39981],[122102,42307]]]},properties:{cp:[114.502461,38.045474],name:"河北",childNum:3}},{id:"140000",geometry:{type:"Polygon",coordinates:["@@žħÜ_ªlìwGkÛÃǏok‘ćiµVZģ¡coœ‘TS˹ĪmnÕńe–hZg{gtwªpXaĚThȑp{¶Eh—®RćƑP¿£‘PmcªaJyý{ƒýȥoÅîɡųAďä³aωJ‘½¥PG­ąSM­sWz½µÛ€‘YӀŖgxoOkĒCo­Èµ]¯_²ÕjāŽK~©ÅØ^ԛkïçămϑk]­±ƒcݯÑÃmQÍ~_a—pm…~ç¡q“ˆu{JÅŧ·Ls}–EyÁÆcI{¤IiCfUc•ƌÃp§]웫vD@¡SÀ‘µM‚ÅwuŽYY‡¡DbÑc¡hƒ×]nkoQdaMç~eD•ÛtT‰©±@¥ù@É¡‰ZcW|WqOJmĩl«ħşvOÓ«IqăV—¥ŸD[mI~Ó¢cehiÍ]Ɠ~ĥqXŠ·eƷœn±“}v•[ěďŽŕ]_‘œ•`‰¹ƒ§ÕōI™o©b­s^}Ét±ū«³p£ÿ¥WÑxçÁ«h×u׌¥ř„‹¾dÒ{ºvĴÎêÌɊ²¶€ü¨|ÞƸµȲ‘LLúÉƎ¤ϊęĔV`„_bª‹S^|ŸdŠzY|dz¥p†ZbÆ£¶ÒK}tĦÔņƠ‚PYzn€ÍvX¶Ěn ĠÔ„zý¦ª˜÷žÑĸَUȌ¸‚dòÜJð´’ìúNM¬ŒXZ´‘¤ŊǸ_tldIš{¦ƀðĠȤ¥NehXnYG‚‡R° ƬDj¬¸|CĞ„Kq‚ºfƐiĺ©ª~ĆOQª ¤@ìǦɌ²æBŒÊ”TœĞšHƘÁĪËĖ’šĴŞ–ȀœÆÿȄlŤĒö„t”νî¼ĨXhŒ‘˜|ªM¤ÐzÞĩ҃S‰rao³"],encodeOffsets:[[117016,41452]]},properties:{cp:[112.549248,37.857014],name:"山西",childNum:1}},{id:"150000",geometry:{type:"MultiPolygon",coordinates:[["@@ǪƫÌÛM…Ă[`՞Cn}¶Vc…ê“sƒ–¯‹PqƒFB…‰|S•³C|kñ•H‹d‘iÄ¥sˆʼnő…PóÑÑE^‘ÅPpy_YtS™hQ·aHwsOnʼnÚs©iqj›‰€USiº]ïWš‰«gW¡A–R붛ijʕ…Œů`çõh]y»ǃŸǛҤxÒm~zf}pf|ÜroÈzrKÈĵSƧ„ż؜Ġu~è¬vîS¼™Ăh–šĖMÈÄw‚\\fŦ°W ¢¾luŸD„wŠ\\Ŗĝ","@@ƒGVu»A—ylßí¹ãe’“]Eāò³C¹ð“¾ˆ²iŒÒAdkò^P“²CǜңDŽ z¼g^èöŰ_‹‚–†IJĕꄜ}gÁnUI«m‰…„‹]j‡vV¼euhwqA„aW˜ƒ_µj…»çjioQR¹ēÃßt@r³[ÛlćË^ÍÉáG“›OUۗOB±•XŸkŇ¹£k|e]ol™ŸkVͼÕqtaÏõjgÁ£§U^Œ”RLˆËnX°Ç’Bz†^~wfvˆypV ¯„ƫĉ˭ȫƗŷɿÿĿƑ˃ĝÿÃǃßËőó©ǐȍŒĖM×ÍEyx‹þp]Évïè‘vƀnÂĴÖ@‚‰†V~Ĉ™Š³MEˆĸÅĖt—ējyÄDXÄxGQuv_›i¦aBçw‘˛wD™©{ŸtāmQ€{EJ§KPśƘƿ¥@‰sCT•É}ɃwˆƇy±ŸgÑ“}T[÷kÐ禫…SÒ¥¸ëBX½‰HáŵÀğtSÝÂa[ƣ°¯¦P]£ġ“–“Òk®G²„èQ°óMq}EŠóƐÇ\\ƒ‡@áügQ͋u¥Fƒ“T՛¿Jû‡]|mvāÎYua^WoÀa·­ząÒot×¶CLƗi¯¤mƎHNJ¤îìɾŊìTdåwsRÖgĒųúÍġäÕ}Q¶—ˆ¿A•†‹[¡Œ{d×uQAƒ›M•xV‹vMOmăl«ct[wº_šÇʊŽŸjb£ĦS_é“QZ“_lwgOiýe`YYJq¥IÁˆdz£ÙË[ÕªuƏ³ÍT—s·bÁĽäė[›b[ˆŗfãcn¥îC¿÷µ[ŏÀQ­ōšĉm¿Á^£mJVm‡—L[{Ï_£›F¥Ö{ŹA}…×Wu©ÅaųijƳhB{·TQqÙIķˑZđ©Yc|M¡…L•eVUóK_QWk’_ĥ‘¿ãZ•»X\\ĴuUƒè‡lG®ěłTĠğDє›žG‚ÆÍz]‹±…ŭ©ŸÅ’]ŒÅÐ}UË¥©Tċ™ïxgckfWgi\\ÏĒ¥HkµE˜ë{»ÏetcG±ahUiñiWsɁˆ·c–C‚Õk]wȑ|ća}w…VaĚ᠞ŒG°ùnM¬¯†{ÈˆÐÆA’¥ÄêJxÙ¢”hP¢Ûˆº€µwWOŸóFŽšÁz^ÀŗÎú´§¢T¤ǻƺSė‰ǵhÝÅQgvBHouʝl_o¿Ga{ïq{¥|ſĿHĂ÷aĝÇq‡Z‘ñiñC³ª—…»E`¨åXēÕqÉû[l•}ç@čƘóO¿¡ƒFUsA‰“ʽīccšocƒ‚ƒÇS}„“£‡IS~ălkĩXçmĈ…ŀЂoÐdxÒuL^T{r@¢‘žÍƒĝKén£kQ™‰yšÅõËXŷƏL§~}kqš»IHėDžjĝŸ»ÑÞoŸå°qTt|r©ÏS‹¯·eŨĕx«È[eMˆ¿yuˆ‘pN~¹ÏyN£{©’—g‹ħWí»Í¾s“əšDž_ÃĀɗ±ą™ijĉʍŌŷ—S›É“A‹±åǥɋ@럣R©ąP©}ĹªƏj¹erƒLDĝ·{i«ƫC½ÉshVz…GS|úþX”gp›{ÁX¿Ÿć{ƱȏñZáĔyoÁhA™}ŅĆfdʼn„_¹„Y°ėǩÑ¡H¯¶oMQqð¡Ë™|‘Ñ`ƭŁX½·óۓxğįÅcQ‡ˆ“ƒs«tȋDžF“Ÿù^i‘t«Č¯[›hAi©á¥ÇĚ×l|¹y¯Kȝqgů{ñǙµï‚ċ™Ĺz—Śȭ¶¡˜›oŽäÕG\\ďT¿Òõr¯œŸLguÏYęRƩšɷŌO\\İТæ^Ŋ IJȶȆbÜGŽĝ¬¿ĚVĎgª^íu½jÿĕęjık@Ľƒ]ėl¥Ë‡ĭûÁ„ƒėéV©±ćn©­ȇžÍq¯½•YÃÔʼn“ÉNѝÅÝy¹NqáʅDǡËñ­ƁYÅy̱os§ȋµʽǘǏƬɱà‘ưN¢ƔÊuľýľώȪƺɂļžxœZĈ}ÌʼnŪ˜ĺœŽĭFЛĽ̅ȣͽÒŵìƩÇϋÿȮǡŏçƑůĕ~Ǎ›¼ȳÐUf†dIxÿ\\G ˆzâɏÙOº·pqy£†@ŒŠqþ@Ǟ˽IBäƣzsÂZ†ÁàĻdñ°ŕzéØűzșCìDȐĴĺf®ŽÀľưø@ɜÖÞKĊŇƄ§‚͑těï͡VAġÑÑ»d³öǍÝXĉĕÖ{þĉu¸ËʅğU̎éhɹƆ̗̮ȘNJ֥ड़ࡰţાíϲäʮW¬®ҌeרūȠkɬɻ̼ãüfƠSצɩςåȈHϚÎKdzͲOðÏȆƘ¼CϚǚ࢚˼ФԂ¤ƌžĞ̪Qʤ´¼mȠJˀŸƲÀɠmɆŠDŽĜƠ´ǠN~€ʢĜ‚¶ƌĆĘźʆȬ˪ĚǏĞGȖƴƀj`ĢçĶāàŃºē̃ĖćšYŒÀŎüôQÐÂŎŞdžŞêƖš˜oˆDĤÕºÑǘÛˤ³̀gńƘĔÀ^žªƂ`ªt¾äƚêĦĀ¼Ð€Ĕǎ¨Ȕ»͠^ˮÊȦƤøxRrŜH¤¸ÂxDĝŒ|ø˂˜ƮÐ¬ɚwɲFjĔ²Äw°dždÀɞ_ĸdîàŎjʜêTĞªŌ‡ŜWÈ|tqĢUB~´°ÎFC•ŽU¼pĀēƄN¦¾O¶ŠłKĊOj“Ě”j´ĜYp˜{¦„ˆSĚÍ\\Tš×ªV–÷Ší¨ÅDK°ßtŇĔKš¨ǵÂcḷ̌ĚǣȄĽF‡lġUĵœŇ‹ȣFʉɁƒMğįʏƶɷØŭOǽ«ƽū¹Ʊő̝Ȩ§ȞʘĖiɜɶʦ}¨֪ࠜ̀ƇǬ¹ǨE˦ĥªÔêFŽxúQ„Er´W„rh¤Ɛ \\talĈDJ˜Ü|[Pll̚¸ƎGú´Pž¬W¦†^¦–H]prR“n|or¾wLVnÇIujkmon£cX^Bh`¥V”„¦U¤¸}€xRj–[^xN[~ªŠxQ„‚[`ªHÆÂExx^wšN¶Ê˜|¨ì†˜€MrœdYp‚oRzNy˜ÀDs~€bcfÌ`L–¾n‹|¾T‚°c¨È¢a‚r¤–`[|òDŞĔöxElÖdH„ÀI`„Ď\\Àì~ƎR¼tf•¦^¢ķ¶e”ÐÚMŒptgj–„ɡČÅyġLû™ŇV®ŠÄÈƀ†Ď°P|ªVV†ªj–¬ĚÒêp¬–E|ŬÂ_~¼rƐK fˆ{ĘFǜƌXưăkÃĄ}nµ–oŸ×q£ç­kX‘{uĩ«āíÓUŅÝVUŌ]€Ť¥lyň[€oi{¦‹L‡ĸ…Ħ^ôâJˆ¨^UZðڔĒL„¿Ì‹ˆfŒ£K£ʺ™oqNŸƒwğc`ue—tOj×°KJ±qƒÆġm‰Ěŗos¬…qehqsuœƒH{¸kH¡Š…ÊRǪÇƌbȆ¢´ä܍¢NìÉʖ¦â©Ɨؗ"]],encodeOffsets:[[[128500,52752],[127089,51784]]]},properties:{cp:[111.670801,40.818311],name:"内蒙古",childNum:2}},{id:"210000",geometry:{type:"MultiPolygon",coordinates:[["@@L–Ž@@s‘]","@@MnNm","@@d†c","@@eÀ‚C@b‚“‰","@@f‡…Xwkbr–Ä`qg","@@^jtWQ","@@~ Y[c","@@I`ĖN^_¿Z‚ÁM","@@Ïxnj{q_×^Gigp","@@iX¶B…Y","@@„Y…Z","@@L_yG`b","@@^WqCTZ","@@\\[“‹§t|”ž]","@@m`p[","@@@œé^B†‡ntˆaÊU—˜Ÿ]x ¯ÄPIJ­°h€ʙK³†VˆÕ@Y~†|EvĹsDŽ¦­L^p²ŸÒG ’Ël]„xxÄ_˜fT¤Ď¤cŽœP„–C¨¸TVjbgH²sdÎdHt`Bˆ—²¬GJję¶[ÐhjeXdlwhšðSȦªVÊπ‹Æ‘Z˜ÆŶ®²†^ŒÎyÅ‚Hœń“ĚDMħĜŁH­ˆk„çvV[ij¼W–‚YÀäĦ’‘`XlžR`žôLUVžfK–¢†{NZdĒª’YĸÌÚJRr¸SA|ƴgŴĴÆbvªØX~†źBŽ|¦ÕœEž¤Ð`\\|Kˆ˜UnnI]¤ÀÂĊnŎ™R®Ő¿¶\\ÀøíDm¦ÎbŨab‰œaĘ\\ľã‚¸a˜tÎSƐ´©v\\ÖÚÌǴ¤Â‡¨JKr€Z_Z€fjþhPkx€`Y”’RIŒjJcVf~sCN¤ ˆE‚œhæm‰–sHy¨SðÑÌ\\\\ŸĐRÊwS¥fqŒßýáЍÙÉÖ[^¯ǤŲ„ê´\\¦¬ĆPM¯£Ÿˆ»uïpùzEx€žanµyoluqe¦W^£ÊL}ñrkqWňûP™‰UP¡ôJŠoo·ŒU}£Œ„[·¨@XŒĸŸ“‹‹DXm­Ûݏº‡›GU‹CÁª½{íĂ^cj‡k“¶Ã[q¤“LÉö³cux«|Zdƒ²BWÇ®Yß½ve±ÃC•ý£W{Ú^’q^sÑ·¨‹ËMƒr“¹·C¥‡GD›rí@wÕKţ݋˜Ÿ«V·i}xËÍ÷‘i©ĝ‡ɝǡ]ƒˆ{c™±OW‹³Ya±Ÿ‰_穂Hžĕoƫ€Ňqƒr³‰Lys[„ñ³¯OS–ďOMisZ†±ÅFC¥Pq{‚Ã[Pg}\\—¿ghćO…•k^ĩÁXaĕËĥM­oEqqZûěʼn³F‘¦oĵ—hŸÕP{¯~TÍlª‰N‰ßY“Ð{Ps{ÃVU™™eĎwk±ʼnVÓ½ŽJãÇÇ»Jm°dhcÀff‘dF~ˆ€ĀeĖ€d`sx² šƒ®EĦ¦–šdQ‹Âd^~ăÔHˆ¦\\›LKpĄVez¤NP ǹӗR™ÆąJSh­a[¦´Âghwm€BÐ¨źhI|žVVŽ—Ž|p] Â¼èNä¶ÜBÖ¼“L`‚¼bØæŒKV”ŸpoœúNZÞÒKxpw|ÊEMnzEQšŽIZ”ŽZ‡NBˆčÚFÜçmĩ‚WĪñt‘ÞĵÇñZ«uD‚±|ƏlǗw·±PmÍa‰–da‡ CL‡Ǒkùó¡³Ï«QaċϑOÃ¥ÕđQȥċƭy‹³ÁA"]],encodeOffsets:[[[123686,41445],[126019,40435],[124393,40128],[126117,39963],[125322,40140],[126686,40700],[126041,40374],[125584,40168],[125509,40217],[125453,40165],[125362,40214],[125280,40291],[125774,39997],[125976,40496],[125822,39993],[122731,40949]]]},properties:{cp:[123.429096,41.796767],name:"辽宁",childNum:16}},{id:"220000",geometry:{type:"Polygon",coordinates:["@@ñr½ÉKāGÁ¤ia É‰™È¹`\\xs€¬dĆkNnuNUŒ–wœNx¶c¸‹|\\¢…ŒGªóĄ~RãÖÎĢù‚đŴÕhQŽxtcæëSɽʼníëlj£ƍG£nj°KƘµDsØÑpyƸ®¿bXp‚]vbÍZuĂ{nˆ^IüœÀSք”¦EŒvRÎûh@℈[‚Əȉô~FNr¯ôçR±ƒ­HÑl•’Ģ–^¤¢‚OðŸŽætxsŒ]ÞÁTĠs¶¿âƊGW¾ìA¦·TѬ†è¥€ÏÐJ¨¼ÒÖ¼ƒƦɄxÊ~S–tD@ŠĂ¼Ŵ¡jlºWžvЉˆzƦZЎ²CH— „Axiukd‹ŒGgetqmcžÛ£Ozy¥cE}|…¾cZ…k‚‰¿uŐã[oxGikfeäT@…šSUwpiÚFM©’£è^ڟ‚`@v¶eň†f h˜eP¶žt“äOlÔUgƒÞzŸU`lœ}ÔÆUvØ_Ō¬Öi^ĉi§²ÃŠB~¡Ĉ™ÚEgc|DC_Ȧm²rBx¼MÔ¦ŮdĨÃâYx‘ƘDVÇĺĿg¿cwÅ\\¹˜¥Yĭlœ¤žOv†šLjM_a W`zļMž·\\swqÝSA‡š—q‰Śij¯Š‘°kŠRē°wx^Đkǂғ„œž“œŽ„‹\\]˜nrĂ}²ĊŲÒøãh·M{yMzysěnĒġV·°“G³¼XÀ““™¤¹i´o¤ŃšŸÈ`̃DzÄUĞd\\i֚ŒˆmÈBĤÜɲDEh LG¾ƀľ{WaŒYÍȏĢĘÔRîĐj‹}Ǟ“ccj‡oUb½š{“h§Ǿ{K‹ƖµÎ÷žGĄØŜçưÌs«l›•yiē«‹`姝H¥Ae^§„GK}iã\\c]v©ģZ“mÃ|“[M}ģTɟĵ‘Â`À–çm‰‘FK¥ÚíÁbXš³ÌQґHof{‰]e€pt·GŋĜYünĎųVY^’˜ydõkÅZW„«WUa~U·Sb•wGçǑ‚“iW^q‹F‚“›uNĝ—·Ew„‹UtW·Ýďæ©PuqEzwAV•—XR‰ãQ`­©GŠY…Yhc•UGorBd}ģɇb¡·µMicF«—YƅŒ»…é\\ƒɹ~ǙG³mØ©BšuT§Ĥ½¢Ã_ý‘L¡‘ûŸsT\\rke™\\PnwAK‚y}’ywdS™efµ]UhĿD@mÿvašÙNSkCun…cÿ`l‚‰W‹„ėVâ¦÷~^fÏ~œvwHCŽį„`xqT­­ƒlW«ï¸skm‹‹ßEG“qd¯•‹R…©Ýޝ¯S†\\cZ¹iűƏCuƍÓX‡oR}“M^o•£…R}oªU­F…uuXHlEŕ‡€Ï©¤ßgXˆþ¤D–²ÄufàÀ­XXȱAc„{Yw¬dvõ´KÊ£”\\rµÄl”iˆdā]|DÂVŒœH¹ˆÞ®ÜWnŒC”Œķ W‹§@\\¸‹ƒ~¤‹Vp¸‰póIO¢ŠVOšŇürXql~òÉK]¤¥Xrfkvzpm¶bwyFoúvð‡¼¤ N°ąO¥«³[ƒéǣű]°Õ\\ÚÊĝŽôîŇÔaâŸBYlďQ[ Ë[ïÒ¥RI|‘`jž]P"],encodeOffsets:[[126831,44503]]},properties:{cp:[125.3245,43.886841],name:"吉林",childNum:1}},{id:"230000",geometry:{type:"MultiPolygon",coordinates:[["@@UƒµNÿ¥īè灋•HÍøƕ¶LŒǽ|g¨|”™Ža¾pViˆdd”~ÈiŒíďÓQġėǐZ΋ŽXb½|ſÃH½ŸKFgɱCģÛÇA‡n™‹jÕc[VĝDZÃ˄Ç_™ £ń³pŽj£º”š¿”»WH´¯”U¸đĢmžtĜyzzNN|g¸÷äűѱĉā~mq^—Œ[ƒ”››”ƒǁÑďlw]¯xQĔ‰¯l‰’€°řĴrŠ™˜BˆÞTxr[tޏĻN_yŸX`biN™Ku…P›£k‚ZĮ—¦[ºxÆÀdhŽĹŀUÈƗCw’áZħÄŭcÓ¥»NAw±qȥnD`{ChdÙFćš}¢‰A±Äj¨]ĊÕjŋ«×`VuÓś~_kŷVÝyh„“VkÄãPs”Oµ—fŸge‚Ň…µf@u_Ù ÙcŸªNªÙEojVx™T@†ãSefjlwH\\pŏäÀvŠŽlY†½d{†F~¦dyz¤PÜndsrhf‹HcŒvlwjFœ£G˜±DύƥY‡yϊu¹XikĿ¦ÏqƗǀOŜ¨LI|FRĂn sª|Cš˜zxAè¥bœfudTrFWÁ¹Am|˜ĔĕsķÆF‡´Nš‰}ć…UŠÕ@Áijſmužç’uð^ÊýowŒFzØÎĕNőžǏȎôªÌŒDŽàĀÄ˄ĞŀƒʀĀƘŸˮȬƬĊ°ƒUŸzou‡xe]}Ž…AyȑW¯ÌmK‡“Q]‹Īºif¸ÄX|sZt|½ÚUΠlkš^p{f¤lˆºlÆW –€A²˜PVܜPH”Êâ]ÎĈÌÜk´\\@qàsĔÄQºpRij¼èi†`¶—„bXƒrBgxfv»ŽuUiˆŒ^v~”J¬mVp´£Œ´VWrnP½ì¢BX‚¬h™ŠðX¹^TjVœŠriªj™tŊÄm€tPGx¸bgRšŽsT`ZozÆO]’ÒFô҆Oƒ‡ŊŒvŞ”p’cGŒêŠsx´DR–Œ{A†„EOr°Œ•žx|íœbˆ³Wm~DVjºéNN†Ëܲɶ­GƒxŷCStŸ}]ûō•SmtuÇÃĕN•™āg»šíT«u}ç½BĵÞʣ¥ëÊ¡Mێ³ãȅ¡ƋaǩÈÉQ‰†G¢·lG|›„tvgrrf«†ptęŘnŠÅĢr„I²¯LiØsPf˜_vĠd„xM prʹšL¤‹¤‡eˌƒÀđK“žïÙVY§]I‡óáĥ]ķ†Kˆ¥Œj|pŇ\\kzţ¦šnņäÔVĂîά|vW’®l¤èØr‚˜•xm¶ă~lÄƯĄ̈́öȄEÔ¤ØQĄ–Ą»ƢjȦOǺ¨ìSŖÆƬy”Qœv`–cwƒZSÌ®ü±DŽ]ŀç¬B¬©ńzƺŷɄeeOĨS’Œfm Ċ‚ƀP̎ēz©Ċ‚ÄÕÊmgŸÇsJ¥ƔˆŊśæ’΁Ñqv¿íUOµª‰ÂnĦÁ_½ä@ê텣P}Ġ[@gġ}g“ɊדûÏWXá¢užƻÌsNͽƎÁ§č՛AēeL³àydl›¦ĘVçŁpśdžĽĺſʃQíÜçÛġԏsĕ¬—Ǹ¯YßċġHµ ¡eå`ļƒrĉŘóƢFì“ĎWøxÊk†”ƈdƬv|–I|·©NqńRŀƒ¤é”eŊœŀ›ˆàŀU²ŕƀB‚Q£Ď}L¹Îk@©ĈuǰųǨ”Ú§ƈnTËÇéƟÊcfčŤ^Xm‡—HĊĕË«W·ċëx³ǔķÐċJā‚wİ_ĸ˜Ȁ^ôWr­°oú¬Ħ…ŨK~”ȰCĐ´Ƕ£’fNÎèâw¢XnŮeÂÆĶŽ¾¾xäLĴĘlļO¤ÒĨA¢Êɚ¨®‚ØCÔ ŬGƠ”ƦYĜ‡ĘÜƬDJ—g_ͥœ@čŅĻA“¶¯@wÎqC½Ĉ»NŸăëK™ďÍQ“Ùƫ[«Ãí•gßÔÇOÝáW‘ñuZ“¯ĥ€Ÿŕā¡ÑķJu¤E Ÿå¯°WKɱ_d_}}vyŸõu¬ï¹ÓU±½@gÏ¿rýD‰†g…Cd‰µ—°MFYxw¿CG£‹Rƛ½Õ{]L§{qqąš¿BÇƻğëšܭNJË|c²}Fµ}›ÙRsÓpg±ŠQNqǫŋRwŕnéÑÉKŸ†«SeYR…ŋ‹@{¤SJ}šD Ûǖ֍Ÿ]gr¡µŷjqWÛham³~S«“„›Ü[","@@ƨƒĶTLÇyqpÇÛqe{~oyen}s‰`q‡iXG”ù]Ëp½“©lɇÁp]Þñ´FÔ^f‘äîºkà˜z¼BUv¬D"]],encodeOffsets:[[[134456,44547],[127123,51780]]]},properties:{cp:[126.642464,45.756967],name:"黑龙江",childNum:2}},{id:"320000",geometry:{type:"Polygon",coordinates:["@@Õg^vÁbnÀ‹`Jnĝ¬ŽòM¶ĘšTÖŒb‚˜e¦¦€{¸ZâćNpŒ©žHp|`ˆmjhŠSEb\\afv`sz^lkŽlj‹Ätg‹¤D˜­¾Xš¿À’|ДiZ„ȀåB·î}GL¢õcßjaŸyBFµÏC^ĭ•cÙt¿sğH]j{s©HM¢ƒQnDÀ©DaÜތ·jgàiDbPufjDk`dPOîƒhw¡ĥ‡¥šG˜ŸP²ĐobºrY†„î¶aHŢ´ ]´‚rılw³r_{£DB_Ûdåuk|ˆŨ¯F Cºyr{XFy™e³Þċ‡¿Â™kĭB¿„MvÛpm`rÚã”@ƹhågËÖƿxnlč¶Åì½Ot¾dJlŠVJʜǀœŞqvnOŠ^ŸJ”Z‘ż·Q}ê͎ÅmµÒ]Žƍ¦Dq}¬R^èĂ´ŀĻĊIԒtžIJyQŐĠMNtœR®òLh‰›Ěs©»œ}OӌGZz¶A\\jĨFˆäOĤ˜HYš†JvÞHNiÜaϚɖnFQlšNM¤ˆB´ĄNöɂtp–ŬdZÅgl•muÇUšŽ“Ş‡Úb¤uŃJŴu»¹Ą•lȖħŴw̌ŵ²ǹǠ͛hĭłƕrçü±Y™rřl¥’i`ã__¢ćSÅr[Çq^ùzWmOĈaŐÝɞï²ʯʊáĘijĒǭPħ͍ôƋĝÄ͎ī‰çÛɈǥ£­ÛmY`ó£Z«§°Ó³QafusNıDž_k}¢m[ÝóDµ—¡RLčiXy‡ÅNïă¡¸iĔϑNÌķoıdōîåŤûHcs}~Ûwbù¹£¦ÓCt‹OPrƒE^ÒoŠg™ĉIµžÛÅʹK…¤½phMˆú`m”R¸¦Pƚg†ÉLRŠs`£¯ãhD„¨|³¤‰C"],encodeOffsets:[[121451,32518]]},properties:{cp:[118.767413,32.041544],name:"江苏",childNum:1}},{id:"330000",geometry:{type:"MultiPolygon",coordinates:[["@@jX^n…","@@sfˆdM‰","@@qP\\xz[_i","@@o\\V’zRZ}mECy","@@‘Rƒ¢‚FX}°[m]","@@Cbœ\\•}","@@e|v\\laus","@@v~s{","@@QxÂF©}","@@¹nŒvÞs©m","@@rQgYIh","@@bi«Z„X","@@p[}ILd","@@À¿|","@@¹dnb’…","@@rS}[Kl","@@g~h}","@@FlCk","@@ůTG°ĄLHm°UF‰","@@OdRe","@@v[u\\","@@FjâL~wyoo~›sµLŒZ","@@¬e¹aH‚","@@\\nÔ¡q]L³ë\\ÿ®ŒQ̆","@@ÊA­©]ª","@@KxŒv{­","@@@hlIk_","@@pWc‡rxp","@@Md|_iA","@@¢…X£½z\\ðpN","@@hlÜ[LykAvyfw^Ež ","@@fp¤MusH","@@®_ma~•LÁ¬’`","@@†@°¡mۛGĕ¨§Ianá[ýƤjfæ‡ÐNž—äGp—","@@iM„t\\","@@Zc[b","@@™X®±GrưZæĉm","@@Z~dOSo|A¿qZv","@@@`”EN£p","@@|–s—","@@@nDi","@@n…a£¾u‰YL¯‰Qª…mĉÅdMˆ•gÇjcº«•ęœ¬­K­´ƒB«Âącoċ\\xK`cįŧ«®á’[~ıxu·Å”KsËɏc¢Ù\\ĭƛëbf¹­ģSƒĜkáƉÔ­ĈZB{ŠaM‘µ‰fzʼnfÓÔŹŁƋǝÊĉ{ğč±g³ne{ç­ií´S¬‚\\ßðK¦w\\™iqªĭiAu‡A­µ”_W¥ƣO\\lċĢttC¨£t`ˆ™PZäuXßBs‡Ļyek€OđġĵHuXBšµ]׌‡­­\\›°®¬F¢¾pµ¼kŘó¬Wät’¸|@ž•L¨¸µr“ºù³Ù~§WI‹ŸZWŽ®’±Ð¨ÒÉx€`‰²pĜ•rOògtÁZ{üÙ[|˜ûŒK‚wsPlU[}¦Rvn`hsª^–nQ´ĘRWb”‚_ rtČFI֊kŠŠĦPJ¶ÖÀÖJĈĄTĚòžC ²@Pú…Øzœ©PœCÈÚœĒ±„hŖ‡l¬â~nm¨f©–iļ«m‡nt–qŒÒTÜÄj“ŠLŽ®E̜Fª²iÊxبžIÈhhst’ˆ’[Ôx†}dtüGæţŔïĬaĸpMËВj碷ðĄÆMzˆjWKĎ¢Q¶˜À_꒖_@ı€i«pZ€gf€¤Nrq]§ĂN®«H±‡yƳí¾×ŊďŀĐÏŴǝĂíÀBŖÕªˆŠÁŐTFqĉ¯³ËCĕģi¨hÜ·ƒñt»¯Ï","@@ºwšZRkĕWK "]],encodeOffsets:[[[125785,31436],[125729,31431],[125513,31380],[125329,30690],[125223,30438],[125115,30114],[124815,29155],[124419,28746],[124095,28635],[124005,28609],[125e3,30713],[125111,30698],[125078,30682],[125150,30684],[124014,28103],[125008,31331],[125411,31468],[125329,31479],[125369,31139],[125626,30916],[125417,30956],[125254,30976],[125199,30997],[125095,31058],[125083,30915],[124885,31015],[125218,30798],[124867,30838],[124755,30788],[124802,30809],[125267,30657],[125218,30578],[125200,30562],[125192,30787],[124968,30474],[125167,30396],[125115,30363],[124955,29879],[124714,29781],[124762,29462],[124325,28754],[124863,30077],[125366,31477]]]},properties:{cp:[120.153576,30.287459],name:"浙江",childNum:43}},{id:"340000",geometry:{type:"MultiPolygon",coordinates:[["@@^iuLV\\","@@‚e©Edh","@@´CE¶zAXœêeödK¡~H¸íæAˆȽ—d{ďő“À½W—®£ChŒÃsiŒkkly]_teu[bFa‰Tig‡n{]Gqªo‹ĈMYá|·¥f¥—őaSÕė™NµñĞ«ImŒ_m¿Âa]uĜp …Z_§{Cƒäg¤°r[_Yj‰ÆOdý“[ŽI[á·¥“Q_n‡ùgL¾mz›ˆDÜÆ¶ĊJhšp“c¹˜O]iŠ]œ¥ jtsggDÑ¡“w×jÉ©±›EFˍ­‰Ki”ÛÃÕYv…s•ˆm¬njĻª•§emná}k«ŕˆƒgđ²Ù›DǤ›í¡ªOy›†×Où±@DŸñSęćăÕIÕ¿IµĥO‰‰‰lJÕÍR›Í|JìĻÒåyķrĕq§ÄĩsWÆßŽF¶žX®¿‰mŒ™w…RIޓfßoG‘³¾©uyH‘į{Ɓħ¯AFnuP…ÍÔzšŒV—dàôº^Ðæd´€‡oG¤{S‰¬ćxã}›ŧ×Kǥĩ«žÕOEзÖdÖsƘѨ[’Û^Xr¢¼˜§xvěƵ`K”§ tÒ´Cvlo¸fzŨð¾NY´ı~ÉĔē…ßúLÃϖ_ÈÏ|]ÂÏHl’g`bšežž€n¾¢pU‚h~ƴ˶_‚r sĄ~cž”ƈ]|r c~`¼{À{ȒiJjz`îÀT¥Û³…]’u}›f…ïQl{skl“oNdŸjŸäËzDvčoQŠďHI¦rb“rHĖ~BmlNž“Ra„ĥTX\\{fÁKÁ®T‚œL‘ŠĄMt›ÊgĀD–ŠĄXœƔvDcÎJbt[¤€D@®hh~kt°ǾzÖ@¾ªdb„YhüóV´ŮŒ¨Üc”±r@J|àuYÇԋG·ĚąĐlŪÚpSJ¨ĸˆLvÞcPæķŨŽ®mАˆál‹sgd×mQ¨ųƩޖ¤IΖs’°ŒKZpĄ|XwWdĎµmkǀwÌÕæhºgBĝâqÙĊz›ÖgņtÀÁÊÆá’hEz|WzqD¹€Ÿ°E‡ŧl{ævÜcA`¤C`|´qžxIJkq^³³ŸGšµbƒíZ…¹qpa±ď OH—¦™Ħˆx¢„gPícOl_iCveaOjCh߸i݋bÛªCC¿€m„RV§¢A|tbkĜEÀtîm‚^g´fÄ"]],encodeOffsets:[[[121722,32278],[119475,30423],[121606,33646]]]},properties:{cp:[117.283042,31.86119],name:"安徽",childNum:3}},{id:"350000",geometry:{type:"MultiPolygon",coordinates:[["@@“zht´}[","@@aj^~ĆGå","@@edœŒH…se","@@@vˆPGsyQ","@@‰sBz‚ddW[O","@@SލQy","@@NŽVucW","@@qptB@q","@@‰’¸[iu","@@Q\\pD[_","@@jSwUappI","@@eXª~•","@@AjvFoo","@@fT–›_Çí\\Ÿ™—v|ba¦jZÆy|®","@@IjLg","@@wJI€ˆxš«¼AoNe{M¥Œ","@@K‰±¡Óˆ”Č~N¾™","@@k¡¹Eh~c®uDq‰Zì¡I•~Māe£bN¨gZý¡a±Öcp©PhžI”Ÿ¢Qq…ÇGj‹|¥U™ g[Ky¬ŏ–v@OpˆtÉEŸF„\\@ åA¬ˆV{Xģ‰ĐBy…cpě…¼³Ăp·¤ƒ¥o“hqqÚ¡ŅLsƒ^ᗞ§qlŸÀhH¨MCe»åÇGD¥zPO£čÙkJA¼ß–ėu›ĕeûҍiÁŧS[¡œUŠûŗ½ùěcݧSùĩąSWó«íęACµ›eR—åǃRCÒÇZÍ¢‹ź±^dlsŒtjD¸•‚ZpužÔâÒH¾oLUêÃÔjjēò´ĄW‚ƛ…^Ñ¥‹ĦŸ@Çò–ŠmŒƒOw¡õyJ†yD}¢ďÑÈġfŠZd–a©º²z£šN–ƒjD°Ötj¶¬ZSÎ~¾c°¶Ðm˜x‚O¸¢Pl´žSL|¥žA†ȪĖM’ņIJg®áIJČĒü` ŽQF‡¬h|ÓJ@zµ |ê³È ¸UÖŬŬÀCtrĸr‚]€˜ðŽM¤ĶIJHtÏ A’†žĬkvsq‡^aÎbvŒd–™fÊòSD€´Z^’xPsÞrv‹ƞŀ˜jJd×ŘÉ ®A–ΦĤd€xĆqAŒ†ZR”ÀMźŒnĊ»ŒİÐZ— YX–æJŠyĊ²ˆ·¶q§·–K@·{s‘Xãô«lŗ¶»o½E¡­«¢±¨Yˆ®Ø‹¶^A™vWĶGĒĢžPlzfˆļŽtàAvWYãšO_‡¤sD§ssČġ[kƤPX¦Ž`¶“ž®ˆBBvĪjv©šjx[L¥àï[F…¼ÍË»ğV`«•Ip™}ccÅĥZE‹ãoP…´B@ŠD—¸m±“z«Ƴ—¿å³BRضˆœWlâþäą`“]Z£Tc— ĹGµ¶H™m@_©—kŒ‰¾xĨ‡ôȉðX«½đCIbćqK³Á‹Äš¬OAwã»aLʼn‡ËĥW[“ÂGI—ÂNxij¤D¢ŽîĎÎB§°_JœGsƒ¥E@…¤uć…P‘å†cuMuw¢BI¿‡]zG¹guĮI‹"]],encodeOffsets:[[[123250,27563],[122541,27268],[123020,27189],[122916,27125],[122887,26845],[122808,26762],[122568,25912],[122778,26197],[122515,26757],[122816,26587],[123388,27005],[122450,26243],[122578,25962],[121255,25103],[120987,24903],[122339,25802],[121042,25093],[122439,26024]]]},properties:{cp:[119.306239,26.075302],name:"福建",childNum:18}},{id:"360000",geometry:{type:"Polygon",coordinates:["@@ÖP¬ǦĪØLœŨä~ĈwŠ«|TH£ˆp€c³Ïå¹]ĉđxe{ÎӐ†vOEm°BƂĨİ|G’vz½ª´€H’àp”eJ݆Qšxn‹ÀŠW­žEµàXÅĪt¨ÃĖrÄwÀFÎ|Ă¡”‡WÕ¸cf¥—‘XaęST±m[“r«_gŽmQu~¥V\\OkxtL E¢‹ƒ‘Ú^~ýØkbē–qo슱_Êw§Ñ²ÏƟ뼋mĉŹ‹¿NQ“…YB‹ąrwģcÍ¥B•Ÿ­ŗÊcØiI—žƝĿuŒqtāwO]‘³YCñTeɕš‹caub͈]trlu€ī…B‘ПGsĵıN£ï—^ķqsq¿DūūV՟·´Ç{éĈý‰ÿ›OEˆR_ŸđûIċâJh­ŅıN‘ȩĕB…¦K{Tk³¡OP·wn—µÏd¯}½TÍ«YiµÕsC¯„iM•¤™­•¦¯P|ÿUHv“he¥oFTu‰õ\\ŽOSs‹MòđƇiaºćXŸĊĵà·çhƃ÷ǜ{‘ígu^›đg’m[ÙxiIN‘¶Õ»lđÕwZSƉv©_ÈëJbVk„ĔVÀ¤P¾ºÈMÖxlò~ªÚàGĂ¢B„±’ÌŒK˜y’ñ`w²¹€·Ÿ…`g›ŸsÙfI›ěxŕeykpŽŒudjˆuTfb·hh„¿JdŠ[\\˜„L‚áƔĨƐAĈepˆÀÂMD~ņªe^\\^§„ý©j׍cZ†Ø¨zdÒa¶ˆlҍJŒìõ`oz÷@¤u޸´†ôęöY¼‰HČƶajlÞƩ¥éZ[”|h}^U Œ ¥p„ĄžƦO lt¸Æ €Q\\€ŠaÆ|CnÂOjt­ĚĤd’ÈŒF`’¶„@Ð딠¦ōҞ¨Sêv†HĢÛ@[ƅQoxHŒ—W[ŰîÀt¦DŽ~NĠ¢l–•ĄtZoœCƞÔºCxrpČN˜pj¢{f_Y`_ƒeq’’®Aot`@o‚DXfkp¨|Šs¬\\D‘ÄSfè©Hn¬…^DhÆyøJh“ØxĢĀLʈ„ƠPżċĄwĮ”¶ž"],encodeOffsets:[[118923,30536]]},properties:{cp:[115.892151,28.676493],name:"江西",childNum:1}},{id:"370000",geometry:{type:"MultiPolygon",coordinates:[["@@Xjd]mE","@@itnq","@@Dl@k","@@T‚ŒG—w","@@K¬˜•‰U","@@Wd`c","@@PtMs","@@•LnXlc","@@ppVƒu]Qn","@@cdzAU_","@@udRhnCE…","@@ˆoIƒpP„","@@M{Ŀčwbxƨî’Kš–ÎMĮ]†—ZFˆ½Y]â£ph’™š¶¨râøÀ†ÎǨ¤^ºÄ”Gzˆ~grĚĜlĞÆ„LĆdž¢Îo¦–cv“Kb€gr°Wh”mZp ˆL]LºcU‰Æ­n”żĤÌǜbAnrOAœ´žȊcÀbƦUØrĆUÜøœĬƞ†ŶǬĴóò_A̈«ªdÎɜnb²ĦhņBĖ›žįĦåXćì@L¯´ywƕCéõė ƿ¸‘lµ‚Zæyj|BíÂKN„NnoƈfÈMZwšnŐNàúĂsT„JUš›‚L„îVj„ǎ¾Ē؍‚Dz²XPn±ŴPè¸ŔLƔÜƺ_T‘üÃĤBBċȉöA´fa„˜M¨{«M`‡¶d¡ô‰Ö°šmȰBÔjjŒ´PM|”c^d¤u•ƒ¤Û´Œä«ƢfPk¶Môlˆ]Lb„}su^ke{lC‘…M•rDŠÇ­]NÑFsmoõľH‰yGă{{çrnÓE‰‹ƕZGª¹Fj¢ÿ©}ÌCǷ돡ąuhÛ¡^Kx•C`C\\bÅxì²ĝÝ¿_N‰īCȽĿåB¥¢·IŖÕy\\‡¹kx‡Ã£ČáKµË¤ÁçFQ¡„KtŵƋ]CgÏAùSed‡cÚź—ŠuYfƒyMmhUWpSyGwMPqŀ—›Á¼zK›¶†G•­Y§Ëƒ@–´śÇµƕBmœ@Io‚g——Z¯u‹TMx}C‘‰VK‚ï{éƵP—™_K«™pÛÙqċtkkù]gŽ‹Tğwo•ɁsMõ³ă‡AN£™MRkmEʕč™ÛbMjÝGu…IZ™—GPģ‡ãħE[iµBEuŸDPԛ~ª¼ętŠœ]ŒûG§€¡QMsğNPŏįzs£Ug{đJĿļā³]ç«Qr~¥CƎÑ^n¶ÆéÎR~ݏY’I“] P‰umŝrƿ›‰›Iā‹[x‰edz‹L‘¯v¯s¬ÁY…~}…ťuٌg›ƋpÝĄ_ņī¶ÏSR´ÁP~ž¿Cyžċßdwk´Ss•X|t‰`Ä Èð€AªìÎT°¦Dd–€a^lĎDĶÚY°Ž`ĪŴǒˆ”àŠv\\ebŒZH„ŖR¬ŢƱùęO•ÑM­³Fۃaj"]],encodeOffsets:[[[123806,39303],[123821,39266],[123742,39256],[123702,39203],[123649,39066],[123847,38933],[123580,38839],[123894,37288],[123043,36624],[123344,38676],[123522,38857],[123628,38858],[118267,36772]]]},properties:{cp:[117.000923,36.675807],name:"山东",childNum:13}},{id:"410000",geometry:{type:"MultiPolygon",coordinates:[["@@dXD}~Hgq~ÔNŽ‹„~zkĘHVsDzßjƒŬŒŠŢ`Pûàl¢˜\\ÀœEhŽİgÞē X¼`kš„h•ÍL™ùµP³swIÓzeŠĠð†´E®žÚPt†ºIŊ–ʺ˜L«šŕQGƒ‹Yfa[şu“ßǑ‡ĩų_Z¯ĵÙčC]kbc•¥CS¯ëÍB©ïŽÇߊ_{s–WTtž³xlàcȂzÀD}ÂOQ³ÐTĬµ‚ƑпŸghœł‹Ŧv~††}ÂZž«¤lPǕ£ªÝŴÅR§ØnhcŒtâk‡nύ­ľŹUÓÝdKuķ‡I§oTũÙďkęĆH¸ÓŒ\\ăŒ¿PcnS{wBIvɘĽ[GqµuŸŇôYgûƒZcaŽ©@½Õǽys¯}lgg@­C\\£as€IdÍuCQñ[L±ęk·‹ţb¨©kK—’»›KC²‘òGKmĨS`ƒ˜UQ™nk}AGē”sqaJ¥ĐGR‰ĎpCuÌy ã iMc”plk|tRk†ðœev~^‘´†¦ÜŽSí¿_iyjI|ȑ|¿_»d}qŸ^{“Ƈdă}Ÿtqµ`ŷ飩V¡om½ZÙϋÁRD|JOÈpÀ—Rs’•I{ùÓjuµ{t}uËR‘iŸvGŠçJFjµŠåkWꖴMƒHewixGw½Yŷpµú³XU›½ġy™łå‰kÚwZXˆ·l„¢Á¢K”zO„Λ΀jc¼htoDHr…|­J“½}JZ_¯iPq{tę½ĕ¦Zpĵø«kQ…Ťƒ]MÛfaQpě±ǽ¾]u­Fu‹÷nƒ™čįADp}AjmcEǒaª³o³ÆÍSƇĈÙDIzçƒñİŸ^ˆKNœ™i—Þñ€[œƒaA²zz‰Ì÷Dœ|[šíijgf‚ÕÞd®|`ƒĆ~„oĠƑô³Ŋ‘D×°¯CsˆøÂ«ì‰UMhTº¨¸ǝêWšÔ„DruÂÇZ£Ćš”PZ„žW”~؋Øv¬gèÂÒw¦X¤Ā´oŬ¬Ž²Ês~€€]®tªašpŎJ¨Öº„_ŠŔ–f”Ő\\Ѝ\\Ĝu–”~m²Ƹ›¸fW‰ĦrƔ}Î^gjdfÔ¡J}\\n C˜¦þWxªJRÔŠu¬ĨĨmF†dM{\\d\\ŠYÊ¢ú@@¦ª²SŠÜsC–}fNècbpRmlØ^g„d¢aÒ¢CZˆZxvÆ¶N¿’¢T@€uCœ¬^ĊðÄn|žlIlŽ—Xhun€[","@@hzUq"]],encodeOffsets:[[[116744,37216],[116480,33048]]]},properties:{cp:[113.665412,34.757975],name:"河南",childNum:2}},{id:"420000",geometry:{type:"MultiPolygon",coordinates:[["@@ASd","@@ls{d","@@¾«}{ra®pîÃ\\™›{øCŠËyyB±„b\\›ò˜Ý˜jK›‡L ]ĎĽÌ’JyÚCƈćÎT´Å´pb©È‘dFin~BCo°BĎĚømvŒ®E^vǾ½Ĝ²Ro‚bÜeNŽ„^ĺ£R†¬lĶ÷YoĖ¥Ě¾|sOr°jY`~I”¾®I†{GqpCgyl{‡£œÍƒÍyPL“¡ƒ¡¸kW‡xYlÙæŠšŁĢzœ¾žV´W¶ùŸo¾ZHxjwfx„GNÁ•³Xéæl¶‰EièIH‰ u’jÌQ~v|sv¶Ôi|ú¢Fh˜Qsğ¦ƒSiŠBg™ÐE^ÁÐ{–čnOÂȞUÎóĔ†ÊēIJ}Z³½Mŧïeyp·uk³DsѨŸL“¶_œÅuèw»—€¡WqÜ]\\‘Ò§tƗcÕ¸ÕFÏǝĉăxŻČƟO‡ƒKÉġÿ×wg”÷IÅzCg†]m«ªGeçÃTC’«[‰t§{loWeC@ps_Bp‘­r‘„f_``Z|ei¡—oċMqow€¹DƝӛDYpûs•–‹Ykıǃ}s¥ç³[§ŸcYЧHK„«Qy‰]¢“wwö€¸ïx¼ņ¾Xv®ÇÀµRĠЋžHMž±cÏd„ƒǍũȅȷ±DSyúĝ£ŤĀàtÖÿï[îb\\}pĭÉI±Ñy…¿³x¯N‰o‰|¹H™ÏÛm‹júË~Tš•u˜ęjCöAwě¬R’đl¯ Ñb­‰ŇT†Ŀ_[Œ‘IčĄʿnM¦ğ\\É[T·™k¹œ©oĕ@A¾w•ya¥Y\\¥Âaz¯ãÁ¡k¥ne£Ûw†E©Êō¶˓uoj_Uƒ¡cF¹­[Wv“P©w—huÕyBF“ƒ`R‹qJUw\\i¡{jŸŸEPïÿ½fć…QÑÀQ{ž‚°‡fLԁ~wXg—ītêݾ–ĺ‘Hdˆ³fJd]‹HJ²…E€ƒoU¥†HhwQsƐ»Xmg±çve›]Dm͂PˆoCc¾‹_h”–høYrŊU¶eD°Č_N~øĹĚ·`z’]Äþp¼…äÌQŒv\\rCŒé¾TnkžŐڀÜa‡“¼ÝƆ̶Ûo…d…ĔňТJq’Pb ¾|JŒ¾fXŠƐîĨ_Z¯À}úƲ‹N_ĒĊ^„‘ĈaŐyp»CÇĕKŠšñL³ŠġMŒ²wrIÒŭxjb[œžn«øœ˜—æˆàƒ ^²­h¯Ú€ŐªÞ¸€Y²ĒVø}Ā^İ™´‚LŠÚm„¥ÀJÞ{JVŒųÞŃx×sxxƈē ģMř–ÚðòIf–Ċ“Œ\\Ʈ±ŒdʧĘD†vČ_Àæ~DŒċ´A®µ†¨ØLV¦êHÒ¤"]],encodeOffsets:[[[113712,34e3],[115612,30507],[113649,34054]]]},properties:{cp:[114.298572,30.584355],name:"湖北",childNum:3}},{id:"430000",geometry:{type:"MultiPolygon",coordinates:[["@@—n„FZw","@@かÆá‰½ÔXr—†CO™“…ËR‘ïÿĩ­TooQyšÓ[‹ŅBE¬–ÎÓXa„į§Ã¸G °ITxp‰úxÚij¥Ïš–̾ŠedžÄ©ĸG…œàGh‚€M¤–Â_U}Ċ}¢pczfŠþg¤€’ÇôAV‘","@@ȴÚŠĖÁĐiO“Ĝ«BxDõĚiv—ž–S™Ì}iùŒžÜnšÐºGŠ{Šp°M°yŠÂÒzJ²Ì ÂcXëöüiáÿñŽőФ‚ùTz²CȆȸǎۃƑÐc°dPÎŸğ˶[Ƚu¯½WM¡­Éž“’B·rížnZŸÒ `‡¨GA¾\\pē˜XhÆRC­üWGġu…T靧Ŏѝ©êL•M³}_‘‹E‘Çģc®ęisÁPDmÅ{‰b[Rşs·€kPŸŽƥƒóRo”O‹ŸVŸ~]{g\\“êYƪ¦kÝbiċƵŠGZ»Ěõ…ó·³vŝž£ø@pyö_‹ëŽIkѵ‡bcѧy…×dY؎ªiþžˆUjŸŅ³C}ÁN‡»hĻħƏâƓK—ƒA·³CQ±µ§¿AUŠƑ¹AŠtćOw™D]ŒJUÖgk¯b£‘ylƒ›ZƒFËѱH™­}˜•EbóľA–¡»Ku¦·‘³†åş¥ùBDž^{ÌC´­¦ŷJ£^[†‹—ª¿‡ğ|‹ƅ…•N… skóā‡¹¿€ï]ă~÷O§­@—Vm¡‹Qđ¦¢Ĥ{ºjԏŽŒª¥nf´•~ÕoŸž×Ûą‹Gû¥cÑ[Zœ‰¶˜ŨβSÊǔƐ˜ƀƒ’AÚŌ¦QؼrŭŽ­«}NÏürʬŒmjr€@ĘrTW ­SsdHzƓ^ÇÂyUi¯DÅYlŹu{hTœ}mĉ–¹¥ě‰Dÿë©ıÓ[Oº£ž“¥ót€ł¹MՄžƪƒ`Pš…Di–ÛUоÅ‌ìˆU’ñB“È£ýhe‰dy¡oċ€`pfmjP~‚kZa…ZsÐd°wj§ƒ@€Ĵ®w~^‚kÀÅKvNmX\\¨a“”сqvíó¿F„¤¡@ũÑVw}S@j}¾«pĂr–ªg àÀ²NJ¶¶Dô…K‚|^ª†Ž°LX¾ŴäPᜣEXd›”^¶›IJÞܓ~‘u¸ǔ˜Ž›MRhsR…e†`ÄofIÔ\\Ø  i”ćymnú¨cj ¢»–GČìƊÿШXeĈ¾Oð Fi ¢|[jVxrIQŒ„_E”zAN¦zLU`œcªx”OTu RLĪpUžĪ‚ȴ^ŎµªÉžFx…Ü€f¤ºgIJèy°Áb[¦Zb¦–z½xBĖ@ªpº›˜jS´rVźOd©ʪiĎă’JP‡ž`"]],encodeOffsets:[[[115640,30489],[112577,27316],[114113,30649]]]},properties:{cp:[112.982279,28.19409],name:"湖南",childNum:3}},{id:"440000",geometry:{type:"MultiPolygon",coordinates:[["@@QdˆAsa","@@ƒlxDRm","@@sbhNLo","@@Ă ý","@@WltOY[","@@Krœ]‰S","@@e„~AS}","@@I|„Mym","@@ƒÛ³LSŒž²Q","@@nvºB–ë¥cÕº","@@zdšÛ›JmŠ","@@†°³","@@a yAª¸ËJIx،@€ĀHÉÕZ™o•fo…o","@@šs‰ŗÃÔėAƁ›ZšÄ ~°ČP‚‹ºb","@@‹¶Ý’Ì‚vmĞh¹Ĺ","@@HœŠdSjĒ¢D}war…“u«ZqadY{K","@@elŒ\\LqqO","@@~rMmX","@@f„^E","@@øPªoj÷ÍÝħXČx”°Q¨ıXJp","@@gÇƳˆˆ–m’Žxa†tfu","@@E–ÆC½‘","@@¸B_¶ekWvSi‡vc•}p}Ăº¾NĎyj¦Èm thœ†_®žÄ}ˆ»âUzL™Ë‹²‘Aƒā¡ßH©Ùñ}wkNÕ¹ÇO½¿£ēUlƒaUìIžÇª`ŠuTÅxYĒÖ¼k֞’µ‚MžjJÚwn\\h‘œĒv]îh|’È›Ƅøègž¸Ķß ĉĈWb¹ƀdéƌNTtP[ŠöSvrCZžžaGuœbo´ŖÒÇА~¡zCI…özx¢„Pn‹•‰Èñ @ŒĥÒ¦†]ƜŽX³ăĔñiiÄÓVépKG½Ä‘ÓávYo–C·sit‹iaÀy„ŧΡÈYDÑům}‰ý|m[węõĉZÅxUO}÷N¹³ĉo_qtă“qwµŁYلǝŕ¹tïÛUïmRCº…ˆĭ|µ›ÕÊK™½R‘ē ó]‘–GªęAx–ŸNqSF•|ām‡¡diď×YïYWªʼnOeÚtĐ«zđ¹T…ā‡úE™áÎÁWw헟HcòßÎſ¿Çdğ·ùT×Çūʄ¡XgWÀLJğ·¿ÃˆOj YÇ÷Sğ³kzőõm‰™ĝ—[³‹¡VÙæÅöM̳¹pÁaËýý©D©Ü“JŹƕģGą¤{Ùū…ǘO²«BƱéA—Ò‰ĥ‡¡«BhlmtÃPµyU¯uc“d·w_bŝcīímGOŽ€GBȅ‰ŹãĻFŷŽŕ@Óoo¿ē‹±ß}Ž}ÓF÷tIJWÈCőâUâǙI›ğʼn©I›ijEׅÁ”³AĥDĈ±ÌŒÜӔĨ£L]ĈÙƺZǾĆĖMĸĤfŒÎĵl•ŨnȈ‘ĐtF”Š–FĤ–‚êk¶œ^k°f¶gŠŽœ}®Fa˜f`vXŲxl˜„¦–ÔÁ²¬ÐŸ¦pqÊ̲ˆi€XŸØRDÎ}†Ä@ZĠ’s„x®AR~®ETtĄZ†–ƈfŠŠHâÒÐA†µ\\S¸„^wĖkRzŠalŽŜ|E¨ÈNĀňZTŒ’pBh£\\ŒĎƀuXĖtKL–¶G|Ž»ĺEļĞ~ÜĢÛĊrˆO˜Ùîvd]nˆ¬VœÊĜ°R֟pM††–€ƀ¬HbwžEÀˆ˜©Œž\\…¤]ŸI®¥D³|ˎ]CúAЦ…æ’´¥¸Lv¼€•¢ĽBaô–F~—š®²GÌҐEY„„œzk¤’°ahlV՞I^‹šCxĈPŽsB‰ƒºV‰ÀB¶¨R²´D","@@OŽR"]],encodeOffsets:[[[117381,22988],[116552,22934],[116790,22617],[116973,22545],[116444,22536],[116931,22515],[116496,22490],[116453,22449],[113301,21439],[118726,21604],[118709,21486],[113210,20816],[115482,22082],[113171,21585],[113199,21590],[115232,22102],[115739,22373],[115134,22184],[113056,21175],[119573,21271],[119957,24020],[115859,22356],[116680,26053],[116561,22649]]]},properties:{cp:[113.280637,23.125178],name:"广东",childNum:24}},{id:"450000",geometry:{type:"MultiPolygon",coordinates:[["@@H– TI¡U","@@Ɣ_LÊFZg…čP­kini«‹qǀcz͔Y®¬Ů»qR×ō©DՄ‘§ƙǃŵTÉĩ±ŸıdÑnYY›IJvNĆÌØÜ Öp–}e³¦m‹©iÓ|¹Ÿħņ›|ª¦QF¢Â¬ʖovg¿em‡^ucäāmÇÖåB¡Õçĝ}FϼĹ{µHK•sLSđƃr‹č¤[Ag‘oS‹ŇYMÿ§Ç{Fśbky‰lQxĕƒ]T·¶[B…ÑÏGáşşƇe€…•ăYSs­FQ}­Bƒw‘tYğÃ@~…C̀Q ×W‡j˱rÉ¥oÏ ±«ÓÂ¥•ƒ€k—ŽwWűŽue_b—­E›~‰µh¯ecl¯›Ïr¯‡E쉕Jƒğƒ}žw³–Ƈē`ãògK_ÛsUʝ“ćğ¶hŒöŒO¤Ǜn³Žc‘`¡yi–ę–‘[ďĵűMę§]X˜Î_‚훘Û]é’ÛUćİÕBƣ±…dƒy¹T^džûÅÑŦ·‡PĻþÙ`K€¦˜…¢ÍeœĥR¿Œ³£[~Œäu¼dl‰t‚†W¸oRM¢ď\\zœ}Æzdvň–{ÎXF¶°Â_„ÒÂÏL©Ö•TmuŸ¼ãl‰›īkiqéfA„·Êµ\\őDc¥ÝF“y›Ôć˜c€űH_hL܋êĺШc}rn`½„Ì@¸¶ªVLŒŠhŒ‹\\•Ţĺk~ŽĠið°|gŒtTĭĸ^x‘vK˜VGréAé‘bUu›MJ‰VÃO¡…qĂXËS‰ģãlýàŸ_ju‡YÛÒB†œG^˜é֊¶§ŽƒEG”ÅzěƒƯ¤Ek‡N[kdåucé¬dnYpAyČ{`]þ±X’\\’ÞÈk‚¡Ĭj†àh„ÂƄ¢H茠Ŕ⪃LƒĒ^Öm¶ħĊAǦė¸zÚGn£¾›rªŀÜt¬@֛ڈSx~øOŒ˜ŶÐÂæȠ\\„ÈÜObĖw^oބLf¬°bI lTØB̈F£Ć¹gñĤaY“t¿¤VSñœK¸¤nM†¼‚JE±„½¸šŠño‹ÜCƆæĪ^ŠĚQÖ¦^‡ˆˆf´Q†üÜʝz¯šlzUĺš@쇀p¶n]sxtx¶@„~ÒĂJb©gk‚{°‚~c°`ԙ¬rV\\“la¼¤ôá`¯¹LC†ÆbŒxEræO‚v[H­˜„[~|aB£ÖsºdAĐzNÂðsŽÞƔ…Ĥªbƒ–ab`ho¡³F«èVZs„\\\\Œ™ÔRzpp®SŽĪº¨ÖƒºN…ij„d`’a”¦¤F³¢@„`¢ĨĀìhYvlŠĆº¦Ċ•~nS›|gźv^kGƄÀè·"]],encodeOffsets:[[[111707,21520],[113706,26955]]]},properties:{cp:[108.320004,22.82402],name:"广西",childNum:2}},{id:"460000",geometry:{type:"Polygon",coordinates:["@@š¦Ŝil¢”XƦ‘ƞò–ïè§ŞCêɕrŧůÇąĻõ™·ĉ³œ̅kÇm@ċȧƒŧĥ‰Ľʉ­ƅſ“ȓÒ˦ŝE}ºƑ[ÍĜȋ gÎfǐÏĤ¨êƺ\\Ɔ¸ĠĎvʄȀœÐ¾jNðĀÒRŒšZdž™zМŒĊ†¢DÀɘZ"],encodeOffsets:[[112750,20508]]},properties:{cp:[110.33119,20.031971],name:"海南",childNum:1}},{id:"510000",geometry:{type:"MultiPolygon",coordinates:[["@@LqSn","@@ĆOìÛÐ@Ğ™ǔNY{¤Á§d…i“´ezÝúØãwŒƒIŸþËQǦÃqɞSJ»ĂéʔõÔƁİlƞ¹„§Ĭqt‘ÀƄmÀêErĒtD®ċæcQƒ”E®³^ĭ¥©l}äQto˜ŖÜqƎkµ–„ªÔĻĴ¡@Ċ°B²Èw^^RsºT£ڿœQP‘JvÄz„^Đ¹Æ¯fLà´GC²‘dt˜­ĀRt¼¤ĦOðğfÔðDŨŁĞƘïžPȆ®âbMüÀXZ ¸£@Ś›»»QÉ­™]d“sÖ×_͖_ÌêŮPrĔĐÕGĂeZÜîĘqBhtO ¤tE[h|Y‹Ô‚ZśÎs´xº±UŒ’ñˆt|O’ĩĠºNbgþŠJy^dÂY Į„]Řz¦gC‚³€R`Šz’¢AjŒ¸CL„¤RÆ»@­Ŏk\\Ç´£YW}z@Z}‰Ã¶“oû¶]´^N‡Ò}èN‚ª–P˜Íy¹`S°´†ATe€VamdUĐwʄvĮÕ\\ƒu‹Æŗ¨Yp¹àZÂm™Wh{á„}WØǍ•Éüw™ga§ßAYŸrÅÂQĀÕ¬LŐý®X˜øxª½Ű¦¦[€—þ„`ÜUÖ´òrÙŠ°²Äk„ijnDX{Uƒ~ET{ļº¦PZc”jF²Ė@Žp˜g€ˆ¨“B{ƒu¨ŦyhoÚD®¯¢˜ WòàFΤ¨GDäz¦kŮPœġq˚¥À]€Ÿ˜eŽâÚ´ªKxī„Pˆ—Ö|æ[xäJÞĥ‚s’NÖ½ž€I†¬nĨY´®Ð—ƐŠ€mD™ŝuäđđEb…e’e_™v¡}ìęNJē}q”É埁T¯µRs¡M@}ůa†a­¯wvƉåZwž\\Z{åû`Ÿ†[±oi•‘JDŦ]‘‰ĕãïrG •réÏ·~ąSfy×͂·ºſƽĵȁŗūmHQ¡Y¡®ÁÃ×t«ƒ­Tƒ¤J–JJŒyJ•ÈŠ`Ohߦ¡uËhIyCjmÿw…ZG……Ti‹SˆsO‰žB²ŸfNmsPaˆ{M{ŠõE‘^Hj}gYpaeuž¯‘oáwHjÁ½M¡pM“–uå‡mni{fk”\\oƒÎqCw†EZ¼K›ĝŠƒAy{m÷L‡wO×SimRI¯rK™õBS«sFe‡]fµ¢óY_ÆPRcue°Cbo׌bd£ŌIHgtrnyPt¦foaXďx›lBowz‹_{ÊéWiêE„GhܸºuFĈIxf®Ž•Y½ĀǙ]¤EyŸF²ċ’w¸¿@g¢§RGv»–áŸW`ÃĵJwi]t¥wO­½a[׈]`Ãi­üL€¦LabbTÀå’c}Íh™Æhˆ‹®BH€î|Ék­¤S†y£„ia©taį·Ɖ`ō¥Uh“O…ƒĝLk}©Fos‰´›Jm„µlŁu—…ø–nÑJWΪ–YÀïAetTžŅ‚ӍG™Ë«bo‰{ıwodƟ½ƒžOġܑµxàNÖ¾P²§HKv¾–]|•B‡ÆåoZ`¡Ø`ÀmºĠ~ÌЧnDž¿¤]wğ@sƒ‰rğu‰~‘Io”[é±¹ ¿žſđӉ@q‹gˆ¹zƱřaí°KtǤV»Ã[ĩǭƑ^ÇÓ@ỗs›Zϕ‹œÅĭ€Ƌ•ěpwDóÖሯneQˌq·•GCœýS]xŸ·ý‹q³•O՜Œ¶Qzßti{ř‰áÍÇWŝŭñzÇW‹pç¿JŒ™‚Xœĩè½cŒF–ÂLiVjx}\\N†ŇĖ¥Ge–“JA¼ÄHfÈu~¸Æ«dE³ÉMA|b˜Ò…˜ćhG¬CM‚õŠ„ƤąAvƒüV€éŀ‰_V̳ĐwQj´·ZeÈÁ¨X´Æ¡Qu·»Ÿ“˜ÕZ³ġqDo‰y`L¬gdp°şŠp¦ėìÅĮZްIä”h‚‘ˆzŠĵœf²å ›ĚрKp‹IN|‹„Ñz]ń……·FU×é»R³™MƒÉ»GM«€ki€™ér™}Ã`¹ăÞmȝnÁîRǀ³ĜoİzŔwǶVÚ£À]ɜ»ĆlƂ²Ġ…þTº·àUȞÏʦ¶†I’«dĽĢdĬ¿–»Ĕ׊h\\c¬†ä²GêëĤł¥ÀǿżÃÆMº}BÕĢyFVvw–ˆxBèĻĒ©Ĉ“t@Ğû¸£B¯¨ˋäߜkŽķŒ½ª“ôNԓ~t¼Ŵ„u„œ^s¼{TA¼ø°¢İªDè¾Ň¶ÝJ‘®Z´ğ~Sn|ªWÚ©òzPOȸ‚bð¢|‹øĞŠŒœŠA"]],encodeOffsets:[[[108815,30935],[100197,35028]]]},properties:{cp:[104.065735,30.659462],name:"四川",childNum:2}},{id:"520000",geometry:{type:"MultiPolygon",coordinates:[["@@†G\\†lY£‘cj","@@q‚|ˆ‚mc¯vωV","@@hÑ£Is‡NgßH†›HªķÃh_¹ƒ¡ĝħń¦uيùŽgS¯JHŸ|sÝÅtÁïyMDč»eÕtA¤{b\\}—ƒG®u\\åPFq‹wÅaD…žK°ºâ_£ùbµ”mÁ‹ÛœĹM[q|hlaªāI}тƒµ@swtwm^oµˆD鼊yV™ky°ÉžûÛR…³‚‡eˆ‡¥]RՋěħ[ƅåÛDpŒ”J„iV™™‰ÂF²I…»mN·£›LbÒYb—WsÀbŽ™pki™TZĄă¶HŒq`……ĥ_JŸ¯ae«ƒKpÝx]aĕÛPƒÇȟ[ÁåŵÏő—÷Pw}‡TœÙ@Õs«ĿÛq©½œm¤ÙH·yǥĘĉBµĨÕnđ]K„©„œá‹ŸG纍§Õßg‡ǗĦTèƤƺ{¶ÉHÎd¾ŚÊ·OÐjXWrãLyzÉAL¾ę¢bĶėy_qMĔąro¼hĊžw¶øV¤w”²Ĉ]ʚKx|`ź¦ÂÈdr„cȁbe¸›`I¼čTF´¼Óýȃr¹ÍJ©k_șl³´_pН`oÒh޶pa‚^ÓĔ}D»^Xyœ`d˜[Kv…JPhèhCrĂĚÂ^Êƌ wˆZL­Ġ£šÁbrzOIl’MM”ĪŐžËr×ÎeŦŽtw|Œ¢mKjSǘňĂStÎŦEtqFT†¾†E쬬ôxÌO¢Ÿ KгŀºäY†„”PVgŎ¦Ŋm޼VZwVlŒ„z¤…ž£Tl®ctĽÚó{G­A‡ŒÇgeš~Αd¿æaSba¥KKûj®_ć^\\ؾbP®¦x^sxjĶI_Ä X‚⼕Hu¨Qh¡À@Ëô}ޱžGNìĎlT¸ˆ…`V~R°tbÕĊ`¸úÛtπFDu€[ƒMfqGH·¥yA‰ztMFe|R‚_Gk†ChZeÚ°to˜v`x‹b„ŒDnÐ{E}šZ˜è€x—†NEފREn˜[Pv@{~rĆAB§‚EO¿|UZ~ì„Uf¨J²ĂÝÆ€‚sª–B`„s¶œfvö¦ŠÕ~dÔq¨¸º»uù[[§´sb¤¢zþFœ¢Æ…Àhˆ™ÂˆW\\ıŽËI݊o±ĭŠ£þˆÊs}¡R]ŒěƒD‚g´VG¢‚j±®è†ºÃmpU[Á›‘Œëº°r›ÜbNu¸}Žº¼‡`ni”ºÔXĄ¤¼Ôdaµ€Á_À…†ftQQgœR—‘·Ǔ’v”}Ýלĵ]µœ“Wc¤F²›OĩųãW½¯K‚©…]€{†LóµCIµ±Mß¿hŸ•©āq¬o‚½ž~@i~TUxð´Đhw­ÀEîô‚uĶ‚’“‚b[§nWuMÆJl½]vuıµb"]],encodeOffsets:[[[112158,27383],[112105,27474],[112095,27476]]]},properties:{cp:[106.713478,26.578343],name:"贵州",childNum:3}},{id:"530000",geometry:{type:"Polygon",coordinates:["@@[„ùx½}ÑRH‘YīĺûsÍn‘iEoã½Ya²ė{c¬ĝg•ĂsA•ØÅwď‚õzFjw}—«Dx¿}UũlŸê™@•HÅ­F‰¨ÇoJ´Ónũuą¡Ã¢pÒŌ“Ø TF²‚xa²ËX€‚cʋlHîAßËŁkŻƑŷÉ©h™W­æßU‡“Ës¡¦}•teèÆ¶StǀÇ}Fd£j‹ĈZĆÆ‹¤T‚č\\Dƒ}O÷š£Uˆ§~ŃG™‚åŃDĝ¸œTsd¶¶Bªš¤u¢ŌĎo~t¾ÍŶÒtD¦Ú„iôö‰€z›ØX²ghįh½Û±¯€ÿm·zR¦Ɵ`ªŊÃh¢rOԍ´£Ym¼èêf¯ŪĽn„†cÚbŒw\\zlvWžªâˆ ¦g–mĿBş£¢ƹřbĥkǫßeeZkÙIKueT»sVesb‘aĕ  ¶®dNœĄÄpªyސ¼—„³BE˜®l‡ŽGœŭCœǶwêżĔÂe„pÍÀQƞpC„–¼ŲÈ­AÎô¶R„ä’Q^Øu¬°š_Èôc´¹ò¨P΢hlϦ´Ħ“Æ´sâDŽŲPnÊD^¯°’Upv†}®BP̪–jǬx–Söwlfòªv€qĸ|`H€­viļ€ndĜ­Ćhň•‚em·FyށqóžSᝑ³X_ĞçêtryvL¤§z„¦c¦¥jnŞk˜ˆlD¤øz½ĜàžĂŧMÅ|áƆàÊcðÂF܎‚áŢ¥\\\\º™İøÒÐJĴ‡„îD¦zK²ǏÎEh~’CD­hMn^ÌöÄ©ČZÀžaü„fɭyœpį´ěFűk]Ôě¢qlÅĆÙa¶~Äqššê€ljN¬¼H„ÊšNQ´ê¼VظE††^ŃÒyŒƒM{ŒJLoÒœęæŸe±Ķ›y‰’‡gã“¯JYÆĭĘëo¥Š‰o¯hcK«z_pŠrC´ĢÖY”—¼ v¸¢RŽÅW³Â§fǸYi³xR´ďUˊ`êĿU„û€uĆBƒƣö‰N€DH«Ĉg†——Ñ‚aB{ÊNF´¬c·Åv}eÇÃGB»”If•¦HňĕM…~[iwjUÁKE•Ž‹¾dĪçW›šI‹èÀŒoÈXòyŞŮÈXâÎŚŠj|àsRy‹µÖ›–Pr´þŒ ¸^wþTDŔ–Hr¸‹žRÌmf‡żÕâCôox–ĜƌÆĮŒ›Ð–œY˜tâŦÔ@]ÈǮƒ\\μģUsȯLbîƲŚºyh‡rŒŠ@ĒԝƀŸÀ²º\\êp“’JŠ}ĠvŠqt„Ġ@^xÀ£È†¨mËÏğ}n¹_¿¢×Y_æpˆÅ–A^{½•Lu¨GO±Õ½ßM¶w’ÁĢۂP‚›Ƣ¼pcIJxŠ|ap̬HšÐŒŊSfsðBZ¿©“XÏÒK•k†÷Eû¿‰S…rEFsÕūk”óVǥʼniTL‚¡n{‹uxţÏh™ôŝ¬ğōN“‘NJkyPaq™Âğ¤K®‡YŸxÉƋÁ]āęDqçgOg†ILu—\\_gz—]W¼ž~CÔē]bµogpў_oď`´³Țkl`IªºÎȄqÔþž»E³ĎSJ»œ_f·‚adÇqƒÇc¥Á_Źw{™L^ɱćx“U£µ÷xgĉp»ĆqNē`rĘzaĵĚ¡K½ÊBzyäKXqiWPÏɸ½řÍcÊG|µƕƣG˛÷Ÿk°_^ý|_zċBZocmø¯hhcæ\\lˆMFlư£Ĝ„ÆyH“„F¨‰µêÕ]—›HA…àӄ^it `þßäkŠĤÎT~Wlÿ¨„ÔPzUC–NVv [jâôDôď[}ž‰z¿–msSh‹¯{jïğl}šĹ[–őŒ‰gK‹©U·µË@¾ƒm_~q¡f¹…ÅË^»‘f³ø}Q•„¡Ö˳gͱ^ǁ…\\ëÃA_—¿bW›Ï[¶ƛ鏝£F{īZgm@|kHǭƁć¦UĔťƒ×ëǟ…eċ¼ȡȘÏíBə£āĘPªij¶“ʼnÿ‡y©n‰ď£G¹¡I›Š±LÉĺÑdĉ܇W¥˜‰}g˜Á†{aqÃ¥aŠıęÏZ—Á`"],encodeOffsets:[[104636,22969]]},properties:{cp:[102.712251,25.040609],name:"云南",childNum:1}},{id:"540000",geometry:{type:"Polygon",coordinates:["@@hžľxŽŖ‰xƒÒVކºÅâAĪÝȆµę¯Ňa±r_w~uSÕň‘qOj]ɄQ…£Z……UDûoY’»©M[‹L¼qãË{V͕çWViŽ]ë©Ä÷àyƛh›ÚU°ŒŒa”d„cQƒ~Mx¥™caŸÛcSyF—ցk­ŒuRýq¿Ôµ•QĽ³aG{¿FµëªéĜÿª@¬·–K‰·àariĕĀ«V»Ŷ™Ĵū˜gèLǴŇƶaf‹tŒèBŚ£^Šâ†ǐÝ®–šM¦ÁǞÿ¬LhŸŽJ¾óƾƺcxw‹f]Y…´ƒ¦|œQLn°aœdĊ…œ\\¨o’œǀÍŎœ´ĩĀd`tÊQŞŕ|‚¨C^©œĈ¦„¦ÎJĊ{ŽëĎjª²rЉšl`¼Ą[t|¦St辉PŒÜK¸€d˜Ƅı]s¤—î_v¹ÎVòŦj˜£Əsc—¬_Ğ´|٘¦Avަw`ăaÝaa­¢e¤ı²©ªSªšÈMĄwžÉØŔì@T‘¤—Ę™\\õª@”þo´­xA s”ÂtŎKzó²Çȵ¢rž^nĊ­Æ¬×üGž¢‚³ {âĊ]š™G‚~bÀgVjzlhǶf€žOšfdЉªB]pj„•TO–tĊ‚n¤}®¦ƒČ¥d¢¼»ddš”Y¼Žt—¢eȤJ¤}Ǿ¡°§¤AГlc@ĝ”sªćļđAç‡wx•UuzEÖġ~AN¹ÄÅȀݦ¿ģŁéì±H…ãd«g[؉¼ēÀ•cīľġ¬cJ‘µ…ÐʥVȝ¸ßS¹†ý±ğkƁ¼ą^ɛ¤Ûÿ‰b[}¬ōõÃ]ËNm®g@•Bg}ÍF±ǐyL¥íCˆƒIij€Ï÷њį[¹¦[⚍EÛïÁÉdƅß{âNÆāŨߝ¾ě÷yC£‡k­´ÓH@¹†TZ¥¢įƒ·ÌAЧ®—Zc…v½ŸZ­¹|ŕWZqgW“|ieZÅYVӁqdq•bc²R@†c‡¥Rã»Ge†ŸeƃīQ•}J[ғK…¬Ə|o’ėjġĠÑN¡ð¯EBčnwôɍėªƒ²•CλŹġǝʅįĭạ̃ūȹ]ΓͧgšsgȽóϧµǛ†ęgſ¶ҍć`ĘąŌJޚä¤rÅň¥ÖÁUětęuůÞiĊÄÀ\\Æs¦ÓRb|Â^řÌkÄŷ¶½÷‡f±iMݑ›‰@ĥ°G¬ÃM¥n£Øą‚ğ¯ß”§aëbéüÑOčœk£{\\‘eµª×M‘šÉfm«Ƒ{Å׃Gŏǩãy³©WÑăû‚··‘Q—òı}¯ã‰I•éÕÂZ¨īès¶ZÈsŽæĔTŘvŽgÌsN@îá¾ó@‰˜ÙwU±ÉT廣TđŸWxq¹Zo‘b‹s[׌¯cĩv‡Œėŧ³BM|¹k‰ªħ—¥TzNYnݍßpęrñĠĉRS~½ŠěVVе‚õ‡«ŒM££µB•ĉ¥áºae~³AuĐh`Ü³ç@BۘïĿa©|z²Ý¼D”£à貋ŸƒIƒû›I ā€óK¥}rÝ_Á´éMaň¨€~ªSĈ½Ž½KÙóĿeƃÆBŽ·¬ën×W|Uº}LJrƳ˜lŒµ`bÔ`QˆˆÐÓ@s¬ñIŒÍ@ûws¡åQÑßÁ`ŋĴ{Ī“T•ÚÅTSij‚‹Yo|Ç[ǾµMW¢ĭiÕØ¿@˜šMh…pÕ]j†éò¿OƇĆƇp€êĉâlØw–ěsˆǩ‚ĵ¸c…bU¹ř¨WavquSMzeo_^gsÏ·¥Ó@~¯¿RiīB™Š\\”qTGªÇĜçPoŠÿfñòą¦óQīÈáP•œābß{ƒZŗĸIæÅ„hnszÁCËìñšÏ·ąĚÝUm®ó­L·ăU›Èíoù´Êj°ŁŤ_uµ^‘°Œìǖ@tĶĒ¡Æ‡M³Ģ«˜İĨÅ®ğ†RŽāð“ggheÆ¢z‚Ê©Ô\\°ÝĎz~ź¤Pn–MĪÖB£Ÿk™n鄧żćŠ˜ĆK„ǰ¼L¶è‰âz¨u¦¥LDĘz¬ýÎmĘd¾ß”Fz“hg²™Fy¦ĝ¤ċņbΛ@y‚Ąæm°NĮZRÖíŽJ²öLĸÒ¨Y®ƌÐV‰à˜tt_ڀÂyĠzž]Ţh€zĎ{†ĢX”ˆc|šÐqŽšfO¢¤ög‚ÌHNŽ„PKŖœŽ˜Uú´xx[xˆvĐCûŠìÖT¬¸^}Ìsòd´_އKgžLĴ…ÀBon|H@–Êx˜—¦BpŰˆŌ¿fµƌA¾zLjRxжF”œkĄźRzŀˆ~¶[”´Hnª–VƞuĒ­È¨ƎcƽÌm¸ÁÈM¦x͊ëÀxdžB’šú^´W†£–d„kɾĬpœw‚˂ØɦļĬIŚœÊ•n›Ŕa¸™~J°î”lɌxĤÊÈðhÌ®‚g˜T´øŽàCˆŽÀ^ªerrƘdž¢İP|Ė ŸWœªĦ^¶´ÂL„aT±üWƜ˜ǀRšŶUńšĖ[QhlLüA†‹Ü\\†qR›Ą©"],encodeOffsets:[[90849,37210]]},properties:{cp:[91.132212,29.660361],name:"西藏",childNum:1}},{id:"610000",geometry:{type:"Polygon",coordinates:["@@¸œÂW¢xR­—ƒFq§uF—Œ@NŸ¢XLƒŠRMº[ğȣſï|¥J™kc`sʼnǷ’£Y³‹WN«ùM‘ëï³ÛIg÷±mTșڍÒķø©—þ¥ƒy‚ÓŸğęmWµÎumZyOŅƟĥÓ~sÑL¤µaŅY¦ocyZ{‰y c]{ŒTa©ƒ`U_Ěē£ωÊƍKù’K¶ȱÝƷ§{û»ÅÁȹÍéuij|¹cÑd‘ŠìUYƒŽO‘uF–ÕÈYvÁCqӃT•Ǣí§·S¹NgŠV¬ë÷Át‡°Dد’C´ʼnƒópģ}„ąiE˅FŸŸéGU¥×K…§­¶³B‹Č}C¿åċ`wġB·¤őcƭ²ő[Å^axwQO…ñJÙïŚ•ĤNĔŸwƇˆÄŠńwĪ­Šo[„_KÓª³“ÙnK‰Çƒěœÿ]ď€ă_d©·©Ýŏ°Ù®g]±„Ÿ‡ßš×¥¬÷m\\›iaǑkěX{¢|ZKlçhLt€Ňîŵ€œè[€É@ƉĄEœ‡tƇÏ˜³­ħZ«mJ…›×¾‘MtÝĦ£IwÄå\\Õ{‡˜ƒOwĬ©LÙ³ÙT“ª¿^™¦r̛ĢŭO¥lãyC§HÍ£ßEñŸX¡—­°ÙCgpťz‘ˆb`wI„vA|¥”‡—hoĕ@E±“iYd¥OÿµÇvPŒW|mCƒĴŜǂ҈W¶¸AĜh^Wx{@„¬‚­F¸¡„ķn£P|ŸªĴ@^ĠĈæb–Ôc¶l˜Yi…–^Mi˜cϰÂ[ä€vï¶gv@À“Ĭ·lJ¸sn|¼u~a]’ÆÈtŌºJp’ƒþ£KKf~ЦUbyäIšĺãn‡Ô¿^­žŵMT–hĠܤko¼Ŏìąǜh`[tŒRd²IJ_œXPrɲ‰l‘‚XžiL§àƒ–¹ŽH˜°Ȧqº®QC—bA†„ŌJ¸ĕÚ³ĺ§ `d¨YjžiZvRĺ±öVKkjGȊĐePОZmļKÀ€‚[ŠŽ`ösìh†ïÎoĬdtKÞ{¬èÒÒBŒÔpIJÇĬJŊ¦±J«ˆ[©ārH€µàåVKe§|P²ÇÓ·vUz‰gnN¾yI@oŸHĆۄķhx“e‘n¡QQ’±”ƝJ‹ǖRbzy€¸ËАl›¼EºpĤ¼Œx¼½~Ğ’”à@†ÚüdK^ˆmÌSjˆp²—ȮµšûG™Ħ}Ħšðǚ¶òƄ€jɂz°{ºØkÈęâ¦jª‚Bg‚\\œċ°s¬Ž’]jžú ‚E”Ȍdž¬s„t‡”RˆÆdĠݎwܔ¸ôW¾ƮłÒ_{’Ìšû¼„jº¹¢GǪÒ¯ĘƒZ`ºŊƒecņąš~BÂgzpâēòYƲȐπ"],encodeOffsets:[[113634,40474]]},properties:{cp:[108.948024,34.263161],name:"陕西",childNum:1}},{id:"620000",geometry:{type:"MultiPolygon",coordinates:[["@@Vu_^","@@ų‹EĠtt~nkh`Q‰¦ÅÄÜdw˜Ab×ĠąJˆ¤DüègĺqBqœj°lI¡Ĩ¶šĖIHdš‰ŠjΑBаaZˆ¢KJŽ’O[|A£žDx}Nì•HUnrk„ kp€¼Y kMJn[aG‚áÚÏ[½rc†}aQxOgsPMnUs‡nc‹Z…ž–sKúvA›t„Þġ’£®ĀYKdnFwš¢JE°”Latf`¼h¬we|€Æ‡šbj}GA€·~WŽ”—`†¢MC¤tL©IJ°qdf”O‚“bÞĬ¹ttu`^ZúE`Œ[@„Æsîz®¡’C„ƳƜG²“R‘¢R’m”fŽwĸg܃‚ą G@pzJM½mŠhVy¸uÈÔO±¨{LfæU¶ßGĂq\\ª¬‡²I‚¥IʼnÈīoı‹ÓÑAçÑ|«LÝcspīðÍg…të_õ‰\\ĉñLYnĝg’ŸRǡÁiHLlõUĹ²uQjYi§Z_c¨Ÿ´ĹĖÙ·ŋI…ƒaBD˜­R¹ȥr—¯G•ºß„K¨jWk’ɱŠOq›Wij\\a­‹Q\\sg_ĆǛōëp»£lğۀgS•ŶN®À]ˆÓäm™ĹãJaz¥V}‰Le¤L„ýo‘¹IsŋÅÇ^‘Žbz…³tmEÁ´aйcčecÇN•ĊãÁ\\蝗dNj•]j†—ZµkÓda•ćå]ğij@ ©O{¤ĸm¢ƒE·®ƒ«|@Xwg]A챝‡XǁÑdzªc›wQÚŝñsÕ³ÛV_ýƒ˜¥\\ů¥©¾÷w—Ž©WÕÊĩhÿÖÁRo¸V¬âDb¨šhûx–Ê×nj~Zâƒg|šXÁnßYoº§ZÅŘvŒ[„ĭÖʃuďxcVbnUSf…B¯³_Tzº—ΕO©çMÑ~Mˆ³]µ^püµ”ŠÄY~y@X~¤Z³€[Èōl@®Å¼£QKƒ·Di‹¡By‘ÿ‰Q_´D¥hŗyƒ^ŸĭÁZ]cIzý‰ah¹MĪğP‘s{ò‡‹‘²Vw¹t³Ŝˁ[ŽÑ}X\\gsFŸ£sPAgěp×ëfYHāďÖqēŭOÏë“dLü•\\iŒ”t^c®šRʺ¶—¢H°mˆ‘rYŸ£BŸ¹čIoľu¶uI]vģSQ{ƒUŻ”Å}QÂ|̋°ƅ¤ĩŪU ęĄžÌZҞ\\v˜²PĔ»ƢNHƒĂyAmƂwVmž`”]ȏb•”H`‰Ì¢²ILvĜ—H®¤Dlt_„¢JJÄämèÔDëþgºƫ™”aʎÌrêYi~ ÎݤNpÀA¾Ĕ¼b…ð÷’Žˆ‡®‚”üs”zMzÖĖQdȨý†v§Tè|ªH’þa¸|šÐ ƒwKĢx¦ivr^ÿ ¸l öæfƟĴ·PJv}n\\h¹¶v†·À|\\ƁĚN´Ĝ€çèÁz]ġ¤²¨QÒŨTIl‡ªťØ}¼˗ƦvÄùØE‹’«Fï˛Iq”ōŒTvāÜŏ‚íÛߜÛV—j³âwGăÂíNOŠˆŠPìyV³ʼnĖýZso§HіiYw[߆\\X¦¥c]ÔƩÜ·«j‡ÐqvÁ¦m^ċ±R™¦΋ƈťĚgÀ»IïĨʗƮްƝ˜ĻþÍAƉſ±tÍEÕÞāNU͗¡\\ſčåÒʻĘm ƭÌŹöʥ’ëQ¤µ­ÇcƕªoIýˆ‰Iɐ_mkl³ă‰Ɠ¦j—¡Yz•Ňi–}Msßõ–īʋ —}ƒÁVmŸ_[n}eı­Uĥ¼‘ª•I{ΧDӜƻėoj‘qYhĹT©oūĶ£]ďxĩ‹ǑMĝ‰q`B´ƃ˺Ч—ç~™²ņj@”¥@đ´ί}ĥtPńǾV¬ufӃÉC‹tÓ̻‰…¹£G³€]ƖƾŎĪŪĘ̖¨ʈĢƂlɘ۪üºňUðǜȢƢż̌ȦǼ‚ĤŊɲĖ­KqĘʼn¼ĔDzņɾªǀÞĈĂD†½ĄĎÌŗĞrôñnŽœN¼â¾ʄľԆ|DŽŽ֦ज़ȗlj̘̭ɺƅêgV̍ʆĠ·ÌĊv|ýĖÕWĊǎÞ´õ¼cÒÒBĢ͢UĜð͒s¨ňƃLĉÕÝ@ɛƯ÷¿Ľ­ĹeȏijëCȚDŲyê×Ŗyò¯ļcÂßY…tÁƤyAã˾J@ǝrý‹‰@¤…rz¸oP¹ɐÚyᐇHŸĀ[Jw…cVeȴϜ»ÈŽĖ}ƒŰŐèȭǢόĀƪÈŶë;Ñ̆ȤМľĮEŔ—ĹŊũ~ËUă{ŸĻƹɁύȩþĽvĽƓÉ@ē„ĽɲßǐƫʾǗĒpäWÐxnsÀ^ƆwW©¦cÅ¡Ji§vúF¶Ž¨c~c¼īŒeXǚ‹\\đ¾JŽwÀďksãA‹fÕ¦L}wa‚o”Z’‹D½†Ml«]eÒÅaɲáo½FõÛ]ĻÒ¡wYR£¢rvÓ®y®LF‹LzĈ„ôe]gx}•|KK}xklL]c¦£fRtív¦†PŨ£","@@Mš T‡¥"]],encodeOffsets:[[[108619,36299],[108594,36341],[108600,36306]]]},properties:{cp:[103.823557,36.058039],name:"甘肃",childNum:3}},{id:"630000",geometry:{type:"MultiPolygon",coordinates:[["@@InJo","@@CƒÆ½OŃĦsΰ~dz¦@@“Ņiš±è}ؘƄ˹A³r_ĞŠǒNΌĐw¤^ŬĵªpĺSZg’rpiƼĘԛ¨C|͖J’©Ħ»®VIJ~f\\m `Un„˜~ʌŸ•ĬàöNt•~ňjy–¢Zi˜Ɣ¥ĄŠk´nl`JʇŠJþ©pdƖ®È£¶ìRʦ‘źõƮËnŸʼėæÑƀĎ[‚˜¢VÎĂMÖÝÎF²sƊƀÎBļýƞ—¯ʘƭðħ¼Jh¿ŦęΌƇš¥²Q]Č¥nuÂÏriˆ¸¬ƪÛ^Ó¦d€¥[Wà…x\\ZŽjҕ¨GtpþYŊĕ´€zUO뇉P‰îMĄÁxH´á˜iÜUà›îÜՁĂÛSuŎ‹r“œJð̬EŒ‘FÁú×uÃÎkr“Ē{V}İ«O_ÌËĬ©ŽÓŧSRѱ§Ģ£^ÂyèçěM³Ƃę{[¸¿u…ºµ[gt£¸OƤĿéYŸõ·kŸq]juw¥Dĩƍ€õÇPéĽG‘ž©ã‡¤G…uȧþRcÕĕNy“yût“ˆ­‡ø‘†ï»a½ē¿BMoᣟÍj}éZËqbʍš“Ƭh¹ìÿÓAçãnIáI`ƒks£CG­ě˜Uy×Cy•…’Ÿ@¶ʡÊBnāzG„ơMē¼±O÷õJËĚăVŸĪũƆ£Œ¯{ËL½Ìzż“„VR|ĠTbuvJvµhĻĖH”Aëáa…­OÇðñęNw‡…œľ·L›mI±íĠĩPÉ×®ÿs—’cB³±JKßĊ«`…ađ»·QAmO’‘Vţéÿ¤¹SQt]]Çx€±¯A@ĉij¢Ó祖•ƒl¶ÅÛr—ŕspãRk~¦ª]Į­´“FR„åd­ČsCqđéFn¿Åƃm’Éx{W©ºƝºįkÕƂƑ¸wWūЩÈFž£\\tÈ¥ÄRÈýÌJ ƒlGr^×äùyÞ³fj”c†€¨£ÂZ|ǓMĝšÏ@ëÜőR‹›ĝ‰Œ÷¡{aïȷPu°ËXÙ{©TmĠ}Y³’­ÞIňµç½©C¡į÷¯B»|St»›]vƒųƒs»”}MÓ ÿʪƟǭA¡fs˜»PY¼c¡»¦c„ċ­¥£~msĉP•–Siƒ^o©A‰Šec‚™PeǵŽkg‚yUi¿h}aH™šĉ^|ᴟ¡HØûÅ«ĉ®]m€¡qċ¶±ÈyôōLÁst“BŸ®wn±ă¥HSò뚣˜S’ë@לÊăxÇN©™©T±ª£IJ¡fb®ÞbŽb_Ą¥xu¥B—ž{łĝ³«`d˜Ɛt—¤ťiñžÍUuºí`£˜^tƃIJc—·ÛLO‹½Šsç¥Ts{ă\\_»™kϊ±q©čiìĉ|ÍIƒ¥ć¥›€]ª§D{ŝŖÉR_sÿc³Īō›ƿΑ›§p›[ĉ†›c¯bKm›R¥{³„Z†e^ŽŒwx¹dƽŽôIg §Mĕ ƹĴ¿—ǣÜ̓]‹Ý–]snåA{‹eŒƭ`ǻŊĿ\\ijŬű”YÂÿ¬jĖqŽßbЏ•L«¸©@ěĀ©ê¶ìÀEH|´bRľž–Ó¶rÀQþ‹vl®Õ‚E˜TzÜdb ˜hw¤{LR„ƒd“c‹b¯‹ÙVgœ‚ƜßzÃô쮍^jUèXΖ|UäÌ»rKŽ\\ŒªN‘¼pZCü†VY††¤ɃRi^rPҒTÖ}|br°qňb̰ªiƶGQ¾²„x¦PœmlŜ‘[Ĥ¡ΞsĦŸÔÏâ\\ªÚŒU\\f…¢N²§x|¤§„xĔsZPòʛ²SÐqF`ª„VƒÞŜĶƨVZŒÌL`ˆ¢dŐIqr\\oäõ–F礻Ŷ×h¹]Clـ\\¦ďÌį¬řtTӺƙgQÇÓHţĒ”´ÃbEÄlbʔC”|CˆŮˆk„Ʈ[ʼ¬ňœ´KŮÈΰÌζƶlð”ļA†TUvdTŠG†º̼ŠÔ€ŒsÊDԄveMg"]],encodeOffsets:[[[105308,37219],[95370,40081]]]},properties:{cp:[101.778916,36.623178],name:"青海",childNum:2}},{id:"640000",geometry:{type:"Polygon",coordinates:["@@KëÀęĞ«OęȿȕŸı]ʼn¡åįÕÔ«Ǵõƪ™ĚQÐZhv K°›öqÀѐS[ÃÖHƖčË‡nL]ûc…Ùß@‚“ĝ‘¾}w»»‹oģF¹œ»kÌÏ·{zPƒ§B­¢íyÅt@ƒ@áš]Yv_ssģ¼i߁”ĻL¾ġsKD£¡N_…“˜X¸}B~Haiˆ™Åf{«x»ge_bs“KF¯¡Ix™mELcÿZ¤­Ģ‘ƒÝœsuBLù•t†ŒYdˆmVtNmtOPhRw~bd…¾qÐ\\âÙH\\bImlNZŸ»loƒŸqlVm–Gā§~QCw¤™{A\\‘PKŸNY‡¯bF‡kC¥’sk‹Šs_Ã\\ă«¢ħkJi¯r›rAhĹûç£CU‡ĕĊ_ԗBixÅُĄnªÑaM~ħpOu¥sîeQ¥¤^dkKwlL~{L~–hw^‚ófćƒKyEŒ­K­zuÔ¡qQ¤xZÑ¢^ļöܾEpž±âbÊÑÆ^fk¬…NC¾‘Œ“YpxbK~¥Že֎ŒäBlt¿Đx½I[ĒǙŒWž‹f»Ĭ}d§dµùEuj¨‚IÆ¢¥dXªƅx¿]mtÏwßR͌X¢͎vÆzƂZò®ǢÌʆCrâºMÞzžÆMҔÊÓŊZľ–r°Î®Ȉmª²ĈUªĚøºˆĮ¦ÌĘk„^FłĬhĚiĀ˾iİbjË"],encodeOffsets:[[109366,40242]]},properties:{cp:[106.278179,38.46637],name:"宁夏",childNum:1}},{id:"650000",geometry:{type:"Polygon",coordinates:["@@QØĔ²X¨”~ǘBºjʐߨvK”ƔX¨vĊOžÃƒ·¢i@~c—‡ĝe_«”Eš“}QxgɪëÏÃ@sÅyXoŖ{ô«ŸuX…ê•Îf`œC‚¹ÂÿÐGĮÕĞXŪōŸMźÈƺQèĽôe|¿ƸJR¤ĘEjcUóº¯Ĩ_ŘÁMª÷Ð¥Oéȇ¿ÖğǤǷÂF҇zÉx[]­Ĥĝ‰œ¦EP}ûƥé¿İƷTėƫœŕƅ™ƱB»Đ±’ēO…¦E–•}‘`cȺrĦáŖuҞª«IJ‡πdƺÏØZƴwʄ¤ĖGЙǂZ̓èH¶}ÚZצʥĪï|ÇĦMŔ»İĝLj‹ì¥Βœba­¯¥ǕǚkĆŵĦɑĺƯxūД̵nơʃĽá½M»›òmqóŘĝč˾ăC…ćāƿÝɽ©DZŅ»ēėŊLrÁ®ɱĕģʼnǻ̋ȥơŻǛȡVï¹Ň۩ûkɗġƁ§ʇė̕ĩũƽō^ƕŠUv£ƁQï“Ƶkŏ½ΉÃŭdzLқʻ«ƭ\\lƒ‡ŭD‡“{ʓDkaFÃÄa“³ŤđÔGRÈƚhSӹŚsİ«ĐË[¥ÚDkº^Øg¼ŵ¸£EÍö•€ůʼnT¡c_‡ËKY‹ƧUśĵ„݃U_©rETÏʜ±OñtYw獃{£¨uM³x½şL©Ùá[ÓÐĥ Νtģ¢\\‚ś’nkO›w¥±ƒT»ƷFɯàĩÞáB¹Æ…ÑUw„੍žĽw]•kE½Èå~‡Æ÷QyŠěCFmĭZī—ŵVÁ™ƿQƛ—ûXS²‰b½KϽĉS›©ŷXĕŸ{ŽĕK·¥Ɨcqq©f¿]‡ßDõU³h—­gËÇïģÉɋw“k¯í}I·šœbmœÉ–ř›īJɥĻˁ×xo›ɹī‡l•c…¤³Xù]‘™DžA¿w͉ì¥wÇN·ÂËnƾƍdǧđ®Ɲv•Um©³G\\“}µĿ‡QyŹl㓛µEw‰LJQ½yƋBe¶ŋÀů‡ož¥A—˜Éw@•{Gpm¿Aij†ŽKLhˆ³`ñcËtW‚±»ÕS‰ëüÿďD‡u\\wwwù³—V›LŕƒOMËGh£õP¡™er™Ïd{“‡ġWÁ…č|yšg^ğyÁzÙs`—s|ÉåªÇ}m¢Ń¨`x¥’ù^•}ƒÌ¥H«‰Yªƅ”Aйn~Ꝛf¤áÀz„gŠÇDIԝ´AňĀ҄¶ûEYospõD[{ù°]u›Jq•U•|Soċxţ[õÔĥkŋÞŭZ˺óYËüċrw €ÞkrťË¿XGÉbřaDü·Ē÷Aê[Ää€I®BÕИÞ_¢āĠpŠÛÄȉĖġDKwbm‡ÄNô‡ŠfœƫVÉvi†dz—H‘‹QµâFšù­Âœ³¦{YGžƒd¢ĚÜO „€{Ö¦ÞÍÀPŒ^b–ƾŠl[‚vt×ĈÍE˨¡Đ~´î¸ùÎh€uè`¸ŸHÕŔVºwĠââWò‡@{œÙNÝ´ə²ȕn{¿¥{l—÷eé^e’ďˆXj©î\\ªÑò˜Üìc\\üqˆÕ[Č¡xoÂċªbØ­Œø|€¶ȴZdÆÂšońéŒGš\\”¼C°ÌƁn´nxšÊOĨ’ہƴĸ¢¸òTxÊǪMīИÖŲÃɎOvˆʦƢ~FއRěò—¿ġ~åŊœú‰Nšžš¸qŽ’Ę[Ĕ¶ÂćnÒPĒÜvúĀÊbÖ{Äî¸~Ŕünp¤ÂH¾œĄYÒ©ÊfºmԈĘcDoĬMŬ’˜S¤„s²‚”ʘچžȂVŦ –ŽèW°ªB|IJXŔþÈJĦÆæFĚêŠYĂªĂ]øªŖNÞüA€’fɨJ€˜¯ÎrDDšĤ€`€mz\\„§~D¬{vJÂ˜«lµĂb–¤p€ŌŰNĄ¨ĊXW|ų ¿¾ɄĦƐMT”‡òP˜÷fØĶK¢ȝ˔Sô¹òEð­”`Ɩ½ǒÂň×äı–§ĤƝ§C~¡‚hlå‚ǺŦŞkâ’~}ŽFøàIJaĞ‚fƠ¥Ž„Ŕdž˜®U¸ˆźXœv¢aƆúŪtŠųƠjd•ƺŠƺÅìnrh\\ĺ¯äɝĦ]èpĄ¦´LƞĬŠ´ƤǬ˼Ēɸ¤rºǼ²¨zÌPðŀbþ¹ļD¢¹œ\\ĜÑŚŸ¶ZƄ³âjĦoâŠȴLʉȮŒĐ­ĚăŽÀêZǚŐ¤qȂ\\L¢ŌİfÆs|zºeªÙæ§΢{Ā´ƐÚ¬¨Ĵà²łhʺKÞºÖTŠiƢ¾ªì°`öøu®Ê¾ãÖ"],encodeOffsets:[[88824,50096]]},properties:{cp:[87.617733,43.792818],name:"新疆",childNum:1}},{id:"110000",geometry:{type:"Polygon",coordinates:["@@R„ºaY՜™QaúÍÔiþĩȨWĢ‹ü|Ėu[qb[swP@ÅğP¿{\\‡¯Y²·‘Ѩj¯ŠX\\¯œMSvU¯YIŕY{[fk­VÁ›ûtŷmiÍt_H»Ĩ±d`й­{bw…Yr“³S]§§o¹€qGtm_Sŧ€“oa›‹FLg‘QN_•dV€@Zom_ć\\ߚW´—€ÕiœRcfi…Ÿ’o§ËgToÛJíĔóu…|wP¤™XnO¢ÉŠŦ¯pNÄā¤zâŖÈRpŢZŠœÚ{GŠrFt¦Òx§ø¹RóäV¤XdˆżâºWbwڍUd®bêņ¾‘jnŎGŃŶŠnzÚScîĚZŠen¬"],encodeOffsets:[[119421,42013]]},properties:{cp:[116.405285,39.904989],name:"北京",childNum:1}},{id:"120000",geometry:{type:"Polygon",coordinates:["@@ŬgX§Ü«E…¶Ḟ“¬O_™ïlÁg“z±AXe™µÄĵ{¶]gitgšIj·›¥ì_iU€‰¨ÐƎk}ĕ{gB—qGf{¿a†U^fI“ư‹³õ{YƒıëNĿžk©ïËZukāA‘īlĕĥs¡bġ«@dekąI[nlPqCnp{ˆō³°`{PNdƗqSÄĻNNâyj]äžÒD ĬH°Æ]~¡HO¾ŒX}ÐxŒgp“gWˆrDGˆŒpù‚Š^L‚ˆrzWxˆZ^¨´T\\|~@I‰zƒ–bĤ‹œjeĊªz£®Ĕvě€L†mV¾Ô_ȔNW~zbĬvG†²ZmDM~”~"],encodeOffsets:[[120237,41215]]},properties:{cp:[117.190182,39.125596],name:"天津",childNum:1}},{id:"310000",geometry:{type:"MultiPolygon",coordinates:[["@@ɧư¬EpƸÁx]‡","@@©„²ƒ","@@”MA‹“˜","@@QpªK†WT…‰‰§¨","@@bŝՕÕEȣÚƥêImɇǦèÜĠŒÚÄÓŴ·ʌÇ","@@S‚ô¤r]ì†ƬįǜûȬɋŠŭ™×^‰sYŒɍDŋ‘ŽąñCG²«ªč@h–_p¯A{‡oloY€¬j@IJ`•gQڙpptǀ^MIJvtbe´Rh@–oj¨ž","@@ÆLH{a}Eo¦"]],encodeOffsets:[[[124702,32062],[124547,32200],[124808,31991],[124726,32110],[124903,32376],[124065,32166],[124870,31965]]]},properties:{cp:[121.472644,31.231706],name:"上海",childNum:7}},{id:"500000",geometry:{type:"Polygon",coordinates:["@@TÂÛ`Ùƅően½S‹êqDu[R‹å͹ˆ÷eXÍy‘¸_ĺę}÷`M¯ċfCVµqʼn÷Z•gg‘Œ^d½pDO‡ÎCnœ^uf²ènh¼WtƏxRGg¦…pV„†FI±ŽG^ŒIc´ec‡’G•ĹÞ½sëÆNä̤“Kӈe¯|‚R¸§L‘ÜkPoïƭNï¶}Gy“wdiù©nkĈzjŸ•@™Óc£»Wă¹Óf§c[µŠo·Ó|MvÛaqœ½«‡èœ’\\ÂoVnŽÓØÍ™²«‹bq¿eƒhCž„€‹Ĝ^Qž~ Évý‡ş¤²Į‰pEĶyhsŊwH‹½‡š¿gņ›¡ýE¡ya£³t\\¨\\vú¹¼©·Ñr_oÒý¥‚‘et³]—Et©uÖ¥±ă©KVeëƒ]}wVPÀFA¨ąB}qTjgRemfFm‰QF݅My˜ù•nцAmыCaƒwŒu_p—¯sfۍ_g†“I_pNysBЦzG¸rHe‚„N\\CvEsÐñÚkcD‘ÖĉsaQ¯€}_U‡†zÁēˆ}Ÿ^R •Äd^ÍĸZ¾·¶ƒ`wećJEž¹vÛ·Hgƒ‚éFXjÉê`|yŒpxkAwœWĐpb¥eOsmzwqChóUQl¥F^laf‹anòsr›EvfQdÁUVf—ÎvÜ^efˆtET¬ôA\\œ¢sJŽnQTjP؈xøK|nBz‰„œĞ»LY‚…FDxӄvr“[ehľš•vN”¢o¾NiÂxGp⬐z›bfZo~hGi’]öF|‰|Nb‡tOMn eA±ŠtPT‡LjpYQ|†SH††YĀxinzDJ€Ìg¢và¥Pg‰_–ÇzII‹€II•„£®S¬„Øsμ–¥¨^LšnGIJļIJƤjÎƀƾ¹¸ØÎezĆT¸}êЖqHŸðqĖ䒊¥^CƒIj–²p…\\_ æüY|[YxƊæuž°xb®…Űb@~¢NQt°¶‚S栓Ê~rljĔëĚ¢~šuf`‘‚†fa‚ĔJåĊ†nÔ]„jƎćÊ@Š£¾a®£Ű{ŶĕF‹ègLk{Y|¡ĜWƔtƬJÑxq‹±ĢN´‰òK‰™–LÈüD|s`ŋ’ć]ƒÃ‰`đŒMùƱ¿~Y°ħ`ƏíW‰½eI‹½{aŸ‘OIrÏ¡ĕŇa†p†µÜƃġ‰²"],encodeOffsets:[[111728,31311]]},properties:{cp:[106.504962,29.533155],name:"重庆",childNum:1}},{id:"810000",geometry:{type:"MultiPolygon",coordinates:[["@@AlFi","@@mŽp","@@EpHo","@@rMUw‡AS¬€]","@@ea¢pl¸Eõ¹‡hj[ƒ]ÔCΖ@lj˜¡uBXŸ…•´‹AI¹…[‹yDUˆ]W`çwZkmc–…M›žp€Åv›}I‹oJlcaƒfёKްä¬XJmРđhI®æÔtSHn€Eˆ„ÒrÄc"]],encodeOffsets:[[[117111,23002],[117072,22876],[117045,22887],[116882,22747],[116975,23082]]]},properties:{cp:[114.173355,22.320048],name:"香港",childNum:5}},{id:"820000",geometry:{type:"Polygon",coordinates:["@@œá—w{ÎrŽ"],encodeOffsets:[[116285,22746]]},properties:{cp:[113.54909,22.198951],name:"澳门",childNum:1}}],UTF8Encoding:!0}},248:function(e,t){e.exports={color:["#4ea397","#22c3aa","#7bd9a5"],backgroundColor:"rgba(0,0,0,0)",textStyle:{},title:{textStyle:{color:"#666666"},subtextStyle:{color:"#999999"}},line:{itemStyle:{normal:{borderWidth:"2"}},lineStyle:{normal:{width:"3"}},symbolSize:"10",symbol:"emptyCircle",smooth:!0},radar:{itemStyle:{normal:{borderWidth:"2"}},lineStyle:{normal:{width:"3"}},symbolSize:"10",symbol:"emptyCircle",smooth:!0},bar:{itemStyle:{normal:{barBorderWidth:"0",barBorderColor:"#444444"},emphasis:{barBorderWidth:"0",barBorderColor:"#444444"}}},pie:{itemStyle:{normal:{borderWidth:"0",borderColor:"#444444"},emphasis:{borderWidth:"0",borderColor:"#444444"}}},scatter:{itemStyle:{normal:{borderWidth:"0",borderColor:"#444444"},emphasis:{borderWidth:"0",borderColor:"#444444"}}},boxplot:{itemStyle:{normal:{borderWidth:"0",borderColor:"#444444"},emphasis:{borderWidth:"0",borderColor:"#444444"}}},parallel:{itemStyle:{normal:{borderWidth:"0",borderColor:"#444444"},emphasis:{borderWidth:"0",borderColor:"#444444"}}},sankey:{itemStyle:{normal:{borderWidth:"0",borderColor:"#444444"},emphasis:{borderWidth:"0",borderColor:"#444444"}}},funnel:{itemStyle:{normal:{borderWidth:"0",borderColor:"#444444"},emphasis:{borderWidth:"0",borderColor:"#444444"}}},gauge:{itemStyle:{normal:{borderWidth:"0",borderColor:"#444444"},emphasis:{borderWidth:"0",borderColor:"#444444"}}},candlestick:{itemStyle:{normal:{color:"#d0648a",color0:"#ffffff",borderColor:"#d0648a",borderColor0:"#22c3aa",borderWidth:1}}},graph:{itemStyle:{normal:{borderWidth:"0",borderColor:"#444444"}},lineStyle:{normal:{width:1,color:"#aaa"}},symbolSize:"10",symbol:"emptyCircle",smooth:!0,color:["#4ea397","#22c3aa","#7bd9a5"],label:{normal:{textStyle:{color:"#ffffff"}}}},map:{itemStyle:{normal:{areaColor:"#eeeeee",borderColor:"#999999",borderWidth:"0.5"},emphasis:{areaColor:"rgba(34,195,170,0.25)",borderColor:"#22c3aa",borderWidth:"0.5"}},label:{normal:{textStyle:{color:"#28544e"}},emphasis:{textStyle:{color:"rgb(52,158,142)"}}}},geo:{itemStyle:{normal:{areaColor:"#eeeeee",borderColor:"#999999",borderWidth:"0.5"},emphasis:{areaColor:"rgba(34,195,170,0.25)",borderColor:"#22c3aa",borderWidth:"0.5"}},label:{normal:{textStyle:{color:"#28544e"}},emphasis:{textStyle:{color:"rgb(52,158,142)"}}}},categoryAxis:{axisLine:{show:!0,lineStyle:{color:"#cccccc"}},axisTick:{show:!1,lineStyle:{color:"#333333"}},axisLabel:{show:!0,textStyle:{color:"#999999"}},splitLine:{show:!0,lineStyle:{color:["#eeeeee"]}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.3)","rgba(200,200,200,0.3)"]}}},valueAxis:{axisLine:{show:!0,lineStyle:{color:"#cccccc"}},axisTick:{show:!1,lineStyle:{color:"#333333"}},axisLabel:{show:!0,textStyle:{color:"#999999"}},splitLine:{show:!0,lineStyle:{color:["#eeeeee"]}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.3)","rgba(200,200,200,0.3)"]}}},logAxis:{axisLine:{show:!0,lineStyle:{color:"#cccccc"}},axisTick:{show:!1,lineStyle:{color:"#333333"}},axisLabel:{show:!0,textStyle:{color:"#999999"}},splitLine:{show:!0,lineStyle:{color:["#eeeeee"]}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.3)","rgba(200,200,200,0.3)"]}}},timeAxis:{axisLine:{show:!0,lineStyle:{color:"#cccccc"}},axisTick:{show:!1,lineStyle:{color:"#333333"}},axisLabel:{show:!0,textStyle:{color:"#999999"}},splitLine:{show:!0,lineStyle:{color:["#eeeeee"]}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.3)","rgba(200,200,200,0.3)"]}}},toolbox:{iconStyle:{normal:{borderColor:"#aaaaaa"},emphasis:{borderColor:"#666"}}},legend:{textStyle:{color:"#999999"}},tooltip:{axisPointer:{lineStyle:{color:"#ccc",width:1},crossStyle:{color:"#ccc",width:1}}},timeline:{lineStyle:{color:"#349e8e",width:1},itemStyle:{normal:{color:"#349e8e",borderWidth:"1"},emphasis:{color:"#57e8d2"}},controlStyle:{normal:{color:"#349e8e",borderColor:"#349e8e",borderWidth:"0"}},checkpointStyle:{color:"#22c3aa",borderColor:"rgba(34,195,170,0.25)"},label:{normal:{textStyle:{color:"#349e8e"}}}},visualMap:{color:["#d0648a","#22c3aa","rgba(123,217,165,0.2)"]},dataZoom:{backgroundColor:"#fff",dataBackgroundColor:"#dedede",fillerColor:"rgba(34,195,170,0.25)",handleColor:"#dddddd",handleSize:"100%",textStyle:{color:"#999"}},markPoint:{label:{normal:{textStyle:{color:"#ffffff"}},emphasis:{textStyle:{color:"#ffffff"}}}}}},249:function(e,t,a){"use strict";function n(){return{legend:{},tooltip:{},dataset:{source:[["Product","2015","2016","2017"],["Matcha Latte"].concat(i()(o())),["Milk Tea"].concat(i()(o())),["Cheese Cocoa"].concat(i()(o())),["Walnut Brownie"].concat(i()(o()))]},xAxis:{type:"category"},yAxis:{},series:[{type:"bar"},{type:"bar"},{type:"bar"}]}}function o(){return[0,0,0].map(function(e){return Math.round(300+700*Math.random())/10})}t.a=n;var r=a(132),i=a.n(r)},250:function(e,t,a){"use strict";a.d(t,"a",function(){return r}),a.d(t,"b",function(){return i});for(var n=[],o=0;o<16;o++)n.push([5*Math.random(),4*Math.random(),12*Math.random(),Math.round(5*Math.random())]);var r={legend:{top:20,data:["scatter"]},tooltip:{formatter:"{c}"},grid:{top:"26%",bottom:"26%"},xAxis:{type:"value",splitLine:{show:!1}},yAxis:{type:"value",splitLine:{show:!1}},visualMap:[{realtime:!1,left:"right",selectedMode:"multiple",dimension:2,selected:[],min:0,max:18,precision:0,splitNumber:0,calculable:!0}],series:[{name:"scatter",type:"scatter",symbolSize:30,data:n}]},i={legend:{top:20,data:["scatter"]},tooltip:{formatter:"{c}"},grid:{top:"26%",bottom:"26%"},xAxis:{type:"value",splitLine:{show:!1}},yAxis:{type:"value",splitLine:{show:!1}},visualMap:[{left:"right",selectedMode:"multiple",dimension:2,selected:[],min:0,max:18,precision:0,splitNumber:0,calculable:!0}],series:[{name:"scatter",type:"scatter",symbolSize:30,data:n}]}},251:function(e,t,a){"use strict";var n=a(561),o=a.n(n),r=o.a.match(/\bd="([^"]+)"/)[1];t.a={series:[{type:"liquidFill",data:[.7,.6,.55,.45],amplitude:6,outline:{show:!1},radius:"60%",color:["#4fc08d","#44d64a","#33c762","#4acc80"],backgroundStyle:{color:"#fff",borderColor:"#2c3e50",borderWidth:1},shape:"path://"+r,label:{normal:{formatter:function(){return""}}}}]}},252:function(e,t,a){"use strict";function n(e){for(var t=[],a=0;a{b} : {c} ({d}%)"},legend:{orient:"vertical",left:"left",data:["直接访问","邮件营销","联盟广告","视频广告","搜索引擎"]},series:[{name:"访问来源",type:"pie",radius:"55%",center:["50%","60%"],data:[{value:335,name:"直接访问"},{value:310,name:"邮件营销"},{value:234,name:"联盟广告"},{value:135,name:"视频广告"},{value:1548,name:"搜索引擎"}],itemStyle:{emphasis:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"}}}]}},254:function(e,t,a){"use strict";for(var n=[],o=0;o<=360;o++){var r=o/180*Math.PI,i=Math.sin(2*r)*Math.cos(2*r);n.push([i,o])}t.a={title:{text:"极坐标双数值轴"},legend:{data:["line"]},polar:{center:["50%","54%"]},tooltip:{trigger:"axis",axisPointer:{type:"cross"}},angleAxis:{type:"value",startAngle:0},radiusAxis:{min:0},series:[{coordinateSystem:"polar",name:"line",type:"line",showSymbol:!1,data:n}],animationDuration:2e3}},255:function(e,t,a){"use strict";var n=a(120),o=(a.n(n),[[[28604,77,17096869,"Australia",1990],[31163,77.4,27662440,"Canada",1990],[1516,68,1154605773,"China",1990],[13670,74.7,10582082,"Cuba",1990],[28599,75,4986705,"Finland",1990],[29476,77.1,56943299,"France",1990],[31476,75.4,78958237,"Germany",1990],[28666,78.1,254830,"Iceland",1990],[1777,57.7,870601776,"India",1990],[29550,79.1,122249285,"Japan",1990],[2076,67.9,20194354,"North Korea",1990],[12087,72,42972254,"South Korea",1990],[24021,75.4,3397534,"New Zealand",1990],[43296,76.8,4240375,"Norway",1990],[10088,70.8,38195258,"Poland",1990],[19349,69.6,147568552,"Russia",1990],[10670,67.3,53994605,"Turkey",1990],[26424,75.7,57110117,"United Kingdom",1990],[37062,75.4,252847810,"United States",1990]],[[44056,81.8,23968973,"Australia",2015],[43294,81.7,35939927,"Canada",2015],[13334,76.9,1376048943,"China",2015],[21291,78.5,11389562,"Cuba",2015],[38923,80.8,5503457,"Finland",2015],[37599,81.9,64395345,"France",2015],[44053,81.1,80688545,"Germany",2015],[42182,82.8,329425,"Iceland",2015],[5903,66.8,1311050527,"India",2015],[36162,83.5,126573481,"Japan",2015],[1390,71.4,25155317,"North Korea",2015],[34644,80.7,50293439,"South Korea",2015],[34186,80.6,4528526,"New Zealand",2015],[64304,81.6,5210967,"Norway",2015],[24787,77.3,38611794,"Poland",2015],[23038,73.13,143456918,"Russia",2015],[19360,76.5,78665830,"Turkey",2015],[38225,81.4,64715810,"United Kingdom",2015],[53354,79.1,321773631,"United States",2015]]]);t.a={title:{text:"各国人均寿命与GDP对比"},legend:{right:10,data:["1990","2015"]},xAxis:{splitLine:{lineStyle:{type:"dashed"}}},yAxis:{splitLine:{lineStyle:{type:"dashed"}},scale:!0},series:[{name:"1990",data:o[0],type:"scatter",symbolSize:function(e){return Math.sqrt(e[2])/500},label:{emphasis:{show:!0,formatter:function(e){return e.data[3]},position:"top"}},itemStyle:{normal:{shadowBlur:10,shadowColor:"rgba(120, 36, 50, 0.5)",shadowOffsetY:5,color:new n.graphic.RadialGradient(.4,.3,1,[{offset:0,color:"rgb(251, 118, 123)"},{offset:1,color:"rgb(204, 46, 72)"}])}}},{name:"2015",data:o[1],type:"scatter",symbolSize:function(e){return Math.sqrt(e[2])/500},label:{emphasis:{show:!0,formatter:function(e){return e.data[3]},position:"top"}},itemStyle:{normal:{shadowBlur:10,shadowColor:"rgba(25, 100, 150, 0.5)",shadowOffsetY:5,color:new n.graphic.RadialGradient(.4,.3,1,[{offset:0,color:"rgb(129, 227, 238)"},{offset:1,color:"rgb(25, 183, 207)"}])}}}]}},256:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=(a(245),a(131)),o=a(246);new n.a({el:"#app",components:{demo:o.a},render:function(e){return e(o.a)}})},257:function(e,t,a){"use strict";var n=a(131),o=a(566);n.a.use(o.a),t.a=new o.a.Store({state:{scores:[{name:"进攻",max:20,value:19},{name:"防守",max:20,value:9},{name:"速度",max:20,value:18},{name:"力量",max:20,value:16},{name:"耐力",max:20,value:16},{name:"敏捷",max:20,value:20}]},getters:{scoreRadar:function(e){var t=e.scores;return{title:{text:"能力雷达图"},tooltip:{},radar:{indicator:t.map(function(e){return{name:e.name,max:e.max}})},series:[{name:"能力值",type:"radar",data:[{value:t.map(function(e){return e.value})}]}]}}},mutations:{increment:function(e,t){var a=e.scores,n=t.amount,o=void 0===n?1:n,r=t.index,i=void 0===r?0:r,l=a[i];l.value=Math.max(Math.min(l.value+o,l.max),0)}},actions:{asyncIncrement:function(e,t){var a=e.commit,n=t.amount,o=void 0===n?1:n,r=t.index,i=t.delay;setTimeout(function(){a("increment",{amount:o,index:r})},i)}}})},259:function(e,t,a){"use strict";var n=a(558),o=a.n(n),r=a(562),i=a(153),l=(a.n(i),a(163)),s=(a.n(l),a(168)),c=(a.n(s),a(167)),d=(a.n(c),a(169)),u=(a.n(d),a(170)),m=(a.n(u),a(156)),p=(a.n(m),a(193)),h=(a.n(p),a(190)),v=(a.n(h),a(179)),g=(a.n(v),a(186)),f=(a.n(g),a(192)),y=(a.n(f),a(194)),b=(a.n(y),a(110)),x=(a.n(b),a(545)),w=(a.n(x),a(243)),_=(a.n(w),a(251)),k=a(249),C=a(253),M=a(254),S=a(255),O=a(252),P=a(250),z=a(257),N=a(546),q=(a.n(N),a(248)),L=a.n(q),j=a(247),A=a.n(j);r.a.registerMap("china",A.a),r.a.registerTheme("ovilia-green",L.a),t.a={components:{chart:r.a},store:z.a,data:function(){var e=o.a.parse(location.search,{ignoreQueryPrefix:!0});return{options:e,logo:_.a,bar:a.i(k.a)(),pie:C.a,polar:M.a,scatter:S.a,map:O.a,c1:P.a,c2:P.b,expand:{bar:!0,pie:!0,polar:!0,scatter:!0,map:!0,radar:!0,connect:!0,flight:!0},initOptions:{renderer:e.renderer||"canvas"},polarTheme:"dark",seconds:-1,asyncCount:!1,connected:!0,metricIndex:0,open:!1,img:{},flightLoaded:!1,flightOptions:null}},computed:{scoreRadar:function(){return this.$store.getters.scoreRadar},metrics:function(){return this.$store.state.scores.map(function(e){return e.name})},isMax:function(){var e=this.$store.state.scores[this.metricIndex];return e.value===e.max},isMin:function(){return 0===this.$store.state.scores[this.metricIndex].value}},methods:{refresh:function(){var e=this;this.seconds=3;var t=this.$refs.bar;t.showLoading({text:"Loading…",color:"#4ea397",maskColor:"rgba(255, 255, 255, 0.4)"});var n=setInterval(function(){0===--e.seconds&&(clearTimeout(n),t.hideLoading(),e.bar=a.i(k.a)())},1e3)},toggleRenderer:function(){"canvas"===this.initOptions.renderer?this.initOptions.renderer="svg":this.initOptions.renderer="canvas"},convert:function(){var e=this.$refs.map,t=e.width,a=e.height;this.img={src:e.getDataURL({pixelRatio:window.devicePixelRatio||1}),width:t,height:a},this.open=!0},increase:function(e){this.asyncCount?this.$store.dispatch("asyncIncrement",{amount:e,index:this.metricIndex,delay:500}):this.$store.commit("increment",{amount:e,index:this.metricIndex})},loadFlights:function(){var e=this;this.flightLoaded=!0;var t=this.$refs.flight;t.showLoading({text:"",color:"#c23531",textColor:"rgba(255, 255, 255, 0.5)",maskColor:"#003",zlevel:0}),fetch("../static/flight.json").then(function(e){return e.json()}).then(function(a){function n(e){return[a.airports[e][3],a.airports[e][4]]}t.hideLoading();var o=a.routes.map(function(e){return[n(e[1]),n(e[2])]});e.flightOptions={title:{text:"World Flights",left:"center",textStyle:{color:"#eee"}},backgroundColor:"#003",tooltip:{formatter:function(e){var t=a.routes[e.dataIndex];return a.airports[t[1]][1]+" > "+a.airports[t[2]][1]}},geo:{map:"world",left:0,right:0,silent:!0,itemStyle:{normal:{borderColor:"#003",color:"#005"}}},series:[{type:"lines",coordinateSystem:"geo",data:o,large:!0,largeThreshold:100,lineStyle:{normal:{opacity:.05,width:.5,curveness:.3}},blendMode:"lighter"}]}})}},watch:{connected:{handler:function(e){r.a[e?"connect":"disconnect"]("radiance")},immediate:!0},"initOptions.renderer":function(e){this.options.renderer="svg"===e?e:void 0;var t=o.a.stringify(this.options);t=t?"?"+t:"",history.pushState({},document.title,""+location.origin+location.pathname+t+location.hash)}},mounted:function(){var e=-1,t=this.$refs.pie,a=t.options.series[0].data.length;setInterval(function(){t.dispatchAction({type:"downplay",seriesIndex:0,dataIndex:e}),e=(e+1)%a,t.dispatchAction({type:"highlight",seriesIndex:0,dataIndex:e}),t.dispatchAction({type:"showTip",seriesIndex:0,dataIndex:e})},1e3)}}},260:function(e,t,a){"use strict";var n=a(262),o=a.n(n),r=a(132),i=a.n(r),l=a(1),s=a.n(l),c=a(553),d=a.n(c),u=a(258),m=["legendselectchanged","legendselected","legendunselected","legendunscroll","datazoom","datarangeselected","timelinechanged","timelineplaychanged","restore","dataviewchanged","magictypechanged","geoselectchanged","geoselected","geounselected","pieselectchanged","pieselected","pieunselected","mapselectchanged","mapselected","mapunselected","axisareaselected","focusnodeadjacency","unfocusnodeadjacency","brush","brushselected","rendered","finished","click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];t.a={props:{options:Object,theme:[String,Object],initOptions:Object,group:String,autoResize:Boolean,watchShallow:Boolean,manualUpdate:Boolean},data:function(){return{lastArea:0}},watch:{group:function(e){this.chart.group=e}},methods:{mergeOptions:function(e,t,a){this.manualUpdate&&(this.manualOptions=e),this.chart?this.delegateMethod("setOption",e,t,a):this.init()},appendData:function(e){this.delegateMethod("appendData",e)},resize:function(e){this.delegateMethod("resize",e)},dispatchAction:function(e){this.delegateMethod("dispatchAction",e)},convertToPixel:function(e,t){return this.delegateMethod("convertToPixel",e,t)},convertFromPixel:function(e,t){return this.delegateMethod("convertFromPixel",e,t)},containPixel:function(e,t){return this.delegateMethod("containPixel",e,t)},showLoading:function(e,t){this.delegateMethod("showLoading",e,t)},hideLoading:function(){this.delegateMethod("hideLoading")},getDataURL:function(e){return this.delegateMethod("getDataURL",e)},getConnectedDataURL:function(e){return this.delegateMethod("getConnectedDataURL",e)},clear:function(){this.delegateMethod("clear")},dispose:function(){this.delegateMethod("dispose")},delegateMethod:function(e){var t;this.chart||this.init();for(var a=arguments.length,n=Array(a>1?a-1:0),o=1;o1?"s":"")+"...")])]),e._v(" "),a("p",[a("button",{attrs:{disabled:e.seconds>0},on:{click:e.refresh}},[e._v("Refresh")])])]):e._e(),e._v(" "),a("h2",{attrs:{id:"pie"}},[e._m(2),e._v(" "),a("button",{class:{round:!0,expand:e.expand.pie},attrs:{"aria-label":"toggle"},on:{click:function(t){e.expand.pie=!e.expand.pie}}})]),e._v(" "),e.expand.pie?a("section",[a("figure",[a("chart",{ref:"pie",attrs:{options:e.pie,"init-options":e.initOptions,"auto-resize":""}})],1)]):e._e(),e._v(" "),a("h2",{attrs:{id:"polar"}},[e._m(3),e._v(" "),a("button",{class:{round:!0,expand:e.expand.polar},attrs:{"aria-label":"toggle"},on:{click:function(t){e.expand.polar=!e.expand.polar}}})]),e._v(" "),e.expand.polar?a("section",[a("figure",{style:"dark"===e.polarTheme?"background-color: #333":""},[a("chart",{attrs:{options:e.polar,"init-options":e.initOptions,theme:e.polarTheme,"auto-resize":""}})],1),e._v(" "),a("p",[e._v("\n Theme\n "),a("select",{directives:[{name:"model",rawName:"v-model",value:e.polarTheme,expression:"polarTheme"}],on:{change:function(t){var a=Array.prototype.filter.call(t.target.options,function(e){return e.selected}).map(function(e){return"_value"in e?e._value:e.value});e.polarTheme=t.target.multiple?a:a[0]}}},[a("option",{domProps:{value:null}},[e._v("Default")]),e._v(" "),a("option",{attrs:{value:"dark"}},[e._v("Dark")])])])]):e._e(),e._v(" "),a("h2",{attrs:{id:"scatter"}},[e._m(4),e._v(" "),a("button",{class:{round:!0,expand:e.expand.scatter},attrs:{"aria-label":"toggle"},on:{click:function(t){e.expand.scatter=!e.expand.scatter}}})]),e._v(" "),e.expand.scatter?a("section",[a("figure",[a("chart",{attrs:{options:e.scatter,"init-options":e.initOptions,"auto-resize":""}})],1)]):e._e(),e._v(" "),a("h2",{attrs:{id:"map"}},[e._m(5),e._v(" "),a("button",{class:{round:!0,expand:e.expand.map},attrs:{"aria-label":"toggle"},on:{click:function(t){e.expand.map=!e.expand.map}}})]),e._v(" "),e.expand.map?a("section",[a("figure",{staticStyle:{"background-color":"#404a59"}},[a("chart",{ref:"map",attrs:{options:e.map,"init-options":e.initOptions,"auto-resize":""}})],1),e._v(" "),a("p",[a("button",{on:{click:e.convert}},[e._v("Convert to image")])])]):e._e(),e._v(" "),a("h2",{attrs:{id:"radar"}},[e._m(6),e._v(" "),a("button",{class:{round:!0,expand:e.expand.radar},attrs:{"aria-label":"toggle"},on:{click:function(t){e.expand.radar=!e.expand.radar}}})]),e._v(" "),e.expand.radar?a("section",[a("figure",[a("chart",{attrs:{options:e.scoreRadar,"init-options":e.initOptions,"auto-resize":""}})],1),e._v(" "),a("p",[a("select",{directives:[{name:"model",rawName:"v-model",value:e.metricIndex,expression:"metricIndex"}],on:{change:function(t){var a=Array.prototype.filter.call(t.target.options,function(e){return e.selected}).map(function(e){return"_value"in e?e._value:e.value});e.metricIndex=t.target.multiple?a:a[0]}}},e._l(e.metrics,function(t,n){return a("option",{key:n,domProps:{value:n}},[e._v(e._s(t)+"\n ")])})),e._v(" "),a("button",{attrs:{disabled:e.isMax},on:{click:function(t){e.increase(1)}}},[e._v("Increase")]),e._v(" "),a("button",{attrs:{disabled:e.isMin},on:{click:function(t){e.increase(-1)}}},[e._v("Decrease")]),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.asyncCount,expression:"asyncCount"}],attrs:{id:"async",type:"checkbox"},domProps:{checked:Array.isArray(e.asyncCount)?e._i(e.asyncCount,null)>-1:e.asyncCount},on:{change:function(t){var a=e.asyncCount,n=t.target,o=!!n.checked;if(Array.isArray(a)){var r=e._i(a,null);n.checked?r<0&&(e.asyncCount=a.concat([null])):r>-1&&(e.asyncCount=a.slice(0,r).concat(a.slice(r+1)))}else e.asyncCount=o}}}),e._v(" "),a("label",{attrs:{for:"async"}},[e._v("Async")])])]):e._e(),e._v(" "),a("h2",{attrs:{id:"connect"}},[a("a",{attrs:{href:"#connect"}},[e._v("Connectable charts")]),e._v(" "),a("button",{class:{round:!0,expand:e.expand.connect},attrs:{"aria-label":"toggle"},on:{click:function(t){e.expand.connect=!e.expand.connect}}})]),e._v(" "),e.expand.connect?a("section",[a("figure",{staticClass:"half"},[a("chart",{ref:"c1",attrs:{options:e.c1,"init-options":e.initOptions,group:"radiance","auto-resize":""}})],1),e._v(" "),a("figure",{staticClass:"half"},[a("chart",{ref:"c2",attrs:{options:e.c2,"init-options":e.initOptions,group:"radiance","auto-resize":""}})],1),e._v(" "),a("p",[a("label",[a("input",{directives:[{name:"model",rawName:"v-model",value:e.connected,expression:"connected"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(e.connected)?e._i(e.connected,null)>-1:e.connected},on:{change:function(t){var a=e.connected,n=t.target,o=!!n.checked;if(Array.isArray(a)){var r=e._i(a,null);n.checked?r<0&&(e.connected=a.concat([null])):r>-1&&(e.connected=a.slice(0,r).concat(a.slice(r+1)))}else e.connected=o}}}),e._v("\n Connected\n ")])])]):e._e(),e._v(" "),a("h2",{attrs:{id:"flight"}},[a("a",{attrs:{href:"#flight"}},[e._v("Manual updates")]),e._v(" "),a("button",{class:{round:!0,expand:e.expand.flight},attrs:{"aria-label":"toggle"},on:{click:function(t){e.expand.flight=!e.expand.flight}}})]),e._v(" "),e.expand.flight?a("section",[e._m(7),e._v(" "),a("p",[a("button",{attrs:{disabled:e.flightLoaded},on:{click:e.loadFlights}},[e._v("Load")])]),e._v(" "),a("figure",{staticStyle:{"background-color":"#003"}},[a("chart",{ref:"flight",attrs:{"init-options":e.initOptions,options:e.flightOptions,"auto-resize":""}})],1)]):e._e(),e._v(" "),e._m(8),e._v(" "),a("aside",{class:{modal:!0,open:e.open},on:{click:function(t){e.open=!1}}},[e.img.src?a("img",{attrs:{src:e.img.src,width:e.img.width}}):e._e()]),e._v(" "),a("aside",{staticClass:"renderer"},[a("button",{class:{active:"canvas"===e.initOptions.renderer},on:{click:function(t){e.initOptions.renderer="canvas"}}},[e._v("Canvas")]),e._v(" "),a("button",{class:{active:"svg"===e.initOptions.renderer},on:{click:function(t){e.initOptions.renderer="svg"}}},[e._v("SVG")])])])},o=[function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("h1",[a("a",{attrs:{href:"https://github.com/Justineo/vue-echarts"}},[e._v("Vue-ECharts")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("a",{attrs:{href:"#bar"}},[e._v("Bar chart "),a("small",[e._v("(with async data & custom theme)")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("a",{attrs:{href:"#pie"}},[e._v("Pie chart "),a("small",[e._v("(with action dispatch)")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("a",{attrs:{href:"#polar"}},[e._v("Polar plot "),a("small",[e._v("(with built-in theme)")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("a",{attrs:{href:"#scatter"}},[e._v("Scatter plot "),a("small",[e._v("(with gradient)")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("a",{attrs:{href:"#map"}},[e._v("Map "),a("small",[e._v("(with GeoJSON & image converter)")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("a",{attrs:{href:"#radar"}},[e._v("Radar chart "),a("small",[e._v("(with Vuex integration)")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("p",[a("small",[e._v("You may use "),a("code",[e._v("manual-update")]),e._v(" prop for performance critical use cases.")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("footer",[a("a",{attrs:{href:"//github.com/Justineo"}},[e._v("@Justineo")]),e._v("|"),a("a",{attrs:{href:"//github.com/Justineo/vue-echarts/blob/master/LICENSE"}},[e._v("MIT License")]),e._v("|"),a("a",{attrs:{href:"//github.com/Justineo/vue-echarts"}},[e._v("View on GitHub")])])}],r={render:n,staticRenderFns:o};t.a=r}},[256]); \ No newline at end of file diff --git a/demo/static/js/manifest.6b408d539afab7ef2678.js b/demo/static/js/manifest.831df52c10bd7936a15f.js similarity index 92% rename from demo/static/js/manifest.6b408d539afab7ef2678.js rename to demo/static/js/manifest.831df52c10bd7936a15f.js index 67982f0..50d20bd 100644 --- a/demo/static/js/manifest.6b408d539afab7ef2678.js +++ b/demo/static/js/manifest.831df52c10bd7936a15f.js @@ -1 +1 @@ -!function(e){function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}var r=window.webpackJsonp;window.webpackJsonp=function(t,c,i){for(var u,a,f,s=0,l=[];sAu||t<-Au}function S(t){this._target=t.target,this._life=t.life||1e3,this._delay=t.delay||0,this._initialized=!1,this.loop=null!=t.loop&&t.loop,this.gap=t.gap||0,this.easing=t.easing||"Linear",this.onframe=t.onframe,this.ondestroy=t.ondestroy,this.onrestart=t.onrestart,this._pausedTime=0,this._paused=!1}function M(t){return(t=Math.round(t))<0?0:t>255?255:t}function I(t){return t<0?0:t>1?1:t}function A(t){return M(t.length&&"%"===t.charAt(t.length-1)?parseFloat(t)/100*255:parseInt(t,10))}function T(t){return I(t.length&&"%"===t.charAt(t.length-1)?parseFloat(t)/100:parseFloat(t))}function D(t,e,i){return i<0?i+=1:i>1&&(i-=1),6*i<1?t+(e-t)*i*6:2*i<1?e:3*i<2?t+(e-t)*(2/3-i)*6:t}function C(t,e,i){return t+(e-t)*i}function L(t,e,i,n,a){return t[0]=e,t[1]=i,t[2]=n,t[3]=a,t}function P(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}function k(t,e){Fu&&P(Fu,e),Fu=Hu.put(t,Fu||e.slice())}function O(t,e){if(t){e=e||[];var i=Hu.get(t);if(i)return P(e,i);var n=(t+="").replace(/ /g,"").toLowerCase();if(n in Gu)return P(e,Gu[n]),k(t,e),e;if("#"!==n.charAt(0)){var a=n.indexOf("("),r=n.indexOf(")");if(-1!==a&&r+1===n.length){var o=n.substr(0,a),s=n.substr(a+1,r-(a+1)).split(","),l=1;switch(o){case"rgba":if(4!==s.length)return void L(e,0,0,0,1);l=T(s.pop());case"rgb":return 3!==s.length?void L(e,0,0,0,1):(L(e,A(s[0]),A(s[1]),A(s[2]),l),k(t,e),e);case"hsla":return 4!==s.length?void L(e,0,0,0,1):(s[3]=T(s[3]),R(s,e),k(t,e),e);case"hsl":return 3!==s.length?void L(e,0,0,0,1):(R(s,e),k(t,e),e);default:return}}L(e,0,0,0,1)}else{if(4===n.length){return(u=parseInt(n.substr(1),16))>=0&&u<=4095?(L(e,(3840&u)>>4|(3840&u)>>8,240&u|(240&u)>>4,15&u|(15&u)<<4,1),k(t,e),e):void L(e,0,0,0,1)}if(7===n.length){var u=parseInt(n.substr(1),16);return u>=0&&u<=16777215?(L(e,(16711680&u)>>16,(65280&u)>>8,255&u,1),k(t,e),e):void L(e,0,0,0,1)}}}}function R(t,e){var i=(parseFloat(t[0])%360+360)%360/360,n=T(t[1]),a=T(t[2]),r=a<=.5?a*(n+1):a+n-a*n,o=2*a-r;return e=e||[],L(e,M(255*D(o,r,i+1/3)),M(255*D(o,r,i)),M(255*D(o,r,i-1/3)),1),4===t.length&&(e[3]=t[3]),e}function N(t,e,i){if(e&&e.length&&t>=0&&t<=1){i=i||[];var n=t*(e.length-1),a=Math.floor(n),r=Math.ceil(n),o=e[a],s=e[r],l=n-a;return i[0]=M(C(o[0],s[0],l)),i[1]=M(C(o[1],s[1],l)),i[2]=M(C(o[2],s[2],l)),i[3]=I(C(o[3],s[3],l)),i}}function E(t,e,i){if(e&&e.length&&t>=0&&t<=1){var n=t*(e.length-1),a=Math.floor(n),r=Math.ceil(n),o=O(e[a]),s=O(e[r]),l=n-a,u=z([M(C(o[0],s[0],l)),M(C(o[1],s[1],l)),M(C(o[2],s[2],l)),I(C(o[3],s[3],l))],"rgba");return i?{color:u,leftIndex:a,rightIndex:r,value:n}:u}}function z(t,e){if(t&&t.length){var i=t[0]+","+t[1]+","+t[2];return"rgba"!==e&&"hsva"!==e&&"hsla"!==e||(i+=","+t[3]),e+"("+i+")"}}function V(t,e,i){return(e-t)*i+t}function B(t,e,i){return i>.5?e:t}function G(t,e,i,n,a){var r=t.length;if(1==a)for(s=0;sa)t.length=a;else for(o=n;o=0;)a++;return a-e}function Y(t,e,i,n,a){for(n===e&&n++;n>>1])<0?l=r:s=r+1;var u=n-s;switch(u){case 3:t[s+3]=t[s+2];case 2:t[s+2]=t[s+1];case 1:t[s+1]=t[s];break;default:for(;u>0;)t[s+u]=t[s+u-1],u--}t[s]=o}}function X(t,e,i,n,a,r){var o=0,s=0,l=1;if(r(t,e[i+a])>0){for(s=n-a;l0;)o=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s),o+=a,l+=a}else{for(s=a+1;ls&&(l=s);var u=o;o=a-l,l=a-u}for(o++;o>>1);r(t,e[i+h])>0?o=h+1:l=h}return l}function q(t,e,i,n,a,r){var o=0,s=0,l=1;if(r(t,e[i+a])<0){for(s=a+1;ls&&(l=s);var u=o;o=a-l,l=a-u}else{for(s=n-a;l=0;)o=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s),o+=a,l+=a}for(o++;o>>1);r(t,e[i+h])<0?l=h:o=h+1}return l}function $(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}function K(t,e,i){var n=du.createCanvas(),a=e.getWidth(),r=e.getHeight(),o=n.style;return o&&(o.position="absolute",o.left=0,o.top=0,o.width=a+"px",o.height=r+"px",n.setAttribute("data-zr-dom-id",t)),n.width=a*i,n.height=r*i,n}function J(t){return t&&t.width&&t.height}function Q(t,e){var i=t+":"+(e=e||Uh);if(Gh[i])return Gh[i];for(var n=(t+"").split("\n"),a=0,r=0,o=n.length;rFh&&(Hh=0,Gh={}),Hh++,Gh[i]=a,a}function tt(t,e,i){return"right"===i?t-=e:"center"===i&&(t-=e/2),t}function et(t,e,i){return"middle"===i?t-=e/2:"bottom"===i&&(t-=e),t}function it(t,e,i,n,a){if(!e)return"";var r=(t+"").split("\n");a=nt(e,i,n,a);for(var o=0,s=r.length;o=r;s++)o-=r;var l=Q(i);return l>o&&(i="",l=0),o=t-l,n.ellipsis=i,n.ellipsisWidth=l,n.contentWidth=o,n.containerWidth=t,n}function at(t,e){var i=e.containerWidth,n=e.font,a=e.contentWidth;if(!i)return"";var r=Q(t,n);if(r<=i)return t;for(var o=0;;o++){if(r<=a||o>=e.maxIterations){t+=e.ellipsis;break}var s=0===o?function(t,e,i,n){for(var a=0,r=0,o=t.length;r0?Math.floor(t.length*a/r):0;r=Q(t=t.substr(0,s),n)}return""===t&&(t=e.placeholder),t}function rt(t){return Q("国",t)}function ot(t,e){return Zh.measureText(t,e)}function st(t,e,i,n){null!=t&&(t+="");var a=rt(e),r=t?t.split("\n"):[],o=r.length*a,s=o;if(i&&(s+=i[0]+i[2]),t&&n){var l=n.outerHeight,u=n.outerWidth;if(null!=l&&s>l)t="",r=[];else if(null!=u)for(var h=nt(u-(i?i[1]+i[3]:0),e,n.ellipsis,{minChar:n.minChar,placeholder:n.placeholder}),c=0,d=r.length;ca&&ut(i,t.substring(a,r)),ut(i,n[2],n[1]),a=Wh.lastIndex}af)return{lines:[],width:0,height:0};C.textWidth=Q(C.text,_);var w=y.textWidth,S=null==w||"auto"===w;if("string"==typeof w&&"%"===w.charAt(w.length-1))C.percentWidth=w,u.push(C),w=0;else{if(S){w=C.textWidth;var M=y.textBackgroundColor,I=M&&M.image;I&&(I=Rh.findExistImage(I),Rh.isImageReady(I)&&(w=Math.max(w,I.width*b/I.height)))}var A=x?x[1]+x[3]:0;w+=A;var T=null!=d?d-m:null;null!=T&&T=0?parseFloat(t)/100*e:parseFloat(t):t}function _t(t,e,i){return"right"===e?t-i[1]:"center"===e?t+i[3]/2-i[1]/2:t+i[3]}function bt(t){t=t||{},sh.call(this,t);for(var e in t)t.hasOwnProperty(e)&&"style"!==e&&(this[e]=t[e]);this.style=new Ah(t.style,this),this._rect=null,this.__clipPaths=[]}function wt(t){oc.call(this,t)}function St(t){return parseInt(t,10)}function Mt(t,e,i,n){return i=i||{},n||!Jl.canvasSupported?It(t,e,i):Jl.browser.firefox&&null!=e.layerX&&e.layerX!==e.offsetX?(i.zrX=e.layerX,i.zrY=e.layerY):null!=e.offsetX?(i.zrX=e.offsetX,i.zrY=e.offsetY):It(t,e,i),i}function It(t,e,i){var n=function(t){return t.getBoundingClientRect?t.getBoundingClientRect():{left:0,top:0}}(t);i.zrX=e.clientX-n.left,i.zrY=e.clientY-n.top}function At(t){var e=t[1][0]-t[0][0],i=t[1][1]-t[0][1];return Math.sqrt(e*e+i*i)}function Tt(t){return"mousewheel"===t&&Jl.browser.firefox?"DOMMouseScroll":t}function Dt(t,e,i){var n=t._gestureMgr;"start"===i&&n.clear();var a=n.recognize(e,t.handler.findHover(e.zrX,e.zrY,null).target,t.dom);if("end"===i&&n.clear(),a){var r=a.type;e.gestureEvent=r,t.handler.dispatchToElement({target:a.target},r,a.event)}}function Ct(t){t._touching=!0,clearTimeout(t._touchTimer),t._touchTimer=setTimeout(function(){t._touching=!1},700)}function Lt(t){var e=t.pointerType;return"pen"===e||"touch"===e}function Pt(t){function e(e,i){du.each(e,function(e){Sc(t,Tt(e),i._handlers[e])},i)}yu.call(this),this.dom=t,this._touching=!1,this._touchTimer,this._gestureMgr=new wc,this._handlers={},function(t){du.each(Tc,function(e){t._handlers[e]=du.bind(Lc[e],t)}),du.each(Cc,function(e){t._handlers[e]=du.bind(Lc[e],t)}),du.each(Ac,function(e){t._handlers[e]=function(t,e){return function(){if(!e._touching)return t.apply(e,arguments)}}(Lc[e],t)})}(this),Jl.pointerEventsSupported?e(Cc,this):(Jl.touchEventsSupported&&e(Tc,this),e(Ac,this))}function kt(t){return t instanceof Array?t:null==t?[]:[t]}function Ot(t){return Bc(t)&&t.id&&0===(t.id+"").indexOf("\0_ec_\0")}function Rt(t,e){return t&&t.hasOwnProperty(e)}function Nt(t){var e={main:"",sub:""};return t&&(t=t.split(Uc),e.main=t[0]||"",e.sub=t[1]||""),e}function Et(t){return t>-nd&&tnd||t<-nd}function Vt(t,e,i,n,a){var r=1-a;return r*r*(r*t+3*a*e)+a*a*(a*n+3*r*i)}function Bt(t,e,i,n){var a=1-n;return a*(a*t+2*n*e)+n*n*i}function Gt(t,e,i,n,a){for(var r=0,o=0,s=0,l=0,u=0,h=0;h1&&(i||(r+=jd(o,s,l,u,n,a))),1==h&&(l=o=t[h],u=s=t[h+1]),c){case Xd.M:o=l=t[h++],s=u=t[h++];break;case Xd.L:if(i){if(zd.containStroke(o,s,t[h],t[h+1],e,n,a))return!0}else r+=jd(o,s,t[h],t[h+1],n,a)||0;o=t[h++],s=t[h++];break;case Xd.C:if(i){if(Vd.containStroke(o,s,t[h++],t[h++],t[h++],t[h++],t[h],t[h+1],e,n,a))return!0}else r+=function(t,e,i,n,a,r,o,s,l,u){if(u>e&&u>n&&u>r&&u>s||u1&&function(){var t=Jd[0];Jd[0]=Jd[1],Jd[1]=t}(),c=hd.cubicAt(e,n,r,s,Jd[0]),p>1&&(d=hd.cubicAt(e,n,r,s,Jd[1]))),2==p?me&&s>n&&s>r||s=0&&u<=1){for(var h=0,c=hd.quadraticAt(e,n,r,u),d=0;d1?r+=jd(o,s,x,_,n,a):(l=x,u=_);var b=(n-d)*g/p+d;if(i){if(Zd.containStroke(d,f,g,m,m+v,y,e,b,a))return!0}else r+=function(t,e,i,n,a,r,o,s){if((s-=e)>i||s<-i)return 0;u=Math.sqrt(i*i-s*s),Kd[0]=-u,Kd[1]=u;var l=Math.abs(n-a);if(l<1e-4)return 0;if(l%qd<1e-4)return n=0,a=qd,p=r?1:-1,o>=Kd[0]+t&&o<=Kd[1]+t?p:0;if(r){var u=n;n=Yd(a),a=Yd(u)}else n=Yd(n),a=Yd(a);n>a&&(a+=qd);for(var h=0,c=0;c<2;c++){var d=Kd[c];if(d+t>o){var f=Math.atan2(s,d),p=r?1:-1;f<0&&(f=qd+f),(f>=n&&f<=a||f+qd>=n&&f+qd<=a)&&(f>Math.PI/2&&f<1.5*Math.PI&&(p=-p),h+=p)}}return h}(d,f,g,m,m+v,y,b,a);o=Math.cos(m+v)*p+d,s=Math.sin(m+v)*g+f;break;case Xd.R:l=o=t[h++],u=s=t[h++];var x=l+t[h++],_=u+t[h++];if(i){if(zd.containStroke(l,u,x,u,e,n,a)||zd.containStroke(x,u,x,_,e,n,a)||zd.containStroke(x,_,l,_,e,n,a)||zd.containStroke(l,_,l,u,e,n,a))return!0}else r+=jd(x,u,x,_,n,a),r+=jd(l,_,l,u,n,a);break;case Xd.Z:if(i){if(zd.containStroke(o,s,l,u,e,n,a))return!0}else r+=jd(o,s,l,u,n,a);o=l,s=u}}return i||function(t,e){return Math.abs(t-e)<$d}(s,u)||(r+=jd(o,s,l,u,n,a)||0),0!==r}function Ht(t){oc.call(this,t),this.path=null}function Ft(t,e,i,n,a,r,o,s,l,u,h){var c=l*(gf/180),d=pf(c)*(t-i)/2+ff(c)*(e-n)/2,f=-1*ff(c)*(t-i)/2+pf(c)*(e-n)/2,p=d*d/(o*o)+f*f/(s*s);p>1&&(o*=df(p),s*=df(p));var g=(a===r?-1:1)*df((o*o*(s*s)-o*o*(f*f)-s*s*(d*d))/(o*o*(f*f)+s*s*(d*d)))||0,m=g*o*f/s,v=g*-s*d/o,y=(t+i)/2+pf(c)*m-ff(c)*v,x=(e+n)/2+ff(c)*m+pf(c)*v,_=yf([1,0],[(d-m)/o,(f-v)/s]),b=[(d-m)/o,(f-v)/s],w=[(-1*d-m)/o,(-1*f-v)/s],S=yf(b,w);vf(b,w)<=-1&&(S=gf),vf(b,w)>=1&&(S=0),0===r&&S>0&&(S-=2*gf),1===r&&S<0&&(S+=2*gf),h.addData(u,y,x,o,s,_,S,c,r)}function Wt(t,e){var i=function(t){if(!t)return[];var e,i=t.replace(/-/g," -").replace(/ /g," ").replace(/ /g,",").replace(/,,/g,",");for(e=0;e0&&""===f[0]&&f.shift();for(var p=0;p=0)&&(n={textFill:null,textStroke:t.textStroke,textStrokeWidth:t.textStrokeWidth},t.textFill="#fff",null==t.textStroke&&(t.textStroke=i.autoColor,null==t.textStrokeWidth&&(t.textStrokeWidth=2))),n}function he(t,e,i,n,a,r){"function"==typeof a&&(r=a,a=null);if(n&&n.isAnimationEnabled()){var o=t?"Update":"",s=n.getShallow("animationDuration"+o),l=n.getShallow("animationEasing"+o),u=n.getShallow("animationDelay"+o);"function"==typeof u&&(u=u(a,n.getAnimationDelayParams?n.getAnimationDelayParams(e,a):null)),"function"==typeof s&&(s=s(a)),s>0?e.animateTo(i,s,u||0,l,r,!!r):(e.stopAnimation(),e.attr(i),r&&r())}else e.stopAnimation(),e.attr(i),r&&r()}function ce(t,e,i,n,a){he(!0,t,e,i,n,a)}function de(t,e,i){return e&&!du.isArrayLike(e)&&(e=Lu.getLocalTransform(e)),i&&(e=Mu.invert([],e)),pu.applyTransform([],t,e)}function fe(t,e,i){this.parentModel=e,this.ecModel=i,this.option=t}function pe(t,e,i){for(var n=0;nn||l.newline?(r=0,h=m,o+=s+i,s=f.height):s=Math.max(s,f.height)}else{var v=f.height+(g?-g.y+f.y:0);(c=o+v)>a||l.newline?(r+=s+i,o=0,c=v,s=f.width):s=Math.max(s,f.width)}l.newline||(d[0]=r,d[1]=o,"horizontal"===t?r=h+i:o=c+i)})}function _e(t,e,i){i=qp.normalizeCssArray(i||0);var n=e.width,a=e.height,r=$p(t.left,n),o=$p(t.top,a),s=$p(t.right,n),l=$p(t.bottom,a),u=$p(t.width,n),h=$p(t.height,a),c=i[2]+i[0],d=i[1]+i[3],f=t.aspect;switch(isNaN(u)&&(u=n-s-d-r),isNaN(h)&&(h=a-l-c-o),null!=f&&(isNaN(u)&&isNaN(h)&&(f>n/a?u=.8*n:h=.8*a),isNaN(u)&&(u=f*h),isNaN(h)&&(h=u/f)),isNaN(r)&&(r=n-s-u-d),isNaN(o)&&(o=a-l-h-c),t.left||t.right){case"center":r=n/2-u/2-i[3];break;case"right":r=n-u-d}switch(t.top||t.bottom){case"middle":case"center":o=a/2-h/2-i[0];break;case"bottom":o=a-h-c}r=r||0,o=o||0,isNaN(u)&&(u=n-d-r-(s||0)),isNaN(h)&&(h=a-c-o-(l||0));var p=new ch(r+i[3],o+i[0],u,h);return p.margin=i,p}function be(t,e){return e&&t&&Kp(Jp,function(i){e.hasOwnProperty(i)&&(t[i]=e[i])}),t}function we(t){return"category"===t.get("type")}function Se(t){this.fromDataset=t.fromDataset,this.data=t.data||(t.sourceFormat===Dg?{}:[]),this.sourceFormat=t.sourceFormat||Ag,this.seriesLayoutBy=t.seriesLayoutBy||Ig,this.dimensionsDefine=t.dimensionsDefine,this.encodeDefine=t.encodeDefine&&bg(t.encodeDefine),this.startIndex=t.startIndex||0,this.dimensionsDetectCount=t.dimensionsDetectCount}function Me(t){if(t){var e=Og();return Ng(t,function(t,i){if(null==(t=Hg({},Vg(t)?t:{name:t})).name)return t;t.name+="",null==t.displayName&&(t.displayName=t.name);var n=e.get(t.name);return n?t.name+="-"+n.count++:e.set(t.name,{count:1}),t})}}function Ie(t,e,i,n){if(null==n&&(n=1/0),e===Xg)for(r=0;r=0?n():c=setTimeout(n,-r),u=a};return d.clear=function(){c&&(clearTimeout(c),c=null)},d.debounceNextCall=function(t){l=t},d}function ii(t,e,i,n){this.ecInstance=t,this.api=e,this.unfinished;var i=this._dataProcessorHandlers=i.slice(),n=this._visualHandlers=n.slice();this._allHandlers=i.concat(n),this._stageTaskMap=Zv()}function ni(t,e,i,n,a){function r(t,e){return t.setDirty&&(!t.dirtyMap||t.dirtyMap.get(e.__pipeline.id))}a=a||{};var o;Fv(e,function(e,s){if(!a.visualType||a.visualType===e.visualType){var l=t._stageTaskMap.get(e.uid),u=l.seriesTaskMap,h=l.overallTask;if(h){var c,d=h.agentStubMap;d.each(function(t){r(a,t)&&(t.dirty(),c=!0)}),c&&h.dirty(),Kv(h,n);var f=t.getPerformArgs(h,a.block);d.each(function(t){t.perform(f)}),o|=h.perform(f)}else u&&u.each(function(s,l){r(a,s)&&s.dirty();var u=t.getPerformArgs(s,a.block);u.skip=!e.performRawSeries&&i.isSeriesFiltered(s.context.model),Kv(s,n),o|=s.perform(u)})}}),t.unfinished|=o}function ai(t){return function(e,i){var n=i.data,a=i.resetDefines[t];if(a&&a.dataEach)for(var r=e.start;r65535?by:wy}function ci(t,e){du.each(Sy.concat(e.__wrappedMethods||[]),function(i){e.hasOwnProperty(i)&&(t[i]=e[i])}),t.__wrappedMethods=e.__wrappedMethods,du.each(My,function(i){t[i]=du.clone(e[i])}),t._calculationInfo=du.extend(e._calculationInfo)}function di(t,e,i){var n;if(null!=e){var a=t._chunkSize,r=Math.floor(i/a),o=i%a,s=t.dimensions[e],l=t._storage[s][r];if(l){n=l[o];var u=t._dimensionInfos[s].ordinalMeta;u&&u.categories.length&&(n=u.categories[n])}}return n}function fi(t){return t}function pi(t){return t=0?this._indices[t]:-1}function gi(t,e){var i=t._idList[e];return null==i&&(i=di(t,t._idDimIdx,e)),null==i&&(i=xy+e),i}function mi(t){return du.isArray(t)||(t=[t]),t}function vi(t,e){var i=t.dimensions,n=new Iy(du.map(i,t.getDimensionInfo,t),t.hostModel);ci(n,t);for(var a=n._storage={},r=t._storage,o=0;o=0?(a[s]=function(t){for(var e=new Array(t.length),i=0;it[1]&&(t[0]=t[1])}function Ti(t){return t.get("stack")||cx+t.seriesIndex}function Di(t){return t.dim+t.index}function Ci(t,e){var i=[];return e.eachSeriesByType(t,function(t){Oi(t)&&!Ri(t)&&i.push(t)}),i}function Li(t){var e=[];return du.each(t,function(t){var i=t.getData(),n=t.coordinateSystem.getBaseAxis(),a=n.getExtent(),r="category"===n.type?n.getBandWidth():Math.abs(a[1]-a[0])/i.count(),o=ux(t.get("barWidth"),r),s=ux(t.get("barMaxWidth"),r),l=t.get("barGap"),u=t.get("barCategoryGap");e.push({bandWidth:r,barWidth:o,barMaxWidth:s,barGap:l,barCategoryGap:u,axisKey:Di(n),stackId:Ti(t)})}),Pi(e)}function Pi(t){var e={};du.each(t,function(t,i){var n=t.axisKey,a=t.bandWidth,r=e[n]||{bandWidth:a,remainedWidth:a,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},o=r.stacks;e[n]=r;var s=t.stackId;o[s]||r.autoWidthCount++,o[s]=o[s]||{width:0,maxWidth:0};var l=t.barWidth;l&&!o[s].width&&(o[s].width=l,l=Math.min(r.remainedWidth,l),r.remainedWidth-=l);var u=t.barMaxWidth;u&&(o[s].maxWidth=u);var h=t.barGap;null!=h&&(r.gap=h);var c=t.barCategoryGap;null!=c&&(r.categoryGap=c)});var i={};return du.each(e,function(t,e){i[e]={};var n=t.stacks,a=t.bandWidth,r=ux(t.categoryGap,a),o=ux(t.gap,1),s=t.remainedWidth,l=t.autoWidthCount,u=(s-r)/(l+(l-1)*o);u=Math.max(u,0),du.each(n,function(t,e){var i=t.maxWidth;i&&i=0||i?e.toGlobalCoord(e.dataToCoord(0)):e.getGlobalExtent()[0]}function Ei(t,e){return Sx(t,bx(e))}function zi(t,e){var i,n,a,r=t.type,o=e.getMin(),s=e.getMax(),l=null!=o,u=null!=s,h=t.getExtent();"ordinal"===r?i=e.getCategories().length:(n=e.get("boundaryGap"),du.isArray(n)||(n=[n||0,n||0]),"boolean"==typeof n[0]&&(n=[0,0]),n[0]=Up.parsePercent(n[0],1),n[1]=Up.parsePercent(n[1],1),a=h[1]-h[0]||Math.abs(h[0])),null==o&&(o="ordinal"===r?i?0:NaN:h[0]-n[0]*a),null==s&&(s="ordinal"===r?i?i-1:NaN:h[1]+n[1]*a),"dataMin"===o?o=h[0]:"function"==typeof o&&(o=o({min:h[0],max:h[1]})),"dataMax"===s?s=h[1]:"function"==typeof s&&(s=s({min:h[0],max:h[1]})),(null==o||!isFinite(o))&&(o=NaN),(null==s||!isFinite(s))&&(s=NaN),t.setBlank(du.eqNaN(o)||du.eqNaN(s)||"ordinal"===r&&!t.getOrdinalMeta().categories.length),e.getNeedCrossZero()&&(o>0&&s>0&&!l&&(o=0),o<0&&s<0&&!u&&(s=0));var c=e.ecModel;if(c&&"time"===r){var d,f=Cx("bar",c);if(du.each(f,function(t){d|=t.getBaseAxis()===e.axis}),d){var p=Lx(f),g=function(t,e,i,n){var a=i.axis.getExtent(),r=a[1]-a[0],o=Px(n,i.axis);if(void 0===o)return{min:t,max:e};var s=1/0;du.each(o,function(t){s=Math.min(t.offset,s)});var l=-1/0;du.each(o,function(t){l=Math.max(t.offset+t.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,h=e-t,c=h/(1-(s+l)/r)-h;return e+=c*(l/u),t-=c*(s/u),{min:t,max:e}}(o,s,e,p);o=g.min,s=g.max}}return[o,s]}function Vi(t){var e=t.getLabelModel().get("formatter"),i="category"===t.type?t.scale.getExtent()[0]:null;return"string"==typeof e?e=function(t){return function(e){return t.replace("{value}",null!=e?e:"")}}(e):"function"==typeof e?function(n,a){return null!=i&&(a=n-i),e(Bi(t,n),a)}:function(e){return t.scale.getLabel(e)}}function Bi(t,e){return"category"===t.type?t.scale.getLabel(e):e}function Gi(t,e){return Math.abs(t-e)>1^-(1&s),l=l>>1^-(1&l),a=s+=a,r=l+=r,n.push([s/i,l/i])}return n}function Wi(t,e){var i=Ui(t,"labels"),n=qi(e),a=Zi(i,n);if(a)return a;var r,o;return r=du.isFunction(n)?Xi(t,n):Yi(t,o="auto"===n?function(t){var e=t_(t).autoInterval;return null!=e?e:t_(t).autoInterval=t.calculateCategoryInterval()}(t):n),ji(i,n,{labels:r,labelCategoryInterval:o})}function Ui(t,e){return t_(t)[e]||(t_(t)[e]=[])}function Zi(t,e){for(var i=0;i1&&c/u>2&&(h=Math.round(Math.ceil(h/u)*u));var d={min:s.get("showMinLabel"),max:s.get("showMaxLabel")};d.min&&h!==o[0]&&n(o[0]);for(var f=h;f<=o[1];f+=u)n(f);return d.max&&f!==o[1]&&n(o[1]),l}function Xi(t,e,i){var n=t.scale,a=Qx(t),r=[];return du.each(n.getTicks(),function(t){var o=n.getLabel(t);e(t,o)&&r.push(i?t:{formattedLabel:a(t),rawLabel:o,tickValue:t})}),r}function qi(t){var e=t.get("interval");return null==e?"auto":e}function $i(t,e){var i=(t[1]-t[0])/e/2;t[0]+=i,t[1]-=i}function Ki(t,e,i){Dp.Group.call(this),this.updateData(t,e,i)}function Ji(t){return[t[0]/2,t[1]/2]}function Qi(t){this.group=new Dp.Group,this._symbolCtor=t||H_}function tn(t,e,i,n){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(n.isIgnore&&n.isIgnore(i))&&!(n.clipShape&&!n.clipShape.contain(e[0],e[1]))&&"none"!==t.getItemVisual(i,"symbol")}function en(t){return null==t||F_(t)||(t={isIgnore:t}),t||{}}function nn(t){var e=t.hostModel;return{itemStyle:e.getModel("itemStyle").getItemStyle(["color"]),hoverItemStyle:e.getModel("emphasis.itemStyle").getItemStyle(),symbolRotate:e.get("symbolRotate"),symbolOffset:e.get("symbolOffset"),hoverAnimation:e.get("hoverAnimation"),labelModel:e.getModel("label"),hoverLabelModel:e.getModel("emphasis.label"),cursorStyle:e.get("cursor")}}function an(t){return isNaN(t[0])||isNaN(t[1])}function rn(t,e,i,n,a,r,o,s,l,u,h){return"none"!==u&&u?function(t,e,i,n,a,r,o,s,l,u,h){for(var c=0,d=i,f=0;f=a||d<0)break;if(an(p)){if(h){d+=r;continue}break}if(d===i)t[r>0?"moveTo":"lineTo"](p[0],p[1]);else if(l>0){var g=e[c],m="y"===u?1:0,v=(p[m]-g[m])*l;tb(ib,g),ib[m]=g[m]+v,tb(nb,p),nb[m]=p[m]-v,t.bezierCurveTo(ib[0],ib[1],nb[0],nb[1],p[0],p[1])}else t.lineTo(p[0],p[1]);c=d,d+=r}return f}.apply(this,arguments):function(t,e,i,n,a,r,o,s,l,u,h){for(var c=0,d=i,f=0;f=a||d<0)break;if(an(p)){if(h){d+=r;continue}break}if(d===i)t[r>0?"moveTo":"lineTo"](p[0],p[1]),tb(ib,p);else if(l>0){var g=d+r,m=e[g];if(h)for(;m&&an(e[g]);)m=e[g+=r];var v=.5,y=e[c];if(!(m=e[g])||an(m))tb(nb,p);else{an(m)&&!h&&(m=p),pu.sub(eb,m,y);var x,_;if("x"===u||"y"===u){var b="x"===u?0:1;x=Math.abs(p[b]-y[b]),_=Math.abs(p[b]-m[b])}else x=pu.dist(p,y),_=pu.dist(p,m);Q_(nb,p,eb,-l*(1-(v=_/(_+x))))}K_(ib,ib,s),J_(ib,ib,o),K_(nb,nb,s),J_(nb,nb,o),t.bezierCurveTo(ib[0],ib[1],nb[0],nb[1],p[0],p[1]),Q_(ib,p,eb,l*v)}else t.lineTo(p[0],p[1]);c=d,d+=r}return f}.apply(this,arguments)}function on(t,e){var i=[1/0,1/0],n=[-1/0,-1/0];if(e)for(var a=0;an[0]&&(n[0]=r[0]),r[1]>n[1]&&(n[1]=r[1])}return{min:e?i:n,max:e?n:i}}function sn(t,e){if(t.length===e.length){for(var i=0;ie[0]?1:-1;e[0]+=n*i,e[1]-=n*i}return e}function hn(t,e,i,n){return"polar"===t.type?function(t,e,i,n){var a=t.getAngleAxis(),r=t.getRadiusAxis().getExtent().slice();r[0]>r[1]&&r.reverse();var o=a.getExtent(),s=Math.PI/180;i&&(r[0]-=.5,r[1]+=.5);var l=new Dp.Sector({shape:{cx:sb(t.cx,1),cy:sb(t.cy,1),r0:sb(r[0],1),r:sb(r[1],1),startAngle:-o[0]*s,endAngle:-o[1]*s,clockwise:a.inverse}});return e&&(l.shape.endAngle=-o[0]*s,Dp.initProps(l,{shape:{endAngle:-o[1]*s}},n)),l}(t,e,i,n):function(t,e,i,n){var a=un(t.getAxis("x")),r=un(t.getAxis("y")),o=t.getBaseAxis().isHorizontal(),s=Math.min(a[0],a[1]),l=Math.min(r[0],r[1]),u=Math.max(a[0],a[1])-s,h=Math.max(r[0],r[1])-l;if(i)s-=.5,u+=.5,l-=.5,h+=.5;else{var c=n.get("lineStyle.width")||2,d=n.get("clipOverflow")?c/2:Math.max(u,h);o?(l-=d,h+=2*d):(s-=d,u+=2*d)}var f=new Dp.Rect({shape:{x:s,y:l,width:u,height:h}});return e&&(f.shape[o?"width":"height"]=0,Dp.initProps(f,{shape:{width:u,height:h}},n)),f}(t,e,i,n)}function cn(t,e,i){for(var n=e.getBaseAxis(),a="x"===n.dim||"radius"===n.dim?0:1,r=[],o=0;o=0||t===e}function An(t){var e=(t.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[Dn(t)]}function Tn(t){return!!t.get("handle.show")}function Dn(t){return t.type+"||"+t.id}function Cn(t,e,i,n,a,r){var o=rw.getAxisPointerClass(t.axisPointerClass);if(o){var s=aw.getAxisPointerModel(e);s?(t._axisPointer||(t._axisPointer=new o)).render(e,s,n,r):Ln(t,n)}}function Ln(t,e,i){var n=t._axisPointer;n&&n.dispose(e,i),t._axisPointer=null}function Pn(t,e){"outside"===t.textPosition&&(t.textPosition=e)}function kn(t,e,i){i.style.text=null,Dp.updateProps(i,{shape:{width:0}},e,t,function(){i.parent&&i.parent.remove(i)})}function On(t,e,i){i.style.text=null,Dp.updateProps(i,{shape:{r:i.shape.r0}},e,t,function(){i.parent&&i.parent.remove(i)})}function Rn(t,e,i,n,a,r,o,s){var l=e.getItemVisual(i,"color"),u=e.getItemVisual(i,"opacity"),h=n.getModel("itemStyle"),c=n.getModel("emphasis.itemStyle").getBarItemStyle();s||t.setShape("r",h.get("barBorderRadius")||0),t.useStyle(du.defaults({fill:l,opacity:u},h.getBarItemStyle()));var d=n.getShallow("cursor");d&&t.attr("cursor",d);var f=o?a.height>0?"bottom":"top":a.width>0?"left":"right";s||vw(t.style,c,n,l,r,i,f),Dp.setHoverStyle(t,c)}function Nn(t,e,i){var n=t.getData(),a=[],r=n.getLayout("valueAxisHorizontal")?1:0;a[1-r]=n.getLayout("valueAxisStart");var o=new bw({shape:{points:n.getLayout("largePoints")},incremental:!!i,__startPoint:a,__valueIdx:r});e.add(o),function(t,e,i){var n=i.getVisual("borderColor")||i.getVisual("color"),a=e.getModel("itemStyle").getItemStyle(["color","borderColor"]);t.useStyle(a),t.style.fill=null,t.style.stroke=n,t.style.lineWidth=i.getLayout("barWidth")}(o,t,n)}function En(t,e,i,n,a){var r=(e.startAngle+e.endAngle)/2,o=Math.cos(r),s=Math.sin(r),l=i?n:0,u=[o*l,s*l];a?t.animate().when(200,{position:u}).start("bounceOut"):t.attr("position",u)}function zn(t,e){function i(){r.ignore=r.hoverIgnore,o.ignore=o.hoverIgnore}function n(){r.ignore=r.normalIgnore,o.ignore=o.normalIgnore}Dp.Group.call(this);var a=new Dp.Sector({z2:2}),r=new Dp.Polyline,o=new Dp.Text;this.add(a),this.add(r),this.add(o),this.updateData(t,e,!0),this.on("emphasis",i).on("normal",n).on("mouseover",i).on("mouseout",n)}function Vn(t,e,i,n,a,r,o){function s(e,i){for(var n=e;n>=0&&(t[n].y-=i,!(n>0&&t[n].y>t[n-1].y+t[n-1].height));n--);}function l(t,e,i,n,a,r){for(var o=e?Number.MAX_VALUE:0,s=0,l=t.length;s=o&&(d=o-10),!e&&d<=o&&(d=o+10),t[s].x=i+d*r,o=d}}t.sort(function(t,e){return t.y-e.y});for(var u,h=0,c=t.length,d=[],f=[],p=0;pe&&r+1t[r].y+t[r].height)return void s(r,n/2);s(i-1,n/2)}(p,c,-u),h=t[p].y+t[p].height;o-h<0&&s(c-1,h-o);for(p=0;p=i?f.push(t[p]):d.push(t[p]);l(d,!1,e,i,n,a),l(f,!0,e,i,n,a)}function Bn(){this.group=new Dp.Group}function Gn(t,e,i){c_.call(this,t,e,i),this.type="value",this.angle=0,this.name="",this.model}function Hn(t,e,i){this._model=t,this.dimensions=[],this._indicatorAxes=du.map(t.getIndicatorModels(),function(t,e){var i="indicator_"+e,n=new jw(i,new lx);return n.name=t.get("name"),n.model=t,t.axis=n,this.dimensions.push(i),n},this),this.resize(t,i),this.cx,this.cy,this.r,this.startAngle}function Fn(t,e){return du.defaults({show:e},t)}function Wn(){Lu.call(this)}function Un(t){this.name=t,this.zoomLimit,Lu.call(this),this._roamTransformable=new Wn,this._rawTransformable=new Wn,this._center,this._zoom}function Zn(t,e,i,n){var a=i.seriesModel,r=a?a.coordinateSystem:null;return r===this?r[t](n):null}function jn(t,e,i,n,a){iS.call(this,t),this.map=e,this._nameCoordMap=du.createHashMap(),this.loadGeoJson(i,n,a)}function Yn(t,e,i,n){var a=i.geoModel,r=i.seriesModel,o=a?a.coordinateSystem:r?r.coordinateSystem||(r.getReferringComponents("geo")[0]||{}).coordinateSystem:null;return o===this?o[t](n):null}function Xn(t,e){var i=t.get("boundingCoords");if(null!=i){var n=i[0],a=i[1];isNaN(n[0])||isNaN(n[1])||isNaN(a[0])||isNaN(a[1])||this.setBoundingRect(n[0],n[1],a[0]-n[0],a[1]-n[1])}var r,o=this.getBoundingRect(),s=t.get("layoutCenter"),l=t.get("layoutSize"),u=e.getWidth(),h=e.getHeight(),c=t.get("aspectScale")||.75,d=o.width/o.height*c,f=!1;s&&l&&(s=[Up.parsePercent(s[0],u),Up.parsePercent(s[1],h)],l=Up.parsePercent(l,Math.min(u,h)),isNaN(s[0])||isNaN(s[1])||isNaN(l)||(f=!0));if(f){var p={};d>1?(p.width=l,p.height=l/d):(p.height=l,p.width=l*d),p.y=s[1]-p.height/2,p.x=s[0]-p.width/2}else(r=t.getBoxLayoutParams()).aspect=d,p=ng.getLayoutRect(r,{width:u,height:h});this.setViewRect(p.x,p.y,p.width,p.height),this.setCenter(t.get("center")),this.setZoom(t.get("zoom"))}function qn(t,e){du.each(e.get("geoCoord"),function(e,i){t.addGeoCoord(i,e)})}function $n(t){return t[yS]||(t[yS]={})}function Kn(t){this.pointerChecker,this._zr=t,this._opt={};var e=du.bind,i=e(function(t){if(mc.notLeftMouse(t)||t.target&&t.target.draggable)return;var e=t.offsetX,i=t.offsetY;this.pointerChecker&&this.pointerChecker(t,e,i)&&(this._x=e,this._y=i,this._dragging=!0)},this),n=e(function(t){if(mc.notLeftMouse(t)||!Qn(this,"moveOnMouseMove",t)||!this._dragging||"pinch"===t.gestureEvent||xS.isTaken(this._zr,"globalPan"))return;var e=t.offsetX,i=t.offsetY,n=this._x,a=this._y,r=e-n,o=i-a;this._x=e,this._y=i,this._opt.preventDefaultMouseMove&&mc.stop(t.event),this.trigger("pan",r,o,n,a,e,i)},this),a=e(function(t){mc.notLeftMouse(t)||(this._dragging=!1)},this),r=e(function(t){if(!Qn(this,"zoomOnMouseWheel",t)||0===t.wheelDelta)return;var e=t.wheelDelta>0?1.1:1/1.1;Jn.call(this,t,e,t.offsetX,t.offsetY)},this),o=e(function(t){if(xS.isTaken(this._zr,"globalPan"))return;var e=t.pinchScale>1?1.1:1/1.1;Jn.call(this,t,e,t.pinchX,t.pinchY)},this);yu.call(this),this.setPointerChecker=function(t){this.pointerChecker=t},this.enable=function(e,s){this.disable(),this._opt=du.defaults(du.clone(s)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,preventDefaultMouseMove:!0}),null==e&&(e=!0),!0!==e&&"move"!==e&&"pan"!==e||(t.on("mousedown",i),t.on("mousemove",n),t.on("mouseup",a)),!0!==e&&"scale"!==e&&"zoom"!==e||(t.on("mousewheel",r),t.on("pinch",o))},this.disable=function(){t.off("mousedown",i),t.off("mousemove",n),t.off("mouseup",a),t.off("mousewheel",r),t.off("pinch",o)},this.dispose=this.disable,this.isDragging=function(){return this._dragging},this.isPinching=function(){return this._pinching}}function Jn(t,e,i,n){this.pointerChecker&&this.pointerChecker(t,i,n)&&(mc.stop(t.event),this.trigger("zoom",e,i,n))}function Qn(t,e,i){var n=t._opt[e];return n&&(!du.isString(n)||i.event[n+"Key"])}function ta(t,e){var i=t.getItemStyle(),n=t.get("areaColor");return null!=n&&(i.fill=n),i}function ea(t,e){e.eachChild(function(e){du.each(e.__regions,function(i){e.trigger(t.isSelected(i.name)?"emphasis":"normal")})})}function ia(t,e){var i=new Dp.Group;this._controller=new _S(t.getZr()),this._controllerHost={target:e?i:null},this.group=i,this._updateGroup=e,this._mouseDownFlag}function na(t,e,i){t[OS]={},kS(e,function(e,n){aa(e,n,t,i)})}function aa(t,e,i,n){i[OS][e]=t,t[RS]=i,t.dataType=e,n.struct&&(t[n.structAttr]=n.struct,n.struct[n.datasAttr[e]]=t),t.getLinkedData=function(t){var e=this[RS];return null==t||null==e?e:e[OS][t]}}function ra(t,e,i){this.root,this.data,this._nodes=[],this.hostModel=t,this.levelModels=du.map(e||[],function(e){return new Vp(e,t,t.ecModel)}),this.leavesModel=new Vp(i||{},t,t.ecModel)}function oa(t){var e=t.children;return e.length&&t.isExpand?e[e.length-1]:t.hierNode.thread}function sa(t){var e=t.children;return e.length&&t.isExpand?e[0]:t.hierNode.thread}function la(t,e){var i=t.getItemLayout(e);return i&&!isNaN(i.x)&&!isNaN(i.y)&&"none"!==t.getItemVisual(e,"symbol")}function ua(t,e,i){return i.itemModel=e,i.itemStyle=e.getModel("itemStyle").getItemStyle(),i.hoverItemStyle=e.getModel("emphasis.itemStyle").getItemStyle(),i.lineStyle=e.getModel("lineStyle").getLineStyle(),i.labelModel=e.getModel("label"),i.hoverLabelModel=e.getModel("emphasis.label"),!1===t.isExpand&&0!==t.children.length?i.symbolInnerColor=i.itemStyle.fill:i.symbolInnerColor="#fff",i}function ha(t,e,i,n,a,r){var o=!i,s=t.tree.getNodeByDataIndex(e),r=ua(s,s.getModel(),r),l=t.tree.root,u=s.parentNode===l?s:s.parentNode||s,h=t.getItemGraphicEl(u.dataIndex),c=u.getLayout(),d=h?{x:h.position[0],y:h.position[1],rawX:h.__radialOldRawX,rawY:h.__radialOldRawY}:c,f=s.getLayout();o?(i=new H_(t,e,r)).attr("position",[d.x,d.y]):i.updateData(t,e,r),i.__radialOldRawX=i.__radialRawX,i.__radialOldRawY=i.__radialRawY,i.__radialRawX=f.rawX,i.__radialRawY=f.rawY,n.add(i),t.setItemGraphicEl(e,i),Dp.updateProps(i,{position:[f.x,f.y]},a);var p=i.getSymbolPath();if("radial"===r.layout){var g,m,v=l.children[0],y=v.getLayout(),x=v.children.length;if(f.x===y.x&&!0===s.isExpand){var _={};_.x=(v.children[0].getLayout().x+v.children[x-1].getLayout().x)/2,_.y=(v.children[0].getLayout().y+v.children[x-1].getLayout().y)/2,(g=Math.atan2(_.y-y.y,_.x-y.x))<0&&(g=2*Math.PI+g),(m=_.xy.x)||(g-=Math.PI);var b=m?"left":"right";p.setStyle({textPosition:b,textRotation:-g,textOrigin:"center",verticalAlign:"middle"})}if(s.parentNode&&s.parentNode!==l){var w=i.__edge;w||(w=i.__edge=new Dp.BezierCurve({shape:da(r,d,d),style:du.defaults({opacity:0},r.lineStyle)})),Dp.updateProps(w,{shape:da(r,c,f),style:{opacity:1}},a),n.add(w)}}function ca(t,e,i,n,a,r){for(var o,s=t.tree.getNodeByDataIndex(e),l=t.tree.root,r=ua(s,s.getModel(),r),u=s.parentNode===l?s:s.parentNode||s;null==(o=u.getLayout());)u=u.parentNode===l?u:u.parentNode||u;Dp.updateProps(i,{position:[o.x+1,o.y+1]},a,function(){n.remove(i),t.setItemGraphicEl(e,null)}),i.fadeOut(null,{keepLabel:!0});var h=i.__edge;h&&Dp.updateProps(h,{shape:da(r,o,o),style:{opacity:0}},a,function(){n.remove(h)})}function da(t,e,i){var n,a,r,o,s=t.orient;if("radial"===t.layout){var l=e.rawX,u=e.rawY,h=i.rawX,c=i.rawY,d=GS(l,u),f=GS(l,u+(c-u)*t.curvature),p=GS(h,c+(u-c)*t.curvature),g=GS(h,c);return{x1:d.x,y1:d.y,x2:g.x,y2:g.y,cpx1:f.x,cpy1:f.y,cpx2:p.x,cpy2:p.y}}var l=e.x,u=e.y,h=i.x,c=i.y;return"LR"!==s&&"RL"!==s||(n=l+(h-l)*t.curvature,a=u,r=h+(l-h)*t.curvature,o=c),"TB"!==s&&"BT"!==s||(n=l,a=u+(c-u)*t.curvature,r=h,o=c+(u-c)*t.curvature),{x1:l,y1:u,x2:h,y2:c,cpx1:n,cpy1:a,cpx2:r,cpy2:o}}function fa(t){for(var e=[];t;)(t=t.parentNode)&&e.push(t);return e.reverse()}function pa(t){var e=0;du.each(t.children,function(t){pa(t);var i=t.value;du.isArray(i)&&(i=i[0]),e+=i});var i=t.value;du.isArray(i)&&(i=i[0]),(null==i||isNaN(i))&&(i=e),i<0&&(i=0),du.isArray(t.value)?t.value[0]=i:t.value=i}function ga(t){this.group=new Dp.Group,t.add(this.group)}function ma(t,e){var i=t.visual,n=[];du.isObject(i)?bM(i,function(t){n.push(t)}):null!=i&&n.push(i);e||1!==n.length||{color:1,symbol:1}.hasOwnProperty(t.type)||(n[1]=n[0]),Ma(t,n)}function va(t){return{applyVisual:function(e,i,n){e=this.mapValueToVisual(e),n("color",t(i("color"),e))},_doMap:wa([0,1])}}function ya(t){var e=this.option.visual;return e[Math.round(_M(t,[0,1],[0,e.length-1],!0))]||{}}function xa(t){return function(e,i,n){n(t,this.mapValueToVisual(e))}}function _a(t){var e=this.option.visual;return e[this.option.loop&&t!==SM?t%e.length:t]}function ba(){return this.option.visual[0]}function wa(t){return{linear:function(e){return _M(e,t,this.option.visual,!0)},category:_a,piecewise:function(e,i){var n=Sa.call(this,i);return null==n&&(n=_M(e,t,this.option.visual,!0)),n},fixed:ba}}function Sa(t){var e=this.option,i=e.pieceList;if(e.hasSpecialVisual){var n=i[MM.findPieceIndex(t,i)];if(n&&n.visual)return n.visual[this.type]}}function Ma(t,e){return t.visual=e,"color"===t.type&&(t.parsedVisual=du.map(e,function(t){return Wu.parse(t)})),e}function Ia(t,e,i){return t?e<=i:eu[1]&&(u[1]=l);var h=e.get("colorMappingBy"),c={type:o.name,dataExtent:u,visual:o.range};"color"!==c.type||"index"!==h&&"id"!==h?c.mappingMethod="linear":(c.mappingMethod="category",c.loop=!0);var d=new TM(c);return d.__drColorMappingBy=h,d}(0,o,s,0,h,f);du.each(f,function(t,e){if(t.depth>=a.length||t===a[t.depth]){Aa(t,function(t,e,i,n,a,r){var o=du.extend({},e);if(a){var s=a.type,l="color"===s&&a.__drColorMappingBy,u="index"===l?n:"id"===l?r.mapIdToIndex(i.getId()):i.getValue(t.get("visualDimension"));o[s]=a.mapValueToVisual(u)}return o}(o,h,t,e,p,r),i,n,a,r)}})}else l=Ta(h),t.setVisual("color",l)}}function Ta(t){var e=Da(t,"color");if(e){var i=Da(t,"colorAlpha"),n=Da(t,"colorSaturation");return n&&(e=Wu.modifyHSL(e,null,null,n)),i&&(e=Wu.modifyAlpha(e,i)),e}}function Da(t,e){var i=t[e];if(null!=i&&"none"!==i)return i}function Ca(t,e){var i=t.get(e);return DM(i)&&i.length?{name:e,range:i}:null}function La(t,e,i,n){var a,r;if(!t.isRemoved()){var o=t.getLayout();a=o.width,r=o.height;var s=(f=t.getModel()).get(zM),l=f.get(VM)/2,u=Oa(f),h=Math.max(s,u),c=s-l,d=h-l,f=t.getModel();t.setLayout({borderWidth:s,upperHeight:h,upperLabelHeight:u},!0);var p=(a=OM(a-2*c,0))*(r=OM(r-c-d,0)),g=function(t,e,i,n,a,r){var o=t.children||[],s=n.sort;"asc"!==s&&"desc"!==s&&(s=null);var l=null!=n.leafDepth&&n.leafDepth<=r;if(a&&!l)return t.viewChildren=[];!function(t,e){e&&t.sort(function(t,i){var n="asc"===e?t.getValue()-i.getValue():i.getValue()-t.getValue();return 0===n?"asc"===e?t.dataIndex-i.dataIndex:i.dataIndex-t.dataIndex:n})}(o=du.filter(o,function(t){return!t.isRemoved()}),s);var u=function(t,e,i){for(var n=0,a=0,r=e.length;as[1]&&(s[1]=e)})}else s=[NaN,NaN];return{sum:n,dataExtent:s}}(e,o,s);if(0===u.sum)return t.viewChildren=[];if(u.sum=function(t,e,i,n,a){if(!n)return i;for(var r=t.get("visibleMin"),o=a.length,s=o,l=o-1;l>=0;l--){var u=a["asc"===n?o-l-1:l].getValue();u/i*ea&&(a=n));var l=t.area*t.area,u=e*e*i;return l?OM(u*a/l,l/(u*r)):1/0}(x,v,e.squareRatio);S<=y?(_++,y=S):(x.area-=x.pop().getLayout().area,Pa(x,v,m,l,!1),v=RM(m.width,m.height),x.length=x.area=0,y=1/0)}if(x.length&&Pa(x,v,m,l,!0),!i){var M=f.get("childrenVisibleMin");null!=M&&pi[l[o]])&&(h=i[l[o]]);for(var c=0,d=t.length;c=0?n+=u:n-=u:p>=0?n-=u:n+=u}return n}function Ya(t,e){return t.getVisual("opacity")||t.getModel().get(e)}function Xa(t,e,i){var n=t.getGraphicEl(),a=Ya(t,e);null!=i&&(null==a&&(a=1),a*=i),n.downplay&&n.downplay(),n.traverse(function(t){"group"!==t.type&&t.setStyle("opacity",a)})}function qa(t,e){var i=Ya(t,e),n=t.getGraphicEl();n.highlight&&n.highlight(),n.traverse(function(t){"group"!==t.type&&t.setStyle("opacity",i)})}function $a(t){return t instanceof Array||(t=[t,t]),t}function Ka(t){t.eachEdge(function(t){var e=t.getModel().get("lineStyle.curveness")||0,i=pu.clone(t.node1.getLayout()),n=pu.clone(t.node2.getLayout()),a=[i,n];+e&&a.push([(i[0]+n[0])/2-(i[1]-n[1])*e,(i[1]+n[1])/2-(n[0]-i[0])*e]),t.setLayout(a)})}function Ja(t,e){return e&&("string"==typeof e?t=e.replace("{value}",null!=t?t:""):"function"==typeof e&&(t=e(t))),t}function Qa(t,e){function i(){r.ignore=r.hoverIgnore,o.ignore=o.hoverIgnore}function n(){r.ignore=r.normalIgnore,o.ignore=o.normalIgnore}Dp.Group.call(this);var a=new Dp.Polygon,r=new Dp.Polyline,o=new Dp.Text;this.add(a),this.add(r),this.add(o),this.updateData(t,e,!0),this.on("emphasis",i).on("normal",n).on("mouseover",i).on("mouseout",n)}function tr(t,e){var i=t[e]-t[1-e];return{span:Math.abs(i),sign:i>0?-1:i<0?1:e?-1:1}}function er(t,e){return Math.min(e[1],Math.max(e[0],t))}function ir(t,e,i){this._axesMap=du.createHashMap(),this._axesLayout={},this.dimensions=t.dimensions,this._rect,this._model=t,this._init(t,e,i)}function nr(t,e){return QI(tA(t,e[0]),e[1])}function ar(t){yu.call(this),this._zr=t,this.group=new Dp.Group,this._brushType,this._brushOption,this._panels,this._track=[],this._dragging,this._covers=[],this._creatingCover,this._creatingPanel,this._enableGlobalPan,this._uid="brushController_"+_A++,this._handlers={},lA(bA,function(t,e){this._handlers[e]=du.bind(t,this)},this)}function rr(t,e){var i=wA[e.brushType].createCover(t,e);return i.__brushOption=e,lr(i,e),t.group.add(i),i}function or(t,e){var i=hr(e);return i.endCreating&&(i.endCreating(t,e),lr(e,e.__brushOption)),e}function sr(t,e){var i=e.__brushOption;hr(e).updateCoverShape(t,e,i.range,i)}function lr(t,e){var i=e.z;null==i&&(i=fA),t.traverse(function(t){t.z=i,t.z2=i})}function ur(t,e){hr(e).updateCommon(t,e),sr(t,e)}function hr(t){return wA[t.__brushOption.brushType]}function cr(t,e,i){var n=t._panels;if(!n)return!0;var a,r=t._transform;return lA(n,function(t){t.isTargetByCursor(e,i,r)&&(a=t)}),a}function dr(t,e){var i=t._panels;if(!i)return!0;var n=e.__brushOption.panelId;return null==n||i[n]}function fr(t){var e=t._covers,i=e.length;return lA(e,function(e){t.group.remove(e)},t),e.length=0,!!i}function pr(t,e){var i=uA(t._covers,function(t){var e=t.__brushOption,i=du.clone(e.range);return{brushType:e.brushType,panelId:e.panelId,range:i}});t.trigger("brush",i,{isEnd:!!e.isEnd,removeOnClick:!!e.removeOnClick})}function gr(t){var e=t.length-1;return e<0&&(e=0),[t[0],t[e]]}function mr(t,e,i,n){var a=new Dp.Group;return a.add(new Dp.Rect({name:"main",style:_r(i),silent:!0,draggable:!0,cursor:"move",drift:sA(t,e,a,"nswe"),ondragend:sA(pr,e,{isEnd:!0})})),lA(n,function(i){a.add(new Dp.Rect({name:i,style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:sA(t,e,a,i),ondragend:sA(pr,e,{isEnd:!0})}))}),a}function vr(t,e,i,n){var a=n.brushStyle.lineWidth||0,r=cA(a,gA),o=i[0][0],s=i[1][0],l=o-a/2,u=s-a/2,h=i[0][1],c=i[1][1],d=h-r+a/2,f=c-r+a/2,p=h-o,g=c-s,m=p+a,v=g+a;xr(t,e,"main",o,s,p,g),n.transformable&&(xr(t,e,"w",l,u,r,v),xr(t,e,"e",d,u,r,v),xr(t,e,"n",l,u,m,r),xr(t,e,"s",l,f,m,r),xr(t,e,"nw",l,u,r,r),xr(t,e,"ne",d,u,r,r),xr(t,e,"sw",l,f,r,r),xr(t,e,"se",d,f,r,r))}function yr(t,e){var i=e.__brushOption,n=i.transformable,a=e.childAt(0);a.useStyle(_r(i)),a.attr({silent:!n,cursor:n?"move":"default"}),lA(["w","e","n","s","se","sw","ne","nw"],function(i){var a=e.childOfName(i),r=wr(t,i);a&&a.attr({silent:!n,invisible:!n,cursor:n?yA[r]+"-resize":null})})}function xr(t,e,i,n,a,r,o){var s=e.childOfName(i);s&&s.setShape(function(t){var e=hA(t[0][0],t[1][0]),i=hA(t[0][1],t[1][1]),n=cA(t[0][0],t[1][0]),a=cA(t[0][1],t[1][1]);return{x:e,y:i,width:n-e,height:a-i}}(Ir(t,e,[[n,a],[n+r,a+o]])))}function _r(t){return du.defaults({strokeNoScale:!0},t.brushStyle)}function br(t,e,i,n){var a=[hA(t,i),hA(e,n)],r=[cA(t,i),cA(e,n)];return[[a[0],r[0]],[a[1],r[1]]]}function wr(t,e){if(e.length>1){return("e"===(i=[wr(t,(e=e.split(""))[0]),wr(t,e[1])])[0]||"w"===i[0])&&i.reverse(),i.join("")}var i=Dp.transformDirection({w:"left",e:"right",n:"top",s:"bottom"}[e],function(t){return Dp.getTransform(t.group)}(t));return{left:"w",right:"e",top:"n",bottom:"s"}[i]}function Sr(t,e,i,n,a,r,o,s){var l=n.__brushOption,u=t(l.range),h=Mr(i,r,o);lA(a.split(""),function(t){var e=vA[t];u[e[0]][e[1]]+=h[e[0]]}),l.range=e(br(u[0][0],u[1][0],u[0][1],u[1][1])),ur(i,n),pr(i,{isEnd:!1})}function Mr(t,e,i){var n=t.group,a=n.transformCoordToLocal(e,i),r=n.transformCoordToLocal(0,0);return[a[0]-r[0],a[1]-r[1]]}function Ir(t,e,i){var n=dr(t,e);return n&&!0!==n?n.clipPath(i,t._transform):du.clone(i)}function Ar(t){var e=t.event;e.preventDefault&&e.preventDefault()}function Tr(t,e,i){return t.childOfName("main").contain(e,i)}function Dr(t,e,i,n){var a,r=t._creatingCover,o=t._creatingPanel,s=t._brushOption;if(t._track.push(i.slice()),function(t){var e=t._track;if(!e.length)return!1;var i=e[e.length-1],n=e[0],a=i[0]-n[0],r=i[1]-n[1];return dA(a*a+r*r,.5)>pA}(t)||r){if(o&&!r){"single"===s.brushMode&&fr(t);var l=du.clone(s);l.brushType=Cr(l.brushType,o),l.panelId=!0===o?null:o.panelId,r=t._creatingCover=rr(t,l),t._covers.push(r)}if(r){var u=wA[Cr(t._brushType,o)];r.__brushOption.range=u.getCreatingRange(Ir(t,r,t._track)),n&&(or(t,r),u.updateCommon(t,r)),sr(t,r),a={isEnd:n}}}else n&&"single"===s.brushMode&&s.removeOnClick&&cr(t,e,i)&&fr(t)&&(a={isEnd:n,removeOnClick:!0});return a}function Cr(t,e){return"auto"===t?e.defaultBrushType:t}function Lr(t){if(this._dragging){Ar(t);var e=Dr(this,t,this.group.transformCoordToLocal(t.offsetX,t.offsetY),!0);this._dragging=!1,this._track=[],this._creatingCover=null,e&&pr(this,e)}}function Pr(t){return{createCover:function(e,i){return mr(sA(Sr,function(e){var i=[e,[0,100]];return t&&i.reverse(),i},function(e){return e[t]}),e,i,[["w","e"],["n","s"]][t])},getCreatingRange:function(e){var i=gr(e);return[hA(i[0][t],i[1][t]),cA(i[0][t],i[1][t])]},updateCoverShape:function(e,i,n,a){var r,o=dr(e,i);if(!0!==o&&o.getLinearBrushOtherExtent)r=o.getLinearBrushOtherExtent(t,e._transform);else{var s=e._zr;r=[0,[s.getWidth(),s.getHeight()][1-t]]}var l=[n,r];t&&l.reverse(),vr(e,i,l,a)},updateCommon:yr,contain:Tr}}function kr(t){return ch.create(t)}function Or(t,e){var i=t._model;return i.get("axisExpandable")&&i.get("axisExpandTriggerOn")===e}function Rr(t,e,i,n){for(var a=[],r=0;r0){l=n.getLayout().y+a;n.setLayout({y:l},!0)}o=n.getLayout().y+n.getLayout().dy+e}if((a=o-e-i)>0){var l=n.getLayout().y-a;for(n.setLayout({y:l},!0),o=n.getLayout().y,r=s-2;r>=0;--r)(a=(n=t[r]).getLayout().y+n.getLayout().dy+e-o)>0&&(l=n.getLayout().y-a,n.setLayout({y:l},!0)),o=n.getLayout().y}})}function Br(t,e){for(var i=0,n=t.length,a=-1;++a0?"P":"N",r=n.getVisual("borderColor"+a)||n.getVisual("color"+a),o=i.getModel(tT).getItemStyle(iT);e.useStyle(o),e.style.fill=null,e.style.stroke=r}function Xr(t,e,i,n,a){return i>n?-1:i0?t.get(a,e-1)<=n?1:-1:1}function qr(t,e){t.eachChild(function(t){t.attr({z:e.z,zlevel:e.zlevel,style:{stroke:"stroke"===e.brushType?e.color:null,fill:"fill"===e.brushType?e.color:null}})})}function $r(t,e){vT.call(this);var i=new H_(t,e),n=new vT;this.add(i),this.add(n),n.beforeUpdate=function(){this.attr(i.getScale())},this.updateData(t,e)}function Kr(t){var e=t.data;e&&e[0]&&e[0][0]&&e[0][0].coord&&(t.data=ST(e,function(t){var e={coords:[t[0].coord,t[1].coord]};return t[0].name&&(e.fromName=t[0].name),t[1].name&&(e.toName=t[1].name),wT([e,t[0],t[1]])}))}function Jr(t,e,i){Dp.Group.call(this),this.add(this.createLine(t,e,i)),this._updateEffectSymbol(t,e)}function Qr(t,e,i){Dp.Group.call(this),this._createPolyline(t,e,i)}function to(t,e,i){LT.call(this,t,e,i),this._lastFrame=0,this._lastFramePercent=0}function eo(){this.group=new Dp.Group}function io(t){return t instanceof Array||(t=[t,t]),t}function no(){var t=du.createCanvas();this.canvas=t,this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={}}function ao(t,e,i,n){var a=t.getItemLayout(e),r=i.get("symbolRepeat"),o=i.get("symbolClip"),s=i.get("symbolPosition")||"start",l=(i.get("symbolRotate")||0)*Math.PI/180||0,u=i.get("symbolPatternSize")||2,h=i.isAnimationEnabled(),c={dataIndex:e,layout:a,itemModel:i,symbolType:t.getItemVisual(e,"symbol")||"circle",color:t.getItemVisual(e,"color"),symbolClip:o,symbolRepeat:r,symbolRepeatDirection:i.get("symbolRepeatDirection"),symbolPatternSize:u,rotation:l,animationModel:h?i:null,hoverAnimation:h&&i.get("hoverAnimation"),z2:i.getShallow("z",!0)||0};!function(t,e,i,n,a){var r,o=n.valueDim,s=t.get("symbolBoundingData"),l=n.coordSys.getOtherAxis(n.coordSys.getBaseAxis()),u=l.toGlobalCoord(l.dataToCoord(0)),h=1-+(i[o.wh]<=0);if(du.isArray(s)){var c=[ro(l,s[0])-u,ro(l,s[1])-u];c[1]0?1:r<0?-1:0}(i,r,a,n,c),function(t,e,i,n,a,r,o,s,l,u){var h=l.valueDim,c=l.categoryDim,d=Math.abs(i[c.wh]),f=t.getItemVisual(e,"symbolSize");du.isArray(f)?f=f.slice():(null==f&&(f="100%"),f=[f,f]);f[c.index]=UT(f[c.index],d),f[h.index]=UT(f[h.index],n?d:Math.abs(r)),u.symbolSize=f;(u.symbolScale=[f[0]/s,f[1]/s])[h.index]*=(l.isHorizontal?-1:1)*o}(t,e,a,r,0,c.boundingLength,c.pxSign,u,n,c),function(t,e,i,n,a){var r=t.get(YT)||0;r&&(qT.attr({scale:e.slice(),rotation:i}),qT.updateTransform(),r/=qT.getLineScale(),r*=e[n.valueDim.index]);a.valueLineWidth=r}(i,c.symbolScale,l,n,c);var d=c.symbolSize,f=i.get("symbolOffset");return du.isArray(f)&&(f=[UT(f[0],d[0]),UT(f[1],d[1])]),function(t,e,i,n,a,r,o,s,l,u,h,c){var d=h.categoryDim,f=h.valueDim,p=c.pxSign,g=Math.max(e[f.index]+s,0),m=g;if(n){var v=Math.abs(l),y=du.retrieve(t.get("symbolMargin"),"15%")+"",x=!1;y.lastIndexOf("!")===y.length-1&&(x=!0,y=y.slice(0,y.length-1)),y=UT(y,e[f.index]);var _=Math.max(g+2*y,0),b=x?0:2*y,w=ZT(n),S=w?n:_o((v+b)/_);_=g+2*(y=(v-S*g)/2/(x?S:S-1)),b=x?0:2*y,w||"fixed"===n||(S=u?_o((Math.abs(u)+b)/_):0),m=S*_-b,c.repeatTimes=S,c.symbolMargin=y}var M=p*(m/2),I=c.pathPosition=[];I[d.index]=i[d.wh]/2,I[f.index]="start"===o?M:"end"===o?l-M:l/2,r&&(I[0]+=r[0],I[1]+=r[1]);var A=c.bundlePosition=[];A[d.index]=i[d.xy],A[f.index]=i[f.xy];var T=c.barRectShape=du.extend({},i);T[f.wh]=p*Math.max(Math.abs(i[f.wh]),Math.abs(I[f.index]+M)),T[d.wh]=i[d.wh];var D=c.clipShape={};D[d.xy]=-i[d.xy],D[d.wh]=h.ecSize[d.wh],D[f.xy]=0,D[f.wh]=i[f.wh]}(i,d,a,r,0,f,s,c.valueLineWidth,c.boundingLength,c.repeatCutLength,n,c),c}function ro(t,e){return t.toGlobalCoord(t.dataToCoord(t.scale.parse(e)))}function oo(t){var e=t.symbolPatternSize,i=WT(t.symbolType,-e/2,-e/2,e,e,t.color);return i.attr({culling:!0}),"image"!==i.type&&i.setStyle({strokeNoScale:!0}),i}function so(t,e,i,n){function a(t){var e=l.slice(),n=i.pxSign,a=t;return("start"===i.symbolRepeatDirection?n>0:n<0)&&(a=h-1-t),e[u.index]=d*(a-h/2+.5)+l[u.index],{position:e,scale:i.symbolScale.slice(),rotation:i.rotation}}var r=t.__pictorialBundle,o=i.symbolSize,s=i.valueLineWidth,l=i.pathPosition,u=e.valueDim,h=i.repeatTimes||0,c=0,d=o[e.valueDim.index]+s+2*i.symbolMargin;for(vo(t,function(t){t.__pictorialAnimationIndex=c,t.__pictorialRepeatTimes=h,c0)],c=t.__pictorialBarRect;jT(c.style,u,r,n,e.seriesModel,a,h),Dp.setHoverStyle(c,u)}function _o(t){var e=Math.round(t);return Math.abs(t-e)<1e-4?e:Math.ceil(t)}function bo(t,e,i){this.dimension="single",this.dimensions=["single"],this._axis=null,this._rect,this._init(t,e,i),this.model=t}function wo(t,e,i,n,a){var r=t.axis;if(!r.scale.isBlank()&&r.containData(e))if(t.involveSeries){var o=function(t,e){var i=e.axis,n=i.dim,a=t,r=[],o=Number.MAX_VALUE,s=-1;return lD(e.seriesModels,function(e,l){var u,h,c=e.getData().mapDimension(n,!0);if(e.getAxisTooltipData){var d=e.getAxisTooltipData(c,t,i);h=d.dataIndices,u=d.nestestValue}else{if(!(h=e.getData().indicesOfNearest(c[0],t,"category"===i.type?.5:null)).length)return;u=e.getData().get(c[0],h[0])}if(null!=u&&isFinite(u)){var f=t-u,p=Math.abs(f);p<=o&&((p=0&&s<0)&&(o=p,s=f,a=u,r.length=0),lD(h,function(t){r.push({seriesIndex:e.seriesIndex,dataIndexInside:t,dataIndex:e.getData().getRawIndex(t)})}))}}),{payloadBatch:r,snapToValue:a}}(e,t),s=o.payloadBatch,l=o.snapToValue;s[0]&&null==a.seriesIndex&&du.extend(a,s[0]),!n&&t.snap&&r.containData(l)&&null!=l&&(e=l),i.showPointer(t,e,s,a),i.showTooltip(t,o,l)}else i.showPointer(t,e)}function So(t){var e=t.axis.model,i={},n=i.axisDim=t.axis.dim;return i.axisIndex=i[n+"AxisIndex"]=e.componentIndex,i.axisName=i[n+"AxisName"]=e.name,i.axisId=i[n+"AxisId"]=e.id,i}function Mo(t){return!t||null==t[0]||isNaN(t[0])||null==t[1]||isNaN(t[1])}function Io(t,e,i,n){e.handler(t,i,n)}function Ao(){}function To(t,e,i,n){Do(mD(i).lastProp,n)||(mD(i).lastProp=n,e?Dp.updateProps(i,n,t):(i.stopAnimation(),i.attr(n)))}function Do(t,e){if(du.isObject(t)&&du.isObject(e)){var i=!0;return du.each(e,function(e,n){i=i&&Do(t[n],e)}),!!i}return t===e}function Co(t,e){t[e.get("label.show")?"show":"hide"]()}function Lo(t){return{position:t.position.slice(),rotation:t.rotation||0}}function Po(t,e,i){var n=e.get("z"),a=e.get("zlevel");t&&t.traverse(function(t){"group"!==t.type&&(null!=n&&(t.z=n),null!=a&&(t.zlevel=a),t.silent=i)})}function ko(t,e,i,n,a){var r=Oo(i.get("value"),e.axis,e.ecModel,i.get("seriesDataIndices"),{precision:i.get("label.precision"),formatter:i.get("label.formatter")}),o=i.getModel("label"),s=qp.normalizeCssArray(o.get("padding")||0),l=o.getFont(),u=jh.getBoundingRect(r,l),h=a.position,c=u.width+s[1]+s[3],d=u.height+s[0]+s[2],f=a.align;"right"===f&&(h[0]-=c),"center"===f&&(h[0]-=c/2);var p=a.verticalAlign;"bottom"===p&&(h[1]-=d),"middle"===p&&(h[1]-=d/2),function(t,e,i,n){var a=n.getWidth(),r=n.getHeight();t[0]=Math.min(t[0]+e,a)-e,t[1]=Math.min(t[1]+i,r)-i,t[0]=Math.max(t[0],0),t[1]=Math.max(t[1],0)}(h,c,d,n);var g=o.get("backgroundColor");g&&"auto"!==g||(g=e.get("axisLine.lineStyle.color")),t.label={shape:{x:0,y:0,width:c,height:d,r:o.get("borderRadius")},position:h.slice(),style:{text:r,textFont:l,textFill:o.getTextColor(),textPosition:"inside",fill:g,stroke:o.get("borderColor")||"transparent",lineWidth:o.get("borderWidth")||0,shadowBlur:o.get("shadowBlur"),shadowColor:o.get("shadowColor"),shadowOffsetX:o.get("shadowOffsetX"),shadowOffsetY:o.get("shadowOffsetY")},z2:10}}function Oo(t,e,i,n,a){t=e.scale.parse(t);var r=e.scale.getLabel(t,{precision:a.precision}),o=a.formatter;if(o){var s={value:kx.getAxisRawValue(e,t),seriesData:[]};du.each(n,function(t){var e=i.getSeriesByIndex(t.seriesIndex),n=t.dataIndexInside,a=e&&e.getDataParams(n);a&&s.seriesData.push(a)}),du.isString(o)?r=o.replace("{value}",r):du.isFunction(o)&&(r=o(s))}return r}function Ro(t,e,i){var n=Mu.create();return Mu.rotate(n,n,i.rotation),Mu.translate(n,n,i.position),Dp.applyTransform([t.dataToCoord(e),(i.labelOffset||0)+(i.labelDirection||1)*(i.labelMargin||0)],n)}function No(t,e){var i={};return i[e.dim+"AxisIndex"]=e.index,t.getCartesian(i)}function Eo(t){return"x"===t.dim?0:1}function zo(t){return t.isHorizontal()?0:1}function Vo(t,e){var i=t.getRect();return[i[SD[e]],i[SD[e]]+i[MD[e]]]}function Bo(t,e,i){if(t.count())for(var n,a=e.coordinateSystem,r=e.getLayerSeries(),o=t.mapDimension("single"),s=t.mapDimension("value"),l=du.map(r,function(e){return du.map(e.indices,function(e){var i=a.dataToPoint(t.get(o,e));return i[1]=t.get(s,e),i})}),u=function(t){for(var e=t.length,i=t[0].length,n=[],a=[],r=0,o={},s=0;sr&&(r=u),n.push(u)}for(var h=0;hr&&(r=d)}return o.y0=a,o.max=r,o}(l),h=u.y0,c=i/u.max,d=r.length,f=r[0].indices.length,p=0;pe[0]&&(e=e.slice().reverse());var n=t.coordToPoint([e[0],i]),a=t.coordToPoint([e[1],i]);return{x1:n[0],y1:n[1],x2:a[0],y2:a[1]}}function gs(t){return t.getRadiusAxis().inverse?0:1}function ms(t){var e=t[0],i=t[t.length-1];e&&i&&Math.abs(Math.abs(e.coord-i.coord)-360)<1e-4&&t.pop()}function vs(t,e){e.update="updateView",C_.registerAction(e,function(e,i){var n={};return i.eachComponent({mainType:"geo",query:e},function(i){i[t](e.name);var a=i.coordinateSystem;du.each(a.regions,function(t){n[t.name]=i.isSelected(t.name)||!1})}),{selected:n,name:e.name}})}function ys(t){if(t)for(var e in t)if(t.hasOwnProperty(e))return!0}function xs(t){var e=["x","y"],i=["width","height"];return{point:function(e,i,n){if(e){var a=n.range;return _s(e[t],a)}},rect:function(n,a,r){if(n){var o=r.range,s=[n[e[t]],n[e[t]]+n[i[t]]];return s[1]=-1e-6}(l))return!1;var u=ws(a-t,a-o,r-e,r-s)/l;if(u<0||u>1)return!1;var h=ws(i-t,a-t,n-e,r-e)/l;if(h<0||h>1)return!1;return!0}(t,e,i,n,s[0],s[1],o[0],o[1]))return!0;o=s}}function ws(t,e,i,n){return t*n-e*i}function Ss(t,e,i){var n=this._targetInfoList=[],a={},r=Is(e,t);nL(uL,function(t,e){(!i||!i.include||aL(i.include,e)>=0)&&t(r,n,a)})}function Ms(t){return t[0]>t[1]&&t.reverse(),t}function Is(t,e){return Wc.parseFinder(t,e,{includeMainTypes:sL})}function As(t,e,i,n){var a=i.getAxis(["x","y"][t]),r=Ms(du.map([0,1],function(t){return e?a.coordToData(a.toLocalCoord(n[t])):a.toGlobalCoord(a.dataToCoord(n[t]))})),o=[];return o[t]=r,o[1-t]=[NaN,NaN],{values:r,xyMinMax:o}}function Ts(t,e,i,n){return[e[0]-n[t]*i[0],e[1]-n[t]*i[1]]}function Ds(t){return t?[t[0][1]-t[0][0],t[1][1]-t[1][0]]:[NaN,NaN]}function Cs(t,e,i,n){for(var a=0,r=e.length;a=0&&(o[r]=+o[r].toFixed(h)),o}function tl(t,e,i,n){var a={};return null!=t.valueIndex||null!=t.valueDim?(a.valueDataDim=null!=t.valueIndex?e.getDimension(t.valueIndex):t.valueDim,a.valueAxis=i.getAxis(function(t,e){var i=t.getData(),n=i.dimensions;e=i.getDimension(e);for(var a=0;a-vO}function Il(t,e){e&&Al(t,"transform","matrix("+uO.call(e,",")+")")}function Al(t,e,i){(!i||"linear"!==i.type&&"radial"!==i.type)&&("string"==typeof i&&i.indexOf("NaN")>-1&&console.log(i),t.setAttribute(e,i))}function Tl(t,e,i){if(function(t,e){var i=e?t.textFill:t.fill;return null!=i&&i!==hO}(e,i)){var n=i?e.textFill:e.fill;n="transparent"===n?hO:n,"none"!==t.getAttribute("clip-path")&&n===hO&&(n="rgba(0, 0, 0, 0.002)"),Al(t,"fill",n),Al(t,"fill-opacity",e.opacity)}else Al(t,"fill",hO);if(function(t,e){var i=e?t.textStroke:t.stroke;return null!=i&&i!==hO}(e,i)){var a=i?e.textStroke:e.stroke;Al(t,"stroke",a="transparent"===a?hO:a);Al(t,"stroke-width",(i?e.textStrokeWidth:e.lineWidth)/(!i&&e.strokeNoScale?e.host.getLineScale():1)),Al(t,"paint-order",i?"stroke":"fill"),Al(t,"stroke-opacity",e.opacity);e.lineDash?(Al(t,"stroke-dasharray",e.lineDash.join(",")),Al(t,"stroke-dashoffset",cO(e.lineDashOffset||0))):Al(t,"stroke-dasharray",""),e.lineCap&&Al(t,"stroke-linecap",e.lineCap),e.lineJoin&&Al(t,"stroke-linejoin",e.lineJoin),e.miterLimit&&Al(t,"stroke-miterlimit",e.miterLimit)}else Al(t,"stroke",hO)}function Dl(t){return"middle"===t?"middle":"bottom"===t?"baseline":"hanging"}function Cl(){}function Ll(t,e,i,n,a){this._zrId=t,this._svgRoot=e,this._tagNames="string"==typeof i?[i]:i,this._markLabel=n,this._domName=a||"_dom",this.nextId=0}function Pl(t,e){LO.call(this,t,e,["linearGradient","radialGradient"],"__gradient_in_use__")}function kl(t,e){LO.call(this,t,e,"clipPath","__clippath_in_use__")}function Ol(t,e){LO.call(this,t,e,["filter"],"__filter_in_use__","_shadowDom")}function Rl(t){return t&&(t.shadowBlur||t.shadowOffsetX||t.shadowOffsetY||t.textShadowBlur||t.textShadowOffsetX||t.textShadowOffsetY)}function Nl(t){return parseInt(t,10)}function El(t,e){return e&&t&&e.parentNode!==t}function zl(t,e,i){if(El(t,e)&&i){var n=i.nextSibling;n?t.insertBefore(e,n):t.appendChild(e)}}function Vl(t,e){if(El(t,e)){var i=t.firstChild;i?t.insertBefore(e,i):t.appendChild(e)}}function Bl(t,e){e&&t&&e.parentNode===t&&t.removeChild(e)}function Gl(t){return t.__textSvgEl}function Hl(t){return t.__svgEl}function Fl(t,e){void 0===e&&(e={});var i=document.createElement(t);return Object.keys(e).forEach(function(t){i[t]=e[t]}),i}function Wl(t){if(!document.documentElement.contains(t))return{detached:!0,rendered:!1};for(var e=t;e!==document;){if("none"===getComputedStyle(e).display)return{detached:!1,rendered:!1};e=e.parentNode}return{detached:!1,rendered:!0}}function Ul(){var t=this;jl(this),this.__resize_raf__&&function(t){xR||(xR=(window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||function(t){clearTimeout(t)}).bind(window)),xR(t)}(this.__resize_raf__),this.__resize_raf__=function(t){return yR||(yR=(window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(t){return setTimeout(t,16)}).bind(window)),yR(t)}(function(){var e=function(t){var e=t.__resize_last__,i=e.width,n=e.height,a=t.offsetWidth,r=t.offsetHeight;return a!==i||r!==n?{width:a,height:r}:null}(t);e&&(t.__resize_last__=e,Zl(t))})}function Zl(t){t.__resize_listeners__.forEach(function(e){e.call(t)})}function jl(t){var e=t.__resize_triggers__,i=e.expand,n=e.expandChild,a=e.contract,r=a.scrollWidth,o=a.scrollHeight,s=i.offsetWidth,l=i.offsetHeight,u=i.scrollWidth,h=i.scrollHeight;a.scrollLeft=r,a.scrollTop=o,n.style.width=s+1+"px",n.style.height=l+1+"px",i.scrollLeft=u,i.scrollTop=h}var Yl,Xl="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};"undefined"!=typeof window?Yl=window.__DEV__:void 0!==Xl&&(Yl=Xl),void 0===Yl&&(Yl=!0);var ql=2311,$l=function(){return ql++},Kl={},Jl=Kl="object"==typeof wx&&"function"==typeof wx.getSystemInfoSync?{browser:{},os:{},node:!1,wxa:!0,canvasSupported:!0,svgSupported:!1,touchEventsSupported:!0}:"undefined"==typeof document&&"undefined"!=typeof self?{browser:{},os:{},node:!1,worker:!0,canvasSupported:!0}:"undefined"==typeof navigator?{browser:{},os:{},node:!0,worker:!1,canvasSupported:!0,svgSupported:!0}:function(t){var e={},i=t.match(/Firefox\/([\d.]+)/),n=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),a=t.match(/Edge\/([\d.]+)/),r=/micromessenger/i.test(t);return i&&(e.firefox=!0,e.version=i[1]),n&&(e.ie=!0,e.version=n[1]),a&&(e.edge=!0,e.version=a[1]),r&&(e.weChat=!0),{browser:e,os:{},node:!1,canvasSupported:!!document.createElement("canvas").getContext,svgSupported:"undefined"!=typeof SVGRect,touchEventsSupported:"ontouchstart"in window&&!e.ie&&!e.edge,pointerEventsSupported:"onpointerdown"in window&&(e.edge||e.ie&&e.version>=11)}}(navigator.userAgent),Ql={"[object Function]":1,"[object RegExp]":1,"[object Date]":1,"[object Error]":1,"[object CanvasGradient]":1,"[object CanvasPattern]":1,"[object Image]":1,"[object Canvas]":1},tu={"[object Int8Array]":1,"[object Uint8Array]":1,"[object Uint8ClampedArray]":1,"[object Int16Array]":1,"[object Uint16Array]":1,"[object Int32Array]":1,"[object Uint32Array]":1,"[object Float32Array]":1,"[object Float64Array]":1},eu=Object.prototype.toString,iu=Array.prototype,nu=iu.forEach,au=iu.filter,ru=iu.slice,ou=iu.map,su=iu.reduce,lu={},uu=function(){return lu.createCanvas()};lu.createCanvas=function(){return document.createElement("canvas")};var hu,cu="__ec_primitive__";c.prototype={constructor:c,get:function(t){return this.hasOwnProperty(t)?this[t]:null},set:function(t,e){return this[t]=e},each:function(t,e){void 0!==e&&(t=r(t,e));for(var i in this)this.hasOwnProperty(i)&&t(this[i],i)},removeKey:function(t){delete this[t]}};var du={$override:function(t,e){"createCanvas"===t&&(hu=null),lu[t]=e},clone:e,merge:i,mergeAll:function(t,e){for(var n=t[0],a=1,r=t.length;a3&&(e=mu.call(e,1));for(var n=this._$handlers[t],a=n.length,r=0;r4&&(e=mu.call(e,1,e.length-1));for(var n=e[e.length-1],a=this._$handlers[t],r=a.length,o=0;o=0;r--){var o;if(n[r]!==i&&!n[r].ignore&&(o=function(t,e,i){if(t[t.rectHover?"rectContain":"contain"](e,i)){for(var n,a=t;a;){if(a.clipPath&&!a.clipPath.contain(e,i))return!1;a.silent&&(n=!0),a=a.parent}return!n||xu}return!1}(n[r],t,e))&&(!a.topTarget&&(a.topTarget=n[r]),o!==xu)){a.target=n[r];break}}return a}},du.each(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(t){bu.prototype[t]=function(e){var i=this.findHover(e.zrX,e.zrY),n=i.target;if("mousedown"===t)this._downEl=n,this._downPoint=[e.zrX,e.zrY],this._upEl=n;else if("mouseup"===t)this._upEl=n;else if("click"===t){if(this._downEl!==this._upEl||!this._downPoint||pu.dist(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(i,t,e)}}),du.mixin(bu,yu),du.mixin(bu,gu);var wu=bu,Su="undefined"==typeof Float32Array?Array:Float32Array,Mu={create:x,identity:_,copy:b,mul:function(t,e,i){var n=e[0]*i[0]+e[2]*i[1],a=e[1]*i[0]+e[3]*i[1],r=e[0]*i[2]+e[2]*i[3],o=e[1]*i[2]+e[3]*i[3],s=e[0]*i[4]+e[2]*i[5]+e[4],l=e[1]*i[4]+e[3]*i[5]+e[5];return t[0]=n,t[1]=a,t[2]=r,t[3]=o,t[4]=s,t[5]=l,t},translate:function(t,e,i){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4]+i[0],t[5]=e[5]+i[1],t},rotate:function(t,e,i){var n=e[0],a=e[2],r=e[4],o=e[1],s=e[3],l=e[5],u=Math.sin(i),h=Math.cos(i);return t[0]=n*h+o*u,t[1]=-n*u+o*h,t[2]=a*h+s*u,t[3]=-a*u+h*s,t[4]=h*r+u*l,t[5]=h*l-u*r,t},scale:function(t,e,i){var n=i[0],a=i[1];return t[0]=e[0]*n,t[1]=e[1]*a,t[2]=e[2]*n,t[3]=e[3]*a,t[4]=e[4]*n,t[5]=e[5]*a,t},invert:function(t,e){var i=e[0],n=e[2],a=e[4],r=e[1],o=e[3],s=e[5],l=i*o-r*n;return l?(l=1/l,t[0]=o*l,t[1]=-r*l,t[2]=-n*l,t[3]=i*l,t[4]=(n*s-o*a)*l,t[5]=(r*a-i*s)*l,t):null},clone:function(t){var e=x();return b(e,t),e}},Iu=Mu.identity,Au=5e-5,Tu=function(t){(t=t||{}).position||(this.position=[0,0]),null==t.rotation&&(this.rotation=0),t.scale||(this.scale=[1,1]),this.origin=this.origin||null},Du=Tu.prototype;Du.transform=null,Du.needLocalTransform=function(){return w(this.rotation)||w(this.position[0])||w(this.position[1])||w(this.scale[0]-1)||w(this.scale[1]-1)},Du.updateTransform=function(){var t=this.parent,e=t&&t.transform,i=this.needLocalTransform(),n=this.transform;i||e?(n=n||Mu.create(),i?this.getLocalTransform(n):Iu(n),e&&(i?Mu.mul(n,t.transform,n):Mu.copy(n,t.transform)),this.transform=n,this.invTransform=this.invTransform||Mu.create(),Mu.invert(this.invTransform,n)):n&&Iu(n)},Du.getLocalTransform=function(t){return Tu.getLocalTransform(this,t)},Du.setTransform=function(t){var e=this.transform,i=t.dpr||1;e?t.setTransform(i*e[0],i*e[1],i*e[2],i*e[3],i*e[4],i*e[5]):t.setTransform(i,0,0,i,0,0)},Du.restoreTransform=function(t){var e=t.dpr||1;t.setTransform(e,0,0,e,0,0)};var Cu=[];Du.decomposeTransform=function(){if(this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(Mu.mul(Cu,t.invTransform,e),e=Cu);var i=e[0]*e[0]+e[1]*e[1],n=e[2]*e[2]+e[3]*e[3],a=this.position,r=this.scale;w(i-1)&&(i=Math.sqrt(i)),w(n-1)&&(n=Math.sqrt(n)),e[0]<0&&(i=-i),e[3]<0&&(n=-n),a[0]=e[4],a[1]=e[5],r[0]=i,r[1]=n,this.rotation=Math.atan2(-e[1]/n,e[0]/i)}},Du.getGlobalScale=function(){var t=this.transform;if(!t)return[1,1];var e=Math.sqrt(t[0]*t[0]+t[1]*t[1]),i=Math.sqrt(t[2]*t[2]+t[3]*t[3]);return t[0]<0&&(e=-e),t[3]<0&&(i=-i),[e,i]},Du.transformCoordToLocal=function(t,e){var i=[t,e],n=this.invTransform;return n&&pu.applyTransform(i,i,n),i},Du.transformCoordToGlobal=function(t,e){var i=[t,e],n=this.transform;return n&&pu.applyTransform(i,i,n),i},Tu.getLocalTransform=function(t,e){Iu(e=e||[]);var i=t.origin,n=t.scale||[1,1],a=t.rotation||0,r=t.position||[0,0];return i&&(e[4]-=i[0],e[5]-=i[1]),Mu.scale(e,e,n),a&&Mu.rotate(e,e,a),i&&(e[4]+=i[0],e[5]+=i[1]),e[4]+=r[0],e[5]+=r[1],e};var Lu=Tu,Pu={linear:function(t){return t},quadraticIn:function(t){return t*t},quadraticOut:function(t){return t*(2-t)},quadraticInOut:function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)},cubicIn:function(t){return t*t*t},cubicOut:function(t){return--t*t*t+1},cubicInOut:function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},quarticIn:function(t){return t*t*t*t},quarticOut:function(t){return 1- --t*t*t*t},quarticInOut:function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},quinticIn:function(t){return t*t*t*t*t},quinticOut:function(t){return--t*t*t*t*t+1},quinticInOut:function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},sinusoidalIn:function(t){return 1-Math.cos(t*Math.PI/2)},sinusoidalOut:function(t){return Math.sin(t*Math.PI/2)},sinusoidalInOut:function(t){return.5*(1-Math.cos(Math.PI*t))},exponentialIn:function(t){return 0===t?0:Math.pow(1024,t-1)},exponentialOut:function(t){return 1===t?1:1-Math.pow(2,-10*t)},exponentialInOut:function(t){return 0===t?0:1===t?1:(t*=2)<1?.5*Math.pow(1024,t-1):.5*(2-Math.pow(2,-10*(t-1)))},circularIn:function(t){return 1-Math.sqrt(1-t*t)},circularOut:function(t){return Math.sqrt(1- --t*t)},circularInOut:function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},elasticIn:function(t){var e,i=.1;return 0===t?0:1===t?1:(!i||i<1?(i=1,e=.1):e=.4*Math.asin(1/i)/(2*Math.PI),-i*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/.4))},elasticOut:function(t){var e,i=.1;return 0===t?0:1===t?1:(!i||i<1?(i=1,e=.1):e=.4*Math.asin(1/i)/(2*Math.PI),i*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/.4)+1)},elasticInOut:function(t){var e,i=.1;return 0===t?0:1===t?1:(!i||i<1?(i=1,e=.1):e=.4*Math.asin(1/i)/(2*Math.PI),(t*=2)<1?i*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/.4)*-.5:i*Math.pow(2,-10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/.4)*.5+1)},backIn:function(t){var e=1.70158;return t*t*((e+1)*t-e)},backOut:function(t){var e=1.70158;return--t*t*((e+1)*t+e)+1},backInOut:function(t){var e=2.5949095;return(t*=2)<1?t*t*((e+1)*t-e)*.5:.5*((t-=2)*t*((e+1)*t+e)+2)},bounceIn:function(t){return 1-Pu.bounceOut(1-t)},bounceOut:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},bounceInOut:function(t){return t<.5?.5*Pu.bounceIn(2*t):.5*Pu.bounceOut(2*t-1)+.5}},ku=Pu;S.prototype={constructor:S,step:function(t,e){if(this._initialized||(this._startTime=t+this._delay,this._initialized=!0),this._paused)this._pausedTime+=e;else{var i=(t-this._startTime-this._pausedTime)/this._life;if(!(i<0)){i=Math.min(i,1);var n=this.easing,a="string"==typeof n?ku[n]:n,r="function"==typeof a?a(i):i;return this.fire("frame",r),1==i?this.loop?(this.restart(t),"restart"):(this._needsRemove=!0,"destroy"):null}}},restart:function(t){var e=(t-this._startTime-this._pausedTime)%this._life;this._startTime=t-e+this.gap,this._pausedTime=0,this._needsRemove=!1},fire:function(t,e){this[t="on"+t]&&this[t](this._target,e)},pause:function(){this._paused=!0},resume:function(){this._paused=!1}};var Ou=S,Ru=function(){this.head=null,this.tail=null,this._len=0},Nu=Ru.prototype;Nu.insert=function(t){var e=new Eu(t);return this.insertEntry(e),e},Nu.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},Nu.remove=function(t){var e=t.prev,i=t.next;e?e.next=i:this.head=i,i?i.prev=e:this.tail=e,t.next=t.prev=null,this._len--},Nu.len=function(){return this._len},Nu.clear=function(){this.head=this.tail=null,this._len=0};var Eu=function(t){this.value=t,this.next,this.prev},zu=function(t){this._list=new Ru,this._map={},this._maxSize=t||10,this._lastRemovedEntry=null},Vu=zu.prototype;Vu.put=function(t,e){var i=this._list,n=this._map,a=null;if(null==n[t]){var r=i.len(),o=this._lastRemovedEntry;if(r>=this._maxSize&&r>0){var s=i.head;i.remove(s),delete n[s.key],a=s.value,this._lastRemovedEntry=s}o?o.value=e:o=new Eu(e),o.key=t,i.insertEntry(o),n[t]=o}return a},Vu.get=function(t){var e=this._map[t],i=this._list;if(null!=e)return e!==i.tail&&(i.remove(e),i.insertEntry(e)),e.value},Vu.clear=function(){this._list.clear(),this._map={}};var Bu=zu,Gu={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]},Hu=new Bu(20),Fu=null,Wu={parse:O,lift:function(t,e){var i=O(t);if(i){for(var n=0;n<3;n++)i[n]=e<0?i[n]*(1-e)|0:(255-i[n])*e+i[n]|0,i[n]>255?i[n]=255:t[n]<0&&(i[n]=0);return z(i,4===i.length?"rgba":"rgb")}},toHex:function(t){var e=O(t);if(e)return((1<<24)+(e[0]<<16)+(e[1]<<8)+ +e[2]).toString(16).slice(1)},fastLerp:N,fastMapToColor:N,lerp:E,mapToColor:E,modifyHSL:function(t,e,i,n){if(t=O(t))return t=function(t){if(t){var e,i,n=t[0]/255,a=t[1]/255,r=t[2]/255,o=Math.min(n,a,r),s=Math.max(n,a,r),l=s-o,u=(s+o)/2;if(0===l)e=0,i=0;else{i=u<.5?l/(s+o):l/(2-s-o);var h=((s-n)/6+l/2)/l,c=((s-a)/6+l/2)/l,d=((s-r)/6+l/2)/l;n===s?e=d-c:a===s?e=1/3+h-d:r===s&&(e=2/3+c-h),e<0&&(e+=1),e>1&&(e-=1)}var f=[360*e,i,u];return null!=t[3]&&f.push(t[3]),f}}(t),null!=e&&(t[0]=function(t){return(t=Math.round(t))<0?0:t>360?360:t}(e)),null!=i&&(t[1]=T(i)),null!=n&&(t[2]=T(n)),z(R(t),"rgba")},modifyAlpha:function(t,e){if((t=O(t))&&null!=e)return t[3]=I(e),z(t,"rgba")},stringify:z},Uu=du.isArrayLike,Zu=Array.prototype.slice,ju=function(t,e,i,n){this._tracks={},this._target=t,this._loop=e||!1,this._getter=i||function(t,e){return t[e]},this._setter=n||function(t,e,i){t[e]=i},this._clipCount=0,this._delay=0,this._doneList=[],this._onframeList=[],this._clipList=[]};ju.prototype={when:function(t,e){var i=this._tracks;for(var n in e)if(e.hasOwnProperty(n)){if(!i[n]){i[n]=[];var a=this._getter(this._target,n);if(null==a)continue;0!==t&&i[n].push({time:0,value:function(t){if(Uu(t)){var e=t.length;if(Uu(t[0])){for(var i=[],n=0;n=0&&!(m[i]<=e);i--);i=Math.min(i,u-2)}else{for(i=L;ie);i++);i=Math.min(i-1,u-2)}L=i,P=e;var n=m[i+1]-m[i];if(0!==n)if(I=(e-m[i])/n,l)if(T=v[i],A=v[0===i?i:i-1],D=v[i>u-2?u-1:i+1],C=v[i>u-3?u-1:i+2],d)F(A,T,D,C,I,I*I,I*I*I,o(t,a),g);else{if(f)r=F(A,T,D,C,I,I*I,I*I*I,k,1),r=U(k);else{if(p)return B(T,D,I);r=W(A,T,D,C,I,I*I,I*I*I)}s(t,a,r)}else if(d)G(v[i],v[i+1],I,o(t,a),g);else{var r;if(f)G(v[i],v[i+1],I,k,1),r=U(k);else{if(p)return B(v[i],v[i+1],I);r=V(v[i],v[i+1],I)}s(t,a,r)}},ondestroy:i});return e&&"spline"!==e&&(O.easing=e),O}}}(this,t,function(){--a||n._doneCallback()},this._tracks[r],r,e);o&&(this._clipList.push(o),a++,this.animation&&this.animation.addClip(o),i=o)}if(i){var s=i.onframe;i.onframe=function(t,e){s(t,e);for(var i=0;i1&&(Ku=function(){var t=arguments;for(var e in arguments)console.log(t[e])});var Ju=Ku,Qu=du.isString,th=du.isFunction,eh=du.isObject,ih=du.isArrayLike,nh=du.indexOf,ah=function(){this.animators=[]};ah.prototype={constructor:ah,animate:function(t,e){var i,n=!1,a=this,r=this.__zr;if(t){var o=t.split("."),s=a;n="shape"===o[0];for(var l=0,u=o.length;l0&&this.animate(t,!1).when(null==n?500:n,r).delay(a||0),this}};var rh=ah,oh=function(t){Lu.call(this,t),yu.call(this,t),rh.call(this,t),this.id=t.id||$l()};oh.prototype={type:"element",name:"",__zr:null,ignore:!1,clipPath:null,isGroup:!1,drift:function(t,e){switch(this.draggable){case"horizontal":e=0;break;case"vertical":t=0}var i=this.transform;i||(i=this.transform=[1,0,0,1,0,0]),i[4]+=t,i[5]+=e,this.decomposeTransform(),this.dirty(!1)},beforeUpdate:function(){},afterUpdate:function(){},update:function(){this.updateTransform()},traverse:function(t,e){},attrKV:function(t,e){if("position"===t||"scale"===t||"origin"===t){if(e){var i=this[t];i||(i=this[t]=[]),i[0]=e[0],i[1]=e[1]}}else this[t]=e},hide:function(){this.ignore=!0,this.__zr&&this.__zr.refresh()},show:function(){this.ignore=!1,this.__zr&&this.__zr.refresh()},attr:function(t,e){if("string"==typeof t)this.attrKV(t,e);else if(du.isObject(t))for(var i in t)t.hasOwnProperty(i)&&this.attrKV(i,t[i]);return this.dirty(!1),this},setClipPath:function(t){var e=this.__zr;e&&t.addSelfToZr(e),this.clipPath&&this.clipPath!==t&&this.removeClipPath(),this.clipPath=t,t.__zr=e,t.__clipTarget=this,this.dirty(!1)},removeClipPath:function(){var t=this.clipPath;t&&(t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__clipTarget=null,this.clipPath=null,this.dirty(!1))},addSelfToZr:function(t){this.__zr=t;var e=this.animators;if(e)for(var i=0;i=this.x&&t<=this.x+this.width&&e>=this.y&&e<=this.y+this.height},clone:function(){return new Z(this.x,this.y,this.width,this.height)},copy:function(t){this.x=t.x,this.y=t.y,this.width=t.width,this.height=t.height},plain:function(){return{x:this.x,y:this.y,width:this.width,height:this.height}}},Z.create=function(t){return new Z(t.x,t.y,t.width,t.height)};var ch=Z,dh=function(t){t=t||{},sh.call(this,t);for(var e in t)t.hasOwnProperty(e)&&(this[e]=t[e]);this._children=[],this.__storage=null,this.__dirty=!0};dh.prototype={constructor:dh,isGroup:!0,type:"group",silent:!1,children:function(){return this._children.slice()},childAt:function(t){return this._children[t]},childOfName:function(t){for(var e=this._children,i=0;i=0&&(i.splice(n,0,t),this._doAdd(t))}return this},_doAdd:function(t){t.parent&&t.parent.remove(t),t.parent=this;var e=this.__storage,i=this.__zr;e&&e!==t.__storage&&(e.addToStorage(t),t instanceof dh&&t.addChildrenToStorage(e)),i&&i.refresh()},remove:function(t){var e=this.__zr,i=this.__storage,n=this._children,a=du.indexOf(n,t);return a<0?this:(n.splice(a,1),t.parent=null,i&&(i.delFromStorage(t),t instanceof dh&&t.delChildrenFromStorage(i)),e&&e.refresh(),this)},removeAll:function(){var t,e,i=this._children,n=this.__storage;for(e=0;e=gh||f>=gh);if(p)break;g<0&&(g=0),g+=2}if((r=g)<1&&(r=1),1===n){for(l=0;l=0;l--)t[f+l]=t[d+l];if(0===n){v=!0;break}}if(t[c--]=s[h--],1==--o){v=!0;break}if(0!=(m=o-X(t[u],s,0,o,o-1,e))){for(o-=m,f=1+(c-=m),d=1+(h-=m),l=0;l=gh||m>=gh);if(v)break;p<0&&(p=0),p+=2}if((r=p)<1&&(r=1),1===o){for(f=1+(c-=n),d=1+(u-=n),l=n-1;l>=0;l--)t[f+l]=t[d+l];t[c]=s[h]}else{if(0===o)throw new Error;for(d=c-(o-1),l=0;l=0;l--)t[f+l]=t[d+l];t[c]=s[h]}else for(d=c-(o-1),l=0;l1;){var t=o-2;if(t>=1&&a[t-1]<=a[t]+a[t+1]||t>=2&&a[t-2]<=a[t]+a[t-1])a[t-1]a[t+1])break;i(t)}},this.forceMergeRuns=function(){for(;o>1;){var t=o-2;t>0&&a[t-1]=ph;)e|=1&t,t>>=1;return t+e}(a);do{if((r=j(t,i,n,e))s&&(l=s),Y(t,i,i+l,i+r,e),r=l}o.pushRun(i,r),o.mergeRuns(),a-=r,i+=r}while(0!==a);o.forceMergeRuns()}},vh=function(){this._roots=[],this._displayList=[],this._displayListLen=0};vh.prototype={constructor:vh,traverse:function(t,e){for(var i=0;i=0&&(this.delFromStorage(t),this._roots.splice(a,1),t instanceof fh&&t.delChildrenFromStorage(this))}},addToStorage:function(t){return t&&(t.__storage=this,t.dirty(!1)),this},delFromStorage:function(t){return t&&(t.__storage=null),this},dispose:function(){this._renderList=this._roots=null},displayableSortFunc:$};for(var yh=vh,xh={shadowBlur:1,shadowOffsetX:1,shadowOffsetY:1,textShadowBlur:1,textShadowOffsetX:1,textShadowOffsetY:1,textBoxShadowBlur:1,textBoxShadowOffsetX:1,textBoxShadowOffsetY:1},_h=function(t,e,i){return xh.hasOwnProperty(e)?i*=t.dpr:i},bh=[["shadowBlur",0],["shadowOffsetX",0],["shadowOffsetY",0],["shadowColor","#000"],["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]],wh=function(t,e){this.extendFrom(t,!1),this.host=e},Sh=wh.prototype={constructor:wh,host:null,fill:"#000",stroke:null,opacity:1,lineDash:null,lineDashOffset:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,lineWidth:1,strokeNoScale:!1,text:null,font:null,textFont:null,fontStyle:null,fontWeight:null,fontSize:null,fontFamily:null,textTag:null,textFill:"#000",textStroke:null,textWidth:null,textHeight:null,textStrokeWidth:0,textLineHeight:null,textPosition:"inside",textRect:null,textOffset:null,textAlign:null,textVerticalAlign:null,textDistance:5,textShadowColor:"transparent",textShadowBlur:0,textShadowOffsetX:0,textShadowOffsetY:0,textBoxShadowColor:"transparent",textBoxShadowBlur:0,textBoxShadowOffsetX:0,textBoxShadowOffsetY:0,transformText:!1,textRotation:0,textOrigin:null,textBackgroundColor:null,textBorderColor:null,textBorderWidth:0,textBorderRadius:0,textPadding:null,rich:null,truncate:null,blend:null,bind:function(t,e,i){for(var n=i&&i.style,a=!n,r=0;r0},extendFrom:function(t,e){if(t)for(var i in t)!t.hasOwnProperty(i)||!0!==e&&(!1===e?this.hasOwnProperty(i):null==t[i])||(this[i]=t[i])},set:function(t,e){"string"==typeof t?this[t]=e:this.extendFrom(t,!0)},clone:function(){var t=new this.constructor;return t.extendFrom(this,!0),t},getGradient:function(t,e,i){for(var n=("radial"===e.type?function(t,e,i){var n=i.width,a=i.height,r=Math.min(n,a),o=null==e.x?.5:e.x,s=null==e.y?.5:e.y,l=null==e.r?.5:e.r;return e.global||(o=o*n+i.x,s=s*a+i.y,l*=r),t.createRadialGradient(o,s,0,o,s,l)}:function(t,e,i){var n=null==e.x?0:e.x,a=null==e.x2?1:e.x2,r=null==e.y?0:e.y,o=null==e.y2?0:e.y2;return e.global||(n=n*i.width+i.x,a=a*i.width+i.x,r=r*i.height+i.y,o=o*i.height+i.y),n=isNaN(n)?0:n,a=isNaN(a)?1:a,r=isNaN(r)?0:r,o=isNaN(o)?0:o,t.createLinearGradient(n,r,a,o)})(t,e,i),a=e.colorStops,r=0;rl&&(i*=l/(c=i+n),n*=l/c),a+r>l&&(a*=l/(c=a+r),r*=l/c),n+a>u&&(n*=u/(c=n+a),a*=u/c),i+r>u&&(i*=u/(c=i+r),r*=u/c),t.moveTo(o+i,s),t.lineTo(o+l-n,s),0!==n&&t.arc(o+l-n,s+n,n,-Math.PI/2,0),t.lineTo(o+l,s+u-a),0!==a&&t.arc(o+l-a,s+u-a,a,0,Math.PI/2),t.lineTo(o+r,s+u),0!==r&&t.arc(o+r,s+u-r,r,Math.PI/2,Math.PI),t.lineTo(o,s+i),0!==i&&t.arc(o+i,s+i,i,Math.PI,1.5*Math.PI)}},Xh=du.retrieve2,qh=du.retrieve3,$h=du.each,Kh=du.normalizeCssArray,Jh=du.isString,Qh=du.isObject,tc={left:1,right:1,center:1},ec={top:1,bottom:1,middle:1},ic={normalizeTextStyle:function(t){return ht(t),$h(t.rich,ht),t},renderText:function(t,e,i,n,a){n.rich?function(t,e,i,n,a){var r=t.__textCotentBlock;r&&!t.__dirty||(r=t.__textCotentBlock=jh.parseRichText(i,n)),function(t,e,i,n,a){var r=i.width,o=i.outerWidth,s=i.outerHeight,l=n.textPadding,u=gt(0,n,a),h=u.baseX,c=u.baseY,d=u.textAlign,f=u.textVerticalAlign;ct(e,n,a,h,c);var p=jh.adjustTextX(h,o,d),g=jh.adjustTextY(c,s,f),m=p,v=g;l&&(m+=l[3],v+=l[0]);var y=m+r;ft(n)&&pt(t,e,n,p,g,o,s);for(var x=0;x=0&&"right"===(_=w[C]).textAlign;)dt(t,e,_,n,M,v,D,"right"),I-=_.width,D-=_.width,C--;for(T+=(r-(T-m)-(y-D)-I)/2;A<=C;)_=w[A],dt(t,e,_,n,M,v,T+_.width/2,"center"),T+=_.width,A++;v+=M}}(t,e,r,n,a)}(t,e,i,n,a):function(t,e,i,n,a){var r=mt(e,"font",n.font||jh.DEFAULT_FONT),o=n.textPadding,s=t.__textCotentBlock;s&&!t.__dirty||(s=t.__textCotentBlock=jh.parsePlainText(i,r,o,n.truncate));var l=s.outerHeight,u=s.lines,h=s.lineHeight,c=gt(0,n,a),d=c.baseX,f=c.baseY,p=c.textAlign,g=c.textVerticalAlign;ct(e,n,a,d,f);var m=jh.adjustTextY(f,l,g),v=d,y=m,x=ft(n);if(x||o){var _=jh.getWidth(i,r);o&&(_+=o[1]+o[3]);var b=jh.adjustTextX(d,_,p);x&&pt(t,e,n,b,m,_,l),o&&(v=_t(d,p,o),y+=o[0])}mt(e,"textAlign",p||"left"),mt(e,"textBaseline","middle"),mt(e,"shadowBlur",n.textShadowBlur||0),mt(e,"shadowColor",n.textShadowColor||"transparent"),mt(e,"shadowOffsetX",n.textShadowOffsetX||0),mt(e,"shadowOffsetY",n.textShadowOffsetY||0),y+=h/2;var w=n.textStrokeWidth,S=vt(n.textStroke,w),M=yt(n.textFill);S&&(mt(e,"lineWidth",w),mt(e,"strokeStyle",S)),M&&mt(e,"fillStyle",M);for(var I=0;I=0&&i.splice(n,1),t.__hoverMir=null},clearHover:function(t){for(var e=this._hoverElements,i=0;i15)break}}s.__drawIndex=g,s.__drawIndex0&&t>n[0]){for(o=0;ot);o++);r=i[n[o]]}if(n.splice(o+1,0,t),i[t]=e,!e.virtual)if(r){var l=r.dom;l.nextSibling?s.insertBefore(e.dom,l.nextSibling):s.appendChild(e.dom)}else s.firstChild?s.insertBefore(e.dom,s.firstChild):s.appendChild(e.dom)}else Ju("Layer of zlevel "+t+" is not valid")},eachLayer:function(t,e){var i,n,a=this._zlevelList;for(n=0;n0?.01:0),this._needsManuallyCompositing),r.__builtin__||Ju("ZLevel "+s+" has been used by unkown layer "+r.id),r!==i&&(r.__used=!0,r.__startIndex!==a&&(r.__dirty=!0),r.__startIndex=a,r.incremental?r.__drawIndex=-1:r.__drawIndex=a,e(a),i=r),o.__dirty&&(r.__dirty=!0,r.incremental&&r.__drawIndex<0&&(r.__drawIndex=a))}e(a),this.eachBuiltinLayer(function(t,e){!t.__used&&t.getElementCount()>0&&(t.__dirty=!0,t.__startIndex=t.__endIndex=t.__drawIndex=0),t.__dirty&&t.__drawIndex<0&&(t.__drawIndex=t.__startIndex)})},clear:function(){return this.eachBuiltinLayer(this._clearLayer),this},_clearLayer:function(t){t.clear()},setBackgroundColor:function(t){this._backgroundColor=t},configLayer:function(t,e){if(e){var i=this._layerConfig;i[t]?du.merge(i[t],e,!0):i[t]=e;for(var n=0;n=0){var a="touchend"!=n?e.targetTouches[0]:e.changedTouches[0];a&&Mt(t,a,e,i)}else Mt(t,e,e,i),e.zrDelta=e.wheelDelta?e.wheelDelta/120:-(e.detail||0)/3;var r=e.button;return null==e.which&&void 0!==r&&gc.test(e.type)&&(e.which=1&r?1:2&r?3:4&r?2:0),e},addEventListener:function(t,e,i){pc?t.addEventListener(e,i):t.attachEvent("on"+e,i)},removeEventListener:function(t,e,i){pc?t.removeEventListener(e,i):t.detachEvent("on"+e,i)},stop:pc?function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0}:function(t){t.returnValue=!1,t.cancelBubble=!0},notLeftMouse:function(t){return t.which>1}},vc=mc.Dispatcher,yc=function(t){t=t||{},this.stage=t.stage||{},this.onframe=t.onframe||function(){},this._clips=[],this._running=!1,this._time,this._pausedTime,this._pauseStart,this._paused=!1,vc.call(this)};yc.prototype={constructor:yc,addClip:function(t){this._clips.push(t)},addAnimator:function(t){t.animation=this;for(var e=t.getClips(),i=0;i=0&&this._clips.splice(e,1)},removeAnimator:function(t){for(var e=t.getClips(),i=0;i1&&n&&n.length>1){var r=At(n)/At(a);!isFinite(r)&&(r=1),e.pinchScale=r;var o=function(t){return[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]}(n);return e.pinchX=o[0],e.pinchY=o[1],{type:"pinch",target:t[0].target,event:e}}}}},wc=_c,Sc=mc.addEventListener,Mc=mc.removeEventListener,Ic=mc.normalizeEvent,Ac=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],Tc=["touchstart","touchend","touchmove"],Dc={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},Cc=du.map(Ac,function(t){var e=t.replace("mouse","pointer");return Dc[e]?e:t}),Lc={mousemove:function(t){t=Ic(this.dom,t),this.trigger("mousemove",t)},mouseout:function(t){var e=(t=Ic(this.dom,t)).toElement||t.relatedTarget;if(e!=this.dom)for(;e&&9!=e.nodeType;){if(e===this.dom)return;e=e.parentNode}this.trigger("mouseout",t)},touchstart:function(t){(t=Ic(this.dom,t)).zrByTouch=!0,this._lastTouchMoment=new Date,Dt(this,t,"start"),Lc.mousemove.call(this,t),Lc.mousedown.call(this,t),Ct(this)},touchmove:function(t){(t=Ic(this.dom,t)).zrByTouch=!0,Dt(this,t,"change"),Lc.mousemove.call(this,t),Ct(this)},touchend:function(t){(t=Ic(this.dom,t)).zrByTouch=!0,Dt(this,t,"end"),Lc.mouseup.call(this,t),+new Date-this._lastTouchMoment<300&&Lc.click.call(this,t),Ct(this)},pointerdown:function(t){Lc.mousedown.call(this,t)},pointermove:function(t){Lt(t)||Lc.mousemove.call(this,t)},pointerup:function(t){Lc.mouseup.call(this,t)},pointerout:function(t){Lt(t)||Lc.mouseout.call(this,t)}};du.each(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(t){Lc[t]=function(e){e=Ic(this.dom,e),this.trigger(t,e)}});var Pc=Pt.prototype;Pc.dispose=function(){for(var t=Ac.concat(Tc),e=0;e=i.length&&i.push({option:t})}}),i},makeIdAndName:function(t){var e=du.createHashMap();Vc(t,function(t,i){var n=t.exist;n&&e.set(n.id,t)}),Vc(t,function(t,i){var n=t.option;du.assert(!n||null==n.id||!e.get(n.id)||e.get(n.id)===t,"id duplicates: "+(n&&n.id)),n&&null!=n.id&&e.set(n.id,t),!t.keyInfo&&(t.keyInfo={})}),Vc(t,function(t,i){var n=t.exist,a=t.option,r=t.keyInfo;if(Bc(a)){if(r.name=null!=a.name?a.name+"":n?n.name:Hc+i,n)r.id=n.id;else if(null!=a.id)r.id=a.id+"";else{var o=0;do{r.id="\0"+r.name+"\0"+o++}while(e.get(r.id))}e.set(r.id,t)}})},isNameSpecified:function(t){var e=t.name;return!(!e||!e.indexOf(Hc))},isIdInner:Ot,compressBatches:function(t,e){function i(t,e,i){for(var n=0,a=t.length;n=0||n&&du.indexOf(n,o)<0)){var s=e.getShallow(o);null!=s&&(a[t[r][0]]=s)}}return a}},qc=Xc([["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),$c={getLineStyle:function(t){var e=qc(this,t),i=this.getLineDash(e.lineWidth);return i&&(e.lineDash=i),e},getLineDash:function(t){null==t&&(t=1);var e=this.get("type"),i=Math.max(t,2),n=4*t;return"solid"===e||null==e?null:"dashed"===e?[n,n]:[i,i]}},Kc=Xc([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]]),Jc={getAreaStyle:function(t,e){return Kc(this,t,e)}},Qc=pu.create,td=pu.distSquare,ed=Math.pow,id=Math.sqrt,nd=1e-8,ad=1e-4,rd=id(3),od=1/3,sd=Qc(),ld=Qc(),ud=Qc(),hd={cubicAt:Vt,cubicDerivativeAt:function(t,e,i,n,a){var r=1-a;return 3*(((e-t)*r+2*(i-e)*a)*r+(n-i)*a*a)},cubicRootAt:function(t,e,i,n,a,r){var o=n+3*(e-i)-t,s=3*(i-2*e+t),l=3*(e-t),u=t-a,h=s*s-3*o*l,c=s*l-9*o*u,d=l*l-3*s*u,f=0;if(Et(h)&&Et(c))Et(s)?r[0]=0:(M=-l/s)>=0&&M<=1&&(r[f++]=M);else{var p=c*c-4*h*d;if(Et(p)){var g=c/h,m=-g/2;(M=-s/o+g)>=0&&M<=1&&(r[f++]=M),m>=0&&m<=1&&(r[f++]=m)}else if(p>0){var v=id(p),y=h*s+1.5*o*(-c+v),x=h*s+1.5*o*(-c-v);(M=(-s-((y=y<0?-ed(-y,od):ed(y,od))+(x=x<0?-ed(-x,od):ed(x,od))))/(3*o))>=0&&M<=1&&(r[f++]=M)}else{var _=(2*h*s-3*o*c)/(2*id(h*h*h)),b=Math.acos(_)/3,w=id(h),S=Math.cos(b),M=(-s-2*w*S)/(3*o),m=(-s+w*(S+rd*Math.sin(b)))/(3*o),I=(-s+w*(S-rd*Math.sin(b)))/(3*o);M>=0&&M<=1&&(r[f++]=M),m>=0&&m<=1&&(r[f++]=m),I>=0&&I<=1&&(r[f++]=I)}}return f},cubicExtrema:function(t,e,i,n,a){var r=6*i-12*e+6*t,o=9*e+3*n-3*t-9*i,s=3*e-3*t,l=0;if(Et(o))zt(r)&&(c=-s/r)>=0&&c<=1&&(a[l++]=c);else{var u=r*r-4*o*s;if(Et(u))a[0]=-r/(2*o);else if(u>0){var h=id(u),c=(-r+h)/(2*o),d=(-r-h)/(2*o);c>=0&&c<=1&&(a[l++]=c),d>=0&&d<=1&&(a[l++]=d)}}return l},cubicSubdivide:function(t,e,i,n,a,r){var o=(e-t)*a+t,s=(i-e)*a+e,l=(n-i)*a+i,u=(s-o)*a+o,h=(l-s)*a+s,c=(h-u)*a+u;r[0]=t,r[1]=o,r[2]=u,r[3]=c,r[4]=c,r[5]=h,r[6]=l,r[7]=n},cubicProjectPoint:function(t,e,i,n,a,r,o,s,l,u,h){var c,d,f,p,g,m=.005,v=1/0;sd[0]=l,sd[1]=u;for(var y=0;y<1;y+=.05)ld[0]=Vt(t,i,a,o,y),ld[1]=Vt(e,n,r,s,y),(p=td(sd,ld))=0&&p=0&&c<=1&&(a[l++]=c);else{var u=o*o-4*r*s;if(Et(u))(c=-o/(2*r))>=0&&c<=1&&(a[l++]=c);else if(u>0){var h=id(u),c=(-o+h)/(2*r),d=(-o-h)/(2*r);c>=0&&c<=1&&(a[l++]=c),d>=0&&d<=1&&(a[l++]=d)}}return l},quadraticExtremum:function(t,e,i){var n=t+i-2*e;return 0===n?.5:(t-e)/n},quadraticSubdivide:function(t,e,i,n,a){var r=(e-t)*n+t,o=(i-e)*n+e,s=(o-r)*n+r;a[0]=t,a[1]=r,a[2]=s,a[3]=s,a[4]=o,a[5]=i},quadraticProjectPoint:function(t,e,i,n,a,r,o,s,l){var u,h=.005,c=1/0;sd[0]=o,sd[1]=s;for(var d=0;d<1;d+=.05)ld[0]=Bt(t,i,a,d),ld[1]=Bt(e,n,r,d),(m=td(sd,ld))=0&&m1e-4)return s[0]=t-i,s[1]=e-n,l[0]=t+i,void(l[1]=e+n);if(md[0]=pd(a)*i+t,md[1]=fd(a)*n+e,vd[0]=pd(r)*i+t,vd[1]=fd(r)*n+e,u(s,md,vd),h(l,md,vd),(a%=gd)<0&&(a+=gd),(r%=gd)<0&&(r+=gd),a>r&&!o?r+=gd:aa&&(yd[0]=pd(f)*i+t,yd[1]=fd(f)*n+e,u(s,yd,s),h(l,yd,l))}},wd=qu.devicePixelRatio,Sd={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Md=[],Id=[],Ad=[],Td=[],Dd=Math.min,Cd=Math.max,Ld=Math.cos,Pd=Math.sin,kd=Math.sqrt,Od=Math.abs,Rd="undefined"!=typeof Float32Array,Nd=function(t){this._saveData=!t,this._saveData&&(this.data=[]),this._ctx=null};Nd.prototype={constructor:Nd,_xi:0,_yi:0,_x0:0,_y0:0,_ux:0,_uy:0,_len:0,_lineDash:null,_dashOffset:0,_dashIdx:0,_dashSum:0,setScale:function(t,e){this._ux=Od(1/wd/t)||0,this._uy=Od(1/wd/e)||0},getContext:function(){return this._ctx},beginPath:function(t){return this._ctx=t,t&&t.beginPath(),t&&(this.dpr=t.dpr),this._saveData&&(this._len=0),this._lineDash&&(this._lineDash=null,this._dashOffset=0),this},moveTo:function(t,e){return this.addData(Sd.M,t,e),this._ctx&&this._ctx.moveTo(t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},lineTo:function(t,e){var i=Od(t-this._xi)>this._ux||Od(e-this._yi)>this._uy||this._len<5;return this.addData(Sd.L,t,e),this._ctx&&i&&(this._needsDash()?this._dashedLineTo(t,e):this._ctx.lineTo(t,e)),i&&(this._xi=t,this._yi=e),this},bezierCurveTo:function(t,e,i,n,a,r){return this.addData(Sd.C,t,e,i,n,a,r),this._ctx&&(this._needsDash()?this._dashedBezierTo(t,e,i,n,a,r):this._ctx.bezierCurveTo(t,e,i,n,a,r)),this._xi=a,this._yi=r,this},quadraticCurveTo:function(t,e,i,n){return this.addData(Sd.Q,t,e,i,n),this._ctx&&(this._needsDash()?this._dashedQuadraticTo(t,e,i,n):this._ctx.quadraticCurveTo(t,e,i,n)),this._xi=i,this._yi=n,this},arc:function(t,e,i,n,a,r){return this.addData(Sd.A,t,e,i,i,n,a-n,0,r?0:1),this._ctx&&this._ctx.arc(t,e,i,n,a,r),this._xi=Ld(a)*i+t,this._yi=Pd(a)*i+t,this},arcTo:function(t,e,i,n,a){return this._ctx&&this._ctx.arcTo(t,e,i,n,a),this},rect:function(t,e,i,n){return this._ctx&&this._ctx.rect(t,e,i,n),this.addData(Sd.R,t,e,i,n),this},closePath:function(){this.addData(Sd.Z);var t=this._ctx,e=this._x0,i=this._y0;return t&&(this._needsDash()&&this._dashedLineTo(e,i),t.closePath()),this._xi=e,this._yi=i,this},fill:function(t){t&&t.fill(),this.toStatic()},stroke:function(t){t&&t.stroke(),this.toStatic()},setLineDash:function(t){if(t instanceof Array){this._lineDash=t,this._dashIdx=0;for(var e=0,i=0;ii.length&&(this._expandData(),i=this.data);for(var n=0;n0&&f<=t||h<0&&f>=t||0==h&&(c>0&&p<=e||c<0&&p>=e);)f+=h*(i=o[n=this._dashIdx]),p+=c*i,this._dashIdx=(n+1)%g,h>0&&fl||c>0&&pu||s[n%2?"moveTo":"lineTo"](h>=0?Dd(f,t):Cd(f,t),c>=0?Dd(p,e):Cd(p,e));h=f-t,c=p-e,this._dashOffset=-kd(h*h+c*c)},_dashedBezierTo:function(t,e,i,n,a,r){var o,s,l,u,h,c=this._dashSum,d=this._dashOffset,f=this._lineDash,p=this._ctx,g=this._xi,m=this._yi,v=hd.cubicAt,y=0,x=this._dashIdx,_=f.length,b=0;for(d<0&&(d=c+d),d%=c,o=0;o<1;o+=.1)s=v(g,t,i,a,o+.1)-v(g,t,i,a,o),l=v(m,e,n,r,o+.1)-v(m,e,n,r,o),y+=kd(s*s+l*l);for(;x<_&&!((b+=f[x])>d);x++);for(o=(b-d)/y;o<=1;)u=v(g,t,i,a,o),h=v(m,e,n,r,o),x%2?p.moveTo(u,h):p.lineTo(u,h),o+=f[x]/y,x=(x+1)%_;x%2!=0&&p.lineTo(a,r),s=a-u,l=r-h,this._dashOffset=-kd(s*s+l*l)},_dashedQuadraticTo:function(t,e,i,n){var a=i,r=n;i=(i+2*t)/3,n=(n+2*e)/3,t=(this._xi+2*t)/3,e=(this._yi+2*e)/3,this._dashedBezierTo(t,e,i,n,a,r)},toStatic:function(){var t=this.data;t instanceof Array&&(t.length=this._len,Rd&&(this.data=new Float32Array(t)))},getBoundingRect:function(){Md[0]=Md[1]=Ad[0]=Ad[1]=Number.MAX_VALUE,Id[0]=Id[1]=Td[0]=Td[1]=-Number.MAX_VALUE;for(var t=this.data,e=0,i=0,n=0,a=0,r=0;rl||Od(o-a)>u||c===h-1)&&(t.lineTo(r,o),n=r,a=o);break;case Sd.C:t.bezierCurveTo(s[c++],s[c++],s[c++],s[c++],s[c++],s[c++]),n=s[c-2],a=s[c-1];break;case Sd.Q:t.quadraticCurveTo(s[c++],s[c++],s[c++],s[c++]),n=s[c-2],a=s[c-1];break;case Sd.A:var f=s[c++],p=s[c++],g=s[c++],m=s[c++],v=s[c++],y=s[c++],x=s[c++],_=s[c++],b=g>m?g:m,w=g>m?1:g/m,S=g>m?m/g:1,M=v+y;Math.abs(g-m)>.001?(t.translate(f,p),t.rotate(x),t.scale(w,S),t.arc(0,0,b,v,M,1-_),t.scale(1/w,1/S),t.rotate(-x),t.translate(-f,-p)):t.arc(f,p,b,v,M,1-_),1==c&&(e=Ld(v)*g+f,i=Pd(v)*m+p),n=Ld(M)*g+f,a=Pd(M)*m+p;break;case Sd.R:e=n=s[c],i=a=s[c+1],t.rect(s[c++],s[c++],s[c++],s[c++]);break;case Sd.Z:t.closePath(),n=e,a=i}}}},Nd.CMD=Sd;var Ed=Nd,zd={containStroke:function(t,e,i,n,a,r,o){if(0===a)return!1;var s=a,l=0,u=t;if(o>e+s&&o>n+s||ot+s&&r>i+s||re+c&&h>n+c&&h>r+c&&h>s+c||ht+c&&u>i+c&&u>a+c&&u>o+c||ue+u&&l>n+u&&l>r+u||lt+u&&s>i+u&&s>a+u||si||h+ua&&(a+=Ud);var d=Math.atan2(l,s);return d<0&&(d+=Ud),d>=n&&d<=a||d+Ud>=n&&d+Ud<=a}},jd=function(t,e,i,n,a,r){if(r>e&&r>n||ra?o:0},Yd=Fd.normalizeRadian,Xd=Ed.CMD,qd=2*Math.PI,$d=1e-4,Kd=[-1,-1,-1],Jd=[-1,-1],Qd={contain:function(t,e,i){return Gt(t,0,!1,e,i)},containStroke:function(t,e,i,n){return Gt(t,e,!0,i,n)}},tf=Dh.prototype.getCanvasPattern,ef=Math.abs,nf=new Ed(!0);Ht.prototype={constructor:Ht,type:"path",__dirtyPath:!0,strokeContainThreshold:5,brush:function(t,e){var i=this.style,n=this.path||nf,a=i.hasStroke(),r=i.hasFill(),o=i.fill,s=i.stroke,l=r&&!!o.colorStops,u=a&&!!s.colorStops,h=r&&!!o.image,c=a&&!!s.image;if(i.bind(t,this,e),this.setTransform(t),this.__dirty){var d;l&&(d=d||this.getBoundingRect(),this._fillGradient=i.getGradient(t,o,d)),u&&(d=d||this.getBoundingRect(),this._strokeGradient=i.getGradient(t,s,d))}l?t.fillStyle=this._fillGradient:h&&(t.fillStyle=tf.call(o,t)),u?t.strokeStyle=this._strokeGradient:c&&(t.strokeStyle=tf.call(s,t));var f=i.lineDash,p=i.lineDashOffset,g=!!t.setLineDash,m=this.getGlobalScale();n.setScale(m[0],m[1]),this.__dirtyPath||f&&!g&&a?(n.beginPath(t),f&&!g&&(n.setLineDash(f),n.setLineDashOffset(p)),this.buildPath(n,this.shape,!1),this.path&&(this.__dirtyPath=!1)):(t.beginPath(),this.path.rebuildPath(t)),r&&n.fill(t),f&&g&&(t.setLineDash(f),t.lineDashOffset=p),a&&n.stroke(t),f&&g&&t.setLineDash([]),null!=i.text&&(this.restoreTransform(t),this.drawRectText(t,this.getBoundingRect()))},buildPath:function(t,e,i){},createPathProxy:function(){this.path=new Ed},getBoundingRect:function(){var t=this._rect,e=this.style,i=!t;if(i){var n=this.path;n||(n=this.path=new Ed),this.__dirtyPath&&(n.beginPath(),this.buildPath(n,this.shape,!1)),t=n.getBoundingRect()}if(this._rect=t,e.hasStroke()){var a=this._rectWithStroke||(this._rectWithStroke=t.clone());if(this.__dirty||i){a.copy(t);var r=e.lineWidth,o=e.strokeNoScale?this.getLineScale():1;e.hasFill()||(r=Math.max(r,this.strokeContainThreshold||4)),o>1e-10&&(a.width+=r/o,a.height+=r/o,a.x-=r/o/2,a.y-=r/o/2)}return a}return t},contain:function(t,e){var i=this.transformCoordToLocal(t,e),n=this.getBoundingRect(),a=this.style;if(t=i[0],e=i[1],n.contain(t,e)){var r=this.path.data;if(a.hasStroke()){var o=a.lineWidth,s=a.strokeNoScale?this.getLineScale():1;if(s>1e-10&&(a.hasFill()||(o=Math.max(o,this.strokeContainThreshold)),Qd.containStroke(r,o/s,t,e)))return!0}if(a.hasFill())return Qd.contain(r,t,e)}return!1},dirty:function(t){null==t&&(t=!0),t&&(this.__dirtyPath=t,this._rect=null),this.__dirty=!0,this.__zr&&this.__zr.refresh(),this.__clipTarget&&this.__clipTarget.dirty()},animateShape:function(t){return this.animate("shape",t)},attrKV:function(t,e){"shape"===t?(this.setShape(e),this.__dirtyPath=!0,this._rect=null):oc.prototype.attrKV.call(this,t,e)},setShape:function(t,e){var i=this.shape;if(i){if(du.isObject(t))for(var n in t)t.hasOwnProperty(n)&&(i[n]=t[n]);else i[t]=e;this.dirty(!0)}return this},getLineScale:function(){var t=this.transform;return t&&ef(t[0]-1)>1e-10&&ef(t[3]-1)>1e-10?Math.sqrt(ef(t[0]*t[3]-t[2]*t[1])):1}},Ht.extend=function(t){var e=function(e){Ht.call(this,e),t.style&&this.style.extendFrom(t.style,!1);var i=t.shape;if(i){this.shape=this.shape||{};var n=this.shape;for(var a in i)!n.hasOwnProperty(a)&&i.hasOwnProperty(a)&&(n[a]=i[a])}t.init&&t.init.call(this,e)};du.inherits(e,Ht);for(var i in t)"style"!==i&&"shape"!==i&&(e.prototype[i]=t[i]);return e},du.inherits(Ht,oc);var af=Ht,rf=pu.applyTransform,of=Ed.CMD,sf=[[],[],[]],lf=Math.sqrt,uf=Math.atan2,hf=function(t,e){var i,n,a,r,o,s=t.data,l=of.M,u=of.C,h=of.L,c=of.R,d=of.A,f=of.Q;for(a=0,r=0;a=11?function(){var e,i=this.__clipPaths,n=this.style;if(i)for(var a=0;ai-2?i-1:c+1],u=t[c>i-3?i-1:c+2]);var p=d*d,g=d*p;n.push([Ut(s[0],f[0],l[0],u[0],d,p,g),Ut(s[1],f[1],l[1],u[1],d,p,g)])}return n},Cf=pu.min,Lf=pu.max,Pf=pu.scale,kf=pu.distance,Of=pu.add,Rf=pu.clone,Nf=pu.sub,Ef=function(t,e,i,n){var a,r,o,s,l=[],u=[],h=[],c=[];if(n){o=[1/0,1/0],s=[-1/0,-1/0];for(var d=0,f=t.length;d=2){if(a&&"spline"!==a){var r=Ef(n,a,i,e.smoothConstraint);t.moveTo(n[0][0],n[0][1]);for(var o=n.length,s=0;s<(i?o:o-1);s++){var l=r[2*s],u=r[2*s+1],h=n[(s+1)%o];t.bezierCurveTo(l[0],l[1],u[0],u[1],h[0],h[1])}}else{"spline"===a&&(n=Df(n,i)),t.moveTo(n[0][0],n[0][1]);for(var s=1,c=n.length;sMath.abs(r[1])?r[0]>0?"right":"left":r[1]>0?"bottom":"top"},groupTransition:function(t,e,i,n){function a(t){var e={position:pu.clone(t.position),rotation:t.rotation};return t.shape&&(e.shape=du.extend({},t.shape)),e}if(t&&e){var r=function(e){var i={};return t.traverse(function(t){!t.isGroup&&t.anid&&(i[t.anid]=t)}),i}();e.traverse(function(t){if(!t.isGroup&&t.anid){var e=r[t.anid];if(e){var n=a(t);t.attr(a(e)),ce(t,n,i,t.dataIndex)}}})}},clipPointsByRect:function(t,e){return du.map(t,function(t){var i=t[0];i=Ip(i,e.x),i=Ap(i,e.x+e.width);var n=t[1];return n=Ip(n,e.y),n=Ap(n,e.y+e.height),[i,n]})},clipRectByRect:function(t,e){var i=Ip(t.x,e.x),n=Ap(t.x+t.width,e.x+e.width),a=Ip(t.y,e.y),r=Ap(t.y+t.height,e.y+e.height);if(n>=i&&r>=a)return{x:i,y:a,width:n-i,height:r-a}},createIcon:function(t,e,i){var n=(e=du.extend({rectHover:!0},e)).style={strokeNoScale:!0};if(i=i||{x:-1,y:-1,width:2,height:2},t)return 0===t.indexOf("image://")?(n.image=t.slice(8),du.defaults(n,i),new sc(e)):Yt(t.replace("path://",""),e,i,"center")}},Cp=["textStyle","color"],Lp={getTextColor:function(t){var e=this.ecModel;return this.getShallow("color")||(!t&&e?e.get(Cp):null)},getFont:function(){return Dp.getFont({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},getTextRect:function(t){return jh.getBoundingRect(t,this.getFont(),this.getShallow("align"),this.getShallow("verticalAlign")||this.getShallow("baseline"),this.getShallow("padding"),this.getShallow("rich"),this.getShallow("truncateText"))}},Pp=Xc([["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["textPosition"],["textAlign"]]),kp={getItemStyle:function(t,e){var i=Pp(this,t,e),n=this.getBorderLineDash();return n&&(i.lineDash=n),i},getBorderLineDash:function(){var t=this.get("borderType");return"solid"===t||null==t?null:"dashed"===t?[5,5]:[1,1]}},Op=Wc.makeInner,Rp=Yc.enableClassExtend,Np=Yc.enableClassCheck,Ep=du.mixin,zp=Op();fe.prototype={constructor:fe,init:null,mergeOption:function(t){du.merge(this.option,t,!0)},get:function(t,e){return null==t?this.option:pe(this.option,this.parsePath(t),!e&&ge(this,t))},getShallow:function(t,e){var i=this.option,n=null==i?i:i[t],a=!e&&ge(this,t);return null==n&&a&&(n=a.getShallow(t)),n},getModel:function(t,e){var i,n=null==t?this.option:pe(this.option,t=this.parsePath(t));return e=e||(i=ge(this,t))&&i.getModel(t),new fe(n,e,this.ecModel)},isEmpty:function(){return null==this.option},restoreData:function(){},clone:function(){return new(0,this.constructor)(du.clone(this.option))},setReadOnly:function(t){},parsePath:function(t){return"string"==typeof t&&(t=t.split(".")),t},customizeGetParent:function(t){zp(this).getParent=t},isAnimationEnabled:function(){if(!Jl.node){if(null!=this.option.animation)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}}},Rp(fe),Np(fe),Ep(fe,$c),Ep(fe,Jc),Ep(fe,Lp),Ep(fe,kp);var Vp=fe,Bp=Yc.parseClassType,Gp=0,Hp={getUID:function(t){return[t||"",Gp++,Math.random().toFixed(5)].join("_")},enableSubTypeDefaulter:function(t){var e={};return t.registerSubTypeDefaulter=function(t,i){t=Bp(t),e[t.main]=i},t.determineSubType=function(i,n){var a=n.type;if(!a){var r=Bp(i).main;t.hasSubTypes(i)&&e[r]&&(a=e[r](n))}return a},t},enableTopologicalTravel:function(t,e){function i(t,e){return t[e]||(t[e]={predecessor:[],successor:[]}),t[e]}t.topologicalTravel=function(t,n,a,r){function o(t){l[t].entryCount--,0===l[t].entryCount&&u.push(t)}if(t.length){var s=function(t){var n={},a=[];return du.each(t,function(r){var o=i(n,r),s=function(t,e){var i=[];return du.each(t,function(t){du.indexOf(e,t)>=0&&i.push(t)}),i}(o.originalDeps=e(r),t);o.entryCount=s.length,0===o.entryCount&&a.push(r),du.each(s,function(t){du.indexOf(o.predecessor,t)<0&&o.predecessor.push(t);var e=i(n,t);du.indexOf(e.successor,t)<0&&e.successor.push(r)})}),{graph:n,noEntryList:a}}(n),l=s.graph,u=s.noEntryList,h={};for(du.each(t,function(t){h[t]=!0});u.length;){var c=u.pop(),d=l[c],f=!!h[c];f&&(a.call(r,c,d.originalDeps.slice()),delete h[c]),du.each(d.successor,f?function(t){h[t]=!0,o(t)}:o)}du.each(h,function(){throw new Error("Circle dependency may exists")})}}}},Fp=1e-4,Wp=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d\d)(?::(\d\d)(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/,Up={linearMap:function(t,e,i,n){var a=e[1]-e[0],r=i[1]-i[0];if(0===a)return 0===r?i[0]:(i[0]+i[1])/2;if(n)if(a>0){if(t<=e[0])return i[0];if(t>=e[1])return i[1]}else{if(t>=e[0])return i[0];if(t<=e[1])return i[1]}else{if(t===e[0])return i[0];if(t===e[1])return i[1]}return(t-e[0])/a*r+i[0]},parsePercent:function(t,e){switch(t){case"center":case"middle":t="50%";break;case"left":case"top":t="0%";break;case"right":case"bottom":t="100%"}return"string"==typeof t?t.replace(/^\s+/,"").replace(/\s+$/,"").match(/%$/)?parseFloat(t)/100*e:parseFloat(t):null==t?NaN:+t},round:function(t,e,i){return null==e&&(e=10),e=Math.min(Math.max(0,e),20),t=(+t).toFixed(e),i?t:+t},asc:function(t){return t.sort(function(t,e){return t-e}),t},getPrecision:function(t){if(t=+t,isNaN(t))return 0;for(var e=1,i=0;Math.round(t*e)/e!==t;)e*=10,i++;return i},getPrecisionSafe:function(t){var e=t.toString(),i=e.indexOf("e");if(i>0){var n=+e.slice(i+1);return n<0?-n:0}var a=e.indexOf(".");return a<0?0:e.length-1-a},getPixelPrecision:function(t,e){var i=Math.log,n=Math.LN10,a=Math.floor(i(t[1]-t[0])/n),r=Math.round(i(Math.abs(e[1]-e[0]))/n),o=Math.min(Math.max(-a+r,0),20);return isFinite(o)?o:20},getPercentWithPrecision:function(t,e,i){if(!t[e])return 0;var n=du.reduce(t,function(t,e){return t+(isNaN(e)?0:e)},0);if(0===n)return 0;for(var a=Math.pow(10,i),r=du.map(t,function(t){return(isNaN(t)?0:t)/n*a*100}),o=100*a,s=du.map(r,function(t){return Math.floor(t)}),l=du.reduce(s,function(t,e){return t+e},0),u=du.map(r,function(t,e){return t-s[e]});lh&&(h=u[d],c=d);++s[c],u[c]=0,++l}return s[e]/a},MAX_SAFE_INTEGER:9007199254740991,remRadian:function(t){var e=2*Math.PI;return(t%e+e)%e},isRadianAroundZero:function(t){return t>-Fp&&t=-20?+t.toFixed(n<0?-n:0):t},reformIntervals:function(t){function e(t,i,n){return t.interval[n]=0}},Zp=/([&<>"'])/g,jp={"&":"&","<":"<",">":">",'"':""","'":"'"},Yp=["a","b","c","d","e","f","g"],Xp=function(t,e){return"{"+t+(null==e?"":e)+"}"},qp={addCommas:function(t){return isNaN(t)?"-":(t=(t+"").split("."))[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")},toCamelCase:function(t,e){return t=(t||"").toLowerCase().replace(/-(.)/g,function(t,e){return e.toUpperCase()}),e&&t&&(t=t.charAt(0).toUpperCase()+t.slice(1)),t},normalizeCssArray:du.normalizeCssArray,encodeHTML:ve,formatTpl:function(t,e,i){du.isArray(e)||(e=[e]);var n=e.length;if(!n)return"";for(var a=e[0].$vars||[],r=0;r':'':""},formatTime:function(t,e,i){"week"!==t&&"month"!==t&&"quarter"!==t&&"half-year"!==t&&"year"!==t||(t="MM-dd\nyyyy");var n=Up.parseDate(e),a=i?"UTC":"",r=n["get"+a+"FullYear"](),o=n["get"+a+"Month"]()+1,s=n["get"+a+"Date"](),l=n["get"+a+"Hours"](),u=n["get"+a+"Minutes"](),h=n["get"+a+"Seconds"](),c=n["get"+a+"Milliseconds"]();return t=t.replace("MM",ye(o,2)).replace("M",o).replace("yyyy",r).replace("yy",r%100).replace("dd",ye(s,2)).replace("d",s).replace("hh",ye(l,2)).replace("h",l).replace("mm",ye(u,2)).replace("m",u).replace("ss",ye(h,2)).replace("s",h).replace("SSS",ye(c,3))},capitalFirst:function(t){return t?t.charAt(0).toUpperCase()+t.substr(1):t},truncateText:jh.truncateText,getTextRect:jh.getBoundingRect},$p=Up.parsePercent,Kp=du.each,Jp=["left","right","top","bottom","width","height"],Qp=[["width","left","right"],["height","top","bottom"]],tg=xe,eg=du.curry(xe,"vertical"),ig=du.curry(xe,"horizontal"),ng={LOCATION_PARAMS:Jp,HV_NAMES:Qp,box:tg,vbox:eg,hbox:ig,getAvailableSize:function(t,e,i){var n=e.width,a=e.height,r=$p(t.x,n),o=$p(t.y,a),s=$p(t.x2,n),l=$p(t.y2,a);return(isNaN(r)||isNaN(parseFloat(t.x)))&&(r=0),(isNaN(s)||isNaN(parseFloat(t.x2)))&&(s=n),(isNaN(o)||isNaN(parseFloat(t.y)))&&(o=0),(isNaN(l)||isNaN(parseFloat(t.y2)))&&(l=a),i=qp.normalizeCssArray(i||0),{width:Math.max(s-r-i[1]-i[3],0),height:Math.max(l-o-i[0]-i[2],0)}},getLayoutRect:_e,positionElement:function(t,e,i,n,a){var r=!a||!a.hv||a.hv[0],o=!a||!a.hv||a.hv[1],s=a&&a.boundingMode||"all";if(r||o){var l;if("raw"===s)l="group"===t.type?new ch(0,0,+e.width||0,+e.height||0):t.getBoundingRect();else if(l=t.getBoundingRect(),t.needLocalTransform()){var u=t.getLocalTransform();(l=l.clone()).applyTransform(u)}e=_e(du.defaults({width:l.width,height:l.height},e),i,n);var h=t.position,c=r?e.x-l.x:0,d=o?e.y-l.y:0;t.attr("position","raw"===s?[c,d]:[h[0]+c,h[1]+d])}},sizeCalculable:function(t,e){return null!=t[Qp[e][0]]||null!=t[Qp[e][1]]&&null!=t[Qp[e][2]]},mergeLayoutParam:function(t,e,i){function n(i,n){var o={},l=0,u={},h=0;if(Kp(i,function(e){u[e]=t[e]}),Kp(i,function(t){a(e,t)&&(o[t]=u[t]=e[t]),r(o,t)&&l++,r(u,t)&&h++}),s[n])return r(e,i[1])?u[i[2]]=null:r(e,i[2])&&(u[i[1]]=null),u;if(2!==h&&l){if(l>=2)return o;for(var c=0;c=0;r--)a=du.merge(a,e[r],!0);t.defaultOption=a}return t.defaultOption},getReferringComponents:function(t){return this.ecModel.queryComponents({mainType:t,index:this.get(t+"Index",!0),id:this.get(t+"Id",!0)})}});rg(lg,{registerWhenExtend:!0}),Hp.enableSubTypeDefaulter(lg),Hp.enableTopologicalTravel(lg,function(t){var e=[];return du.each(lg.getClassesByMainType(t),function(t){e=e.concat(t.prototype.dependencies||[])}),e=du.map(e,function(t){return og(t).main}),"dataset"!==t&&du.indexOf(e,"dataset")<=0&&e.unshift("dataset"),e}),du.mixin(lg,ag);var ug=lg,hg="";"undefined"!=typeof navigator&&(hg=navigator.platform||"");var cg={color:["#c23531","#2f4554","#61a0a8","#d48265","#91c7ae","#749f83","#ca8622","#bda29a","#6e7074","#546570","#c4ccd3"],gradientColor:["#f6efa6","#d88273","#bf444c"],textStyle:{fontFamily:hg.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,animation:"auto",animationDuration:1e3,animationDurationUpdate:300,animationEasing:"exponentialOut",animationEasingUpdate:"cubicOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1},dg=Wc.makeInner,fg=Wc.normalizeToArray,pg=dg(),gg={clearColorPalette:function(){pg(this).colorIdx=0,pg(this).colorNameMap={}},getColorFromPalette:function(t,e,i){var n=pg(e=e||this),a=n.colorIdx||0,r=n.colorNameMap=n.colorNameMap||{};if(r.hasOwnProperty(t))return r[t];var o=fg(this.get("color",!0)),s=this.get("colorLayer",!0),l=null!=i&&s?function(t,e){for(var i=t.length,n=0;ne)return t[n];return t[i-1]}(s,i):o;if((l=l||o)&&l.length){var u=l[a];return t&&(r[t]=u),n.colorIdx=(a+1)%l.length,u}}},mg=du.createHashMap,vg=(du.retrieve,du.each),yg={cartesian2d:function(t,e,i,n){var a=t.getReferringComponents("xAxis")[0],r=t.getReferringComponents("yAxis")[0];e.coordSysDims=["x","y"],i.set("x",a),i.set("y",r),we(a)&&(n.set("x",a),e.firstCategoryDimIndex=0),we(r)&&(n.set("y",r),e.firstCategoryDimIndex=1)},singleAxis:function(t,e,i,n){var a=t.getReferringComponents("singleAxis")[0];e.coordSysDims=["single"],i.set("single",a),we(a)&&(n.set("single",a),e.firstCategoryDimIndex=0)},polar:function(t,e,i,n){var a=t.getReferringComponents("polar")[0],r=a.findAxisModel("radiusAxis"),o=a.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],i.set("radius",r),i.set("angle",o),we(r)&&(n.set("radius",r),e.firstCategoryDimIndex=0),we(o)&&(n.set("angle",o),e.firstCategoryDimIndex=1)},geo:function(t,e,i,n){e.coordSysDims=["lng","lat"]},parallel:function(t,e,i,n){var a=t.ecModel,r=a.getComponent("parallel",t.get("parallelIndex")),o=e.coordSysDims=r.dimensions.slice();vg(r.parallelAxisIndex,function(t,r){var s=a.getComponent("parallelAxis",t),l=o[r];i.set(l,s),we(s)&&null==e.firstCategoryDimIndex&&(n.set(l,s),e.firstCategoryDimIndex=r)})}},xg={getCoordSysDefineBySeries:function(t){var e=t.get("coordinateSystem"),i={coordSysName:e,coordSysDims:[],axisMap:mg(),categoryAxisMap:mg()},n=yg[e];if(n)return n(t,i,i.axisMap,i.categoryAxisMap),i}},_g={SOURCE_FORMAT_ORIGINAL:"original",SOURCE_FORMAT_ARRAY_ROWS:"arrayRows",SOURCE_FORMAT_OBJECT_ROWS:"objectRows",SOURCE_FORMAT_KEYED_COLUMNS:"keyedColumns",SOURCE_FORMAT_UNKNOWN:"unknown",SOURCE_FORMAT_TYPED_ARRAY:"typedArray",SERIES_LAYOUT_BY_COLUMN:"column",SERIES_LAYOUT_BY_ROW:"row"},bg=du.createHashMap,wg=du.isTypedArray,Sg=Yc.enableClassCheck,Mg=_g.SOURCE_FORMAT_ORIGINAL,Ig=_g.SERIES_LAYOUT_BY_COLUMN,Ag=_g.SOURCE_FORMAT_UNKNOWN,Tg=_g.SOURCE_FORMAT_TYPED_ARRAY,Dg=_g.SOURCE_FORMAT_KEYED_COLUMNS;Se.seriesDataToSource=function(t){return new Se({data:t,sourceFormat:wg(t)?Tg:Mg,fromDataset:!1})},Sg(Se);var Cg=Se,Lg=Wc.makeInner,Pg=Wc.getDataItemValue,kg=xg.getCoordSysDefineBySeries,Og=du.createHashMap,Rg=du.each,Ng=du.map,Eg=du.isArray,zg=du.isString,Vg=du.isObject,Bg=du.isTypedArray,Gg=du.isArrayLike,Hg=du.extend,Fg=(du.assert,_g.SOURCE_FORMAT_ORIGINAL),Wg=_g.SOURCE_FORMAT_ARRAY_ROWS,Ug=_g.SOURCE_FORMAT_OBJECT_ROWS,Zg=_g.SOURCE_FORMAT_KEYED_COLUMNS,jg=_g.SOURCE_FORMAT_UNKNOWN,Yg=_g.SOURCE_FORMAT_TYPED_ARRAY,Xg=_g.SERIES_LAYOUT_BY_ROW,qg=Lg(),$g={detectSourceFormat:function(t){var e=t.option.source,i=jg;if(Bg(e))i=Yg;else if(Eg(e))for(var n=0,a=e.length;n=0;n--)Wc.isIdInner(e[n])&&e.splice(n,1);t[i]=e}}),delete t[cm],t},getTheme:function(){return this._theme},getComponent:function(t,e){var i=this._componentsMap.get(t);if(i)return i[e||0]},queryComponents:function(t){var e=t.mainType;if(!e)return[];var i=t.index,n=t.id,a=t.name,r=this._componentsMap.get(e);if(!r||!r.length)return[];var o;if(null!=i)tm(i)||(i=[i]),o=Jg(Qg(i,function(t){return r[t]}),function(t){return!!t});else if(null!=n){var s=tm(n);o=Jg(r,function(t){return s&&em(n,t.id)>=0||!s&&t.id===n})}else if(null!=a){var l=tm(a);o=Jg(r,function(t){return l&&em(a,t.name)>=0||!l&&t.name===a})}else o=r.slice();return De(o,t)},findComponents:function(t){var e=t.query,i=t.mainType,n=function(t){var e=i+"Index",n=i+"Id",a=i+"Name";return!t||null==t[e]&&null==t[n]&&null==t[a]?null:{mainType:i,index:t[e],id:t[n],name:t[a]}}(e);return function(e){return t.filter?Jg(e,t.filter):e}(De(n?this.queryComponents(n):this._componentsMap.get(i),t))},eachComponent:function(t,e,i){var n=this._componentsMap;if("function"==typeof t)i=e,e=t,n.each(function(t,n){Kg(t,function(t,a){e.call(i,n,t,a)})});else if(nm(t))Kg(n.get(t),e,i);else if(im(t)){var a=this.findComponents(t);Kg(a,e,i)}},getSeriesByName:function(t){var e=this._componentsMap.get("series");return Jg(e,function(e){return e.name===t})},getSeriesByIndex:function(t){return this._componentsMap.get("series")[t]},getSeriesByType:function(t){var e=this._componentsMap.get("series");return Jg(e,function(e){return e.subType===t})},getSeries:function(){return this._componentsMap.get("series").slice()},getSeriesCount:function(){return this._componentsMap.get("series").length},eachSeries:function(t,e){Ce(),Kg(this._seriesIndices,function(i){var n=this._componentsMap.get("series")[i];t.call(e,n,i)},this)},eachRawSeries:function(t,e){Kg(this._componentsMap.get("series"),t,e)},eachSeriesByType:function(t,e,i){Ce(),Kg(this._seriesIndices,function(n){var a=this._componentsMap.get("series")[n];a.subType===t&&e.call(i,a,n)},this)},eachRawSeriesByType:function(t,e,i){return Kg(this.getSeriesByType(t),e,i)},isSeriesFiltered:function(t){return Ce(),null==this._seriesIndicesMap.get(t.componentIndex)},getCurrentSeriesIndices:function(){return(this._seriesIndices||[]).slice()},filterSeries:function(t,e){Ce();Te(this,Jg(this._componentsMap.get("series"),t,e))},restoreData:function(t){var e=this._componentsMap;Te(this,e.get("series"));var i=[];e.each(function(t,e){i.push(e)}),ug.topologicalTravel(i,ug.getAllClassMainTypes(),function(i,n){Kg(e.get(i),function(e){("series"!==i||!function(t,e){if(e){var i=e.seiresIndex,n=e.seriesId,a=e.seriesName;return null!=i&&t.componentIndex!==i||null!=n&&t.id!==n||null!=a&&t.name!==a}}(e,t))&&e.restoreData()})})}});um(dm,gg);var fm=dm,pm=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isDisposed","on","off","getDataURL","getConnectedDataURL","getModel","getOption","getViewOfComponentModel","getViewOfSeriesModel"],gm=function(t){du.each(pm,function(e){this[e]=du.bind(t[e],t)},this)},mm={};Le.prototype={constructor:Le,create:function(t,e){var i=[];du.each(mm,function(n,a){var r=n.create(t,e);i=i.concat(r||[])}),this._coordinateSystems=i},update:function(t,e){du.each(this._coordinateSystems,function(i){i.update&&i.update(t,e)})},getCoordinateSystems:function(){return this._coordinateSystems.slice()}},Le.register=function(t,e){mm[t]=e},Le.get=function(t){return mm[t]};var vm=Le,ym=du.each,xm=du.clone,_m=du.map,bm=du.merge,wm=/^(min|max)?(.+)$/;Pe.prototype={constructor:Pe,setOption:function(t,e){t&&du.each(Wc.normalizeToArray(t.series),function(t){t&&t.data&&du.isTypedArray(t.data)&&du.setAsPrimitive(t.data)}),t=xm(t,!0);var i=this._optionBackup,n=function(t,e,i){var n,a,r=[],o=[],s=t.timeline;if(t.baseOption&&(a=t.baseOption),(s||t.options)&&(a=a||{},r=(t.options||[]).slice()),t.media){a=a||{};var l=t.media;ym(l,function(t){t&&t.option&&(t.query?o.push(t):n||(n=t))})}return a||(a=t),a.timeline||(a.timeline=s),ym([a].concat(r).concat(du.map(o,function(t){return t.option})),function(t){ym(e,function(e){e(t,i)})}),{baseOption:a,timelineOptions:r,mediaDefault:n,mediaList:o}}.call(this,t,e,!i);this._newBaseOption=n.baseOption,i?(!function(t,e){ym(e=e||{},function(e,i){if(null!=e){var n=t[i];if(ug.hasClass(i)){e=Wc.normalizeToArray(e),n=Wc.normalizeToArray(n);var a=Wc.mappingToExists(n,e);t[i]=_m(a,function(t){return t.option&&t.exist?bm(t.exist,t.option,!0):t.exist||t.option})}else t[i]=bm(n,e,!0)}})}(i.baseOption,n.baseOption),n.timelineOptions.length&&(i.timelineOptions=n.timelineOptions),n.mediaList.length&&(i.mediaList=n.mediaList),n.mediaDefault&&(i.mediaDefault=n.mediaDefault)):this._optionBackup=n},mountOption:function(t){var e=this._optionBackup;return this._timelineOptions=_m(e.timelineOptions,xm),this._mediaList=_m(e.mediaList,xm),this._mediaDefault=xm(e.mediaDefault),this._currentMediaIndices=[],xm(t?e.baseOption:this._newBaseOption)},getTimelineOption:function(t){var e,i=this._timelineOptions;if(i.length){var n=t.getComponent("timeline");n&&(e=xm(i[n.getCurrentIndex()],!0))}return e},getMediaOption:function(t){var e=this._api.getWidth(),i=this._api.getHeight(),n=this._mediaList,a=this._mediaDefault,r=[],o=[];if(!n.length&&!a)return o;for(var s=0,l=n.length;s=e:"max"===i?t<=e:t===e})(n[o],t,r)||(a=!1)}}),a})(n[s].query,e,i)&&r.push(s);return!r.length&&a&&(r=[-1]),r.length&&!function(t,e){return t.join(",")===e.join(",")}(r,this._currentMediaIndices)&&(o=_m(r,function(t){return xm(-1===t?a.option:n[t].option)})),this._currentMediaIndices=r,o}};var Sm=Pe,Mm=du.each,Im=du.isObject,Am=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"],Tm=function(t,e){Mm(ze(t.series),function(t){Im(t)&&function(t){if(Im(t)){ke(t),Re(t),Ne(t,"label"),Ne(t,"upperLabel"),Ne(t,"edgeLabel"),t.emphasis&&(Ne(t.emphasis,"label"),Ne(t.emphasis,"upperLabel"),Ne(t.emphasis,"edgeLabel")),(a=t.markPoint)&&(ke(a),Ee(a)),(s=t.markLine)&&(ke(s),Ee(s));var e=t.markArea;e&&Ee(e);var i=t.data;if("graph"===t.type){i=i||t.nodes;var n=t.links||t.edges;if(n&&!du.isTypedArray(n))for(o=0;o=0;p--){var g=t[p];if(s||(d=g.data.rawIndexOf(g.stackedByDimension,c)),d>=0){var m=g.data.getByRawIndex(g.stackResultDimension,d);if(h>=0&&m>0||h<=0&&m<0){h+=m,f=m;break}}}return n[0]=h,n[1]=f,n});o.hostModel.setData(l),e.data=l})})},Vm=(du.isTypedArray,du.extend),Bm=(du.assert,du.each),Gm=du.isObject,Hm=Wc.getDataItemValue,Fm=Wc.isDataItemOption,Wm=Up.parseDate,Um=_g.SOURCE_FORMAT_TYPED_ARRAY,Zm=_g.SOURCE_FORMAT_ARRAY_ROWS,jm=_g.SOURCE_FORMAT_ORIGINAL,Ym=_g.SOURCE_FORMAT_OBJECT_ROWS,Xm=Ge.prototype;Xm.pure=!1,Xm.persistent=!0,Xm.getSource=function(){return this._source};var qm={arrayRows_column:{pure:!0,count:function(){return Math.max(0,this._data.length-this._source.startIndex)},getItem:function(t){return this._data[t+this._source.startIndex]},appendData:We},arrayRows_row:{pure:!0,count:function(){var t=this._data[0];return t?Math.max(0,t.length-this._source.startIndex):0},getItem:function(t){t+=this._source.startIndex;for(var e=[],i=this._data,n=0;n=1)&&(t=1),t}var i=this._upstream,n=t&&t.skip;if(this._dirty&&i){var a=this.context;a.data=a.outputData=i.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var r;this._plan&&!n&&(r=this._plan(this.context));var o=e(this._modBy),s=this._modDataCount||0,l=e(t&&t.modBy),u=t&&t.modDataCount||0;o===l&&s===u||(r="reset");var h;(this._dirty||"reset"===r)&&(this._dirty=!1,h=function(t,e){t._dueIndex=t._outputDueEnd=t._dueEnd=0,t._settedOutputEnd=null;var i,n;!e&&t._reset&&((i=t._reset(t.context))&&i.progress&&(n=i.forceFirstProgress,i=i.progress),nv(i)&&!i.length&&(i=null)),t._progress=i,t._modBy=t._modDataCount=null;var a=t._downstream;return a&&a.dirty(),n}(this,n)),this._modBy=l,this._modDataCount=u;var c=t&&t.step;if(this._dueEnd=i?i._outputDueEnd:this._count?this._count(this.context):1/0,this._progress){var d=this._dueIndex,f=Math.min(null!=c?this._dueIndex+c:1/0,this._dueEnd);if(!n&&(h||d1&&n>0?function(){var r=e%a*i+Math.ceil(e/a),o=e>=t?null:re.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}}}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,i),pv(this);var a=this.getInitialData(t,i);$e(a,this),this.dataTask.context.data=a,vv(this).dataBeforeProcessed=a,qe(this)},mergeDefaultAndTheme:function(t,e){var i=this.layoutMode,n=i?cv(t):{},a=this.subType;ug.hasClass(a)&&(a+="Series"),du.merge(t,e.getTheme().get(this.subType)),du.merge(t,this.getDefaultOption()),Wc.defaultEmphasis(t,"label",["show"]),this.fillDataTextStyle(t.data),i&&dv(t,n,i)},mergeOption:function(t,e){t=du.merge(this.option,t,!0),this.fillDataTextStyle(t.data);var i=this.layoutMode;i&&dv(this.option,t,i),pv(this);var n=this.getInitialData(t,e);$e(n,this),this.dataTask.dirty(),this.dataTask.context.data=n,vv(this).dataBeforeProcessed=n,qe(this)},fillDataTextStyle:function(t){if(t&&!du.isTypedArray(t))for(var e=["show"],i=0;i1||l&&!o?function(i){function n(t,i){var n=a.getDimensionInfo(i);if(n&&!1!==n.otherDims.tooltip){var r=n.type,l=hv({color:u,type:"subItem"}),h=(o?l+lv(n.displayName||"-")+": ":"")+lv("ordinal"===r?t+"":"time"===r?e?"":sv("yyyy/MM/dd hh:mm:ss",t):uv(t));h&&s.push(h)}}var o=du.reduce(i,function(t,e,i){var n=a.getDimensionInfo(i);return t|=n&&!1!==n.tooltip&&null!=n.displayName},0),s=[];return r.length?du.each(r,function(e){n(mv(a,t,e),e)}):du.each(i,n),(o?"
":"")+s.join(o?"
":", ")}(s):n(o?mv(a,t,r[0]):l?s[0]:s),c=hv(u),d=a.getName(t),f=this.name;return Wc.isNameSpecified(this)||(f=""),f=f?lv(f)+(e?": ":"
"):"",e?c+f+h:f+c+(d?lv(d)+": "+h:h)},isAnimationEnabled:function(){if(Jl.node)return!1;var t=this.getShallow("animation");return t&&this.getData().count()>this.getShallow("animationThreshold")&&(t=!1),t},restoreData:function(){this.dataTask.dirty()},getColorFromPalette:function(t,e,i){var n=this.ecModel,a=gg.getColorFromPalette.call(this,t,e,i);return a||(a=n.getColorFromPalette(t,e,i)),a},coordDimToDataDim:function(t){return this.getRawData().mapDimension(t,!0)},getProgressive:function(){return this.get("progressive")},getProgressiveThreshold:function(){return this.get("progressiveThreshold")},getAxisTooltipData:null,getTooltipPosition:null,pipeTask:null,preventIncremental:null,pipelineContext:null});du.mixin(yv,iv),du.mixin(yv,gg);var xv=yv,_v=function(){this.group=new fh,this.uid=Hp.getUID("viewComponent")},bv=_v.prototype={constructor:_v,init:function(t,e){},render:function(t,e,i,n){},dispose:function(){}};bv.updateView=bv.updateLayout=bv.updateVisual=function(t,e,i,n){},Yc.enableClassExtend(_v),Yc.enableClassManagement(_v,{registerWhenExtend:!0});var wv=_v,Sv=Wc.makeInner,Mv=function(){var t=Sv();return function(e){var i=t(e),n=e.pipelineContext,a=i.large,r=i.progressiveRender,o=i.large=n.large,s=i.progressiveRender=n.progressiveRender;return!!(a^o||r^s)&&"reset"}},Iv=du.each,Av=ov.createTask,Tv=Wc.makeInner(),Dv=Mv(),Cv=Je.prototype={type:"chart",init:function(t,e){},render:function(t,e,i,n){},highlight:function(t,e,i,n){ti(t.getData(),n,"emphasis")},downplay:function(t,e,i,n){ti(t.getData(),n,"normal")},remove:function(t,e){this.group.removeAll()},dispose:function(){},incrementalPrepareRender:null,incrementalRender:null,updateTransform:null};Cv.updateView=Cv.updateLayout=Cv.updateVisual=function(t,e,i,n){this.render(t,e,i,n)},Yc.enableClassExtend(Je,["dispose"]),Yc.enableClassManagement(Je,{registerWhenExtend:!0}),Je.markUpdateMethod=function(t,e){Tv(t).updateMethod=e};var Lv={incrementalPrepareRender:{progress:function(t,e){e.view.incrementalRender(t,e.model,e.ecModel,e.api,e.payload)}},render:{forceFirstProgress:!0,progress:function(t,e){e.view.render(e.model,e.ecModel,e.api,e.payload)}}},Pv=Je,kv="\0__throttleOriginMethod",Ov="\0__throttleRate",Rv="\0__throttleType",Nv={throttle:ei,createOrUpdate:function(t,e,i,n){var a=t[e];if(a){var r=a[kv]||a,o=a[Rv];if(a[Ov]!==i||o!==n){if(null==i||!n)return t[e]=r;(a=t[e]=ei(r,i,"debounce"===n))[kv]=r,a[Rv]=n,a[Ov]=i}return a}},clear:function(t,e){var i=t[e];i&&i[kv]&&(t[e]=i[kv])}},Ev={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var i=t.getData(),n=(t.visualColorAccessPath||"itemStyle.color").split("."),a=t.get(n)||t.getColorFromPalette(t.name,null,e.getSeriesCount());if(i.setVisual("color",a),!e.isSeriesFiltered(t)){"function"!=typeof a||a instanceof Qf||i.each(function(e){i.setItemVisual(e,"color",a(t.getDataParams(e)))});return{dataEach:i.hasItemOption?function(t,e){var i=t.getItemModel(e).get(n,!0);null!=i&&t.setItemVisual(e,"color",i)}:null}}}},zv={toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType},",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}},Vv=Km.retrieveRawValue,Bv=function(t,e){function i(t,e){if("string"!=typeof t)return t;var i=t;return du.each(e,function(t,e){i=i.replace(new RegExp("\\{\\s*"+e+"\\s*\\}","g"),t)}),i}function n(t){var e=a.get(t);if(null==e){for(var i=t.split("."),n=zv.aria,r=0;r1?"series.multiple.prefix":"series.single.prefix"),{seriesCount:r}),e.eachSeries(function(t,e){if(e1?"multiple":"single")+".";a=i(a=n(o?l+"withName":l+"withoutName"),{seriesId:t.seriesIndex,seriesName:t.get("name"),seriesType:function(t){return zv.series.typeNames[t]||"自定义图"}(t.subType)});var h=t.getData();window.data=h,h.count()>s?a+=i(n("data.partialData"),{displayCnt:s}):a+=n("data.allData");for(var d=[],f=0;fi.blockIndex?i.step:null,r=n&&n.modDataCount;return{step:a,modBy:null!=r?Math.ceil(r/a):null,modDataCount:r}}},$v.getPipeline=function(t){return this._pipelineMap.get(t)},$v.updateStreamModes=function(t,e){var i=this._pipelineMap.get(t.uid),n=t.getData().count(),a=i.progressiveEnabled&&e.incrementalPrepareRender&&n>=i.threshold,r=t.get("large")&&n>=t.get("largeThreshold"),o="mod"===t.get("progressiveChunkMode")?n:null;t.pipelineContext=i.context={progressiveRender:a,modDataCount:o,large:r}},$v.restorePipelines=function(t){var e=this,i=e._pipelineMap=Zv();t.eachSeries(function(t){var n=t.getProgressive(),a=t.uid;i.set(a,{id:a,head:null,tail:null,threshold:t.getProgressiveThreshold(),progressiveEnabled:n&&!(t.preventIncremental&&t.preventIncremental()),blockIndex:-1,step:Math.round(n||700),count:0}),ri(e,t,t.dataTask)})},$v.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.ecInstance.getModel(),i=this.api;Fv(this._allHandlers,function(n){var a=t.get(n.uid)||t.set(n.uid,[]);n.reset&&function(t,e,i,n,a){function r(i){var r=i.uid,s=o.get(r)||o.set(r,Yv({plan:function(t){return t.plan&&t.plan(t.model,t.ecModel,t.api,t.payload)},reset:function(t){t.useClearVisual&&t.data.clearAllVisual();var e=t.resetDefines=qv(t.reset(t.model,t.ecModel,t.api,t.payload));return e.length>1?Wv(e,function(t,e){return ai(e)}):Jv},count:function(t){return t.data.count()}}));s.context={model:i,ecModel:n,api:a,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:t},ri(t,i,s)}var o=i.seriesTaskMap||(i.seriesTaskMap=Zv()),s=e.seriesType,l=e.getTargetSeries;e.createOnAllSeries?n.eachRawSeries(r):s?n.eachRawSeriesByType(s,r):l&&l(n,a).each(r);var u=t._pipelineMap;o.each(function(t,e){u.get(e)||(t.dispose(),o.removeKey(e))})}(this,n,a,e,i),n.overallReset&&function(t,e,i,n,a){function r(e){var i=e.uid,n=s.get(i);n||(n=s.set(i,Yv({reset:function(t,e){return t.overallProgress&&function(){this.agent.dirty(),this.getDownstream().dirty()}},onDirty:function(){this.agent&&this.agent.dirty()}})),o.dirty()),n.context={model:e,overallProgress:h,modifyOutputEnd:c},n.agent=o,n.__block=h,ri(t,e,n)}var o=i.overallTask=i.overallTask||Yv({reset:function(t){t.overallReset(t.ecModel,t.api,t.payload)}});o.context={ecModel:n,api:a,overallReset:e.overallReset,scheduler:t};var s=o.agentStubMap=o.agentStubMap||Zv(),l=e.seriesType,u=e.getTargetSeries,h=!0,c=e.modifyOutputEnd;l?n.eachRawSeriesByType(l,r):u?u(n,a).each(r):(h=!1,Fv(n.getSeries(),r));var d=t._pipelineMap;s.each(function(t,e){d.get(e)||(t.dispose(),o.dirty(),s.removeKey(e))})}(this,n,a,e,i)},this)},$v.prepareView=function(t,e,i,n){var a=t.renderTask,r=a.context;r.model=e,r.ecModel=i,r.api=n,a.__block=!t.incrementalPrepareRender,ri(this,e,a)},$v.performDataProcessorTasks=function(t,e){ni(this,this._dataProcessorHandlers,t,e,{block:!0})},$v.performVisualTasks=function(t,e,i){ni(this,this._visualHandlers,t,e,i)},$v.performSeriesTasks=function(t){var e;t.eachSeries(function(t){e|=t.dataTask.perform()}),this.unfinished|=e},$v.plan=function(){this._pipelineMap.each(function(t){var e=t.tail;do{if(e.__block){t.blockIndex=e.__idxInPipeline;break}e=e.getUpstream()}while(e)})};var Kv=$v.updatePayload=function(t,e){"remain"!==e&&(t.context.payload=e)},Jv=ai(0);ii.wrapStageHandler=function(t,e){return Uv(t)&&(t={overallReset:t,seriesType:function(t){Qv=null;try{t(ty,ey)}catch(t){}return Qv}(t)}),t.uid=Xv("stageHandler"),e&&(t.visualType=e),t};var Qv,ty={},ey={};oi(ty,fm),oi(ey,gm),ty.eachSeriesByType=ty.eachRawSeriesByType=function(t){Qv=t},ty.eachComponent=function(t){"series"===t.mainType&&t.subType&&(Qv=t.subType)};var iy=ii,ny=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"],ay={color:ny,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],ny]},ry=["#dd6b66","#759aa0","#e69d87","#8dc1a9","#ea7e53","#eedd78","#73a373","#73b9bc","#7289ab","#91ca8c","#f49f42"],oy={color:ry,backgroundColor:"#333",tooltip:{axisPointer:{lineStyle:{color:"#eee"},crossStyle:{color:"#eee"}}},legend:{textStyle:{color:"#eee"}},textStyle:{color:"#eee"},title:{textStyle:{color:"#eee"}},toolbox:{iconStyle:{normal:{borderColor:"#eee"}}},dataZoom:{textStyle:{color:"#eee"}},visualMap:{textStyle:{color:"#eee"}},timeline:{lineStyle:{color:"#eee"},itemStyle:{normal:{color:ry[1]}},label:{normal:{textStyle:{color:"#eee"}}},controlStyle:{normal:{color:"#eee",borderColor:"#eee"}}},timeAxis:{axisLine:{lineStyle:{color:"#eee"}},axisTick:{lineStyle:{color:"#eee"}},axisLabel:{textStyle:{color:"#eee"}},splitLine:{lineStyle:{type:"dashed",color:"#aaa"}},splitArea:{areaStyle:{color:"#eee"}}},logAxis:{axisLine:{lineStyle:{color:"#eee"}},axisTick:{lineStyle:{color:"#eee"}},axisLabel:{textStyle:{color:"#eee"}},splitLine:{lineStyle:{type:"dashed",color:"#aaa"}},splitArea:{areaStyle:{color:"#eee"}}},valueAxis:{axisLine:{lineStyle:{color:"#eee"}},axisTick:{lineStyle:{color:"#eee"}},axisLabel:{textStyle:{color:"#eee"}},splitLine:{lineStyle:{type:"dashed",color:"#aaa"}},splitArea:{areaStyle:{color:"#eee"}}},categoryAxis:{axisLine:{lineStyle:{color:"#eee"}},axisTick:{lineStyle:{color:"#eee"}},axisLabel:{textStyle:{color:"#eee"}},splitLine:{lineStyle:{type:"dashed",color:"#aaa"}},splitArea:{areaStyle:{color:"#eee"}}},line:{symbol:"circle"},graph:{color:ry},gauge:{title:{textStyle:{color:"#eee"}}},candlestick:{itemStyle:{normal:{color:"#FD1050",color0:"#0CF49B",borderColor:"#FD1050",borderColor0:"#0CF49B"}}}};oy.categoryAxis.splitLine.show=!1;var sy=oy,ly=$g.detectSourceFormat,uy=_g.SERIES_LAYOUT_BY_COLUMN;ug.extend({type:"dataset",defaultOption:{seriesLayoutBy:uy,sourceHeader:null,dimensions:null,source:null},optionUpdated:function(){ly(this)}}),wv.extend({type:"dataset"}),li.prototype={constructor:li,add:function(t){return this._add=t,this},update:function(t){return this._update=t,this},remove:function(t){return this._remove=t,this},execute:function(){var t=this._old,e=this._new,i={},n=[],a=[];for(ui(t,{},n,"_oldKeyGetter",this),ui(e,i,a,"_newKeyGetter",this),r=0;r=e)){for(var i,n=this._chunkSize,a=this._rawData,r=this._storage,o=this.dimensions,s=o.length,l=this._dimensionInfos,u=this._nameList,h=this._idList,c=this._rawExtent,d=this._nameRepeatCount={},f=this._chunkCount,p=f-1,g=0;gC[1]&&(C[1]=D)}if(!a.pure){var L=u[w];if(b&&null==L)if(null!=b.name)u[w]=L=b.name;else if(null!=i){var P=o[i],k=r[P][S];if(k){L=k[M];var O=l[P].ordinalMeta;O&&O.categories.length&&(L=O.categories[L])}}var R=null==b?null:b.id;null==R&&null!=L&&(d[L]=d[L]||0,R=L,d[L]>0&&(R+="__ec__"+d[L]),d[L]++),null!=R&&(h[w]=R)}}!a.persistent&&a.clean&&a.clean(),this._rawCount=this._count=e,this._extent={},function(t){var e=t._invertedIndicesMap;du.each(e,function(i,n){var a=t._dimensionInfos[n].ordinalMeta;if(a){for(i=e[n]=new by(a.categories.length),r=0;r=0&&e=0&&er&&(r=s)}return i=[a,r],this._extent[t]=i,i},Ay.getApproximateExtent=function(t){return t=this.getDimension(t),this._approximateExtent[t]||this.getDataExtent(t)},Ay.setApproximateExtent=function(t,e){e=this.getDimension(e),this._approximateExtent[e]=t.slice()},Ay.getCalculationInfo=function(t){return this._calculationInfo[t]},Ay.setCalculationInfo=function(t,e){yy(t)?du.extend(this._calculationInfo,t):this._calculationInfo[t]=e},Ay.getSum=function(t){var e=0;if(this._storage[t])for(var i=0,n=this.count();i=this._rawCount||t<0)return-1;var e=this._indices,i=e[t];if(null!=i&&it))return r;a=r-1}}return-1},Ay.indicesOfNearest=function(t,e,i){var n=[];if(!this._storage[t])return n;null==i&&(i=1/0);for(var a=Number.MAX_VALUE,r=-1,o=0,s=this.count();o=0&&r<0)&&(a=u,r=l,n.length=0),n.push(o))}return n},Ay.getRawIndex=fi,Ay.getRawDataItem=function(t){if(this._rawData.persistent)return this._rawData.getItem(this.getRawIndex(t));for(var e=[],i=0;i=l&&b<=u||isNaN(b))&&(r[o++]=c),c++}h=!0}else if(2===n){for(var d=this._storage[s],v=this._storage[e[1]],y=t[e[1]][0],x=t[e[1]][1],f=0;f=l&&b<=u||isNaN(b))&&(w>=y&&w<=x||isNaN(w))&&(r[o++]=c),c++}h=!0}}if(!h)if(1===n)for(m=0;m=l&&b<=u||isNaN(b))&&(r[o++]=M)}else for(m=0;mt[I][1])&&(S=!1)}S&&(r[o++]=this.getRawIndex(m))}return ob[1]&&(b[1]=_)}}}return a},Ay.downSample=function(t,e,i,n){for(var a=vi(this,[t]),r=a._storage,o=[],s=Math.floor(1/e),l=r[t],u=this.count(),h=this._chunkSize,c=a._rawExtent[t],d=new(hi(this))(u),f=0,p=0;pu-p&&(s=u-p,o.length=s);for(var g=0;gc[1]&&(c[1]=x),d[f++]=_}return a._count=f,a._indices=d,a.getRawIndex=pi,a},Ay.getItemModel=function(t){var e=this.hostModel;return new Vp(this.getRawDataItem(t),e,e&&e.ecModel)},Ay.diff=function(t){var e=this;return new hy(t?t.getIndices():[],this.getIndices(),function(e){return gi(t,e)},function(t){return gi(e,t)})},Ay.getVisual=function(t){var e=this._visual;return e&&e[t]},Ay.setVisual=function(t,e){if(yy(t))for(var i in t)t.hasOwnProperty(i)&&this.setVisual(i,t[i]);else this._visual=this._visual||{},this._visual[t]=e},Ay.setLayout=function(t,e){if(yy(t))for(var i in t)t.hasOwnProperty(i)&&this.setLayout(i,t[i]);else this._layout[t]=e},Ay.getLayout=function(t){return this._layout[t]},Ay.getItemLayout=function(t){return this._itemLayouts[t]},Ay.setItemLayout=function(t,e,i){this._itemLayouts[t]=i?du.extend(this._itemLayouts[t]||{},e):e},Ay.clearItemLayouts=function(){this._itemLayouts.length=0},Ay.getItemVisual=function(t,e,i){var n=this._itemVisuals[t],a=n&&n[e];return null!=a||i?a:this.getVisual(e)},Ay.setItemVisual=function(t,e,i){var n=this._itemVisuals[t]||{},a=this.hasItemVisual;if(this._itemVisuals[t]=n,yy(e))for(var r in e)e.hasOwnProperty(r)&&(n[r]=e[r],a[r]=!0);else n[e]=i,a[e]=!0},Ay.clearAllVisual=function(){this._visual={},this._itemVisuals=[],this.hasItemVisual={}};Ay.setItemGraphicEl=function(t,e){var i=this.hostModel;e&&(e.dataIndex=t,e.dataType=this.dataType,e.seriesIndex=i&&i.seriesIndex,"group"===e.type&&e.traverse(function(t){t.seriesIndex=this.seriesIndex,t.dataIndex=this.dataIndex,t.dataType=this.dataType},e)),this._graphicEls[t]=e},Ay.getItemGraphicEl=function(t){return this._graphicEls[t]},Ay.eachItemGraphicEl=function(t,e){du.each(this._graphicEls,function(i,n){i&&t&&t.call(e,i,n)})},Ay.cloneShallow=function(t){if(!t){var e=du.map(this.dimensions,this.getDimensionInfo,this);t=new Iy(e,this.hostModel)}if(t._storage=this._storage,ci(t,this),this._indices){var i=this._indices.constructor;t._indices=new i(this._indices)}else t._indices=null;return t.getRawIndex=t._indices?pi:fi,t},Ay.wrapMethod=function(t,e){var i=this[t];"function"==typeof i&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var t=i.apply(this,arguments);return e.apply(this,[t].concat(du.slice(arguments)))})},Ay.TRANSFERABLE_METHODS=["cloneShallow","downSample","map"],Ay.CHANGABLE_METHODS=["filterSelf","selectRange"];var Ty=Iy,Dy=du.createHashMap,Cy=du.each,Ly=du.isString,Py=du.defaults,ky=du.extend,Oy=du.isObject,Ry=du.clone,Ny=Wc.normalizeToArray,Ey=$g.guessOrdinal,zy=py.OTHER_DIMENSIONS,Vy=function(t,e,i){function n(t,e,i){null!=zy.get(e)?t.otherDims[e]=i:(t.coordDim=e,t.coordDimIndex=i,s.set(e,!0))}Cg.isInstance(e)||(e=Cg.seriesDataToSource(e)),i=i||{},t=(t||[]).slice();for(var a=(i.dimsDef||[]).slice(),r=Dy(i.encodeDef),o=Dy(),s=Dy(),l=[],u=function(t,e,i,n){var a=Math.max(t.dimensionsDetectCount||1,e.length,i.length,n||0);return Cy(e,function(t){var e=t.dimsDef;e&&(a=Math.max(a,e.length))}),a}(e,t,a,i.dimCount),h=0;h=e[0]&&t<=e[1]},bi.prototype.normalize=function(t){var e=this._extent;return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])},bi.prototype.scale=function(t){var e=this._extent;return t*(e[1]-e[0])+e[0]},bi.prototype.unionExtent=function(t){var e=this._extent;t[0]e[1]&&(e[1]=t[1])},bi.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},bi.prototype.getExtent=function(){return this._extent.slice()},bi.prototype.setExtent=function(t,e){var i=this._extent;isNaN(t)||(i[0]=t),isNaN(e)||(i[1]=e)},bi.prototype.isBlank=function(){return this._isBlank},bi.prototype.setBlank=function(t){this._isBlank=t},bi.prototype.getLabel=null,Yc.enableClassExtend(bi),Yc.enableClassManagement(bi,{registerWhenExtend:!0});var qy=bi,$y=du.createHashMap,Ky=du.isObject,Jy=du.map;wi.createByAxisModel=function(t){var e=t.option,i=e.data,n=i&&Jy(i,function(t){return Ky(t)&&null!=t.value?t.value:t+""});return new wi({categories:n,needCollect:!n,deduplication:!1!==e.dedplication})};var Qy=wi.prototype;Qy.getOrdinal=function(t){return Si(this).get(t)},Qy.parseAndCollect=function(t){var e,i=this._needCollect;if("string"!=typeof t&&!i)return t;if(i&&!this._deduplication)return e=this.categories.length,this.categories[e]=t,e;var n=Si(this);return null==(e=n.get(t))&&(i?(e=this.categories.length,this.categories[e]=t,n.set(t,e)):e=NaN),e};var tx=wi,ex=qy.prototype,ix=qy.extend({type:"ordinal",init:function(t,e){t&&!du.isArray(t)||(t=new tx({categories:t})),this._ordinalMeta=t,this._extent=e||[0,t.categories.length-1]},parse:function(t){return"string"==typeof t?this._ordinalMeta.getOrdinal(t):Math.round(t)},contain:function(t){return t=this.parse(t),ex.contain.call(this,t)&&null!=this._ordinalMeta.categories[t]},normalize:function(t){return ex.normalize.call(this,this.parse(t))},scale:function(t){return Math.round(ex.scale.call(this,t))},getTicks:function(){for(var t=[],e=this._extent,i=e[0];i<=e[1];)t.push(i),i++;return t},getLabel:function(t){if(!this.isBlank())return this._ordinalMeta.categories[t]},count:function(){return this._extent[1]-this._extent[0]+1},unionExtentFromData:function(t,e){this.unionExtent(t.getApproximateExtent(e))},getOrdinalMeta:function(){return this._ordinalMeta},niceTicks:du.noop,niceExtent:du.noop});ix.create=function(){return new ix};var nx=ix,ax=Up.round,rx={intervalScaleNiceTicks:function(t,e,i,n){var a={},r=t[1]-t[0],o=a.interval=Up.nice(r/e,!0);null!=i&&on&&(o=a.interval=n);var s=a.intervalPrecision=Mi(o);return Ai(a.niceTickExtent=[ax(Math.ceil(t[0]/o)*o,s),ax(Math.floor(t[1]/o)*o,s)],t),a},getIntervalPrecision:Mi,fixExtent:Ai,intervalScaleGetTicks:function(t,e,i,n){var a=[];if(!t)return a;e[0]1e4)return[];return e[1]>(a.length?a[a.length-1]:i[1])&&a.push(e[1]),a}},ox=Up.round,sx=qy.extend({type:"interval",_interval:0,_intervalPrecision:2,setExtent:function(t,e){var i=this._extent;isNaN(t)||(i[0]=parseFloat(t)),isNaN(e)||(i[1]=parseFloat(e))},unionExtent:function(t){var e=this._extent;t[0]e[1]&&(e[1]=t[1]),sx.prototype.setExtent.call(this,e[0],e[1])},getInterval:function(){return this._interval},setInterval:function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=rx.getIntervalPrecision(t)},getTicks:function(){return rx.intervalScaleGetTicks(this._interval,this._extent,this._niceExtent,this._intervalPrecision)},getLabel:function(t,e){if(null==t)return"";var i=e&&e.precision;return null==i?i=Up.getPrecisionSafe(t)||0:"auto"===i&&(i=this._intervalPrecision),t=ox(t,i,!0),qp.addCommas(t)},niceTicks:function(t,e,i){t=t||5;var n=this._extent,a=n[1]-n[0];if(isFinite(a)){a<0&&(a=-a,n.reverse());var r=rx.intervalScaleNiceTicks(n,t,e,i);this._intervalPrecision=r.intervalPrecision,this._interval=r.interval,this._niceExtent=r.niceTickExtent}},niceExtent:function(t){var e=this._extent;if(e[0]===e[1])if(0!==e[0]){var i=e[0];t.fixMax?e[0]-=i/2:(e[1]+=i/2,e[0]-=i/2)}else e[1]=1;var n=e[1]-e[0];isFinite(n)||(e[0]=0,e[1]=1),this.niceTicks(t.splitNumber,t.minInterval,t.maxInterval);var a=this._interval;t.fixMin||(e[0]=ox(Math.floor(e[0]/a)*a)),t.fixMax||(e[1]=ox(Math.ceil(e[1]/a)*a))}});sx.create=function(){return new sx};var lx=sx,ux=Up.parsePercent,hx=Fy.isDimensionStacked,cx="__ec_stack_",dx="undefined"!=typeof Float32Array?Float32Array:Array,fx={getLayoutOnAxis:function(t){var e=[],i=t.axis;if("category"===i.type){for(var n=i.getBandWidth(),a=0;a=0?"p":"n",S=v;g&&(a[s][b]||(a[s][b]={p:v,n:v}),S=a[s][b][w]);var M,I,A,T;if(m)M=S,I=(D=i.dataToPoint([_,b]))[1]+u,A=D[0]-v,T=h,Math.abs(A).5||(u=.5),{progress:function(t,e){for(var h,c=new dx(2*t.count),d=[],f=[],p=0;null!=(h=t.next());)f[l]=e.get(r,h),f[1-l]=e.get(o,h),d=i.dataToPoint(f,null,d),c[p++]=d[0],c[p++]=d[1];e.setLayout({largePoints:c,barWidth:u,valueAxisStart:Ni(n,a,!1),valueAxisHorizontal:s})}}}}}},px=lx.prototype,gx=Math.ceil,mx=Math.floor,vx=lx.extend({type:"time",getLabel:function(t){var e=this._stepLvl,i=new Date(t);return qp.formatTime(e[0],i,this.getSetting("useUTC"))},niceExtent:function(t){var e=this._extent;if(e[0]===e[1]&&(e[0]-=864e5,e[1]+=864e5),e[1]===-1/0&&e[0]===1/0){var i=new Date;e[1]=+new Date(i.getFullYear(),i.getMonth(),i.getDate()),e[0]=e[1]-864e5}this.niceTicks(t.splitNumber,t.minInterval,t.maxInterval);var n=this._interval;t.fixMin||(e[0]=Up.round(mx(e[0]/n)*n)),t.fixMax||(e[1]=Up.round(gx(e[1]/n)*n))},niceTicks:function(t,e,i){t=t||10;var n=this._extent,a=n[1]-n[0],r=a/t;null!=e&&ri&&(r=i);var o=yx.length,s=function(t,e,i,n){for(;i>>1;t[a][1]0;)n*=10;var a=[Up.round(Ix(e[0]/n)*n),Up.round(Mx(e[1]/n)*n)];this._interval=n,this._niceExtent=a}},niceExtent:function(t){_x.niceExtent.call(this,t);var e=this._originalScale;e.__fixMin=t.fixMin,e.__fixMax=t.fixMax}});du.each(["contain","normalize"],function(t){Dx.prototype[t]=function(e){return e=Tx(e)/Tx(this.base),xx[t].call(this,e)}}),Dx.create=function(){return new Dx};var Cx=fx.prepareLayoutBarSeries,Lx=fx.makeColumnLayout,Px=fx.retrieveColumnLayout,kx={getScaleExtent:zi,niceScaleExtent:function(t,e){var i=zi(t,e),n=null!=e.getMin(),a=null!=e.getMax(),r=e.get("splitNumber");"log"===t.type&&(t.base=e.get("logBase"));var o=t.type;t.setExtent(i[0],i[1]),t.niceExtent({splitNumber:r,fixMin:n,fixMax:a,minInterval:"interval"===o||"time"===o?e.get("minInterval"):null,maxInterval:"interval"===o||"time"===o?e.get("maxInterval"):null});var s=e.get("interval");null!=s&&t.setInterval&&t.setInterval(s)},createScaleByModel:function(t,e){if(e=e||t.get("type"))switch(e){case"category":return new nx(t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),[1/0,-1/0]);case"value":return new lx;default:return(qy.getClass(e)||lx).create(t)}},ifAxisCrossZero:function(t){var e=t.scale.getExtent(),i=e[0],n=e[1];return!(i>0&&n>0||i<0&&n<0)},makeLabelFormatter:Vi,getAxisRawValue:Bi,estimateLabelUnionRect:function(t){var e=t.model,i=t.scale;if(e.get("axisLabel.show")&&!i.isBlank()){var n,a,r="category"===t.type,o=i.getExtent();a=r?i.count():(n=i.getTicks()).length;var s,l=t.getLabelModel(),u=Vi(t),h=1;a>40&&(h=Math.ceil(a/40));for(var c=0;c0}),function(t){var e=t.properties,i=t.geometry,n=i.coordinates,a=[];"Polygon"===i.type&&a.push({type:"polygon",exterior:n[0],interiors:n.slice(1)}),"MultiPolygon"===i.type&&du.each(n,function(t){t[0]&&a.push({type:"polygon",exterior:t[0],interiors:t.slice(1)})});var r=new $x(e.name,a,e.cp);return r.properties=e,r})},Jx=Wc.makeInner,Qx=kx.makeLabelFormatter,t_=Jx(),e_={createAxisLabels:function(t){return"category"===t.type?function(t){var e=t.getLabelModel(),i=Wi(t,e);return!e.get("show")||t.scale.isBlank()?{labels:[],labelCategoryInterval:i.labelCategoryInterval}:i}(t):function(t){var e=t.scale.getTicks(),i=Qx(t);return{labels:du.map(e,function(e,n){return{formattedLabel:i(e,n),rawLabel:t.scale.getLabel(e),tickValue:e}})}}(t)},createAxisTicks:function(t,e){return"category"===t.type?function(t,e){var i=Ui(t,"ticks"),n=qi(e),a=Zi(i,n);if(a)return a;var r,o;if(e.get("show")&&!t.scale.isBlank()||(r=[]),du.isFunction(n))r=Xi(t,n,!0);else if("auto"===n){var s=Wi(t,t.getLabelModel());o=s.labelCategoryInterval,r=du.map(s.labels,function(t){return t.tickValue})}else r=Yi(t,o=n,!0);return ji(i,n,{ticks:r,tickCategoryInterval:o})}(t,e):{ticks:t.scale.getTicks()}},calculateCategoryInterval:function(t){var e=function(t){var e=t.getLabelModel();return{axisRotate:t.getRotate?t.getRotate():t.isHorizontal&&!t.isHorizontal()?90:0,labelRotate:e.get("rotate")||0,font:e.getFont()}}(t),i=Qx(t),n=(e.axisRotate-e.labelRotate)/180*Math.PI,a=t.scale,r=a.getExtent(),o=a.count();if(r[1]-r[0]<1)return 0;var s=1;o>40&&(s=Math.max(1,Math.floor(o/40)));for(var l=r[0],u=t.dataToCoord(l+1)-t.dataToCoord(l),h=Math.abs(u*Math.cos(n)),c=Math.abs(u*Math.sin(n)),d=0,f=0;l<=r[1];l+=s){var p=0,g=0,m=jh.getBoundingRect(i(l),e.font,"center","top");p=1.3*m.width,g=1.3*m.height,d=Math.max(d,p,7),f=Math.max(f,g,7)}var v=d/h,y=f/c;isNaN(v)&&(v=1/0),isNaN(y)&&(y=1/0);var x=Math.max(0,Math.floor(Math.min(v,y))),_=t_(t.model),b=_.lastAutoInterval,w=_.lastTickCount;return null!=b&&null!=w&&Math.abs(b-x)<=1&&Math.abs(w-o)<=1&&b>x?x=b:(_.lastTickCount=o,_.lastAutoInterval=x),x}},i_=du.each,n_=du.map,a_=Up.linearMap,r_=Up.getPixelPrecision,o_=e_.createAxisTicks,s_=e_.createAxisLabels,l_=e_.calculateCategoryInterval,u_=[0,1],h_=function(t,e,i){this.dim=t,this.scale=e,this._extent=i||[0,0],this.inverse=!1,this.onBand=!1};h_.prototype={constructor:h_,contain:function(t){var e=this._extent,i=Math.min(e[0],e[1]),n=Math.max(e[0],e[1]);return t>=i&&t<=n},containData:function(t){return this.contain(this.dataToCoord(t))},getExtent:function(){return this._extent.slice()},getPixelPrecision:function(t){return r_(t||this.scale.getExtent(),this._extent)},setExtent:function(t,e){var i=this._extent;i[0]=t,i[1]=e},dataToCoord:function(t,e){var i=this._extent,n=this.scale;return t=n.normalize(t),this.onBand&&"ordinal"===n.type&&$i(i=i.slice(),n.count()),a_(t,u_,i,e)},coordToData:function(t,e){var i=this._extent,n=this.scale;this.onBand&&"ordinal"===n.type&&$i(i=i.slice(),n.count());var a=a_(t,i,u_,e);return this.scale.scale(a)},pointToData:function(t,e){},getTicksCoords:function(t){var e=(t=t||{}).tickModel||this.getTickModel(),i=o_(this,e),n=i.ticks,a=n_(n,function(t){return{coord:this.dataToCoord(t),tickValue:t}},this),r=e.get("alignWithLabel");return function(t,e,i,n,a){function r(t,e){return h?t>e:t0&&(t.coord-=u/(2*(e+1)))}),s={coord:e[o-1].coord+u},e.push(s)}var h=l[0]>l[1];r(e[0].coord,l[0])&&(a?e[0].coord=l[0]:e.shift()),a&&r(l[0],e[0].coord)&&e.unshift({coord:l[0]}),r(l[1],s.coord)&&(a?s.coord=l[1]:e.pop()),a&&r(s.coord,l[1])&&e.push({coord:l[1]})}}(this,a,i.tickCategoryInterval,r,t.clamp),a},getViewLabels:function(){return s_(this).labels},getLabelModel:function(){return this.model.getModel("axisLabel")},getTickModel:function(){return this.model.getModel("axisTick")},getBandWidth:function(){var t=this._extent,e=this.scale.getExtent(),i=e[1]-e[0]+(this.onBand?1:0);0===i&&(i=1);var n=Math.abs(t[1]-t[0]);return Math.abs(n)/i},isHorizontal:null,getRotate:null,calculateCategoryInterval:function(){return l_(this)}};var c_=h_,d_=zc,f_=Mu,p_=pu,g_=Wu,m_=Dp,v_=Up,y_=qp,x_=(Nv.throttle,Nv.throttle),__=Yx,b_=Kx,w_=Ty,S_=Vp,M_=c_,I_=Jl,A_=Kx,T_={};du.each(["map","each","filter","indexOf","inherits","reduce","filter","bind","curry","isArray","isString","isObject","isFunction","extend","defaults","clone","merge"],function(t){T_[t]=du[t]});var D_={zrender:d_,matrix:f_,vector:p_,color:g_,graphic:m_,number:v_,format:y_,throttle:x_,helper:__,parseGeoJSON:b_,List:w_,Model:S_,Axis:M_,env:I_,parseGeoJson:A_,util:T_},C_=t(function(t,e){function i(t){return function(e,i,n){e=e&&e.toLowerCase(),yu.prototype[t].call(this,e,i,n)}}function n(){yu.call(this)}function a(t,e,i){function a(t,e){return t.__prio-e.__prio}i=i||{},"string"==typeof e&&(e=q[e]),this.id,this.group,this._dom=t;var r=this._zr=zc.init(t,{renderer:i.renderer||"canvas",devicePixelRatio:i.devicePixelRatio,width:i.width,height:i.height});this._throttledZrFlush=T(du.bind(r.flush,r),17);(e=du.clone(e))&&Rm(e,!0),this._theme=e,this._chartsViews=[],this._chartsMap={},this._componentsViews=[],this._componentsMap={},this._coordSysMgr=new vm;var o=this._api=function(t){var e=t._coordSysMgr;return du.extend(new gm(t),{getCoordinateSystems:du.bind(e.getCoordinateSystems,e),getComponentByElement:function(e){for(;e;){var i=e.__ecComponentInfo;if(null!=i)return t._model.getComponent(i.mainType,i.index);e=e.parent}}})}(this);mh(X,a),mh(Z,a),this._scheduler=new iy(this,o,Z,X),yu.call(this),this._messageCenter=new n,this._initEvents(),this.resize=du.bind(this.resize,this),this._pendingActions=[],r.animation.on("frame",this._onframe,this),function(t,e){t.on("rendered",function(){e.trigger("rendered"),!t.animation.isFinished()||e[V]||e._scheduler.unfinished||e._pendingActions.length||e.trigger("finished")})}(r,this),du.setAsPrimitive(this)}function r(t,e,i){var n,a=this._model,r=this._coordSysMgr.getCoordinateSystems();e=Wc.parseFinder(a,e);for(var o=0;oe.get("hoverLayerThreshold")&&!Jl.node&&i.traverse(function(t){t.isGroup||(t.useHoverLayer=!0)})}(t._zr,e),Bv(t._zr.dom,e)}function m(t,e){C(Y,function(i){i(t,e)})}function v(t,e){var i=t.get("z"),n=t.get("zlevel");e.group.traverse(function(t){"group"!==t.type&&(null!=i&&(t.z=i),null!=n&&(t.zlevel=n))})}function y(t){J[t]=!1}function x(t){return K[Wc.getAttribute(t,et)]}function _(t,e){q[t]=e}function b(t){j.push(t)}function w(t,e){I(Z,t,e,O)}function S(t,e,i){"function"==typeof e&&(i=e,e="");var n=P(t)?t.type:[t,t={event:e}][0];t.event=(t.event||n).toLowerCase(),e=t.event,D(B.test(n)&&B.test(e)),W[n]||(W[n]={action:i,actionInfo:t}),U[e]=n}function M(t,e){I(X,t,e,N,"visual")}function I(t,e,i,n,a){(L(e)||P(e))&&(i=e,e=n);var r=iy.wrapStageHandler(i,a);return r.__prio=e,r.__raw=i,t.push(r),r}function A(t,e){$[t]=e}var T=Nv.throttle,D=du.assert,C=du.each,L=du.isFunction,P=du.isObject,k=ug.parseClassType,O=1e3,R=1e3,N=3e3,E={PROCESSOR:{FILTER:O,STATISTIC:5e3},VISUAL:{LAYOUT:R,GLOBAL:2e3,CHART:N,COMPONENT:4e3,BRUSH:5e3}},z="__flagInMainProcess",V="__optionUpdated",B=/^[a-zA-Z0-9_]+$/;n.prototype.on=i("on"),n.prototype.off=i("off"),n.prototype.one=i("one"),du.mixin(n,yu);var G=a.prototype;G._onframe=function(){if(!this._disposed){var t=this._scheduler;if(this[V]){var e=this[V].silent;this[z]=!0,o(this),H.update.call(this),this[z]=!1,this[V]=!1,h.call(this,e),c.call(this,e)}else if(t.unfinished){var i=1,n=this._model;this._api;t.unfinished=!1;do{var a=+new Date;t.performSeriesTasks(n),t.performDataProcessorTasks(n),l(this,n),t.performVisualTasks(n),g(this,this._model,0,"remain"),i-=+new Date-a}while(i>0&&t.unfinished);t.unfinished||this._zr.flush()}}},G.getDom=function(){return this._dom},G.getZr=function(){return this._zr},G.setOption=function(t,e,i){var n;if(P(e)&&(i=e.lazyUpdate,n=e.silent,e=e.notMerge),this[z]=!0,!this._model||e){var a=new Sm(this._api),r=this._theme,s=this._model=new fm(null,null,r,a);s.scheduler=this._scheduler,s.init(null,null,r,a)}this._model.setOption(t,j),i?(this[V]={silent:n},this[z]=!1):(o(this),H.update.call(this),this._zr.flush(),this[V]=!1,this[z]=!1,h.call(this,n),c.call(this,n))},G.setTheme=function(){console.log("ECharts#setTheme() is DEPRECATED in ECharts 3.0")},G.getModel=function(){return this._model},G.getOption=function(){return this._model&&this._model.getOption()},G.getWidth=function(){return this._zr.getWidth()},G.getHeight=function(){return this._zr.getHeight()},G.getDevicePixelRatio=function(){return this._zr.painter.dpr||window.devicePixelRatio||1},G.getRenderedCanvas=function(t){if(Jl.canvasSupported){(t=t||{}).pixelRatio=t.pixelRatio||1,t.backgroundColor=t.backgroundColor||this._model.get("backgroundColor");return this._zr.painter.getRenderedCanvas(t)}},G.getSvgDataUrl=function(){if(Jl.svgSupported){var t=this._zr,e=t.storage.getDisplayList();return du.each(e,function(t){t.stopAnimation(!0)}),t.painter.pathToDataUrl()}},G.getDataURL=function(t){var e=(t=t||{}).excludeComponents,i=this._model,n=[],a=this;C(e,function(t){i.eachComponent({mainType:t},function(t){var e=a._componentsMap[t.__viewId];e.group.ignore||(n.push(e),e.group.ignore=!0)})});var r="svg"===this._zr.painter.getType()?this.getSvgDataUrl():this.getRenderedCanvas(t).toDataURL("image/"+(t&&t.type||"png"));return C(n,function(t){t.group.ignore=!1}),r},G.getConnectedDataURL=function(t){if(Jl.canvasSupported){var e=this.group,i=Math.min,n=Math.max;if(J[e]){var a=1/0,r=1/0,o=-1/0,s=-1/0,l=[],u=t&&t.pixelRatio||1;du.each(K,function(u,h){if(u.group===e){var c=u.getRenderedCanvas(du.clone(t)),d=u.getDom().getBoundingClientRect();a=i(d.left,a),r=i(d.top,r),o=n(d.right,o),s=n(d.bottom,s),l.push({dom:c,left:d.left,top:d.top})}});var h=(o*=u)-(a*=u),c=(s*=u)-(r*=u),d=du.createCanvas();d.width=h,d.height=c;var f=zc.init(d);return C(l,function(t){var e=new Dp.Image({style:{x:t.left*u-a,y:t.top*u-r,image:t.dom}});f.add(e)}),f.refreshImmediately(),d.toDataURL("image/"+(t&&t.type||"png"))}return this.getDataURL(t)}},G.convertToPixel=du.curry(r,"convertToPixel"),G.convertFromPixel=du.curry(r,"convertFromPixel"),G.containPixel=function(t,e){var i,n=this._model;return t=Wc.parseFinder(n,t),du.each(t,function(t,n){n.indexOf("Models")>=0&&du.each(t,function(t){var a=t.coordinateSystem;if(a&&a.containPoint)i|=!!a.containPoint(e);else if("seriesModels"===n){var r=this._chartsMap[t.__viewId];r&&r.containPoint&&(i|=r.containPoint(e,t))}},this)},this),!!i},G.getVisual=function(t,e){var i=this._model,n=(t=Wc.parseFinder(i,t,{defaultMainType:"series"})).seriesModel.getData(),a=t.hasOwnProperty("dataIndexInside")?t.dataIndexInside:t.hasOwnProperty("dataIndex")?n.indexOfRawIndex(t.dataIndex):null;return null!=a?n.getItemVisual(a,e):n.getVisual(e)},G.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},G.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]};var H={prepareAndUpdate:function(t){o(this),H.update.call(this,t)},update:function(t){var e=this._model,i=this._api,n=this._zr,a=this._coordSysMgr,r=this._scheduler;if(e){r.restoreData(e,t),r.performSeriesTasks(e),a.create(e,i),r.performDataProcessorTasks(e,t),l(this,e),a.update(e,i),f(e),r.performVisualTasks(e,t),p(this,e,i,t);var o=e.get("backgroundColor")||"transparent";if(Jl.canvasSupported)n.setBackgroundColor(o);else{var s=Wu.parse(o);o=Wu.stringify(s,"rgb"),0===s[3]&&(o="transparent")}m(e,i)}},updateTransform:function(t){var e=this._model,i=this,n=this._api;if(e){var a=[];e.eachComponent(function(r,o){var s=i.getViewOfComponentModel(o);if(s&&s.__alive)if(s.updateTransform){var l=s.updateTransform(o,e,n,t);l&&l.update&&a.push(s)}else a.push(s)});var r=du.createHashMap();e.eachSeries(function(a){var o=i._chartsMap[a.__viewId];if(o.updateTransform){var s=o.updateTransform(a,e,n,t);s&&s.update&&r.set(a.uid,1)}else r.set(a.uid,1)}),f(e),this._scheduler.performVisualTasks(e,t,{setDirty:!0,dirtyMap:r}),g(i,e,0,t,r),m(e,this._api)}},updateView:function(t){var e=this._model;e&&(Pv.markUpdateMethod(t,"updateView"),f(e),this._scheduler.performVisualTasks(e,t,{setDirty:!0}),p(this,this._model,this._api,t),m(e,this._api))},updateVisual:function(t){H.update.call(this,t)},updateLayout:function(t){H.update.call(this,t)}};G.resize=function(t){this._zr.resize(t);var e=this._model;if(this._loadingFX&&this._loadingFX.resize(),e){var i=e.resetOption("media"),n=t&&t.silent;this[z]=!0,i&&o(this),H.update.call(this),this[z]=!1,h.call(this,n),c.call(this,n)}},G.showLoading=function(t,e){if(P(t)&&(e=t,t=""),t=t||"default",this.hideLoading(),$[t]){var i=$[t](this._api,e),n=this._zr;this._loadingFX=i,n.add(i)}},G.hideLoading=function(){this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},G.makeActionFromEvent=function(t){var e=du.extend({},t);return e.type=U[t.type],e},G.dispatchAction=function(t,e){P(e)||(e={silent:!!e}),W[t.type]&&this._model&&(this[z]?this._pendingActions.push(t):(u.call(this,t,e.silent),e.flush?this._zr.flush(!0):!1!==e.flush&&Jl.browser.weChat&&this._throttledZrFlush(),h.call(this,e.silent),c.call(this,e.silent)))},G.appendData=function(t){var e=t.seriesIndex;this.getModel().getSeriesByIndex(e).appendData(t),this._scheduler.unfinished=!0},G.on=i("on"),G.off=i("off"),G.one=i("one");var F=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];G._initEvents=function(){C(F,function(t){this._zr.on(t,function(e){var i,n=this.getModel(),a=e.target;if("globalout"===t)i={};else if(a&&null!=a.dataIndex){var r=a.dataModel||n.getSeriesByIndex(a.seriesIndex);i=r&&r.getDataParams(a.dataIndex,a.dataType)||{}}else a&&a.eventData&&(i=du.extend({},a.eventData));i&&(i.event=e,i.type=t,this.trigger(t,i))},this)},this),C(U,function(t,e){this._messageCenter.on(e,function(t){this.trigger(e,t)},this)},this)},G.isDisposed=function(){return this._disposed},G.clear=function(){this.setOption({series:[]},!0)},G.dispose=function(){if(!this._disposed){this._disposed=!0,Wc.setAttribute(this.getDom(),et,"");var t=this._api,e=this._model;C(this._componentsViews,function(i){i.dispose(e,t)}),C(this._chartsViews,function(i){i.dispose(e,t)}),this._zr.dispose(),delete K[this.id]}},du.mixin(a,yu);var W={},U={},Z=[],j=[],Y=[],X=[],q={},$={},K={},J={},Q=new Date-0,tt=new Date-0,et="_echarts_instance_",it={},nt=y;M(2e3,Ev),b(Rm),w(5e3,zm),A("default",Hv),S({type:"highlight",event:"highlight",update:"highlight"},du.noop),S({type:"downplay",event:"downplay",update:"downplay"},du.noop),_("light",ay),_("dark",sy);e.version="4.1.0",e.dependencies={zrender:"4.0.4"},e.PRIORITY=E,e.init=function(t,e,i){var n=x(t);if(n)return n;var r=new a(t,e,i);return r.id="ec_"+Q++,K[r.id]=r,Wc.setAttribute(t,et,r.id),function(t){function e(t,e){for(var n=0;n0?i=n[0]:n[1]<0&&(i=n[1]),i}(r,i),s=a.dim,l=r.dim,u=e.mapDimension(l),h=e.mapDimension(s),c="x"===l||"radius"===l?1:0,d=j_(t.dimensions,function(t){return e.mapDimension(t)}),f=e.getCalculationInfo("stackResultDimension");return(n|=Z_(e,d[0]))&&(d[0]=f),(n|=Z_(e,d[1]))&&(d[1]=f),{dataDimsForPoint:d,valueStart:o,valueAxisDim:l,baseAxisDim:s,stacked:!!n,valueDim:u,baseDim:h,baseDataOffset:c,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}},getStackedOnPoint:function(t,e,i,n){var a=NaN;t.stacked&&(a=i.get(i.getCalculationInfo("stackedOverDimension"),n)),isNaN(a)&&(a=t.valueStart);var r=t.baseDataOffset,o=[];return o[r]=i.get(t.baseDim,n),o[1-r]=a,e.dataToPoint(o)}},X_=Y_.prepareDataCoordInfo,q_=Y_.getStackedOnPoint,$_=function(t,e,i,n,a,r,o,s){for(var l=function(t,e){var i=[];return e.diff(t).add(function(t){i.push({cmd:"+",idx:t})}).update(function(t,e){i.push({cmd:"=",idx:e,idx1:t})}).remove(function(t){i.push({cmd:"-",idx:t})}).execute(),i}(t,e),u=[],h=[],c=[],d=[],f=[],p=[],g=[],m=X_(a,e,o),v=X_(r,t,s),y=0;y0&&an(i[a-1]);a--);for(;n0&&an(i[r-1]);r--);for(;an)return!1;return!0}(r,e))){var o=e.mapDimension(r.dim),s={};return du.each(r.getViewLabels(),function(t){s[t.tickValue]=1}),function(t){return!s.hasOwnProperty(e.get(o,t))}}}}(t,r,n),b=this._data;b&&b.eachItemGraphicEl(function(t,e){t.__temp&&(a.remove(t),b.setItemGraphicEl(e,null))}),x||c.remove(),a.add(p);var w=!u&&t.get("step");d&&h.type===n.type&&w===this._step?(m&&!f?f=this._newPolygon(l,y,n,g):f&&!m&&(p.remove(f),f=this._polygon=null),p.setClipPath(hn(n,!1,!1,t)),x&&c.updateData(r,{isIgnore:_,clipShape:hn(n,!1,!0,t)}),r.eachItemGraphicEl(function(t){t.stopAnimation(!0)}),sn(this._stackedOnPoints,y)&&sn(this._points,l)||(g?this._updateAnimation(r,y,n,i,w,v):(w&&(l=cn(l,n,w),y=cn(y,n,w)),d.setShape({points:l}),f&&f.setShape({points:l,stackedOnPoints:y})))):(x&&c.updateData(r,{isIgnore:_,clipShape:hn(n,!1,!0,t)}),w&&(l=cn(l,n,w),y=cn(y,n,w)),d=this._newPolyline(l,n,g),m&&(f=this._newPolygon(l,y,n,g)),p.setClipPath(hn(n,!0,!1,t)));var S=function(t,e){var i=t.getVisual("visualMeta");if(i&&i.length&&t.count()&&"cartesian2d"===e.type){for(var n,a,r=i.length-1;r>=0;r--){var o=i[r].dimension,s=t.dimensions[o],l=t.getDimensionInfo(s);if("x"===(n=l&&l.coordDim)||"y"===n){a=i[r];break}}if(a){var u=e.getAxis(n),h=du.map(a.stops,function(t){return{coord:u.toGlobalCoord(u.dataToCoord(t.value)),color:t.color}}),c=h.length,d=a.outerColors.slice();c&&h[0].coord>h[c-1].coord&&(h.reverse(),d.reverse());var f=h[0].coord-10,p=h[c-1].coord+10,g=p-f;if(g<.001)return"transparent";du.each(h,function(t){t.offset=(t.coord-f)/g}),h.push({offset:c?h[c-1].offset:.5,color:d[1]||"transparent"}),h.unshift({offset:c?h[0].offset:.5,color:d[0]||"transparent"});var m=new Dp.LinearGradient(0,0,0,0,h,!0);return m[n]=f,m[n+"2"]=p,m}}}(r,n)||r.getVisual("color");d.useStyle(du.defaults(o.getLineStyle(),{fill:"none",stroke:S,lineJoin:"bevel"}));var M=t.get("smooth");if(M=ln(t.get("smooth")),d.setShape({smooth:M,smoothMonotone:t.get("smoothMonotone"),connectNulls:t.get("connectNulls")}),f){var I=r.getCalculationInfo("stackedOnSeries"),A=0;f.useStyle(du.defaults(s.getAreaStyle(),{fill:S,opacity:.7,lineJoin:"bevel"})),I&&(A=ln(I.get("smooth"))),f.setShape({smooth:M,stackedOnSmooth:A,smoothMonotone:t.get("smoothMonotone"),connectNulls:t.get("connectNulls")})}this._data=r,this._coordSys=n,this._stackedOnPoints=y,this._points=l,this._step=w,this._valueOrigin=v},dispose:function(){},highlight:function(t,e,i,n){var a=t.getData(),r=Wc.queryDataIndex(a,n);if(!(r instanceof Array)&&null!=r&&r>=0){var o=a.getItemGraphicEl(r);if(!o){var s=a.getItemLayout(r);if(!s)return;(o=new H_(a,r)).position=s,o.setZ(t.get("zlevel"),t.get("z")),o.ignore=isNaN(s[0])||isNaN(s[1]),o.__temp=!0,a.setItemGraphicEl(r,o),o.stopSymbolAnimation(!0),this.group.add(o)}o.highlight()}else Pv.prototype.highlight.call(this,t,e,i,n)},downplay:function(t,e,i,n){var a=t.getData(),r=Wc.queryDataIndex(a,n);if(null!=r&&r>=0){var o=a.getItemGraphicEl(r);o&&(o.__temp?(a.setItemGraphicEl(r,null),this.group.remove(o)):o.downplay())}else Pv.prototype.downplay.call(this,t,e,i,n)},_newPolyline:function(t){var e=this._polyline;return e&&this._lineGroup.remove(e),e=new rb({shape:{points:t},silent:!0,z2:10}),this._lineGroup.add(e),this._polyline=e,e},_newPolygon:function(t,e){var i=this._polygon;return i&&this._lineGroup.remove(i),i=new ob({shape:{points:t,stackedOnPoints:e},silent:!0}),this._lineGroup.add(i),this._polygon=i,i},_updateAnimation:function(t,e,i,n,a,r){var o=this._polyline,s=this._polygon,l=t.hostModel,u=$_(this._data,t,this._stackedOnPoints,e,this._coordSys,i,this._valueOrigin,r),h=u.current,c=u.stackedOnCurrent,d=u.next,f=u.stackedOnNext;a&&(h=cn(u.current,i,a),c=cn(u.stackedOnCurrent,i,a),d=cn(u.next,i,a),f=cn(u.stackedOnNext,i,a)),o.shape.__points=u.current,o.shape.points=h,Dp.updateProps(o,{shape:{points:d}},l),s&&(s.setShape({points:h,stackedOnPoints:c}),Dp.updateProps(s,{shape:{points:d,stackedOnPoints:f}},l));for(var p=[],g=u.status,m=0;me&&(e=t[i]);return isFinite(e)?e:NaN},min:function(t){for(var e=1/0,i=0;i1){var c;"string"==typeof a?c=pb[a]:"function"==typeof a&&(c=a),c&&t.setData(n.downSample(n.mapDimension(s.dim),1/h,c,gb))}}}}},vb=function(t){this._axes={},this._dimList=[],this.name=t||""};vb.prototype={constructor:vb,type:"cartesian",getAxis:function(t){return this._axes[t]},getAxes:function(){return du.map(this._dimList,function(t){return this._axes[t]},this)},getAxesByScale:function(t){return t=t.toLowerCase(),du.filter(this.getAxes(),function(e){return e.scale.type===t})},addAxis:function(t){var e=t.dim;this._axes[e]=t,this._dimList.push(e)},dataToCoord:function(t){return this._dataCoordConvert(t,"dataToCoord")},coordToData:function(t){return this._dataCoordConvert(t,"coordToData")},_dataCoordConvert:function(t,e){for(var i=this._dimList,n=t instanceof Array?[]:{},a=0;ae[1]&&e.reverse(),e},getOtherAxis:function(){this.grid.getOtherAxis()},pointToData:function(t,e){return this.coordToData(this.toLocalCoord(t["x"===this.dim?0:1]),e)},toLocalCoord:null,toGlobalCoord:null},du.inherits(_b,c_);var bb=_b,wb={show:!0,zlevel:0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#333",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,lineStyle:{color:["#ccc"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.3)","rgba(200,200,200,0.3)"]}}},Sb={};Sb.categoryAxis=du.merge({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},wb),Sb.valueAxis=du.merge({boundaryGap:[0,0],splitNumber:5},wb),Sb.timeAxis=du.defaults({scale:!0,min:"dataMin",max:"dataMax"},Sb.valueAxis),Sb.logAxis=du.defaults({scale:!0,logBase:10},Sb.valueAxis);var Mb=Sb,Ib=ng.getLayoutParams,Ab=ng.mergeLayoutParam,Tb=["value","category","time","log"],Db=function(t,e,i,n){du.each(Tb,function(a){e.extend({type:t+"Axis."+a,mergeDefaultAndTheme:function(e,n){var r=this.layoutMode,o=r?Ib(e):{},s=n.getTheme();du.merge(e,s.get(a+"Axis")),du.merge(e,this.getDefaultOption()),e.type=i(t,e),r&&Ab(e,o,r)},optionUpdated:function(){"category"===this.option.type&&(this.__ordinalMeta=tx.createByAxisModel(this))},getCategories:function(t){var e=this.option;if("category"===e.type)return t?e.data:this.__ordinalMeta.categories},getOrdinalMeta:function(){return this.__ordinalMeta},defaultOption:du.mergeAll([{},Mb[a+"Axis"],n],!0)})}),ug.registerSubTypeDefaulter(t+"Axis",du.curry(i,t))},Cb=ug.extend({type:"cartesian2dAxis",axis:null,init:function(){Cb.superApply(this,"init",arguments),this.resetRange()},mergeOption:function(){Cb.superApply(this,"mergeOption",arguments),this.resetRange()},restoreData:function(){Cb.superApply(this,"restoreData",arguments),this.resetRange()},getCoordSysModel:function(){return this.ecModel.queryComponents({mainType:"grid",index:this.option.gridIndex,id:this.option.gridId})[0]}});du.merge(Cb.prototype,Ox);var Lb={offset:0};Db("x",Cb,fn,Lb),Db("y",Cb,fn,Lb);ug.extend({type:"grid",dependencies:["xAxis","yAxis"],layoutMode:"box",coordinateSystem:null,defaultOption:{show:!1,zlevel:0,z:0,left:"10%",top:60,right:"10%",bottom:60,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"}});var Pb=du.isObject,kb=du.each,Ob=du.map,Rb=du.indexOf,Nb=(du.retrieve,ng.getLayoutRect),Eb=kx.createScaleByModel,zb=kx.ifAxisCrossZero,Vb=kx.niceScaleExtent,Bb=kx.estimateLabelUnionRect,Gb=Fy.getStackedDimension,Hb=gn.prototype;Hb.type="grid",Hb.axisPointerEnabled=!0,Hb.getRect=function(){return this._rect},Hb.update=function(t,e){var i=this._axesMap;this._updateScale(t,this.model),kb(i.x,function(t){Vb(t.scale,t.model)}),kb(i.y,function(t){Vb(t.scale,t.model)}),kb(i.x,function(t){mn(i,"y",t)}),kb(i.y,function(t){mn(i,"x",t)}),this.resize(this.model,e)},Hb.resize=function(t,e,i){function n(){kb(r,function(t){var e=t.isHorizontal(),i=e?[0,a.width]:[0,a.height],n=t.inverse?1:0;t.setExtent(i[n],i[1-n]),function(t,e){var i=t.getExtent(),n=i[0]+i[1];t.toGlobalCoord="x"===t.dim?function(t){return t+e}:function(t){return n-t+e},t.toLocalCoord="x"===t.dim?function(t){return t-e}:function(t){return n-t+e}}(t,e?a.x:a.y)})}var a=Nb(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()});this._rect=a;var r=this._axesList;n(),!i&&t.get("containLabel")&&(kb(r,function(t){if(!t.model.get("axisLabel.inside")){var e=Bb(t);if(e){var i=t.isHorizontal()?"height":"width",n=t.model.get("axisLabel.margin");a[i]-=e[i]+n,"top"===t.position?a.y+=e.height+n:"left"===t.position&&(a.x+=e.width+n)}}}),n())},Hb.getAxis=function(t,e){var i=this._axesMap[t];if(null!=i){if(null==e)for(var n in i)if(i.hasOwnProperty(n))return i[n];return i[e]}},Hb.getAxes=function(){return this._axesList.slice()},Hb.getCartesian=function(t,e){if(null!=t&&null!=e){var i="x"+t+"y"+e;return this._coordsMap[i]}Pb(t)&&(e=t.yAxisIndex,t=t.xAxisIndex);for(var n=0,a=this._coordsList;nl[1]?-1:1,h=["start"===a?l[0]-u*s:"end"===a?l[1]+u*s:(l[0]+l[1])/2,Mn(a)?t.labelOffset+r*s:0],c=e.get("nameRotate");null!=c&&(c=c*Kb/180);var d;Mn(a)?n=tw(t.rotation,null!=c?c:t.rotation,r):(n=function(t,e,i,n){var a,r,o=Xb(i-t.rotation),s=n[0]>n[1],l="start"===e&&!s||"start"!==e&&s;return Yb(o-Kb/2)?(r=l?"bottom":"top",a="center"):Yb(o-1.5*Kb)?(r=l?"top":"bottom",a="center"):(r="middle",a=o<1.5*Kb&&o>Kb/2?l?"left":"right":l?"right":"left"),{rotation:o,textAlign:a,textVerticalAlign:r}}(t,a,c||0,l),null!=(d=t.axisNameAvailableWidth)&&(d=Math.abs(d/Math.sin(n.rotation)),!isFinite(d)&&(d=null)));var f=o.getFont(),p=e.get("nameTruncate",!0)||{},g=p.ellipsis,m=Wb(t.nameTruncateMaxWidth,p.maxWidth,d),v=null!=g&&null!=m?qp.truncateText(i,m,f,g,{minChar:2,placeholder:p.placeholder}):i,y=e.get("tooltip",!0),x=e.mainType,_={componentType:x,name:i,$vars:["name"]};_[x+"Index"]=e.componentIndex;var b=new Dp.Text({anid:"name",__fullText:i,__truncatedText:v,position:h,rotation:n.rotation,silent:bn(e),z2:1,tooltip:y&&y.show?Zb({content:i,formatter:function(){return i},formatterParams:_},y):null});Dp.setTextStyle(b.style,o,{text:v,textFont:f,textFill:o.getTextColor()||e.get("axisLine.lineStyle.color"),textAlign:n.textAlign,textVerticalAlign:n.textVerticalAlign}),e.get("triggerEvent")&&(b.eventData=_n(e),b.eventData.targetType="axisName",b.eventData.name=i),this._dumbGroup.add(b),b.updateTransform(),this.group.add(b),b.decomposeTransform()}}},tw=Jb.innerTextLayout=function(t,e,i){var n,a,r=Xb(e-t);return Yb(r)?(a=i>0?"top":"bottom",n="center"):Yb(r-Kb)?(a=i>0?"bottom":"top",n="center"):(a="middle",n=r>0&&r0?"right":"left":i>0?"left":"right"),{rotation:r,textAlign:n,textVerticalAlign:a}},ew=Jb,iw=du.each,nw=du.curry,aw={collect:function(t,e){var i={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return function(t,e,i){var n=e.getComponent("tooltip"),a=e.getComponent("axisPointer"),r=a.get("link",!0)||[],o=[];iw(i.getCoordinateSystems(),function(i){function s(n,s,l){var c=l.model.getModel("axisPointer",a),d=c.get("show");if(d&&("auto"!==d||n||Tn(c))){null==s&&(s=c.get("triggerTooltip"));var f=(c=n?function(t,e,i,n,a,r){var o=e.getModel("axisPointer"),s={};iw(["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],function(t){s[t]=du.clone(o.get(t))}),s.snap="category"!==t.type&&!!r,"cross"===o.get("type")&&(s.type="line");var l=s.label||(s.label={});if(null==l.show&&(l.show=!1),"cross"===a){var u=o.get("label.show");if(l.show=null==u||u,!r){var h=s.lineStyle=o.get("crossStyle");h&&du.defaults(l,h.textStyle)}}return t.model.getModel("axisPointer",new Vp(s,i,n))}(l,h,a,e,n,s):c).get("snap"),p=Dn(l.model),g=s||f||"category"===l.type,m=t.axesInfo[p]={key:p,axis:l,coordSys:i,axisPointerModel:c,triggerTooltip:s,involveSeries:g,snap:f,useHandle:Tn(c),seriesModels:[]};u[p]=m,t.seriesInvolved|=g;var v=function(t,e){for(var i=e.model,n=e.dim,a=0;al[1]&&l.reverse(),(null==o||o>l[1])&&(o=l[1]),ot&&(t=e),t}}),P_.getDefaultLabel),pw={setLabel:function(t,e,i,n,a,r,o){var s=i.getModel("label"),l=i.getModel("emphasis.label");Dp.setLabelStyle(t,e,s,l,{labelFetcher:a,labelDataIndex:r,defaultText:fw(a.getData(),r),isRectText:!0,autoColor:n}),Pn(t),Pn(e)}},gw=Xc([["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["stroke","barBorderColor"],["lineWidth","barBorderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),mw={getBarItemStyle:function(t){var e=gw(this,t);if(this.getBorderLineDash){var i=this.getBorderLineDash();i&&(e.lineDash=i)}return e}},vw=pw.setLabel,yw=["itemStyle","barBorderWidth"];du.extend(Vp.prototype,mw);C_.extendChartView({type:"bar",render:function(t,e,i){this._updateDrawMode(t);var n=t.get("coordinateSystem");return"cartesian2d"!==n&&"polar"!==n||(this._isLargeDraw?this._renderLarge(t,e,i):this._renderNormal(t,e,i)),this.group},incrementalPrepareRender:function(t,e,i){this._clear(),this._updateDrawMode(t)},incrementalRender:function(t,e,i,n){this._incrementalRenderLarge(t,e)},_updateDrawMode:function(t){var e=t.pipelineContext.large;(null==this._isLargeDraw||e^this._isLargeDraw)&&(this._isLargeDraw=e,this._clear())},_renderNormal:function(t,e,i){var n,a=this.group,r=t.getData(),o=this._data,s=t.coordinateSystem,l=s.getBaseAxis();"cartesian2d"===s.type?n=l.isHorizontal():"polar"===s.type&&(n="angle"===l.dim);var u=t.isAnimationEnabled()?t:null;r.diff(o).add(function(e){if(r.hasValue(e)){var i=r.getItemModel(e),o=_w[s.type](r,e,i),l=xw[s.type](r,e,i,o,n,u);r.setItemGraphicEl(e,l),a.add(l),Rn(l,r,e,i,o,t,n,"polar"===s.type)}}).update(function(e,i){var l=o.getItemGraphicEl(i);if(r.hasValue(e)){var h=r.getItemModel(e),c=_w[s.type](r,e,h);l?Dp.updateProps(l,{shape:c},u,e):l=xw[s.type](r,e,h,c,n,u,!0),r.setItemGraphicEl(e,l),a.add(l),Rn(l,r,e,h,c,t,n,"polar"===s.type)}else a.remove(l)}).remove(function(t){var e=o.getItemGraphicEl(t);"cartesian2d"===s.type?e&&kn(t,u,e):e&&On(t,u,e)}).execute(),this._data=r},_renderLarge:function(t,e,i){this._clear(),Nn(t,this.group)},_incrementalRenderLarge:function(t,e){Nn(e,this.group,!0)},dispose:du.noop,remove:function(t){this._clear(t)},_clear:function(t){var e=this.group,i=this._data;t&&t.get("animation")&&i&&!this._isLargeDraw?i.eachItemGraphicEl(function(e){"sector"===e.type?On(e.dataIndex,t,e):kn(e.dataIndex,t,e)}):e.removeAll(),this._data=null}});var xw={cartesian2d:function(t,e,i,n,a,r,o){var s=new Dp.Rect({shape:du.extend({},n)});if(r){var l=s.shape,u=a?"height":"width",h={};l[u]=0,h[u]=n[u],Dp[o?"updateProps":"initProps"](s,{shape:h},r,e)}return s},polar:function(t,e,i,n,a,r,o){var s=n.startAngle0?1:-1,o=n.height>0?1:-1;return{x:n.x+r*a/2,y:n.y+o*a/2,width:n.width-r*a,height:n.height-o*a}},polar:function(t,e,i){var n=t.getItemLayout(e);return{cx:n.cx,cy:n.cy,r0:n.r0,r:n.r,startAngle:n.startAngle,endAngle:n.endAngle}}},bw=af.extend({type:"largeBar",shape:{points:[]},buildPath:function(t,e){for(var i=e.points,n=this.__startPoint,a=this.__valueIdx,r=0;r0&&"scale"!==u){var d=a.getItemLayout(0),f=Math.max(i.getWidth(),i.getHeight())/2,p=du.bind(o.removeClipPath,o);o.setClipPath(this._createClipPath(d.cx,d.cy,f,d.startAngle,d.clockwise,p,t))}this._data=a}},dispose:function(){},_createClipPath:function(t,e,i,n,a,r,o){var s=new Dp.Sector({shape:{cx:t,cy:e,r0:0,r:i,startAngle:n,endAngle:n,clockwise:a}});return Dp.initProps(s,{shape:{endAngle:n+(a?1:-1)*Math.PI*2}},o,r),s},containPoint:function(t,e){var i=e.getData().getItemLayout(0);if(i){var n=t[0]-i.cx,a=t[1]-i.cy,r=Math.sqrt(n*n+a*a);return r<=i.r&&r>=i.r0}}});var kw=function(t,e){du.each(e,function(e){e.update="updateView",C_.registerAction(e,function(i,n){var a={};return n.eachComponent({mainType:"series",subType:t,query:i},function(t){t[e.method]&&t[e.method](i.name,i.dataIndex);var n=t.getData();n.each(function(e){var i=n.getName(e);a[i]=t.isSelected(i)||!1})}),{name:i.name,selected:a}})})},Ow=du.createHashMap,Rw=function(t){return{getTargetSeries:function(e){var i={},n=Ow();return e.eachSeriesByType(t,function(t){t.__paletteScope=i,n.set(t.uid,t)}),n},reset:function(t,e){var i=t.getRawData(),n={},a=t.getData();a.each(function(t){var e=a.getRawIndex(t);n[e]=t}),i.each(function(e){var r=n[e],o=null!=r&&a.getItemVisual(r,"color",!0);if(o)i.setItemVisual(e,"color",o);else{var s=i.getItemModel(e).get("itemStyle.color")||t.getColorFromPalette(i.getName(e)||e+"",t.__paletteScope,i.count());i.setItemVisual(e,"color",s),null!=r&&a.setItemVisual(r,"color",s)}})}}},Nw=function(t,e,i,n){var a,r,o=t.getData(),s=[],l=!1;o.each(function(i){var n,u,h,c,d=o.getItemLayout(i),f=o.getItemModel(i),p=f.getModel("label"),g=p.get("position")||f.get("emphasis.label.position"),m=f.getModel("labelLine"),v=m.get("length"),y=m.get("length2"),x=(d.startAngle+d.endAngle)/2,_=Math.cos(x),b=Math.sin(x);a=d.cx,r=d.cy;var w="inside"===g||"inner"===g;if("center"===g)n=d.cx,u=d.cy,c="center";else{var S=(w?(d.r+d.r0)/2*_:d.r*_)+a,M=(w?(d.r+d.r0)/2*b:d.r*b)+r;if(n=S+3*_,u=M+3*b,!w){var I=S+_*(v+e-d.r),A=M+b*(v+e-d.r),T=I+(_<0?-1:1)*y,D=A;n=T+(_<0?-5:5),u=D,h=[[S,M],[I,A],[T,D]]}c=w?"center":_>0?"left":"right"}var C=p.getFont(),L=p.get("rotate")?_<0?-x+Math.PI:-x:0,P=t.getFormattedLabel(i,"normal")||o.getName(i),k=jh.getBoundingRect(P,C,c,"top");l=!!L,d.label={x:n,y:u,position:g,height:k.height,len:v,len2:y,linePoints:h,textAlign:c,verticalAlign:"middle",rotation:L,inside:w},w||s.push(d.label)}),!l&&t.get("avoidLabelOverlap")&&function(t,e,i,n,a,r){for(var o=[],s=[],l=0;l=0;s--){var l=2*s,u=n[l]-r/2,h=n[l+1]-o/2;if(t>=u&&e>=h&&t<=u+r&&e<=h+o)return s}return-1}}),Uw=Bn.prototype;Uw.isPersistent=function(){return!this._incremental},Uw.updateData=function(t){this.group.removeAll();var e=new Ww({rectHover:!0,cursor:"default"});e.setShape({points:t.getLayout("symbolPoints")}),this._setCommon(e,t),this.group.add(e),this._incremental=null},Uw.updateLayout=function(t){if(!this._incremental){var e=t.getLayout("symbolPoints");this.group.eachChild(function(t){if(null!=t.startIndex){var i=2*(t.endIndex-t.startIndex),n=4*t.startIndex*2;e=new Float32Array(e.buffer,n,i)}t.setShape("points",e)})}},Uw.incrementalPrepareUpdate=function(t){this.group.removeAll(),this._clearIncremental(),t.count()>2e6?(this._incremental||(this._incremental=new op({silent:!0})),this.group.add(this._incremental)):this._incremental=null},Uw.incrementalUpdate=function(t,e){var i;this._incremental?(i=new Ww,this._incremental.addDisplayable(i,!0)):((i=new Ww({rectHover:!0,cursor:"default",startIndex:t.start,endIndex:t.end})).incremental=!0,this.group.add(i)),i.setShape({points:e.getLayout("symbolPoints")}),this._setCommon(i,e,!!this._incremental)},Uw._setCommon=function(t,e,i){var n=e.hostModel,a=e.getVisual("symbolSize");t.setShape("size",a instanceof Array?a:[a,a]),t.symbolProxy=Fw(e.getVisual("symbol"),0,0,0,0),t.setColor=t.symbolProxy.setColor;var r=t.shape.size[0]<4;t.useStyle(n.getModel("itemStyle").getItemStyle(r?["color","shadowBlur","shadowColor"]:["color"]));var o=e.getVisual("color");o&&t.setColor(o),i||(t.seriesIndex=n.seriesIndex,t.on("mousemove",function(e){t.dataIndex=null;var i=t.findDataIndex(e.offsetX,e.offsetY);i>=0&&(t.dataIndex=i+(t.startIndex||0))}))},Uw.remove=function(){this._clearIncremental(),this._incremental=null,this.group.removeAll()},Uw._clearIncremental=function(){var t=this._incremental;t&&t.clearDisplaybles()};var Zw=Bn;C_.extendChartView({type:"scatter",render:function(t,e,i){var n=t.getData();this._updateSymbolDraw(n,t).updateData(n),this._finished=!0},incrementalPrepareRender:function(t,e,i){var n=t.getData();this._updateSymbolDraw(n,t).incrementalPrepareUpdate(n),this._finished=!1},incrementalRender:function(t,e,i){this._symbolDraw.incrementalUpdate(t,e.getData()),this._finished=t.end===e.getData().count()},updateTransform:function(t,e,i){var n=t.getData();if(this.group.dirty(),!this._finished||n.count()>1e4||!this._symbolDraw.isPersistent())return{update:!0};var a=fb().reset(t);a.progress&&a.progress({start:0,end:n.count()},n),this._symbolDraw.updateLayout(n)},_updateSymbolDraw:function(t,e){var i=this._symbolDraw,n=e.pipelineContext.large;return i&&n===this._isLargeDraw||(i&&i.remove(),i=this._symbolDraw=n?new Zw:new U_,this._isLargeDraw=n,this.group.removeAll()),this.group.add(i.group),i},remove:function(t,e){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},dispose:function(){}}),C_.registerVisual(hb("scatter","circle")),C_.registerLayout(fb("scatter")),du.inherits(Gn,c_);var jw=Gn,Yw=kx.getScaleExtent,Xw=kx.niceScaleExtent;Hn.prototype.getIndicatorAxes=function(){return this._indicatorAxes},Hn.prototype.dataToPoint=function(t,e){var i=this._indicatorAxes[e];return this.coordToPoint(i.dataToCoord(t),e)},Hn.prototype.coordToPoint=function(t,e){var i=this._indicatorAxes[e].angle;return[this.cx+t*Math.cos(i),this.cy-t*Math.sin(i)]},Hn.prototype.pointToData=function(t){var e=t[0]-this.cx,i=t[1]-this.cy,n=Math.sqrt(e*e+i*i);e/=n,i/=n;for(var a,r=Math.atan2(-i,e),o=1/0,s=-1,l=0;ln[0]&&isFinite(c)&&isFinite(n[0]))}else{o.getTicks().length-1>r&&(u=i(u));var d=Math.round((n[0]+n[1])/2/u)*u,f=Math.round(r/2);o.setExtent(Up.round(d-f*u),Up.round(d+(r-f)*u)),o.setInterval(u)}})},Hn.dimensions=[],Hn.create=function(t,e){var i=[];return t.eachComponent("radar",function(n){var a=new Hn(n,t,e);i.push(a),n.coordinateSystem=a}),t.eachSeriesByType("radar",function(t){"radar"===t.get("coordinateSystem")&&(t.coordinateSystem=i[t.get("radarIndex")||0])}),i},vm.register("radar",Hn);var qw=Mb.valueAxis,$w=(C_.extendComponentModel({type:"radar",optionUpdated:function(){var t=this.get("boundaryGap"),e=this.get("splitNumber"),i=this.get("scale"),n=this.get("axisLine"),a=this.get("axisTick"),r=this.get("axisLabel"),o=this.get("name"),s=this.get("name.show"),l=this.get("name.formatter"),u=this.get("nameGap"),h=this.get("triggerEvent"),c=du.map(this.get("indicator")||[],function(c){null!=c.max&&c.max>0&&!c.min?c.min=0:null!=c.min&&c.min<0&&!c.max&&(c.max=0);var d=o;if(null!=c.color&&(d=du.defaults({color:c.color},o)),c=du.merge(du.clone(c),{boundaryGap:t,splitNumber:e,scale:i,axisLine:n,axisTick:a,axisLabel:r,name:c.text,nameLocation:"end",nameGap:u,nameTextStyle:d,triggerEvent:h},!1),s||(c.name=""),"string"==typeof l){var f=c.name;c.name=l.replace("{value}",null!=f?f:"")}else"function"==typeof l&&(c.name=l(c.name,c));var p=du.extend(new Vp(c,null,this.ecModel),Ox);return p.mainType="radar",p.componentIndex=this.componentIndex,p},this);this.getIndicatorModels=function(){return c}},defaultOption:{zlevel:0,z:0,center:["50%","50%"],radius:"75%",startAngle:90,name:{show:!0},boundaryGap:[0,0],splitNumber:5,nameGap:15,scale:!1,shape:"polygon",axisLine:du.merge({lineStyle:{color:"#bbb"}},qw.axisLine),axisLabel:Fn(qw.axisLabel,!1),axisTick:Fn(qw.axisTick,!1),splitLine:Fn(qw.splitLine,!0),splitArea:Fn(qw.splitArea,!0),indicator:[]}}),["axisLine","axisTickLabel","axisName"]),Kw=(C_.extendComponentView({type:"radar",render:function(t,e,i){this.group.removeAll(),this._buildAxes(t),this._buildSplitLineAndArea(t)},_buildAxes:function(t){var e=t.coordinateSystem,i=e.getIndicatorAxes(),n=du.map(i,function(t){return new ew(t.model,{position:[e.cx,e.cy],rotation:t.angle,labelDirection:-1,tickDirection:-1,nameDirection:1})});du.each(n,function(t){du.each($w,t.add,t),this.group.add(t.getGroup())},this)},_buildSplitLineAndArea:function(t){function e(t,e,i){var n=i%e.length;return t[n]=t[n]||[],n}var i=t.coordinateSystem,n=i.getIndicatorAxes();if(n.length){var a=t.get("shape"),r=t.getModel("splitLine"),o=t.getModel("splitArea"),s=r.getModel("lineStyle"),l=o.getModel("areaStyle"),u=r.get("show"),h=o.get("show"),c=s.get("color"),d=l.get("color");c=du.isArray(c)?c:[c],d=du.isArray(d)?d:[d];var f=[],p=[];if("circle"===a)for(var g=n[0].getTicksCoords(),m=i.cx,v=i.cy,y=0;y"+du.map(i,function(i,n){var a=e.get(e.mapDimension(i.dim),t);return Kw(i.name+" : "+a)}).join("
")},defaultOption:{zlevel:0,z:2,coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:"solid"},label:{position:"top"},symbol:"emptyCircle",symbolSize:4}}),Qw=(C_.extendChartView({type:"radar",render:function(t,e,i){function n(e,i,n,a,r,o){n.removeAll();for(var s=0;s"+pS(n+" : "+i)},getTooltipPosition:function(t){if(null!=t){var e=this.getData().getName(t),i=this.coordinateSystem,n=i.getRegion(e);return n&&i.dataToPoint(n.center)}},setZoom:function(t){this.option.zoom=t},setCenter:function(t){this.option.center=t},defaultOption:{zlevel:0,z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:.75,showLegendSymbol:!0,dataRangeHoverLink:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}}}});du.mixin(vS,Tw);var yS="\0_ec_interaction_mutex";C_.registerAction({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},function(){});var xS={take:function(t,e,i){$n(t)[e]=i},release:function(t,e,i){var n=$n(t);n[e]===i&&(n[e]=null)},isTaken:function(t,e){return!!$n(t)[e]}};du.mixin(Kn,yu);var _S=Kn,bS={updateViewOnPan:function(t,e,i){var n=t.target,a=n.position;a[0]+=e,a[1]+=i,n.dirty()},updateViewOnZoom:function(t,e,i,n){var a=t.target,r=t.zoomLimit,o=a.position,s=a.scale,l=t.zoom=t.zoom||1;if(l*=e,r){var u=r.min||0,h=r.max||1/0;l=Math.max(Math.min(h,l),u)}var c=l/t.zoom;t.zoom=l,o[0]-=(i-o[0])*(c-1),o[1]-=(n-o[1])*(c-1),s[0]*=c,s[1]*=c,a.dirty()}},wS={axisPointer:1,tooltip:1,brush:1},SS={onIrrelevantElement:function(t,e,i){var n=e.getComponentByElement(t.topTarget),a=n&&n.coordinateSystem;return n&&n!==i&&!wS[n.mainType]&&a&&a.model!==i}},MS=SS.onIrrelevantElement;ia.prototype={constructor:ia,draw:function(t,e,i,n,a){var r="geo"===t.mainType,o=t.getData&&t.getData();r&&e.eachComponent({mainType:"series",subType:"map"},function(e){o||e.getHostGeoModel()!==t||(o=e.getData())});var s=t.coordinateSystem,l=this.group,u=s.scale,h={position:s.position,scale:u};!l.childAt(0)||a?l.attr(h):Dp.updateProps(l,h,t),l.removeAll();var c=["itemStyle"],d=["emphasis","itemStyle"],f=["label"],p=["emphasis","label"],g=du.createHashMap();du.each(s.regions,function(e){var i=g.get(e.name)||g.set(e.name,new Dp.Group),n=new Dp.CompoundPath({shape:{paths:[]}});i.add(n);var a,s=(D=t.getRegionModel(e.name)||t).getModel(c),h=D.getModel(d),m=ta(s),v=ta(h),y=D.getModel(f),x=D.getModel(p);if(o){a=o.indexOfName(e.name);var _=o.getItemVisual(a,"color",!0);_&&(m.fill=_)}du.each(e.geometries,function(t){if("polygon"===t.type){n.shape.paths.push(new Dp.Polygon({shape:{points:t.exterior}}));for(var e=0;e<(t.interiors?t.interiors.length:0);e++)n.shape.paths.push(new Dp.Polygon({shape:{points:t.interiors[e]}}))}}),n.setStyle(m),n.style.strokeNoScale=!0,n.culling=!0;var b=y.get("show"),w=x.get("show"),S=o&&isNaN(o.get(o.mapDimension("value"),a)),M=o&&o.getItemLayout(a);if(r||S&&(b||w)||M&&M.showLabel){var I,A=r?e.name:a;(!o||a>=0)&&(I=t);var T=new Dp.Text({position:e.center.slice(),scale:[1/u[0],1/u[1]],z2:10,silent:!0});Dp.setLabelStyle(T.style,T.hoverStyle={},y,x,{labelFetcher:I,labelDataIndex:A,defaultText:e.name,useInsideStyle:!1},{textAlign:"center",textVerticalAlign:"middle"}),i.add(T)}if(o)o.setItemGraphicEl(a,i);else{var D=t.getRegionModel(e.name);n.eventData={componentType:"geo",geoIndex:t.componentIndex,name:e.name,region:D&&D.option||{}}}(i.__regions||(i.__regions=[])).push(e),Dp.setHoverStyle(i,v,{hoverSilentOnTouch:!!t.get("selectedMode")}),l.add(i)}),this._updateController(t,e,i),function(t,e,i,n,a){i.off("click"),i.off("mousedown"),e.get("selectedMode")&&(i.on("mousedown",function(){t._mouseDownFlag=!0}),i.on("click",function(r){if(t._mouseDownFlag){t._mouseDownFlag=!1;for(var o=r.target;!o.__regions;)o=o.parent;if(o){var s={type:("geo"===e.mainType?"geo":"map")+"ToggleSelect",batch:du.map(o.__regions,function(t){return{name:t.name,from:a.uid}})};s[e.mainType+"Id"]=e.id,n.dispatchAction(s),ea(e,i)}}}))}(this,t,l,i,n),ea(t,l)},remove:function(){this.group.removeAll(),this._controller.dispose(),this._controllerHost={}},_updateController:function(t,e,i){function n(){var e={type:"geoRoam",componentType:s};return e[s+"Id"]=t.id,e}var a=t.coordinateSystem,r=this._controller,o=this._controllerHost;o.zoomLimit=t.get("scaleLimit"),o.zoom=a.getZoom(),r.enable(t.get("roam")||!1);var s=t.mainType;r.off("pan").on("pan",function(t,e){this._mouseDownFlag=!1,bS.updateViewOnPan(o,t,e),i.dispatchAction(du.extend(n(),{dx:t,dy:e}))},this),r.off("zoom").on("zoom",function(t,e,a){if(this._mouseDownFlag=!1,bS.updateViewOnZoom(o,t,e,a),i.dispatchAction(du.extend(n(),{zoom:t,originX:e,originY:a})),this._updateGroup){var r=this.group,s=r.scale;r.traverse(function(t){"text"===t.type&&t.attr("scale",[1/s[0],1/s[1]])})}},this),r.setPointerChecker(function(e,n,r){return a.getViewRectAfterRoam().contain(n,r)&&!MS(e,i,t)})}};var IS=ia,AS=(C_.extendChartView({type:"map",render:function(t,e,i,n){if(!n||"mapToggleSelect"!==n.type||n.from!==this.uid){var a=this.group;if(a.removeAll(),!t.getHostGeoModel()){if(n&&"geoRoam"===n.type&&"series"===n.componentType&&n.seriesId===t.id){(r=this._mapDraw)&&a.add(r.group)}else if(t.needsDrawMap){var r=this._mapDraw||new IS(i,!0);a.add(r.group),r.draw(t,e,i,this,n),this._mapDraw=r}else this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;t.get("showLegendSymbol")&&e.getComponent("legend")&&this._renderSymbols(t,e,i)}}},remove:function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null,this.group.removeAll()},dispose:function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},_renderSymbols:function(t,e,i){var n=t.originalData,a=this.group;n.each(n.mapDimension("value"),function(e,i){if(!isNaN(e)){var r=n.getItemLayout(i);if(r&&r.point){var o=r.point,s=r.offset,l=new Dp.Circle({style:{fill:t.getData().getVisual("color")},shape:{cx:o[0]+9*s,cy:o[1],r:3},silent:!0,z2:s?8:10});if(!s){var u=t.mainSeries.getData(),h=n.getName(i),c=u.indexOfName(h),d=n.getItemModel(i),f=d.getModel("label"),p=d.getModel("emphasis.label"),g=u.getItemGraphicEl(c),m=du.retrieve2(t.getFormattedLabel(i,"normal"),h),v=du.retrieve2(t.getFormattedLabel(i,"emphasis"),m),y=function(){var t=Dp.setTextStyle({},p,{text:p.get("show")?v:null},{isRectText:!0,useInsideStyle:!1},!0);l.style.extendFrom(t),l.__mapOriginalZ2=l.z2,l.z2+=1},x=function(){Dp.setTextStyle(l.style,f,{text:f.get("show")?m:null,textPosition:f.getShallow("position")||"bottom"},{isRectText:!0,useInsideStyle:!1}),null!=l.__mapOriginalZ2&&(l.z2=l.__mapOriginalZ2,l.__mapOriginalZ2=null)};g.on("mouseover",y).on("mouseout",x).on("emphasis",y).on("normal",x),x()}a.add(l)}}})}}),{updateCenterAndZoom:function(t,e,i){var n=t.getZoom(),a=t.getCenter(),r=e.zoom,o=t.dataToPoint(a);null!=e.dx&&null!=e.dy&&(o[0]-=e.dx,o[1]-=e.dy,a=t.pointToData(o),t.setCenter(a));if(null!=r){if(i){var s=i.min||0,l=i.max||1/0;r=Math.max(Math.min(n*r,l),s)/n}t.scale[0]*=r,t.scale[1]*=r;var u=t.position,h=(e.originX-u[0])*(r-1),c=(e.originY-u[1])*(r-1);u[0]-=h,u[1]-=c,t.updateTransform(),a=t.pointToData(o),t.setCenter(a),t.setZoom(r*n)}return{center:t.getCenter(),zoom:t.getZoom()}}}),TS=AS.updateCenterAndZoom;C_.registerAction({type:"geoRoam",event:"geoRoam",update:"updateTransform"},function(t,e){var i=t.componentType||"series";e.eachComponent({mainType:i,query:t},function(e){var n=e.coordinateSystem;if("geo"===n.type){var a=TS(n,t,e.get("scaleLimit"));e.setCenter&&e.setCenter(a.center),e.setZoom&&e.setZoom(a.zoom),"series"===i&&du.each(e.seriesGroup,function(t){t.setCenter(a.center),t.setZoom(a.zoom)})}})});var DS=function(t){var e={};t.eachSeriesByType("map",function(i){var n=i.getMapType();if(!i.getHostGeoModel()&&!e[n]){var a={};du.each(i.seriesGroup,function(e){var i=e.coordinateSystem,n=e.originalData;e.get("showLegendSymbol")&&t.getComponent("legend")&&n.each(n.mapDimension("value"),function(t,e){var r=n.getName(e),o=i.getRegion(r);if(o&&!isNaN(t)){var s=a[r]||0,l=i.dataToPoint(o.center);a[r]=s+1,n.setItemLayout(e,{point:l,offset:s})}})});var r=i.getData();r.each(function(t){var e=r.getName(t),i=r.getItemLayout(t)||{};i.showLabel=!a[e],r.setItemLayout(t,i)}),e[n]=!0}})},CS=function(t){t.eachSeriesByType("map",function(t){var e=t.get("color"),i=t.getModel("itemStyle"),n=i.get("areaColor"),a=i.get("color")||e[t.seriesIndex%e.length];t.getData().setVisual({areaColor:n,color:a})})},LS=function(t){var e={};t.eachSeriesByType("map",function(t){var i=t.getHostGeoModel(),n=i?"o"+i.id:"i"+t.getMapType();(e[n]=e[n]||[]).push(t)}),du.each(e,function(t,e){for(var i=function(t,e){var i={};return du.each(t,function(t){t.each(t.mapDimension("value"),function(e,n){var a="ec-"+t.getName(n);i[a]=i[a]||[],isNaN(e)||i[a].push(e)})}),t[0].map(t[0].mapDimension("value"),function(n,a){for(var r="ec-"+t[0].getName(a),o=0,s=1/0,l=-1/0,u=i[r].length,h=0;he&&(e=n.height)}this.height=e+1},getNodeById:function(t){if(this.getId()===t)return this;for(var e=0,i=this.children,n=i.length;e=0&&this.hostTree.data.setItemLayout(this.dataIndex,t,e)},getLayout:function(){return this.hostTree.data.getItemLayout(this.dataIndex)},getModel:function(t){if(!(this.dataIndex<0)){var e,i=this.hostTree,n=i.data.getItemModel(this.dataIndex),a=this.getLevelModel();return a||0!==this.children.length&&(0===this.children.length||!1!==this.isExpand)||(e=this.getLeavesModel()),n.getModel(t,(a||e||i.hostModel).getModel(t))}},getLevelModel:function(){return(this.hostTree.levelModels||[])[this.depth]},getLeavesModel:function(){return this.hostTree.leavesModel},setVisual:function(t,e){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,t,e)},getVisual:function(t,e){return this.hostTree.data.getItemVisual(this.dataIndex,t,e)},getRawIndex:function(){return this.hostTree.data.getRawIndex(this.dataIndex)},getId:function(){return this.hostTree.data.getId(this.dataIndex)},isAncestorOf:function(t){for(var e=t.parentNode;e;){if(e===this)return!0;e=e.parentNode}return!1},isDescendantOf:function(t){return t!==this&&t.isAncestorOf(this)}},ra.prototype={constructor:ra,type:"tree",eachNode:function(t,e,i){this.root.eachNode(t,e,i)},getNodeByDataIndex:function(t){var e=this.data.getRawIndex(t);return this._nodes[e]},getNodeByName:function(t){return this.root.getNodeByName(t)},update:function(){for(var t=this.data,e=this._nodes,i=0,n=e.length;ir&&(r=t.depth)});var o=t.expandAndCollapse&&t.initialTreeDepth>=0?t.initialTreeDepth:r;return a.root.eachNode("preorder",function(t){var e=t.hostTree.data.getRawDataItem(t.dataIndex);t.isExpand=e&&null!=e.collapsed?!e.collapsed:t.depth<=o}),a.data},getOrient:function(){var t=this.get("orient");return"horizontal"===t?t="LR":"vertical"===t&&(t="TB"),t},formatTooltip:function(t){for(var e=this.getData().tree,i=e.root.children[0],n=e.getNodeByDataIndex(t),a=n.getValue(),r=n.name;n&&n!==i;)r=n.parentNode.name+"."+r,n=n.parentNode;return VS(r+(isNaN(a)||null==a?"":" : "+a))},defaultOption:{zlevel:0,z:2,left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:"#ccc",width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderColor:"#c23531",borderWidth:1.5},label:{show:!0,color:"#555"},leaves:{label:{show:!0}},animationEasing:"linear",animationDuration:700,animationDurationUpdate:1e3}}),{init:function(t){t.hierNode={defaultAncestor:null,ancestor:t,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};for(var e,i,n=[t];e=n.pop();)if(i=e.children,e.isExpand&&i.length)for(var a=i.length-1;a>=0;a--){var r=i[a];r.hierNode={defaultAncestor:null,ancestor:r,prelim:0,modifier:0,change:0,shift:0,i:a,thread:null},n.push(r)}},firstWalk:function(t,e){var i=t.isExpand?t.children:[],n=t.parentNode.children,a=t.hierNode.i?n[t.hierNode.i-1]:null;if(i.length){!function(t){for(var e=t.children,i=e.length,n=0,a=0;--i>=0;){var r=e[i];r.hierNode.prelim+=n,r.hierNode.modifier+=n,a+=r.hierNode.change,n+=r.hierNode.shift+a}}(t);var r=(i[0].hierNode.prelim+i[i.length-1].hierNode.prelim)/2;a?(t.hierNode.prelim=a.hierNode.prelim+e(t,a),t.hierNode.modifier=t.hierNode.prelim-r):t.hierNode.prelim=r}else a&&(t.hierNode.prelim=a.hierNode.prelim+e(t,a));t.parentNode.hierNode.defaultAncestor=function(t,e,i,n){if(e){for(var a=t,r=t,o=r.parentNode.children[0],s=e,l=a.hierNode.modifier,u=r.hierNode.modifier,h=o.hierNode.modifier,c=s.hierNode.modifier;s=oa(s),r=sa(r),s&&r;){a=oa(a),o=sa(o),a.hierNode.ancestor=t;var d=s.hierNode.prelim+c-r.hierNode.prelim-u+n(s,r);d>0&&(function(t,e,i){var n=i/(e.hierNode.i-t.hierNode.i);e.hierNode.change-=n,e.hierNode.shift+=i,e.hierNode.modifier+=i,e.hierNode.prelim+=i,t.hierNode.change+=n}(function(t,e,i){return t.hierNode.ancestor.parentNode===e.parentNode?t.hierNode.ancestor:i}(s,t,i),t,d),u+=d,l+=d),c+=s.hierNode.modifier,u+=r.hierNode.modifier,l+=a.hierNode.modifier,h+=o.hierNode.modifier}s&&!oa(a)&&(a.hierNode.thread=s,a.hierNode.modifier+=c-l),r&&!sa(o)&&(o.hierNode.thread=r,o.hierNode.modifier+=u-h,i=t)}return i}(t,a,t.parentNode.hierNode.defaultAncestor||n[0],e)},secondWalk:function(t){var e=t.hierNode.prelim+t.parentNode.hierNode.modifier;t.setLayout({x:e},!0),t.hierNode.modifier+=t.parentNode.hierNode.modifier},separation:function(t){return arguments.length?t:function(t,e){return t.parentNode===e.parentNode?1:2}},radialCoordinate:function(t,e){var i={};return t-=Math.PI/2,i.x=e*Math.cos(t),i.y=e*Math.sin(t),i},getViewRect:function(t,e){return ng.getLayoutRect(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}}),GS=BS.radialCoordinate;C_.extendChartView({type:"tree",init:function(t,e){this._oldTree,this._mainGroup=new Dp.Group,this.group.add(this._mainGroup)},render:function(t,e,i,n){var a=t.getData(),r=t.layoutInfo,o=this._mainGroup,s=t.get("layout");"radial"===s?o.attr("position",[r.x+r.width/2,r.y+r.height/2]):o.attr("position",[r.x,r.y]);var l=this._data,u={expandAndCollapse:t.get("expandAndCollapse"),layout:s,orient:t.getOrient(),curvature:t.get("lineStyle.curveness"),symbolRotate:t.get("symbolRotate"),symbolOffset:t.get("symbolOffset"),hoverAnimation:t.get("hoverAnimation"),useNameLabel:!0,fadeIn:!0};a.diff(l).add(function(e){la(a,e)&&ha(a,e,null,o,t,u)}).update(function(e,i){var n=l.getItemGraphicEl(i);la(a,e)?ha(a,e,n,o,t,u):n&&ca(l,i,n,o,t,u)}).remove(function(e){var i=l.getItemGraphicEl(e);i&&ca(l,e,i,o,t,u)}).execute(),!0===u.expandAndCollapse&&a.eachItemGraphicEl(function(e,n){e.off("click").on("click",function(){i.dispatchAction({type:"treeExpandAndCollapse",seriesId:t.id,dataIndex:n})})}),this._data=a},dispose:function(){},remove:function(){this._mainGroup.removeAll(),this._data=null}});C_.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},function(t,e){e.eachComponent({mainType:"series",subType:"tree",query:t},function(e){var i=t.dataIndex,n=e.getData().tree.getNodeByDataIndex(i);n.isExpand=!n.isExpand})});var HS={eachAfter:function(t,e,i){for(var n,a=[t],r=[];n=a.pop();)if(r.push(n),n.isExpand){var o=n.children;if(o.length)for(var s=0;s=0;r--)n.push(a[r])}}},FS=HS.eachAfter,WS=HS.eachBefore,US=BS.init,ZS=BS.firstWalk,jS=BS.secondWalk,YS=BS.separation,XS=BS.radialCoordinate,qS=BS.getViewRect,$S=function(t,e){t.eachSeriesByType("tree",function(t){!function(t,e){var i=qS(t,e);t.layoutInfo=i;var n=t.get("layout"),a=0,r=0,o=null;"radial"===n?(a=2*Math.PI,r=Math.min(i.height,i.width)/2,o=YS(function(t,e){return(t.parentNode===e.parentNode?1:2)/t.depth})):(a=i.width,r=i.height,o=YS());var s=t.getData().tree.root,l=s.children[0];if(l){US(s),FS(l,ZS,o),s.hierNode.modifier=-l.hierNode.prelim,WS(l,jS);var u=l,h=l,c=l;WS(l,function(t){var e=t.getLayout().x;eh.getLayout().x&&(h=t),t.depth>c.depth&&(c=t)});var d=u===h?1:o(u,h)/2,f=d-u.getLayout().x,p=0,g=0,m=0,v=0;if("radial"===n)p=a/(h.getLayout().x+d+f),g=r/(c.depth-1||1),WS(l,function(t){m=(t.getLayout().x+f)*p,v=(t.depth-1)*g;var e=XS(m,v);t.setLayout({x:e.x,y:e.y,rawX:m,rawY:v},!0)});else{var y=t.getOrient();"RL"===y||"LR"===y?(g=r/(h.getLayout().x+d+f),p=a/(c.depth-1||1),WS(l,function(t){v=(t.getLayout().x+f)*g,m="LR"===y?(t.depth-1)*p:a-(t.depth-1)*p,t.setLayout({x:m,y:v},!0)})):"TB"!==y&&"BT"!==y||(p=a/(h.getLayout().x+d+f),g=r/(c.depth-1||1),WS(l,function(t){m=(t.getLayout().x+f)*p,v="TB"===y?(t.depth-1)*g:r-(t.depth-1)*g,t.setLayout({x:m,y:v},!0)}))}}}(t,e)})};C_.registerVisual(hb("tree","circle")),C_.registerLayout($S);var KS={retrieveTargetInfo:function(t,e,i){if(t&&du.indexOf(e,t.type)>=0){var n=i.getData().tree.root,a=t.targetNode;if(a&&n.contains(a))return{node:a};var r=t.targetNodeId;if(null!=r&&(a=n.getNodeById(r)))return{node:a}}},getPathToRoot:fa,aboveViewRoot:function(t,e){var i=fa(t);return du.indexOf(i,e)>=0},wrapTreePathInfo:function(t,e){for(var i=[];t;){var n=t.dataIndex;i.push({name:t.name,dataIndex:n,value:e.getRawValue(n)}),t=t.parentNode}return i.reverse(),i}},JS=qp.encodeHTML,QS=qp.addCommas,tM=KS.wrapTreePathInfo,eM=(xv.extend({type:"series.treemap",layoutMode:"box",dependencies:["grid","polar"],_viewRoot:null,defaultOption:{progressive:0,hoverLayerThreshold:1/0,left:"center",top:"middle",right:null,bottom:null,width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"▶",zoomToNodeRatio:.1024,roam:!0,nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",top:"bottom",emptyItemWidth:25,itemStyle:{color:"rgba(0,0,0,0.7)",borderColor:"rgba(255,255,255,0.7)",borderWidth:1,shadowColor:"rgba(150,150,150,1)",shadowBlur:3,shadowOffsetX:0,shadowOffsetY:0,textStyle:{color:"#fff"}},emphasis:{textStyle:{}}},label:{show:!0,distance:0,padding:5,position:"inside",color:"#fff",ellipsis:!0},upperLabel:{show:!1,position:[0,"50%"],height:20,color:"#fff",ellipsis:!0,verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],color:"#fff",ellipsis:!0,verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},getInitialData:function(t,e){var i={name:t.name,children:t.data};pa(i);var n=t.levels||[];n=t.levels=function(t,e){var i=e.get("color");if(i){t=t||[];var n;return du.each(t,function(t){var e=new Vp(t),i=e.get("color");(e.get("itemStyle.color")||i&&"none"!==i)&&(n=!0)}),n||((t[0]||(t[0]={})).color=i.slice()),t}}(n,e);var a={};return a.levels=n,zS.createTree(i,this,a).data},optionUpdated:function(){this.resetViewRoot()},formatTooltip:function(t){var e=this.getData(),i=this.getRawValue(t),n=QS(du.isArray(i)?i[0]:i),a=e.getName(t);return JS(a+": "+n)},getDataParams:function(t){var e=xv.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(t);return e.treePathInfo=tM(i,this),e},setLayoutInfo:function(t){this.layoutInfo=this.layoutInfo||{},du.extend(this.layoutInfo,t)},mapIdToIndex:function(t){var e=this._idIndexMap;e||(e=this._idIndexMap=du.createHashMap(),this._idIndexMapCount=0);var i=e.get(t);return null==i&&e.set(t,i=this._idIndexMapCount++),i},getViewRoot:function(){return this._viewRoot},resetViewRoot:function(t){t?this._viewRoot=t:t=this._viewRoot;var e=this.getRawData().tree.root;t&&(t===e||e.contains(t))||(this._viewRoot=e)}}),KS.wrapTreePathInfo),iM=5;ga.prototype={constructor:ga,render:function(t,e,i,n){var a=t.getModel("breadcrumb"),r=this.group;if(r.removeAll(),a.get("show")&&i){var o=a.getModel("itemStyle"),s=o.getModel("textStyle"),l={pos:{left:a.get("left"),right:a.get("right"),top:a.get("top"),bottom:a.get("bottom")},box:{width:e.getWidth(),height:e.getHeight()},emptyItemWidth:a.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(i,l,s),this._renderContent(t,l,o,s,n),ng.positionElement(r,l.pos,l.box)}},_prepare:function(t,e,i){for(var n=t;n;n=n.parentNode){var a=n.getModel().get("name"),r=i.getTextRect(a),o=Math.max(r.width+16,e.emptyItemWidth);e.totalWidth+=o+8,e.renderList.push({node:n,text:a,width:o})}},_renderContent:function(t,e,i,n,a){for(var r=0,o=e.emptyItemWidth,s=t.get("breadcrumb.height"),l=ng.getAvailableSize(e.pos,e.box),u=e.totalWidth,h=e.renderList,c=h.length-1;c>=0;c--){var d=h[c],f=d.node,p=d.width,g=d.text;u>l.width&&(u-=p-o,p=o,g=null);var m=new Dp.Polygon({shape:{points:function(t,e,i,n,a,r){var o=[[a?t:t-iM,e],[t+i,e],[t+i,e+n],[a?t:t-iM,e+n]];return!r&&o.splice(2,0,[t+i+iM,e+n/2]),!a&&o.push([t,e+n/2]),o}(r,0,p,s,c===h.length-1,0===c)},style:du.defaults(i.getItemStyle(),{lineJoin:"bevel",text:g,textFill:n.getTextColor(),textFont:n.getFont()}),z:10,onclick:du.curry(a,f)});this.group.add(m),function(t,e,i){t.eventData={componentType:"series",componentSubType:"treemap",seriesIndex:e.componentIndex,seriesName:e.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:i&&i.dataIndex,name:i&&i.name},treePathInfo:i&&eM(i,e)}}(m,t,f),r+=p+8}},remove:function(){this.group.removeAll()}};for(var nM=ga,aM={createWrap:function(){var t,e=[],i={};return{add:function(t,n,a,r,o){return du.isString(r)&&(o=r,r=0),!i[t.id]&&(i[t.id]=1,e.push({el:t,target:n,time:a,delay:r,easing:o}),!0)},done:function(e){return t=e,this},start:function(){for(var n=e.length,a=0,r=e.length;a3||Math.abs(e)>3)){var i=this.seriesModel.getData().tree.root;if(!i)return;var n=i.getLayout();if(!n)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:n.x+t,y:n.y+e,width:n.width,height:n.height}})}},_onZoom:function(t,e,i){if("animating"!==this._state){var n=this.seriesModel.getData().tree.root;if(!n)return;var a=n.getLayout();if(!a)return;var r=new ch(a.x,a.y,a.width,a.height),o=this.seriesModel.layoutInfo;e-=o.x,i-=o.y;var s=Mu.create();Mu.translate(s,s,[-e,-i]),Mu.scale(s,s,[t,t]),Mu.translate(s,s,[e,i]),r.applyTransform(s),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:r.x,y:r.y,width:r.width,height:r.height}})}},_initEvents:function(t){t.on("click",function(t){if("ready"===this._state){var e=this.seriesModel.get("nodeClick",!0);if(e){var i=this.findTarget(t.offsetX,t.offsetY);if(i){var n=i.node;if(n.getLayout().isLeafRoot)this._rootToNode(i);else if("zoomToNode"===e)this._zoomToNode(i);else if("link"===e){var a=n.hostTree.data.getItemModel(n.dataIndex),r=a.get("link",!0),o=a.get("target",!0)||"blank";r&&window.open(r,o)}}}}},this)},_renderBreadcrumb:function(t,e,i){i||(i=null!=t.get("leafDepth",!0)?{node:t.getViewRoot()}:this.findTarget(e.getWidth()/2,e.getHeight()/2))||(i={node:t.getData().tree.root}),(this._breadcrumb||(this._breadcrumb=new nM(this.group))).render(t,e,i.node,rM(function(e){"animating"!==this._state&&(KS.aboveViewRoot(t.getViewRoot(),e)?this._rootToNode({node:e}):this._zoomToNode({node:e}))},this))},remove:function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage={nodeGroup:[],background:[],content:[]},this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},dispose:function(){this._clearController()},_zoomToNode:function(t){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},_rootToNode:function(t){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},findTarget:function(t,e){var i;return this.seriesModel.getViewRoot().eachNode({attr:"viewChildren",order:"preorder"},function(n){var a=this._storage.background[n.getRawIndex()];if(a){var r=a.transformCoordToLocal(t,e),o=a.shape;if(!(o.x<=r[0]&&r[0]<=o.x+o.width&&o.y<=r[1]&&r[1]<=o.y+o.height))return!1;i={node:n,offsetX:r[0],offsetY:r[1]}}},this),i}}),["treemapZoomToNode","treemapRender","treemapMove"]),xM=0;xM=0;r--)null==i[r]&&(delete n[e[r]],e.pop())}(n):ma(n,!0):(du.assert("linear"!==e||n.dataExtent),ma(n))};MM.prototype={constructor:MM,mapValueToVisual:function(t){var e=this._normalizeData(t);return this._doMap(e,t)},getNormalizer:function(){return du.bind(this._normalizeData,this)}};var IM=MM.visualHandlers={color:{applyVisual:xa("color"),getColorMapper:function(){var t=this.option;return du.bind("category"===t.mappingMethod?function(t,e){return!e&&(t=this._normalizeData(t)),_a.call(this,t)}:function(e,i,n){var a=!!n;return!i&&(e=this._normalizeData(e)),n=Wu.fastLerp(e,t.parsedVisual,n),a?n:Wu.stringify(n,"rgba")},this)},_doMap:{linear:function(t){return Wu.stringify(Wu.fastLerp(t,this.option.parsedVisual),"rgba")},category:_a,piecewise:function(t,e){var i=Sa.call(this,e);return null==i&&(i=Wu.stringify(Wu.fastLerp(t,this.option.parsedVisual),"rgba")),i},fixed:ba}},colorHue:va(function(t,e){return Wu.modifyHSL(t,e)}),colorSaturation:va(function(t,e){return Wu.modifyHSL(t,null,e)}),colorLightness:va(function(t,e){return Wu.modifyHSL(t,null,null,e)}),colorAlpha:va(function(t,e){return Wu.modifyAlpha(t,e)}),opacity:{applyVisual:xa("opacity"),_doMap:wa([0,1])},liftZ:{applyVisual:xa("liftZ"),_doMap:{linear:ba,category:ba,piecewise:ba,fixed:ba}},symbol:{applyVisual:function(t,e,i){var n=this.mapValueToVisual(t);if(du.isString(n))i("symbol",n);else if(wM(n))for(var a in n)n.hasOwnProperty(a)&&i(a,n[a])},_doMap:{linear:ya,category:_a,piecewise:function(t,e){var i=Sa.call(this,e);return null==i&&(i=ya.call(this,t)),i},fixed:ba}},symbolSize:{applyVisual:xa("symbolSize"),_doMap:wa([0,1])}},AM={linear:function(t){return _M(t,this.option.dataExtent,[0,1],!0)},piecewise:function(t){var e=this.option.pieceList,i=MM.findPieceIndex(t,e,!0);if(null!=i)return _M(i,[0,e.length-1],[0,1],!0)},category:function(t){var e=this.option.categories?this.option.categoryMap[t]:t;return null==e?SM:e},fixed:du.noop};MM.listVisualTypes=function(){var t=[];return du.each(IM,function(e,i){t.push(i)}),t},MM.addVisualHandler=function(t,e){IM[t]=e},MM.isValidType=function(t){return IM.hasOwnProperty(t)},MM.eachVisual=function(t,e,i){du.isObject(t)?du.each(t,e,i):e.call(i,t)},MM.mapVisual=function(t,e,i){var n,a=du.isArray(t)?[]:du.isObject(t)?{}:(n=!0,null);return MM.eachVisual(t,function(t,r){var o=e.call(i,t,r);n?a=o:a[r]=o}),a},MM.retrieveVisuals=function(t){var e,i={};return t&&bM(IM,function(n,a){t.hasOwnProperty(a)&&(i[a]=t[a],e=!0)}),e?i:null},MM.prepareVisualTypes=function(t){if(wM(t)){var e=[];bM(t,function(t,i){e.push(i)}),t=e}else{if(!du.isArray(t))return[];t=t.slice()}return t.sort(function(t,e){return"color"===e&&"color"!==t&&0===t.indexOf("color")?1:-1}),t},MM.dependsOn=function(t,e){return"color"===e?!(!t||0!==t.indexOf(e)):t===e},MM.findPieceIndex=function(t,e,i){function n(e,i){var n=Math.abs(e-t);nkM&&(u=kM),r=s}u=0&&t.call(e,i[a],a)},UM.eachEdge=function(t,e){for(var i=this.edges,n=i.length,a=0;a=0&&i[a].node1.dataIndex>=0&&i[a].node2.dataIndex>=0&&t.call(e,i[a],a)},UM.breadthFirstTraverse=function(t,e,i,n){if(Na.isInstance(e)||(e=this._nodesMap[Ra(e)]),e){for(var a="out"===i?"outEdges":"in"===i?"inEdges":"edges",r=0;r=0&&i.node2.dataIndex>=0});for(var a=0,r=n.length;a=0&&this[t][e].setItemVisual(this.dataIndex,i,n)},getVisual:function(i,n){return this[t][e].getItemVisual(this.dataIndex,i,n)},setLayout:function(i,n){this.dataIndex>=0&&this[t][e].setItemLayout(this.dataIndex,i,n)},getLayout:function(){return this[t][e].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[t][e].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[t][e].getRawIndex(this.dataIndex)}}};du.mixin(Na,ZM("hostGraph","data")),du.mixin(Ea,ZM("hostGraph","edgeData")),WM.Node=Na,WM.Edge=Ea,FM(Na),FM(Ea);var jM=WM,YM=function(t,e,i,n,a){for(var r=new jM(n),o=0;o "+d)),u++)}var f,p=i.get("coordinateSystem");if("cartesian2d"===p||"polar"===p)f=Xy(t,i);else{var g=vm.get(p),m=g&&"view"!==g.type?g.dimensions||[]:[];du.indexOf(m,"value")<0&&m.concat(["value"]);var v=By(t,{coordDimensions:m});(f=new Ty(v,i)).initData(t)}var y=new Ty(["value"],i);return y.initData(l,s),a&&a(f,y),NS({mainData:f,struct:r,structAttr:"graph",datas:{node:f,edge:y},datasAttr:{node:"data",edge:"edgeData"}}),r.update(),r},XM=Wc.defaultEmphasis,qM=qp.encodeHTML,$M=C_.extendSeriesModel({type:"series.graph",init:function(t){$M.superApply(this,"init",arguments),this.legendDataProvider=function(){return this._categoriesData},this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},mergeOption:function(t){$M.superApply(this,"mergeOption",arguments),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},mergeDefaultAndTheme:function(t){$M.superApply(this,"mergeDefaultAndTheme",arguments),XM(t,["edgeLabel"],["show"])},getInitialData:function(t,e){var i=t.edges||t.links||[],n=t.data||t.nodes||[],a=this;if(n&&i)return YM(n,i,this,!0,function(t,i){t.wrapMethod("getItemModel",function(t){var e=a._categoriesModels[t.getShallow("category")];return e&&(e.parentModel=t.parentModel,t.parentModel=e),t});var n=a.getModel("edgeLabel"),r=new Vp({label:n.option},n.parentModel,e),o=a.getModel("emphasis.edgeLabel"),s=new Vp({emphasis:{label:o.option}},o.parentModel,e);i.wrapMethod("getItemModel",function(t){return t.customizeGetParent(function(t){return(t=this.parsePath(t))&&"label"===t[0]?r:t&&"emphasis"===t[0]&&"label"===t[1]?s:this.parentModel}),t})}).data},getGraph:function(){return this.getData().graph},getEdgeData:function(){return this.getGraph().edgeData},getCategoriesData:function(){return this._categoriesData},formatTooltip:function(t,e,i){if("edge"===i){var n=this.getData(),a=this.getDataParams(t,i),r=n.graph.getEdgeByIndex(t),o=n.getName(r.node1.dataIndex),s=n.getName(r.node2.dataIndex),l=[];return null!=o&&l.push(o),null!=s&&l.push(s),l=qM(l.join(" > ")),a.value&&(l+=" : "+qM(a.value)),l}return $M.superApply(this,"formatTooltip",arguments)},_updateCategoriesData:function(){var t=du.map(this.option.categories||[],function(t){return null!=t.value?t:du.extend({value:0},t)}),e=new Ty(["value"],this);e.initData(t),this._categoriesData=e,this._categoriesModels=e.mapArray(function(t){return e.getItemModel(t,!0)})},setZoom:function(t){this.option.zoom=t},setCenter:function(t){this.option.center=t},isAnimationEnabled:function(){return $M.superCall(this,"isAnimationEnabled")&&!("force"===this.get("layout")&&this.get("force.layoutAnimation"))},defaultOption:{zlevel:0,z:2,coordinateSystem:"view",legendHoverLink:!0,hoverAnimation:!0,layout:null,focusNodeAdjacency:!1,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle"},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:"#aaa",width:1,curveness:0,opacity:.5},emphasis:{label:{show:!0}}}}),KM=Dp.Line.prototype,JM=Dp.BezierCurve.prototype,QM=Dp.extendShape({type:"ec-line",style:{stroke:"#000",fill:null},shape:{x1:0,y1:0,x2:0,y2:0,percent:1,cpx1:null,cpy1:null},buildPath:function(t,e){(za(e)?KM:JM).buildPath(t,e)},pointAt:function(t){return za(this.shape)?KM.pointAt.call(this,t):JM.pointAt.call(this,t)},tangentAt:function(t){var e=this.shape,i=za(e)?[e.x2-e.x1,e.y2-e.y1]:JM.tangentAt.call(this,t);return pu.normalize(i,i)}}),tI=Up.round,eI=["fromSymbol","toSymbol"],iI=Ha.prototype;iI.beforeUpdate=function(){var t=this.childOfName("fromSymbol"),e=this.childOfName("toSymbol"),i=this.childOfName("label");if(t||e||!i.ignore){for(var n=1,a=this.parent;a;)a.scale&&(n/=a.scale[0]),a=a.parent;var r=this.childOfName("line");if(this.__dirty||r.__dirty){var o=r.shape.percent,s=r.pointAt(0),l=r.pointAt(o),u=pu.sub([],l,s);if(pu.normalize(u,u),t&&(t.attr("position",s),p=r.tangentAt(0),t.attr("rotation",Math.PI/2-Math.atan2(p[1],p[0])),t.attr("scale",[n*o,n*o])),e&&(e.attr("position",l),p=r.tangentAt(1),e.attr("rotation",-Math.PI/2-Math.atan2(p[1],p[0])),e.attr("scale",[n*o,n*o])),!i.ignore){i.attr("position",l);var h,c,d,f=5*n;if("end"===i.__position)h=[u[0]*f+l[0],u[1]*f+l[1]],c=u[0]>.8?"left":u[0]<-.8?"right":"center",d=u[1]>.8?"top":u[1]<-.8?"bottom":"middle";else if("middle"===i.__position){var p,g=o/2,m=[(p=r.tangentAt(g))[1],-p[0]],v=r.pointAt(g);m[1]>0&&(m[0]=-m[0],m[1]=-m[1]),h=[v[0]+m[0]*f,v[1]+m[1]*f],c="center",d="bottom";var y=-Math.atan2(p[1],p[0]);l[0].8?"right":u[0]<-.8?"left":"center",d=u[1]>.8?"bottom":u[1]<-.8?"top":"middle";i.attr({style:{textVerticalAlign:i.__verticalAlign||d,textAlign:i.__textAlign||c},position:h,scale:[n,n]})}}}},iI._createLine=function(t,e,i){var n=t.hostModel,a=function(t){var e=new QM({name:"line"});return Ga(e.shape,t),e}(t.getItemLayout(e));a.shape.percent=0,Dp.initProps(a,{shape:{percent:1}},n,e),this.add(a);var r=new Dp.Text({name:"label"});this.add(r),du.each(eI,function(i){var n=Ba(i,t,e);this.add(n),this[Va(i)]=t.getItemVisual(e,i)},this),this._updateCommonStl(t,e,i)},iI.updateData=function(t,e,i){var n=t.hostModel,a=this.childOfName("line"),r=t.getItemLayout(e),o={shape:{}};Ga(o.shape,r),Dp.updateProps(a,o,n,e),du.each(eI,function(i){var n=t.getItemVisual(e,i),a=Va(i);if(this[a]!==n){this.remove(this.childOfName(i));var r=Ba(i,t,e);this.add(r)}this[a]=n},this),this._updateCommonStl(t,e,i)},iI._updateCommonStl=function(t,e,i){var n=t.hostModel,a=this.childOfName("line"),r=i&&i.lineStyle,o=i&&i.hoverLineStyle,s=i&&i.labelModel,l=i&&i.hoverLabelModel;if(!i||t.hasItemOption){var u=t.getItemModel(e);r=u.getModel("lineStyle").getLineStyle(),o=u.getModel("emphasis.lineStyle").getLineStyle(),s=u.getModel("label"),l=u.getModel("emphasis.label")}var h=t.getItemVisual(e,"color"),c=du.retrieve3(t.getItemVisual(e,"opacity"),r.opacity,1);a.useStyle(du.defaults({strokeNoScale:!0,fill:"none",stroke:h,opacity:c},r)),a.hoverStyle=o,du.each(eI,function(t){var e=this.childOfName(t);e&&(e.setColor(h),e.setStyle({opacity:c}))},this);var d,f,p=s.getShallow("show"),g=l.getShallow("show"),m=this.childOfName("label");if((p||g)&&(d=h||"#000",null==(f=n.getFormattedLabel(e,"normal",t.dataType)))){var v=n.getRawValue(e);f=null==v?t.getName(e):isFinite(v)?tI(v):v}var y=p?f:null,x=g?du.retrieve2(n.getFormattedLabel(e,"emphasis",t.dataType),f):null,_=m.style;null==y&&null==x||(Dp.setTextStyle(m.style,s,{text:y},{autoColor:d}),m.__textAlign=_.textAlign,m.__verticalAlign=_.textVerticalAlign,m.__position=s.get("position")||"middle"),m.hoverStyle=null!=x?{text:x,textFill:l.getTextColor(!0),fontStyle:l.getShallow("fontStyle"),fontWeight:l.getShallow("fontWeight"),fontSize:l.getShallow("fontSize"),fontFamily:l.getShallow("fontFamily")}:{text:null},m.ignore=!p&&!g,Dp.setHoverStyle(this)},iI.highlight=function(){this.trigger("emphasis")},iI.downplay=function(){this.trigger("normal")},iI.updateLayout=function(t,e){this.setLinePoints(t.getItemLayout(e))},iI.setLinePoints=function(t){var e=this.childOfName("line");Ga(e.shape,t),e.dirty()},du.inherits(Ha,Dp.Group);var nI=Ha,aI=Fa.prototype;aI.isPersistent=function(){return!0},aI.updateData=function(t){var e=this,i=e.group,n=e._lineData;e._lineData=t,n||i.removeAll();var a=Wa(t);t.diff(n).add(function(i){!function(t,e,i,n){if(Za(e.getItemLayout(i))){var a=new t._ctor(e,i,n);e.setItemGraphicEl(i,a),t.group.add(a)}}(e,t,i,a)}).update(function(i,r){!function(t,e,i,n,a,r){var o=e.getItemGraphicEl(n);Za(i.getItemLayout(a))?(o?o.updateData(i,a,r):o=new t._ctor(i,a,r),i.setItemGraphicEl(a,o),t.group.add(o)):t.group.remove(o)}(e,n,t,r,i,a)}).remove(function(t){i.remove(n.getItemGraphicEl(t))}).execute()},aI.updateLayout=function(){var t=this._lineData;t&&t.eachItemGraphicEl(function(e,i){e.updateLayout(t,i)},this)},aI.incrementalPrepareUpdate=function(t){this._seriesScope=Wa(t),this._lineData=null,this.group.removeAll()},aI.incrementalUpdate=function(t,e){for(var i=t.start;i=a/3?1:2),l=e.y-n(o)*r*(r>=a/3?1:2);o=e.angle-Math.PI/2,t.moveTo(s,l),t.lineTo(e.x+i(o)*r,e.y+n(o)*r),t.lineTo(e.x+i(e.angle)*a,e.y+n(e.angle)*a),t.lineTo(e.x-i(o)*r,e.y-n(o)*r),t.lineTo(s,l)}}),zI=Up.parsePercent,VI=Up.round,BI=Up.linearMap,GI=2*Math.PI,HI=(Pv.extend({type:"gauge",render:function(t,e,i){this.group.removeAll();var n=t.get("axisLine.lineStyle.color"),a=function(t,e){var i=t.get("center"),n=e.getWidth(),a=e.getHeight(),r=Math.min(n,a);return{cx:zI(i[0],e.getWidth()),cy:zI(i[1],e.getHeight()),r:zI(t.get("radius"),r/2)}}(t,i);this._renderMain(t,e,i,n,a)},dispose:function(){},_renderMain:function(t,e,i,n,a){for(var r=this.group,o=t.getModel("axisLine").getModel("lineStyle"),s=t.get("clockwise"),l=-t.get("startAngle")/180*Math.PI,u=((f=-t.get("endAngle")/180*Math.PI)-l)%GI,h=l,c=o.get("width"),d=0;d=t&&(0===e?0:n[e-1][0]).4?"bottom":"middle",textAlign:T<-.4?"left":T>.4?"right":"center"},{autoColor:k}),silent:!0}))}if(g.get("show")&&A!==v){for(var O=0;O<=y;O++){var T=Math.cos(b),D=Math.sin(b),R=new Dp.Line({shape:{x1:T*c+u,y1:D*c+h,x2:T*(c-_)+u,y2:D*(c-_)+h},silent:!0,style:I});"auto"===I.stroke&&R.setStyle({stroke:n((A+O/y)/v)}),l.add(R),b+=S}b-=S}else b+=w}},_renderPointer:function(t,e,i,n,a,r,o,s){var l=this.group,u=this._data;if(t.get("pointer.show")){var h=[+t.get("min"),+t.get("max")],c=[r,o],d=t.getData(),f=d.mapDimension("value");d.diff(u).add(function(e){var i=new EI({shape:{angle:r}});Dp.initProps(i,{shape:{angle:BI(d.get(f,e),h,c,!0)}},t),l.add(i),d.setItemGraphicEl(e,i)}).update(function(e,i){var n=u.getItemGraphicEl(i);Dp.updateProps(n,{shape:{angle:BI(d.get(f,e),h,c,!0)}},t),l.add(n),d.setItemGraphicEl(e,n)}).remove(function(t){var e=u.getItemGraphicEl(t);l.remove(e)}).execute(),d.eachItemGraphicEl(function(t,e){var i=d.getItemModel(e),r=i.getModel("pointer");t.setShape({x:a.cx,y:a.cy,width:zI(r.get("width"),a.r),r:zI(r.get("length"),a.r)}),t.useStyle(i.getModel("itemStyle").getItemStyle()),"auto"===t.style.fill&&t.setStyle("fill",n(BI(d.get(f,e),h,[0,1],!0))),Dp.setHoverStyle(t,i.getModel("emphasis.itemStyle").getItemStyle())}),this._data=d}else u&&u.eachItemGraphicEl(function(t){l.remove(t)})},_renderTitle:function(t,e,i,n,a){var r=t.getData(),o=r.mapDimension("value"),s=t.getModel("title");if(s.get("show")){var l=s.get("offsetCenter"),u=a.cx+zI(l[0],a.r),h=a.cy+zI(l[1],a.r),c=+t.get("min"),d=+t.get("max"),f=t.getData().get(o,0),p=n(BI(f,[c,d],[0,1],!0));this.group.add(new Dp.Text({silent:!0,style:Dp.setTextStyle({},s,{x:u,y:h,text:r.getName(0),textAlign:"center",textVerticalAlign:"middle"},{autoColor:p,forceRich:!0})}))}},_renderDetail:function(t,e,i,n,a){var r=t.getModel("detail"),o=+t.get("min"),s=+t.get("max");if(r.get("show")){var l=r.get("offsetCenter"),u=a.cx+zI(l[0],a.r),h=a.cy+zI(l[1],a.r),c=zI(r.get("width"),a.r),d=zI(r.get("height"),a.r),f=t.getData(),p=f.get(f.mapDimension("value"),0),g=n(BI(p,[o,s],[0,1],!0));this.group.add(new Dp.Text({silent:!0,style:Dp.setTextStyle({},r,{x:u,y:h,text:Ja(p,r.get("formatter")),textWidth:isNaN(c)?null:c,textHeight:isNaN(d)?null:d,textAlign:"center",textVerticalAlign:"middle"},{autoColor:g,forceRich:!0})}))}}}),Wc.defaultEmphasis),FI=C_.extendSeriesModel({type:"series.funnel",init:function(t){FI.superApply(this,"init",arguments),this.legendDataProvider=function(){return this.getRawData()},this._defaultLabelLine(t)},getInitialData:function(t,e){return Aw(this,["value"])},_defaultLabelLine:function(t){HI(t,"labelLine",["show"]);var e=t.labelLine,i=t.emphasis.labelLine;e.show=e.show&&t.label.show,i.show=i.show&&t.emphasis.label.show},getDataParams:function(t){var e=this.getData(),i=FI.superCall(this,"getDataParams",t),n=e.mapDimension("value"),a=e.getSum(n);return i.percent=a?+(e.get(n,t)/a*100).toFixed(2):0,i.$vars.push("percent"),i},defaultOption:{zlevel:0,z:2,legendHoverLink:!0,left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1,type:"solid"}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{show:!0}}}}),WI=Qa.prototype,UI=["itemStyle","opacity"];WI.updateData=function(t,e,i){var n=this.childAt(0),a=t.hostModel,r=t.getItemModel(e),o=t.getItemLayout(e),s=t.getItemModel(e).get(UI);s=null==s?1:s,n.useStyle({}),i?(n.setShape({points:o.points}),n.setStyle({opacity:0}),Dp.initProps(n,{style:{opacity:s}},a,e)):Dp.updateProps(n,{style:{opacity:s},shape:{points:o.points}},a,e);var l=r.getModel("itemStyle"),u=t.getItemVisual(e,"color");n.setStyle(du.defaults({lineJoin:"round",fill:u},l.getItemStyle(["opacity"]))),n.hoverStyle=l.getModel("emphasis").getItemStyle(),this._updateLabel(t,e),Dp.setHoverStyle(this)},WI._updateLabel=function(t,e){var i=this.childAt(1),n=this.childAt(2),a=t.hostModel,r=t.getItemModel(e),o=t.getItemLayout(e).label,s=t.getItemVisual(e,"color");Dp.updateProps(i,{shape:{points:o.linePoints||o.linePoints}},a,e),Dp.updateProps(n,{style:{x:o.x,y:o.y}},a,e),n.attr({rotation:o.rotation,origin:[o.x,o.y],z2:10});var l=r.getModel("label"),u=r.getModel("emphasis.label"),h=r.getModel("labelLine"),c=r.getModel("emphasis.labelLine"),s=t.getItemVisual(e,"color");Dp.setLabelStyle(n.style,n.hoverStyle={},l,u,{labelFetcher:t.hostModel,labelDataIndex:e,defaultText:t.getName(e),autoColor:s,useInsideStyle:!!o.inside},{textAlign:o.textAlign,textVerticalAlign:o.verticalAlign}),n.ignore=n.normalIgnore=!l.get("show"),n.hoverIgnore=!u.get("show"),i.ignore=i.normalIgnore=!h.get("show"),i.hoverIgnore=!c.get("show"),i.setStyle({stroke:s}),i.setStyle(h.getModel("lineStyle").getLineStyle()),i.hoverStyle=c.getModel("lineStyle").getLineStyle()},du.inherits(Qa,Dp.Group);Pv.extend({type:"funnel",render:function(t,e,i){var n=t.getData(),a=this._data,r=this.group;n.diff(a).add(function(t){var e=new Qa(n,t);n.setItemGraphicEl(t,e),r.add(e)}).update(function(t,e){var i=a.getItemGraphicEl(e);i.updateData(n,t),r.add(i),n.setItemGraphicEl(t,i)}).remove(function(t){var e=a.getItemGraphicEl(t);r.remove(e)}).execute(),this._data=n},remove:function(){this.group.removeAll(),this._data=null},dispose:function(){}});var ZI=Up.parsePercent,jI=Up.linearMap,YI=function(t,e,i){t.eachSeriesByType("funnel",function(t){var i=t.getData(),n=i.mapDimension("value"),a=t.get("sort"),r=function(t,e){return ng.getLayoutRect(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}(t,e),o=function(t,e){for(var i=t.mapDimension("value"),n=t.mapArray(i,function(t){return t}),a=[],r="ascending"===e,o=0,s=t.count();or&&(e[1-n]=e[n]+h.sign*r),e},JI=du.each,QI=Math.min,tA=Math.max,eA=Math.floor,iA=Math.ceil,nA=Up.round,aA=Math.PI;ir.prototype={type:"parallel",constructor:ir,_init:function(t,e,i){var n=t.dimensions,a=t.parallelAxisIndex;JI(n,function(t,i){var n=a[i],r=e.getComponent("parallelAxis",n),o=this._axesMap.set(t,new $I(t,kx.createScaleByModel(r),[0,0],r.get("type"),n)),s="category"===o.type;o.onBand=s&&r.get("boundaryGap"),o.inverse=r.get("inverse"),r.axis=o,o.model=r,o.coordinateSystem=r.coordinateSystem=this},this)},update:function(t,e){this._updateAxesFromSeries(this._model,t)},containPoint:function(t){var e=this._makeLayoutInfo(),i=e.axisBase,n=e.layoutBase,a=e.pixelDimIndex,r=t[1-a],o=t[a];return r>=i&&r<=i+e.axisLength&&o>=n&&o<=n+e.layoutLength},getModel:function(){return this._model},_updateAxesFromSeries:function(t,e){e.eachSeries(function(i){if(t.contains(i,e)){var n=i.getData();JI(this.dimensions,function(t){var e=this._axesMap.get(t);e.scale.unionExtentFromData(n,n.mapDimension(t)),kx.niceScaleExtent(e.scale,e.model)},this)}},this)},resize:function(t,e){this._rect=ng.getLayoutRect(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()}),this._layoutAxes()},getRect:function(){return this._rect},_makeLayoutInfo:function(){var t,e=this._model,i=this._rect,n=["x","y"],a=["width","height"],r=e.get("layout"),o="horizontal"===r?0:1,s=i[a[o]],l=[0,s],u=this.dimensions.length,h=nr(e.get("axisExpandWidth"),l),c=nr(e.get("axisExpandCount")||0,[0,u]),d=e.get("axisExpandable")&&u>3&&u>c&&c>1&&h>0&&s>0,f=e.get("axisExpandWindow");if(f)t=nr(f[1]-f[0],l),f[1]=f[0]+t;else{t=nr(h*(c-1),l);(f=[h*(e.get("axisExpandCenter")||eA(u/2))-t/2])[1]=f[0]+t}var p=(s-t)/(u-c);p<3&&(p=0);var g=[eA(nA(f[0]/h,1))+1,iA(nA(f[1]/h,1))-1],m=p/h*f[0];return{layout:r,pixelDimIndex:o,layoutBase:i[n[o]],layoutLength:s,axisBase:i[n[1-o]],axisLength:i[a[1-o]],axisExpandable:d,axisExpandWidth:h,axisCollapseWidth:p,axisExpandWindow:f,axisCount:u,winInnerIndices:g,axisExpandWindow0Pos:m}},_layoutAxes:function(){var t=this._rect,e=this._axesMap,i=this.dimensions,n=this._makeLayoutInfo(),a=n.layout;e.each(function(t){var e=[0,n.axisLength],i=t.inverse?1:0;t.setExtent(e[i],e[1-i])}),JI(i,function(e,i){var r=(n.axisExpandable?function(t,e){var i,n,a=e.layoutLength,r=e.axisExpandWidth,o=e.axisCount,s=e.axisCollapseWidth,l=e.winInnerIndices,u=s,h=!1;return ta*(1-h[0])?(l="jump",o=s-a*(1-h[2])):(o=s-a*h[1])>=0&&(o=s-a*(1-h[1]))<=0&&(o=0),(o*=e.axisExpandWidth/u)?KI(o,n,r,"all"):l="none";else{a=n[1]-n[0];(n=[tA(0,r[1]*s/a-a/2)])[1]=QI(r[1],n[0]+a),n[0]=n[1]-a}return{axisExpandWindow:n,behavior:l}}};var rA=ir;vm.register("parallel",{create:function(t,e){var i=[];return t.eachComponent("parallel",function(n,a){var r=new rA(n,t,e);r.name="parallel_"+a,r.resize(n,e),n.coordinateSystem=r,r.model=n,i.push(r)}),t.eachSeries(function(e){if("parallel"===e.get("coordinateSystem")){var i=t.queryComponents({mainType:"parallel",index:e.get("parallelIndex"),id:e.get("parallelId")})[0];e.coordinateSystem=i.coordinateSystem}}),i}});var oA=ug.extend({type:"baseParallelAxis",axis:null,activeIntervals:[],getAreaSelectStyle:function(){return Xc([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},setActiveIntervals:function(t){var e=this.activeIntervals=du.clone(t);if(e)for(var i=e.length-1;i>=0;i--)Up.asc(e[i])},getActiveState:function(t){var e=this.activeIntervals;if(!e.length)return"normal";if(null==t||isNaN(t))return"inactive";if(1===e.length){var i=e[0];if(i[0]<=t&&t<=i[1])return"active"}else for(var n=0,a=e.length;n5)return;var n=this._model.coordinateSystem.getSlidedAxisExpandWindow([t.offsetX,t.offsetY]);"none"!==n.behavior&&this._dispatchExpand({axisExpandWindow:n.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(t){if(!this._mouseDownPoint&&Or(this,"mousemove")){var e=this._model,i=e.coordinateSystem.getSlidedAxisExpandWindow([t.offsetX,t.offsetY]),n=i.behavior;"jump"===n&&this._throttledDispatchExpand.debounceNextCall(e.get("axisExpandDebounce")),this._throttledDispatchExpand("none"===n?null:{axisExpandWindow:i.axisExpandWindow,animation:"jump"===n&&null})}}};C_.registerPreprocessor(XI);var CA=du.each,LA=du.createHashMap,PA=(xv.extend({type:"series.parallel",dependencies:["parallel"],visualColorAccessPath:"lineStyle.color",getInitialData:function(t,e){var i=this.getSource();return function(t,e){if(!t.encodeDefine){var i=e.ecModel.getComponent("parallel",e.get("parallelIndex"));if(i){var n=t.encodeDefine=LA();CA(i.dimensions,function(t){var e=+t.replace("dim","");n.set(t,e)})}}}(i,this),Xy(i,this)},getRawIndicesByActiveState:function(t){var e=this.coordinateSystem,i=this.getData(),n=[];return e.eachActiveState(i,function(e,a){t===e&&n.push(i.getRawIndex(a))}),n},defaultOption:{zlevel:0,z:2,coordinateSystem:"parallel",parallelIndex:0,label:{show:!1},inactiveOpacity:.05,activeOpacity:1,lineStyle:{width:1,opacity:.45,type:"solid"},emphasis:{label:{show:!1}},progressive:500,smooth:!1,animationEasing:"linear"}}),.3),kA=(Pv.extend({type:"parallel",init:function(){this._dataGroup=new Dp.Group,this.group.add(this._dataGroup),this._data,this._initialized},render:function(t,e,i,n){var a=this._dataGroup,r=t.getData(),o=this._data,s=t.coordinateSystem,l=s.dimensions,u=Er(t);if(r.diff(o).add(function(t){zr(Nr(r,a,t,l,s),r,t,u)}).update(function(e,i){var a=o.getItemGraphicEl(i),h=Rr(r,e,l,s);r.setItemGraphicEl(e,a);var c=n&&!1===n.animation?null:t;Dp.updateProps(a,{shape:{points:h}},c,e),zr(a,r,e,u)}).remove(function(t){var e=o.getItemGraphicEl(t);a.remove(e)}).execute(),!this._initialized){this._initialized=!0;var h=function(t,e,i){var n=t.model,a=t.getRect(),r=new Dp.Rect({shape:{x:a.x,y:a.y,width:a.width,height:a.height}}),o="horizontal"===n.get("layout")?"width":"height";return r.setShape(o,0),Dp.initProps(r,{shape:{width:a.width,height:a.height}},e,i),r}(s,t,function(){setTimeout(function(){a.removeClipPath()})});a.setClipPath(h)}this._data=r},incrementalPrepareRender:function(t,e,i){this._initialized=!0,this._data=null,this._dataGroup.removeAll()},incrementalRender:function(t,e,i){for(var n=e.getData(),a=e.coordinateSystem,r=a.dimensions,o=Er(e),s=t.start;s=i.length)return e;for(var a=-1,r=e.length,o=i[n++],s={},l={};++a=i.length)return t;var r=[],o=n[a++];return du.each(t,function(t,i){r.push({key:i,values:e(t,a)})}),o?r.sort(function(t,e){return o(t.key,e.key)}):r}var i=[],n=[];return{key:function(t){return i.push(t),this},sortKeys:function(t){return n[i.length-1]=t,this},entries:function(i){return e(t(i,0),0)}}},VA=function(t,e,i){t.eachSeriesByType("sankey",function(t){var i=t.get("nodeWidth"),n=t.get("nodeGap"),a=function(t,e){return ng.getLayoutRect(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}(t,e);t.layoutInfo=a;var r=a.width,o=a.height,s=t.getGraph(),l=s.nodes,u=s.edges;!function(t){du.each(t,function(t){var e=Br(t.outEdges,Hr),i=Br(t.inEdges,Hr),n=Math.max(e,i);t.setLayout({value:n},!0)})}(l),function(t,e,i,n,a,r,o){(function(t,e,i,n){for(var a=[],r=[],o=[],s=[],l=0,u=0;u0;a--)(function(t,e){du.each(t.slice().reverse(),function(t){du.each(t,function(t){if(t.outEdges.length){var i=Br(t.outEdges,function(t){return Gr(t.node2)*t.getValue()})/Br(t.outEdges,Hr),n=t.getLayout().y+(i-Gr(t))*e;t.setLayout({y:n},!0)}})})})(r,o*=.99),Vr(r,n,i),function(t,e){du.each(t,function(t){du.each(t,function(t){if(t.inEdges.length){var i=Br(t.inEdges,function(t){return Gr(t.node1)*t.getValue()})/Br(t.inEdges,Hr),n=t.getLayout().y+(i-Gr(t))*e;t.setLayout({y:n},!0)}})})}(r,o),Vr(r,n,i)}(t,e,r,n,o),function(t){du.each(t,function(t){t.outEdges.sort(function(t,e){return t.node2.getLayout().y-e.node2.getLayout().y}),t.inEdges.sort(function(t,e){return t.node1.getLayout().y-e.node1.getLayout().y})}),du.each(t,function(t){var e=0,i=0;du.each(t.outEdges,function(t){t.setLayout({sy:e},!0),e+=t.getLayout().dy}),du.each(t.inEdges,function(t){t.setLayout({ty:i},!0),i+=t.getLayout().dy})})}(t)}(l,u,i,n,r,o,0!==du.filter(l,function(t){return 0===t.getLayout().value}).length?0:t.get("layoutIterations"))})},BA=function(t,e){t.eachSeriesByType("sankey",function(t){var e=t.getGraph().nodes;if(e.length){var i=1/0,n=-1/0;du.each(e,function(t){var e=t.getLayout().value;en&&(n=e)}),du.each(e,function(e){var a=new TM({type:"color",mappingMethod:"linear",dataExtent:[i,n],visual:t.get("color")}).mapValueToVisual(e.getLayout().value);e.setVisual("color",a);var r=e.getModel().get("itemStyle.color");null!=r&&e.setVisual("color",r)})}})};C_.registerLayout(VA),C_.registerVisual(BA);var GA=py.getDimensionTypeByAxis,HA={seriesModelMixin:{_baseAxisDim:null,getInitialData:function(t,e){var i,n,a=e.getComponent("xAxis",this.get("xAxisIndex")),r=e.getComponent("yAxis",this.get("yAxisIndex")),o=a.get("type"),s=r.get("type");"category"===o?(t.layout="horizontal",i=a.getOrdinalMeta(),n=!0):"category"===s?(t.layout="vertical",i=r.getOrdinalMeta(),n=!0):t.layout=t.layout||"horizontal";var l=["x","y"],u="horizontal"===t.layout?0:1,h=this._baseAxisDim=l[u],c=l[1-u],d=[a,r],f=d[u].get("type"),p=d[1-u].get("type"),g=t.data;if(g&&n){var m=[];du.each(g,function(t,e){var i;t.value&&du.isArray(t.value)?(i=t.value.slice(),t.value.unshift(e)):du.isArray(t)?(i=t.slice(),t.unshift(e)):i=t,m.push(i)}),t.data=m}var v=this.defaultValueDimensions;return Aw(this,{coordDimensions:[{name:h,type:GA(f),ordinalMeta:i,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:c,type:GA(p),dimsDef:v.slice()}],dimensionsCount:v.length+1})},getBaseAxis:function(){var t=this._baseAxisDim;return this.ecModel.getComponent(t+"Axis",this.get(t+"AxisIndex")).axis}}},FA=HA.seriesModelMixin,WA=xv.extend({type:"series.boxplot",dependencies:["xAxis","yAxis","grid"],defaultValueDimensions:[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],dimensions:null,defaultOption:{zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,hoverAnimation:!0,layout:null,boxWidth:[7,50],itemStyle:{color:"#fff",borderWidth:1},emphasis:{itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:2,shadowOffsetY:2,shadowColor:"rgba(0,0,0,0.4)"}},animationEasing:"elasticOut",animationDuration:800}});du.mixin(WA,FA,!0);var UA=["itemStyle"],ZA=["emphasis","itemStyle"],jA=(Pv.extend({type:"boxplot",render:function(t,e,i){var n=t.getData(),a=this.group,r=this._data;this._data||a.removeAll();var o="horizontal"===t.get("layout")?1:0;n.diff(r).add(function(t){if(n.hasValue(t)){var e=Fr(n.getItemLayout(t),n,t,o,!0);n.setItemGraphicEl(t,e),a.add(e)}}).update(function(t,e){var i=r.getItemGraphicEl(e);if(n.hasValue(t)){var s=n.getItemLayout(t);i?Wr(s,i,n,t):i=Fr(s,n,t,o),a.add(i),n.setItemGraphicEl(t,i)}else a.remove(i)}).remove(function(t){var e=r.getItemGraphicEl(t);e&&a.remove(e)}).execute(),this._data=n},remove:function(t){var e=this.group,i=this._data;this._data=null,i&&i.eachItemGraphicEl(function(t){t&&e.remove(t)})},dispose:du.noop}),af.extend({type:"boxplotBoxPath",shape:{},buildPath:function(t,e){var i=e.points,n=0;for(t.moveTo(i[n][0],i[n][1]),n++;n<4;n++)t.lineTo(i[n][0],i[n][1]);for(t.closePath();n0?lT:uT)}function n(t,e){return e.get(t>0?oT:sT)}var a=t.getData(),r=t.pipelineContext.large;if(a.setVisual({legendSymbol:"roundRect",colorP:i(1,t),colorN:i(-1,t),borderColorP:n(1,t),borderColorN:n(-1,t)}),!e.isSeriesFiltered(t))return!r&&{progress:function(t,e){for(var a;null!=(a=t.next());){var r=e.getItemModel(a),o=e.getItemLayout(a).sign;e.setItemVisual(a,{color:i(o,r),borderColor:n(o,r)})}}}}},cT=Dp.subPixelOptimize,dT=Up.parsePercent,fT=du.retrieve2,pT="undefined"!=typeof Float32Array?Float32Array:Array,gT={seriesType:"candlestick",plan:Mv(),reset:function(t){var e=t.coordinateSystem,i=t.getData(),n=function(t,e){var i,n=t.getBaseAxis(),a="category"===n.type?n.getBandWidth():(i=n.getExtent(),Math.abs(i[1]-i[0])/e.count()),r=dT(fT(t.get("barMaxWidth"),a),a),o=dT(fT(t.get("barMinWidth"),1),a),s=t.get("barWidth");return null!=s?dT(s,a):Math.max(Math.min(a/2,r),o)}(t,i),a=0,r=1,o=["x","y"],s=i.mapDimension(o[a]),l=i.mapDimension(o[r],!0),u=l[0],h=l[1],c=l[2],d=l[3];if(i.setLayout({candleWidth:n,isSimpleBox:n<=1.3}),!(null==s||l.length<4))return{progress:t.pipelineContext.large?function(t,i){for(var n,o,l=new pT(5*t.count),f=0,p=[],g=[];null!=(o=t.next());){var m=i.get(s,o),v=i.get(u,o),y=i.get(h,o),x=i.get(c,o),_=i.get(d,o);isNaN(m)||isNaN(x)||isNaN(_)?(l[f++]=NaN,f+=4):(l[f++]=Xr(i,o,v,y,h),p[a]=m,p[r]=x,n=e.dataToPoint(p,null,g),l[f++]=n?n[0]:NaN,l[f++]=n?n[1]:NaN,p[r]=_,n=e.dataToPoint(p,null,g),l[f++]=n?n[1]:NaN)}i.setLayout("largePoints",l)}:function(t,i){function o(t,i){var n=[];return n[a]=i,n[r]=t,isNaN(i)||isNaN(t)?[NaN,NaN]:e.dataToPoint(n)}function l(t,e,i){var r=e.slice(),o=e.slice();r[a]=cT(r[a]+n/2,1,!1),o[a]=cT(o[a]-n/2,1,!0),i?t.push(r,o):t.push(o,r)}function f(t){return t[a]=cT(t[a],1),t}for(var p;null!=(p=t.next());){var g=i.get(s,p),m=i.get(u,p),v=i.get(h,p),y=i.get(c,p),x=i.get(d,p),_=Math.min(m,v),b=Math.max(m,v),w=o(_,g),S=o(b,g),M=o(y,g),I=o(x,g),A=[];l(A,S,0),l(A,w,1),A.push(f(I),f(S),f(M),f(w)),i.setItemLayout(p,{sign:Xr(i,p,m,v,h),initBaseline:m>v?S[r]:w[r],ends:A,brushRect:function(t,e,i){var s=o(t,i),l=o(e,i);return s[a]-=n/2,l[a]-=n/2,{x:s[0],y:s[1],width:r?n:l[0]-s[0],height:r?l[1]-s[1]:n}}(y,x,g)})}}}}};C_.registerPreprocessor(rT),C_.registerVisual(hT),C_.registerLayout(gT);xv.extend({type:"series.effectScatter",dependencies:["grid","polar"],getInitialData:function(t,e){return Xy(this.getSource(),this)},brushSelector:"point",defaultOption:{coordinateSystem:"cartesian2d",zlevel:0,z:2,legendHoverLink:!0,effectType:"ripple",progressive:0,showEffectOn:"render",rippleEffect:{period:4,scale:2.5,brushType:"fill"},symbolSize:10}});var mT=Fx.createSymbol,vT=Dp.Group,yT=Up.parsePercent,xT=$r.prototype;xT.stopEffectAnimation=function(){this.childAt(1).removeAll()},xT.startEffectAnimation=function(t){for(var e=t.symbolType,i=t.color,n=this.childAt(1),a=0;a<3;a++){var r=mT(e,-1,-1,2,2,i);r.attr({style:{strokeNoScale:!0},z2:99,silent:!0,scale:[.5,.5]});var o=-a/3*t.period+t.effectOffset;r.animate("",!0).when(t.period,{scale:[t.rippleScale/2,t.rippleScale/2]}).delay(o).start(),r.animateStyle(!0).when(t.period,{opacity:0}).delay(o).start(),n.add(r)}qr(n,t)},xT.updateEffectAnimation=function(t){for(var e=this._effectCfg,i=this.childAt(1),n=["symbolType","period","rippleScale"],a=0;a "))},preventIncremental:function(){return!!this.get("effect.show")},getProgressive:function(){var t=this.option.progressive;return null==t?this.option.large?1e4:this.get("progressive"):t},getProgressiveThreshold:function(){var t=this.option.progressiveThreshold;return null==t?this.option.large?2e4:this.get("progressiveThreshold"):t},defaultOption:{coordinateSystem:"geo",zlevel:0,z:2,legendHoverLink:!0,hoverAnimation:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,label:{show:!1,position:"end"},lineStyle:{opacity:.5}}}),DT=Fx.createSymbol,CT=Jr.prototype;CT.createLine=function(t,e,i){return new nI(t,e,i)},CT._updateEffectSymbol=function(t,e){var i=t.getItemModel(e).getModel("effect"),n=i.get("symbolSize"),a=i.get("symbol");du.isArray(n)||(n=[n,n]);var r=i.get("color")||t.getItemVisual(e,"color"),o=this.childAt(1);this._symbolType!==a&&(this.remove(o),(o=DT(a,-.5,-.5,1,1,r)).z2=100,o.culling=!0,this.add(o)),o&&(o.setStyle("shadowColor",r),o.setStyle(i.getItemStyle(["color"])),o.attr("scale",n),o.setColor(r),o.attr("scale",n),this._symbolType=a,this._updateEffectAnimation(t,i,e))},CT._updateEffectAnimation=function(t,e,i){var n=this.childAt(1);if(n){var a=this,r=t.getItemLayout(i),o=1e3*e.get("period"),s=e.get("loop"),l=e.get("constantSpeed"),u=du.retrieve(e.get("delay"),function(e){return e/t.count()*o/3}),h="function"==typeof u;if(n.ignore=!0,this.updateAnimationPoints(n,r),l>0&&(o=this.getLineLength(n)/l*1e3),o!==this._period||s!==this._loop){n.stopAnimation();var c=u;h&&(c=u(i)),n.__t>0&&(c=-o*n.__t),n.__t=0;var d=n.animate("",s).when(o,{__t:1}).delay(c).during(function(){a.updateSymbolPosition(n)});s||d.done(function(){a.remove(n)}),d.start()}this._period=o,this._loop=s}},CT.getLineLength=function(t){return pu.dist(t.__p1,t.__cp1)+pu.dist(t.__cp1,t.__p2)},CT.updateAnimationPoints=function(t,e){t.__p1=e[0],t.__p2=e[1],t.__cp1=e[2]||[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]},CT.updateData=function(t,e,i){this.childAt(0).updateData(t,e,i),this._updateEffectSymbol(t,e)},CT.updateSymbolPosition=function(t){var e=t.__p1,i=t.__p2,n=t.__cp1,a=t.__t,r=t.position,o=hd.quadraticAt,s=hd.quadraticDerivativeAt;r[0]=o(e[0],n[0],i[0],a),r[1]=o(e[1],n[1],i[1],a);var l=s(e[0],n[0],i[0],a),u=s(e[1],n[1],i[1],a);t.rotation=-Math.atan2(u,l)-Math.PI/2,t.ignore=!1},CT.updateLayout=function(t,e){this.childAt(0).updateLayout(t,e);var i=t.getItemModel(e).getModel("effect");this._updateEffectAnimation(t,i,e)},du.inherits(Jr,Dp.Group);var LT=Jr,PT=Qr.prototype;PT._createPolyline=function(t,e,i){var n=t.getItemLayout(e),a=new Dp.Polyline({shape:{points:n}});this.add(a),this._updateCommonStl(t,e,i)},PT.updateData=function(t,e,i){var n=t.hostModel,a=this.childAt(0),r={shape:{points:t.getItemLayout(e)}};Dp.updateProps(a,r,n,e),this._updateCommonStl(t,e,i)},PT._updateCommonStl=function(t,e,i){var n=this.childAt(0),a=t.getItemModel(e),r=t.getItemVisual(e,"color"),o=i&&i.lineStyle,s=i&&i.hoverLineStyle;i&&!t.hasItemOption||(o=a.getModel("lineStyle").getLineStyle(),s=a.getModel("emphasis.lineStyle").getLineStyle()),n.useStyle(du.defaults({strokeNoScale:!0,fill:"none",stroke:r},o)),n.hoverStyle=s,Dp.setHoverStyle(this)},PT.updateLayout=function(t,e){this.childAt(0).setShape("points",t.getItemLayout(e))},du.inherits(Qr,Dp.Group);var kT=Qr,OT=to.prototype;OT.createLine=function(t,e,i){return new kT(t,e,i)},OT.updateAnimationPoints=function(t,e){this._points=e;for(var i=[0],n=0,a=1;a=0&&!(n[o]<=e);o--);o=Math.min(o,a-2)}else{for(var o=r;oe);o++);o=Math.min(o-1,a-2)}pu.lerp(t.position,i[o],i[o+1],(e-n[o])/(n[o+1]-n[o]));var s=i[o+1][0]-i[o][0],l=i[o+1][1]-i[o][1];t.rotation=-Math.atan2(l,s)-Math.PI/2,this._lastFrame=o,this._lastFramePercent=e,t.ignore=!1}},du.inherits(to,LT);var RT=to,NT=Dp.extendShape({shape:{polyline:!1,curveness:0,segs:[]},buildPath:function(t,e){var i=e.segs,n=e.curveness;if(e.polyline)for(o=0;o0){t.moveTo(i[o++],i[o++]);for(var r=1;r0){var c=(s+u)/2-(l-h)*n,d=(l+h)/2-(u-s)*n;t.quadraticCurveTo(c,d,u,h)}else t.lineTo(u,h)}},findDataIndex:function(t,e){var i=this.shape,n=i.segs,a=i.curveness;if(i.polyline)for(var r=0,o=0;o0)for(var l=n[o++],u=n[o++],h=1;h0){var f=(l+c)/2-(u-d)*a,p=(u+d)/2-(c-l)*a;if(Gd.containStroke(l,u,f,p,c,d))return r}else if(zd.containStroke(l,u,c,d))return r;r++}return-1}}),ET=eo.prototype;ET.isPersistent=function(){return!this._incremental},ET.updateData=function(t){this.group.removeAll();var e=new NT({rectHover:!0,cursor:"default"});e.setShape({segs:t.getLayout("linesPoints")}),this._setCommon(e,t),this.group.add(e),this._incremental=null},ET.incrementalPrepareUpdate=function(t){this.group.removeAll(),this._clearIncremental(),t.count()>5e5?(this._incremental||(this._incremental=new op({silent:!0})),this.group.add(this._incremental)):this._incremental=null},ET.incrementalUpdate=function(t,e){var i=new NT;i.setShape({segs:e.getLayout("linesPoints")}),this._setCommon(i,e,!!this._incremental),this._incremental?this._incremental.addDisplayable(i,!0):(i.rectHover=!0,i.cursor="default",i.__startIndex=t.start,this.group.add(i))},ET.remove=function(){this._clearIncremental(),this._incremental=null,this.group.removeAll()},ET._setCommon=function(t,e,i){var n=e.hostModel;t.setShape({polyline:n.get("polyline"),curveness:n.get("lineStyle.curveness")}),t.useStyle(n.getModel("lineStyle").getLineStyle()),t.style.strokeNoScale=!0;var a=e.getVisual("color");a&&t.setStyle("stroke",a),t.setStyle("fill"),i||(t.seriesIndex=n.seriesIndex,t.on("mousemove",function(e){t.dataIndex=null;var i=t.findDataIndex(e.offsetX,e.offsetY);i>0&&(t.dataIndex=i+t.__startIndex)}))},ET._clearIncremental=function(){var t=this._incremental;t&&t.clearDisplaybles()};var zT=eo,VT={seriesType:"lines",plan:Mv(),reset:function(t){var e=t.coordinateSystem,i=t.get("polyline"),n=t.pipelineContext.large;return{progress:function(a,r){var o=[];if(n){var s,l=a.end-a.start;if(i){for(var u=0,h=a.start;h0){var I=r(v)?s:l;v>0&&(v=v*S+w),x[_++]=I[M],x[_++]=I[M+1],x[_++]=I[M+2],x[_++]=I[M+3]*v*256}else _+=4}return c.putImageData(y,0,0),h},_getBrush:function(){var t=this._brushCanvas||(this._brushCanvas=du.createCanvas()),e=this.pointSize+this.blurSize,i=2*e;t.width=i,t.height=i;var n=t.getContext("2d");return n.clearRect(0,0,i,i),n.shadowOffsetX=i,n.shadowBlur=this.blurSize,n.shadowColor="#000",n.beginPath(),n.arc(-e,e,this.pointSize,0,2*Math.PI,!0),n.closePath(),n.fill(),t},_getGradient:function(t,e,i){for(var n=this._gradientPixels,a=n[i]||(n[i]=new Uint8ClampedArray(1024)),r=[0,0,0,0],o=0,s=0;s<256;s++)e[i](s/255,!0,r),a[o++]=r[0],a[o++]=r[1],a[o++]=r[2],a[o++]=r[3];return a}};var HT=no,FT=(C_.extendChartView({type:"heatmap",render:function(t,e,i){var n;e.eachComponent("visualMap",function(e){e.eachTargetSeries(function(i){i===t&&(n=e)})}),this.group.removeAll(),this._incrementalDisplayable=null;var a=t.coordinateSystem;"cartesian2d"===a.type||"calendar"===a.type?this._renderOnCartesianAndCalendar(t,i,0,t.getData().count()):function(t){var e=t.dimensions;return"lng"===e[0]&&"lat"===e[1]}(a)&&this._renderOnGeo(a,t,n,i)},incrementalPrepareRender:function(t,e,i){this.group.removeAll()},incrementalRender:function(t,e,i,n){e.coordinateSystem&&this._renderOnCartesianAndCalendar(e,n,t.start,t.end,!0)},_renderOnCartesianAndCalendar:function(t,e,i,n,a){var r,o,s=t.coordinateSystem;if("cartesian2d"===s.type){var l=s.getAxis("x"),u=s.getAxis("y");r=l.getBandWidth(),o=u.getBandWidth()}for(var h=this.group,c=t.getData(),d=t.getModel("itemStyle").getItemStyle(["color"]),f=t.getModel("emphasis.itemStyle").getItemStyle(),p=t.getModel("label"),g=t.getModel("emphasis.label"),m=s.type,v="cartesian2d"===m?[c.mapDimension("x"),c.mapDimension("y"),c.mapDimension("value")]:[c.mapDimension("time"),c.mapDimension("value")],y=i;y=e[0]&&t<=e[1]}}(y,i.option.range):function(t,e,i){var n=t[1]-t[0],a=(e=du.map(e,function(e){return{interval:[(e.interval[0]-t[0])/n,(e.interval[1]-t[0])/n]}})).length,r=0;return function(t){for(n=r;n=0;n--){var o=e[n].interval;if(o[0]<=t&&t<=o[1]){r=n;break}}return n>=0&&n=e.y&&t[1]<=e.y+e.height:i.contain(i.toLocalCoord(t[1]))&&t[0]>=e.y&&t[0]<=e.y+e.height},pointToData:function(t){var e=this.getAxis();return[e.coordToData(e.toLocalCoord(t["horizontal"===e.orient?0:1]))]},dataToPoint:function(t){var e=this.getAxis(),i=this.getRect(),n=[],a="horizontal"===e.orient?0:1;return t instanceof Array&&(t=t[0]),n[a]=e.toGlobalCoord(e.dataToCoord(+t)),n[1-a]=0===a?i.y+i.height/2:i.x+i.width/2,n}};var eD=bo;vm.register("single",{create:function(t,e){var i=[];return t.eachComponent("singleAxis",function(n,a){var r=new eD(n,t,e);r.name="single_"+a,r.resize(n,e),n.coordinateSystem=r,i.push(r)}),t.eachSeries(function(e){if("singleAxis"===e.get("coordinateSystem")){var i=t.queryComponents({mainType:"singleAxis",index:e.get("singleAxisIndex"),id:e.get("singleAxisId")})[0];e.coordinateSystem=i&&i.coordinateSystem}}),i},dimensions:eD.prototype.dimensions});var iD={layout:function(t,e){e=e||{};var i=t.coordinateSystem,n=t.axis,a={},r=n.position,o=n.orient,s=i.getRect(),l=[s.x,s.x+s.width,s.y,s.y+s.height],u={horizontal:{top:l[2],bottom:l[3]},vertical:{left:l[0],right:l[1]}};a.position=["vertical"===o?u.vertical[r]:l[0],"horizontal"===o?u.horizontal[r]:l[3]],a.rotation=Math.PI/2*{horizontal:0,vertical:1}[o],a.labelDirection=a.tickDirection=a.nameDirection={top:-1,bottom:1,right:1,left:-1}[r],t.get("axisTick.inside")&&(a.tickDirection=-a.tickDirection),du.retrieve(e.labelInside,t.get("axisLabel.inside"))&&(a.labelDirection=-a.labelDirection);var h=e.rotate;return null==h&&(h=t.get("axisLabel.rotate")),a.labelRotation="top"===r?-h:h,a.z2=1,a}},nD=["axisLine","axisTickLabel","axisName"],aD=sw.extend({type:"singleAxis",axisPointerClass:"SingleAxisPointer",render:function(t,e,i,n){var a=this.group;a.removeAll();var r=iD.layout(t),o=new ew(t,r);du.each(nD,o.add,o),a.add(o.getGroup()),t.get("splitLine.show")&&this._splitLine(t),aD.superCall(this,"render",t,e,i,n)},_splitLine:function(t){var e=t.axis;if(!e.scale.isBlank()){var i=t.getModel("splitLine"),n=i.getModel("lineStyle"),a=n.get("width"),r=n.get("color");r=r instanceof Array?r:[r];for(var o=t.coordinateSystem.getRect(),s=e.isHorizontal(),l=[],u=0,h=e.getTicksCoords({tickModel:i}),c=[],d=[],f=0;f=0)&&i({type:"updateAxisPointer",currTrigger:t,x:e&&e.offsetX,y:e&&e.offsetY})})},remove:function(t,e){pD.unregister(e.getZr(),"axisPointer"),gD.superApply(this._model,"remove",arguments)},dispose:function(t,e){pD.unregister("axisPointer",e),gD.superApply(this._model,"dispose",arguments)}}),mD=(0,Wc.makeInner)(),vD=du.clone,yD=du.bind;(Ao.prototype={_group:null,_lastGraphicKey:null,_handle:null,_dragging:!1,_lastValue:null,_lastStatus:null,_payloadInfo:null,animationThreshold:15,render:function(t,e,i,n){var a=e.get("value"),r=e.get("status");if(this._axisModel=t,this._axisPointerModel=e,this._api=i,n||this._lastValue!==a||this._lastStatus!==r){this._lastValue=a,this._lastStatus=r;var o=this._group,s=this._handle;if(!r||"hide"===r)return o&&o.hide(),void(s&&s.hide());o&&o.show(),s&&s.show();var l={};this.makeElOption(l,a,t,e,i);var u=l.graphicKey;u!==this._lastGraphicKey&&this.clear(i),this._lastGraphicKey=u;var h=this._moveAnimation=this.determineAnimation(t,e);if(o){var c=du.curry(To,e,h);this.updatePointerEl(o,l,c,e),this.updateLabelEl(o,l,c,e)}else o=this._group=new Dp.Group,this.createPointerEl(o,l,t,e),this.createLabelEl(o,l,t,e),i.getZr().add(o);Po(o,e,!0),this._renderHandle(a)}},remove:function(t){this.clear(t)},dispose:function(t){this.clear(t)},determineAnimation:function(t,e){var i=e.get("animation"),n=t.axis,a="category"===n.type,r=e.get("snap");if(!r&&!a)return!1;if("auto"===i||null==i){var o=this.animationThreshold;if(a&&n.getBandWidth()>o)return!0;if(r){var s=aw.getAxisInfo(t).seriesDataCount,l=n.getExtent();return Math.abs(l[0]-l[1])/s>o}return!1}return!0===i},makeElOption:function(t,e,i,n,a){},createPointerEl:function(t,e,i,n){var a=e.pointer;if(a){var r=mD(t).pointerEl=new Dp[a.type](vD(e.pointer));t.add(r)}},createLabelEl:function(t,e,i,n){if(e.label){var a=mD(t).labelEl=new Dp.Rect(vD(e.label));t.add(a),Co(a,n)}},updatePointerEl:function(t,e,i){var n=mD(t).pointerEl;n&&(n.setStyle(e.pointer.style),i(n,{shape:e.pointer.shape}))},updateLabelEl:function(t,e,i,n){var a=mD(t).labelEl;a&&(a.setStyle(e.label.style),i(a,{shape:e.label.shape,position:e.label.position}),Co(a,n))},_renderHandle:function(t){if(!this._dragging&&this.updateHandleTransform){var e=this._axisPointerModel,i=this._api.getZr(),n=this._handle,a=e.getModel("handle"),r=e.get("status");if(!a.get("show")||!r||"hide"===r)return n&&i.remove(n),void(this._handle=null);var o;this._handle||(o=!0,n=this._handle=Dp.createIcon(a.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(t){mc.stop(t.event)},onmousedown:yD(this._onHandleDragMove,this,0,0),drift:yD(this._onHandleDragMove,this),ondragend:yD(this._onHandleDragEnd,this)}),i.add(n)),Po(n,e,!1);n.setStyle(a.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var s=a.get("size");du.isArray(s)||(s=[s,s]),n.attr("scale",[s[0]/2,s[1]/2]),Nv.createOrUpdate(this,"_doDispatchAxisPointer",a.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,o)}},_moveHandleToValue:function(t,e){To(this._axisPointerModel,!e&&this._moveAnimation,this._handle,Lo(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},_onHandleDragMove:function(t,e){var i=this._handle;if(i){this._dragging=!0;var n=this.updateHandleTransform(Lo(i),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=n,i.stopAnimation(),i.attr(Lo(n)),mD(i).lastProp=null,this._doDispatchAxisPointer()}},_doDispatchAxisPointer:function(){if(this._handle){var t=this._payloadInfo,e=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:t.cursorPoint[0],y:t.cursorPoint[1],tooltipOption:t.tooltipOption,axesInfo:[{axisDim:e.axis.dim,axisIndex:e.componentIndex}]})}},_onHandleDragEnd:function(t){this._dragging=!1;if(this._handle){var e=this._axisPointerModel.get("value");this._moveHandleToValue(e),this._api.dispatchAction({type:"hideTip"})}},getHandleTransform:null,updateHandleTransform:null,clear:function(t){this._lastValue=null,this._lastStatus=null;var e=t.getZr(),i=this._group,n=this._handle;e&&i&&(this._lastGraphicKey=null,i&&e.remove(i),n&&e.remove(n),this._group=null,this._handle=null,this._payloadInfo=null)},doClear:function(){},buildLabel:function(t,e,i){return i=i||0,{x:t[i],y:t[1-i],width:e[i],height:e[1-i]}}}).constructor=Ao,Yc.enableClassExtend(Ao);var xD=Ao,_D={buildElStyle:function(t){var e,i=t.get("type"),n=t.getModel(i+"Style");return"line"===i?(e=n.getLineStyle()).fill=null:"shadow"===i&&((e=n.getAreaStyle()).stroke=null),e},buildLabelElOption:ko,getValueLabel:Oo,getTransformedPosition:Ro,buildCartesianSingleLabelElOption:function(t,e,i,n,a,r){var o=ew.innerTextLayout(i.rotation,0,i.labelDirection);i.labelMargin=a.get("label.margin"),ko(e,n,a,r,{position:Ro(n.axis,t,i),align:o.textAlign,verticalAlign:o.textVerticalAlign})},makeLineShape:function(t,e,i){return i=i||0,{x1:t[i],y1:t[1-i],x2:e[i],y2:e[1-i]}},makeRectShape:function(t,e,i){return i=i||0,{x:t[i],y:t[1-i],width:e[i],height:e[1-i]}},makeSectorShape:function(t,e,i,n,a,r){return{cx:t,cy:e,r0:i,r:n,startAngle:a,endAngle:r,clockwise:!0}}},bD=xD.extend({makeElOption:function(t,e,i,n,a){var r=i.axis,o=r.grid,s=n.get("type"),l=No(o,r).getOtherAxis(r).getGlobalExtent(),u=r.toGlobalCoord(r.dataToCoord(e,!0));if(s&&"none"!==s){var h=_D.buildElStyle(n),c=wD[s](r,u,l,h);c.style=h,t.graphicKey=c.type,t.pointer=c}var d=lw.layout(o.model,i);_D.buildCartesianSingleLabelElOption(e,t,d,i,n,a)},getHandleTransform:function(t,e,i){var n=lw.layout(e.axis.grid.model,e,{labelInside:!1});return n.labelMargin=i.get("handle.margin"),{position:_D.getTransformedPosition(e.axis,t,n),rotation:n.rotation+(n.labelDirection<0?Math.PI:0)}},updateHandleTransform:function(t,e,i,n){var a=i.axis,r=a.grid,o=a.getGlobalExtent(!0),s=No(r,a).getOtherAxis(a).getGlobalExtent(),l="x"===a.dim?0:1,u=t.position;u[l]+=e[l],u[l]=Math.min(o[1],u[l]),u[l]=Math.max(o[0],u[l]);var h=(s[1]+s[0])/2,c=[h,h];c[l]=u[l];return{position:u,rotation:t.rotation,cursorPoint:c,tooltipOption:[{verticalAlign:"middle"},{align:"center"}][l]}}}),wD={line:function(t,e,i,n){var a=_D.makeLineShape([e,i[0]],[e,i[1]],Eo(t));return Dp.subPixelOptimizeLine({shape:a,style:n}),{type:"Line",shape:a}},shadow:function(t,e,i,n){var a=Math.max(1,t.getBandWidth()),r=i[1]-i[0];return{type:"Rect",shape:_D.makeRectShape([e-a/2,i[0]],[a,r],Eo(t))}}};sw.registerAxisPointerClass("CartesianAxisPointer",bD);C_.registerPreprocessor(function(t){if(t){(!t.axisPointer||0===t.axisPointer.length)&&(t.axisPointer={});var e=t.axisPointer.link;e&&!du.isArray(e)&&(t.axisPointer.link=[e])}}),C_.registerProcessor(C_.PRIORITY.PROCESSOR.STATISTIC,function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=aw.collect(t,e)}),C_.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},cD);var SD=["x","y"],MD=["width","height"],ID=xD.extend({makeElOption:function(t,e,i,n,a){var r=i.axis,o=r.coordinateSystem,s=Vo(o,1-zo(r)),l=o.dataToPoint(e)[0],u=n.get("type");if(u&&"none"!==u){var h=_D.buildElStyle(n),c=AD[u](r,l,s,h);c.style=h,t.graphicKey=c.type,t.pointer=c}var d=iD.layout(i);_D.buildCartesianSingleLabelElOption(e,t,d,i,n,a)},getHandleTransform:function(t,e,i){var n=iD.layout(e,{labelInside:!1});return n.labelMargin=i.get("handle.margin"),{position:_D.getTransformedPosition(e.axis,t,n),rotation:n.rotation+(n.labelDirection<0?Math.PI:0)}},updateHandleTransform:function(t,e,i,n){var a=i.axis,r=a.coordinateSystem,o=zo(a),s=Vo(r,o),l=t.position;l[o]+=e[o],l[o]=Math.min(s[1],l[o]),l[o]=Math.max(s[0],l[o]);var u=Vo(r,1-o),h=(u[1]+u[0])/2,c=[h,h];return c[o]=l[o],{position:l,rotation:t.rotation,cursorPoint:c,tooltipOption:{verticalAlign:"middle"}}}}),AD={line:function(t,e,i,n){var a=_D.makeLineShape([e,i[0]],[e,i[1]],zo(t));return Dp.subPixelOptimizeLine({shape:a,style:n}),{type:"Line",shape:a}},shadow:function(t,e,i,n){var a=t.getBandWidth(),r=i[1]-i[0];return{type:"Rect",shape:_D.makeRectShape([e-a/2,i[0]],[a,r],zo(t))}}};sw.registerAxisPointerClass("SingleAxisPointer",ID);C_.extendComponentView({type:"single"});var TD=py.getDimensionTypeByAxis,DD=qp.encodeHTML,CD=xv.extend({type:"series.themeRiver",dependencies:["singleAxis"],nameMap:null,init:function(t){CD.superApply(this,"init",arguments),this.legendDataProvider=function(){return this.getRawData()}},fixData:function(t){for(var e=t.length,i=zA().key(function(t){return t[2]}).entries(t),n=du.map(i,function(t){return{name:t.key,dataList:t.values}}),a=n.length,r=-1,o=-1,s=0;sr&&(r=l,o=s)}for(var u=0;u1;)e=e.parentNode;var i=t.getAncestors()[0];return du.indexOf(i.children,e)}(t)%o]}(e,0,a),c=o.getModel("itemStyle").getItemStyle();if("normal"===i)u=c;else{var d=o.getModel(i+".itemStyle").getItemStyle();u=du.merge(d,c)}u=du.defaults({lineJoin:"bevel",fill:u.fill||h},u),t?(r.setShape(l),r.shape.r=s.r0,Dp.updateProps(r,{shape:{r:s.r}},n,e.dataIndex),r.useStyle(u)):"object"==typeof u.fill&&u.fill.type||"object"==typeof r.style.fill&&r.style.fill.type?(Dp.updateProps(r,{shape:l},n),r.useStyle(u)):Dp.updateProps(r,{shape:l,style:u},n),this._updateLabel(n,h,i);var f=o.getShallow("cursor");if(f&&r.attr("cursor",f),t){var p=n.getShallow("highlightPolicy");this._initEvents(r,e,n,p)}this._seriesModel=n||this._seriesModel,this._ecModel=a||this._ecModel},GD.onEmphasis=function(t){var e=this;this.node.hostTree.root.eachNode(function(i){i.piece&&(e.node===i?i.piece.updateData(!1,i,"emphasis"):!function(t,e,i){return i!==zD.NONE&&(i===zD.SELF?t===e:i===zD.ANCESTOR?t===e||t.isAncestorOf(e):t===e||t.isDescendantOf(e))}(i,e.node,t)?t!==zD.NONE&&i.piece.childAt(0).trigger("downplay"):i.piece.childAt(0).trigger("highlight"))})},GD.onNormal=function(){this.node.hostTree.root.eachNode(function(t){t.piece&&t.piece.updateData(!1,t,"normal")})},GD.onHighlight=function(){this.updateData(!1,this.node,"highlight")},GD.onDownplay=function(){this.updateData(!1,this.node,"downplay")},GD._updateLabel=function(t,e,i){function n(t){var e=o.get(t);return null==e?r.get(t):e}var a=this.node.getModel(),r=a.getModel("label"),o="normal"===i||"emphasis"===i?r:a.getModel(i+".label"),s=a.getModel("emphasis.label"),l=du.retrieve(t.getFormattedLabel(this.node.dataIndex,"normal",null,null,"label"),this.node.name);!1===n("show")&&(l="");var u=this.node.getLayout(),h=o.get("minAngle");null==h&&(h=r.get("minAngle")),h=h/180*Math.PI;var c=u.endAngle-u.startAngle;null!=h&&Math.abs(c)Math.PI/2?"right":"left"):x&&"center"!==x?"left"===x?(f=u.r0+y,p>Math.PI/2&&(x="right")):"right"===x&&(f=u.r-y,p>Math.PI/2&&(x="left")):(f=(u.r+u.r0)/2,x="center"),d.attr("style",{text:l,textAlign:x,textVerticalAlign:n("verticalAlign")||"middle",opacity:n("opacity")});var _=f*g+u.cx,b=f*m+u.cy;d.attr("position",[_,b]);var w=n("rotate"),S=0;"radial"===w?(S=-p)<-Math.PI/2&&(S+=Math.PI):"tangential"===w?(S=Math.PI/2-p)>Math.PI/2?S-=Math.PI:S<-Math.PI/2&&(S+=Math.PI):"number"==typeof w&&(S=w*Math.PI/180),d.attr("rotation",S)},GD._initEvents=function(t,e,i,n){t.off("mouseover").off("mouseout").off("emphasis").off("normal");var a=this,r=function(){a.onEmphasis(n)},o=function(){a.onNormal()};i.isAnimationEnabled()&&t.on("mouseover",r).on("mouseout",o).on("emphasis",r).on("normal",o).on("downplay",function(){a.onDownplay()}).on("highlight",function(){a.onHighlight()})},du.inherits(Ho,Dp.Group);var HD=Ho,FD=(Pv.extend({type:"sunburst",init:function(){},render:function(t,e,i,n){var a=this;this.seriesModel=t,this.api=i,this.ecModel=e;var r=t.getData(),o=r.tree.root,s=t.getViewRoot(),l=this.group,u=t.get("renderLabelForZeroData"),h=[];s.eachNode(function(t){h.push(t)});var c=this._oldChildren||[];if(function(i,n){function a(t){return t.getId()}function s(a,s){!function(i,n){if(u||!i||i.getValue()||(i=null),i!==o&&n!==o)if(n&&n.piece)i?(n.piece.updateData(!1,i,"normal",t,e),r.setItemGraphicEl(i.dataIndex,n.piece)):function(t){t&&t.piece&&(l.remove(t.piece),t.piece=null)}(n);else if(i){var a=new HD(i,t,e);l.add(a),r.setItemGraphicEl(i.dataIndex,a)}}(null==a?null:i[a],null==s?null:n[s])}0===i.length&&0===n.length||new hy(n,i,a,a).add(s).update(s).remove(du.curry(s,null)).execute()}(h,c),function(i,n){if(n.depth>0){a.virtualPiece?a.virtualPiece.updateData(!1,i,"normal",t,e):(a.virtualPiece=new HD(i,t,e),l.add(a.virtualPiece)),n.piece._onclickEvent&&n.piece.off("click",n.piece._onclickEvent);var r=function(t){a._rootToNode(n.parentNode)};n.piece._onclickEvent=r,a.virtualPiece.on("click",r)}else a.virtualPiece&&(l.remove(a.virtualPiece),a.virtualPiece=null)}(o,s),n&&n.highlight&&n.highlight.piece){var d=t.getShallow("highlightPolicy");n.highlight.piece.onEmphasis(d)}else if(n&&n.unhighlight){var f=this.virtualPiece;!f&&o.children.length&&(f=o.children[0].piece),f&&f.onNormal()}this._initEvents(),this._oldChildren=h},dispose:function(){},_initEvents:function(){var t=this,e=function(e){var i=!1;t.seriesModel.getViewRoot().eachNode(function(n){if(!i&&n.piece&&n.piece.childAt(0)===e.target){var a=n.getModel().get("nodeClick");if("rootToNode"===a)t._rootToNode(n);else if("link"===a){var r=n.getModel(),o=r.get("link");if(o){var s=r.get("target",!0)||"_blank";window.open(o,s)}}i=!0}})};this.group._onclickEvent&&this.group.off("click",this.group._onclickEvent),this.group.on("click",e),this.group._onclickEvent=e},_rootToNode:function(t){t!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:"sunburstRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t})},containPoint:function(t,e){var i=e.getData().getItemLayout(0);if(i){var n=t[0]-i.cx,a=t[1]-i.cy,r=Math.sqrt(n*n+a*a);return r<=i.r&&r>=i.r0}}}),"sunburstRootToNode");C_.registerAction({type:FD,update:"updateView"},function(t,e){e.eachComponent({mainType:"series",subType:"sunburst",query:t},function(e,i){var n=KS.retrieveTargetInfo(t,[FD],e);if(n){var a=e.getViewRoot();a&&(t.direction=KS.aboveViewRoot(a,n.node)?"rollUp":"drillDown"),e.resetViewRoot(n.node)}})});var WD="sunburstHighlight";C_.registerAction({type:WD,update:"updateView"},function(t,e){e.eachComponent({mainType:"series",subType:"sunburst",query:t},function(e,i){var n=KS.retrieveTargetInfo(t,[WD],e);n&&(t.highlight=n.node)})});C_.registerAction({type:"sunburstUnhighlight",update:"updateView"},function(t,e){e.eachComponent({mainType:"series",subType:"sunburst",query:t},function(e,i){t.unhighlight=!0})});var UD=Up.parsePercent,ZD=2*Math.PI,jD=Math.PI/180,YD=function(t,e,i,n){e.eachSeriesByType(t,function(t){var e=t.get("center"),n=t.get("radius");du.isArray(n)||(n=[0,n]),du.isArray(e)||(e=[e,e]);var a=i.getWidth(),r=i.getHeight(),o=Math.min(a,r),s=UD(e[0],a),l=UD(e[1],r),u=UD(n[0],o/2),h=UD(n[1],o/2),c=-t.get("startAngle")*jD,d=t.get("minAngle")*jD,f=t.getData().tree.root,p=t.getViewRoot(),g=p.depth,m=t.get("sort");null!=m&&Fo(p,m);var v=0;du.each(p.children,function(t){!isNaN(t.getValue())&&v++});var y=p.getValue(),x=Math.PI/(y||v)*2,_=p.depth>0,b=p.height-(_?-1:1),w=(h-u)/(b||1),S=t.get("clockwise"),M=t.get("stillShowZeroSum"),I=ZD,A=0,T=S?1:-1,D=function(t,e){if(t){var i=e;if(t!==f){var n=t.getValue(),a=0===y&&M?x:n*x;an[1]&&n.reverse(),{coordSys:{type:"polar",cx:t.cx,cy:t.cy,r:n[1],r0:n[0]},api:{coord:du.bind(function(n){var a=e.dataToRadius(n[0]),r=i.dataToAngle(n[1]),o=t.coordToPoint([a,r]);return o.push(a,r*Math.PI/180),o}),size:du.bind(function(t,e){return du.map(["Radius","Angle"],function(i,n){var a=this["get"+i+"Axis"](),r=e[n],o=t[n]/2,s="dataTo"+i,l="category"===a.type?a.getBandWidth():Math.abs(a[s](r-o)-a[s](r+o));return"Angle"===i&&(l=l*Math.PI/180),l},this)},t)}}},calendar:function(t){var e=t.getRect(),i=t.getRangeInfo();return{coordSys:{type:"calendar",x:e.x,y:e.y,width:e.width,height:e.height,cellWidth:t.getCellWidth(),cellHeight:t.getCellHeight(),rangeInfo:{start:i.start,end:i.end,weeks:i.weeks,dayCount:i.allDay}},api:{coord:function(e,i){return t.dataToPoint(e,i)}}}}};C_.extendSeriesModel({type:"series.custom",dependencies:["grid","polar","geo","singleAxis","calendar"],defaultOption:{coordinateSystem:"cartesian2d",zlevel:0,z:2,legendHoverLink:!0},getInitialData:function(t,e){return Xy(this.getSource(),this)}}),C_.extendChartView({type:"custom",_data:null,render:function(t,e,i){var n=this._data,a=t.getData(),r=this.group,o=Uo(t,a,e,i);this.group.removeAll(),a.diff(n).add(function(e){Zo(null,e,o(e),t,r,a)}).update(function(e,i){Zo(n.getItemGraphicEl(i),e,o(e),t,r,a)}).remove(function(t){var e=n.getItemGraphicEl(t);e&&r.remove(e)}).execute(),this._data=a},incrementalPrepareRender:function(t,e,i){this.group.removeAll(),this._data=null},incrementalRender:function(t,e,i,n){for(var a=e.getData(),r=Uo(e,a,i,n),o=t.start;o=0;l--)null==a[l]?a.splice(l,1):delete a[l].$action},_flatten:function(t,e,i){du.each(t,function(t){if(t){i&&(t.parentOption=i),e.push(t);var n=t.children;"group"===t.type&&n&&this._flatten(n,e,t),delete t.children}},this)},useElOptionsToUpdate:function(){var t=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,t}});C_.extendComponentView({type:"graphic",init:function(t,e){this._elMap=du.createHashMap(),this._lastGraphicModel},render:function(t,e,i){t!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=t,this._updateElements(t,i),this._relocate(t,i)},_updateElements:function(t,e){var i=t.useElOptionsToUpdate();if(i){var n=this._elMap,a=this.group;du.each(i,function(t){var e=t.$action,i=t.id,r=n.get(i),o=t.parentId,s=null!=o?n.get(o):a;if("text"===t.type){var l=t.style;t.hv&&t.hv[1]&&(l.textVerticalAlign=l.textBaseline=null),!l.hasOwnProperty("textFill")&&l.fill&&(l.textFill=l.fill),!l.hasOwnProperty("textStroke")&&l.stroke&&(l.textStroke=l.stroke)}var u=function(t){return t=du.extend({},t),du.each(["id","parentId","$action","hv","bounding"].concat(ng.LOCATION_PARAMS),function(e){delete t[e]}),t}(t);e&&"merge"!==e?"replace"===e?($o(r,n),qo(i,s,u,n)):"remove"===e&&$o(r,n):r?r.attr(u):qo(i,s,u,n);var h=n.get(i);h&&(h.__ecGraphicWidth=t.width,h.__ecGraphicHeight=t.height)})}},_relocate:function(t,e){for(var i=t.option.elements,n=this.group,a=this._elMap,r=i.length-1;r>=0;r--){var o=i[r],s=a.get(o.id);if(s){var l=s.parent,u=l===n?{width:e.getWidth(),height:e.getHeight()}:{width:l.__ecGraphicWidth||0,height:l.__ecGraphicHeight||0};ng.positionElement(s,o,u,null,{hv:o.hv,boundingMode:o.bounding})}}},_clear:function(){var t=this._elMap;t.each(function(e){$o(e,t)}),this._elMap=du.createHashMap()},dispose:function(){this._clear()}});var nC=Wc.isNameSpecified,aC=C_.extendComponentModel({type:"legend.plain",dependencies:["series"],layoutMode:{type:"box",ignoreSize:!0},init:function(t,e,i){this.mergeDefaultAndTheme(t,i),t.selected=t.selected||{}},mergeOption:function(t){aC.superCall(this,"mergeOption",t)},optionUpdated:function(){this._updateData(this.ecModel);var t=this._data;if(t[0]&&"single"===this.get("selectedMode")){for(var e=!1,i=0;i=0},defaultOption:{zlevel:0,z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,inactiveColor:"#ccc",textStyle:{color:"#333"},selectedMode:!0,tooltip:{show:!1}}}),rC=aC;C_.registerAction("legendToggleSelect","legendselectchanged",du.curry(Jo,"toggleSelected")),C_.registerAction("legendSelect","legendselected",du.curry(Jo,"select")),C_.registerAction("legendUnSelect","legendunselected",du.curry(Jo,"unSelect"));var oC=ng.getLayoutRect,sC=ng.box,lC=ng.positionElement,uC={layout:function(t,e,i){var n=e.getBoxLayoutParams(),a=e.get("padding"),r={width:i.getWidth(),height:i.getHeight()},o=oC(n,r,a);sC(e.get("orient"),t,e.get("itemGap"),o.width,o.height),lC(t,n,r,a)},makeBackground:function(t,e){var i=qp.normalizeCssArray(e.get("padding")),n=e.getItemStyle(["color","opacity"]);return n.fill=e.get("backgroundColor"),t=new Dp.Rect({shape:{x:t.x-i[3],y:t.y-i[0],width:t.width+i[1]+i[3],height:t.height+i[0]+i[2],r:e.get("borderRadius")},style:n,silent:!0,z2:-1})}},hC=Fx.createSymbol,cC=uC.makeBackground,dC=du.curry,fC=du.each,pC=Dp.Group,gC=C_.extendComponentView({type:"legend.plain",newlineDisabled:!1,init:function(){this.group.add(this._contentGroup=new pC),this._backgroundEl},getContentGroup:function(){return this._contentGroup},render:function(t,e,i){if(this.resetInner(),t.get("show",!0)){var n=t.get("align");n&&"auto"!==n||(n="right"===t.get("left")&&"vertical"===t.get("orient")?"right":"left"),this.renderInner(n,t,e,i);var a=t.getBoxLayoutParams(),r={width:i.getWidth(),height:i.getHeight()},o=t.get("padding"),s=ng.getLayoutRect(a,r,o),l=this.layoutInner(t,n,s),u=ng.getLayoutRect(du.defaults({width:l.width,height:l.height},a),r,o);this.group.attr("position",[u.x-l.x,u.y-l.y]),this.group.add(this._backgroundEl=cC(l,t))}},resetInner:function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl)},renderInner:function(t,e,i,n){var a=this.getContentGroup(),r=du.createHashMap(),o=e.get("selectedMode"),s=[];i.eachRawSeries(function(t){!t.get("legendHoverLink")&&s.push(t.id)}),fC(e.getData(),function(l,u){var h=l.get("name");if(this.newlineDisabled||""!==h&&"\n"!==h){var c=i.getSeriesByName(h)[0];if(!r.get(h))if(c){var d=c.getData(),f=d.getVisual("color");"function"==typeof f&&(f=f(c.getDataParams(0)));var p=d.getVisual("legendSymbol")||"roundRect",g=d.getVisual("symbol");this._createItem(h,u,l,e,p,g,t,f,o).on("click",dC(Qo,h,n)).on("mouseover",dC(ts,c,null,n,s)).on("mouseout",dC(es,c,null,n,s)),r.set(h,!0)}else i.eachRawSeries(function(i){if(!r.get(h)&&i.legendDataProvider){var a=i.legendDataProvider(),c=a.indexOfName(h);if(c<0)return;var d=a.getItemVisual(c,"color");this._createItem(h,u,l,e,"roundRect",null,t,d,o).on("click",dC(Qo,h,n)).on("mouseover",dC(ts,i,h,n,s)).on("mouseout",dC(es,i,h,n,s)),r.set(h,!0)}},this)}else a.add(new pC({newline:!0}))},this)},_createItem:function(t,e,i,n,a,r,o,s,l){var u=n.get("itemWidth"),h=n.get("itemHeight"),c=n.get("inactiveColor"),d=n.get("symbolKeepAspect"),f=n.isSelected(t),p=new pC,g=i.getModel("textStyle"),m=i.get("icon"),v=i.getModel("tooltip"),y=v.parentModel;if(a=m||a,p.add(hC(a,0,0,u,h,f?s:c,null==d||d)),!m&&r&&(r!==a||"none"==r)){var x=.8*h;"none"===r&&(r="circle"),p.add(hC(r,(u-x)/2,(h-x)/2,x,x,f?s:c,null==d||d))}var _="left"===o?u+5:-5,b=o,w=n.get("formatter"),S=t;"string"==typeof w&&w?S=w.replace("{name}",null!=t?t:""):"function"==typeof w&&(S=w(t)),p.add(new Dp.Text({style:Dp.setTextStyle({},g,{text:S,x:_,y:h/2,textFill:f?g.getTextColor():c,textAlign:b,textVerticalAlign:"middle"})}));var M=new Dp.Rect({shape:p.getBoundingRect(),invisible:!0,tooltip:v.get("show")?du.extend({content:t,formatter:y.get("formatter",!0)||function(){return t},formatterParams:{componentType:"legend",legendIndex:n.componentIndex,name:t,$vars:["name"]}},v.option):null});return p.add(M),p.eachChild(function(t){t.silent=!0}),M.silent=!l,this.getContentGroup().add(p),Dp.setHoverStyle(p),p.__legendDataIndex=e,p},layoutInner:function(t,e,i){var n=this.getContentGroup();ng.box(t.get("orient"),n,t.get("itemGap"),i.width,i.height);var a=n.getBoundingRect();return n.attr("position",[-a.x,-a.y]),this.group.getBoundingRect()}}),mC=function(t){var e=t.findComponents({mainType:"legend"});e&&e.length&&t.filterSeries(function(t){for(var i=0;ii[s],f=[-h.x,-h.y];f[o]=n.position[o];var p=[0,0],g=[-c.x,-c.y],m=du.retrieve2(t.get("pageButtonGap",!0),t.get("itemGap",!0));if(d){"end"===t.get("pageButtonPosition",!0)?g[o]+=i[s]-c[s]:p[o]+=c[s]+m}g[1-o]+=h[l]/2-c[l]/2,n.attr("position",f),a.attr("position",p),r.attr("position",g);var v=this.group.getBoundingRect();if((v={x:0,y:0})[s]=d?i[s]:h[s],v[l]=Math.max(h[l],c[l]),v[u]=Math.min(0,c[u]+g[1-o]),a.__rectSize=i[s],d){var y={x:0,y:0};y[s]=Math.max(i[s]-c[s]-m,0),y[l]=v[l],a.setClipPath(new Dp.Rect({shape:y})),a.__rectSize=y[s]}else r.eachChild(function(t){t.attr({invisible:!0,silent:!0})});var x=this._getPageInfo(t);return null!=x.pageIndex&&Dp.updateProps(n,{position:x.contentPosition},!!d&&t),this._updatePageInfoView(t,x),v},_pageGo:function(t,e,i){var n=this._getPageInfo(e)[t];null!=n&&i.dispatchAction({type:"legendScroll",scrollDataIndex:n,legendId:e.id})},_updatePageInfoView:function(t,e){var i=this._controllerGroup;du.each(["pagePrev","pageNext"],function(n){var a=null!=e[n+"DataIndex"],r=i.childOfName(n);r&&(r.setStyle("fill",a?t.get("pageIconColor",!0):t.get("pageIconInactiveColor",!0)),r.cursor=a?"pointer":"default")});var n=i.childOfName("pageText"),a=t.get("pageFormatter"),r=e.pageIndex,o=null!=r?r+1:0,s=e.pageCount;n&&a&&n.setStyle("text",du.isString(a)?a.replace("{current}",o).replace("{total}",s):a({current:o,total:s}))},_getPageInfo:function(t){function e(t){var e=t.getBoundingRect().clone();return e[f]+=t.position[h],e}var i,n,a,r,o=t.get("scrollDataIndex",!0),s=this.getContentGroup(),l=s.getBoundingRect(),u=this._containerGroup.__rectSize,h=t.getOrient().index,c=bC[h],d=bC[1-h],f=wC[h],p=s.position.slice();this._showController?s.eachChild(function(t){t.__legendDataIndex===o&&(r=t)}):r=s.childAt(0);var g=u?Math.ceil(l[c]/u):0;if(r){var m=r.getBoundingRect(),v=r.position[h]+m[f];p[h]=-v-l[f],i=Math.floor(g*(v+m[f]+u/2)/l[c]),i=l[c]&&g?Math.max(0,Math.min(g-1,i)):-1;var y={x:0,y:0};y[c]=u,y[d]=l[d],y[f]=-p[h]-l[f];var x,_=s.children();if(s.eachChild(function(t,i){var n=e(t);n.intersect(y)&&(null==x&&(x=i),a=t.__legendDataIndex),i===_.length-1&&n[f]+n[c]<=y[f]+y[c]&&(a=null)}),null!=x){var b=e(_[x]);if(y[f]=b[f]+b[c]-y[c],x<=0&&b[f]>=y[f])n=null;else{for(;x>0&&e(_[x-1]).intersect(y);)x--;n=_[x].__legendDataIndex}}}return{contentPosition:p,pageIndex:i,pageCount:g,pagePrevDataIndex:n,pageNextDataIndex:a}}});C_.registerAction("legendScroll","legendscroll",function(t,e){var i=t.scrollDataIndex;null!=i&&e.eachComponent({mainType:"legend",subType:"scroll",query:t},function(t){t.setScrollDataIndex(i)})});C_.extendComponentModel({type:"tooltip",dependencies:["axisPointer"],defaultOption:{zlevel:0,z:8,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",confine:!1,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"rgba(50,50,50,0.7)",borderColor:"#333",borderRadius:4,borderWidth:0,padding:5,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#fff",fontSize:14}}});var MC=du.each,IC=qp.toCamelCase,AC=["","-webkit-","-moz-","-o-"];ns.prototype={constructor:ns,_enterable:!0,update:function(){var t=this._container,e=t.currentStyle||document.defaultView.getComputedStyle(t),i=t.style;"absolute"!==i.position&&"absolute"!==e.position&&(i.position="relative")},show:function(t){clearTimeout(this._hideTimeout);var e=this.el;e.style.cssText="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+function(t){var e=[],i=t.get("transitionDuration"),n=t.get("backgroundColor"),a=t.getModel("textStyle"),r=t.get("padding");return i&&e.push(function(t){var e="left "+t+"s cubic-bezier(0.23, 1, 0.32, 1),top "+t+"s cubic-bezier(0.23, 1, 0.32, 1)";return du.map(AC,function(t){return t+"transition:"+e}).join(";")}(i)),n&&(Jl.canvasSupported?e.push("background-Color:"+n):(e.push("background-Color:#"+Wu.toHex(n)),e.push("filter:alpha(opacity=70)"))),MC(["width","color","radius"],function(i){var n="border-"+i,a=IC(n),r=t.get(a);null!=r&&e.push(n+":"+r+("color"===i?"":"px"))}),e.push(function(t){var e=[],i=t.get("fontSize"),n=t.getTextColor();return n&&e.push("color:"+n),e.push("font:"+t.getFont()),i&&e.push("line-height:"+Math.round(3*i/2)+"px"),MC(["decoration","align"],function(i){var n=t.get(i);n&&e.push("text-"+i+":"+n)}),e.join(";")}(a)),null!=r&&e.push("padding:"+qp.normalizeCssArray(r).join("px ")+"px"),e.join(";")+";"}(t)+";left:"+this._x+"px;top:"+this._y+"px;"+(t.get("extraCssText")||""),e.style.display=e.innerHTML?"block":"none",this._show=!0},setContent:function(t){this.el.innerHTML=null==t?"":t},setEnterable:function(t){this._enterable=t},getSize:function(){var t=this.el;return[t.clientWidth,t.clientHeight]},moveTo:function(t,e){var i,n=this._zr;n&&n.painter&&(i=n.painter.getViewportRootOffset())&&(t+=i.offsetLeft,e+=i.offsetTop);var a=this.el.style;a.left=t+"px",a.top=e+"px",this._x=t,this._y=e},hide:function(){this.el.style.display="none",this._show=!1},hideLater:function(t){!this._show||this._inContent&&this._enterable||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(du.bind(this.hide,this),t)):this.hide())},isShow:function(){return this._show}};var TC=ns,DC=du.bind,CC=du.each,LC=Up.parsePercent,PC=new Dp.Rect({shape:{x:-1,y:-1,width:2,height:2}});C_.extendComponentView({type:"tooltip",init:function(t,e){if(!Jl.node){var i=new TC(e.getDom(),e);this._tooltipContent=i}},render:function(t,e,i){if(!Jl.node&&!Jl.wxa){this.group.removeAll(),this._tooltipModel=t,this._ecModel=e,this._api=i,this._lastDataByCoordSys=null,this._alwaysShowContent=t.get("alwaysShowContent");var n=this._tooltipContent;n.update(),n.setEnterable(t.get("enterable")),this._initGlobalListener(),this._keepShow()}},_initGlobalListener:function(){var t=this._tooltipModel.get("triggerOn");pD.register("itemTooltip",this._api,DC(function(e,i,n){"none"!==t&&(t.indexOf(e)>=0?this._tryShow(i,n):"leave"===e&&this._hide(n))},this))},_keepShow:function(){var t=this._tooltipModel,e=this._ecModel,i=this._api;if(null!=this._lastX&&null!=this._lastY&&"none"!==t.get("triggerOn")){var n=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){n.manuallyShowTip(t,e,i,{x:n._lastX,y:n._lastY})})}},manuallyShowTip:function(t,e,i,n){if(n.from!==this.uid&&!Jl.node){var a=rs(n,i);this._ticket="";var r=n.dataByCoordSys;if(n.tooltip&&null!=n.x&&null!=n.y){var o=PC;o.position=[n.x,n.y],o.update(),o.tooltip=n.tooltip,this._tryShow({offsetX:n.x,offsetY:n.y,target:o},a)}else if(r)this._tryShow({offsetX:n.x,offsetY:n.y,position:n.position,event:{},dataByCoordSys:n.dataByCoordSys,tooltipOption:n.tooltipOption},a);else if(null!=n.seriesIndex){if(this._manuallyAxisShowTip(t,e,i,n))return;var s=oD(n,e),l=s.point[0],u=s.point[1];null!=l&&null!=u&&this._tryShow({offsetX:l,offsetY:u,position:n.position,target:s.el,event:{}},a)}else null!=n.x&&null!=n.y&&(i.dispatchAction({type:"updateAxisPointer",x:n.x,y:n.y}),this._tryShow({offsetX:n.x,offsetY:n.y,position:n.position,target:i.getZr().findHover(n.x,n.y).target,event:{}},a))}},manuallyHideTip:function(t,e,i,n){var a=this._tooltipContent;!this._alwaysShowContent&&this._tooltipModel&&a.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=null,n.from!==this.uid&&this._hide(rs(n,i))},_manuallyAxisShowTip:function(t,e,i,n){var a=n.seriesIndex,r=n.dataIndex,o=e.getComponent("axisPointer").coordSysAxesInfo;if(null!=a&&null!=r&&null!=o){var s=e.getSeriesByIndex(a);if(s){if("axis"===(t=as([s.getData().getItemModel(r),s,(s.coordinateSystem||{}).model,t])).get("trigger"))return i.dispatchAction({type:"updateAxisPointer",seriesIndex:a,dataIndex:r,position:n.position}),!0}}},_tryShow:function(t,e){var i=t.target;if(this._tooltipModel){this._lastX=t.offsetX,this._lastY=t.offsetY;var n=t.dataByCoordSys;n&&n.length?this._showAxisTooltip(n,t):i&&null!=i.dataIndex?(this._lastDataByCoordSys=null,this._showSeriesItemTooltip(t,i,e)):i&&i.tooltip?(this._lastDataByCoordSys=null,this._showComponentItemTooltip(t,i,e)):(this._lastDataByCoordSys=null,this._hide(e))}},_showOrMove:function(t,e){var i=t.get("showDelay");e=du.bind(e,this),clearTimeout(this._showTimout),i>0?this._showTimout=setTimeout(e,i):e()},_showAxisTooltip:function(t,e){var i=this._ecModel,n=this._tooltipModel,a=[e.offsetX,e.offsetY],r=[],o=[],s=as([e.tooltipOption,n]);CC(t,function(t){CC(t.dataByAxis,function(t){var e=i.getComponent(t.axisDim+"Axis",t.axisIndex),n=t.value,a=[];if(e&&null!=n){var s=_D.getValueLabel(n,e.axis,i,t.seriesDataIndices,t.valueLabelOpt);du.each(t.seriesDataIndices,function(r){var l=i.getSeriesByIndex(r.seriesIndex),u=r.dataIndexInside,h=l&&l.getDataParams(u);h.axisDim=t.axisDim,h.axisIndex=t.axisIndex,h.axisType=t.axisType,h.axisId=t.axisId,h.axisValue=kx.getAxisRawValue(e.axis,n),h.axisValueLabel=s,h&&(o.push(h),a.push(l.formatTooltip(u,!0)))});var l=s;r.push((l?qp.encodeHTML(l)+"
":"")+a.join("
"))}})},this),r.reverse(),r=r.join("

");var l=e.position;this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(t)?this._updatePosition(s,l,a[0],a[1],this._tooltipContent,o):this._showTooltipContent(s,r,o,Math.random(),a[0],a[1],l)})},_showSeriesItemTooltip:function(t,e,i){var n=this._ecModel,a=e.seriesIndex,r=n.getSeriesByIndex(a),o=e.dataModel||r,s=e.dataIndex,l=e.dataType,u=o.getData(),h=as([u.getItemModel(s),o,r&&(r.coordinateSystem||{}).model,this._tooltipModel]),c=h.get("trigger");if(null==c||"item"===c){var d=o.getDataParams(s,l),f=o.formatTooltip(s,!1,l),p="item_"+o.name+"_"+s;this._showOrMove(h,function(){this._showTooltipContent(h,f,d,p,t.offsetX,t.offsetY,t.position,t.target)}),i({type:"showTip",dataIndexInside:s,dataIndex:u.getRawIndex(s),seriesIndex:a,from:this.uid})}},_showComponentItemTooltip:function(t,e,i){var n=e.tooltip;if("string"==typeof n){var a=n;n={content:a,formatter:a}}var r=new Vp(n,this._tooltipModel,this._ecModel),o=r.get("content"),s=Math.random();this._showOrMove(r,function(){this._showTooltipContent(r,o,r.get("formatterParams")||{},s,t.offsetX,t.offsetY,t.position,e)}),i({type:"showTip",from:this.uid})},_showTooltipContent:function(t,e,i,n,a,r,o,s){if(this._ticket="",t.get("showContent")&&t.get("show")){var l=this._tooltipContent,u=t.get("formatter");o=o||t.get("position");var h=e;if(u&&"string"==typeof u)h=qp.formatTpl(u,i,!0);else if("function"==typeof u){var c=DC(function(e,n){e===this._ticket&&(l.setContent(n),this._updatePosition(t,o,a,r,l,i,s))},this);this._ticket=n,h=u(i,n,c)}l.setContent(h),l.show(t),this._updatePosition(t,o,a,r,l,i,s)}},_updatePosition:function(t,e,i,n,a,r,o){var s=this._api.getWidth(),l=this._api.getHeight();e=e||t.get("position");var u=a.getSize(),h=t.get("align"),c=t.get("verticalAlign"),d=o&&o.getBoundingRect().clone();if(o&&d.applyTransform(o.transform),"function"==typeof e&&(e=e([i,n],r,a.el,d,{viewSize:[s,l],contentSize:u.slice()})),du.isArray(e))i=LC(e[0],s),n=LC(e[1],l);else if(du.isObject(e)){e.width=u[0],e.height=u[1];var f=ng.getLayoutRect(e,{width:s,height:l});i=f.x,n=f.y,h=null,c=null}else if("string"==typeof e&&o){p=function(t,e,i){var n=i[0],a=i[1],r=0,o=0,s=e.width,l=e.height;switch(t){case"inside":r=e.x+s/2-n/2,o=e.y+l/2-a/2;break;case"top":r=e.x+s/2-n/2,o=e.y-a-5;break;case"bottom":r=e.x+s/2-n/2,o=e.y+l+5;break;case"left":r=e.x-n-5,o=e.y+l/2-a/2;break;case"right":r=e.x+s+5,o=e.y+l/2-a/2}return[r,o]}(e,d,u);i=p[0],n=p[1]}else{p=function(t,e,i,n,a,r,o){var s=os(i),l=s.width,u=s.height;return null!=r&&(t+l+r>n?t-=l+r:t+=r),null!=o&&(e+u+o>a?e-=u+o:e+=o),[t,e]}(i,n,a.el,s,l,h?null:20,c?null:20);i=p[0],n=p[1]}if(h&&(i-=ss(h)?u[0]/2:"right"===h?u[0]:0),c&&(n-=ss(c)?u[1]/2:"bottom"===c?u[1]:0),t.get("confine")){var p=function(t,e,i,n,a){var r=os(i),o=r.width,s=r.height;return t=Math.min(t+o,n)-o,e=Math.min(e+s,a)-s,t=Math.max(t,0),e=Math.max(e,0),[t,e]}(i,n,a.el,s,l);i=p[0],n=p[1]}a.moveTo(i,n)},_updateContentNotChangedOnAxis:function(t){var e=this._lastDataByCoordSys,i=!!e&&e.length===t.length;return i&&CC(e,function(e,n){var a=e.dataByAxis||{},r=(t[n]||{}).dataByAxis||[];(i&=a.length===r.length)&&CC(a,function(t,e){var n=r[e]||{},a=t.seriesDataIndices||[],o=n.seriesDataIndices||[];(i&=t.value===n.value&&t.axisType===n.axisType&&t.axisId===n.axisId&&a.length===o.length)&&CC(a,function(t,e){var n=o[e];i&=t.seriesIndex===n.seriesIndex&&t.dataIndex===n.dataIndex})})}),this._lastDataByCoordSys=t,!!i},_hide:function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},dispose:function(t,e){Jl.node||Jl.wxa||(this._tooltipContent.hide(),pD.unregister("itemTooltip",e))}});C_.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},function(){}),C_.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},function(){});var kC=Up.parsePercent,OC=Fy.isDimensionStacked,RC=function(t,e,i){var n=i.getWidth(),a=i.getHeight(),r={},o=function(t,e){var i={};du.each(t,function(t,e){var n=t.getData(),a=t.coordinateSystem.getBaseAxis(),r=a.getExtent(),o="category"===a.type?a.getBandWidth():Math.abs(r[1]-r[0])/n.count(),s=i[us(a)]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},l=s.stacks;i[us(a)]=s;var u=ls(t);l[u]||s.autoWidthCount++,l[u]=l[u]||{width:0,maxWidth:0};var h=kC(t.get("barWidth"),o),c=kC(t.get("barMaxWidth"),o),d=t.get("barGap"),f=t.get("barCategoryGap");h&&!l[u].width&&(h=Math.min(s.remainedWidth,h),l[u].width=h,s.remainedWidth-=h),c&&(l[u].maxWidth=c),null!=d&&(s.gap=d),null!=f&&(s.categoryGap=f)});var n={};return du.each(i,function(t,e){n[e]={};var i=t.stacks,a=t.bandWidth,r=kC(t.categoryGap,a),o=kC(t.gap,1),s=t.remainedWidth,l=t.autoWidthCount,u=(s-r)/(l+(l-1)*o);u=Math.max(u,0),du.each(i,function(t,e){var i=t.maxWidth;i&&i=0?"p":"n",T=b;_&&(r[l][I]||(r[l][I]={p:b,n:b}),T=r[l][I][A]);var D,C,L,P;if("radius"===d.dim){var k=d.dataToRadius(M)-b,O=s.dataToAngle(I);Math.abs(k)o;)l+=360*u;return[s,l]},coordToPoint:function(t){var e=t[0],i=t[1]/180*Math.PI;return[Math.cos(i)*e+this.cx,-Math.sin(i)*e+this.cy]}};var VC=zC,BC=ug.extend({type:"polarAxis",axis:null,getCoordSysModel:function(){return this.ecModel.queryComponents({mainType:"polar",index:this.option.polarIndex,id:this.option.polarId})[0]}});du.merge(BC.prototype,Ox);var GC={angle:{startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:!1}},radius:{splitNumber:5}};Db("angle",BC,ds,GC.angle),Db("radius",BC,ds,GC.radius);C_.extendComponentModel({type:"polar",dependencies:["polarAxis","angleAxis"],coordinateSystem:null,findAxisModel:function(t){var e;return this.ecModel.eachComponent(t,function(t){t.getCoordSysModel()===this&&(e=t)},this),e},defaultOption:{zlevel:0,z:0,center:["50%","50%"],radius:"80%"}});var HC=Up.parsePercent,FC=kx.createScaleByModel,WC=kx.niceScaleExtent,UC=Fy.getStackedDimension,ZC={dimensions:VC.prototype.dimensions,create:function(t,e){var i=[];return t.eachComponent("polar",function(t,n){var a=new VC(n);a.update=function(t,e){var i=this,n=i.getAngleAxis(),a=i.getRadiusAxis();if(n.scale.setExtent(1/0,-1/0),a.scale.setExtent(1/0,-1/0),t.eachSeries(function(t){if(t.coordinateSystem===i){var e=t.getData();du.each(e.mapDimension("radius",!0),function(t){a.scale.unionExtentFromData(e,UC(e,t))}),du.each(e.mapDimension("angle",!0),function(t){n.scale.unionExtentFromData(e,UC(e,t))})}}),WC(n.scale,n.model),WC(a.scale,a.model),"category"===n.type&&!n.onBand){var r=n.getExtent(),o=360/n.scale.count();n.inverse?r[1]+=o:r[1]-=o,n.setExtent(r[0],r[1])}};var r=a.getRadiusAxis(),o=a.getAngleAxis(),s=t.findAxisModel("radiusAxis"),l=t.findAxisModel("angleAxis");fs(r,s),fs(o,l),function(t,e,i){var n=e.get("center"),a=i.getWidth(),r=i.getHeight();t.cx=HC(n[0],a),t.cy=HC(n[1],r);var o=t.getRadiusAxis(),s=Math.min(a,r)/2,l=HC(e.get("radius"),s);o.inverse?o.setExtent(l,0):o.setExtent(0,l)}(a,t,e),i.push(a),t.coordinateSystem=a,a.model=t}),t.eachSeries(function(e){if("polar"===e.get("coordinateSystem")){var i=t.queryComponents({mainType:"polar",index:e.get("polarIndex"),id:e.get("polarId")})[0];e.coordinateSystem=i.coordinateSystem}}),i}};vm.register("polar",ZC);var jC=["axisLine","axisLabel","axisTick","splitLine","splitArea"],YC=(sw.extend({type:"angleAxis",axisPointerClass:"PolarAxisPointer",render:function(t,e){if(this.group.removeAll(),t.get("show")){var i=t.axis,n=i.polar,a=n.getRadiusAxis().getExtent(),r=i.getTicksCoords(),o=du.map(i.getViewLabels(),function(t){return(t=du.clone(t)).coord=i.dataToCoord(t.tickValue),t});ms(o),ms(r),du.each(jC,function(e){!t.get(e+".show")||i.scale.isBlank()&&"axisLine"!==e||this["_"+e](t,n,r,a,o)},this)}},_axisLine:function(t,e,i,n){var a=t.getModel("axisLine.lineStyle"),r=new Dp.Circle({shape:{cx:e.cx,cy:e.cy,r:n[gs(e)]},style:a.getLineStyle(),z2:1,silent:!0});r.style.fill=null,this.group.add(r)},_axisTick:function(t,e,i,n){var a=t.getModel("axisTick"),r=(a.get("inside")?-1:1)*a.get("length"),o=n[gs(e)],s=du.map(i,function(t){return new Dp.Line({shape:ps(e,[o,o+r],t.coord)})});this.group.add(Dp.mergePath(s,{style:du.defaults(a.getModel("lineStyle").getLineStyle(),{stroke:t.get("axisLine.lineStyle.color")})}))},_axisLabel:function(t,e,i,n,a){var r=t.getCategories(!0),o=t.getModel("axisLabel"),s=o.get("margin");du.each(a,function(i,a){var l=o,u=i.tickValue,h=n[gs(e)],c=e.coordToPoint([h+s,i.coord]),d=e.cx,f=e.cy,p=Math.abs(c[0]-d)/h<.3?"center":c[0]>d?"left":"right",g=Math.abs(c[1]-f)/h<.3?"middle":c[1]>f?"top":"bottom";r&&r[u]&&r[u].textStyle&&(l=new Vp(r[u].textStyle,o,o.ecModel));var m=new Dp.Text({silent:!0});this.group.add(m),Dp.setTextStyle(m.style,l,{x:c[0],y:c[1],textFill:l.getTextColor()||t.get("axisLine.lineStyle.color"),text:i.formattedLabel,textAlign:p,textVerticalAlign:g})},this)},_splitLine:function(t,e,i,n){var a=t.getModel("splitLine").getModel("lineStyle"),r=a.get("color"),o=0;r=r instanceof Array?r:[r];for(var s=[],l=0;lm?"left":"right",h=Math.abs(l[1]-v)/g<.3?"middle":l[1]>v?"top":"bottom"}return{position:l,align:u,verticalAlign:h}}(e,i,0,s,n.get("label.margin"));_D.buildLabelElOption(t,i,n,a,d)}})),$C={line:function(t,e,i,n,a){return"angle"===t.dim?{type:"Line",shape:_D.makeLineShape(e.coordToPoint([n[0],i]),e.coordToPoint([n[1],i]))}:{type:"Circle",shape:{cx:e.cx,cy:e.cy,r:i}}},shadow:function(t,e,i,n,a){var r=Math.max(1,t.getBandWidth()),o=Math.PI/180;return"angle"===t.dim?{type:"Sector",shape:_D.makeSectorShape(e.cx,e.cy,n[0],n[1],(-i-r/2)*o,(r/2-i)*o)}:{type:"Sector",shape:_D.makeSectorShape(e.cx,e.cy,i-r/2,i+r/2,0,2*Math.PI)}}};sw.registerAxisPointerClass("PolarAxisPointer",qC);C_.registerLayout(du.curry(RC,"bar")),C_.extendComponentView({type:"polar"});var KC=ug.extend({type:"geo",coordinateSystem:null,layoutMode:"box",init:function(t){ug.prototype.init.apply(this,arguments),Wc.defaultEmphasis(t,"label",["show"])},optionUpdated:function(){var t=this.option,e=this;t.regions=fS.getFilledRegions(t.regions,t.map,t.nameMap),this._optionModelMap=du.reduce(t.regions||[],function(t,i){return i.name&&t.set(i.name,new Vp(i,e)),t},du.createHashMap()),this.updateSelectedMap(t.regions)},defaultOption:{zlevel:0,z:0,show:!0,left:"center",top:"center",aspectScale:.75,silent:!1,map:"",boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",color:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},regions:[]},getRegionModel:function(t){return this._optionModelMap.get(t)||new Vp(null,this,this.ecModel)},getFormattedLabel:function(t,e){var i=this.getRegionModel(t).get("label."+e+".formatter"),n={name:t};return"function"==typeof i?(n.status=e,i(n)):"string"==typeof i?i.replace("{a}",null!=t?t:""):void 0},setZoom:function(t){this.option.zoom=t},setCenter:function(t){this.option.center=t}});du.mixin(KC,Tw);C_.extendComponentView({type:"geo",init:function(t,e){var i=new IS(e,!0);this._mapDraw=i,this.group.add(i.group)},render:function(t,e,i,n){if(!n||"geoToggleSelect"!==n.type||n.from!==this.uid){var a=this._mapDraw;t.get("show")?a.draw(t,e,i,this,n):this._mapDraw.group.removeAll(),this.group.silent=t.get("silent")}},dispose:function(){this._mapDraw&&this._mapDraw.remove()}});vs("toggleSelected",{type:"geoToggleSelect",event:"geoselectchanged"}),vs("select",{type:"geoSelect",event:"geoselected"}),vs("unSelect",{type:"geoUnSelect",event:"geounselected"});var JC=["rect","polygon","keep","clear"],QC=function(t,e){var i=t&&t.brush;if(du.isArray(i)||(i=i?[i]:[]),i.length){var n=[];du.each(i,function(t){var e=t.hasOwnProperty("toolbox")?t.toolbox:[];e instanceof Array&&(n=n.concat(e))});var a=t&&t.toolbox;du.isArray(a)&&(a=a[0]),a||(a={feature:{}},t.toolbox=[a]);var r=a.feature||(a.feature={}),o=r.brush||(r.brush={}),s=o.type||(o.type=[]);s.push.apply(s,n),function(t){var e={};du.each(t,function(t){e[t]=1}),t.length=0,du.each(e,function(e,i){t.push(i)})}(s),e&&!s.length&&s.push.apply(s,JC)}},tL=du.each,eL={createVisualMappings:function(t,e,i){var n={};return tL(e,function(e){var a=n[e]=function(){var t=function(){};return t.prototype.__hidden=t.prototype,new t}();tL(t[e],function(t,n){if(TM.isValidType(n)){var r={type:n,visual:t};i&&i(r,e),a[n]=new TM(r),"opacity"===n&&((r=du.clone(r)).type="colorAlpha",a.__hidden.__alphaForOpacity=new TM(r))}})}),n},replaceVisualOption:function(t,e,i){var n;du.each(i,function(t){e.hasOwnProperty(t)&&ys(e[t])&&(n=!0)}),n&&du.each(i,function(i){e.hasOwnProperty(i)&&ys(e[i])?t[i]=du.clone(e[i]):delete t[i]})},applyVisual:function(t,e,i,n,a,r){function o(t,o){l=null==r?t:o;var u=i.getRawDataItem(l);if(!u||!1!==u.visualMap)for(var h=n.call(a,t),c=e[h],d=s[h],f=0,p=d.length;f=0},lL.findTargetInfo=function(t,e){for(var i=this._targetInfoList,n=Is(e,t),a=0;a=0||aL(n,t.getAxis("y").model)>=0)&&r.push(t)}),e.push({panelId:"grid--"+t.id,gridModel:t,coordSysModel:t,coordSys:r[0],coordSyses:r,getPanelRect:cL.grid,xAxisDeclared:o[t.id],yAxisDeclared:s[t.id]})}))},geo:function(t,e){nL(t.geoModels,function(t){var i=t.coordinateSystem;e.push({panelId:"geo--"+t.id,geoModel:t,coordSysModel:t,coordSys:i,coordSyses:[i],getPanelRect:cL.geo})})}},hL=[function(t,e){var i=t.xAxisModel,n=t.yAxisModel,a=t.gridModel;return!a&&i&&(a=i.axis.grid.model),!a&&n&&(a=n.axis.grid.model),a&&a===e.gridModel},function(t,e){var i=t.geoModel;return i&&i===e.geoModel}],cL={grid:function(){return this.coordSys.grid.getRect().clone()},geo:function(){var t=this.coordSys,e=t.getBoundingRect().clone();return e.applyTransform(Dp.getTransform(t)),e}},dL={lineX:rL(As,0),lineY:rL(As,1),rect:function(t,e,i){var n=e[oL[t]]([i[0][0],i[1][0]]),a=e[oL[t]]([i[0][1],i[1][1]]),r=[Ms([n[0],a[0]]),Ms([n[1],a[1]])];return{values:r,xyMinMax:r}},polygon:function(t,e,i){var n=[[1/0,-1/0],[1/0,-1/0]];return{values:du.map(i,function(i){var a=e[oL[t]](i);return n[0][0]=Math.min(n[0][0],a[0]),n[1][0]=Math.min(n[1][0],a[1]),n[0][1]=Math.max(n[0][1],a[0]),n[1][1]=Math.max(n[1][1],a[1]),a}),xyMinMax:n}}},fL={lineX:rL(Ts,0),lineY:rL(Ts,1),rect:function(t,e,i){return[[t[0][0]-i[0]*e[0][0],t[0][1]-i[0]*e[0][1]],[t[1][0]-i[1]*e[1][0],t[1][1]-i[1]*e[1][1]]]},polygon:function(t,e,i){return du.map(t,function(t,n){return[t[0]-i[0]*e[n][0],t[1]-i[1]*e[n][1]]})}},pL=Ss,gL=["inBrush","outOfBrush"],mL="__ecBrushSelect",vL="__ecInBrushSelectEvent",yL=C_.PRIORITY.VISUAL.BRUSH;C_.registerLayout(yL,function(t,e,i){t.eachComponent({mainType:"brush"},function(e){i&&"takeGlobalCursor"===i.type&&e.setBrushOption("brush"===i.key?i.brushOption:{brushType:!1});(e.brushTargetManager=new pL(e.option,t)).setInputRanges(e.areas,t)})}),C_.registerVisual(yL,function(t,e,i){var n,a,r=[];t.eachComponent({mainType:"brush"},function(e,i){function o(t){return"all"===h||c[t]}function s(t){return!!t.length}var l={brushId:e.id,brushIndex:i,brushName:e.name,areas:du.clone(e.areas),selected:[]};r.push(l);var u=e.option,h=u.brushLink,c=[],d=[],f=[],p=0;i||(n=u.throttleType,a=u.throttleDelay);var g=du.map(e.areas,function(t){return function(t){var e=t.selectors={};return du.each(iL[t.brushType],function(i,n){e[n]=function(n){return i(n,e,t)}}),t}(du.defaults({boundingRect:xL[t.brushType](t)},t))}),m=eL.createVisualMappings(e.option,gL,function(t){t.mappingMethod="fixed"});du.isArray(h)&&du.each(h,function(t){c[t]=1}),t.eachSeries(function(i,n){var a=f[n]=[];"parallel"===i.subType?function(t,e){var i=t.coordinateSystem;p|=i.hasAxisBrushed(),o(e)&&i.eachActiveState(t.getData(),function(t,e){"active"===t&&(d[e]=1)})}(i,n):function(i,n,a){var r=Ls(i);if(r&&!function(t,e){var i=t.option.seriesIndex;return null!=i&&"all"!==i&&(du.isArray(i)?du.indexOf(i,e)<0:e!==i)}(e,n)&&(du.each(g,function(n){r[n.brushType]&&e.brushTargetManager.controlSeries(n,i,t)&&a.push(n),p|=s(a)}),o(n)&&s(a))){var l=i.getData();l.each(function(t){Cs(r,a,l,t)&&(d[t]=1)})}}(i,n,a)}),t.eachSeries(function(t,e){var i={seriesId:t.id,seriesIndex:e,seriesName:t.name,dataIndex:[]};l.selected.push(i);var n=Ls(t),a=f[e],r=t.getData(),u=o(e)?function(t){return d[t]?(i.dataIndex.push(r.getRawIndex(t)),"inBrush"):"outOfBrush"}:function(t){return Cs(n,a,r,t)?(i.dataIndex.push(r.getRawIndex(t)),"inBrush"):"outOfBrush"};(o(e)?p:s(a))&&eL.applyVisual(gL,m,r,u)})}),function(t,e,i,n,a){if(a){var r=t.getZr();r[vL]||(r[mL]||(r[mL]=function(t,e){if(!t.isDisposed()){var i=t.getZr();i[vL]=!0,t.dispatchAction({type:"brushSelect",batch:e}),i[vL]=!1}}),Nv.createOrUpdate(r,mL,i,e)(t,n))}}(e,n,a,r,i)});var xL={lineX:du.noop,lineY:du.noop,rect:function(t){return Ps(t.range)},polygon:function(t){for(var e,i=t.range,n=0,a=i.length;ne[0][1]&&(e[0][1]=r[0]),r[1]e[1][1]&&(e[1][1]=r[1])}return e&&Ps(e)}},_L=["#ddd"];C_.extendComponentModel({type:"brush",dependencies:["geo","grid","xAxis","yAxis","parallel","series"],defaultOption:{toolbox:null,brushLink:null,seriesIndex:"all",geoIndex:null,xAxisIndex:null,yAxisIndex:null,brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(120,140,180,0.3)",borderColor:"rgba(120,140,180,0.8)"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},areas:[],brushType:null,brushOption:{},coordInfoList:[],optionUpdated:function(t,e){var i=this.option;!e&&eL.replaceVisualOption(i,t,["inBrush","outOfBrush"]);var n=i.inBrush=i.inBrush||{};i.outOfBrush=i.outOfBrush||{color:_L},n.hasOwnProperty("liftZ")||(n.liftZ=5)},setAreas:function(t){t&&(this.areas=du.map(t,function(t){return ks(this.option,t)},this))},setBrushOption:function(t){this.brushOption=ks(this.option,t),this.brushType=this.brushOption.brushType}}),C_.extendComponentView({type:"brush",init:function(t,e){this.ecModel=t,this.api=e,this.model,(this._brushController=new SA(e.getZr())).on("brush",du.bind(this._onBrush,this)).mount()},render:function(t){return this.model=t,Os.apply(this,arguments)},updateTransform:Os,updateView:Os,dispose:function(){this._brushController.dispose()},_onBrush:function(t,e){var i=this.model.id;this.model.brushTargetManager.setOutputRanges(t,this.ecModel),(!e.isEnd||e.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:i,areas:du.clone(t),$from:i})}});C_.registerAction({type:"brush",event:"brush"},function(t,e){e.eachComponent({mainType:"brush",query:t},function(e){e.setAreas(t.areas)})}),C_.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},function(){});var bL={},wL={register:function(t,e){bL[t]=e},get:function(t){return bL[t]}},SL=zv.toolbox.brush;Rs.defaultOption={show:!0,type:["rect","polygon","lineX","lineY","keep","clear"],icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:du.clone(SL.title)};var ML=Rs.prototype;ML.render=ML.updateView=function(t,e,i){var n,a,r;e.eachComponent({mainType:"brush"},function(t){n=t.brushType,a=t.brushOption.brushMode||"single",r|=t.areas.length}),this._brushType=n,this._brushMode=a,du.each(t.get("type",!0),function(e){t.setIconStatus(e,("keep"===e?"multiple"===a:"clear"===e?r:e===n)?"emphasis":"normal")})},ML.getIcons=function(){var t=this.model,e=t.get("icon",!0),i={};return du.each(t.get("type",!0),function(t){e[t]&&(i[t]=e[t])}),i},ML.onclick=function(t,e,i){var n=this._brushType,a=this._brushMode;"clear"===i?(e.dispatchAction({type:"axisAreaSelect",intervals:[]}),e.dispatchAction({type:"brush",command:"clear",areas:[]})):e.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:"keep"===i?n:n!==i&&i,brushMode:"keep"===i?"multiple"===a?"single":"multiple":a}})},wL.register("brush",Rs);C_.registerPreprocessor(QC);Ns.prototype={constructor:Ns,type:"calendar",dimensions:["time","value"],getDimensionsInfo:function(){return[{name:"time",type:"time"},"value"]},getRangeInfo:function(){return this._rangeInfo},getModel:function(){return this._model},getRect:function(){return this._rect},getCellWidth:function(){return this._sw},getCellHeight:function(){return this._sh},getOrient:function(){return this._orient},getFirstDayOfWeek:function(){return this._firstDayOfWeek},getDateInfo:function(t){var e=(t=Up.parseDate(t)).getFullYear(),i=t.getMonth()+1;i=i<10?"0"+i:i;var n=t.getDate();n=n<10?"0"+n:n;var a=t.getDay();return a=Math.abs((a+7-this.getFirstDayOfWeek())%7),{y:e,m:i,d:n,day:a,time:t.getTime(),formatedDate:e+"-"+i+"-"+n,date:t}},getNextNDay:function(t,e){return 0===(e=e||0)?this.getDateInfo(t):((t=new Date(this.getDateInfo(t).time)).setDate(t.getDate()+e),this.getDateInfo(t))},update:function(t,e){function i(t,e){return null!=t[e]&&"auto"!==t[e]}this._firstDayOfWeek=+this._model.getModel("dayLabel").get("firstDay"),this._orient=this._model.get("orient"),this._lineWidth=this._model.getModel("itemStyle").getItemStyle().lineWidth||0,this._rangeInfo=this._getRangeInfo(this._initRangeOption());var n=this._rangeInfo.weeks||1,a=["width","height"],r=this._model.get("cellSize").slice(),o=this._model.getBoxLayoutParams(),s="horizontal"===this._orient?[n,7]:[7,n];du.each([0,1],function(t){i(r,t)&&(o[a[t]]=r[t]*s[t])});var l={width:e.getWidth(),height:e.getHeight()},u=this._rect=ng.getLayoutRect(o,l);du.each([0,1],function(t){i(r,t)||(r[t]=u[a[t]]/s[t])}),this._sw=r[0],this._sh=r[1]},dataToPoint:function(t,e){du.isArray(t)&&(t=t[0]),null==e&&(e=!0);var i=this.getDateInfo(t),n=this._rangeInfo,a=i.formatedDate;if(e&&!(i.time>=n.start.time&&i.timer.end.time&&t.reverse(),t},_getRangeInfo:function(t){var e;(t=[this.getDateInfo(t[0]),this.getDateInfo(t[1])])[0].time>t[1].time&&(e=!0,t.reverse());var i=Math.floor(t[1].time/864e5)-Math.floor(t[0].time/864e5)+1,n=new Date(t[0].time),a=n.getDate(),r=t[1].date.getDate();if(n.setDate(a+i-1),n.getDate()!==r)for(var o=n.getTime()-t[1].time>0?1:-1;n.getDate()!==r&&(n.getTime()-t[1].time)*o>0;)i-=o,n.setDate(a+i-1);var s=Math.floor((i+t[0].day+6)/7),l=e?1-s:s-1;return e&&t.reverse(),{range:[t[0].formatedDate,t[1].formatedDate],start:t[0],end:t[1],allDay:i,weeks:s,nthWeek:l,fweek:t[0].day,lweek:t[1].day}},_getDateByWeeksAndDay:function(t,e,i){var n=this._getRangeInfo(i);if(t>n.weeks||0===t&&en.lweek)return!1;var a=7*(t-1)-n.fweek+e,r=new Date(n.start.time);return r.setDate(n.start.d+a),this.getDateInfo(r)}},Ns.dimensions=Ns.prototype.dimensions,Ns.getDimensionsInfo=Ns.prototype.getDimensionsInfo,Ns.create=function(t,e){var i=[];return t.eachComponent("calendar",function(n){var a=new Ns(n,t,e);i.push(a),n.coordinateSystem=a}),t.eachSeries(function(t){"calendar"===t.get("coordinateSystem")&&(t.coordinateSystem=i[t.get("calendarIndex")||0])}),i},vm.register("calendar",Ns);var IL=ng.getLayoutParams,AL=ng.sizeCalculable,TL=ng.mergeLayoutParam,DL=ug.extend({type:"calendar",coordinateSystem:null,defaultOption:{zlevel:0,z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{color:"#fff",borderWidth:1,borderColor:"#ccc"},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",nameMap:"en",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",nameMap:"en",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},init:function(t,e,i,n){var a=IL(t);DL.superApply(this,"init",arguments),zs(t,a)},mergeOption:function(t,e){DL.superApply(this,"mergeOption",arguments),zs(this.option,t)}}),CL={EN:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],CN:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"]},LL={EN:["S","M","T","W","T","F","S"],CN:["日","一","二","三","四","五","六"]},PL=(C_.extendComponentView({type:"calendar",_tlpoints:null,_blpoints:null,_firstDayOfMonth:null,_firstDayPoints:null,render:function(t,e,i){var n=this.group;n.removeAll();var a=t.coordinateSystem,r=a.getRangeInfo(),o=a.getOrient();this._renderDayRect(t,r,n),this._renderLines(t,r,o,n),this._renderYearText(t,r,o,n),this._renderMonthText(t,o,n),this._renderWeekText(t,r,o,n)},_renderDayRect:function(t,e,i){for(var n=t.coordinateSystem,a=t.getModel("itemStyle").getItemStyle(),r=n.getCellWidth(),o=n.getCellHeight(),s=e.start.time;s<=e.end.time;s=n.getNextNDay(s,1).time){var l=n.dataToRect([s],!1).tl,u=new Dp.Rect({shape:{x:l[0],y:l[1],width:r,height:o},cursor:"default",style:a});i.add(u)}},_renderLines:function(t,e,i,n){function a(e){r._firstDayOfMonth.push(o.getDateInfo(e)),r._firstDayPoints.push(o.dataToRect([e],!1).tl);var a=r._getLinePointsOfOneWeek(t,e,i);r._tlpoints.push(a[0]),r._blpoints.push(a[a.length-1]),l&&r._drawSplitline(a,s,n)}var r=this,o=t.coordinateSystem,s=t.getModel("splitLine.lineStyle").getLineStyle(),l=t.get("splitLine.show"),u=s.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var h=e.start,c=0;h.time<=e.end.time;c++){a(h.formatedDate),0===c&&(h=o.getDateInfo(e.start.y+"-"+e.start.m));var d=h.date;d.setMonth(d.getMonth()+1),h=o.getDateInfo(d)}a(o.getNextNDay(e.end.time,1).formatedDate),l&&this._drawSplitline(r._getEdgesPoints(r._tlpoints,u,i),s,n),l&&this._drawSplitline(r._getEdgesPoints(r._blpoints,u,i),s,n)},_getEdgesPoints:function(t,e,i){var n=[t[0].slice(),t[t.length-1].slice()],a="horizontal"===i?0:1;return n[0][a]=n[0][a]-e/2,n[1][a]=n[1][a]+e/2,n},_drawSplitline:function(t,e,i){var n=new Dp.Polyline({z2:20,shape:{points:t},style:e});i.add(n)},_getLinePointsOfOneWeek:function(t,e,i){var n=t.coordinateSystem;e=n.getDateInfo(e);for(var a=[],r=0;r<7;r++){var o=n.getNextNDay(e.time,r),s=n.dataToRect([o.time],!1);a[2*o.day]=s.tl,a[2*o.day+1]=s["horizontal"===i?"bl":"tr"]}return a},_formatterLabel:function(t,e){return"string"==typeof t&&t?qp.formatTplSimple(t,e):"function"==typeof t?t(e):e.nameMap},_yearTextPositionControl:function(t,e,i,n,a){e=e.slice();var r=["center","bottom"];"bottom"===n?(e[1]+=a,r=["center","top"]):"left"===n?e[0]-=a:"right"===n?(e[0]+=a,r=["center","top"]):e[1]-=a;var o=0;return"left"!==n&&"right"!==n||(o=Math.PI/2),{rotation:o,position:e,style:{textAlign:r[0],textVerticalAlign:r[1]}}},_renderYearText:function(t,e,i,n){var a=t.getModel("yearLabel");if(a.get("show")){var r=a.get("margin"),o=a.get("position");o||(o="horizontal"!==i?"top":"left");var s=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],l=(s[0][0]+s[1][0])/2,u=(s[0][1]+s[1][1])/2,h="horizontal"===i?0:1,c={top:[l,s[h][1]],bottom:[l,s[1-h][1]],left:[s[1-h][0],u],right:[s[h][0],u]},d=e.start.y;+e.end.y>+e.start.y&&(d=d+"-"+e.end.y);var f=a.get("formatter"),p={start:e.start.y,end:e.end.y,nameMap:d},g=this._formatterLabel(f,p),m=new Dp.Text({z2:30});Dp.setTextStyle(m.style,a,{text:g}),m.attr(this._yearTextPositionControl(m,c[o],i,o,r)),n.add(m)}},_monthTextPositionControl:function(t,e,i,n,a){var r="left",o="top",s=t[0],l=t[1];return"horizontal"===i?(l+=a,e&&(r="center"),"start"===n&&(o="bottom")):(s+=a,e&&(o="middle"),"start"===n&&(r="right")),{x:s,y:l,textAlign:r,textVerticalAlign:o}},_renderMonthText:function(t,e,i){var n=t.getModel("monthLabel");if(n.get("show")){var a=n.get("nameMap"),r=n.get("margin"),o=n.get("position"),s=n.get("align"),l=[this._tlpoints,this._blpoints];du.isString(a)&&(a=CL[a.toUpperCase()]||[]);var u="start"===o?0:1,h="horizontal"===e?0:1;r="start"===o?-r:r;for(var c="center"===s,d=0;d=0},createNameEach:Vs,eachAxisDim:Vs(["x","y","z","radius","angle","single"],["axisIndex","axis","index","id"]),createLinkedNodesFinder:function(t,e,i){function n(t,n){n.nodes.push(t),e(function(e){du.each(i(t,e)||[],function(t){n.records[e.name][t]=!0})})}return function(a){var r={nodes:[],records:{}};if(e(function(t){r.records[t.name]={}}),!a)return r;n(a,r);var o;do{o=!1,t(function(t){!function(t,e){return du.indexOf(e.nodes,t)>=0}(t,r)&&function(t,n){var a=!1;return e(function(e){du.each(i(t,e)||[],function(t){n.records[e.name][t]&&(a=!0)})}),a}(t,r)&&(n(t,r),o=!0)})}while(o);return r}}},RL=du.each,NL=Up.asc,EL=function(t,e,i,n){this._dimName=t,this._axisIndex=e,this._valueWindow,this._percentWindow,this._dataExtent,this._minMaxSpan,this.ecModel=n,this._dataZoomModel=i};EL.prototype={constructor:EL,hostedBy:function(t){return this._dataZoomModel===t},getDataValueWindow:function(){return this._valueWindow.slice()},getDataPercentWindow:function(){return this._percentWindow.slice()},getTargetSeriesModels:function(){var t=[],e=this.ecModel;return e.eachSeries(function(i){if(OL.isCoordSupported(i.get("coordinateSystem"))){var n=this._dimName,a=e.queryComponents({mainType:n+"Axis",index:i.get(n+"AxisIndex"),id:i.get(n+"AxisId")})[0];this._axisIndex===(a&&a.componentIndex)&&t.push(i)}},this),t},getAxisModel:function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},getOtherAxisModel:function(){var t,e,i=this._dimName,n=this.ecModel,a=this.getAxisModel();"x"===i||"y"===i?(e="gridIndex",t="x"===i?"y":"x"):(e="polarIndex",t="angle"===i?"radius":"angle");var r;return n.eachComponent(t+"Axis",function(t){(t.get(e)||0)===(a.get(e)||0)&&(r=t)}),r},getMinMaxSpan:function(){return du.clone(this._minMaxSpan)},calculateDataWindow:function(t){var e=this._dataExtent,i=this.getAxisModel().axis.scale,n=this._dataZoomModel.getRangePropMode(),a=[0,100],r=[t.start,t.end],o=[];return RL(["startValue","endValue"],function(e){o.push(null!=t[e]?i.parse(t[e]):null)}),RL([0,1],function(t){var s=o[t],l=r[t];"percent"===n[t]?(null==l&&(l=a[t]),s=i.parse(Up.linearMap(l,a,e,!0))):l=Up.linearMap(s,e,a,!0),o[t]=s,r[t]=l}),{valueWindow:NL(o),percentWindow:NL(r)}},reset:function(t){if(t===this._dataZoomModel){var e=this.getTargetSeriesModels();this._dataExtent=function(t,e,i){var n=[1/0,-1/0];return RL(i,function(t){var i=t.getData();i&&RL(i.mapDimension(e,!0),function(t){var e=i.getApproximateExtent(t);e[0]n[1]&&(n[1]=e[1])})}),n[1]0?0:NaN);var o=i.getMax(!0);null!=o&&"dataMax"!==o&&"function"!=typeof o?e[1]=o:a&&(e[1]=r>0?r-1:NaN),i.get("scale",!0)||(e[0]>0&&(e[0]=0),e[1]<0&&(e[1]=0))}(t,n),n}(this,this._dimName,e);var i=this.calculateDataWindow(t.option);this._valueWindow=i.valueWindow,this._percentWindow=i.percentWindow,function(t){var e=t._minMaxSpan={},i=t._dataZoomModel;RL(["min","max"],function(n){e[n+"Span"]=i.get(n+"Span");var a=i.get(n+"ValueSpan");if(null!=a&&(e[n+"ValueSpan"]=a,null!=(a=t.getAxisModel().axis.scale.parse(a)))){var r=t._dataExtent;e[n+"Span"]=Up.linearMap(r[0]+a,r,[0,100],!0)}})}(this),Bs(this)}},restore:function(t){t===this._dataZoomModel&&(this._valueWindow=this._percentWindow=null,Bs(this,!0))},filterData:function(t,e){if(t===this._dataZoomModel){var i=this._dimName,n=this.getTargetSeriesModels(),a=t.get("filterMode"),r=this._valueWindow;"none"!==a&&RL(n,function(t){var e=t.getData(),n=e.mapDimension(i,!0);"weakFilter"===a?e.filterSelf(function(t){for(var i,a,o,s=0;sr[1];if(u&&!h&&!c)return!0;u&&(o=!0),h&&(i=!0),c&&(a=!0)}return o&&i&&a}):RL(n,function(i){if("empty"===a)t.setData(e.map(i,function(t){return function(t){return t>=r[0]&&t<=r[1]}(t)?t:NaN}));else{var n={};n[i]=r,e.selectRange(n)}}),RL(n,function(t){e.setApproximateExtent(r,t)})})}}};var zL=EL,VL=du.each,BL=OL.eachAxisDim,GL=C_.extendComponentModel({type:"dataZoom",dependencies:["xAxis","yAxis","zAxis","radiusAxis","angleAxis","singleAxis","series"],defaultOption:{zlevel:0,z:4,orient:null,xAxisIndex:null,yAxisIndex:null,filterMode:"filter",throttle:null,start:0,end:100,startValue:null,endValue:null,minSpan:null,maxSpan:null,minValueSpan:null,maxValueSpan:null,rangeMode:null},init:function(t,e,i){this._dataIntervalByAxis={},this._dataInfo={},this._axisProxies={},this.textStyleModel,this._autoThrottle=!0,this._rangePropMode=["percent","percent"];var n=Gs(t);this.mergeDefaultAndTheme(t,i),this.doInit(n)},mergeOption:function(t){var e=Gs(t);du.merge(this.option,t,!0),this.doInit(e)},doInit:function(t){var e=this.option;Jl.canvasSupported||(e.realtime=!1),this._setDefaultThrottle(t),Hs(this,t),VL([["start","startValue"],["end","endValue"]],function(t,i){"value"===this._rangePropMode[i]&&(e[t[0]]=null)},this),this.textStyleModel=this.getModel("textStyle"),this._resetTarget(),this._giveAxisProxies()},_giveAxisProxies:function(){var t=this._axisProxies;this.eachTargetAxis(function(e,i,n,a){var r=this.dependentModels[e.axis][i],o=r.__dzAxisProxy||(r.__dzAxisProxy=new zL(e.name,i,this,a));t[e.name+"_"+i]=o},this)},_resetTarget:function(){var t=this.option,e=this._judgeAutoMode();BL(function(e){var i=e.axisIndex;t[i]=Wc.normalizeToArray(t[i])},this),"axisIndex"===e?this._autoSetAxisIndex():"orient"===e&&this._autoSetOrient()},_judgeAutoMode:function(){var t=this.option,e=!1;BL(function(i){null!=t[i.axisIndex]&&(e=!0)},this);var i=t.orient;return null==i&&e?"orient":e?void 0:(null==i&&(t.orient="horizontal"),"axisIndex")},_autoSetAxisIndex:function(){var t=!0,e=this.get("orient",!0),i=this.option,n=this.dependentModels;if(t){var a="vertical"===e?"y":"x";n[a+"Axis"].length?(i[a+"AxisIndex"]=[0],t=!1):VL(n.singleAxis,function(n){t&&n.get("orient",!0)===e&&(i.singleAxisIndex=[n.componentIndex],t=!1)})}t&&BL(function(e){if(t){var n=[],a=this.dependentModels[e.axis];if(a.length&&!n.length)for(var r=0,o=a.length;r0?100:20}},getFirstTargetAxisModel:function(){var t;return BL(function(e){if(null==t){var i=this.get(e.axisIndex);i.length&&(t=this.dependentModels[e.axis][i[0]])}},this),t},eachTargetAxis:function(t,e){var i=this.ecModel;BL(function(n){VL(this.get(n.axisIndex),function(a){t.call(e,n,a,this,i)},this)},this)},getAxisProxy:function(t,e){return this._axisProxies[t+"_"+e]},getAxisModel:function(t,e){var i=this.getAxisProxy(t,e);return i&&i.getAxisModel()},setRawRange:function(t,e){var i=this.option;VL([["start","startValue"],["end","endValue"]],function(e){null==t[e[0]]&&null==t[e[1]]||(i[e[0]]=t[e[0]],i[e[1]]=t[e[1]])},this),!e&&Hs(this,t)},getPercentRange:function(){var t=this.findRepresentativeAxisProxy();if(t)return t.getDataPercentWindow()},getValueRange:function(t,e){if(null!=t||null!=e)return this.getAxisProxy(t,e).getDataValueWindow();var i=this.findRepresentativeAxisProxy();return i?i.getDataValueWindow():void 0},findRepresentativeAxisProxy:function(t){if(t)return t.__dzAxisProxy;var e=this._axisProxies;for(var i in e)if(e.hasOwnProperty(i)&&e[i].hostedBy(this))return e[i];for(var i in e)if(e.hasOwnProperty(i)&&!e[i].hostedBy(this))return e[i]},getRangePropMode:function(){return this._rangePropMode.slice()}}),HL=wv.extend({type:"dataZoom",render:function(t,e,i,n){this.dataZoomModel=t,this.ecModel=e,this.api=i},getTargetCoordInfo:function(){var t=this.dataZoomModel,e=this.ecModel,i={};return t.eachTargetAxis(function(t,n){var a=e.getComponent(t.axis,n);if(a){var r=a.getCoordSysModel();r&&function(t,e,i,n){for(var a,r=0;r0&&e%p)f+=d;else{var i=null==t||isNaN(t)||""===t,n=i?0:WL(t,r,l,!0);i&&!s&&e?(h.push([h[h.length-1][0],0]),c.push([c[c.length-1][0],0])):!i&&s&&(h.push([f,0]),c.push([f,0])),h.push([f,n]),c.push([f,n]),f+=d,s=i}});var g=this.dataZoomModel;this._displayables.barGroup.add(new Dp.Polygon({shape:{points:h},style:du.defaults({fill:g.get("dataBackgroundColor")},g.getModel("dataBackground.areaStyle").getAreaStyle()),silent:!0,z2:-20})),this._displayables.barGroup.add(new Dp.Polyline({shape:{points:c},style:g.getModel("dataBackground.lineStyle").getLineStyle(),silent:!0,z2:-19}))}}},_prepareDataShadowInfo:function(){var t=this.dataZoomModel,e=t.get("showDataShadow");if(!1!==e){var i,n=this.ecModel;return t.eachTargetAxis(function(a,r){var o=t.getAxisProxy(a.name,r).getTargetSeriesModels();du.each(o,function(t){if(!(i||!0!==e&&du.indexOf(qL,t.get("type"))<0)){var o,s=n.getComponent(a.axis,r).axis,l=function(t){return{x:"y",y:"x",radius:"angle",angle:"radius"}[t]}(a.name),u=t.coordinateSystem;null!=l&&u.getOtherAxis&&(o=u.getOtherAxis(s).inverse),l=t.getData().mapDimension(l),i={thisAxis:s,series:t,thisDim:a.name,otherDim:l,otherAxisInverse:o}}},this)},this),i}},_renderHandle:function(){var t=this._displayables,e=t.handles=[],i=t.handleLabels=[],n=this._displayables.barGroup,a=this._size,r=this.dataZoomModel;n.add(t.filler=new FL({draggable:!0,cursor:Fs(this._orient),drift:ZL(this._onDragMove,this,"all"),onmousemove:function(t){mc.stop(t.event)},ondragstart:ZL(this._showDataInfo,this,!0),ondragend:ZL(this._onDragEnd,this),onmouseover:ZL(this._showDataInfo,this,!0),onmouseout:ZL(this._showDataInfo,this,!1),style:{fill:r.get("fillerColor"),textPosition:"inside"}})),n.add(new FL(Dp.subPixelOptimizeRect({silent:!0,shape:{x:0,y:0,width:a[0],height:a[1]},style:{stroke:r.get("dataBackgroundColor")||r.get("borderColor"),lineWidth:1,fill:"rgba(0,0,0,0)"}}))),jL([0,1],function(t){var a=Dp.createIcon(r.get("handleIcon"),{cursor:Fs(this._orient),draggable:!0,drift:ZL(this._onDragMove,this,t),onmousemove:function(t){mc.stop(t.event)},ondragend:ZL(this._onDragEnd,this),onmouseover:ZL(this._showDataInfo,this,!0),onmouseout:ZL(this._showDataInfo,this,!1)},{x:-1,y:0,width:2,height:2}),o=a.getBoundingRect();this._handleHeight=Up.parsePercent(r.get("handleSize"),this._size[1]),this._handleWidth=o.width/o.height*this._handleHeight,a.setStyle(r.getModel("handleStyle").getItemStyle());var s=r.get("handleColor");null!=s&&(a.style.fill=s),n.add(e[t]=a);var l=r.textStyleModel;this.group.add(i[t]=new Dp.Text({silent:!0,invisible:!0,style:{x:0,y:0,text:"",textVerticalAlign:"middle",textAlign:"center",textFill:l.getTextColor(),textFont:l.getFont()},z2:10}))},this)},_resetInterval:function(){var t=this._range=this.dataZoomModel.getPercentRange(),e=this._getViewExtent();this._handleEnds=[WL(t[0],[0,100],e,!0),WL(t[1],[0,100],e,!0)]},_updateInterval:function(t,e){var i=this.dataZoomModel,n=this._handleEnds,a=this._getViewExtent(),r=i.findRepresentativeAxisProxy().getMinMaxSpan(),o=[0,100];KI(e,n,a,i.get("zoomLock")?"all":t,null!=r.minSpan?WL(r.minSpan,o,a,!0):null,null!=r.maxSpan?WL(r.maxSpan,o,a,!0):null);var s=this._range,l=this._range=UL([WL(n[0],a,o,!0),WL(n[1],a,o,!0)]);return!s||s[0]!==l[0]||s[1]!==l[1]},_updateView:function(t){var e=this._displayables,i=this._handleEnds,n=UL(i.slice()),a=this._size;jL([0,1],function(t){var n=e.handles[t],r=this._handleHeight;n.attr({scale:[r/2,r/2],position:[i[t],a[1]/2-r/2]})},this),e.filler.setShape({x:n[0],y:0,width:n[1]-n[0],height:a[1]}),this._updateDataInfo(t)},_updateDataInfo:function(t){function e(t){var e=Dp.getTransform(n.handles[t].parent,this.group),i=Dp.transformDirection(0===t?"right":"left",e),s=this._handleWidth/2+XL,l=Dp.applyTransform([c[t]+(0===t?-s:s),this._size[1]/2],e);a[t].setStyle({x:l[0],y:l[1],textVerticalAlign:r===YL?"middle":i,textAlign:r===YL?i:"center",text:o[t]})}var i=this.dataZoomModel,n=this._displayables,a=n.handleLabels,r=this._orient,o=["",""];if(i.get("showDetail")){var s=i.findRepresentativeAxisProxy();if(s){var l=s.getAxisModel().axis,u=this._range,h=t?s.calculateDataWindow({start:u[0],end:u[1]}).valueWindow:s.getDataValueWindow();o=[this._formatLabel(h[0],l),this._formatLabel(h[1],l)]}}var c=UL(this._handleEnds.slice());e.call(this,0),e.call(this,1)},_formatLabel:function(t,e){var i=this.dataZoomModel,n=i.get("labelFormatter"),a=i.get("labelPrecision");null!=a&&"auto"!==a||(a=e.getPixelPrecision());var r=null==t||isNaN(t)?"":"category"===e.type||"time"===e.type?e.scale.getLabel(Math.round(t)):t.toFixed(Math.min(a,20));return du.isFunction(n)?n(t,r):du.isString(n)?n.replace("{value}",r):r},_showDataInfo:function(t){t=this._dragging||t;var e=this._displayables.handleLabels;e[0].attr("invisible",!t),e[1].attr("invisible",!t)},_onDragMove:function(t,e,i){this._dragging=!0;var n=this._displayables.barGroup.getLocalTransform(),a=Dp.applyTransform([e,i],n,!0),r=this._updateInterval(t,a[0]),o=this.dataZoomModel.get("realtime");this._updateView(!o),r&&o&&this._dispatchZoomAction()},_onDragEnd:function(){this._dragging=!1,this._showDataInfo(!1);!this.dataZoomModel.get("realtime")&&this._dispatchZoomAction()},_onClickPanelClick:function(t){var e=this._size,i=this._displayables.barGroup.transformCoordToLocal(t.offsetX,t.offsetY);if(!(i[0]<0||i[0]>e[0]||i[1]<0||i[1]>e[1])){var n=this._handleEnds,a=(n[0]+n[1])/2,r=this._updateInterval("all",i[0]-a);this._updateView(),r&&this._dispatchZoomAction()}},_dispatchZoomAction:function(){var t=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,start:t[0],end:t[1]})},_findCoordRect:function(){var t;if(jL(this.getTargetCoordInfo(),function(e){if(!t&&e.length){var i=e[0].model.coordinateSystem;t=i.getRect&&i.getRect()}}),!t){var e=this.api.getWidth(),i=this.api.getHeight();t={x:.2*e,y:.2*i,width:.6*e,height:.6*i}}return t}}),KL=(GL.extend({type:"dataZoom.inside",defaultOption:{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,preventDefaultMouseMove:!0}}),du.curry),JL="\0_ec_dataZoom_roams",QL={register:function(t,e){var i=Ws(t),n=e.dataZoomId,a=e.coordId;du.each(i,function(t,i){var r=t.dataZoomInfos;r[n]&&du.indexOf(e.allCoordIds,a)<0&&(delete r[n],t.count--)}),Us(i);var r=i[a];r||((r=i[a]={coordId:a,dataZoomInfos:{},count:0}).controller=function(t,e){var i=new _S(t.getZr());return i.on("pan",KL(function(t,e,i,n,a,r,o){Zs(t,function(s){return s.panGetRange(t.controller,e,i,n,a,r,o)})},e)),i.on("zoom",KL(function(t,e,i,n){Zs(t,function(a){return a.zoomGetRange(t.controller,e,i,n)})},e)),i}(t,r),r.dispatchAction=du.curry(function(t,e){t.dispatchAction({type:"dataZoom",batch:e})},t)),!r.dataZoomInfos[n]&&r.count++,r.dataZoomInfos[n]=e;var o=function(t){var e,i={},n={type_true:2,type_move:1,type_false:0,type_undefined:-1};return du.each(t,function(t){var a=!t.disabled&&(!t.zoomLock||"move");n["type_"+a]>n["type_"+e]&&(e=a),du.extend(i,t.roamControllerOpt)}),{controlType:e,opt:i}}(r.dataZoomInfos);r.controller.enable(o.controlType,o.opt),r.controller.setPointerChecker(e.containsPoint),Nv.createOrUpdate(r,"dispatchAction",e.throttleRate,"fixRate")},unregister:function(t,e){var i=Ws(t);du.each(i,function(t){t.controller.dispose();var i=t.dataZoomInfos;i[e]&&(delete i[e],t.count--)}),Us(i)},generateCoordId:function(t){return t.type+"\0_"+t.id}},tP=du.bind,eP=HL.extend({type:"dataZoom.inside",init:function(t,e){this._range},render:function(t,e,i,n){eP.superApply(this,"render",arguments),this._range=t.getPercentRange(),du.each(this.getTargetCoordInfo(),function(e,n){var a=du.map(e,function(t){return QL.generateCoordId(t.model)});du.each(e,function(e){var r=e.model,o=t.option;QL.register(i,{coordId:QL.generateCoordId(r),allCoordIds:a,containsPoint:function(t,e,i){return r.coordinateSystem.containPoint([e,i])},dataZoomId:t.id,throttleRate:t.get("throttle",!0),panGetRange:tP(this._onPan,this,e,n),zoomGetRange:tP(this._onZoom,this,e,n),zoomLock:o.zoomLock,disabled:o.disabled,roamControllerOpt:{zoomOnMouseWheel:o.zoomOnMouseWheel,moveOnMouseMove:o.moveOnMouseMove,preventDefaultMouseMove:o.preventDefaultMouseMove}})},this)},this)},dispose:function(){QL.unregister(this.api,this.dataZoomModel.id),eP.superApply(this,"dispose",arguments),this._range=null},_onPan:function(t,e,i,n,a,r,o,s,l){var u=this._range,h=u.slice(),c=t.axisModels[0];if(c){var d=iP[e]([r,o],[s,l],c,i,t),f=d.signal*(h[1]-h[0])*d.pixel/d.pixelLength;return KI(f,h,[0,100],"all"),this._range=h,u[0]!==h[0]||u[1]!==h[1]?h:void 0}},_onZoom:function(t,e,i,n,a,r){var o=this._range,s=o.slice(),l=t.axisModels[0];if(l){var u=iP[e](null,[a,r],l,i,t),h=(u.signal>0?u.pixelStart+u.pixelLength-u.pixel:u.pixel-u.pixelStart)/u.pixelLength*(s[1]-s[0])+s[0];n=Math.max(1/n,0),s[0]=(s[0]-h)*n+h,s[1]=(s[1]-h)*n+h;var c=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();return KI(0,s,[0,100],0,c.minSpan,c.maxSpan),this._range=s,o[0]!==s[0]||o[1]!==s[1]?s:void 0}}}),iP={grid:function(t,e,i,n,a){var r=i.axis,o={},s=a.model.coordinateSystem.getRect();return t=t||[0,0],"x"===r.dim?(o.pixel=e[0]-t[0],o.pixelLength=s.width,o.pixelStart=s.x,o.signal=r.inverse?1:-1):(o.pixel=e[1]-t[1],o.pixelLength=s.height,o.pixelStart=s.y,o.signal=r.inverse?-1:1),o},polar:function(t,e,i,n,a){var r=i.axis,o={},s=a.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return t=t?s.pointToCoord(t):[0,0],e=s.pointToCoord(e),"radiusAxis"===i.mainType?(o.pixel=e[0]-t[0],o.pixelLength=l[1]-l[0],o.pixelStart=l[0],o.signal=r.inverse?1:-1):(o.pixel=e[1]-t[1],o.pixelLength=u[1]-u[0],o.pixelStart=u[0],o.signal=r.inverse?-1:1),o},singleAxis:function(t,e,i,n,a){var r=i.axis,o=a.model.coordinateSystem.getRect(),s={};return t=t||[0,0],"horizontal"===r.orient?(s.pixel=e[0]-t[0],s.pixelLength=o.width,s.pixelStart=o.x,s.signal=r.inverse?1:-1):(s.pixel=e[1]-t[1],s.pixelLength=o.height,s.pixelStart=o.y,s.signal=r.inverse?-1:1),s}},nP=du.createHashMap,aP=du.each;C_.registerProcessor({getTargetSeries:function(t){var e=nP();return t.eachComponent("dataZoom",function(t){t.eachTargetAxis(function(t,i,n){var a=n.getAxisProxy(t.name,i);aP(a.getTargetSeriesModels(),function(t){e.set(t.uid,t)})})}),e},modifyOutputEnd:!0,overallReset:function(t,e){t.eachComponent("dataZoom",function(t){t.eachTargetAxis(function(t,i,n){n.getAxisProxy(t.name,i).reset(n,e)}),t.eachTargetAxis(function(t,i,n){n.getAxisProxy(t.name,i).filterData(n,e)})}),t.eachComponent("dataZoom",function(t){var e=t.findRepresentativeAxisProxy(),i=e.getDataPercentWindow(),n=e.getDataValueWindow();t.setRawRange({start:i[0],end:i[1],startValue:n[0],endValue:n[1]},!0)})}}),C_.registerAction("dataZoom",function(t,e){var i=OL.createLinkedNodesFinder(du.bind(e.eachComponent,e,"dataZoom"),OL.eachAxisDim,function(t,e){return t.get(e.axisIndex)}),n=[];e.eachComponent({mainType:"dataZoom",query:t},function(t,e){n.push.apply(n,i(t).nodes)}),du.each(n,function(e,i){e.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})})});var rP=du.each,oP=function(t){var e=t&&t.visualMap;du.isArray(e)||(e=e?[e]:[]),rP(e,function(t){if(t){js(t,"splitList")&&!js(t,"pieces")&&(t.pieces=t.splitList,delete t.splitList);var e=t.pieces;e&&du.isArray(e)&&rP(e,function(t){du.isObject(t)&&(js(t,"start")&&!js(t,"min")&&(t.min=t.start),js(t,"end")&&!js(t,"max")&&(t.max=t.end))})}})};ug.registerSubTypeDefaulter("visualMap",function(t){return t.categories||(t.pieces?t.pieces.length>0:t.splitNumber>0)&&!t.calculable?"piecewise":"continuous"});var sP=C_.PRIORITY.VISUAL.COMPONENT;C_.registerVisual(sP,{createOnAllSeries:!0,reset:function(t,e){var i=[];return e.eachComponent("visualMap",function(e){var n=t.pipelineContext;!e.isTargetSeries(t)||n&&n.large||i.push(eL.incrementalApplyVisual(e.stateList,e.targetVisuals,du.bind(e.getValueState,e),e.getDataDimension(t.getData())))}),i}}),C_.registerVisual(sP,{createOnAllSeries:!0,reset:function(t,e){var i=t.getData(),n=[];e.eachComponent("visualMap",function(e){if(e.isTargetSeries(t)){var a=e.getVisualMeta(du.bind(function(t,e,i,n){for(var a=e.targetVisuals[n],r=TM.prepareVisualTypes(a),o={color:t.getData().getVisual("color")},s=0,l=r.length;s"],du.isArray(t)&&(t=t.slice(),a=!0),r=e?t:a?[n(t[0]),n(t[1])]:n(t),du.isString(u)?u.replace("{value}",a?r[0]:r).replace("{value2}",a?r[1]:r):du.isFunction(u)?a?u(t[0],t[1]):u(t):a?t[0]===l[0]?i[0]+" "+r[1]:t[1]===l[1]?i[1]+" "+r[0]:r[0]+" - "+r[1]:r},resetExtent:function(){var t=this.option,e=gP([t.min,t.max]);this._dataExtent=e},getDataDimension:function(t){var e=this.option.dimension,i=t.dimensions;if(null!=e||i.length){if(null!=e)return t.getDimension(e);for(var n=t.dimensions,a=n.length-1;a>=0;a--){var r=n[a];if(!t.getDimensionInfo(r).isCalculationCoord)return r}}},getExtent:function(){return this._dataExtent.slice()},completeVisualOption:function(){function t(t){fP(i.color)&&!t.inRange&&(t.inRange={color:i.color.slice().reverse()}),t.inRange=t.inRange||{color:e.get("gradientColor")},pP(this.stateList,function(e){var i=t[e];if(du.isString(i)){var n=hP.get(i,"active",o);n?(t[e]={},t[e][i]=n):delete t[e]}},this)}var e=this.ecModel,i=this.option,n={inRange:i.inRange,outOfRange:i.outOfRange},a=i.target||(i.target={}),r=i.controller||(i.controller={});du.merge(a,n),du.merge(r,n);var o=this.isCategory();t.call(this,a),t.call(this,r),function(t,e,i){var n=t[e],a=t[i];n&&!a&&(a=t[i]={},pP(n,function(t,e){if(TM.isValidType(e)){var i=hP.get(e,"inactive",o);null!=i&&(a[e]=i,"color"!==e||a.hasOwnProperty("opacity")||a.hasOwnProperty("colorAlpha")||(a.opacity=[0,0]))}}))}.call(this,a,"inRange","outOfRange"),function(t){var e=(t.inRange||{}).symbol||(t.outOfRange||{}).symbol,i=(t.inRange||{}).symbolSize||(t.outOfRange||{}).symbolSize,n=this.get("inactiveColor");pP(this.stateList,function(a){var r=this.itemSize,s=t[a];s||(s=t[a]={color:o?n:[n]}),null==s.symbol&&(s.symbol=e&&du.clone(e)||(o?"roundRect":["roundRect"])),null==s.symbolSize&&(s.symbolSize=i&&du.clone(i)||(o?r[0]:[r[0],r[0]])),s.symbol=cP(s.symbol,function(t){return"none"===t||"square"===t?"roundRect":t});var l=s.symbolSize;if(null!=l){var u=-1/0;dP(l,function(t){t>u&&(u=t)}),s.symbolSize=cP(l,function(t){return mP(t,[0,u],[0,r[0]],!0)})}},this)}.call(this,r)},resetItemSize:function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},isCategory:function(){return!!this.option.categories},setSelected:vP,getValueState:vP,getVisualMeta:vP}),xP=[20,140],_P=yP.extend({type:"visualMap.continuous",defaultOption:{align:"auto",calculable:!1,range:null,realtime:!0,itemHeight:null,itemWidth:null,hoverLink:!0,hoverLinkDataSize:null,hoverLinkOnHandle:null},optionUpdated:function(t,e){_P.superApply(this,"optionUpdated",arguments),this.resetExtent(),this.resetVisual(function(t){t.mappingMethod="linear",t.dataExtent=this.getExtent()}),this._resetRange()},resetItemSize:function(){_P.superApply(this,"resetItemSize",arguments);var t=this.itemSize;"horizontal"===this._orient&&t.reverse(),(null==t[0]||isNaN(t[0]))&&(t[0]=xP[0]),(null==t[1]||isNaN(t[1]))&&(t[1]=xP[1])},_resetRange:function(){var t=this.getExtent(),e=this.option.range;!e||e.auto?(t.auto=1,this.option.range=t):du.isArray(e)&&(e[0]>e[1]&&e.reverse(),e[0]=Math.max(e[0],t[0]),e[1]=Math.min(e[1],t[1]))},completeVisualOption:function(){yP.prototype.completeVisualOption.apply(this,arguments),du.each(this.stateList,function(t){var e=this.option.controller[t].symbolSize;e&&e[0]!==e[1]&&(e[0]=0)},this)},setSelected:function(t){this.option.range=t.slice(),this._resetRange()},getSelected:function(){var t=this.getExtent(),e=Up.asc((this.get("range")||[]).slice());return e[0]>t[1]&&(e[0]=t[1]),e[1]>t[1]&&(e[1]=t[1]),e[0]=i[1]||t<=e[1])?"inRange":"outOfRange"},findTargetDataIndices:function(t){var e=[];return this.eachTargetSeries(function(i){var n=[],a=i.getData();a.each(this.getDataDimension(a),function(e,i){t[0]<=e&&e<=t[1]&&n.push(i)},this),e.push({seriesId:i.id,dataIndex:n})},this),e},getVisualMeta:function(t){function e(e,i){a.push({value:e,color:t(e,i)})}for(var i=Ys(0,0,this.getExtent()),n=Ys(0,0,this.option.range.slice()),a=[],r=0,o=0,s=n.length,l=i.length;ot[1])break;i.push({color:this.getControllerVisual(r,"color",e),offset:a/100})}return i.push({color:this.getControllerVisual(t[1],"color",e),offset:1}),i},_createBarPoints:function(t,e){var i=this.visualMapModel.itemSize;return[[i[0]-e[0],t[0]],[i[0],t[0]],[i[0],t[1]],[i[0]-e[1],t[1]]]},_createBarGroup:function(t){var e=this._orient,i=this.visualMapModel.get("inverse");return new Dp.Group("horizontal"!==e||i?"horizontal"===e&&i?{scale:"bottom"===t?[-1,1]:[1,1],rotation:-Math.PI/2}:"vertical"!==e||i?{scale:"left"===t?[1,1]:[-1,1]}:{scale:"left"===t?[1,-1]:[-1,-1]}:{scale:"bottom"===t?[1,1]:[-1,1],rotation:Math.PI/2})},_updateHandle:function(t,e){if(this._useHandle){var i=this._shapes,n=this.visualMapModel,a=i.handleThumbs,r=i.handleLabels;IP([0,1],function(o){var s=a[o];s.setStyle("fill",e.handlesColor[o]),s.position[1]=t[o];var l=Dp.applyTransform(i.handleLabelPoints[o],Dp.getTransform(s,this.group));r[o].setStyle({x:l[0],y:l[1],text:n.formatValueText(this._dataInterval[o]),textVerticalAlign:"middle",textAlign:this._applyTransform("horizontal"===this._orient?0===o?"bottom":"top":"left",i.barGroup)})},this)}},_showIndicator:function(t,e,i,n){var a=this.visualMapModel,r=a.getExtent(),o=a.itemSize,s=[0,o[1]],l=MP(t,r,s,!0),u=this._shapes,h=u.indicator;if(h){h.position[1]=l,h.attr("invisible",!1),h.setShape("points",function(t,e,i,n){return t?[[0,-AP(e,TP(i,0))],[CP,0],[0,AP(e,TP(n-i,0))]]:[[0,0],[5,-5],[5,5]]}(!!i,n,l,o[1]));var c=this.getControllerVisual(t,"color",{convertOpacityToAlpha:!0});h.setStyle("fill",c);var d=Dp.applyTransform(u.indicatorLabelPoint,Dp.getTransform(h,this.group)),f=u.indicatorLabel;f.attr("invisible",!1);var p=this._applyTransform("left",u.barGroup),g=this._orient;f.setStyle({text:(i||"")+a.formatValueText(e),textVerticalAlign:"horizontal"===g?p:"middle",textAlign:"horizontal"===g?"center":p,x:d[0],y:d[1]})}},_enableHoverLinkToSeries:function(){var t=this;this._shapes.barGroup.on("mousemove",function(e){if(t._hovering=!0,!t._dragging){var i=t.visualMapModel.itemSize,n=t._applyTransform([e.offsetX,e.offsetY],t._shapes.barGroup,!0,!0);n[1]=AP(TP(0,n[1]),i[1]),t._doHoverLinkToSeries(n[1],0<=n[0]&&n[0]<=i[0])}}).on("mouseout",function(){t._hovering=!1,!t._dragging&&t._clearHoverLinkToSeries()})},_enableHoverLinkFromSeries:function(){var t=this.api.getZr();this.visualMapModel.option.hoverLink?(t.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),t.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},_doHoverLinkToSeries:function(t,e){var i=this.visualMapModel,n=i.itemSize;if(i.option.hoverLink){var a=[0,n[1]],r=i.getExtent();t=AP(TP(a[0],t),a[1]);var o=function(t,e,i){var n=DP/2,a=t.get("hoverLinkDataSize");return a&&(n=MP(a,e,i,!0)/2),n}(i,r,a),s=[t-o,t+o],l=MP(t,a,r,!0),u=[MP(s[0],a,r,!0),MP(s[1],a,r,!0)];s[0]a[1]&&(u[1]=1/0),e&&(u[0]===-1/0?this._showIndicator(l,u[1],"< ",o):u[1]===1/0?this._showIndicator(l,u[0],"> ",o):this._showIndicator(l,l,"≈ ",o));var h=this._hoverLinkDataIndices,c=[];(e||qs(i))&&(c=this._hoverLinkDataIndices=i.findTargetDataIndices(u));var d=Wc.compressBatches(h,c);this._dispatchHighDown("downplay",SP.convertDataIndex(d[0])),this._dispatchHighDown("highlight",SP.convertDataIndex(d[1]))}},_hoverLinkFromSeriesMouseOver:function(t){var e=t.target,i=this.visualMapModel;if(e&&null!=e.dataIndex){var n=this.ecModel.getSeriesByIndex(e.seriesIndex);if(i.isTargetSeries(n)){var a=n.getData(e.dataType),r=a.get(i.getDataDimension(a),e.dataIndex,!0);isNaN(r)||this._showIndicator(r,r)}}},_hideIndicator:function(){var t=this._shapes;t.indicator&&t.indicator.attr("invisible",!0),t.indicatorLabel&&t.indicatorLabel.attr("invisible",!0)},_clearHoverLinkToSeries:function(){this._hideIndicator();var t=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",SP.convertDataIndex(t)),t.length=0},_clearHoverLinkFromSeries:function(){this._hideIndicator();var t=this.api.getZr();t.off("mouseover",this._hoverLinkFromSeriesMouseOver),t.off("mouseout",this._hideIndicator)},_applyTransform:function(t,e,i,n){var a=Dp.getTransform(e,n?null:this.group);return Dp[du.isArray(t)?"applyTransform":"transformDirection"](t,a,i)},_dispatchHighDown:function(t,e){e&&e.length&&this.api.dispatchAction({type:t,batch:e})},dispose:function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},remove:function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()}});C_.registerAction({type:"selectDataRange",event:"dataRangeSelected",update:"update"},function(t,e){e.eachComponent({mainType:"visualMap",query:t},function(e){e.setSelected(t.selected)})}),C_.registerPreprocessor(oP);var PP=Up.reformIntervals,kP=yP.extend({type:"visualMap.piecewise",defaultOption:{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieceList:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0,showLabel:null},optionUpdated:function(t,e){kP.superApply(this,"optionUpdated",arguments),this._pieceList=[],this.resetExtent();var i=this._mode=this._determineMode();OP[this._mode].call(this),this._resetSelected(t,e);var n=this.option.categories;this.resetVisual(function(t,e){"categories"===i?(t.mappingMethod="category",t.categories=du.clone(n)):(t.dataExtent=this.getExtent(),t.mappingMethod="piecewise",t.pieceList=du.map(this._pieceList,function(t){t=du.clone(t);return"inRange"!==e&&(t.visual=null),t}))})},completeVisualOption:function(){function t(t,e,i){return t&&t[e]&&(du.isObject(t[e])?t[e].hasOwnProperty(i):t[e]===i)}var e=this.option,i={},n=TM.listVisualTypes(),a=this.isCategory();du.each(e.pieces,function(t){du.each(n,function(e){t.hasOwnProperty(e)&&(i[e]=1)})}),du.each(i,function(i,n){var r=0;du.each(this.stateList,function(i){r|=t(e,i,n)||t(e.target,i,n)},this),!r&&du.each(this.stateList,function(t){(e[t]||(e[t]={}))[n]=hP.get(n,"inRange"===t?"active":"inactive",a)})},this),yP.prototype.completeVisualOption.apply(this,arguments)},_resetSelected:function(t,e){var i=this.option,n=this._pieceList,a=(e?i:t).selected||{};if(i.selected=a,du.each(n,function(t,e){var i=this.getSelectedMapKey(t);a.hasOwnProperty(i)||(a[i]=!0)},this),"single"===i.selectedMode){var r=!1;du.each(n,function(t,e){var i=this.getSelectedMapKey(t);a[i]&&(r?a[i]=!1:r=!0)},this)}},getSelectedMapKey:function(t){return"categories"===this._mode?t.value+"":t.index+""},getPieceList:function(){return this._pieceList},_determineMode:function(){var t=this.option;return t.pieces&&t.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},setSelected:function(t){this.option.selected=du.clone(t)},getValueState:function(t){var e=TM.findPieceIndex(t,this._pieceList);return null!=e&&this.option.selected[this.getSelectedMapKey(this._pieceList[e])]?"inRange":"outOfRange"},findTargetDataIndices:function(t){var e=[];return this.eachTargetSeries(function(i){var n=[],a=i.getData();a.each(this.getDataDimension(a),function(e,i){TM.findPieceIndex(e,this._pieceList)===t&&n.push(i)},this),e.push({seriesId:i.id,dataIndex:n})},this),e},getRepresentValue:function(t){var e;if(this.isCategory())e=t.value;else if(null!=t.value)e=t.value;else{var i=t.interval||[];e=i[0]===-1/0&&i[1]===1/0?0:(i[0]+i[1])/2}return e},getVisualMeta:function(t){function e(e,r){var o=a.getRepresentValue({interval:e});r||(r=a.getValueState(o));var s=t(o,r);e[0]===-1/0?n[0]=s:e[1]===1/0?n[1]=s:i.push({value:e[0],color:s},{value:e[1],color:s})}if(!this.isCategory()){var i=[],n=[],a=this,r=this._pieceList.slice();if(r.length){var o=r[0].interval[0];o!==-1/0&&r.unshift({interval:[-1/0,o]}),(o=r[r.length-1].interval[1])!==1/0&&r.push({interval:[o,1/0]})}else r.push({interval:[-1/0,1/0]});var s=-1/0;return du.each(r,function(t){var i=t.interval;i&&(i[0]>s&&e([s,i[0]],"outOfRange"),e(i.slice()),s=i[1])},this),{stops:i,outerColors:n}}}}),OP={splitNumber:function(){var t=this.option,e=this._pieceList,i=Math.min(t.precision,20),n=this.getExtent(),a=t.splitNumber;a=Math.max(parseInt(a,10),1),t.splitNumber=a;for(var r=(n[1]-n[0])/a;+r.toFixed(i)!==r&&i<5;)i++;t.precision=i,r=+r.toFixed(i);var o=0;t.minOpen&&e.push({index:o++,interval:[-1/0,n[0]],close:[0,0]});for(var s=n[0],l=o+a;o","≥"][e[0]]];t.text=t.text||this.formatValueText(null!=t.value?t.value:t.interval,!1,i)},this)}},RP=Fx.createSymbol;bP.extend({type:"visualMap.piecewise",doRender:function(){var t=this.group;t.removeAll();var e=this.visualMapModel,i=e.get("textGap"),n=e.textStyleModel,a=n.getFont(),r=n.getTextColor(),o=this._getItemAlign(),s=e.itemSize,l=this._getViewData(),u=l.endsText,h=du.retrieve(e.get("showLabel",!0),!u);u&&this._renderEndsText(t,u[0],s,h,o),du.each(l.viewPieceList,function(n){var l=n.piece,u=new Dp.Group;u.onclick=du.bind(this._onItemClick,this,l),this._enableHoverLink(u,n.indexInModelPieceList);var c=e.getRepresentValue(l);if(this._createItemSymbol(u,c,[0,0,s[0],s[1]]),h){var d=this.visualMapModel.getValueState(c);u.add(new Dp.Text({style:{x:"right"===o?-i:s[0]+i,y:s[1]/2,text:l.text,textVerticalAlign:"middle",textAlign:o,textFont:a,textFill:r,opacity:"outOfRange"===d?.5:1}}))}t.add(u)},this),u&&this._renderEndsText(t,u[1],s,h,o),ng.box(e.get("orient"),t,e.get("itemGap")),this.renderBackground(t),this.positionGroup(t)},_enableHoverLink:function(t,e){function i(t){var i=this.visualMapModel;i.option.hoverLink&&this.api.dispatchAction({type:t,batch:SP.convertDataIndex(i.findTargetDataIndices(e))})}t.on("mouseover",du.bind(i,this,"highlight")).on("mouseout",du.bind(i,this,"downplay"))},_getItemAlign:function(){var t=this.visualMapModel,e=t.option;if("vertical"===e.orient)return SP.getItemAlign(t,this.api,t.itemSize);var i=e.align;return i&&"auto"!==i||(i="left"),i},_renderEndsText:function(t,e,i,n,a){if(e){var r=new Dp.Group,o=this.visualMapModel.textStyleModel;r.add(new Dp.Text({style:{x:n?"right"===a?i[0]:0:i[0]/2,y:i[1]/2,textVerticalAlign:"middle",textAlign:n?a:"center",text:e,textFont:o.getFont(),textFill:o.getTextColor()}})),t.add(r)}},_getViewData:function(){var t=this.visualMapModel,e=du.map(t.getPieceList(),function(t,e){return{piece:t,indexInModelPieceList:e}}),i=t.get("text"),n=t.get("orient"),a=t.get("inverse");return("horizontal"===n?a:!a)?e.reverse():i&&(i=i.slice().reverse()),{viewPieceList:e,endsText:i}},_createItemSymbol:function(t,e,i){t.add(RP(this.getControllerVisual(e,"symbol"),i[0],i[1],i[2],i[3],this.getControllerVisual(e,"color")))},_onItemClick:function(t){var e=this.visualMapModel,i=e.option,n=du.clone(i.selected),a=e.getSelectedMapKey(t);"single"===i.selectedMode?(n[a]=!0,du.each(n,function(t,e){n[e]=e===a})):n[a]=!n[a],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:n})}});C_.registerPreprocessor(oP);var NP=qp.addCommas,EP=qp.encodeHTML,zP=C_.extendComponentModel({type:"marker",dependencies:["series","grid","polar","geo"],init:function(t,e,i,n){this.mergeDefaultAndTheme(t,i),this.mergeOption(t,i,n.createdBySelf,!0)},isAnimationEnabled:function(){if(Jl.node)return!1;var t=this.__hostSeries;return this.getShallow("animation")&&t&&t.isAnimationEnabled()},mergeOption:function(t,e,i,n){var a=this.constructor,r=this.mainType+"Model";i||e.eachSeries(function(t){var i=t.get(this.mainType,!0),o=t[r];i&&i.data?(o?o.mergeOption(i,e,!0):(n&&Js(i),du.each(i.data,function(t){t instanceof Array?(Js(t[0]),Js(t[1])):Js(t)}),o=new a(i,this,e),du.extend(o,{mainType:this.mainType,seriesIndex:t.seriesIndex,name:t.name,createdBySelf:!0}),o.__hostSeries=t),t[r]=o):t[r]=null},this)},formatTooltip:function(t){var e=this.getData(),i=this.getRawValue(t),n=du.isArray(i)?du.map(i,NP).join(", "):NP(i),a=e.getName(t),r=EP(this.name);return(null!=i||a)&&(r+="
"),a&&(r+=EP(a),null!=i&&(r+=" : ")),null!=i&&(r+=EP(n)),r},getData:function(){return this._data},setData:function(t){this._data=t}});du.mixin(zP,iv);var VP=zP,BP=(VP.extend({type:"markPoint",defaultOption:{zlevel:0,z:5,symbol:"pin",symbolSize:50,tooltip:{trigger:"item"},label:{show:!0,position:"inside"},itemStyle:{borderWidth:2},emphasis:{label:{show:!0}}}}),Fy.isDimensionStacked),GP=du.indexOf,HP=du.curry,FP={min:HP(Qs,"min"),max:HP(Qs,"max"),average:HP(Qs,"average")},WP={dataTransform:function(t,e){var i=t.getData(),n=t.coordinateSystem;if(e&&!function(t){return!isNaN(parseFloat(t.x))&&!isNaN(parseFloat(t.y))}(e)&&!du.isArray(e.coord)&&n){var a=n.dimensions,r=tl(e,i,n,t);if((e=du.clone(e)).type&&FP[e.type]&&r.baseAxis&&r.valueAxis){var o=GP(a,r.baseAxis.dim),s=GP(a,r.valueAxis.dim);e.coord=FP[e.type](i,r.baseDataDim,r.valueDataDim,o,s),e.value=e.coord[s]}else{for(var l=[null!=e.xAxis?e.xAxis:e.radiusAxis,null!=e.yAxis?e.yAxis:e.angleAxis],u=0;u<2;u++)FP[l[u]]&&(l[u]=el(i,i.mapDimension(a[u]),l[u]));e.coord=l}}return e},getAxisInfo:tl,dataFilter:function(t,e){return!(t&&t.containData&&e.coord&&!function(t){return!(isNaN(parseFloat(t.x))&&isNaN(parseFloat(t.y)))}(e))||t.containData(e.coord)},dimValueGetter:function(t,e,i,n){return n<2?t.coord&&t.coord[n]:t.value},numCalculate:el},UP=C_.extendComponentView({type:"marker",init:function(){this.markerGroupMap=du.createHashMap()},render:function(t,e,i){var n=this.markerGroupMap;n.each(function(t){t.__keep=!1});var a=this.type+"Model";e.eachSeries(function(t){var n=t[a];n&&this.renderSeries(t,n,e,i)},this),n.each(function(t){!t.__keep&&this.group.remove(t.group)},this)},renderSeries:function(){}});UP.extend({type:"markPoint",updateTransform:function(t,e,i){e.eachSeries(function(t){var e=t.markPointModel;e&&(il(e.getData(),t,i),this.markerGroupMap.get(t.id).updateLayout(e))},this)},renderSeries:function(t,e,i,n){var a=t.coordinateSystem,r=t.id,o=t.getData(),s=this.markerGroupMap,l=s.get(r)||s.set(r,new U_),u=function(t,e,i){var n;n=t?du.map(t&&t.dimensions,function(t){var i=e.getData().getDimensionInfo(e.getData().mapDimension(t))||{};return du.defaults({name:t},i)}):[{name:"value",type:"float"}];var a=new Ty(n,i),r=du.map(i.get("data"),du.curry(WP.dataTransform,e));return t&&(r=du.filter(r,du.curry(WP.dataFilter,t))),a.initData(r,null,t?WP.dimValueGetter:function(t){return t.value}),a}(a,t,e);e.setData(u),il(e.getData(),t,n),u.each(function(t){var i=u.getItemModel(t),n=i.getShallow("symbolSize");"function"==typeof n&&(n=n(e.getRawValue(t),e.getDataParams(t))),u.setItemVisual(t,{symbolSize:n,color:i.get("itemStyle.color")||o.getVisual("color"),symbol:i.getShallow("symbol")})}),l.updateData(u),this.group.add(l.group),u.eachItemGraphicEl(function(t){t.traverse(function(t){t.dataModel=e})}),l.__keep=!0,l.group.silent=e.get("silent")||t.get("silent")}});C_.registerPreprocessor(function(t){t.markPoint=t.markPoint||{}});VP.extend({type:"markLine",defaultOption:{zlevel:0,z:5,symbol:["circle","arrow"],symbolSize:[8,16],precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end"},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"}});var ZP=function(t,e,i,n){var a=t.getData(),r=n.type;if(!du.isArray(n)&&("min"===r||"max"===r||"average"===r||"median"===r||null!=n.xAxis||null!=n.yAxis)){var o,s;if(null!=n.yAxis||null!=n.xAxis)o=null!=n.yAxis?"y":"x",e.getAxis(o),s=du.retrieve(n.yAxis,n.xAxis);else{var l=WP.getAxisInfo(n,a,e,t);o=l.valueDataDim,l.valueAxis,s=WP.numCalculate(a,o,r)}var u="x"===o?0:1,h=1-u,c=du.clone(n),d={};c.type=null,c.coord=[],d.coord=[],c.coord[h]=-1/0,d.coord[h]=1/0;var f=i.get("precision");f>=0&&"number"==typeof s&&(s=+s.toFixed(Math.min(f,20))),c.coord[u]=d.coord[u]=s,n=[c,d,{type:r,valueIndex:n.valueIndex,value:s}]}return n=[WP.dataTransform(t,n[0]),WP.dataTransform(t,n[1]),du.extend({},n[2])],n[2].type=n[2].type||"",du.merge(n[2],n[0]),du.merge(n[2],n[1]),n};UP.extend({type:"markLine",updateTransform:function(t,e,i){e.eachSeries(function(t){var e=t.markLineModel;if(e){var n=e.getData(),a=e.__from,r=e.__to;a.each(function(e){rl(a,e,!0,t,i),rl(r,e,!1,t,i)}),n.each(function(t){n.setItemLayout(t,[a.getItemLayout(t),r.getItemLayout(t)])}),this.markerGroupMap.get(t.id).updateLayout()}},this)},renderSeries:function(t,e,i,n){function a(e,i,a){var r=e.getItemModel(i);rl(e,i,a,t,n),e.setItemVisual(i,{symbolSize:r.get("symbolSize")||g[a?0:1],symbol:r.get("symbol",!0)||p[a?0:1],color:r.get("itemStyle.color")||s.getVisual("color")})}var r=t.coordinateSystem,o=t.id,s=t.getData(),l=this.markerGroupMap,u=l.get(o)||l.set(o,new rI);this.group.add(u.group);var h=function(t,e,i){var n;n=t?du.map(t&&t.dimensions,function(t){var i=e.getData().getDimensionInfo(e.getData().mapDimension(t))||{};return du.defaults({name:t},i)}):[{name:"value",type:"float"}];var a=new Ty(n,i),r=new Ty(n,i),o=new Ty([],i),s=du.map(i.get("data"),du.curry(ZP,e,t,i));t&&(s=du.filter(s,du.curry(function(t,e){if("cartesian2d"===t.type){var i=e[0].coord,n=e[1].coord;if(i&&n&&(al(1,i,n,t)||al(0,i,n,t)))return!0}return WP.dataFilter(t,e[0])&&WP.dataFilter(t,e[1])},t)));var l=t?WP.dimValueGetter:function(t){return t.value};return a.initData(du.map(s,function(t){return t[0]}),null,l),r.initData(du.map(s,function(t){return t[1]}),null,l),o.initData(du.map(s,function(t){return t[2]})),o.hasItemOption=!0,{from:a,to:r,line:o}}(r,t,e),c=h.from,d=h.to,f=h.line;e.__from=c,e.__to=d,e.setData(f);var p=e.get("symbol"),g=e.get("symbolSize");du.isArray(p)||(p=[p,p]),"number"==typeof g&&(g=[g,g]),h.from.each(function(t){a(c,t,!0),a(d,t,!1)}),f.each(function(t){var e=f.getItemModel(t).get("lineStyle.color");f.setItemVisual(t,{color:e||c.getItemVisual(t,"color")}),f.setItemLayout(t,[c.getItemLayout(t),d.getItemLayout(t)]),f.setItemVisual(t,{fromSymbolSize:c.getItemVisual(t,"symbolSize"),fromSymbol:c.getItemVisual(t,"symbol"),toSymbolSize:d.getItemVisual(t,"symbolSize"),toSymbol:d.getItemVisual(t,"symbol")})}),u.updateData(f),h.line.eachItemGraphicEl(function(t,i){t.traverse(function(t){t.dataModel=e})}),u.__keep=!0,u.group.silent=e.get("silent")||t.get("silent")}});C_.registerPreprocessor(function(t){t.markLine=t.markLine||{}});VP.extend({type:"markArea",defaultOption:{zlevel:0,z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}}});var jP=function(t,e,i,n){var a=WP.dataTransform(t,n[0]),r=WP.dataTransform(t,n[1]),o=du.retrieve,s=a.coord,l=r.coord;s[0]=o(s[0],-1/0),s[1]=o(s[1],-1/0),l[0]=o(l[0],1/0),l[1]=o(l[1],1/0);var u=du.mergeAll([{},a,r]);return u.coord=[a.coord,r.coord],u.x0=a.x,u.y0=a.y,u.x1=r.x,u.y1=r.y,u},YP=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]];UP.extend({type:"markArea",updateTransform:function(t,e,i){e.eachSeries(function(t){var e=t.markAreaModel;if(e){var n=e.getData();n.each(function(e){var a=du.map(YP,function(a){return ll(n,e,a,t,i)});n.setItemLayout(e,a);n.getItemGraphicEl(e).setShape("points",a)})}},this)},renderSeries:function(t,e,i,n){var a=t.coordinateSystem,r=t.id,o=t.getData(),s=this.markerGroupMap,l=s.get(r)||s.set(r,{group:new Dp.Group});this.group.add(l.group),l.__keep=!0;var u=function(t,e,i){var n,a;t?(n=du.map(t&&t.dimensions,function(t){var i=e.getData(),n=i.getDimensionInfo(i.mapDimension(t))||{};return du.defaults({name:t},n)}),a=new Ty(du.map(["x0","y0","x1","y1"],function(t,e){return{name:t,type:n[e%2].type}}),i)):a=new Ty(n=[{name:"value",type:"float"}],i);var r=du.map(i.get("data"),du.curry(jP,e,t,i));t&&(r=du.filter(r,du.curry(function(t,e){var i=e.coord[0],n=e.coord[1];return!("cartesian2d"!==t.type||!i||!n||!sl(1,i,n)&&!sl(0,i,n))||WP.dataFilter(t,{coord:i,x:e.x0,y:e.y0})||WP.dataFilter(t,{coord:n,x:e.x1,y:e.y1})},t)));var o=t?function(t,e,i,n){return t.coord[Math.floor(n/2)][n%2]}:function(t){return t.value};return a.initData(r,null,o),a.hasItemOption=!0,a}(a,t,e);e.setData(u),u.each(function(e){u.setItemLayout(e,du.map(YP,function(i){return ll(u,e,i,t,n)})),u.setItemVisual(e,{color:o.getVisual("color")})}),u.diff(l.__data).add(function(t){var e=new Dp.Polygon({shape:{points:u.getItemLayout(t)}});u.setItemGraphicEl(t,e),l.group.add(e)}).update(function(t,i){var n=l.__data.getItemGraphicEl(i);Dp.updateProps(n,{shape:{points:u.getItemLayout(t)}},e,t),l.group.add(n),u.setItemGraphicEl(t,n)}).remove(function(t){var e=l.__data.getItemGraphicEl(t);l.group.remove(e)}).execute(),u.eachItemGraphicEl(function(t,i){var n=u.getItemModel(i),a=n.getModel("label"),r=n.getModel("emphasis.label"),o=u.getItemVisual(i,"color");t.useStyle(du.defaults(n.getModel("itemStyle").getItemStyle(),{fill:Wu.modifyAlpha(o,.4),stroke:o})),t.hoverStyle=n.getModel("emphasis.itemStyle").getItemStyle(),Dp.setLabelStyle(t.style,t.hoverStyle,a,r,{labelFetcher:e,labelDataIndex:i,defaultText:u.getName(i)||"",isRectText:!0,autoColor:o}),Dp.setHoverStyle(t,{}),t.dataModel=e}),l.__data=u,l.group.silent=e.get("silent")||t.get("silent")}}),C_.registerPreprocessor(function(t){t.markArea=t.markArea||{}});var XP=function(t){var e=t&&t.timeline;du.isArray(e)||(e=e?[e]:[]),du.each(e,function(t){t&&function(t){var e=t.type,i={number:"value",time:"time"};if(i[e]&&(t.axisType=i[e],delete t.type),ul(t),hl(t,"controlPosition")){var n=t.controlStyle||(t.controlStyle={});hl(n,"position")||(n.position=t.controlPosition),"none"!==n.position||hl(n,"show")||(n.show=!1,delete n.position),delete t.controlPosition}du.each(t.data||[],function(t){du.isObject(t)&&!du.isArray(t)&&(!hl(t,"value")&&hl(t,"name")&&(t.value=t.name),ul(t))})}(t)})};ug.registerSubTypeDefaulter("timeline",function(){return"slider"}),C_.registerAction({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},function(t,e){var i=e.getComponent("timeline");return i&&null!=t.currentIndex&&(i.setCurrentIndex(t.currentIndex),!i.get("loop",!0)&&i.isIndexMax()&&i.setPlayState(!1)),e.resetOption("timeline"),du.defaults({currentIndex:i.option.currentIndex},t)}),C_.registerAction({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},function(t,e){var i=e.getComponent("timeline");i&&null!=t.playState&&i.setPlayState(t.playState)});var qP=ug.extend({type:"timeline",layoutMode:"box",defaultOption:{zlevel:0,z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]},init:function(t,e,i){this._data,this._names,this.mergeDefaultAndTheme(t,i),this._initData()},mergeOption:function(t){qP.superApply(this,"mergeOption",arguments),this._initData()},setCurrentIndex:function(t){null==t&&(t=this.option.currentIndex);var e=this._data.count();this.option.loop?t=(t%e+e)%e:(t>=e&&(t=e-1),t<0&&(t=0)),this.option.currentIndex=t},getCurrentIndex:function(){return this.option.currentIndex},isIndexMax:function(){return this.getCurrentIndex()>=this._data.count()-1},setPlayState:function(t){this.option.autoPlay=!!t},getPlayState:function(){return!!this.option.autoPlay},_initData:function(){var t=this.option,e=t.data||[],i=t.axisType,n=this._names=[];if("category"===i){var a=[];du.each(e,function(t,e){var i,r=Wc.getDataItemValue(t);du.isObject(t)?(i=du.clone(t)).value=e:i=e,a.push(i),du.isString(r)||null!=r&&!isNaN(r)||(r=""),n.push(r+"")}),e=a}var r={category:"ordinal",time:"time"}[i]||"number";(this._data=new Ty([{name:"value",type:r}],this)).initData(e,n)},getData:function(){return this._data},getCategories:function(){if("category"===this.get("axisType"))return this._names.slice()}}),$P=qP.extend({type:"timeline.slider",defaultOption:{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"emptyCircle",symbolSize:10,lineStyle:{show:!0,width:2,color:"#304654"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#304654"},itemStyle:{color:"#304654",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:13,color:"#c23531",borderWidth:5,borderColor:"rgba(194,53,49, 0.5)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:22,itemGap:12,position:"left",playIcon:"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",stopIcon:"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",nextIcon:"path://M18.6,50.8l22.5-22.5c0.2-0.2,0.3-0.4,0.3-0.7c0-0.3-0.1-0.5-0.3-0.7L18.7,4.4c-0.1-0.1-0.2-0.3-0.2-0.5 c0-0.4,0.3-0.8,0.8-0.8c0.2,0,0.5,0.1,0.6,0.3l23.5,23.5l0,0c0.2,0.2,0.3,0.4,0.3,0.7c0,0.3-0.1,0.5-0.3,0.7l-0.1,0.1L19.7,52 c-0.1,0.1-0.3,0.2-0.5,0.2c-0.4,0-0.8-0.3-0.8-0.8C18.4,51.2,18.5,51,18.6,50.8z",prevIcon:"path://M43,52.8L20.4,30.3c-0.2-0.2-0.3-0.4-0.3-0.7c0-0.3,0.1-0.5,0.3-0.7L42.9,6.4c0.1-0.1,0.2-0.3,0.2-0.5 c0-0.4-0.3-0.8-0.8-0.8c-0.2,0-0.5,0.1-0.6,0.3L18.3,28.8l0,0c-0.2,0.2-0.3,0.4-0.3,0.7c0,0.3,0.1,0.5,0.3,0.7l0.1,0.1L41.9,54 c0.1,0.1,0.3,0.2,0.5,0.2c0.4,0,0.8-0.3,0.8-0.8C43.2,53.2,43.1,53,43,52.8z",color:"#304654",borderColor:"#304654",borderWidth:1},emphasis:{label:{show:!0,color:"#c23531"},itemStyle:{color:"#c23531"},controlStyle:{color:"#c23531",borderColor:"#c23531",borderWidth:2}},data:[]}});du.mixin($P,iv);var KP=wv.extend({type:"timeline"}),JP=function(t,e,i,n){c_.call(this,t,e,i),this.type=n||"value",this.model=null};JP.prototype={constructor:JP,getLabelModel:function(){return this.model.getModel("label")},isHorizontal:function(){return"horizontal"===this.model.get("orient")}},du.inherits(JP,c_);var QP=JP,tk=Fx.createSymbol,ek=qp.encodeHTML,ik=du.bind,nk=du.each,ak=Math.PI;KP.extend({type:"timeline.slider",init:function(t,e){this.api=e,this._axis,this._viewRect,this._timer,this._currentPointer,this._mainGroup,this._labelGroup},render:function(t,e,i,n){if(this.model=t,this.api=i,this.ecModel=e,this.group.removeAll(),t.get("show",!0)){var a=this._layout(t,i),r=this._createGroup("mainGroup"),o=this._createGroup("labelGroup"),s=this._axis=this._createAxis(a,t);t.formatTooltip=function(t){return ek(s.scale.getLabel(t))},nk(["AxisLine","AxisTick","Control","CurrentPointer"],function(e){this["_render"+e](a,r,s,t)},this),this._renderAxisLabel(a,o,s,t),this._position(a,t)}this._doPlayStop()},remove:function(){this._clearTimer(),this.group.removeAll()},dispose:function(){this._clearTimer()},_layout:function(t,e){var i=t.get("label.position"),n=t.get("orient"),a=function(t,e){return ng.getLayoutRect(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()},t.get("padding"))}(t,e);null==i||"auto"===i?i="horizontal"===n?a.y+a.height/2=0||"+"===i?"left":"right"},o={horizontal:i>=0||"+"===i?"top":"bottom",vertical:"middle"},s={horizontal:0,vertical:ak/2},l="vertical"===n?a.height:a.width,u=t.getModel("controlStyle"),h=u.get("show",!0),c=h?u.get("itemSize"):0,d=h?u.get("itemGap"):0,f=c+d,p=t.get("label.rotate")||0;p=p*ak/180;var g,m,v,y,x=u.get("position",!0),_=h&&u.get("showPlayBtn",!0),b=h&&u.get("showPrevBtn",!0),w=h&&u.get("showNextBtn",!0),S=0,M=l;return"left"===x||"bottom"===x?(_&&(g=[0,0],S+=f),b&&(m=[S,0],S+=f),w&&(v=[M-c,0],M-=f)):(_&&(g=[M-c,0],M-=f),b&&(m=[0,0],S+=f),w&&(v=[M-c,0],M-=f)),y=[S,M],t.get("inverse")&&y.reverse(),{viewRect:a,mainLength:l,orient:n,rotation:s[n],labelRotation:p,labelPosOpt:i,labelAlign:t.get("label.align")||r[n],labelBaseline:t.get("label.verticalAlign")||t.get("label.baseline")||o[n],playPosition:g,prevBtnPosition:m,nextBtnPosition:v,axisExtent:y,controlSize:c,controlGap:d}},_position:function(t,e){function i(t){var e=t.position;t.origin=[c[0][0]-e[0],c[1][0]-e[1]]}function n(t){return[[t.x,t.x+t.width],[t.y,t.y+t.height]]}function a(t,e,i,n,a){t[n]+=i[n][a]-e[n][a]}var r=this._mainGroup,o=this._labelGroup,s=t.viewRect;if("vertical"===t.orient){var l=Mu.create(),u=s.x,h=s.y+s.height;Mu.translate(l,l,[-u,-h]),Mu.rotate(l,l,-ak/2),Mu.translate(l,l,[u,h]),(s=s.clone()).applyTransform(l)}var c=n(s),d=n(r.getBoundingRect()),f=n(o.getBoundingRect()),p=r.position,g=o.position;g[0]=p[0]=c[0][0];var m=t.labelPosOpt;if(isNaN(m)){a(p,d,c,1,v="+"===m?0:1),a(g,f,c,1,1-v)}else{var v=m>=0?0:1;a(p,d,c,1,v),g[1]=p[1]+m}r.attr("position",p),o.attr("position",g),r.rotation=o.rotation=t.rotation,i(r),i(o)},_createAxis:function(t,e){var i=e.getData(),n=e.get("axisType"),a=kx.createScaleByModel(e,n);a.getTicks=function(){return i.mapArray(["value"],function(t){return t})};var r=i.getDataExtent("value");a.setExtent(r[0],r[1]),a.niceTicks();var o=new QP("value",a,t.axisExtent,n);return o.model=e,o},_createGroup:function(t){var e=this["_"+t]=new Dp.Group;return this.group.add(e),e},_renderAxisLine:function(t,e,i,n){var a=i.getExtent();n.get("lineStyle.show")&&e.add(new Dp.Line({shape:{x1:a[0],y1:0,x2:a[1],y2:0},style:du.extend({lineCap:"round"},n.getModel("lineStyle").getLineStyle()),silent:!0,z2:1}))},_renderAxisTick:function(t,e,i,n){var a=n.getData(),r=i.scale.getTicks();nk(r,function(t){var r=i.dataToCoord(t),o=a.getItemModel(t),s=o.getModel("itemStyle"),l=o.getModel("emphasis.itemStyle"),u={position:[r,0],onclick:ik(this._changeTimeline,this,t)},h=cl(o,s,e,u);Dp.setHoverStyle(h,l.getItemStyle()),o.get("tooltip")?(h.dataIndex=t,h.dataModel=n):h.dataIndex=h.dataModel=null},this)},_renderAxisLabel:function(t,e,i,n){if(i.getLabelModel().get("show")){var a=n.getData(),r=i.getViewLabels();nk(r,function(n){var r=n.tickValue,o=a.getItemModel(r),s=o.getModel("label"),l=o.getModel("emphasis.label"),u=i.dataToCoord(n.tickValue),h=new Dp.Text({position:[u,0],rotation:t.labelRotation-t.rotation,onclick:ik(this._changeTimeline,this,r),silent:!1});Dp.setTextStyle(h.style,s,{text:n.formattedLabel,textAlign:t.labelAlign,textVerticalAlign:t.labelBaseline}),e.add(h),Dp.setHoverStyle(h,Dp.setTextStyle({},l))},this)}},_renderControl:function(t,e,i,n){function a(t,i,a,h){if(t){var c=function(t,e,i,n){return Dp.makePath(t.get(e).replace(/^path:\/\//,""),du.clone(n||{}),new ch(i[0],i[1],i[2],i[3]),"center")}(n,i,u,{position:t,origin:[r/2,0],rotation:h?-o:0,rectHover:!0,style:s,onclick:a});e.add(c),Dp.setHoverStyle(c,l)}}var r=t.controlSize,o=t.rotation,s=n.getModel("controlStyle").getItemStyle(),l=n.getModel("emphasis.controlStyle").getItemStyle(),u=[0,-r/2,r,r],h=n.getPlayState(),c=n.get("inverse",!0);a(t.nextBtnPosition,"controlStyle.nextIcon",ik(this._changeTimeline,this,c?"-":"+")),a(t.prevBtnPosition,"controlStyle.prevIcon",ik(this._changeTimeline,this,c?"+":"-")),a(t.playPosition,"controlStyle."+(h?"stopIcon":"playIcon"),ik(this._handlePlayClick,this,!h),!0)},_renderCurrentPointer:function(t,e,i,n){var a=n.getData(),r=n.getCurrentIndex(),o=a.getItemModel(r).getModel("checkpointStyle"),s=this,l={onCreate:function(t){t.draggable=!0,t.drift=ik(s._handlePointerDrag,s),t.ondragend=ik(s._handlePointerDragend,s),dl(t,r,i,n,!0)},onUpdate:function(t){dl(t,r,i,n)}};this._currentPointer=cl(o,o,this._mainGroup,{},this._currentPointer,l)},_handlePlayClick:function(t){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:t,from:this.uid})},_handlePointerDrag:function(t,e,i){this._clearTimer(),this._pointerChangeTimeline([i.offsetX,i.offsetY])},_handlePointerDragend:function(t){this._pointerChangeTimeline([t.offsetX,t.offsetY],!0)},_pointerChangeTimeline:function(t,e){var i=this._toAxisCoord(t)[0],n=this._axis,a=Up.asc(n.getExtent().slice());i>a[1]&&(i=a[1]),ii.getHeight()&&(n.textPosition="top",l=!0);var u=l?-5-a.height:o+8;s+a.width/2>i.getWidth()?(n.textPosition=["100%",u],n.textAlign="right"):s-a.width/2<0&&(n.textPosition=[0,u],n.textAlign="left")}})}},updateView:function(t,e,i,n){du.each(this._features,function(t){t.updateView&&t.updateView(t.model,e,i,n)})},remove:function(t,e){du.each(this._features,function(i){i.remove&&i.remove(t,e)}),this.group.removeAll()},dispose:function(t,e){du.each(this._features,function(i){i.dispose&&i.dispose(t,e)})}}),zv.toolbox.saveAsImage);fl.defaultOption={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:ok.title,type:"png",name:"",excludeComponents:["toolbox"],pixelRatio:1,lang:ok.lang.slice()},fl.prototype.unusable=!Jl.canvasSupported;fl.prototype.onclick=function(t,e){var i=this.model,n=i.get("name")||t.get("title.0.text")||"echarts",a=document.createElement("a"),r=i.get("type",!0)||"png";a.download=n+"."+r,a.target="_blank";var o=e.getConnectedDataURL({type:r,backgroundColor:i.get("backgroundColor",!0)||t.get("backgroundColor")||"#fff",excludeComponents:i.get("excludeComponents"),pixelRatio:i.get("pixelRatio")});if(a.href=o,"function"!=typeof MouseEvent||Jl.browser.ie||Jl.browser.edge)if(window.navigator.msSaveOrOpenBlob){for(var s=atob(o.split(",")[1]),l=s.length,u=new Uint8Array(l);l--;)u[l]=s.charCodeAt(l);var h=new Blob([u]);window.navigator.msSaveOrOpenBlob(h,n+"."+r)}else{var c=i.get("lang"),d='';window.open().document.write(d)}else{var f=new MouseEvent("click",{view:window,bubbles:!0,cancelable:!1});a.dispatchEvent(f)}},wL.register("saveAsImage",fl);var sk=zv.toolbox.magicType;pl.defaultOption={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z",tiled:"M2.3,2.2h22.8V25H2.3V2.2z M35,2.2h22.8V25H35V2.2zM2.3,35h22.8v22.8H2.3V35z M35,35h22.8v22.8H35V35z"},title:du.clone(sk.title),option:{},seriesIndex:{}};var lk=pl.prototype;lk.getIcons=function(){var t=this.model,e=t.get("icon"),i={};return du.each(t.get("type"),function(t){e[t]&&(i[t]=e[t])}),i};var uk={line:function(t,e,i,n){if("bar"===t)return du.merge({id:e,type:"line",data:i.get("data"),stack:i.get("stack"),markPoint:i.get("markPoint"),markLine:i.get("markLine")},n.get("option.line")||{},!0)},bar:function(t,e,i,n){if("line"===t)return du.merge({id:e,type:"bar",data:i.get("data"),stack:i.get("stack"),markPoint:i.get("markPoint"),markLine:i.get("markLine")},n.get("option.bar")||{},!0)},stack:function(t,e,i,n){if("line"===t||"bar"===t)return du.merge({id:e,stack:"__ec_magicType_stack__"},n.get("option.stack")||{},!0)},tiled:function(t,e,i,n){if("line"===t||"bar"===t)return du.merge({id:e,stack:""},n.get("option.tiled")||{},!0)}},hk=[["line","bar"],["stack","tiled"]];lk.onclick=function(t,e,i){var n=this.model,a=n.get("seriesIndex."+i);if(uk[i]){var r={series:[]};du.each(hk,function(t){du.indexOf(t,i)>=0&&du.each(t,function(t){n.setIconStatus(t,"normal")})}),n.setIconStatus(i,"emphasis"),t.eachComponent({mainType:"series",query:null==a?null:{seriesIndex:a}},function(e){var a=e.subType,o=e.id,s=uk[i](a,o,e,n);s&&(du.defaults(s,e.option),r.series.push(s));var l=e.coordinateSystem;if(l&&"cartesian2d"===l.type&&("line"===i||"bar"===i)){var u=l.getAxesByScale("ordinal")[0];if(u){var h=u.dim+"Axis",c=t.queryComponents({mainType:h,index:e.get(name+"Index"),id:e.get(name+"Id")})[0].componentIndex;r[h]=r[h]||[];for(var d=0;d<=c;d++)r[h][c]=r[h][c]||{};r[h][c].boundaryGap="bar"===i}}}),e.dispatchAction({type:"changeMagicType",currentType:i,newOption:r})}},C_.registerAction({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(t,e){e.mergeOption(t.newOption)}),wL.register("magicType",pl);var ck=zv.toolbox.dataView,dk=new Array(60).join("-"),fk="\t",pk=new RegExp("["+fk+"]+","g");ml.defaultOption={show:!0,readOnly:!1,optionToContent:null,contentToOption:null,icon:"M17.5,17.3H33 M17.5,17.3H33 M45.4,29.5h-28 M11.5,2v56H51V14.8L38.4,2H11.5z M38.4,2.2v12.7H51 M45.4,41.7h-28",title:du.clone(ck.title),lang:du.clone(ck.lang),backgroundColor:"#fff",textColor:"#000",textareaColor:"#fff",textareaBorderColor:"#333",buttonColor:"#c23531",buttonTextColor:"#fff"},ml.prototype.onclick=function(t,e){function i(){n.removeChild(r),x._dom=null}var n=e.getDom(),a=this.model;this._dom&&n.removeChild(this._dom);var r=document.createElement("div");r.style.cssText="position:absolute;left:5px;top:5px;bottom:5px;right:5px;",r.style.backgroundColor=a.get("backgroundColor")||"#fff";var o=document.createElement("h4"),s=a.get("lang")||[];o.innerHTML=s[0]||a.get("title"),o.style.cssText="margin: 10px 20px;",o.style.color=a.get("textColor");var l=document.createElement("div"),u=document.createElement("textarea");l.style.cssText="display:block;width:100%;overflow:auto;";var h=a.get("optionToContent"),c=a.get("contentToOption"),d=function(t){var e=function(t){var e={},i=[],n=[];return t.eachRawSeries(function(t){var a=t.coordinateSystem;if(!a||"cartesian2d"!==a.type&&"polar"!==a.type)i.push(t);else{var r=a.getBaseAxis();if("category"===r.type){var o=r.dim+"_"+r.index;e[o]||(e[o]={categoryAxis:r,valueAxis:a.getOtherAxis(r),series:[]},n.push({axisDim:r.dim,axisIndex:r.index})),e[o].series.push(t)}else i.push(t)}}),{seriesGroupByCategoryAxis:e,other:i,meta:n}}(t);return{value:du.filter([function(t){var e=[];return du.each(t,function(t,i){var n=t.categoryAxis,a=t.valueAxis.dim,r=[" "].concat(du.map(t.series,function(t){return t.name})),o=[n.model.getCategories()];du.each(t.series,function(t){o.push(t.getRawData().mapArray(a,function(t){return t}))});for(var s=[r.join(fk)],l=0;l=0)return!0}(t)){var a=function(e){for(var i=t.split(/\n+/g),n=gl(i.shift()).split(pk),a=[],r=du.map(n,function(t){return{name:t,data:[]}}),o=0;o=0&&!i[a][n];a--);if(a<0){var r=t.queryComponents({mainType:"dataZoom",subType:"select",id:n})[0];if(r){var o=r.getPercentRange();i[0][n]={dataZoomId:n,start:o[0],end:o[1]}}}}),i.push(e)},pop:function(t){var e=vl(t),i=e[e.length-1];e.length>1&&e.pop();var n={};return gk(i,function(t,i){for(var a=e.length-1;a>=0;a--)if(t=e[a][i]){n[i]=t;break}}),n},clear:function(t){t[mk]=null},count:function(t){return vl(t).length}},yk=(GL.extend({type:"dataZoom.select"}),HL.extend({type:"dataZoom.select"}),zv.toolbox.dataZoom),xk=du.each,_k="\0_ec_\0toolbox-dataZoom_";yl.defaultOption={show:!0,icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:du.clone(yk.title)};var bk=yl.prototype;bk.render=function(t,e,i,n){this.model=t,this.ecModel=e,this.api=i,function(t,e,i,n,a){var r=i._isZoomActive;n&&"takeGlobalCursor"===n.type&&(r="dataZoomSelect"===n.key&&n.dataZoomSelectActive),i._isZoomActive=r,t.setIconStatus("zoom",r?"emphasis":"normal");var o=new pL(xl(t.option),e,{include:["grid"]});i._brushController.setPanels(o.makePanelOpts(a,function(t){return t.xAxisDeclared&&!t.yAxisDeclared?"lineX":!t.xAxisDeclared&&t.yAxisDeclared?"lineY":"rect"})).enableBrush(!!r&&{brushType:"auto",brushStyle:{lineWidth:0,fill:"rgba(0,0,0,0.2)"}})}(t,e,this,n,i),function(t,e){t.setIconStatus("back",vk.count(e)>1?"emphasis":"normal")}(t,e)},bk.onclick=function(t,e,i){wk[i].call(this)},bk.remove=function(t,e){this._brushController.unmount()},bk.dispose=function(t,e){this._brushController.dispose()};var wk={zoom:function(){var t=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:t})},back:function(){this._dispatchZoomAction(vk.pop(this.ecModel))}};bk._onBrush=function(t,e){function i(t,e,i){var r=e.getAxis(t),o=r.model,s=function(t,e,i){var n;return i.eachComponent({mainType:"dataZoom",subType:"select"},function(i){i.getAxisModel(t,e.componentIndex)&&(n=i)}),n}(t,o,a),l=s.findRepresentativeAxisProxy(o).getMinMaxSpan();null==l.minValueSpan&&null==l.maxValueSpan||(i=KI(0,i.slice(),r.scale.getExtent(),0,l.minValueSpan,l.maxValueSpan)),s&&(n[s.id]={dataZoomId:s.id,startValue:i[0],endValue:i[1]})}if(e.isEnd&&t.length){var n={},a=this.ecModel;this._brushController.updateCovers([]);new pL(xl(this.model.option),a,{include:["grid"]}).matchOutputRanges(t,a,function(t,e,n){if("cartesian2d"===n.type){var a=t.brushType;"rect"===a?(i("x",n,e[0]),i("y",n,e[1])):i({lineX:"x",lineY:"y"}[a],n,e)}}),vk.push(a,n),this._dispatchZoomAction(n)}},bk._dispatchZoomAction=function(t){var e=[];xk(t,function(t,i){e.push(du.clone(t))}),e.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:e})},wL.register("dataZoom",yl),C_.registerPreprocessor(function(t){function e(e,n){if(n){var a=e+"Index",r=n[a];null==r||"all"==r||du.isArray(r)||(r=!1===r||"none"===r?[]:[r]),function(e,i){var n=t[e];du.isArray(n)||(n=n?[n]:[]);xk(n,i)}(e,function(t,n){if(null==r||"all"==r||-1!==du.indexOf(r,n)){var o={type:"select",$fromToolbox:!0,id:_k+e+n};o[a]=n,i.push(o)}})}}if(t){var i=t.dataZoom||(t.dataZoom=[]);du.isArray(i)||(t.dataZoom=i=[i]);var n=t.toolbox;if(n&&(du.isArray(n)&&(n=n[0]),n&&n.feature)){var a=n.feature.dataZoom;e("xAxis",a),e("yAxis",a)}}});var Sk=zv.toolbox.restore;_l.defaultOption={show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:Sk.title};_l.prototype.onclick=function(t,e,i){vk.clear(t),e.dispatchAction({type:"restore",from:this.uid})},wL.register("restore",_l),C_.registerAction({type:"restore",event:"restore",update:"prepareAndUpdate"},function(t,e){e.resetOption("recreate")});var Mk,Ik="urn:schemas-microsoft-com:vml",Ak="undefined"==typeof window?null:window,Tk=!1,Dk=Ak&&Ak.document;if(Dk&&!Jl.canvasSupported)try{!Dk.namespaces.zrvml&&Dk.namespaces.add("zrvml",Ik),Mk=function(t){return Dk.createElement("')}}catch(t){Mk=function(t){return Dk.createElement("<"+t+' xmlns="'+Ik+'" class="zrvml">')}}var Ck={doc:Dk,createNode:function(t){return Mk(t)},initVML:function(){if(!Tk&&Dk){Tk=!0;var t=Dk.styleSheets;t.length<31?Dk.createStyleSheet().addRule(".zrvml","behavior:url(#default#VML)"):t[0].addRule(".zrvml","behavior:url(#default#VML)")}}},Lk=pu.applyTransform,Pk=Ed.CMD,kk=Math.round,Ok=Math.sqrt,Rk=Math.abs,Nk=Math.cos,Ek=Math.sin,zk=Math.max;if(!Jl.canvasSupported){var Vk=21600,Bk=Vk/2,Gk=function(t){t.style.cssText="position:absolute;left:0;top:0;width:1px;height:1px;",t.coordsize=Vk+","+Vk,t.coordorigin="0,0"},Hk=function(t,e,i){return"rgb("+[t,e,i].join(",")+")"},Fk=function(t,e){e&&t&&e.parentNode!==t&&t.appendChild(e)},Wk=function(t,e){e&&t&&e.parentNode===t&&t.removeChild(e)},Uk=function(t,e,i){return 1e5*(parseFloat(t)||0)+1e3*(parseFloat(e)||0)+i},Zk=function(t,e){return"string"==typeof t?t.lastIndexOf("%")>=0?parseFloat(t)/100*e:parseFloat(t):t},jk=function(t,e,i){var n=Wu.parse(e);i=+i,isNaN(i)&&(i=1),n&&(t.color=Hk(n[0],n[1],n[2]),t.opacity=i*n[3])},Yk=function(t,e,i,n){var a="fill"==e,r=t.getElementsByTagName(e)[0];null!=i[e]&&"none"!==i[e]&&(a||!a&&i.lineWidth)?(t[a?"filled":"stroked"]="true",i[e]instanceof Qf&&Wk(t,r),r||(r=Ck.createNode(e)),a?function(t,e,i){var n=e.fill;if(null!=n)if(n instanceof Qf){var a,r=0,o=[0,0],s=0,l=1,u=i.getBoundingRect(),h=u.width,c=u.height;if("linear"===n.type){a="gradient";var d=i.transform,f=[n.x*h,n.y*c],p=[n.x2*h,n.y2*c];d&&(Lk(f,f,d),Lk(p,p,d));var g=p[0]-f[0],m=p[1]-f[1];(r=180*Math.atan2(g,m)/Math.PI)<0&&(r+=360),r<1e-6&&(r=0)}else{a="gradientradial";var f=[n.x*h,n.y*c],d=i.transform,v=i.scale,y=h,x=c;o=[(f[0]-u.x)/y,(f[1]-u.y)/x],d&&Lk(f,f,d),y/=v[0]*Vk,x/=v[1]*Vk;var _=zk(y,x);s=0/_,l=2*n.r/_-s}var b=n.colorStops.slice();b.sort(function(t,e){return t.offset-e.offset});for(var w=b.length,S=[],M=[],I=0;I=2){var D=S[0][0],C=S[1][0],L=S[0][1]*e.opacity,P=S[1][1]*e.opacity;t.type=a,t.method="none",t.focus="100%",t.angle=r,t.color=D,t.color2=C,t.colors=M.join(","),t.opacity=P,t.opacity2=L}"radial"===a&&(t.focusposition=o.join(","))}else jk(t,n,e.opacity)}(r,i,n):function(t,e){null!=e.lineDash&&(t.dashstyle=e.lineDash.join(" ")),null==e.stroke||e.stroke instanceof Qf||jk(t,e.stroke,e.opacity)}(r,i),Fk(t,r)):(t[a?"filled":"stroked"]="false",Wk(t,r))},Xk=[[],[],[]];af.prototype.brushVML=function(t){var e=this.style,i=this._vmlEl;i||(i=Ck.createNode("shape"),Gk(i),this._vmlEl=i),Yk(i,"fill",e,this),Yk(i,"stroke",e,this);var n=this.transform,a=null!=n,r=i.getElementsByTagName("stroke")[0];if(r){var o=e.lineWidth;if(a&&!e.strokeNoScale){var s=n[0]*n[3]-n[1]*n[2];o*=Ok(Rk(s))}r.weight=o+"px"}var l=this.path||(this.path=new Ed);this.__dirtyPath&&(l.beginPath(),this.buildPath(l,this.shape),l.toStatic(),this.__dirtyPath=!1),i.path=function(t,e){var i,n,a,r,o,s,l=Pk.M,u=Pk.C,h=Pk.L,c=Pk.A,d=Pk.Q,f=[],p=t.data,g=t.len();for(r=0;r.01?O&&(R+=.0125):Math.abs(N-D)<1e-4?O&&RT?x-=.0125:x+=.0125:O&&ND?y+=.0125:y-=.0125),f.push(E,kk(((T-C)*M+w)*Vk-Bk),",",kk(((D-L)*I+S)*Vk-Bk),",",kk(((T+C)*M+w)*Vk-Bk),",",kk(((D+L)*I+S)*Vk-Bk),",",kk((R*M+w)*Vk-Bk),",",kk((N*I+S)*Vk-Bk),",",kk((y*M+w)*Vk-Bk),",",kk((x*I+S)*Vk-Bk)),o=y,s=x;break;case Pk.R:var z=Xk[0],V=Xk[1];z[0]=p[r++],z[1]=p[r++],V[0]=z[0]+p[r++],V[1]=z[1]+p[r++],e&&(Lk(z,z,e),Lk(V,V,e)),z[0]=kk(z[0]*Vk-Bk),V[0]=kk(V[0]*Vk-Bk),z[1]=kk(z[1]*Vk-Bk),V[1]=kk(V[1]*Vk-Bk),f.push(" m ",z[0],",",z[1]," l ",V[0],",",z[1]," l ",V[0],",",V[1]," l ",z[0],",",V[1]);break;case Pk.Z:f.push(" x ")}if(i>0){f.push(n);for(var B=0;B100&&(Kk=0,$k={});var i,n=Jk.style;try{n.font=t,i=n.fontFamily.split(",")[0]}catch(t){}e={style:n.fontStyle||"normal",variant:n.fontVariant||"normal",weight:n.fontWeight||"normal",size:0|parseFloat(n.fontSize||12),family:i||"Microsoft YaHei"},$k[t]=e,Kk++}return e}(a.font),m=g.style+" "+g.variant+" "+g.weight+" "+g.size+'px "'+g.family+'"';i=i||jh.getBoundingRect(r,m,f,p);var v=this.transform;if(v&&!n&&(Qk.copy(e),Qk.applyTransform(v),e=Qk),n)c=e.x,d=e.y;else{var y=a.textPosition,x=a.textDistance;if(y instanceof Array)c=e.x+Zk(y[0],e.width),d=e.y+Zk(y[1],e.height),f=f||"left";else{var _=jh.adjustTextPositionOnRect(y,e,x);c=_.x,d=_.y,f=f||_.textAlign,p=p||_.textVerticalAlign}}c=jh.adjustTextX(c,i.width,f),d=jh.adjustTextY(d,i.height,p),d+=i.height/2;var b,w,S,M=Ck.createNode,I=this._textVmlEl;I?w=(b=(S=I.firstChild).nextSibling).nextSibling:(I=M("line"),b=M("path"),w=M("textpath"),S=M("skew"),w.style["v-text-align"]="left",Gk(I),b.textpathok=!0,w.on=!0,I.from="0 0",I.to="1000 0.05",Fk(I,S),Fk(I,b),Fk(I,w),this._textVmlEl=I);var A=[c,d],T=I.style;v&&n?(Lk(A,A,v),S.on=!0,S.matrix=v[0].toFixed(3)+","+v[2].toFixed(3)+","+v[1].toFixed(3)+","+v[3].toFixed(3)+",0,0",S.offset=(kk(A[0])||0)+","+(kk(A[1])||0),S.origin="0 0",T.left="0px",T.top="0px"):(S.on=!1,T.left=kk(c)+"px",T.top=kk(d)+"px"),w.string=function(t){return String(t).replace(/&/g,"&").replace(/"/g,""")}(r);try{w.style.font=m}catch(t){}Yk(I,"fill",{fill:a.textFill,opacity:a.opacity},this),Yk(I,"stroke",{stroke:a.textStroke,opacity:a.opacity,lineDash:a.lineDash},this),I.style.zIndex=Uk(this.zlevel,this.z,this.z2),Fk(t,I)}},iO.removeRectText=function(t){Wk(t,this._textVmlEl),this._textVmlEl=null},iO.appendRectText=function(t){Fk(t,this._textVmlEl)}}bf.prototype.brushVML=function(t){var e=this.style;null!=e.text?this.drawRectText(t,{x:e.x||0,y:e.y||0,width:0,height:0},this.getBoundingRect(),!0):this.removeRectText(t)},bf.prototype.onRemove=function(t){this.removeRectText(t)},bf.prototype.onAdd=function(t){this.appendRectText(t)}}var nO=du.each;wl.prototype={constructor:wl,getType:function(){return"vml"},getViewportRoot:function(){return this._vmlViewport},getViewportRootOffset:function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},refresh:function(){var t=this.storage.getDisplayList(!0,!0);this._paintList(t)},_paintList:function(t){for(var e=this._vmlRoot,i=0;i=gO||!Ml(g)&&(d>-pO&&d<0||d>pO)==!!p;var y=Sl(s+u*fO(c)),x=Sl(l+h*dO(c));m&&(d=p?gO-1e-4:1e-4-gO,v=!0,9===a&&e.push("M",y,x));var _=Sl(s+u*fO(c+d)),b=Sl(l+h*dO(c+d));e.push("A",Sl(u),Sl(h),cO(f*mO),+v,+p,_,b);break;case lO.Z:r="Z";break;case lO.R:var _=Sl(i[a++]),b=Sl(i[a++]),w=Sl(i[a++]),S=Sl(i[a++]);e.push("M",_,b,"L",_+w,b,"L",_+w,b+S,"L",_,b+S,"L",_,b)}r&&e.push(r);for(var M=0;M=a&&u+1>=r){for(var h=[],c=0;c=a&&c+1>=r)return function(t,e,i,n){for(var a=0,r=e.length,o=0,s=0;a=0;--n)if(e[n]===t)return!0;return!1}),i):null:i[0]},Ll.prototype.update=function(t,e){if(t){var i=this.getDefs(!1);if(t[this._domName]&&i.contains(t[this._domName]))"function"==typeof e&&e(t);else{var n=this.add(t);n&&(t[this._domName]=n)}}},Ll.prototype.addDom=function(t){this.getDefs(!0).appendChild(t)},Ll.prototype.removeDom=function(t){var e=this.getDefs(!1);e&&t[this._domName]&&(e.removeChild(t[this._domName]),t[this._domName]=null)},Ll.prototype.getDoms=function(){var t=this.getDefs(!1);if(!t)return[];var e=[];return du.each(this._tagNames,function(i){var n=t.getElementsByTagName(i);e=e.concat([].slice.call(n))}),e},Ll.prototype.markAllUnused=function(){var t=this.getDoms(),e=this;du.each(t,function(t){t[e._markLabel]="0"})},Ll.prototype.markUsed=function(t){t&&(t[this._markLabel]="1")},Ll.prototype.removeUnused=function(){var t=this.getDefs(!1);if(t){var e=this.getDoms(),i=this;du.each(e,function(e){"1"!==e[i._markLabel]&&t.removeChild(e)})}},Ll.prototype.getSvgProxy=function(t){return t instanceof af?TO:t instanceof sc?DO:t instanceof bf?CO:TO},Ll.prototype.getTextSvgElement=function(t){return t.__textSvgEl},Ll.prototype.getSvgElement=function(t){return t.__svgEl};var LO=Ll;du.inherits(Pl,LO),Pl.prototype.addWithoutUpdate=function(t,e){if(e&&e.style){var i=this;du.each(["fill","stroke"],function(n){if(e.style[n]&&("linear"===e.style[n].type||"radial"===e.style[n].type)){var a,r=e.style[n],o=i.getDefs(!0);r._dom?(a=r._dom,o.contains(r._dom)||i.addDom(a)):a=i.add(r),i.markUsed(e);var s=a.getAttribute("id");t.setAttribute(n,"url(#"+s+")")}})}},Pl.prototype.add=function(t){var e;if("linear"===t.type)e=this.createElement("linearGradient");else{if("radial"!==t.type)return Ju("Illegal gradient type."),null;e=this.createElement("radialGradient")}return t.id=t.id||this.nextId++,e.setAttribute("id","zr"+this._zrId+"-gradient-"+t.id),this.updateDom(t,e),this.addDom(e),e},Pl.prototype.update=function(t){var e=this;LO.prototype.update.call(this,t,function(){var i=t.type,n=t._dom.tagName;"linear"===i&&"linearGradient"===n||"radial"===i&&"radialGradient"===n?e.updateDom(t,t._dom):(e.removeDom(t),e.add(t))})},Pl.prototype.updateDom=function(t,e){if("linear"===t.type)e.setAttribute("x1",t.x),e.setAttribute("y1",t.y),e.setAttribute("x2",t.x2),e.setAttribute("y2",t.y2);else{if("radial"!==t.type)return void Ju("Illegal gradient type.");e.setAttribute("cx",t.x),e.setAttribute("cy",t.y),e.setAttribute("r",t.r)}t.global?e.setAttribute("gradientUnits","userSpaceOnUse"):e.setAttribute("gradientUnits","objectBoundingBox"),e.innerHTML="";for(var i=t.colorStops,n=0,a=i.length;n0){var n,a,r=this.getDefs(!0),o=e[0],s=i?"_textDom":"_dom";o[s]?(a=o[s].getAttribute("id"),n=o[s],r.contains(n)||r.appendChild(n)):(a="zr"+this._zrId+"-clip-"+this.nextId,++this.nextId,(n=this.createElement("clipPath")).setAttribute("id",a),r.appendChild(n),o[s]=n);var l=this.getSvgProxy(o);if(o.transform&&o.parent.invTransform&&!i){var u=Array.prototype.slice.call(o.transform);Mu.mul(o.transform,o.parent.invTransform,o.transform),l.brush(o),o.transform=u}else l.brush(o);var h=this.getSvgElement(o);n.innerHTML="",n.appendChild(h.cloneNode()),t.setAttribute("clip-path","url(#"+a+")"),e.length>1&&this.updateDom(n,e.slice(1),i)}else t&&t.setAttribute("clip-path","none")},kl.prototype.markUsed=function(t){var e=this;t.__clipPaths&&t.__clipPaths.length>0&&du.each(t.__clipPaths,function(t){t._dom&&LO.prototype.markUsed.call(e,t._dom),t._textDom&&LO.prototype.markUsed.call(e,t._textDom)})};var kO=kl;du.inherits(Ol,LO),Ol.prototype.addWithoutUpdate=function(t,e){if(e&&Rl(e.style)){var i,n=e.style;if(n._shadowDom){i=n._shadowDom;this.getDefs(!0).contains(n._shadowDom)||this.addDom(i)}else i=this.add(e);this.markUsed(e);var a=i.getAttribute("id");t.style.filter="url(#"+a+")"}},Ol.prototype.add=function(t){var e=this.createElement("filter"),i=t.style;return i._shadowDomId=i._shadowDomId||this.nextId++,e.setAttribute("id","zr"+this._zrId+"-shadow-"+i._shadowDomId),this.updateDom(t,e),this.addDom(e),e},Ol.prototype.update=function(t,e){var i=e.style;if(Rl(i)){var n=this;LO.prototype.update.call(this,e,function(t){n.updateDom(e,t._shadowDom)})}else this.remove(t,i)},Ol.prototype.remove=function(t,e){null!=e._shadowDomId&&(this.removeDom(e),t.style.filter="")},Ol.prototype.updateDom=function(t,e){var i=e.getElementsByTagName("feDropShadow");i=0===i.length?this.createElement("feDropShadow"):i[0];var n,a,r,o,s=t.style,l=t.scale?t.scale[0]||1:1,u=t.scale?t.scale[1]||1:1;if(s.shadowBlur||s.shadowOffsetX||s.shadowOffsetY)n=s.shadowOffsetX||0,a=s.shadowOffsetY||0,r=s.shadowBlur,o=s.shadowColor;else{if(!s.textShadowBlur)return void this.removeDom(e,s);n=s.textShadowOffsetX||0,a=s.textShadowOffsetY||0,r=s.textShadowBlur,o=s.textShadowColor}i.setAttribute("dx",n/l),i.setAttribute("dy",a/u),i.setAttribute("flood-color",o);var h=r/2/l+" "+r/2/u;i.setAttribute("stdDeviation",h),e.setAttribute("x","-100%"),e.setAttribute("y","-100%"),e.setAttribute("width",Math.ceil(r/2*200)+"%"),e.setAttribute("height",Math.ceil(r/2*200)+"%"),e.appendChild(i),s._shadowDom=e},Ol.prototype.markUsed=function(t){var e=t.style;e&&e._shadowDom&&LO.prototype.markUsed.call(this,e._shadowDom)};var OO=Ol,RO=oO.createElement,NO=du.each,EO=SO.path,zO=SO.image,VO=SO.text,BO=function(t,e,i,n){this.root=t,this.storage=e,this._opts=i=du.extend({},i||{});var a=RO("svg");a.setAttribute("xmlns","http://www.w3.org/2000/svg"),a.setAttribute("version","1.1"),a.setAttribute("baseProfile","full"),a.style.cssText="user-select:none;position:absolute;left:0;top:0;",this.gradientManager=new PO(n,a),this.clipPathManager=new kO(n,a),this.shadowManager=new OO(n,a);var r=document.createElement("div");r.style.cssText="overflow:hidden;position:relative",this._svgRoot=a,this._viewport=r,t.appendChild(r),r.appendChild(a),this.resize(i.width,i.height),this._visibleList=[]};BO.prototype={constructor:BO,getType:function(){return"svg"},getViewportRoot:function(){return this._viewport},getViewportRootOffset:function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},refresh:function(){var t=this.storage.getDisplayList(!0);this._paintList(t)},setBackgroundColor:function(t){this._viewport.style.background=t},_paintList:function(t){this.gradientManager.markAllUnused(),this.clipPathManager.markAllUnused(),this.shadowManager.markAllUnused();var e,i=this._svgRoot,n=this._visibleList,a=t.length,r=[];for(e=0;e=0;--n)if(e[n]===t)return!0;return!1}),i}return null}return i[0]},resize:function(t,e){var i=this._viewport;i.style.display="none";var n=this._opts;if(null!=t&&(n.width=t),null!=e&&(n.height=e),t=this._getSize(0),e=this._getSize(1),i.style.display="",this._width!==t||this._height!==e){this._width=t,this._height=e;var a=i.style;a.width=t+"px",a.height=e+"px";var r=this._svgRoot;r.setAttribute("width",t),r.setAttribute("height",e)}},getWidth:function(){return this._width},getHeight:function(){return this._height},_getSize:function(t){var e=this._opts,i=["width","height"][t],n=["clientWidth","clientHeight"][t],a=["paddingLeft","paddingTop"][t],r=["paddingRight","paddingBottom"][t];if(null!=e[i]&&"auto"!==e[i])return parseFloat(e[i]);var o=this.root,s=document.defaultView.getComputedStyle(o);return(o[n]||Nl(s[i])||Nl(o.style[i]))-(Nl(s[a])||0)-(Nl(s[r])||0)|0},dispose:function(){this.root.innerHTML="",this._svgRoot=this._viewport=this.storage=null},clear:function(){this._viewport&&this.root.removeChild(this._viewport)},pathToDataUrl:function(){this.refresh();return"data:image/svg+xml;charset=UTF-8,"+this._svgRoot.outerHTML}},NO(["getLayer","insertLayer","eachLayer","eachBuiltinLayer","eachOtherLayer","getLayers","modLayer","delLayer","clearLayer","toDataURL","pathToImage"],function(t){BO.prototype[t]=function(t){return function(){Ju('In SVG mode painter not support method "'+t+'"')}}(t)});var GO=BO;(0,zc.registerPainter)("svg",GO);!function(t){t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")&&t.default}(t(function(t,e){!function(){for(var t in C_){if(null==C_||!C_.hasOwnProperty(t)||"default"===t||"__esModule"===t)return;e[t]=C_[t]}}(),function(){for(var t in D_){if(null==D_||!D_.hasOwnProperty(t)||"default"===t||"__esModule"===t)return;e[t]=D_[t]}}()}));var HO=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)},FO="object"==typeof Xl&&Xl&&Xl===Object&&Xl,WO="object"==typeof self&&self&&self.Object===Object&&self,UO=FO||WO||Function("return this")(),ZO=function(){return UO.Date.now()},jO=UO.Symbol,YO=Object.prototype,XO=YO.hasOwnProperty,qO=YO.toString,$O=jO?jO.toStringTag:void 0,KO=function(t){var e=XO.call(t,$O),i=t[$O];try{t[$O]=void 0;var n=!0}catch(t){}var a=qO.call(t);return n&&(e?t[$O]=i:delete t[$O]),a},JO=Object.prototype.toString,QO=function(t){return JO.call(t)},tR="[object Null]",eR="[object Undefined]",iR=jO?jO.toStringTag:void 0,nR=function(t){return null==t?void 0===t?eR:tR:iR&&iR in Object(t)?KO(t):QO(t)},aR=function(t){return null!=t&&"object"==typeof t},rR="[object Symbol]",oR=function(t){return"symbol"==typeof t||aR(t)&&nR(t)==rR},sR=NaN,lR=/^\s+|\s+$/g,uR=/^[-+]0x[0-9a-f]+$/i,hR=/^0b[01]+$/i,cR=/^0o[0-7]+$/i,dR=parseInt,fR=function(t){if("number"==typeof t)return t;if(oR(t))return sR;if(HO(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=HO(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(lR,"");var i=hR.test(t);return i||cR.test(t)?dR(t.slice(2),i?2:8):uR.test(t)?sR:+t},pR="Expected a function",gR=Math.max,mR=Math.min,vR=function(t,e,i){function n(e){var i=l,n=u;return l=u=void 0,p=e,c=t.apply(n,i)}function a(t){var i=t-f;return void 0===f||i>=e||i<0||m&&t-p>=h}function r(){var t=ZO();if(a(t))return o(t);d=setTimeout(r,function(t){var i=e-(t-f);return m?mR(i,h-(t-p)):i}(t))}function o(t){return d=void 0,v&&l?n(t):(l=u=void 0,c)}function s(){var t=ZO(),i=a(t);if(l=arguments,u=this,f=t,i){if(void 0===d)return function(t){return p=t,d=setTimeout(r,e),g?n(t):c}(f);if(m)return d=setTimeout(r,e),n(f)}return void 0===d&&(d=setTimeout(r,e)),c}var l,u,h,c,d,f,p=0,g=!1,m=!1,v=!0;if("function"!=typeof t)throw new TypeError(pR);return e=fR(e)||0,HO(i)&&(g=!!i.leading,h=(m="maxWait"in i)?gR(fR(i.maxWait)||0,e):h,v="trailing"in i?!!i.trailing:v),s.cancel=function(){void 0!==d&&clearTimeout(d),p=0,l=f=u=d=void 0},s.flush=function(){return void 0===d?c:o(ZO())},s},yR=null,xR=null,_R='.resize-triggers{visibility:hidden;opacity:0}.resize-contract-trigger,.resize-contract-trigger:before,.resize-expand-trigger,.resize-triggers{content:"";position:absolute;top:0;left:0;height:100%;width:100%;overflow:hidden}.resize-contract-trigger,.resize-expand-trigger{background:#eee;overflow:auto}.resize-contract-trigger:before{width:200%;height:200%}',bR=0,wR=null;!function(){if("undefined"!=typeof document){var t=document.head||document.getElementsByTagName("head")[0],e=document.createElement("style"),i=" .echarts { width: 600px; height: 400px; } ";e.type="text/css",e.styleSheet?e.styleSheet.cssText=i:e.appendChild(document.createTextNode(i)),t.appendChild(e)}}();var SR=["legendselectchanged","legendselected","legendunselected","legendunscroll","datazoom","datarangeselected","timelinechanged","timelineplaychanged","restore","dataviewchanged","magictypechanged","geoselectchanged","geoselected","geounselected","pieselectchanged","pieselected","pieunselected","mapselectchanged","mapselected","mapunselected","axisareaselected","focusnodeadjacency","unfocusnodeadjacency","brush","brushselected","rendered","finished","click","dblclick","mouseover","mouseout","mousedown","mouseup","globalout"];return{render:function(){var t=this.$createElement;return(this._self._c||t)("div",{staticClass:"echarts"})},staticRenderFns:[],props:{options:Object,theme:[String,Object],initOptions:Object,group:String,autoResize:Boolean,watchShallow:Boolean,manualUpdate:Boolean},data:function(){return{lastArea:0}},watch:{group:function(t){this.chart.group=t}},methods:{mergeOptions:function(t,e,i){this.manualUpdate&&(this.manualOptions=t),this.chart?this.delegateMethod("setOption",t,e,i):this.init()},appendData:function(t){this.delegateMethod("appendData",t)},resize:function(t){this.delegateMethod("resize",t)},dispatchAction:function(t){this.delegateMethod("dispatchAction",t)},convertToPixel:function(t,e){return this.delegateMethod("convertToPixel",t,e)},convertFromPixel:function(t,e){return this.delegateMethod("convertFromPixel",t,e)},containPixel:function(t,e){return this.delegateMethod("containPixel",t,e)},showLoading:function(t,e){this.delegateMethod("showLoading",t,e)},hideLoading:function(){this.delegateMethod("hideLoading")},getDataURL:function(t){return this.delegateMethod("getDataURL",t)},getConnectedDataURL:function(t){return this.delegateMethod("getConnectedDataURL",t)},clear:function(){this.delegateMethod("clear")},dispose:function(){this.delegateMethod("dispose")},delegateMethod:function(t){for(var e=[],i=arguments.length-1;i-- >0;)e[i]=arguments[i+1];return this.chart||this.init(),(n=this.chart)[t].apply(n,e);var n},delegateGet:function(t,e){return this.chart||this.init(),this.chart[e]()},getArea:function(){return this.$el.offsetWidth*this.$el.offsetHeight},init:function(){var t=this;if(!this.chart){var e=C_.init(this.$el,this.theme,this.initOptions);this.group&&(e.group=this.group),e.setOption(this.manualOptions||this.options||{},!0),SR.forEach(function(i){e.on(i,function(e){t.$emit(i,e)})}),this.autoResize&&(this.lastArea=this.getArea(),this.__resizeHandler=vR(function(){0===t.lastArea?(t.mergeOptions({},!0),t.resize(),t.mergeOptions(t.options||t.manualOptions||{},!0)):t.resize(),t.lastArea=t.getArea()},100,{leading:!0}),function(t,e){if(t.__resize_mutation_handler__||(t.__resize_mutation_handler__=function(){var t=Wl(this),e=t.rendered,i=t.detached;e!==this.__resize_rendered__&&(!i&&this.__resize_triggers__&&(jl(this),this.addEventListener("scroll",Ul,!0)),this.__resize_rendered__=e,Zl(this))}.bind(t)),!t.__resize_listeners__)if(t.__resize_listeners__=[],window.ResizeObserver){var i=t.offsetWidth,n=t.offsetHeight,a=new ResizeObserver(function(){(t.__resize_observer_triggered__||(t.__resize_observer_triggered__=!0,t.offsetWidth!==i||t.offsetHeight!==n))&&Zl(t)}),r=Wl(t),o=r.detached,s=r.rendered;t.__resize_observer_triggered__=!1===o&&!1===s,t.__resize_observer__=a,a.observe(t)}else if(t.attachEvent&&t.addEventListener)t.__resize_legacy_resize_handler__=function(){Zl(t)},t.attachEvent("onresize",t.__resize_legacy_resize_handler__),document.addEventListener("DOMSubtreeModified",t.__resize_mutation_handler__);else if(bR||(wR=function(t){var e=document.createElement("style");return e.type="text/css",e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t)),(document.querySelector("head")||document.body).appendChild(e),e}(_R)),function(t){var e=getComputedStyle(t).position;"static"===e&&(t.style.position="relative"),t.__resize_old_position__=e,t.__resize_last__={};var i=Fl("div",{className:"resize-triggers"}),n=Fl("div",{className:"resize-expand-trigger"}),a=Fl("div"),r=Fl("div",{className:"resize-contract-trigger"});n.appendChild(a),i.appendChild(n),i.appendChild(r),t.appendChild(i),t.__resize_triggers__={triggers:i,expand:n,expandChild:a,contract:r},jl(t),t.addEventListener("scroll",Ul,!0),t.__resize_last__={width:t.offsetWidth,height:t.offsetHeight}}(t),t.__resize_rendered__=Wl(t).rendered,window.MutationObserver){var l=new MutationObserver(t.__resize_mutation_handler__);l.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0}),t.__resize_mutation_observer__=l}t.__resize_listeners__.push(e),bR++}(this.$el,this.__resizeHandler)),Object.defineProperties(this,{width:{configurable:!0,get:function(){return t.delegateGet("width","getWidth")}},height:{configurable:!0,get:function(){return t.delegateGet("height","getHeight")}},isDisposed:{configurable:!0,get:function(){return!!t.delegateGet("isDisposed","isDisposed")}},computedOptions:{configurable:!0,get:function(){return t.delegateGet("computedOptions","getOption")}}}),this.chart=e}},destroy:function(){this.autoResize&&function(t,e){if(t.detachEvent&&t.removeEventListener)return t.detachEvent("onresize",t.__resize_legacy_resize_handler__),void document.removeEventListener("DOMSubtreeModified",t.__resize_mutation_handler__);var i=t.__resize_listeners__;i.splice(i.indexOf(e),1),i.length||(t.__resize_observer__?(t.__resize_observer__.unobserve(t),t.__resize_observer__.disconnect(),t.__resize_observer__=null):(t.__resize_mutation_observer__&&(t.__resize_mutation_observer__.disconnect(),t.__resize_mutation_observer__=null),t.removeEventListener("scroll",Ul),t.removeChild(t.__resize_triggers__.triggers),t.__resize_triggers__=null),t.__resize_listeners__=null),!--bR&&wR&&wR.parentNode.removeChild(wR)}(this.$el,this.__resizeHandler),this.dispose(),this.chart=null},refresh:function(){this.chart&&(this.destroy(),this.init())}},created:function(){var t=this;this.manualUpdate||this.$watch("options",function(e){!t.chart&&e?t.init():t.chart.setOption(t.options,!0)},{deep:!this.watchShallow});["theme","initOptions","autoResize","manualUpdate","watchShallow"].forEach(function(e){t.$watch(e,function(){t.refresh()},{deep:!0})})},mounted:function(){this.options&&this.init()},activated:function(){this.autoResize&&this.chart&&this.chart.resize()},beforeDestroy:function(){this.chart&&this.destroy()},connect:function(t){"string"!=typeof t&&(t=t.map(function(t){return t.chart})),C_.connect(t)},disconnect:function(t){C_.disConnect(t)},registerMap:function(t,e,i){C_.registerMap(t,e,i)},registerTheme:function(t,e){C_.registerTheme(t,e)},graphic:C_.graphic}}); \ No newline at end of file +!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t.VueECharts=e()}(this,function(){"use strict";function t(t,e){return e={exports:{}},t(e,e.exports),e.exports}function e(t){if(null==t||"object"!=typeof t)return t;var i=t,n=eu.call(t);if("[object Array]"===n){if(!h(t)){i=[];for(var a=0,r=t.length;aAu||t<-Au}function S(t){this._target=t.target,this._life=t.life||1e3,this._delay=t.delay||0,this._initialized=!1,this.loop=null!=t.loop&&t.loop,this.gap=t.gap||0,this.easing=t.easing||"Linear",this.onframe=t.onframe,this.ondestroy=t.ondestroy,this.onrestart=t.onrestart,this._pausedTime=0,this._paused=!1}function M(t){return(t=Math.round(t))<0?0:t>255?255:t}function I(t){return t<0?0:t>1?1:t}function A(t){return M(t.length&&"%"===t.charAt(t.length-1)?parseFloat(t)/100*255:parseInt(t,10))}function T(t){return I(t.length&&"%"===t.charAt(t.length-1)?parseFloat(t)/100:parseFloat(t))}function D(t,e,i){return i<0?i+=1:i>1&&(i-=1),6*i<1?t+(e-t)*i*6:2*i<1?e:3*i<2?t+(e-t)*(2/3-i)*6:t}function C(t,e,i){return t+(e-t)*i}function L(t,e,i,n,a){return t[0]=e,t[1]=i,t[2]=n,t[3]=a,t}function P(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}function k(t,e){Fu&&P(Fu,e),Fu=Hu.put(t,Fu||e.slice())}function O(t,e){if(t){e=e||[];var i=Hu.get(t);if(i)return P(e,i);var n=(t+="").replace(/ /g,"").toLowerCase();if(n in Gu)return P(e,Gu[n]),k(t,e),e;if("#"!==n.charAt(0)){var a=n.indexOf("("),r=n.indexOf(")");if(-1!==a&&r+1===n.length){var o=n.substr(0,a),s=n.substr(a+1,r-(a+1)).split(","),l=1;switch(o){case"rgba":if(4!==s.length)return void L(e,0,0,0,1);l=T(s.pop());case"rgb":return 3!==s.length?void L(e,0,0,0,1):(L(e,A(s[0]),A(s[1]),A(s[2]),l),k(t,e),e);case"hsla":return 4!==s.length?void L(e,0,0,0,1):(s[3]=T(s[3]),R(s,e),k(t,e),e);case"hsl":return 3!==s.length?void L(e,0,0,0,1):(R(s,e),k(t,e),e);default:return}}L(e,0,0,0,1)}else{if(4===n.length){return(u=parseInt(n.substr(1),16))>=0&&u<=4095?(L(e,(3840&u)>>4|(3840&u)>>8,240&u|(240&u)>>4,15&u|(15&u)<<4,1),k(t,e),e):void L(e,0,0,0,1)}if(7===n.length){var u=parseInt(n.substr(1),16);return u>=0&&u<=16777215?(L(e,(16711680&u)>>16,(65280&u)>>8,255&u,1),k(t,e),e):void L(e,0,0,0,1)}}}}function R(t,e){var i=(parseFloat(t[0])%360+360)%360/360,n=T(t[1]),a=T(t[2]),r=a<=.5?a*(n+1):a+n-a*n,o=2*a-r;return e=e||[],L(e,M(255*D(o,r,i+1/3)),M(255*D(o,r,i)),M(255*D(o,r,i-1/3)),1),4===t.length&&(e[3]=t[3]),e}function N(t,e,i){if(e&&e.length&&t>=0&&t<=1){i=i||[];var n=t*(e.length-1),a=Math.floor(n),r=Math.ceil(n),o=e[a],s=e[r],l=n-a;return i[0]=M(C(o[0],s[0],l)),i[1]=M(C(o[1],s[1],l)),i[2]=M(C(o[2],s[2],l)),i[3]=I(C(o[3],s[3],l)),i}}function E(t,e,i){if(e&&e.length&&t>=0&&t<=1){var n=t*(e.length-1),a=Math.floor(n),r=Math.ceil(n),o=O(e[a]),s=O(e[r]),l=n-a,u=z([M(C(o[0],s[0],l)),M(C(o[1],s[1],l)),M(C(o[2],s[2],l)),I(C(o[3],s[3],l))],"rgba");return i?{color:u,leftIndex:a,rightIndex:r,value:n}:u}}function z(t,e){if(t&&t.length){var i=t[0]+","+t[1]+","+t[2];return"rgba"!==e&&"hsva"!==e&&"hsla"!==e||(i+=","+t[3]),e+"("+i+")"}}function V(t,e,i){return(e-t)*i+t}function B(t,e,i){return i>.5?e:t}function G(t,e,i,n,a){var r=t.length;if(1==a)for(s=0;sa)t.length=a;else for(o=n;o=0;)a++;return a-e}function Y(t,e,i,n,a){for(n===e&&n++;n>>1])<0?l=r:s=r+1;var u=n-s;switch(u){case 3:t[s+3]=t[s+2];case 2:t[s+2]=t[s+1];case 1:t[s+1]=t[s];break;default:for(;u>0;)t[s+u]=t[s+u-1],u--}t[s]=o}}function X(t,e,i,n,a,r){var o=0,s=0,l=1;if(r(t,e[i+a])>0){for(s=n-a;l0;)o=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s),o+=a,l+=a}else{for(s=a+1;ls&&(l=s);var u=o;o=a-l,l=a-u}for(o++;o>>1);r(t,e[i+h])>0?o=h+1:l=h}return l}function q(t,e,i,n,a,r){var o=0,s=0,l=1;if(r(t,e[i+a])<0){for(s=a+1;ls&&(l=s);var u=o;o=a-l,l=a-u}else{for(s=n-a;l=0;)o=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s),o+=a,l+=a}for(o++;o>>1);r(t,e[i+h])<0?l=h:o=h+1}return l}function $(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}function K(t,e,i){var n=du.createCanvas(),a=e.getWidth(),r=e.getHeight(),o=n.style;return o&&(o.position="absolute",o.left=0,o.top=0,o.width=a+"px",o.height=r+"px",n.setAttribute("data-zr-dom-id",t)),n.width=a*i,n.height=r*i,n}function J(t){return t&&t.width&&t.height}function Q(t,e){var i=t+":"+(e=e||Uh);if(Gh[i])return Gh[i];for(var n=(t+"").split("\n"),a=0,r=0,o=n.length;rFh&&(Hh=0,Gh={}),Hh++,Gh[i]=a,a}function tt(t,e,i){return"right"===i?t-=e:"center"===i&&(t-=e/2),t}function et(t,e,i){return"middle"===i?t-=e/2:"bottom"===i&&(t-=e),t}function it(t,e,i,n,a){if(!e)return"";var r=(t+"").split("\n");a=nt(e,i,n,a);for(var o=0,s=r.length;o=r;s++)o-=r;var l=Q(i);return l>o&&(i="",l=0),o=t-l,n.ellipsis=i,n.ellipsisWidth=l,n.contentWidth=o,n.containerWidth=t,n}function at(t,e){var i=e.containerWidth,n=e.font,a=e.contentWidth;if(!i)return"";var r=Q(t,n);if(r<=i)return t;for(var o=0;;o++){if(r<=a||o>=e.maxIterations){t+=e.ellipsis;break}var s=0===o?function(t,e,i,n){for(var a=0,r=0,o=t.length;r0?Math.floor(t.length*a/r):0;r=Q(t=t.substr(0,s),n)}return""===t&&(t=e.placeholder),t}function rt(t){return Q("国",t)}function ot(t,e){return Zh.measureText(t,e)}function st(t,e,i,n){null!=t&&(t+="");var a=rt(e),r=t?t.split("\n"):[],o=r.length*a,s=o;if(i&&(s+=i[0]+i[2]),t&&n){var l=n.outerHeight,u=n.outerWidth;if(null!=l&&s>l)t="",r=[];else if(null!=u)for(var h=nt(u-(i?i[1]+i[3]:0),e,n.ellipsis,{minChar:n.minChar,placeholder:n.placeholder}),c=0,d=r.length;ca&&ut(i,t.substring(a,r)),ut(i,n[2],n[1]),a=Wh.lastIndex}af)return{lines:[],width:0,height:0};C.textWidth=Q(C.text,_);var w=y.textWidth,S=null==w||"auto"===w;if("string"==typeof w&&"%"===w.charAt(w.length-1))C.percentWidth=w,u.push(C),w=0;else{if(S){w=C.textWidth;var M=y.textBackgroundColor,I=M&&M.image;I&&(I=Rh.findExistImage(I),Rh.isImageReady(I)&&(w=Math.max(w,I.width*b/I.height)))}var A=x?x[1]+x[3]:0;w+=A;var T=null!=d?d-m:null;null!=T&&T=0?parseFloat(t)/100*e:parseFloat(t):t}function _t(t,e,i){return"right"===e?t-i[1]:"center"===e?t+i[3]/2-i[1]/2:t+i[3]}function bt(t){t=t||{},sh.call(this,t);for(var e in t)t.hasOwnProperty(e)&&"style"!==e&&(this[e]=t[e]);this.style=new Ah(t.style,this),this._rect=null,this.__clipPaths=[]}function wt(t){oc.call(this,t)}function St(t){return parseInt(t,10)}function Mt(t,e,i,n){return i=i||{},n||!Jl.canvasSupported?It(t,e,i):Jl.browser.firefox&&null!=e.layerX&&e.layerX!==e.offsetX?(i.zrX=e.layerX,i.zrY=e.layerY):null!=e.offsetX?(i.zrX=e.offsetX,i.zrY=e.offsetY):It(t,e,i),i}function It(t,e,i){var n=function(t){return t.getBoundingClientRect?t.getBoundingClientRect():{left:0,top:0}}(t);i.zrX=e.clientX-n.left,i.zrY=e.clientY-n.top}function At(t){var e=t[1][0]-t[0][0],i=t[1][1]-t[0][1];return Math.sqrt(e*e+i*i)}function Tt(t){return"mousewheel"===t&&Jl.browser.firefox?"DOMMouseScroll":t}function Dt(t,e,i){var n=t._gestureMgr;"start"===i&&n.clear();var a=n.recognize(e,t.handler.findHover(e.zrX,e.zrY,null).target,t.dom);if("end"===i&&n.clear(),a){var r=a.type;e.gestureEvent=r,t.handler.dispatchToElement({target:a.target},r,a.event)}}function Ct(t){t._touching=!0,clearTimeout(t._touchTimer),t._touchTimer=setTimeout(function(){t._touching=!1},700)}function Lt(t){var e=t.pointerType;return"pen"===e||"touch"===e}function Pt(t){function e(e,i){du.each(e,function(e){Sc(t,Tt(e),i._handlers[e])},i)}yu.call(this),this.dom=t,this._touching=!1,this._touchTimer,this._gestureMgr=new wc,this._handlers={},function(t){du.each(Tc,function(e){t._handlers[e]=du.bind(Lc[e],t)}),du.each(Cc,function(e){t._handlers[e]=du.bind(Lc[e],t)}),du.each(Ac,function(e){t._handlers[e]=function(t,e){return function(){if(!e._touching)return t.apply(e,arguments)}}(Lc[e],t)})}(this),Jl.pointerEventsSupported?e(Cc,this):(Jl.touchEventsSupported&&e(Tc,this),e(Ac,this))}function kt(t){return t instanceof Array?t:null==t?[]:[t]}function Ot(t){return Bc(t)&&t.id&&0===(t.id+"").indexOf("\0_ec_\0")}function Rt(t,e){return t&&t.hasOwnProperty(e)}function Nt(t){var e={main:"",sub:""};return t&&(t=t.split(Uc),e.main=t[0]||"",e.sub=t[1]||""),e}function Et(t){return t>-nd&&tnd||t<-nd}function Vt(t,e,i,n,a){var r=1-a;return r*r*(r*t+3*a*e)+a*a*(a*n+3*r*i)}function Bt(t,e,i,n){var a=1-n;return a*(a*t+2*n*e)+n*n*i}function Gt(t,e,i,n,a){for(var r=0,o=0,s=0,l=0,u=0,h=0;h1&&(i||(r+=jd(o,s,l,u,n,a))),1==h&&(l=o=t[h],u=s=t[h+1]),c){case Xd.M:o=l=t[h++],s=u=t[h++];break;case Xd.L:if(i){if(zd.containStroke(o,s,t[h],t[h+1],e,n,a))return!0}else r+=jd(o,s,t[h],t[h+1],n,a)||0;o=t[h++],s=t[h++];break;case Xd.C:if(i){if(Vd.containStroke(o,s,t[h++],t[h++],t[h++],t[h++],t[h],t[h+1],e,n,a))return!0}else r+=function(t,e,i,n,a,r,o,s,l,u){if(u>e&&u>n&&u>r&&u>s||u1&&function(){var t=Jd[0];Jd[0]=Jd[1],Jd[1]=t}(),c=hd.cubicAt(e,n,r,s,Jd[0]),p>1&&(d=hd.cubicAt(e,n,r,s,Jd[1]))),2==p?me&&s>n&&s>r||s=0&&u<=1){for(var h=0,c=hd.quadraticAt(e,n,r,u),d=0;d1?r+=jd(o,s,x,_,n,a):(l=x,u=_);var b=(n-d)*g/p+d;if(i){if(Zd.containStroke(d,f,g,m,m+v,y,e,b,a))return!0}else r+=function(t,e,i,n,a,r,o,s){if((s-=e)>i||s<-i)return 0;u=Math.sqrt(i*i-s*s),Kd[0]=-u,Kd[1]=u;var l=Math.abs(n-a);if(l<1e-4)return 0;if(l%qd<1e-4)return n=0,a=qd,p=r?1:-1,o>=Kd[0]+t&&o<=Kd[1]+t?p:0;if(r){var u=n;n=Yd(a),a=Yd(u)}else n=Yd(n),a=Yd(a);n>a&&(a+=qd);for(var h=0,c=0;c<2;c++){var d=Kd[c];if(d+t>o){var f=Math.atan2(s,d),p=r?1:-1;f<0&&(f=qd+f),(f>=n&&f<=a||f+qd>=n&&f+qd<=a)&&(f>Math.PI/2&&f<1.5*Math.PI&&(p=-p),h+=p)}}return h}(d,f,g,m,m+v,y,b,a);o=Math.cos(m+v)*p+d,s=Math.sin(m+v)*g+f;break;case Xd.R:l=o=t[h++],u=s=t[h++];var x=l+t[h++],_=u+t[h++];if(i){if(zd.containStroke(l,u,x,u,e,n,a)||zd.containStroke(x,u,x,_,e,n,a)||zd.containStroke(x,_,l,_,e,n,a)||zd.containStroke(l,_,l,u,e,n,a))return!0}else r+=jd(x,u,x,_,n,a),r+=jd(l,_,l,u,n,a);break;case Xd.Z:if(i){if(zd.containStroke(o,s,l,u,e,n,a))return!0}else r+=jd(o,s,l,u,n,a);o=l,s=u}}return i||function(t,e){return Math.abs(t-e)<$d}(s,u)||(r+=jd(o,s,l,u,n,a)||0),0!==r}function Ht(t){oc.call(this,t),this.path=null}function Ft(t,e,i,n,a,r,o,s,l,u,h){var c=l*(gf/180),d=pf(c)*(t-i)/2+ff(c)*(e-n)/2,f=-1*ff(c)*(t-i)/2+pf(c)*(e-n)/2,p=d*d/(o*o)+f*f/(s*s);p>1&&(o*=df(p),s*=df(p));var g=(a===r?-1:1)*df((o*o*(s*s)-o*o*(f*f)-s*s*(d*d))/(o*o*(f*f)+s*s*(d*d)))||0,m=g*o*f/s,v=g*-s*d/o,y=(t+i)/2+pf(c)*m-ff(c)*v,x=(e+n)/2+ff(c)*m+pf(c)*v,_=yf([1,0],[(d-m)/o,(f-v)/s]),b=[(d-m)/o,(f-v)/s],w=[(-1*d-m)/o,(-1*f-v)/s],S=yf(b,w);vf(b,w)<=-1&&(S=gf),vf(b,w)>=1&&(S=0),0===r&&S>0&&(S-=2*gf),1===r&&S<0&&(S+=2*gf),h.addData(u,y,x,o,s,_,S,c,r)}function Wt(t,e){var i=function(t){if(!t)return[];var e,i=t.replace(/-/g," -").replace(/ /g," ").replace(/ /g,",").replace(/,,/g,",");for(e=0;e0&&""===f[0]&&f.shift();for(var p=0;p=0)&&(n={textFill:null,textStroke:t.textStroke,textStrokeWidth:t.textStrokeWidth},t.textFill="#fff",null==t.textStroke&&(t.textStroke=i.autoColor,null==t.textStrokeWidth&&(t.textStrokeWidth=2))),n}function he(t,e,i,n,a,r){"function"==typeof a&&(r=a,a=null);if(n&&n.isAnimationEnabled()){var o=t?"Update":"",s=n.getShallow("animationDuration"+o),l=n.getShallow("animationEasing"+o),u=n.getShallow("animationDelay"+o);"function"==typeof u&&(u=u(a,n.getAnimationDelayParams?n.getAnimationDelayParams(e,a):null)),"function"==typeof s&&(s=s(a)),s>0?e.animateTo(i,s,u||0,l,r,!!r):(e.stopAnimation(),e.attr(i),r&&r())}else e.stopAnimation(),e.attr(i),r&&r()}function ce(t,e,i,n,a){he(!0,t,e,i,n,a)}function de(t,e,i){return e&&!du.isArrayLike(e)&&(e=Lu.getLocalTransform(e)),i&&(e=Mu.invert([],e)),pu.applyTransform([],t,e)}function fe(t,e,i){this.parentModel=e,this.ecModel=i,this.option=t}function pe(t,e,i){for(var n=0;nn||l.newline?(r=0,h=m,o+=s+i,s=f.height):s=Math.max(s,f.height)}else{var v=f.height+(g?-g.y+f.y:0);(c=o+v)>a||l.newline?(r+=s+i,o=0,c=v,s=f.width):s=Math.max(s,f.width)}l.newline||(d[0]=r,d[1]=o,"horizontal"===t?r=h+i:o=c+i)})}function _e(t,e,i){i=qp.normalizeCssArray(i||0);var n=e.width,a=e.height,r=$p(t.left,n),o=$p(t.top,a),s=$p(t.right,n),l=$p(t.bottom,a),u=$p(t.width,n),h=$p(t.height,a),c=i[2]+i[0],d=i[1]+i[3],f=t.aspect;switch(isNaN(u)&&(u=n-s-d-r),isNaN(h)&&(h=a-l-c-o),null!=f&&(isNaN(u)&&isNaN(h)&&(f>n/a?u=.8*n:h=.8*a),isNaN(u)&&(u=f*h),isNaN(h)&&(h=u/f)),isNaN(r)&&(r=n-s-u-d),isNaN(o)&&(o=a-l-h-c),t.left||t.right){case"center":r=n/2-u/2-i[3];break;case"right":r=n-u-d}switch(t.top||t.bottom){case"middle":case"center":o=a/2-h/2-i[0];break;case"bottom":o=a-h-c}r=r||0,o=o||0,isNaN(u)&&(u=n-d-r-(s||0)),isNaN(h)&&(h=a-c-o-(l||0));var p=new ch(r+i[3],o+i[0],u,h);return p.margin=i,p}function be(t,e){return e&&t&&Kp(Jp,function(i){e.hasOwnProperty(i)&&(t[i]=e[i])}),t}function we(t){return"category"===t.get("type")}function Se(t){this.fromDataset=t.fromDataset,this.data=t.data||(t.sourceFormat===Dg?{}:[]),this.sourceFormat=t.sourceFormat||Ag,this.seriesLayoutBy=t.seriesLayoutBy||Ig,this.dimensionsDefine=t.dimensionsDefine,this.encodeDefine=t.encodeDefine&&bg(t.encodeDefine),this.startIndex=t.startIndex||0,this.dimensionsDetectCount=t.dimensionsDetectCount}function Me(t){if(t){var e=Og();return Ng(t,function(t,i){if(null==(t=Hg({},Vg(t)?t:{name:t})).name)return t;t.name+="",null==t.displayName&&(t.displayName=t.name);var n=e.get(t.name);return n?t.name+="-"+n.count++:e.set(t.name,{count:1}),t})}}function Ie(t,e,i,n){if(null==n&&(n=1/0),e===Xg)for(r=0;r=0?n():c=setTimeout(n,-r),u=a};return d.clear=function(){c&&(clearTimeout(c),c=null)},d.debounceNextCall=function(t){l=t},d}function ii(t,e,i,n){this.ecInstance=t,this.api=e,this.unfinished;var i=this._dataProcessorHandlers=i.slice(),n=this._visualHandlers=n.slice();this._allHandlers=i.concat(n),this._stageTaskMap=Zv()}function ni(t,e,i,n,a){function r(t,e){return t.setDirty&&(!t.dirtyMap||t.dirtyMap.get(e.__pipeline.id))}a=a||{};var o;Fv(e,function(e,s){if(!a.visualType||a.visualType===e.visualType){var l=t._stageTaskMap.get(e.uid),u=l.seriesTaskMap,h=l.overallTask;if(h){var c,d=h.agentStubMap;d.each(function(t){r(a,t)&&(t.dirty(),c=!0)}),c&&h.dirty(),Kv(h,n);var f=t.getPerformArgs(h,a.block);d.each(function(t){t.perform(f)}),o|=h.perform(f)}else u&&u.each(function(s,l){r(a,s)&&s.dirty();var u=t.getPerformArgs(s,a.block);u.skip=!e.performRawSeries&&i.isSeriesFiltered(s.context.model),Kv(s,n),o|=s.perform(u)})}}),t.unfinished|=o}function ai(t){return function(e,i){var n=i.data,a=i.resetDefines[t];if(a&&a.dataEach)for(var r=e.start;r65535?by:wy}function ci(t,e){du.each(Sy.concat(e.__wrappedMethods||[]),function(i){e.hasOwnProperty(i)&&(t[i]=e[i])}),t.__wrappedMethods=e.__wrappedMethods,du.each(My,function(i){t[i]=du.clone(e[i])}),t._calculationInfo=du.extend(e._calculationInfo)}function di(t,e,i){var n;if(null!=e){var a=t._chunkSize,r=Math.floor(i/a),o=i%a,s=t.dimensions[e],l=t._storage[s][r];if(l){n=l[o];var u=t._dimensionInfos[s].ordinalMeta;u&&u.categories.length&&(n=u.categories[n])}}return n}function fi(t){return t}function pi(t){return t=0?this._indices[t]:-1}function gi(t,e){var i=t._idList[e];return null==i&&(i=di(t,t._idDimIdx,e)),null==i&&(i=xy+e),i}function mi(t){return du.isArray(t)||(t=[t]),t}function vi(t,e){var i=t.dimensions,n=new Iy(du.map(i,t.getDimensionInfo,t),t.hostModel);ci(n,t);for(var a=n._storage={},r=t._storage,o=0;o=0?(a[s]=function(t){for(var e=new Array(t.length),i=0;it[1]&&(t[0]=t[1])}function Ti(t){return t.get("stack")||cx+t.seriesIndex}function Di(t){return t.dim+t.index}function Ci(t,e){var i=[];return e.eachSeriesByType(t,function(t){Oi(t)&&!Ri(t)&&i.push(t)}),i}function Li(t){var e=[];return du.each(t,function(t){var i=t.getData(),n=t.coordinateSystem.getBaseAxis(),a=n.getExtent(),r="category"===n.type?n.getBandWidth():Math.abs(a[1]-a[0])/i.count(),o=ux(t.get("barWidth"),r),s=ux(t.get("barMaxWidth"),r),l=t.get("barGap"),u=t.get("barCategoryGap");e.push({bandWidth:r,barWidth:o,barMaxWidth:s,barGap:l,barCategoryGap:u,axisKey:Di(n),stackId:Ti(t)})}),Pi(e)}function Pi(t){var e={};du.each(t,function(t,i){var n=t.axisKey,a=t.bandWidth,r=e[n]||{bandWidth:a,remainedWidth:a,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},o=r.stacks;e[n]=r;var s=t.stackId;o[s]||r.autoWidthCount++,o[s]=o[s]||{width:0,maxWidth:0};var l=t.barWidth;l&&!o[s].width&&(o[s].width=l,l=Math.min(r.remainedWidth,l),r.remainedWidth-=l);var u=t.barMaxWidth;u&&(o[s].maxWidth=u);var h=t.barGap;null!=h&&(r.gap=h);var c=t.barCategoryGap;null!=c&&(r.categoryGap=c)});var i={};return du.each(e,function(t,e){i[e]={};var n=t.stacks,a=t.bandWidth,r=ux(t.categoryGap,a),o=ux(t.gap,1),s=t.remainedWidth,l=t.autoWidthCount,u=(s-r)/(l+(l-1)*o);u=Math.max(u,0),du.each(n,function(t,e){var i=t.maxWidth;i&&i=0||i?e.toGlobalCoord(e.dataToCoord(0)):e.getGlobalExtent()[0]}function Ei(t,e){return Sx(t,bx(e))}function zi(t,e){var i,n,a,r=t.type,o=e.getMin(),s=e.getMax(),l=null!=o,u=null!=s,h=t.getExtent();"ordinal"===r?i=e.getCategories().length:(n=e.get("boundaryGap"),du.isArray(n)||(n=[n||0,n||0]),"boolean"==typeof n[0]&&(n=[0,0]),n[0]=Up.parsePercent(n[0],1),n[1]=Up.parsePercent(n[1],1),a=h[1]-h[0]||Math.abs(h[0])),null==o&&(o="ordinal"===r?i?0:NaN:h[0]-n[0]*a),null==s&&(s="ordinal"===r?i?i-1:NaN:h[1]+n[1]*a),"dataMin"===o?o=h[0]:"function"==typeof o&&(o=o({min:h[0],max:h[1]})),"dataMax"===s?s=h[1]:"function"==typeof s&&(s=s({min:h[0],max:h[1]})),(null==o||!isFinite(o))&&(o=NaN),(null==s||!isFinite(s))&&(s=NaN),t.setBlank(du.eqNaN(o)||du.eqNaN(s)||"ordinal"===r&&!t.getOrdinalMeta().categories.length),e.getNeedCrossZero()&&(o>0&&s>0&&!l&&(o=0),o<0&&s<0&&!u&&(s=0));var c=e.ecModel;if(c&&"time"===r){var d,f=Cx("bar",c);if(du.each(f,function(t){d|=t.getBaseAxis()===e.axis}),d){var p=Lx(f),g=function(t,e,i,n){var a=i.axis.getExtent(),r=a[1]-a[0],o=Px(n,i.axis);if(void 0===o)return{min:t,max:e};var s=1/0;du.each(o,function(t){s=Math.min(t.offset,s)});var l=-1/0;du.each(o,function(t){l=Math.max(t.offset+t.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,h=e-t,c=h/(1-(s+l)/r)-h;return e+=c*(l/u),t-=c*(s/u),{min:t,max:e}}(o,s,e,p);o=g.min,s=g.max}}return[o,s]}function Vi(t){var e=t.getLabelModel().get("formatter"),i="category"===t.type?t.scale.getExtent()[0]:null;return"string"==typeof e?e=function(t){return function(e){return t.replace("{value}",null!=e?e:"")}}(e):"function"==typeof e?function(n,a){return null!=i&&(a=n-i),e(Bi(t,n),a)}:function(e){return t.scale.getLabel(e)}}function Bi(t,e){return"category"===t.type?t.scale.getLabel(e):e}function Gi(t,e){return Math.abs(t-e)>1^-(1&s),l=l>>1^-(1&l),a=s+=a,r=l+=r,n.push([s/i,l/i])}return n}function Wi(t,e){var i=Ui(t,"labels"),n=qi(e),a=Zi(i,n);if(a)return a;var r,o;return r=du.isFunction(n)?Xi(t,n):Yi(t,o="auto"===n?function(t){var e=t_(t).autoInterval;return null!=e?e:t_(t).autoInterval=t.calculateCategoryInterval()}(t):n),ji(i,n,{labels:r,labelCategoryInterval:o})}function Ui(t,e){return t_(t)[e]||(t_(t)[e]=[])}function Zi(t,e){for(var i=0;i1&&c/u>2&&(h=Math.round(Math.ceil(h/u)*u));var d={min:s.get("showMinLabel"),max:s.get("showMaxLabel")};d.min&&h!==o[0]&&n(o[0]);for(var f=h;f<=o[1];f+=u)n(f);return d.max&&f!==o[1]&&n(o[1]),l}function Xi(t,e,i){var n=t.scale,a=Qx(t),r=[];return du.each(n.getTicks(),function(t){var o=n.getLabel(t);e(t,o)&&r.push(i?t:{formattedLabel:a(t),rawLabel:o,tickValue:t})}),r}function qi(t){var e=t.get("interval");return null==e?"auto":e}function $i(t,e){var i=(t[1]-t[0])/e/2;t[0]+=i,t[1]-=i}function Ki(t,e,i){Dp.Group.call(this),this.updateData(t,e,i)}function Ji(t){return[t[0]/2,t[1]/2]}function Qi(t){this.group=new Dp.Group,this._symbolCtor=t||H_}function tn(t,e,i,n){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(n.isIgnore&&n.isIgnore(i))&&!(n.clipShape&&!n.clipShape.contain(e[0],e[1]))&&"none"!==t.getItemVisual(i,"symbol")}function en(t){return null==t||F_(t)||(t={isIgnore:t}),t||{}}function nn(t){var e=t.hostModel;return{itemStyle:e.getModel("itemStyle").getItemStyle(["color"]),hoverItemStyle:e.getModel("emphasis.itemStyle").getItemStyle(),symbolRotate:e.get("symbolRotate"),symbolOffset:e.get("symbolOffset"),hoverAnimation:e.get("hoverAnimation"),labelModel:e.getModel("label"),hoverLabelModel:e.getModel("emphasis.label"),cursorStyle:e.get("cursor")}}function an(t){return isNaN(t[0])||isNaN(t[1])}function rn(t,e,i,n,a,r,o,s,l,u,h){return"none"!==u&&u?function(t,e,i,n,a,r,o,s,l,u,h){for(var c=0,d=i,f=0;f=a||d<0)break;if(an(p)){if(h){d+=r;continue}break}if(d===i)t[r>0?"moveTo":"lineTo"](p[0],p[1]);else if(l>0){var g=e[c],m="y"===u?1:0,v=(p[m]-g[m])*l;tb(ib,g),ib[m]=g[m]+v,tb(nb,p),nb[m]=p[m]-v,t.bezierCurveTo(ib[0],ib[1],nb[0],nb[1],p[0],p[1])}else t.lineTo(p[0],p[1]);c=d,d+=r}return f}.apply(this,arguments):function(t,e,i,n,a,r,o,s,l,u,h){for(var c=0,d=i,f=0;f=a||d<0)break;if(an(p)){if(h){d+=r;continue}break}if(d===i)t[r>0?"moveTo":"lineTo"](p[0],p[1]),tb(ib,p);else if(l>0){var g=d+r,m=e[g];if(h)for(;m&&an(e[g]);)m=e[g+=r];var v=.5,y=e[c];if(!(m=e[g])||an(m))tb(nb,p);else{an(m)&&!h&&(m=p),pu.sub(eb,m,y);var x,_;if("x"===u||"y"===u){var b="x"===u?0:1;x=Math.abs(p[b]-y[b]),_=Math.abs(p[b]-m[b])}else x=pu.dist(p,y),_=pu.dist(p,m);Q_(nb,p,eb,-l*(1-(v=_/(_+x))))}K_(ib,ib,s),J_(ib,ib,o),K_(nb,nb,s),J_(nb,nb,o),t.bezierCurveTo(ib[0],ib[1],nb[0],nb[1],p[0],p[1]),Q_(ib,p,eb,l*v)}else t.lineTo(p[0],p[1]);c=d,d+=r}return f}.apply(this,arguments)}function on(t,e){var i=[1/0,1/0],n=[-1/0,-1/0];if(e)for(var a=0;an[0]&&(n[0]=r[0]),r[1]>n[1]&&(n[1]=r[1])}return{min:e?i:n,max:e?n:i}}function sn(t,e){if(t.length===e.length){for(var i=0;ie[0]?1:-1;e[0]+=n*i,e[1]-=n*i}return e}function hn(t,e,i,n){return"polar"===t.type?function(t,e,i,n){var a=t.getAngleAxis(),r=t.getRadiusAxis().getExtent().slice();r[0]>r[1]&&r.reverse();var o=a.getExtent(),s=Math.PI/180;i&&(r[0]-=.5,r[1]+=.5);var l=new Dp.Sector({shape:{cx:sb(t.cx,1),cy:sb(t.cy,1),r0:sb(r[0],1),r:sb(r[1],1),startAngle:-o[0]*s,endAngle:-o[1]*s,clockwise:a.inverse}});return e&&(l.shape.endAngle=-o[0]*s,Dp.initProps(l,{shape:{endAngle:-o[1]*s}},n)),l}(t,e,i,n):function(t,e,i,n){var a=un(t.getAxis("x")),r=un(t.getAxis("y")),o=t.getBaseAxis().isHorizontal(),s=Math.min(a[0],a[1]),l=Math.min(r[0],r[1]),u=Math.max(a[0],a[1])-s,h=Math.max(r[0],r[1])-l;if(i)s-=.5,u+=.5,l-=.5,h+=.5;else{var c=n.get("lineStyle.width")||2,d=n.get("clipOverflow")?c/2:Math.max(u,h);o?(l-=d,h+=2*d):(s-=d,u+=2*d)}var f=new Dp.Rect({shape:{x:s,y:l,width:u,height:h}});return e&&(f.shape[o?"width":"height"]=0,Dp.initProps(f,{shape:{width:u,height:h}},n)),f}(t,e,i,n)}function cn(t,e,i){for(var n=e.getBaseAxis(),a="x"===n.dim||"radius"===n.dim?0:1,r=[],o=0;o=0||t===e}function An(t){var e=(t.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[Dn(t)]}function Tn(t){return!!t.get("handle.show")}function Dn(t){return t.type+"||"+t.id}function Cn(t,e,i,n,a,r){var o=rw.getAxisPointerClass(t.axisPointerClass);if(o){var s=aw.getAxisPointerModel(e);s?(t._axisPointer||(t._axisPointer=new o)).render(e,s,n,r):Ln(t,n)}}function Ln(t,e,i){var n=t._axisPointer;n&&n.dispose(e,i),t._axisPointer=null}function Pn(t,e){"outside"===t.textPosition&&(t.textPosition=e)}function kn(t,e,i){i.style.text=null,Dp.updateProps(i,{shape:{width:0}},e,t,function(){i.parent&&i.parent.remove(i)})}function On(t,e,i){i.style.text=null,Dp.updateProps(i,{shape:{r:i.shape.r0}},e,t,function(){i.parent&&i.parent.remove(i)})}function Rn(t,e,i,n,a,r,o,s){var l=e.getItemVisual(i,"color"),u=e.getItemVisual(i,"opacity"),h=n.getModel("itemStyle"),c=n.getModel("emphasis.itemStyle").getBarItemStyle();s||t.setShape("r",h.get("barBorderRadius")||0),t.useStyle(du.defaults({fill:l,opacity:u},h.getBarItemStyle()));var d=n.getShallow("cursor");d&&t.attr("cursor",d);var f=o?a.height>0?"bottom":"top":a.width>0?"left":"right";s||vw(t.style,c,n,l,r,i,f),Dp.setHoverStyle(t,c)}function Nn(t,e,i){var n=t.getData(),a=[],r=n.getLayout("valueAxisHorizontal")?1:0;a[1-r]=n.getLayout("valueAxisStart");var o=new bw({shape:{points:n.getLayout("largePoints")},incremental:!!i,__startPoint:a,__valueIdx:r});e.add(o),function(t,e,i){var n=i.getVisual("borderColor")||i.getVisual("color"),a=e.getModel("itemStyle").getItemStyle(["color","borderColor"]);t.useStyle(a),t.style.fill=null,t.style.stroke=n,t.style.lineWidth=i.getLayout("barWidth")}(o,t,n)}function En(t,e,i,n,a){var r=(e.startAngle+e.endAngle)/2,o=Math.cos(r),s=Math.sin(r),l=i?n:0,u=[o*l,s*l];a?t.animate().when(200,{position:u}).start("bounceOut"):t.attr("position",u)}function zn(t,e){function i(){r.ignore=r.hoverIgnore,o.ignore=o.hoverIgnore}function n(){r.ignore=r.normalIgnore,o.ignore=o.normalIgnore}Dp.Group.call(this);var a=new Dp.Sector({z2:2}),r=new Dp.Polyline,o=new Dp.Text;this.add(a),this.add(r),this.add(o),this.updateData(t,e,!0),this.on("emphasis",i).on("normal",n).on("mouseover",i).on("mouseout",n)}function Vn(t,e,i,n,a,r,o){function s(e,i){for(var n=e;n>=0&&(t[n].y-=i,!(n>0&&t[n].y>t[n-1].y+t[n-1].height));n--);}function l(t,e,i,n,a,r){for(var o=e?Number.MAX_VALUE:0,s=0,l=t.length;s=o&&(d=o-10),!e&&d<=o&&(d=o+10),t[s].x=i+d*r,o=d}}t.sort(function(t,e){return t.y-e.y});for(var u,h=0,c=t.length,d=[],f=[],p=0;pe&&r+1t[r].y+t[r].height)return void s(r,n/2);s(i-1,n/2)}(p,c,-u),h=t[p].y+t[p].height;o-h<0&&s(c-1,h-o);for(p=0;p=i?f.push(t[p]):d.push(t[p]);l(d,!1,e,i,n,a),l(f,!0,e,i,n,a)}function Bn(){this.group=new Dp.Group}function Gn(t,e,i){c_.call(this,t,e,i),this.type="value",this.angle=0,this.name="",this.model}function Hn(t,e,i){this._model=t,this.dimensions=[],this._indicatorAxes=du.map(t.getIndicatorModels(),function(t,e){var i="indicator_"+e,n=new jw(i,new lx);return n.name=t.get("name"),n.model=t,t.axis=n,this.dimensions.push(i),n},this),this.resize(t,i),this.cx,this.cy,this.r,this.startAngle}function Fn(t,e){return du.defaults({show:e},t)}function Wn(){Lu.call(this)}function Un(t){this.name=t,this.zoomLimit,Lu.call(this),this._roamTransformable=new Wn,this._rawTransformable=new Wn,this._center,this._zoom}function Zn(t,e,i,n){var a=i.seriesModel,r=a?a.coordinateSystem:null;return r===this?r[t](n):null}function jn(t,e,i,n,a){iS.call(this,t),this.map=e,this._nameCoordMap=du.createHashMap(),this.loadGeoJson(i,n,a)}function Yn(t,e,i,n){var a=i.geoModel,r=i.seriesModel,o=a?a.coordinateSystem:r?r.coordinateSystem||(r.getReferringComponents("geo")[0]||{}).coordinateSystem:null;return o===this?o[t](n):null}function Xn(t,e){var i=t.get("boundingCoords");if(null!=i){var n=i[0],a=i[1];isNaN(n[0])||isNaN(n[1])||isNaN(a[0])||isNaN(a[1])||this.setBoundingRect(n[0],n[1],a[0]-n[0],a[1]-n[1])}var r,o=this.getBoundingRect(),s=t.get("layoutCenter"),l=t.get("layoutSize"),u=e.getWidth(),h=e.getHeight(),c=t.get("aspectScale")||.75,d=o.width/o.height*c,f=!1;s&&l&&(s=[Up.parsePercent(s[0],u),Up.parsePercent(s[1],h)],l=Up.parsePercent(l,Math.min(u,h)),isNaN(s[0])||isNaN(s[1])||isNaN(l)||(f=!0));if(f){var p={};d>1?(p.width=l,p.height=l/d):(p.height=l,p.width=l*d),p.y=s[1]-p.height/2,p.x=s[0]-p.width/2}else(r=t.getBoxLayoutParams()).aspect=d,p=ng.getLayoutRect(r,{width:u,height:h});this.setViewRect(p.x,p.y,p.width,p.height),this.setCenter(t.get("center")),this.setZoom(t.get("zoom"))}function qn(t,e){du.each(e.get("geoCoord"),function(e,i){t.addGeoCoord(i,e)})}function $n(t){return t[yS]||(t[yS]={})}function Kn(t){this.pointerChecker,this._zr=t,this._opt={};var e=du.bind,i=e(function(t){if(mc.notLeftMouse(t)||t.target&&t.target.draggable)return;var e=t.offsetX,i=t.offsetY;this.pointerChecker&&this.pointerChecker(t,e,i)&&(this._x=e,this._y=i,this._dragging=!0)},this),n=e(function(t){if(mc.notLeftMouse(t)||!Qn(this,"moveOnMouseMove",t)||!this._dragging||"pinch"===t.gestureEvent||xS.isTaken(this._zr,"globalPan"))return;var e=t.offsetX,i=t.offsetY,n=this._x,a=this._y,r=e-n,o=i-a;this._x=e,this._y=i,this._opt.preventDefaultMouseMove&&mc.stop(t.event),this.trigger("pan",r,o,n,a,e,i)},this),a=e(function(t){mc.notLeftMouse(t)||(this._dragging=!1)},this),r=e(function(t){if(!Qn(this,"zoomOnMouseWheel",t)||0===t.wheelDelta)return;var e=t.wheelDelta>0?1.1:1/1.1;Jn.call(this,t,e,t.offsetX,t.offsetY)},this),o=e(function(t){if(xS.isTaken(this._zr,"globalPan"))return;var e=t.pinchScale>1?1.1:1/1.1;Jn.call(this,t,e,t.pinchX,t.pinchY)},this);yu.call(this),this.setPointerChecker=function(t){this.pointerChecker=t},this.enable=function(e,s){this.disable(),this._opt=du.defaults(du.clone(s)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,preventDefaultMouseMove:!0}),null==e&&(e=!0),!0!==e&&"move"!==e&&"pan"!==e||(t.on("mousedown",i),t.on("mousemove",n),t.on("mouseup",a)),!0!==e&&"scale"!==e&&"zoom"!==e||(t.on("mousewheel",r),t.on("pinch",o))},this.disable=function(){t.off("mousedown",i),t.off("mousemove",n),t.off("mouseup",a),t.off("mousewheel",r),t.off("pinch",o)},this.dispose=this.disable,this.isDragging=function(){return this._dragging},this.isPinching=function(){return this._pinching}}function Jn(t,e,i,n){this.pointerChecker&&this.pointerChecker(t,i,n)&&(mc.stop(t.event),this.trigger("zoom",e,i,n))}function Qn(t,e,i){var n=t._opt[e];return n&&(!du.isString(n)||i.event[n+"Key"])}function ta(t,e){var i=t.getItemStyle(),n=t.get("areaColor");return null!=n&&(i.fill=n),i}function ea(t,e){e.eachChild(function(e){du.each(e.__regions,function(i){e.trigger(t.isSelected(i.name)?"emphasis":"normal")})})}function ia(t,e){var i=new Dp.Group;this._controller=new _S(t.getZr()),this._controllerHost={target:e?i:null},this.group=i,this._updateGroup=e,this._mouseDownFlag}function na(t,e,i){t[OS]={},kS(e,function(e,n){aa(e,n,t,i)})}function aa(t,e,i,n){i[OS][e]=t,t[RS]=i,t.dataType=e,n.struct&&(t[n.structAttr]=n.struct,n.struct[n.datasAttr[e]]=t),t.getLinkedData=function(t){var e=this[RS];return null==t||null==e?e:e[OS][t]}}function ra(t,e,i){this.root,this.data,this._nodes=[],this.hostModel=t,this.levelModels=du.map(e||[],function(e){return new Vp(e,t,t.ecModel)}),this.leavesModel=new Vp(i||{},t,t.ecModel)}function oa(t){var e=t.children;return e.length&&t.isExpand?e[e.length-1]:t.hierNode.thread}function sa(t){var e=t.children;return e.length&&t.isExpand?e[0]:t.hierNode.thread}function la(t,e){var i=t.getItemLayout(e);return i&&!isNaN(i.x)&&!isNaN(i.y)&&"none"!==t.getItemVisual(e,"symbol")}function ua(t,e,i){return i.itemModel=e,i.itemStyle=e.getModel("itemStyle").getItemStyle(),i.hoverItemStyle=e.getModel("emphasis.itemStyle").getItemStyle(),i.lineStyle=e.getModel("lineStyle").getLineStyle(),i.labelModel=e.getModel("label"),i.hoverLabelModel=e.getModel("emphasis.label"),!1===t.isExpand&&0!==t.children.length?i.symbolInnerColor=i.itemStyle.fill:i.symbolInnerColor="#fff",i}function ha(t,e,i,n,a,r){var o=!i,s=t.tree.getNodeByDataIndex(e),r=ua(s,s.getModel(),r),l=t.tree.root,u=s.parentNode===l?s:s.parentNode||s,h=t.getItemGraphicEl(u.dataIndex),c=u.getLayout(),d=h?{x:h.position[0],y:h.position[1],rawX:h.__radialOldRawX,rawY:h.__radialOldRawY}:c,f=s.getLayout();o?(i=new H_(t,e,r)).attr("position",[d.x,d.y]):i.updateData(t,e,r),i.__radialOldRawX=i.__radialRawX,i.__radialOldRawY=i.__radialRawY,i.__radialRawX=f.rawX,i.__radialRawY=f.rawY,n.add(i),t.setItemGraphicEl(e,i),Dp.updateProps(i,{position:[f.x,f.y]},a);var p=i.getSymbolPath();if("radial"===r.layout){var g,m,v=l.children[0],y=v.getLayout(),x=v.children.length;if(f.x===y.x&&!0===s.isExpand){var _={};_.x=(v.children[0].getLayout().x+v.children[x-1].getLayout().x)/2,_.y=(v.children[0].getLayout().y+v.children[x-1].getLayout().y)/2,(g=Math.atan2(_.y-y.y,_.x-y.x))<0&&(g=2*Math.PI+g),(m=_.xy.x)||(g-=Math.PI);var b=m?"left":"right";p.setStyle({textPosition:b,textRotation:-g,textOrigin:"center",verticalAlign:"middle"})}if(s.parentNode&&s.parentNode!==l){var w=i.__edge;w||(w=i.__edge=new Dp.BezierCurve({shape:da(r,d,d),style:du.defaults({opacity:0},r.lineStyle)})),Dp.updateProps(w,{shape:da(r,c,f),style:{opacity:1}},a),n.add(w)}}function ca(t,e,i,n,a,r){for(var o,s=t.tree.getNodeByDataIndex(e),l=t.tree.root,r=ua(s,s.getModel(),r),u=s.parentNode===l?s:s.parentNode||s;null==(o=u.getLayout());)u=u.parentNode===l?u:u.parentNode||u;Dp.updateProps(i,{position:[o.x+1,o.y+1]},a,function(){n.remove(i),t.setItemGraphicEl(e,null)}),i.fadeOut(null,{keepLabel:!0});var h=i.__edge;h&&Dp.updateProps(h,{shape:da(r,o,o),style:{opacity:0}},a,function(){n.remove(h)})}function da(t,e,i){var n,a,r,o,s=t.orient;if("radial"===t.layout){var l=e.rawX,u=e.rawY,h=i.rawX,c=i.rawY,d=GS(l,u),f=GS(l,u+(c-u)*t.curvature),p=GS(h,c+(u-c)*t.curvature),g=GS(h,c);return{x1:d.x,y1:d.y,x2:g.x,y2:g.y,cpx1:f.x,cpy1:f.y,cpx2:p.x,cpy2:p.y}}var l=e.x,u=e.y,h=i.x,c=i.y;return"LR"!==s&&"RL"!==s||(n=l+(h-l)*t.curvature,a=u,r=h+(l-h)*t.curvature,o=c),"TB"!==s&&"BT"!==s||(n=l,a=u+(c-u)*t.curvature,r=h,o=c+(u-c)*t.curvature),{x1:l,y1:u,x2:h,y2:c,cpx1:n,cpy1:a,cpx2:r,cpy2:o}}function fa(t){for(var e=[];t;)(t=t.parentNode)&&e.push(t);return e.reverse()}function pa(t){var e=0;du.each(t.children,function(t){pa(t);var i=t.value;du.isArray(i)&&(i=i[0]),e+=i});var i=t.value;du.isArray(i)&&(i=i[0]),(null==i||isNaN(i))&&(i=e),i<0&&(i=0),du.isArray(t.value)?t.value[0]=i:t.value=i}function ga(t){this.group=new Dp.Group,t.add(this.group)}function ma(t,e){var i=t.visual,n=[];du.isObject(i)?bM(i,function(t){n.push(t)}):null!=i&&n.push(i);e||1!==n.length||{color:1,symbol:1}.hasOwnProperty(t.type)||(n[1]=n[0]),Ma(t,n)}function va(t){return{applyVisual:function(e,i,n){e=this.mapValueToVisual(e),n("color",t(i("color"),e))},_doMap:wa([0,1])}}function ya(t){var e=this.option.visual;return e[Math.round(_M(t,[0,1],[0,e.length-1],!0))]||{}}function xa(t){return function(e,i,n){n(t,this.mapValueToVisual(e))}}function _a(t){var e=this.option.visual;return e[this.option.loop&&t!==SM?t%e.length:t]}function ba(){return this.option.visual[0]}function wa(t){return{linear:function(e){return _M(e,t,this.option.visual,!0)},category:_a,piecewise:function(e,i){var n=Sa.call(this,i);return null==n&&(n=_M(e,t,this.option.visual,!0)),n},fixed:ba}}function Sa(t){var e=this.option,i=e.pieceList;if(e.hasSpecialVisual){var n=i[MM.findPieceIndex(t,i)];if(n&&n.visual)return n.visual[this.type]}}function Ma(t,e){return t.visual=e,"color"===t.type&&(t.parsedVisual=du.map(e,function(t){return Wu.parse(t)})),e}function Ia(t,e,i){return t?e<=i:eu[1]&&(u[1]=l);var h=e.get("colorMappingBy"),c={type:o.name,dataExtent:u,visual:o.range};"color"!==c.type||"index"!==h&&"id"!==h?c.mappingMethod="linear":(c.mappingMethod="category",c.loop=!0);var d=new TM(c);return d.__drColorMappingBy=h,d}(0,o,s,0,h,f);du.each(f,function(t,e){if(t.depth>=a.length||t===a[t.depth]){Aa(t,function(t,e,i,n,a,r){var o=du.extend({},e);if(a){var s=a.type,l="color"===s&&a.__drColorMappingBy,u="index"===l?n:"id"===l?r.mapIdToIndex(i.getId()):i.getValue(t.get("visualDimension"));o[s]=a.mapValueToVisual(u)}return o}(o,h,t,e,p,r),i,n,a,r)}})}else l=Ta(h),t.setVisual("color",l)}}function Ta(t){var e=Da(t,"color");if(e){var i=Da(t,"colorAlpha"),n=Da(t,"colorSaturation");return n&&(e=Wu.modifyHSL(e,null,null,n)),i&&(e=Wu.modifyAlpha(e,i)),e}}function Da(t,e){var i=t[e];if(null!=i&&"none"!==i)return i}function Ca(t,e){var i=t.get(e);return DM(i)&&i.length?{name:e,range:i}:null}function La(t,e,i,n){var a,r;if(!t.isRemoved()){var o=t.getLayout();a=o.width,r=o.height;var s=(f=t.getModel()).get(zM),l=f.get(VM)/2,u=Oa(f),h=Math.max(s,u),c=s-l,d=h-l,f=t.getModel();t.setLayout({borderWidth:s,upperHeight:h,upperLabelHeight:u},!0);var p=(a=OM(a-2*c,0))*(r=OM(r-c-d,0)),g=function(t,e,i,n,a,r){var o=t.children||[],s=n.sort;"asc"!==s&&"desc"!==s&&(s=null);var l=null!=n.leafDepth&&n.leafDepth<=r;if(a&&!l)return t.viewChildren=[];!function(t,e){e&&t.sort(function(t,i){var n="asc"===e?t.getValue()-i.getValue():i.getValue()-t.getValue();return 0===n?"asc"===e?t.dataIndex-i.dataIndex:i.dataIndex-t.dataIndex:n})}(o=du.filter(o,function(t){return!t.isRemoved()}),s);var u=function(t,e,i){for(var n=0,a=0,r=e.length;as[1]&&(s[1]=e)})}else s=[NaN,NaN];return{sum:n,dataExtent:s}}(e,o,s);if(0===u.sum)return t.viewChildren=[];if(u.sum=function(t,e,i,n,a){if(!n)return i;for(var r=t.get("visibleMin"),o=a.length,s=o,l=o-1;l>=0;l--){var u=a["asc"===n?o-l-1:l].getValue();u/i*ea&&(a=n));var l=t.area*t.area,u=e*e*i;return l?OM(u*a/l,l/(u*r)):1/0}(x,v,e.squareRatio);S<=y?(_++,y=S):(x.area-=x.pop().getLayout().area,Pa(x,v,m,l,!1),v=RM(m.width,m.height),x.length=x.area=0,y=1/0)}if(x.length&&Pa(x,v,m,l,!0),!i){var M=f.get("childrenVisibleMin");null!=M&&pi[l[o]])&&(h=i[l[o]]);for(var c=0,d=t.length;c=0?n+=u:n-=u:p>=0?n-=u:n+=u}return n}function Ya(t,e){return t.getVisual("opacity")||t.getModel().get(e)}function Xa(t,e,i){var n=t.getGraphicEl(),a=Ya(t,e);null!=i&&(null==a&&(a=1),a*=i),n.downplay&&n.downplay(),n.traverse(function(t){"group"!==t.type&&t.setStyle("opacity",a)})}function qa(t,e){var i=Ya(t,e),n=t.getGraphicEl();n.highlight&&n.highlight(),n.traverse(function(t){"group"!==t.type&&t.setStyle("opacity",i)})}function $a(t){return t instanceof Array||(t=[t,t]),t}function Ka(t){t.eachEdge(function(t){var e=t.getModel().get("lineStyle.curveness")||0,i=pu.clone(t.node1.getLayout()),n=pu.clone(t.node2.getLayout()),a=[i,n];+e&&a.push([(i[0]+n[0])/2-(i[1]-n[1])*e,(i[1]+n[1])/2-(n[0]-i[0])*e]),t.setLayout(a)})}function Ja(t,e){return e&&("string"==typeof e?t=e.replace("{value}",null!=t?t:""):"function"==typeof e&&(t=e(t))),t}function Qa(t,e){function i(){r.ignore=r.hoverIgnore,o.ignore=o.hoverIgnore}function n(){r.ignore=r.normalIgnore,o.ignore=o.normalIgnore}Dp.Group.call(this);var a=new Dp.Polygon,r=new Dp.Polyline,o=new Dp.Text;this.add(a),this.add(r),this.add(o),this.updateData(t,e,!0),this.on("emphasis",i).on("normal",n).on("mouseover",i).on("mouseout",n)}function tr(t,e){var i=t[e]-t[1-e];return{span:Math.abs(i),sign:i>0?-1:i<0?1:e?-1:1}}function er(t,e){return Math.min(e[1],Math.max(e[0],t))}function ir(t,e,i){this._axesMap=du.createHashMap(),this._axesLayout={},this.dimensions=t.dimensions,this._rect,this._model=t,this._init(t,e,i)}function nr(t,e){return QI(tA(t,e[0]),e[1])}function ar(t){yu.call(this),this._zr=t,this.group=new Dp.Group,this._brushType,this._brushOption,this._panels,this._track=[],this._dragging,this._covers=[],this._creatingCover,this._creatingPanel,this._enableGlobalPan,this._uid="brushController_"+_A++,this._handlers={},lA(bA,function(t,e){this._handlers[e]=du.bind(t,this)},this)}function rr(t,e){var i=wA[e.brushType].createCover(t,e);return i.__brushOption=e,lr(i,e),t.group.add(i),i}function or(t,e){var i=hr(e);return i.endCreating&&(i.endCreating(t,e),lr(e,e.__brushOption)),e}function sr(t,e){var i=e.__brushOption;hr(e).updateCoverShape(t,e,i.range,i)}function lr(t,e){var i=e.z;null==i&&(i=fA),t.traverse(function(t){t.z=i,t.z2=i})}function ur(t,e){hr(e).updateCommon(t,e),sr(t,e)}function hr(t){return wA[t.__brushOption.brushType]}function cr(t,e,i){var n=t._panels;if(!n)return!0;var a,r=t._transform;return lA(n,function(t){t.isTargetByCursor(e,i,r)&&(a=t)}),a}function dr(t,e){var i=t._panels;if(!i)return!0;var n=e.__brushOption.panelId;return null==n||i[n]}function fr(t){var e=t._covers,i=e.length;return lA(e,function(e){t.group.remove(e)},t),e.length=0,!!i}function pr(t,e){var i=uA(t._covers,function(t){var e=t.__brushOption,i=du.clone(e.range);return{brushType:e.brushType,panelId:e.panelId,range:i}});t.trigger("brush",i,{isEnd:!!e.isEnd,removeOnClick:!!e.removeOnClick})}function gr(t){var e=t.length-1;return e<0&&(e=0),[t[0],t[e]]}function mr(t,e,i,n){var a=new Dp.Group;return a.add(new Dp.Rect({name:"main",style:_r(i),silent:!0,draggable:!0,cursor:"move",drift:sA(t,e,a,"nswe"),ondragend:sA(pr,e,{isEnd:!0})})),lA(n,function(i){a.add(new Dp.Rect({name:i,style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:sA(t,e,a,i),ondragend:sA(pr,e,{isEnd:!0})}))}),a}function vr(t,e,i,n){var a=n.brushStyle.lineWidth||0,r=cA(a,gA),o=i[0][0],s=i[1][0],l=o-a/2,u=s-a/2,h=i[0][1],c=i[1][1],d=h-r+a/2,f=c-r+a/2,p=h-o,g=c-s,m=p+a,v=g+a;xr(t,e,"main",o,s,p,g),n.transformable&&(xr(t,e,"w",l,u,r,v),xr(t,e,"e",d,u,r,v),xr(t,e,"n",l,u,m,r),xr(t,e,"s",l,f,m,r),xr(t,e,"nw",l,u,r,r),xr(t,e,"ne",d,u,r,r),xr(t,e,"sw",l,f,r,r),xr(t,e,"se",d,f,r,r))}function yr(t,e){var i=e.__brushOption,n=i.transformable,a=e.childAt(0);a.useStyle(_r(i)),a.attr({silent:!n,cursor:n?"move":"default"}),lA(["w","e","n","s","se","sw","ne","nw"],function(i){var a=e.childOfName(i),r=wr(t,i);a&&a.attr({silent:!n,invisible:!n,cursor:n?yA[r]+"-resize":null})})}function xr(t,e,i,n,a,r,o){var s=e.childOfName(i);s&&s.setShape(function(t){var e=hA(t[0][0],t[1][0]),i=hA(t[0][1],t[1][1]),n=cA(t[0][0],t[1][0]),a=cA(t[0][1],t[1][1]);return{x:e,y:i,width:n-e,height:a-i}}(Ir(t,e,[[n,a],[n+r,a+o]])))}function _r(t){return du.defaults({strokeNoScale:!0},t.brushStyle)}function br(t,e,i,n){var a=[hA(t,i),hA(e,n)],r=[cA(t,i),cA(e,n)];return[[a[0],r[0]],[a[1],r[1]]]}function wr(t,e){if(e.length>1){return("e"===(i=[wr(t,(e=e.split(""))[0]),wr(t,e[1])])[0]||"w"===i[0])&&i.reverse(),i.join("")}var i=Dp.transformDirection({w:"left",e:"right",n:"top",s:"bottom"}[e],function(t){return Dp.getTransform(t.group)}(t));return{left:"w",right:"e",top:"n",bottom:"s"}[i]}function Sr(t,e,i,n,a,r,o,s){var l=n.__brushOption,u=t(l.range),h=Mr(i,r,o);lA(a.split(""),function(t){var e=vA[t];u[e[0]][e[1]]+=h[e[0]]}),l.range=e(br(u[0][0],u[1][0],u[0][1],u[1][1])),ur(i,n),pr(i,{isEnd:!1})}function Mr(t,e,i){var n=t.group,a=n.transformCoordToLocal(e,i),r=n.transformCoordToLocal(0,0);return[a[0]-r[0],a[1]-r[1]]}function Ir(t,e,i){var n=dr(t,e);return n&&!0!==n?n.clipPath(i,t._transform):du.clone(i)}function Ar(t){var e=t.event;e.preventDefault&&e.preventDefault()}function Tr(t,e,i){return t.childOfName("main").contain(e,i)}function Dr(t,e,i,n){var a,r=t._creatingCover,o=t._creatingPanel,s=t._brushOption;if(t._track.push(i.slice()),function(t){var e=t._track;if(!e.length)return!1;var i=e[e.length-1],n=e[0],a=i[0]-n[0],r=i[1]-n[1];return dA(a*a+r*r,.5)>pA}(t)||r){if(o&&!r){"single"===s.brushMode&&fr(t);var l=du.clone(s);l.brushType=Cr(l.brushType,o),l.panelId=!0===o?null:o.panelId,r=t._creatingCover=rr(t,l),t._covers.push(r)}if(r){var u=wA[Cr(t._brushType,o)];r.__brushOption.range=u.getCreatingRange(Ir(t,r,t._track)),n&&(or(t,r),u.updateCommon(t,r)),sr(t,r),a={isEnd:n}}}else n&&"single"===s.brushMode&&s.removeOnClick&&cr(t,e,i)&&fr(t)&&(a={isEnd:n,removeOnClick:!0});return a}function Cr(t,e){return"auto"===t?e.defaultBrushType:t}function Lr(t){if(this._dragging){Ar(t);var e=Dr(this,t,this.group.transformCoordToLocal(t.offsetX,t.offsetY),!0);this._dragging=!1,this._track=[],this._creatingCover=null,e&&pr(this,e)}}function Pr(t){return{createCover:function(e,i){return mr(sA(Sr,function(e){var i=[e,[0,100]];return t&&i.reverse(),i},function(e){return e[t]}),e,i,[["w","e"],["n","s"]][t])},getCreatingRange:function(e){var i=gr(e);return[hA(i[0][t],i[1][t]),cA(i[0][t],i[1][t])]},updateCoverShape:function(e,i,n,a){var r,o=dr(e,i);if(!0!==o&&o.getLinearBrushOtherExtent)r=o.getLinearBrushOtherExtent(t,e._transform);else{var s=e._zr;r=[0,[s.getWidth(),s.getHeight()][1-t]]}var l=[n,r];t&&l.reverse(),vr(e,i,l,a)},updateCommon:yr,contain:Tr}}function kr(t){return ch.create(t)}function Or(t,e){var i=t._model;return i.get("axisExpandable")&&i.get("axisExpandTriggerOn")===e}function Rr(t,e,i,n){for(var a=[],r=0;r0){l=n.getLayout().y+a;n.setLayout({y:l},!0)}o=n.getLayout().y+n.getLayout().dy+e}if((a=o-e-i)>0){var l=n.getLayout().y-a;for(n.setLayout({y:l},!0),o=n.getLayout().y,r=s-2;r>=0;--r)(a=(n=t[r]).getLayout().y+n.getLayout().dy+e-o)>0&&(l=n.getLayout().y-a,n.setLayout({y:l},!0)),o=n.getLayout().y}})}function Br(t,e){for(var i=0,n=t.length,a=-1;++a0?"P":"N",r=n.getVisual("borderColor"+a)||n.getVisual("color"+a),o=i.getModel(tT).getItemStyle(iT);e.useStyle(o),e.style.fill=null,e.style.stroke=r}function Xr(t,e,i,n,a){return i>n?-1:i0?t.get(a,e-1)<=n?1:-1:1}function qr(t,e){t.eachChild(function(t){t.attr({z:e.z,zlevel:e.zlevel,style:{stroke:"stroke"===e.brushType?e.color:null,fill:"fill"===e.brushType?e.color:null}})})}function $r(t,e){vT.call(this);var i=new H_(t,e),n=new vT;this.add(i),this.add(n),n.beforeUpdate=function(){this.attr(i.getScale())},this.updateData(t,e)}function Kr(t){var e=t.data;e&&e[0]&&e[0][0]&&e[0][0].coord&&(t.data=ST(e,function(t){var e={coords:[t[0].coord,t[1].coord]};return t[0].name&&(e.fromName=t[0].name),t[1].name&&(e.toName=t[1].name),wT([e,t[0],t[1]])}))}function Jr(t,e,i){Dp.Group.call(this),this.add(this.createLine(t,e,i)),this._updateEffectSymbol(t,e)}function Qr(t,e,i){Dp.Group.call(this),this._createPolyline(t,e,i)}function to(t,e,i){LT.call(this,t,e,i),this._lastFrame=0,this._lastFramePercent=0}function eo(){this.group=new Dp.Group}function io(t){return t instanceof Array||(t=[t,t]),t}function no(){var t=du.createCanvas();this.canvas=t,this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={}}function ao(t,e,i,n){var a=t.getItemLayout(e),r=i.get("symbolRepeat"),o=i.get("symbolClip"),s=i.get("symbolPosition")||"start",l=(i.get("symbolRotate")||0)*Math.PI/180||0,u=i.get("symbolPatternSize")||2,h=i.isAnimationEnabled(),c={dataIndex:e,layout:a,itemModel:i,symbolType:t.getItemVisual(e,"symbol")||"circle",color:t.getItemVisual(e,"color"),symbolClip:o,symbolRepeat:r,symbolRepeatDirection:i.get("symbolRepeatDirection"),symbolPatternSize:u,rotation:l,animationModel:h?i:null,hoverAnimation:h&&i.get("hoverAnimation"),z2:i.getShallow("z",!0)||0};!function(t,e,i,n,a){var r,o=n.valueDim,s=t.get("symbolBoundingData"),l=n.coordSys.getOtherAxis(n.coordSys.getBaseAxis()),u=l.toGlobalCoord(l.dataToCoord(0)),h=1-+(i[o.wh]<=0);if(du.isArray(s)){var c=[ro(l,s[0])-u,ro(l,s[1])-u];c[1]0?1:r<0?-1:0}(i,r,a,n,c),function(t,e,i,n,a,r,o,s,l,u){var h=l.valueDim,c=l.categoryDim,d=Math.abs(i[c.wh]),f=t.getItemVisual(e,"symbolSize");du.isArray(f)?f=f.slice():(null==f&&(f="100%"),f=[f,f]);f[c.index]=UT(f[c.index],d),f[h.index]=UT(f[h.index],n?d:Math.abs(r)),u.symbolSize=f;(u.symbolScale=[f[0]/s,f[1]/s])[h.index]*=(l.isHorizontal?-1:1)*o}(t,e,a,r,0,c.boundingLength,c.pxSign,u,n,c),function(t,e,i,n,a){var r=t.get(YT)||0;r&&(qT.attr({scale:e.slice(),rotation:i}),qT.updateTransform(),r/=qT.getLineScale(),r*=e[n.valueDim.index]);a.valueLineWidth=r}(i,c.symbolScale,l,n,c);var d=c.symbolSize,f=i.get("symbolOffset");return du.isArray(f)&&(f=[UT(f[0],d[0]),UT(f[1],d[1])]),function(t,e,i,n,a,r,o,s,l,u,h,c){var d=h.categoryDim,f=h.valueDim,p=c.pxSign,g=Math.max(e[f.index]+s,0),m=g;if(n){var v=Math.abs(l),y=du.retrieve(t.get("symbolMargin"),"15%")+"",x=!1;y.lastIndexOf("!")===y.length-1&&(x=!0,y=y.slice(0,y.length-1)),y=UT(y,e[f.index]);var _=Math.max(g+2*y,0),b=x?0:2*y,w=ZT(n),S=w?n:_o((v+b)/_);_=g+2*(y=(v-S*g)/2/(x?S:S-1)),b=x?0:2*y,w||"fixed"===n||(S=u?_o((Math.abs(u)+b)/_):0),m=S*_-b,c.repeatTimes=S,c.symbolMargin=y}var M=p*(m/2),I=c.pathPosition=[];I[d.index]=i[d.wh]/2,I[f.index]="start"===o?M:"end"===o?l-M:l/2,r&&(I[0]+=r[0],I[1]+=r[1]);var A=c.bundlePosition=[];A[d.index]=i[d.xy],A[f.index]=i[f.xy];var T=c.barRectShape=du.extend({},i);T[f.wh]=p*Math.max(Math.abs(i[f.wh]),Math.abs(I[f.index]+M)),T[d.wh]=i[d.wh];var D=c.clipShape={};D[d.xy]=-i[d.xy],D[d.wh]=h.ecSize[d.wh],D[f.xy]=0,D[f.wh]=i[f.wh]}(i,d,a,r,0,f,s,c.valueLineWidth,c.boundingLength,c.repeatCutLength,n,c),c}function ro(t,e){return t.toGlobalCoord(t.dataToCoord(t.scale.parse(e)))}function oo(t){var e=t.symbolPatternSize,i=WT(t.symbolType,-e/2,-e/2,e,e,t.color);return i.attr({culling:!0}),"image"!==i.type&&i.setStyle({strokeNoScale:!0}),i}function so(t,e,i,n){function a(t){var e=l.slice(),n=i.pxSign,a=t;return("start"===i.symbolRepeatDirection?n>0:n<0)&&(a=h-1-t),e[u.index]=d*(a-h/2+.5)+l[u.index],{position:e,scale:i.symbolScale.slice(),rotation:i.rotation}}var r=t.__pictorialBundle,o=i.symbolSize,s=i.valueLineWidth,l=i.pathPosition,u=e.valueDim,h=i.repeatTimes||0,c=0,d=o[e.valueDim.index]+s+2*i.symbolMargin;for(vo(t,function(t){t.__pictorialAnimationIndex=c,t.__pictorialRepeatTimes=h,c0)],c=t.__pictorialBarRect;jT(c.style,u,r,n,e.seriesModel,a,h),Dp.setHoverStyle(c,u)}function _o(t){var e=Math.round(t);return Math.abs(t-e)<1e-4?e:Math.ceil(t)}function bo(t,e,i){this.dimension="single",this.dimensions=["single"],this._axis=null,this._rect,this._init(t,e,i),this.model=t}function wo(t,e,i,n,a){var r=t.axis;if(!r.scale.isBlank()&&r.containData(e))if(t.involveSeries){var o=function(t,e){var i=e.axis,n=i.dim,a=t,r=[],o=Number.MAX_VALUE,s=-1;return lD(e.seriesModels,function(e,l){var u,h,c=e.getData().mapDimension(n,!0);if(e.getAxisTooltipData){var d=e.getAxisTooltipData(c,t,i);h=d.dataIndices,u=d.nestestValue}else{if(!(h=e.getData().indicesOfNearest(c[0],t,"category"===i.type?.5:null)).length)return;u=e.getData().get(c[0],h[0])}if(null!=u&&isFinite(u)){var f=t-u,p=Math.abs(f);p<=o&&((p=0&&s<0)&&(o=p,s=f,a=u,r.length=0),lD(h,function(t){r.push({seriesIndex:e.seriesIndex,dataIndexInside:t,dataIndex:e.getData().getRawIndex(t)})}))}}),{payloadBatch:r,snapToValue:a}}(e,t),s=o.payloadBatch,l=o.snapToValue;s[0]&&null==a.seriesIndex&&du.extend(a,s[0]),!n&&t.snap&&r.containData(l)&&null!=l&&(e=l),i.showPointer(t,e,s,a),i.showTooltip(t,o,l)}else i.showPointer(t,e)}function So(t){var e=t.axis.model,i={},n=i.axisDim=t.axis.dim;return i.axisIndex=i[n+"AxisIndex"]=e.componentIndex,i.axisName=i[n+"AxisName"]=e.name,i.axisId=i[n+"AxisId"]=e.id,i}function Mo(t){return!t||null==t[0]||isNaN(t[0])||null==t[1]||isNaN(t[1])}function Io(t,e,i,n){e.handler(t,i,n)}function Ao(){}function To(t,e,i,n){Do(mD(i).lastProp,n)||(mD(i).lastProp=n,e?Dp.updateProps(i,n,t):(i.stopAnimation(),i.attr(n)))}function Do(t,e){if(du.isObject(t)&&du.isObject(e)){var i=!0;return du.each(e,function(e,n){i=i&&Do(t[n],e)}),!!i}return t===e}function Co(t,e){t[e.get("label.show")?"show":"hide"]()}function Lo(t){return{position:t.position.slice(),rotation:t.rotation||0}}function Po(t,e,i){var n=e.get("z"),a=e.get("zlevel");t&&t.traverse(function(t){"group"!==t.type&&(null!=n&&(t.z=n),null!=a&&(t.zlevel=a),t.silent=i)})}function ko(t,e,i,n,a){var r=Oo(i.get("value"),e.axis,e.ecModel,i.get("seriesDataIndices"),{precision:i.get("label.precision"),formatter:i.get("label.formatter")}),o=i.getModel("label"),s=qp.normalizeCssArray(o.get("padding")||0),l=o.getFont(),u=jh.getBoundingRect(r,l),h=a.position,c=u.width+s[1]+s[3],d=u.height+s[0]+s[2],f=a.align;"right"===f&&(h[0]-=c),"center"===f&&(h[0]-=c/2);var p=a.verticalAlign;"bottom"===p&&(h[1]-=d),"middle"===p&&(h[1]-=d/2),function(t,e,i,n){var a=n.getWidth(),r=n.getHeight();t[0]=Math.min(t[0]+e,a)-e,t[1]=Math.min(t[1]+i,r)-i,t[0]=Math.max(t[0],0),t[1]=Math.max(t[1],0)}(h,c,d,n);var g=o.get("backgroundColor");g&&"auto"!==g||(g=e.get("axisLine.lineStyle.color")),t.label={shape:{x:0,y:0,width:c,height:d,r:o.get("borderRadius")},position:h.slice(),style:{text:r,textFont:l,textFill:o.getTextColor(),textPosition:"inside",fill:g,stroke:o.get("borderColor")||"transparent",lineWidth:o.get("borderWidth")||0,shadowBlur:o.get("shadowBlur"),shadowColor:o.get("shadowColor"),shadowOffsetX:o.get("shadowOffsetX"),shadowOffsetY:o.get("shadowOffsetY")},z2:10}}function Oo(t,e,i,n,a){t=e.scale.parse(t);var r=e.scale.getLabel(t,{precision:a.precision}),o=a.formatter;if(o){var s={value:kx.getAxisRawValue(e,t),seriesData:[]};du.each(n,function(t){var e=i.getSeriesByIndex(t.seriesIndex),n=t.dataIndexInside,a=e&&e.getDataParams(n);a&&s.seriesData.push(a)}),du.isString(o)?r=o.replace("{value}",r):du.isFunction(o)&&(r=o(s))}return r}function Ro(t,e,i){var n=Mu.create();return Mu.rotate(n,n,i.rotation),Mu.translate(n,n,i.position),Dp.applyTransform([t.dataToCoord(e),(i.labelOffset||0)+(i.labelDirection||1)*(i.labelMargin||0)],n)}function No(t,e){var i={};return i[e.dim+"AxisIndex"]=e.index,t.getCartesian(i)}function Eo(t){return"x"===t.dim?0:1}function zo(t){return t.isHorizontal()?0:1}function Vo(t,e){var i=t.getRect();return[i[SD[e]],i[SD[e]]+i[MD[e]]]}function Bo(t,e,i){if(t.count())for(var n,a=e.coordinateSystem,r=e.getLayerSeries(),o=t.mapDimension("single"),s=t.mapDimension("value"),l=du.map(r,function(e){return du.map(e.indices,function(e){var i=a.dataToPoint(t.get(o,e));return i[1]=t.get(s,e),i})}),u=function(t){for(var e=t.length,i=t[0].length,n=[],a=[],r=0,o={},s=0;sr&&(r=u),n.push(u)}for(var h=0;hr&&(r=d)}return o.y0=a,o.max=r,o}(l),h=u.y0,c=i/u.max,d=r.length,f=r[0].indices.length,p=0;pe[0]&&(e=e.slice().reverse());var n=t.coordToPoint([e[0],i]),a=t.coordToPoint([e[1],i]);return{x1:n[0],y1:n[1],x2:a[0],y2:a[1]}}function gs(t){return t.getRadiusAxis().inverse?0:1}function ms(t){var e=t[0],i=t[t.length-1];e&&i&&Math.abs(Math.abs(e.coord-i.coord)-360)<1e-4&&t.pop()}function vs(t,e){e.update="updateView",C_.registerAction(e,function(e,i){var n={};return i.eachComponent({mainType:"geo",query:e},function(i){i[t](e.name);var a=i.coordinateSystem;du.each(a.regions,function(t){n[t.name]=i.isSelected(t.name)||!1})}),{selected:n,name:e.name}})}function ys(t){if(t)for(var e in t)if(t.hasOwnProperty(e))return!0}function xs(t){var e=["x","y"],i=["width","height"];return{point:function(e,i,n){if(e){var a=n.range;return _s(e[t],a)}},rect:function(n,a,r){if(n){var o=r.range,s=[n[e[t]],n[e[t]]+n[i[t]]];return s[1]=-1e-6}(l))return!1;var u=ws(a-t,a-o,r-e,r-s)/l;if(u<0||u>1)return!1;var h=ws(i-t,a-t,n-e,r-e)/l;if(h<0||h>1)return!1;return!0}(t,e,i,n,s[0],s[1],o[0],o[1]))return!0;o=s}}function ws(t,e,i,n){return t*n-e*i}function Ss(t,e,i){var n=this._targetInfoList=[],a={},r=Is(e,t);nL(uL,function(t,e){(!i||!i.include||aL(i.include,e)>=0)&&t(r,n,a)})}function Ms(t){return t[0]>t[1]&&t.reverse(),t}function Is(t,e){return Wc.parseFinder(t,e,{includeMainTypes:sL})}function As(t,e,i,n){var a=i.getAxis(["x","y"][t]),r=Ms(du.map([0,1],function(t){return e?a.coordToData(a.toLocalCoord(n[t])):a.toGlobalCoord(a.dataToCoord(n[t]))})),o=[];return o[t]=r,o[1-t]=[NaN,NaN],{values:r,xyMinMax:o}}function Ts(t,e,i,n){return[e[0]-n[t]*i[0],e[1]-n[t]*i[1]]}function Ds(t){return t?[t[0][1]-t[0][0],t[1][1]-t[1][0]]:[NaN,NaN]}function Cs(t,e,i,n){for(var a=0,r=e.length;a=0&&(o[r]=+o[r].toFixed(h)),o}function tl(t,e,i,n){var a={};return null!=t.valueIndex||null!=t.valueDim?(a.valueDataDim=null!=t.valueIndex?e.getDimension(t.valueIndex):t.valueDim,a.valueAxis=i.getAxis(function(t,e){var i=t.getData(),n=i.dimensions;e=i.getDimension(e);for(var a=0;a-vO}function Il(t,e){e&&Al(t,"transform","matrix("+uO.call(e,",")+")")}function Al(t,e,i){(!i||"linear"!==i.type&&"radial"!==i.type)&&("string"==typeof i&&i.indexOf("NaN")>-1&&console.log(i),t.setAttribute(e,i))}function Tl(t,e,i){if(function(t,e){var i=e?t.textFill:t.fill;return null!=i&&i!==hO}(e,i)){var n=i?e.textFill:e.fill;n="transparent"===n?hO:n,"none"!==t.getAttribute("clip-path")&&n===hO&&(n="rgba(0, 0, 0, 0.002)"),Al(t,"fill",n),Al(t,"fill-opacity",e.opacity)}else Al(t,"fill",hO);if(function(t,e){var i=e?t.textStroke:t.stroke;return null!=i&&i!==hO}(e,i)){var a=i?e.textStroke:e.stroke;Al(t,"stroke",a="transparent"===a?hO:a);Al(t,"stroke-width",(i?e.textStrokeWidth:e.lineWidth)/(!i&&e.strokeNoScale?e.host.getLineScale():1)),Al(t,"paint-order",i?"stroke":"fill"),Al(t,"stroke-opacity",e.opacity);e.lineDash?(Al(t,"stroke-dasharray",e.lineDash.join(",")),Al(t,"stroke-dashoffset",cO(e.lineDashOffset||0))):Al(t,"stroke-dasharray",""),e.lineCap&&Al(t,"stroke-linecap",e.lineCap),e.lineJoin&&Al(t,"stroke-linejoin",e.lineJoin),e.miterLimit&&Al(t,"stroke-miterlimit",e.miterLimit)}else Al(t,"stroke",hO)}function Dl(t){return"middle"===t?"middle":"bottom"===t?"baseline":"hanging"}function Cl(){}function Ll(t,e,i,n,a){this._zrId=t,this._svgRoot=e,this._tagNames="string"==typeof i?[i]:i,this._markLabel=n,this._domName=a||"_dom",this.nextId=0}function Pl(t,e){LO.call(this,t,e,["linearGradient","radialGradient"],"__gradient_in_use__")}function kl(t,e){LO.call(this,t,e,"clipPath","__clippath_in_use__")}function Ol(t,e){LO.call(this,t,e,["filter"],"__filter_in_use__","_shadowDom")}function Rl(t){return t&&(t.shadowBlur||t.shadowOffsetX||t.shadowOffsetY||t.textShadowBlur||t.textShadowOffsetX||t.textShadowOffsetY)}function Nl(t){return parseInt(t,10)}function El(t,e){return e&&t&&e.parentNode!==t}function zl(t,e,i){if(El(t,e)&&i){var n=i.nextSibling;n?t.insertBefore(e,n):t.appendChild(e)}}function Vl(t,e){if(El(t,e)){var i=t.firstChild;i?t.insertBefore(e,i):t.appendChild(e)}}function Bl(t,e){e&&t&&e.parentNode===t&&t.removeChild(e)}function Gl(t){return t.__textSvgEl}function Hl(t){return t.__svgEl}function Fl(t,e){void 0===e&&(e={});var i=document.createElement(t);return Object.keys(e).forEach(function(t){i[t]=e[t]}),i}function Wl(t){if(!document.documentElement.contains(t))return{detached:!0,rendered:!1};for(var e=t;e!==document;){if("none"===getComputedStyle(e).display)return{detached:!1,rendered:!1};e=e.parentNode}return{detached:!1,rendered:!0}}function Ul(){var t=this;jl(this),this.__resize_raf__&&function(t){xR||(xR=(window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||function(t){clearTimeout(t)}).bind(window)),xR(t)}(this.__resize_raf__),this.__resize_raf__=function(t){return yR||(yR=(window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(t){return setTimeout(t,16)}).bind(window)),yR(t)}(function(){var e=function(t){var e=t.__resize_last__,i=e.width,n=e.height,a=t.offsetWidth,r=t.offsetHeight;return a!==i||r!==n?{width:a,height:r}:null}(t);e&&(t.__resize_last__=e,Zl(t))})}function Zl(t){t.__resize_listeners__.forEach(function(e){e.call(t)})}function jl(t){var e=t.__resize_triggers__,i=e.expand,n=e.expandChild,a=e.contract,r=a.scrollWidth,o=a.scrollHeight,s=i.offsetWidth,l=i.offsetHeight,u=i.scrollWidth,h=i.scrollHeight;a.scrollLeft=r,a.scrollTop=o,n.style.width=s+1+"px",n.style.height=l+1+"px",i.scrollLeft=u,i.scrollTop=h}var Yl,Xl="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};"undefined"!=typeof window?Yl=window.__DEV__:void 0!==Xl&&(Yl=Xl),void 0===Yl&&(Yl=!0);var ql=2311,$l=function(){return ql++},Kl={},Jl=Kl="object"==typeof wx&&"function"==typeof wx.getSystemInfoSync?{browser:{},os:{},node:!1,wxa:!0,canvasSupported:!0,svgSupported:!1,touchEventsSupported:!0}:"undefined"==typeof document&&"undefined"!=typeof self?{browser:{},os:{},node:!1,worker:!0,canvasSupported:!0}:"undefined"==typeof navigator?{browser:{},os:{},node:!0,worker:!1,canvasSupported:!0,svgSupported:!0}:function(t){var e={},i=t.match(/Firefox\/([\d.]+)/),n=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),a=t.match(/Edge\/([\d.]+)/),r=/micromessenger/i.test(t);return i&&(e.firefox=!0,e.version=i[1]),n&&(e.ie=!0,e.version=n[1]),a&&(e.edge=!0,e.version=a[1]),r&&(e.weChat=!0),{browser:e,os:{},node:!1,canvasSupported:!!document.createElement("canvas").getContext,svgSupported:"undefined"!=typeof SVGRect,touchEventsSupported:"ontouchstart"in window&&!e.ie&&!e.edge,pointerEventsSupported:"onpointerdown"in window&&(e.edge||e.ie&&e.version>=11)}}(navigator.userAgent),Ql={"[object Function]":1,"[object RegExp]":1,"[object Date]":1,"[object Error]":1,"[object CanvasGradient]":1,"[object CanvasPattern]":1,"[object Image]":1,"[object Canvas]":1},tu={"[object Int8Array]":1,"[object Uint8Array]":1,"[object Uint8ClampedArray]":1,"[object Int16Array]":1,"[object Uint16Array]":1,"[object Int32Array]":1,"[object Uint32Array]":1,"[object Float32Array]":1,"[object Float64Array]":1},eu=Object.prototype.toString,iu=Array.prototype,nu=iu.forEach,au=iu.filter,ru=iu.slice,ou=iu.map,su=iu.reduce,lu={},uu=function(){return lu.createCanvas()};lu.createCanvas=function(){return document.createElement("canvas")};var hu,cu="__ec_primitive__";c.prototype={constructor:c,get:function(t){return this.hasOwnProperty(t)?this[t]:null},set:function(t,e){return this[t]=e},each:function(t,e){void 0!==e&&(t=r(t,e));for(var i in this)this.hasOwnProperty(i)&&t(this[i],i)},removeKey:function(t){delete this[t]}};var du={$override:function(t,e){"createCanvas"===t&&(hu=null),lu[t]=e},clone:e,merge:i,mergeAll:function(t,e){for(var n=t[0],a=1,r=t.length;a3&&(e=mu.call(e,1));for(var n=this._$handlers[t],a=n.length,r=0;r4&&(e=mu.call(e,1,e.length-1));for(var n=e[e.length-1],a=this._$handlers[t],r=a.length,o=0;o=0;r--){var o;if(n[r]!==i&&!n[r].ignore&&(o=function(t,e,i){if(t[t.rectHover?"rectContain":"contain"](e,i)){for(var n,a=t;a;){if(a.clipPath&&!a.clipPath.contain(e,i))return!1;a.silent&&(n=!0),a=a.parent}return!n||xu}return!1}(n[r],t,e))&&(!a.topTarget&&(a.topTarget=n[r]),o!==xu)){a.target=n[r];break}}return a}},du.each(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(t){bu.prototype[t]=function(e){var i=this.findHover(e.zrX,e.zrY),n=i.target;if("mousedown"===t)this._downEl=n,this._downPoint=[e.zrX,e.zrY],this._upEl=n;else if("mouseup"===t)this._upEl=n;else if("click"===t){if(this._downEl!==this._upEl||!this._downPoint||pu.dist(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(i,t,e)}}),du.mixin(bu,yu),du.mixin(bu,gu);var wu=bu,Su="undefined"==typeof Float32Array?Array:Float32Array,Mu={create:x,identity:_,copy:b,mul:function(t,e,i){var n=e[0]*i[0]+e[2]*i[1],a=e[1]*i[0]+e[3]*i[1],r=e[0]*i[2]+e[2]*i[3],o=e[1]*i[2]+e[3]*i[3],s=e[0]*i[4]+e[2]*i[5]+e[4],l=e[1]*i[4]+e[3]*i[5]+e[5];return t[0]=n,t[1]=a,t[2]=r,t[3]=o,t[4]=s,t[5]=l,t},translate:function(t,e,i){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4]+i[0],t[5]=e[5]+i[1],t},rotate:function(t,e,i){var n=e[0],a=e[2],r=e[4],o=e[1],s=e[3],l=e[5],u=Math.sin(i),h=Math.cos(i);return t[0]=n*h+o*u,t[1]=-n*u+o*h,t[2]=a*h+s*u,t[3]=-a*u+h*s,t[4]=h*r+u*l,t[5]=h*l-u*r,t},scale:function(t,e,i){var n=i[0],a=i[1];return t[0]=e[0]*n,t[1]=e[1]*a,t[2]=e[2]*n,t[3]=e[3]*a,t[4]=e[4]*n,t[5]=e[5]*a,t},invert:function(t,e){var i=e[0],n=e[2],a=e[4],r=e[1],o=e[3],s=e[5],l=i*o-r*n;return l?(l=1/l,t[0]=o*l,t[1]=-r*l,t[2]=-n*l,t[3]=i*l,t[4]=(n*s-o*a)*l,t[5]=(r*a-i*s)*l,t):null},clone:function(t){var e=x();return b(e,t),e}},Iu=Mu.identity,Au=5e-5,Tu=function(t){(t=t||{}).position||(this.position=[0,0]),null==t.rotation&&(this.rotation=0),t.scale||(this.scale=[1,1]),this.origin=this.origin||null},Du=Tu.prototype;Du.transform=null,Du.needLocalTransform=function(){return w(this.rotation)||w(this.position[0])||w(this.position[1])||w(this.scale[0]-1)||w(this.scale[1]-1)},Du.updateTransform=function(){var t=this.parent,e=t&&t.transform,i=this.needLocalTransform(),n=this.transform;i||e?(n=n||Mu.create(),i?this.getLocalTransform(n):Iu(n),e&&(i?Mu.mul(n,t.transform,n):Mu.copy(n,t.transform)),this.transform=n,this.invTransform=this.invTransform||Mu.create(),Mu.invert(this.invTransform,n)):n&&Iu(n)},Du.getLocalTransform=function(t){return Tu.getLocalTransform(this,t)},Du.setTransform=function(t){var e=this.transform,i=t.dpr||1;e?t.setTransform(i*e[0],i*e[1],i*e[2],i*e[3],i*e[4],i*e[5]):t.setTransform(i,0,0,i,0,0)},Du.restoreTransform=function(t){var e=t.dpr||1;t.setTransform(e,0,0,e,0,0)};var Cu=[];Du.decomposeTransform=function(){if(this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(Mu.mul(Cu,t.invTransform,e),e=Cu);var i=e[0]*e[0]+e[1]*e[1],n=e[2]*e[2]+e[3]*e[3],a=this.position,r=this.scale;w(i-1)&&(i=Math.sqrt(i)),w(n-1)&&(n=Math.sqrt(n)),e[0]<0&&(i=-i),e[3]<0&&(n=-n),a[0]=e[4],a[1]=e[5],r[0]=i,r[1]=n,this.rotation=Math.atan2(-e[1]/n,e[0]/i)}},Du.getGlobalScale=function(){var t=this.transform;if(!t)return[1,1];var e=Math.sqrt(t[0]*t[0]+t[1]*t[1]),i=Math.sqrt(t[2]*t[2]+t[3]*t[3]);return t[0]<0&&(e=-e),t[3]<0&&(i=-i),[e,i]},Du.transformCoordToLocal=function(t,e){var i=[t,e],n=this.invTransform;return n&&pu.applyTransform(i,i,n),i},Du.transformCoordToGlobal=function(t,e){var i=[t,e],n=this.transform;return n&&pu.applyTransform(i,i,n),i},Tu.getLocalTransform=function(t,e){Iu(e=e||[]);var i=t.origin,n=t.scale||[1,1],a=t.rotation||0,r=t.position||[0,0];return i&&(e[4]-=i[0],e[5]-=i[1]),Mu.scale(e,e,n),a&&Mu.rotate(e,e,a),i&&(e[4]+=i[0],e[5]+=i[1]),e[4]+=r[0],e[5]+=r[1],e};var Lu=Tu,Pu={linear:function(t){return t},quadraticIn:function(t){return t*t},quadraticOut:function(t){return t*(2-t)},quadraticInOut:function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)},cubicIn:function(t){return t*t*t},cubicOut:function(t){return--t*t*t+1},cubicInOut:function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},quarticIn:function(t){return t*t*t*t},quarticOut:function(t){return 1- --t*t*t*t},quarticInOut:function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},quinticIn:function(t){return t*t*t*t*t},quinticOut:function(t){return--t*t*t*t*t+1},quinticInOut:function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},sinusoidalIn:function(t){return 1-Math.cos(t*Math.PI/2)},sinusoidalOut:function(t){return Math.sin(t*Math.PI/2)},sinusoidalInOut:function(t){return.5*(1-Math.cos(Math.PI*t))},exponentialIn:function(t){return 0===t?0:Math.pow(1024,t-1)},exponentialOut:function(t){return 1===t?1:1-Math.pow(2,-10*t)},exponentialInOut:function(t){return 0===t?0:1===t?1:(t*=2)<1?.5*Math.pow(1024,t-1):.5*(2-Math.pow(2,-10*(t-1)))},circularIn:function(t){return 1-Math.sqrt(1-t*t)},circularOut:function(t){return Math.sqrt(1- --t*t)},circularInOut:function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},elasticIn:function(t){var e,i=.1;return 0===t?0:1===t?1:(!i||i<1?(i=1,e=.1):e=.4*Math.asin(1/i)/(2*Math.PI),-i*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/.4))},elasticOut:function(t){var e,i=.1;return 0===t?0:1===t?1:(!i||i<1?(i=1,e=.1):e=.4*Math.asin(1/i)/(2*Math.PI),i*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/.4)+1)},elasticInOut:function(t){var e,i=.1;return 0===t?0:1===t?1:(!i||i<1?(i=1,e=.1):e=.4*Math.asin(1/i)/(2*Math.PI),(t*=2)<1?i*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/.4)*-.5:i*Math.pow(2,-10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/.4)*.5+1)},backIn:function(t){var e=1.70158;return t*t*((e+1)*t-e)},backOut:function(t){var e=1.70158;return--t*t*((e+1)*t+e)+1},backInOut:function(t){var e=2.5949095;return(t*=2)<1?t*t*((e+1)*t-e)*.5:.5*((t-=2)*t*((e+1)*t+e)+2)},bounceIn:function(t){return 1-Pu.bounceOut(1-t)},bounceOut:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},bounceInOut:function(t){return t<.5?.5*Pu.bounceIn(2*t):.5*Pu.bounceOut(2*t-1)+.5}},ku=Pu;S.prototype={constructor:S,step:function(t,e){if(this._initialized||(this._startTime=t+this._delay,this._initialized=!0),this._paused)this._pausedTime+=e;else{var i=(t-this._startTime-this._pausedTime)/this._life;if(!(i<0)){i=Math.min(i,1);var n=this.easing,a="string"==typeof n?ku[n]:n,r="function"==typeof a?a(i):i;return this.fire("frame",r),1==i?this.loop?(this.restart(t),"restart"):(this._needsRemove=!0,"destroy"):null}}},restart:function(t){var e=(t-this._startTime-this._pausedTime)%this._life;this._startTime=t-e+this.gap,this._pausedTime=0,this._needsRemove=!1},fire:function(t,e){this[t="on"+t]&&this[t](this._target,e)},pause:function(){this._paused=!0},resume:function(){this._paused=!1}};var Ou=S,Ru=function(){this.head=null,this.tail=null,this._len=0},Nu=Ru.prototype;Nu.insert=function(t){var e=new Eu(t);return this.insertEntry(e),e},Nu.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},Nu.remove=function(t){var e=t.prev,i=t.next;e?e.next=i:this.head=i,i?i.prev=e:this.tail=e,t.next=t.prev=null,this._len--},Nu.len=function(){return this._len},Nu.clear=function(){this.head=this.tail=null,this._len=0};var Eu=function(t){this.value=t,this.next,this.prev},zu=function(t){this._list=new Ru,this._map={},this._maxSize=t||10,this._lastRemovedEntry=null},Vu=zu.prototype;Vu.put=function(t,e){var i=this._list,n=this._map,a=null;if(null==n[t]){var r=i.len(),o=this._lastRemovedEntry;if(r>=this._maxSize&&r>0){var s=i.head;i.remove(s),delete n[s.key],a=s.value,this._lastRemovedEntry=s}o?o.value=e:o=new Eu(e),o.key=t,i.insertEntry(o),n[t]=o}return a},Vu.get=function(t){var e=this._map[t],i=this._list;if(null!=e)return e!==i.tail&&(i.remove(e),i.insertEntry(e)),e.value},Vu.clear=function(){this._list.clear(),this._map={}};var Bu=zu,Gu={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]},Hu=new Bu(20),Fu=null,Wu={parse:O,lift:function(t,e){var i=O(t);if(i){for(var n=0;n<3;n++)i[n]=e<0?i[n]*(1-e)|0:(255-i[n])*e+i[n]|0,i[n]>255?i[n]=255:t[n]<0&&(i[n]=0);return z(i,4===i.length?"rgba":"rgb")}},toHex:function(t){var e=O(t);if(e)return((1<<24)+(e[0]<<16)+(e[1]<<8)+ +e[2]).toString(16).slice(1)},fastLerp:N,fastMapToColor:N,lerp:E,mapToColor:E,modifyHSL:function(t,e,i,n){if(t=O(t))return t=function(t){if(t){var e,i,n=t[0]/255,a=t[1]/255,r=t[2]/255,o=Math.min(n,a,r),s=Math.max(n,a,r),l=s-o,u=(s+o)/2;if(0===l)e=0,i=0;else{i=u<.5?l/(s+o):l/(2-s-o);var h=((s-n)/6+l/2)/l,c=((s-a)/6+l/2)/l,d=((s-r)/6+l/2)/l;n===s?e=d-c:a===s?e=1/3+h-d:r===s&&(e=2/3+c-h),e<0&&(e+=1),e>1&&(e-=1)}var f=[360*e,i,u];return null!=t[3]&&f.push(t[3]),f}}(t),null!=e&&(t[0]=function(t){return(t=Math.round(t))<0?0:t>360?360:t}(e)),null!=i&&(t[1]=T(i)),null!=n&&(t[2]=T(n)),z(R(t),"rgba")},modifyAlpha:function(t,e){if((t=O(t))&&null!=e)return t[3]=I(e),z(t,"rgba")},stringify:z},Uu=du.isArrayLike,Zu=Array.prototype.slice,ju=function(t,e,i,n){this._tracks={},this._target=t,this._loop=e||!1,this._getter=i||function(t,e){return t[e]},this._setter=n||function(t,e,i){t[e]=i},this._clipCount=0,this._delay=0,this._doneList=[],this._onframeList=[],this._clipList=[]};ju.prototype={when:function(t,e){var i=this._tracks;for(var n in e)if(e.hasOwnProperty(n)){if(!i[n]){i[n]=[];var a=this._getter(this._target,n);if(null==a)continue;0!==t&&i[n].push({time:0,value:function(t){if(Uu(t)){var e=t.length;if(Uu(t[0])){for(var i=[],n=0;n=0&&!(m[i]<=e);i--);i=Math.min(i,u-2)}else{for(i=L;ie);i++);i=Math.min(i-1,u-2)}L=i,P=e;var n=m[i+1]-m[i];if(0!==n)if(I=(e-m[i])/n,l)if(T=v[i],A=v[0===i?i:i-1],D=v[i>u-2?u-1:i+1],C=v[i>u-3?u-1:i+2],d)F(A,T,D,C,I,I*I,I*I*I,o(t,a),g);else{if(f)r=F(A,T,D,C,I,I*I,I*I*I,k,1),r=U(k);else{if(p)return B(T,D,I);r=W(A,T,D,C,I,I*I,I*I*I)}s(t,a,r)}else if(d)G(v[i],v[i+1],I,o(t,a),g);else{var r;if(f)G(v[i],v[i+1],I,k,1),r=U(k);else{if(p)return B(v[i],v[i+1],I);r=V(v[i],v[i+1],I)}s(t,a,r)}},ondestroy:i});return e&&"spline"!==e&&(O.easing=e),O}}}(this,t,function(){--a||n._doneCallback()},this._tracks[r],r,e);o&&(this._clipList.push(o),a++,this.animation&&this.animation.addClip(o),i=o)}if(i){var s=i.onframe;i.onframe=function(t,e){s(t,e);for(var i=0;i1&&(Ku=function(){var t=arguments;for(var e in arguments)console.log(t[e])});var Ju=Ku,Qu=du.isString,th=du.isFunction,eh=du.isObject,ih=du.isArrayLike,nh=du.indexOf,ah=function(){this.animators=[]};ah.prototype={constructor:ah,animate:function(t,e){var i,n=!1,a=this,r=this.__zr;if(t){var o=t.split("."),s=a;n="shape"===o[0];for(var l=0,u=o.length;l0&&this.animate(t,!1).when(null==n?500:n,r).delay(a||0),this}};var rh=ah,oh=function(t){Lu.call(this,t),yu.call(this,t),rh.call(this,t),this.id=t.id||$l()};oh.prototype={type:"element",name:"",__zr:null,ignore:!1,clipPath:null,isGroup:!1,drift:function(t,e){switch(this.draggable){case"horizontal":e=0;break;case"vertical":t=0}var i=this.transform;i||(i=this.transform=[1,0,0,1,0,0]),i[4]+=t,i[5]+=e,this.decomposeTransform(),this.dirty(!1)},beforeUpdate:function(){},afterUpdate:function(){},update:function(){this.updateTransform()},traverse:function(t,e){},attrKV:function(t,e){if("position"===t||"scale"===t||"origin"===t){if(e){var i=this[t];i||(i=this[t]=[]),i[0]=e[0],i[1]=e[1]}}else this[t]=e},hide:function(){this.ignore=!0,this.__zr&&this.__zr.refresh()},show:function(){this.ignore=!1,this.__zr&&this.__zr.refresh()},attr:function(t,e){if("string"==typeof t)this.attrKV(t,e);else if(du.isObject(t))for(var i in t)t.hasOwnProperty(i)&&this.attrKV(i,t[i]);return this.dirty(!1),this},setClipPath:function(t){var e=this.__zr;e&&t.addSelfToZr(e),this.clipPath&&this.clipPath!==t&&this.removeClipPath(),this.clipPath=t,t.__zr=e,t.__clipTarget=this,this.dirty(!1)},removeClipPath:function(){var t=this.clipPath;t&&(t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__clipTarget=null,this.clipPath=null,this.dirty(!1))},addSelfToZr:function(t){this.__zr=t;var e=this.animators;if(e)for(var i=0;i=this.x&&t<=this.x+this.width&&e>=this.y&&e<=this.y+this.height},clone:function(){return new Z(this.x,this.y,this.width,this.height)},copy:function(t){this.x=t.x,this.y=t.y,this.width=t.width,this.height=t.height},plain:function(){return{x:this.x,y:this.y,width:this.width,height:this.height}}},Z.create=function(t){return new Z(t.x,t.y,t.width,t.height)};var ch=Z,dh=function(t){t=t||{},sh.call(this,t);for(var e in t)t.hasOwnProperty(e)&&(this[e]=t[e]);this._children=[],this.__storage=null,this.__dirty=!0};dh.prototype={constructor:dh,isGroup:!0,type:"group",silent:!1,children:function(){return this._children.slice()},childAt:function(t){return this._children[t]},childOfName:function(t){for(var e=this._children,i=0;i=0&&(i.splice(n,0,t),this._doAdd(t))}return this},_doAdd:function(t){t.parent&&t.parent.remove(t),t.parent=this;var e=this.__storage,i=this.__zr;e&&e!==t.__storage&&(e.addToStorage(t),t instanceof dh&&t.addChildrenToStorage(e)),i&&i.refresh()},remove:function(t){var e=this.__zr,i=this.__storage,n=this._children,a=du.indexOf(n,t);return a<0?this:(n.splice(a,1),t.parent=null,i&&(i.delFromStorage(t),t instanceof dh&&t.delChildrenFromStorage(i)),e&&e.refresh(),this)},removeAll:function(){var t,e,i=this._children,n=this.__storage;for(e=0;e=gh||f>=gh);if(p)break;g<0&&(g=0),g+=2}if((r=g)<1&&(r=1),1===n){for(l=0;l=0;l--)t[f+l]=t[d+l];if(0===n){v=!0;break}}if(t[c--]=s[h--],1==--o){v=!0;break}if(0!=(m=o-X(t[u],s,0,o,o-1,e))){for(o-=m,f=1+(c-=m),d=1+(h-=m),l=0;l=gh||m>=gh);if(v)break;p<0&&(p=0),p+=2}if((r=p)<1&&(r=1),1===o){for(f=1+(c-=n),d=1+(u-=n),l=n-1;l>=0;l--)t[f+l]=t[d+l];t[c]=s[h]}else{if(0===o)throw new Error;for(d=c-(o-1),l=0;l=0;l--)t[f+l]=t[d+l];t[c]=s[h]}else for(d=c-(o-1),l=0;l1;){var t=o-2;if(t>=1&&a[t-1]<=a[t]+a[t+1]||t>=2&&a[t-2]<=a[t]+a[t-1])a[t-1]a[t+1])break;i(t)}},this.forceMergeRuns=function(){for(;o>1;){var t=o-2;t>0&&a[t-1]=ph;)e|=1&t,t>>=1;return t+e}(a);do{if((r=j(t,i,n,e))s&&(l=s),Y(t,i,i+l,i+r,e),r=l}o.pushRun(i,r),o.mergeRuns(),a-=r,i+=r}while(0!==a);o.forceMergeRuns()}},vh=function(){this._roots=[],this._displayList=[],this._displayListLen=0};vh.prototype={constructor:vh,traverse:function(t,e){for(var i=0;i=0&&(this.delFromStorage(t),this._roots.splice(a,1),t instanceof fh&&t.delChildrenFromStorage(this))}},addToStorage:function(t){return t&&(t.__storage=this,t.dirty(!1)),this},delFromStorage:function(t){return t&&(t.__storage=null),this},dispose:function(){this._renderList=this._roots=null},displayableSortFunc:$};for(var yh=vh,xh={shadowBlur:1,shadowOffsetX:1,shadowOffsetY:1,textShadowBlur:1,textShadowOffsetX:1,textShadowOffsetY:1,textBoxShadowBlur:1,textBoxShadowOffsetX:1,textBoxShadowOffsetY:1},_h=function(t,e,i){return xh.hasOwnProperty(e)?i*=t.dpr:i},bh=[["shadowBlur",0],["shadowOffsetX",0],["shadowOffsetY",0],["shadowColor","#000"],["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]],wh=function(t,e){this.extendFrom(t,!1),this.host=e},Sh=wh.prototype={constructor:wh,host:null,fill:"#000",stroke:null,opacity:1,lineDash:null,lineDashOffset:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,lineWidth:1,strokeNoScale:!1,text:null,font:null,textFont:null,fontStyle:null,fontWeight:null,fontSize:null,fontFamily:null,textTag:null,textFill:"#000",textStroke:null,textWidth:null,textHeight:null,textStrokeWidth:0,textLineHeight:null,textPosition:"inside",textRect:null,textOffset:null,textAlign:null,textVerticalAlign:null,textDistance:5,textShadowColor:"transparent",textShadowBlur:0,textShadowOffsetX:0,textShadowOffsetY:0,textBoxShadowColor:"transparent",textBoxShadowBlur:0,textBoxShadowOffsetX:0,textBoxShadowOffsetY:0,transformText:!1,textRotation:0,textOrigin:null,textBackgroundColor:null,textBorderColor:null,textBorderWidth:0,textBorderRadius:0,textPadding:null,rich:null,truncate:null,blend:null,bind:function(t,e,i){for(var n=i&&i.style,a=!n,r=0;r0},extendFrom:function(t,e){if(t)for(var i in t)!t.hasOwnProperty(i)||!0!==e&&(!1===e?this.hasOwnProperty(i):null==t[i])||(this[i]=t[i])},set:function(t,e){"string"==typeof t?this[t]=e:this.extendFrom(t,!0)},clone:function(){var t=new this.constructor;return t.extendFrom(this,!0),t},getGradient:function(t,e,i){for(var n=("radial"===e.type?function(t,e,i){var n=i.width,a=i.height,r=Math.min(n,a),o=null==e.x?.5:e.x,s=null==e.y?.5:e.y,l=null==e.r?.5:e.r;return e.global||(o=o*n+i.x,s=s*a+i.y,l*=r),t.createRadialGradient(o,s,0,o,s,l)}:function(t,e,i){var n=null==e.x?0:e.x,a=null==e.x2?1:e.x2,r=null==e.y?0:e.y,o=null==e.y2?0:e.y2;return e.global||(n=n*i.width+i.x,a=a*i.width+i.x,r=r*i.height+i.y,o=o*i.height+i.y),n=isNaN(n)?0:n,a=isNaN(a)?1:a,r=isNaN(r)?0:r,o=isNaN(o)?0:o,t.createLinearGradient(n,r,a,o)})(t,e,i),a=e.colorStops,r=0;rl&&(i*=l/(c=i+n),n*=l/c),a+r>l&&(a*=l/(c=a+r),r*=l/c),n+a>u&&(n*=u/(c=n+a),a*=u/c),i+r>u&&(i*=u/(c=i+r),r*=u/c),t.moveTo(o+i,s),t.lineTo(o+l-n,s),0!==n&&t.arc(o+l-n,s+n,n,-Math.PI/2,0),t.lineTo(o+l,s+u-a),0!==a&&t.arc(o+l-a,s+u-a,a,0,Math.PI/2),t.lineTo(o+r,s+u),0!==r&&t.arc(o+r,s+u-r,r,Math.PI/2,Math.PI),t.lineTo(o,s+i),0!==i&&t.arc(o+i,s+i,i,Math.PI,1.5*Math.PI)}},Xh=du.retrieve2,qh=du.retrieve3,$h=du.each,Kh=du.normalizeCssArray,Jh=du.isString,Qh=du.isObject,tc={left:1,right:1,center:1},ec={top:1,bottom:1,middle:1},ic={normalizeTextStyle:function(t){return ht(t),$h(t.rich,ht),t},renderText:function(t,e,i,n,a){n.rich?function(t,e,i,n,a){var r=t.__textCotentBlock;r&&!t.__dirty||(r=t.__textCotentBlock=jh.parseRichText(i,n)),function(t,e,i,n,a){var r=i.width,o=i.outerWidth,s=i.outerHeight,l=n.textPadding,u=gt(0,n,a),h=u.baseX,c=u.baseY,d=u.textAlign,f=u.textVerticalAlign;ct(e,n,a,h,c);var p=jh.adjustTextX(h,o,d),g=jh.adjustTextY(c,s,f),m=p,v=g;l&&(m+=l[3],v+=l[0]);var y=m+r;ft(n)&&pt(t,e,n,p,g,o,s);for(var x=0;x=0&&"right"===(_=w[C]).textAlign;)dt(t,e,_,n,M,v,D,"right"),I-=_.width,D-=_.width,C--;for(T+=(r-(T-m)-(y-D)-I)/2;A<=C;)_=w[A],dt(t,e,_,n,M,v,T+_.width/2,"center"),T+=_.width,A++;v+=M}}(t,e,r,n,a)}(t,e,i,n,a):function(t,e,i,n,a){var r=mt(e,"font",n.font||jh.DEFAULT_FONT),o=n.textPadding,s=t.__textCotentBlock;s&&!t.__dirty||(s=t.__textCotentBlock=jh.parsePlainText(i,r,o,n.truncate));var l=s.outerHeight,u=s.lines,h=s.lineHeight,c=gt(0,n,a),d=c.baseX,f=c.baseY,p=c.textAlign,g=c.textVerticalAlign;ct(e,n,a,d,f);var m=jh.adjustTextY(f,l,g),v=d,y=m,x=ft(n);if(x||o){var _=jh.getWidth(i,r);o&&(_+=o[1]+o[3]);var b=jh.adjustTextX(d,_,p);x&&pt(t,e,n,b,m,_,l),o&&(v=_t(d,p,o),y+=o[0])}mt(e,"textAlign",p||"left"),mt(e,"textBaseline","middle"),mt(e,"shadowBlur",n.textShadowBlur||0),mt(e,"shadowColor",n.textShadowColor||"transparent"),mt(e,"shadowOffsetX",n.textShadowOffsetX||0),mt(e,"shadowOffsetY",n.textShadowOffsetY||0),y+=h/2;var w=n.textStrokeWidth,S=vt(n.textStroke,w),M=yt(n.textFill);S&&(mt(e,"lineWidth",w),mt(e,"strokeStyle",S)),M&&mt(e,"fillStyle",M);for(var I=0;I=0&&i.splice(n,1),t.__hoverMir=null},clearHover:function(t){for(var e=this._hoverElements,i=0;i15)break}}s.__drawIndex=g,s.__drawIndex0&&t>n[0]){for(o=0;ot);o++);r=i[n[o]]}if(n.splice(o+1,0,t),i[t]=e,!e.virtual)if(r){var l=r.dom;l.nextSibling?s.insertBefore(e.dom,l.nextSibling):s.appendChild(e.dom)}else s.firstChild?s.insertBefore(e.dom,s.firstChild):s.appendChild(e.dom)}else Ju("Layer of zlevel "+t+" is not valid")},eachLayer:function(t,e){var i,n,a=this._zlevelList;for(n=0;n0?.01:0),this._needsManuallyCompositing),r.__builtin__||Ju("ZLevel "+s+" has been used by unkown layer "+r.id),r!==i&&(r.__used=!0,r.__startIndex!==a&&(r.__dirty=!0),r.__startIndex=a,r.incremental?r.__drawIndex=-1:r.__drawIndex=a,e(a),i=r),o.__dirty&&(r.__dirty=!0,r.incremental&&r.__drawIndex<0&&(r.__drawIndex=a))}e(a),this.eachBuiltinLayer(function(t,e){!t.__used&&t.getElementCount()>0&&(t.__dirty=!0,t.__startIndex=t.__endIndex=t.__drawIndex=0),t.__dirty&&t.__drawIndex<0&&(t.__drawIndex=t.__startIndex)})},clear:function(){return this.eachBuiltinLayer(this._clearLayer),this},_clearLayer:function(t){t.clear()},setBackgroundColor:function(t){this._backgroundColor=t},configLayer:function(t,e){if(e){var i=this._layerConfig;i[t]?du.merge(i[t],e,!0):i[t]=e;for(var n=0;n=0){var a="touchend"!=n?e.targetTouches[0]:e.changedTouches[0];a&&Mt(t,a,e,i)}else Mt(t,e,e,i),e.zrDelta=e.wheelDelta?e.wheelDelta/120:-(e.detail||0)/3;var r=e.button;return null==e.which&&void 0!==r&&gc.test(e.type)&&(e.which=1&r?1:2&r?3:4&r?2:0),e},addEventListener:function(t,e,i){pc?t.addEventListener(e,i):t.attachEvent("on"+e,i)},removeEventListener:function(t,e,i){pc?t.removeEventListener(e,i):t.detachEvent("on"+e,i)},stop:pc?function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0}:function(t){t.returnValue=!1,t.cancelBubble=!0},notLeftMouse:function(t){return t.which>1}},vc=mc.Dispatcher,yc=function(t){t=t||{},this.stage=t.stage||{},this.onframe=t.onframe||function(){},this._clips=[],this._running=!1,this._time,this._pausedTime,this._pauseStart,this._paused=!1,vc.call(this)};yc.prototype={constructor:yc,addClip:function(t){this._clips.push(t)},addAnimator:function(t){t.animation=this;for(var e=t.getClips(),i=0;i=0&&this._clips.splice(e,1)},removeAnimator:function(t){for(var e=t.getClips(),i=0;i1&&n&&n.length>1){var r=At(n)/At(a);!isFinite(r)&&(r=1),e.pinchScale=r;var o=function(t){return[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]}(n);return e.pinchX=o[0],e.pinchY=o[1],{type:"pinch",target:t[0].target,event:e}}}}},wc=_c,Sc=mc.addEventListener,Mc=mc.removeEventListener,Ic=mc.normalizeEvent,Ac=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],Tc=["touchstart","touchend","touchmove"],Dc={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},Cc=du.map(Ac,function(t){var e=t.replace("mouse","pointer");return Dc[e]?e:t}),Lc={mousemove:function(t){t=Ic(this.dom,t),this.trigger("mousemove",t)},mouseout:function(t){var e=(t=Ic(this.dom,t)).toElement||t.relatedTarget;if(e!=this.dom)for(;e&&9!=e.nodeType;){if(e===this.dom)return;e=e.parentNode}this.trigger("mouseout",t)},touchstart:function(t){(t=Ic(this.dom,t)).zrByTouch=!0,this._lastTouchMoment=new Date,Dt(this,t,"start"),Lc.mousemove.call(this,t),Lc.mousedown.call(this,t),Ct(this)},touchmove:function(t){(t=Ic(this.dom,t)).zrByTouch=!0,Dt(this,t,"change"),Lc.mousemove.call(this,t),Ct(this)},touchend:function(t){(t=Ic(this.dom,t)).zrByTouch=!0,Dt(this,t,"end"),Lc.mouseup.call(this,t),+new Date-this._lastTouchMoment<300&&Lc.click.call(this,t),Ct(this)},pointerdown:function(t){Lc.mousedown.call(this,t)},pointermove:function(t){Lt(t)||Lc.mousemove.call(this,t)},pointerup:function(t){Lc.mouseup.call(this,t)},pointerout:function(t){Lt(t)||Lc.mouseout.call(this,t)}};du.each(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(t){Lc[t]=function(e){e=Ic(this.dom,e),this.trigger(t,e)}});var Pc=Pt.prototype;Pc.dispose=function(){for(var t=Ac.concat(Tc),e=0;e=i.length&&i.push({option:t})}}),i},makeIdAndName:function(t){var e=du.createHashMap();Vc(t,function(t,i){var n=t.exist;n&&e.set(n.id,t)}),Vc(t,function(t,i){var n=t.option;du.assert(!n||null==n.id||!e.get(n.id)||e.get(n.id)===t,"id duplicates: "+(n&&n.id)),n&&null!=n.id&&e.set(n.id,t),!t.keyInfo&&(t.keyInfo={})}),Vc(t,function(t,i){var n=t.exist,a=t.option,r=t.keyInfo;if(Bc(a)){if(r.name=null!=a.name?a.name+"":n?n.name:Hc+i,n)r.id=n.id;else if(null!=a.id)r.id=a.id+"";else{var o=0;do{r.id="\0"+r.name+"\0"+o++}while(e.get(r.id))}e.set(r.id,t)}})},isNameSpecified:function(t){var e=t.name;return!(!e||!e.indexOf(Hc))},isIdInner:Ot,compressBatches:function(t,e){function i(t,e,i){for(var n=0,a=t.length;n=0||n&&du.indexOf(n,o)<0)){var s=e.getShallow(o);null!=s&&(a[t[r][0]]=s)}}return a}},qc=Xc([["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),$c={getLineStyle:function(t){var e=qc(this,t),i=this.getLineDash(e.lineWidth);return i&&(e.lineDash=i),e},getLineDash:function(t){null==t&&(t=1);var e=this.get("type"),i=Math.max(t,2),n=4*t;return"solid"===e||null==e?null:"dashed"===e?[n,n]:[i,i]}},Kc=Xc([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]]),Jc={getAreaStyle:function(t,e){return Kc(this,t,e)}},Qc=pu.create,td=pu.distSquare,ed=Math.pow,id=Math.sqrt,nd=1e-8,ad=1e-4,rd=id(3),od=1/3,sd=Qc(),ld=Qc(),ud=Qc(),hd={cubicAt:Vt,cubicDerivativeAt:function(t,e,i,n,a){var r=1-a;return 3*(((e-t)*r+2*(i-e)*a)*r+(n-i)*a*a)},cubicRootAt:function(t,e,i,n,a,r){var o=n+3*(e-i)-t,s=3*(i-2*e+t),l=3*(e-t),u=t-a,h=s*s-3*o*l,c=s*l-9*o*u,d=l*l-3*s*u,f=0;if(Et(h)&&Et(c))Et(s)?r[0]=0:(M=-l/s)>=0&&M<=1&&(r[f++]=M);else{var p=c*c-4*h*d;if(Et(p)){var g=c/h,m=-g/2;(M=-s/o+g)>=0&&M<=1&&(r[f++]=M),m>=0&&m<=1&&(r[f++]=m)}else if(p>0){var v=id(p),y=h*s+1.5*o*(-c+v),x=h*s+1.5*o*(-c-v);(M=(-s-((y=y<0?-ed(-y,od):ed(y,od))+(x=x<0?-ed(-x,od):ed(x,od))))/(3*o))>=0&&M<=1&&(r[f++]=M)}else{var _=(2*h*s-3*o*c)/(2*id(h*h*h)),b=Math.acos(_)/3,w=id(h),S=Math.cos(b),M=(-s-2*w*S)/(3*o),m=(-s+w*(S+rd*Math.sin(b)))/(3*o),I=(-s+w*(S-rd*Math.sin(b)))/(3*o);M>=0&&M<=1&&(r[f++]=M),m>=0&&m<=1&&(r[f++]=m),I>=0&&I<=1&&(r[f++]=I)}}return f},cubicExtrema:function(t,e,i,n,a){var r=6*i-12*e+6*t,o=9*e+3*n-3*t-9*i,s=3*e-3*t,l=0;if(Et(o))zt(r)&&(c=-s/r)>=0&&c<=1&&(a[l++]=c);else{var u=r*r-4*o*s;if(Et(u))a[0]=-r/(2*o);else if(u>0){var h=id(u),c=(-r+h)/(2*o),d=(-r-h)/(2*o);c>=0&&c<=1&&(a[l++]=c),d>=0&&d<=1&&(a[l++]=d)}}return l},cubicSubdivide:function(t,e,i,n,a,r){var o=(e-t)*a+t,s=(i-e)*a+e,l=(n-i)*a+i,u=(s-o)*a+o,h=(l-s)*a+s,c=(h-u)*a+u;r[0]=t,r[1]=o,r[2]=u,r[3]=c,r[4]=c,r[5]=h,r[6]=l,r[7]=n},cubicProjectPoint:function(t,e,i,n,a,r,o,s,l,u,h){var c,d,f,p,g,m=.005,v=1/0;sd[0]=l,sd[1]=u;for(var y=0;y<1;y+=.05)ld[0]=Vt(t,i,a,o,y),ld[1]=Vt(e,n,r,s,y),(p=td(sd,ld))=0&&p=0&&c<=1&&(a[l++]=c);else{var u=o*o-4*r*s;if(Et(u))(c=-o/(2*r))>=0&&c<=1&&(a[l++]=c);else if(u>0){var h=id(u),c=(-o+h)/(2*r),d=(-o-h)/(2*r);c>=0&&c<=1&&(a[l++]=c),d>=0&&d<=1&&(a[l++]=d)}}return l},quadraticExtremum:function(t,e,i){var n=t+i-2*e;return 0===n?.5:(t-e)/n},quadraticSubdivide:function(t,e,i,n,a){var r=(e-t)*n+t,o=(i-e)*n+e,s=(o-r)*n+r;a[0]=t,a[1]=r,a[2]=s,a[3]=s,a[4]=o,a[5]=i},quadraticProjectPoint:function(t,e,i,n,a,r,o,s,l){var u,h=.005,c=1/0;sd[0]=o,sd[1]=s;for(var d=0;d<1;d+=.05)ld[0]=Bt(t,i,a,d),ld[1]=Bt(e,n,r,d),(m=td(sd,ld))=0&&m1e-4)return s[0]=t-i,s[1]=e-n,l[0]=t+i,void(l[1]=e+n);if(md[0]=pd(a)*i+t,md[1]=fd(a)*n+e,vd[0]=pd(r)*i+t,vd[1]=fd(r)*n+e,u(s,md,vd),h(l,md,vd),(a%=gd)<0&&(a+=gd),(r%=gd)<0&&(r+=gd),a>r&&!o?r+=gd:aa&&(yd[0]=pd(f)*i+t,yd[1]=fd(f)*n+e,u(s,yd,s),h(l,yd,l))}},wd=qu.devicePixelRatio,Sd={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Md=[],Id=[],Ad=[],Td=[],Dd=Math.min,Cd=Math.max,Ld=Math.cos,Pd=Math.sin,kd=Math.sqrt,Od=Math.abs,Rd="undefined"!=typeof Float32Array,Nd=function(t){this._saveData=!t,this._saveData&&(this.data=[]),this._ctx=null};Nd.prototype={constructor:Nd,_xi:0,_yi:0,_x0:0,_y0:0,_ux:0,_uy:0,_len:0,_lineDash:null,_dashOffset:0,_dashIdx:0,_dashSum:0,setScale:function(t,e){this._ux=Od(1/wd/t)||0,this._uy=Od(1/wd/e)||0},getContext:function(){return this._ctx},beginPath:function(t){return this._ctx=t,t&&t.beginPath(),t&&(this.dpr=t.dpr),this._saveData&&(this._len=0),this._lineDash&&(this._lineDash=null,this._dashOffset=0),this},moveTo:function(t,e){return this.addData(Sd.M,t,e),this._ctx&&this._ctx.moveTo(t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},lineTo:function(t,e){var i=Od(t-this._xi)>this._ux||Od(e-this._yi)>this._uy||this._len<5;return this.addData(Sd.L,t,e),this._ctx&&i&&(this._needsDash()?this._dashedLineTo(t,e):this._ctx.lineTo(t,e)),i&&(this._xi=t,this._yi=e),this},bezierCurveTo:function(t,e,i,n,a,r){return this.addData(Sd.C,t,e,i,n,a,r),this._ctx&&(this._needsDash()?this._dashedBezierTo(t,e,i,n,a,r):this._ctx.bezierCurveTo(t,e,i,n,a,r)),this._xi=a,this._yi=r,this},quadraticCurveTo:function(t,e,i,n){return this.addData(Sd.Q,t,e,i,n),this._ctx&&(this._needsDash()?this._dashedQuadraticTo(t,e,i,n):this._ctx.quadraticCurveTo(t,e,i,n)),this._xi=i,this._yi=n,this},arc:function(t,e,i,n,a,r){return this.addData(Sd.A,t,e,i,i,n,a-n,0,r?0:1),this._ctx&&this._ctx.arc(t,e,i,n,a,r),this._xi=Ld(a)*i+t,this._yi=Pd(a)*i+t,this},arcTo:function(t,e,i,n,a){return this._ctx&&this._ctx.arcTo(t,e,i,n,a),this},rect:function(t,e,i,n){return this._ctx&&this._ctx.rect(t,e,i,n),this.addData(Sd.R,t,e,i,n),this},closePath:function(){this.addData(Sd.Z);var t=this._ctx,e=this._x0,i=this._y0;return t&&(this._needsDash()&&this._dashedLineTo(e,i),t.closePath()),this._xi=e,this._yi=i,this},fill:function(t){t&&t.fill(),this.toStatic()},stroke:function(t){t&&t.stroke(),this.toStatic()},setLineDash:function(t){if(t instanceof Array){this._lineDash=t,this._dashIdx=0;for(var e=0,i=0;ii.length&&(this._expandData(),i=this.data);for(var n=0;n0&&f<=t||h<0&&f>=t||0==h&&(c>0&&p<=e||c<0&&p>=e);)f+=h*(i=o[n=this._dashIdx]),p+=c*i,this._dashIdx=(n+1)%g,h>0&&fl||c>0&&pu||s[n%2?"moveTo":"lineTo"](h>=0?Dd(f,t):Cd(f,t),c>=0?Dd(p,e):Cd(p,e));h=f-t,c=p-e,this._dashOffset=-kd(h*h+c*c)},_dashedBezierTo:function(t,e,i,n,a,r){var o,s,l,u,h,c=this._dashSum,d=this._dashOffset,f=this._lineDash,p=this._ctx,g=this._xi,m=this._yi,v=hd.cubicAt,y=0,x=this._dashIdx,_=f.length,b=0;for(d<0&&(d=c+d),d%=c,o=0;o<1;o+=.1)s=v(g,t,i,a,o+.1)-v(g,t,i,a,o),l=v(m,e,n,r,o+.1)-v(m,e,n,r,o),y+=kd(s*s+l*l);for(;x<_&&!((b+=f[x])>d);x++);for(o=(b-d)/y;o<=1;)u=v(g,t,i,a,o),h=v(m,e,n,r,o),x%2?p.moveTo(u,h):p.lineTo(u,h),o+=f[x]/y,x=(x+1)%_;x%2!=0&&p.lineTo(a,r),s=a-u,l=r-h,this._dashOffset=-kd(s*s+l*l)},_dashedQuadraticTo:function(t,e,i,n){var a=i,r=n;i=(i+2*t)/3,n=(n+2*e)/3,t=(this._xi+2*t)/3,e=(this._yi+2*e)/3,this._dashedBezierTo(t,e,i,n,a,r)},toStatic:function(){var t=this.data;t instanceof Array&&(t.length=this._len,Rd&&(this.data=new Float32Array(t)))},getBoundingRect:function(){Md[0]=Md[1]=Ad[0]=Ad[1]=Number.MAX_VALUE,Id[0]=Id[1]=Td[0]=Td[1]=-Number.MAX_VALUE;for(var t=this.data,e=0,i=0,n=0,a=0,r=0;rl||Od(o-a)>u||c===h-1)&&(t.lineTo(r,o),n=r,a=o);break;case Sd.C:t.bezierCurveTo(s[c++],s[c++],s[c++],s[c++],s[c++],s[c++]),n=s[c-2],a=s[c-1];break;case Sd.Q:t.quadraticCurveTo(s[c++],s[c++],s[c++],s[c++]),n=s[c-2],a=s[c-1];break;case Sd.A:var f=s[c++],p=s[c++],g=s[c++],m=s[c++],v=s[c++],y=s[c++],x=s[c++],_=s[c++],b=g>m?g:m,w=g>m?1:g/m,S=g>m?m/g:1,M=v+y;Math.abs(g-m)>.001?(t.translate(f,p),t.rotate(x),t.scale(w,S),t.arc(0,0,b,v,M,1-_),t.scale(1/w,1/S),t.rotate(-x),t.translate(-f,-p)):t.arc(f,p,b,v,M,1-_),1==c&&(e=Ld(v)*g+f,i=Pd(v)*m+p),n=Ld(M)*g+f,a=Pd(M)*m+p;break;case Sd.R:e=n=s[c],i=a=s[c+1],t.rect(s[c++],s[c++],s[c++],s[c++]);break;case Sd.Z:t.closePath(),n=e,a=i}}}},Nd.CMD=Sd;var Ed=Nd,zd={containStroke:function(t,e,i,n,a,r,o){if(0===a)return!1;var s=a,l=0,u=t;if(o>e+s&&o>n+s||ot+s&&r>i+s||re+c&&h>n+c&&h>r+c&&h>s+c||ht+c&&u>i+c&&u>a+c&&u>o+c||ue+u&&l>n+u&&l>r+u||lt+u&&s>i+u&&s>a+u||si||h+ua&&(a+=Ud);var d=Math.atan2(l,s);return d<0&&(d+=Ud),d>=n&&d<=a||d+Ud>=n&&d+Ud<=a}},jd=function(t,e,i,n,a,r){if(r>e&&r>n||ra?o:0},Yd=Fd.normalizeRadian,Xd=Ed.CMD,qd=2*Math.PI,$d=1e-4,Kd=[-1,-1,-1],Jd=[-1,-1],Qd={contain:function(t,e,i){return Gt(t,0,!1,e,i)},containStroke:function(t,e,i,n){return Gt(t,e,!0,i,n)}},tf=Dh.prototype.getCanvasPattern,ef=Math.abs,nf=new Ed(!0);Ht.prototype={constructor:Ht,type:"path",__dirtyPath:!0,strokeContainThreshold:5,brush:function(t,e){var i=this.style,n=this.path||nf,a=i.hasStroke(),r=i.hasFill(),o=i.fill,s=i.stroke,l=r&&!!o.colorStops,u=a&&!!s.colorStops,h=r&&!!o.image,c=a&&!!s.image;if(i.bind(t,this,e),this.setTransform(t),this.__dirty){var d;l&&(d=d||this.getBoundingRect(),this._fillGradient=i.getGradient(t,o,d)),u&&(d=d||this.getBoundingRect(),this._strokeGradient=i.getGradient(t,s,d))}l?t.fillStyle=this._fillGradient:h&&(t.fillStyle=tf.call(o,t)),u?t.strokeStyle=this._strokeGradient:c&&(t.strokeStyle=tf.call(s,t));var f=i.lineDash,p=i.lineDashOffset,g=!!t.setLineDash,m=this.getGlobalScale();n.setScale(m[0],m[1]),this.__dirtyPath||f&&!g&&a?(n.beginPath(t),f&&!g&&(n.setLineDash(f),n.setLineDashOffset(p)),this.buildPath(n,this.shape,!1),this.path&&(this.__dirtyPath=!1)):(t.beginPath(),this.path.rebuildPath(t)),r&&n.fill(t),f&&g&&(t.setLineDash(f),t.lineDashOffset=p),a&&n.stroke(t),f&&g&&t.setLineDash([]),null!=i.text&&(this.restoreTransform(t),this.drawRectText(t,this.getBoundingRect()))},buildPath:function(t,e,i){},createPathProxy:function(){this.path=new Ed},getBoundingRect:function(){var t=this._rect,e=this.style,i=!t;if(i){var n=this.path;n||(n=this.path=new Ed),this.__dirtyPath&&(n.beginPath(),this.buildPath(n,this.shape,!1)),t=n.getBoundingRect()}if(this._rect=t,e.hasStroke()){var a=this._rectWithStroke||(this._rectWithStroke=t.clone());if(this.__dirty||i){a.copy(t);var r=e.lineWidth,o=e.strokeNoScale?this.getLineScale():1;e.hasFill()||(r=Math.max(r,this.strokeContainThreshold||4)),o>1e-10&&(a.width+=r/o,a.height+=r/o,a.x-=r/o/2,a.y-=r/o/2)}return a}return t},contain:function(t,e){var i=this.transformCoordToLocal(t,e),n=this.getBoundingRect(),a=this.style;if(t=i[0],e=i[1],n.contain(t,e)){var r=this.path.data;if(a.hasStroke()){var o=a.lineWidth,s=a.strokeNoScale?this.getLineScale():1;if(s>1e-10&&(a.hasFill()||(o=Math.max(o,this.strokeContainThreshold)),Qd.containStroke(r,o/s,t,e)))return!0}if(a.hasFill())return Qd.contain(r,t,e)}return!1},dirty:function(t){null==t&&(t=!0),t&&(this.__dirtyPath=t,this._rect=null),this.__dirty=!0,this.__zr&&this.__zr.refresh(),this.__clipTarget&&this.__clipTarget.dirty()},animateShape:function(t){return this.animate("shape",t)},attrKV:function(t,e){"shape"===t?(this.setShape(e),this.__dirtyPath=!0,this._rect=null):oc.prototype.attrKV.call(this,t,e)},setShape:function(t,e){var i=this.shape;if(i){if(du.isObject(t))for(var n in t)t.hasOwnProperty(n)&&(i[n]=t[n]);else i[t]=e;this.dirty(!0)}return this},getLineScale:function(){var t=this.transform;return t&&ef(t[0]-1)>1e-10&&ef(t[3]-1)>1e-10?Math.sqrt(ef(t[0]*t[3]-t[2]*t[1])):1}},Ht.extend=function(t){var e=function(e){Ht.call(this,e),t.style&&this.style.extendFrom(t.style,!1);var i=t.shape;if(i){this.shape=this.shape||{};var n=this.shape;for(var a in i)!n.hasOwnProperty(a)&&i.hasOwnProperty(a)&&(n[a]=i[a])}t.init&&t.init.call(this,e)};du.inherits(e,Ht);for(var i in t)"style"!==i&&"shape"!==i&&(e.prototype[i]=t[i]);return e},du.inherits(Ht,oc);var af=Ht,rf=pu.applyTransform,of=Ed.CMD,sf=[[],[],[]],lf=Math.sqrt,uf=Math.atan2,hf=function(t,e){var i,n,a,r,o,s=t.data,l=of.M,u=of.C,h=of.L,c=of.R,d=of.A,f=of.Q;for(a=0,r=0;a=11?function(){var e,i=this.__clipPaths,n=this.style;if(i)for(var a=0;ai-2?i-1:c+1],u=t[c>i-3?i-1:c+2]);var p=d*d,g=d*p;n.push([Ut(s[0],f[0],l[0],u[0],d,p,g),Ut(s[1],f[1],l[1],u[1],d,p,g)])}return n},Cf=pu.min,Lf=pu.max,Pf=pu.scale,kf=pu.distance,Of=pu.add,Rf=pu.clone,Nf=pu.sub,Ef=function(t,e,i,n){var a,r,o,s,l=[],u=[],h=[],c=[];if(n){o=[1/0,1/0],s=[-1/0,-1/0];for(var d=0,f=t.length;d=2){if(a&&"spline"!==a){var r=Ef(n,a,i,e.smoothConstraint);t.moveTo(n[0][0],n[0][1]);for(var o=n.length,s=0;s<(i?o:o-1);s++){var l=r[2*s],u=r[2*s+1],h=n[(s+1)%o];t.bezierCurveTo(l[0],l[1],u[0],u[1],h[0],h[1])}}else{"spline"===a&&(n=Df(n,i)),t.moveTo(n[0][0],n[0][1]);for(var s=1,c=n.length;sMath.abs(r[1])?r[0]>0?"right":"left":r[1]>0?"bottom":"top"},groupTransition:function(t,e,i,n){function a(t){var e={position:pu.clone(t.position),rotation:t.rotation};return t.shape&&(e.shape=du.extend({},t.shape)),e}if(t&&e){var r=function(e){var i={};return t.traverse(function(t){!t.isGroup&&t.anid&&(i[t.anid]=t)}),i}();e.traverse(function(t){if(!t.isGroup&&t.anid){var e=r[t.anid];if(e){var n=a(t);t.attr(a(e)),ce(t,n,i,t.dataIndex)}}})}},clipPointsByRect:function(t,e){return du.map(t,function(t){var i=t[0];i=Ip(i,e.x),i=Ap(i,e.x+e.width);var n=t[1];return n=Ip(n,e.y),n=Ap(n,e.y+e.height),[i,n]})},clipRectByRect:function(t,e){var i=Ip(t.x,e.x),n=Ap(t.x+t.width,e.x+e.width),a=Ip(t.y,e.y),r=Ap(t.y+t.height,e.y+e.height);if(n>=i&&r>=a)return{x:i,y:a,width:n-i,height:r-a}},createIcon:function(t,e,i){var n=(e=du.extend({rectHover:!0},e)).style={strokeNoScale:!0};if(i=i||{x:-1,y:-1,width:2,height:2},t)return 0===t.indexOf("image://")?(n.image=t.slice(8),du.defaults(n,i),new sc(e)):Yt(t.replace("path://",""),e,i,"center")}},Cp=["textStyle","color"],Lp={getTextColor:function(t){var e=this.ecModel;return this.getShallow("color")||(!t&&e?e.get(Cp):null)},getFont:function(){return Dp.getFont({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},getTextRect:function(t){return jh.getBoundingRect(t,this.getFont(),this.getShallow("align"),this.getShallow("verticalAlign")||this.getShallow("baseline"),this.getShallow("padding"),this.getShallow("rich"),this.getShallow("truncateText"))}},Pp=Xc([["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["textPosition"],["textAlign"]]),kp={getItemStyle:function(t,e){var i=Pp(this,t,e),n=this.getBorderLineDash();return n&&(i.lineDash=n),i},getBorderLineDash:function(){var t=this.get("borderType");return"solid"===t||null==t?null:"dashed"===t?[5,5]:[1,1]}},Op=Wc.makeInner,Rp=Yc.enableClassExtend,Np=Yc.enableClassCheck,Ep=du.mixin,zp=Op();fe.prototype={constructor:fe,init:null,mergeOption:function(t){du.merge(this.option,t,!0)},get:function(t,e){return null==t?this.option:pe(this.option,this.parsePath(t),!e&&ge(this,t))},getShallow:function(t,e){var i=this.option,n=null==i?i:i[t],a=!e&&ge(this,t);return null==n&&a&&(n=a.getShallow(t)),n},getModel:function(t,e){var i,n=null==t?this.option:pe(this.option,t=this.parsePath(t));return e=e||(i=ge(this,t))&&i.getModel(t),new fe(n,e,this.ecModel)},isEmpty:function(){return null==this.option},restoreData:function(){},clone:function(){return new(0,this.constructor)(du.clone(this.option))},setReadOnly:function(t){},parsePath:function(t){return"string"==typeof t&&(t=t.split(".")),t},customizeGetParent:function(t){zp(this).getParent=t},isAnimationEnabled:function(){if(!Jl.node){if(null!=this.option.animation)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}}},Rp(fe),Np(fe),Ep(fe,$c),Ep(fe,Jc),Ep(fe,Lp),Ep(fe,kp);var Vp=fe,Bp=Yc.parseClassType,Gp=0,Hp={getUID:function(t){return[t||"",Gp++,Math.random().toFixed(5)].join("_")},enableSubTypeDefaulter:function(t){var e={};return t.registerSubTypeDefaulter=function(t,i){t=Bp(t),e[t.main]=i},t.determineSubType=function(i,n){var a=n.type;if(!a){var r=Bp(i).main;t.hasSubTypes(i)&&e[r]&&(a=e[r](n))}return a},t},enableTopologicalTravel:function(t,e){function i(t,e){return t[e]||(t[e]={predecessor:[],successor:[]}),t[e]}t.topologicalTravel=function(t,n,a,r){function o(t){l[t].entryCount--,0===l[t].entryCount&&u.push(t)}if(t.length){var s=function(t){var n={},a=[];return du.each(t,function(r){var o=i(n,r),s=function(t,e){var i=[];return du.each(t,function(t){du.indexOf(e,t)>=0&&i.push(t)}),i}(o.originalDeps=e(r),t);o.entryCount=s.length,0===o.entryCount&&a.push(r),du.each(s,function(t){du.indexOf(o.predecessor,t)<0&&o.predecessor.push(t);var e=i(n,t);du.indexOf(e.successor,t)<0&&e.successor.push(r)})}),{graph:n,noEntryList:a}}(n),l=s.graph,u=s.noEntryList,h={};for(du.each(t,function(t){h[t]=!0});u.length;){var c=u.pop(),d=l[c],f=!!h[c];f&&(a.call(r,c,d.originalDeps.slice()),delete h[c]),du.each(d.successor,f?function(t){h[t]=!0,o(t)}:o)}du.each(h,function(){throw new Error("Circle dependency may exists")})}}}},Fp=1e-4,Wp=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d\d)(?::(\d\d)(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/,Up={linearMap:function(t,e,i,n){var a=e[1]-e[0],r=i[1]-i[0];if(0===a)return 0===r?i[0]:(i[0]+i[1])/2;if(n)if(a>0){if(t<=e[0])return i[0];if(t>=e[1])return i[1]}else{if(t>=e[0])return i[0];if(t<=e[1])return i[1]}else{if(t===e[0])return i[0];if(t===e[1])return i[1]}return(t-e[0])/a*r+i[0]},parsePercent:function(t,e){switch(t){case"center":case"middle":t="50%";break;case"left":case"top":t="0%";break;case"right":case"bottom":t="100%"}return"string"==typeof t?t.replace(/^\s+/,"").replace(/\s+$/,"").match(/%$/)?parseFloat(t)/100*e:parseFloat(t):null==t?NaN:+t},round:function(t,e,i){return null==e&&(e=10),e=Math.min(Math.max(0,e),20),t=(+t).toFixed(e),i?t:+t},asc:function(t){return t.sort(function(t,e){return t-e}),t},getPrecision:function(t){if(t=+t,isNaN(t))return 0;for(var e=1,i=0;Math.round(t*e)/e!==t;)e*=10,i++;return i},getPrecisionSafe:function(t){var e=t.toString(),i=e.indexOf("e");if(i>0){var n=+e.slice(i+1);return n<0?-n:0}var a=e.indexOf(".");return a<0?0:e.length-1-a},getPixelPrecision:function(t,e){var i=Math.log,n=Math.LN10,a=Math.floor(i(t[1]-t[0])/n),r=Math.round(i(Math.abs(e[1]-e[0]))/n),o=Math.min(Math.max(-a+r,0),20);return isFinite(o)?o:20},getPercentWithPrecision:function(t,e,i){if(!t[e])return 0;var n=du.reduce(t,function(t,e){return t+(isNaN(e)?0:e)},0);if(0===n)return 0;for(var a=Math.pow(10,i),r=du.map(t,function(t){return(isNaN(t)?0:t)/n*a*100}),o=100*a,s=du.map(r,function(t){return Math.floor(t)}),l=du.reduce(s,function(t,e){return t+e},0),u=du.map(r,function(t,e){return t-s[e]});lh&&(h=u[d],c=d);++s[c],u[c]=0,++l}return s[e]/a},MAX_SAFE_INTEGER:9007199254740991,remRadian:function(t){var e=2*Math.PI;return(t%e+e)%e},isRadianAroundZero:function(t){return t>-Fp&&t=-20?+t.toFixed(n<0?-n:0):t},reformIntervals:function(t){function e(t,i,n){return t.interval[n]=0}},Zp=/([&<>"'])/g,jp={"&":"&","<":"<",">":">",'"':""","'":"'"},Yp=["a","b","c","d","e","f","g"],Xp=function(t,e){return"{"+t+(null==e?"":e)+"}"},qp={addCommas:function(t){return isNaN(t)?"-":(t=(t+"").split("."))[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")},toCamelCase:function(t,e){return t=(t||"").toLowerCase().replace(/-(.)/g,function(t,e){return e.toUpperCase()}),e&&t&&(t=t.charAt(0).toUpperCase()+t.slice(1)),t},normalizeCssArray:du.normalizeCssArray,encodeHTML:ve,formatTpl:function(t,e,i){du.isArray(e)||(e=[e]);var n=e.length;if(!n)return"";for(var a=e[0].$vars||[],r=0;r':'':""},formatTime:function(t,e,i){"week"!==t&&"month"!==t&&"quarter"!==t&&"half-year"!==t&&"year"!==t||(t="MM-dd\nyyyy");var n=Up.parseDate(e),a=i?"UTC":"",r=n["get"+a+"FullYear"](),o=n["get"+a+"Month"]()+1,s=n["get"+a+"Date"](),l=n["get"+a+"Hours"](),u=n["get"+a+"Minutes"](),h=n["get"+a+"Seconds"](),c=n["get"+a+"Milliseconds"]();return t=t.replace("MM",ye(o,2)).replace("M",o).replace("yyyy",r).replace("yy",r%100).replace("dd",ye(s,2)).replace("d",s).replace("hh",ye(l,2)).replace("h",l).replace("mm",ye(u,2)).replace("m",u).replace("ss",ye(h,2)).replace("s",h).replace("SSS",ye(c,3))},capitalFirst:function(t){return t?t.charAt(0).toUpperCase()+t.substr(1):t},truncateText:jh.truncateText,getTextRect:jh.getBoundingRect},$p=Up.parsePercent,Kp=du.each,Jp=["left","right","top","bottom","width","height"],Qp=[["width","left","right"],["height","top","bottom"]],tg=xe,eg=du.curry(xe,"vertical"),ig=du.curry(xe,"horizontal"),ng={LOCATION_PARAMS:Jp,HV_NAMES:Qp,box:tg,vbox:eg,hbox:ig,getAvailableSize:function(t,e,i){var n=e.width,a=e.height,r=$p(t.x,n),o=$p(t.y,a),s=$p(t.x2,n),l=$p(t.y2,a);return(isNaN(r)||isNaN(parseFloat(t.x)))&&(r=0),(isNaN(s)||isNaN(parseFloat(t.x2)))&&(s=n),(isNaN(o)||isNaN(parseFloat(t.y)))&&(o=0),(isNaN(l)||isNaN(parseFloat(t.y2)))&&(l=a),i=qp.normalizeCssArray(i||0),{width:Math.max(s-r-i[1]-i[3],0),height:Math.max(l-o-i[0]-i[2],0)}},getLayoutRect:_e,positionElement:function(t,e,i,n,a){var r=!a||!a.hv||a.hv[0],o=!a||!a.hv||a.hv[1],s=a&&a.boundingMode||"all";if(r||o){var l;if("raw"===s)l="group"===t.type?new ch(0,0,+e.width||0,+e.height||0):t.getBoundingRect();else if(l=t.getBoundingRect(),t.needLocalTransform()){var u=t.getLocalTransform();(l=l.clone()).applyTransform(u)}e=_e(du.defaults({width:l.width,height:l.height},e),i,n);var h=t.position,c=r?e.x-l.x:0,d=o?e.y-l.y:0;t.attr("position","raw"===s?[c,d]:[h[0]+c,h[1]+d])}},sizeCalculable:function(t,e){return null!=t[Qp[e][0]]||null!=t[Qp[e][1]]&&null!=t[Qp[e][2]]},mergeLayoutParam:function(t,e,i){function n(i,n){var o={},l=0,u={},h=0;if(Kp(i,function(e){u[e]=t[e]}),Kp(i,function(t){a(e,t)&&(o[t]=u[t]=e[t]),r(o,t)&&l++,r(u,t)&&h++}),s[n])return r(e,i[1])?u[i[2]]=null:r(e,i[2])&&(u[i[1]]=null),u;if(2!==h&&l){if(l>=2)return o;for(var c=0;c=0;r--)a=du.merge(a,e[r],!0);t.defaultOption=a}return t.defaultOption},getReferringComponents:function(t){return this.ecModel.queryComponents({mainType:t,index:this.get(t+"Index",!0),id:this.get(t+"Id",!0)})}});rg(lg,{registerWhenExtend:!0}),Hp.enableSubTypeDefaulter(lg),Hp.enableTopologicalTravel(lg,function(t){var e=[];return du.each(lg.getClassesByMainType(t),function(t){e=e.concat(t.prototype.dependencies||[])}),e=du.map(e,function(t){return og(t).main}),"dataset"!==t&&du.indexOf(e,"dataset")<=0&&e.unshift("dataset"),e}),du.mixin(lg,ag);var ug=lg,hg="";"undefined"!=typeof navigator&&(hg=navigator.platform||"");var cg={color:["#c23531","#2f4554","#61a0a8","#d48265","#91c7ae","#749f83","#ca8622","#bda29a","#6e7074","#546570","#c4ccd3"],gradientColor:["#f6efa6","#d88273","#bf444c"],textStyle:{fontFamily:hg.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,animation:"auto",animationDuration:1e3,animationDurationUpdate:300,animationEasing:"exponentialOut",animationEasingUpdate:"cubicOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1},dg=Wc.makeInner,fg=Wc.normalizeToArray,pg=dg(),gg={clearColorPalette:function(){pg(this).colorIdx=0,pg(this).colorNameMap={}},getColorFromPalette:function(t,e,i){var n=pg(e=e||this),a=n.colorIdx||0,r=n.colorNameMap=n.colorNameMap||{};if(r.hasOwnProperty(t))return r[t];var o=fg(this.get("color",!0)),s=this.get("colorLayer",!0),l=null!=i&&s?function(t,e){for(var i=t.length,n=0;ne)return t[n];return t[i-1]}(s,i):o;if((l=l||o)&&l.length){var u=l[a];return t&&(r[t]=u),n.colorIdx=(a+1)%l.length,u}}},mg=du.createHashMap,vg=(du.retrieve,du.each),yg={cartesian2d:function(t,e,i,n){var a=t.getReferringComponents("xAxis")[0],r=t.getReferringComponents("yAxis")[0];e.coordSysDims=["x","y"],i.set("x",a),i.set("y",r),we(a)&&(n.set("x",a),e.firstCategoryDimIndex=0),we(r)&&(n.set("y",r),e.firstCategoryDimIndex=1)},singleAxis:function(t,e,i,n){var a=t.getReferringComponents("singleAxis")[0];e.coordSysDims=["single"],i.set("single",a),we(a)&&(n.set("single",a),e.firstCategoryDimIndex=0)},polar:function(t,e,i,n){var a=t.getReferringComponents("polar")[0],r=a.findAxisModel("radiusAxis"),o=a.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],i.set("radius",r),i.set("angle",o),we(r)&&(n.set("radius",r),e.firstCategoryDimIndex=0),we(o)&&(n.set("angle",o),e.firstCategoryDimIndex=1)},geo:function(t,e,i,n){e.coordSysDims=["lng","lat"]},parallel:function(t,e,i,n){var a=t.ecModel,r=a.getComponent("parallel",t.get("parallelIndex")),o=e.coordSysDims=r.dimensions.slice();vg(r.parallelAxisIndex,function(t,r){var s=a.getComponent("parallelAxis",t),l=o[r];i.set(l,s),we(s)&&null==e.firstCategoryDimIndex&&(n.set(l,s),e.firstCategoryDimIndex=r)})}},xg={getCoordSysDefineBySeries:function(t){var e=t.get("coordinateSystem"),i={coordSysName:e,coordSysDims:[],axisMap:mg(),categoryAxisMap:mg()},n=yg[e];if(n)return n(t,i,i.axisMap,i.categoryAxisMap),i}},_g={SOURCE_FORMAT_ORIGINAL:"original",SOURCE_FORMAT_ARRAY_ROWS:"arrayRows",SOURCE_FORMAT_OBJECT_ROWS:"objectRows",SOURCE_FORMAT_KEYED_COLUMNS:"keyedColumns",SOURCE_FORMAT_UNKNOWN:"unknown",SOURCE_FORMAT_TYPED_ARRAY:"typedArray",SERIES_LAYOUT_BY_COLUMN:"column",SERIES_LAYOUT_BY_ROW:"row"},bg=du.createHashMap,wg=du.isTypedArray,Sg=Yc.enableClassCheck,Mg=_g.SOURCE_FORMAT_ORIGINAL,Ig=_g.SERIES_LAYOUT_BY_COLUMN,Ag=_g.SOURCE_FORMAT_UNKNOWN,Tg=_g.SOURCE_FORMAT_TYPED_ARRAY,Dg=_g.SOURCE_FORMAT_KEYED_COLUMNS;Se.seriesDataToSource=function(t){return new Se({data:t,sourceFormat:wg(t)?Tg:Mg,fromDataset:!1})},Sg(Se);var Cg=Se,Lg=Wc.makeInner,Pg=Wc.getDataItemValue,kg=xg.getCoordSysDefineBySeries,Og=du.createHashMap,Rg=du.each,Ng=du.map,Eg=du.isArray,zg=du.isString,Vg=du.isObject,Bg=du.isTypedArray,Gg=du.isArrayLike,Hg=du.extend,Fg=(du.assert,_g.SOURCE_FORMAT_ORIGINAL),Wg=_g.SOURCE_FORMAT_ARRAY_ROWS,Ug=_g.SOURCE_FORMAT_OBJECT_ROWS,Zg=_g.SOURCE_FORMAT_KEYED_COLUMNS,jg=_g.SOURCE_FORMAT_UNKNOWN,Yg=_g.SOURCE_FORMAT_TYPED_ARRAY,Xg=_g.SERIES_LAYOUT_BY_ROW,qg=Lg(),$g={detectSourceFormat:function(t){var e=t.option.source,i=jg;if(Bg(e))i=Yg;else if(Eg(e))for(var n=0,a=e.length;n=0;n--)Wc.isIdInner(e[n])&&e.splice(n,1);t[i]=e}}),delete t[cm],t},getTheme:function(){return this._theme},getComponent:function(t,e){var i=this._componentsMap.get(t);if(i)return i[e||0]},queryComponents:function(t){var e=t.mainType;if(!e)return[];var i=t.index,n=t.id,a=t.name,r=this._componentsMap.get(e);if(!r||!r.length)return[];var o;if(null!=i)tm(i)||(i=[i]),o=Jg(Qg(i,function(t){return r[t]}),function(t){return!!t});else if(null!=n){var s=tm(n);o=Jg(r,function(t){return s&&em(n,t.id)>=0||!s&&t.id===n})}else if(null!=a){var l=tm(a);o=Jg(r,function(t){return l&&em(a,t.name)>=0||!l&&t.name===a})}else o=r.slice();return De(o,t)},findComponents:function(t){var e=t.query,i=t.mainType,n=function(t){var e=i+"Index",n=i+"Id",a=i+"Name";return!t||null==t[e]&&null==t[n]&&null==t[a]?null:{mainType:i,index:t[e],id:t[n],name:t[a]}}(e);return function(e){return t.filter?Jg(e,t.filter):e}(De(n?this.queryComponents(n):this._componentsMap.get(i),t))},eachComponent:function(t,e,i){var n=this._componentsMap;if("function"==typeof t)i=e,e=t,n.each(function(t,n){Kg(t,function(t,a){e.call(i,n,t,a)})});else if(nm(t))Kg(n.get(t),e,i);else if(im(t)){var a=this.findComponents(t);Kg(a,e,i)}},getSeriesByName:function(t){var e=this._componentsMap.get("series");return Jg(e,function(e){return e.name===t})},getSeriesByIndex:function(t){return this._componentsMap.get("series")[t]},getSeriesByType:function(t){var e=this._componentsMap.get("series");return Jg(e,function(e){return e.subType===t})},getSeries:function(){return this._componentsMap.get("series").slice()},getSeriesCount:function(){return this._componentsMap.get("series").length},eachSeries:function(t,e){Ce(),Kg(this._seriesIndices,function(i){var n=this._componentsMap.get("series")[i];t.call(e,n,i)},this)},eachRawSeries:function(t,e){Kg(this._componentsMap.get("series"),t,e)},eachSeriesByType:function(t,e,i){Ce(),Kg(this._seriesIndices,function(n){var a=this._componentsMap.get("series")[n];a.subType===t&&e.call(i,a,n)},this)},eachRawSeriesByType:function(t,e,i){return Kg(this.getSeriesByType(t),e,i)},isSeriesFiltered:function(t){return Ce(),null==this._seriesIndicesMap.get(t.componentIndex)},getCurrentSeriesIndices:function(){return(this._seriesIndices||[]).slice()},filterSeries:function(t,e){Ce();Te(this,Jg(this._componentsMap.get("series"),t,e))},restoreData:function(t){var e=this._componentsMap;Te(this,e.get("series"));var i=[];e.each(function(t,e){i.push(e)}),ug.topologicalTravel(i,ug.getAllClassMainTypes(),function(i,n){Kg(e.get(i),function(e){("series"!==i||!function(t,e){if(e){var i=e.seiresIndex,n=e.seriesId,a=e.seriesName;return null!=i&&t.componentIndex!==i||null!=n&&t.id!==n||null!=a&&t.name!==a}}(e,t))&&e.restoreData()})})}});um(dm,gg);var fm=dm,pm=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isDisposed","on","off","getDataURL","getConnectedDataURL","getModel","getOption","getViewOfComponentModel","getViewOfSeriesModel"],gm=function(t){du.each(pm,function(e){this[e]=du.bind(t[e],t)},this)},mm={};Le.prototype={constructor:Le,create:function(t,e){var i=[];du.each(mm,function(n,a){var r=n.create(t,e);i=i.concat(r||[])}),this._coordinateSystems=i},update:function(t,e){du.each(this._coordinateSystems,function(i){i.update&&i.update(t,e)})},getCoordinateSystems:function(){return this._coordinateSystems.slice()}},Le.register=function(t,e){mm[t]=e},Le.get=function(t){return mm[t]};var vm=Le,ym=du.each,xm=du.clone,_m=du.map,bm=du.merge,wm=/^(min|max)?(.+)$/;Pe.prototype={constructor:Pe,setOption:function(t,e){t&&du.each(Wc.normalizeToArray(t.series),function(t){t&&t.data&&du.isTypedArray(t.data)&&du.setAsPrimitive(t.data)}),t=xm(t,!0);var i=this._optionBackup,n=function(t,e,i){var n,a,r=[],o=[],s=t.timeline;if(t.baseOption&&(a=t.baseOption),(s||t.options)&&(a=a||{},r=(t.options||[]).slice()),t.media){a=a||{};var l=t.media;ym(l,function(t){t&&t.option&&(t.query?o.push(t):n||(n=t))})}return a||(a=t),a.timeline||(a.timeline=s),ym([a].concat(r).concat(du.map(o,function(t){return t.option})),function(t){ym(e,function(e){e(t,i)})}),{baseOption:a,timelineOptions:r,mediaDefault:n,mediaList:o}}.call(this,t,e,!i);this._newBaseOption=n.baseOption,i?(!function(t,e){ym(e=e||{},function(e,i){if(null!=e){var n=t[i];if(ug.hasClass(i)){e=Wc.normalizeToArray(e),n=Wc.normalizeToArray(n);var a=Wc.mappingToExists(n,e);t[i]=_m(a,function(t){return t.option&&t.exist?bm(t.exist,t.option,!0):t.exist||t.option})}else t[i]=bm(n,e,!0)}})}(i.baseOption,n.baseOption),n.timelineOptions.length&&(i.timelineOptions=n.timelineOptions),n.mediaList.length&&(i.mediaList=n.mediaList),n.mediaDefault&&(i.mediaDefault=n.mediaDefault)):this._optionBackup=n},mountOption:function(t){var e=this._optionBackup;return this._timelineOptions=_m(e.timelineOptions,xm),this._mediaList=_m(e.mediaList,xm),this._mediaDefault=xm(e.mediaDefault),this._currentMediaIndices=[],xm(t?e.baseOption:this._newBaseOption)},getTimelineOption:function(t){var e,i=this._timelineOptions;if(i.length){var n=t.getComponent("timeline");n&&(e=xm(i[n.getCurrentIndex()],!0))}return e},getMediaOption:function(t){var e=this._api.getWidth(),i=this._api.getHeight(),n=this._mediaList,a=this._mediaDefault,r=[],o=[];if(!n.length&&!a)return o;for(var s=0,l=n.length;s=e:"max"===i?t<=e:t===e})(n[o],t,r)||(a=!1)}}),a})(n[s].query,e,i)&&r.push(s);return!r.length&&a&&(r=[-1]),r.length&&!function(t,e){return t.join(",")===e.join(",")}(r,this._currentMediaIndices)&&(o=_m(r,function(t){return xm(-1===t?a.option:n[t].option)})),this._currentMediaIndices=r,o}};var Sm=Pe,Mm=du.each,Im=du.isObject,Am=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"],Tm=function(t,e){Mm(ze(t.series),function(t){Im(t)&&function(t){if(Im(t)){ke(t),Re(t),Ne(t,"label"),Ne(t,"upperLabel"),Ne(t,"edgeLabel"),t.emphasis&&(Ne(t.emphasis,"label"),Ne(t.emphasis,"upperLabel"),Ne(t.emphasis,"edgeLabel")),(a=t.markPoint)&&(ke(a),Ee(a)),(s=t.markLine)&&(ke(s),Ee(s));var e=t.markArea;e&&Ee(e);var i=t.data;if("graph"===t.type){i=i||t.nodes;var n=t.links||t.edges;if(n&&!du.isTypedArray(n))for(o=0;o=0;p--){var g=t[p];if(s||(d=g.data.rawIndexOf(g.stackedByDimension,c)),d>=0){var m=g.data.getByRawIndex(g.stackResultDimension,d);if(h>=0&&m>0||h<=0&&m<0){h+=m,f=m;break}}}return n[0]=h,n[1]=f,n});o.hostModel.setData(l),e.data=l})})},Vm=(du.isTypedArray,du.extend),Bm=(du.assert,du.each),Gm=du.isObject,Hm=Wc.getDataItemValue,Fm=Wc.isDataItemOption,Wm=Up.parseDate,Um=_g.SOURCE_FORMAT_TYPED_ARRAY,Zm=_g.SOURCE_FORMAT_ARRAY_ROWS,jm=_g.SOURCE_FORMAT_ORIGINAL,Ym=_g.SOURCE_FORMAT_OBJECT_ROWS,Xm=Ge.prototype;Xm.pure=!1,Xm.persistent=!0,Xm.getSource=function(){return this._source};var qm={arrayRows_column:{pure:!0,count:function(){return Math.max(0,this._data.length-this._source.startIndex)},getItem:function(t){return this._data[t+this._source.startIndex]},appendData:We},arrayRows_row:{pure:!0,count:function(){var t=this._data[0];return t?Math.max(0,t.length-this._source.startIndex):0},getItem:function(t){t+=this._source.startIndex;for(var e=[],i=this._data,n=0;n=1)&&(t=1),t}var i=this._upstream,n=t&&t.skip;if(this._dirty&&i){var a=this.context;a.data=a.outputData=i.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var r;this._plan&&!n&&(r=this._plan(this.context));var o=e(this._modBy),s=this._modDataCount||0,l=e(t&&t.modBy),u=t&&t.modDataCount||0;o===l&&s===u||(r="reset");var h;(this._dirty||"reset"===r)&&(this._dirty=!1,h=function(t,e){t._dueIndex=t._outputDueEnd=t._dueEnd=0,t._settedOutputEnd=null;var i,n;!e&&t._reset&&((i=t._reset(t.context))&&i.progress&&(n=i.forceFirstProgress,i=i.progress),nv(i)&&!i.length&&(i=null)),t._progress=i,t._modBy=t._modDataCount=null;var a=t._downstream;return a&&a.dirty(),n}(this,n)),this._modBy=l,this._modDataCount=u;var c=t&&t.step;if(this._dueEnd=i?i._outputDueEnd:this._count?this._count(this.context):1/0,this._progress){var d=this._dueIndex,f=Math.min(null!=c?this._dueIndex+c:1/0,this._dueEnd);if(!n&&(h||d1&&n>0?function(){var r=e%a*i+Math.ceil(e/a),o=e>=t?null:re.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}}}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,i),pv(this);var a=this.getInitialData(t,i);$e(a,this),this.dataTask.context.data=a,vv(this).dataBeforeProcessed=a,qe(this)},mergeDefaultAndTheme:function(t,e){var i=this.layoutMode,n=i?cv(t):{},a=this.subType;ug.hasClass(a)&&(a+="Series"),du.merge(t,e.getTheme().get(this.subType)),du.merge(t,this.getDefaultOption()),Wc.defaultEmphasis(t,"label",["show"]),this.fillDataTextStyle(t.data),i&&dv(t,n,i)},mergeOption:function(t,e){t=du.merge(this.option,t,!0),this.fillDataTextStyle(t.data);var i=this.layoutMode;i&&dv(this.option,t,i),pv(this);var n=this.getInitialData(t,e);$e(n,this),this.dataTask.dirty(),this.dataTask.context.data=n,vv(this).dataBeforeProcessed=n,qe(this)},fillDataTextStyle:function(t){if(t&&!du.isTypedArray(t))for(var e=["show"],i=0;i1||l&&!o?function(i){function n(t,i){var n=a.getDimensionInfo(i);if(n&&!1!==n.otherDims.tooltip){var r=n.type,l=hv({color:u,type:"subItem"}),h=(o?l+lv(n.displayName||"-")+": ":"")+lv("ordinal"===r?t+"":"time"===r?e?"":sv("yyyy/MM/dd hh:mm:ss",t):uv(t));h&&s.push(h)}}var o=du.reduce(i,function(t,e,i){var n=a.getDimensionInfo(i);return t|=n&&!1!==n.tooltip&&null!=n.displayName},0),s=[];return r.length?du.each(r,function(e){n(mv(a,t,e),e)}):du.each(i,n),(o?"
":"")+s.join(o?"
":", ")}(s):n(o?mv(a,t,r[0]):l?s[0]:s),c=hv(u),d=a.getName(t),f=this.name;return Wc.isNameSpecified(this)||(f=""),f=f?lv(f)+(e?": ":"
"):"",e?c+f+h:f+c+(d?lv(d)+": "+h:h)},isAnimationEnabled:function(){if(Jl.node)return!1;var t=this.getShallow("animation");return t&&this.getData().count()>this.getShallow("animationThreshold")&&(t=!1),t},restoreData:function(){this.dataTask.dirty()},getColorFromPalette:function(t,e,i){var n=this.ecModel,a=gg.getColorFromPalette.call(this,t,e,i);return a||(a=n.getColorFromPalette(t,e,i)),a},coordDimToDataDim:function(t){return this.getRawData().mapDimension(t,!0)},getProgressive:function(){return this.get("progressive")},getProgressiveThreshold:function(){return this.get("progressiveThreshold")},getAxisTooltipData:null,getTooltipPosition:null,pipeTask:null,preventIncremental:null,pipelineContext:null});du.mixin(yv,iv),du.mixin(yv,gg);var xv=yv,_v=function(){this.group=new fh,this.uid=Hp.getUID("viewComponent")},bv=_v.prototype={constructor:_v,init:function(t,e){},render:function(t,e,i,n){},dispose:function(){}};bv.updateView=bv.updateLayout=bv.updateVisual=function(t,e,i,n){},Yc.enableClassExtend(_v),Yc.enableClassManagement(_v,{registerWhenExtend:!0});var wv=_v,Sv=Wc.makeInner,Mv=function(){var t=Sv();return function(e){var i=t(e),n=e.pipelineContext,a=i.large,r=i.progressiveRender,o=i.large=n.large,s=i.progressiveRender=n.progressiveRender;return!!(a^o||r^s)&&"reset"}},Iv=du.each,Av=ov.createTask,Tv=Wc.makeInner(),Dv=Mv(),Cv=Je.prototype={type:"chart",init:function(t,e){},render:function(t,e,i,n){},highlight:function(t,e,i,n){ti(t.getData(),n,"emphasis")},downplay:function(t,e,i,n){ti(t.getData(),n,"normal")},remove:function(t,e){this.group.removeAll()},dispose:function(){},incrementalPrepareRender:null,incrementalRender:null,updateTransform:null};Cv.updateView=Cv.updateLayout=Cv.updateVisual=function(t,e,i,n){this.render(t,e,i,n)},Yc.enableClassExtend(Je,["dispose"]),Yc.enableClassManagement(Je,{registerWhenExtend:!0}),Je.markUpdateMethod=function(t,e){Tv(t).updateMethod=e};var Lv={incrementalPrepareRender:{progress:function(t,e){e.view.incrementalRender(t,e.model,e.ecModel,e.api,e.payload)}},render:{forceFirstProgress:!0,progress:function(t,e){e.view.render(e.model,e.ecModel,e.api,e.payload)}}},Pv=Je,kv="\0__throttleOriginMethod",Ov="\0__throttleRate",Rv="\0__throttleType",Nv={throttle:ei,createOrUpdate:function(t,e,i,n){var a=t[e];if(a){var r=a[kv]||a,o=a[Rv];if(a[Ov]!==i||o!==n){if(null==i||!n)return t[e]=r;(a=t[e]=ei(r,i,"debounce"===n))[kv]=r,a[Rv]=n,a[Ov]=i}return a}},clear:function(t,e){var i=t[e];i&&i[kv]&&(t[e]=i[kv])}},Ev={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var i=t.getData(),n=(t.visualColorAccessPath||"itemStyle.color").split("."),a=t.get(n)||t.getColorFromPalette(t.name,null,e.getSeriesCount());if(i.setVisual("color",a),!e.isSeriesFiltered(t)){"function"!=typeof a||a instanceof Qf||i.each(function(e){i.setItemVisual(e,"color",a(t.getDataParams(e)))});return{dataEach:i.hasItemOption?function(t,e){var i=t.getItemModel(e).get(n,!0);null!=i&&t.setItemVisual(e,"color",i)}:null}}}},zv={toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType},",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}},Vv=Km.retrieveRawValue,Bv=function(t,e){function i(t,e){if("string"!=typeof t)return t;var i=t;return du.each(e,function(t,e){i=i.replace(new RegExp("\\{\\s*"+e+"\\s*\\}","g"),t)}),i}function n(t){var e=a.get(t);if(null==e){for(var i=t.split("."),n=zv.aria,r=0;r1?"series.multiple.prefix":"series.single.prefix"),{seriesCount:r}),e.eachSeries(function(t,e){if(e1?"multiple":"single")+".";a=i(a=n(o?l+"withName":l+"withoutName"),{seriesId:t.seriesIndex,seriesName:t.get("name"),seriesType:function(t){return zv.series.typeNames[t]||"自定义图"}(t.subType)});var h=t.getData();window.data=h,h.count()>s?a+=i(n("data.partialData"),{displayCnt:s}):a+=n("data.allData");for(var d=[],f=0;fi.blockIndex?i.step:null,r=n&&n.modDataCount;return{step:a,modBy:null!=r?Math.ceil(r/a):null,modDataCount:r}}},$v.getPipeline=function(t){return this._pipelineMap.get(t)},$v.updateStreamModes=function(t,e){var i=this._pipelineMap.get(t.uid),n=t.getData().count(),a=i.progressiveEnabled&&e.incrementalPrepareRender&&n>=i.threshold,r=t.get("large")&&n>=t.get("largeThreshold"),o="mod"===t.get("progressiveChunkMode")?n:null;t.pipelineContext=i.context={progressiveRender:a,modDataCount:o,large:r}},$v.restorePipelines=function(t){var e=this,i=e._pipelineMap=Zv();t.eachSeries(function(t){var n=t.getProgressive(),a=t.uid;i.set(a,{id:a,head:null,tail:null,threshold:t.getProgressiveThreshold(),progressiveEnabled:n&&!(t.preventIncremental&&t.preventIncremental()),blockIndex:-1,step:Math.round(n||700),count:0}),ri(e,t,t.dataTask)})},$v.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.ecInstance.getModel(),i=this.api;Fv(this._allHandlers,function(n){var a=t.get(n.uid)||t.set(n.uid,[]);n.reset&&function(t,e,i,n,a){function r(i){var r=i.uid,s=o.get(r)||o.set(r,Yv({plan:function(t){return t.plan&&t.plan(t.model,t.ecModel,t.api,t.payload)},reset:function(t){t.useClearVisual&&t.data.clearAllVisual();var e=t.resetDefines=qv(t.reset(t.model,t.ecModel,t.api,t.payload));return e.length>1?Wv(e,function(t,e){return ai(e)}):Jv},count:function(t){return t.data.count()}}));s.context={model:i,ecModel:n,api:a,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:t},ri(t,i,s)}var o=i.seriesTaskMap||(i.seriesTaskMap=Zv()),s=e.seriesType,l=e.getTargetSeries;e.createOnAllSeries?n.eachRawSeries(r):s?n.eachRawSeriesByType(s,r):l&&l(n,a).each(r);var u=t._pipelineMap;o.each(function(t,e){u.get(e)||(t.dispose(),o.removeKey(e))})}(this,n,a,e,i),n.overallReset&&function(t,e,i,n,a){function r(e){var i=e.uid,n=s.get(i);n||(n=s.set(i,Yv({reset:function(t,e){return t.overallProgress&&function(){this.agent.dirty(),this.getDownstream().dirty()}},onDirty:function(){this.agent&&this.agent.dirty()}})),o.dirty()),n.context={model:e,overallProgress:h,modifyOutputEnd:c},n.agent=o,n.__block=h,ri(t,e,n)}var o=i.overallTask=i.overallTask||Yv({reset:function(t){t.overallReset(t.ecModel,t.api,t.payload)}});o.context={ecModel:n,api:a,overallReset:e.overallReset,scheduler:t};var s=o.agentStubMap=o.agentStubMap||Zv(),l=e.seriesType,u=e.getTargetSeries,h=!0,c=e.modifyOutputEnd;l?n.eachRawSeriesByType(l,r):u?u(n,a).each(r):(h=!1,Fv(n.getSeries(),r));var d=t._pipelineMap;s.each(function(t,e){d.get(e)||(t.dispose(),o.dirty(),s.removeKey(e))})}(this,n,a,e,i)},this)},$v.prepareView=function(t,e,i,n){var a=t.renderTask,r=a.context;r.model=e,r.ecModel=i,r.api=n,a.__block=!t.incrementalPrepareRender,ri(this,e,a)},$v.performDataProcessorTasks=function(t,e){ni(this,this._dataProcessorHandlers,t,e,{block:!0})},$v.performVisualTasks=function(t,e,i){ni(this,this._visualHandlers,t,e,i)},$v.performSeriesTasks=function(t){var e;t.eachSeries(function(t){e|=t.dataTask.perform()}),this.unfinished|=e},$v.plan=function(){this._pipelineMap.each(function(t){var e=t.tail;do{if(e.__block){t.blockIndex=e.__idxInPipeline;break}e=e.getUpstream()}while(e)})};var Kv=$v.updatePayload=function(t,e){"remain"!==e&&(t.context.payload=e)},Jv=ai(0);ii.wrapStageHandler=function(t,e){return Uv(t)&&(t={overallReset:t,seriesType:function(t){Qv=null;try{t(ty,ey)}catch(t){}return Qv}(t)}),t.uid=Xv("stageHandler"),e&&(t.visualType=e),t};var Qv,ty={},ey={};oi(ty,fm),oi(ey,gm),ty.eachSeriesByType=ty.eachRawSeriesByType=function(t){Qv=t},ty.eachComponent=function(t){"series"===t.mainType&&t.subType&&(Qv=t.subType)};var iy=ii,ny=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"],ay={color:ny,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],ny]},ry=["#dd6b66","#759aa0","#e69d87","#8dc1a9","#ea7e53","#eedd78","#73a373","#73b9bc","#7289ab","#91ca8c","#f49f42"],oy={color:ry,backgroundColor:"#333",tooltip:{axisPointer:{lineStyle:{color:"#eee"},crossStyle:{color:"#eee"}}},legend:{textStyle:{color:"#eee"}},textStyle:{color:"#eee"},title:{textStyle:{color:"#eee"}},toolbox:{iconStyle:{normal:{borderColor:"#eee"}}},dataZoom:{textStyle:{color:"#eee"}},visualMap:{textStyle:{color:"#eee"}},timeline:{lineStyle:{color:"#eee"},itemStyle:{normal:{color:ry[1]}},label:{normal:{textStyle:{color:"#eee"}}},controlStyle:{normal:{color:"#eee",borderColor:"#eee"}}},timeAxis:{axisLine:{lineStyle:{color:"#eee"}},axisTick:{lineStyle:{color:"#eee"}},axisLabel:{textStyle:{color:"#eee"}},splitLine:{lineStyle:{type:"dashed",color:"#aaa"}},splitArea:{areaStyle:{color:"#eee"}}},logAxis:{axisLine:{lineStyle:{color:"#eee"}},axisTick:{lineStyle:{color:"#eee"}},axisLabel:{textStyle:{color:"#eee"}},splitLine:{lineStyle:{type:"dashed",color:"#aaa"}},splitArea:{areaStyle:{color:"#eee"}}},valueAxis:{axisLine:{lineStyle:{color:"#eee"}},axisTick:{lineStyle:{color:"#eee"}},axisLabel:{textStyle:{color:"#eee"}},splitLine:{lineStyle:{type:"dashed",color:"#aaa"}},splitArea:{areaStyle:{color:"#eee"}}},categoryAxis:{axisLine:{lineStyle:{color:"#eee"}},axisTick:{lineStyle:{color:"#eee"}},axisLabel:{textStyle:{color:"#eee"}},splitLine:{lineStyle:{type:"dashed",color:"#aaa"}},splitArea:{areaStyle:{color:"#eee"}}},line:{symbol:"circle"},graph:{color:ry},gauge:{title:{textStyle:{color:"#eee"}}},candlestick:{itemStyle:{normal:{color:"#FD1050",color0:"#0CF49B",borderColor:"#FD1050",borderColor0:"#0CF49B"}}}};oy.categoryAxis.splitLine.show=!1;var sy=oy,ly=$g.detectSourceFormat,uy=_g.SERIES_LAYOUT_BY_COLUMN;ug.extend({type:"dataset",defaultOption:{seriesLayoutBy:uy,sourceHeader:null,dimensions:null,source:null},optionUpdated:function(){ly(this)}}),wv.extend({type:"dataset"}),li.prototype={constructor:li,add:function(t){return this._add=t,this},update:function(t){return this._update=t,this},remove:function(t){return this._remove=t,this},execute:function(){var t=this._old,e=this._new,i={},n=[],a=[];for(ui(t,{},n,"_oldKeyGetter",this),ui(e,i,a,"_newKeyGetter",this),r=0;r=e)){for(var i,n=this._chunkSize,a=this._rawData,r=this._storage,o=this.dimensions,s=o.length,l=this._dimensionInfos,u=this._nameList,h=this._idList,c=this._rawExtent,d=this._nameRepeatCount={},f=this._chunkCount,p=f-1,g=0;gC[1]&&(C[1]=D)}if(!a.pure){var L=u[w];if(b&&null==L)if(null!=b.name)u[w]=L=b.name;else if(null!=i){var P=o[i],k=r[P][S];if(k){L=k[M];var O=l[P].ordinalMeta;O&&O.categories.length&&(L=O.categories[L])}}var R=null==b?null:b.id;null==R&&null!=L&&(d[L]=d[L]||0,R=L,d[L]>0&&(R+="__ec__"+d[L]),d[L]++),null!=R&&(h[w]=R)}}!a.persistent&&a.clean&&a.clean(),this._rawCount=this._count=e,this._extent={},function(t){var e=t._invertedIndicesMap;du.each(e,function(i,n){var a=t._dimensionInfos[n].ordinalMeta;if(a){for(i=e[n]=new by(a.categories.length),r=0;r=0&&e=0&&er&&(r=s)}return i=[a,r],this._extent[t]=i,i},Ay.getApproximateExtent=function(t){return t=this.getDimension(t),this._approximateExtent[t]||this.getDataExtent(t)},Ay.setApproximateExtent=function(t,e){e=this.getDimension(e),this._approximateExtent[e]=t.slice()},Ay.getCalculationInfo=function(t){return this._calculationInfo[t]},Ay.setCalculationInfo=function(t,e){yy(t)?du.extend(this._calculationInfo,t):this._calculationInfo[t]=e},Ay.getSum=function(t){var e=0;if(this._storage[t])for(var i=0,n=this.count();i=this._rawCount||t<0)return-1;var e=this._indices,i=e[t];if(null!=i&&it))return r;a=r-1}}return-1},Ay.indicesOfNearest=function(t,e,i){var n=[];if(!this._storage[t])return n;null==i&&(i=1/0);for(var a=Number.MAX_VALUE,r=-1,o=0,s=this.count();o=0&&r<0)&&(a=u,r=l,n.length=0),n.push(o))}return n},Ay.getRawIndex=fi,Ay.getRawDataItem=function(t){if(this._rawData.persistent)return this._rawData.getItem(this.getRawIndex(t));for(var e=[],i=0;i=l&&b<=u||isNaN(b))&&(r[o++]=c),c++}h=!0}else if(2===n){for(var d=this._storage[s],v=this._storage[e[1]],y=t[e[1]][0],x=t[e[1]][1],f=0;f=l&&b<=u||isNaN(b))&&(w>=y&&w<=x||isNaN(w))&&(r[o++]=c),c++}h=!0}}if(!h)if(1===n)for(m=0;m=l&&b<=u||isNaN(b))&&(r[o++]=M)}else for(m=0;mt[I][1])&&(S=!1)}S&&(r[o++]=this.getRawIndex(m))}return ob[1]&&(b[1]=_)}}}return a},Ay.downSample=function(t,e,i,n){for(var a=vi(this,[t]),r=a._storage,o=[],s=Math.floor(1/e),l=r[t],u=this.count(),h=this._chunkSize,c=a._rawExtent[t],d=new(hi(this))(u),f=0,p=0;pu-p&&(s=u-p,o.length=s);for(var g=0;gc[1]&&(c[1]=x),d[f++]=_}return a._count=f,a._indices=d,a.getRawIndex=pi,a},Ay.getItemModel=function(t){var e=this.hostModel;return new Vp(this.getRawDataItem(t),e,e&&e.ecModel)},Ay.diff=function(t){var e=this;return new hy(t?t.getIndices():[],this.getIndices(),function(e){return gi(t,e)},function(t){return gi(e,t)})},Ay.getVisual=function(t){var e=this._visual;return e&&e[t]},Ay.setVisual=function(t,e){if(yy(t))for(var i in t)t.hasOwnProperty(i)&&this.setVisual(i,t[i]);else this._visual=this._visual||{},this._visual[t]=e},Ay.setLayout=function(t,e){if(yy(t))for(var i in t)t.hasOwnProperty(i)&&this.setLayout(i,t[i]);else this._layout[t]=e},Ay.getLayout=function(t){return this._layout[t]},Ay.getItemLayout=function(t){return this._itemLayouts[t]},Ay.setItemLayout=function(t,e,i){this._itemLayouts[t]=i?du.extend(this._itemLayouts[t]||{},e):e},Ay.clearItemLayouts=function(){this._itemLayouts.length=0},Ay.getItemVisual=function(t,e,i){var n=this._itemVisuals[t],a=n&&n[e];return null!=a||i?a:this.getVisual(e)},Ay.setItemVisual=function(t,e,i){var n=this._itemVisuals[t]||{},a=this.hasItemVisual;if(this._itemVisuals[t]=n,yy(e))for(var r in e)e.hasOwnProperty(r)&&(n[r]=e[r],a[r]=!0);else n[e]=i,a[e]=!0},Ay.clearAllVisual=function(){this._visual={},this._itemVisuals=[],this.hasItemVisual={}};Ay.setItemGraphicEl=function(t,e){var i=this.hostModel;e&&(e.dataIndex=t,e.dataType=this.dataType,e.seriesIndex=i&&i.seriesIndex,"group"===e.type&&e.traverse(function(t){t.seriesIndex=this.seriesIndex,t.dataIndex=this.dataIndex,t.dataType=this.dataType},e)),this._graphicEls[t]=e},Ay.getItemGraphicEl=function(t){return this._graphicEls[t]},Ay.eachItemGraphicEl=function(t,e){du.each(this._graphicEls,function(i,n){i&&t&&t.call(e,i,n)})},Ay.cloneShallow=function(t){if(!t){var e=du.map(this.dimensions,this.getDimensionInfo,this);t=new Iy(e,this.hostModel)}if(t._storage=this._storage,ci(t,this),this._indices){var i=this._indices.constructor;t._indices=new i(this._indices)}else t._indices=null;return t.getRawIndex=t._indices?pi:fi,t},Ay.wrapMethod=function(t,e){var i=this[t];"function"==typeof i&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var t=i.apply(this,arguments);return e.apply(this,[t].concat(du.slice(arguments)))})},Ay.TRANSFERABLE_METHODS=["cloneShallow","downSample","map"],Ay.CHANGABLE_METHODS=["filterSelf","selectRange"];var Ty=Iy,Dy=du.createHashMap,Cy=du.each,Ly=du.isString,Py=du.defaults,ky=du.extend,Oy=du.isObject,Ry=du.clone,Ny=Wc.normalizeToArray,Ey=$g.guessOrdinal,zy=py.OTHER_DIMENSIONS,Vy=function(t,e,i){function n(t,e,i){null!=zy.get(e)?t.otherDims[e]=i:(t.coordDim=e,t.coordDimIndex=i,s.set(e,!0))}Cg.isInstance(e)||(e=Cg.seriesDataToSource(e)),i=i||{},t=(t||[]).slice();for(var a=(i.dimsDef||[]).slice(),r=Dy(i.encodeDef),o=Dy(),s=Dy(),l=[],u=function(t,e,i,n){var a=Math.max(t.dimensionsDetectCount||1,e.length,i.length,n||0);return Cy(e,function(t){var e=t.dimsDef;e&&(a=Math.max(a,e.length))}),a}(e,t,a,i.dimCount),h=0;h=e[0]&&t<=e[1]},bi.prototype.normalize=function(t){var e=this._extent;return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])},bi.prototype.scale=function(t){var e=this._extent;return t*(e[1]-e[0])+e[0]},bi.prototype.unionExtent=function(t){var e=this._extent;t[0]e[1]&&(e[1]=t[1])},bi.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},bi.prototype.getExtent=function(){return this._extent.slice()},bi.prototype.setExtent=function(t,e){var i=this._extent;isNaN(t)||(i[0]=t),isNaN(e)||(i[1]=e)},bi.prototype.isBlank=function(){return this._isBlank},bi.prototype.setBlank=function(t){this._isBlank=t},bi.prototype.getLabel=null,Yc.enableClassExtend(bi),Yc.enableClassManagement(bi,{registerWhenExtend:!0});var qy=bi,$y=du.createHashMap,Ky=du.isObject,Jy=du.map;wi.createByAxisModel=function(t){var e=t.option,i=e.data,n=i&&Jy(i,function(t){return Ky(t)&&null!=t.value?t.value:t+""});return new wi({categories:n,needCollect:!n,deduplication:!1!==e.dedplication})};var Qy=wi.prototype;Qy.getOrdinal=function(t){return Si(this).get(t)},Qy.parseAndCollect=function(t){var e,i=this._needCollect;if("string"!=typeof t&&!i)return t;if(i&&!this._deduplication)return e=this.categories.length,this.categories[e]=t,e;var n=Si(this);return null==(e=n.get(t))&&(i?(e=this.categories.length,this.categories[e]=t,n.set(t,e)):e=NaN),e};var tx=wi,ex=qy.prototype,ix=qy.extend({type:"ordinal",init:function(t,e){t&&!du.isArray(t)||(t=new tx({categories:t})),this._ordinalMeta=t,this._extent=e||[0,t.categories.length-1]},parse:function(t){return"string"==typeof t?this._ordinalMeta.getOrdinal(t):Math.round(t)},contain:function(t){return t=this.parse(t),ex.contain.call(this,t)&&null!=this._ordinalMeta.categories[t]},normalize:function(t){return ex.normalize.call(this,this.parse(t))},scale:function(t){return Math.round(ex.scale.call(this,t))},getTicks:function(){for(var t=[],e=this._extent,i=e[0];i<=e[1];)t.push(i),i++;return t},getLabel:function(t){if(!this.isBlank())return this._ordinalMeta.categories[t]},count:function(){return this._extent[1]-this._extent[0]+1},unionExtentFromData:function(t,e){this.unionExtent(t.getApproximateExtent(e))},getOrdinalMeta:function(){return this._ordinalMeta},niceTicks:du.noop,niceExtent:du.noop});ix.create=function(){return new ix};var nx=ix,ax=Up.round,rx={intervalScaleNiceTicks:function(t,e,i,n){var a={},r=t[1]-t[0],o=a.interval=Up.nice(r/e,!0);null!=i&&on&&(o=a.interval=n);var s=a.intervalPrecision=Mi(o);return Ai(a.niceTickExtent=[ax(Math.ceil(t[0]/o)*o,s),ax(Math.floor(t[1]/o)*o,s)],t),a},getIntervalPrecision:Mi,fixExtent:Ai,intervalScaleGetTicks:function(t,e,i,n){var a=[];if(!t)return a;e[0]1e4)return[];return e[1]>(a.length?a[a.length-1]:i[1])&&a.push(e[1]),a}},ox=Up.round,sx=qy.extend({type:"interval",_interval:0,_intervalPrecision:2,setExtent:function(t,e){var i=this._extent;isNaN(t)||(i[0]=parseFloat(t)),isNaN(e)||(i[1]=parseFloat(e))},unionExtent:function(t){var e=this._extent;t[0]e[1]&&(e[1]=t[1]),sx.prototype.setExtent.call(this,e[0],e[1])},getInterval:function(){return this._interval},setInterval:function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=rx.getIntervalPrecision(t)},getTicks:function(){return rx.intervalScaleGetTicks(this._interval,this._extent,this._niceExtent,this._intervalPrecision)},getLabel:function(t,e){if(null==t)return"";var i=e&&e.precision;return null==i?i=Up.getPrecisionSafe(t)||0:"auto"===i&&(i=this._intervalPrecision),t=ox(t,i,!0),qp.addCommas(t)},niceTicks:function(t,e,i){t=t||5;var n=this._extent,a=n[1]-n[0];if(isFinite(a)){a<0&&(a=-a,n.reverse());var r=rx.intervalScaleNiceTicks(n,t,e,i);this._intervalPrecision=r.intervalPrecision,this._interval=r.interval,this._niceExtent=r.niceTickExtent}},niceExtent:function(t){var e=this._extent;if(e[0]===e[1])if(0!==e[0]){var i=e[0];t.fixMax?e[0]-=i/2:(e[1]+=i/2,e[0]-=i/2)}else e[1]=1;var n=e[1]-e[0];isFinite(n)||(e[0]=0,e[1]=1),this.niceTicks(t.splitNumber,t.minInterval,t.maxInterval);var a=this._interval;t.fixMin||(e[0]=ox(Math.floor(e[0]/a)*a)),t.fixMax||(e[1]=ox(Math.ceil(e[1]/a)*a))}});sx.create=function(){return new sx};var lx=sx,ux=Up.parsePercent,hx=Fy.isDimensionStacked,cx="__ec_stack_",dx="undefined"!=typeof Float32Array?Float32Array:Array,fx={getLayoutOnAxis:function(t){var e=[],i=t.axis;if("category"===i.type){for(var n=i.getBandWidth(),a=0;a=0?"p":"n",S=v;g&&(a[s][b]||(a[s][b]={p:v,n:v}),S=a[s][b][w]);var M,I,A,T;if(m)M=S,I=(D=i.dataToPoint([_,b]))[1]+u,A=D[0]-v,T=h,Math.abs(A).5||(u=.5),{progress:function(t,e){for(var h,c=new dx(2*t.count),d=[],f=[],p=0;null!=(h=t.next());)f[l]=e.get(r,h),f[1-l]=e.get(o,h),d=i.dataToPoint(f,null,d),c[p++]=d[0],c[p++]=d[1];e.setLayout({largePoints:c,barWidth:u,valueAxisStart:Ni(n,a,!1),valueAxisHorizontal:s})}}}}}},px=lx.prototype,gx=Math.ceil,mx=Math.floor,vx=lx.extend({type:"time",getLabel:function(t){var e=this._stepLvl,i=new Date(t);return qp.formatTime(e[0],i,this.getSetting("useUTC"))},niceExtent:function(t){var e=this._extent;if(e[0]===e[1]&&(e[0]-=864e5,e[1]+=864e5),e[1]===-1/0&&e[0]===1/0){var i=new Date;e[1]=+new Date(i.getFullYear(),i.getMonth(),i.getDate()),e[0]=e[1]-864e5}this.niceTicks(t.splitNumber,t.minInterval,t.maxInterval);var n=this._interval;t.fixMin||(e[0]=Up.round(mx(e[0]/n)*n)),t.fixMax||(e[1]=Up.round(gx(e[1]/n)*n))},niceTicks:function(t,e,i){t=t||10;var n=this._extent,a=n[1]-n[0],r=a/t;null!=e&&ri&&(r=i);var o=yx.length,s=function(t,e,i,n){for(;i>>1;t[a][1]0;)n*=10;var a=[Up.round(Ix(e[0]/n)*n),Up.round(Mx(e[1]/n)*n)];this._interval=n,this._niceExtent=a}},niceExtent:function(t){_x.niceExtent.call(this,t);var e=this._originalScale;e.__fixMin=t.fixMin,e.__fixMax=t.fixMax}});du.each(["contain","normalize"],function(t){Dx.prototype[t]=function(e){return e=Tx(e)/Tx(this.base),xx[t].call(this,e)}}),Dx.create=function(){return new Dx};var Cx=fx.prepareLayoutBarSeries,Lx=fx.makeColumnLayout,Px=fx.retrieveColumnLayout,kx={getScaleExtent:zi,niceScaleExtent:function(t,e){var i=zi(t,e),n=null!=e.getMin(),a=null!=e.getMax(),r=e.get("splitNumber");"log"===t.type&&(t.base=e.get("logBase"));var o=t.type;t.setExtent(i[0],i[1]),t.niceExtent({splitNumber:r,fixMin:n,fixMax:a,minInterval:"interval"===o||"time"===o?e.get("minInterval"):null,maxInterval:"interval"===o||"time"===o?e.get("maxInterval"):null});var s=e.get("interval");null!=s&&t.setInterval&&t.setInterval(s)},createScaleByModel:function(t,e){if(e=e||t.get("type"))switch(e){case"category":return new nx(t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),[1/0,-1/0]);case"value":return new lx;default:return(qy.getClass(e)||lx).create(t)}},ifAxisCrossZero:function(t){var e=t.scale.getExtent(),i=e[0],n=e[1];return!(i>0&&n>0||i<0&&n<0)},makeLabelFormatter:Vi,getAxisRawValue:Bi,estimateLabelUnionRect:function(t){var e=t.model,i=t.scale;if(e.get("axisLabel.show")&&!i.isBlank()){var n,a,r="category"===t.type,o=i.getExtent();a=r?i.count():(n=i.getTicks()).length;var s,l=t.getLabelModel(),u=Vi(t),h=1;a>40&&(h=Math.ceil(a/40));for(var c=0;c0}),function(t){var e=t.properties,i=t.geometry,n=i.coordinates,a=[];"Polygon"===i.type&&a.push({type:"polygon",exterior:n[0],interiors:n.slice(1)}),"MultiPolygon"===i.type&&du.each(n,function(t){t[0]&&a.push({type:"polygon",exterior:t[0],interiors:t.slice(1)})});var r=new $x(e.name,a,e.cp);return r.properties=e,r})},Jx=Wc.makeInner,Qx=kx.makeLabelFormatter,t_=Jx(),e_={createAxisLabels:function(t){return"category"===t.type?function(t){var e=t.getLabelModel(),i=Wi(t,e);return!e.get("show")||t.scale.isBlank()?{labels:[],labelCategoryInterval:i.labelCategoryInterval}:i}(t):function(t){var e=t.scale.getTicks(),i=Qx(t);return{labels:du.map(e,function(e,n){return{formattedLabel:i(e,n),rawLabel:t.scale.getLabel(e),tickValue:e}})}}(t)},createAxisTicks:function(t,e){return"category"===t.type?function(t,e){var i=Ui(t,"ticks"),n=qi(e),a=Zi(i,n);if(a)return a;var r,o;if(e.get("show")&&!t.scale.isBlank()||(r=[]),du.isFunction(n))r=Xi(t,n,!0);else if("auto"===n){var s=Wi(t,t.getLabelModel());o=s.labelCategoryInterval,r=du.map(s.labels,function(t){return t.tickValue})}else r=Yi(t,o=n,!0);return ji(i,n,{ticks:r,tickCategoryInterval:o})}(t,e):{ticks:t.scale.getTicks()}},calculateCategoryInterval:function(t){var e=function(t){var e=t.getLabelModel();return{axisRotate:t.getRotate?t.getRotate():t.isHorizontal&&!t.isHorizontal()?90:0,labelRotate:e.get("rotate")||0,font:e.getFont()}}(t),i=Qx(t),n=(e.axisRotate-e.labelRotate)/180*Math.PI,a=t.scale,r=a.getExtent(),o=a.count();if(r[1]-r[0]<1)return 0;var s=1;o>40&&(s=Math.max(1,Math.floor(o/40)));for(var l=r[0],u=t.dataToCoord(l+1)-t.dataToCoord(l),h=Math.abs(u*Math.cos(n)),c=Math.abs(u*Math.sin(n)),d=0,f=0;l<=r[1];l+=s){var p=0,g=0,m=jh.getBoundingRect(i(l),e.font,"center","top");p=1.3*m.width,g=1.3*m.height,d=Math.max(d,p,7),f=Math.max(f,g,7)}var v=d/h,y=f/c;isNaN(v)&&(v=1/0),isNaN(y)&&(y=1/0);var x=Math.max(0,Math.floor(Math.min(v,y))),_=t_(t.model),b=_.lastAutoInterval,w=_.lastTickCount;return null!=b&&null!=w&&Math.abs(b-x)<=1&&Math.abs(w-o)<=1&&b>x?x=b:(_.lastTickCount=o,_.lastAutoInterval=x),x}},i_=du.each,n_=du.map,a_=Up.linearMap,r_=Up.getPixelPrecision,o_=e_.createAxisTicks,s_=e_.createAxisLabels,l_=e_.calculateCategoryInterval,u_=[0,1],h_=function(t,e,i){this.dim=t,this.scale=e,this._extent=i||[0,0],this.inverse=!1,this.onBand=!1};h_.prototype={constructor:h_,contain:function(t){var e=this._extent,i=Math.min(e[0],e[1]),n=Math.max(e[0],e[1]);return t>=i&&t<=n},containData:function(t){return this.contain(this.dataToCoord(t))},getExtent:function(){return this._extent.slice()},getPixelPrecision:function(t){return r_(t||this.scale.getExtent(),this._extent)},setExtent:function(t,e){var i=this._extent;i[0]=t,i[1]=e},dataToCoord:function(t,e){var i=this._extent,n=this.scale;return t=n.normalize(t),this.onBand&&"ordinal"===n.type&&$i(i=i.slice(),n.count()),a_(t,u_,i,e)},coordToData:function(t,e){var i=this._extent,n=this.scale;this.onBand&&"ordinal"===n.type&&$i(i=i.slice(),n.count());var a=a_(t,i,u_,e);return this.scale.scale(a)},pointToData:function(t,e){},getTicksCoords:function(t){var e=(t=t||{}).tickModel||this.getTickModel(),i=o_(this,e),n=i.ticks,a=n_(n,function(t){return{coord:this.dataToCoord(t),tickValue:t}},this),r=e.get("alignWithLabel");return function(t,e,i,n,a){function r(t,e){return h?t>e:t0&&(t.coord-=u/(2*(e+1)))}),s={coord:e[o-1].coord+u},e.push(s)}var h=l[0]>l[1];r(e[0].coord,l[0])&&(a?e[0].coord=l[0]:e.shift()),a&&r(l[0],e[0].coord)&&e.unshift({coord:l[0]}),r(l[1],s.coord)&&(a?s.coord=l[1]:e.pop()),a&&r(s.coord,l[1])&&e.push({coord:l[1]})}}(this,a,i.tickCategoryInterval,r,t.clamp),a},getViewLabels:function(){return s_(this).labels},getLabelModel:function(){return this.model.getModel("axisLabel")},getTickModel:function(){return this.model.getModel("axisTick")},getBandWidth:function(){var t=this._extent,e=this.scale.getExtent(),i=e[1]-e[0]+(this.onBand?1:0);0===i&&(i=1);var n=Math.abs(t[1]-t[0]);return Math.abs(n)/i},isHorizontal:null,getRotate:null,calculateCategoryInterval:function(){return l_(this)}};var c_=h_,d_=zc,f_=Mu,p_=pu,g_=Wu,m_=Dp,v_=Up,y_=qp,x_=(Nv.throttle,Nv.throttle),__=Yx,b_=Kx,w_=Ty,S_=Vp,M_=c_,I_=Jl,A_=Kx,T_={};du.each(["map","each","filter","indexOf","inherits","reduce","filter","bind","curry","isArray","isString","isObject","isFunction","extend","defaults","clone","merge"],function(t){T_[t]=du[t]});var D_={zrender:d_,matrix:f_,vector:p_,color:g_,graphic:m_,number:v_,format:y_,throttle:x_,helper:__,parseGeoJSON:b_,List:w_,Model:S_,Axis:M_,env:I_,parseGeoJson:A_,util:T_},C_=t(function(t,e){function i(t){return function(e,i,n){e=e&&e.toLowerCase(),yu.prototype[t].call(this,e,i,n)}}function n(){yu.call(this)}function a(t,e,i){function a(t,e){return t.__prio-e.__prio}i=i||{},"string"==typeof e&&(e=q[e]),this.id,this.group,this._dom=t;var r=this._zr=zc.init(t,{renderer:i.renderer||"canvas",devicePixelRatio:i.devicePixelRatio,width:i.width,height:i.height});this._throttledZrFlush=T(du.bind(r.flush,r),17);(e=du.clone(e))&&Rm(e,!0),this._theme=e,this._chartsViews=[],this._chartsMap={},this._componentsViews=[],this._componentsMap={},this._coordSysMgr=new vm;var o=this._api=function(t){var e=t._coordSysMgr;return du.extend(new gm(t),{getCoordinateSystems:du.bind(e.getCoordinateSystems,e),getComponentByElement:function(e){for(;e;){var i=e.__ecComponentInfo;if(null!=i)return t._model.getComponent(i.mainType,i.index);e=e.parent}}})}(this);mh(X,a),mh(Z,a),this._scheduler=new iy(this,o,Z,X),yu.call(this),this._messageCenter=new n,this._initEvents(),this.resize=du.bind(this.resize,this),this._pendingActions=[],r.animation.on("frame",this._onframe,this),function(t,e){t.on("rendered",function(){e.trigger("rendered"),!t.animation.isFinished()||e[V]||e._scheduler.unfinished||e._pendingActions.length||e.trigger("finished")})}(r,this),du.setAsPrimitive(this)}function r(t,e,i){var n,a=this._model,r=this._coordSysMgr.getCoordinateSystems();e=Wc.parseFinder(a,e);for(var o=0;oe.get("hoverLayerThreshold")&&!Jl.node&&i.traverse(function(t){t.isGroup||(t.useHoverLayer=!0)})}(t._zr,e),Bv(t._zr.dom,e)}function m(t,e){C(Y,function(i){i(t,e)})}function v(t,e){var i=t.get("z"),n=t.get("zlevel");e.group.traverse(function(t){"group"!==t.type&&(null!=i&&(t.z=i),null!=n&&(t.zlevel=n))})}function y(t){J[t]=!1}function x(t){return K[Wc.getAttribute(t,et)]}function _(t,e){q[t]=e}function b(t){j.push(t)}function w(t,e){I(Z,t,e,O)}function S(t,e,i){"function"==typeof e&&(i=e,e="");var n=P(t)?t.type:[t,t={event:e}][0];t.event=(t.event||n).toLowerCase(),e=t.event,D(B.test(n)&&B.test(e)),W[n]||(W[n]={action:i,actionInfo:t}),U[e]=n}function M(t,e){I(X,t,e,N,"visual")}function I(t,e,i,n,a){(L(e)||P(e))&&(i=e,e=n);var r=iy.wrapStageHandler(i,a);return r.__prio=e,r.__raw=i,t.push(r),r}function A(t,e){$[t]=e}var T=Nv.throttle,D=du.assert,C=du.each,L=du.isFunction,P=du.isObject,k=ug.parseClassType,O=1e3,R=1e3,N=3e3,E={PROCESSOR:{FILTER:O,STATISTIC:5e3},VISUAL:{LAYOUT:R,GLOBAL:2e3,CHART:N,COMPONENT:4e3,BRUSH:5e3}},z="__flagInMainProcess",V="__optionUpdated",B=/^[a-zA-Z0-9_]+$/;n.prototype.on=i("on"),n.prototype.off=i("off"),n.prototype.one=i("one"),du.mixin(n,yu);var G=a.prototype;G._onframe=function(){if(!this._disposed){var t=this._scheduler;if(this[V]){var e=this[V].silent;this[z]=!0,o(this),H.update.call(this),this[z]=!1,this[V]=!1,h.call(this,e),c.call(this,e)}else if(t.unfinished){var i=1,n=this._model;this._api;t.unfinished=!1;do{var a=+new Date;t.performSeriesTasks(n),t.performDataProcessorTasks(n),l(this,n),t.performVisualTasks(n),g(this,this._model,0,"remain"),i-=+new Date-a}while(i>0&&t.unfinished);t.unfinished||this._zr.flush()}}},G.getDom=function(){return this._dom},G.getZr=function(){return this._zr},G.setOption=function(t,e,i){var n;if(P(e)&&(i=e.lazyUpdate,n=e.silent,e=e.notMerge),this[z]=!0,!this._model||e){var a=new Sm(this._api),r=this._theme,s=this._model=new fm(null,null,r,a);s.scheduler=this._scheduler,s.init(null,null,r,a)}this._model.setOption(t,j),i?(this[V]={silent:n},this[z]=!1):(o(this),H.update.call(this),this._zr.flush(),this[V]=!1,this[z]=!1,h.call(this,n),c.call(this,n))},G.setTheme=function(){console.log("ECharts#setTheme() is DEPRECATED in ECharts 3.0")},G.getModel=function(){return this._model},G.getOption=function(){return this._model&&this._model.getOption()},G.getWidth=function(){return this._zr.getWidth()},G.getHeight=function(){return this._zr.getHeight()},G.getDevicePixelRatio=function(){return this._zr.painter.dpr||window.devicePixelRatio||1},G.getRenderedCanvas=function(t){if(Jl.canvasSupported){(t=t||{}).pixelRatio=t.pixelRatio||1,t.backgroundColor=t.backgroundColor||this._model.get("backgroundColor");return this._zr.painter.getRenderedCanvas(t)}},G.getSvgDataUrl=function(){if(Jl.svgSupported){var t=this._zr,e=t.storage.getDisplayList();return du.each(e,function(t){t.stopAnimation(!0)}),t.painter.pathToDataUrl()}},G.getDataURL=function(t){var e=(t=t||{}).excludeComponents,i=this._model,n=[],a=this;C(e,function(t){i.eachComponent({mainType:t},function(t){var e=a._componentsMap[t.__viewId];e.group.ignore||(n.push(e),e.group.ignore=!0)})});var r="svg"===this._zr.painter.getType()?this.getSvgDataUrl():this.getRenderedCanvas(t).toDataURL("image/"+(t&&t.type||"png"));return C(n,function(t){t.group.ignore=!1}),r},G.getConnectedDataURL=function(t){if(Jl.canvasSupported){var e=this.group,i=Math.min,n=Math.max;if(J[e]){var a=1/0,r=1/0,o=-1/0,s=-1/0,l=[],u=t&&t.pixelRatio||1;du.each(K,function(u,h){if(u.group===e){var c=u.getRenderedCanvas(du.clone(t)),d=u.getDom().getBoundingClientRect();a=i(d.left,a),r=i(d.top,r),o=n(d.right,o),s=n(d.bottom,s),l.push({dom:c,left:d.left,top:d.top})}});var h=(o*=u)-(a*=u),c=(s*=u)-(r*=u),d=du.createCanvas();d.width=h,d.height=c;var f=zc.init(d);return C(l,function(t){var e=new Dp.Image({style:{x:t.left*u-a,y:t.top*u-r,image:t.dom}});f.add(e)}),f.refreshImmediately(),d.toDataURL("image/"+(t&&t.type||"png"))}return this.getDataURL(t)}},G.convertToPixel=du.curry(r,"convertToPixel"),G.convertFromPixel=du.curry(r,"convertFromPixel"),G.containPixel=function(t,e){var i,n=this._model;return t=Wc.parseFinder(n,t),du.each(t,function(t,n){n.indexOf("Models")>=0&&du.each(t,function(t){var a=t.coordinateSystem;if(a&&a.containPoint)i|=!!a.containPoint(e);else if("seriesModels"===n){var r=this._chartsMap[t.__viewId];r&&r.containPoint&&(i|=r.containPoint(e,t))}},this)},this),!!i},G.getVisual=function(t,e){var i=this._model,n=(t=Wc.parseFinder(i,t,{defaultMainType:"series"})).seriesModel.getData(),a=t.hasOwnProperty("dataIndexInside")?t.dataIndexInside:t.hasOwnProperty("dataIndex")?n.indexOfRawIndex(t.dataIndex):null;return null!=a?n.getItemVisual(a,e):n.getVisual(e)},G.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},G.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]};var H={prepareAndUpdate:function(t){o(this),H.update.call(this,t)},update:function(t){var e=this._model,i=this._api,n=this._zr,a=this._coordSysMgr,r=this._scheduler;if(e){r.restoreData(e,t),r.performSeriesTasks(e),a.create(e,i),r.performDataProcessorTasks(e,t),l(this,e),a.update(e,i),f(e),r.performVisualTasks(e,t),p(this,e,i,t);var o=e.get("backgroundColor")||"transparent";if(Jl.canvasSupported)n.setBackgroundColor(o);else{var s=Wu.parse(o);o=Wu.stringify(s,"rgb"),0===s[3]&&(o="transparent")}m(e,i)}},updateTransform:function(t){var e=this._model,i=this,n=this._api;if(e){var a=[];e.eachComponent(function(r,o){var s=i.getViewOfComponentModel(o);if(s&&s.__alive)if(s.updateTransform){var l=s.updateTransform(o,e,n,t);l&&l.update&&a.push(s)}else a.push(s)});var r=du.createHashMap();e.eachSeries(function(a){var o=i._chartsMap[a.__viewId];if(o.updateTransform){var s=o.updateTransform(a,e,n,t);s&&s.update&&r.set(a.uid,1)}else r.set(a.uid,1)}),f(e),this._scheduler.performVisualTasks(e,t,{setDirty:!0,dirtyMap:r}),g(i,e,0,t,r),m(e,this._api)}},updateView:function(t){var e=this._model;e&&(Pv.markUpdateMethod(t,"updateView"),f(e),this._scheduler.performVisualTasks(e,t,{setDirty:!0}),p(this,this._model,this._api,t),m(e,this._api))},updateVisual:function(t){H.update.call(this,t)},updateLayout:function(t){H.update.call(this,t)}};G.resize=function(t){this._zr.resize(t);var e=this._model;if(this._loadingFX&&this._loadingFX.resize(),e){var i=e.resetOption("media"),n=t&&t.silent;this[z]=!0,i&&o(this),H.update.call(this),this[z]=!1,h.call(this,n),c.call(this,n)}},G.showLoading=function(t,e){if(P(t)&&(e=t,t=""),t=t||"default",this.hideLoading(),$[t]){var i=$[t](this._api,e),n=this._zr;this._loadingFX=i,n.add(i)}},G.hideLoading=function(){this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},G.makeActionFromEvent=function(t){var e=du.extend({},t);return e.type=U[t.type],e},G.dispatchAction=function(t,e){P(e)||(e={silent:!!e}),W[t.type]&&this._model&&(this[z]?this._pendingActions.push(t):(u.call(this,t,e.silent),e.flush?this._zr.flush(!0):!1!==e.flush&&Jl.browser.weChat&&this._throttledZrFlush(),h.call(this,e.silent),c.call(this,e.silent)))},G.appendData=function(t){var e=t.seriesIndex;this.getModel().getSeriesByIndex(e).appendData(t),this._scheduler.unfinished=!0},G.on=i("on"),G.off=i("off"),G.one=i("one");var F=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];G._initEvents=function(){C(F,function(t){this._zr.on(t,function(e){var i,n=this.getModel(),a=e.target;if("globalout"===t)i={};else if(a&&null!=a.dataIndex){var r=a.dataModel||n.getSeriesByIndex(a.seriesIndex);i=r&&r.getDataParams(a.dataIndex,a.dataType)||{}}else a&&a.eventData&&(i=du.extend({},a.eventData));i&&(i.event=e,i.type=t,this.trigger(t,i))},this)},this),C(U,function(t,e){this._messageCenter.on(e,function(t){this.trigger(e,t)},this)},this)},G.isDisposed=function(){return this._disposed},G.clear=function(){this.setOption({series:[]},!0)},G.dispose=function(){if(!this._disposed){this._disposed=!0,Wc.setAttribute(this.getDom(),et,"");var t=this._api,e=this._model;C(this._componentsViews,function(i){i.dispose(e,t)}),C(this._chartsViews,function(i){i.dispose(e,t)}),this._zr.dispose(),delete K[this.id]}},du.mixin(a,yu);var W={},U={},Z=[],j=[],Y=[],X=[],q={},$={},K={},J={},Q=new Date-0,tt=new Date-0,et="_echarts_instance_",it={},nt=y;M(2e3,Ev),b(Rm),w(5e3,zm),A("default",Hv),S({type:"highlight",event:"highlight",update:"highlight"},du.noop),S({type:"downplay",event:"downplay",update:"downplay"},du.noop),_("light",ay),_("dark",sy);e.version="4.1.0",e.dependencies={zrender:"4.0.4"},e.PRIORITY=E,e.init=function(t,e,i){var n=x(t);if(n)return n;var r=new a(t,e,i);return r.id="ec_"+Q++,K[r.id]=r,Wc.setAttribute(t,et,r.id),function(t){function e(t,e){for(var n=0;n0?i=n[0]:n[1]<0&&(i=n[1]),i}(r,i),s=a.dim,l=r.dim,u=e.mapDimension(l),h=e.mapDimension(s),c="x"===l||"radius"===l?1:0,d=j_(t.dimensions,function(t){return e.mapDimension(t)}),f=e.getCalculationInfo("stackResultDimension");return(n|=Z_(e,d[0]))&&(d[0]=f),(n|=Z_(e,d[1]))&&(d[1]=f),{dataDimsForPoint:d,valueStart:o,valueAxisDim:l,baseAxisDim:s,stacked:!!n,valueDim:u,baseDim:h,baseDataOffset:c,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}},getStackedOnPoint:function(t,e,i,n){var a=NaN;t.stacked&&(a=i.get(i.getCalculationInfo("stackedOverDimension"),n)),isNaN(a)&&(a=t.valueStart);var r=t.baseDataOffset,o=[];return o[r]=i.get(t.baseDim,n),o[1-r]=a,e.dataToPoint(o)}},X_=Y_.prepareDataCoordInfo,q_=Y_.getStackedOnPoint,$_=function(t,e,i,n,a,r,o,s){for(var l=function(t,e){var i=[];return e.diff(t).add(function(t){i.push({cmd:"+",idx:t})}).update(function(t,e){i.push({cmd:"=",idx:e,idx1:t})}).remove(function(t){i.push({cmd:"-",idx:t})}).execute(),i}(t,e),u=[],h=[],c=[],d=[],f=[],p=[],g=[],m=X_(a,e,o),v=X_(r,t,s),y=0;y0&&an(i[a-1]);a--);for(;n0&&an(i[r-1]);r--);for(;an)return!1;return!0}(r,e))){var o=e.mapDimension(r.dim),s={};return du.each(r.getViewLabels(),function(t){s[t.tickValue]=1}),function(t){return!s.hasOwnProperty(e.get(o,t))}}}}(t,r,n),b=this._data;b&&b.eachItemGraphicEl(function(t,e){t.__temp&&(a.remove(t),b.setItemGraphicEl(e,null))}),x||c.remove(),a.add(p);var w=!u&&t.get("step");d&&h.type===n.type&&w===this._step?(m&&!f?f=this._newPolygon(l,y,n,g):f&&!m&&(p.remove(f),f=this._polygon=null),p.setClipPath(hn(n,!1,!1,t)),x&&c.updateData(r,{isIgnore:_,clipShape:hn(n,!1,!0,t)}),r.eachItemGraphicEl(function(t){t.stopAnimation(!0)}),sn(this._stackedOnPoints,y)&&sn(this._points,l)||(g?this._updateAnimation(r,y,n,i,w,v):(w&&(l=cn(l,n,w),y=cn(y,n,w)),d.setShape({points:l}),f&&f.setShape({points:l,stackedOnPoints:y})))):(x&&c.updateData(r,{isIgnore:_,clipShape:hn(n,!1,!0,t)}),w&&(l=cn(l,n,w),y=cn(y,n,w)),d=this._newPolyline(l,n,g),m&&(f=this._newPolygon(l,y,n,g)),p.setClipPath(hn(n,!0,!1,t)));var S=function(t,e){var i=t.getVisual("visualMeta");if(i&&i.length&&t.count()&&"cartesian2d"===e.type){for(var n,a,r=i.length-1;r>=0;r--){var o=i[r].dimension,s=t.dimensions[o],l=t.getDimensionInfo(s);if("x"===(n=l&&l.coordDim)||"y"===n){a=i[r];break}}if(a){var u=e.getAxis(n),h=du.map(a.stops,function(t){return{coord:u.toGlobalCoord(u.dataToCoord(t.value)),color:t.color}}),c=h.length,d=a.outerColors.slice();c&&h[0].coord>h[c-1].coord&&(h.reverse(),d.reverse());var f=h[0].coord-10,p=h[c-1].coord+10,g=p-f;if(g<.001)return"transparent";du.each(h,function(t){t.offset=(t.coord-f)/g}),h.push({offset:c?h[c-1].offset:.5,color:d[1]||"transparent"}),h.unshift({offset:c?h[0].offset:.5,color:d[0]||"transparent"});var m=new Dp.LinearGradient(0,0,0,0,h,!0);return m[n]=f,m[n+"2"]=p,m}}}(r,n)||r.getVisual("color");d.useStyle(du.defaults(o.getLineStyle(),{fill:"none",stroke:S,lineJoin:"bevel"}));var M=t.get("smooth");if(M=ln(t.get("smooth")),d.setShape({smooth:M,smoothMonotone:t.get("smoothMonotone"),connectNulls:t.get("connectNulls")}),f){var I=r.getCalculationInfo("stackedOnSeries"),A=0;f.useStyle(du.defaults(s.getAreaStyle(),{fill:S,opacity:.7,lineJoin:"bevel"})),I&&(A=ln(I.get("smooth"))),f.setShape({smooth:M,stackedOnSmooth:A,smoothMonotone:t.get("smoothMonotone"),connectNulls:t.get("connectNulls")})}this._data=r,this._coordSys=n,this._stackedOnPoints=y,this._points=l,this._step=w,this._valueOrigin=v},dispose:function(){},highlight:function(t,e,i,n){var a=t.getData(),r=Wc.queryDataIndex(a,n);if(!(r instanceof Array)&&null!=r&&r>=0){var o=a.getItemGraphicEl(r);if(!o){var s=a.getItemLayout(r);if(!s)return;(o=new H_(a,r)).position=s,o.setZ(t.get("zlevel"),t.get("z")),o.ignore=isNaN(s[0])||isNaN(s[1]),o.__temp=!0,a.setItemGraphicEl(r,o),o.stopSymbolAnimation(!0),this.group.add(o)}o.highlight()}else Pv.prototype.highlight.call(this,t,e,i,n)},downplay:function(t,e,i,n){var a=t.getData(),r=Wc.queryDataIndex(a,n);if(null!=r&&r>=0){var o=a.getItemGraphicEl(r);o&&(o.__temp?(a.setItemGraphicEl(r,null),this.group.remove(o)):o.downplay())}else Pv.prototype.downplay.call(this,t,e,i,n)},_newPolyline:function(t){var e=this._polyline;return e&&this._lineGroup.remove(e),e=new rb({shape:{points:t},silent:!0,z2:10}),this._lineGroup.add(e),this._polyline=e,e},_newPolygon:function(t,e){var i=this._polygon;return i&&this._lineGroup.remove(i),i=new ob({shape:{points:t,stackedOnPoints:e},silent:!0}),this._lineGroup.add(i),this._polygon=i,i},_updateAnimation:function(t,e,i,n,a,r){var o=this._polyline,s=this._polygon,l=t.hostModel,u=$_(this._data,t,this._stackedOnPoints,e,this._coordSys,i,this._valueOrigin,r),h=u.current,c=u.stackedOnCurrent,d=u.next,f=u.stackedOnNext;a&&(h=cn(u.current,i,a),c=cn(u.stackedOnCurrent,i,a),d=cn(u.next,i,a),f=cn(u.stackedOnNext,i,a)),o.shape.__points=u.current,o.shape.points=h,Dp.updateProps(o,{shape:{points:d}},l),s&&(s.setShape({points:h,stackedOnPoints:c}),Dp.updateProps(s,{shape:{points:d,stackedOnPoints:f}},l));for(var p=[],g=u.status,m=0;me&&(e=t[i]);return isFinite(e)?e:NaN},min:function(t){for(var e=1/0,i=0;i1){var c;"string"==typeof a?c=pb[a]:"function"==typeof a&&(c=a),c&&t.setData(n.downSample(n.mapDimension(s.dim),1/h,c,gb))}}}}},vb=function(t){this._axes={},this._dimList=[],this.name=t||""};vb.prototype={constructor:vb,type:"cartesian",getAxis:function(t){return this._axes[t]},getAxes:function(){return du.map(this._dimList,function(t){return this._axes[t]},this)},getAxesByScale:function(t){return t=t.toLowerCase(),du.filter(this.getAxes(),function(e){return e.scale.type===t})},addAxis:function(t){var e=t.dim;this._axes[e]=t,this._dimList.push(e)},dataToCoord:function(t){return this._dataCoordConvert(t,"dataToCoord")},coordToData:function(t){return this._dataCoordConvert(t,"coordToData")},_dataCoordConvert:function(t,e){for(var i=this._dimList,n=t instanceof Array?[]:{},a=0;ae[1]&&e.reverse(),e},getOtherAxis:function(){this.grid.getOtherAxis()},pointToData:function(t,e){return this.coordToData(this.toLocalCoord(t["x"===this.dim?0:1]),e)},toLocalCoord:null,toGlobalCoord:null},du.inherits(_b,c_);var bb=_b,wb={show:!0,zlevel:0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#333",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,lineStyle:{color:["#ccc"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.3)","rgba(200,200,200,0.3)"]}}},Sb={};Sb.categoryAxis=du.merge({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},wb),Sb.valueAxis=du.merge({boundaryGap:[0,0],splitNumber:5},wb),Sb.timeAxis=du.defaults({scale:!0,min:"dataMin",max:"dataMax"},Sb.valueAxis),Sb.logAxis=du.defaults({scale:!0,logBase:10},Sb.valueAxis);var Mb=Sb,Ib=ng.getLayoutParams,Ab=ng.mergeLayoutParam,Tb=["value","category","time","log"],Db=function(t,e,i,n){du.each(Tb,function(a){e.extend({type:t+"Axis."+a,mergeDefaultAndTheme:function(e,n){var r=this.layoutMode,o=r?Ib(e):{},s=n.getTheme();du.merge(e,s.get(a+"Axis")),du.merge(e,this.getDefaultOption()),e.type=i(t,e),r&&Ab(e,o,r)},optionUpdated:function(){"category"===this.option.type&&(this.__ordinalMeta=tx.createByAxisModel(this))},getCategories:function(t){var e=this.option;if("category"===e.type)return t?e.data:this.__ordinalMeta.categories},getOrdinalMeta:function(){return this.__ordinalMeta},defaultOption:du.mergeAll([{},Mb[a+"Axis"],n],!0)})}),ug.registerSubTypeDefaulter(t+"Axis",du.curry(i,t))},Cb=ug.extend({type:"cartesian2dAxis",axis:null,init:function(){Cb.superApply(this,"init",arguments),this.resetRange()},mergeOption:function(){Cb.superApply(this,"mergeOption",arguments),this.resetRange()},restoreData:function(){Cb.superApply(this,"restoreData",arguments),this.resetRange()},getCoordSysModel:function(){return this.ecModel.queryComponents({mainType:"grid",index:this.option.gridIndex,id:this.option.gridId})[0]}});du.merge(Cb.prototype,Ox);var Lb={offset:0};Db("x",Cb,fn,Lb),Db("y",Cb,fn,Lb);ug.extend({type:"grid",dependencies:["xAxis","yAxis"],layoutMode:"box",coordinateSystem:null,defaultOption:{show:!1,zlevel:0,z:0,left:"10%",top:60,right:"10%",bottom:60,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"}});var Pb=du.isObject,kb=du.each,Ob=du.map,Rb=du.indexOf,Nb=(du.retrieve,ng.getLayoutRect),Eb=kx.createScaleByModel,zb=kx.ifAxisCrossZero,Vb=kx.niceScaleExtent,Bb=kx.estimateLabelUnionRect,Gb=Fy.getStackedDimension,Hb=gn.prototype;Hb.type="grid",Hb.axisPointerEnabled=!0,Hb.getRect=function(){return this._rect},Hb.update=function(t,e){var i=this._axesMap;this._updateScale(t,this.model),kb(i.x,function(t){Vb(t.scale,t.model)}),kb(i.y,function(t){Vb(t.scale,t.model)}),kb(i.x,function(t){mn(i,"y",t)}),kb(i.y,function(t){mn(i,"x",t)}),this.resize(this.model,e)},Hb.resize=function(t,e,i){function n(){kb(r,function(t){var e=t.isHorizontal(),i=e?[0,a.width]:[0,a.height],n=t.inverse?1:0;t.setExtent(i[n],i[1-n]),function(t,e){var i=t.getExtent(),n=i[0]+i[1];t.toGlobalCoord="x"===t.dim?function(t){return t+e}:function(t){return n-t+e},t.toLocalCoord="x"===t.dim?function(t){return t-e}:function(t){return n-t+e}}(t,e?a.x:a.y)})}var a=Nb(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()});this._rect=a;var r=this._axesList;n(),!i&&t.get("containLabel")&&(kb(r,function(t){if(!t.model.get("axisLabel.inside")){var e=Bb(t);if(e){var i=t.isHorizontal()?"height":"width",n=t.model.get("axisLabel.margin");a[i]-=e[i]+n,"top"===t.position?a.y+=e.height+n:"left"===t.position&&(a.x+=e.width+n)}}}),n())},Hb.getAxis=function(t,e){var i=this._axesMap[t];if(null!=i){if(null==e)for(var n in i)if(i.hasOwnProperty(n))return i[n];return i[e]}},Hb.getAxes=function(){return this._axesList.slice()},Hb.getCartesian=function(t,e){if(null!=t&&null!=e){var i="x"+t+"y"+e;return this._coordsMap[i]}Pb(t)&&(e=t.yAxisIndex,t=t.xAxisIndex);for(var n=0,a=this._coordsList;nl[1]?-1:1,h=["start"===a?l[0]-u*s:"end"===a?l[1]+u*s:(l[0]+l[1])/2,Mn(a)?t.labelOffset+r*s:0],c=e.get("nameRotate");null!=c&&(c=c*Kb/180);var d;Mn(a)?n=tw(t.rotation,null!=c?c:t.rotation,r):(n=function(t,e,i,n){var a,r,o=Xb(i-t.rotation),s=n[0]>n[1],l="start"===e&&!s||"start"!==e&&s;return Yb(o-Kb/2)?(r=l?"bottom":"top",a="center"):Yb(o-1.5*Kb)?(r=l?"top":"bottom",a="center"):(r="middle",a=o<1.5*Kb&&o>Kb/2?l?"left":"right":l?"right":"left"),{rotation:o,textAlign:a,textVerticalAlign:r}}(t,a,c||0,l),null!=(d=t.axisNameAvailableWidth)&&(d=Math.abs(d/Math.sin(n.rotation)),!isFinite(d)&&(d=null)));var f=o.getFont(),p=e.get("nameTruncate",!0)||{},g=p.ellipsis,m=Wb(t.nameTruncateMaxWidth,p.maxWidth,d),v=null!=g&&null!=m?qp.truncateText(i,m,f,g,{minChar:2,placeholder:p.placeholder}):i,y=e.get("tooltip",!0),x=e.mainType,_={componentType:x,name:i,$vars:["name"]};_[x+"Index"]=e.componentIndex;var b=new Dp.Text({anid:"name",__fullText:i,__truncatedText:v,position:h,rotation:n.rotation,silent:bn(e),z2:1,tooltip:y&&y.show?Zb({content:i,formatter:function(){return i},formatterParams:_},y):null});Dp.setTextStyle(b.style,o,{text:v,textFont:f,textFill:o.getTextColor()||e.get("axisLine.lineStyle.color"),textAlign:n.textAlign,textVerticalAlign:n.textVerticalAlign}),e.get("triggerEvent")&&(b.eventData=_n(e),b.eventData.targetType="axisName",b.eventData.name=i),this._dumbGroup.add(b),b.updateTransform(),this.group.add(b),b.decomposeTransform()}}},tw=Jb.innerTextLayout=function(t,e,i){var n,a,r=Xb(e-t);return Yb(r)?(a=i>0?"top":"bottom",n="center"):Yb(r-Kb)?(a=i>0?"bottom":"top",n="center"):(a="middle",n=r>0&&r0?"right":"left":i>0?"left":"right"),{rotation:r,textAlign:n,textVerticalAlign:a}},ew=Jb,iw=du.each,nw=du.curry,aw={collect:function(t,e){var i={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return function(t,e,i){var n=e.getComponent("tooltip"),a=e.getComponent("axisPointer"),r=a.get("link",!0)||[],o=[];iw(i.getCoordinateSystems(),function(i){function s(n,s,l){var c=l.model.getModel("axisPointer",a),d=c.get("show");if(d&&("auto"!==d||n||Tn(c))){null==s&&(s=c.get("triggerTooltip"));var f=(c=n?function(t,e,i,n,a,r){var o=e.getModel("axisPointer"),s={};iw(["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],function(t){s[t]=du.clone(o.get(t))}),s.snap="category"!==t.type&&!!r,"cross"===o.get("type")&&(s.type="line");var l=s.label||(s.label={});if(null==l.show&&(l.show=!1),"cross"===a){var u=o.get("label.show");if(l.show=null==u||u,!r){var h=s.lineStyle=o.get("crossStyle");h&&du.defaults(l,h.textStyle)}}return t.model.getModel("axisPointer",new Vp(s,i,n))}(l,h,a,e,n,s):c).get("snap"),p=Dn(l.model),g=s||f||"category"===l.type,m=t.axesInfo[p]={key:p,axis:l,coordSys:i,axisPointerModel:c,triggerTooltip:s,involveSeries:g,snap:f,useHandle:Tn(c),seriesModels:[]};u[p]=m,t.seriesInvolved|=g;var v=function(t,e){for(var i=e.model,n=e.dim,a=0;al[1]&&l.reverse(),(null==o||o>l[1])&&(o=l[1]),ot&&(t=e),t}}),P_.getDefaultLabel),pw={setLabel:function(t,e,i,n,a,r,o){var s=i.getModel("label"),l=i.getModel("emphasis.label");Dp.setLabelStyle(t,e,s,l,{labelFetcher:a,labelDataIndex:r,defaultText:fw(a.getData(),r),isRectText:!0,autoColor:n}),Pn(t),Pn(e)}},gw=Xc([["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["stroke","barBorderColor"],["lineWidth","barBorderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),mw={getBarItemStyle:function(t){var e=gw(this,t);if(this.getBorderLineDash){var i=this.getBorderLineDash();i&&(e.lineDash=i)}return e}},vw=pw.setLabel,yw=["itemStyle","barBorderWidth"];du.extend(Vp.prototype,mw);C_.extendChartView({type:"bar",render:function(t,e,i){this._updateDrawMode(t);var n=t.get("coordinateSystem");return"cartesian2d"!==n&&"polar"!==n||(this._isLargeDraw?this._renderLarge(t,e,i):this._renderNormal(t,e,i)),this.group},incrementalPrepareRender:function(t,e,i){this._clear(),this._updateDrawMode(t)},incrementalRender:function(t,e,i,n){this._incrementalRenderLarge(t,e)},_updateDrawMode:function(t){var e=t.pipelineContext.large;(null==this._isLargeDraw||e^this._isLargeDraw)&&(this._isLargeDraw=e,this._clear())},_renderNormal:function(t,e,i){var n,a=this.group,r=t.getData(),o=this._data,s=t.coordinateSystem,l=s.getBaseAxis();"cartesian2d"===s.type?n=l.isHorizontal():"polar"===s.type&&(n="angle"===l.dim);var u=t.isAnimationEnabled()?t:null;r.diff(o).add(function(e){if(r.hasValue(e)){var i=r.getItemModel(e),o=_w[s.type](r,e,i),l=xw[s.type](r,e,i,o,n,u);r.setItemGraphicEl(e,l),a.add(l),Rn(l,r,e,i,o,t,n,"polar"===s.type)}}).update(function(e,i){var l=o.getItemGraphicEl(i);if(r.hasValue(e)){var h=r.getItemModel(e),c=_w[s.type](r,e,h);l?Dp.updateProps(l,{shape:c},u,e):l=xw[s.type](r,e,h,c,n,u,!0),r.setItemGraphicEl(e,l),a.add(l),Rn(l,r,e,h,c,t,n,"polar"===s.type)}else a.remove(l)}).remove(function(t){var e=o.getItemGraphicEl(t);"cartesian2d"===s.type?e&&kn(t,u,e):e&&On(t,u,e)}).execute(),this._data=r},_renderLarge:function(t,e,i){this._clear(),Nn(t,this.group)},_incrementalRenderLarge:function(t,e){Nn(e,this.group,!0)},dispose:du.noop,remove:function(t){this._clear(t)},_clear:function(t){var e=this.group,i=this._data;t&&t.get("animation")&&i&&!this._isLargeDraw?i.eachItemGraphicEl(function(e){"sector"===e.type?On(e.dataIndex,t,e):kn(e.dataIndex,t,e)}):e.removeAll(),this._data=null}});var xw={cartesian2d:function(t,e,i,n,a,r,o){var s=new Dp.Rect({shape:du.extend({},n)});if(r){var l=s.shape,u=a?"height":"width",h={};l[u]=0,h[u]=n[u],Dp[o?"updateProps":"initProps"](s,{shape:h},r,e)}return s},polar:function(t,e,i,n,a,r,o){var s=n.startAngle0?1:-1,o=n.height>0?1:-1;return{x:n.x+r*a/2,y:n.y+o*a/2,width:n.width-r*a,height:n.height-o*a}},polar:function(t,e,i){var n=t.getItemLayout(e);return{cx:n.cx,cy:n.cy,r0:n.r0,r:n.r,startAngle:n.startAngle,endAngle:n.endAngle}}},bw=af.extend({type:"largeBar",shape:{points:[]},buildPath:function(t,e){for(var i=e.points,n=this.__startPoint,a=this.__valueIdx,r=0;r0&&"scale"!==u){var d=a.getItemLayout(0),f=Math.max(i.getWidth(),i.getHeight())/2,p=du.bind(o.removeClipPath,o);o.setClipPath(this._createClipPath(d.cx,d.cy,f,d.startAngle,d.clockwise,p,t))}this._data=a}},dispose:function(){},_createClipPath:function(t,e,i,n,a,r,o){var s=new Dp.Sector({shape:{cx:t,cy:e,r0:0,r:i,startAngle:n,endAngle:n,clockwise:a}});return Dp.initProps(s,{shape:{endAngle:n+(a?1:-1)*Math.PI*2}},o,r),s},containPoint:function(t,e){var i=e.getData().getItemLayout(0);if(i){var n=t[0]-i.cx,a=t[1]-i.cy,r=Math.sqrt(n*n+a*a);return r<=i.r&&r>=i.r0}}});var kw=function(t,e){du.each(e,function(e){e.update="updateView",C_.registerAction(e,function(i,n){var a={};return n.eachComponent({mainType:"series",subType:t,query:i},function(t){t[e.method]&&t[e.method](i.name,i.dataIndex);var n=t.getData();n.each(function(e){var i=n.getName(e);a[i]=t.isSelected(i)||!1})}),{name:i.name,selected:a}})})},Ow=du.createHashMap,Rw=function(t){return{getTargetSeries:function(e){var i={},n=Ow();return e.eachSeriesByType(t,function(t){t.__paletteScope=i,n.set(t.uid,t)}),n},reset:function(t,e){var i=t.getRawData(),n={},a=t.getData();a.each(function(t){var e=a.getRawIndex(t);n[e]=t}),i.each(function(e){var r=n[e],o=null!=r&&a.getItemVisual(r,"color",!0);if(o)i.setItemVisual(e,"color",o);else{var s=i.getItemModel(e).get("itemStyle.color")||t.getColorFromPalette(i.getName(e)||e+"",t.__paletteScope,i.count());i.setItemVisual(e,"color",s),null!=r&&a.setItemVisual(r,"color",s)}})}}},Nw=function(t,e,i,n){var a,r,o=t.getData(),s=[],l=!1;o.each(function(i){var n,u,h,c,d=o.getItemLayout(i),f=o.getItemModel(i),p=f.getModel("label"),g=p.get("position")||f.get("emphasis.label.position"),m=f.getModel("labelLine"),v=m.get("length"),y=m.get("length2"),x=(d.startAngle+d.endAngle)/2,_=Math.cos(x),b=Math.sin(x);a=d.cx,r=d.cy;var w="inside"===g||"inner"===g;if("center"===g)n=d.cx,u=d.cy,c="center";else{var S=(w?(d.r+d.r0)/2*_:d.r*_)+a,M=(w?(d.r+d.r0)/2*b:d.r*b)+r;if(n=S+3*_,u=M+3*b,!w){var I=S+_*(v+e-d.r),A=M+b*(v+e-d.r),T=I+(_<0?-1:1)*y,D=A;n=T+(_<0?-5:5),u=D,h=[[S,M],[I,A],[T,D]]}c=w?"center":_>0?"left":"right"}var C=p.getFont(),L=p.get("rotate")?_<0?-x+Math.PI:-x:0,P=t.getFormattedLabel(i,"normal")||o.getName(i),k=jh.getBoundingRect(P,C,c,"top");l=!!L,d.label={x:n,y:u,position:g,height:k.height,len:v,len2:y,linePoints:h,textAlign:c,verticalAlign:"middle",rotation:L,inside:w},w||s.push(d.label)}),!l&&t.get("avoidLabelOverlap")&&function(t,e,i,n,a,r){for(var o=[],s=[],l=0;l=0;s--){var l=2*s,u=n[l]-r/2,h=n[l+1]-o/2;if(t>=u&&e>=h&&t<=u+r&&e<=h+o)return s}return-1}}),Uw=Bn.prototype;Uw.isPersistent=function(){return!this._incremental},Uw.updateData=function(t){this.group.removeAll();var e=new Ww({rectHover:!0,cursor:"default"});e.setShape({points:t.getLayout("symbolPoints")}),this._setCommon(e,t),this.group.add(e),this._incremental=null},Uw.updateLayout=function(t){if(!this._incremental){var e=t.getLayout("symbolPoints");this.group.eachChild(function(t){if(null!=t.startIndex){var i=2*(t.endIndex-t.startIndex),n=4*t.startIndex*2;e=new Float32Array(e.buffer,n,i)}t.setShape("points",e)})}},Uw.incrementalPrepareUpdate=function(t){this.group.removeAll(),this._clearIncremental(),t.count()>2e6?(this._incremental||(this._incremental=new op({silent:!0})),this.group.add(this._incremental)):this._incremental=null},Uw.incrementalUpdate=function(t,e){var i;this._incremental?(i=new Ww,this._incremental.addDisplayable(i,!0)):((i=new Ww({rectHover:!0,cursor:"default",startIndex:t.start,endIndex:t.end})).incremental=!0,this.group.add(i)),i.setShape({points:e.getLayout("symbolPoints")}),this._setCommon(i,e,!!this._incremental)},Uw._setCommon=function(t,e,i){var n=e.hostModel,a=e.getVisual("symbolSize");t.setShape("size",a instanceof Array?a:[a,a]),t.symbolProxy=Fw(e.getVisual("symbol"),0,0,0,0),t.setColor=t.symbolProxy.setColor;var r=t.shape.size[0]<4;t.useStyle(n.getModel("itemStyle").getItemStyle(r?["color","shadowBlur","shadowColor"]:["color"]));var o=e.getVisual("color");o&&t.setColor(o),i||(t.seriesIndex=n.seriesIndex,t.on("mousemove",function(e){t.dataIndex=null;var i=t.findDataIndex(e.offsetX,e.offsetY);i>=0&&(t.dataIndex=i+(t.startIndex||0))}))},Uw.remove=function(){this._clearIncremental(),this._incremental=null,this.group.removeAll()},Uw._clearIncremental=function(){var t=this._incremental;t&&t.clearDisplaybles()};var Zw=Bn;C_.extendChartView({type:"scatter",render:function(t,e,i){var n=t.getData();this._updateSymbolDraw(n,t).updateData(n),this._finished=!0},incrementalPrepareRender:function(t,e,i){var n=t.getData();this._updateSymbolDraw(n,t).incrementalPrepareUpdate(n),this._finished=!1},incrementalRender:function(t,e,i){this._symbolDraw.incrementalUpdate(t,e.getData()),this._finished=t.end===e.getData().count()},updateTransform:function(t,e,i){var n=t.getData();if(this.group.dirty(),!this._finished||n.count()>1e4||!this._symbolDraw.isPersistent())return{update:!0};var a=fb().reset(t);a.progress&&a.progress({start:0,end:n.count()},n),this._symbolDraw.updateLayout(n)},_updateSymbolDraw:function(t,e){var i=this._symbolDraw,n=e.pipelineContext.large;return i&&n===this._isLargeDraw||(i&&i.remove(),i=this._symbolDraw=n?new Zw:new U_,this._isLargeDraw=n,this.group.removeAll()),this.group.add(i.group),i},remove:function(t,e){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},dispose:function(){}}),C_.registerVisual(hb("scatter","circle")),C_.registerLayout(fb("scatter")),du.inherits(Gn,c_);var jw=Gn,Yw=kx.getScaleExtent,Xw=kx.niceScaleExtent;Hn.prototype.getIndicatorAxes=function(){return this._indicatorAxes},Hn.prototype.dataToPoint=function(t,e){var i=this._indicatorAxes[e];return this.coordToPoint(i.dataToCoord(t),e)},Hn.prototype.coordToPoint=function(t,e){var i=this._indicatorAxes[e].angle;return[this.cx+t*Math.cos(i),this.cy-t*Math.sin(i)]},Hn.prototype.pointToData=function(t){var e=t[0]-this.cx,i=t[1]-this.cy,n=Math.sqrt(e*e+i*i);e/=n,i/=n;for(var a,r=Math.atan2(-i,e),o=1/0,s=-1,l=0;ln[0]&&isFinite(c)&&isFinite(n[0]))}else{o.getTicks().length-1>r&&(u=i(u));var d=Math.round((n[0]+n[1])/2/u)*u,f=Math.round(r/2);o.setExtent(Up.round(d-f*u),Up.round(d+(r-f)*u)),o.setInterval(u)}})},Hn.dimensions=[],Hn.create=function(t,e){var i=[];return t.eachComponent("radar",function(n){var a=new Hn(n,t,e);i.push(a),n.coordinateSystem=a}),t.eachSeriesByType("radar",function(t){"radar"===t.get("coordinateSystem")&&(t.coordinateSystem=i[t.get("radarIndex")||0])}),i},vm.register("radar",Hn);var qw=Mb.valueAxis,$w=(C_.extendComponentModel({type:"radar",optionUpdated:function(){var t=this.get("boundaryGap"),e=this.get("splitNumber"),i=this.get("scale"),n=this.get("axisLine"),a=this.get("axisTick"),r=this.get("axisLabel"),o=this.get("name"),s=this.get("name.show"),l=this.get("name.formatter"),u=this.get("nameGap"),h=this.get("triggerEvent"),c=du.map(this.get("indicator")||[],function(c){null!=c.max&&c.max>0&&!c.min?c.min=0:null!=c.min&&c.min<0&&!c.max&&(c.max=0);var d=o;if(null!=c.color&&(d=du.defaults({color:c.color},o)),c=du.merge(du.clone(c),{boundaryGap:t,splitNumber:e,scale:i,axisLine:n,axisTick:a,axisLabel:r,name:c.text,nameLocation:"end",nameGap:u,nameTextStyle:d,triggerEvent:h},!1),s||(c.name=""),"string"==typeof l){var f=c.name;c.name=l.replace("{value}",null!=f?f:"")}else"function"==typeof l&&(c.name=l(c.name,c));var p=du.extend(new Vp(c,null,this.ecModel),Ox);return p.mainType="radar",p.componentIndex=this.componentIndex,p},this);this.getIndicatorModels=function(){return c}},defaultOption:{zlevel:0,z:0,center:["50%","50%"],radius:"75%",startAngle:90,name:{show:!0},boundaryGap:[0,0],splitNumber:5,nameGap:15,scale:!1,shape:"polygon",axisLine:du.merge({lineStyle:{color:"#bbb"}},qw.axisLine),axisLabel:Fn(qw.axisLabel,!1),axisTick:Fn(qw.axisTick,!1),splitLine:Fn(qw.splitLine,!0),splitArea:Fn(qw.splitArea,!0),indicator:[]}}),["axisLine","axisTickLabel","axisName"]),Kw=(C_.extendComponentView({type:"radar",render:function(t,e,i){this.group.removeAll(),this._buildAxes(t),this._buildSplitLineAndArea(t)},_buildAxes:function(t){var e=t.coordinateSystem,i=e.getIndicatorAxes(),n=du.map(i,function(t){return new ew(t.model,{position:[e.cx,e.cy],rotation:t.angle,labelDirection:-1,tickDirection:-1,nameDirection:1})});du.each(n,function(t){du.each($w,t.add,t),this.group.add(t.getGroup())},this)},_buildSplitLineAndArea:function(t){function e(t,e,i){var n=i%e.length;return t[n]=t[n]||[],n}var i=t.coordinateSystem,n=i.getIndicatorAxes();if(n.length){var a=t.get("shape"),r=t.getModel("splitLine"),o=t.getModel("splitArea"),s=r.getModel("lineStyle"),l=o.getModel("areaStyle"),u=r.get("show"),h=o.get("show"),c=s.get("color"),d=l.get("color");c=du.isArray(c)?c:[c],d=du.isArray(d)?d:[d];var f=[],p=[];if("circle"===a)for(var g=n[0].getTicksCoords(),m=i.cx,v=i.cy,y=0;y"+du.map(i,function(i,n){var a=e.get(e.mapDimension(i.dim),t);return Kw(i.name+" : "+a)}).join("
")},defaultOption:{zlevel:0,z:2,coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:"solid"},label:{position:"top"},symbol:"emptyCircle",symbolSize:4}}),Qw=(C_.extendChartView({type:"radar",render:function(t,e,i){function n(e,i,n,a,r,o){n.removeAll();for(var s=0;s"+pS(n+" : "+i)},getTooltipPosition:function(t){if(null!=t){var e=this.getData().getName(t),i=this.coordinateSystem,n=i.getRegion(e);return n&&i.dataToPoint(n.center)}},setZoom:function(t){this.option.zoom=t},setCenter:function(t){this.option.center=t},defaultOption:{zlevel:0,z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:.75,showLegendSymbol:!0,dataRangeHoverLink:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}}}});du.mixin(vS,Tw);var yS="\0_ec_interaction_mutex";C_.registerAction({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},function(){});var xS={take:function(t,e,i){$n(t)[e]=i},release:function(t,e,i){var n=$n(t);n[e]===i&&(n[e]=null)},isTaken:function(t,e){return!!$n(t)[e]}};du.mixin(Kn,yu);var _S=Kn,bS={updateViewOnPan:function(t,e,i){var n=t.target,a=n.position;a[0]+=e,a[1]+=i,n.dirty()},updateViewOnZoom:function(t,e,i,n){var a=t.target,r=t.zoomLimit,o=a.position,s=a.scale,l=t.zoom=t.zoom||1;if(l*=e,r){var u=r.min||0,h=r.max||1/0;l=Math.max(Math.min(h,l),u)}var c=l/t.zoom;t.zoom=l,o[0]-=(i-o[0])*(c-1),o[1]-=(n-o[1])*(c-1),s[0]*=c,s[1]*=c,a.dirty()}},wS={axisPointer:1,tooltip:1,brush:1},SS={onIrrelevantElement:function(t,e,i){var n=e.getComponentByElement(t.topTarget),a=n&&n.coordinateSystem;return n&&n!==i&&!wS[n.mainType]&&a&&a.model!==i}},MS=SS.onIrrelevantElement;ia.prototype={constructor:ia,draw:function(t,e,i,n,a){var r="geo"===t.mainType,o=t.getData&&t.getData();r&&e.eachComponent({mainType:"series",subType:"map"},function(e){o||e.getHostGeoModel()!==t||(o=e.getData())});var s=t.coordinateSystem,l=this.group,u=s.scale,h={position:s.position,scale:u};!l.childAt(0)||a?l.attr(h):Dp.updateProps(l,h,t),l.removeAll();var c=["itemStyle"],d=["emphasis","itemStyle"],f=["label"],p=["emphasis","label"],g=du.createHashMap();du.each(s.regions,function(e){var i=g.get(e.name)||g.set(e.name,new Dp.Group),n=new Dp.CompoundPath({shape:{paths:[]}});i.add(n);var a,s=(D=t.getRegionModel(e.name)||t).getModel(c),h=D.getModel(d),m=ta(s),v=ta(h),y=D.getModel(f),x=D.getModel(p);if(o){a=o.indexOfName(e.name);var _=o.getItemVisual(a,"color",!0);_&&(m.fill=_)}du.each(e.geometries,function(t){if("polygon"===t.type){n.shape.paths.push(new Dp.Polygon({shape:{points:t.exterior}}));for(var e=0;e<(t.interiors?t.interiors.length:0);e++)n.shape.paths.push(new Dp.Polygon({shape:{points:t.interiors[e]}}))}}),n.setStyle(m),n.style.strokeNoScale=!0,n.culling=!0;var b=y.get("show"),w=x.get("show"),S=o&&isNaN(o.get(o.mapDimension("value"),a)),M=o&&o.getItemLayout(a);if(r||S&&(b||w)||M&&M.showLabel){var I,A=r?e.name:a;(!o||a>=0)&&(I=t);var T=new Dp.Text({position:e.center.slice(),scale:[1/u[0],1/u[1]],z2:10,silent:!0});Dp.setLabelStyle(T.style,T.hoverStyle={},y,x,{labelFetcher:I,labelDataIndex:A,defaultText:e.name,useInsideStyle:!1},{textAlign:"center",textVerticalAlign:"middle"}),i.add(T)}if(o)o.setItemGraphicEl(a,i);else{var D=t.getRegionModel(e.name);n.eventData={componentType:"geo",geoIndex:t.componentIndex,name:e.name,region:D&&D.option||{}}}(i.__regions||(i.__regions=[])).push(e),Dp.setHoverStyle(i,v,{hoverSilentOnTouch:!!t.get("selectedMode")}),l.add(i)}),this._updateController(t,e,i),function(t,e,i,n,a){i.off("click"),i.off("mousedown"),e.get("selectedMode")&&(i.on("mousedown",function(){t._mouseDownFlag=!0}),i.on("click",function(r){if(t._mouseDownFlag){t._mouseDownFlag=!1;for(var o=r.target;!o.__regions;)o=o.parent;if(o){var s={type:("geo"===e.mainType?"geo":"map")+"ToggleSelect",batch:du.map(o.__regions,function(t){return{name:t.name,from:a.uid}})};s[e.mainType+"Id"]=e.id,n.dispatchAction(s),ea(e,i)}}}))}(this,t,l,i,n),ea(t,l)},remove:function(){this.group.removeAll(),this._controller.dispose(),this._controllerHost={}},_updateController:function(t,e,i){function n(){var e={type:"geoRoam",componentType:s};return e[s+"Id"]=t.id,e}var a=t.coordinateSystem,r=this._controller,o=this._controllerHost;o.zoomLimit=t.get("scaleLimit"),o.zoom=a.getZoom(),r.enable(t.get("roam")||!1);var s=t.mainType;r.off("pan").on("pan",function(t,e){this._mouseDownFlag=!1,bS.updateViewOnPan(o,t,e),i.dispatchAction(du.extend(n(),{dx:t,dy:e}))},this),r.off("zoom").on("zoom",function(t,e,a){if(this._mouseDownFlag=!1,bS.updateViewOnZoom(o,t,e,a),i.dispatchAction(du.extend(n(),{zoom:t,originX:e,originY:a})),this._updateGroup){var r=this.group,s=r.scale;r.traverse(function(t){"text"===t.type&&t.attr("scale",[1/s[0],1/s[1]])})}},this),r.setPointerChecker(function(e,n,r){return a.getViewRectAfterRoam().contain(n,r)&&!MS(e,i,t)})}};var IS=ia,AS=(C_.extendChartView({type:"map",render:function(t,e,i,n){if(!n||"mapToggleSelect"!==n.type||n.from!==this.uid){var a=this.group;if(a.removeAll(),!t.getHostGeoModel()){if(n&&"geoRoam"===n.type&&"series"===n.componentType&&n.seriesId===t.id){(r=this._mapDraw)&&a.add(r.group)}else if(t.needsDrawMap){var r=this._mapDraw||new IS(i,!0);a.add(r.group),r.draw(t,e,i,this,n),this._mapDraw=r}else this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;t.get("showLegendSymbol")&&e.getComponent("legend")&&this._renderSymbols(t,e,i)}}},remove:function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null,this.group.removeAll()},dispose:function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},_renderSymbols:function(t,e,i){var n=t.originalData,a=this.group;n.each(n.mapDimension("value"),function(e,i){if(!isNaN(e)){var r=n.getItemLayout(i);if(r&&r.point){var o=r.point,s=r.offset,l=new Dp.Circle({style:{fill:t.getData().getVisual("color")},shape:{cx:o[0]+9*s,cy:o[1],r:3},silent:!0,z2:s?8:10});if(!s){var u=t.mainSeries.getData(),h=n.getName(i),c=u.indexOfName(h),d=n.getItemModel(i),f=d.getModel("label"),p=d.getModel("emphasis.label"),g=u.getItemGraphicEl(c),m=du.retrieve2(t.getFormattedLabel(i,"normal"),h),v=du.retrieve2(t.getFormattedLabel(i,"emphasis"),m),y=function(){var t=Dp.setTextStyle({},p,{text:p.get("show")?v:null},{isRectText:!0,useInsideStyle:!1},!0);l.style.extendFrom(t),l.__mapOriginalZ2=l.z2,l.z2+=1},x=function(){Dp.setTextStyle(l.style,f,{text:f.get("show")?m:null,textPosition:f.getShallow("position")||"bottom"},{isRectText:!0,useInsideStyle:!1}),null!=l.__mapOriginalZ2&&(l.z2=l.__mapOriginalZ2,l.__mapOriginalZ2=null)};g.on("mouseover",y).on("mouseout",x).on("emphasis",y).on("normal",x),x()}a.add(l)}}})}}),{updateCenterAndZoom:function(t,e,i){var n=t.getZoom(),a=t.getCenter(),r=e.zoom,o=t.dataToPoint(a);null!=e.dx&&null!=e.dy&&(o[0]-=e.dx,o[1]-=e.dy,a=t.pointToData(o),t.setCenter(a));if(null!=r){if(i){var s=i.min||0,l=i.max||1/0;r=Math.max(Math.min(n*r,l),s)/n}t.scale[0]*=r,t.scale[1]*=r;var u=t.position,h=(e.originX-u[0])*(r-1),c=(e.originY-u[1])*(r-1);u[0]-=h,u[1]-=c,t.updateTransform(),a=t.pointToData(o),t.setCenter(a),t.setZoom(r*n)}return{center:t.getCenter(),zoom:t.getZoom()}}}),TS=AS.updateCenterAndZoom;C_.registerAction({type:"geoRoam",event:"geoRoam",update:"updateTransform"},function(t,e){var i=t.componentType||"series";e.eachComponent({mainType:i,query:t},function(e){var n=e.coordinateSystem;if("geo"===n.type){var a=TS(n,t,e.get("scaleLimit"));e.setCenter&&e.setCenter(a.center),e.setZoom&&e.setZoom(a.zoom),"series"===i&&du.each(e.seriesGroup,function(t){t.setCenter(a.center),t.setZoom(a.zoom)})}})});var DS=function(t){var e={};t.eachSeriesByType("map",function(i){var n=i.getMapType();if(!i.getHostGeoModel()&&!e[n]){var a={};du.each(i.seriesGroup,function(e){var i=e.coordinateSystem,n=e.originalData;e.get("showLegendSymbol")&&t.getComponent("legend")&&n.each(n.mapDimension("value"),function(t,e){var r=n.getName(e),o=i.getRegion(r);if(o&&!isNaN(t)){var s=a[r]||0,l=i.dataToPoint(o.center);a[r]=s+1,n.setItemLayout(e,{point:l,offset:s})}})});var r=i.getData();r.each(function(t){var e=r.getName(t),i=r.getItemLayout(t)||{};i.showLabel=!a[e],r.setItemLayout(t,i)}),e[n]=!0}})},CS=function(t){t.eachSeriesByType("map",function(t){var e=t.get("color"),i=t.getModel("itemStyle"),n=i.get("areaColor"),a=i.get("color")||e[t.seriesIndex%e.length];t.getData().setVisual({areaColor:n,color:a})})},LS=function(t){var e={};t.eachSeriesByType("map",function(t){var i=t.getHostGeoModel(),n=i?"o"+i.id:"i"+t.getMapType();(e[n]=e[n]||[]).push(t)}),du.each(e,function(t,e){for(var i=function(t,e){var i={};return du.each(t,function(t){t.each(t.mapDimension("value"),function(e,n){var a="ec-"+t.getName(n);i[a]=i[a]||[],isNaN(e)||i[a].push(e)})}),t[0].map(t[0].mapDimension("value"),function(n,a){for(var r="ec-"+t[0].getName(a),o=0,s=1/0,l=-1/0,u=i[r].length,h=0;he&&(e=n.height)}this.height=e+1},getNodeById:function(t){if(this.getId()===t)return this;for(var e=0,i=this.children,n=i.length;e=0&&this.hostTree.data.setItemLayout(this.dataIndex,t,e)},getLayout:function(){return this.hostTree.data.getItemLayout(this.dataIndex)},getModel:function(t){if(!(this.dataIndex<0)){var e,i=this.hostTree,n=i.data.getItemModel(this.dataIndex),a=this.getLevelModel();return a||0!==this.children.length&&(0===this.children.length||!1!==this.isExpand)||(e=this.getLeavesModel()),n.getModel(t,(a||e||i.hostModel).getModel(t))}},getLevelModel:function(){return(this.hostTree.levelModels||[])[this.depth]},getLeavesModel:function(){return this.hostTree.leavesModel},setVisual:function(t,e){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,t,e)},getVisual:function(t,e){return this.hostTree.data.getItemVisual(this.dataIndex,t,e)},getRawIndex:function(){return this.hostTree.data.getRawIndex(this.dataIndex)},getId:function(){return this.hostTree.data.getId(this.dataIndex)},isAncestorOf:function(t){for(var e=t.parentNode;e;){if(e===this)return!0;e=e.parentNode}return!1},isDescendantOf:function(t){return t!==this&&t.isAncestorOf(this)}},ra.prototype={constructor:ra,type:"tree",eachNode:function(t,e,i){this.root.eachNode(t,e,i)},getNodeByDataIndex:function(t){var e=this.data.getRawIndex(t);return this._nodes[e]},getNodeByName:function(t){return this.root.getNodeByName(t)},update:function(){for(var t=this.data,e=this._nodes,i=0,n=e.length;ir&&(r=t.depth)});var o=t.expandAndCollapse&&t.initialTreeDepth>=0?t.initialTreeDepth:r;return a.root.eachNode("preorder",function(t){var e=t.hostTree.data.getRawDataItem(t.dataIndex);t.isExpand=e&&null!=e.collapsed?!e.collapsed:t.depth<=o}),a.data},getOrient:function(){var t=this.get("orient");return"horizontal"===t?t="LR":"vertical"===t&&(t="TB"),t},formatTooltip:function(t){for(var e=this.getData().tree,i=e.root.children[0],n=e.getNodeByDataIndex(t),a=n.getValue(),r=n.name;n&&n!==i;)r=n.parentNode.name+"."+r,n=n.parentNode;return VS(r+(isNaN(a)||null==a?"":" : "+a))},defaultOption:{zlevel:0,z:2,left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:"#ccc",width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderColor:"#c23531",borderWidth:1.5},label:{show:!0,color:"#555"},leaves:{label:{show:!0}},animationEasing:"linear",animationDuration:700,animationDurationUpdate:1e3}}),{init:function(t){t.hierNode={defaultAncestor:null,ancestor:t,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};for(var e,i,n=[t];e=n.pop();)if(i=e.children,e.isExpand&&i.length)for(var a=i.length-1;a>=0;a--){var r=i[a];r.hierNode={defaultAncestor:null,ancestor:r,prelim:0,modifier:0,change:0,shift:0,i:a,thread:null},n.push(r)}},firstWalk:function(t,e){var i=t.isExpand?t.children:[],n=t.parentNode.children,a=t.hierNode.i?n[t.hierNode.i-1]:null;if(i.length){!function(t){for(var e=t.children,i=e.length,n=0,a=0;--i>=0;){var r=e[i];r.hierNode.prelim+=n,r.hierNode.modifier+=n,a+=r.hierNode.change,n+=r.hierNode.shift+a}}(t);var r=(i[0].hierNode.prelim+i[i.length-1].hierNode.prelim)/2;a?(t.hierNode.prelim=a.hierNode.prelim+e(t,a),t.hierNode.modifier=t.hierNode.prelim-r):t.hierNode.prelim=r}else a&&(t.hierNode.prelim=a.hierNode.prelim+e(t,a));t.parentNode.hierNode.defaultAncestor=function(t,e,i,n){if(e){for(var a=t,r=t,o=r.parentNode.children[0],s=e,l=a.hierNode.modifier,u=r.hierNode.modifier,h=o.hierNode.modifier,c=s.hierNode.modifier;s=oa(s),r=sa(r),s&&r;){a=oa(a),o=sa(o),a.hierNode.ancestor=t;var d=s.hierNode.prelim+c-r.hierNode.prelim-u+n(s,r);d>0&&(function(t,e,i){var n=i/(e.hierNode.i-t.hierNode.i);e.hierNode.change-=n,e.hierNode.shift+=i,e.hierNode.modifier+=i,e.hierNode.prelim+=i,t.hierNode.change+=n}(function(t,e,i){return t.hierNode.ancestor.parentNode===e.parentNode?t.hierNode.ancestor:i}(s,t,i),t,d),u+=d,l+=d),c+=s.hierNode.modifier,u+=r.hierNode.modifier,l+=a.hierNode.modifier,h+=o.hierNode.modifier}s&&!oa(a)&&(a.hierNode.thread=s,a.hierNode.modifier+=c-l),r&&!sa(o)&&(o.hierNode.thread=r,o.hierNode.modifier+=u-h,i=t)}return i}(t,a,t.parentNode.hierNode.defaultAncestor||n[0],e)},secondWalk:function(t){var e=t.hierNode.prelim+t.parentNode.hierNode.modifier;t.setLayout({x:e},!0),t.hierNode.modifier+=t.parentNode.hierNode.modifier},separation:function(t){return arguments.length?t:function(t,e){return t.parentNode===e.parentNode?1:2}},radialCoordinate:function(t,e){var i={};return t-=Math.PI/2,i.x=e*Math.cos(t),i.y=e*Math.sin(t),i},getViewRect:function(t,e){return ng.getLayoutRect(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}}),GS=BS.radialCoordinate;C_.extendChartView({type:"tree",init:function(t,e){this._oldTree,this._mainGroup=new Dp.Group,this.group.add(this._mainGroup)},render:function(t,e,i,n){var a=t.getData(),r=t.layoutInfo,o=this._mainGroup,s=t.get("layout");"radial"===s?o.attr("position",[r.x+r.width/2,r.y+r.height/2]):o.attr("position",[r.x,r.y]);var l=this._data,u={expandAndCollapse:t.get("expandAndCollapse"),layout:s,orient:t.getOrient(),curvature:t.get("lineStyle.curveness"),symbolRotate:t.get("symbolRotate"),symbolOffset:t.get("symbolOffset"),hoverAnimation:t.get("hoverAnimation"),useNameLabel:!0,fadeIn:!0};a.diff(l).add(function(e){la(a,e)&&ha(a,e,null,o,t,u)}).update(function(e,i){var n=l.getItemGraphicEl(i);la(a,e)?ha(a,e,n,o,t,u):n&&ca(l,i,n,o,t,u)}).remove(function(e){var i=l.getItemGraphicEl(e);i&&ca(l,e,i,o,t,u)}).execute(),!0===u.expandAndCollapse&&a.eachItemGraphicEl(function(e,n){e.off("click").on("click",function(){i.dispatchAction({type:"treeExpandAndCollapse",seriesId:t.id,dataIndex:n})})}),this._data=a},dispose:function(){},remove:function(){this._mainGroup.removeAll(),this._data=null}});C_.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},function(t,e){e.eachComponent({mainType:"series",subType:"tree",query:t},function(e){var i=t.dataIndex,n=e.getData().tree.getNodeByDataIndex(i);n.isExpand=!n.isExpand})});var HS={eachAfter:function(t,e,i){for(var n,a=[t],r=[];n=a.pop();)if(r.push(n),n.isExpand){var o=n.children;if(o.length)for(var s=0;s=0;r--)n.push(a[r])}}},FS=HS.eachAfter,WS=HS.eachBefore,US=BS.init,ZS=BS.firstWalk,jS=BS.secondWalk,YS=BS.separation,XS=BS.radialCoordinate,qS=BS.getViewRect,$S=function(t,e){t.eachSeriesByType("tree",function(t){!function(t,e){var i=qS(t,e);t.layoutInfo=i;var n=t.get("layout"),a=0,r=0,o=null;"radial"===n?(a=2*Math.PI,r=Math.min(i.height,i.width)/2,o=YS(function(t,e){return(t.parentNode===e.parentNode?1:2)/t.depth})):(a=i.width,r=i.height,o=YS());var s=t.getData().tree.root,l=s.children[0];if(l){US(s),FS(l,ZS,o),s.hierNode.modifier=-l.hierNode.prelim,WS(l,jS);var u=l,h=l,c=l;WS(l,function(t){var e=t.getLayout().x;eh.getLayout().x&&(h=t),t.depth>c.depth&&(c=t)});var d=u===h?1:o(u,h)/2,f=d-u.getLayout().x,p=0,g=0,m=0,v=0;if("radial"===n)p=a/(h.getLayout().x+d+f),g=r/(c.depth-1||1),WS(l,function(t){m=(t.getLayout().x+f)*p,v=(t.depth-1)*g;var e=XS(m,v);t.setLayout({x:e.x,y:e.y,rawX:m,rawY:v},!0)});else{var y=t.getOrient();"RL"===y||"LR"===y?(g=r/(h.getLayout().x+d+f),p=a/(c.depth-1||1),WS(l,function(t){v=(t.getLayout().x+f)*g,m="LR"===y?(t.depth-1)*p:a-(t.depth-1)*p,t.setLayout({x:m,y:v},!0)})):"TB"!==y&&"BT"!==y||(p=a/(h.getLayout().x+d+f),g=r/(c.depth-1||1),WS(l,function(t){m=(t.getLayout().x+f)*p,v="TB"===y?(t.depth-1)*g:r-(t.depth-1)*g,t.setLayout({x:m,y:v},!0)}))}}}(t,e)})};C_.registerVisual(hb("tree","circle")),C_.registerLayout($S);var KS={retrieveTargetInfo:function(t,e,i){if(t&&du.indexOf(e,t.type)>=0){var n=i.getData().tree.root,a=t.targetNode;if(a&&n.contains(a))return{node:a};var r=t.targetNodeId;if(null!=r&&(a=n.getNodeById(r)))return{node:a}}},getPathToRoot:fa,aboveViewRoot:function(t,e){var i=fa(t);return du.indexOf(i,e)>=0},wrapTreePathInfo:function(t,e){for(var i=[];t;){var n=t.dataIndex;i.push({name:t.name,dataIndex:n,value:e.getRawValue(n)}),t=t.parentNode}return i.reverse(),i}},JS=qp.encodeHTML,QS=qp.addCommas,tM=KS.wrapTreePathInfo,eM=(xv.extend({type:"series.treemap",layoutMode:"box",dependencies:["grid","polar"],_viewRoot:null,defaultOption:{progressive:0,hoverLayerThreshold:1/0,left:"center",top:"middle",right:null,bottom:null,width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"▶",zoomToNodeRatio:.1024,roam:!0,nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",top:"bottom",emptyItemWidth:25,itemStyle:{color:"rgba(0,0,0,0.7)",borderColor:"rgba(255,255,255,0.7)",borderWidth:1,shadowColor:"rgba(150,150,150,1)",shadowBlur:3,shadowOffsetX:0,shadowOffsetY:0,textStyle:{color:"#fff"}},emphasis:{textStyle:{}}},label:{show:!0,distance:0,padding:5,position:"inside",color:"#fff",ellipsis:!0},upperLabel:{show:!1,position:[0,"50%"],height:20,color:"#fff",ellipsis:!0,verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],color:"#fff",ellipsis:!0,verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},getInitialData:function(t,e){var i={name:t.name,children:t.data};pa(i);var n=t.levels||[];n=t.levels=function(t,e){var i=e.get("color");if(i){t=t||[];var n;return du.each(t,function(t){var e=new Vp(t),i=e.get("color");(e.get("itemStyle.color")||i&&"none"!==i)&&(n=!0)}),n||((t[0]||(t[0]={})).color=i.slice()),t}}(n,e);var a={};return a.levels=n,zS.createTree(i,this,a).data},optionUpdated:function(){this.resetViewRoot()},formatTooltip:function(t){var e=this.getData(),i=this.getRawValue(t),n=QS(du.isArray(i)?i[0]:i),a=e.getName(t);return JS(a+": "+n)},getDataParams:function(t){var e=xv.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(t);return e.treePathInfo=tM(i,this),e},setLayoutInfo:function(t){this.layoutInfo=this.layoutInfo||{},du.extend(this.layoutInfo,t)},mapIdToIndex:function(t){var e=this._idIndexMap;e||(e=this._idIndexMap=du.createHashMap(),this._idIndexMapCount=0);var i=e.get(t);return null==i&&e.set(t,i=this._idIndexMapCount++),i},getViewRoot:function(){return this._viewRoot},resetViewRoot:function(t){t?this._viewRoot=t:t=this._viewRoot;var e=this.getRawData().tree.root;t&&(t===e||e.contains(t))||(this._viewRoot=e)}}),KS.wrapTreePathInfo),iM=5;ga.prototype={constructor:ga,render:function(t,e,i,n){var a=t.getModel("breadcrumb"),r=this.group;if(r.removeAll(),a.get("show")&&i){var o=a.getModel("itemStyle"),s=o.getModel("textStyle"),l={pos:{left:a.get("left"),right:a.get("right"),top:a.get("top"),bottom:a.get("bottom")},box:{width:e.getWidth(),height:e.getHeight()},emptyItemWidth:a.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(i,l,s),this._renderContent(t,l,o,s,n),ng.positionElement(r,l.pos,l.box)}},_prepare:function(t,e,i){for(var n=t;n;n=n.parentNode){var a=n.getModel().get("name"),r=i.getTextRect(a),o=Math.max(r.width+16,e.emptyItemWidth);e.totalWidth+=o+8,e.renderList.push({node:n,text:a,width:o})}},_renderContent:function(t,e,i,n,a){for(var r=0,o=e.emptyItemWidth,s=t.get("breadcrumb.height"),l=ng.getAvailableSize(e.pos,e.box),u=e.totalWidth,h=e.renderList,c=h.length-1;c>=0;c--){var d=h[c],f=d.node,p=d.width,g=d.text;u>l.width&&(u-=p-o,p=o,g=null);var m=new Dp.Polygon({shape:{points:function(t,e,i,n,a,r){var o=[[a?t:t-iM,e],[t+i,e],[t+i,e+n],[a?t:t-iM,e+n]];return!r&&o.splice(2,0,[t+i+iM,e+n/2]),!a&&o.push([t,e+n/2]),o}(r,0,p,s,c===h.length-1,0===c)},style:du.defaults(i.getItemStyle(),{lineJoin:"bevel",text:g,textFill:n.getTextColor(),textFont:n.getFont()}),z:10,onclick:du.curry(a,f)});this.group.add(m),function(t,e,i){t.eventData={componentType:"series",componentSubType:"treemap",seriesIndex:e.componentIndex,seriesName:e.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:i&&i.dataIndex,name:i&&i.name},treePathInfo:i&&eM(i,e)}}(m,t,f),r+=p+8}},remove:function(){this.group.removeAll()}};for(var nM=ga,aM={createWrap:function(){var t,e=[],i={};return{add:function(t,n,a,r,o){return du.isString(r)&&(o=r,r=0),!i[t.id]&&(i[t.id]=1,e.push({el:t,target:n,time:a,delay:r,easing:o}),!0)},done:function(e){return t=e,this},start:function(){for(var n=e.length,a=0,r=e.length;a3||Math.abs(e)>3)){var i=this.seriesModel.getData().tree.root;if(!i)return;var n=i.getLayout();if(!n)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:n.x+t,y:n.y+e,width:n.width,height:n.height}})}},_onZoom:function(t,e,i){if("animating"!==this._state){var n=this.seriesModel.getData().tree.root;if(!n)return;var a=n.getLayout();if(!a)return;var r=new ch(a.x,a.y,a.width,a.height),o=this.seriesModel.layoutInfo;e-=o.x,i-=o.y;var s=Mu.create();Mu.translate(s,s,[-e,-i]),Mu.scale(s,s,[t,t]),Mu.translate(s,s,[e,i]),r.applyTransform(s),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:r.x,y:r.y,width:r.width,height:r.height}})}},_initEvents:function(t){t.on("click",function(t){if("ready"===this._state){var e=this.seriesModel.get("nodeClick",!0);if(e){var i=this.findTarget(t.offsetX,t.offsetY);if(i){var n=i.node;if(n.getLayout().isLeafRoot)this._rootToNode(i);else if("zoomToNode"===e)this._zoomToNode(i);else if("link"===e){var a=n.hostTree.data.getItemModel(n.dataIndex),r=a.get("link",!0),o=a.get("target",!0)||"blank";r&&window.open(r,o)}}}}},this)},_renderBreadcrumb:function(t,e,i){i||(i=null!=t.get("leafDepth",!0)?{node:t.getViewRoot()}:this.findTarget(e.getWidth()/2,e.getHeight()/2))||(i={node:t.getData().tree.root}),(this._breadcrumb||(this._breadcrumb=new nM(this.group))).render(t,e,i.node,rM(function(e){"animating"!==this._state&&(KS.aboveViewRoot(t.getViewRoot(),e)?this._rootToNode({node:e}):this._zoomToNode({node:e}))},this))},remove:function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage={nodeGroup:[],background:[],content:[]},this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},dispose:function(){this._clearController()},_zoomToNode:function(t){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},_rootToNode:function(t){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},findTarget:function(t,e){var i;return this.seriesModel.getViewRoot().eachNode({attr:"viewChildren",order:"preorder"},function(n){var a=this._storage.background[n.getRawIndex()];if(a){var r=a.transformCoordToLocal(t,e),o=a.shape;if(!(o.x<=r[0]&&r[0]<=o.x+o.width&&o.y<=r[1]&&r[1]<=o.y+o.height))return!1;i={node:n,offsetX:r[0],offsetY:r[1]}}},this),i}}),["treemapZoomToNode","treemapRender","treemapMove"]),xM=0;xM=0;r--)null==i[r]&&(delete n[e[r]],e.pop())}(n):ma(n,!0):(du.assert("linear"!==e||n.dataExtent),ma(n))};MM.prototype={constructor:MM,mapValueToVisual:function(t){var e=this._normalizeData(t);return this._doMap(e,t)},getNormalizer:function(){return du.bind(this._normalizeData,this)}};var IM=MM.visualHandlers={color:{applyVisual:xa("color"),getColorMapper:function(){var t=this.option;return du.bind("category"===t.mappingMethod?function(t,e){return!e&&(t=this._normalizeData(t)),_a.call(this,t)}:function(e,i,n){var a=!!n;return!i&&(e=this._normalizeData(e)),n=Wu.fastLerp(e,t.parsedVisual,n),a?n:Wu.stringify(n,"rgba")},this)},_doMap:{linear:function(t){return Wu.stringify(Wu.fastLerp(t,this.option.parsedVisual),"rgba")},category:_a,piecewise:function(t,e){var i=Sa.call(this,e);return null==i&&(i=Wu.stringify(Wu.fastLerp(t,this.option.parsedVisual),"rgba")),i},fixed:ba}},colorHue:va(function(t,e){return Wu.modifyHSL(t,e)}),colorSaturation:va(function(t,e){return Wu.modifyHSL(t,null,e)}),colorLightness:va(function(t,e){return Wu.modifyHSL(t,null,null,e)}),colorAlpha:va(function(t,e){return Wu.modifyAlpha(t,e)}),opacity:{applyVisual:xa("opacity"),_doMap:wa([0,1])},liftZ:{applyVisual:xa("liftZ"),_doMap:{linear:ba,category:ba,piecewise:ba,fixed:ba}},symbol:{applyVisual:function(t,e,i){var n=this.mapValueToVisual(t);if(du.isString(n))i("symbol",n);else if(wM(n))for(var a in n)n.hasOwnProperty(a)&&i(a,n[a])},_doMap:{linear:ya,category:_a,piecewise:function(t,e){var i=Sa.call(this,e);return null==i&&(i=ya.call(this,t)),i},fixed:ba}},symbolSize:{applyVisual:xa("symbolSize"),_doMap:wa([0,1])}},AM={linear:function(t){return _M(t,this.option.dataExtent,[0,1],!0)},piecewise:function(t){var e=this.option.pieceList,i=MM.findPieceIndex(t,e,!0);if(null!=i)return _M(i,[0,e.length-1],[0,1],!0)},category:function(t){var e=this.option.categories?this.option.categoryMap[t]:t;return null==e?SM:e},fixed:du.noop};MM.listVisualTypes=function(){var t=[];return du.each(IM,function(e,i){t.push(i)}),t},MM.addVisualHandler=function(t,e){IM[t]=e},MM.isValidType=function(t){return IM.hasOwnProperty(t)},MM.eachVisual=function(t,e,i){du.isObject(t)?du.each(t,e,i):e.call(i,t)},MM.mapVisual=function(t,e,i){var n,a=du.isArray(t)?[]:du.isObject(t)?{}:(n=!0,null);return MM.eachVisual(t,function(t,r){var o=e.call(i,t,r);n?a=o:a[r]=o}),a},MM.retrieveVisuals=function(t){var e,i={};return t&&bM(IM,function(n,a){t.hasOwnProperty(a)&&(i[a]=t[a],e=!0)}),e?i:null},MM.prepareVisualTypes=function(t){if(wM(t)){var e=[];bM(t,function(t,i){e.push(i)}),t=e}else{if(!du.isArray(t))return[];t=t.slice()}return t.sort(function(t,e){return"color"===e&&"color"!==t&&0===t.indexOf("color")?1:-1}),t},MM.dependsOn=function(t,e){return"color"===e?!(!t||0!==t.indexOf(e)):t===e},MM.findPieceIndex=function(t,e,i){function n(e,i){var n=Math.abs(e-t);nkM&&(u=kM),r=s}u=0&&t.call(e,i[a],a)},UM.eachEdge=function(t,e){for(var i=this.edges,n=i.length,a=0;a=0&&i[a].node1.dataIndex>=0&&i[a].node2.dataIndex>=0&&t.call(e,i[a],a)},UM.breadthFirstTraverse=function(t,e,i,n){if(Na.isInstance(e)||(e=this._nodesMap[Ra(e)]),e){for(var a="out"===i?"outEdges":"in"===i?"inEdges":"edges",r=0;r=0&&i.node2.dataIndex>=0});for(var a=0,r=n.length;a=0&&this[t][e].setItemVisual(this.dataIndex,i,n)},getVisual:function(i,n){return this[t][e].getItemVisual(this.dataIndex,i,n)},setLayout:function(i,n){this.dataIndex>=0&&this[t][e].setItemLayout(this.dataIndex,i,n)},getLayout:function(){return this[t][e].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[t][e].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[t][e].getRawIndex(this.dataIndex)}}};du.mixin(Na,ZM("hostGraph","data")),du.mixin(Ea,ZM("hostGraph","edgeData")),WM.Node=Na,WM.Edge=Ea,FM(Na),FM(Ea);var jM=WM,YM=function(t,e,i,n,a){for(var r=new jM(n),o=0;o "+d)),u++)}var f,p=i.get("coordinateSystem");if("cartesian2d"===p||"polar"===p)f=Xy(t,i);else{var g=vm.get(p),m=g&&"view"!==g.type?g.dimensions||[]:[];du.indexOf(m,"value")<0&&m.concat(["value"]);var v=By(t,{coordDimensions:m});(f=new Ty(v,i)).initData(t)}var y=new Ty(["value"],i);return y.initData(l,s),a&&a(f,y),NS({mainData:f,struct:r,structAttr:"graph",datas:{node:f,edge:y},datasAttr:{node:"data",edge:"edgeData"}}),r.update(),r},XM=Wc.defaultEmphasis,qM=qp.encodeHTML,$M=C_.extendSeriesModel({type:"series.graph",init:function(t){$M.superApply(this,"init",arguments),this.legendDataProvider=function(){return this._categoriesData},this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},mergeOption:function(t){$M.superApply(this,"mergeOption",arguments),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},mergeDefaultAndTheme:function(t){$M.superApply(this,"mergeDefaultAndTheme",arguments),XM(t,["edgeLabel"],["show"])},getInitialData:function(t,e){var i=t.edges||t.links||[],n=t.data||t.nodes||[],a=this;if(n&&i)return YM(n,i,this,!0,function(t,i){t.wrapMethod("getItemModel",function(t){var e=a._categoriesModels[t.getShallow("category")];return e&&(e.parentModel=t.parentModel,t.parentModel=e),t});var n=a.getModel("edgeLabel"),r=new Vp({label:n.option},n.parentModel,e),o=a.getModel("emphasis.edgeLabel"),s=new Vp({emphasis:{label:o.option}},o.parentModel,e);i.wrapMethod("getItemModel",function(t){return t.customizeGetParent(function(t){return(t=this.parsePath(t))&&"label"===t[0]?r:t&&"emphasis"===t[0]&&"label"===t[1]?s:this.parentModel}),t})}).data},getGraph:function(){return this.getData().graph},getEdgeData:function(){return this.getGraph().edgeData},getCategoriesData:function(){return this._categoriesData},formatTooltip:function(t,e,i){if("edge"===i){var n=this.getData(),a=this.getDataParams(t,i),r=n.graph.getEdgeByIndex(t),o=n.getName(r.node1.dataIndex),s=n.getName(r.node2.dataIndex),l=[];return null!=o&&l.push(o),null!=s&&l.push(s),l=qM(l.join(" > ")),a.value&&(l+=" : "+qM(a.value)),l}return $M.superApply(this,"formatTooltip",arguments)},_updateCategoriesData:function(){var t=du.map(this.option.categories||[],function(t){return null!=t.value?t:du.extend({value:0},t)}),e=new Ty(["value"],this);e.initData(t),this._categoriesData=e,this._categoriesModels=e.mapArray(function(t){return e.getItemModel(t,!0)})},setZoom:function(t){this.option.zoom=t},setCenter:function(t){this.option.center=t},isAnimationEnabled:function(){return $M.superCall(this,"isAnimationEnabled")&&!("force"===this.get("layout")&&this.get("force.layoutAnimation"))},defaultOption:{zlevel:0,z:2,coordinateSystem:"view",legendHoverLink:!0,hoverAnimation:!0,layout:null,focusNodeAdjacency:!1,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle"},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:"#aaa",width:1,curveness:0,opacity:.5},emphasis:{label:{show:!0}}}}),KM=Dp.Line.prototype,JM=Dp.BezierCurve.prototype,QM=Dp.extendShape({type:"ec-line",style:{stroke:"#000",fill:null},shape:{x1:0,y1:0,x2:0,y2:0,percent:1,cpx1:null,cpy1:null},buildPath:function(t,e){(za(e)?KM:JM).buildPath(t,e)},pointAt:function(t){return za(this.shape)?KM.pointAt.call(this,t):JM.pointAt.call(this,t)},tangentAt:function(t){var e=this.shape,i=za(e)?[e.x2-e.x1,e.y2-e.y1]:JM.tangentAt.call(this,t);return pu.normalize(i,i)}}),tI=Up.round,eI=["fromSymbol","toSymbol"],iI=Ha.prototype;iI.beforeUpdate=function(){var t=this.childOfName("fromSymbol"),e=this.childOfName("toSymbol"),i=this.childOfName("label");if(t||e||!i.ignore){for(var n=1,a=this.parent;a;)a.scale&&(n/=a.scale[0]),a=a.parent;var r=this.childOfName("line");if(this.__dirty||r.__dirty){var o=r.shape.percent,s=r.pointAt(0),l=r.pointAt(o),u=pu.sub([],l,s);if(pu.normalize(u,u),t&&(t.attr("position",s),p=r.tangentAt(0),t.attr("rotation",Math.PI/2-Math.atan2(p[1],p[0])),t.attr("scale",[n*o,n*o])),e&&(e.attr("position",l),p=r.tangentAt(1),e.attr("rotation",-Math.PI/2-Math.atan2(p[1],p[0])),e.attr("scale",[n*o,n*o])),!i.ignore){i.attr("position",l);var h,c,d,f=5*n;if("end"===i.__position)h=[u[0]*f+l[0],u[1]*f+l[1]],c=u[0]>.8?"left":u[0]<-.8?"right":"center",d=u[1]>.8?"top":u[1]<-.8?"bottom":"middle";else if("middle"===i.__position){var p,g=o/2,m=[(p=r.tangentAt(g))[1],-p[0]],v=r.pointAt(g);m[1]>0&&(m[0]=-m[0],m[1]=-m[1]),h=[v[0]+m[0]*f,v[1]+m[1]*f],c="center",d="bottom";var y=-Math.atan2(p[1],p[0]);l[0].8?"right":u[0]<-.8?"left":"center",d=u[1]>.8?"bottom":u[1]<-.8?"top":"middle";i.attr({style:{textVerticalAlign:i.__verticalAlign||d,textAlign:i.__textAlign||c},position:h,scale:[n,n]})}}}},iI._createLine=function(t,e,i){var n=t.hostModel,a=function(t){var e=new QM({name:"line"});return Ga(e.shape,t),e}(t.getItemLayout(e));a.shape.percent=0,Dp.initProps(a,{shape:{percent:1}},n,e),this.add(a);var r=new Dp.Text({name:"label"});this.add(r),du.each(eI,function(i){var n=Ba(i,t,e);this.add(n),this[Va(i)]=t.getItemVisual(e,i)},this),this._updateCommonStl(t,e,i)},iI.updateData=function(t,e,i){var n=t.hostModel,a=this.childOfName("line"),r=t.getItemLayout(e),o={shape:{}};Ga(o.shape,r),Dp.updateProps(a,o,n,e),du.each(eI,function(i){var n=t.getItemVisual(e,i),a=Va(i);if(this[a]!==n){this.remove(this.childOfName(i));var r=Ba(i,t,e);this.add(r)}this[a]=n},this),this._updateCommonStl(t,e,i)},iI._updateCommonStl=function(t,e,i){var n=t.hostModel,a=this.childOfName("line"),r=i&&i.lineStyle,o=i&&i.hoverLineStyle,s=i&&i.labelModel,l=i&&i.hoverLabelModel;if(!i||t.hasItemOption){var u=t.getItemModel(e);r=u.getModel("lineStyle").getLineStyle(),o=u.getModel("emphasis.lineStyle").getLineStyle(),s=u.getModel("label"),l=u.getModel("emphasis.label")}var h=t.getItemVisual(e,"color"),c=du.retrieve3(t.getItemVisual(e,"opacity"),r.opacity,1);a.useStyle(du.defaults({strokeNoScale:!0,fill:"none",stroke:h,opacity:c},r)),a.hoverStyle=o,du.each(eI,function(t){var e=this.childOfName(t);e&&(e.setColor(h),e.setStyle({opacity:c}))},this);var d,f,p=s.getShallow("show"),g=l.getShallow("show"),m=this.childOfName("label");if((p||g)&&(d=h||"#000",null==(f=n.getFormattedLabel(e,"normal",t.dataType)))){var v=n.getRawValue(e);f=null==v?t.getName(e):isFinite(v)?tI(v):v}var y=p?f:null,x=g?du.retrieve2(n.getFormattedLabel(e,"emphasis",t.dataType),f):null,_=m.style;null==y&&null==x||(Dp.setTextStyle(m.style,s,{text:y},{autoColor:d}),m.__textAlign=_.textAlign,m.__verticalAlign=_.textVerticalAlign,m.__position=s.get("position")||"middle"),m.hoverStyle=null!=x?{text:x,textFill:l.getTextColor(!0),fontStyle:l.getShallow("fontStyle"),fontWeight:l.getShallow("fontWeight"),fontSize:l.getShallow("fontSize"),fontFamily:l.getShallow("fontFamily")}:{text:null},m.ignore=!p&&!g,Dp.setHoverStyle(this)},iI.highlight=function(){this.trigger("emphasis")},iI.downplay=function(){this.trigger("normal")},iI.updateLayout=function(t,e){this.setLinePoints(t.getItemLayout(e))},iI.setLinePoints=function(t){var e=this.childOfName("line");Ga(e.shape,t),e.dirty()},du.inherits(Ha,Dp.Group);var nI=Ha,aI=Fa.prototype;aI.isPersistent=function(){return!0},aI.updateData=function(t){var e=this,i=e.group,n=e._lineData;e._lineData=t,n||i.removeAll();var a=Wa(t);t.diff(n).add(function(i){!function(t,e,i,n){if(Za(e.getItemLayout(i))){var a=new t._ctor(e,i,n);e.setItemGraphicEl(i,a),t.group.add(a)}}(e,t,i,a)}).update(function(i,r){!function(t,e,i,n,a,r){var o=e.getItemGraphicEl(n);Za(i.getItemLayout(a))?(o?o.updateData(i,a,r):o=new t._ctor(i,a,r),i.setItemGraphicEl(a,o),t.group.add(o)):t.group.remove(o)}(e,n,t,r,i,a)}).remove(function(t){i.remove(n.getItemGraphicEl(t))}).execute()},aI.updateLayout=function(){var t=this._lineData;t&&t.eachItemGraphicEl(function(e,i){e.updateLayout(t,i)},this)},aI.incrementalPrepareUpdate=function(t){this._seriesScope=Wa(t),this._lineData=null,this.group.removeAll()},aI.incrementalUpdate=function(t,e){for(var i=t.start;i=a/3?1:2),l=e.y-n(o)*r*(r>=a/3?1:2);o=e.angle-Math.PI/2,t.moveTo(s,l),t.lineTo(e.x+i(o)*r,e.y+n(o)*r),t.lineTo(e.x+i(e.angle)*a,e.y+n(e.angle)*a),t.lineTo(e.x-i(o)*r,e.y-n(o)*r),t.lineTo(s,l)}}),zI=Up.parsePercent,VI=Up.round,BI=Up.linearMap,GI=2*Math.PI,HI=(Pv.extend({type:"gauge",render:function(t,e,i){this.group.removeAll();var n=t.get("axisLine.lineStyle.color"),a=function(t,e){var i=t.get("center"),n=e.getWidth(),a=e.getHeight(),r=Math.min(n,a);return{cx:zI(i[0],e.getWidth()),cy:zI(i[1],e.getHeight()),r:zI(t.get("radius"),r/2)}}(t,i);this._renderMain(t,e,i,n,a)},dispose:function(){},_renderMain:function(t,e,i,n,a){for(var r=this.group,o=t.getModel("axisLine").getModel("lineStyle"),s=t.get("clockwise"),l=-t.get("startAngle")/180*Math.PI,u=((f=-t.get("endAngle")/180*Math.PI)-l)%GI,h=l,c=o.get("width"),d=0;d=t&&(0===e?0:n[e-1][0]).4?"bottom":"middle",textAlign:T<-.4?"left":T>.4?"right":"center"},{autoColor:k}),silent:!0}))}if(g.get("show")&&A!==v){for(var O=0;O<=y;O++){var T=Math.cos(b),D=Math.sin(b),R=new Dp.Line({shape:{x1:T*c+u,y1:D*c+h,x2:T*(c-_)+u,y2:D*(c-_)+h},silent:!0,style:I});"auto"===I.stroke&&R.setStyle({stroke:n((A+O/y)/v)}),l.add(R),b+=S}b-=S}else b+=w}},_renderPointer:function(t,e,i,n,a,r,o,s){var l=this.group,u=this._data;if(t.get("pointer.show")){var h=[+t.get("min"),+t.get("max")],c=[r,o],d=t.getData(),f=d.mapDimension("value");d.diff(u).add(function(e){var i=new EI({shape:{angle:r}});Dp.initProps(i,{shape:{angle:BI(d.get(f,e),h,c,!0)}},t),l.add(i),d.setItemGraphicEl(e,i)}).update(function(e,i){var n=u.getItemGraphicEl(i);Dp.updateProps(n,{shape:{angle:BI(d.get(f,e),h,c,!0)}},t),l.add(n),d.setItemGraphicEl(e,n)}).remove(function(t){var e=u.getItemGraphicEl(t);l.remove(e)}).execute(),d.eachItemGraphicEl(function(t,e){var i=d.getItemModel(e),r=i.getModel("pointer");t.setShape({x:a.cx,y:a.cy,width:zI(r.get("width"),a.r),r:zI(r.get("length"),a.r)}),t.useStyle(i.getModel("itemStyle").getItemStyle()),"auto"===t.style.fill&&t.setStyle("fill",n(BI(d.get(f,e),h,[0,1],!0))),Dp.setHoverStyle(t,i.getModel("emphasis.itemStyle").getItemStyle())}),this._data=d}else u&&u.eachItemGraphicEl(function(t){l.remove(t)})},_renderTitle:function(t,e,i,n,a){var r=t.getData(),o=r.mapDimension("value"),s=t.getModel("title");if(s.get("show")){var l=s.get("offsetCenter"),u=a.cx+zI(l[0],a.r),h=a.cy+zI(l[1],a.r),c=+t.get("min"),d=+t.get("max"),f=t.getData().get(o,0),p=n(BI(f,[c,d],[0,1],!0));this.group.add(new Dp.Text({silent:!0,style:Dp.setTextStyle({},s,{x:u,y:h,text:r.getName(0),textAlign:"center",textVerticalAlign:"middle"},{autoColor:p,forceRich:!0})}))}},_renderDetail:function(t,e,i,n,a){var r=t.getModel("detail"),o=+t.get("min"),s=+t.get("max");if(r.get("show")){var l=r.get("offsetCenter"),u=a.cx+zI(l[0],a.r),h=a.cy+zI(l[1],a.r),c=zI(r.get("width"),a.r),d=zI(r.get("height"),a.r),f=t.getData(),p=f.get(f.mapDimension("value"),0),g=n(BI(p,[o,s],[0,1],!0));this.group.add(new Dp.Text({silent:!0,style:Dp.setTextStyle({},r,{x:u,y:h,text:Ja(p,r.get("formatter")),textWidth:isNaN(c)?null:c,textHeight:isNaN(d)?null:d,textAlign:"center",textVerticalAlign:"middle"},{autoColor:g,forceRich:!0})}))}}}),Wc.defaultEmphasis),FI=C_.extendSeriesModel({type:"series.funnel",init:function(t){FI.superApply(this,"init",arguments),this.legendDataProvider=function(){return this.getRawData()},this._defaultLabelLine(t)},getInitialData:function(t,e){return Aw(this,["value"])},_defaultLabelLine:function(t){HI(t,"labelLine",["show"]);var e=t.labelLine,i=t.emphasis.labelLine;e.show=e.show&&t.label.show,i.show=i.show&&t.emphasis.label.show},getDataParams:function(t){var e=this.getData(),i=FI.superCall(this,"getDataParams",t),n=e.mapDimension("value"),a=e.getSum(n);return i.percent=a?+(e.get(n,t)/a*100).toFixed(2):0,i.$vars.push("percent"),i},defaultOption:{zlevel:0,z:2,legendHoverLink:!0,left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1,type:"solid"}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{show:!0}}}}),WI=Qa.prototype,UI=["itemStyle","opacity"];WI.updateData=function(t,e,i){var n=this.childAt(0),a=t.hostModel,r=t.getItemModel(e),o=t.getItemLayout(e),s=t.getItemModel(e).get(UI);s=null==s?1:s,n.useStyle({}),i?(n.setShape({points:o.points}),n.setStyle({opacity:0}),Dp.initProps(n,{style:{opacity:s}},a,e)):Dp.updateProps(n,{style:{opacity:s},shape:{points:o.points}},a,e);var l=r.getModel("itemStyle"),u=t.getItemVisual(e,"color");n.setStyle(du.defaults({lineJoin:"round",fill:u},l.getItemStyle(["opacity"]))),n.hoverStyle=l.getModel("emphasis").getItemStyle(),this._updateLabel(t,e),Dp.setHoverStyle(this)},WI._updateLabel=function(t,e){var i=this.childAt(1),n=this.childAt(2),a=t.hostModel,r=t.getItemModel(e),o=t.getItemLayout(e).label,s=t.getItemVisual(e,"color");Dp.updateProps(i,{shape:{points:o.linePoints||o.linePoints}},a,e),Dp.updateProps(n,{style:{x:o.x,y:o.y}},a,e),n.attr({rotation:o.rotation,origin:[o.x,o.y],z2:10});var l=r.getModel("label"),u=r.getModel("emphasis.label"),h=r.getModel("labelLine"),c=r.getModel("emphasis.labelLine"),s=t.getItemVisual(e,"color");Dp.setLabelStyle(n.style,n.hoverStyle={},l,u,{labelFetcher:t.hostModel,labelDataIndex:e,defaultText:t.getName(e),autoColor:s,useInsideStyle:!!o.inside},{textAlign:o.textAlign,textVerticalAlign:o.verticalAlign}),n.ignore=n.normalIgnore=!l.get("show"),n.hoverIgnore=!u.get("show"),i.ignore=i.normalIgnore=!h.get("show"),i.hoverIgnore=!c.get("show"),i.setStyle({stroke:s}),i.setStyle(h.getModel("lineStyle").getLineStyle()),i.hoverStyle=c.getModel("lineStyle").getLineStyle()},du.inherits(Qa,Dp.Group);Pv.extend({type:"funnel",render:function(t,e,i){var n=t.getData(),a=this._data,r=this.group;n.diff(a).add(function(t){var e=new Qa(n,t);n.setItemGraphicEl(t,e),r.add(e)}).update(function(t,e){var i=a.getItemGraphicEl(e);i.updateData(n,t),r.add(i),n.setItemGraphicEl(t,i)}).remove(function(t){var e=a.getItemGraphicEl(t);r.remove(e)}).execute(),this._data=n},remove:function(){this.group.removeAll(),this._data=null},dispose:function(){}});var ZI=Up.parsePercent,jI=Up.linearMap,YI=function(t,e,i){t.eachSeriesByType("funnel",function(t){var i=t.getData(),n=i.mapDimension("value"),a=t.get("sort"),r=function(t,e){return ng.getLayoutRect(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}(t,e),o=function(t,e){for(var i=t.mapDimension("value"),n=t.mapArray(i,function(t){return t}),a=[],r="ascending"===e,o=0,s=t.count();or&&(e[1-n]=e[n]+h.sign*r),e},JI=du.each,QI=Math.min,tA=Math.max,eA=Math.floor,iA=Math.ceil,nA=Up.round,aA=Math.PI;ir.prototype={type:"parallel",constructor:ir,_init:function(t,e,i){var n=t.dimensions,a=t.parallelAxisIndex;JI(n,function(t,i){var n=a[i],r=e.getComponent("parallelAxis",n),o=this._axesMap.set(t,new $I(t,kx.createScaleByModel(r),[0,0],r.get("type"),n)),s="category"===o.type;o.onBand=s&&r.get("boundaryGap"),o.inverse=r.get("inverse"),r.axis=o,o.model=r,o.coordinateSystem=r.coordinateSystem=this},this)},update:function(t,e){this._updateAxesFromSeries(this._model,t)},containPoint:function(t){var e=this._makeLayoutInfo(),i=e.axisBase,n=e.layoutBase,a=e.pixelDimIndex,r=t[1-a],o=t[a];return r>=i&&r<=i+e.axisLength&&o>=n&&o<=n+e.layoutLength},getModel:function(){return this._model},_updateAxesFromSeries:function(t,e){e.eachSeries(function(i){if(t.contains(i,e)){var n=i.getData();JI(this.dimensions,function(t){var e=this._axesMap.get(t);e.scale.unionExtentFromData(n,n.mapDimension(t)),kx.niceScaleExtent(e.scale,e.model)},this)}},this)},resize:function(t,e){this._rect=ng.getLayoutRect(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()}),this._layoutAxes()},getRect:function(){return this._rect},_makeLayoutInfo:function(){var t,e=this._model,i=this._rect,n=["x","y"],a=["width","height"],r=e.get("layout"),o="horizontal"===r?0:1,s=i[a[o]],l=[0,s],u=this.dimensions.length,h=nr(e.get("axisExpandWidth"),l),c=nr(e.get("axisExpandCount")||0,[0,u]),d=e.get("axisExpandable")&&u>3&&u>c&&c>1&&h>0&&s>0,f=e.get("axisExpandWindow");if(f)t=nr(f[1]-f[0],l),f[1]=f[0]+t;else{t=nr(h*(c-1),l);(f=[h*(e.get("axisExpandCenter")||eA(u/2))-t/2])[1]=f[0]+t}var p=(s-t)/(u-c);p<3&&(p=0);var g=[eA(nA(f[0]/h,1))+1,iA(nA(f[1]/h,1))-1],m=p/h*f[0];return{layout:r,pixelDimIndex:o,layoutBase:i[n[o]],layoutLength:s,axisBase:i[n[1-o]],axisLength:i[a[1-o]],axisExpandable:d,axisExpandWidth:h,axisCollapseWidth:p,axisExpandWindow:f,axisCount:u,winInnerIndices:g,axisExpandWindow0Pos:m}},_layoutAxes:function(){var t=this._rect,e=this._axesMap,i=this.dimensions,n=this._makeLayoutInfo(),a=n.layout;e.each(function(t){var e=[0,n.axisLength],i=t.inverse?1:0;t.setExtent(e[i],e[1-i])}),JI(i,function(e,i){var r=(n.axisExpandable?function(t,e){var i,n,a=e.layoutLength,r=e.axisExpandWidth,o=e.axisCount,s=e.axisCollapseWidth,l=e.winInnerIndices,u=s,h=!1;return ta*(1-h[0])?(l="jump",o=s-a*(1-h[2])):(o=s-a*h[1])>=0&&(o=s-a*(1-h[1]))<=0&&(o=0),(o*=e.axisExpandWidth/u)?KI(o,n,r,"all"):l="none";else{a=n[1]-n[0];(n=[tA(0,r[1]*s/a-a/2)])[1]=QI(r[1],n[0]+a),n[0]=n[1]-a}return{axisExpandWindow:n,behavior:l}}};var rA=ir;vm.register("parallel",{create:function(t,e){var i=[];return t.eachComponent("parallel",function(n,a){var r=new rA(n,t,e);r.name="parallel_"+a,r.resize(n,e),n.coordinateSystem=r,r.model=n,i.push(r)}),t.eachSeries(function(e){if("parallel"===e.get("coordinateSystem")){var i=t.queryComponents({mainType:"parallel",index:e.get("parallelIndex"),id:e.get("parallelId")})[0];e.coordinateSystem=i.coordinateSystem}}),i}});var oA=ug.extend({type:"baseParallelAxis",axis:null,activeIntervals:[],getAreaSelectStyle:function(){return Xc([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},setActiveIntervals:function(t){var e=this.activeIntervals=du.clone(t);if(e)for(var i=e.length-1;i>=0;i--)Up.asc(e[i])},getActiveState:function(t){var e=this.activeIntervals;if(!e.length)return"normal";if(null==t||isNaN(t))return"inactive";if(1===e.length){var i=e[0];if(i[0]<=t&&t<=i[1])return"active"}else for(var n=0,a=e.length;n5)return;var n=this._model.coordinateSystem.getSlidedAxisExpandWindow([t.offsetX,t.offsetY]);"none"!==n.behavior&&this._dispatchExpand({axisExpandWindow:n.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(t){if(!this._mouseDownPoint&&Or(this,"mousemove")){var e=this._model,i=e.coordinateSystem.getSlidedAxisExpandWindow([t.offsetX,t.offsetY]),n=i.behavior;"jump"===n&&this._throttledDispatchExpand.debounceNextCall(e.get("axisExpandDebounce")),this._throttledDispatchExpand("none"===n?null:{axisExpandWindow:i.axisExpandWindow,animation:"jump"===n&&null})}}};C_.registerPreprocessor(XI);var CA=du.each,LA=du.createHashMap,PA=(xv.extend({type:"series.parallel",dependencies:["parallel"],visualColorAccessPath:"lineStyle.color",getInitialData:function(t,e){var i=this.getSource();return function(t,e){if(!t.encodeDefine){var i=e.ecModel.getComponent("parallel",e.get("parallelIndex"));if(i){var n=t.encodeDefine=LA();CA(i.dimensions,function(t){var e=+t.replace("dim","");n.set(t,e)})}}}(i,this),Xy(i,this)},getRawIndicesByActiveState:function(t){var e=this.coordinateSystem,i=this.getData(),n=[];return e.eachActiveState(i,function(e,a){t===e&&n.push(i.getRawIndex(a))}),n},defaultOption:{zlevel:0,z:2,coordinateSystem:"parallel",parallelIndex:0,label:{show:!1},inactiveOpacity:.05,activeOpacity:1,lineStyle:{width:1,opacity:.45,type:"solid"},emphasis:{label:{show:!1}},progressive:500,smooth:!1,animationEasing:"linear"}}),.3),kA=(Pv.extend({type:"parallel",init:function(){this._dataGroup=new Dp.Group,this.group.add(this._dataGroup),this._data,this._initialized},render:function(t,e,i,n){var a=this._dataGroup,r=t.getData(),o=this._data,s=t.coordinateSystem,l=s.dimensions,u=Er(t);if(r.diff(o).add(function(t){zr(Nr(r,a,t,l,s),r,t,u)}).update(function(e,i){var a=o.getItemGraphicEl(i),h=Rr(r,e,l,s);r.setItemGraphicEl(e,a);var c=n&&!1===n.animation?null:t;Dp.updateProps(a,{shape:{points:h}},c,e),zr(a,r,e,u)}).remove(function(t){var e=o.getItemGraphicEl(t);a.remove(e)}).execute(),!this._initialized){this._initialized=!0;var h=function(t,e,i){var n=t.model,a=t.getRect(),r=new Dp.Rect({shape:{x:a.x,y:a.y,width:a.width,height:a.height}}),o="horizontal"===n.get("layout")?"width":"height";return r.setShape(o,0),Dp.initProps(r,{shape:{width:a.width,height:a.height}},e,i),r}(s,t,function(){setTimeout(function(){a.removeClipPath()})});a.setClipPath(h)}this._data=r},incrementalPrepareRender:function(t,e,i){this._initialized=!0,this._data=null,this._dataGroup.removeAll()},incrementalRender:function(t,e,i){for(var n=e.getData(),a=e.coordinateSystem,r=a.dimensions,o=Er(e),s=t.start;s=i.length)return e;for(var a=-1,r=e.length,o=i[n++],s={},l={};++a=i.length)return t;var r=[],o=n[a++];return du.each(t,function(t,i){r.push({key:i,values:e(t,a)})}),o?r.sort(function(t,e){return o(t.key,e.key)}):r}var i=[],n=[];return{key:function(t){return i.push(t),this},sortKeys:function(t){return n[i.length-1]=t,this},entries:function(i){return e(t(i,0),0)}}},VA=function(t,e,i){t.eachSeriesByType("sankey",function(t){var i=t.get("nodeWidth"),n=t.get("nodeGap"),a=function(t,e){return ng.getLayoutRect(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}(t,e);t.layoutInfo=a;var r=a.width,o=a.height,s=t.getGraph(),l=s.nodes,u=s.edges;!function(t){du.each(t,function(t){var e=Br(t.outEdges,Hr),i=Br(t.inEdges,Hr),n=Math.max(e,i);t.setLayout({value:n},!0)})}(l),function(t,e,i,n,a,r,o){(function(t,e,i,n){for(var a=[],r=[],o=[],s=[],l=0,u=0;u0;a--)(function(t,e){du.each(t.slice().reverse(),function(t){du.each(t,function(t){if(t.outEdges.length){var i=Br(t.outEdges,function(t){return Gr(t.node2)*t.getValue()})/Br(t.outEdges,Hr),n=t.getLayout().y+(i-Gr(t))*e;t.setLayout({y:n},!0)}})})})(r,o*=.99),Vr(r,n,i),function(t,e){du.each(t,function(t){du.each(t,function(t){if(t.inEdges.length){var i=Br(t.inEdges,function(t){return Gr(t.node1)*t.getValue()})/Br(t.inEdges,Hr),n=t.getLayout().y+(i-Gr(t))*e;t.setLayout({y:n},!0)}})})}(r,o),Vr(r,n,i)}(t,e,r,n,o),function(t){du.each(t,function(t){t.outEdges.sort(function(t,e){return t.node2.getLayout().y-e.node2.getLayout().y}),t.inEdges.sort(function(t,e){return t.node1.getLayout().y-e.node1.getLayout().y})}),du.each(t,function(t){var e=0,i=0;du.each(t.outEdges,function(t){t.setLayout({sy:e},!0),e+=t.getLayout().dy}),du.each(t.inEdges,function(t){t.setLayout({ty:i},!0),i+=t.getLayout().dy})})}(t)}(l,u,i,n,r,o,0!==du.filter(l,function(t){return 0===t.getLayout().value}).length?0:t.get("layoutIterations"))})},BA=function(t,e){t.eachSeriesByType("sankey",function(t){var e=t.getGraph().nodes;if(e.length){var i=1/0,n=-1/0;du.each(e,function(t){var e=t.getLayout().value;en&&(n=e)}),du.each(e,function(e){var a=new TM({type:"color",mappingMethod:"linear",dataExtent:[i,n],visual:t.get("color")}).mapValueToVisual(e.getLayout().value);e.setVisual("color",a);var r=e.getModel().get("itemStyle.color");null!=r&&e.setVisual("color",r)})}})};C_.registerLayout(VA),C_.registerVisual(BA);var GA=py.getDimensionTypeByAxis,HA={seriesModelMixin:{_baseAxisDim:null,getInitialData:function(t,e){var i,n,a=e.getComponent("xAxis",this.get("xAxisIndex")),r=e.getComponent("yAxis",this.get("yAxisIndex")),o=a.get("type"),s=r.get("type");"category"===o?(t.layout="horizontal",i=a.getOrdinalMeta(),n=!0):"category"===s?(t.layout="vertical",i=r.getOrdinalMeta(),n=!0):t.layout=t.layout||"horizontal";var l=["x","y"],u="horizontal"===t.layout?0:1,h=this._baseAxisDim=l[u],c=l[1-u],d=[a,r],f=d[u].get("type"),p=d[1-u].get("type"),g=t.data;if(g&&n){var m=[];du.each(g,function(t,e){var i;t.value&&du.isArray(t.value)?(i=t.value.slice(),t.value.unshift(e)):du.isArray(t)?(i=t.slice(),t.unshift(e)):i=t,m.push(i)}),t.data=m}var v=this.defaultValueDimensions;return Aw(this,{coordDimensions:[{name:h,type:GA(f),ordinalMeta:i,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:c,type:GA(p),dimsDef:v.slice()}],dimensionsCount:v.length+1})},getBaseAxis:function(){var t=this._baseAxisDim;return this.ecModel.getComponent(t+"Axis",this.get(t+"AxisIndex")).axis}}},FA=HA.seriesModelMixin,WA=xv.extend({type:"series.boxplot",dependencies:["xAxis","yAxis","grid"],defaultValueDimensions:[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],dimensions:null,defaultOption:{zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,hoverAnimation:!0,layout:null,boxWidth:[7,50],itemStyle:{color:"#fff",borderWidth:1},emphasis:{itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:2,shadowOffsetY:2,shadowColor:"rgba(0,0,0,0.4)"}},animationEasing:"elasticOut",animationDuration:800}});du.mixin(WA,FA,!0);var UA=["itemStyle"],ZA=["emphasis","itemStyle"],jA=(Pv.extend({type:"boxplot",render:function(t,e,i){var n=t.getData(),a=this.group,r=this._data;this._data||a.removeAll();var o="horizontal"===t.get("layout")?1:0;n.diff(r).add(function(t){if(n.hasValue(t)){var e=Fr(n.getItemLayout(t),n,t,o,!0);n.setItemGraphicEl(t,e),a.add(e)}}).update(function(t,e){var i=r.getItemGraphicEl(e);if(n.hasValue(t)){var s=n.getItemLayout(t);i?Wr(s,i,n,t):i=Fr(s,n,t,o),a.add(i),n.setItemGraphicEl(t,i)}else a.remove(i)}).remove(function(t){var e=r.getItemGraphicEl(t);e&&a.remove(e)}).execute(),this._data=n},remove:function(t){var e=this.group,i=this._data;this._data=null,i&&i.eachItemGraphicEl(function(t){t&&e.remove(t)})},dispose:du.noop}),af.extend({type:"boxplotBoxPath",shape:{},buildPath:function(t,e){var i=e.points,n=0;for(t.moveTo(i[n][0],i[n][1]),n++;n<4;n++)t.lineTo(i[n][0],i[n][1]);for(t.closePath();n0?lT:uT)}function n(t,e){return e.get(t>0?oT:sT)}var a=t.getData(),r=t.pipelineContext.large;if(a.setVisual({legendSymbol:"roundRect",colorP:i(1,t),colorN:i(-1,t),borderColorP:n(1,t),borderColorN:n(-1,t)}),!e.isSeriesFiltered(t))return!r&&{progress:function(t,e){for(var a;null!=(a=t.next());){var r=e.getItemModel(a),o=e.getItemLayout(a).sign;e.setItemVisual(a,{color:i(o,r),borderColor:n(o,r)})}}}}},cT=Dp.subPixelOptimize,dT=Up.parsePercent,fT=du.retrieve2,pT="undefined"!=typeof Float32Array?Float32Array:Array,gT={seriesType:"candlestick",plan:Mv(),reset:function(t){var e=t.coordinateSystem,i=t.getData(),n=function(t,e){var i,n=t.getBaseAxis(),a="category"===n.type?n.getBandWidth():(i=n.getExtent(),Math.abs(i[1]-i[0])/e.count()),r=dT(fT(t.get("barMaxWidth"),a),a),o=dT(fT(t.get("barMinWidth"),1),a),s=t.get("barWidth");return null!=s?dT(s,a):Math.max(Math.min(a/2,r),o)}(t,i),a=0,r=1,o=["x","y"],s=i.mapDimension(o[a]),l=i.mapDimension(o[r],!0),u=l[0],h=l[1],c=l[2],d=l[3];if(i.setLayout({candleWidth:n,isSimpleBox:n<=1.3}),!(null==s||l.length<4))return{progress:t.pipelineContext.large?function(t,i){for(var n,o,l=new pT(5*t.count),f=0,p=[],g=[];null!=(o=t.next());){var m=i.get(s,o),v=i.get(u,o),y=i.get(h,o),x=i.get(c,o),_=i.get(d,o);isNaN(m)||isNaN(x)||isNaN(_)?(l[f++]=NaN,f+=4):(l[f++]=Xr(i,o,v,y,h),p[a]=m,p[r]=x,n=e.dataToPoint(p,null,g),l[f++]=n?n[0]:NaN,l[f++]=n?n[1]:NaN,p[r]=_,n=e.dataToPoint(p,null,g),l[f++]=n?n[1]:NaN)}i.setLayout("largePoints",l)}:function(t,i){function o(t,i){var n=[];return n[a]=i,n[r]=t,isNaN(i)||isNaN(t)?[NaN,NaN]:e.dataToPoint(n)}function l(t,e,i){var r=e.slice(),o=e.slice();r[a]=cT(r[a]+n/2,1,!1),o[a]=cT(o[a]-n/2,1,!0),i?t.push(r,o):t.push(o,r)}function f(t){return t[a]=cT(t[a],1),t}for(var p;null!=(p=t.next());){var g=i.get(s,p),m=i.get(u,p),v=i.get(h,p),y=i.get(c,p),x=i.get(d,p),_=Math.min(m,v),b=Math.max(m,v),w=o(_,g),S=o(b,g),M=o(y,g),I=o(x,g),A=[];l(A,S,0),l(A,w,1),A.push(f(I),f(S),f(M),f(w)),i.setItemLayout(p,{sign:Xr(i,p,m,v,h),initBaseline:m>v?S[r]:w[r],ends:A,brushRect:function(t,e,i){var s=o(t,i),l=o(e,i);return s[a]-=n/2,l[a]-=n/2,{x:s[0],y:s[1],width:r?n:l[0]-s[0],height:r?l[1]-s[1]:n}}(y,x,g)})}}}}};C_.registerPreprocessor(rT),C_.registerVisual(hT),C_.registerLayout(gT);xv.extend({type:"series.effectScatter",dependencies:["grid","polar"],getInitialData:function(t,e){return Xy(this.getSource(),this)},brushSelector:"point",defaultOption:{coordinateSystem:"cartesian2d",zlevel:0,z:2,legendHoverLink:!0,effectType:"ripple",progressive:0,showEffectOn:"render",rippleEffect:{period:4,scale:2.5,brushType:"fill"},symbolSize:10}});var mT=Fx.createSymbol,vT=Dp.Group,yT=Up.parsePercent,xT=$r.prototype;xT.stopEffectAnimation=function(){this.childAt(1).removeAll()},xT.startEffectAnimation=function(t){for(var e=t.symbolType,i=t.color,n=this.childAt(1),a=0;a<3;a++){var r=mT(e,-1,-1,2,2,i);r.attr({style:{strokeNoScale:!0},z2:99,silent:!0,scale:[.5,.5]});var o=-a/3*t.period+t.effectOffset;r.animate("",!0).when(t.period,{scale:[t.rippleScale/2,t.rippleScale/2]}).delay(o).start(),r.animateStyle(!0).when(t.period,{opacity:0}).delay(o).start(),n.add(r)}qr(n,t)},xT.updateEffectAnimation=function(t){for(var e=this._effectCfg,i=this.childAt(1),n=["symbolType","period","rippleScale"],a=0;a "))},preventIncremental:function(){return!!this.get("effect.show")},getProgressive:function(){var t=this.option.progressive;return null==t?this.option.large?1e4:this.get("progressive"):t},getProgressiveThreshold:function(){var t=this.option.progressiveThreshold;return null==t?this.option.large?2e4:this.get("progressiveThreshold"):t},defaultOption:{coordinateSystem:"geo",zlevel:0,z:2,legendHoverLink:!0,hoverAnimation:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,label:{show:!1,position:"end"},lineStyle:{opacity:.5}}}),DT=Fx.createSymbol,CT=Jr.prototype;CT.createLine=function(t,e,i){return new nI(t,e,i)},CT._updateEffectSymbol=function(t,e){var i=t.getItemModel(e).getModel("effect"),n=i.get("symbolSize"),a=i.get("symbol");du.isArray(n)||(n=[n,n]);var r=i.get("color")||t.getItemVisual(e,"color"),o=this.childAt(1);this._symbolType!==a&&(this.remove(o),(o=DT(a,-.5,-.5,1,1,r)).z2=100,o.culling=!0,this.add(o)),o&&(o.setStyle("shadowColor",r),o.setStyle(i.getItemStyle(["color"])),o.attr("scale",n),o.setColor(r),o.attr("scale",n),this._symbolType=a,this._updateEffectAnimation(t,i,e))},CT._updateEffectAnimation=function(t,e,i){var n=this.childAt(1);if(n){var a=this,r=t.getItemLayout(i),o=1e3*e.get("period"),s=e.get("loop"),l=e.get("constantSpeed"),u=du.retrieve(e.get("delay"),function(e){return e/t.count()*o/3}),h="function"==typeof u;if(n.ignore=!0,this.updateAnimationPoints(n,r),l>0&&(o=this.getLineLength(n)/l*1e3),o!==this._period||s!==this._loop){n.stopAnimation();var c=u;h&&(c=u(i)),n.__t>0&&(c=-o*n.__t),n.__t=0;var d=n.animate("",s).when(o,{__t:1}).delay(c).during(function(){a.updateSymbolPosition(n)});s||d.done(function(){a.remove(n)}),d.start()}this._period=o,this._loop=s}},CT.getLineLength=function(t){return pu.dist(t.__p1,t.__cp1)+pu.dist(t.__cp1,t.__p2)},CT.updateAnimationPoints=function(t,e){t.__p1=e[0],t.__p2=e[1],t.__cp1=e[2]||[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]},CT.updateData=function(t,e,i){this.childAt(0).updateData(t,e,i),this._updateEffectSymbol(t,e)},CT.updateSymbolPosition=function(t){var e=t.__p1,i=t.__p2,n=t.__cp1,a=t.__t,r=t.position,o=hd.quadraticAt,s=hd.quadraticDerivativeAt;r[0]=o(e[0],n[0],i[0],a),r[1]=o(e[1],n[1],i[1],a);var l=s(e[0],n[0],i[0],a),u=s(e[1],n[1],i[1],a);t.rotation=-Math.atan2(u,l)-Math.PI/2,t.ignore=!1},CT.updateLayout=function(t,e){this.childAt(0).updateLayout(t,e);var i=t.getItemModel(e).getModel("effect");this._updateEffectAnimation(t,i,e)},du.inherits(Jr,Dp.Group);var LT=Jr,PT=Qr.prototype;PT._createPolyline=function(t,e,i){var n=t.getItemLayout(e),a=new Dp.Polyline({shape:{points:n}});this.add(a),this._updateCommonStl(t,e,i)},PT.updateData=function(t,e,i){var n=t.hostModel,a=this.childAt(0),r={shape:{points:t.getItemLayout(e)}};Dp.updateProps(a,r,n,e),this._updateCommonStl(t,e,i)},PT._updateCommonStl=function(t,e,i){var n=this.childAt(0),a=t.getItemModel(e),r=t.getItemVisual(e,"color"),o=i&&i.lineStyle,s=i&&i.hoverLineStyle;i&&!t.hasItemOption||(o=a.getModel("lineStyle").getLineStyle(),s=a.getModel("emphasis.lineStyle").getLineStyle()),n.useStyle(du.defaults({strokeNoScale:!0,fill:"none",stroke:r},o)),n.hoverStyle=s,Dp.setHoverStyle(this)},PT.updateLayout=function(t,e){this.childAt(0).setShape("points",t.getItemLayout(e))},du.inherits(Qr,Dp.Group);var kT=Qr,OT=to.prototype;OT.createLine=function(t,e,i){return new kT(t,e,i)},OT.updateAnimationPoints=function(t,e){this._points=e;for(var i=[0],n=0,a=1;a=0&&!(n[o]<=e);o--);o=Math.min(o,a-2)}else{for(var o=r;oe);o++);o=Math.min(o-1,a-2)}pu.lerp(t.position,i[o],i[o+1],(e-n[o])/(n[o+1]-n[o]));var s=i[o+1][0]-i[o][0],l=i[o+1][1]-i[o][1];t.rotation=-Math.atan2(l,s)-Math.PI/2,this._lastFrame=o,this._lastFramePercent=e,t.ignore=!1}},du.inherits(to,LT);var RT=to,NT=Dp.extendShape({shape:{polyline:!1,curveness:0,segs:[]},buildPath:function(t,e){var i=e.segs,n=e.curveness;if(e.polyline)for(o=0;o0){t.moveTo(i[o++],i[o++]);for(var r=1;r0){var c=(s+u)/2-(l-h)*n,d=(l+h)/2-(u-s)*n;t.quadraticCurveTo(c,d,u,h)}else t.lineTo(u,h)}},findDataIndex:function(t,e){var i=this.shape,n=i.segs,a=i.curveness;if(i.polyline)for(var r=0,o=0;o0)for(var l=n[o++],u=n[o++],h=1;h0){var f=(l+c)/2-(u-d)*a,p=(u+d)/2-(c-l)*a;if(Gd.containStroke(l,u,f,p,c,d))return r}else if(zd.containStroke(l,u,c,d))return r;r++}return-1}}),ET=eo.prototype;ET.isPersistent=function(){return!this._incremental},ET.updateData=function(t){this.group.removeAll();var e=new NT({rectHover:!0,cursor:"default"});e.setShape({segs:t.getLayout("linesPoints")}),this._setCommon(e,t),this.group.add(e),this._incremental=null},ET.incrementalPrepareUpdate=function(t){this.group.removeAll(),this._clearIncremental(),t.count()>5e5?(this._incremental||(this._incremental=new op({silent:!0})),this.group.add(this._incremental)):this._incremental=null},ET.incrementalUpdate=function(t,e){var i=new NT;i.setShape({segs:e.getLayout("linesPoints")}),this._setCommon(i,e,!!this._incremental),this._incremental?this._incremental.addDisplayable(i,!0):(i.rectHover=!0,i.cursor="default",i.__startIndex=t.start,this.group.add(i))},ET.remove=function(){this._clearIncremental(),this._incremental=null,this.group.removeAll()},ET._setCommon=function(t,e,i){var n=e.hostModel;t.setShape({polyline:n.get("polyline"),curveness:n.get("lineStyle.curveness")}),t.useStyle(n.getModel("lineStyle").getLineStyle()),t.style.strokeNoScale=!0;var a=e.getVisual("color");a&&t.setStyle("stroke",a),t.setStyle("fill"),i||(t.seriesIndex=n.seriesIndex,t.on("mousemove",function(e){t.dataIndex=null;var i=t.findDataIndex(e.offsetX,e.offsetY);i>0&&(t.dataIndex=i+t.__startIndex)}))},ET._clearIncremental=function(){var t=this._incremental;t&&t.clearDisplaybles()};var zT=eo,VT={seriesType:"lines",plan:Mv(),reset:function(t){var e=t.coordinateSystem,i=t.get("polyline"),n=t.pipelineContext.large;return{progress:function(a,r){var o=[];if(n){var s,l=a.end-a.start;if(i){for(var u=0,h=a.start;h0){var I=r(v)?s:l;v>0&&(v=v*S+w),x[_++]=I[M],x[_++]=I[M+1],x[_++]=I[M+2],x[_++]=I[M+3]*v*256}else _+=4}return c.putImageData(y,0,0),h},_getBrush:function(){var t=this._brushCanvas||(this._brushCanvas=du.createCanvas()),e=this.pointSize+this.blurSize,i=2*e;t.width=i,t.height=i;var n=t.getContext("2d");return n.clearRect(0,0,i,i),n.shadowOffsetX=i,n.shadowBlur=this.blurSize,n.shadowColor="#000",n.beginPath(),n.arc(-e,e,this.pointSize,0,2*Math.PI,!0),n.closePath(),n.fill(),t},_getGradient:function(t,e,i){for(var n=this._gradientPixels,a=n[i]||(n[i]=new Uint8ClampedArray(1024)),r=[0,0,0,0],o=0,s=0;s<256;s++)e[i](s/255,!0,r),a[o++]=r[0],a[o++]=r[1],a[o++]=r[2],a[o++]=r[3];return a}};var HT=no,FT=(C_.extendChartView({type:"heatmap",render:function(t,e,i){var n;e.eachComponent("visualMap",function(e){e.eachTargetSeries(function(i){i===t&&(n=e)})}),this.group.removeAll(),this._incrementalDisplayable=null;var a=t.coordinateSystem;"cartesian2d"===a.type||"calendar"===a.type?this._renderOnCartesianAndCalendar(t,i,0,t.getData().count()):function(t){var e=t.dimensions;return"lng"===e[0]&&"lat"===e[1]}(a)&&this._renderOnGeo(a,t,n,i)},incrementalPrepareRender:function(t,e,i){this.group.removeAll()},incrementalRender:function(t,e,i,n){e.coordinateSystem&&this._renderOnCartesianAndCalendar(e,n,t.start,t.end,!0)},_renderOnCartesianAndCalendar:function(t,e,i,n,a){var r,o,s=t.coordinateSystem;if("cartesian2d"===s.type){var l=s.getAxis("x"),u=s.getAxis("y");r=l.getBandWidth(),o=u.getBandWidth()}for(var h=this.group,c=t.getData(),d=t.getModel("itemStyle").getItemStyle(["color"]),f=t.getModel("emphasis.itemStyle").getItemStyle(),p=t.getModel("label"),g=t.getModel("emphasis.label"),m=s.type,v="cartesian2d"===m?[c.mapDimension("x"),c.mapDimension("y"),c.mapDimension("value")]:[c.mapDimension("time"),c.mapDimension("value")],y=i;y=e[0]&&t<=e[1]}}(y,i.option.range):function(t,e,i){var n=t[1]-t[0],a=(e=du.map(e,function(e){return{interval:[(e.interval[0]-t[0])/n,(e.interval[1]-t[0])/n]}})).length,r=0;return function(t){for(n=r;n=0;n--){var o=e[n].interval;if(o[0]<=t&&t<=o[1]){r=n;break}}return n>=0&&n=e.y&&t[1]<=e.y+e.height:i.contain(i.toLocalCoord(t[1]))&&t[0]>=e.y&&t[0]<=e.y+e.height},pointToData:function(t){var e=this.getAxis();return[e.coordToData(e.toLocalCoord(t["horizontal"===e.orient?0:1]))]},dataToPoint:function(t){var e=this.getAxis(),i=this.getRect(),n=[],a="horizontal"===e.orient?0:1;return t instanceof Array&&(t=t[0]),n[a]=e.toGlobalCoord(e.dataToCoord(+t)),n[1-a]=0===a?i.y+i.height/2:i.x+i.width/2,n}};var eD=bo;vm.register("single",{create:function(t,e){var i=[];return t.eachComponent("singleAxis",function(n,a){var r=new eD(n,t,e);r.name="single_"+a,r.resize(n,e),n.coordinateSystem=r,i.push(r)}),t.eachSeries(function(e){if("singleAxis"===e.get("coordinateSystem")){var i=t.queryComponents({mainType:"singleAxis",index:e.get("singleAxisIndex"),id:e.get("singleAxisId")})[0];e.coordinateSystem=i&&i.coordinateSystem}}),i},dimensions:eD.prototype.dimensions});var iD={layout:function(t,e){e=e||{};var i=t.coordinateSystem,n=t.axis,a={},r=n.position,o=n.orient,s=i.getRect(),l=[s.x,s.x+s.width,s.y,s.y+s.height],u={horizontal:{top:l[2],bottom:l[3]},vertical:{left:l[0],right:l[1]}};a.position=["vertical"===o?u.vertical[r]:l[0],"horizontal"===o?u.horizontal[r]:l[3]],a.rotation=Math.PI/2*{horizontal:0,vertical:1}[o],a.labelDirection=a.tickDirection=a.nameDirection={top:-1,bottom:1,right:1,left:-1}[r],t.get("axisTick.inside")&&(a.tickDirection=-a.tickDirection),du.retrieve(e.labelInside,t.get("axisLabel.inside"))&&(a.labelDirection=-a.labelDirection);var h=e.rotate;return null==h&&(h=t.get("axisLabel.rotate")),a.labelRotation="top"===r?-h:h,a.z2=1,a}},nD=["axisLine","axisTickLabel","axisName"],aD=sw.extend({type:"singleAxis",axisPointerClass:"SingleAxisPointer",render:function(t,e,i,n){var a=this.group;a.removeAll();var r=iD.layout(t),o=new ew(t,r);du.each(nD,o.add,o),a.add(o.getGroup()),t.get("splitLine.show")&&this._splitLine(t),aD.superCall(this,"render",t,e,i,n)},_splitLine:function(t){var e=t.axis;if(!e.scale.isBlank()){var i=t.getModel("splitLine"),n=i.getModel("lineStyle"),a=n.get("width"),r=n.get("color");r=r instanceof Array?r:[r];for(var o=t.coordinateSystem.getRect(),s=e.isHorizontal(),l=[],u=0,h=e.getTicksCoords({tickModel:i}),c=[],d=[],f=0;f=0)&&i({type:"updateAxisPointer",currTrigger:t,x:e&&e.offsetX,y:e&&e.offsetY})})},remove:function(t,e){pD.unregister(e.getZr(),"axisPointer"),gD.superApply(this._model,"remove",arguments)},dispose:function(t,e){pD.unregister("axisPointer",e),gD.superApply(this._model,"dispose",arguments)}}),mD=(0,Wc.makeInner)(),vD=du.clone,yD=du.bind;(Ao.prototype={_group:null,_lastGraphicKey:null,_handle:null,_dragging:!1,_lastValue:null,_lastStatus:null,_payloadInfo:null,animationThreshold:15,render:function(t,e,i,n){var a=e.get("value"),r=e.get("status");if(this._axisModel=t,this._axisPointerModel=e,this._api=i,n||this._lastValue!==a||this._lastStatus!==r){this._lastValue=a,this._lastStatus=r;var o=this._group,s=this._handle;if(!r||"hide"===r)return o&&o.hide(),void(s&&s.hide());o&&o.show(),s&&s.show();var l={};this.makeElOption(l,a,t,e,i);var u=l.graphicKey;u!==this._lastGraphicKey&&this.clear(i),this._lastGraphicKey=u;var h=this._moveAnimation=this.determineAnimation(t,e);if(o){var c=du.curry(To,e,h);this.updatePointerEl(o,l,c,e),this.updateLabelEl(o,l,c,e)}else o=this._group=new Dp.Group,this.createPointerEl(o,l,t,e),this.createLabelEl(o,l,t,e),i.getZr().add(o);Po(o,e,!0),this._renderHandle(a)}},remove:function(t){this.clear(t)},dispose:function(t){this.clear(t)},determineAnimation:function(t,e){var i=e.get("animation"),n=t.axis,a="category"===n.type,r=e.get("snap");if(!r&&!a)return!1;if("auto"===i||null==i){var o=this.animationThreshold;if(a&&n.getBandWidth()>o)return!0;if(r){var s=aw.getAxisInfo(t).seriesDataCount,l=n.getExtent();return Math.abs(l[0]-l[1])/s>o}return!1}return!0===i},makeElOption:function(t,e,i,n,a){},createPointerEl:function(t,e,i,n){var a=e.pointer;if(a){var r=mD(t).pointerEl=new Dp[a.type](vD(e.pointer));t.add(r)}},createLabelEl:function(t,e,i,n){if(e.label){var a=mD(t).labelEl=new Dp.Rect(vD(e.label));t.add(a),Co(a,n)}},updatePointerEl:function(t,e,i){var n=mD(t).pointerEl;n&&(n.setStyle(e.pointer.style),i(n,{shape:e.pointer.shape}))},updateLabelEl:function(t,e,i,n){var a=mD(t).labelEl;a&&(a.setStyle(e.label.style),i(a,{shape:e.label.shape,position:e.label.position}),Co(a,n))},_renderHandle:function(t){if(!this._dragging&&this.updateHandleTransform){var e=this._axisPointerModel,i=this._api.getZr(),n=this._handle,a=e.getModel("handle"),r=e.get("status");if(!a.get("show")||!r||"hide"===r)return n&&i.remove(n),void(this._handle=null);var o;this._handle||(o=!0,n=this._handle=Dp.createIcon(a.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(t){mc.stop(t.event)},onmousedown:yD(this._onHandleDragMove,this,0,0),drift:yD(this._onHandleDragMove,this),ondragend:yD(this._onHandleDragEnd,this)}),i.add(n)),Po(n,e,!1);n.setStyle(a.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var s=a.get("size");du.isArray(s)||(s=[s,s]),n.attr("scale",[s[0]/2,s[1]/2]),Nv.createOrUpdate(this,"_doDispatchAxisPointer",a.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,o)}},_moveHandleToValue:function(t,e){To(this._axisPointerModel,!e&&this._moveAnimation,this._handle,Lo(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},_onHandleDragMove:function(t,e){var i=this._handle;if(i){this._dragging=!0;var n=this.updateHandleTransform(Lo(i),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=n,i.stopAnimation(),i.attr(Lo(n)),mD(i).lastProp=null,this._doDispatchAxisPointer()}},_doDispatchAxisPointer:function(){if(this._handle){var t=this._payloadInfo,e=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:t.cursorPoint[0],y:t.cursorPoint[1],tooltipOption:t.tooltipOption,axesInfo:[{axisDim:e.axis.dim,axisIndex:e.componentIndex}]})}},_onHandleDragEnd:function(t){this._dragging=!1;if(this._handle){var e=this._axisPointerModel.get("value");this._moveHandleToValue(e),this._api.dispatchAction({type:"hideTip"})}},getHandleTransform:null,updateHandleTransform:null,clear:function(t){this._lastValue=null,this._lastStatus=null;var e=t.getZr(),i=this._group,n=this._handle;e&&i&&(this._lastGraphicKey=null,i&&e.remove(i),n&&e.remove(n),this._group=null,this._handle=null,this._payloadInfo=null)},doClear:function(){},buildLabel:function(t,e,i){return i=i||0,{x:t[i],y:t[1-i],width:e[i],height:e[1-i]}}}).constructor=Ao,Yc.enableClassExtend(Ao);var xD=Ao,_D={buildElStyle:function(t){var e,i=t.get("type"),n=t.getModel(i+"Style");return"line"===i?(e=n.getLineStyle()).fill=null:"shadow"===i&&((e=n.getAreaStyle()).stroke=null),e},buildLabelElOption:ko,getValueLabel:Oo,getTransformedPosition:Ro,buildCartesianSingleLabelElOption:function(t,e,i,n,a,r){var o=ew.innerTextLayout(i.rotation,0,i.labelDirection);i.labelMargin=a.get("label.margin"),ko(e,n,a,r,{position:Ro(n.axis,t,i),align:o.textAlign,verticalAlign:o.textVerticalAlign})},makeLineShape:function(t,e,i){return i=i||0,{x1:t[i],y1:t[1-i],x2:e[i],y2:e[1-i]}},makeRectShape:function(t,e,i){return i=i||0,{x:t[i],y:t[1-i],width:e[i],height:e[1-i]}},makeSectorShape:function(t,e,i,n,a,r){return{cx:t,cy:e,r0:i,r:n,startAngle:a,endAngle:r,clockwise:!0}}},bD=xD.extend({makeElOption:function(t,e,i,n,a){var r=i.axis,o=r.grid,s=n.get("type"),l=No(o,r).getOtherAxis(r).getGlobalExtent(),u=r.toGlobalCoord(r.dataToCoord(e,!0));if(s&&"none"!==s){var h=_D.buildElStyle(n),c=wD[s](r,u,l,h);c.style=h,t.graphicKey=c.type,t.pointer=c}var d=lw.layout(o.model,i);_D.buildCartesianSingleLabelElOption(e,t,d,i,n,a)},getHandleTransform:function(t,e,i){var n=lw.layout(e.axis.grid.model,e,{labelInside:!1});return n.labelMargin=i.get("handle.margin"),{position:_D.getTransformedPosition(e.axis,t,n),rotation:n.rotation+(n.labelDirection<0?Math.PI:0)}},updateHandleTransform:function(t,e,i,n){var a=i.axis,r=a.grid,o=a.getGlobalExtent(!0),s=No(r,a).getOtherAxis(a).getGlobalExtent(),l="x"===a.dim?0:1,u=t.position;u[l]+=e[l],u[l]=Math.min(o[1],u[l]),u[l]=Math.max(o[0],u[l]);var h=(s[1]+s[0])/2,c=[h,h];c[l]=u[l];return{position:u,rotation:t.rotation,cursorPoint:c,tooltipOption:[{verticalAlign:"middle"},{align:"center"}][l]}}}),wD={line:function(t,e,i,n){var a=_D.makeLineShape([e,i[0]],[e,i[1]],Eo(t));return Dp.subPixelOptimizeLine({shape:a,style:n}),{type:"Line",shape:a}},shadow:function(t,e,i,n){var a=Math.max(1,t.getBandWidth()),r=i[1]-i[0];return{type:"Rect",shape:_D.makeRectShape([e-a/2,i[0]],[a,r],Eo(t))}}};sw.registerAxisPointerClass("CartesianAxisPointer",bD);C_.registerPreprocessor(function(t){if(t){(!t.axisPointer||0===t.axisPointer.length)&&(t.axisPointer={});var e=t.axisPointer.link;e&&!du.isArray(e)&&(t.axisPointer.link=[e])}}),C_.registerProcessor(C_.PRIORITY.PROCESSOR.STATISTIC,function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=aw.collect(t,e)}),C_.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},cD);var SD=["x","y"],MD=["width","height"],ID=xD.extend({makeElOption:function(t,e,i,n,a){var r=i.axis,o=r.coordinateSystem,s=Vo(o,1-zo(r)),l=o.dataToPoint(e)[0],u=n.get("type");if(u&&"none"!==u){var h=_D.buildElStyle(n),c=AD[u](r,l,s,h);c.style=h,t.graphicKey=c.type,t.pointer=c}var d=iD.layout(i);_D.buildCartesianSingleLabelElOption(e,t,d,i,n,a)},getHandleTransform:function(t,e,i){var n=iD.layout(e,{labelInside:!1});return n.labelMargin=i.get("handle.margin"),{position:_D.getTransformedPosition(e.axis,t,n),rotation:n.rotation+(n.labelDirection<0?Math.PI:0)}},updateHandleTransform:function(t,e,i,n){var a=i.axis,r=a.coordinateSystem,o=zo(a),s=Vo(r,o),l=t.position;l[o]+=e[o],l[o]=Math.min(s[1],l[o]),l[o]=Math.max(s[0],l[o]);var u=Vo(r,1-o),h=(u[1]+u[0])/2,c=[h,h];return c[o]=l[o],{position:l,rotation:t.rotation,cursorPoint:c,tooltipOption:{verticalAlign:"middle"}}}}),AD={line:function(t,e,i,n){var a=_D.makeLineShape([e,i[0]],[e,i[1]],zo(t));return Dp.subPixelOptimizeLine({shape:a,style:n}),{type:"Line",shape:a}},shadow:function(t,e,i,n){var a=t.getBandWidth(),r=i[1]-i[0];return{type:"Rect",shape:_D.makeRectShape([e-a/2,i[0]],[a,r],zo(t))}}};sw.registerAxisPointerClass("SingleAxisPointer",ID);C_.extendComponentView({type:"single"});var TD=py.getDimensionTypeByAxis,DD=qp.encodeHTML,CD=xv.extend({type:"series.themeRiver",dependencies:["singleAxis"],nameMap:null,init:function(t){CD.superApply(this,"init",arguments),this.legendDataProvider=function(){return this.getRawData()}},fixData:function(t){for(var e=t.length,i=zA().key(function(t){return t[2]}).entries(t),n=du.map(i,function(t){return{name:t.key,dataList:t.values}}),a=n.length,r=-1,o=-1,s=0;sr&&(r=l,o=s)}for(var u=0;u1;)e=e.parentNode;var i=t.getAncestors()[0];return du.indexOf(i.children,e)}(t)%o]}(e,0,a),c=o.getModel("itemStyle").getItemStyle();if("normal"===i)u=c;else{var d=o.getModel(i+".itemStyle").getItemStyle();u=du.merge(d,c)}u=du.defaults({lineJoin:"bevel",fill:u.fill||h},u),t?(r.setShape(l),r.shape.r=s.r0,Dp.updateProps(r,{shape:{r:s.r}},n,e.dataIndex),r.useStyle(u)):"object"==typeof u.fill&&u.fill.type||"object"==typeof r.style.fill&&r.style.fill.type?(Dp.updateProps(r,{shape:l},n),r.useStyle(u)):Dp.updateProps(r,{shape:l,style:u},n),this._updateLabel(n,h,i);var f=o.getShallow("cursor");if(f&&r.attr("cursor",f),t){var p=n.getShallow("highlightPolicy");this._initEvents(r,e,n,p)}this._seriesModel=n||this._seriesModel,this._ecModel=a||this._ecModel},GD.onEmphasis=function(t){var e=this;this.node.hostTree.root.eachNode(function(i){i.piece&&(e.node===i?i.piece.updateData(!1,i,"emphasis"):!function(t,e,i){return i!==zD.NONE&&(i===zD.SELF?t===e:i===zD.ANCESTOR?t===e||t.isAncestorOf(e):t===e||t.isDescendantOf(e))}(i,e.node,t)?t!==zD.NONE&&i.piece.childAt(0).trigger("downplay"):i.piece.childAt(0).trigger("highlight"))})},GD.onNormal=function(){this.node.hostTree.root.eachNode(function(t){t.piece&&t.piece.updateData(!1,t,"normal")})},GD.onHighlight=function(){this.updateData(!1,this.node,"highlight")},GD.onDownplay=function(){this.updateData(!1,this.node,"downplay")},GD._updateLabel=function(t,e,i){function n(t){var e=o.get(t);return null==e?r.get(t):e}var a=this.node.getModel(),r=a.getModel("label"),o="normal"===i||"emphasis"===i?r:a.getModel(i+".label"),s=a.getModel("emphasis.label"),l=du.retrieve(t.getFormattedLabel(this.node.dataIndex,"normal",null,null,"label"),this.node.name);!1===n("show")&&(l="");var u=this.node.getLayout(),h=o.get("minAngle");null==h&&(h=r.get("minAngle")),h=h/180*Math.PI;var c=u.endAngle-u.startAngle;null!=h&&Math.abs(c)Math.PI/2?"right":"left"):x&&"center"!==x?"left"===x?(f=u.r0+y,p>Math.PI/2&&(x="right")):"right"===x&&(f=u.r-y,p>Math.PI/2&&(x="left")):(f=(u.r+u.r0)/2,x="center"),d.attr("style",{text:l,textAlign:x,textVerticalAlign:n("verticalAlign")||"middle",opacity:n("opacity")});var _=f*g+u.cx,b=f*m+u.cy;d.attr("position",[_,b]);var w=n("rotate"),S=0;"radial"===w?(S=-p)<-Math.PI/2&&(S+=Math.PI):"tangential"===w?(S=Math.PI/2-p)>Math.PI/2?S-=Math.PI:S<-Math.PI/2&&(S+=Math.PI):"number"==typeof w&&(S=w*Math.PI/180),d.attr("rotation",S)},GD._initEvents=function(t,e,i,n){t.off("mouseover").off("mouseout").off("emphasis").off("normal");var a=this,r=function(){a.onEmphasis(n)},o=function(){a.onNormal()};i.isAnimationEnabled()&&t.on("mouseover",r).on("mouseout",o).on("emphasis",r).on("normal",o).on("downplay",function(){a.onDownplay()}).on("highlight",function(){a.onHighlight()})},du.inherits(Ho,Dp.Group);var HD=Ho,FD=(Pv.extend({type:"sunburst",init:function(){},render:function(t,e,i,n){var a=this;this.seriesModel=t,this.api=i,this.ecModel=e;var r=t.getData(),o=r.tree.root,s=t.getViewRoot(),l=this.group,u=t.get("renderLabelForZeroData"),h=[];s.eachNode(function(t){h.push(t)});var c=this._oldChildren||[];if(function(i,n){function a(t){return t.getId()}function s(a,s){!function(i,n){if(u||!i||i.getValue()||(i=null),i!==o&&n!==o)if(n&&n.piece)i?(n.piece.updateData(!1,i,"normal",t,e),r.setItemGraphicEl(i.dataIndex,n.piece)):function(t){t&&t.piece&&(l.remove(t.piece),t.piece=null)}(n);else if(i){var a=new HD(i,t,e);l.add(a),r.setItemGraphicEl(i.dataIndex,a)}}(null==a?null:i[a],null==s?null:n[s])}0===i.length&&0===n.length||new hy(n,i,a,a).add(s).update(s).remove(du.curry(s,null)).execute()}(h,c),function(i,n){if(n.depth>0){a.virtualPiece?a.virtualPiece.updateData(!1,i,"normal",t,e):(a.virtualPiece=new HD(i,t,e),l.add(a.virtualPiece)),n.piece._onclickEvent&&n.piece.off("click",n.piece._onclickEvent);var r=function(t){a._rootToNode(n.parentNode)};n.piece._onclickEvent=r,a.virtualPiece.on("click",r)}else a.virtualPiece&&(l.remove(a.virtualPiece),a.virtualPiece=null)}(o,s),n&&n.highlight&&n.highlight.piece){var d=t.getShallow("highlightPolicy");n.highlight.piece.onEmphasis(d)}else if(n&&n.unhighlight){var f=this.virtualPiece;!f&&o.children.length&&(f=o.children[0].piece),f&&f.onNormal()}this._initEvents(),this._oldChildren=h},dispose:function(){},_initEvents:function(){var t=this,e=function(e){var i=!1;t.seriesModel.getViewRoot().eachNode(function(n){if(!i&&n.piece&&n.piece.childAt(0)===e.target){var a=n.getModel().get("nodeClick");if("rootToNode"===a)t._rootToNode(n);else if("link"===a){var r=n.getModel(),o=r.get("link");if(o){var s=r.get("target",!0)||"_blank";window.open(o,s)}}i=!0}})};this.group._onclickEvent&&this.group.off("click",this.group._onclickEvent),this.group.on("click",e),this.group._onclickEvent=e},_rootToNode:function(t){t!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:"sunburstRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t})},containPoint:function(t,e){var i=e.getData().getItemLayout(0);if(i){var n=t[0]-i.cx,a=t[1]-i.cy,r=Math.sqrt(n*n+a*a);return r<=i.r&&r>=i.r0}}}),"sunburstRootToNode");C_.registerAction({type:FD,update:"updateView"},function(t,e){e.eachComponent({mainType:"series",subType:"sunburst",query:t},function(e,i){var n=KS.retrieveTargetInfo(t,[FD],e);if(n){var a=e.getViewRoot();a&&(t.direction=KS.aboveViewRoot(a,n.node)?"rollUp":"drillDown"),e.resetViewRoot(n.node)}})});var WD="sunburstHighlight";C_.registerAction({type:WD,update:"updateView"},function(t,e){e.eachComponent({mainType:"series",subType:"sunburst",query:t},function(e,i){var n=KS.retrieveTargetInfo(t,[WD],e);n&&(t.highlight=n.node)})});C_.registerAction({type:"sunburstUnhighlight",update:"updateView"},function(t,e){e.eachComponent({mainType:"series",subType:"sunburst",query:t},function(e,i){t.unhighlight=!0})});var UD=Up.parsePercent,ZD=2*Math.PI,jD=Math.PI/180,YD=function(t,e,i,n){e.eachSeriesByType(t,function(t){var e=t.get("center"),n=t.get("radius");du.isArray(n)||(n=[0,n]),du.isArray(e)||(e=[e,e]);var a=i.getWidth(),r=i.getHeight(),o=Math.min(a,r),s=UD(e[0],a),l=UD(e[1],r),u=UD(n[0],o/2),h=UD(n[1],o/2),c=-t.get("startAngle")*jD,d=t.get("minAngle")*jD,f=t.getData().tree.root,p=t.getViewRoot(),g=p.depth,m=t.get("sort");null!=m&&Fo(p,m);var v=0;du.each(p.children,function(t){!isNaN(t.getValue())&&v++});var y=p.getValue(),x=Math.PI/(y||v)*2,_=p.depth>0,b=p.height-(_?-1:1),w=(h-u)/(b||1),S=t.get("clockwise"),M=t.get("stillShowZeroSum"),I=ZD,A=0,T=S?1:-1,D=function(t,e){if(t){var i=e;if(t!==f){var n=t.getValue(),a=0===y&&M?x:n*x;an[1]&&n.reverse(),{coordSys:{type:"polar",cx:t.cx,cy:t.cy,r:n[1],r0:n[0]},api:{coord:du.bind(function(n){var a=e.dataToRadius(n[0]),r=i.dataToAngle(n[1]),o=t.coordToPoint([a,r]);return o.push(a,r*Math.PI/180),o}),size:du.bind(function(t,e){return du.map(["Radius","Angle"],function(i,n){var a=this["get"+i+"Axis"](),r=e[n],o=t[n]/2,s="dataTo"+i,l="category"===a.type?a.getBandWidth():Math.abs(a[s](r-o)-a[s](r+o));return"Angle"===i&&(l=l*Math.PI/180),l},this)},t)}}},calendar:function(t){var e=t.getRect(),i=t.getRangeInfo();return{coordSys:{type:"calendar",x:e.x,y:e.y,width:e.width,height:e.height,cellWidth:t.getCellWidth(),cellHeight:t.getCellHeight(),rangeInfo:{start:i.start,end:i.end,weeks:i.weeks,dayCount:i.allDay}},api:{coord:function(e,i){return t.dataToPoint(e,i)}}}}};C_.extendSeriesModel({type:"series.custom",dependencies:["grid","polar","geo","singleAxis","calendar"],defaultOption:{coordinateSystem:"cartesian2d",zlevel:0,z:2,legendHoverLink:!0},getInitialData:function(t,e){return Xy(this.getSource(),this)}}),C_.extendChartView({type:"custom",_data:null,render:function(t,e,i){var n=this._data,a=t.getData(),r=this.group,o=Uo(t,a,e,i);this.group.removeAll(),a.diff(n).add(function(e){Zo(null,e,o(e),t,r,a)}).update(function(e,i){Zo(n.getItemGraphicEl(i),e,o(e),t,r,a)}).remove(function(t){var e=n.getItemGraphicEl(t);e&&r.remove(e)}).execute(),this._data=a},incrementalPrepareRender:function(t,e,i){this.group.removeAll(),this._data=null},incrementalRender:function(t,e,i,n){for(var a=e.getData(),r=Uo(e,a,i,n),o=t.start;o=0;l--)null==a[l]?a.splice(l,1):delete a[l].$action},_flatten:function(t,e,i){du.each(t,function(t){if(t){i&&(t.parentOption=i),e.push(t);var n=t.children;"group"===t.type&&n&&this._flatten(n,e,t),delete t.children}},this)},useElOptionsToUpdate:function(){var t=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,t}});C_.extendComponentView({type:"graphic",init:function(t,e){this._elMap=du.createHashMap(),this._lastGraphicModel},render:function(t,e,i){t!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=t,this._updateElements(t,i),this._relocate(t,i)},_updateElements:function(t,e){var i=t.useElOptionsToUpdate();if(i){var n=this._elMap,a=this.group;du.each(i,function(t){var e=t.$action,i=t.id,r=n.get(i),o=t.parentId,s=null!=o?n.get(o):a;if("text"===t.type){var l=t.style;t.hv&&t.hv[1]&&(l.textVerticalAlign=l.textBaseline=null),!l.hasOwnProperty("textFill")&&l.fill&&(l.textFill=l.fill),!l.hasOwnProperty("textStroke")&&l.stroke&&(l.textStroke=l.stroke)}var u=function(t){return t=du.extend({},t),du.each(["id","parentId","$action","hv","bounding"].concat(ng.LOCATION_PARAMS),function(e){delete t[e]}),t}(t);e&&"merge"!==e?"replace"===e?($o(r,n),qo(i,s,u,n)):"remove"===e&&$o(r,n):r?r.attr(u):qo(i,s,u,n);var h=n.get(i);h&&(h.__ecGraphicWidth=t.width,h.__ecGraphicHeight=t.height)})}},_relocate:function(t,e){for(var i=t.option.elements,n=this.group,a=this._elMap,r=i.length-1;r>=0;r--){var o=i[r],s=a.get(o.id);if(s){var l=s.parent,u=l===n?{width:e.getWidth(),height:e.getHeight()}:{width:l.__ecGraphicWidth||0,height:l.__ecGraphicHeight||0};ng.positionElement(s,o,u,null,{hv:o.hv,boundingMode:o.bounding})}}},_clear:function(){var t=this._elMap;t.each(function(e){$o(e,t)}),this._elMap=du.createHashMap()},dispose:function(){this._clear()}});var nC=Wc.isNameSpecified,aC=C_.extendComponentModel({type:"legend.plain",dependencies:["series"],layoutMode:{type:"box",ignoreSize:!0},init:function(t,e,i){this.mergeDefaultAndTheme(t,i),t.selected=t.selected||{}},mergeOption:function(t){aC.superCall(this,"mergeOption",t)},optionUpdated:function(){this._updateData(this.ecModel);var t=this._data;if(t[0]&&"single"===this.get("selectedMode")){for(var e=!1,i=0;i=0},defaultOption:{zlevel:0,z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,inactiveColor:"#ccc",textStyle:{color:"#333"},selectedMode:!0,tooltip:{show:!1}}}),rC=aC;C_.registerAction("legendToggleSelect","legendselectchanged",du.curry(Jo,"toggleSelected")),C_.registerAction("legendSelect","legendselected",du.curry(Jo,"select")),C_.registerAction("legendUnSelect","legendunselected",du.curry(Jo,"unSelect"));var oC=ng.getLayoutRect,sC=ng.box,lC=ng.positionElement,uC={layout:function(t,e,i){var n=e.getBoxLayoutParams(),a=e.get("padding"),r={width:i.getWidth(),height:i.getHeight()},o=oC(n,r,a);sC(e.get("orient"),t,e.get("itemGap"),o.width,o.height),lC(t,n,r,a)},makeBackground:function(t,e){var i=qp.normalizeCssArray(e.get("padding")),n=e.getItemStyle(["color","opacity"]);return n.fill=e.get("backgroundColor"),t=new Dp.Rect({shape:{x:t.x-i[3],y:t.y-i[0],width:t.width+i[1]+i[3],height:t.height+i[0]+i[2],r:e.get("borderRadius")},style:n,silent:!0,z2:-1})}},hC=Fx.createSymbol,cC=uC.makeBackground,dC=du.curry,fC=du.each,pC=Dp.Group,gC=C_.extendComponentView({type:"legend.plain",newlineDisabled:!1,init:function(){this.group.add(this._contentGroup=new pC),this._backgroundEl},getContentGroup:function(){return this._contentGroup},render:function(t,e,i){if(this.resetInner(),t.get("show",!0)){var n=t.get("align");n&&"auto"!==n||(n="right"===t.get("left")&&"vertical"===t.get("orient")?"right":"left"),this.renderInner(n,t,e,i);var a=t.getBoxLayoutParams(),r={width:i.getWidth(),height:i.getHeight()},o=t.get("padding"),s=ng.getLayoutRect(a,r,o),l=this.layoutInner(t,n,s),u=ng.getLayoutRect(du.defaults({width:l.width,height:l.height},a),r,o);this.group.attr("position",[u.x-l.x,u.y-l.y]),this.group.add(this._backgroundEl=cC(l,t))}},resetInner:function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl)},renderInner:function(t,e,i,n){var a=this.getContentGroup(),r=du.createHashMap(),o=e.get("selectedMode"),s=[];i.eachRawSeries(function(t){!t.get("legendHoverLink")&&s.push(t.id)}),fC(e.getData(),function(l,u){var h=l.get("name");if(this.newlineDisabled||""!==h&&"\n"!==h){var c=i.getSeriesByName(h)[0];if(!r.get(h))if(c){var d=c.getData(),f=d.getVisual("color");"function"==typeof f&&(f=f(c.getDataParams(0)));var p=d.getVisual("legendSymbol")||"roundRect",g=d.getVisual("symbol");this._createItem(h,u,l,e,p,g,t,f,o).on("click",dC(Qo,h,n)).on("mouseover",dC(ts,c,null,n,s)).on("mouseout",dC(es,c,null,n,s)),r.set(h,!0)}else i.eachRawSeries(function(i){if(!r.get(h)&&i.legendDataProvider){var a=i.legendDataProvider(),c=a.indexOfName(h);if(c<0)return;var d=a.getItemVisual(c,"color");this._createItem(h,u,l,e,"roundRect",null,t,d,o).on("click",dC(Qo,h,n)).on("mouseover",dC(ts,i,h,n,s)).on("mouseout",dC(es,i,h,n,s)),r.set(h,!0)}},this)}else a.add(new pC({newline:!0}))},this)},_createItem:function(t,e,i,n,a,r,o,s,l){var u=n.get("itemWidth"),h=n.get("itemHeight"),c=n.get("inactiveColor"),d=n.get("symbolKeepAspect"),f=n.isSelected(t),p=new pC,g=i.getModel("textStyle"),m=i.get("icon"),v=i.getModel("tooltip"),y=v.parentModel;if(a=m||a,p.add(hC(a,0,0,u,h,f?s:c,null==d||d)),!m&&r&&(r!==a||"none"==r)){var x=.8*h;"none"===r&&(r="circle"),p.add(hC(r,(u-x)/2,(h-x)/2,x,x,f?s:c,null==d||d))}var _="left"===o?u+5:-5,b=o,w=n.get("formatter"),S=t;"string"==typeof w&&w?S=w.replace("{name}",null!=t?t:""):"function"==typeof w&&(S=w(t)),p.add(new Dp.Text({style:Dp.setTextStyle({},g,{text:S,x:_,y:h/2,textFill:f?g.getTextColor():c,textAlign:b,textVerticalAlign:"middle"})}));var M=new Dp.Rect({shape:p.getBoundingRect(),invisible:!0,tooltip:v.get("show")?du.extend({content:t,formatter:y.get("formatter",!0)||function(){return t},formatterParams:{componentType:"legend",legendIndex:n.componentIndex,name:t,$vars:["name"]}},v.option):null});return p.add(M),p.eachChild(function(t){t.silent=!0}),M.silent=!l,this.getContentGroup().add(p),Dp.setHoverStyle(p),p.__legendDataIndex=e,p},layoutInner:function(t,e,i){var n=this.getContentGroup();ng.box(t.get("orient"),n,t.get("itemGap"),i.width,i.height);var a=n.getBoundingRect();return n.attr("position",[-a.x,-a.y]),this.group.getBoundingRect()}}),mC=function(t){var e=t.findComponents({mainType:"legend"});e&&e.length&&t.filterSeries(function(t){for(var i=0;ii[s],f=[-h.x,-h.y];f[o]=n.position[o];var p=[0,0],g=[-c.x,-c.y],m=du.retrieve2(t.get("pageButtonGap",!0),t.get("itemGap",!0));if(d){"end"===t.get("pageButtonPosition",!0)?g[o]+=i[s]-c[s]:p[o]+=c[s]+m}g[1-o]+=h[l]/2-c[l]/2,n.attr("position",f),a.attr("position",p),r.attr("position",g);var v=this.group.getBoundingRect();if((v={x:0,y:0})[s]=d?i[s]:h[s],v[l]=Math.max(h[l],c[l]),v[u]=Math.min(0,c[u]+g[1-o]),a.__rectSize=i[s],d){var y={x:0,y:0};y[s]=Math.max(i[s]-c[s]-m,0),y[l]=v[l],a.setClipPath(new Dp.Rect({shape:y})),a.__rectSize=y[s]}else r.eachChild(function(t){t.attr({invisible:!0,silent:!0})});var x=this._getPageInfo(t);return null!=x.pageIndex&&Dp.updateProps(n,{position:x.contentPosition},!!d&&t),this._updatePageInfoView(t,x),v},_pageGo:function(t,e,i){var n=this._getPageInfo(e)[t];null!=n&&i.dispatchAction({type:"legendScroll",scrollDataIndex:n,legendId:e.id})},_updatePageInfoView:function(t,e){var i=this._controllerGroup;du.each(["pagePrev","pageNext"],function(n){var a=null!=e[n+"DataIndex"],r=i.childOfName(n);r&&(r.setStyle("fill",a?t.get("pageIconColor",!0):t.get("pageIconInactiveColor",!0)),r.cursor=a?"pointer":"default")});var n=i.childOfName("pageText"),a=t.get("pageFormatter"),r=e.pageIndex,o=null!=r?r+1:0,s=e.pageCount;n&&a&&n.setStyle("text",du.isString(a)?a.replace("{current}",o).replace("{total}",s):a({current:o,total:s}))},_getPageInfo:function(t){function e(t){var e=t.getBoundingRect().clone();return e[f]+=t.position[h],e}var i,n,a,r,o=t.get("scrollDataIndex",!0),s=this.getContentGroup(),l=s.getBoundingRect(),u=this._containerGroup.__rectSize,h=t.getOrient().index,c=bC[h],d=bC[1-h],f=wC[h],p=s.position.slice();this._showController?s.eachChild(function(t){t.__legendDataIndex===o&&(r=t)}):r=s.childAt(0);var g=u?Math.ceil(l[c]/u):0;if(r){var m=r.getBoundingRect(),v=r.position[h]+m[f];p[h]=-v-l[f],i=Math.floor(g*(v+m[f]+u/2)/l[c]),i=l[c]&&g?Math.max(0,Math.min(g-1,i)):-1;var y={x:0,y:0};y[c]=u,y[d]=l[d],y[f]=-p[h]-l[f];var x,_=s.children();if(s.eachChild(function(t,i){var n=e(t);n.intersect(y)&&(null==x&&(x=i),a=t.__legendDataIndex),i===_.length-1&&n[f]+n[c]<=y[f]+y[c]&&(a=null)}),null!=x){var b=e(_[x]);if(y[f]=b[f]+b[c]-y[c],x<=0&&b[f]>=y[f])n=null;else{for(;x>0&&e(_[x-1]).intersect(y);)x--;n=_[x].__legendDataIndex}}}return{contentPosition:p,pageIndex:i,pageCount:g,pagePrevDataIndex:n,pageNextDataIndex:a}}});C_.registerAction("legendScroll","legendscroll",function(t,e){var i=t.scrollDataIndex;null!=i&&e.eachComponent({mainType:"legend",subType:"scroll",query:t},function(t){t.setScrollDataIndex(i)})});C_.extendComponentModel({type:"tooltip",dependencies:["axisPointer"],defaultOption:{zlevel:0,z:8,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",confine:!1,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"rgba(50,50,50,0.7)",borderColor:"#333",borderRadius:4,borderWidth:0,padding:5,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#fff",fontSize:14}}});var MC=du.each,IC=qp.toCamelCase,AC=["","-webkit-","-moz-","-o-"];ns.prototype={constructor:ns,_enterable:!0,update:function(){var t=this._container,e=t.currentStyle||document.defaultView.getComputedStyle(t),i=t.style;"absolute"!==i.position&&"absolute"!==e.position&&(i.position="relative")},show:function(t){clearTimeout(this._hideTimeout);var e=this.el;e.style.cssText="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+function(t){var e=[],i=t.get("transitionDuration"),n=t.get("backgroundColor"),a=t.getModel("textStyle"),r=t.get("padding");return i&&e.push(function(t){var e="left "+t+"s cubic-bezier(0.23, 1, 0.32, 1),top "+t+"s cubic-bezier(0.23, 1, 0.32, 1)";return du.map(AC,function(t){return t+"transition:"+e}).join(";")}(i)),n&&(Jl.canvasSupported?e.push("background-Color:"+n):(e.push("background-Color:#"+Wu.toHex(n)),e.push("filter:alpha(opacity=70)"))),MC(["width","color","radius"],function(i){var n="border-"+i,a=IC(n),r=t.get(a);null!=r&&e.push(n+":"+r+("color"===i?"":"px"))}),e.push(function(t){var e=[],i=t.get("fontSize"),n=t.getTextColor();return n&&e.push("color:"+n),e.push("font:"+t.getFont()),i&&e.push("line-height:"+Math.round(3*i/2)+"px"),MC(["decoration","align"],function(i){var n=t.get(i);n&&e.push("text-"+i+":"+n)}),e.join(";")}(a)),null!=r&&e.push("padding:"+qp.normalizeCssArray(r).join("px ")+"px"),e.join(";")+";"}(t)+";left:"+this._x+"px;top:"+this._y+"px;"+(t.get("extraCssText")||""),e.style.display=e.innerHTML?"block":"none",this._show=!0},setContent:function(t){this.el.innerHTML=null==t?"":t},setEnterable:function(t){this._enterable=t},getSize:function(){var t=this.el;return[t.clientWidth,t.clientHeight]},moveTo:function(t,e){var i,n=this._zr;n&&n.painter&&(i=n.painter.getViewportRootOffset())&&(t+=i.offsetLeft,e+=i.offsetTop);var a=this.el.style;a.left=t+"px",a.top=e+"px",this._x=t,this._y=e},hide:function(){this.el.style.display="none",this._show=!1},hideLater:function(t){!this._show||this._inContent&&this._enterable||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(du.bind(this.hide,this),t)):this.hide())},isShow:function(){return this._show}};var TC=ns,DC=du.bind,CC=du.each,LC=Up.parsePercent,PC=new Dp.Rect({shape:{x:-1,y:-1,width:2,height:2}});C_.extendComponentView({type:"tooltip",init:function(t,e){if(!Jl.node){var i=new TC(e.getDom(),e);this._tooltipContent=i}},render:function(t,e,i){if(!Jl.node&&!Jl.wxa){this.group.removeAll(),this._tooltipModel=t,this._ecModel=e,this._api=i,this._lastDataByCoordSys=null,this._alwaysShowContent=t.get("alwaysShowContent");var n=this._tooltipContent;n.update(),n.setEnterable(t.get("enterable")),this._initGlobalListener(),this._keepShow()}},_initGlobalListener:function(){var t=this._tooltipModel.get("triggerOn");pD.register("itemTooltip",this._api,DC(function(e,i,n){"none"!==t&&(t.indexOf(e)>=0?this._tryShow(i,n):"leave"===e&&this._hide(n))},this))},_keepShow:function(){var t=this._tooltipModel,e=this._ecModel,i=this._api;if(null!=this._lastX&&null!=this._lastY&&"none"!==t.get("triggerOn")){var n=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){n.manuallyShowTip(t,e,i,{x:n._lastX,y:n._lastY})})}},manuallyShowTip:function(t,e,i,n){if(n.from!==this.uid&&!Jl.node){var a=rs(n,i);this._ticket="";var r=n.dataByCoordSys;if(n.tooltip&&null!=n.x&&null!=n.y){var o=PC;o.position=[n.x,n.y],o.update(),o.tooltip=n.tooltip,this._tryShow({offsetX:n.x,offsetY:n.y,target:o},a)}else if(r)this._tryShow({offsetX:n.x,offsetY:n.y,position:n.position,event:{},dataByCoordSys:n.dataByCoordSys,tooltipOption:n.tooltipOption},a);else if(null!=n.seriesIndex){if(this._manuallyAxisShowTip(t,e,i,n))return;var s=oD(n,e),l=s.point[0],u=s.point[1];null!=l&&null!=u&&this._tryShow({offsetX:l,offsetY:u,position:n.position,target:s.el,event:{}},a)}else null!=n.x&&null!=n.y&&(i.dispatchAction({type:"updateAxisPointer",x:n.x,y:n.y}),this._tryShow({offsetX:n.x,offsetY:n.y,position:n.position,target:i.getZr().findHover(n.x,n.y).target,event:{}},a))}},manuallyHideTip:function(t,e,i,n){var a=this._tooltipContent;!this._alwaysShowContent&&this._tooltipModel&&a.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=null,n.from!==this.uid&&this._hide(rs(n,i))},_manuallyAxisShowTip:function(t,e,i,n){var a=n.seriesIndex,r=n.dataIndex,o=e.getComponent("axisPointer").coordSysAxesInfo;if(null!=a&&null!=r&&null!=o){var s=e.getSeriesByIndex(a);if(s){if("axis"===(t=as([s.getData().getItemModel(r),s,(s.coordinateSystem||{}).model,t])).get("trigger"))return i.dispatchAction({type:"updateAxisPointer",seriesIndex:a,dataIndex:r,position:n.position}),!0}}},_tryShow:function(t,e){var i=t.target;if(this._tooltipModel){this._lastX=t.offsetX,this._lastY=t.offsetY;var n=t.dataByCoordSys;n&&n.length?this._showAxisTooltip(n,t):i&&null!=i.dataIndex?(this._lastDataByCoordSys=null,this._showSeriesItemTooltip(t,i,e)):i&&i.tooltip?(this._lastDataByCoordSys=null,this._showComponentItemTooltip(t,i,e)):(this._lastDataByCoordSys=null,this._hide(e))}},_showOrMove:function(t,e){var i=t.get("showDelay");e=du.bind(e,this),clearTimeout(this._showTimout),i>0?this._showTimout=setTimeout(e,i):e()},_showAxisTooltip:function(t,e){var i=this._ecModel,n=this._tooltipModel,a=[e.offsetX,e.offsetY],r=[],o=[],s=as([e.tooltipOption,n]);CC(t,function(t){CC(t.dataByAxis,function(t){var e=i.getComponent(t.axisDim+"Axis",t.axisIndex),n=t.value,a=[];if(e&&null!=n){var s=_D.getValueLabel(n,e.axis,i,t.seriesDataIndices,t.valueLabelOpt);du.each(t.seriesDataIndices,function(r){var l=i.getSeriesByIndex(r.seriesIndex),u=r.dataIndexInside,h=l&&l.getDataParams(u);h.axisDim=t.axisDim,h.axisIndex=t.axisIndex,h.axisType=t.axisType,h.axisId=t.axisId,h.axisValue=kx.getAxisRawValue(e.axis,n),h.axisValueLabel=s,h&&(o.push(h),a.push(l.formatTooltip(u,!0)))});var l=s;r.push((l?qp.encodeHTML(l)+"
":"")+a.join("
"))}})},this),r.reverse(),r=r.join("

");var l=e.position;this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(t)?this._updatePosition(s,l,a[0],a[1],this._tooltipContent,o):this._showTooltipContent(s,r,o,Math.random(),a[0],a[1],l)})},_showSeriesItemTooltip:function(t,e,i){var n=this._ecModel,a=e.seriesIndex,r=n.getSeriesByIndex(a),o=e.dataModel||r,s=e.dataIndex,l=e.dataType,u=o.getData(),h=as([u.getItemModel(s),o,r&&(r.coordinateSystem||{}).model,this._tooltipModel]),c=h.get("trigger");if(null==c||"item"===c){var d=o.getDataParams(s,l),f=o.formatTooltip(s,!1,l),p="item_"+o.name+"_"+s;this._showOrMove(h,function(){this._showTooltipContent(h,f,d,p,t.offsetX,t.offsetY,t.position,t.target)}),i({type:"showTip",dataIndexInside:s,dataIndex:u.getRawIndex(s),seriesIndex:a,from:this.uid})}},_showComponentItemTooltip:function(t,e,i){var n=e.tooltip;if("string"==typeof n){var a=n;n={content:a,formatter:a}}var r=new Vp(n,this._tooltipModel,this._ecModel),o=r.get("content"),s=Math.random();this._showOrMove(r,function(){this._showTooltipContent(r,o,r.get("formatterParams")||{},s,t.offsetX,t.offsetY,t.position,e)}),i({type:"showTip",from:this.uid})},_showTooltipContent:function(t,e,i,n,a,r,o,s){if(this._ticket="",t.get("showContent")&&t.get("show")){var l=this._tooltipContent,u=t.get("formatter");o=o||t.get("position");var h=e;if(u&&"string"==typeof u)h=qp.formatTpl(u,i,!0);else if("function"==typeof u){var c=DC(function(e,n){e===this._ticket&&(l.setContent(n),this._updatePosition(t,o,a,r,l,i,s))},this);this._ticket=n,h=u(i,n,c)}l.setContent(h),l.show(t),this._updatePosition(t,o,a,r,l,i,s)}},_updatePosition:function(t,e,i,n,a,r,o){var s=this._api.getWidth(),l=this._api.getHeight();e=e||t.get("position");var u=a.getSize(),h=t.get("align"),c=t.get("verticalAlign"),d=o&&o.getBoundingRect().clone();if(o&&d.applyTransform(o.transform),"function"==typeof e&&(e=e([i,n],r,a.el,d,{viewSize:[s,l],contentSize:u.slice()})),du.isArray(e))i=LC(e[0],s),n=LC(e[1],l);else if(du.isObject(e)){e.width=u[0],e.height=u[1];var f=ng.getLayoutRect(e,{width:s,height:l});i=f.x,n=f.y,h=null,c=null}else if("string"==typeof e&&o){p=function(t,e,i){var n=i[0],a=i[1],r=0,o=0,s=e.width,l=e.height;switch(t){case"inside":r=e.x+s/2-n/2,o=e.y+l/2-a/2;break;case"top":r=e.x+s/2-n/2,o=e.y-a-5;break;case"bottom":r=e.x+s/2-n/2,o=e.y+l+5;break;case"left":r=e.x-n-5,o=e.y+l/2-a/2;break;case"right":r=e.x+s+5,o=e.y+l/2-a/2}return[r,o]}(e,d,u);i=p[0],n=p[1]}else{p=function(t,e,i,n,a,r,o){var s=os(i),l=s.width,u=s.height;return null!=r&&(t+l+r>n?t-=l+r:t+=r),null!=o&&(e+u+o>a?e-=u+o:e+=o),[t,e]}(i,n,a.el,s,l,h?null:20,c?null:20);i=p[0],n=p[1]}if(h&&(i-=ss(h)?u[0]/2:"right"===h?u[0]:0),c&&(n-=ss(c)?u[1]/2:"bottom"===c?u[1]:0),t.get("confine")){var p=function(t,e,i,n,a){var r=os(i),o=r.width,s=r.height;return t=Math.min(t+o,n)-o,e=Math.min(e+s,a)-s,t=Math.max(t,0),e=Math.max(e,0),[t,e]}(i,n,a.el,s,l);i=p[0],n=p[1]}a.moveTo(i,n)},_updateContentNotChangedOnAxis:function(t){var e=this._lastDataByCoordSys,i=!!e&&e.length===t.length;return i&&CC(e,function(e,n){var a=e.dataByAxis||{},r=(t[n]||{}).dataByAxis||[];(i&=a.length===r.length)&&CC(a,function(t,e){var n=r[e]||{},a=t.seriesDataIndices||[],o=n.seriesDataIndices||[];(i&=t.value===n.value&&t.axisType===n.axisType&&t.axisId===n.axisId&&a.length===o.length)&&CC(a,function(t,e){var n=o[e];i&=t.seriesIndex===n.seriesIndex&&t.dataIndex===n.dataIndex})})}),this._lastDataByCoordSys=t,!!i},_hide:function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},dispose:function(t,e){Jl.node||Jl.wxa||(this._tooltipContent.hide(),pD.unregister("itemTooltip",e))}});C_.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},function(){}),C_.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},function(){});var kC=Up.parsePercent,OC=Fy.isDimensionStacked,RC=function(t,e,i){var n=i.getWidth(),a=i.getHeight(),r={},o=function(t,e){var i={};du.each(t,function(t,e){var n=t.getData(),a=t.coordinateSystem.getBaseAxis(),r=a.getExtent(),o="category"===a.type?a.getBandWidth():Math.abs(r[1]-r[0])/n.count(),s=i[us(a)]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},l=s.stacks;i[us(a)]=s;var u=ls(t);l[u]||s.autoWidthCount++,l[u]=l[u]||{width:0,maxWidth:0};var h=kC(t.get("barWidth"),o),c=kC(t.get("barMaxWidth"),o),d=t.get("barGap"),f=t.get("barCategoryGap");h&&!l[u].width&&(h=Math.min(s.remainedWidth,h),l[u].width=h,s.remainedWidth-=h),c&&(l[u].maxWidth=c),null!=d&&(s.gap=d),null!=f&&(s.categoryGap=f)});var n={};return du.each(i,function(t,e){n[e]={};var i=t.stacks,a=t.bandWidth,r=kC(t.categoryGap,a),o=kC(t.gap,1),s=t.remainedWidth,l=t.autoWidthCount,u=(s-r)/(l+(l-1)*o);u=Math.max(u,0),du.each(i,function(t,e){var i=t.maxWidth;i&&i=0?"p":"n",T=b;_&&(r[l][I]||(r[l][I]={p:b,n:b}),T=r[l][I][A]);var D,C,L,P;if("radius"===d.dim){var k=d.dataToRadius(M)-b,O=s.dataToAngle(I);Math.abs(k)o;)l+=360*u;return[s,l]},coordToPoint:function(t){var e=t[0],i=t[1]/180*Math.PI;return[Math.cos(i)*e+this.cx,-Math.sin(i)*e+this.cy]}};var VC=zC,BC=ug.extend({type:"polarAxis",axis:null,getCoordSysModel:function(){return this.ecModel.queryComponents({mainType:"polar",index:this.option.polarIndex,id:this.option.polarId})[0]}});du.merge(BC.prototype,Ox);var GC={angle:{startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:!1}},radius:{splitNumber:5}};Db("angle",BC,ds,GC.angle),Db("radius",BC,ds,GC.radius);C_.extendComponentModel({type:"polar",dependencies:["polarAxis","angleAxis"],coordinateSystem:null,findAxisModel:function(t){var e;return this.ecModel.eachComponent(t,function(t){t.getCoordSysModel()===this&&(e=t)},this),e},defaultOption:{zlevel:0,z:0,center:["50%","50%"],radius:"80%"}});var HC=Up.parsePercent,FC=kx.createScaleByModel,WC=kx.niceScaleExtent,UC=Fy.getStackedDimension,ZC={dimensions:VC.prototype.dimensions,create:function(t,e){var i=[];return t.eachComponent("polar",function(t,n){var a=new VC(n);a.update=function(t,e){var i=this,n=i.getAngleAxis(),a=i.getRadiusAxis();if(n.scale.setExtent(1/0,-1/0),a.scale.setExtent(1/0,-1/0),t.eachSeries(function(t){if(t.coordinateSystem===i){var e=t.getData();du.each(e.mapDimension("radius",!0),function(t){a.scale.unionExtentFromData(e,UC(e,t))}),du.each(e.mapDimension("angle",!0),function(t){n.scale.unionExtentFromData(e,UC(e,t))})}}),WC(n.scale,n.model),WC(a.scale,a.model),"category"===n.type&&!n.onBand){var r=n.getExtent(),o=360/n.scale.count();n.inverse?r[1]+=o:r[1]-=o,n.setExtent(r[0],r[1])}};var r=a.getRadiusAxis(),o=a.getAngleAxis(),s=t.findAxisModel("radiusAxis"),l=t.findAxisModel("angleAxis");fs(r,s),fs(o,l),function(t,e,i){var n=e.get("center"),a=i.getWidth(),r=i.getHeight();t.cx=HC(n[0],a),t.cy=HC(n[1],r);var o=t.getRadiusAxis(),s=Math.min(a,r)/2,l=HC(e.get("radius"),s);o.inverse?o.setExtent(l,0):o.setExtent(0,l)}(a,t,e),i.push(a),t.coordinateSystem=a,a.model=t}),t.eachSeries(function(e){if("polar"===e.get("coordinateSystem")){var i=t.queryComponents({mainType:"polar",index:e.get("polarIndex"),id:e.get("polarId")})[0];e.coordinateSystem=i.coordinateSystem}}),i}};vm.register("polar",ZC);var jC=["axisLine","axisLabel","axisTick","splitLine","splitArea"],YC=(sw.extend({type:"angleAxis",axisPointerClass:"PolarAxisPointer",render:function(t,e){if(this.group.removeAll(),t.get("show")){var i=t.axis,n=i.polar,a=n.getRadiusAxis().getExtent(),r=i.getTicksCoords(),o=du.map(i.getViewLabels(),function(t){return(t=du.clone(t)).coord=i.dataToCoord(t.tickValue),t});ms(o),ms(r),du.each(jC,function(e){!t.get(e+".show")||i.scale.isBlank()&&"axisLine"!==e||this["_"+e](t,n,r,a,o)},this)}},_axisLine:function(t,e,i,n){var a=t.getModel("axisLine.lineStyle"),r=new Dp.Circle({shape:{cx:e.cx,cy:e.cy,r:n[gs(e)]},style:a.getLineStyle(),z2:1,silent:!0});r.style.fill=null,this.group.add(r)},_axisTick:function(t,e,i,n){var a=t.getModel("axisTick"),r=(a.get("inside")?-1:1)*a.get("length"),o=n[gs(e)],s=du.map(i,function(t){return new Dp.Line({shape:ps(e,[o,o+r],t.coord)})});this.group.add(Dp.mergePath(s,{style:du.defaults(a.getModel("lineStyle").getLineStyle(),{stroke:t.get("axisLine.lineStyle.color")})}))},_axisLabel:function(t,e,i,n,a){var r=t.getCategories(!0),o=t.getModel("axisLabel"),s=o.get("margin");du.each(a,function(i,a){var l=o,u=i.tickValue,h=n[gs(e)],c=e.coordToPoint([h+s,i.coord]),d=e.cx,f=e.cy,p=Math.abs(c[0]-d)/h<.3?"center":c[0]>d?"left":"right",g=Math.abs(c[1]-f)/h<.3?"middle":c[1]>f?"top":"bottom";r&&r[u]&&r[u].textStyle&&(l=new Vp(r[u].textStyle,o,o.ecModel));var m=new Dp.Text({silent:!0});this.group.add(m),Dp.setTextStyle(m.style,l,{x:c[0],y:c[1],textFill:l.getTextColor()||t.get("axisLine.lineStyle.color"),text:i.formattedLabel,textAlign:p,textVerticalAlign:g})},this)},_splitLine:function(t,e,i,n){var a=t.getModel("splitLine").getModel("lineStyle"),r=a.get("color"),o=0;r=r instanceof Array?r:[r];for(var s=[],l=0;lm?"left":"right",h=Math.abs(l[1]-v)/g<.3?"middle":l[1]>v?"top":"bottom"}return{position:l,align:u,verticalAlign:h}}(e,i,0,s,n.get("label.margin"));_D.buildLabelElOption(t,i,n,a,d)}})),$C={line:function(t,e,i,n,a){return"angle"===t.dim?{type:"Line",shape:_D.makeLineShape(e.coordToPoint([n[0],i]),e.coordToPoint([n[1],i]))}:{type:"Circle",shape:{cx:e.cx,cy:e.cy,r:i}}},shadow:function(t,e,i,n,a){var r=Math.max(1,t.getBandWidth()),o=Math.PI/180;return"angle"===t.dim?{type:"Sector",shape:_D.makeSectorShape(e.cx,e.cy,n[0],n[1],(-i-r/2)*o,(r/2-i)*o)}:{type:"Sector",shape:_D.makeSectorShape(e.cx,e.cy,i-r/2,i+r/2,0,2*Math.PI)}}};sw.registerAxisPointerClass("PolarAxisPointer",qC);C_.registerLayout(du.curry(RC,"bar")),C_.extendComponentView({type:"polar"});var KC=ug.extend({type:"geo",coordinateSystem:null,layoutMode:"box",init:function(t){ug.prototype.init.apply(this,arguments),Wc.defaultEmphasis(t,"label",["show"])},optionUpdated:function(){var t=this.option,e=this;t.regions=fS.getFilledRegions(t.regions,t.map,t.nameMap),this._optionModelMap=du.reduce(t.regions||[],function(t,i){return i.name&&t.set(i.name,new Vp(i,e)),t},du.createHashMap()),this.updateSelectedMap(t.regions)},defaultOption:{zlevel:0,z:0,show:!0,left:"center",top:"center",aspectScale:.75,silent:!1,map:"",boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",color:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},regions:[]},getRegionModel:function(t){return this._optionModelMap.get(t)||new Vp(null,this,this.ecModel)},getFormattedLabel:function(t,e){var i=this.getRegionModel(t).get("label."+e+".formatter"),n={name:t};return"function"==typeof i?(n.status=e,i(n)):"string"==typeof i?i.replace("{a}",null!=t?t:""):void 0},setZoom:function(t){this.option.zoom=t},setCenter:function(t){this.option.center=t}});du.mixin(KC,Tw);C_.extendComponentView({type:"geo",init:function(t,e){var i=new IS(e,!0);this._mapDraw=i,this.group.add(i.group)},render:function(t,e,i,n){if(!n||"geoToggleSelect"!==n.type||n.from!==this.uid){var a=this._mapDraw;t.get("show")?a.draw(t,e,i,this,n):this._mapDraw.group.removeAll(),this.group.silent=t.get("silent")}},dispose:function(){this._mapDraw&&this._mapDraw.remove()}});vs("toggleSelected",{type:"geoToggleSelect",event:"geoselectchanged"}),vs("select",{type:"geoSelect",event:"geoselected"}),vs("unSelect",{type:"geoUnSelect",event:"geounselected"});var JC=["rect","polygon","keep","clear"],QC=function(t,e){var i=t&&t.brush;if(du.isArray(i)||(i=i?[i]:[]),i.length){var n=[];du.each(i,function(t){var e=t.hasOwnProperty("toolbox")?t.toolbox:[];e instanceof Array&&(n=n.concat(e))});var a=t&&t.toolbox;du.isArray(a)&&(a=a[0]),a||(a={feature:{}},t.toolbox=[a]);var r=a.feature||(a.feature={}),o=r.brush||(r.brush={}),s=o.type||(o.type=[]);s.push.apply(s,n),function(t){var e={};du.each(t,function(t){e[t]=1}),t.length=0,du.each(e,function(e,i){t.push(i)})}(s),e&&!s.length&&s.push.apply(s,JC)}},tL=du.each,eL={createVisualMappings:function(t,e,i){var n={};return tL(e,function(e){var a=n[e]=function(){var t=function(){};return t.prototype.__hidden=t.prototype,new t}();tL(t[e],function(t,n){if(TM.isValidType(n)){var r={type:n,visual:t};i&&i(r,e),a[n]=new TM(r),"opacity"===n&&((r=du.clone(r)).type="colorAlpha",a.__hidden.__alphaForOpacity=new TM(r))}})}),n},replaceVisualOption:function(t,e,i){var n;du.each(i,function(t){e.hasOwnProperty(t)&&ys(e[t])&&(n=!0)}),n&&du.each(i,function(i){e.hasOwnProperty(i)&&ys(e[i])?t[i]=du.clone(e[i]):delete t[i]})},applyVisual:function(t,e,i,n,a,r){function o(t,o){l=null==r?t:o;var u=i.getRawDataItem(l);if(!u||!1!==u.visualMap)for(var h=n.call(a,t),c=e[h],d=s[h],f=0,p=d.length;f=0},lL.findTargetInfo=function(t,e){for(var i=this._targetInfoList,n=Is(e,t),a=0;a=0||aL(n,t.getAxis("y").model)>=0)&&r.push(t)}),e.push({panelId:"grid--"+t.id,gridModel:t,coordSysModel:t,coordSys:r[0],coordSyses:r,getPanelRect:cL.grid,xAxisDeclared:o[t.id],yAxisDeclared:s[t.id]})}))},geo:function(t,e){nL(t.geoModels,function(t){var i=t.coordinateSystem;e.push({panelId:"geo--"+t.id,geoModel:t,coordSysModel:t,coordSys:i,coordSyses:[i],getPanelRect:cL.geo})})}},hL=[function(t,e){var i=t.xAxisModel,n=t.yAxisModel,a=t.gridModel;return!a&&i&&(a=i.axis.grid.model),!a&&n&&(a=n.axis.grid.model),a&&a===e.gridModel},function(t,e){var i=t.geoModel;return i&&i===e.geoModel}],cL={grid:function(){return this.coordSys.grid.getRect().clone()},geo:function(){var t=this.coordSys,e=t.getBoundingRect().clone();return e.applyTransform(Dp.getTransform(t)),e}},dL={lineX:rL(As,0),lineY:rL(As,1),rect:function(t,e,i){var n=e[oL[t]]([i[0][0],i[1][0]]),a=e[oL[t]]([i[0][1],i[1][1]]),r=[Ms([n[0],a[0]]),Ms([n[1],a[1]])];return{values:r,xyMinMax:r}},polygon:function(t,e,i){var n=[[1/0,-1/0],[1/0,-1/0]];return{values:du.map(i,function(i){var a=e[oL[t]](i);return n[0][0]=Math.min(n[0][0],a[0]),n[1][0]=Math.min(n[1][0],a[1]),n[0][1]=Math.max(n[0][1],a[0]),n[1][1]=Math.max(n[1][1],a[1]),a}),xyMinMax:n}}},fL={lineX:rL(Ts,0),lineY:rL(Ts,1),rect:function(t,e,i){return[[t[0][0]-i[0]*e[0][0],t[0][1]-i[0]*e[0][1]],[t[1][0]-i[1]*e[1][0],t[1][1]-i[1]*e[1][1]]]},polygon:function(t,e,i){return du.map(t,function(t,n){return[t[0]-i[0]*e[n][0],t[1]-i[1]*e[n][1]]})}},pL=Ss,gL=["inBrush","outOfBrush"],mL="__ecBrushSelect",vL="__ecInBrushSelectEvent",yL=C_.PRIORITY.VISUAL.BRUSH;C_.registerLayout(yL,function(t,e,i){t.eachComponent({mainType:"brush"},function(e){i&&"takeGlobalCursor"===i.type&&e.setBrushOption("brush"===i.key?i.brushOption:{brushType:!1});(e.brushTargetManager=new pL(e.option,t)).setInputRanges(e.areas,t)})}),C_.registerVisual(yL,function(t,e,i){var n,a,r=[];t.eachComponent({mainType:"brush"},function(e,i){function o(t){return"all"===h||c[t]}function s(t){return!!t.length}var l={brushId:e.id,brushIndex:i,brushName:e.name,areas:du.clone(e.areas),selected:[]};r.push(l);var u=e.option,h=u.brushLink,c=[],d=[],f=[],p=0;i||(n=u.throttleType,a=u.throttleDelay);var g=du.map(e.areas,function(t){return function(t){var e=t.selectors={};return du.each(iL[t.brushType],function(i,n){e[n]=function(n){return i(n,e,t)}}),t}(du.defaults({boundingRect:xL[t.brushType](t)},t))}),m=eL.createVisualMappings(e.option,gL,function(t){t.mappingMethod="fixed"});du.isArray(h)&&du.each(h,function(t){c[t]=1}),t.eachSeries(function(i,n){var a=f[n]=[];"parallel"===i.subType?function(t,e){var i=t.coordinateSystem;p|=i.hasAxisBrushed(),o(e)&&i.eachActiveState(t.getData(),function(t,e){"active"===t&&(d[e]=1)})}(i,n):function(i,n,a){var r=Ls(i);if(r&&!function(t,e){var i=t.option.seriesIndex;return null!=i&&"all"!==i&&(du.isArray(i)?du.indexOf(i,e)<0:e!==i)}(e,n)&&(du.each(g,function(n){r[n.brushType]&&e.brushTargetManager.controlSeries(n,i,t)&&a.push(n),p|=s(a)}),o(n)&&s(a))){var l=i.getData();l.each(function(t){Cs(r,a,l,t)&&(d[t]=1)})}}(i,n,a)}),t.eachSeries(function(t,e){var i={seriesId:t.id,seriesIndex:e,seriesName:t.name,dataIndex:[]};l.selected.push(i);var n=Ls(t),a=f[e],r=t.getData(),u=o(e)?function(t){return d[t]?(i.dataIndex.push(r.getRawIndex(t)),"inBrush"):"outOfBrush"}:function(t){return Cs(n,a,r,t)?(i.dataIndex.push(r.getRawIndex(t)),"inBrush"):"outOfBrush"};(o(e)?p:s(a))&&eL.applyVisual(gL,m,r,u)})}),function(t,e,i,n,a){if(a){var r=t.getZr();r[vL]||(r[mL]||(r[mL]=function(t,e){if(!t.isDisposed()){var i=t.getZr();i[vL]=!0,t.dispatchAction({type:"brushSelect",batch:e}),i[vL]=!1}}),Nv.createOrUpdate(r,mL,i,e)(t,n))}}(e,n,a,r,i)});var xL={lineX:du.noop,lineY:du.noop,rect:function(t){return Ps(t.range)},polygon:function(t){for(var e,i=t.range,n=0,a=i.length;ne[0][1]&&(e[0][1]=r[0]),r[1]e[1][1]&&(e[1][1]=r[1])}return e&&Ps(e)}},_L=["#ddd"];C_.extendComponentModel({type:"brush",dependencies:["geo","grid","xAxis","yAxis","parallel","series"],defaultOption:{toolbox:null,brushLink:null,seriesIndex:"all",geoIndex:null,xAxisIndex:null,yAxisIndex:null,brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(120,140,180,0.3)",borderColor:"rgba(120,140,180,0.8)"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},areas:[],brushType:null,brushOption:{},coordInfoList:[],optionUpdated:function(t,e){var i=this.option;!e&&eL.replaceVisualOption(i,t,["inBrush","outOfBrush"]);var n=i.inBrush=i.inBrush||{};i.outOfBrush=i.outOfBrush||{color:_L},n.hasOwnProperty("liftZ")||(n.liftZ=5)},setAreas:function(t){t&&(this.areas=du.map(t,function(t){return ks(this.option,t)},this))},setBrushOption:function(t){this.brushOption=ks(this.option,t),this.brushType=this.brushOption.brushType}}),C_.extendComponentView({type:"brush",init:function(t,e){this.ecModel=t,this.api=e,this.model,(this._brushController=new SA(e.getZr())).on("brush",du.bind(this._onBrush,this)).mount()},render:function(t){return this.model=t,Os.apply(this,arguments)},updateTransform:Os,updateView:Os,dispose:function(){this._brushController.dispose()},_onBrush:function(t,e){var i=this.model.id;this.model.brushTargetManager.setOutputRanges(t,this.ecModel),(!e.isEnd||e.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:i,areas:du.clone(t),$from:i})}});C_.registerAction({type:"brush",event:"brush"},function(t,e){e.eachComponent({mainType:"brush",query:t},function(e){e.setAreas(t.areas)})}),C_.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},function(){});var bL={},wL={register:function(t,e){bL[t]=e},get:function(t){return bL[t]}},SL=zv.toolbox.brush;Rs.defaultOption={show:!0,type:["rect","polygon","lineX","lineY","keep","clear"],icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:du.clone(SL.title)};var ML=Rs.prototype;ML.render=ML.updateView=function(t,e,i){var n,a,r;e.eachComponent({mainType:"brush"},function(t){n=t.brushType,a=t.brushOption.brushMode||"single",r|=t.areas.length}),this._brushType=n,this._brushMode=a,du.each(t.get("type",!0),function(e){t.setIconStatus(e,("keep"===e?"multiple"===a:"clear"===e?r:e===n)?"emphasis":"normal")})},ML.getIcons=function(){var t=this.model,e=t.get("icon",!0),i={};return du.each(t.get("type",!0),function(t){e[t]&&(i[t]=e[t])}),i},ML.onclick=function(t,e,i){var n=this._brushType,a=this._brushMode;"clear"===i?(e.dispatchAction({type:"axisAreaSelect",intervals:[]}),e.dispatchAction({type:"brush",command:"clear",areas:[]})):e.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:"keep"===i?n:n!==i&&i,brushMode:"keep"===i?"multiple"===a?"single":"multiple":a}})},wL.register("brush",Rs);C_.registerPreprocessor(QC);Ns.prototype={constructor:Ns,type:"calendar",dimensions:["time","value"],getDimensionsInfo:function(){return[{name:"time",type:"time"},"value"]},getRangeInfo:function(){return this._rangeInfo},getModel:function(){return this._model},getRect:function(){return this._rect},getCellWidth:function(){return this._sw},getCellHeight:function(){return this._sh},getOrient:function(){return this._orient},getFirstDayOfWeek:function(){return this._firstDayOfWeek},getDateInfo:function(t){var e=(t=Up.parseDate(t)).getFullYear(),i=t.getMonth()+1;i=i<10?"0"+i:i;var n=t.getDate();n=n<10?"0"+n:n;var a=t.getDay();return a=Math.abs((a+7-this.getFirstDayOfWeek())%7),{y:e,m:i,d:n,day:a,time:t.getTime(),formatedDate:e+"-"+i+"-"+n,date:t}},getNextNDay:function(t,e){return 0===(e=e||0)?this.getDateInfo(t):((t=new Date(this.getDateInfo(t).time)).setDate(t.getDate()+e),this.getDateInfo(t))},update:function(t,e){function i(t,e){return null!=t[e]&&"auto"!==t[e]}this._firstDayOfWeek=+this._model.getModel("dayLabel").get("firstDay"),this._orient=this._model.get("orient"),this._lineWidth=this._model.getModel("itemStyle").getItemStyle().lineWidth||0,this._rangeInfo=this._getRangeInfo(this._initRangeOption());var n=this._rangeInfo.weeks||1,a=["width","height"],r=this._model.get("cellSize").slice(),o=this._model.getBoxLayoutParams(),s="horizontal"===this._orient?[n,7]:[7,n];du.each([0,1],function(t){i(r,t)&&(o[a[t]]=r[t]*s[t])});var l={width:e.getWidth(),height:e.getHeight()},u=this._rect=ng.getLayoutRect(o,l);du.each([0,1],function(t){i(r,t)||(r[t]=u[a[t]]/s[t])}),this._sw=r[0],this._sh=r[1]},dataToPoint:function(t,e){du.isArray(t)&&(t=t[0]),null==e&&(e=!0);var i=this.getDateInfo(t),n=this._rangeInfo,a=i.formatedDate;if(e&&!(i.time>=n.start.time&&i.timer.end.time&&t.reverse(),t},_getRangeInfo:function(t){var e;(t=[this.getDateInfo(t[0]),this.getDateInfo(t[1])])[0].time>t[1].time&&(e=!0,t.reverse());var i=Math.floor(t[1].time/864e5)-Math.floor(t[0].time/864e5)+1,n=new Date(t[0].time),a=n.getDate(),r=t[1].date.getDate();if(n.setDate(a+i-1),n.getDate()!==r)for(var o=n.getTime()-t[1].time>0?1:-1;n.getDate()!==r&&(n.getTime()-t[1].time)*o>0;)i-=o,n.setDate(a+i-1);var s=Math.floor((i+t[0].day+6)/7),l=e?1-s:s-1;return e&&t.reverse(),{range:[t[0].formatedDate,t[1].formatedDate],start:t[0],end:t[1],allDay:i,weeks:s,nthWeek:l,fweek:t[0].day,lweek:t[1].day}},_getDateByWeeksAndDay:function(t,e,i){var n=this._getRangeInfo(i);if(t>n.weeks||0===t&&en.lweek)return!1;var a=7*(t-1)-n.fweek+e,r=new Date(n.start.time);return r.setDate(n.start.d+a),this.getDateInfo(r)}},Ns.dimensions=Ns.prototype.dimensions,Ns.getDimensionsInfo=Ns.prototype.getDimensionsInfo,Ns.create=function(t,e){var i=[];return t.eachComponent("calendar",function(n){var a=new Ns(n,t,e);i.push(a),n.coordinateSystem=a}),t.eachSeries(function(t){"calendar"===t.get("coordinateSystem")&&(t.coordinateSystem=i[t.get("calendarIndex")||0])}),i},vm.register("calendar",Ns);var IL=ng.getLayoutParams,AL=ng.sizeCalculable,TL=ng.mergeLayoutParam,DL=ug.extend({type:"calendar",coordinateSystem:null,defaultOption:{zlevel:0,z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{color:"#fff",borderWidth:1,borderColor:"#ccc"},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",nameMap:"en",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",nameMap:"en",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},init:function(t,e,i,n){var a=IL(t);DL.superApply(this,"init",arguments),zs(t,a)},mergeOption:function(t,e){DL.superApply(this,"mergeOption",arguments),zs(this.option,t)}}),CL={EN:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],CN:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"]},LL={EN:["S","M","T","W","T","F","S"],CN:["日","一","二","三","四","五","六"]},PL=(C_.extendComponentView({type:"calendar",_tlpoints:null,_blpoints:null,_firstDayOfMonth:null,_firstDayPoints:null,render:function(t,e,i){var n=this.group;n.removeAll();var a=t.coordinateSystem,r=a.getRangeInfo(),o=a.getOrient();this._renderDayRect(t,r,n),this._renderLines(t,r,o,n),this._renderYearText(t,r,o,n),this._renderMonthText(t,o,n),this._renderWeekText(t,r,o,n)},_renderDayRect:function(t,e,i){for(var n=t.coordinateSystem,a=t.getModel("itemStyle").getItemStyle(),r=n.getCellWidth(),o=n.getCellHeight(),s=e.start.time;s<=e.end.time;s=n.getNextNDay(s,1).time){var l=n.dataToRect([s],!1).tl,u=new Dp.Rect({shape:{x:l[0],y:l[1],width:r,height:o},cursor:"default",style:a});i.add(u)}},_renderLines:function(t,e,i,n){function a(e){r._firstDayOfMonth.push(o.getDateInfo(e)),r._firstDayPoints.push(o.dataToRect([e],!1).tl);var a=r._getLinePointsOfOneWeek(t,e,i);r._tlpoints.push(a[0]),r._blpoints.push(a[a.length-1]),l&&r._drawSplitline(a,s,n)}var r=this,o=t.coordinateSystem,s=t.getModel("splitLine.lineStyle").getLineStyle(),l=t.get("splitLine.show"),u=s.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var h=e.start,c=0;h.time<=e.end.time;c++){a(h.formatedDate),0===c&&(h=o.getDateInfo(e.start.y+"-"+e.start.m));var d=h.date;d.setMonth(d.getMonth()+1),h=o.getDateInfo(d)}a(o.getNextNDay(e.end.time,1).formatedDate),l&&this._drawSplitline(r._getEdgesPoints(r._tlpoints,u,i),s,n),l&&this._drawSplitline(r._getEdgesPoints(r._blpoints,u,i),s,n)},_getEdgesPoints:function(t,e,i){var n=[t[0].slice(),t[t.length-1].slice()],a="horizontal"===i?0:1;return n[0][a]=n[0][a]-e/2,n[1][a]=n[1][a]+e/2,n},_drawSplitline:function(t,e,i){var n=new Dp.Polyline({z2:20,shape:{points:t},style:e});i.add(n)},_getLinePointsOfOneWeek:function(t,e,i){var n=t.coordinateSystem;e=n.getDateInfo(e);for(var a=[],r=0;r<7;r++){var o=n.getNextNDay(e.time,r),s=n.dataToRect([o.time],!1);a[2*o.day]=s.tl,a[2*o.day+1]=s["horizontal"===i?"bl":"tr"]}return a},_formatterLabel:function(t,e){return"string"==typeof t&&t?qp.formatTplSimple(t,e):"function"==typeof t?t(e):e.nameMap},_yearTextPositionControl:function(t,e,i,n,a){e=e.slice();var r=["center","bottom"];"bottom"===n?(e[1]+=a,r=["center","top"]):"left"===n?e[0]-=a:"right"===n?(e[0]+=a,r=["center","top"]):e[1]-=a;var o=0;return"left"!==n&&"right"!==n||(o=Math.PI/2),{rotation:o,position:e,style:{textAlign:r[0],textVerticalAlign:r[1]}}},_renderYearText:function(t,e,i,n){var a=t.getModel("yearLabel");if(a.get("show")){var r=a.get("margin"),o=a.get("position");o||(o="horizontal"!==i?"top":"left");var s=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],l=(s[0][0]+s[1][0])/2,u=(s[0][1]+s[1][1])/2,h="horizontal"===i?0:1,c={top:[l,s[h][1]],bottom:[l,s[1-h][1]],left:[s[1-h][0],u],right:[s[h][0],u]},d=e.start.y;+e.end.y>+e.start.y&&(d=d+"-"+e.end.y);var f=a.get("formatter"),p={start:e.start.y,end:e.end.y,nameMap:d},g=this._formatterLabel(f,p),m=new Dp.Text({z2:30});Dp.setTextStyle(m.style,a,{text:g}),m.attr(this._yearTextPositionControl(m,c[o],i,o,r)),n.add(m)}},_monthTextPositionControl:function(t,e,i,n,a){var r="left",o="top",s=t[0],l=t[1];return"horizontal"===i?(l+=a,e&&(r="center"),"start"===n&&(o="bottom")):(s+=a,e&&(o="middle"),"start"===n&&(r="right")),{x:s,y:l,textAlign:r,textVerticalAlign:o}},_renderMonthText:function(t,e,i){var n=t.getModel("monthLabel");if(n.get("show")){var a=n.get("nameMap"),r=n.get("margin"),o=n.get("position"),s=n.get("align"),l=[this._tlpoints,this._blpoints];du.isString(a)&&(a=CL[a.toUpperCase()]||[]);var u="start"===o?0:1,h="horizontal"===e?0:1;r="start"===o?-r:r;for(var c="center"===s,d=0;d=0},createNameEach:Vs,eachAxisDim:Vs(["x","y","z","radius","angle","single"],["axisIndex","axis","index","id"]),createLinkedNodesFinder:function(t,e,i){function n(t,n){n.nodes.push(t),e(function(e){du.each(i(t,e)||[],function(t){n.records[e.name][t]=!0})})}return function(a){var r={nodes:[],records:{}};if(e(function(t){r.records[t.name]={}}),!a)return r;n(a,r);var o;do{o=!1,t(function(t){!function(t,e){return du.indexOf(e.nodes,t)>=0}(t,r)&&function(t,n){var a=!1;return e(function(e){du.each(i(t,e)||[],function(t){n.records[e.name][t]&&(a=!0)})}),a}(t,r)&&(n(t,r),o=!0)})}while(o);return r}}},RL=du.each,NL=Up.asc,EL=function(t,e,i,n){this._dimName=t,this._axisIndex=e,this._valueWindow,this._percentWindow,this._dataExtent,this._minMaxSpan,this.ecModel=n,this._dataZoomModel=i};EL.prototype={constructor:EL,hostedBy:function(t){return this._dataZoomModel===t},getDataValueWindow:function(){return this._valueWindow.slice()},getDataPercentWindow:function(){return this._percentWindow.slice()},getTargetSeriesModels:function(){var t=[],e=this.ecModel;return e.eachSeries(function(i){if(OL.isCoordSupported(i.get("coordinateSystem"))){var n=this._dimName,a=e.queryComponents({mainType:n+"Axis",index:i.get(n+"AxisIndex"),id:i.get(n+"AxisId")})[0];this._axisIndex===(a&&a.componentIndex)&&t.push(i)}},this),t},getAxisModel:function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},getOtherAxisModel:function(){var t,e,i=this._dimName,n=this.ecModel,a=this.getAxisModel();"x"===i||"y"===i?(e="gridIndex",t="x"===i?"y":"x"):(e="polarIndex",t="angle"===i?"radius":"angle");var r;return n.eachComponent(t+"Axis",function(t){(t.get(e)||0)===(a.get(e)||0)&&(r=t)}),r},getMinMaxSpan:function(){return du.clone(this._minMaxSpan)},calculateDataWindow:function(t){var e=this._dataExtent,i=this.getAxisModel().axis.scale,n=this._dataZoomModel.getRangePropMode(),a=[0,100],r=[t.start,t.end],o=[];return RL(["startValue","endValue"],function(e){o.push(null!=t[e]?i.parse(t[e]):null)}),RL([0,1],function(t){var s=o[t],l=r[t];"percent"===n[t]?(null==l&&(l=a[t]),s=i.parse(Up.linearMap(l,a,e,!0))):l=Up.linearMap(s,e,a,!0),o[t]=s,r[t]=l}),{valueWindow:NL(o),percentWindow:NL(r)}},reset:function(t){if(t===this._dataZoomModel){var e=this.getTargetSeriesModels();this._dataExtent=function(t,e,i){var n=[1/0,-1/0];return RL(i,function(t){var i=t.getData();i&&RL(i.mapDimension(e,!0),function(t){var e=i.getApproximateExtent(t);e[0]n[1]&&(n[1]=e[1])})}),n[1]0?0:NaN);var o=i.getMax(!0);null!=o&&"dataMax"!==o&&"function"!=typeof o?e[1]=o:a&&(e[1]=r>0?r-1:NaN),i.get("scale",!0)||(e[0]>0&&(e[0]=0),e[1]<0&&(e[1]=0))}(t,n),n}(this,this._dimName,e);var i=this.calculateDataWindow(t.option);this._valueWindow=i.valueWindow,this._percentWindow=i.percentWindow,function(t){var e=t._minMaxSpan={},i=t._dataZoomModel;RL(["min","max"],function(n){e[n+"Span"]=i.get(n+"Span");var a=i.get(n+"ValueSpan");if(null!=a&&(e[n+"ValueSpan"]=a,null!=(a=t.getAxisModel().axis.scale.parse(a)))){var r=t._dataExtent;e[n+"Span"]=Up.linearMap(r[0]+a,r,[0,100],!0)}})}(this),Bs(this)}},restore:function(t){t===this._dataZoomModel&&(this._valueWindow=this._percentWindow=null,Bs(this,!0))},filterData:function(t,e){if(t===this._dataZoomModel){var i=this._dimName,n=this.getTargetSeriesModels(),a=t.get("filterMode"),r=this._valueWindow;"none"!==a&&RL(n,function(t){var e=t.getData(),n=e.mapDimension(i,!0);"weakFilter"===a?e.filterSelf(function(t){for(var i,a,o,s=0;sr[1];if(u&&!h&&!c)return!0;u&&(o=!0),h&&(i=!0),c&&(a=!0)}return o&&i&&a}):RL(n,function(i){if("empty"===a)t.setData(e.map(i,function(t){return function(t){return t>=r[0]&&t<=r[1]}(t)?t:NaN}));else{var n={};n[i]=r,e.selectRange(n)}}),RL(n,function(t){e.setApproximateExtent(r,t)})})}}};var zL=EL,VL=du.each,BL=OL.eachAxisDim,GL=C_.extendComponentModel({type:"dataZoom",dependencies:["xAxis","yAxis","zAxis","radiusAxis","angleAxis","singleAxis","series"],defaultOption:{zlevel:0,z:4,orient:null,xAxisIndex:null,yAxisIndex:null,filterMode:"filter",throttle:null,start:0,end:100,startValue:null,endValue:null,minSpan:null,maxSpan:null,minValueSpan:null,maxValueSpan:null,rangeMode:null},init:function(t,e,i){this._dataIntervalByAxis={},this._dataInfo={},this._axisProxies={},this.textStyleModel,this._autoThrottle=!0,this._rangePropMode=["percent","percent"];var n=Gs(t);this.mergeDefaultAndTheme(t,i),this.doInit(n)},mergeOption:function(t){var e=Gs(t);du.merge(this.option,t,!0),this.doInit(e)},doInit:function(t){var e=this.option;Jl.canvasSupported||(e.realtime=!1),this._setDefaultThrottle(t),Hs(this,t),VL([["start","startValue"],["end","endValue"]],function(t,i){"value"===this._rangePropMode[i]&&(e[t[0]]=null)},this),this.textStyleModel=this.getModel("textStyle"),this._resetTarget(),this._giveAxisProxies()},_giveAxisProxies:function(){var t=this._axisProxies;this.eachTargetAxis(function(e,i,n,a){var r=this.dependentModels[e.axis][i],o=r.__dzAxisProxy||(r.__dzAxisProxy=new zL(e.name,i,this,a));t[e.name+"_"+i]=o},this)},_resetTarget:function(){var t=this.option,e=this._judgeAutoMode();BL(function(e){var i=e.axisIndex;t[i]=Wc.normalizeToArray(t[i])},this),"axisIndex"===e?this._autoSetAxisIndex():"orient"===e&&this._autoSetOrient()},_judgeAutoMode:function(){var t=this.option,e=!1;BL(function(i){null!=t[i.axisIndex]&&(e=!0)},this);var i=t.orient;return null==i&&e?"orient":e?void 0:(null==i&&(t.orient="horizontal"),"axisIndex")},_autoSetAxisIndex:function(){var t=!0,e=this.get("orient",!0),i=this.option,n=this.dependentModels;if(t){var a="vertical"===e?"y":"x";n[a+"Axis"].length?(i[a+"AxisIndex"]=[0],t=!1):VL(n.singleAxis,function(n){t&&n.get("orient",!0)===e&&(i.singleAxisIndex=[n.componentIndex],t=!1)})}t&&BL(function(e){if(t){var n=[],a=this.dependentModels[e.axis];if(a.length&&!n.length)for(var r=0,o=a.length;r0?100:20}},getFirstTargetAxisModel:function(){var t;return BL(function(e){if(null==t){var i=this.get(e.axisIndex);i.length&&(t=this.dependentModels[e.axis][i[0]])}},this),t},eachTargetAxis:function(t,e){var i=this.ecModel;BL(function(n){VL(this.get(n.axisIndex),function(a){t.call(e,n,a,this,i)},this)},this)},getAxisProxy:function(t,e){return this._axisProxies[t+"_"+e]},getAxisModel:function(t,e){var i=this.getAxisProxy(t,e);return i&&i.getAxisModel()},setRawRange:function(t,e){var i=this.option;VL([["start","startValue"],["end","endValue"]],function(e){null==t[e[0]]&&null==t[e[1]]||(i[e[0]]=t[e[0]],i[e[1]]=t[e[1]])},this),!e&&Hs(this,t)},getPercentRange:function(){var t=this.findRepresentativeAxisProxy();if(t)return t.getDataPercentWindow()},getValueRange:function(t,e){if(null!=t||null!=e)return this.getAxisProxy(t,e).getDataValueWindow();var i=this.findRepresentativeAxisProxy();return i?i.getDataValueWindow():void 0},findRepresentativeAxisProxy:function(t){if(t)return t.__dzAxisProxy;var e=this._axisProxies;for(var i in e)if(e.hasOwnProperty(i)&&e[i].hostedBy(this))return e[i];for(var i in e)if(e.hasOwnProperty(i)&&!e[i].hostedBy(this))return e[i]},getRangePropMode:function(){return this._rangePropMode.slice()}}),HL=wv.extend({type:"dataZoom",render:function(t,e,i,n){this.dataZoomModel=t,this.ecModel=e,this.api=i},getTargetCoordInfo:function(){var t=this.dataZoomModel,e=this.ecModel,i={};return t.eachTargetAxis(function(t,n){var a=e.getComponent(t.axis,n);if(a){var r=a.getCoordSysModel();r&&function(t,e,i,n){for(var a,r=0;r0&&e%p)f+=d;else{var i=null==t||isNaN(t)||""===t,n=i?0:WL(t,r,l,!0);i&&!s&&e?(h.push([h[h.length-1][0],0]),c.push([c[c.length-1][0],0])):!i&&s&&(h.push([f,0]),c.push([f,0])),h.push([f,n]),c.push([f,n]),f+=d,s=i}});var g=this.dataZoomModel;this._displayables.barGroup.add(new Dp.Polygon({shape:{points:h},style:du.defaults({fill:g.get("dataBackgroundColor")},g.getModel("dataBackground.areaStyle").getAreaStyle()),silent:!0,z2:-20})),this._displayables.barGroup.add(new Dp.Polyline({shape:{points:c},style:g.getModel("dataBackground.lineStyle").getLineStyle(),silent:!0,z2:-19}))}}},_prepareDataShadowInfo:function(){var t=this.dataZoomModel,e=t.get("showDataShadow");if(!1!==e){var i,n=this.ecModel;return t.eachTargetAxis(function(a,r){var o=t.getAxisProxy(a.name,r).getTargetSeriesModels();du.each(o,function(t){if(!(i||!0!==e&&du.indexOf(qL,t.get("type"))<0)){var o,s=n.getComponent(a.axis,r).axis,l=function(t){return{x:"y",y:"x",radius:"angle",angle:"radius"}[t]}(a.name),u=t.coordinateSystem;null!=l&&u.getOtherAxis&&(o=u.getOtherAxis(s).inverse),l=t.getData().mapDimension(l),i={thisAxis:s,series:t,thisDim:a.name,otherDim:l,otherAxisInverse:o}}},this)},this),i}},_renderHandle:function(){var t=this._displayables,e=t.handles=[],i=t.handleLabels=[],n=this._displayables.barGroup,a=this._size,r=this.dataZoomModel;n.add(t.filler=new FL({draggable:!0,cursor:Fs(this._orient),drift:ZL(this._onDragMove,this,"all"),onmousemove:function(t){mc.stop(t.event)},ondragstart:ZL(this._showDataInfo,this,!0),ondragend:ZL(this._onDragEnd,this),onmouseover:ZL(this._showDataInfo,this,!0),onmouseout:ZL(this._showDataInfo,this,!1),style:{fill:r.get("fillerColor"),textPosition:"inside"}})),n.add(new FL(Dp.subPixelOptimizeRect({silent:!0,shape:{x:0,y:0,width:a[0],height:a[1]},style:{stroke:r.get("dataBackgroundColor")||r.get("borderColor"),lineWidth:1,fill:"rgba(0,0,0,0)"}}))),jL([0,1],function(t){var a=Dp.createIcon(r.get("handleIcon"),{cursor:Fs(this._orient),draggable:!0,drift:ZL(this._onDragMove,this,t),onmousemove:function(t){mc.stop(t.event)},ondragend:ZL(this._onDragEnd,this),onmouseover:ZL(this._showDataInfo,this,!0),onmouseout:ZL(this._showDataInfo,this,!1)},{x:-1,y:0,width:2,height:2}),o=a.getBoundingRect();this._handleHeight=Up.parsePercent(r.get("handleSize"),this._size[1]),this._handleWidth=o.width/o.height*this._handleHeight,a.setStyle(r.getModel("handleStyle").getItemStyle());var s=r.get("handleColor");null!=s&&(a.style.fill=s),n.add(e[t]=a);var l=r.textStyleModel;this.group.add(i[t]=new Dp.Text({silent:!0,invisible:!0,style:{x:0,y:0,text:"",textVerticalAlign:"middle",textAlign:"center",textFill:l.getTextColor(),textFont:l.getFont()},z2:10}))},this)},_resetInterval:function(){var t=this._range=this.dataZoomModel.getPercentRange(),e=this._getViewExtent();this._handleEnds=[WL(t[0],[0,100],e,!0),WL(t[1],[0,100],e,!0)]},_updateInterval:function(t,e){var i=this.dataZoomModel,n=this._handleEnds,a=this._getViewExtent(),r=i.findRepresentativeAxisProxy().getMinMaxSpan(),o=[0,100];KI(e,n,a,i.get("zoomLock")?"all":t,null!=r.minSpan?WL(r.minSpan,o,a,!0):null,null!=r.maxSpan?WL(r.maxSpan,o,a,!0):null);var s=this._range,l=this._range=UL([WL(n[0],a,o,!0),WL(n[1],a,o,!0)]);return!s||s[0]!==l[0]||s[1]!==l[1]},_updateView:function(t){var e=this._displayables,i=this._handleEnds,n=UL(i.slice()),a=this._size;jL([0,1],function(t){var n=e.handles[t],r=this._handleHeight;n.attr({scale:[r/2,r/2],position:[i[t],a[1]/2-r/2]})},this),e.filler.setShape({x:n[0],y:0,width:n[1]-n[0],height:a[1]}),this._updateDataInfo(t)},_updateDataInfo:function(t){function e(t){var e=Dp.getTransform(n.handles[t].parent,this.group),i=Dp.transformDirection(0===t?"right":"left",e),s=this._handleWidth/2+XL,l=Dp.applyTransform([c[t]+(0===t?-s:s),this._size[1]/2],e);a[t].setStyle({x:l[0],y:l[1],textVerticalAlign:r===YL?"middle":i,textAlign:r===YL?i:"center",text:o[t]})}var i=this.dataZoomModel,n=this._displayables,a=n.handleLabels,r=this._orient,o=["",""];if(i.get("showDetail")){var s=i.findRepresentativeAxisProxy();if(s){var l=s.getAxisModel().axis,u=this._range,h=t?s.calculateDataWindow({start:u[0],end:u[1]}).valueWindow:s.getDataValueWindow();o=[this._formatLabel(h[0],l),this._formatLabel(h[1],l)]}}var c=UL(this._handleEnds.slice());e.call(this,0),e.call(this,1)},_formatLabel:function(t,e){var i=this.dataZoomModel,n=i.get("labelFormatter"),a=i.get("labelPrecision");null!=a&&"auto"!==a||(a=e.getPixelPrecision());var r=null==t||isNaN(t)?"":"category"===e.type||"time"===e.type?e.scale.getLabel(Math.round(t)):t.toFixed(Math.min(a,20));return du.isFunction(n)?n(t,r):du.isString(n)?n.replace("{value}",r):r},_showDataInfo:function(t){t=this._dragging||t;var e=this._displayables.handleLabels;e[0].attr("invisible",!t),e[1].attr("invisible",!t)},_onDragMove:function(t,e,i){this._dragging=!0;var n=this._displayables.barGroup.getLocalTransform(),a=Dp.applyTransform([e,i],n,!0),r=this._updateInterval(t,a[0]),o=this.dataZoomModel.get("realtime");this._updateView(!o),r&&o&&this._dispatchZoomAction()},_onDragEnd:function(){this._dragging=!1,this._showDataInfo(!1);!this.dataZoomModel.get("realtime")&&this._dispatchZoomAction()},_onClickPanelClick:function(t){var e=this._size,i=this._displayables.barGroup.transformCoordToLocal(t.offsetX,t.offsetY);if(!(i[0]<0||i[0]>e[0]||i[1]<0||i[1]>e[1])){var n=this._handleEnds,a=(n[0]+n[1])/2,r=this._updateInterval("all",i[0]-a);this._updateView(),r&&this._dispatchZoomAction()}},_dispatchZoomAction:function(){var t=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,start:t[0],end:t[1]})},_findCoordRect:function(){var t;if(jL(this.getTargetCoordInfo(),function(e){if(!t&&e.length){var i=e[0].model.coordinateSystem;t=i.getRect&&i.getRect()}}),!t){var e=this.api.getWidth(),i=this.api.getHeight();t={x:.2*e,y:.2*i,width:.6*e,height:.6*i}}return t}}),KL=(GL.extend({type:"dataZoom.inside",defaultOption:{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,preventDefaultMouseMove:!0}}),du.curry),JL="\0_ec_dataZoom_roams",QL={register:function(t,e){var i=Ws(t),n=e.dataZoomId,a=e.coordId;du.each(i,function(t,i){var r=t.dataZoomInfos;r[n]&&du.indexOf(e.allCoordIds,a)<0&&(delete r[n],t.count--)}),Us(i);var r=i[a];r||((r=i[a]={coordId:a,dataZoomInfos:{},count:0}).controller=function(t,e){var i=new _S(t.getZr());return i.on("pan",KL(function(t,e,i,n,a,r,o){Zs(t,function(s){return s.panGetRange(t.controller,e,i,n,a,r,o)})},e)),i.on("zoom",KL(function(t,e,i,n){Zs(t,function(a){return a.zoomGetRange(t.controller,e,i,n)})},e)),i}(t,r),r.dispatchAction=du.curry(function(t,e){t.dispatchAction({type:"dataZoom",batch:e})},t)),!r.dataZoomInfos[n]&&r.count++,r.dataZoomInfos[n]=e;var o=function(t){var e,i={},n={type_true:2,type_move:1,type_false:0,type_undefined:-1};return du.each(t,function(t){var a=!t.disabled&&(!t.zoomLock||"move");n["type_"+a]>n["type_"+e]&&(e=a),du.extend(i,t.roamControllerOpt)}),{controlType:e,opt:i}}(r.dataZoomInfos);r.controller.enable(o.controlType,o.opt),r.controller.setPointerChecker(e.containsPoint),Nv.createOrUpdate(r,"dispatchAction",e.throttleRate,"fixRate")},unregister:function(t,e){var i=Ws(t);du.each(i,function(t){t.controller.dispose();var i=t.dataZoomInfos;i[e]&&(delete i[e],t.count--)}),Us(i)},generateCoordId:function(t){return t.type+"\0_"+t.id}},tP=du.bind,eP=HL.extend({type:"dataZoom.inside",init:function(t,e){this._range},render:function(t,e,i,n){eP.superApply(this,"render",arguments),this._range=t.getPercentRange(),du.each(this.getTargetCoordInfo(),function(e,n){var a=du.map(e,function(t){return QL.generateCoordId(t.model)});du.each(e,function(e){var r=e.model,o=t.option;QL.register(i,{coordId:QL.generateCoordId(r),allCoordIds:a,containsPoint:function(t,e,i){return r.coordinateSystem.containPoint([e,i])},dataZoomId:t.id,throttleRate:t.get("throttle",!0),panGetRange:tP(this._onPan,this,e,n),zoomGetRange:tP(this._onZoom,this,e,n),zoomLock:o.zoomLock,disabled:o.disabled,roamControllerOpt:{zoomOnMouseWheel:o.zoomOnMouseWheel,moveOnMouseMove:o.moveOnMouseMove,preventDefaultMouseMove:o.preventDefaultMouseMove}})},this)},this)},dispose:function(){QL.unregister(this.api,this.dataZoomModel.id),eP.superApply(this,"dispose",arguments),this._range=null},_onPan:function(t,e,i,n,a,r,o,s,l){var u=this._range,h=u.slice(),c=t.axisModels[0];if(c){var d=iP[e]([r,o],[s,l],c,i,t),f=d.signal*(h[1]-h[0])*d.pixel/d.pixelLength;return KI(f,h,[0,100],"all"),this._range=h,u[0]!==h[0]||u[1]!==h[1]?h:void 0}},_onZoom:function(t,e,i,n,a,r){var o=this._range,s=o.slice(),l=t.axisModels[0];if(l){var u=iP[e](null,[a,r],l,i,t),h=(u.signal>0?u.pixelStart+u.pixelLength-u.pixel:u.pixel-u.pixelStart)/u.pixelLength*(s[1]-s[0])+s[0];n=Math.max(1/n,0),s[0]=(s[0]-h)*n+h,s[1]=(s[1]-h)*n+h;var c=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();return KI(0,s,[0,100],0,c.minSpan,c.maxSpan),this._range=s,o[0]!==s[0]||o[1]!==s[1]?s:void 0}}}),iP={grid:function(t,e,i,n,a){var r=i.axis,o={},s=a.model.coordinateSystem.getRect();return t=t||[0,0],"x"===r.dim?(o.pixel=e[0]-t[0],o.pixelLength=s.width,o.pixelStart=s.x,o.signal=r.inverse?1:-1):(o.pixel=e[1]-t[1],o.pixelLength=s.height,o.pixelStart=s.y,o.signal=r.inverse?-1:1),o},polar:function(t,e,i,n,a){var r=i.axis,o={},s=a.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return t=t?s.pointToCoord(t):[0,0],e=s.pointToCoord(e),"radiusAxis"===i.mainType?(o.pixel=e[0]-t[0],o.pixelLength=l[1]-l[0],o.pixelStart=l[0],o.signal=r.inverse?1:-1):(o.pixel=e[1]-t[1],o.pixelLength=u[1]-u[0],o.pixelStart=u[0],o.signal=r.inverse?-1:1),o},singleAxis:function(t,e,i,n,a){var r=i.axis,o=a.model.coordinateSystem.getRect(),s={};return t=t||[0,0],"horizontal"===r.orient?(s.pixel=e[0]-t[0],s.pixelLength=o.width,s.pixelStart=o.x,s.signal=r.inverse?1:-1):(s.pixel=e[1]-t[1],s.pixelLength=o.height,s.pixelStart=o.y,s.signal=r.inverse?-1:1),s}},nP=du.createHashMap,aP=du.each;C_.registerProcessor({getTargetSeries:function(t){var e=nP();return t.eachComponent("dataZoom",function(t){t.eachTargetAxis(function(t,i,n){var a=n.getAxisProxy(t.name,i);aP(a.getTargetSeriesModels(),function(t){e.set(t.uid,t)})})}),e},modifyOutputEnd:!0,overallReset:function(t,e){t.eachComponent("dataZoom",function(t){t.eachTargetAxis(function(t,i,n){n.getAxisProxy(t.name,i).reset(n,e)}),t.eachTargetAxis(function(t,i,n){n.getAxisProxy(t.name,i).filterData(n,e)})}),t.eachComponent("dataZoom",function(t){var e=t.findRepresentativeAxisProxy(),i=e.getDataPercentWindow(),n=e.getDataValueWindow();t.setRawRange({start:i[0],end:i[1],startValue:n[0],endValue:n[1]},!0)})}}),C_.registerAction("dataZoom",function(t,e){var i=OL.createLinkedNodesFinder(du.bind(e.eachComponent,e,"dataZoom"),OL.eachAxisDim,function(t,e){return t.get(e.axisIndex)}),n=[];e.eachComponent({mainType:"dataZoom",query:t},function(t,e){n.push.apply(n,i(t).nodes)}),du.each(n,function(e,i){e.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})})});var rP=du.each,oP=function(t){var e=t&&t.visualMap;du.isArray(e)||(e=e?[e]:[]),rP(e,function(t){if(t){js(t,"splitList")&&!js(t,"pieces")&&(t.pieces=t.splitList,delete t.splitList);var e=t.pieces;e&&du.isArray(e)&&rP(e,function(t){du.isObject(t)&&(js(t,"start")&&!js(t,"min")&&(t.min=t.start),js(t,"end")&&!js(t,"max")&&(t.max=t.end))})}})};ug.registerSubTypeDefaulter("visualMap",function(t){return t.categories||(t.pieces?t.pieces.length>0:t.splitNumber>0)&&!t.calculable?"piecewise":"continuous"});var sP=C_.PRIORITY.VISUAL.COMPONENT;C_.registerVisual(sP,{createOnAllSeries:!0,reset:function(t,e){var i=[];return e.eachComponent("visualMap",function(e){var n=t.pipelineContext;!e.isTargetSeries(t)||n&&n.large||i.push(eL.incrementalApplyVisual(e.stateList,e.targetVisuals,du.bind(e.getValueState,e),e.getDataDimension(t.getData())))}),i}}),C_.registerVisual(sP,{createOnAllSeries:!0,reset:function(t,e){var i=t.getData(),n=[];e.eachComponent("visualMap",function(e){if(e.isTargetSeries(t)){var a=e.getVisualMeta(du.bind(function(t,e,i,n){for(var a=e.targetVisuals[n],r=TM.prepareVisualTypes(a),o={color:t.getData().getVisual("color")},s=0,l=r.length;s"],du.isArray(t)&&(t=t.slice(),a=!0),r=e?t:a?[n(t[0]),n(t[1])]:n(t),du.isString(u)?u.replace("{value}",a?r[0]:r).replace("{value2}",a?r[1]:r):du.isFunction(u)?a?u(t[0],t[1]):u(t):a?t[0]===l[0]?i[0]+" "+r[1]:t[1]===l[1]?i[1]+" "+r[0]:r[0]+" - "+r[1]:r},resetExtent:function(){var t=this.option,e=gP([t.min,t.max]);this._dataExtent=e},getDataDimension:function(t){var e=this.option.dimension,i=t.dimensions;if(null!=e||i.length){if(null!=e)return t.getDimension(e);for(var n=t.dimensions,a=n.length-1;a>=0;a--){var r=n[a];if(!t.getDimensionInfo(r).isCalculationCoord)return r}}},getExtent:function(){return this._dataExtent.slice()},completeVisualOption:function(){function t(t){fP(i.color)&&!t.inRange&&(t.inRange={color:i.color.slice().reverse()}),t.inRange=t.inRange||{color:e.get("gradientColor")},pP(this.stateList,function(e){var i=t[e];if(du.isString(i)){var n=hP.get(i,"active",o);n?(t[e]={},t[e][i]=n):delete t[e]}},this)}var e=this.ecModel,i=this.option,n={inRange:i.inRange,outOfRange:i.outOfRange},a=i.target||(i.target={}),r=i.controller||(i.controller={});du.merge(a,n),du.merge(r,n);var o=this.isCategory();t.call(this,a),t.call(this,r),function(t,e,i){var n=t[e],a=t[i];n&&!a&&(a=t[i]={},pP(n,function(t,e){if(TM.isValidType(e)){var i=hP.get(e,"inactive",o);null!=i&&(a[e]=i,"color"!==e||a.hasOwnProperty("opacity")||a.hasOwnProperty("colorAlpha")||(a.opacity=[0,0]))}}))}.call(this,a,"inRange","outOfRange"),function(t){var e=(t.inRange||{}).symbol||(t.outOfRange||{}).symbol,i=(t.inRange||{}).symbolSize||(t.outOfRange||{}).symbolSize,n=this.get("inactiveColor");pP(this.stateList,function(a){var r=this.itemSize,s=t[a];s||(s=t[a]={color:o?n:[n]}),null==s.symbol&&(s.symbol=e&&du.clone(e)||(o?"roundRect":["roundRect"])),null==s.symbolSize&&(s.symbolSize=i&&du.clone(i)||(o?r[0]:[r[0],r[0]])),s.symbol=cP(s.symbol,function(t){return"none"===t||"square"===t?"roundRect":t});var l=s.symbolSize;if(null!=l){var u=-1/0;dP(l,function(t){t>u&&(u=t)}),s.symbolSize=cP(l,function(t){return mP(t,[0,u],[0,r[0]],!0)})}},this)}.call(this,r)},resetItemSize:function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},isCategory:function(){return!!this.option.categories},setSelected:vP,getValueState:vP,getVisualMeta:vP}),xP=[20,140],_P=yP.extend({type:"visualMap.continuous",defaultOption:{align:"auto",calculable:!1,range:null,realtime:!0,itemHeight:null,itemWidth:null,hoverLink:!0,hoverLinkDataSize:null,hoverLinkOnHandle:null},optionUpdated:function(t,e){_P.superApply(this,"optionUpdated",arguments),this.resetExtent(),this.resetVisual(function(t){t.mappingMethod="linear",t.dataExtent=this.getExtent()}),this._resetRange()},resetItemSize:function(){_P.superApply(this,"resetItemSize",arguments);var t=this.itemSize;"horizontal"===this._orient&&t.reverse(),(null==t[0]||isNaN(t[0]))&&(t[0]=xP[0]),(null==t[1]||isNaN(t[1]))&&(t[1]=xP[1])},_resetRange:function(){var t=this.getExtent(),e=this.option.range;!e||e.auto?(t.auto=1,this.option.range=t):du.isArray(e)&&(e[0]>e[1]&&e.reverse(),e[0]=Math.max(e[0],t[0]),e[1]=Math.min(e[1],t[1]))},completeVisualOption:function(){yP.prototype.completeVisualOption.apply(this,arguments),du.each(this.stateList,function(t){var e=this.option.controller[t].symbolSize;e&&e[0]!==e[1]&&(e[0]=0)},this)},setSelected:function(t){this.option.range=t.slice(),this._resetRange()},getSelected:function(){var t=this.getExtent(),e=Up.asc((this.get("range")||[]).slice());return e[0]>t[1]&&(e[0]=t[1]),e[1]>t[1]&&(e[1]=t[1]),e[0]=i[1]||t<=e[1])?"inRange":"outOfRange"},findTargetDataIndices:function(t){var e=[];return this.eachTargetSeries(function(i){var n=[],a=i.getData();a.each(this.getDataDimension(a),function(e,i){t[0]<=e&&e<=t[1]&&n.push(i)},this),e.push({seriesId:i.id,dataIndex:n})},this),e},getVisualMeta:function(t){function e(e,i){a.push({value:e,color:t(e,i)})}for(var i=Ys(0,0,this.getExtent()),n=Ys(0,0,this.option.range.slice()),a=[],r=0,o=0,s=n.length,l=i.length;ot[1])break;i.push({color:this.getControllerVisual(r,"color",e),offset:a/100})}return i.push({color:this.getControllerVisual(t[1],"color",e),offset:1}),i},_createBarPoints:function(t,e){var i=this.visualMapModel.itemSize;return[[i[0]-e[0],t[0]],[i[0],t[0]],[i[0],t[1]],[i[0]-e[1],t[1]]]},_createBarGroup:function(t){var e=this._orient,i=this.visualMapModel.get("inverse");return new Dp.Group("horizontal"!==e||i?"horizontal"===e&&i?{scale:"bottom"===t?[-1,1]:[1,1],rotation:-Math.PI/2}:"vertical"!==e||i?{scale:"left"===t?[1,1]:[-1,1]}:{scale:"left"===t?[1,-1]:[-1,-1]}:{scale:"bottom"===t?[1,1]:[-1,1],rotation:Math.PI/2})},_updateHandle:function(t,e){if(this._useHandle){var i=this._shapes,n=this.visualMapModel,a=i.handleThumbs,r=i.handleLabels;IP([0,1],function(o){var s=a[o];s.setStyle("fill",e.handlesColor[o]),s.position[1]=t[o];var l=Dp.applyTransform(i.handleLabelPoints[o],Dp.getTransform(s,this.group));r[o].setStyle({x:l[0],y:l[1],text:n.formatValueText(this._dataInterval[o]),textVerticalAlign:"middle",textAlign:this._applyTransform("horizontal"===this._orient?0===o?"bottom":"top":"left",i.barGroup)})},this)}},_showIndicator:function(t,e,i,n){var a=this.visualMapModel,r=a.getExtent(),o=a.itemSize,s=[0,o[1]],l=MP(t,r,s,!0),u=this._shapes,h=u.indicator;if(h){h.position[1]=l,h.attr("invisible",!1),h.setShape("points",function(t,e,i,n){return t?[[0,-AP(e,TP(i,0))],[CP,0],[0,AP(e,TP(n-i,0))]]:[[0,0],[5,-5],[5,5]]}(!!i,n,l,o[1]));var c=this.getControllerVisual(t,"color",{convertOpacityToAlpha:!0});h.setStyle("fill",c);var d=Dp.applyTransform(u.indicatorLabelPoint,Dp.getTransform(h,this.group)),f=u.indicatorLabel;f.attr("invisible",!1);var p=this._applyTransform("left",u.barGroup),g=this._orient;f.setStyle({text:(i||"")+a.formatValueText(e),textVerticalAlign:"horizontal"===g?p:"middle",textAlign:"horizontal"===g?"center":p,x:d[0],y:d[1]})}},_enableHoverLinkToSeries:function(){var t=this;this._shapes.barGroup.on("mousemove",function(e){if(t._hovering=!0,!t._dragging){var i=t.visualMapModel.itemSize,n=t._applyTransform([e.offsetX,e.offsetY],t._shapes.barGroup,!0,!0);n[1]=AP(TP(0,n[1]),i[1]),t._doHoverLinkToSeries(n[1],0<=n[0]&&n[0]<=i[0])}}).on("mouseout",function(){t._hovering=!1,!t._dragging&&t._clearHoverLinkToSeries()})},_enableHoverLinkFromSeries:function(){var t=this.api.getZr();this.visualMapModel.option.hoverLink?(t.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),t.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},_doHoverLinkToSeries:function(t,e){var i=this.visualMapModel,n=i.itemSize;if(i.option.hoverLink){var a=[0,n[1]],r=i.getExtent();t=AP(TP(a[0],t),a[1]);var o=function(t,e,i){var n=DP/2,a=t.get("hoverLinkDataSize");return a&&(n=MP(a,e,i,!0)/2),n}(i,r,a),s=[t-o,t+o],l=MP(t,a,r,!0),u=[MP(s[0],a,r,!0),MP(s[1],a,r,!0)];s[0]a[1]&&(u[1]=1/0),e&&(u[0]===-1/0?this._showIndicator(l,u[1],"< ",o):u[1]===1/0?this._showIndicator(l,u[0],"> ",o):this._showIndicator(l,l,"≈ ",o));var h=this._hoverLinkDataIndices,c=[];(e||qs(i))&&(c=this._hoverLinkDataIndices=i.findTargetDataIndices(u));var d=Wc.compressBatches(h,c);this._dispatchHighDown("downplay",SP.convertDataIndex(d[0])),this._dispatchHighDown("highlight",SP.convertDataIndex(d[1]))}},_hoverLinkFromSeriesMouseOver:function(t){var e=t.target,i=this.visualMapModel;if(e&&null!=e.dataIndex){var n=this.ecModel.getSeriesByIndex(e.seriesIndex);if(i.isTargetSeries(n)){var a=n.getData(e.dataType),r=a.get(i.getDataDimension(a),e.dataIndex,!0);isNaN(r)||this._showIndicator(r,r)}}},_hideIndicator:function(){var t=this._shapes;t.indicator&&t.indicator.attr("invisible",!0),t.indicatorLabel&&t.indicatorLabel.attr("invisible",!0)},_clearHoverLinkToSeries:function(){this._hideIndicator();var t=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",SP.convertDataIndex(t)),t.length=0},_clearHoverLinkFromSeries:function(){this._hideIndicator();var t=this.api.getZr();t.off("mouseover",this._hoverLinkFromSeriesMouseOver),t.off("mouseout",this._hideIndicator)},_applyTransform:function(t,e,i,n){var a=Dp.getTransform(e,n?null:this.group);return Dp[du.isArray(t)?"applyTransform":"transformDirection"](t,a,i)},_dispatchHighDown:function(t,e){e&&e.length&&this.api.dispatchAction({type:t,batch:e})},dispose:function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},remove:function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()}});C_.registerAction({type:"selectDataRange",event:"dataRangeSelected",update:"update"},function(t,e){e.eachComponent({mainType:"visualMap",query:t},function(e){e.setSelected(t.selected)})}),C_.registerPreprocessor(oP);var PP=Up.reformIntervals,kP=yP.extend({type:"visualMap.piecewise",defaultOption:{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieceList:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0,showLabel:null},optionUpdated:function(t,e){kP.superApply(this,"optionUpdated",arguments),this._pieceList=[],this.resetExtent();var i=this._mode=this._determineMode();OP[this._mode].call(this),this._resetSelected(t,e);var n=this.option.categories;this.resetVisual(function(t,e){"categories"===i?(t.mappingMethod="category",t.categories=du.clone(n)):(t.dataExtent=this.getExtent(),t.mappingMethod="piecewise",t.pieceList=du.map(this._pieceList,function(t){t=du.clone(t);return"inRange"!==e&&(t.visual=null),t}))})},completeVisualOption:function(){function t(t,e,i){return t&&t[e]&&(du.isObject(t[e])?t[e].hasOwnProperty(i):t[e]===i)}var e=this.option,i={},n=TM.listVisualTypes(),a=this.isCategory();du.each(e.pieces,function(t){du.each(n,function(e){t.hasOwnProperty(e)&&(i[e]=1)})}),du.each(i,function(i,n){var r=0;du.each(this.stateList,function(i){r|=t(e,i,n)||t(e.target,i,n)},this),!r&&du.each(this.stateList,function(t){(e[t]||(e[t]={}))[n]=hP.get(n,"inRange"===t?"active":"inactive",a)})},this),yP.prototype.completeVisualOption.apply(this,arguments)},_resetSelected:function(t,e){var i=this.option,n=this._pieceList,a=(e?i:t).selected||{};if(i.selected=a,du.each(n,function(t,e){var i=this.getSelectedMapKey(t);a.hasOwnProperty(i)||(a[i]=!0)},this),"single"===i.selectedMode){var r=!1;du.each(n,function(t,e){var i=this.getSelectedMapKey(t);a[i]&&(r?a[i]=!1:r=!0)},this)}},getSelectedMapKey:function(t){return"categories"===this._mode?t.value+"":t.index+""},getPieceList:function(){return this._pieceList},_determineMode:function(){var t=this.option;return t.pieces&&t.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},setSelected:function(t){this.option.selected=du.clone(t)},getValueState:function(t){var e=TM.findPieceIndex(t,this._pieceList);return null!=e&&this.option.selected[this.getSelectedMapKey(this._pieceList[e])]?"inRange":"outOfRange"},findTargetDataIndices:function(t){var e=[];return this.eachTargetSeries(function(i){var n=[],a=i.getData();a.each(this.getDataDimension(a),function(e,i){TM.findPieceIndex(e,this._pieceList)===t&&n.push(i)},this),e.push({seriesId:i.id,dataIndex:n})},this),e},getRepresentValue:function(t){var e;if(this.isCategory())e=t.value;else if(null!=t.value)e=t.value;else{var i=t.interval||[];e=i[0]===-1/0&&i[1]===1/0?0:(i[0]+i[1])/2}return e},getVisualMeta:function(t){function e(e,r){var o=a.getRepresentValue({interval:e});r||(r=a.getValueState(o));var s=t(o,r);e[0]===-1/0?n[0]=s:e[1]===1/0?n[1]=s:i.push({value:e[0],color:s},{value:e[1],color:s})}if(!this.isCategory()){var i=[],n=[],a=this,r=this._pieceList.slice();if(r.length){var o=r[0].interval[0];o!==-1/0&&r.unshift({interval:[-1/0,o]}),(o=r[r.length-1].interval[1])!==1/0&&r.push({interval:[o,1/0]})}else r.push({interval:[-1/0,1/0]});var s=-1/0;return du.each(r,function(t){var i=t.interval;i&&(i[0]>s&&e([s,i[0]],"outOfRange"),e(i.slice()),s=i[1])},this),{stops:i,outerColors:n}}}}),OP={splitNumber:function(){var t=this.option,e=this._pieceList,i=Math.min(t.precision,20),n=this.getExtent(),a=t.splitNumber;a=Math.max(parseInt(a,10),1),t.splitNumber=a;for(var r=(n[1]-n[0])/a;+r.toFixed(i)!==r&&i<5;)i++;t.precision=i,r=+r.toFixed(i);var o=0;t.minOpen&&e.push({index:o++,interval:[-1/0,n[0]],close:[0,0]});for(var s=n[0],l=o+a;o","≥"][e[0]]];t.text=t.text||this.formatValueText(null!=t.value?t.value:t.interval,!1,i)},this)}},RP=Fx.createSymbol;bP.extend({type:"visualMap.piecewise",doRender:function(){var t=this.group;t.removeAll();var e=this.visualMapModel,i=e.get("textGap"),n=e.textStyleModel,a=n.getFont(),r=n.getTextColor(),o=this._getItemAlign(),s=e.itemSize,l=this._getViewData(),u=l.endsText,h=du.retrieve(e.get("showLabel",!0),!u);u&&this._renderEndsText(t,u[0],s,h,o),du.each(l.viewPieceList,function(n){var l=n.piece,u=new Dp.Group;u.onclick=du.bind(this._onItemClick,this,l),this._enableHoverLink(u,n.indexInModelPieceList);var c=e.getRepresentValue(l);if(this._createItemSymbol(u,c,[0,0,s[0],s[1]]),h){var d=this.visualMapModel.getValueState(c);u.add(new Dp.Text({style:{x:"right"===o?-i:s[0]+i,y:s[1]/2,text:l.text,textVerticalAlign:"middle",textAlign:o,textFont:a,textFill:r,opacity:"outOfRange"===d?.5:1}}))}t.add(u)},this),u&&this._renderEndsText(t,u[1],s,h,o),ng.box(e.get("orient"),t,e.get("itemGap")),this.renderBackground(t),this.positionGroup(t)},_enableHoverLink:function(t,e){function i(t){var i=this.visualMapModel;i.option.hoverLink&&this.api.dispatchAction({type:t,batch:SP.convertDataIndex(i.findTargetDataIndices(e))})}t.on("mouseover",du.bind(i,this,"highlight")).on("mouseout",du.bind(i,this,"downplay"))},_getItemAlign:function(){var t=this.visualMapModel,e=t.option;if("vertical"===e.orient)return SP.getItemAlign(t,this.api,t.itemSize);var i=e.align;return i&&"auto"!==i||(i="left"),i},_renderEndsText:function(t,e,i,n,a){if(e){var r=new Dp.Group,o=this.visualMapModel.textStyleModel;r.add(new Dp.Text({style:{x:n?"right"===a?i[0]:0:i[0]/2,y:i[1]/2,textVerticalAlign:"middle",textAlign:n?a:"center",text:e,textFont:o.getFont(),textFill:o.getTextColor()}})),t.add(r)}},_getViewData:function(){var t=this.visualMapModel,e=du.map(t.getPieceList(),function(t,e){return{piece:t,indexInModelPieceList:e}}),i=t.get("text"),n=t.get("orient"),a=t.get("inverse");return("horizontal"===n?a:!a)?e.reverse():i&&(i=i.slice().reverse()),{viewPieceList:e,endsText:i}},_createItemSymbol:function(t,e,i){t.add(RP(this.getControllerVisual(e,"symbol"),i[0],i[1],i[2],i[3],this.getControllerVisual(e,"color")))},_onItemClick:function(t){var e=this.visualMapModel,i=e.option,n=du.clone(i.selected),a=e.getSelectedMapKey(t);"single"===i.selectedMode?(n[a]=!0,du.each(n,function(t,e){n[e]=e===a})):n[a]=!n[a],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:n})}});C_.registerPreprocessor(oP);var NP=qp.addCommas,EP=qp.encodeHTML,zP=C_.extendComponentModel({type:"marker",dependencies:["series","grid","polar","geo"],init:function(t,e,i,n){this.mergeDefaultAndTheme(t,i),this.mergeOption(t,i,n.createdBySelf,!0)},isAnimationEnabled:function(){if(Jl.node)return!1;var t=this.__hostSeries;return this.getShallow("animation")&&t&&t.isAnimationEnabled()},mergeOption:function(t,e,i,n){var a=this.constructor,r=this.mainType+"Model";i||e.eachSeries(function(t){var i=t.get(this.mainType,!0),o=t[r];i&&i.data?(o?o.mergeOption(i,e,!0):(n&&Js(i),du.each(i.data,function(t){t instanceof Array?(Js(t[0]),Js(t[1])):Js(t)}),o=new a(i,this,e),du.extend(o,{mainType:this.mainType,seriesIndex:t.seriesIndex,name:t.name,createdBySelf:!0}),o.__hostSeries=t),t[r]=o):t[r]=null},this)},formatTooltip:function(t){var e=this.getData(),i=this.getRawValue(t),n=du.isArray(i)?du.map(i,NP).join(", "):NP(i),a=e.getName(t),r=EP(this.name);return(null!=i||a)&&(r+="
"),a&&(r+=EP(a),null!=i&&(r+=" : ")),null!=i&&(r+=EP(n)),r},getData:function(){return this._data},setData:function(t){this._data=t}});du.mixin(zP,iv);var VP=zP,BP=(VP.extend({type:"markPoint",defaultOption:{zlevel:0,z:5,symbol:"pin",symbolSize:50,tooltip:{trigger:"item"},label:{show:!0,position:"inside"},itemStyle:{borderWidth:2},emphasis:{label:{show:!0}}}}),Fy.isDimensionStacked),GP=du.indexOf,HP=du.curry,FP={min:HP(Qs,"min"),max:HP(Qs,"max"),average:HP(Qs,"average")},WP={dataTransform:function(t,e){var i=t.getData(),n=t.coordinateSystem;if(e&&!function(t){return!isNaN(parseFloat(t.x))&&!isNaN(parseFloat(t.y))}(e)&&!du.isArray(e.coord)&&n){var a=n.dimensions,r=tl(e,i,n,t);if((e=du.clone(e)).type&&FP[e.type]&&r.baseAxis&&r.valueAxis){var o=GP(a,r.baseAxis.dim),s=GP(a,r.valueAxis.dim);e.coord=FP[e.type](i,r.baseDataDim,r.valueDataDim,o,s),e.value=e.coord[s]}else{for(var l=[null!=e.xAxis?e.xAxis:e.radiusAxis,null!=e.yAxis?e.yAxis:e.angleAxis],u=0;u<2;u++)FP[l[u]]&&(l[u]=el(i,i.mapDimension(a[u]),l[u]));e.coord=l}}return e},getAxisInfo:tl,dataFilter:function(t,e){return!(t&&t.containData&&e.coord&&!function(t){return!(isNaN(parseFloat(t.x))&&isNaN(parseFloat(t.y)))}(e))||t.containData(e.coord)},dimValueGetter:function(t,e,i,n){return n<2?t.coord&&t.coord[n]:t.value},numCalculate:el},UP=C_.extendComponentView({type:"marker",init:function(){this.markerGroupMap=du.createHashMap()},render:function(t,e,i){var n=this.markerGroupMap;n.each(function(t){t.__keep=!1});var a=this.type+"Model";e.eachSeries(function(t){var n=t[a];n&&this.renderSeries(t,n,e,i)},this),n.each(function(t){!t.__keep&&this.group.remove(t.group)},this)},renderSeries:function(){}});UP.extend({type:"markPoint",updateTransform:function(t,e,i){e.eachSeries(function(t){var e=t.markPointModel;e&&(il(e.getData(),t,i),this.markerGroupMap.get(t.id).updateLayout(e))},this)},renderSeries:function(t,e,i,n){var a=t.coordinateSystem,r=t.id,o=t.getData(),s=this.markerGroupMap,l=s.get(r)||s.set(r,new U_),u=function(t,e,i){var n;n=t?du.map(t&&t.dimensions,function(t){var i=e.getData().getDimensionInfo(e.getData().mapDimension(t))||{};return du.defaults({name:t},i)}):[{name:"value",type:"float"}];var a=new Ty(n,i),r=du.map(i.get("data"),du.curry(WP.dataTransform,e));return t&&(r=du.filter(r,du.curry(WP.dataFilter,t))),a.initData(r,null,t?WP.dimValueGetter:function(t){return t.value}),a}(a,t,e);e.setData(u),il(e.getData(),t,n),u.each(function(t){var i=u.getItemModel(t),n=i.getShallow("symbolSize");"function"==typeof n&&(n=n(e.getRawValue(t),e.getDataParams(t))),u.setItemVisual(t,{symbolSize:n,color:i.get("itemStyle.color")||o.getVisual("color"),symbol:i.getShallow("symbol")})}),l.updateData(u),this.group.add(l.group),u.eachItemGraphicEl(function(t){t.traverse(function(t){t.dataModel=e})}),l.__keep=!0,l.group.silent=e.get("silent")||t.get("silent")}});C_.registerPreprocessor(function(t){t.markPoint=t.markPoint||{}});VP.extend({type:"markLine",defaultOption:{zlevel:0,z:5,symbol:["circle","arrow"],symbolSize:[8,16],precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end"},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"}});var ZP=function(t,e,i,n){var a=t.getData(),r=n.type;if(!du.isArray(n)&&("min"===r||"max"===r||"average"===r||"median"===r||null!=n.xAxis||null!=n.yAxis)){var o,s;if(null!=n.yAxis||null!=n.xAxis)o=null!=n.yAxis?"y":"x",e.getAxis(o),s=du.retrieve(n.yAxis,n.xAxis);else{var l=WP.getAxisInfo(n,a,e,t);o=l.valueDataDim,l.valueAxis,s=WP.numCalculate(a,o,r)}var u="x"===o?0:1,h=1-u,c=du.clone(n),d={};c.type=null,c.coord=[],d.coord=[],c.coord[h]=-1/0,d.coord[h]=1/0;var f=i.get("precision");f>=0&&"number"==typeof s&&(s=+s.toFixed(Math.min(f,20))),c.coord[u]=d.coord[u]=s,n=[c,d,{type:r,valueIndex:n.valueIndex,value:s}]}return n=[WP.dataTransform(t,n[0]),WP.dataTransform(t,n[1]),du.extend({},n[2])],n[2].type=n[2].type||"",du.merge(n[2],n[0]),du.merge(n[2],n[1]),n};UP.extend({type:"markLine",updateTransform:function(t,e,i){e.eachSeries(function(t){var e=t.markLineModel;if(e){var n=e.getData(),a=e.__from,r=e.__to;a.each(function(e){rl(a,e,!0,t,i),rl(r,e,!1,t,i)}),n.each(function(t){n.setItemLayout(t,[a.getItemLayout(t),r.getItemLayout(t)])}),this.markerGroupMap.get(t.id).updateLayout()}},this)},renderSeries:function(t,e,i,n){function a(e,i,a){var r=e.getItemModel(i);rl(e,i,a,t,n),e.setItemVisual(i,{symbolSize:r.get("symbolSize")||g[a?0:1],symbol:r.get("symbol",!0)||p[a?0:1],color:r.get("itemStyle.color")||s.getVisual("color")})}var r=t.coordinateSystem,o=t.id,s=t.getData(),l=this.markerGroupMap,u=l.get(o)||l.set(o,new rI);this.group.add(u.group);var h=function(t,e,i){var n;n=t?du.map(t&&t.dimensions,function(t){var i=e.getData().getDimensionInfo(e.getData().mapDimension(t))||{};return du.defaults({name:t},i)}):[{name:"value",type:"float"}];var a=new Ty(n,i),r=new Ty(n,i),o=new Ty([],i),s=du.map(i.get("data"),du.curry(ZP,e,t,i));t&&(s=du.filter(s,du.curry(function(t,e){if("cartesian2d"===t.type){var i=e[0].coord,n=e[1].coord;if(i&&n&&(al(1,i,n,t)||al(0,i,n,t)))return!0}return WP.dataFilter(t,e[0])&&WP.dataFilter(t,e[1])},t)));var l=t?WP.dimValueGetter:function(t){return t.value};return a.initData(du.map(s,function(t){return t[0]}),null,l),r.initData(du.map(s,function(t){return t[1]}),null,l),o.initData(du.map(s,function(t){return t[2]})),o.hasItemOption=!0,{from:a,to:r,line:o}}(r,t,e),c=h.from,d=h.to,f=h.line;e.__from=c,e.__to=d,e.setData(f);var p=e.get("symbol"),g=e.get("symbolSize");du.isArray(p)||(p=[p,p]),"number"==typeof g&&(g=[g,g]),h.from.each(function(t){a(c,t,!0),a(d,t,!1)}),f.each(function(t){var e=f.getItemModel(t).get("lineStyle.color");f.setItemVisual(t,{color:e||c.getItemVisual(t,"color")}),f.setItemLayout(t,[c.getItemLayout(t),d.getItemLayout(t)]),f.setItemVisual(t,{fromSymbolSize:c.getItemVisual(t,"symbolSize"),fromSymbol:c.getItemVisual(t,"symbol"),toSymbolSize:d.getItemVisual(t,"symbolSize"),toSymbol:d.getItemVisual(t,"symbol")})}),u.updateData(f),h.line.eachItemGraphicEl(function(t,i){t.traverse(function(t){t.dataModel=e})}),u.__keep=!0,u.group.silent=e.get("silent")||t.get("silent")}});C_.registerPreprocessor(function(t){t.markLine=t.markLine||{}});VP.extend({type:"markArea",defaultOption:{zlevel:0,z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}}});var jP=function(t,e,i,n){var a=WP.dataTransform(t,n[0]),r=WP.dataTransform(t,n[1]),o=du.retrieve,s=a.coord,l=r.coord;s[0]=o(s[0],-1/0),s[1]=o(s[1],-1/0),l[0]=o(l[0],1/0),l[1]=o(l[1],1/0);var u=du.mergeAll([{},a,r]);return u.coord=[a.coord,r.coord],u.x0=a.x,u.y0=a.y,u.x1=r.x,u.y1=r.y,u},YP=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]];UP.extend({type:"markArea",updateTransform:function(t,e,i){e.eachSeries(function(t){var e=t.markAreaModel;if(e){var n=e.getData();n.each(function(e){var a=du.map(YP,function(a){return ll(n,e,a,t,i)});n.setItemLayout(e,a);n.getItemGraphicEl(e).setShape("points",a)})}},this)},renderSeries:function(t,e,i,n){var a=t.coordinateSystem,r=t.id,o=t.getData(),s=this.markerGroupMap,l=s.get(r)||s.set(r,{group:new Dp.Group});this.group.add(l.group),l.__keep=!0;var u=function(t,e,i){var n,a;t?(n=du.map(t&&t.dimensions,function(t){var i=e.getData(),n=i.getDimensionInfo(i.mapDimension(t))||{};return du.defaults({name:t},n)}),a=new Ty(du.map(["x0","y0","x1","y1"],function(t,e){return{name:t,type:n[e%2].type}}),i)):a=new Ty(n=[{name:"value",type:"float"}],i);var r=du.map(i.get("data"),du.curry(jP,e,t,i));t&&(r=du.filter(r,du.curry(function(t,e){var i=e.coord[0],n=e.coord[1];return!("cartesian2d"!==t.type||!i||!n||!sl(1,i,n)&&!sl(0,i,n))||WP.dataFilter(t,{coord:i,x:e.x0,y:e.y0})||WP.dataFilter(t,{coord:n,x:e.x1,y:e.y1})},t)));var o=t?function(t,e,i,n){return t.coord[Math.floor(n/2)][n%2]}:function(t){return t.value};return a.initData(r,null,o),a.hasItemOption=!0,a}(a,t,e);e.setData(u),u.each(function(e){u.setItemLayout(e,du.map(YP,function(i){return ll(u,e,i,t,n)})),u.setItemVisual(e,{color:o.getVisual("color")})}),u.diff(l.__data).add(function(t){var e=new Dp.Polygon({shape:{points:u.getItemLayout(t)}});u.setItemGraphicEl(t,e),l.group.add(e)}).update(function(t,i){var n=l.__data.getItemGraphicEl(i);Dp.updateProps(n,{shape:{points:u.getItemLayout(t)}},e,t),l.group.add(n),u.setItemGraphicEl(t,n)}).remove(function(t){var e=l.__data.getItemGraphicEl(t);l.group.remove(e)}).execute(),u.eachItemGraphicEl(function(t,i){var n=u.getItemModel(i),a=n.getModel("label"),r=n.getModel("emphasis.label"),o=u.getItemVisual(i,"color");t.useStyle(du.defaults(n.getModel("itemStyle").getItemStyle(),{fill:Wu.modifyAlpha(o,.4),stroke:o})),t.hoverStyle=n.getModel("emphasis.itemStyle").getItemStyle(),Dp.setLabelStyle(t.style,t.hoverStyle,a,r,{labelFetcher:e,labelDataIndex:i,defaultText:u.getName(i)||"",isRectText:!0,autoColor:o}),Dp.setHoverStyle(t,{}),t.dataModel=e}),l.__data=u,l.group.silent=e.get("silent")||t.get("silent")}}),C_.registerPreprocessor(function(t){t.markArea=t.markArea||{}});var XP=function(t){var e=t&&t.timeline;du.isArray(e)||(e=e?[e]:[]),du.each(e,function(t){t&&function(t){var e=t.type,i={number:"value",time:"time"};if(i[e]&&(t.axisType=i[e],delete t.type),ul(t),hl(t,"controlPosition")){var n=t.controlStyle||(t.controlStyle={});hl(n,"position")||(n.position=t.controlPosition),"none"!==n.position||hl(n,"show")||(n.show=!1,delete n.position),delete t.controlPosition}du.each(t.data||[],function(t){du.isObject(t)&&!du.isArray(t)&&(!hl(t,"value")&&hl(t,"name")&&(t.value=t.name),ul(t))})}(t)})};ug.registerSubTypeDefaulter("timeline",function(){return"slider"}),C_.registerAction({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},function(t,e){var i=e.getComponent("timeline");return i&&null!=t.currentIndex&&(i.setCurrentIndex(t.currentIndex),!i.get("loop",!0)&&i.isIndexMax()&&i.setPlayState(!1)),e.resetOption("timeline"),du.defaults({currentIndex:i.option.currentIndex},t)}),C_.registerAction({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},function(t,e){var i=e.getComponent("timeline");i&&null!=t.playState&&i.setPlayState(t.playState)});var qP=ug.extend({type:"timeline",layoutMode:"box",defaultOption:{zlevel:0,z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]},init:function(t,e,i){this._data,this._names,this.mergeDefaultAndTheme(t,i),this._initData()},mergeOption:function(t){qP.superApply(this,"mergeOption",arguments),this._initData()},setCurrentIndex:function(t){null==t&&(t=this.option.currentIndex);var e=this._data.count();this.option.loop?t=(t%e+e)%e:(t>=e&&(t=e-1),t<0&&(t=0)),this.option.currentIndex=t},getCurrentIndex:function(){return this.option.currentIndex},isIndexMax:function(){return this.getCurrentIndex()>=this._data.count()-1},setPlayState:function(t){this.option.autoPlay=!!t},getPlayState:function(){return!!this.option.autoPlay},_initData:function(){var t=this.option,e=t.data||[],i=t.axisType,n=this._names=[];if("category"===i){var a=[];du.each(e,function(t,e){var i,r=Wc.getDataItemValue(t);du.isObject(t)?(i=du.clone(t)).value=e:i=e,a.push(i),du.isString(r)||null!=r&&!isNaN(r)||(r=""),n.push(r+"")}),e=a}var r={category:"ordinal",time:"time"}[i]||"number";(this._data=new Ty([{name:"value",type:r}],this)).initData(e,n)},getData:function(){return this._data},getCategories:function(){if("category"===this.get("axisType"))return this._names.slice()}}),$P=qP.extend({type:"timeline.slider",defaultOption:{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"emptyCircle",symbolSize:10,lineStyle:{show:!0,width:2,color:"#304654"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#304654"},itemStyle:{color:"#304654",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:13,color:"#c23531",borderWidth:5,borderColor:"rgba(194,53,49, 0.5)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:22,itemGap:12,position:"left",playIcon:"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",stopIcon:"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",nextIcon:"path://M18.6,50.8l22.5-22.5c0.2-0.2,0.3-0.4,0.3-0.7c0-0.3-0.1-0.5-0.3-0.7L18.7,4.4c-0.1-0.1-0.2-0.3-0.2-0.5 c0-0.4,0.3-0.8,0.8-0.8c0.2,0,0.5,0.1,0.6,0.3l23.5,23.5l0,0c0.2,0.2,0.3,0.4,0.3,0.7c0,0.3-0.1,0.5-0.3,0.7l-0.1,0.1L19.7,52 c-0.1,0.1-0.3,0.2-0.5,0.2c-0.4,0-0.8-0.3-0.8-0.8C18.4,51.2,18.5,51,18.6,50.8z",prevIcon:"path://M43,52.8L20.4,30.3c-0.2-0.2-0.3-0.4-0.3-0.7c0-0.3,0.1-0.5,0.3-0.7L42.9,6.4c0.1-0.1,0.2-0.3,0.2-0.5 c0-0.4-0.3-0.8-0.8-0.8c-0.2,0-0.5,0.1-0.6,0.3L18.3,28.8l0,0c-0.2,0.2-0.3,0.4-0.3,0.7c0,0.3,0.1,0.5,0.3,0.7l0.1,0.1L41.9,54 c0.1,0.1,0.3,0.2,0.5,0.2c0.4,0,0.8-0.3,0.8-0.8C43.2,53.2,43.1,53,43,52.8z",color:"#304654",borderColor:"#304654",borderWidth:1},emphasis:{label:{show:!0,color:"#c23531"},itemStyle:{color:"#c23531"},controlStyle:{color:"#c23531",borderColor:"#c23531",borderWidth:2}},data:[]}});du.mixin($P,iv);var KP=wv.extend({type:"timeline"}),JP=function(t,e,i,n){c_.call(this,t,e,i),this.type=n||"value",this.model=null};JP.prototype={constructor:JP,getLabelModel:function(){return this.model.getModel("label")},isHorizontal:function(){return"horizontal"===this.model.get("orient")}},du.inherits(JP,c_);var QP=JP,tk=Fx.createSymbol,ek=qp.encodeHTML,ik=du.bind,nk=du.each,ak=Math.PI;KP.extend({type:"timeline.slider",init:function(t,e){this.api=e,this._axis,this._viewRect,this._timer,this._currentPointer,this._mainGroup,this._labelGroup},render:function(t,e,i,n){if(this.model=t,this.api=i,this.ecModel=e,this.group.removeAll(),t.get("show",!0)){var a=this._layout(t,i),r=this._createGroup("mainGroup"),o=this._createGroup("labelGroup"),s=this._axis=this._createAxis(a,t);t.formatTooltip=function(t){return ek(s.scale.getLabel(t))},nk(["AxisLine","AxisTick","Control","CurrentPointer"],function(e){this["_render"+e](a,r,s,t)},this),this._renderAxisLabel(a,o,s,t),this._position(a,t)}this._doPlayStop()},remove:function(){this._clearTimer(),this.group.removeAll()},dispose:function(){this._clearTimer()},_layout:function(t,e){var i=t.get("label.position"),n=t.get("orient"),a=function(t,e){return ng.getLayoutRect(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()},t.get("padding"))}(t,e);null==i||"auto"===i?i="horizontal"===n?a.y+a.height/2=0||"+"===i?"left":"right"},o={horizontal:i>=0||"+"===i?"top":"bottom",vertical:"middle"},s={horizontal:0,vertical:ak/2},l="vertical"===n?a.height:a.width,u=t.getModel("controlStyle"),h=u.get("show",!0),c=h?u.get("itemSize"):0,d=h?u.get("itemGap"):0,f=c+d,p=t.get("label.rotate")||0;p=p*ak/180;var g,m,v,y,x=u.get("position",!0),_=h&&u.get("showPlayBtn",!0),b=h&&u.get("showPrevBtn",!0),w=h&&u.get("showNextBtn",!0),S=0,M=l;return"left"===x||"bottom"===x?(_&&(g=[0,0],S+=f),b&&(m=[S,0],S+=f),w&&(v=[M-c,0],M-=f)):(_&&(g=[M-c,0],M-=f),b&&(m=[0,0],S+=f),w&&(v=[M-c,0],M-=f)),y=[S,M],t.get("inverse")&&y.reverse(),{viewRect:a,mainLength:l,orient:n,rotation:s[n],labelRotation:p,labelPosOpt:i,labelAlign:t.get("label.align")||r[n],labelBaseline:t.get("label.verticalAlign")||t.get("label.baseline")||o[n],playPosition:g,prevBtnPosition:m,nextBtnPosition:v,axisExtent:y,controlSize:c,controlGap:d}},_position:function(t,e){function i(t){var e=t.position;t.origin=[c[0][0]-e[0],c[1][0]-e[1]]}function n(t){return[[t.x,t.x+t.width],[t.y,t.y+t.height]]}function a(t,e,i,n,a){t[n]+=i[n][a]-e[n][a]}var r=this._mainGroup,o=this._labelGroup,s=t.viewRect;if("vertical"===t.orient){var l=Mu.create(),u=s.x,h=s.y+s.height;Mu.translate(l,l,[-u,-h]),Mu.rotate(l,l,-ak/2),Mu.translate(l,l,[u,h]),(s=s.clone()).applyTransform(l)}var c=n(s),d=n(r.getBoundingRect()),f=n(o.getBoundingRect()),p=r.position,g=o.position;g[0]=p[0]=c[0][0];var m=t.labelPosOpt;if(isNaN(m)){a(p,d,c,1,v="+"===m?0:1),a(g,f,c,1,1-v)}else{var v=m>=0?0:1;a(p,d,c,1,v),g[1]=p[1]+m}r.attr("position",p),o.attr("position",g),r.rotation=o.rotation=t.rotation,i(r),i(o)},_createAxis:function(t,e){var i=e.getData(),n=e.get("axisType"),a=kx.createScaleByModel(e,n);a.getTicks=function(){return i.mapArray(["value"],function(t){return t})};var r=i.getDataExtent("value");a.setExtent(r[0],r[1]),a.niceTicks();var o=new QP("value",a,t.axisExtent,n);return o.model=e,o},_createGroup:function(t){var e=this["_"+t]=new Dp.Group;return this.group.add(e),e},_renderAxisLine:function(t,e,i,n){var a=i.getExtent();n.get("lineStyle.show")&&e.add(new Dp.Line({shape:{x1:a[0],y1:0,x2:a[1],y2:0},style:du.extend({lineCap:"round"},n.getModel("lineStyle").getLineStyle()),silent:!0,z2:1}))},_renderAxisTick:function(t,e,i,n){var a=n.getData(),r=i.scale.getTicks();nk(r,function(t){var r=i.dataToCoord(t),o=a.getItemModel(t),s=o.getModel("itemStyle"),l=o.getModel("emphasis.itemStyle"),u={position:[r,0],onclick:ik(this._changeTimeline,this,t)},h=cl(o,s,e,u);Dp.setHoverStyle(h,l.getItemStyle()),o.get("tooltip")?(h.dataIndex=t,h.dataModel=n):h.dataIndex=h.dataModel=null},this)},_renderAxisLabel:function(t,e,i,n){if(i.getLabelModel().get("show")){var a=n.getData(),r=i.getViewLabels();nk(r,function(n){var r=n.tickValue,o=a.getItemModel(r),s=o.getModel("label"),l=o.getModel("emphasis.label"),u=i.dataToCoord(n.tickValue),h=new Dp.Text({position:[u,0],rotation:t.labelRotation-t.rotation,onclick:ik(this._changeTimeline,this,r),silent:!1});Dp.setTextStyle(h.style,s,{text:n.formattedLabel,textAlign:t.labelAlign,textVerticalAlign:t.labelBaseline}),e.add(h),Dp.setHoverStyle(h,Dp.setTextStyle({},l))},this)}},_renderControl:function(t,e,i,n){function a(t,i,a,h){if(t){var c=function(t,e,i,n){return Dp.makePath(t.get(e).replace(/^path:\/\//,""),du.clone(n||{}),new ch(i[0],i[1],i[2],i[3]),"center")}(n,i,u,{position:t,origin:[r/2,0],rotation:h?-o:0,rectHover:!0,style:s,onclick:a});e.add(c),Dp.setHoverStyle(c,l)}}var r=t.controlSize,o=t.rotation,s=n.getModel("controlStyle").getItemStyle(),l=n.getModel("emphasis.controlStyle").getItemStyle(),u=[0,-r/2,r,r],h=n.getPlayState(),c=n.get("inverse",!0);a(t.nextBtnPosition,"controlStyle.nextIcon",ik(this._changeTimeline,this,c?"-":"+")),a(t.prevBtnPosition,"controlStyle.prevIcon",ik(this._changeTimeline,this,c?"+":"-")),a(t.playPosition,"controlStyle."+(h?"stopIcon":"playIcon"),ik(this._handlePlayClick,this,!h),!0)},_renderCurrentPointer:function(t,e,i,n){var a=n.getData(),r=n.getCurrentIndex(),o=a.getItemModel(r).getModel("checkpointStyle"),s=this,l={onCreate:function(t){t.draggable=!0,t.drift=ik(s._handlePointerDrag,s),t.ondragend=ik(s._handlePointerDragend,s),dl(t,r,i,n,!0)},onUpdate:function(t){dl(t,r,i,n)}};this._currentPointer=cl(o,o,this._mainGroup,{},this._currentPointer,l)},_handlePlayClick:function(t){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:t,from:this.uid})},_handlePointerDrag:function(t,e,i){this._clearTimer(),this._pointerChangeTimeline([i.offsetX,i.offsetY])},_handlePointerDragend:function(t){this._pointerChangeTimeline([t.offsetX,t.offsetY],!0)},_pointerChangeTimeline:function(t,e){var i=this._toAxisCoord(t)[0],n=this._axis,a=Up.asc(n.getExtent().slice());i>a[1]&&(i=a[1]),ii.getHeight()&&(n.textPosition="top",l=!0);var u=l?-5-a.height:o+8;s+a.width/2>i.getWidth()?(n.textPosition=["100%",u],n.textAlign="right"):s-a.width/2<0&&(n.textPosition=[0,u],n.textAlign="left")}})}},updateView:function(t,e,i,n){du.each(this._features,function(t){t.updateView&&t.updateView(t.model,e,i,n)})},remove:function(t,e){du.each(this._features,function(i){i.remove&&i.remove(t,e)}),this.group.removeAll()},dispose:function(t,e){du.each(this._features,function(i){i.dispose&&i.dispose(t,e)})}}),zv.toolbox.saveAsImage);fl.defaultOption={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:ok.title,type:"png",name:"",excludeComponents:["toolbox"],pixelRatio:1,lang:ok.lang.slice()},fl.prototype.unusable=!Jl.canvasSupported;fl.prototype.onclick=function(t,e){var i=this.model,n=i.get("name")||t.get("title.0.text")||"echarts",a=document.createElement("a"),r=i.get("type",!0)||"png";a.download=n+"."+r,a.target="_blank";var o=e.getConnectedDataURL({type:r,backgroundColor:i.get("backgroundColor",!0)||t.get("backgroundColor")||"#fff",excludeComponents:i.get("excludeComponents"),pixelRatio:i.get("pixelRatio")});if(a.href=o,"function"!=typeof MouseEvent||Jl.browser.ie||Jl.browser.edge)if(window.navigator.msSaveOrOpenBlob){for(var s=atob(o.split(",")[1]),l=s.length,u=new Uint8Array(l);l--;)u[l]=s.charCodeAt(l);var h=new Blob([u]);window.navigator.msSaveOrOpenBlob(h,n+"."+r)}else{var c=i.get("lang"),d='';window.open().document.write(d)}else{var f=new MouseEvent("click",{view:window,bubbles:!0,cancelable:!1});a.dispatchEvent(f)}},wL.register("saveAsImage",fl);var sk=zv.toolbox.magicType;pl.defaultOption={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z",tiled:"M2.3,2.2h22.8V25H2.3V2.2z M35,2.2h22.8V25H35V2.2zM2.3,35h22.8v22.8H2.3V35z M35,35h22.8v22.8H35V35z"},title:du.clone(sk.title),option:{},seriesIndex:{}};var lk=pl.prototype;lk.getIcons=function(){var t=this.model,e=t.get("icon"),i={};return du.each(t.get("type"),function(t){e[t]&&(i[t]=e[t])}),i};var uk={line:function(t,e,i,n){if("bar"===t)return du.merge({id:e,type:"line",data:i.get("data"),stack:i.get("stack"),markPoint:i.get("markPoint"),markLine:i.get("markLine")},n.get("option.line")||{},!0)},bar:function(t,e,i,n){if("line"===t)return du.merge({id:e,type:"bar",data:i.get("data"),stack:i.get("stack"),markPoint:i.get("markPoint"),markLine:i.get("markLine")},n.get("option.bar")||{},!0)},stack:function(t,e,i,n){if("line"===t||"bar"===t)return du.merge({id:e,stack:"__ec_magicType_stack__"},n.get("option.stack")||{},!0)},tiled:function(t,e,i,n){if("line"===t||"bar"===t)return du.merge({id:e,stack:""},n.get("option.tiled")||{},!0)}},hk=[["line","bar"],["stack","tiled"]];lk.onclick=function(t,e,i){var n=this.model,a=n.get("seriesIndex."+i);if(uk[i]){var r={series:[]};du.each(hk,function(t){du.indexOf(t,i)>=0&&du.each(t,function(t){n.setIconStatus(t,"normal")})}),n.setIconStatus(i,"emphasis"),t.eachComponent({mainType:"series",query:null==a?null:{seriesIndex:a}},function(e){var a=e.subType,o=e.id,s=uk[i](a,o,e,n);s&&(du.defaults(s,e.option),r.series.push(s));var l=e.coordinateSystem;if(l&&"cartesian2d"===l.type&&("line"===i||"bar"===i)){var u=l.getAxesByScale("ordinal")[0];if(u){var h=u.dim+"Axis",c=t.queryComponents({mainType:h,index:e.get(name+"Index"),id:e.get(name+"Id")})[0].componentIndex;r[h]=r[h]||[];for(var d=0;d<=c;d++)r[h][c]=r[h][c]||{};r[h][c].boundaryGap="bar"===i}}}),e.dispatchAction({type:"changeMagicType",currentType:i,newOption:r})}},C_.registerAction({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(t,e){e.mergeOption(t.newOption)}),wL.register("magicType",pl);var ck=zv.toolbox.dataView,dk=new Array(60).join("-"),fk="\t",pk=new RegExp("["+fk+"]+","g");ml.defaultOption={show:!0,readOnly:!1,optionToContent:null,contentToOption:null,icon:"M17.5,17.3H33 M17.5,17.3H33 M45.4,29.5h-28 M11.5,2v56H51V14.8L38.4,2H11.5z M38.4,2.2v12.7H51 M45.4,41.7h-28",title:du.clone(ck.title),lang:du.clone(ck.lang),backgroundColor:"#fff",textColor:"#000",textareaColor:"#fff",textareaBorderColor:"#333",buttonColor:"#c23531",buttonTextColor:"#fff"},ml.prototype.onclick=function(t,e){function i(){n.removeChild(r),x._dom=null}var n=e.getDom(),a=this.model;this._dom&&n.removeChild(this._dom);var r=document.createElement("div");r.style.cssText="position:absolute;left:5px;top:5px;bottom:5px;right:5px;",r.style.backgroundColor=a.get("backgroundColor")||"#fff";var o=document.createElement("h4"),s=a.get("lang")||[];o.innerHTML=s[0]||a.get("title"),o.style.cssText="margin: 10px 20px;",o.style.color=a.get("textColor");var l=document.createElement("div"),u=document.createElement("textarea");l.style.cssText="display:block;width:100%;overflow:auto;";var h=a.get("optionToContent"),c=a.get("contentToOption"),d=function(t){var e=function(t){var e={},i=[],n=[];return t.eachRawSeries(function(t){var a=t.coordinateSystem;if(!a||"cartesian2d"!==a.type&&"polar"!==a.type)i.push(t);else{var r=a.getBaseAxis();if("category"===r.type){var o=r.dim+"_"+r.index;e[o]||(e[o]={categoryAxis:r,valueAxis:a.getOtherAxis(r),series:[]},n.push({axisDim:r.dim,axisIndex:r.index})),e[o].series.push(t)}else i.push(t)}}),{seriesGroupByCategoryAxis:e,other:i,meta:n}}(t);return{value:du.filter([function(t){var e=[];return du.each(t,function(t,i){var n=t.categoryAxis,a=t.valueAxis.dim,r=[" "].concat(du.map(t.series,function(t){return t.name})),o=[n.model.getCategories()];du.each(t.series,function(t){o.push(t.getRawData().mapArray(a,function(t){return t}))});for(var s=[r.join(fk)],l=0;l=0)return!0}(t)){var a=function(e){for(var i=t.split(/\n+/g),n=gl(i.shift()).split(pk),a=[],r=du.map(n,function(t){return{name:t,data:[]}}),o=0;o=0&&!i[a][n];a--);if(a<0){var r=t.queryComponents({mainType:"dataZoom",subType:"select",id:n})[0];if(r){var o=r.getPercentRange();i[0][n]={dataZoomId:n,start:o[0],end:o[1]}}}}),i.push(e)},pop:function(t){var e=vl(t),i=e[e.length-1];e.length>1&&e.pop();var n={};return gk(i,function(t,i){for(var a=e.length-1;a>=0;a--)if(t=e[a][i]){n[i]=t;break}}),n},clear:function(t){t[mk]=null},count:function(t){return vl(t).length}},yk=(GL.extend({type:"dataZoom.select"}),HL.extend({type:"dataZoom.select"}),zv.toolbox.dataZoom),xk=du.each,_k="\0_ec_\0toolbox-dataZoom_";yl.defaultOption={show:!0,icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:du.clone(yk.title)};var bk=yl.prototype;bk.render=function(t,e,i,n){this.model=t,this.ecModel=e,this.api=i,function(t,e,i,n,a){var r=i._isZoomActive;n&&"takeGlobalCursor"===n.type&&(r="dataZoomSelect"===n.key&&n.dataZoomSelectActive),i._isZoomActive=r,t.setIconStatus("zoom",r?"emphasis":"normal");var o=new pL(xl(t.option),e,{include:["grid"]});i._brushController.setPanels(o.makePanelOpts(a,function(t){return t.xAxisDeclared&&!t.yAxisDeclared?"lineX":!t.xAxisDeclared&&t.yAxisDeclared?"lineY":"rect"})).enableBrush(!!r&&{brushType:"auto",brushStyle:{lineWidth:0,fill:"rgba(0,0,0,0.2)"}})}(t,e,this,n,i),function(t,e){t.setIconStatus("back",vk.count(e)>1?"emphasis":"normal")}(t,e)},bk.onclick=function(t,e,i){wk[i].call(this)},bk.remove=function(t,e){this._brushController.unmount()},bk.dispose=function(t,e){this._brushController.dispose()};var wk={zoom:function(){var t=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:t})},back:function(){this._dispatchZoomAction(vk.pop(this.ecModel))}};bk._onBrush=function(t,e){function i(t,e,i){var r=e.getAxis(t),o=r.model,s=function(t,e,i){var n;return i.eachComponent({mainType:"dataZoom",subType:"select"},function(i){i.getAxisModel(t,e.componentIndex)&&(n=i)}),n}(t,o,a),l=s.findRepresentativeAxisProxy(o).getMinMaxSpan();null==l.minValueSpan&&null==l.maxValueSpan||(i=KI(0,i.slice(),r.scale.getExtent(),0,l.minValueSpan,l.maxValueSpan)),s&&(n[s.id]={dataZoomId:s.id,startValue:i[0],endValue:i[1]})}if(e.isEnd&&t.length){var n={},a=this.ecModel;this._brushController.updateCovers([]);new pL(xl(this.model.option),a,{include:["grid"]}).matchOutputRanges(t,a,function(t,e,n){if("cartesian2d"===n.type){var a=t.brushType;"rect"===a?(i("x",n,e[0]),i("y",n,e[1])):i({lineX:"x",lineY:"y"}[a],n,e)}}),vk.push(a,n),this._dispatchZoomAction(n)}},bk._dispatchZoomAction=function(t){var e=[];xk(t,function(t,i){e.push(du.clone(t))}),e.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:e})},wL.register("dataZoom",yl),C_.registerPreprocessor(function(t){function e(e,n){if(n){var a=e+"Index",r=n[a];null==r||"all"==r||du.isArray(r)||(r=!1===r||"none"===r?[]:[r]),function(e,i){var n=t[e];du.isArray(n)||(n=n?[n]:[]);xk(n,i)}(e,function(t,n){if(null==r||"all"==r||-1!==du.indexOf(r,n)){var o={type:"select",$fromToolbox:!0,id:_k+e+n};o[a]=n,i.push(o)}})}}if(t){var i=t.dataZoom||(t.dataZoom=[]);du.isArray(i)||(t.dataZoom=i=[i]);var n=t.toolbox;if(n&&(du.isArray(n)&&(n=n[0]),n&&n.feature)){var a=n.feature.dataZoom;e("xAxis",a),e("yAxis",a)}}});var Sk=zv.toolbox.restore;_l.defaultOption={show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:Sk.title};_l.prototype.onclick=function(t,e,i){vk.clear(t),e.dispatchAction({type:"restore",from:this.uid})},wL.register("restore",_l),C_.registerAction({type:"restore",event:"restore",update:"prepareAndUpdate"},function(t,e){e.resetOption("recreate")});var Mk,Ik="urn:schemas-microsoft-com:vml",Ak="undefined"==typeof window?null:window,Tk=!1,Dk=Ak&&Ak.document;if(Dk&&!Jl.canvasSupported)try{!Dk.namespaces.zrvml&&Dk.namespaces.add("zrvml",Ik),Mk=function(t){return Dk.createElement("')}}catch(t){Mk=function(t){return Dk.createElement("<"+t+' xmlns="'+Ik+'" class="zrvml">')}}var Ck={doc:Dk,createNode:function(t){return Mk(t)},initVML:function(){if(!Tk&&Dk){Tk=!0;var t=Dk.styleSheets;t.length<31?Dk.createStyleSheet().addRule(".zrvml","behavior:url(#default#VML)"):t[0].addRule(".zrvml","behavior:url(#default#VML)")}}},Lk=pu.applyTransform,Pk=Ed.CMD,kk=Math.round,Ok=Math.sqrt,Rk=Math.abs,Nk=Math.cos,Ek=Math.sin,zk=Math.max;if(!Jl.canvasSupported){var Vk=21600,Bk=Vk/2,Gk=function(t){t.style.cssText="position:absolute;left:0;top:0;width:1px;height:1px;",t.coordsize=Vk+","+Vk,t.coordorigin="0,0"},Hk=function(t,e,i){return"rgb("+[t,e,i].join(",")+")"},Fk=function(t,e){e&&t&&e.parentNode!==t&&t.appendChild(e)},Wk=function(t,e){e&&t&&e.parentNode===t&&t.removeChild(e)},Uk=function(t,e,i){return 1e5*(parseFloat(t)||0)+1e3*(parseFloat(e)||0)+i},Zk=function(t,e){return"string"==typeof t?t.lastIndexOf("%")>=0?parseFloat(t)/100*e:parseFloat(t):t},jk=function(t,e,i){var n=Wu.parse(e);i=+i,isNaN(i)&&(i=1),n&&(t.color=Hk(n[0],n[1],n[2]),t.opacity=i*n[3])},Yk=function(t,e,i,n){var a="fill"==e,r=t.getElementsByTagName(e)[0];null!=i[e]&&"none"!==i[e]&&(a||!a&&i.lineWidth)?(t[a?"filled":"stroked"]="true",i[e]instanceof Qf&&Wk(t,r),r||(r=Ck.createNode(e)),a?function(t,e,i){var n=e.fill;if(null!=n)if(n instanceof Qf){var a,r=0,o=[0,0],s=0,l=1,u=i.getBoundingRect(),h=u.width,c=u.height;if("linear"===n.type){a="gradient";var d=i.transform,f=[n.x*h,n.y*c],p=[n.x2*h,n.y2*c];d&&(Lk(f,f,d),Lk(p,p,d));var g=p[0]-f[0],m=p[1]-f[1];(r=180*Math.atan2(g,m)/Math.PI)<0&&(r+=360),r<1e-6&&(r=0)}else{a="gradientradial";var f=[n.x*h,n.y*c],d=i.transform,v=i.scale,y=h,x=c;o=[(f[0]-u.x)/y,(f[1]-u.y)/x],d&&Lk(f,f,d),y/=v[0]*Vk,x/=v[1]*Vk;var _=zk(y,x);s=0/_,l=2*n.r/_-s}var b=n.colorStops.slice();b.sort(function(t,e){return t.offset-e.offset});for(var w=b.length,S=[],M=[],I=0;I=2){var D=S[0][0],C=S[1][0],L=S[0][1]*e.opacity,P=S[1][1]*e.opacity;t.type=a,t.method="none",t.focus="100%",t.angle=r,t.color=D,t.color2=C,t.colors=M.join(","),t.opacity=P,t.opacity2=L}"radial"===a&&(t.focusposition=o.join(","))}else jk(t,n,e.opacity)}(r,i,n):function(t,e){null!=e.lineDash&&(t.dashstyle=e.lineDash.join(" ")),null==e.stroke||e.stroke instanceof Qf||jk(t,e.stroke,e.opacity)}(r,i),Fk(t,r)):(t[a?"filled":"stroked"]="false",Wk(t,r))},Xk=[[],[],[]];af.prototype.brushVML=function(t){var e=this.style,i=this._vmlEl;i||(i=Ck.createNode("shape"),Gk(i),this._vmlEl=i),Yk(i,"fill",e,this),Yk(i,"stroke",e,this);var n=this.transform,a=null!=n,r=i.getElementsByTagName("stroke")[0];if(r){var o=e.lineWidth;if(a&&!e.strokeNoScale){var s=n[0]*n[3]-n[1]*n[2];o*=Ok(Rk(s))}r.weight=o+"px"}var l=this.path||(this.path=new Ed);this.__dirtyPath&&(l.beginPath(),this.buildPath(l,this.shape),l.toStatic(),this.__dirtyPath=!1),i.path=function(t,e){var i,n,a,r,o,s,l=Pk.M,u=Pk.C,h=Pk.L,c=Pk.A,d=Pk.Q,f=[],p=t.data,g=t.len();for(r=0;r.01?O&&(R+=.0125):Math.abs(N-D)<1e-4?O&&RT?x-=.0125:x+=.0125:O&&ND?y+=.0125:y-=.0125),f.push(E,kk(((T-C)*M+w)*Vk-Bk),",",kk(((D-L)*I+S)*Vk-Bk),",",kk(((T+C)*M+w)*Vk-Bk),",",kk(((D+L)*I+S)*Vk-Bk),",",kk((R*M+w)*Vk-Bk),",",kk((N*I+S)*Vk-Bk),",",kk((y*M+w)*Vk-Bk),",",kk((x*I+S)*Vk-Bk)),o=y,s=x;break;case Pk.R:var z=Xk[0],V=Xk[1];z[0]=p[r++],z[1]=p[r++],V[0]=z[0]+p[r++],V[1]=z[1]+p[r++],e&&(Lk(z,z,e),Lk(V,V,e)),z[0]=kk(z[0]*Vk-Bk),V[0]=kk(V[0]*Vk-Bk),z[1]=kk(z[1]*Vk-Bk),V[1]=kk(V[1]*Vk-Bk),f.push(" m ",z[0],",",z[1]," l ",V[0],",",z[1]," l ",V[0],",",V[1]," l ",z[0],",",V[1]);break;case Pk.Z:f.push(" x ")}if(i>0){f.push(n);for(var B=0;B100&&(Kk=0,$k={});var i,n=Jk.style;try{n.font=t,i=n.fontFamily.split(",")[0]}catch(t){}e={style:n.fontStyle||"normal",variant:n.fontVariant||"normal",weight:n.fontWeight||"normal",size:0|parseFloat(n.fontSize||12),family:i||"Microsoft YaHei"},$k[t]=e,Kk++}return e}(a.font),m=g.style+" "+g.variant+" "+g.weight+" "+g.size+'px "'+g.family+'"';i=i||jh.getBoundingRect(r,m,f,p);var v=this.transform;if(v&&!n&&(Qk.copy(e),Qk.applyTransform(v),e=Qk),n)c=e.x,d=e.y;else{var y=a.textPosition,x=a.textDistance;if(y instanceof Array)c=e.x+Zk(y[0],e.width),d=e.y+Zk(y[1],e.height),f=f||"left";else{var _=jh.adjustTextPositionOnRect(y,e,x);c=_.x,d=_.y,f=f||_.textAlign,p=p||_.textVerticalAlign}}c=jh.adjustTextX(c,i.width,f),d=jh.adjustTextY(d,i.height,p),d+=i.height/2;var b,w,S,M=Ck.createNode,I=this._textVmlEl;I?w=(b=(S=I.firstChild).nextSibling).nextSibling:(I=M("line"),b=M("path"),w=M("textpath"),S=M("skew"),w.style["v-text-align"]="left",Gk(I),b.textpathok=!0,w.on=!0,I.from="0 0",I.to="1000 0.05",Fk(I,S),Fk(I,b),Fk(I,w),this._textVmlEl=I);var A=[c,d],T=I.style;v&&n?(Lk(A,A,v),S.on=!0,S.matrix=v[0].toFixed(3)+","+v[2].toFixed(3)+","+v[1].toFixed(3)+","+v[3].toFixed(3)+",0,0",S.offset=(kk(A[0])||0)+","+(kk(A[1])||0),S.origin="0 0",T.left="0px",T.top="0px"):(S.on=!1,T.left=kk(c)+"px",T.top=kk(d)+"px"),w.string=function(t){return String(t).replace(/&/g,"&").replace(/"/g,""")}(r);try{w.style.font=m}catch(t){}Yk(I,"fill",{fill:a.textFill,opacity:a.opacity},this),Yk(I,"stroke",{stroke:a.textStroke,opacity:a.opacity,lineDash:a.lineDash},this),I.style.zIndex=Uk(this.zlevel,this.z,this.z2),Fk(t,I)}},iO.removeRectText=function(t){Wk(t,this._textVmlEl),this._textVmlEl=null},iO.appendRectText=function(t){Fk(t,this._textVmlEl)}}bf.prototype.brushVML=function(t){var e=this.style;null!=e.text?this.drawRectText(t,{x:e.x||0,y:e.y||0,width:0,height:0},this.getBoundingRect(),!0):this.removeRectText(t)},bf.prototype.onRemove=function(t){this.removeRectText(t)},bf.prototype.onAdd=function(t){this.appendRectText(t)}}var nO=du.each;wl.prototype={constructor:wl,getType:function(){return"vml"},getViewportRoot:function(){return this._vmlViewport},getViewportRootOffset:function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},refresh:function(){var t=this.storage.getDisplayList(!0,!0);this._paintList(t)},_paintList:function(t){for(var e=this._vmlRoot,i=0;i=gO||!Ml(g)&&(d>-pO&&d<0||d>pO)==!!p;var y=Sl(s+u*fO(c)),x=Sl(l+h*dO(c));m&&(d=p?gO-1e-4:1e-4-gO,v=!0,9===a&&e.push("M",y,x));var _=Sl(s+u*fO(c+d)),b=Sl(l+h*dO(c+d));e.push("A",Sl(u),Sl(h),cO(f*mO),+v,+p,_,b);break;case lO.Z:r="Z";break;case lO.R:var _=Sl(i[a++]),b=Sl(i[a++]),w=Sl(i[a++]),S=Sl(i[a++]);e.push("M",_,b,"L",_+w,b,"L",_+w,b+S,"L",_,b+S,"L",_,b)}r&&e.push(r);for(var M=0;M=a&&u+1>=r){for(var h=[],c=0;c=a&&c+1>=r)return function(t,e,i,n){for(var a=0,r=e.length,o=0,s=0;a=0;--n)if(e[n]===t)return!0;return!1}),i):null:i[0]},Ll.prototype.update=function(t,e){if(t){var i=this.getDefs(!1);if(t[this._domName]&&i.contains(t[this._domName]))"function"==typeof e&&e(t);else{var n=this.add(t);n&&(t[this._domName]=n)}}},Ll.prototype.addDom=function(t){this.getDefs(!0).appendChild(t)},Ll.prototype.removeDom=function(t){var e=this.getDefs(!1);e&&t[this._domName]&&(e.removeChild(t[this._domName]),t[this._domName]=null)},Ll.prototype.getDoms=function(){var t=this.getDefs(!1);if(!t)return[];var e=[];return du.each(this._tagNames,function(i){var n=t.getElementsByTagName(i);e=e.concat([].slice.call(n))}),e},Ll.prototype.markAllUnused=function(){var t=this.getDoms(),e=this;du.each(t,function(t){t[e._markLabel]="0"})},Ll.prototype.markUsed=function(t){t&&(t[this._markLabel]="1")},Ll.prototype.removeUnused=function(){var t=this.getDefs(!1);if(t){var e=this.getDoms(),i=this;du.each(e,function(e){"1"!==e[i._markLabel]&&t.removeChild(e)})}},Ll.prototype.getSvgProxy=function(t){return t instanceof af?TO:t instanceof sc?DO:t instanceof bf?CO:TO},Ll.prototype.getTextSvgElement=function(t){return t.__textSvgEl},Ll.prototype.getSvgElement=function(t){return t.__svgEl};var LO=Ll;du.inherits(Pl,LO),Pl.prototype.addWithoutUpdate=function(t,e){if(e&&e.style){var i=this;du.each(["fill","stroke"],function(n){if(e.style[n]&&("linear"===e.style[n].type||"radial"===e.style[n].type)){var a,r=e.style[n],o=i.getDefs(!0);r._dom?(a=r._dom,o.contains(r._dom)||i.addDom(a)):a=i.add(r),i.markUsed(e);var s=a.getAttribute("id");t.setAttribute(n,"url(#"+s+")")}})}},Pl.prototype.add=function(t){var e;if("linear"===t.type)e=this.createElement("linearGradient");else{if("radial"!==t.type)return Ju("Illegal gradient type."),null;e=this.createElement("radialGradient")}return t.id=t.id||this.nextId++,e.setAttribute("id","zr"+this._zrId+"-gradient-"+t.id),this.updateDom(t,e),this.addDom(e),e},Pl.prototype.update=function(t){var e=this;LO.prototype.update.call(this,t,function(){var i=t.type,n=t._dom.tagName;"linear"===i&&"linearGradient"===n||"radial"===i&&"radialGradient"===n?e.updateDom(t,t._dom):(e.removeDom(t),e.add(t))})},Pl.prototype.updateDom=function(t,e){if("linear"===t.type)e.setAttribute("x1",t.x),e.setAttribute("y1",t.y),e.setAttribute("x2",t.x2),e.setAttribute("y2",t.y2);else{if("radial"!==t.type)return void Ju("Illegal gradient type.");e.setAttribute("cx",t.x),e.setAttribute("cy",t.y),e.setAttribute("r",t.r)}t.global?e.setAttribute("gradientUnits","userSpaceOnUse"):e.setAttribute("gradientUnits","objectBoundingBox"),e.innerHTML="";for(var i=t.colorStops,n=0,a=i.length;n0){var n,a,r=this.getDefs(!0),o=e[0],s=i?"_textDom":"_dom";o[s]?(a=o[s].getAttribute("id"),n=o[s],r.contains(n)||r.appendChild(n)):(a="zr"+this._zrId+"-clip-"+this.nextId,++this.nextId,(n=this.createElement("clipPath")).setAttribute("id",a),r.appendChild(n),o[s]=n);var l=this.getSvgProxy(o);if(o.transform&&o.parent.invTransform&&!i){var u=Array.prototype.slice.call(o.transform);Mu.mul(o.transform,o.parent.invTransform,o.transform),l.brush(o),o.transform=u}else l.brush(o);var h=this.getSvgElement(o);n.innerHTML="",n.appendChild(h.cloneNode()),t.setAttribute("clip-path","url(#"+a+")"),e.length>1&&this.updateDom(n,e.slice(1),i)}else t&&t.setAttribute("clip-path","none")},kl.prototype.markUsed=function(t){var e=this;t.__clipPaths&&t.__clipPaths.length>0&&du.each(t.__clipPaths,function(t){t._dom&&LO.prototype.markUsed.call(e,t._dom),t._textDom&&LO.prototype.markUsed.call(e,t._textDom)})};var kO=kl;du.inherits(Ol,LO),Ol.prototype.addWithoutUpdate=function(t,e){if(e&&Rl(e.style)){var i,n=e.style;if(n._shadowDom){i=n._shadowDom;this.getDefs(!0).contains(n._shadowDom)||this.addDom(i)}else i=this.add(e);this.markUsed(e);var a=i.getAttribute("id");t.style.filter="url(#"+a+")"}},Ol.prototype.add=function(t){var e=this.createElement("filter"),i=t.style;return i._shadowDomId=i._shadowDomId||this.nextId++,e.setAttribute("id","zr"+this._zrId+"-shadow-"+i._shadowDomId),this.updateDom(t,e),this.addDom(e),e},Ol.prototype.update=function(t,e){var i=e.style;if(Rl(i)){var n=this;LO.prototype.update.call(this,e,function(t){n.updateDom(e,t._shadowDom)})}else this.remove(t,i)},Ol.prototype.remove=function(t,e){null!=e._shadowDomId&&(this.removeDom(e),t.style.filter="")},Ol.prototype.updateDom=function(t,e){var i=e.getElementsByTagName("feDropShadow");i=0===i.length?this.createElement("feDropShadow"):i[0];var n,a,r,o,s=t.style,l=t.scale?t.scale[0]||1:1,u=t.scale?t.scale[1]||1:1;if(s.shadowBlur||s.shadowOffsetX||s.shadowOffsetY)n=s.shadowOffsetX||0,a=s.shadowOffsetY||0,r=s.shadowBlur,o=s.shadowColor;else{if(!s.textShadowBlur)return void this.removeDom(e,s);n=s.textShadowOffsetX||0,a=s.textShadowOffsetY||0,r=s.textShadowBlur,o=s.textShadowColor}i.setAttribute("dx",n/l),i.setAttribute("dy",a/u),i.setAttribute("flood-color",o);var h=r/2/l+" "+r/2/u;i.setAttribute("stdDeviation",h),e.setAttribute("x","-100%"),e.setAttribute("y","-100%"),e.setAttribute("width",Math.ceil(r/2*200)+"%"),e.setAttribute("height",Math.ceil(r/2*200)+"%"),e.appendChild(i),s._shadowDom=e},Ol.prototype.markUsed=function(t){var e=t.style;e&&e._shadowDom&&LO.prototype.markUsed.call(this,e._shadowDom)};var OO=Ol,RO=oO.createElement,NO=du.each,EO=SO.path,zO=SO.image,VO=SO.text,BO=function(t,e,i,n){this.root=t,this.storage=e,this._opts=i=du.extend({},i||{});var a=RO("svg");a.setAttribute("xmlns","http://www.w3.org/2000/svg"),a.setAttribute("version","1.1"),a.setAttribute("baseProfile","full"),a.style.cssText="user-select:none;position:absolute;left:0;top:0;",this.gradientManager=new PO(n,a),this.clipPathManager=new kO(n,a),this.shadowManager=new OO(n,a);var r=document.createElement("div");r.style.cssText="overflow:hidden;position:relative",this._svgRoot=a,this._viewport=r,t.appendChild(r),r.appendChild(a),this.resize(i.width,i.height),this._visibleList=[]};BO.prototype={constructor:BO,getType:function(){return"svg"},getViewportRoot:function(){return this._viewport},getViewportRootOffset:function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},refresh:function(){var t=this.storage.getDisplayList(!0);this._paintList(t)},setBackgroundColor:function(t){this._viewport.style.background=t},_paintList:function(t){this.gradientManager.markAllUnused(),this.clipPathManager.markAllUnused(),this.shadowManager.markAllUnused();var e,i=this._svgRoot,n=this._visibleList,a=t.length,r=[];for(e=0;e=0;--n)if(e[n]===t)return!0;return!1}),i}return null}return i[0]},resize:function(t,e){var i=this._viewport;i.style.display="none";var n=this._opts;if(null!=t&&(n.width=t),null!=e&&(n.height=e),t=this._getSize(0),e=this._getSize(1),i.style.display="",this._width!==t||this._height!==e){this._width=t,this._height=e;var a=i.style;a.width=t+"px",a.height=e+"px";var r=this._svgRoot;r.setAttribute("width",t),r.setAttribute("height",e)}},getWidth:function(){return this._width},getHeight:function(){return this._height},_getSize:function(t){var e=this._opts,i=["width","height"][t],n=["clientWidth","clientHeight"][t],a=["paddingLeft","paddingTop"][t],r=["paddingRight","paddingBottom"][t];if(null!=e[i]&&"auto"!==e[i])return parseFloat(e[i]);var o=this.root,s=document.defaultView.getComputedStyle(o);return(o[n]||Nl(s[i])||Nl(o.style[i]))-(Nl(s[a])||0)-(Nl(s[r])||0)|0},dispose:function(){this.root.innerHTML="",this._svgRoot=this._viewport=this.storage=null},clear:function(){this._viewport&&this.root.removeChild(this._viewport)},pathToDataUrl:function(){this.refresh();return"data:image/svg+xml;charset=UTF-8,"+this._svgRoot.outerHTML}},NO(["getLayer","insertLayer","eachLayer","eachBuiltinLayer","eachOtherLayer","getLayers","modLayer","delLayer","clearLayer","toDataURL","pathToImage"],function(t){BO.prototype[t]=function(t){return function(){Ju('In SVG mode painter not support method "'+t+'"')}}(t)});var GO=BO;(0,zc.registerPainter)("svg",GO);!function(t){t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")&&t.default}(t(function(t,e){!function(){for(var t in C_){if(null==C_||!C_.hasOwnProperty(t)||"default"===t||"__esModule"===t)return;e[t]=C_[t]}}(),function(){for(var t in D_){if(null==D_||!D_.hasOwnProperty(t)||"default"===t||"__esModule"===t)return;e[t]=D_[t]}}()}));var HO=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)},FO="object"==typeof Xl&&Xl&&Xl===Object&&Xl,WO="object"==typeof self&&self&&self.Object===Object&&self,UO=FO||WO||Function("return this")(),ZO=function(){return UO.Date.now()},jO=UO.Symbol,YO=Object.prototype,XO=YO.hasOwnProperty,qO=YO.toString,$O=jO?jO.toStringTag:void 0,KO=function(t){var e=XO.call(t,$O),i=t[$O];try{t[$O]=void 0;var n=!0}catch(t){}var a=qO.call(t);return n&&(e?t[$O]=i:delete t[$O]),a},JO=Object.prototype.toString,QO=function(t){return JO.call(t)},tR="[object Null]",eR="[object Undefined]",iR=jO?jO.toStringTag:void 0,nR=function(t){return null==t?void 0===t?eR:tR:iR&&iR in Object(t)?KO(t):QO(t)},aR=function(t){return null!=t&&"object"==typeof t},rR="[object Symbol]",oR=function(t){return"symbol"==typeof t||aR(t)&&nR(t)==rR},sR=NaN,lR=/^\s+|\s+$/g,uR=/^[-+]0x[0-9a-f]+$/i,hR=/^0b[01]+$/i,cR=/^0o[0-7]+$/i,dR=parseInt,fR=function(t){if("number"==typeof t)return t;if(oR(t))return sR;if(HO(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=HO(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(lR,"");var i=hR.test(t);return i||cR.test(t)?dR(t.slice(2),i?2:8):uR.test(t)?sR:+t},pR="Expected a function",gR=Math.max,mR=Math.min,vR=function(t,e,i){function n(e){var i=l,n=u;return l=u=void 0,p=e,c=t.apply(n,i)}function a(t){var i=t-f;return void 0===f||i>=e||i<0||m&&t-p>=h}function r(){var t=ZO();if(a(t))return o(t);d=setTimeout(r,function(t){var i=e-(t-f);return m?mR(i,h-(t-p)):i}(t))}function o(t){return d=void 0,v&&l?n(t):(l=u=void 0,c)}function s(){var t=ZO(),i=a(t);if(l=arguments,u=this,f=t,i){if(void 0===d)return function(t){return p=t,d=setTimeout(r,e),g?n(t):c}(f);if(m)return d=setTimeout(r,e),n(f)}return void 0===d&&(d=setTimeout(r,e)),c}var l,u,h,c,d,f,p=0,g=!1,m=!1,v=!0;if("function"!=typeof t)throw new TypeError(pR);return e=fR(e)||0,HO(i)&&(g=!!i.leading,h=(m="maxWait"in i)?gR(fR(i.maxWait)||0,e):h,v="trailing"in i?!!i.trailing:v),s.cancel=function(){void 0!==d&&clearTimeout(d),p=0,l=f=u=d=void 0},s.flush=function(){return void 0===d?c:o(ZO())},s},yR=null,xR=null,_R='.resize-triggers{visibility:hidden;opacity:0}.resize-contract-trigger,.resize-contract-trigger:before,.resize-expand-trigger,.resize-triggers{content:"";position:absolute;top:0;left:0;height:100%;width:100%;overflow:hidden}.resize-contract-trigger,.resize-expand-trigger{background:#eee;overflow:auto}.resize-contract-trigger:before{width:200%;height:200%}',bR=0,wR=null;!function(){if("undefined"!=typeof document){var t=document.head||document.getElementsByTagName("head")[0],e=document.createElement("style"),i=" .echarts { width: 600px; height: 400px; } ";e.type="text/css",e.styleSheet?e.styleSheet.cssText=i:e.appendChild(document.createTextNode(i)),t.appendChild(e)}}();var SR=["legendselectchanged","legendselected","legendunselected","legendunscroll","datazoom","datarangeselected","timelinechanged","timelineplaychanged","restore","dataviewchanged","magictypechanged","geoselectchanged","geoselected","geounselected","pieselectchanged","pieselected","pieunselected","mapselectchanged","mapselected","mapunselected","axisareaselected","focusnodeadjacency","unfocusnodeadjacency","brush","brushselected","rendered","finished","click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];return{render:function(){var t=this.$createElement;return(this._self._c||t)("div",{staticClass:"echarts"})},staticRenderFns:[],props:{options:Object,theme:[String,Object],initOptions:Object,group:String,autoResize:Boolean,watchShallow:Boolean,manualUpdate:Boolean},data:function(){return{lastArea:0}},watch:{group:function(t){this.chart.group=t}},methods:{mergeOptions:function(t,e,i){this.manualUpdate&&(this.manualOptions=t),this.chart?this.delegateMethod("setOption",t,e,i):this.init()},appendData:function(t){this.delegateMethod("appendData",t)},resize:function(t){this.delegateMethod("resize",t)},dispatchAction:function(t){this.delegateMethod("dispatchAction",t)},convertToPixel:function(t,e){return this.delegateMethod("convertToPixel",t,e)},convertFromPixel:function(t,e){return this.delegateMethod("convertFromPixel",t,e)},containPixel:function(t,e){return this.delegateMethod("containPixel",t,e)},showLoading:function(t,e){this.delegateMethod("showLoading",t,e)},hideLoading:function(){this.delegateMethod("hideLoading")},getDataURL:function(t){return this.delegateMethod("getDataURL",t)},getConnectedDataURL:function(t){return this.delegateMethod("getConnectedDataURL",t)},clear:function(){this.delegateMethod("clear")},dispose:function(){this.delegateMethod("dispose")},delegateMethod:function(t){for(var e=[],i=arguments.length-1;i-- >0;)e[i]=arguments[i+1];return this.chart||this.init(),(n=this.chart)[t].apply(n,e);var n},delegateGet:function(t,e){return this.chart||this.init(),this.chart[e]()},getArea:function(){return this.$el.offsetWidth*this.$el.offsetHeight},init:function(){var t=this;if(!this.chart){var e=C_.init(this.$el,this.theme,this.initOptions);this.group&&(e.group=this.group),e.setOption(this.manualOptions||this.options||{},!0),SR.forEach(function(i){e.on(i,function(e){t.$emit(i,e)})}),this.autoResize&&(this.lastArea=this.getArea(),this.__resizeHandler=vR(function(){0===t.lastArea?(t.mergeOptions({},!0),t.resize(),t.mergeOptions(t.options||t.manualOptions||{},!0)):t.resize(),t.lastArea=t.getArea()},100,{leading:!0}),function(t,e){if(t.__resize_mutation_handler__||(t.__resize_mutation_handler__=function(){var t=Wl(this),e=t.rendered,i=t.detached;e!==this.__resize_rendered__&&(!i&&this.__resize_triggers__&&(jl(this),this.addEventListener("scroll",Ul,!0)),this.__resize_rendered__=e,Zl(this))}.bind(t)),!t.__resize_listeners__)if(t.__resize_listeners__=[],window.ResizeObserver){var i=t.offsetWidth,n=t.offsetHeight,a=new ResizeObserver(function(){(t.__resize_observer_triggered__||(t.__resize_observer_triggered__=!0,t.offsetWidth!==i||t.offsetHeight!==n))&&Zl(t)}),r=Wl(t),o=r.detached,s=r.rendered;t.__resize_observer_triggered__=!1===o&&!1===s,t.__resize_observer__=a,a.observe(t)}else if(t.attachEvent&&t.addEventListener)t.__resize_legacy_resize_handler__=function(){Zl(t)},t.attachEvent("onresize",t.__resize_legacy_resize_handler__),document.addEventListener("DOMSubtreeModified",t.__resize_mutation_handler__);else if(bR||(wR=function(t){var e=document.createElement("style");return e.type="text/css",e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t)),(document.querySelector("head")||document.body).appendChild(e),e}(_R)),function(t){var e=getComputedStyle(t).position;"static"===e&&(t.style.position="relative"),t.__resize_old_position__=e,t.__resize_last__={};var i=Fl("div",{className:"resize-triggers"}),n=Fl("div",{className:"resize-expand-trigger"}),a=Fl("div"),r=Fl("div",{className:"resize-contract-trigger"});n.appendChild(a),i.appendChild(n),i.appendChild(r),t.appendChild(i),t.__resize_triggers__={triggers:i,expand:n,expandChild:a,contract:r},jl(t),t.addEventListener("scroll",Ul,!0),t.__resize_last__={width:t.offsetWidth,height:t.offsetHeight}}(t),t.__resize_rendered__=Wl(t).rendered,window.MutationObserver){var l=new MutationObserver(t.__resize_mutation_handler__);l.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0}),t.__resize_mutation_observer__=l}t.__resize_listeners__.push(e),bR++}(this.$el,this.__resizeHandler)),Object.defineProperties(this,{width:{configurable:!0,get:function(){return t.delegateGet("width","getWidth")}},height:{configurable:!0,get:function(){return t.delegateGet("height","getHeight")}},isDisposed:{configurable:!0,get:function(){return!!t.delegateGet("isDisposed","isDisposed")}},computedOptions:{configurable:!0,get:function(){return t.delegateGet("computedOptions","getOption")}}}),this.chart=e}},destroy:function(){this.autoResize&&function(t,e){if(t.detachEvent&&t.removeEventListener)return t.detachEvent("onresize",t.__resize_legacy_resize_handler__),void document.removeEventListener("DOMSubtreeModified",t.__resize_mutation_handler__);var i=t.__resize_listeners__;i.splice(i.indexOf(e),1),i.length||(t.__resize_observer__?(t.__resize_observer__.unobserve(t),t.__resize_observer__.disconnect(),t.__resize_observer__=null):(t.__resize_mutation_observer__&&(t.__resize_mutation_observer__.disconnect(),t.__resize_mutation_observer__=null),t.removeEventListener("scroll",Ul),t.removeChild(t.__resize_triggers__.triggers),t.__resize_triggers__=null),t.__resize_listeners__=null),!--bR&&wR&&wR.parentNode.removeChild(wR)}(this.$el,this.__resizeHandler),this.dispose(),this.chart=null},refresh:function(){this.chart&&(this.destroy(),this.init())}},created:function(){var t=this;this.manualUpdate||this.$watch("options",function(e,i){!t.chart&&e?t.init():t.chart.setOption(e,e!==i)},{deep:!this.watchShallow});["theme","initOptions","autoResize","manualUpdate","watchShallow"].forEach(function(e){t.$watch(e,function(){t.refresh()},{deep:!0})})},mounted:function(){this.options&&this.init()},activated:function(){this.autoResize&&this.chart&&this.chart.resize()},beforeDestroy:function(){this.chart&&this.destroy()},connect:function(t){"string"!=typeof t&&(t=t.map(function(t){return t.chart})),C_.connect(t)},disconnect:function(t){C_.disConnect(t)},registerMap:function(t,e,i){C_.registerMap(t,e,i)},registerTheme:function(t,e){C_.registerTheme(t,e)},graphic:C_.graphic}}); \ No newline at end of file diff --git a/package.json b/package.json index 0f0ff04..e04b568 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "vue-echarts", - "version": "3.1.2", + "version": "3.1.3", "description": "ECharts component for Vue.js.", "main": "dist/vue-echarts.js", "scripts": { diff --git a/src/components/ECharts.vue b/src/components/ECharts.vue index b2ce43d..0d898fa 100644 --- a/src/components/ECharts.vue +++ b/src/components/ECharts.vue @@ -47,9 +47,11 @@ const EVENTS = [ 'dblclick', 'mouseover', 'mouseout', + 'mousemove', 'mousedown', 'mouseup', - 'globalout' + 'globalout', + 'contextmenu' ] export default {