index.38ca0632.js 1023 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834238352383623837238382383923840238412384223843238442384523846238472384823849238502385123852238532385423855238562385723858238592386023861238622386323864238652386623867238682386923870238712387223873238742387523876238772387823879238802388123882238832388423885238862388723888238892389023891238922389323894238952389623897238982389923900239012390223903239042390523906239072390823909239102391123912239132391423915239162391723918239192392023921239222392323924239252392623927239282392923930239312393223933239342393523936239372393823939239402394123942239432394423945239462394723948239492395023951239522395323954239552395623957239582395923960239612396223963239642396523966239672396823969239702397123972239732397423975239762397723978239792398023981239822398323984239852398623987239882398923990239912399223993239942399523996239972399823999240002400124002240032400424005240062400724008240092401024011240122401324014240152401624017240182401924020240212402224023240242402524026240272402824029240302403124032240332403424035240362403724038240392404024041240422404324044240452404624047240482404924050240512405224053240542405524056240572405824059240602406124062240632406424065240662406724068240692407024071240722407324074240752407624077240782407924080240812408224083240842408524086240872408824089240902409124092240932409424095240962409724098240992410024101241022410324104241052410624107241082410924110241112411224113241142411524116241172411824119241202412124122241232412424125241262412724128241292413024131241322413324134241352413624137241382413924140241412414224143241442414524146241472414824149241502415124152241532415424155241562415724158241592416024161241622416324164241652416624167241682416924170241712417224173241742417524176241772417824179241802418124182241832418424185241862418724188241892419024191241922419324194241952419624197241982419924200242012420224203242042420524206242072420824209242102421124212242132421424215242162421724218242192422024221242222422324224242252422624227242282422924230242312423224233242342423524236242372423824239242402424124242242432424424245242462424724248242492425024251242522425324254242552425624257242582425924260242612426224263242642426524266242672426824269242702427124272242732427424275242762427724278242792428024281242822428324284242852428624287242882428924290242912429224293242942429524296242972429824299243002430124302243032430424305243062430724308243092431024311243122431324314243152431624317243182431924320243212432224323243242432524326243272432824329243302433124332243332433424335243362433724338243392434024341243422434324344243452434624347243482434924350243512435224353243542435524356243572435824359243602436124362243632436424365243662436724368243692437024371243722437324374243752437624377243782437924380243812438224383243842438524386243872438824389243902439124392243932439424395243962439724398243992440024401244022440324404244052440624407244082440924410244112441224413244142441524416244172441824419244202442124422244232442424425244262442724428244292443024431244322443324434244352443624437244382443924440244412444224443244442444524446244472444824449244502445124452244532445424455244562445724458244592446024461244622446324464244652446624467244682446924470244712447224473244742447524476244772447824479244802448124482244832448424485244862448724488244892449024491244922449324494244952449624497244982449924500245012450224503245042450524506245072450824509245102451124512245132451424515245162451724518245192452024521245222452324524245252452624527245282452924530245312453224533245342453524536245372453824539245402454124542245432454424545245462454724548245492455024551245522455324554245552455624557245582455924560245612456224563245642456524566245672456824569245702457124572245732457424575245762457724578245792458024581245822458324584245852458624587245882458924590245912459224593245942459524596245972459824599246002460124602246032460424605246062460724608246092461024611246122461324614246152461624617246182461924620246212462224623246242462524626246272462824629246302463124632246332463424635246362463724638246392464024641246422464324644246452464624647246482464924650246512465224653246542465524656246572465824659246602466124662246632466424665246662466724668246692467024671246722467324674246752467624677246782467924680246812468224683246842468524686246872468824689246902469124692246932469424695246962469724698246992470024701247022470324704247052470624707247082470924710247112471224713247142471524716247172471824719247202472124722247232472424725247262472724728247292473024731247322473324734247352473624737247382473924740247412474224743247442474524746247472474824749247502475124752247532475424755247562475724758247592476024761247622476324764247652476624767247682476924770247712477224773247742477524776247772477824779247802478124782247832478424785247862478724788247892479024791247922479324794247952479624797247982479924800248012480224803248042480524806248072480824809248102481124812248132481424815248162481724818248192482024821248222482324824248252482624827248282482924830248312483224833248342483524836248372483824839248402484124842248432484424845248462484724848248492485024851248522485324854248552485624857248582485924860248612486224863248642486524866248672486824869248702487124872248732487424875248762487724878248792488024881248822488324884248852488624887248882488924890248912489224893248942489524896248972489824899249002490124902249032490424905249062490724908249092491024911249122491324914249152491624917249182491924920249212492224923249242492524926249272492824929249302493124932249332493424935249362493724938249392494024941249422494324944249452494624947249482494924950249512495224953249542495524956249572495824959249602496124962249632496424965249662496724968249692497024971249722497324974249752497624977249782497924980249812498224983249842498524986249872498824989249902499124992249932499424995249962499724998249992500025001250022500325004250052500625007250082500925010250112501225013250142501525016250172501825019250202502125022250232502425025250262502725028250292503025031250322503325034250352503625037250382503925040250412504225043250442504525046250472504825049250502505125052250532505425055250562505725058250592506025061250622506325064250652506625067250682506925070250712507225073250742507525076250772507825079250802508125082250832508425085250862508725088250892509025091250922509325094250952509625097250982509925100251012510225103251042510525106251072510825109251102511125112251132511425115251162511725118251192512025121251222512325124251252512625127251282512925130251312513225133251342513525136251372513825139251402514125142251432514425145251462514725148251492515025151251522515325154251552515625157251582515925160251612516225163251642516525166251672516825169251702517125172251732517425175251762517725178251792518025181251822518325184251852518625187251882518925190251912519225193251942519525196251972519825199252002520125202252032520425205252062520725208252092521025211252122521325214252152521625217252182521925220252212522225223252242522525226252272522825229252302523125232252332523425235252362523725238252392524025241252422524325244252452524625247252482524925250252512525225253252542525525256252572525825259252602526125262252632526425265252662526725268252692527025271252722527325274252752527625277252782527925280252812528225283252842528525286252872528825289252902529125292252932529425295252962529725298252992530025301253022530325304253052530625307253082530925310253112531225313253142531525316253172531825319253202532125322253232532425325253262532725328253292533025331253322533325334253352533625337253382533925340253412534225343253442534525346253472534825349253502535125352253532535425355253562535725358253592536025361253622536325364253652536625367253682536925370253712537225373253742537525376253772537825379253802538125382253832538425385253862538725388253892539025391253922539325394253952539625397253982539925400254012540225403254042540525406254072540825409254102541125412254132541425415254162541725418254192542025421254222542325424254252542625427254282542925430254312543225433254342543525436254372543825439254402544125442254432544425445254462544725448254492545025451254522545325454254552545625457254582545925460254612546225463254642546525466254672546825469254702547125472254732547425475254762547725478254792548025481254822548325484254852548625487254882548925490254912549225493254942549525496254972549825499255002550125502255032550425505255062550725508255092551025511255122551325514255152551625517255182551925520255212552225523255242552525526255272552825529255302553125532255332553425535255362553725538255392554025541255422554325544255452554625547255482554925550255512555225553255542555525556255572555825559255602556125562255632556425565255662556725568255692557025571255722557325574255752557625577255782557925580255812558225583255842558525586255872558825589255902559125592255932559425595255962559725598255992560025601256022560325604256052560625607256082560925610256112561225613256142561525616256172561825619256202562125622256232562425625256262562725628256292563025631256322563325634256352563625637256382563925640256412564225643256442564525646256472564825649256502565125652256532565425655256562565725658256592566025661256622566325664256652566625667256682566925670256712567225673256742567525676256772567825679256802568125682256832568425685256862568725688256892569025691256922569325694256952569625697256982569925700257012570225703257042570525706257072570825709257102571125712257132571425715257162571725718257192572025721257222572325724257252572625727257282572925730257312573225733257342573525736257372573825739257402574125742257432574425745257462574725748257492575025751257522575325754257552575625757257582575925760257612576225763257642576525766257672576825769257702577125772257732577425775257762577725778257792578025781257822578325784257852578625787257882578925790257912579225793257942579525796257972579825799258002580125802258032580425805258062580725808258092581025811258122581325814258152581625817258182581925820258212582225823258242582525826258272582825829258302583125832258332583425835258362583725838258392584025841258422584325844258452584625847258482584925850258512585225853258542585525856258572585825859258602586125862258632586425865258662586725868258692587025871258722587325874258752587625877258782587925880258812588225883258842588525886258872588825889258902589125892258932589425895258962589725898258992590025901259022590325904259052590625907259082590925910259112591225913259142591525916259172591825919259202592125922259232592425925259262592725928259292593025931259322593325934259352593625937259382593925940259412594225943259442594525946259472594825949259502595125952259532595425955259562595725958259592596025961259622596325964259652596625967259682596925970259712597225973259742597525976259772597825979259802598125982259832598425985259862598725988259892599025991259922599325994259952599625997259982599926000260012600226003260042600526006260072600826009260102601126012260132601426015260162601726018260192602026021260222602326024260252602626027260282602926030260312603226033260342603526036260372603826039260402604126042260432604426045260462604726048260492605026051260522605326054260552605626057260582605926060260612606226063260642606526066260672606826069260702607126072260732607426075260762607726078260792608026081260822608326084260852608626087260882608926090260912609226093260942609526096260972609826099261002610126102261032610426105261062610726108261092611026111261122611326114261152611626117261182611926120261212612226123261242612526126261272612826129261302613126132261332613426135261362613726138261392614026141261422614326144261452614626147261482614926150261512615226153261542615526156261572615826159261602616126162261632616426165261662616726168261692617026171261722617326174261752617626177261782617926180261812618226183261842618526186261872618826189261902619126192261932619426195261962619726198261992620026201262022620326204262052620626207262082620926210262112621226213262142621526216262172621826219262202622126222262232622426225262262622726228262292623026231262322623326234262352623626237262382623926240262412624226243262442624526246262472624826249262502625126252262532625426255262562625726258262592626026261262622626326264262652626626267262682626926270262712627226273262742627526276262772627826279262802628126282262832628426285262862628726288262892629026291262922629326294262952629626297262982629926300263012630226303263042630526306263072630826309263102631126312263132631426315263162631726318263192632026321263222632326324263252632626327263282632926330263312633226333263342633526336263372633826339263402634126342263432634426345263462634726348263492635026351263522635326354263552635626357263582635926360263612636226363263642636526366263672636826369263702637126372263732637426375263762637726378263792638026381263822638326384263852638626387263882638926390263912639226393263942639526396263972639826399264002640126402264032640426405264062640726408264092641026411264122641326414264152641626417264182641926420264212642226423264242642526426264272642826429264302643126432264332643426435264362643726438264392644026441264422644326444264452644626447264482644926450264512645226453264542645526456264572645826459264602646126462264632646426465264662646726468264692647026471264722647326474264752647626477264782647926480264812648226483264842648526486264872648826489264902649126492264932649426495264962649726498264992650026501265022650326504265052650626507265082650926510265112651226513265142651526516265172651826519265202652126522265232652426525265262652726528265292653026531265322653326534265352653626537265382653926540265412654226543265442654526546265472654826549265502655126552265532655426555265562655726558265592656026561265622656326564265652656626567265682656926570265712657226573265742657526576265772657826579265802658126582265832658426585265862658726588265892659026591265922659326594265952659626597265982659926600266012660226603266042660526606266072660826609266102661126612266132661426615266162661726618266192662026621266222662326624266252662626627266282662926630266312663226633266342663526636266372663826639266402664126642266432664426645266462664726648266492665026651266522665326654266552665626657266582665926660266612666226663266642666526666266672666826669266702667126672266732667426675266762667726678266792668026681266822668326684266852668626687266882668926690266912669226693266942669526696266972669826699267002670126702267032670426705267062670726708267092671026711267122671326714267152671626717267182671926720267212672226723267242672526726267272672826729267302673126732267332673426735267362673726738267392674026741267422674326744267452674626747267482674926750267512675226753267542675526756267572675826759267602676126762267632676426765267662676726768267692677026771267722677326774267752677626777267782677926780267812678226783267842678526786267872678826789267902679126792267932679426795267962679726798267992680026801268022680326804268052680626807268082680926810268112681226813268142681526816268172681826819268202682126822268232682426825268262682726828268292683026831268322683326834268352683626837268382683926840268412684226843268442684526846268472684826849268502685126852268532685426855268562685726858268592686026861268622686326864268652686626867268682686926870268712687226873268742687526876268772687826879268802688126882268832688426885268862688726888268892689026891268922689326894268952689626897268982689926900269012690226903269042690526906269072690826909269102691126912269132691426915269162691726918269192692026921269222692326924269252692626927269282692926930269312693226933269342693526936269372693826939269402694126942269432694426945269462694726948269492695026951269522695326954269552695626957269582695926960269612696226963269642696526966269672696826969269702697126972269732697426975269762697726978269792698026981269822698326984269852698626987269882698926990269912699226993269942699526996269972699826999270002700127002270032700427005270062700727008270092701027011270122701327014270152701627017270182701927020270212702227023270242702527026270272702827029270302703127032270332703427035270362703727038270392704027041270422704327044270452704627047270482704927050270512705227053270542705527056270572705827059270602706127062270632706427065270662706727068270692707027071270722707327074270752707627077270782707927080270812708227083270842708527086270872708827089270902709127092270932709427095270962709727098270992710027101271022710327104271052710627107271082710927110271112711227113271142711527116271172711827119271202712127122271232712427125271262712727128271292713027131271322713327134271352713627137271382713927140271412714227143271442714527146271472714827149271502715127152271532715427155271562715727158271592716027161271622716327164271652716627167271682716927170271712717227173271742717527176271772717827179271802718127182271832718427185271862718727188271892719027191271922719327194271952719627197271982719927200272012720227203272042720527206272072720827209272102721127212272132721427215272162721727218272192722027221272222722327224272252722627227272282722927230272312723227233272342723527236272372723827239272402724127242272432724427245272462724727248272492725027251272522725327254272552725627257272582725927260272612726227263272642726527266272672726827269272702727127272272732727427275272762727727278272792728027281272822728327284272852728627287272882728927290272912729227293272942729527296272972729827299273002730127302273032730427305273062730727308273092731027311273122731327314273152731627317273182731927320273212732227323273242732527326273272732827329273302733127332273332733427335273362733727338273392734027341273422734327344273452734627347273482734927350273512735227353273542735527356273572735827359273602736127362273632736427365273662736727368273692737027371273722737327374273752737627377273782737927380273812738227383273842738527386273872738827389273902739127392273932739427395273962739727398273992740027401274022740327404274052740627407274082740927410274112741227413274142741527416274172741827419274202742127422274232742427425274262742727428274292743027431274322743327434274352743627437274382743927440274412744227443274442744527446274472744827449274502745127452274532745427455274562745727458274592746027461274622746327464274652746627467274682746927470274712747227473274742747527476274772747827479274802748127482274832748427485274862748727488274892749027491274922749327494274952749627497274982749927500275012750227503275042750527506275072750827509275102751127512275132751427515275162751727518275192752027521275222752327524275252752627527275282752927530275312753227533275342753527536275372753827539275402754127542275432754427545275462754727548275492755027551275522755327554275552755627557275582755927560275612756227563275642756527566275672756827569275702757127572275732757427575275762757727578275792758027581275822758327584275852758627587275882758927590275912759227593275942759527596275972759827599276002760127602276032760427605276062760727608276092761027611276122761327614276152761627617276182761927620276212762227623276242762527626276272762827629276302763127632276332763427635276362763727638276392764027641276422764327644276452764627647276482764927650276512765227653276542765527656276572765827659276602766127662276632766427665276662766727668276692767027671276722767327674276752767627677276782767927680276812768227683276842768527686276872768827689276902769127692276932769427695276962769727698276992770027701277022770327704277052770627707277082770927710277112771227713277142771527716277172771827719277202772127722277232772427725277262772727728277292773027731277322773327734277352773627737277382773927740277412774227743277442774527746277472774827749277502775127752277532775427755277562775727758277592776027761277622776327764277652776627767277682776927770277712777227773277742777527776277772777827779277802778127782277832778427785277862778727788277892779027791277922779327794277952779627797277982779927800278012780227803278042780527806278072780827809278102781127812278132781427815278162781727818278192782027821278222782327824278252782627827278282782927830278312783227833278342783527836278372783827839278402784127842278432784427845278462784727848278492785027851278522785327854278552785627857278582785927860278612786227863278642786527866278672786827869278702787127872278732787427875278762787727878278792788027881278822788327884278852788627887278882788927890278912789227893278942789527896278972789827899279002790127902279032790427905279062790727908279092791027911279122791327914279152791627917279182791927920279212792227923279242792527926279272792827929279302793127932279332793427935279362793727938279392794027941279422794327944279452794627947279482794927950279512795227953279542795527956279572795827959279602796127962279632796427965279662796727968279692797027971279722797327974279752797627977279782797927980279812798227983279842798527986279872798827989279902799127992279932799427995279962799727998279992800028001280022800328004280052800628007280082800928010280112801228013280142801528016280172801828019280202802128022280232802428025280262802728028280292803028031280322803328034280352803628037280382803928040280412804228043280442804528046280472804828049280502805128052280532805428055280562805728058280592806028061280622806328064280652806628067280682806928070280712807228073280742807528076280772807828079280802808128082280832808428085280862808728088280892809028091280922809328094280952809628097280982809928100281012810228103281042810528106281072810828109281102811128112281132811428115281162811728118281192812028121281222812328124281252812628127281282812928130281312813228133281342813528136281372813828139281402814128142281432814428145281462814728148281492815028151281522815328154281552815628157281582815928160281612816228163281642816528166281672816828169281702817128172281732817428175281762817728178281792818028181281822818328184281852818628187281882818928190281912819228193281942819528196281972819828199282002820128202282032820428205282062820728208282092821028211282122821328214282152821628217282182821928220282212822228223282242822528226282272822828229282302823128232282332823428235282362823728238282392824028241282422824328244282452824628247282482824928250282512825228253282542825528256282572825828259282602826128262282632826428265282662826728268282692827028271282722827328274282752827628277282782827928280282812828228283282842828528286282872828828289282902829128292282932829428295282962829728298282992830028301283022830328304283052830628307283082830928310283112831228313283142831528316283172831828319283202832128322283232832428325283262832728328283292833028331283322833328334283352833628337283382833928340283412834228343283442834528346283472834828349283502835128352283532835428355283562835728358283592836028361283622836328364283652836628367283682836928370283712837228373283742837528376283772837828379283802838128382283832838428385283862838728388283892839028391283922839328394283952839628397283982839928400284012840228403284042840528406284072840828409284102841128412284132841428415284162841728418284192842028421284222842328424284252842628427284282842928430284312843228433284342843528436284372843828439284402844128442284432844428445284462844728448284492845028451284522845328454284552845628457284582845928460284612846228463284642846528466284672846828469284702847128472284732847428475284762847728478284792848028481284822848328484284852848628487284882848928490284912849228493284942849528496284972849828499285002850128502285032850428505285062850728508285092851028511285122851328514285152851628517285182851928520285212852228523285242852528526285272852828529285302853128532285332853428535285362853728538285392854028541285422854328544285452854628547285482854928550285512855228553285542855528556285572855828559285602856128562285632856428565285662856728568285692857028571285722857328574285752857628577285782857928580285812858228583285842858528586285872858828589285902859128592285932859428595285962859728598285992860028601286022860328604286052860628607286082860928610286112861228613286142861528616286172861828619286202862128622286232862428625286262862728628286292863028631286322863328634286352863628637286382863928640286412864228643286442864528646286472864828649286502865128652286532865428655286562865728658286592866028661286622866328664286652866628667286682866928670286712867228673286742867528676286772867828679286802868128682286832868428685286862868728688286892869028691286922869328694286952869628697286982869928700287012870228703287042870528706287072870828709287102871128712287132871428715287162871728718287192872028721287222872328724287252872628727287282872928730287312873228733287342873528736287372873828739287402874128742287432874428745287462874728748287492875028751287522875328754287552875628757287582875928760287612876228763287642876528766287672876828769287702877128772287732877428775287762877728778287792878028781287822878328784287852878628787287882878928790287912879228793287942879528796287972879828799288002880128802288032880428805288062880728808288092881028811288122881328814288152881628817288182881928820288212882228823288242882528826288272882828829288302883128832288332883428835288362883728838288392884028841288422884328844288452884628847288482884928850288512885228853288542885528856288572885828859288602886128862288632886428865288662886728868288692887028871288722887328874288752887628877288782887928880288812888228883288842888528886288872888828889288902889128892288932889428895288962889728898288992890028901289022890328904289052890628907289082890928910289112891228913289142891528916289172891828919289202892128922289232892428925289262892728928289292893028931289322893328934289352893628937289382893928940289412894228943289442894528946289472894828949289502895128952289532895428955289562895728958289592896028961289622896328964289652896628967289682896928970289712897228973289742897528976289772897828979289802898128982289832898428985289862898728988289892899028991289922899328994289952899628997289982899929000290012900229003290042900529006290072900829009290102901129012290132901429015290162901729018290192902029021290222902329024290252902629027290282902929030290312903229033290342903529036290372903829039290402904129042290432904429045290462904729048290492905029051290522905329054290552905629057290582905929060290612906229063290642906529066290672906829069290702907129072290732907429075290762907729078290792908029081290822908329084290852908629087290882908929090290912909229093290942909529096290972909829099291002910129102291032910429105291062910729108291092911029111291122911329114291152911629117291182911929120291212912229123291242912529126291272912829129291302913129132291332913429135291362913729138291392914029141291422914329144291452914629147291482914929150291512915229153291542915529156291572915829159291602916129162291632916429165291662916729168291692917029171291722917329174291752917629177291782917929180291812918229183291842918529186291872918829189291902919129192291932919429195291962919729198291992920029201292022920329204292052920629207292082920929210292112921229213292142921529216292172921829219292202922129222292232922429225292262922729228292292923029231292322923329234292352923629237292382923929240292412924229243292442924529246292472924829249292502925129252292532925429255292562925729258292592926029261292622926329264292652926629267292682926929270292712927229273292742927529276292772927829279292802928129282292832928429285292862928729288292892929029291292922929329294292952929629297292982929929300293012930229303293042930529306293072930829309293102931129312293132931429315293162931729318293192932029321293222932329324293252932629327293282932929330293312933229333293342933529336293372933829339293402934129342293432934429345293462934729348293492935029351293522935329354293552935629357293582935929360293612936229363293642936529366293672936829369293702937129372293732937429375293762937729378293792938029381293822938329384293852938629387293882938929390293912939229393293942939529396293972939829399294002940129402294032940429405294062940729408294092941029411294122941329414294152941629417294182941929420294212942229423294242942529426294272942829429294302943129432294332943429435294362943729438294392944029441294422944329444294452944629447294482944929450294512945229453294542945529456294572945829459294602946129462294632946429465294662946729468294692947029471294722947329474294752947629477294782947929480294812948229483294842948529486294872948829489294902949129492294932949429495294962949729498294992950029501295022950329504295052950629507295082950929510295112951229513295142951529516295172951829519295202952129522295232952429525295262952729528295292953029531295322953329534295352953629537295382953929540295412954229543295442954529546295472954829549295502955129552295532955429555295562955729558295592956029561295622956329564295652956629567295682956929570295712957229573295742957529576295772957829579295802958129582295832958429585295862958729588295892959029591295922959329594295952959629597295982959929600296012960229603296042960529606296072960829609296102961129612296132961429615296162961729618296192962029621296222962329624296252962629627296282962929630296312963229633296342963529636296372963829639296402964129642296432964429645296462964729648296492965029651296522965329654296552965629657296582965929660296612966229663296642966529666296672966829669296702967129672296732967429675296762967729678296792968029681296822968329684296852968629687296882968929690296912969229693296942969529696296972969829699297002970129702297032970429705297062970729708297092971029711297122971329714297152971629717297182971929720297212972229723297242972529726297272972829729297302973129732297332973429735297362973729738297392974029741297422974329744297452974629747297482974929750297512975229753297542975529756297572975829759297602976129762297632976429765297662976729768297692977029771297722977329774297752977629777297782977929780297812978229783297842978529786297872978829789297902979129792297932979429795297962979729798297992980029801298022980329804298052980629807298082980929810298112981229813298142981529816298172981829819298202982129822298232982429825298262982729828298292983029831298322983329834298352983629837298382983929840298412984229843298442984529846298472984829849298502985129852298532985429855298562985729858298592986029861298622986329864298652986629867298682986929870298712987229873298742987529876298772987829879298802988129882298832988429885298862988729888298892989029891298922989329894298952989629897298982989929900299012990229903299042990529906299072990829909299102991129912299132991429915299162991729918299192992029921299222992329924299252992629927299282992929930299312993229933299342993529936299372993829939299402994129942299432994429945299462994729948299492995029951299522995329954299552995629957299582995929960299612996229963299642996529966299672996829969299702997129972299732997429975299762997729978299792998029981299822998329984299852998629987299882998929990299912999229993299942999529996299972999829999300003000130002300033000430005300063000730008300093001030011300123001330014300153001630017300183001930020300213002230023300243002530026300273002830029300303003130032300333003430035300363003730038300393004030041300423004330044300453004630047300483004930050300513005230053300543005530056300573005830059300603006130062300633006430065300663006730068300693007030071300723007330074300753007630077300783007930080300813008230083300843008530086300873008830089300903009130092300933009430095300963009730098300993010030101301023010330104301053010630107301083010930110301113011230113301143011530116301173011830119301203012130122301233012430125301263012730128301293013030131301323013330134301353013630137301383013930140301413014230143301443014530146301473014830149301503015130152301533015430155301563015730158301593016030161301623016330164301653016630167301683016930170301713017230173301743017530176301773017830179301803018130182301833018430185301863018730188301893019030191301923019330194301953019630197301983019930200302013020230203302043020530206302073020830209302103021130212302133021430215302163021730218302193022030221302223022330224302253022630227302283022930230302313023230233302343023530236302373023830239302403024130242302433024430245302463024730248302493025030251302523025330254302553025630257302583025930260302613026230263302643026530266302673026830269302703027130272302733027430275302763027730278302793028030281302823028330284302853028630287302883028930290302913029230293302943029530296302973029830299303003030130302303033030430305303063030730308303093031030311303123031330314303153031630317303183031930320303213032230323303243032530326303273032830329303303033130332303333033430335303363033730338303393034030341303423034330344303453034630347303483034930350303513035230353303543035530356303573035830359303603036130362303633036430365303663036730368303693037030371303723037330374303753037630377303783037930380303813038230383303843038530386303873038830389303903039130392303933039430395303963039730398303993040030401304023040330404304053040630407304083040930410304113041230413304143041530416304173041830419304203042130422304233042430425304263042730428304293043030431304323043330434304353043630437304383043930440304413044230443304443044530446304473044830449304503045130452304533045430455304563045730458304593046030461304623046330464304653046630467304683046930470304713047230473304743047530476304773047830479304803048130482304833048430485304863048730488304893049030491304923049330494304953049630497304983049930500305013050230503305043050530506305073050830509305103051130512305133051430515305163051730518305193052030521305223052330524305253052630527305283052930530305313053230533305343053530536305373053830539305403054130542305433054430545305463054730548305493055030551305523055330554305553055630557305583055930560305613056230563305643056530566305673056830569305703057130572305733057430575305763057730578305793058030581305823058330584305853058630587305883058930590305913059230593305943059530596305973059830599306003060130602306033060430605306063060730608306093061030611306123061330614306153061630617306183061930620306213062230623306243062530626306273062830629306303063130632306333063430635306363063730638306393064030641306423064330644306453064630647306483064930650306513065230653306543065530656306573065830659306603066130662306633066430665306663066730668306693067030671306723067330674306753067630677306783067930680306813068230683306843068530686306873068830689306903069130692306933069430695306963069730698306993070030701307023070330704307053070630707307083070930710307113071230713307143071530716307173071830719307203072130722307233072430725307263072730728307293073030731307323073330734307353073630737307383073930740307413074230743307443074530746307473074830749307503075130752307533075430755307563075730758307593076030761307623076330764307653076630767307683076930770307713077230773307743077530776307773077830779307803078130782307833078430785307863078730788307893079030791307923079330794307953079630797307983079930800308013080230803308043080530806308073080830809308103081130812308133081430815308163081730818308193082030821308223082330824308253082630827308283082930830308313083230833308343083530836308373083830839308403084130842308433084430845308463084730848308493085030851308523085330854308553085630857308583085930860308613086230863308643086530866308673086830869308703087130872308733087430875308763087730878308793088030881308823088330884308853088630887308883088930890308913089230893308943089530896308973089830899309003090130902309033090430905309063090730908309093091030911309123091330914309153091630917309183091930920309213092230923309243092530926309273092830929309303093130932309333093430935309363093730938309393094030941309423094330944309453094630947309483094930950309513095230953309543095530956309573095830959309603096130962309633096430965309663096730968309693097030971309723097330974309753097630977309783097930980309813098230983309843098530986309873098830989309903099130992309933099430995309963099730998309993100031001310023100331004310053100631007310083100931010310113101231013310143101531016310173101831019310203102131022310233102431025310263102731028310293103031031310323103331034310353103631037310383103931040310413104231043310443104531046310473104831049310503105131052310533105431055310563105731058310593106031061310623106331064310653106631067310683106931070310713107231073310743107531076310773107831079310803108131082310833108431085310863108731088310893109031091310923109331094310953109631097310983109931100311013110231103311043110531106311073110831109311103111131112311133111431115311163111731118311193112031121311223112331124311253112631127311283112931130311313113231133311343113531136311373113831139311403114131142311433114431145311463114731148311493115031151311523115331154311553115631157311583115931160311613116231163311643116531166311673116831169311703117131172311733117431175311763117731178311793118031181311823118331184311853118631187311883118931190311913119231193311943119531196311973119831199312003120131202312033120431205312063120731208312093121031211312123121331214312153121631217312183121931220312213122231223312243122531226312273122831229312303123131232312333123431235312363123731238312393124031241312423124331244312453124631247312483124931250312513125231253312543125531256312573125831259312603126131262312633126431265312663126731268312693127031271312723127331274312753127631277312783127931280312813128231283312843128531286312873128831289312903129131292312933129431295312963129731298312993130031301313023130331304313053130631307313083130931310313113131231313313143131531316313173131831319313203132131322313233132431325313263132731328313293133031331313323133331334313353133631337313383133931340313413134231343313443134531346313473134831349313503135131352313533135431355313563135731358313593136031361313623136331364313653136631367313683136931370313713137231373313743137531376313773137831379313803138131382313833138431385313863138731388313893139031391313923139331394313953139631397313983139931400314013140231403314043140531406314073140831409314103141131412314133141431415314163141731418314193142031421314223142331424314253142631427314283142931430314313143231433314343143531436314373143831439314403144131442314433144431445314463144731448314493145031451314523145331454314553145631457314583145931460314613146231463314643146531466314673146831469314703147131472314733147431475314763147731478314793148031481314823148331484314853148631487314883148931490314913149231493314943149531496314973149831499315003150131502315033150431505315063150731508315093151031511315123151331514315153151631517315183151931520315213152231523315243152531526315273152831529315303153131532315333153431535315363153731538315393154031541315423154331544315453154631547315483154931550315513155231553315543155531556315573155831559315603156131562315633156431565315663156731568315693157031571315723157331574315753157631577315783157931580315813158231583315843158531586315873158831589315903159131592315933159431595315963159731598315993160031601316023160331604316053160631607316083160931610316113161231613316143161531616316173161831619316203162131622316233162431625316263162731628316293163031631316323163331634316353163631637316383163931640316413164231643316443164531646316473164831649316503165131652316533165431655316563165731658316593166031661316623166331664316653166631667316683166931670316713167231673316743167531676316773167831679316803168131682316833168431685316863168731688316893169031691316923169331694316953169631697316983169931700317013170231703317043170531706317073170831709317103171131712317133171431715317163171731718317193172031721317223172331724317253172631727317283172931730317313173231733317343173531736317373173831739317403174131742317433174431745317463174731748317493175031751317523175331754317553175631757317583175931760317613176231763317643176531766317673176831769317703177131772317733177431775317763177731778317793178031781317823178331784317853178631787317883178931790317913179231793317943179531796317973179831799318003180131802318033180431805318063180731808318093181031811318123181331814318153181631817318183181931820318213182231823318243182531826318273182831829318303183131832318333183431835318363183731838318393184031841318423184331844318453184631847318483184931850318513185231853318543185531856318573185831859318603186131862318633186431865318663186731868318693187031871318723187331874318753187631877318783187931880318813188231883318843188531886318873188831889318903189131892318933189431895318963189731898318993190031901319023190331904319053190631907319083190931910319113191231913319143191531916319173191831919319203192131922319233192431925319263192731928319293193031931319323193331934319353193631937319383193931940319413194231943319443194531946319473194831949319503195131952319533195431955319563195731958319593196031961319623196331964319653196631967319683196931970319713197231973319743197531976319773197831979319803198131982319833198431985319863198731988319893199031991319923199331994319953199631997319983199932000320013200232003320043200532006320073200832009320103201132012320133201432015320163201732018320193202032021320223202332024320253202632027320283202932030320313203232033320343203532036320373203832039320403204132042320433204432045320463204732048320493205032051320523205332054320553205632057320583205932060320613206232063320643206532066320673206832069320703207132072320733207432075320763207732078320793208032081320823208332084320853208632087320883208932090320913209232093320943209532096320973209832099321003210132102321033210432105321063210732108321093211032111321123211332114321153211632117321183211932120321213212232123321243212532126321273212832129321303213132132321333213432135321363213732138321393214032141321423214332144321453214632147321483214932150321513215232153321543215532156321573215832159321603216132162321633216432165321663216732168321693217032171321723217332174321753217632177321783217932180321813218232183321843218532186321873218832189321903219132192321933219432195321963219732198321993220032201322023220332204322053220632207322083220932210322113221232213322143221532216322173221832219322203222132222322233222432225322263222732228322293223032231322323223332234322353223632237322383223932240322413224232243322443224532246322473224832249322503225132252322533225432255322563225732258322593226032261322623226332264322653226632267322683226932270322713227232273322743227532276322773227832279322803228132282322833228432285322863228732288322893229032291322923229332294322953229632297322983229932300323013230232303323043230532306323073230832309323103231132312323133231432315323163231732318323193232032321323223232332324323253232632327323283232932330323313233232333323343233532336323373233832339323403234132342323433234432345323463234732348323493235032351323523235332354323553235632357323583235932360323613236232363323643236532366323673236832369323703237132372323733237432375323763237732378323793238032381323823238332384323853238632387323883238932390323913239232393323943239532396323973239832399324003240132402324033240432405324063240732408324093241032411324123241332414324153241632417324183241932420324213242232423324243242532426324273242832429324303243132432324333243432435324363243732438324393244032441324423244332444324453244632447324483244932450324513245232453324543245532456324573245832459324603246132462324633246432465324663246732468324693247032471324723247332474324753247632477324783247932480324813248232483324843248532486324873248832489324903249132492324933249432495324963249732498324993250032501325023250332504325053250632507325083250932510325113251232513325143251532516325173251832519325203252132522325233252432525325263252732528325293253032531325323253332534325353253632537325383253932540325413254232543325443254532546325473254832549325503255132552325533255432555325563255732558325593256032561325623256332564325653256632567325683256932570325713257232573325743257532576325773257832579325803258132582325833258432585325863258732588325893259032591325923259332594325953259632597325983259932600326013260232603326043260532606326073260832609326103261132612326133261432615326163261732618326193262032621326223262332624326253262632627326283262932630326313263232633326343263532636326373263832639326403264132642326433264432645326463264732648326493265032651326523265332654326553265632657326583265932660326613266232663326643266532666326673266832669326703267132672326733267432675326763267732678326793268032681326823268332684326853268632687326883268932690326913269232693326943269532696326973269832699327003270132702327033270432705327063270732708327093271032711327123271332714327153271632717327183271932720327213272232723327243272532726327273272832729327303273132732327333273432735327363273732738327393274032741327423274332744327453274632747327483274932750327513275232753327543275532756327573275832759327603276132762327633276432765327663276732768327693277032771327723277332774327753277632777327783277932780327813278232783327843278532786327873278832789327903279132792327933279432795327963279732798327993280032801328023280332804328053280632807328083280932810328113281232813328143281532816328173281832819328203282132822328233282432825328263282732828328293283032831328323283332834328353283632837328383283932840328413284232843328443284532846328473284832849328503285132852328533285432855328563285732858328593286032861328623286332864328653286632867328683286932870328713287232873328743287532876328773287832879328803288132882328833288432885328863288732888328893289032891328923289332894328953289632897328983289932900329013290232903329043290532906329073290832909329103291132912329133291432915329163291732918329193292032921329223292332924329253292632927329283292932930329313293232933329343293532936329373293832939329403294132942329433294432945329463294732948329493295032951329523295332954329553295632957329583295932960329613296232963329643296532966329673296832969329703297132972329733297432975329763297732978329793298032981329823298332984329853298632987329883298932990329913299232993329943299532996329973299832999330003300133002330033300433005330063300733008330093301033011330123301333014330153301633017330183301933020330213302233023330243302533026330273302833029330303303133032330333303433035330363303733038330393304033041330423304333044330453304633047330483304933050330513305233053330543305533056330573305833059330603306133062330633306433065330663306733068330693307033071330723307333074330753307633077330783307933080330813308233083330843308533086330873308833089330903309133092330933309433095330963309733098330993310033101331023310333104331053310633107331083310933110331113311233113331143311533116331173311833119331203312133122331233312433125331263312733128331293313033131331323313333134331353313633137331383313933140331413314233143331443314533146331473314833149331503315133152331533315433155331563315733158331593316033161331623316333164331653316633167331683316933170331713317233173331743317533176331773317833179331803318133182331833318433185331863318733188331893319033191331923319333194331953319633197331983319933200332013320233203332043320533206332073320833209332103321133212332133321433215332163321733218332193322033221332223322333224332253322633227332283322933230332313323233233332343323533236332373323833239332403324133242332433324433245332463324733248332493325033251332523325333254332553325633257332583325933260332613326233263332643326533266332673326833269332703327133272332733327433275332763327733278332793328033281332823328333284332853328633287332883328933290332913329233293332943329533296332973329833299333003330133302333033330433305333063330733308333093331033311333123331333314333153331633317333183331933320333213332233323333243332533326333273332833329333303333133332333333333433335333363333733338333393334033341333423334333344333453334633347333483334933350333513335233353333543335533356333573335833359333603336133362333633336433365333663336733368333693337033371333723337333374333753337633377333783337933380333813338233383333843338533386333873338833389333903339133392333933339433395333963339733398333993340033401334023340333404334053340633407334083340933410334113341233413334143341533416334173341833419334203342133422334233342433425334263342733428334293343033431334323343333434334353343633437334383343933440334413344233443334443344533446334473344833449334503345133452334533345433455334563345733458334593346033461334623346333464334653346633467334683346933470334713347233473334743347533476334773347833479334803348133482334833348433485334863348733488334893349033491334923349333494334953349633497334983349933500335013350233503335043350533506335073350833509335103351133512335133351433515335163351733518335193352033521335223352333524335253352633527335283352933530335313353233533335343353533536335373353833539335403354133542335433354433545335463354733548335493355033551335523355333554335553355633557335583355933560335613356233563335643356533566335673356833569335703357133572335733357433575335763357733578335793358033581335823358333584335853358633587335883358933590335913359233593335943359533596335973359833599336003360133602336033360433605336063360733608336093361033611336123361333614336153361633617336183361933620336213362233623336243362533626336273362833629336303363133632336333363433635336363363733638336393364033641336423364333644336453364633647336483364933650336513365233653336543365533656336573365833659336603366133662336633366433665336663366733668336693367033671336723367333674336753367633677336783367933680336813368233683336843368533686336873368833689336903369133692336933369433695336963369733698336993370033701337023370333704337053370633707337083370933710337113371233713337143371533716337173371833719337203372133722337233372433725337263372733728337293373033731337323373333734337353373633737337383373933740337413374233743337443374533746337473374833749337503375133752337533375433755337563375733758337593376033761337623376333764337653376633767337683376933770337713377233773337743377533776337773377833779337803378133782337833378433785337863378733788337893379033791337923379333794337953379633797337983379933800338013380233803338043380533806338073380833809338103381133812338133381433815338163381733818338193382033821338223382333824338253382633827338283382933830338313383233833338343383533836338373383833839338403384133842338433384433845338463384733848338493385033851338523385333854338553385633857338583385933860338613386233863338643386533866338673386833869338703387133872338733387433875338763387733878338793388033881338823388333884338853388633887338883388933890338913389233893338943389533896338973389833899339003390133902339033390433905339063390733908339093391033911339123391333914339153391633917339183391933920339213392233923339243392533926339273392833929339303393133932339333393433935339363393733938339393394033941339423394333944339453394633947339483394933950339513395233953339543395533956339573395833959339603396133962339633396433965339663396733968339693397033971339723397333974339753397633977339783397933980339813398233983339843398533986339873398833989339903399133992339933399433995339963399733998339993400034001340023400334004340053400634007340083400934010340113401234013340143401534016340173401834019340203402134022340233402434025340263402734028340293403034031340323403334034340353403634037340383403934040340413404234043340443404534046340473404834049340503405134052340533405434055340563405734058340593406034061340623406334064340653406634067340683406934070340713407234073340743407534076340773407834079340803408134082340833408434085340863408734088340893409034091340923409334094340953409634097340983409934100341013410234103341043410534106341073410834109341103411134112341133411434115341163411734118341193412034121341223412334124341253412634127341283412934130341313413234133341343413534136341373413834139341403414134142341433414434145341463414734148341493415034151341523415334154341553415634157341583415934160341613416234163341643416534166341673416834169341703417134172341733417434175341763417734178341793418034181341823418334184341853418634187341883418934190341913419234193341943419534196341973419834199342003420134202342033420434205342063420734208342093421034211342123421334214342153421634217342183421934220342213422234223342243422534226342273422834229342303423134232342333423434235342363423734238342393424034241342423424334244342453424634247342483424934250342513425234253342543425534256342573425834259342603426134262342633426434265342663426734268342693427034271342723427334274342753427634277342783427934280342813428234283342843428534286342873428834289342903429134292342933429434295342963429734298342993430034301343023430334304343053430634307343083430934310343113431234313343143431534316343173431834319343203432134322343233432434325343263432734328343293433034331343323433334334343353433634337343383433934340343413434234343343443434534346343473434834349343503435134352343533435434355343563435734358343593436034361343623436334364343653436634367343683436934370343713437234373343743437534376343773437834379343803438134382343833438434385343863438734388343893439034391343923439334394343953439634397343983439934400344013440234403344043440534406344073440834409344103441134412344133441434415344163441734418344193442034421344223442334424344253442634427344283442934430344313443234433344343443534436344373443834439344403444134442344433444434445344463444734448344493445034451344523445334454344553445634457344583445934460344613446234463344643446534466344673446834469344703447134472344733447434475344763447734478344793448034481344823448334484344853448634487344883448934490344913449234493344943449534496344973449834499345003450134502345033450434505345063450734508345093451034511345123451334514345153451634517345183451934520345213452234523345243452534526345273452834529345303453134532345333453434535345363453734538345393454034541345423454334544345453454634547345483454934550345513455234553345543455534556345573455834559345603456134562345633456434565345663456734568345693457034571345723457334574345753457634577345783457934580345813458234583345843458534586345873458834589345903459134592345933459434595345963459734598345993460034601346023460334604346053460634607346083460934610346113461234613346143461534616346173461834619346203462134622346233462434625346263462734628346293463034631346323463334634346353463634637346383463934640346413464234643346443464534646346473464834649346503465134652346533465434655346563465734658346593466034661346623466334664346653466634667346683466934670346713467234673346743467534676346773467834679346803468134682346833468434685346863468734688346893469034691346923469334694346953469634697346983469934700347013470234703347043470534706347073470834709347103471134712347133471434715347163471734718347193472034721347223472334724347253472634727347283472934730347313473234733347343473534736347373473834739347403474134742347433474434745347463474734748347493475034751347523475334754347553475634757347583475934760347613476234763347643476534766347673476834769347703477134772347733477434775347763477734778347793478034781347823478334784347853478634787347883478934790347913479234793347943479534796347973479834799348003480134802348033480434805348063480734808348093481034811348123481334814348153481634817348183481934820348213482234823348243482534826348273482834829348303483134832348333483434835348363483734838348393484034841348423484334844348453484634847348483484934850348513485234853348543485534856348573485834859348603486134862348633486434865348663486734868348693487034871348723487334874348753487634877348783487934880348813488234883348843488534886348873488834889348903489134892348933489434895348963489734898348993490034901349023490334904349053490634907349083490934910349113491234913349143491534916349173491834919349203492134922349233492434925349263492734928349293493034931349323493334934349353493634937349383493934940349413494234943349443494534946349473494834949349503495134952349533495434955349563495734958349593496034961349623496334964349653496634967349683496934970349713497234973349743497534976349773497834979349803498134982349833498434985349863498734988349893499034991349923499334994349953499634997349983499935000350013500235003350043500535006350073500835009350103501135012350133501435015350163501735018350193502035021350223502335024350253502635027350283502935030350313503235033350343503535036350373503835039350403504135042350433504435045350463504735048350493505035051350523505335054350553505635057350583505935060350613506235063350643506535066350673506835069350703507135072350733507435075350763507735078350793508035081350823508335084350853508635087350883508935090350913509235093350943509535096350973509835099351003510135102351033510435105351063510735108351093511035111351123511335114351153511635117351183511935120351213512235123351243512535126351273512835129351303513135132351333513435135351363513735138351393514035141351423514335144351453514635147351483514935150351513515235153351543515535156351573515835159351603516135162351633516435165351663516735168351693517035171351723517335174351753517635177351783517935180351813518235183351843518535186351873518835189351903519135192351933519435195351963519735198351993520035201352023520335204352053520635207352083520935210352113521235213352143521535216352173521835219352203522135222352233522435225352263522735228352293523035231352323523335234352353523635237352383523935240352413524235243352443524535246352473524835249352503525135252352533525435255352563525735258352593526035261352623526335264352653526635267352683526935270352713527235273352743527535276352773527835279352803528135282352833528435285352863528735288352893529035291352923529335294352953529635297352983529935300353013530235303353043530535306353073530835309353103531135312353133531435315353163531735318353193532035321353223532335324353253532635327353283532935330353313533235333353343533535336353373533835339353403534135342353433534435345353463534735348353493535035351353523535335354353553535635357353583535935360353613536235363353643536535366353673536835369353703537135372353733537435375353763537735378353793538035381353823538335384353853538635387353883538935390353913539235393353943539535396353973539835399354003540135402354033540435405354063540735408354093541035411354123541335414354153541635417354183541935420354213542235423354243542535426354273542835429354303543135432354333543435435354363543735438354393544035441354423544335444354453544635447354483544935450354513545235453354543545535456354573545835459354603546135462354633546435465354663546735468354693547035471354723547335474354753547635477354783547935480354813548235483354843548535486354873548835489354903549135492354933549435495354963549735498354993550035501355023550335504355053550635507355083550935510355113551235513355143551535516355173551835519355203552135522355233552435525355263552735528355293553035531355323553335534355353553635537355383553935540355413554235543355443554535546355473554835549355503555135552355533555435555355563555735558355593556035561355623556335564355653556635567355683556935570355713557235573355743557535576355773557835579355803558135582355833558435585355863558735588355893559035591355923559335594355953559635597355983559935600356013560235603356043560535606356073560835609356103561135612356133561435615356163561735618356193562035621356223562335624356253562635627356283562935630356313563235633356343563535636356373563835639356403564135642356433564435645356463564735648356493565035651356523565335654356553565635657356583565935660356613566235663356643566535666356673566835669356703567135672356733567435675356763567735678356793568035681356823568335684356853568635687356883568935690356913569235693356943569535696356973569835699357003570135702357033570435705357063570735708357093571035711357123571335714357153571635717357183571935720357213572235723357243572535726357273572835729357303573135732357333573435735357363573735738357393574035741357423574335744357453574635747357483574935750357513575235753357543575535756357573575835759357603576135762357633576435765357663576735768357693577035771357723577335774357753577635777357783577935780357813578235783357843578535786357873578835789357903579135792357933579435795357963579735798357993580035801358023580335804358053580635807358083580935810358113581235813358143581535816358173581835819358203582135822358233582435825358263582735828358293583035831358323583335834358353583635837358383583935840358413584235843358443584535846358473584835849358503585135852358533585435855358563585735858358593586035861358623586335864358653586635867358683586935870358713587235873358743587535876358773587835879358803588135882358833588435885358863588735888358893589035891358923589335894358953589635897358983589935900359013590235903359043590535906359073590835909359103591135912359133591435915359163591735918359193592035921359223592335924359253592635927359283592935930359313593235933359343593535936359373593835939359403594135942359433594435945359463594735948359493595035951359523595335954359553595635957359583595935960359613596235963359643596535966359673596835969359703597135972359733597435975359763597735978359793598035981359823598335984359853598635987359883598935990359913599235993359943599535996359973599835999360003600136002360033600436005360063600736008360093601036011360123601336014360153601636017360183601936020360213602236023360243602536026360273602836029360303603136032360333603436035360363603736038360393604036041360423604336044360453604636047360483604936050360513605236053360543605536056360573605836059360603606136062360633606436065360663606736068360693607036071360723607336074360753607636077360783607936080360813608236083360843608536086360873608836089360903609136092360933609436095360963609736098360993610036101361023610336104361053610636107361083610936110361113611236113361143611536116361173611836119361203612136122361233612436125361263612736128361293613036131361323613336134361353613636137361383613936140361413614236143361443614536146361473614836149361503615136152361533615436155361563615736158361593616036161361623616336164361653616636167361683616936170361713617236173361743617536176361773617836179361803618136182361833618436185361863618736188361893619036191361923619336194361953619636197361983619936200362013620236203362043620536206362073620836209362103621136212362133621436215362163621736218362193622036221362223622336224362253622636227362283622936230362313623236233362343623536236362373623836239362403624136242362433624436245362463624736248362493625036251362523625336254362553625636257362583625936260362613626236263362643626536266362673626836269362703627136272362733627436275362763627736278362793628036281362823628336284362853628636287362883628936290362913629236293362943629536296362973629836299363003630136302363033630436305363063630736308363093631036311363123631336314363153631636317363183631936320363213632236323363243632536326363273632836329363303633136332363333633436335363363633736338363393634036341363423634336344363453634636347363483634936350363513635236353363543635536356363573635836359363603636136362363633636436365363663636736368363693637036371363723637336374363753637636377363783637936380363813638236383363843638536386363873638836389363903639136392363933639436395363963639736398363993640036401364023640336404364053640636407364083640936410364113641236413364143641536416364173641836419364203642136422364233642436425364263642736428364293643036431364323643336434364353643636437364383643936440364413644236443364443644536446364473644836449364503645136452364533645436455364563645736458364593646036461364623646336464364653646636467364683646936470364713647236473364743647536476364773647836479364803648136482364833648436485364863648736488364893649036491364923649336494364953649636497364983649936500365013650236503365043650536506365073650836509365103651136512365133651436515365163651736518365193652036521365223652336524365253652636527365283652936530365313653236533365343653536536365373653836539365403654136542365433654436545365463654736548365493655036551365523655336554365553655636557365583655936560365613656236563365643656536566365673656836569365703657136572365733657436575365763657736578365793658036581365823658336584365853658636587365883658936590365913659236593365943659536596365973659836599366003660136602366033660436605366063660736608366093661036611366123661336614366153661636617366183661936620366213662236623366243662536626366273662836629366303663136632366333663436635366363663736638366393664036641366423664336644366453664636647366483664936650366513665236653366543665536656366573665836659366603666136662366633666436665366663666736668366693667036671366723667336674366753667636677366783667936680366813668236683366843668536686366873668836689366903669136692366933669436695366963669736698366993670036701367023670336704367053670636707367083670936710367113671236713367143671536716367173671836719367203672136722367233672436725367263672736728367293673036731367323673336734367353673636737367383673936740367413674236743367443674536746367473674836749367503675136752367533675436755367563675736758367593676036761367623676336764367653676636767367683676936770367713677236773367743677536776367773677836779367803678136782367833678436785367863678736788367893679036791367923679336794367953679636797367983679936800368013680236803368043680536806368073680836809368103681136812368133681436815368163681736818368193682036821368223682336824368253682636827368283682936830368313683236833368343683536836368373683836839368403684136842368433684436845368463684736848368493685036851368523685336854368553685636857368583685936860368613686236863368643686536866368673686836869368703687136872368733687436875368763687736878368793688036881368823688336884368853688636887368883688936890368913689236893368943689536896368973689836899369003690136902369033690436905369063690736908369093691036911369123691336914369153691636917369183691936920369213692236923369243692536926369273692836929369303693136932369333693436935369363693736938369393694036941369423694336944369453694636947369483694936950369513695236953369543695536956369573695836959369603696136962369633696436965369663696736968369693697036971369723697336974369753697636977369783697936980369813698236983369843698536986369873698836989369903699136992369933699436995369963699736998369993700037001370023700337004370053700637007370083700937010370113701237013370143701537016370173701837019370203702137022370233702437025370263702737028370293703037031370323703337034370353703637037370383703937040370413704237043370443704537046370473704837049370503705137052370533705437055370563705737058370593706037061370623706337064370653706637067370683706937070370713707237073370743707537076370773707837079370803708137082370833708437085370863708737088370893709037091370923709337094370953709637097370983709937100371013710237103371043710537106371073710837109371103711137112371133711437115371163711737118371193712037121371223712337124371253712637127371283712937130371313713237133371343713537136371373713837139371403714137142371433714437145371463714737148371493715037151371523715337154371553715637157371583715937160371613716237163371643716537166371673716837169371703717137172371733717437175371763717737178371793718037181371823718337184371853718637187371883718937190371913719237193371943719537196371973719837199372003720137202372033720437205372063720737208372093721037211372123721337214372153721637217372183721937220372213722237223372243722537226372273722837229372303723137232372333723437235372363723737238372393724037241372423724337244372453724637247372483724937250372513725237253372543725537256372573725837259372603726137262372633726437265372663726737268372693727037271372723727337274372753727637277372783727937280372813728237283372843728537286372873728837289372903729137292372933729437295372963729737298372993730037301373023730337304373053730637307373083730937310373113731237313373143731537316373173731837319373203732137322373233732437325373263732737328373293733037331373323733337334373353733637337373383733937340373413734237343373443734537346373473734837349373503735137352373533735437355373563735737358373593736037361373623736337364373653736637367373683736937370373713737237373373743737537376373773737837379373803738137382373833738437385373863738737388373893739037391373923739337394373953739637397373983739937400374013740237403374043740537406374073740837409374103741137412374133741437415374163741737418374193742037421374223742337424374253742637427374283742937430374313743237433374343743537436374373743837439374403744137442374433744437445374463744737448374493745037451374523745337454374553745637457374583745937460374613746237463374643746537466374673746837469374703747137472374733747437475374763747737478374793748037481374823748337484374853748637487374883748937490374913749237493374943749537496374973749837499375003750137502375033750437505375063750737508375093751037511375123751337514375153751637517375183751937520375213752237523375243752537526375273752837529375303753137532375333753437535375363753737538375393754037541375423754337544375453754637547375483754937550375513755237553375543755537556375573755837559375603756137562375633756437565375663756737568375693757037571375723757337574375753757637577375783757937580375813758237583375843758537586375873758837589375903759137592375933759437595375963759737598375993760037601376023760337604376053760637607376083760937610376113761237613376143761537616376173761837619376203762137622376233762437625376263762737628376293763037631376323763337634376353763637637376383763937640376413764237643376443764537646376473764837649376503765137652376533765437655376563765737658376593766037661376623766337664376653766637667376683766937670376713767237673376743767537676376773767837679
  1. import {
  2. d as pS,
  3. aE as Vv,
  4. g as Pi,
  5. a as E,
  6. C as gS,
  7. z as mS,
  8. A as Fe,
  9. j as rt,
  10. P as yS,
  11. V as _S,
  12. B as eo,
  13. ae as SS
  14. } from './vendor.3506a68e.js'
  15. /* empty css */ /* empty css */ /* empty css */ import {
  16. r as xS,
  17. o as Ae,
  18. k as wS
  19. } from './index.9e4b607f.js'
  20. var bS =
  21. 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAAXNSR0IArs4c6QAAA2JJREFUWEftl9tLFHEUxz9n1FoqS4IkpNtDQaYlGd3snlYrhgTdifoT6jGqh9CgepCgx3qIHopKuqA+lElZDyph1ENUpoHQhei5pDJ3Tszorjuzl5ndVZHYeZv5nd+cz3zP+Z7frjDJL5nkfGQBM61QVsGsgpkqEG+/tpNLEeswqUIoRHkixdyLFzthPag9FBEiiEEQZQdQ4AAS6qWYs27IcQPUl+QxhQpyCALVwAo06Vj7xTvy5QChaMgxBdQ+5vGLasSGqkKZaSeLzqJR6a3n4XvhDwFmyRL+jBmgvmUKQ2y0y2baYCUeKiVr6dtSxuGMS6yvWDjSRxbQdpT8yEujFXHLEK1ceG00fgCDpVLGl5QBtY+p/GDTSB9ZpVs2Ds4+JeVcTMnF+poKTE4ClSjTI70UT4l4n50sztl7PQQokxIGfQNqN8eA66729hbOgkrddjtlNW2JXh7zOm1nBtP4BszwJooTIbxByfHZCndlLfuT5YkF7GYNIV5E2d+5f3QsjD4fVu4tQh0m3UALUGqrmTjeMkaxrOFzaoAdtkv7HeMiWemE9wj1PKKRKrZgcAeY40P901LBBa+4uB2jHTSh1DoUcA9c6EE4x3pui2BqJycwaQByPQez8IECViQyhueg1k5mY9KBsjTOF/ZicI6v3LKOJW0nQC5XgaNeakTWDXbJBh77iU/oOe1iEYN0AXNHFPloK/aNm+HzUttYwFTuo6xyJEs0sIercE82s88PXGzRXLv0OStRrmFwmRA3ZBtD4RBtZytCo89+C28bQCiWLcmN4Vlir6/TZxxHaUDJSxrrVtLgtGz1NkbagHa/hbiCcCzhGIpIHJVmuJF6mctyP8ZIC1CfM5+/PIjpNy+5w+uWMSr9GSNlQH1KCUM8BQodPO75GG8oD2+4LzvZ6/dbUgds5RDKrXQSIFgnxjLZwad09vs62vXhCKC76f3cC2ckyPl04DzHTKTfLUAzDQWFXhambozUS9zMboSWmKMP+w+O9cvFeYWVzSUo1bSmq55/BRuZRYBel0m+Y1CDUodSY0M4TdMotRzMBM43oJ27mXKUSyilQCcGJ6SWfm1lOr+5gnIkCuYJg+yRA/ycMECvRNrEYkzKyKFfannlFe933ZeL/b5sPOKygJmqmlXwv1fwH9at6ylMGY7gAAAAAElFTkSuQmCC',
  22. TS = Object.freeze({
  23. __proto__: null,
  24. [Symbol.toStringTag]: 'Module',
  25. default: bS
  26. }),
  27. CS =
  28. 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAAXNSR0IArs4c6QAABDFJREFUWEftmF9oW3UUx7/n3mTt/INaxUEiU1zrHKnaJsW0nVazFbWbxYW6TREEEWT6sBdBfPDNB/Ft4ItTEMZAtKFUzdSuLbVOu3Zp1jSldWPWP3OzdXSCUu1s19wjN7lpbm7u3f3d22UUNA+BXM7vez58z+93fueGsMY/tMb58N8BbJ9JXleZWe/zyBnPcuXSbKyq4c+rUZ1VObibO2VpNvAMMe8DIwywl3NUTEQTIBz6G1UH4z7fgltY14C7z437iaQYGE02yX+SJLnjI38g5QbSFWD0/KlbvXz5BDNvsk/KANG8xGj+eOMDk/bxxRGuADvOjn9G4PaslKbAWm2NgtpjEGGa5tcFYoHAkhNIx4DRn8eaiHB8JUmeIP8gr2jynAgvd20MvltmwJMfAHihJMkKkIGMdBZLNNZ9ZyhUVsBdP46eY8IdBcOsLNOOs46GQEqmAhvivoaLopCOShydTt+ekRYviIrnGo4WrWVSoDx+5O7GXlENR4DtZxMBLPMVTyJrp4XypdVIWCMlmZ6L3xX+sCyAO84MtRBJX+tPr2giXdz+z6ub3hFd58jBtu9HGgnKsKi4aRzJ+76oDh8U1XAE+OQPIzXLmcwZXfsrdBvL0hpQiPb01DTHygIYSia9t914Sb1XPaIJjHEKSfV992wdF13vyEFV9LHTx5IAHPWygs20cF6ZveW7wB7h28Q54Klv3lKgvG68OKwcKW7b1NO/paVN1D2zrWS7dvvpY/dDyaRtA00CJJme79v86GEnax07qIpvm/pqAOCIWSJDXy6EEGaUC7RpMBL5p+yAkakBdTgdYoYsmkwCXhqo3f6+aLzoFrLUe2Sy/20wvyaSkIiODgZa20ArF5/IsmyMqxJnVzJLLZP9nQB35H7mcpYISpSSLv+1bbA++ocwlS7QPaAq0tkpP7z5pgQDQdPkhHled71/6N6H5t3Arc5BzcWtE72/AOxfsVBPQsReT4VvMBD57ZoDqrdKhXfuAJhfKUpeOkn3LvDi3vFrVeK6VPfN66lyL7PyKoAaS2eKJmyag0wHiDOHhuvaf3Xipu0ebBg9Uit5lEYwbSGiB7Pvv8ze0tOQkyrMgwYMFZhI/U4zMAyJ0sw4MVq/84r3siVgOBWvYYUPM9QXct1kvOoGpQnkTz3Rt1iWXkyEd2anJOPHFLBpqqdq6dLiBAGFzW+YkJ2USSD2d4XQOBZ6aloIMJT89E0wv6EPzo/spQbalNaSzuAN4ejJhl1PCAEGE93HGWz3l4aAMQ5C1P0pV2xIBXfMFXUqM4m6ka4+EFodyOtCLccFk1NTjELeJX8q+OyMLeB9o12tksJfMrPt5Ew2t6Vxa1iWkOiTdPjpqFCJ1aDaRKxZUmg/g6vVe9fKTStAezACiJkVXISMeOYGvGc2adv2QXdlvnqr/gdcrZdr3sF/AWQ0XDiCWwUIAAAAAElFTkSuQmCC',
  29. AS = Object.freeze({
  30. __proto__: null,
  31. [Symbol.toStringTag]: 'Module',
  32. default: CS
  33. })
  34. const MS = '_incomeConsus_7nw9z_1',
  35. DS = '_income_7nw9z_1',
  36. IS = '_countPrice_7nw9z_10',
  37. LS = '_searchTime_7nw9z_20',
  38. PS = '_section_7nw9z_37',
  39. RS = '_numberCount_7nw9z_45',
  40. ES = '_color1_7nw9z_60',
  41. OS = '_color2_7nw9z_63',
  42. kS = '_color3_7nw9z_66',
  43. BS = '_color4_7nw9z_69',
  44. NS = '_color5_7nw9z_72',
  45. FS = '_color6_7nw9z_75',
  46. zS = '_color7_7nw9z_78',
  47. VS = '_color8_7nw9z_81',
  48. GS = '_color9_7nw9z_84',
  49. HS = '_type_7nw9z_87',
  50. WS = '_price_7nw9z_90',
  51. US = '_incomeTitle_7nw9z_105',
  52. YS = '_incomeLine_7nw9z_122',
  53. ZS = '_pieSection_7nw9z_126',
  54. $S = '_pieIncome_7nw9z_132',
  55. XS = '_rateAll_7nw9z_136',
  56. qS = '_rate_7nw9z_136',
  57. KS = '_pieData_7nw9z_161',
  58. QS = '_pieTitle_7nw9z_178',
  59. JS = '_pieLive_7nw9z_191',
  60. jS = '_pieVideo_7nw9z_194',
  61. tx = '_pieMusic_7nw9z_197',
  62. ex = '_pie1_7nw9z_200',
  63. rx = '_pie2_7nw9z_203',
  64. nx = '_pie3_7nw9z_206',
  65. ix = '_pie4_7nw9z_209',
  66. ax = '_pie5_7nw9z_212',
  67. ox = '_pie6_7nw9z_215',
  68. sx = '_timePopup_7nw9z_226',
  69. lx = '_timeMonth_7nw9z_232',
  70. ux = '_timeYear_7nw9z_233'
  71. var V = {
  72. incomeConsus: MS,
  73. income: DS,
  74. countPrice: IS,
  75. searchTime: LS,
  76. section: PS,
  77. numberCount: RS,
  78. color1: ES,
  79. color2: OS,
  80. color3: kS,
  81. color4: BS,
  82. color5: NS,
  83. color6: FS,
  84. color7: zS,
  85. color8: VS,
  86. color9: GS,
  87. type: HS,
  88. price: WS,
  89. incomeTitle: US,
  90. incomeLine: YS,
  91. pieSection: ZS,
  92. pieIncome: $S,
  93. rateAll: XS,
  94. rate: qS,
  95. pieData: KS,
  96. pieTitle: QS,
  97. pieLive: JS,
  98. pieVideo: jS,
  99. pieMusic: tx,
  100. pie1: ex,
  101. pie2: rx,
  102. pie3: nx,
  103. pie4: ix,
  104. pie5: ax,
  105. pie6: ox,
  106. timePopup: sx,
  107. timeMonth: lx,
  108. timeYear: ux
  109. }
  110. /*! *****************************************************************************
  111. Copyright (c) Microsoft Corporation.
  112. Permission to use, copy, modify, and/or distribute this software for any
  113. purpose with or without fee is hereby granted.
  114. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
  115. REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
  116. AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
  117. INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
  118. LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
  119. OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  120. PERFORMANCE OF THIS SOFTWARE.
  121. ***************************************************************************** */ var Ml =
  122. function (r, t) {
  123. return (
  124. (Ml =
  125. Object.setPrototypeOf ||
  126. ({ __proto__: [] } instanceof Array &&
  127. function (e, n) {
  128. e.__proto__ = n
  129. }) ||
  130. function (e, n) {
  131. for (var i in n)
  132. Object.prototype.hasOwnProperty.call(n, i) && (e[i] = n[i])
  133. }),
  134. Ml(r, t)
  135. )
  136. }
  137. function B(r, t) {
  138. if (typeof t != 'function' && t !== null)
  139. throw new TypeError(
  140. 'Class extends value ' + String(t) + ' is not a constructor or null'
  141. )
  142. Ml(r, t)
  143. function e() {
  144. this.constructor = r
  145. }
  146. r.prototype =
  147. t === null ? Object.create(t) : ((e.prototype = t.prototype), new e())
  148. }
  149. var fx = (function () {
  150. function r() {
  151. ;(this.firefox = !1),
  152. (this.ie = !1),
  153. (this.edge = !1),
  154. (this.newEdge = !1),
  155. (this.weChat = !1)
  156. }
  157. return r
  158. })(),
  159. hx = (function () {
  160. function r() {
  161. ;(this.browser = new fx()),
  162. (this.node = !1),
  163. (this.wxa = !1),
  164. (this.worker = !1),
  165. (this.svgSupported = !1),
  166. (this.touchEventsSupported = !1),
  167. (this.pointerEventsSupported = !1),
  168. (this.domSupported = !1),
  169. (this.transformSupported = !1),
  170. (this.transform3dSupported = !1),
  171. (this.hasGlobalWindow = typeof window != 'undefined')
  172. }
  173. return r
  174. })(),
  175. Ur = new hx()
  176. typeof wx == 'object' && typeof wx.getSystemInfoSync == 'function'
  177. ? ((Ur.wxa = !0), (Ur.touchEventsSupported = !0))
  178. : typeof document == 'undefined' && typeof self != 'undefined'
  179. ? (Ur.worker = !0)
  180. : typeof navigator == 'undefined'
  181. ? ((Ur.node = !0), (Ur.svgSupported = !0))
  182. : vx(navigator.userAgent, Ur)
  183. function vx(r, t) {
  184. var e = t.browser,
  185. n = r.match(/Firefox\/([\d.]+)/),
  186. i = r.match(/MSIE\s([\d.]+)/) || r.match(/Trident\/.+?rv:(([\d.]+))/),
  187. a = r.match(/Edge?\/([\d.]+)/),
  188. o = /micromessenger/i.test(r)
  189. n && ((e.firefox = !0), (e.version = n[1])),
  190. i && ((e.ie = !0), (e.version = i[1])),
  191. a &&
  192. ((e.edge = !0),
  193. (e.version = a[1]),
  194. (e.newEdge = +a[1].split('.')[0] > 18)),
  195. o && (e.weChat = !0),
  196. (t.svgSupported = typeof SVGRect != 'undefined'),
  197. (t.touchEventsSupported = 'ontouchstart' in window && !e.ie && !e.edge),
  198. (t.pointerEventsSupported =
  199. 'onpointerdown' in window && (e.edge || (e.ie && +e.version >= 11))),
  200. (t.domSupported = typeof document != 'undefined')
  201. var s = document.documentElement.style
  202. ;(t.transform3dSupported =
  203. ((e.ie && 'transition' in s) ||
  204. e.edge ||
  205. ('WebKitCSSMatrix' in window && 'm11' in new WebKitCSSMatrix()) ||
  206. 'MozPerspective' in s) &&
  207. !('OTransition' in s)),
  208. (t.transformSupported = t.transform3dSupported || (e.ie && +e.version >= 9))
  209. }
  210. var at = Ur,
  211. Dl = 12,
  212. cx = 'sans-serif',
  213. Yr = Dl + 'px ' + cx,
  214. dx = 20,
  215. px = 100,
  216. gx =
  217. "007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N"
  218. function mx(r) {
  219. var t = {}
  220. if (typeof JSON == 'undefined') return t
  221. for (var e = 0; e < r.length; e++) {
  222. var n = String.fromCharCode(e + 32),
  223. i = (r.charCodeAt(e) - dx) / px
  224. t[n] = i
  225. }
  226. return t
  227. }
  228. var yx = mx(gx),
  229. kn = {
  230. createCanvas: function () {
  231. return typeof document != 'undefined' && document.createElement('canvas')
  232. },
  233. measureText: (function () {
  234. var r, t
  235. return function (e, n) {
  236. if (!r) {
  237. var i = kn.createCanvas()
  238. r = i && i.getContext('2d')
  239. }
  240. if (r) return t !== n && (t = r.font = n || Yr), r.measureText(e)
  241. ;(e = e || ''), (n = n || Yr)
  242. var a = /^([0-9]*?)px$/.exec(n),
  243. o = +(a && a[1]) || Dl,
  244. s = 0
  245. if (n.indexOf('mono') >= 0) s = o * e.length
  246. else
  247. for (var l = 0; l < e.length; l++) {
  248. var u = yx[e[l]]
  249. s += u == null ? o : u * o
  250. }
  251. return { width: s }
  252. }
  253. })(),
  254. loadImage: function (r, t, e) {
  255. var n = new Image()
  256. return (n.onload = t), (n.onerror = e), (n.src = r), n
  257. }
  258. },
  259. Gv = Sr(
  260. [
  261. 'Function',
  262. 'RegExp',
  263. 'Date',
  264. 'Error',
  265. 'CanvasGradient',
  266. 'CanvasPattern',
  267. 'Image',
  268. 'Canvas'
  269. ],
  270. function (r, t) {
  271. return (r['[object ' + t + ']'] = !0), r
  272. },
  273. {}
  274. ),
  275. Hv = Sr(
  276. [
  277. 'Int8',
  278. 'Uint8',
  279. 'Uint8Clamped',
  280. 'Int16',
  281. 'Uint16',
  282. 'Int32',
  283. 'Uint32',
  284. 'Float32',
  285. 'Float64'
  286. ],
  287. function (r, t) {
  288. return (r['[object ' + t + 'Array]'] = !0), r
  289. },
  290. {}
  291. ),
  292. Bn = Object.prototype.toString,
  293. ro = Array.prototype,
  294. _x = ro.forEach,
  295. Sx = ro.filter,
  296. Il = ro.slice,
  297. xx = ro.map,
  298. Wv = function () {}.constructor,
  299. no = Wv ? Wv.prototype : null,
  300. Ll = '__proto__',
  301. bx = 2311
  302. function Uv() {
  303. return bx++
  304. }
  305. function Pl() {
  306. for (var r = [], t = 0; t < arguments.length; t++) r[t] = arguments[t]
  307. typeof console != 'undefined' && console.error.apply(console, r)
  308. }
  309. function tt(r) {
  310. if (r == null || typeof r != 'object') return r
  311. var t = r,
  312. e = Bn.call(r)
  313. if (e === '[object Array]') {
  314. if (!ki(r)) {
  315. t = []
  316. for (var n = 0, i = r.length; n < i; n++) t[n] = tt(r[n])
  317. }
  318. } else if (Hv[e]) {
  319. if (!ki(r)) {
  320. var a = r.constructor
  321. if (a.from) t = a.from(r)
  322. else {
  323. t = new a(r.length)
  324. for (var n = 0, i = r.length; n < i; n++) t[n] = r[n]
  325. }
  326. }
  327. } else if (!Gv[e] && !ki(r) && !Ri(r)) {
  328. t = {}
  329. for (var o in r) r.hasOwnProperty(o) && o !== Ll && (t[o] = tt(r[o]))
  330. }
  331. return t
  332. }
  333. function nt(r, t, e) {
  334. if (!Y(t) || !Y(r)) return e ? tt(t) : r
  335. for (var n in t)
  336. if (t.hasOwnProperty(n) && n !== Ll) {
  337. var i = r[n],
  338. a = t[n]
  339. Y(a) &&
  340. Y(i) &&
  341. !z(a) &&
  342. !z(i) &&
  343. !Ri(a) &&
  344. !Ri(i) &&
  345. !Yv(a) &&
  346. !Yv(i) &&
  347. !ki(a) &&
  348. !ki(i)
  349. ? nt(i, a, e)
  350. : (e || !(n in r)) && (r[n] = tt(t[n]))
  351. }
  352. return r
  353. }
  354. function N(r, t) {
  355. if (Object.assign) Object.assign(r, t)
  356. else for (var e in t) t.hasOwnProperty(e) && e !== Ll && (r[e] = t[e])
  357. return r
  358. }
  359. function j(r, t, e) {
  360. for (var n = xt(t), i = 0; i < n.length; i++) {
  361. var a = n[i]
  362. ;(e ? t[a] != null : r[a] == null) && (r[a] = t[a])
  363. }
  364. return r
  365. }
  366. function ot(r, t) {
  367. if (r) {
  368. if (r.indexOf) return r.indexOf(t)
  369. for (var e = 0, n = r.length; e < n; e++) if (r[e] === t) return e
  370. }
  371. return -1
  372. }
  373. function Tx(r, t) {
  374. var e = r.prototype
  375. function n() {}
  376. ;(n.prototype = t.prototype), (r.prototype = new n())
  377. for (var i in e) e.hasOwnProperty(i) && (r.prototype[i] = e[i])
  378. ;(r.prototype.constructor = r), (r.superClass = t)
  379. }
  380. function ze(r, t, e) {
  381. if (
  382. ((r = 'prototype' in r ? r.prototype : r),
  383. (t = 'prototype' in t ? t.prototype : t),
  384. Object.getOwnPropertyNames)
  385. )
  386. for (var n = Object.getOwnPropertyNames(t), i = 0; i < n.length; i++) {
  387. var a = n[i]
  388. a !== 'constructor' && (e ? t[a] != null : r[a] == null) && (r[a] = t[a])
  389. }
  390. else j(r, t, e)
  391. }
  392. function Zt(r) {
  393. return !r || typeof r == 'string' ? !1 : typeof r.length == 'number'
  394. }
  395. function A(r, t, e) {
  396. if (!!(r && t))
  397. if (r.forEach && r.forEach === _x) r.forEach(t, e)
  398. else if (r.length === +r.length)
  399. for (var n = 0, i = r.length; n < i; n++) t.call(e, r[n], n, r)
  400. else for (var a in r) r.hasOwnProperty(a) && t.call(e, r[a], a, r)
  401. }
  402. function G(r, t, e) {
  403. if (!r) return []
  404. if (!t) return El(r)
  405. if (r.map && r.map === xx) return r.map(t, e)
  406. for (var n = [], i = 0, a = r.length; i < a; i++)
  407. n.push(t.call(e, r[i], i, r))
  408. return n
  409. }
  410. function Sr(r, t, e, n) {
  411. if (!!(r && t)) {
  412. for (var i = 0, a = r.length; i < a; i++) e = t.call(n, e, r[i], i, r)
  413. return e
  414. }
  415. }
  416. function Lt(r, t, e) {
  417. if (!r) return []
  418. if (!t) return El(r)
  419. if (r.filter && r.filter === Sx) return r.filter(t, e)
  420. for (var n = [], i = 0, a = r.length; i < a; i++)
  421. t.call(e, r[i], i, r) && n.push(r[i])
  422. return n
  423. }
  424. function xt(r) {
  425. if (!r) return []
  426. if (Object.keys) return Object.keys(r)
  427. var t = []
  428. for (var e in r) r.hasOwnProperty(e) && t.push(e)
  429. return t
  430. }
  431. function Cx(r, t) {
  432. for (var e = [], n = 2; n < arguments.length; n++) e[n - 2] = arguments[n]
  433. return function () {
  434. return r.apply(t, e.concat(Il.call(arguments)))
  435. }
  436. }
  437. var X = no && Q(no.bind) ? no.call.bind(no.bind) : Cx
  438. function lt(r) {
  439. for (var t = [], e = 1; e < arguments.length; e++) t[e - 1] = arguments[e]
  440. return function () {
  441. return r.apply(this, t.concat(Il.call(arguments)))
  442. }
  443. }
  444. function z(r) {
  445. return Array.isArray ? Array.isArray(r) : Bn.call(r) === '[object Array]'
  446. }
  447. function Q(r) {
  448. return typeof r == 'function'
  449. }
  450. function W(r) {
  451. return typeof r == 'string'
  452. }
  453. function Rl(r) {
  454. return Bn.call(r) === '[object String]'
  455. }
  456. function dt(r) {
  457. return typeof r == 'number'
  458. }
  459. function Y(r) {
  460. var t = typeof r
  461. return t === 'function' || (!!r && t === 'object')
  462. }
  463. function Yv(r) {
  464. return !!Gv[Bn.call(r)]
  465. }
  466. function ie(r) {
  467. return !!Hv[Bn.call(r)]
  468. }
  469. function Ri(r) {
  470. return (
  471. typeof r == 'object' &&
  472. typeof r.nodeType == 'number' &&
  473. typeof r.ownerDocument == 'object'
  474. )
  475. }
  476. function io(r) {
  477. return r.colorStops != null
  478. }
  479. function Ax(r) {
  480. return r.image != null
  481. }
  482. function Mx(r) {
  483. return Bn.call(r) === '[object RegExp]'
  484. }
  485. function ao(r) {
  486. return r !== r
  487. }
  488. function Ei() {
  489. for (var r = [], t = 0; t < arguments.length; t++) r[t] = arguments[t]
  490. for (var e = 0, n = r.length; e < n; e++) if (r[e] != null) return r[e]
  491. }
  492. function ht(r, t) {
  493. return r != null ? r : t
  494. }
  495. function Oi(r, t, e) {
  496. return r != null ? r : t != null ? t : e
  497. }
  498. function El(r) {
  499. for (var t = [], e = 1; e < arguments.length; e++) t[e - 1] = arguments[e]
  500. return Il.apply(r, t)
  501. }
  502. function Zv(r) {
  503. if (typeof r == 'number') return [r, r, r, r]
  504. var t = r.length
  505. return t === 2
  506. ? [r[0], r[1], r[0], r[1]]
  507. : t === 3
  508. ? [r[0], r[1], r[2], r[1]]
  509. : r
  510. }
  511. function Ve(r, t) {
  512. if (!r) throw new Error(t)
  513. }
  514. function Ge(r) {
  515. return r == null
  516. ? null
  517. : typeof r.trim == 'function'
  518. ? r.trim()
  519. : r.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, '')
  520. }
  521. var $v = '__ec_primitive__'
  522. function oo(r) {
  523. r[$v] = !0
  524. }
  525. function ki(r) {
  526. return r[$v]
  527. }
  528. var Dx = (function () {
  529. function r(t) {
  530. this.data = {}
  531. var e = z(t)
  532. this.data = {}
  533. var n = this
  534. t instanceof r ? t.each(i) : t && A(t, i)
  535. function i(a, o) {
  536. e ? n.set(a, o) : n.set(o, a)
  537. }
  538. }
  539. return (
  540. (r.prototype.get = function (t) {
  541. return this.data.hasOwnProperty(t) ? this.data[t] : null
  542. }),
  543. (r.prototype.set = function (t, e) {
  544. return (this.data[t] = e)
  545. }),
  546. (r.prototype.each = function (t, e) {
  547. for (var n in this.data)
  548. this.data.hasOwnProperty(n) && t.call(e, this.data[n], n)
  549. }),
  550. (r.prototype.keys = function () {
  551. return xt(this.data)
  552. }),
  553. (r.prototype.removeKey = function (t) {
  554. delete this.data[t]
  555. }),
  556. r
  557. )
  558. })()
  559. function q(r) {
  560. return new Dx(r)
  561. }
  562. function Ix(r, t) {
  563. for (var e = new r.constructor(r.length + t.length), n = 0; n < r.length; n++)
  564. e[n] = r[n]
  565. for (var i = r.length, n = 0; n < t.length; n++) e[n + i] = t[n]
  566. return e
  567. }
  568. function so(r, t) {
  569. var e
  570. if (Object.create) e = Object.create(r)
  571. else {
  572. var n = function () {}
  573. ;(n.prototype = r), (e = new n())
  574. }
  575. return t && N(e, t), e
  576. }
  577. function Xv(r) {
  578. var t = r.style
  579. ;(t.webkitUserSelect = 'none'),
  580. (t.userSelect = 'none'),
  581. (t.webkitTapHighlightColor = 'rgba(0,0,0,0)'),
  582. (t['-webkit-touch-callout'] = 'none')
  583. }
  584. function nr(r, t) {
  585. return r.hasOwnProperty(t)
  586. }
  587. function $t() {}
  588. var Lx = 180 / Math.PI
  589. function Nn(r, t) {
  590. return r == null && (r = 0), t == null && (t = 0), [r, t]
  591. }
  592. function Px(r) {
  593. return [r[0], r[1]]
  594. }
  595. function qv(r, t, e) {
  596. return (r[0] = t[0] + e[0]), (r[1] = t[1] + e[1]), r
  597. }
  598. function Rx(r, t, e) {
  599. return (r[0] = t[0] - e[0]), (r[1] = t[1] - e[1]), r
  600. }
  601. function Ex(r) {
  602. return Math.sqrt(Ox(r))
  603. }
  604. function Ox(r) {
  605. return r[0] * r[0] + r[1] * r[1]
  606. }
  607. function Ol(r, t, e) {
  608. return (r[0] = t[0] * e), (r[1] = t[1] * e), r
  609. }
  610. function kx(r, t) {
  611. var e = Ex(t)
  612. return (
  613. e === 0 ? ((r[0] = 0), (r[1] = 0)) : ((r[0] = t[0] / e), (r[1] = t[1] / e)),
  614. r
  615. )
  616. }
  617. function kl(r, t) {
  618. return Math.sqrt(
  619. (r[0] - t[0]) * (r[0] - t[0]) + (r[1] - t[1]) * (r[1] - t[1])
  620. )
  621. }
  622. var Bl = kl
  623. function Bx(r, t) {
  624. return (r[0] - t[0]) * (r[0] - t[0]) + (r[1] - t[1]) * (r[1] - t[1])
  625. }
  626. var Fn = Bx
  627. function lo(r, t, e, n) {
  628. return (r[0] = t[0] + n * (e[0] - t[0])), (r[1] = t[1] + n * (e[1] - t[1])), r
  629. }
  630. function ue(r, t, e) {
  631. var n = t[0],
  632. i = t[1]
  633. return (
  634. (r[0] = e[0] * n + e[2] * i + e[4]), (r[1] = e[1] * n + e[3] * i + e[5]), r
  635. )
  636. }
  637. function zn(r, t, e) {
  638. return (r[0] = Math.min(t[0], e[0])), (r[1] = Math.min(t[1], e[1])), r
  639. }
  640. function Vn(r, t, e) {
  641. return (r[0] = Math.max(t[0], e[0])), (r[1] = Math.max(t[1], e[1])), r
  642. }
  643. var Gn = (function () {
  644. function r(t, e) {
  645. ;(this.target = t), (this.topTarget = e && e.topTarget)
  646. }
  647. return r
  648. })(),
  649. Nx = (function () {
  650. function r(t) {
  651. ;(this.handler = t),
  652. t.on('mousedown', this._dragStart, this),
  653. t.on('mousemove', this._drag, this),
  654. t.on('mouseup', this._dragEnd, this)
  655. }
  656. return (
  657. (r.prototype._dragStart = function (t) {
  658. for (var e = t.target; e && !e.draggable; )
  659. e = e.parent || e.__hostTarget
  660. e &&
  661. ((this._draggingTarget = e),
  662. (e.dragging = !0),
  663. (this._x = t.offsetX),
  664. (this._y = t.offsetY),
  665. this.handler.dispatchToElement(new Gn(e, t), 'dragstart', t.event))
  666. }),
  667. (r.prototype._drag = function (t) {
  668. var e = this._draggingTarget
  669. if (e) {
  670. var n = t.offsetX,
  671. i = t.offsetY,
  672. a = n - this._x,
  673. o = i - this._y
  674. ;(this._x = n),
  675. (this._y = i),
  676. e.drift(a, o, t),
  677. this.handler.dispatchToElement(new Gn(e, t), 'drag', t.event)
  678. var s = this.handler.findHover(n, i, e).target,
  679. l = this._dropTarget
  680. ;(this._dropTarget = s),
  681. e !== s &&
  682. (l &&
  683. s !== l &&
  684. this.handler.dispatchToElement(
  685. new Gn(l, t),
  686. 'dragleave',
  687. t.event
  688. ),
  689. s &&
  690. s !== l &&
  691. this.handler.dispatchToElement(
  692. new Gn(s, t),
  693. 'dragenter',
  694. t.event
  695. ))
  696. }
  697. }),
  698. (r.prototype._dragEnd = function (t) {
  699. var e = this._draggingTarget
  700. e && (e.dragging = !1),
  701. this.handler.dispatchToElement(new Gn(e, t), 'dragend', t.event),
  702. this._dropTarget &&
  703. this.handler.dispatchToElement(
  704. new Gn(this._dropTarget, t),
  705. 'drop',
  706. t.event
  707. ),
  708. (this._draggingTarget = null),
  709. (this._dropTarget = null)
  710. }),
  711. r
  712. )
  713. })(),
  714. Fx = Nx,
  715. zx = (function () {
  716. function r(t) {
  717. t && (this._$eventProcessor = t)
  718. }
  719. return (
  720. (r.prototype.on = function (t, e, n, i) {
  721. this._$handlers || (this._$handlers = {})
  722. var a = this._$handlers
  723. if (
  724. (typeof e == 'function' && ((i = n), (n = e), (e = null)), !n || !t)
  725. )
  726. return this
  727. var o = this._$eventProcessor
  728. e != null && o && o.normalizeQuery && (e = o.normalizeQuery(e)),
  729. a[t] || (a[t] = [])
  730. for (var s = 0; s < a[t].length; s++) if (a[t][s].h === n) return this
  731. var l = {
  732. h: n,
  733. query: e,
  734. ctx: i || this,
  735. callAtLast: n.zrEventfulCallAtLast
  736. },
  737. u = a[t].length - 1,
  738. f = a[t][u]
  739. return f && f.callAtLast ? a[t].splice(u, 0, l) : a[t].push(l), this
  740. }),
  741. (r.prototype.isSilent = function (t) {
  742. var e = this._$handlers
  743. return !e || !e[t] || !e[t].length
  744. }),
  745. (r.prototype.off = function (t, e) {
  746. var n = this._$handlers
  747. if (!n) return this
  748. if (!t) return (this._$handlers = {}), this
  749. if (e) {
  750. if (n[t]) {
  751. for (var i = [], a = 0, o = n[t].length; a < o; a++)
  752. n[t][a].h !== e && i.push(n[t][a])
  753. n[t] = i
  754. }
  755. n[t] && n[t].length === 0 && delete n[t]
  756. } else delete n[t]
  757. return this
  758. }),
  759. (r.prototype.trigger = function (t) {
  760. for (var e = [], n = 1; n < arguments.length; n++)
  761. e[n - 1] = arguments[n]
  762. if (!this._$handlers) return this
  763. var i = this._$handlers[t],
  764. a = this._$eventProcessor
  765. if (i)
  766. for (var o = e.length, s = i.length, l = 0; l < s; l++) {
  767. var u = i[l]
  768. if (!(a && a.filter && u.query != null && !a.filter(t, u.query)))
  769. switch (o) {
  770. case 0:
  771. u.h.call(u.ctx)
  772. break
  773. case 1:
  774. u.h.call(u.ctx, e[0])
  775. break
  776. case 2:
  777. u.h.call(u.ctx, e[0], e[1])
  778. break
  779. default:
  780. u.h.apply(u.ctx, e)
  781. break
  782. }
  783. }
  784. return a && a.afterTrigger && a.afterTrigger(t), this
  785. }),
  786. (r.prototype.triggerWithContext = function (t) {
  787. for (var e = [], n = 1; n < arguments.length; n++)
  788. e[n - 1] = arguments[n]
  789. if (!this._$handlers) return this
  790. var i = this._$handlers[t],
  791. a = this._$eventProcessor
  792. if (i)
  793. for (
  794. var o = e.length, s = e[o - 1], l = i.length, u = 0;
  795. u < l;
  796. u++
  797. ) {
  798. var f = i[u]
  799. if (!(a && a.filter && f.query != null && !a.filter(t, f.query)))
  800. switch (o) {
  801. case 0:
  802. f.h.call(s)
  803. break
  804. case 1:
  805. f.h.call(s, e[0])
  806. break
  807. case 2:
  808. f.h.call(s, e[0], e[1])
  809. break
  810. default:
  811. f.h.apply(s, e.slice(1, o - 1))
  812. break
  813. }
  814. }
  815. return a && a.afterTrigger && a.afterTrigger(t), this
  816. }),
  817. r
  818. )
  819. })(),
  820. fe = zx,
  821. Vx = Math.log(2)
  822. function Nl(r, t, e, n, i, a) {
  823. var o = n + '-' + i,
  824. s = r.length
  825. if (a.hasOwnProperty(o)) return a[o]
  826. if (t === 1) {
  827. var l = Math.round(Math.log(((1 << s) - 1) & ~i) / Vx)
  828. return r[e][l]
  829. }
  830. for (var u = n | (1 << e), f = e + 1; n & (1 << f); ) f++
  831. for (var h = 0, c = 0, v = 0; c < s; c++) {
  832. var d = 1 << c
  833. d & i ||
  834. ((h += (v % 2 ? -1 : 1) * r[e][c] * Nl(r, t - 1, f, u, i | d, a)), v++)
  835. }
  836. return (a[o] = h), h
  837. }
  838. function Kv(r, t) {
  839. var e = [
  840. [r[0], r[1], 1, 0, 0, 0, -t[0] * r[0], -t[0] * r[1]],
  841. [0, 0, 0, r[0], r[1], 1, -t[1] * r[0], -t[1] * r[1]],
  842. [r[2], r[3], 1, 0, 0, 0, -t[2] * r[2], -t[2] * r[3]],
  843. [0, 0, 0, r[2], r[3], 1, -t[3] * r[2], -t[3] * r[3]],
  844. [r[4], r[5], 1, 0, 0, 0, -t[4] * r[4], -t[4] * r[5]],
  845. [0, 0, 0, r[4], r[5], 1, -t[5] * r[4], -t[5] * r[5]],
  846. [r[6], r[7], 1, 0, 0, 0, -t[6] * r[6], -t[6] * r[7]],
  847. [0, 0, 0, r[6], r[7], 1, -t[7] * r[6], -t[7] * r[7]]
  848. ],
  849. n = {},
  850. i = Nl(e, 8, 0, 0, 0, n)
  851. if (i !== 0) {
  852. for (var a = [], o = 0; o < 8; o++)
  853. for (var s = 0; s < 8; s++)
  854. a[s] == null && (a[s] = 0),
  855. (a[s] +=
  856. ((((o + s) % 2 ? -1 : 1) *
  857. Nl(e, 7, o === 0 ? 1 : 0, 1 << o, 1 << s, n)) /
  858. i) *
  859. t[o])
  860. return function (l, u, f) {
  861. var h = u * a[6] + f * a[7] + 1
  862. ;(l[0] = (u * a[0] + f * a[1] + a[2]) / h),
  863. (l[1] = (u * a[3] + f * a[4] + a[5]) / h)
  864. }
  865. }
  866. }
  867. var Qv = '___zrEVENTSAVED',
  868. Fl = []
  869. function Gx(r, t, e, n, i) {
  870. return zl(Fl, t, n, i, !0) && zl(r, e, Fl[0], Fl[1])
  871. }
  872. function zl(r, t, e, n, i) {
  873. if (t.getBoundingClientRect && at.domSupported && !Jv(t)) {
  874. var a = t[Qv] || (t[Qv] = {}),
  875. o = Hx(t, a),
  876. s = Wx(o, a, i)
  877. if (s) return s(r, e, n), !0
  878. }
  879. return !1
  880. }
  881. function Hx(r, t) {
  882. var e = t.markers
  883. if (e) return e
  884. e = t.markers = []
  885. for (var n = ['left', 'right'], i = ['top', 'bottom'], a = 0; a < 4; a++) {
  886. var o = document.createElement('div'),
  887. s = o.style,
  888. l = a % 2,
  889. u = (a >> 1) % 2
  890. ;(s.cssText = [
  891. 'position: absolute',
  892. 'visibility: hidden',
  893. 'padding: 0',
  894. 'margin: 0',
  895. 'border-width: 0',
  896. 'user-select: none',
  897. 'width:0',
  898. 'height:0',
  899. n[l] + ':0',
  900. i[u] + ':0',
  901. n[1 - l] + ':auto',
  902. i[1 - u] + ':auto',
  903. ''
  904. ].join('!important;')),
  905. r.appendChild(o),
  906. e.push(o)
  907. }
  908. return e
  909. }
  910. function Wx(r, t, e) {
  911. for (
  912. var n = e ? 'invTrans' : 'trans',
  913. i = t[n],
  914. a = t.srcCoords,
  915. o = [],
  916. s = [],
  917. l = !0,
  918. u = 0;
  919. u < 4;
  920. u++
  921. ) {
  922. var f = r[u].getBoundingClientRect(),
  923. h = 2 * u,
  924. c = f.left,
  925. v = f.top
  926. o.push(c, v),
  927. (l = l && a && c === a[h] && v === a[h + 1]),
  928. s.push(r[u].offsetLeft, r[u].offsetTop)
  929. }
  930. return l && i ? i : ((t.srcCoords = o), (t[n] = e ? Kv(s, o) : Kv(o, s)))
  931. }
  932. function Jv(r) {
  933. return r.nodeName.toUpperCase() === 'CANVAS'
  934. }
  935. var Ux = /^(?:mouse|pointer|contextmenu|drag|drop)|click/,
  936. Vl = [],
  937. Yx = at.browser.firefox && +at.browser.version.split('.')[0] < 39
  938. function Gl(r, t, e, n) {
  939. return (
  940. (e = e || {}),
  941. n
  942. ? jv(r, t, e)
  943. : Yx && t.layerX != null && t.layerX !== t.offsetX
  944. ? ((e.zrX = t.layerX), (e.zrY = t.layerY))
  945. : t.offsetX != null
  946. ? ((e.zrX = t.offsetX), (e.zrY = t.offsetY))
  947. : jv(r, t, e),
  948. e
  949. )
  950. }
  951. function jv(r, t, e) {
  952. if (at.domSupported && r.getBoundingClientRect) {
  953. var n = t.clientX,
  954. i = t.clientY
  955. if (Jv(r)) {
  956. var a = r.getBoundingClientRect()
  957. ;(e.zrX = n - a.left), (e.zrY = i - a.top)
  958. return
  959. } else if (zl(Vl, r, n, i)) {
  960. ;(e.zrX = Vl[0]), (e.zrY = Vl[1])
  961. return
  962. }
  963. }
  964. e.zrX = e.zrY = 0
  965. }
  966. function Hl(r) {
  967. return r || window.event
  968. }
  969. function he(r, t, e) {
  970. if (((t = Hl(t)), t.zrX != null)) return t
  971. var n = t.type,
  972. i = n && n.indexOf('touch') >= 0
  973. if (i) {
  974. var o = n !== 'touchend' ? t.targetTouches[0] : t.changedTouches[0]
  975. o && Gl(r, o, t, e)
  976. } else {
  977. Gl(r, t, t, e)
  978. var a = Zx(t)
  979. t.zrDelta = a ? a / 120 : -(t.detail || 0) / 3
  980. }
  981. var s = t.button
  982. return (
  983. t.which == null &&
  984. s !== void 0 &&
  985. Ux.test(t.type) &&
  986. (t.which = s & 1 ? 1 : s & 2 ? 3 : s & 4 ? 2 : 0),
  987. t
  988. )
  989. }
  990. function Zx(r) {
  991. var t = r.wheelDelta
  992. if (t) return t
  993. var e = r.deltaX,
  994. n = r.deltaY
  995. if (e == null || n == null) return t
  996. var i = Math.abs(n !== 0 ? n : e),
  997. a = n > 0 ? -1 : n < 0 ? 1 : e > 0 ? -1 : 1
  998. return 3 * i * a
  999. }
  1000. function Wl(r, t, e, n) {
  1001. r.addEventListener(t, e, n)
  1002. }
  1003. function $x(r, t, e, n) {
  1004. r.removeEventListener(t, e, n)
  1005. }
  1006. var Hn = function (r) {
  1007. r.preventDefault(), r.stopPropagation(), (r.cancelBubble = !0)
  1008. }
  1009. function tc(r) {
  1010. return r.which === 2 || r.which === 3
  1011. }
  1012. var Xx = (function () {
  1013. function r() {
  1014. this._track = []
  1015. }
  1016. return (
  1017. (r.prototype.recognize = function (t, e, n) {
  1018. return this._doTrack(t, e, n), this._recognize(t)
  1019. }),
  1020. (r.prototype.clear = function () {
  1021. return (this._track.length = 0), this
  1022. }),
  1023. (r.prototype._doTrack = function (t, e, n) {
  1024. var i = t.touches
  1025. if (!!i) {
  1026. for (
  1027. var a = { points: [], touches: [], target: e, event: t },
  1028. o = 0,
  1029. s = i.length;
  1030. o < s;
  1031. o++
  1032. ) {
  1033. var l = i[o],
  1034. u = Gl(n, l, {})
  1035. a.points.push([u.zrX, u.zrY]), a.touches.push(l)
  1036. }
  1037. this._track.push(a)
  1038. }
  1039. }),
  1040. (r.prototype._recognize = function (t) {
  1041. for (var e in Ul)
  1042. if (Ul.hasOwnProperty(e)) {
  1043. var n = Ul[e](this._track, t)
  1044. if (n) return n
  1045. }
  1046. }),
  1047. r
  1048. )
  1049. })()
  1050. function ec(r) {
  1051. var t = r[1][0] - r[0][0],
  1052. e = r[1][1] - r[0][1]
  1053. return Math.sqrt(t * t + e * e)
  1054. }
  1055. function qx(r) {
  1056. return [(r[0][0] + r[1][0]) / 2, (r[0][1] + r[1][1]) / 2]
  1057. }
  1058. var Ul = {
  1059. pinch: function (r, t) {
  1060. var e = r.length
  1061. if (!!e) {
  1062. var n = (r[e - 1] || {}).points,
  1063. i = (r[e - 2] || {}).points || n
  1064. if (i && i.length > 1 && n && n.length > 1) {
  1065. var a = ec(n) / ec(i)
  1066. !isFinite(a) && (a = 1), (t.pinchScale = a)
  1067. var o = qx(n)
  1068. return (
  1069. (t.pinchX = o[0]),
  1070. (t.pinchY = o[1]),
  1071. { type: 'pinch', target: r[0].target, event: t }
  1072. )
  1073. }
  1074. }
  1075. }
  1076. },
  1077. rc = 'silent'
  1078. function Kx(r, t, e) {
  1079. return {
  1080. type: r,
  1081. event: e,
  1082. target: t.target,
  1083. topTarget: t.topTarget,
  1084. cancelBubble: !1,
  1085. offsetX: e.zrX,
  1086. offsetY: e.zrY,
  1087. gestureEvent: e.gestureEvent,
  1088. pinchX: e.pinchX,
  1089. pinchY: e.pinchY,
  1090. pinchScale: e.pinchScale,
  1091. wheelDelta: e.zrDelta,
  1092. zrByTouch: e.zrByTouch,
  1093. which: e.which,
  1094. stop: Qx
  1095. }
  1096. }
  1097. function Qx() {
  1098. Hn(this.event)
  1099. }
  1100. var Jx = (function (r) {
  1101. B(t, r)
  1102. function t() {
  1103. var e = (r !== null && r.apply(this, arguments)) || this
  1104. return (e.handler = null), e
  1105. }
  1106. return (
  1107. (t.prototype.dispose = function () {}),
  1108. (t.prototype.setCursor = function () {}),
  1109. t
  1110. )
  1111. })(fe),
  1112. Bi = (function () {
  1113. function r(t, e) {
  1114. ;(this.x = t), (this.y = e)
  1115. }
  1116. return r
  1117. })(),
  1118. jx = [
  1119. 'click',
  1120. 'dblclick',
  1121. 'mousewheel',
  1122. 'mouseout',
  1123. 'mouseup',
  1124. 'mousedown',
  1125. 'mousemove',
  1126. 'contextmenu'
  1127. ],
  1128. nc = (function (r) {
  1129. B(t, r)
  1130. function t(e, n, i, a) {
  1131. var o = r.call(this) || this
  1132. return (
  1133. (o._hovered = new Bi(0, 0)),
  1134. (o.storage = e),
  1135. (o.painter = n),
  1136. (o.painterRoot = a),
  1137. (i = i || new Jx()),
  1138. (o.proxy = null),
  1139. o.setHandlerProxy(i),
  1140. (o._draggingMgr = new Fx(o)),
  1141. o
  1142. )
  1143. }
  1144. return (
  1145. (t.prototype.setHandlerProxy = function (e) {
  1146. this.proxy && this.proxy.dispose(),
  1147. e &&
  1148. (A(
  1149. jx,
  1150. function (n) {
  1151. e.on && e.on(n, this[n], this)
  1152. },
  1153. this
  1154. ),
  1155. (e.handler = this)),
  1156. (this.proxy = e)
  1157. }),
  1158. (t.prototype.mousemove = function (e) {
  1159. var n = e.zrX,
  1160. i = e.zrY,
  1161. a = ic(this, n, i),
  1162. o = this._hovered,
  1163. s = o.target
  1164. s && !s.__zr && ((o = this.findHover(o.x, o.y)), (s = o.target))
  1165. var l = (this._hovered = a ? new Bi(n, i) : this.findHover(n, i)),
  1166. u = l.target,
  1167. f = this.proxy
  1168. f.setCursor && f.setCursor(u ? u.cursor : 'default'),
  1169. s && u !== s && this.dispatchToElement(o, 'mouseout', e),
  1170. this.dispatchToElement(l, 'mousemove', e),
  1171. u && u !== s && this.dispatchToElement(l, 'mouseover', e)
  1172. }),
  1173. (t.prototype.mouseout = function (e) {
  1174. var n = e.zrEventControl
  1175. n !== 'only_globalout' &&
  1176. this.dispatchToElement(this._hovered, 'mouseout', e),
  1177. n !== 'no_globalout' &&
  1178. this.trigger('globalout', { type: 'globalout', event: e })
  1179. }),
  1180. (t.prototype.resize = function () {
  1181. this._hovered = new Bi(0, 0)
  1182. }),
  1183. (t.prototype.dispatch = function (e, n) {
  1184. var i = this[e]
  1185. i && i.call(this, n)
  1186. }),
  1187. (t.prototype.dispose = function () {
  1188. this.proxy.dispose(),
  1189. (this.storage = null),
  1190. (this.proxy = null),
  1191. (this.painter = null)
  1192. }),
  1193. (t.prototype.setCursorStyle = function (e) {
  1194. var n = this.proxy
  1195. n.setCursor && n.setCursor(e)
  1196. }),
  1197. (t.prototype.dispatchToElement = function (e, n, i) {
  1198. e = e || {}
  1199. var a = e.target
  1200. if (!(a && a.silent)) {
  1201. for (
  1202. var o = 'on' + n, s = Kx(n, e, i);
  1203. a &&
  1204. (a[o] && (s.cancelBubble = !!a[o].call(a, s)),
  1205. a.trigger(n, s),
  1206. (a = a.__hostTarget ? a.__hostTarget : a.parent),
  1207. !s.cancelBubble);
  1208. );
  1209. s.cancelBubble ||
  1210. (this.trigger(n, s),
  1211. this.painter &&
  1212. this.painter.eachOtherLayer &&
  1213. this.painter.eachOtherLayer(function (l) {
  1214. typeof l[o] == 'function' && l[o].call(l, s),
  1215. l.trigger && l.trigger(n, s)
  1216. }))
  1217. }
  1218. }),
  1219. (t.prototype.findHover = function (e, n, i) {
  1220. for (
  1221. var a = this.storage.getDisplayList(),
  1222. o = new Bi(e, n),
  1223. s = a.length - 1;
  1224. s >= 0;
  1225. s--
  1226. ) {
  1227. var l = void 0
  1228. if (
  1229. a[s] !== i &&
  1230. !a[s].ignore &&
  1231. (l = tw(a[s], e, n)) &&
  1232. (!o.topTarget && (o.topTarget = a[s]), l !== rc)
  1233. ) {
  1234. o.target = a[s]
  1235. break
  1236. }
  1237. }
  1238. return o
  1239. }),
  1240. (t.prototype.processGesture = function (e, n) {
  1241. this._gestureMgr || (this._gestureMgr = new Xx())
  1242. var i = this._gestureMgr
  1243. n === 'start' && i.clear()
  1244. var a = i.recognize(
  1245. e,
  1246. this.findHover(e.zrX, e.zrY, null).target,
  1247. this.proxy.dom
  1248. )
  1249. if ((n === 'end' && i.clear(), a)) {
  1250. var o = a.type
  1251. e.gestureEvent = o
  1252. var s = new Bi()
  1253. ;(s.target = a.target), this.dispatchToElement(s, o, a.event)
  1254. }
  1255. }),
  1256. t
  1257. )
  1258. })(fe)
  1259. A(
  1260. ['click', 'mousedown', 'mouseup', 'mousewheel', 'dblclick', 'contextmenu'],
  1261. function (r) {
  1262. nc.prototype[r] = function (t) {
  1263. var e = t.zrX,
  1264. n = t.zrY,
  1265. i = ic(this, e, n),
  1266. a,
  1267. o
  1268. if (
  1269. ((r !== 'mouseup' || !i) &&
  1270. ((a = this.findHover(e, n)), (o = a.target)),
  1271. r === 'mousedown')
  1272. )
  1273. (this._downEl = o), (this._downPoint = [t.zrX, t.zrY]), (this._upEl = o)
  1274. else if (r === 'mouseup') this._upEl = o
  1275. else if (r === 'click') {
  1276. if (
  1277. this._downEl !== this._upEl ||
  1278. !this._downPoint ||
  1279. Bl(this._downPoint, [t.zrX, t.zrY]) > 4
  1280. )
  1281. return
  1282. this._downPoint = null
  1283. }
  1284. this.dispatchToElement(a, r, t)
  1285. }
  1286. }
  1287. )
  1288. function tw(r, t, e) {
  1289. if (r[r.rectHover ? 'rectContain' : 'contain'](t, e)) {
  1290. for (var n = r, i = void 0, a = !1; n; ) {
  1291. if ((n.ignoreClip && (a = !0), !a)) {
  1292. var o = n.getClipPath()
  1293. if (o && !o.contain(t, e)) return !1
  1294. n.silent && (i = !0)
  1295. }
  1296. var s = n.__hostTarget
  1297. n = s || n.parent
  1298. }
  1299. return i ? rc : !0
  1300. }
  1301. return !1
  1302. }
  1303. function ic(r, t, e) {
  1304. var n = r.painter
  1305. return t < 0 || t > n.getWidth() || e < 0 || e > n.getHeight()
  1306. }
  1307. var ew = nc,
  1308. ac = 32,
  1309. Ni = 7
  1310. function rw(r) {
  1311. for (var t = 0; r >= ac; ) (t |= r & 1), (r >>= 1)
  1312. return r + t
  1313. }
  1314. function oc(r, t, e, n) {
  1315. var i = t + 1
  1316. if (i === e) return 1
  1317. if (n(r[i++], r[t]) < 0) {
  1318. for (; i < e && n(r[i], r[i - 1]) < 0; ) i++
  1319. nw(r, t, i)
  1320. } else for (; i < e && n(r[i], r[i - 1]) >= 0; ) i++
  1321. return i - t
  1322. }
  1323. function nw(r, t, e) {
  1324. for (e--; t < e; ) {
  1325. var n = r[t]
  1326. ;(r[t++] = r[e]), (r[e--] = n)
  1327. }
  1328. }
  1329. function sc(r, t, e, n, i) {
  1330. for (n === t && n++; n < e; n++) {
  1331. for (var a = r[n], o = t, s = n, l; o < s; )
  1332. (l = (o + s) >>> 1), i(a, r[l]) < 0 ? (s = l) : (o = l + 1)
  1333. var u = n - o
  1334. switch (u) {
  1335. case 3:
  1336. r[o + 3] = r[o + 2]
  1337. case 2:
  1338. r[o + 2] = r[o + 1]
  1339. case 1:
  1340. r[o + 1] = r[o]
  1341. break
  1342. default:
  1343. for (; u > 0; ) (r[o + u] = r[o + u - 1]), u--
  1344. }
  1345. r[o] = a
  1346. }
  1347. }
  1348. function Yl(r, t, e, n, i, a) {
  1349. var o = 0,
  1350. s = 0,
  1351. l = 1
  1352. if (a(r, t[e + i]) > 0) {
  1353. for (s = n - i; l < s && a(r, t[e + i + l]) > 0; )
  1354. (o = l), (l = (l << 1) + 1), l <= 0 && (l = s)
  1355. l > s && (l = s), (o += i), (l += i)
  1356. } else {
  1357. for (s = i + 1; l < s && a(r, t[e + i - l]) <= 0; )
  1358. (o = l), (l = (l << 1) + 1), l <= 0 && (l = s)
  1359. l > s && (l = s)
  1360. var u = o
  1361. ;(o = i - l), (l = i - u)
  1362. }
  1363. for (o++; o < l; ) {
  1364. var f = o + ((l - o) >>> 1)
  1365. a(r, t[e + f]) > 0 ? (o = f + 1) : (l = f)
  1366. }
  1367. return l
  1368. }
  1369. function Zl(r, t, e, n, i, a) {
  1370. var o = 0,
  1371. s = 0,
  1372. l = 1
  1373. if (a(r, t[e + i]) < 0) {
  1374. for (s = i + 1; l < s && a(r, t[e + i - l]) < 0; )
  1375. (o = l), (l = (l << 1) + 1), l <= 0 && (l = s)
  1376. l > s && (l = s)
  1377. var u = o
  1378. ;(o = i - l), (l = i - u)
  1379. } else {
  1380. for (s = n - i; l < s && a(r, t[e + i + l]) >= 0; )
  1381. (o = l), (l = (l << 1) + 1), l <= 0 && (l = s)
  1382. l > s && (l = s), (o += i), (l += i)
  1383. }
  1384. for (o++; o < l; ) {
  1385. var f = o + ((l - o) >>> 1)
  1386. a(r, t[e + f]) < 0 ? (l = f) : (o = f + 1)
  1387. }
  1388. return l
  1389. }
  1390. function iw(r, t) {
  1391. var e = Ni,
  1392. n,
  1393. i,
  1394. a = 0,
  1395. o = []
  1396. ;(n = []), (i = [])
  1397. function s(v, d) {
  1398. ;(n[a] = v), (i[a] = d), (a += 1)
  1399. }
  1400. function l() {
  1401. for (; a > 1; ) {
  1402. var v = a - 2
  1403. if (
  1404. (v >= 1 && i[v - 1] <= i[v] + i[v + 1]) ||
  1405. (v >= 2 && i[v - 2] <= i[v] + i[v - 1])
  1406. )
  1407. i[v - 1] < i[v + 1] && v--
  1408. else if (i[v] > i[v + 1]) break
  1409. f(v)
  1410. }
  1411. }
  1412. function u() {
  1413. for (; a > 1; ) {
  1414. var v = a - 2
  1415. v > 0 && i[v - 1] < i[v + 1] && v--, f(v)
  1416. }
  1417. }
  1418. function f(v) {
  1419. var d = n[v],
  1420. p = i[v],
  1421. g = n[v + 1],
  1422. m = i[v + 1]
  1423. ;(i[v] = p + m),
  1424. v === a - 3 && ((n[v + 1] = n[v + 2]), (i[v + 1] = i[v + 2])),
  1425. a--
  1426. var y = Zl(r[g], r, d, p, 0, t)
  1427. ;(d += y),
  1428. (p -= y),
  1429. p !== 0 &&
  1430. ((m = Yl(r[d + p - 1], r, g, m, m - 1, t)),
  1431. m !== 0 && (p <= m ? h(d, p, g, m) : c(d, p, g, m)))
  1432. }
  1433. function h(v, d, p, g) {
  1434. var m = 0
  1435. for (m = 0; m < d; m++) o[m] = r[v + m]
  1436. var y = 0,
  1437. _ = p,
  1438. S = v
  1439. if (((r[S++] = r[_++]), --g == 0)) {
  1440. for (m = 0; m < d; m++) r[S + m] = o[y + m]
  1441. return
  1442. }
  1443. if (d === 1) {
  1444. for (m = 0; m < g; m++) r[S + m] = r[_ + m]
  1445. r[S + g] = o[y]
  1446. return
  1447. }
  1448. for (var w = e, x, b, T; ; ) {
  1449. ;(x = 0), (b = 0), (T = !1)
  1450. do
  1451. if (t(r[_], o[y]) < 0) {
  1452. if (((r[S++] = r[_++]), b++, (x = 0), --g == 0)) {
  1453. T = !0
  1454. break
  1455. }
  1456. } else if (((r[S++] = o[y++]), x++, (b = 0), --d == 1)) {
  1457. T = !0
  1458. break
  1459. }
  1460. while ((x | b) < w)
  1461. if (T) break
  1462. do {
  1463. if (((x = Zl(r[_], o, y, d, 0, t)), x !== 0)) {
  1464. for (m = 0; m < x; m++) r[S + m] = o[y + m]
  1465. if (((S += x), (y += x), (d -= x), d <= 1)) {
  1466. T = !0
  1467. break
  1468. }
  1469. }
  1470. if (((r[S++] = r[_++]), --g == 0)) {
  1471. T = !0
  1472. break
  1473. }
  1474. if (((b = Yl(o[y], r, _, g, 0, t)), b !== 0)) {
  1475. for (m = 0; m < b; m++) r[S + m] = r[_ + m]
  1476. if (((S += b), (_ += b), (g -= b), g === 0)) {
  1477. T = !0
  1478. break
  1479. }
  1480. }
  1481. if (((r[S++] = o[y++]), --d == 1)) {
  1482. T = !0
  1483. break
  1484. }
  1485. w--
  1486. } while (x >= Ni || b >= Ni)
  1487. if (T) break
  1488. w < 0 && (w = 0), (w += 2)
  1489. }
  1490. if (((e = w), e < 1 && (e = 1), d === 1)) {
  1491. for (m = 0; m < g; m++) r[S + m] = r[_ + m]
  1492. r[S + g] = o[y]
  1493. } else {
  1494. if (d === 0) throw new Error()
  1495. for (m = 0; m < d; m++) r[S + m] = o[y + m]
  1496. }
  1497. }
  1498. function c(v, d, p, g) {
  1499. var m = 0
  1500. for (m = 0; m < g; m++) o[m] = r[p + m]
  1501. var y = v + d - 1,
  1502. _ = g - 1,
  1503. S = p + g - 1,
  1504. w = 0,
  1505. x = 0
  1506. if (((r[S--] = r[y--]), --d == 0)) {
  1507. for (w = S - (g - 1), m = 0; m < g; m++) r[w + m] = o[m]
  1508. return
  1509. }
  1510. if (g === 1) {
  1511. for (S -= d, y -= d, x = S + 1, w = y + 1, m = d - 1; m >= 0; m--)
  1512. r[x + m] = r[w + m]
  1513. r[S] = o[_]
  1514. return
  1515. }
  1516. for (var b = e; ; ) {
  1517. var T = 0,
  1518. C = 0,
  1519. M = !1
  1520. do
  1521. if (t(o[_], r[y]) < 0) {
  1522. if (((r[S--] = r[y--]), T++, (C = 0), --d == 0)) {
  1523. M = !0
  1524. break
  1525. }
  1526. } else if (((r[S--] = o[_--]), C++, (T = 0), --g == 1)) {
  1527. M = !0
  1528. break
  1529. }
  1530. while ((T | C) < b)
  1531. if (M) break
  1532. do {
  1533. if (((T = d - Zl(o[_], r, v, d, d - 1, t)), T !== 0)) {
  1534. for (
  1535. S -= T, y -= T, d -= T, x = S + 1, w = y + 1, m = T - 1;
  1536. m >= 0;
  1537. m--
  1538. )
  1539. r[x + m] = r[w + m]
  1540. if (d === 0) {
  1541. M = !0
  1542. break
  1543. }
  1544. }
  1545. if (((r[S--] = o[_--]), --g == 1)) {
  1546. M = !0
  1547. break
  1548. }
  1549. if (((C = g - Yl(r[y], o, 0, g, g - 1, t)), C !== 0)) {
  1550. for (S -= C, _ -= C, g -= C, x = S + 1, w = _ + 1, m = 0; m < C; m++)
  1551. r[x + m] = o[w + m]
  1552. if (g <= 1) {
  1553. M = !0
  1554. break
  1555. }
  1556. }
  1557. if (((r[S--] = r[y--]), --d == 0)) {
  1558. M = !0
  1559. break
  1560. }
  1561. b--
  1562. } while (T >= Ni || C >= Ni)
  1563. if (M) break
  1564. b < 0 && (b = 0), (b += 2)
  1565. }
  1566. if (((e = b), e < 1 && (e = 1), g === 1)) {
  1567. for (S -= d, y -= d, x = S + 1, w = y + 1, m = d - 1; m >= 0; m--)
  1568. r[x + m] = r[w + m]
  1569. r[S] = o[_]
  1570. } else {
  1571. if (g === 0) throw new Error()
  1572. for (w = S - (g - 1), m = 0; m < g; m++) r[w + m] = o[m]
  1573. }
  1574. }
  1575. return { mergeRuns: l, forceMergeRuns: u, pushRun: s }
  1576. }
  1577. function uo(r, t, e, n) {
  1578. e || (e = 0), n || (n = r.length)
  1579. var i = n - e
  1580. if (!(i < 2)) {
  1581. var a = 0
  1582. if (i < ac) {
  1583. ;(a = oc(r, e, n, t)), sc(r, e, n, e + a, t)
  1584. return
  1585. }
  1586. var o = iw(r, t),
  1587. s = rw(i)
  1588. do {
  1589. if (((a = oc(r, e, n, t)), a < s)) {
  1590. var l = i
  1591. l > s && (l = s), sc(r, e, e + l, e + a, t), (a = l)
  1592. }
  1593. o.pushRun(e, a), o.mergeRuns(), (i -= a), (e += a)
  1594. } while (i !== 0)
  1595. o.forceMergeRuns()
  1596. }
  1597. }
  1598. var ae = 1,
  1599. Fi = 2,
  1600. Wn = 4,
  1601. lc = !1
  1602. function $l() {
  1603. lc ||
  1604. ((lc = !0),
  1605. console.warn(
  1606. 'z / z2 / zlevel of displayable is invalid, which may cause unexpected errors'
  1607. ))
  1608. }
  1609. function uc(r, t) {
  1610. return r.zlevel === t.zlevel
  1611. ? r.z === t.z
  1612. ? r.z2 - t.z2
  1613. : r.z - t.z
  1614. : r.zlevel - t.zlevel
  1615. }
  1616. var aw = (function () {
  1617. function r() {
  1618. ;(this._roots = []),
  1619. (this._displayList = []),
  1620. (this._displayListLen = 0),
  1621. (this.displayableSortFunc = uc)
  1622. }
  1623. return (
  1624. (r.prototype.traverse = function (t, e) {
  1625. for (var n = 0; n < this._roots.length; n++)
  1626. this._roots[n].traverse(t, e)
  1627. }),
  1628. (r.prototype.getDisplayList = function (t, e) {
  1629. e = e || !1
  1630. var n = this._displayList
  1631. return (t || !n.length) && this.updateDisplayList(e), n
  1632. }),
  1633. (r.prototype.updateDisplayList = function (t) {
  1634. this._displayListLen = 0
  1635. for (
  1636. var e = this._roots, n = this._displayList, i = 0, a = e.length;
  1637. i < a;
  1638. i++
  1639. )
  1640. this._updateAndAddDisplayable(e[i], null, t)
  1641. ;(n.length = this._displayListLen), uo(n, uc)
  1642. }),
  1643. (r.prototype._updateAndAddDisplayable = function (t, e, n) {
  1644. if (!(t.ignore && !n)) {
  1645. t.beforeUpdate(), t.update(), t.afterUpdate()
  1646. var i = t.getClipPath()
  1647. if (t.ignoreClip) e = null
  1648. else if (i) {
  1649. e ? (e = e.slice()) : (e = [])
  1650. for (var a = i, o = t; a; )
  1651. (a.parent = o),
  1652. a.updateTransform(),
  1653. e.push(a),
  1654. (o = a),
  1655. (a = a.getClipPath())
  1656. }
  1657. if (t.childrenRef) {
  1658. for (var s = t.childrenRef(), l = 0; l < s.length; l++) {
  1659. var u = s[l]
  1660. t.__dirty && (u.__dirty |= ae),
  1661. this._updateAndAddDisplayable(u, e, n)
  1662. }
  1663. t.__dirty = 0
  1664. } else {
  1665. var f = t
  1666. e && e.length
  1667. ? (f.__clipPaths = e)
  1668. : f.__clipPaths &&
  1669. f.__clipPaths.length > 0 &&
  1670. (f.__clipPaths = []),
  1671. isNaN(f.z) && ($l(), (f.z = 0)),
  1672. isNaN(f.z2) && ($l(), (f.z2 = 0)),
  1673. isNaN(f.zlevel) && ($l(), (f.zlevel = 0)),
  1674. (this._displayList[this._displayListLen++] = f)
  1675. }
  1676. var h = t.getDecalElement && t.getDecalElement()
  1677. h && this._updateAndAddDisplayable(h, e, n)
  1678. var c = t.getTextGuideLine()
  1679. c && this._updateAndAddDisplayable(c, e, n)
  1680. var v = t.getTextContent()
  1681. v && this._updateAndAddDisplayable(v, e, n)
  1682. }
  1683. }),
  1684. (r.prototype.addRoot = function (t) {
  1685. ;(t.__zr && t.__zr.storage === this) || this._roots.push(t)
  1686. }),
  1687. (r.prototype.delRoot = function (t) {
  1688. if (t instanceof Array) {
  1689. for (var e = 0, n = t.length; e < n; e++) this.delRoot(t[e])
  1690. return
  1691. }
  1692. var i = ot(this._roots, t)
  1693. i >= 0 && this._roots.splice(i, 1)
  1694. }),
  1695. (r.prototype.delAllRoots = function () {
  1696. ;(this._roots = []),
  1697. (this._displayList = []),
  1698. (this._displayListLen = 0)
  1699. }),
  1700. (r.prototype.getRoots = function () {
  1701. return this._roots
  1702. }),
  1703. (r.prototype.dispose = function () {
  1704. ;(this._displayList = null), (this._roots = null)
  1705. }),
  1706. r
  1707. )
  1708. })(),
  1709. ow = aw,
  1710. fc
  1711. fc =
  1712. (at.hasGlobalWindow &&
  1713. ((window.requestAnimationFrame &&
  1714. window.requestAnimationFrame.bind(window)) ||
  1715. (window.msRequestAnimationFrame &&
  1716. window.msRequestAnimationFrame.bind(window)) ||
  1717. window.mozRequestAnimationFrame ||
  1718. window.webkitRequestAnimationFrame)) ||
  1719. function (r) {
  1720. return setTimeout(r, 16)
  1721. }
  1722. var Xl = fc,
  1723. fo = {
  1724. linear: function (r) {
  1725. return r
  1726. },
  1727. quadraticIn: function (r) {
  1728. return r * r
  1729. },
  1730. quadraticOut: function (r) {
  1731. return r * (2 - r)
  1732. },
  1733. quadraticInOut: function (r) {
  1734. return (r *= 2) < 1 ? 0.5 * r * r : -0.5 * (--r * (r - 2) - 1)
  1735. },
  1736. cubicIn: function (r) {
  1737. return r * r * r
  1738. },
  1739. cubicOut: function (r) {
  1740. return --r * r * r + 1
  1741. },
  1742. cubicInOut: function (r) {
  1743. return (r *= 2) < 1 ? 0.5 * r * r * r : 0.5 * ((r -= 2) * r * r + 2)
  1744. },
  1745. quarticIn: function (r) {
  1746. return r * r * r * r
  1747. },
  1748. quarticOut: function (r) {
  1749. return 1 - --r * r * r * r
  1750. },
  1751. quarticInOut: function (r) {
  1752. return (r *= 2) < 1
  1753. ? 0.5 * r * r * r * r
  1754. : -0.5 * ((r -= 2) * r * r * r - 2)
  1755. },
  1756. quinticIn: function (r) {
  1757. return r * r * r * r * r
  1758. },
  1759. quinticOut: function (r) {
  1760. return --r * r * r * r * r + 1
  1761. },
  1762. quinticInOut: function (r) {
  1763. return (r *= 2) < 1
  1764. ? 0.5 * r * r * r * r * r
  1765. : 0.5 * ((r -= 2) * r * r * r * r + 2)
  1766. },
  1767. sinusoidalIn: function (r) {
  1768. return 1 - Math.cos((r * Math.PI) / 2)
  1769. },
  1770. sinusoidalOut: function (r) {
  1771. return Math.sin((r * Math.PI) / 2)
  1772. },
  1773. sinusoidalInOut: function (r) {
  1774. return 0.5 * (1 - Math.cos(Math.PI * r))
  1775. },
  1776. exponentialIn: function (r) {
  1777. return r === 0 ? 0 : Math.pow(1024, r - 1)
  1778. },
  1779. exponentialOut: function (r) {
  1780. return r === 1 ? 1 : 1 - Math.pow(2, -10 * r)
  1781. },
  1782. exponentialInOut: function (r) {
  1783. return r === 0
  1784. ? 0
  1785. : r === 1
  1786. ? 1
  1787. : (r *= 2) < 1
  1788. ? 0.5 * Math.pow(1024, r - 1)
  1789. : 0.5 * (-Math.pow(2, -10 * (r - 1)) + 2)
  1790. },
  1791. circularIn: function (r) {
  1792. return 1 - Math.sqrt(1 - r * r)
  1793. },
  1794. circularOut: function (r) {
  1795. return Math.sqrt(1 - --r * r)
  1796. },
  1797. circularInOut: function (r) {
  1798. return (r *= 2) < 1
  1799. ? -0.5 * (Math.sqrt(1 - r * r) - 1)
  1800. : 0.5 * (Math.sqrt(1 - (r -= 2) * r) + 1)
  1801. },
  1802. elasticIn: function (r) {
  1803. var t,
  1804. e = 0.1,
  1805. n = 0.4
  1806. return r === 0
  1807. ? 0
  1808. : r === 1
  1809. ? 1
  1810. : (!e || e < 1
  1811. ? ((e = 1), (t = n / 4))
  1812. : (t = (n * Math.asin(1 / e)) / (2 * Math.PI)),
  1813. -(
  1814. e *
  1815. Math.pow(2, 10 * (r -= 1)) *
  1816. Math.sin(((r - t) * (2 * Math.PI)) / n)
  1817. ))
  1818. },
  1819. elasticOut: function (r) {
  1820. var t,
  1821. e = 0.1,
  1822. n = 0.4
  1823. return r === 0
  1824. ? 0
  1825. : r === 1
  1826. ? 1
  1827. : (!e || e < 1
  1828. ? ((e = 1), (t = n / 4))
  1829. : (t = (n * Math.asin(1 / e)) / (2 * Math.PI)),
  1830. e * Math.pow(2, -10 * r) * Math.sin(((r - t) * (2 * Math.PI)) / n) +
  1831. 1)
  1832. },
  1833. elasticInOut: function (r) {
  1834. var t,
  1835. e = 0.1,
  1836. n = 0.4
  1837. return r === 0
  1838. ? 0
  1839. : r === 1
  1840. ? 1
  1841. : (!e || e < 1
  1842. ? ((e = 1), (t = n / 4))
  1843. : (t = (n * Math.asin(1 / e)) / (2 * Math.PI)),
  1844. (r *= 2) < 1
  1845. ? -0.5 *
  1846. (e *
  1847. Math.pow(2, 10 * (r -= 1)) *
  1848. Math.sin(((r - t) * (2 * Math.PI)) / n))
  1849. : e *
  1850. Math.pow(2, -10 * (r -= 1)) *
  1851. Math.sin(((r - t) * (2 * Math.PI)) / n) *
  1852. 0.5 +
  1853. 1)
  1854. },
  1855. backIn: function (r) {
  1856. var t = 1.70158
  1857. return r * r * ((t + 1) * r - t)
  1858. },
  1859. backOut: function (r) {
  1860. var t = 1.70158
  1861. return --r * r * ((t + 1) * r + t) + 1
  1862. },
  1863. backInOut: function (r) {
  1864. var t = 1.70158 * 1.525
  1865. return (r *= 2) < 1
  1866. ? 0.5 * (r * r * ((t + 1) * r - t))
  1867. : 0.5 * ((r -= 2) * r * ((t + 1) * r + t) + 2)
  1868. },
  1869. bounceIn: function (r) {
  1870. return 1 - fo.bounceOut(1 - r)
  1871. },
  1872. bounceOut: function (r) {
  1873. return r < 1 / 2.75
  1874. ? 7.5625 * r * r
  1875. : r < 2 / 2.75
  1876. ? 7.5625 * (r -= 1.5 / 2.75) * r + 0.75
  1877. : r < 2.5 / 2.75
  1878. ? 7.5625 * (r -= 2.25 / 2.75) * r + 0.9375
  1879. : 7.5625 * (r -= 2.625 / 2.75) * r + 0.984375
  1880. },
  1881. bounceInOut: function (r) {
  1882. return r < 0.5
  1883. ? fo.bounceIn(r * 2) * 0.5
  1884. : fo.bounceOut(r * 2 - 1) * 0.5 + 0.5
  1885. }
  1886. },
  1887. hc = fo,
  1888. ho = Math.pow,
  1889. xr = Math.sqrt,
  1890. vo = 1e-8,
  1891. vc = 1e-4,
  1892. cc = xr(3),
  1893. co = 1 / 3,
  1894. He = Nn(),
  1895. ve = Nn(),
  1896. Un = Nn()
  1897. function wr(r) {
  1898. return r > -vo && r < vo
  1899. }
  1900. function dc(r) {
  1901. return r > vo || r < -vo
  1902. }
  1903. function Rt(r, t, e, n, i) {
  1904. var a = 1 - i
  1905. return a * a * (a * r + 3 * i * t) + i * i * (i * n + 3 * a * e)
  1906. }
  1907. function pc(r, t, e, n, i) {
  1908. var a = 1 - i
  1909. return 3 * (((t - r) * a + 2 * (e - t) * i) * a + (n - e) * i * i)
  1910. }
  1911. function po(r, t, e, n, i, a) {
  1912. var o = n + 3 * (t - e) - r,
  1913. s = 3 * (e - t * 2 + r),
  1914. l = 3 * (t - r),
  1915. u = r - i,
  1916. f = s * s - 3 * o * l,
  1917. h = s * l - 9 * o * u,
  1918. c = l * l - 3 * s * u,
  1919. v = 0
  1920. if (wr(f) && wr(h))
  1921. if (wr(s)) a[0] = 0
  1922. else {
  1923. var d = -l / s
  1924. d >= 0 && d <= 1 && (a[v++] = d)
  1925. }
  1926. else {
  1927. var p = h * h - 4 * f * c
  1928. if (wr(p)) {
  1929. var g = h / f,
  1930. d = -s / o + g,
  1931. m = -g / 2
  1932. d >= 0 && d <= 1 && (a[v++] = d), m >= 0 && m <= 1 && (a[v++] = m)
  1933. } else if (p > 0) {
  1934. var y = xr(p),
  1935. _ = f * s + 1.5 * o * (-h + y),
  1936. S = f * s + 1.5 * o * (-h - y)
  1937. _ < 0 ? (_ = -ho(-_, co)) : (_ = ho(_, co)),
  1938. S < 0 ? (S = -ho(-S, co)) : (S = ho(S, co))
  1939. var d = (-s - (_ + S)) / (3 * o)
  1940. d >= 0 && d <= 1 && (a[v++] = d)
  1941. } else {
  1942. var w = (2 * f * s - 3 * o * h) / (2 * xr(f * f * f)),
  1943. x = Math.acos(w) / 3,
  1944. b = xr(f),
  1945. T = Math.cos(x),
  1946. d = (-s - 2 * b * T) / (3 * o),
  1947. m = (-s + b * (T + cc * Math.sin(x))) / (3 * o),
  1948. C = (-s + b * (T - cc * Math.sin(x))) / (3 * o)
  1949. d >= 0 && d <= 1 && (a[v++] = d),
  1950. m >= 0 && m <= 1 && (a[v++] = m),
  1951. C >= 0 && C <= 1 && (a[v++] = C)
  1952. }
  1953. }
  1954. return v
  1955. }
  1956. function gc(r, t, e, n, i) {
  1957. var a = 6 * e - 12 * t + 6 * r,
  1958. o = 9 * t + 3 * n - 3 * r - 9 * e,
  1959. s = 3 * t - 3 * r,
  1960. l = 0
  1961. if (wr(o)) {
  1962. if (dc(a)) {
  1963. var u = -s / a
  1964. u >= 0 && u <= 1 && (i[l++] = u)
  1965. }
  1966. } else {
  1967. var f = a * a - 4 * o * s
  1968. if (wr(f)) i[0] = -a / (2 * o)
  1969. else if (f > 0) {
  1970. var h = xr(f),
  1971. u = (-a + h) / (2 * o),
  1972. c = (-a - h) / (2 * o)
  1973. u >= 0 && u <= 1 && (i[l++] = u), c >= 0 && c <= 1 && (i[l++] = c)
  1974. }
  1975. }
  1976. return l
  1977. }
  1978. function br(r, t, e, n, i, a) {
  1979. var o = (t - r) * i + r,
  1980. s = (e - t) * i + t,
  1981. l = (n - e) * i + e,
  1982. u = (s - o) * i + o,
  1983. f = (l - s) * i + s,
  1984. h = (f - u) * i + u
  1985. ;(a[0] = r),
  1986. (a[1] = o),
  1987. (a[2] = u),
  1988. (a[3] = h),
  1989. (a[4] = h),
  1990. (a[5] = f),
  1991. (a[6] = l),
  1992. (a[7] = n)
  1993. }
  1994. function mc(r, t, e, n, i, a, o, s, l, u, f) {
  1995. var h,
  1996. c = 0.005,
  1997. v = 1 / 0,
  1998. d,
  1999. p,
  2000. g,
  2001. m
  2002. ;(He[0] = l), (He[1] = u)
  2003. for (var y = 0; y < 1; y += 0.05)
  2004. (ve[0] = Rt(r, e, i, o, y)),
  2005. (ve[1] = Rt(t, n, a, s, y)),
  2006. (g = Fn(He, ve)),
  2007. g < v && ((h = y), (v = g))
  2008. v = 1 / 0
  2009. for (var _ = 0; _ < 32 && !(c < vc); _++)
  2010. (d = h - c),
  2011. (p = h + c),
  2012. (ve[0] = Rt(r, e, i, o, d)),
  2013. (ve[1] = Rt(t, n, a, s, d)),
  2014. (g = Fn(ve, He)),
  2015. d >= 0 && g < v
  2016. ? ((h = d), (v = g))
  2017. : ((Un[0] = Rt(r, e, i, o, p)),
  2018. (Un[1] = Rt(t, n, a, s, p)),
  2019. (m = Fn(Un, He)),
  2020. p <= 1 && m < v ? ((h = p), (v = m)) : (c *= 0.5))
  2021. return f && ((f[0] = Rt(r, e, i, o, h)), (f[1] = Rt(t, n, a, s, h))), xr(v)
  2022. }
  2023. function sw(r, t, e, n, i, a, o, s, l) {
  2024. for (var u = r, f = t, h = 0, c = 1 / l, v = 1; v <= l; v++) {
  2025. var d = v * c,
  2026. p = Rt(r, e, i, o, d),
  2027. g = Rt(t, n, a, s, d),
  2028. m = p - u,
  2029. y = g - f
  2030. ;(h += Math.sqrt(m * m + y * y)), (u = p), (f = g)
  2031. }
  2032. return h
  2033. }
  2034. function Gt(r, t, e, n) {
  2035. var i = 1 - n
  2036. return i * (i * r + 2 * n * t) + n * n * e
  2037. }
  2038. function yc(r, t, e, n) {
  2039. return 2 * ((1 - n) * (t - r) + n * (e - t))
  2040. }
  2041. function lw(r, t, e, n, i) {
  2042. var a = r - 2 * t + e,
  2043. o = 2 * (t - r),
  2044. s = r - n,
  2045. l = 0
  2046. if (wr(a)) {
  2047. if (dc(o)) {
  2048. var u = -s / o
  2049. u >= 0 && u <= 1 && (i[l++] = u)
  2050. }
  2051. } else {
  2052. var f = o * o - 4 * a * s
  2053. if (wr(f)) {
  2054. var u = -o / (2 * a)
  2055. u >= 0 && u <= 1 && (i[l++] = u)
  2056. } else if (f > 0) {
  2057. var h = xr(f),
  2058. u = (-o + h) / (2 * a),
  2059. c = (-o - h) / (2 * a)
  2060. u >= 0 && u <= 1 && (i[l++] = u), c >= 0 && c <= 1 && (i[l++] = c)
  2061. }
  2062. }
  2063. return l
  2064. }
  2065. function _c(r, t, e) {
  2066. var n = r + e - 2 * t
  2067. return n === 0 ? 0.5 : (r - t) / n
  2068. }
  2069. function go(r, t, e, n, i) {
  2070. var a = (t - r) * n + r,
  2071. o = (e - t) * n + t,
  2072. s = (o - a) * n + a
  2073. ;(i[0] = r), (i[1] = a), (i[2] = s), (i[3] = s), (i[4] = o), (i[5] = e)
  2074. }
  2075. function Sc(r, t, e, n, i, a, o, s, l) {
  2076. var u,
  2077. f = 0.005,
  2078. h = 1 / 0
  2079. ;(He[0] = o), (He[1] = s)
  2080. for (var c = 0; c < 1; c += 0.05) {
  2081. ;(ve[0] = Gt(r, e, i, c)), (ve[1] = Gt(t, n, a, c))
  2082. var v = Fn(He, ve)
  2083. v < h && ((u = c), (h = v))
  2084. }
  2085. h = 1 / 0
  2086. for (var d = 0; d < 32 && !(f < vc); d++) {
  2087. var p = u - f,
  2088. g = u + f
  2089. ;(ve[0] = Gt(r, e, i, p)), (ve[1] = Gt(t, n, a, p))
  2090. var v = Fn(ve, He)
  2091. if (p >= 0 && v < h) (u = p), (h = v)
  2092. else {
  2093. ;(Un[0] = Gt(r, e, i, g)), (Un[1] = Gt(t, n, a, g))
  2094. var m = Fn(Un, He)
  2095. g <= 1 && m < h ? ((u = g), (h = m)) : (f *= 0.5)
  2096. }
  2097. }
  2098. return l && ((l[0] = Gt(r, e, i, u)), (l[1] = Gt(t, n, a, u))), xr(h)
  2099. }
  2100. function uw(r, t, e, n, i, a, o) {
  2101. for (var s = r, l = t, u = 0, f = 1 / o, h = 1; h <= o; h++) {
  2102. var c = h * f,
  2103. v = Gt(r, e, i, c),
  2104. d = Gt(t, n, a, c),
  2105. p = v - s,
  2106. g = d - l
  2107. ;(u += Math.sqrt(p * p + g * g)), (s = v), (l = d)
  2108. }
  2109. return u
  2110. }
  2111. var fw = /cubic-bezier\(([0-9,\.e ]+)\)/
  2112. function xc(r) {
  2113. var t = r && fw.exec(r)
  2114. if (t) {
  2115. var e = t[1].split(','),
  2116. n = +Ge(e[0]),
  2117. i = +Ge(e[1]),
  2118. a = +Ge(e[2]),
  2119. o = +Ge(e[3])
  2120. if (isNaN(n + i + a + o)) return
  2121. var s = []
  2122. return function (l) {
  2123. return l <= 0
  2124. ? 0
  2125. : l >= 1
  2126. ? 1
  2127. : po(0, n, a, 1, l, s) && Rt(0, i, o, 1, s[0])
  2128. }
  2129. }
  2130. }
  2131. var hw = (function () {
  2132. function r(t) {
  2133. ;(this._inited = !1),
  2134. (this._startTime = 0),
  2135. (this._pausedTime = 0),
  2136. (this._paused = !1),
  2137. (this._life = t.life || 1e3),
  2138. (this._delay = t.delay || 0),
  2139. (this.loop = t.loop || !1),
  2140. (this.onframe = t.onframe || $t),
  2141. (this.ondestroy = t.ondestroy || $t),
  2142. (this.onrestart = t.onrestart || $t),
  2143. t.easing && this.setEasing(t.easing)
  2144. }
  2145. return (
  2146. (r.prototype.step = function (t, e) {
  2147. if (
  2148. (this._inited ||
  2149. ((this._startTime = t + this._delay), (this._inited = !0)),
  2150. this._paused)
  2151. ) {
  2152. this._pausedTime += e
  2153. return
  2154. }
  2155. var n = this._life,
  2156. i = t - this._startTime - this._pausedTime,
  2157. a = i / n
  2158. a < 0 && (a = 0), (a = Math.min(a, 1))
  2159. var o = this.easingFunc,
  2160. s = o ? o(a) : a
  2161. if ((this.onframe(s), a === 1))
  2162. if (this.loop) {
  2163. var l = i % n
  2164. ;(this._startTime = t - l), (this._pausedTime = 0), this.onrestart()
  2165. } else return !0
  2166. return !1
  2167. }),
  2168. (r.prototype.pause = function () {
  2169. this._paused = !0
  2170. }),
  2171. (r.prototype.resume = function () {
  2172. this._paused = !1
  2173. }),
  2174. (r.prototype.setEasing = function (t) {
  2175. ;(this.easing = t), (this.easingFunc = Q(t) ? t : hc[t] || xc(t))
  2176. }),
  2177. r
  2178. )
  2179. })(),
  2180. vw = hw,
  2181. wc = (function () {
  2182. function r(t) {
  2183. this.value = t
  2184. }
  2185. return r
  2186. })(),
  2187. cw = (function () {
  2188. function r() {
  2189. this._len = 0
  2190. }
  2191. return (
  2192. (r.prototype.insert = function (t) {
  2193. var e = new wc(t)
  2194. return this.insertEntry(e), e
  2195. }),
  2196. (r.prototype.insertEntry = function (t) {
  2197. this.head
  2198. ? ((this.tail.next = t),
  2199. (t.prev = this.tail),
  2200. (t.next = null),
  2201. (this.tail = t))
  2202. : (this.head = this.tail = t),
  2203. this._len++
  2204. }),
  2205. (r.prototype.remove = function (t) {
  2206. var e = t.prev,
  2207. n = t.next
  2208. e ? (e.next = n) : (this.head = n),
  2209. n ? (n.prev = e) : (this.tail = e),
  2210. (t.next = t.prev = null),
  2211. this._len--
  2212. }),
  2213. (r.prototype.len = function () {
  2214. return this._len
  2215. }),
  2216. (r.prototype.clear = function () {
  2217. ;(this.head = this.tail = null), (this._len = 0)
  2218. }),
  2219. r
  2220. )
  2221. })(),
  2222. dw = (function () {
  2223. function r(t) {
  2224. ;(this._list = new cw()),
  2225. (this._maxSize = 10),
  2226. (this._map = {}),
  2227. (this._maxSize = t)
  2228. }
  2229. return (
  2230. (r.prototype.put = function (t, e) {
  2231. var n = this._list,
  2232. i = this._map,
  2233. a = null
  2234. if (i[t] == null) {
  2235. var o = n.len(),
  2236. s = this._lastRemovedEntry
  2237. if (o >= this._maxSize && o > 0) {
  2238. var l = n.head
  2239. n.remove(l),
  2240. delete i[l.key],
  2241. (a = l.value),
  2242. (this._lastRemovedEntry = l)
  2243. }
  2244. s ? (s.value = e) : (s = new wc(e)),
  2245. (s.key = t),
  2246. n.insertEntry(s),
  2247. (i[t] = s)
  2248. }
  2249. return a
  2250. }),
  2251. (r.prototype.get = function (t) {
  2252. var e = this._map[t],
  2253. n = this._list
  2254. if (e != null)
  2255. return e !== n.tail && (n.remove(e), n.insertEntry(e)), e.value
  2256. }),
  2257. (r.prototype.clear = function () {
  2258. this._list.clear(), (this._map = {})
  2259. }),
  2260. (r.prototype.len = function () {
  2261. return this._list.len()
  2262. }),
  2263. r
  2264. )
  2265. })(),
  2266. zi = dw,
  2267. bc = {
  2268. transparent: [0, 0, 0, 0],
  2269. aliceblue: [240, 248, 255, 1],
  2270. antiquewhite: [250, 235, 215, 1],
  2271. aqua: [0, 255, 255, 1],
  2272. aquamarine: [127, 255, 212, 1],
  2273. azure: [240, 255, 255, 1],
  2274. beige: [245, 245, 220, 1],
  2275. bisque: [255, 228, 196, 1],
  2276. black: [0, 0, 0, 1],
  2277. blanchedalmond: [255, 235, 205, 1],
  2278. blue: [0, 0, 255, 1],
  2279. blueviolet: [138, 43, 226, 1],
  2280. brown: [165, 42, 42, 1],
  2281. burlywood: [222, 184, 135, 1],
  2282. cadetblue: [95, 158, 160, 1],
  2283. chartreuse: [127, 255, 0, 1],
  2284. chocolate: [210, 105, 30, 1],
  2285. coral: [255, 127, 80, 1],
  2286. cornflowerblue: [100, 149, 237, 1],
  2287. cornsilk: [255, 248, 220, 1],
  2288. crimson: [220, 20, 60, 1],
  2289. cyan: [0, 255, 255, 1],
  2290. darkblue: [0, 0, 139, 1],
  2291. darkcyan: [0, 139, 139, 1],
  2292. darkgoldenrod: [184, 134, 11, 1],
  2293. darkgray: [169, 169, 169, 1],
  2294. darkgreen: [0, 100, 0, 1],
  2295. darkgrey: [169, 169, 169, 1],
  2296. darkkhaki: [189, 183, 107, 1],
  2297. darkmagenta: [139, 0, 139, 1],
  2298. darkolivegreen: [85, 107, 47, 1],
  2299. darkorange: [255, 140, 0, 1],
  2300. darkorchid: [153, 50, 204, 1],
  2301. darkred: [139, 0, 0, 1],
  2302. darksalmon: [233, 150, 122, 1],
  2303. darkseagreen: [143, 188, 143, 1],
  2304. darkslateblue: [72, 61, 139, 1],
  2305. darkslategray: [47, 79, 79, 1],
  2306. darkslategrey: [47, 79, 79, 1],
  2307. darkturquoise: [0, 206, 209, 1],
  2308. darkviolet: [148, 0, 211, 1],
  2309. deeppink: [255, 20, 147, 1],
  2310. deepskyblue: [0, 191, 255, 1],
  2311. dimgray: [105, 105, 105, 1],
  2312. dimgrey: [105, 105, 105, 1],
  2313. dodgerblue: [30, 144, 255, 1],
  2314. firebrick: [178, 34, 34, 1],
  2315. floralwhite: [255, 250, 240, 1],
  2316. forestgreen: [34, 139, 34, 1],
  2317. fuchsia: [255, 0, 255, 1],
  2318. gainsboro: [220, 220, 220, 1],
  2319. ghostwhite: [248, 248, 255, 1],
  2320. gold: [255, 215, 0, 1],
  2321. goldenrod: [218, 165, 32, 1],
  2322. gray: [128, 128, 128, 1],
  2323. green: [0, 128, 0, 1],
  2324. greenyellow: [173, 255, 47, 1],
  2325. grey: [128, 128, 128, 1],
  2326. honeydew: [240, 255, 240, 1],
  2327. hotpink: [255, 105, 180, 1],
  2328. indianred: [205, 92, 92, 1],
  2329. indigo: [75, 0, 130, 1],
  2330. ivory: [255, 255, 240, 1],
  2331. khaki: [240, 230, 140, 1],
  2332. lavender: [230, 230, 250, 1],
  2333. lavenderblush: [255, 240, 245, 1],
  2334. lawngreen: [124, 252, 0, 1],
  2335. lemonchiffon: [255, 250, 205, 1],
  2336. lightblue: [173, 216, 230, 1],
  2337. lightcoral: [240, 128, 128, 1],
  2338. lightcyan: [224, 255, 255, 1],
  2339. lightgoldenrodyellow: [250, 250, 210, 1],
  2340. lightgray: [211, 211, 211, 1],
  2341. lightgreen: [144, 238, 144, 1],
  2342. lightgrey: [211, 211, 211, 1],
  2343. lightpink: [255, 182, 193, 1],
  2344. lightsalmon: [255, 160, 122, 1],
  2345. lightseagreen: [32, 178, 170, 1],
  2346. lightskyblue: [135, 206, 250, 1],
  2347. lightslategray: [119, 136, 153, 1],
  2348. lightslategrey: [119, 136, 153, 1],
  2349. lightsteelblue: [176, 196, 222, 1],
  2350. lightyellow: [255, 255, 224, 1],
  2351. lime: [0, 255, 0, 1],
  2352. limegreen: [50, 205, 50, 1],
  2353. linen: [250, 240, 230, 1],
  2354. magenta: [255, 0, 255, 1],
  2355. maroon: [128, 0, 0, 1],
  2356. mediumaquamarine: [102, 205, 170, 1],
  2357. mediumblue: [0, 0, 205, 1],
  2358. mediumorchid: [186, 85, 211, 1],
  2359. mediumpurple: [147, 112, 219, 1],
  2360. mediumseagreen: [60, 179, 113, 1],
  2361. mediumslateblue: [123, 104, 238, 1],
  2362. mediumspringgreen: [0, 250, 154, 1],
  2363. mediumturquoise: [72, 209, 204, 1],
  2364. mediumvioletred: [199, 21, 133, 1],
  2365. midnightblue: [25, 25, 112, 1],
  2366. mintcream: [245, 255, 250, 1],
  2367. mistyrose: [255, 228, 225, 1],
  2368. moccasin: [255, 228, 181, 1],
  2369. navajowhite: [255, 222, 173, 1],
  2370. navy: [0, 0, 128, 1],
  2371. oldlace: [253, 245, 230, 1],
  2372. olive: [128, 128, 0, 1],
  2373. olivedrab: [107, 142, 35, 1],
  2374. orange: [255, 165, 0, 1],
  2375. orangered: [255, 69, 0, 1],
  2376. orchid: [218, 112, 214, 1],
  2377. palegoldenrod: [238, 232, 170, 1],
  2378. palegreen: [152, 251, 152, 1],
  2379. paleturquoise: [175, 238, 238, 1],
  2380. palevioletred: [219, 112, 147, 1],
  2381. papayawhip: [255, 239, 213, 1],
  2382. peachpuff: [255, 218, 185, 1],
  2383. peru: [205, 133, 63, 1],
  2384. pink: [255, 192, 203, 1],
  2385. plum: [221, 160, 221, 1],
  2386. powderblue: [176, 224, 230, 1],
  2387. purple: [128, 0, 128, 1],
  2388. red: [255, 0, 0, 1],
  2389. rosybrown: [188, 143, 143, 1],
  2390. royalblue: [65, 105, 225, 1],
  2391. saddlebrown: [139, 69, 19, 1],
  2392. salmon: [250, 128, 114, 1],
  2393. sandybrown: [244, 164, 96, 1],
  2394. seagreen: [46, 139, 87, 1],
  2395. seashell: [255, 245, 238, 1],
  2396. sienna: [160, 82, 45, 1],
  2397. silver: [192, 192, 192, 1],
  2398. skyblue: [135, 206, 235, 1],
  2399. slateblue: [106, 90, 205, 1],
  2400. slategray: [112, 128, 144, 1],
  2401. slategrey: [112, 128, 144, 1],
  2402. snow: [255, 250, 250, 1],
  2403. springgreen: [0, 255, 127, 1],
  2404. steelblue: [70, 130, 180, 1],
  2405. tan: [210, 180, 140, 1],
  2406. teal: [0, 128, 128, 1],
  2407. thistle: [216, 191, 216, 1],
  2408. tomato: [255, 99, 71, 1],
  2409. turquoise: [64, 224, 208, 1],
  2410. violet: [238, 130, 238, 1],
  2411. wheat: [245, 222, 179, 1],
  2412. white: [255, 255, 255, 1],
  2413. whitesmoke: [245, 245, 245, 1],
  2414. yellow: [255, 255, 0, 1],
  2415. yellowgreen: [154, 205, 50, 1]
  2416. }
  2417. function Tr(r) {
  2418. return (r = Math.round(r)), r < 0 ? 0 : r > 255 ? 255 : r
  2419. }
  2420. function ql(r) {
  2421. return r < 0 ? 0 : r > 1 ? 1 : r
  2422. }
  2423. function Kl(r) {
  2424. var t = r
  2425. return t.length && t.charAt(t.length - 1) === '%'
  2426. ? Tr((parseFloat(t) / 100) * 255)
  2427. : Tr(parseInt(t, 10))
  2428. }
  2429. function mo(r) {
  2430. var t = r
  2431. return t.length && t.charAt(t.length - 1) === '%'
  2432. ? ql(parseFloat(t) / 100)
  2433. : ql(parseFloat(t))
  2434. }
  2435. function Ql(r, t, e) {
  2436. return (
  2437. e < 0 ? (e += 1) : e > 1 && (e -= 1),
  2438. e * 6 < 1
  2439. ? r + (t - r) * e * 6
  2440. : e * 2 < 1
  2441. ? t
  2442. : e * 3 < 2
  2443. ? r + (t - r) * (2 / 3 - e) * 6
  2444. : r
  2445. )
  2446. }
  2447. function yo(r, t, e) {
  2448. return r + (t - r) * e
  2449. }
  2450. function ce(r, t, e, n, i) {
  2451. return (r[0] = t), (r[1] = e), (r[2] = n), (r[3] = i), r
  2452. }
  2453. function Jl(r, t) {
  2454. return (r[0] = t[0]), (r[1] = t[1]), (r[2] = t[2]), (r[3] = t[3]), r
  2455. }
  2456. var Tc = new zi(20),
  2457. _o = null
  2458. function Yn(r, t) {
  2459. _o && Jl(_o, t), (_o = Tc.put(r, _o || t.slice()))
  2460. }
  2461. function ir(r, t) {
  2462. if (!!r) {
  2463. t = t || []
  2464. var e = Tc.get(r)
  2465. if (e) return Jl(t, e)
  2466. r = r + ''
  2467. var n = r.replace(/ /g, '').toLowerCase()
  2468. if (n in bc) return Jl(t, bc[n]), Yn(r, t), t
  2469. var i = n.length
  2470. if (n.charAt(0) === '#') {
  2471. if (i === 4 || i === 5) {
  2472. var a = parseInt(n.slice(1, 4), 16)
  2473. if (!(a >= 0 && a <= 4095)) {
  2474. ce(t, 0, 0, 0, 1)
  2475. return
  2476. }
  2477. return (
  2478. ce(
  2479. t,
  2480. ((a & 3840) >> 4) | ((a & 3840) >> 8),
  2481. (a & 240) | ((a & 240) >> 4),
  2482. (a & 15) | ((a & 15) << 4),
  2483. i === 5 ? parseInt(n.slice(4), 16) / 15 : 1
  2484. ),
  2485. Yn(r, t),
  2486. t
  2487. )
  2488. } else if (i === 7 || i === 9) {
  2489. var a = parseInt(n.slice(1, 7), 16)
  2490. if (!(a >= 0 && a <= 16777215)) {
  2491. ce(t, 0, 0, 0, 1)
  2492. return
  2493. }
  2494. return (
  2495. ce(
  2496. t,
  2497. (a & 16711680) >> 16,
  2498. (a & 65280) >> 8,
  2499. a & 255,
  2500. i === 9 ? parseInt(n.slice(7), 16) / 255 : 1
  2501. ),
  2502. Yn(r, t),
  2503. t
  2504. )
  2505. }
  2506. return
  2507. }
  2508. var o = n.indexOf('('),
  2509. s = n.indexOf(')')
  2510. if (o !== -1 && s + 1 === i) {
  2511. var l = n.substr(0, o),
  2512. u = n.substr(o + 1, s - (o + 1)).split(','),
  2513. f = 1
  2514. switch (l) {
  2515. case 'rgba':
  2516. if (u.length !== 4)
  2517. return u.length === 3
  2518. ? ce(t, +u[0], +u[1], +u[2], 1)
  2519. : ce(t, 0, 0, 0, 1)
  2520. f = mo(u.pop())
  2521. case 'rgb':
  2522. if (u.length !== 3) {
  2523. ce(t, 0, 0, 0, 1)
  2524. return
  2525. }
  2526. return ce(t, Kl(u[0]), Kl(u[1]), Kl(u[2]), f), Yn(r, t), t
  2527. case 'hsla':
  2528. if (u.length !== 4) {
  2529. ce(t, 0, 0, 0, 1)
  2530. return
  2531. }
  2532. return (u[3] = mo(u[3])), Cc(u, t), Yn(r, t), t
  2533. case 'hsl':
  2534. if (u.length !== 3) {
  2535. ce(t, 0, 0, 0, 1)
  2536. return
  2537. }
  2538. return Cc(u, t), Yn(r, t), t
  2539. default:
  2540. return
  2541. }
  2542. }
  2543. ce(t, 0, 0, 0, 1)
  2544. }
  2545. }
  2546. function Cc(r, t) {
  2547. var e = (((parseFloat(r[0]) % 360) + 360) % 360) / 360,
  2548. n = mo(r[1]),
  2549. i = mo(r[2]),
  2550. a = i <= 0.5 ? i * (n + 1) : i + n - i * n,
  2551. o = i * 2 - a
  2552. return (
  2553. (t = t || []),
  2554. ce(
  2555. t,
  2556. Tr(Ql(o, a, e + 1 / 3) * 255),
  2557. Tr(Ql(o, a, e) * 255),
  2558. Tr(Ql(o, a, e - 1 / 3) * 255),
  2559. 1
  2560. ),
  2561. r.length === 4 && (t[3] = r[3]),
  2562. t
  2563. )
  2564. }
  2565. function Ac(r, t) {
  2566. var e = ir(r)
  2567. if (e) {
  2568. for (var n = 0; n < 3; n++)
  2569. t < 0
  2570. ? (e[n] = (e[n] * (1 - t)) | 0)
  2571. : (e[n] = ((255 - e[n]) * t + e[n]) | 0),
  2572. e[n] > 255 ? (e[n] = 255) : e[n] < 0 && (e[n] = 0)
  2573. return So(e, e.length === 4 ? 'rgba' : 'rgb')
  2574. }
  2575. }
  2576. function pw(r, t, e) {
  2577. if (!(!(t && t.length) || !(r >= 0 && r <= 1))) {
  2578. var n = r * (t.length - 1),
  2579. i = Math.floor(n),
  2580. a = Math.ceil(n),
  2581. o = ir(t[i]),
  2582. s = ir(t[a]),
  2583. l = n - i,
  2584. u = So(
  2585. [
  2586. Tr(yo(o[0], s[0], l)),
  2587. Tr(yo(o[1], s[1], l)),
  2588. Tr(yo(o[2], s[2], l)),
  2589. ql(yo(o[3], s[3], l))
  2590. ],
  2591. 'rgba'
  2592. )
  2593. return e ? { color: u, leftIndex: i, rightIndex: a, value: n } : u
  2594. }
  2595. }
  2596. function So(r, t) {
  2597. if (!(!r || !r.length)) {
  2598. var e = r[0] + ',' + r[1] + ',' + r[2]
  2599. return (
  2600. (t === 'rgba' || t === 'hsva' || t === 'hsla') && (e += ',' + r[3]),
  2601. t + '(' + e + ')'
  2602. )
  2603. }
  2604. }
  2605. function xo(r, t) {
  2606. var e = ir(r)
  2607. return e
  2608. ? ((0.299 * e[0] + 0.587 * e[1] + 0.114 * e[2]) * e[3]) / 255 +
  2609. (1 - e[3]) * t
  2610. : 0
  2611. }
  2612. function gw(r) {
  2613. return r.type === 'linear'
  2614. }
  2615. function mw(r) {
  2616. return r.type === 'radial'
  2617. }
  2618. ;(function () {
  2619. return at.hasGlobalWindow && Q(window.btoa)
  2620. ? function (r) {
  2621. return window.btoa(unescape(r))
  2622. }
  2623. : typeof Buffer != 'undefined'
  2624. ? function (r) {
  2625. return Buffer.from(r).toString('base64')
  2626. }
  2627. : function (r) {
  2628. return null
  2629. }
  2630. })()
  2631. var jl = Array.prototype.slice
  2632. function ar(r, t, e) {
  2633. return (t - r) * e + r
  2634. }
  2635. function tu(r, t, e, n) {
  2636. for (var i = t.length, a = 0; a < i; a++) r[a] = ar(t[a], e[a], n)
  2637. return r
  2638. }
  2639. function yw(r, t, e, n) {
  2640. for (var i = t.length, a = i && t[0].length, o = 0; o < i; o++) {
  2641. r[o] || (r[o] = [])
  2642. for (var s = 0; s < a; s++) r[o][s] = ar(t[o][s], e[o][s], n)
  2643. }
  2644. return r
  2645. }
  2646. function wo(r, t, e, n) {
  2647. for (var i = t.length, a = 0; a < i; a++) r[a] = t[a] + e[a] * n
  2648. return r
  2649. }
  2650. function Mc(r, t, e, n) {
  2651. for (var i = t.length, a = i && t[0].length, o = 0; o < i; o++) {
  2652. r[o] || (r[o] = [])
  2653. for (var s = 0; s < a; s++) r[o][s] = t[o][s] + e[o][s] * n
  2654. }
  2655. return r
  2656. }
  2657. function _w(r, t) {
  2658. for (
  2659. var e = r.length,
  2660. n = t.length,
  2661. i = e > n ? t : r,
  2662. a = Math.min(e, n),
  2663. o = i[a - 1] || { color: [0, 0, 0, 0], offset: 0 },
  2664. s = a;
  2665. s < Math.max(e, n);
  2666. s++
  2667. )
  2668. i.push({ offset: o.offset, color: o.color.slice() })
  2669. }
  2670. function Sw(r, t, e) {
  2671. var n = r,
  2672. i = t
  2673. if (!(!n.push || !i.push)) {
  2674. var a = n.length,
  2675. o = i.length
  2676. if (a !== o) {
  2677. var s = a > o
  2678. if (s) n.length = o
  2679. else for (var l = a; l < o; l++) n.push(e === 1 ? i[l] : jl.call(i[l]))
  2680. }
  2681. for (var u = n[0] && n[0].length, l = 0; l < n.length; l++)
  2682. if (e === 1) isNaN(n[l]) && (n[l] = i[l])
  2683. else for (var f = 0; f < u; f++) isNaN(n[l][f]) && (n[l][f] = i[l][f])
  2684. }
  2685. }
  2686. function bo(r) {
  2687. if (Zt(r)) {
  2688. var t = r.length
  2689. if (Zt(r[0])) {
  2690. for (var e = [], n = 0; n < t; n++) e.push(jl.call(r[n]))
  2691. return e
  2692. }
  2693. return jl.call(r)
  2694. }
  2695. return r
  2696. }
  2697. function To(r) {
  2698. return (
  2699. (r[0] = Math.floor(r[0]) || 0),
  2700. (r[1] = Math.floor(r[1]) || 0),
  2701. (r[2] = Math.floor(r[2]) || 0),
  2702. (r[3] = r[3] == null ? 1 : r[3]),
  2703. 'rgba(' + r.join(',') + ')'
  2704. )
  2705. }
  2706. function xw(r) {
  2707. return Zt(r && r[0]) ? 2 : 1
  2708. }
  2709. var Co = 0,
  2710. Ao = 1,
  2711. Dc = 2,
  2712. Vi = 3,
  2713. eu = 4,
  2714. ru = 5,
  2715. Ic = 6
  2716. function Lc(r) {
  2717. return r === eu || r === ru
  2718. }
  2719. function Mo(r) {
  2720. return r === Ao || r === Dc
  2721. }
  2722. var Gi = [0, 0, 0, 0],
  2723. ww = (function () {
  2724. function r(t) {
  2725. ;(this.keyframes = []),
  2726. (this.discrete = !1),
  2727. (this._invalid = !1),
  2728. (this._needsSort = !1),
  2729. (this._lastFr = 0),
  2730. (this._lastFrP = 0),
  2731. (this.propName = t)
  2732. }
  2733. return (
  2734. (r.prototype.isFinished = function () {
  2735. return this._finished
  2736. }),
  2737. (r.prototype.setFinished = function () {
  2738. ;(this._finished = !0),
  2739. this._additiveTrack && this._additiveTrack.setFinished()
  2740. }),
  2741. (r.prototype.needsAnimate = function () {
  2742. return this.keyframes.length >= 1
  2743. }),
  2744. (r.prototype.getAdditiveTrack = function () {
  2745. return this._additiveTrack
  2746. }),
  2747. (r.prototype.addKeyframe = function (t, e, n) {
  2748. this._needsSort = !0
  2749. var i = this.keyframes,
  2750. a = i.length,
  2751. o = !1,
  2752. s = Ic,
  2753. l = e
  2754. if (Zt(e)) {
  2755. var u = xw(e)
  2756. ;(s = u),
  2757. ((u === 1 && !dt(e[0])) || (u === 2 && !dt(e[0][0]))) && (o = !0)
  2758. } else if (dt(e) && !ao(e)) s = Co
  2759. else if (W(e))
  2760. if (!isNaN(+e)) s = Co
  2761. else {
  2762. var f = ir(e)
  2763. f && ((l = f), (s = Vi))
  2764. }
  2765. else if (io(e)) {
  2766. var h = N({}, l)
  2767. ;(h.colorStops = G(e.colorStops, function (v) {
  2768. return { offset: v.offset, color: ir(v.color) }
  2769. })),
  2770. gw(e) ? (s = eu) : mw(e) && (s = ru),
  2771. (l = h)
  2772. }
  2773. a === 0
  2774. ? (this.valType = s)
  2775. : (s !== this.valType || s === Ic) && (o = !0),
  2776. (this.discrete = this.discrete || o)
  2777. var c = { time: t, value: l, rawValue: e, percent: 0 }
  2778. return (
  2779. n && ((c.easing = n), (c.easingFunc = Q(n) ? n : hc[n] || xc(n))),
  2780. i.push(c),
  2781. c
  2782. )
  2783. }),
  2784. (r.prototype.prepare = function (t, e) {
  2785. var n = this.keyframes
  2786. this._needsSort &&
  2787. n.sort(function (p, g) {
  2788. return p.time - g.time
  2789. })
  2790. for (
  2791. var i = this.valType,
  2792. a = n.length,
  2793. o = n[a - 1],
  2794. s = this.discrete,
  2795. l = Mo(i),
  2796. u = Lc(i),
  2797. f = 0;
  2798. f < a;
  2799. f++
  2800. ) {
  2801. var h = n[f],
  2802. c = h.value,
  2803. v = o.value
  2804. ;(h.percent = h.time / t),
  2805. s ||
  2806. (l && f !== a - 1
  2807. ? Sw(c, v, i)
  2808. : u && _w(c.colorStops, v.colorStops))
  2809. }
  2810. if (
  2811. !s &&
  2812. i !== ru &&
  2813. e &&
  2814. this.needsAnimate() &&
  2815. e.needsAnimate() &&
  2816. i === e.valType &&
  2817. !e._finished
  2818. ) {
  2819. this._additiveTrack = e
  2820. for (var d = n[0].value, f = 0; f < a; f++)
  2821. i === Co
  2822. ? (n[f].additiveValue = n[f].value - d)
  2823. : i === Vi
  2824. ? (n[f].additiveValue = wo([], n[f].value, d, -1))
  2825. : Mo(i) &&
  2826. (n[f].additiveValue =
  2827. i === Ao
  2828. ? wo([], n[f].value, d, -1)
  2829. : Mc([], n[f].value, d, -1))
  2830. }
  2831. }),
  2832. (r.prototype.step = function (t, e) {
  2833. if (!this._finished) {
  2834. this._additiveTrack &&
  2835. this._additiveTrack._finished &&
  2836. (this._additiveTrack = null)
  2837. var n = this._additiveTrack != null,
  2838. i = n ? 'additiveValue' : 'value',
  2839. a = this.valType,
  2840. o = this.keyframes,
  2841. s = o.length,
  2842. l = this.propName,
  2843. u = a === Vi,
  2844. f,
  2845. h = this._lastFr,
  2846. c = Math.min,
  2847. v,
  2848. d
  2849. if (s === 1) v = d = o[0]
  2850. else {
  2851. if (e < 0) f = 0
  2852. else if (e < this._lastFrP) {
  2853. var p = c(h + 1, s - 1)
  2854. for (f = p; f >= 0 && !(o[f].percent <= e); f--);
  2855. f = c(f, s - 2)
  2856. } else {
  2857. for (f = h; f < s && !(o[f].percent > e); f++);
  2858. f = c(f - 1, s - 2)
  2859. }
  2860. ;(d = o[f + 1]), (v = o[f])
  2861. }
  2862. if (!!(v && d)) {
  2863. ;(this._lastFr = f), (this._lastFrP = e)
  2864. var g = d.percent - v.percent,
  2865. m = g === 0 ? 1 : c((e - v.percent) / g, 1)
  2866. d.easingFunc && (m = d.easingFunc(m))
  2867. var y = n ? this._additiveValue : u ? Gi : t[l]
  2868. if (
  2869. ((Mo(a) || u) && !y && (y = this._additiveValue = []),
  2870. this.discrete)
  2871. )
  2872. t[l] = m < 1 ? v.rawValue : d.rawValue
  2873. else if (Mo(a))
  2874. a === Ao ? tu(y, v[i], d[i], m) : yw(y, v[i], d[i], m)
  2875. else if (Lc(a)) {
  2876. var _ = v[i],
  2877. S = d[i],
  2878. w = a === eu
  2879. ;(t[l] = {
  2880. type: w ? 'linear' : 'radial',
  2881. x: ar(_.x, S.x, m),
  2882. y: ar(_.y, S.y, m),
  2883. colorStops: G(_.colorStops, function (b, T) {
  2884. var C = S.colorStops[T]
  2885. return {
  2886. offset: ar(b.offset, C.offset, m),
  2887. color: To(tu([], b.color, C.color, m))
  2888. }
  2889. }),
  2890. global: S.global
  2891. }),
  2892. w
  2893. ? ((t[l].x2 = ar(_.x2, S.x2, m)),
  2894. (t[l].y2 = ar(_.y2, S.y2, m)))
  2895. : (t[l].r = ar(_.r, S.r, m))
  2896. } else if (u) tu(y, v[i], d[i], m), n || (t[l] = To(y))
  2897. else {
  2898. var x = ar(v[i], d[i], m)
  2899. n ? (this._additiveValue = x) : (t[l] = x)
  2900. }
  2901. n && this._addToTarget(t)
  2902. }
  2903. }
  2904. }),
  2905. (r.prototype._addToTarget = function (t) {
  2906. var e = this.valType,
  2907. n = this.propName,
  2908. i = this._additiveValue
  2909. e === Co
  2910. ? (t[n] = t[n] + i)
  2911. : e === Vi
  2912. ? (ir(t[n], Gi), wo(Gi, Gi, i, 1), (t[n] = To(Gi)))
  2913. : e === Ao
  2914. ? wo(t[n], t[n], i, 1)
  2915. : e === Dc && Mc(t[n], t[n], i, 1)
  2916. }),
  2917. r
  2918. )
  2919. })(),
  2920. bw = (function () {
  2921. function r(t, e, n, i) {
  2922. if (
  2923. ((this._tracks = {}),
  2924. (this._trackKeys = []),
  2925. (this._maxTime = 0),
  2926. (this._started = 0),
  2927. (this._clip = null),
  2928. (this._target = t),
  2929. (this._loop = e),
  2930. e && i)
  2931. ) {
  2932. Pl("Can' use additive animation on looped animation.")
  2933. return
  2934. }
  2935. ;(this._additiveAnimators = i), (this._allowDiscrete = n)
  2936. }
  2937. return (
  2938. (r.prototype.getMaxTime = function () {
  2939. return this._maxTime
  2940. }),
  2941. (r.prototype.getDelay = function () {
  2942. return this._delay
  2943. }),
  2944. (r.prototype.getLoop = function () {
  2945. return this._loop
  2946. }),
  2947. (r.prototype.getTarget = function () {
  2948. return this._target
  2949. }),
  2950. (r.prototype.changeTarget = function (t) {
  2951. this._target = t
  2952. }),
  2953. (r.prototype.when = function (t, e, n) {
  2954. return this.whenWithKeys(t, e, xt(e), n)
  2955. }),
  2956. (r.prototype.whenWithKeys = function (t, e, n, i) {
  2957. for (var a = this._tracks, o = 0; o < n.length; o++) {
  2958. var s = n[o],
  2959. l = a[s]
  2960. if (!l) {
  2961. l = a[s] = new ww(s)
  2962. var u = void 0,
  2963. f = this._getAdditiveTrack(s)
  2964. if (f) {
  2965. var h = f.keyframes,
  2966. c = h[h.length - 1]
  2967. ;(u = c && c.value), f.valType === Vi && u && (u = To(u))
  2968. } else u = this._target[s]
  2969. if (u == null) continue
  2970. t > 0 && l.addKeyframe(0, bo(u), i), this._trackKeys.push(s)
  2971. }
  2972. l.addKeyframe(t, bo(e[s]), i)
  2973. }
  2974. return (this._maxTime = Math.max(this._maxTime, t)), this
  2975. }),
  2976. (r.prototype.pause = function () {
  2977. this._clip.pause(), (this._paused = !0)
  2978. }),
  2979. (r.prototype.resume = function () {
  2980. this._clip.resume(), (this._paused = !1)
  2981. }),
  2982. (r.prototype.isPaused = function () {
  2983. return !!this._paused
  2984. }),
  2985. (r.prototype.duration = function (t) {
  2986. return (this._maxTime = t), (this._force = !0), this
  2987. }),
  2988. (r.prototype._doneCallback = function () {
  2989. this._setTracksFinished(), (this._clip = null)
  2990. var t = this._doneCbs
  2991. if (t) for (var e = t.length, n = 0; n < e; n++) t[n].call(this)
  2992. }),
  2993. (r.prototype._abortedCallback = function () {
  2994. this._setTracksFinished()
  2995. var t = this.animation,
  2996. e = this._abortedCbs
  2997. if ((t && t.removeClip(this._clip), (this._clip = null), e))
  2998. for (var n = 0; n < e.length; n++) e[n].call(this)
  2999. }),
  3000. (r.prototype._setTracksFinished = function () {
  3001. for (
  3002. var t = this._tracks, e = this._trackKeys, n = 0;
  3003. n < e.length;
  3004. n++
  3005. )
  3006. t[e[n]].setFinished()
  3007. }),
  3008. (r.prototype._getAdditiveTrack = function (t) {
  3009. var e,
  3010. n = this._additiveAnimators
  3011. if (n)
  3012. for (var i = 0; i < n.length; i++) {
  3013. var a = n[i].getTrack(t)
  3014. a && (e = a)
  3015. }
  3016. return e
  3017. }),
  3018. (r.prototype.start = function (t) {
  3019. if (!(this._started > 0)) {
  3020. this._started = 1
  3021. for (
  3022. var e = this, n = [], i = this._maxTime || 0, a = 0;
  3023. a < this._trackKeys.length;
  3024. a++
  3025. ) {
  3026. var o = this._trackKeys[a],
  3027. s = this._tracks[o],
  3028. l = this._getAdditiveTrack(o),
  3029. u = s.keyframes,
  3030. f = u.length
  3031. if ((s.prepare(i, l), s.needsAnimate()))
  3032. if (!this._allowDiscrete && s.discrete) {
  3033. var h = u[f - 1]
  3034. h && (e._target[s.propName] = h.rawValue), s.setFinished()
  3035. } else n.push(s)
  3036. }
  3037. if (n.length || this._force) {
  3038. var c = new vw({
  3039. life: i,
  3040. loop: this._loop,
  3041. delay: this._delay || 0,
  3042. onframe: function (v) {
  3043. e._started = 2
  3044. var d = e._additiveAnimators
  3045. if (d) {
  3046. for (var p = !1, g = 0; g < d.length; g++)
  3047. if (d[g]._clip) {
  3048. p = !0
  3049. break
  3050. }
  3051. p || (e._additiveAnimators = null)
  3052. }
  3053. for (var g = 0; g < n.length; g++) n[g].step(e._target, v)
  3054. var m = e._onframeCbs
  3055. if (m) for (var g = 0; g < m.length; g++) m[g](e._target, v)
  3056. },
  3057. ondestroy: function () {
  3058. e._doneCallback()
  3059. }
  3060. })
  3061. ;(this._clip = c),
  3062. this.animation && this.animation.addClip(c),
  3063. t && c.setEasing(t)
  3064. } else this._doneCallback()
  3065. return this
  3066. }
  3067. }),
  3068. (r.prototype.stop = function (t) {
  3069. if (!!this._clip) {
  3070. var e = this._clip
  3071. t && e.onframe(1), this._abortedCallback()
  3072. }
  3073. }),
  3074. (r.prototype.delay = function (t) {
  3075. return (this._delay = t), this
  3076. }),
  3077. (r.prototype.during = function (t) {
  3078. return (
  3079. t &&
  3080. (this._onframeCbs || (this._onframeCbs = []),
  3081. this._onframeCbs.push(t)),
  3082. this
  3083. )
  3084. }),
  3085. (r.prototype.done = function (t) {
  3086. return (
  3087. t && (this._doneCbs || (this._doneCbs = []), this._doneCbs.push(t)),
  3088. this
  3089. )
  3090. }),
  3091. (r.prototype.aborted = function (t) {
  3092. return (
  3093. t &&
  3094. (this._abortedCbs || (this._abortedCbs = []),
  3095. this._abortedCbs.push(t)),
  3096. this
  3097. )
  3098. }),
  3099. (r.prototype.getClip = function () {
  3100. return this._clip
  3101. }),
  3102. (r.prototype.getTrack = function (t) {
  3103. return this._tracks[t]
  3104. }),
  3105. (r.prototype.getTracks = function () {
  3106. var t = this
  3107. return G(this._trackKeys, function (e) {
  3108. return t._tracks[e]
  3109. })
  3110. }),
  3111. (r.prototype.stopTracks = function (t, e) {
  3112. if (!t.length || !this._clip) return !0
  3113. for (
  3114. var n = this._tracks, i = this._trackKeys, a = 0;
  3115. a < t.length;
  3116. a++
  3117. ) {
  3118. var o = n[t[a]]
  3119. o &&
  3120. !o.isFinished() &&
  3121. (e
  3122. ? o.step(this._target, 1)
  3123. : this._started === 1 && o.step(this._target, 0),
  3124. o.setFinished())
  3125. }
  3126. for (var s = !0, a = 0; a < i.length; a++)
  3127. if (!n[i[a]].isFinished()) {
  3128. s = !1
  3129. break
  3130. }
  3131. return s && this._abortedCallback(), s
  3132. }),
  3133. (r.prototype.saveTo = function (t, e, n) {
  3134. if (!!t) {
  3135. e = e || this._trackKeys
  3136. for (var i = 0; i < e.length; i++) {
  3137. var a = e[i],
  3138. o = this._tracks[a]
  3139. if (!(!o || o.isFinished())) {
  3140. var s = o.keyframes,
  3141. l = s[n ? 0 : s.length - 1]
  3142. l && (t[a] = bo(l.rawValue))
  3143. }
  3144. }
  3145. }
  3146. }),
  3147. (r.prototype.__changeFinalValue = function (t, e) {
  3148. e = e || xt(t)
  3149. for (var n = 0; n < e.length; n++) {
  3150. var i = e[n],
  3151. a = this._tracks[i]
  3152. if (!!a) {
  3153. var o = a.keyframes
  3154. if (o.length > 1) {
  3155. var s = o.pop()
  3156. a.addKeyframe(s.time, t[i]),
  3157. a.prepare(this._maxTime, a.getAdditiveTrack())
  3158. }
  3159. }
  3160. }
  3161. }),
  3162. r
  3163. )
  3164. })(),
  3165. nu = bw
  3166. function Zn() {
  3167. return new Date().getTime()
  3168. }
  3169. var Tw = (function (r) {
  3170. B(t, r)
  3171. function t(e) {
  3172. var n = r.call(this) || this
  3173. return (
  3174. (n._running = !1),
  3175. (n._time = 0),
  3176. (n._pausedTime = 0),
  3177. (n._pauseStart = 0),
  3178. (n._paused = !1),
  3179. (e = e || {}),
  3180. (n.stage = e.stage || {}),
  3181. n
  3182. )
  3183. }
  3184. return (
  3185. (t.prototype.addClip = function (e) {
  3186. e.animation && this.removeClip(e),
  3187. this._head
  3188. ? ((this._tail.next = e),
  3189. (e.prev = this._tail),
  3190. (e.next = null),
  3191. (this._tail = e))
  3192. : (this._head = this._tail = e),
  3193. (e.animation = this)
  3194. }),
  3195. (t.prototype.addAnimator = function (e) {
  3196. e.animation = this
  3197. var n = e.getClip()
  3198. n && this.addClip(n)
  3199. }),
  3200. (t.prototype.removeClip = function (e) {
  3201. if (!!e.animation) {
  3202. var n = e.prev,
  3203. i = e.next
  3204. n ? (n.next = i) : (this._head = i),
  3205. i ? (i.prev = n) : (this._tail = n),
  3206. (e.next = e.prev = e.animation = null)
  3207. }
  3208. }),
  3209. (t.prototype.removeAnimator = function (e) {
  3210. var n = e.getClip()
  3211. n && this.removeClip(n), (e.animation = null)
  3212. }),
  3213. (t.prototype.update = function (e) {
  3214. for (
  3215. var n = Zn() - this._pausedTime, i = n - this._time, a = this._head;
  3216. a;
  3217. ) {
  3218. var o = a.next,
  3219. s = a.step(n, i)
  3220. s && (a.ondestroy(), this.removeClip(a)), (a = o)
  3221. }
  3222. ;(this._time = n),
  3223. e ||
  3224. (this.trigger('frame', i), this.stage.update && this.stage.update())
  3225. }),
  3226. (t.prototype._startLoop = function () {
  3227. var e = this
  3228. this._running = !0
  3229. function n() {
  3230. e._running && (Xl(n), !e._paused && e.update())
  3231. }
  3232. Xl(n)
  3233. }),
  3234. (t.prototype.start = function () {
  3235. this._running ||
  3236. ((this._time = Zn()), (this._pausedTime = 0), this._startLoop())
  3237. }),
  3238. (t.prototype.stop = function () {
  3239. this._running = !1
  3240. }),
  3241. (t.prototype.pause = function () {
  3242. this._paused || ((this._pauseStart = Zn()), (this._paused = !0))
  3243. }),
  3244. (t.prototype.resume = function () {
  3245. this._paused &&
  3246. ((this._pausedTime += Zn() - this._pauseStart), (this._paused = !1))
  3247. }),
  3248. (t.prototype.clear = function () {
  3249. for (var e = this._head; e; ) {
  3250. var n = e.next
  3251. ;(e.prev = e.next = e.animation = null), (e = n)
  3252. }
  3253. this._head = this._tail = null
  3254. }),
  3255. (t.prototype.isFinished = function () {
  3256. return this._head == null
  3257. }),
  3258. (t.prototype.animate = function (e, n) {
  3259. ;(n = n || {}), this.start()
  3260. var i = new nu(e, n.loop)
  3261. return this.addAnimator(i), i
  3262. }),
  3263. t
  3264. )
  3265. })(fe),
  3266. Cw = Tw,
  3267. Aw = 300,
  3268. iu = at.domSupported,
  3269. au = (function () {
  3270. var r = [
  3271. 'click',
  3272. 'dblclick',
  3273. 'mousewheel',
  3274. 'wheel',
  3275. 'mouseout',
  3276. 'mouseup',
  3277. 'mousedown',
  3278. 'mousemove',
  3279. 'contextmenu'
  3280. ],
  3281. t = ['touchstart', 'touchend', 'touchmove'],
  3282. e = { pointerdown: 1, pointerup: 1, pointermove: 1, pointerout: 1 },
  3283. n = G(r, function (i) {
  3284. var a = i.replace('mouse', 'pointer')
  3285. return e.hasOwnProperty(a) ? a : i
  3286. })
  3287. return { mouse: r, touch: t, pointer: n }
  3288. })(),
  3289. Pc = {
  3290. mouse: ['mousemove', 'mouseup'],
  3291. pointer: ['pointermove', 'pointerup']
  3292. },
  3293. Rc = !1
  3294. function ou(r) {
  3295. var t = r.pointerType
  3296. return t === 'pen' || t === 'touch'
  3297. }
  3298. function Mw(r) {
  3299. ;(r.touching = !0),
  3300. r.touchTimer != null && (clearTimeout(r.touchTimer), (r.touchTimer = null)),
  3301. (r.touchTimer = setTimeout(function () {
  3302. ;(r.touching = !1), (r.touchTimer = null)
  3303. }, 700))
  3304. }
  3305. function su(r) {
  3306. r && (r.zrByTouch = !0)
  3307. }
  3308. function Dw(r, t) {
  3309. return he(r.dom, new Iw(r, t), !0)
  3310. }
  3311. function Ec(r, t) {
  3312. for (
  3313. var e = t, n = !1;
  3314. e &&
  3315. e.nodeType !== 9 &&
  3316. !(n = e.domBelongToZr || (e !== t && e === r.painterRoot));
  3317. )
  3318. e = e.parentNode
  3319. return n
  3320. }
  3321. var Iw = (function () {
  3322. function r(t, e) {
  3323. ;(this.stopPropagation = $t),
  3324. (this.stopImmediatePropagation = $t),
  3325. (this.preventDefault = $t),
  3326. (this.type = e.type),
  3327. (this.target = this.currentTarget = t.dom),
  3328. (this.pointerType = e.pointerType),
  3329. (this.clientX = e.clientX),
  3330. (this.clientY = e.clientY)
  3331. }
  3332. return r
  3333. })(),
  3334. Me = {
  3335. mousedown: function (r) {
  3336. ;(r = he(this.dom, r)),
  3337. (this.__mayPointerCapture = [r.zrX, r.zrY]),
  3338. this.trigger('mousedown', r)
  3339. },
  3340. mousemove: function (r) {
  3341. r = he(this.dom, r)
  3342. var t = this.__mayPointerCapture
  3343. t &&
  3344. (r.zrX !== t[0] || r.zrY !== t[1]) &&
  3345. this.__togglePointerCapture(!0),
  3346. this.trigger('mousemove', r)
  3347. },
  3348. mouseup: function (r) {
  3349. ;(r = he(this.dom, r)),
  3350. this.__togglePointerCapture(!1),
  3351. this.trigger('mouseup', r)
  3352. },
  3353. mouseout: function (r) {
  3354. r = he(this.dom, r)
  3355. var t = r.toElement || r.relatedTarget
  3356. Ec(this, t) ||
  3357. (this.__pointerCapturing && (r.zrEventControl = 'no_globalout'),
  3358. this.trigger('mouseout', r))
  3359. },
  3360. wheel: function (r) {
  3361. ;(Rc = !0), (r = he(this.dom, r)), this.trigger('mousewheel', r)
  3362. },
  3363. mousewheel: function (r) {
  3364. Rc || ((r = he(this.dom, r)), this.trigger('mousewheel', r))
  3365. },
  3366. touchstart: function (r) {
  3367. ;(r = he(this.dom, r)),
  3368. su(r),
  3369. (this.__lastTouchMoment = new Date()),
  3370. this.handler.processGesture(r, 'start'),
  3371. Me.mousemove.call(this, r),
  3372. Me.mousedown.call(this, r)
  3373. },
  3374. touchmove: function (r) {
  3375. ;(r = he(this.dom, r)),
  3376. su(r),
  3377. this.handler.processGesture(r, 'change'),
  3378. Me.mousemove.call(this, r)
  3379. },
  3380. touchend: function (r) {
  3381. ;(r = he(this.dom, r)),
  3382. su(r),
  3383. this.handler.processGesture(r, 'end'),
  3384. Me.mouseup.call(this, r),
  3385. +new Date() - +this.__lastTouchMoment < Aw && Me.click.call(this, r)
  3386. },
  3387. pointerdown: function (r) {
  3388. Me.mousedown.call(this, r)
  3389. },
  3390. pointermove: function (r) {
  3391. ou(r) || Me.mousemove.call(this, r)
  3392. },
  3393. pointerup: function (r) {
  3394. Me.mouseup.call(this, r)
  3395. },
  3396. pointerout: function (r) {
  3397. ou(r) || Me.mouseout.call(this, r)
  3398. }
  3399. }
  3400. A(['click', 'dblclick', 'contextmenu'], function (r) {
  3401. Me[r] = function (t) {
  3402. ;(t = he(this.dom, t)), this.trigger(r, t)
  3403. }
  3404. })
  3405. var lu = {
  3406. pointermove: function (r) {
  3407. ou(r) || lu.mousemove.call(this, r)
  3408. },
  3409. pointerup: function (r) {
  3410. lu.mouseup.call(this, r)
  3411. },
  3412. mousemove: function (r) {
  3413. this.trigger('mousemove', r)
  3414. },
  3415. mouseup: function (r) {
  3416. var t = this.__pointerCapturing
  3417. this.__togglePointerCapture(!1),
  3418. this.trigger('mouseup', r),
  3419. t && ((r.zrEventControl = 'only_globalout'), this.trigger('mouseout', r))
  3420. }
  3421. }
  3422. function Lw(r, t) {
  3423. var e = t.domHandlers
  3424. at.pointerEventsSupported
  3425. ? A(au.pointer, function (n) {
  3426. Do(t, n, function (i) {
  3427. e[n].call(r, i)
  3428. })
  3429. })
  3430. : (at.touchEventsSupported &&
  3431. A(au.touch, function (n) {
  3432. Do(t, n, function (i) {
  3433. e[n].call(r, i), Mw(t)
  3434. })
  3435. }),
  3436. A(au.mouse, function (n) {
  3437. Do(t, n, function (i) {
  3438. ;(i = Hl(i)), t.touching || e[n].call(r, i)
  3439. })
  3440. }))
  3441. }
  3442. function Pw(r, t) {
  3443. at.pointerEventsSupported
  3444. ? A(Pc.pointer, e)
  3445. : at.touchEventsSupported || A(Pc.mouse, e)
  3446. function e(n) {
  3447. function i(a) {
  3448. ;(a = Hl(a)),
  3449. Ec(r, a.target) || ((a = Dw(r, a)), t.domHandlers[n].call(r, a))
  3450. }
  3451. Do(t, n, i, { capture: !0 })
  3452. }
  3453. }
  3454. function Do(r, t, e, n) {
  3455. ;(r.mounted[t] = e), (r.listenerOpts[t] = n), Wl(r.domTarget, t, e, n)
  3456. }
  3457. function uu(r) {
  3458. var t = r.mounted
  3459. for (var e in t)
  3460. t.hasOwnProperty(e) && $x(r.domTarget, e, t[e], r.listenerOpts[e])
  3461. r.mounted = {}
  3462. }
  3463. var Oc = (function () {
  3464. function r(t, e) {
  3465. ;(this.mounted = {}),
  3466. (this.listenerOpts = {}),
  3467. (this.touching = !1),
  3468. (this.domTarget = t),
  3469. (this.domHandlers = e)
  3470. }
  3471. return r
  3472. })(),
  3473. Rw = (function (r) {
  3474. B(t, r)
  3475. function t(e, n) {
  3476. var i = r.call(this) || this
  3477. return (
  3478. (i.__pointerCapturing = !1),
  3479. (i.dom = e),
  3480. (i.painterRoot = n),
  3481. (i._localHandlerScope = new Oc(e, Me)),
  3482. iu && (i._globalHandlerScope = new Oc(document, lu)),
  3483. Lw(i, i._localHandlerScope),
  3484. i
  3485. )
  3486. }
  3487. return (
  3488. (t.prototype.dispose = function () {
  3489. uu(this._localHandlerScope), iu && uu(this._globalHandlerScope)
  3490. }),
  3491. (t.prototype.setCursor = function (e) {
  3492. this.dom.style && (this.dom.style.cursor = e || 'default')
  3493. }),
  3494. (t.prototype.__togglePointerCapture = function (e) {
  3495. if (
  3496. ((this.__mayPointerCapture = null),
  3497. iu && +this.__pointerCapturing ^ +e)
  3498. ) {
  3499. this.__pointerCapturing = e
  3500. var n = this._globalHandlerScope
  3501. e ? Pw(this, n) : uu(n)
  3502. }
  3503. }),
  3504. t
  3505. )
  3506. })(fe),
  3507. Ew = Rw,
  3508. kc = 1
  3509. at.hasGlobalWindow &&
  3510. (kc = Math.max(
  3511. window.devicePixelRatio ||
  3512. (window.screen && window.screen.deviceXDPI / window.screen.logicalXDPI) ||
  3513. 1,
  3514. 1
  3515. ))
  3516. var Io = kc,
  3517. fu = 0.4,
  3518. hu = '#333',
  3519. vu = '#ccc',
  3520. Ow = '#eee'
  3521. function Hi() {
  3522. return [1, 0, 0, 1, 0, 0]
  3523. }
  3524. function cu(r) {
  3525. return (
  3526. (r[0] = 1), (r[1] = 0), (r[2] = 0), (r[3] = 1), (r[4] = 0), (r[5] = 0), r
  3527. )
  3528. }
  3529. function kw(r, t) {
  3530. return (
  3531. (r[0] = t[0]),
  3532. (r[1] = t[1]),
  3533. (r[2] = t[2]),
  3534. (r[3] = t[3]),
  3535. (r[4] = t[4]),
  3536. (r[5] = t[5]),
  3537. r
  3538. )
  3539. }
  3540. function $n(r, t, e) {
  3541. var n = t[0] * e[0] + t[2] * e[1],
  3542. i = t[1] * e[0] + t[3] * e[1],
  3543. a = t[0] * e[2] + t[2] * e[3],
  3544. o = t[1] * e[2] + t[3] * e[3],
  3545. s = t[0] * e[4] + t[2] * e[5] + t[4],
  3546. l = t[1] * e[4] + t[3] * e[5] + t[5]
  3547. return (
  3548. (r[0] = n), (r[1] = i), (r[2] = a), (r[3] = o), (r[4] = s), (r[5] = l), r
  3549. )
  3550. }
  3551. function du(r, t, e) {
  3552. return (
  3553. (r[0] = t[0]),
  3554. (r[1] = t[1]),
  3555. (r[2] = t[2]),
  3556. (r[3] = t[3]),
  3557. (r[4] = t[4] + e[0]),
  3558. (r[5] = t[5] + e[1]),
  3559. r
  3560. )
  3561. }
  3562. function pu(r, t, e) {
  3563. var n = t[0],
  3564. i = t[2],
  3565. a = t[4],
  3566. o = t[1],
  3567. s = t[3],
  3568. l = t[5],
  3569. u = Math.sin(e),
  3570. f = Math.cos(e)
  3571. return (
  3572. (r[0] = n * f + o * u),
  3573. (r[1] = -n * u + o * f),
  3574. (r[2] = i * f + s * u),
  3575. (r[3] = -i * u + f * s),
  3576. (r[4] = f * a + u * l),
  3577. (r[5] = f * l - u * a),
  3578. r
  3579. )
  3580. }
  3581. function Bw(r, t, e) {
  3582. var n = e[0],
  3583. i = e[1]
  3584. return (
  3585. (r[0] = t[0] * n),
  3586. (r[1] = t[1] * i),
  3587. (r[2] = t[2] * n),
  3588. (r[3] = t[3] * i),
  3589. (r[4] = t[4] * n),
  3590. (r[5] = t[5] * i),
  3591. r
  3592. )
  3593. }
  3594. function Lo(r, t) {
  3595. var e = t[0],
  3596. n = t[2],
  3597. i = t[4],
  3598. a = t[1],
  3599. o = t[3],
  3600. s = t[5],
  3601. l = e * o - a * n
  3602. return l
  3603. ? ((l = 1 / l),
  3604. (r[0] = o * l),
  3605. (r[1] = -a * l),
  3606. (r[2] = -n * l),
  3607. (r[3] = e * l),
  3608. (r[4] = (n * s - o * i) * l),
  3609. (r[5] = (a * i - e * s) * l),
  3610. r)
  3611. : null
  3612. }
  3613. var Bc = cu,
  3614. Nc = 5e-5
  3615. function Zr(r) {
  3616. return r > Nc || r < -Nc
  3617. }
  3618. var $r = [],
  3619. Xn = [],
  3620. gu = Hi(),
  3621. mu = Math.abs,
  3622. Wi = (function () {
  3623. function r() {}
  3624. return (
  3625. (r.prototype.getLocalTransform = function (t) {
  3626. return r.getLocalTransform(this, t)
  3627. }),
  3628. (r.prototype.setPosition = function (t) {
  3629. ;(this.x = t[0]), (this.y = t[1])
  3630. }),
  3631. (r.prototype.setScale = function (t) {
  3632. ;(this.scaleX = t[0]), (this.scaleY = t[1])
  3633. }),
  3634. (r.prototype.setSkew = function (t) {
  3635. ;(this.skewX = t[0]), (this.skewY = t[1])
  3636. }),
  3637. (r.prototype.setOrigin = function (t) {
  3638. ;(this.originX = t[0]), (this.originY = t[1])
  3639. }),
  3640. (r.prototype.needLocalTransform = function () {
  3641. return (
  3642. Zr(this.rotation) ||
  3643. Zr(this.x) ||
  3644. Zr(this.y) ||
  3645. Zr(this.scaleX - 1) ||
  3646. Zr(this.scaleY - 1) ||
  3647. Zr(this.skewX) ||
  3648. Zr(this.skewY)
  3649. )
  3650. }),
  3651. (r.prototype.updateTransform = function () {
  3652. var t = this.parent && this.parent.transform,
  3653. e = this.needLocalTransform(),
  3654. n = this.transform
  3655. if (!(e || t)) {
  3656. n && Bc(n)
  3657. return
  3658. }
  3659. ;(n = n || Hi()),
  3660. e ? this.getLocalTransform(n) : Bc(n),
  3661. t && (e ? $n(n, t, n) : kw(n, t)),
  3662. (this.transform = n),
  3663. this._resolveGlobalScaleRatio(n)
  3664. }),
  3665. (r.prototype._resolveGlobalScaleRatio = function (t) {
  3666. var e = this.globalScaleRatio
  3667. if (e != null && e !== 1) {
  3668. this.getGlobalScale($r)
  3669. var n = $r[0] < 0 ? -1 : 1,
  3670. i = $r[1] < 0 ? -1 : 1,
  3671. a = (($r[0] - n) * e + n) / $r[0] || 0,
  3672. o = (($r[1] - i) * e + i) / $r[1] || 0
  3673. ;(t[0] *= a), (t[1] *= a), (t[2] *= o), (t[3] *= o)
  3674. }
  3675. ;(this.invTransform = this.invTransform || Hi()),
  3676. Lo(this.invTransform, t)
  3677. }),
  3678. (r.prototype.getComputedTransform = function () {
  3679. for (var t = this, e = []; t; ) e.push(t), (t = t.parent)
  3680. for (; (t = e.pop()); ) t.updateTransform()
  3681. return this.transform
  3682. }),
  3683. (r.prototype.setLocalTransform = function (t) {
  3684. if (!!t) {
  3685. var e = t[0] * t[0] + t[1] * t[1],
  3686. n = t[2] * t[2] + t[3] * t[3],
  3687. i = Math.atan2(t[1], t[0]),
  3688. a = Math.PI / 2 + i - Math.atan2(t[3], t[2])
  3689. ;(n = Math.sqrt(n) * Math.cos(a)),
  3690. (e = Math.sqrt(e)),
  3691. (this.skewX = a),
  3692. (this.skewY = 0),
  3693. (this.rotation = -i),
  3694. (this.x = +t[4]),
  3695. (this.y = +t[5]),
  3696. (this.scaleX = e),
  3697. (this.scaleY = n),
  3698. (this.originX = 0),
  3699. (this.originY = 0)
  3700. }
  3701. }),
  3702. (r.prototype.decomposeTransform = function () {
  3703. if (!!this.transform) {
  3704. var t = this.parent,
  3705. e = this.transform
  3706. t && t.transform && ($n(Xn, t.invTransform, e), (e = Xn))
  3707. var n = this.originX,
  3708. i = this.originY
  3709. ;(n || i) &&
  3710. ((gu[4] = n),
  3711. (gu[5] = i),
  3712. $n(Xn, e, gu),
  3713. (Xn[4] -= n),
  3714. (Xn[5] -= i),
  3715. (e = Xn)),
  3716. this.setLocalTransform(e)
  3717. }
  3718. }),
  3719. (r.prototype.getGlobalScale = function (t) {
  3720. var e = this.transform
  3721. return (
  3722. (t = t || []),
  3723. e
  3724. ? ((t[0] = Math.sqrt(e[0] * e[0] + e[1] * e[1])),
  3725. (t[1] = Math.sqrt(e[2] * e[2] + e[3] * e[3])),
  3726. e[0] < 0 && (t[0] = -t[0]),
  3727. e[3] < 0 && (t[1] = -t[1]),
  3728. t)
  3729. : ((t[0] = 1), (t[1] = 1), t)
  3730. )
  3731. }),
  3732. (r.prototype.transformCoordToLocal = function (t, e) {
  3733. var n = [t, e],
  3734. i = this.invTransform
  3735. return i && ue(n, n, i), n
  3736. }),
  3737. (r.prototype.transformCoordToGlobal = function (t, e) {
  3738. var n = [t, e],
  3739. i = this.transform
  3740. return i && ue(n, n, i), n
  3741. }),
  3742. (r.prototype.getLineScale = function () {
  3743. var t = this.transform
  3744. return t && mu(t[0] - 1) > 1e-10 && mu(t[3] - 1) > 1e-10
  3745. ? Math.sqrt(mu(t[0] * t[3] - t[2] * t[1]))
  3746. : 1
  3747. }),
  3748. (r.prototype.copyTransform = function (t) {
  3749. Nw(this, t)
  3750. }),
  3751. (r.getLocalTransform = function (t, e) {
  3752. e = e || []
  3753. var n = t.originX || 0,
  3754. i = t.originY || 0,
  3755. a = t.scaleX,
  3756. o = t.scaleY,
  3757. s = t.anchorX,
  3758. l = t.anchorY,
  3759. u = t.rotation || 0,
  3760. f = t.x,
  3761. h = t.y,
  3762. c = t.skewX ? Math.tan(t.skewX) : 0,
  3763. v = t.skewY ? Math.tan(-t.skewY) : 0
  3764. if (n || i || s || l) {
  3765. var d = n + s,
  3766. p = i + l
  3767. ;(e[4] = -d * a - c * p * o), (e[5] = -p * o - v * d * a)
  3768. } else e[4] = e[5] = 0
  3769. return (
  3770. (e[0] = a),
  3771. (e[3] = o),
  3772. (e[1] = v * a),
  3773. (e[2] = c * o),
  3774. u && pu(e, e, u),
  3775. (e[4] += n + f),
  3776. (e[5] += i + h),
  3777. e
  3778. )
  3779. }),
  3780. (r.initDefaultProps = (function () {
  3781. var t = r.prototype
  3782. ;(t.scaleX = t.scaleY = t.globalScaleRatio = 1),
  3783. (t.x =
  3784. t.y =
  3785. t.originX =
  3786. t.originY =
  3787. t.skewX =
  3788. t.skewY =
  3789. t.rotation =
  3790. t.anchorX =
  3791. t.anchorY =
  3792. 0)
  3793. })()),
  3794. r
  3795. )
  3796. })(),
  3797. Ui = [
  3798. 'x',
  3799. 'y',
  3800. 'originX',
  3801. 'originY',
  3802. 'anchorX',
  3803. 'anchorY',
  3804. 'rotation',
  3805. 'scaleX',
  3806. 'scaleY',
  3807. 'skewX',
  3808. 'skewY'
  3809. ]
  3810. function Nw(r, t) {
  3811. for (var e = 0; e < Ui.length; e++) {
  3812. var n = Ui[e]
  3813. r[n] = t[n]
  3814. }
  3815. }
  3816. var Fw = (function () {
  3817. function r(t, e) {
  3818. ;(this.x = t || 0), (this.y = e || 0)
  3819. }
  3820. return (
  3821. (r.prototype.copy = function (t) {
  3822. return (this.x = t.x), (this.y = t.y), this
  3823. }),
  3824. (r.prototype.clone = function () {
  3825. return new r(this.x, this.y)
  3826. }),
  3827. (r.prototype.set = function (t, e) {
  3828. return (this.x = t), (this.y = e), this
  3829. }),
  3830. (r.prototype.equal = function (t) {
  3831. return t.x === this.x && t.y === this.y
  3832. }),
  3833. (r.prototype.add = function (t) {
  3834. return (this.x += t.x), (this.y += t.y), this
  3835. }),
  3836. (r.prototype.scale = function (t) {
  3837. ;(this.x *= t), (this.y *= t)
  3838. }),
  3839. (r.prototype.scaleAndAdd = function (t, e) {
  3840. ;(this.x += t.x * e), (this.y += t.y * e)
  3841. }),
  3842. (r.prototype.sub = function (t) {
  3843. return (this.x -= t.x), (this.y -= t.y), this
  3844. }),
  3845. (r.prototype.dot = function (t) {
  3846. return this.x * t.x + this.y * t.y
  3847. }),
  3848. (r.prototype.len = function () {
  3849. return Math.sqrt(this.x * this.x + this.y * this.y)
  3850. }),
  3851. (r.prototype.lenSquare = function () {
  3852. return this.x * this.x + this.y * this.y
  3853. }),
  3854. (r.prototype.normalize = function () {
  3855. var t = this.len()
  3856. return (this.x /= t), (this.y /= t), this
  3857. }),
  3858. (r.prototype.distance = function (t) {
  3859. var e = this.x - t.x,
  3860. n = this.y - t.y
  3861. return Math.sqrt(e * e + n * n)
  3862. }),
  3863. (r.prototype.distanceSquare = function (t) {
  3864. var e = this.x - t.x,
  3865. n = this.y - t.y
  3866. return e * e + n * n
  3867. }),
  3868. (r.prototype.negate = function () {
  3869. return (this.x = -this.x), (this.y = -this.y), this
  3870. }),
  3871. (r.prototype.transform = function (t) {
  3872. if (!!t) {
  3873. var e = this.x,
  3874. n = this.y
  3875. return (
  3876. (this.x = t[0] * e + t[2] * n + t[4]),
  3877. (this.y = t[1] * e + t[3] * n + t[5]),
  3878. this
  3879. )
  3880. }
  3881. }),
  3882. (r.prototype.toArray = function (t) {
  3883. return (t[0] = this.x), (t[1] = this.y), t
  3884. }),
  3885. (r.prototype.fromArray = function (t) {
  3886. ;(this.x = t[0]), (this.y = t[1])
  3887. }),
  3888. (r.set = function (t, e, n) {
  3889. ;(t.x = e), (t.y = n)
  3890. }),
  3891. (r.copy = function (t, e) {
  3892. ;(t.x = e.x), (t.y = e.y)
  3893. }),
  3894. (r.len = function (t) {
  3895. return Math.sqrt(t.x * t.x + t.y * t.y)
  3896. }),
  3897. (r.lenSquare = function (t) {
  3898. return t.x * t.x + t.y * t.y
  3899. }),
  3900. (r.dot = function (t, e) {
  3901. return t.x * e.x + t.y * e.y
  3902. }),
  3903. (r.add = function (t, e, n) {
  3904. ;(t.x = e.x + n.x), (t.y = e.y + n.y)
  3905. }),
  3906. (r.sub = function (t, e, n) {
  3907. ;(t.x = e.x - n.x), (t.y = e.y - n.y)
  3908. }),
  3909. (r.scale = function (t, e, n) {
  3910. ;(t.x = e.x * n), (t.y = e.y * n)
  3911. }),
  3912. (r.scaleAndAdd = function (t, e, n, i) {
  3913. ;(t.x = e.x + n.x * i), (t.y = e.y + n.y * i)
  3914. }),
  3915. (r.lerp = function (t, e, n, i) {
  3916. var a = 1 - i
  3917. ;(t.x = a * e.x + i * n.x), (t.y = a * e.y + i * n.y)
  3918. }),
  3919. r
  3920. )
  3921. })(),
  3922. Z = Fw,
  3923. Po = Math.min,
  3924. Ro = Math.max,
  3925. Xr = new Z(),
  3926. qr = new Z(),
  3927. Kr = new Z(),
  3928. Qr = new Z(),
  3929. Yi = new Z(),
  3930. Zi = new Z(),
  3931. zw = (function () {
  3932. function r(t, e, n, i) {
  3933. n < 0 && ((t = t + n), (n = -n)),
  3934. i < 0 && ((e = e + i), (i = -i)),
  3935. (this.x = t),
  3936. (this.y = e),
  3937. (this.width = n),
  3938. (this.height = i)
  3939. }
  3940. return (
  3941. (r.prototype.union = function (t) {
  3942. var e = Po(t.x, this.x),
  3943. n = Po(t.y, this.y)
  3944. isFinite(this.x) && isFinite(this.width)
  3945. ? (this.width = Ro(t.x + t.width, this.x + this.width) - e)
  3946. : (this.width = t.width),
  3947. isFinite(this.y) && isFinite(this.height)
  3948. ? (this.height = Ro(t.y + t.height, this.y + this.height) - n)
  3949. : (this.height = t.height),
  3950. (this.x = e),
  3951. (this.y = n)
  3952. }),
  3953. (r.prototype.applyTransform = function (t) {
  3954. r.applyTransform(this, this, t)
  3955. }),
  3956. (r.prototype.calculateTransform = function (t) {
  3957. var e = this,
  3958. n = t.width / e.width,
  3959. i = t.height / e.height,
  3960. a = Hi()
  3961. return du(a, a, [-e.x, -e.y]), Bw(a, a, [n, i]), du(a, a, [t.x, t.y]), a
  3962. }),
  3963. (r.prototype.intersect = function (t, e) {
  3964. if (!t) return !1
  3965. t instanceof r || (t = r.create(t))
  3966. var n = this,
  3967. i = n.x,
  3968. a = n.x + n.width,
  3969. o = n.y,
  3970. s = n.y + n.height,
  3971. l = t.x,
  3972. u = t.x + t.width,
  3973. f = t.y,
  3974. h = t.y + t.height,
  3975. c = !(a < l || u < i || s < f || h < o)
  3976. if (e) {
  3977. var v = 1 / 0,
  3978. d = 0,
  3979. p = Math.abs(a - l),
  3980. g = Math.abs(u - i),
  3981. m = Math.abs(s - f),
  3982. y = Math.abs(h - o),
  3983. _ = Math.min(p, g),
  3984. S = Math.min(m, y)
  3985. a < l || u < i
  3986. ? _ > d && ((d = _), p < g ? Z.set(Zi, -p, 0) : Z.set(Zi, g, 0))
  3987. : _ < v && ((v = _), p < g ? Z.set(Yi, p, 0) : Z.set(Yi, -g, 0)),
  3988. s < f || h < o
  3989. ? S > d && ((d = S), m < y ? Z.set(Zi, 0, -m) : Z.set(Zi, 0, y))
  3990. : _ < v && ((v = _), m < y ? Z.set(Yi, 0, m) : Z.set(Yi, 0, -y))
  3991. }
  3992. return e && Z.copy(e, c ? Yi : Zi), c
  3993. }),
  3994. (r.prototype.contain = function (t, e) {
  3995. var n = this
  3996. return t >= n.x && t <= n.x + n.width && e >= n.y && e <= n.y + n.height
  3997. }),
  3998. (r.prototype.clone = function () {
  3999. return new r(this.x, this.y, this.width, this.height)
  4000. }),
  4001. (r.prototype.copy = function (t) {
  4002. r.copy(this, t)
  4003. }),
  4004. (r.prototype.plain = function () {
  4005. return { x: this.x, y: this.y, width: this.width, height: this.height }
  4006. }),
  4007. (r.prototype.isFinite = function () {
  4008. return (
  4009. isFinite(this.x) &&
  4010. isFinite(this.y) &&
  4011. isFinite(this.width) &&
  4012. isFinite(this.height)
  4013. )
  4014. }),
  4015. (r.prototype.isZero = function () {
  4016. return this.width === 0 || this.height === 0
  4017. }),
  4018. (r.create = function (t) {
  4019. return new r(t.x, t.y, t.width, t.height)
  4020. }),
  4021. (r.copy = function (t, e) {
  4022. ;(t.x = e.x), (t.y = e.y), (t.width = e.width), (t.height = e.height)
  4023. }),
  4024. (r.applyTransform = function (t, e, n) {
  4025. if (!n) {
  4026. t !== e && r.copy(t, e)
  4027. return
  4028. }
  4029. if (n[1] < 1e-5 && n[1] > -1e-5 && n[2] < 1e-5 && n[2] > -1e-5) {
  4030. var i = n[0],
  4031. a = n[3],
  4032. o = n[4],
  4033. s = n[5]
  4034. ;(t.x = e.x * i + o),
  4035. (t.y = e.y * a + s),
  4036. (t.width = e.width * i),
  4037. (t.height = e.height * a),
  4038. t.width < 0 && ((t.x += t.width), (t.width = -t.width)),
  4039. t.height < 0 && ((t.y += t.height), (t.height = -t.height))
  4040. return
  4041. }
  4042. ;(Xr.x = Kr.x = e.x),
  4043. (Xr.y = Qr.y = e.y),
  4044. (qr.x = Qr.x = e.x + e.width),
  4045. (qr.y = Kr.y = e.y + e.height),
  4046. Xr.transform(n),
  4047. Qr.transform(n),
  4048. qr.transform(n),
  4049. Kr.transform(n),
  4050. (t.x = Po(Xr.x, qr.x, Kr.x, Qr.x)),
  4051. (t.y = Po(Xr.y, qr.y, Kr.y, Qr.y))
  4052. var l = Ro(Xr.x, qr.x, Kr.x, Qr.x),
  4053. u = Ro(Xr.y, qr.y, Kr.y, Qr.y)
  4054. ;(t.width = l - t.x), (t.height = u - t.y)
  4055. }),
  4056. r
  4057. )
  4058. })(),
  4059. vt = zw,
  4060. Fc = {}
  4061. function oe(r, t) {
  4062. t = t || Yr
  4063. var e = Fc[t]
  4064. e || (e = Fc[t] = new zi(500))
  4065. var n = e.get(r)
  4066. return n == null && ((n = kn.measureText(r, t).width), e.put(r, n)), n
  4067. }
  4068. function zc(r, t, e, n) {
  4069. var i = oe(r, t),
  4070. a = yu(t),
  4071. o = $i(0, i, e),
  4072. s = qn(0, a, n),
  4073. l = new vt(o, s, i, a)
  4074. return l
  4075. }
  4076. function Eo(r, t, e, n) {
  4077. var i = ((r || '') + '').split(`
  4078. `),
  4079. a = i.length
  4080. if (a === 1) return zc(i[0], t, e, n)
  4081. for (var o = new vt(0, 0, 0, 0), s = 0; s < i.length; s++) {
  4082. var l = zc(i[s], t, e, n)
  4083. s === 0 ? o.copy(l) : o.union(l)
  4084. }
  4085. return o
  4086. }
  4087. function $i(r, t, e) {
  4088. return e === 'right' ? (r -= t) : e === 'center' && (r -= t / 2), r
  4089. }
  4090. function qn(r, t, e) {
  4091. return e === 'middle' ? (r -= t / 2) : e === 'bottom' && (r -= t), r
  4092. }
  4093. function yu(r) {
  4094. return oe('\u56FD', r)
  4095. }
  4096. function Cr(r, t) {
  4097. return typeof r == 'string'
  4098. ? r.lastIndexOf('%') >= 0
  4099. ? (parseFloat(r) / 100) * t
  4100. : parseFloat(r)
  4101. : r
  4102. }
  4103. function Oo(r, t, e) {
  4104. var n = t.position || 'inside',
  4105. i = t.distance != null ? t.distance : 5,
  4106. a = e.height,
  4107. o = e.width,
  4108. s = a / 2,
  4109. l = e.x,
  4110. u = e.y,
  4111. f = 'left',
  4112. h = 'top'
  4113. if (n instanceof Array)
  4114. (l += Cr(n[0], e.width)), (u += Cr(n[1], e.height)), (f = null), (h = null)
  4115. else
  4116. switch (n) {
  4117. case 'left':
  4118. ;(l -= i), (u += s), (f = 'right'), (h = 'middle')
  4119. break
  4120. case 'right':
  4121. ;(l += i + o), (u += s), (h = 'middle')
  4122. break
  4123. case 'top':
  4124. ;(l += o / 2), (u -= i), (f = 'center'), (h = 'bottom')
  4125. break
  4126. case 'bottom':
  4127. ;(l += o / 2), (u += a + i), (f = 'center')
  4128. break
  4129. case 'inside':
  4130. ;(l += o / 2), (u += s), (f = 'center'), (h = 'middle')
  4131. break
  4132. case 'insideLeft':
  4133. ;(l += i), (u += s), (h = 'middle')
  4134. break
  4135. case 'insideRight':
  4136. ;(l += o - i), (u += s), (f = 'right'), (h = 'middle')
  4137. break
  4138. case 'insideTop':
  4139. ;(l += o / 2), (u += i), (f = 'center')
  4140. break
  4141. case 'insideBottom':
  4142. ;(l += o / 2), (u += a - i), (f = 'center'), (h = 'bottom')
  4143. break
  4144. case 'insideTopLeft':
  4145. ;(l += i), (u += i)
  4146. break
  4147. case 'insideTopRight':
  4148. ;(l += o - i), (u += i), (f = 'right')
  4149. break
  4150. case 'insideBottomLeft':
  4151. ;(l += i), (u += a - i), (h = 'bottom')
  4152. break
  4153. case 'insideBottomRight':
  4154. ;(l += o - i), (u += a - i), (f = 'right'), (h = 'bottom')
  4155. break
  4156. }
  4157. return (
  4158. (r = r || {}), (r.x = l), (r.y = u), (r.align = f), (r.verticalAlign = h), r
  4159. )
  4160. }
  4161. var _u = '__zr_normal__',
  4162. Su = Ui.concat(['ignore']),
  4163. Vw = Sr(
  4164. Ui,
  4165. function (r, t) {
  4166. return (r[t] = !0), r
  4167. },
  4168. { ignore: !1 }
  4169. ),
  4170. Kn = {},
  4171. Gw = new vt(0, 0, 0, 0),
  4172. xu = (function () {
  4173. function r(t) {
  4174. ;(this.id = Uv()),
  4175. (this.animators = []),
  4176. (this.currentStates = []),
  4177. (this.states = {}),
  4178. this._init(t)
  4179. }
  4180. return (
  4181. (r.prototype._init = function (t) {
  4182. this.attr(t)
  4183. }),
  4184. (r.prototype.drift = function (t, e, n) {
  4185. switch (this.draggable) {
  4186. case 'horizontal':
  4187. e = 0
  4188. break
  4189. case 'vertical':
  4190. t = 0
  4191. break
  4192. }
  4193. var i = this.transform
  4194. i || (i = this.transform = [1, 0, 0, 1, 0, 0]),
  4195. (i[4] += t),
  4196. (i[5] += e),
  4197. this.decomposeTransform(),
  4198. this.markRedraw()
  4199. }),
  4200. (r.prototype.beforeUpdate = function () {}),
  4201. (r.prototype.afterUpdate = function () {}),
  4202. (r.prototype.update = function () {
  4203. this.updateTransform(), this.__dirty && this.updateInnerText()
  4204. }),
  4205. (r.prototype.updateInnerText = function (t) {
  4206. var e = this._textContent
  4207. if (e && (!e.ignore || t)) {
  4208. this.textConfig || (this.textConfig = {})
  4209. var n = this.textConfig,
  4210. i = n.local,
  4211. a = e.innerTransformable,
  4212. o = void 0,
  4213. s = void 0,
  4214. l = !1
  4215. a.parent = i ? this : null
  4216. var u = !1
  4217. if ((a.copyTransform(e), n.position != null)) {
  4218. var f = Gw
  4219. n.layoutRect
  4220. ? f.copy(n.layoutRect)
  4221. : f.copy(this.getBoundingRect()),
  4222. i || f.applyTransform(this.transform),
  4223. this.calculateTextPosition
  4224. ? this.calculateTextPosition(Kn, n, f)
  4225. : Oo(Kn, n, f),
  4226. (a.x = Kn.x),
  4227. (a.y = Kn.y),
  4228. (o = Kn.align),
  4229. (s = Kn.verticalAlign)
  4230. var h = n.origin
  4231. if (h && n.rotation != null) {
  4232. var c = void 0,
  4233. v = void 0
  4234. h === 'center'
  4235. ? ((c = f.width * 0.5), (v = f.height * 0.5))
  4236. : ((c = Cr(h[0], f.width)), (v = Cr(h[1], f.height))),
  4237. (u = !0),
  4238. (a.originX = -a.x + c + (i ? 0 : f.x)),
  4239. (a.originY = -a.y + v + (i ? 0 : f.y))
  4240. }
  4241. }
  4242. n.rotation != null && (a.rotation = n.rotation)
  4243. var d = n.offset
  4244. d &&
  4245. ((a.x += d[0]),
  4246. (a.y += d[1]),
  4247. u || ((a.originX = -d[0]), (a.originY = -d[1])))
  4248. var p =
  4249. n.inside == null
  4250. ? typeof n.position == 'string' &&
  4251. n.position.indexOf('inside') >= 0
  4252. : n.inside,
  4253. g =
  4254. this._innerTextDefaultStyle || (this._innerTextDefaultStyle = {}),
  4255. m = void 0,
  4256. y = void 0,
  4257. _ = void 0
  4258. p && this.canBeInsideText()
  4259. ? ((m = n.insideFill),
  4260. (y = n.insideStroke),
  4261. (m == null || m === 'auto') && (m = this.getInsideTextFill()),
  4262. (y == null || y === 'auto') &&
  4263. ((y = this.getInsideTextStroke(m)), (_ = !0)))
  4264. : ((m = n.outsideFill),
  4265. (y = n.outsideStroke),
  4266. (m == null || m === 'auto') && (m = this.getOutsideFill()),
  4267. (y == null || y === 'auto') &&
  4268. ((y = this.getOutsideStroke(m)), (_ = !0))),
  4269. (m = m || '#000'),
  4270. (m !== g.fill ||
  4271. y !== g.stroke ||
  4272. _ !== g.autoStroke ||
  4273. o !== g.align ||
  4274. s !== g.verticalAlign) &&
  4275. ((l = !0),
  4276. (g.fill = m),
  4277. (g.stroke = y),
  4278. (g.autoStroke = _),
  4279. (g.align = o),
  4280. (g.verticalAlign = s),
  4281. e.setDefaultTextStyle(g)),
  4282. (e.__dirty |= ae),
  4283. l && e.dirtyStyle(!0)
  4284. }
  4285. }),
  4286. (r.prototype.canBeInsideText = function () {
  4287. return !0
  4288. }),
  4289. (r.prototype.getInsideTextFill = function () {
  4290. return '#fff'
  4291. }),
  4292. (r.prototype.getInsideTextStroke = function (t) {
  4293. return '#000'
  4294. }),
  4295. (r.prototype.getOutsideFill = function () {
  4296. return this.__zr && this.__zr.isDarkMode() ? vu : hu
  4297. }),
  4298. (r.prototype.getOutsideStroke = function (t) {
  4299. var e = this.__zr && this.__zr.getBackgroundColor(),
  4300. n = typeof e == 'string' && ir(e)
  4301. n || (n = [255, 255, 255, 1])
  4302. for (var i = n[3], a = this.__zr.isDarkMode(), o = 0; o < 3; o++)
  4303. n[o] = n[o] * i + (a ? 0 : 255) * (1 - i)
  4304. return (n[3] = 1), So(n, 'rgba')
  4305. }),
  4306. (r.prototype.traverse = function (t, e) {}),
  4307. (r.prototype.attrKV = function (t, e) {
  4308. t === 'textConfig'
  4309. ? this.setTextConfig(e)
  4310. : t === 'textContent'
  4311. ? this.setTextContent(e)
  4312. : t === 'clipPath'
  4313. ? this.setClipPath(e)
  4314. : t === 'extra'
  4315. ? ((this.extra = this.extra || {}), N(this.extra, e))
  4316. : (this[t] = e)
  4317. }),
  4318. (r.prototype.hide = function () {
  4319. ;(this.ignore = !0), this.markRedraw()
  4320. }),
  4321. (r.prototype.show = function () {
  4322. ;(this.ignore = !1), this.markRedraw()
  4323. }),
  4324. (r.prototype.attr = function (t, e) {
  4325. if (typeof t == 'string') this.attrKV(t, e)
  4326. else if (Y(t))
  4327. for (var n = t, i = xt(n), a = 0; a < i.length; a++) {
  4328. var o = i[a]
  4329. this.attrKV(o, t[o])
  4330. }
  4331. return this.markRedraw(), this
  4332. }),
  4333. (r.prototype.saveCurrentToNormalState = function (t) {
  4334. this._innerSaveToNormal(t)
  4335. for (var e = this._normalState, n = 0; n < this.animators.length; n++) {
  4336. var i = this.animators[n],
  4337. a = i.__fromStateTransition
  4338. if (!(i.getLoop() || (a && a !== _u))) {
  4339. var o = i.targetName,
  4340. s = o ? e[o] : e
  4341. i.saveTo(s)
  4342. }
  4343. }
  4344. }),
  4345. (r.prototype._innerSaveToNormal = function (t) {
  4346. var e = this._normalState
  4347. e || (e = this._normalState = {}),
  4348. t.textConfig && !e.textConfig && (e.textConfig = this.textConfig),
  4349. this._savePrimaryToNormal(t, e, Su)
  4350. }),
  4351. (r.prototype._savePrimaryToNormal = function (t, e, n) {
  4352. for (var i = 0; i < n.length; i++) {
  4353. var a = n[i]
  4354. t[a] != null && !(a in e) && (e[a] = this[a])
  4355. }
  4356. }),
  4357. (r.prototype.hasState = function () {
  4358. return this.currentStates.length > 0
  4359. }),
  4360. (r.prototype.getState = function (t) {
  4361. return this.states[t]
  4362. }),
  4363. (r.prototype.ensureState = function (t) {
  4364. var e = this.states
  4365. return e[t] || (e[t] = {}), e[t]
  4366. }),
  4367. (r.prototype.clearStates = function (t) {
  4368. this.useState(_u, !1, t)
  4369. }),
  4370. (r.prototype.useState = function (t, e, n, i) {
  4371. var a = t === _u,
  4372. o = this.hasState()
  4373. if (!(!o && a)) {
  4374. var s = this.currentStates,
  4375. l = this.stateTransition
  4376. if (!(ot(s, t) >= 0 && (e || s.length === 1))) {
  4377. var u
  4378. if (
  4379. (this.stateProxy && !a && (u = this.stateProxy(t)),
  4380. u || (u = this.states && this.states[t]),
  4381. !u && !a)
  4382. ) {
  4383. Pl('State ' + t + ' not exists.')
  4384. return
  4385. }
  4386. a || this.saveCurrentToNormalState(u)
  4387. var f = !!((u && u.hoverLayer) || i)
  4388. f && this._toggleHoverLayerFlag(!0),
  4389. this._applyStateObj(
  4390. t,
  4391. u,
  4392. this._normalState,
  4393. e,
  4394. !n && !this.__inHover && l && l.duration > 0,
  4395. l
  4396. )
  4397. var h = this._textContent,
  4398. c = this._textGuide
  4399. return (
  4400. h && h.useState(t, e, n, f),
  4401. c && c.useState(t, e, n, f),
  4402. a
  4403. ? ((this.currentStates = []), (this._normalState = {}))
  4404. : e
  4405. ? this.currentStates.push(t)
  4406. : (this.currentStates = [t]),
  4407. this._updateAnimationTargets(),
  4408. this.markRedraw(),
  4409. !f &&
  4410. this.__inHover &&
  4411. (this._toggleHoverLayerFlag(!1), (this.__dirty &= ~ae)),
  4412. u
  4413. )
  4414. }
  4415. }
  4416. }),
  4417. (r.prototype.useStates = function (t, e, n) {
  4418. if (!t.length) this.clearStates()
  4419. else {
  4420. var i = [],
  4421. a = this.currentStates,
  4422. o = t.length,
  4423. s = o === a.length
  4424. if (s) {
  4425. for (var l = 0; l < o; l++)
  4426. if (t[l] !== a[l]) {
  4427. s = !1
  4428. break
  4429. }
  4430. }
  4431. if (s) return
  4432. for (var l = 0; l < o; l++) {
  4433. var u = t[l],
  4434. f = void 0
  4435. this.stateProxy && (f = this.stateProxy(u, t)),
  4436. f || (f = this.states[u]),
  4437. f && i.push(f)
  4438. }
  4439. var h = i[o - 1],
  4440. c = !!((h && h.hoverLayer) || n)
  4441. c && this._toggleHoverLayerFlag(!0)
  4442. var v = this._mergeStates(i),
  4443. d = this.stateTransition
  4444. this.saveCurrentToNormalState(v),
  4445. this._applyStateObj(
  4446. t.join(','),
  4447. v,
  4448. this._normalState,
  4449. !1,
  4450. !e && !this.__inHover && d && d.duration > 0,
  4451. d
  4452. )
  4453. var p = this._textContent,
  4454. g = this._textGuide
  4455. p && p.useStates(t, e, c),
  4456. g && g.useStates(t, e, c),
  4457. this._updateAnimationTargets(),
  4458. (this.currentStates = t.slice()),
  4459. this.markRedraw(),
  4460. !c &&
  4461. this.__inHover &&
  4462. (this._toggleHoverLayerFlag(!1), (this.__dirty &= ~ae))
  4463. }
  4464. }),
  4465. (r.prototype._updateAnimationTargets = function () {
  4466. for (var t = 0; t < this.animators.length; t++) {
  4467. var e = this.animators[t]
  4468. e.targetName && e.changeTarget(this[e.targetName])
  4469. }
  4470. }),
  4471. (r.prototype.removeState = function (t) {
  4472. var e = ot(this.currentStates, t)
  4473. if (e >= 0) {
  4474. var n = this.currentStates.slice()
  4475. n.splice(e, 1), this.useStates(n)
  4476. }
  4477. }),
  4478. (r.prototype.replaceState = function (t, e, n) {
  4479. var i = this.currentStates.slice(),
  4480. a = ot(i, t),
  4481. o = ot(i, e) >= 0
  4482. a >= 0 ? (o ? i.splice(a, 1) : (i[a] = e)) : n && !o && i.push(e),
  4483. this.useStates(i)
  4484. }),
  4485. (r.prototype.toggleState = function (t, e) {
  4486. e ? this.useState(t, !0) : this.removeState(t)
  4487. }),
  4488. (r.prototype._mergeStates = function (t) {
  4489. for (var e = {}, n, i = 0; i < t.length; i++) {
  4490. var a = t[i]
  4491. N(e, a), a.textConfig && ((n = n || {}), N(n, a.textConfig))
  4492. }
  4493. return n && (e.textConfig = n), e
  4494. }),
  4495. (r.prototype._applyStateObj = function (t, e, n, i, a, o) {
  4496. var s = !(e && i)
  4497. e && e.textConfig
  4498. ? ((this.textConfig = N({}, i ? this.textConfig : n.textConfig)),
  4499. N(this.textConfig, e.textConfig))
  4500. : s && n.textConfig && (this.textConfig = n.textConfig)
  4501. for (var l = {}, u = !1, f = 0; f < Su.length; f++) {
  4502. var h = Su[f],
  4503. c = a && Vw[h]
  4504. e && e[h] != null
  4505. ? c
  4506. ? ((u = !0), (l[h] = e[h]))
  4507. : (this[h] = e[h])
  4508. : s &&
  4509. n[h] != null &&
  4510. (c ? ((u = !0), (l[h] = n[h])) : (this[h] = n[h]))
  4511. }
  4512. if (!a)
  4513. for (var f = 0; f < this.animators.length; f++) {
  4514. var v = this.animators[f],
  4515. d = v.targetName
  4516. v.getLoop() || v.__changeFinalValue(d ? (e || n)[d] : e || n)
  4517. }
  4518. u && this._transitionState(t, l, o)
  4519. }),
  4520. (r.prototype._attachComponent = function (t) {
  4521. if (!(t.__zr && !t.__hostTarget) && t !== this) {
  4522. var e = this.__zr
  4523. e && t.addSelfToZr(e), (t.__zr = e), (t.__hostTarget = this)
  4524. }
  4525. }),
  4526. (r.prototype._detachComponent = function (t) {
  4527. t.__zr && t.removeSelfFromZr(t.__zr),
  4528. (t.__zr = null),
  4529. (t.__hostTarget = null)
  4530. }),
  4531. (r.prototype.getClipPath = function () {
  4532. return this._clipPath
  4533. }),
  4534. (r.prototype.setClipPath = function (t) {
  4535. this._clipPath && this._clipPath !== t && this.removeClipPath(),
  4536. this._attachComponent(t),
  4537. (this._clipPath = t),
  4538. this.markRedraw()
  4539. }),
  4540. (r.prototype.removeClipPath = function () {
  4541. var t = this._clipPath
  4542. t &&
  4543. (this._detachComponent(t), (this._clipPath = null), this.markRedraw())
  4544. }),
  4545. (r.prototype.getTextContent = function () {
  4546. return this._textContent
  4547. }),
  4548. (r.prototype.setTextContent = function (t) {
  4549. var e = this._textContent
  4550. e !== t &&
  4551. (e && e !== t && this.removeTextContent(),
  4552. (t.innerTransformable = new Wi()),
  4553. this._attachComponent(t),
  4554. (this._textContent = t),
  4555. this.markRedraw())
  4556. }),
  4557. (r.prototype.setTextConfig = function (t) {
  4558. this.textConfig || (this.textConfig = {}),
  4559. N(this.textConfig, t),
  4560. this.markRedraw()
  4561. }),
  4562. (r.prototype.removeTextConfig = function () {
  4563. ;(this.textConfig = null), this.markRedraw()
  4564. }),
  4565. (r.prototype.removeTextContent = function () {
  4566. var t = this._textContent
  4567. t &&
  4568. ((t.innerTransformable = null),
  4569. this._detachComponent(t),
  4570. (this._textContent = null),
  4571. (this._innerTextDefaultStyle = null),
  4572. this.markRedraw())
  4573. }),
  4574. (r.prototype.getTextGuideLine = function () {
  4575. return this._textGuide
  4576. }),
  4577. (r.prototype.setTextGuideLine = function (t) {
  4578. this._textGuide && this._textGuide !== t && this.removeTextGuideLine(),
  4579. this._attachComponent(t),
  4580. (this._textGuide = t),
  4581. this.markRedraw()
  4582. }),
  4583. (r.prototype.removeTextGuideLine = function () {
  4584. var t = this._textGuide
  4585. t &&
  4586. (this._detachComponent(t),
  4587. (this._textGuide = null),
  4588. this.markRedraw())
  4589. }),
  4590. (r.prototype.markRedraw = function () {
  4591. this.__dirty |= ae
  4592. var t = this.__zr
  4593. t && (this.__inHover ? t.refreshHover() : t.refresh()),
  4594. this.__hostTarget && this.__hostTarget.markRedraw()
  4595. }),
  4596. (r.prototype.dirty = function () {
  4597. this.markRedraw()
  4598. }),
  4599. (r.prototype._toggleHoverLayerFlag = function (t) {
  4600. this.__inHover = t
  4601. var e = this._textContent,
  4602. n = this._textGuide
  4603. e && (e.__inHover = t), n && (n.__inHover = t)
  4604. }),
  4605. (r.prototype.addSelfToZr = function (t) {
  4606. if (this.__zr !== t) {
  4607. this.__zr = t
  4608. var e = this.animators
  4609. if (e)
  4610. for (var n = 0; n < e.length; n++) t.animation.addAnimator(e[n])
  4611. this._clipPath && this._clipPath.addSelfToZr(t),
  4612. this._textContent && this._textContent.addSelfToZr(t),
  4613. this._textGuide && this._textGuide.addSelfToZr(t)
  4614. }
  4615. }),
  4616. (r.prototype.removeSelfFromZr = function (t) {
  4617. if (!!this.__zr) {
  4618. this.__zr = null
  4619. var e = this.animators
  4620. if (e)
  4621. for (var n = 0; n < e.length; n++) t.animation.removeAnimator(e[n])
  4622. this._clipPath && this._clipPath.removeSelfFromZr(t),
  4623. this._textContent && this._textContent.removeSelfFromZr(t),
  4624. this._textGuide && this._textGuide.removeSelfFromZr(t)
  4625. }
  4626. }),
  4627. (r.prototype.animate = function (t, e, n) {
  4628. var i = t ? this[t] : this,
  4629. a = new nu(i, e, n)
  4630. return t && (a.targetName = t), this.addAnimator(a, t), a
  4631. }),
  4632. (r.prototype.addAnimator = function (t, e) {
  4633. var n = this.__zr,
  4634. i = this
  4635. t
  4636. .during(function () {
  4637. i.updateDuringAnimation(e)
  4638. })
  4639. .done(function () {
  4640. var a = i.animators,
  4641. o = ot(a, t)
  4642. o >= 0 && a.splice(o, 1)
  4643. }),
  4644. this.animators.push(t),
  4645. n && n.animation.addAnimator(t),
  4646. n && n.wakeUp()
  4647. }),
  4648. (r.prototype.updateDuringAnimation = function (t) {
  4649. this.markRedraw()
  4650. }),
  4651. (r.prototype.stopAnimation = function (t, e) {
  4652. for (var n = this.animators, i = n.length, a = [], o = 0; o < i; o++) {
  4653. var s = n[o]
  4654. !t || t === s.scope ? s.stop(e) : a.push(s)
  4655. }
  4656. return (this.animators = a), this
  4657. }),
  4658. (r.prototype.animateTo = function (t, e, n) {
  4659. wu(this, t, e, n)
  4660. }),
  4661. (r.prototype.animateFrom = function (t, e, n) {
  4662. wu(this, t, e, n, !0)
  4663. }),
  4664. (r.prototype._transitionState = function (t, e, n, i) {
  4665. for (var a = wu(this, e, n, i), o = 0; o < a.length; o++)
  4666. a[o].__fromStateTransition = t
  4667. }),
  4668. (r.prototype.getBoundingRect = function () {
  4669. return null
  4670. }),
  4671. (r.prototype.getPaintRect = function () {
  4672. return null
  4673. }),
  4674. (r.initDefaultProps = (function () {
  4675. var t = r.prototype
  4676. ;(t.type = 'element'),
  4677. (t.name = ''),
  4678. (t.ignore =
  4679. t.silent =
  4680. t.isGroup =
  4681. t.draggable =
  4682. t.dragging =
  4683. t.ignoreClip =
  4684. t.__inHover =
  4685. !1),
  4686. (t.__dirty = ae)
  4687. function e(n, i, a, o) {
  4688. Object.defineProperty(t, n, {
  4689. get: function () {
  4690. if (!this[i]) {
  4691. var l = (this[i] = [])
  4692. s(this, l)
  4693. }
  4694. return this[i]
  4695. },
  4696. set: function (l) {
  4697. ;(this[a] = l[0]), (this[o] = l[1]), (this[i] = l), s(this, l)
  4698. }
  4699. })
  4700. function s(l, u) {
  4701. Object.defineProperty(u, 0, {
  4702. get: function () {
  4703. return l[a]
  4704. },
  4705. set: function (f) {
  4706. l[a] = f
  4707. }
  4708. }),
  4709. Object.defineProperty(u, 1, {
  4710. get: function () {
  4711. return l[o]
  4712. },
  4713. set: function (f) {
  4714. l[o] = f
  4715. }
  4716. })
  4717. }
  4718. }
  4719. Object.defineProperty &&
  4720. (e('position', '_legacyPos', 'x', 'y'),
  4721. e('scale', '_legacyScale', 'scaleX', 'scaleY'),
  4722. e('origin', '_legacyOrigin', 'originX', 'originY'))
  4723. })()),
  4724. r
  4725. )
  4726. })()
  4727. ze(xu, fe)
  4728. ze(xu, Wi)
  4729. function wu(r, t, e, n, i) {
  4730. e = e || {}
  4731. var a = []
  4732. Vc(r, '', r, t, e, n, a, i)
  4733. var o = a.length,
  4734. s = !1,
  4735. l = e.done,
  4736. u = e.aborted,
  4737. f = function () {
  4738. ;(s = !0), o--, o <= 0 && (s ? l && l() : u && u())
  4739. },
  4740. h = function () {
  4741. o--, o <= 0 && (s ? l && l() : u && u())
  4742. }
  4743. o || (l && l()),
  4744. a.length > 0 &&
  4745. e.during &&
  4746. a[0].during(function (d, p) {
  4747. e.during(p)
  4748. })
  4749. for (var c = 0; c < a.length; c++) {
  4750. var v = a[c]
  4751. f && v.done(f),
  4752. h && v.aborted(h),
  4753. e.force && v.duration(e.duration),
  4754. v.start(e.easing)
  4755. }
  4756. return a
  4757. }
  4758. function bu(r, t, e) {
  4759. for (var n = 0; n < e; n++) r[n] = t[n]
  4760. }
  4761. function Hw(r) {
  4762. return Zt(r[0])
  4763. }
  4764. function Ww(r, t, e) {
  4765. if (Zt(t[e]))
  4766. if ((Zt(r[e]) || (r[e] = []), ie(t[e]))) {
  4767. var n = t[e].length
  4768. r[e].length !== n && ((r[e] = new t[e].constructor(n)), bu(r[e], t[e], n))
  4769. } else {
  4770. var i = t[e],
  4771. a = r[e],
  4772. o = i.length
  4773. if (Hw(i))
  4774. for (var s = i[0].length, l = 0; l < o; l++)
  4775. a[l] ? bu(a[l], i[l], s) : (a[l] = Array.prototype.slice.call(i[l]))
  4776. else bu(a, i, o)
  4777. a.length = i.length
  4778. }
  4779. else r[e] = t[e]
  4780. }
  4781. function Uw(r, t) {
  4782. return r === t || (Zt(r) && Zt(t) && Yw(r, t))
  4783. }
  4784. function Yw(r, t) {
  4785. var e = r.length
  4786. if (e !== t.length) return !1
  4787. for (var n = 0; n < e; n++) if (r[n] !== t[n]) return !1
  4788. return !0
  4789. }
  4790. function Vc(r, t, e, n, i, a, o, s) {
  4791. for (
  4792. var l = xt(n),
  4793. u = i.duration,
  4794. f = i.delay,
  4795. h = i.additive,
  4796. c = i.setToFinal,
  4797. v = !Y(a),
  4798. d = r.animators,
  4799. p = [],
  4800. g = 0;
  4801. g < l.length;
  4802. g++
  4803. ) {
  4804. var m = l[g],
  4805. y = n[m]
  4806. if (y != null && e[m] != null && (v || a[m]))
  4807. if (Y(y) && !Zt(y) && !io(y)) {
  4808. if (t) {
  4809. s || ((e[m] = y), r.updateDuringAnimation(t))
  4810. continue
  4811. }
  4812. Vc(r, m, e[m], y, i, a && a[m], o, s)
  4813. } else p.push(m)
  4814. else s || ((e[m] = y), r.updateDuringAnimation(t), p.push(m))
  4815. }
  4816. var _ = p.length
  4817. if (!h && _)
  4818. for (var S = 0; S < d.length; S++) {
  4819. var w = d[S]
  4820. if (w.targetName === t) {
  4821. var x = w.stopTracks(p)
  4822. if (x) {
  4823. var b = ot(d, w)
  4824. d.splice(b, 1)
  4825. }
  4826. }
  4827. }
  4828. if (
  4829. (i.force ||
  4830. ((p = Lt(p, function (D) {
  4831. return !Uw(n[D], e[D])
  4832. })),
  4833. (_ = p.length)),
  4834. _ > 0 || (i.force && !o.length))
  4835. ) {
  4836. var T = void 0,
  4837. C = void 0,
  4838. M = void 0
  4839. if (s) {
  4840. ;(C = {}), c && (T = {})
  4841. for (var S = 0; S < _; S++) {
  4842. var m = p[S]
  4843. ;(C[m] = e[m]), c ? (T[m] = n[m]) : (e[m] = n[m])
  4844. }
  4845. } else if (c) {
  4846. M = {}
  4847. for (var S = 0; S < _; S++) {
  4848. var m = p[S]
  4849. ;(M[m] = bo(e[m])), Ww(e, n, m)
  4850. }
  4851. }
  4852. var w = new nu(
  4853. e,
  4854. !1,
  4855. !1,
  4856. h
  4857. ? Lt(d, function (I) {
  4858. return I.targetName === t
  4859. })
  4860. : null
  4861. )
  4862. ;(w.targetName = t),
  4863. i.scope && (w.scope = i.scope),
  4864. c && T && w.whenWithKeys(0, T, p),
  4865. M && w.whenWithKeys(0, M, p),
  4866. w.whenWithKeys(u == null ? 500 : u, s ? C : n, p).delay(f || 0),
  4867. r.addAnimator(w, t),
  4868. o.push(w)
  4869. }
  4870. }
  4871. var Gc = xu,
  4872. Hc = (function (r) {
  4873. B(t, r)
  4874. function t(e) {
  4875. var n = r.call(this) || this
  4876. return (n.isGroup = !0), (n._children = []), n.attr(e), n
  4877. }
  4878. return (
  4879. (t.prototype.childrenRef = function () {
  4880. return this._children
  4881. }),
  4882. (t.prototype.children = function () {
  4883. return this._children.slice()
  4884. }),
  4885. (t.prototype.childAt = function (e) {
  4886. return this._children[e]
  4887. }),
  4888. (t.prototype.childOfName = function (e) {
  4889. for (var n = this._children, i = 0; i < n.length; i++)
  4890. if (n[i].name === e) return n[i]
  4891. }),
  4892. (t.prototype.childCount = function () {
  4893. return this._children.length
  4894. }),
  4895. (t.prototype.add = function (e) {
  4896. return (
  4897. e &&
  4898. e !== this &&
  4899. e.parent !== this &&
  4900. (this._children.push(e), this._doAdd(e)),
  4901. this
  4902. )
  4903. }),
  4904. (t.prototype.addBefore = function (e, n) {
  4905. if (e && e !== this && e.parent !== this && n && n.parent === this) {
  4906. var i = this._children,
  4907. a = i.indexOf(n)
  4908. a >= 0 && (i.splice(a, 0, e), this._doAdd(e))
  4909. }
  4910. return this
  4911. }),
  4912. (t.prototype.replace = function (e, n) {
  4913. var i = ot(this._children, e)
  4914. return i >= 0 && this.replaceAt(n, i), this
  4915. }),
  4916. (t.prototype.replaceAt = function (e, n) {
  4917. var i = this._children,
  4918. a = i[n]
  4919. if (e && e !== this && e.parent !== this && e !== a) {
  4920. ;(i[n] = e), (a.parent = null)
  4921. var o = this.__zr
  4922. o && a.removeSelfFromZr(o), this._doAdd(e)
  4923. }
  4924. return this
  4925. }),
  4926. (t.prototype._doAdd = function (e) {
  4927. e.parent && e.parent.remove(e), (e.parent = this)
  4928. var n = this.__zr
  4929. n && n !== e.__zr && e.addSelfToZr(n), n && n.refresh()
  4930. }),
  4931. (t.prototype.remove = function (e) {
  4932. var n = this.__zr,
  4933. i = this._children,
  4934. a = ot(i, e)
  4935. return a < 0
  4936. ? this
  4937. : (i.splice(a, 1),
  4938. (e.parent = null),
  4939. n && e.removeSelfFromZr(n),
  4940. n && n.refresh(),
  4941. this)
  4942. }),
  4943. (t.prototype.removeAll = function () {
  4944. for (var e = this._children, n = this.__zr, i = 0; i < e.length; i++) {
  4945. var a = e[i]
  4946. n && a.removeSelfFromZr(n), (a.parent = null)
  4947. }
  4948. return (e.length = 0), this
  4949. }),
  4950. (t.prototype.eachChild = function (e, n) {
  4951. for (var i = this._children, a = 0; a < i.length; a++) {
  4952. var o = i[a]
  4953. e.call(n, o, a)
  4954. }
  4955. return this
  4956. }),
  4957. (t.prototype.traverse = function (e, n) {
  4958. for (var i = 0; i < this._children.length; i++) {
  4959. var a = this._children[i],
  4960. o = e.call(n, a)
  4961. a.isGroup && !o && a.traverse(e, n)
  4962. }
  4963. return this
  4964. }),
  4965. (t.prototype.addSelfToZr = function (e) {
  4966. r.prototype.addSelfToZr.call(this, e)
  4967. for (var n = 0; n < this._children.length; n++) {
  4968. var i = this._children[n]
  4969. i.addSelfToZr(e)
  4970. }
  4971. }),
  4972. (t.prototype.removeSelfFromZr = function (e) {
  4973. r.prototype.removeSelfFromZr.call(this, e)
  4974. for (var n = 0; n < this._children.length; n++) {
  4975. var i = this._children[n]
  4976. i.removeSelfFromZr(e)
  4977. }
  4978. }),
  4979. (t.prototype.getBoundingRect = function (e) {
  4980. for (
  4981. var n = new vt(0, 0, 0, 0),
  4982. i = e || this._children,
  4983. a = [],
  4984. o = null,
  4985. s = 0;
  4986. s < i.length;
  4987. s++
  4988. ) {
  4989. var l = i[s]
  4990. if (!(l.ignore || l.invisible)) {
  4991. var u = l.getBoundingRect(),
  4992. f = l.getLocalTransform(a)
  4993. f
  4994. ? (vt.applyTransform(n, u, f), (o = o || n.clone()), o.union(n))
  4995. : ((o = o || u.clone()), o.union(u))
  4996. }
  4997. }
  4998. return o || n
  4999. }),
  5000. t
  5001. )
  5002. })(Gc)
  5003. Hc.prototype.type = 'group'
  5004. var At = Hc
  5005. /*!
  5006. * ZRender, a high performance 2d drawing library.
  5007. *
  5008. * Copyright (c) 2013, Baidu Inc.
  5009. * All rights reserved.
  5010. *
  5011. * LICENSE
  5012. * https://github.com/ecomfe/zrender/blob/master/LICENSE.txt
  5013. */ var ko = {},
  5014. Wc = {}
  5015. function Zw(r) {
  5016. delete Wc[r]
  5017. }
  5018. function $w(r) {
  5019. if (!r) return !1
  5020. if (typeof r == 'string') return xo(r, 1) < fu
  5021. if (r.colorStops) {
  5022. for (var t = r.colorStops, e = 0, n = t.length, i = 0; i < n; i++)
  5023. e += xo(t[i].color, 1)
  5024. return (e /= n), e < fu
  5025. }
  5026. return !1
  5027. }
  5028. var Xw = (function () {
  5029. function r(t, e, n) {
  5030. var i = this
  5031. ;(this._sleepAfterStill = 10),
  5032. (this._stillFrameAccum = 0),
  5033. (this._needsRefresh = !0),
  5034. (this._needsRefreshHover = !0),
  5035. (this._darkMode = !1),
  5036. (n = n || {}),
  5037. (this.dom = e),
  5038. (this.id = t)
  5039. var a = new ow(),
  5040. o = n.renderer || 'canvas'
  5041. ko[o] || (o = xt(ko)[0]),
  5042. (n.useDirtyRect = n.useDirtyRect == null ? !1 : n.useDirtyRect)
  5043. var s = new ko[o](e, a, n, t),
  5044. l = n.ssr || s.ssrOnly
  5045. ;(this.storage = a), (this.painter = s)
  5046. var u =
  5047. !at.node && !at.worker && !l ? new Ew(s.getViewportRoot(), s.root) : null
  5048. ;(this.handler = new ew(a, s, u, s.root)),
  5049. (this.animation = new Cw({
  5050. stage: {
  5051. update: l
  5052. ? null
  5053. : function () {
  5054. return i._flush(!0)
  5055. }
  5056. }
  5057. })),
  5058. l || this.animation.start()
  5059. }
  5060. return (
  5061. (r.prototype.add = function (t) {
  5062. !t || (this.storage.addRoot(t), t.addSelfToZr(this), this.refresh())
  5063. }),
  5064. (r.prototype.remove = function (t) {
  5065. !t || (this.storage.delRoot(t), t.removeSelfFromZr(this), this.refresh())
  5066. }),
  5067. (r.prototype.configLayer = function (t, e) {
  5068. this.painter.configLayer && this.painter.configLayer(t, e), this.refresh()
  5069. }),
  5070. (r.prototype.setBackgroundColor = function (t) {
  5071. this.painter.setBackgroundColor && this.painter.setBackgroundColor(t),
  5072. this.refresh(),
  5073. (this._backgroundColor = t),
  5074. (this._darkMode = $w(t))
  5075. }),
  5076. (r.prototype.getBackgroundColor = function () {
  5077. return this._backgroundColor
  5078. }),
  5079. (r.prototype.setDarkMode = function (t) {
  5080. this._darkMode = t
  5081. }),
  5082. (r.prototype.isDarkMode = function () {
  5083. return this._darkMode
  5084. }),
  5085. (r.prototype.refreshImmediately = function (t) {
  5086. t || this.animation.update(!0),
  5087. (this._needsRefresh = !1),
  5088. this.painter.refresh(),
  5089. (this._needsRefresh = !1)
  5090. }),
  5091. (r.prototype.refresh = function () {
  5092. ;(this._needsRefresh = !0), this.animation.start()
  5093. }),
  5094. (r.prototype.flush = function () {
  5095. this._flush(!1)
  5096. }),
  5097. (r.prototype._flush = function (t) {
  5098. var e,
  5099. n = Zn()
  5100. this._needsRefresh && ((e = !0), this.refreshImmediately(t)),
  5101. this._needsRefreshHover && ((e = !0), this.refreshHoverImmediately())
  5102. var i = Zn()
  5103. e
  5104. ? ((this._stillFrameAccum = 0),
  5105. this.trigger('rendered', { elapsedTime: i - n }))
  5106. : this._sleepAfterStill > 0 &&
  5107. (this._stillFrameAccum++,
  5108. this._stillFrameAccum > this._sleepAfterStill &&
  5109. this.animation.stop())
  5110. }),
  5111. (r.prototype.setSleepAfterStill = function (t) {
  5112. this._sleepAfterStill = t
  5113. }),
  5114. (r.prototype.wakeUp = function () {
  5115. this.animation.start(), (this._stillFrameAccum = 0)
  5116. }),
  5117. (r.prototype.refreshHover = function () {
  5118. this._needsRefreshHover = !0
  5119. }),
  5120. (r.prototype.refreshHoverImmediately = function () {
  5121. ;(this._needsRefreshHover = !1),
  5122. this.painter.refreshHover &&
  5123. this.painter.getType() === 'canvas' &&
  5124. this.painter.refreshHover()
  5125. }),
  5126. (r.prototype.resize = function (t) {
  5127. ;(t = t || {}),
  5128. this.painter.resize(t.width, t.height),
  5129. this.handler.resize()
  5130. }),
  5131. (r.prototype.clearAnimation = function () {
  5132. this.animation.clear()
  5133. }),
  5134. (r.prototype.getWidth = function () {
  5135. return this.painter.getWidth()
  5136. }),
  5137. (r.prototype.getHeight = function () {
  5138. return this.painter.getHeight()
  5139. }),
  5140. (r.prototype.setCursorStyle = function (t) {
  5141. this.handler.setCursorStyle(t)
  5142. }),
  5143. (r.prototype.findHover = function (t, e) {
  5144. return this.handler.findHover(t, e)
  5145. }),
  5146. (r.prototype.on = function (t, e, n) {
  5147. return this.handler.on(t, e, n), this
  5148. }),
  5149. (r.prototype.off = function (t, e) {
  5150. this.handler.off(t, e)
  5151. }),
  5152. (r.prototype.trigger = function (t, e) {
  5153. this.handler.trigger(t, e)
  5154. }),
  5155. (r.prototype.clear = function () {
  5156. for (var t = this.storage.getRoots(), e = 0; e < t.length; e++)
  5157. t[e] instanceof At && t[e].removeSelfFromZr(this)
  5158. this.storage.delAllRoots(), this.painter.clear()
  5159. }),
  5160. (r.prototype.dispose = function () {
  5161. this.animation.stop(),
  5162. this.clear(),
  5163. this.storage.dispose(),
  5164. this.painter.dispose(),
  5165. this.handler.dispose(),
  5166. (this.animation = this.storage = this.painter = this.handler = null),
  5167. Zw(this.id)
  5168. }),
  5169. r
  5170. )
  5171. })()
  5172. function Uc(r, t) {
  5173. var e = new Xw(Uv(), r, t)
  5174. return (Wc[e.id] = e), e
  5175. }
  5176. function qw(r, t) {
  5177. ko[r] = t
  5178. }
  5179. var Yc = 1e-4,
  5180. Zc = 20
  5181. function Kw(r) {
  5182. return r.replace(/^\s+|\s+$/g, '')
  5183. }
  5184. function Bt(r, t, e, n) {
  5185. var i = t[0],
  5186. a = t[1],
  5187. o = e[0],
  5188. s = e[1],
  5189. l = a - i,
  5190. u = s - o
  5191. if (l === 0) return u === 0 ? o : (o + s) / 2
  5192. if (n)
  5193. if (l > 0) {
  5194. if (r <= i) return o
  5195. if (r >= a) return s
  5196. } else {
  5197. if (r >= i) return o
  5198. if (r <= a) return s
  5199. }
  5200. else {
  5201. if (r === i) return o
  5202. if (r === a) return s
  5203. }
  5204. return ((r - i) / l) * u + o
  5205. }
  5206. function yt(r, t) {
  5207. switch (r) {
  5208. case 'center':
  5209. case 'middle':
  5210. r = '50%'
  5211. break
  5212. case 'left':
  5213. case 'top':
  5214. r = '0%'
  5215. break
  5216. case 'right':
  5217. case 'bottom':
  5218. r = '100%'
  5219. break
  5220. }
  5221. return W(r)
  5222. ? Kw(r).match(/%$/)
  5223. ? (parseFloat(r) / 100) * t
  5224. : parseFloat(r)
  5225. : r == null
  5226. ? NaN
  5227. : +r
  5228. }
  5229. function Pt(r, t, e) {
  5230. return (
  5231. t == null && (t = 10),
  5232. (t = Math.min(Math.max(0, t), Zc)),
  5233. (r = (+r).toFixed(t)),
  5234. e ? r : +r
  5235. )
  5236. }
  5237. function Xi(r) {
  5238. return (
  5239. r.sort(function (t, e) {
  5240. return t - e
  5241. }),
  5242. r
  5243. )
  5244. }
  5245. function or(r) {
  5246. if (((r = +r), isNaN(r))) return 0
  5247. if (r > 1e-14) {
  5248. for (var t = 1, e = 0; e < 15; e++, t *= 10)
  5249. if (Math.round(r * t) / t === r) return e
  5250. }
  5251. return Qw(r)
  5252. }
  5253. function Qw(r) {
  5254. var t = r.toString().toLowerCase(),
  5255. e = t.indexOf('e'),
  5256. n = e > 0 ? +t.slice(e + 1) : 0,
  5257. i = e > 0 ? e : t.length,
  5258. a = t.indexOf('.'),
  5259. o = a < 0 ? 0 : i - 1 - a
  5260. return Math.max(0, o - n)
  5261. }
  5262. function $c(r, t) {
  5263. var e = Math.log,
  5264. n = Math.LN10,
  5265. i = Math.floor(e(r[1] - r[0]) / n),
  5266. a = Math.round(e(Math.abs(t[1] - t[0])) / n),
  5267. o = Math.min(Math.max(-i + a, 0), 20)
  5268. return isFinite(o) ? o : 20
  5269. }
  5270. function Jw(r, t, e) {
  5271. if (!r[t]) return 0
  5272. var n = Sr(
  5273. r,
  5274. function (d, p) {
  5275. return d + (isNaN(p) ? 0 : p)
  5276. },
  5277. 0
  5278. )
  5279. if (n === 0) return 0
  5280. for (
  5281. var i = Math.pow(10, e),
  5282. a = G(r, function (d) {
  5283. return ((isNaN(d) ? 0 : d) / n) * i * 100
  5284. }),
  5285. o = i * 100,
  5286. s = G(a, function (d) {
  5287. return Math.floor(d)
  5288. }),
  5289. l = Sr(
  5290. s,
  5291. function (d, p) {
  5292. return d + p
  5293. },
  5294. 0
  5295. ),
  5296. u = G(a, function (d, p) {
  5297. return d - s[p]
  5298. });
  5299. l < o;
  5300. ) {
  5301. for (
  5302. var f = Number.NEGATIVE_INFINITY, h = null, c = 0, v = u.length;
  5303. c < v;
  5304. ++c
  5305. )
  5306. u[c] > f && ((f = u[c]), (h = c))
  5307. ++s[h], (u[h] = 0), ++l
  5308. }
  5309. return s[t] / i
  5310. }
  5311. function jw(r, t) {
  5312. var e = Math.max(or(r), or(t)),
  5313. n = r + t
  5314. return e > Zc ? n : Pt(n, e)
  5315. }
  5316. function Xc(r) {
  5317. var t = Math.PI * 2
  5318. return ((r % t) + t) % t
  5319. }
  5320. function Bo(r) {
  5321. return r > -Yc && r < Yc
  5322. }
  5323. var tb =
  5324. /^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d{1,2})(?::(\d{1,2})(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/
  5325. function sr(r) {
  5326. if (r instanceof Date) return r
  5327. if (W(r)) {
  5328. var t = tb.exec(r)
  5329. if (!t) return new Date(NaN)
  5330. if (t[8]) {
  5331. var e = +t[4] || 0
  5332. return (
  5333. t[8].toUpperCase() !== 'Z' && (e -= +t[8].slice(0, 3)),
  5334. new Date(
  5335. Date.UTC(
  5336. +t[1],
  5337. +(t[2] || 1) - 1,
  5338. +t[3] || 1,
  5339. e,
  5340. +(t[5] || 0),
  5341. +t[6] || 0,
  5342. t[7] ? +t[7].substring(0, 3) : 0
  5343. )
  5344. )
  5345. )
  5346. } else
  5347. return new Date(
  5348. +t[1],
  5349. +(t[2] || 1) - 1,
  5350. +t[3] || 1,
  5351. +t[4] || 0,
  5352. +(t[5] || 0),
  5353. +t[6] || 0,
  5354. t[7] ? +t[7].substring(0, 3) : 0
  5355. )
  5356. } else if (r == null) return new Date(NaN)
  5357. return new Date(Math.round(r))
  5358. }
  5359. function eb(r) {
  5360. return Math.pow(10, Tu(r))
  5361. }
  5362. function Tu(r) {
  5363. if (r === 0) return 0
  5364. var t = Math.floor(Math.log(r) / Math.LN10)
  5365. return r / Math.pow(10, t) >= 10 && t++, t
  5366. }
  5367. function qc(r, t) {
  5368. var e = Tu(r),
  5369. n = Math.pow(10, e),
  5370. i = r / n,
  5371. a
  5372. return (
  5373. t
  5374. ? i < 1.5
  5375. ? (a = 1)
  5376. : i < 2.5
  5377. ? (a = 2)
  5378. : i < 4
  5379. ? (a = 3)
  5380. : i < 7
  5381. ? (a = 5)
  5382. : (a = 10)
  5383. : i < 1
  5384. ? (a = 1)
  5385. : i < 2
  5386. ? (a = 2)
  5387. : i < 3
  5388. ? (a = 3)
  5389. : i < 5
  5390. ? (a = 5)
  5391. : (a = 10),
  5392. (r = a * n),
  5393. e >= -20 ? +r.toFixed(e < 0 ? -e : 0) : r
  5394. )
  5395. }
  5396. function Ar(r) {
  5397. var t = parseFloat(r)
  5398. return t == r && (t !== 0 || !W(r) || r.indexOf('x') <= 0) ? t : NaN
  5399. }
  5400. function rb(r) {
  5401. return !isNaN(Ar(r))
  5402. }
  5403. function Kc() {
  5404. return Math.round(Math.random() * 9)
  5405. }
  5406. function Qc(r, t) {
  5407. return t === 0 ? r : Qc(t, r % t)
  5408. }
  5409. function Jc(r, t) {
  5410. return r == null ? t : t == null ? r : (r * t) / Qc(r, t)
  5411. }
  5412. function ut(r) {
  5413. throw new Error(r)
  5414. }
  5415. function jc(r, t, e) {
  5416. return (t - r) * e + r
  5417. }
  5418. var td = 'series\0',
  5419. ed = '\0_ec_\0'
  5420. function Mt(r) {
  5421. return r instanceof Array ? r : r == null ? [] : [r]
  5422. }
  5423. function Cu(r, t, e) {
  5424. if (r) {
  5425. ;(r[t] = r[t] || {}),
  5426. (r.emphasis = r.emphasis || {}),
  5427. (r.emphasis[t] = r.emphasis[t] || {})
  5428. for (var n = 0, i = e.length; n < i; n++) {
  5429. var a = e[n]
  5430. !r.emphasis[t].hasOwnProperty(a) &&
  5431. r[t].hasOwnProperty(a) &&
  5432. (r.emphasis[t][a] = r[t][a])
  5433. }
  5434. }
  5435. }
  5436. var rd = [
  5437. 'fontStyle',
  5438. 'fontWeight',
  5439. 'fontSize',
  5440. 'fontFamily',
  5441. 'rich',
  5442. 'tag',
  5443. 'color',
  5444. 'textBorderColor',
  5445. 'textBorderWidth',
  5446. 'width',
  5447. 'height',
  5448. 'lineHeight',
  5449. 'align',
  5450. 'verticalAlign',
  5451. 'baseline',
  5452. 'shadowColor',
  5453. 'shadowBlur',
  5454. 'shadowOffsetX',
  5455. 'shadowOffsetY',
  5456. 'textShadowColor',
  5457. 'textShadowBlur',
  5458. 'textShadowOffsetX',
  5459. 'textShadowOffsetY',
  5460. 'backgroundColor',
  5461. 'borderColor',
  5462. 'borderWidth',
  5463. 'borderRadius',
  5464. 'padding'
  5465. ]
  5466. function qi(r) {
  5467. return Y(r) && !z(r) && !(r instanceof Date) ? r.value : r
  5468. }
  5469. function nb(r) {
  5470. return Y(r) && !(r instanceof Array)
  5471. }
  5472. function ib(r, t, e) {
  5473. var n = e === 'normalMerge',
  5474. i = e === 'replaceMerge',
  5475. a = e === 'replaceAll'
  5476. ;(r = r || []), (t = (t || []).slice())
  5477. var o = q()
  5478. A(t, function (l, u) {
  5479. if (!Y(l)) {
  5480. t[u] = null
  5481. return
  5482. }
  5483. })
  5484. var s = ab(r, o, e)
  5485. return (
  5486. (n || i) && ob(s, r, o, t),
  5487. n && sb(s, t),
  5488. n || i ? lb(s, t, i) : a && ub(s, t),
  5489. fb(s),
  5490. s
  5491. )
  5492. }
  5493. function ab(r, t, e) {
  5494. var n = []
  5495. if (e === 'replaceAll') return n
  5496. for (var i = 0; i < r.length; i++) {
  5497. var a = r[i]
  5498. a && a.id != null && t.set(a.id, i),
  5499. n.push({
  5500. existing: e === 'replaceMerge' || Qi(a) ? null : a,
  5501. newOption: null,
  5502. keyInfo: null,
  5503. brandNew: null
  5504. })
  5505. }
  5506. return n
  5507. }
  5508. function ob(r, t, e, n) {
  5509. A(n, function (i, a) {
  5510. if (!(!i || i.id == null)) {
  5511. var o = Ki(i.id),
  5512. s = e.get(o)
  5513. if (s != null) {
  5514. var l = r[s]
  5515. Ve(!l.newOption, 'Duplicated option on id "' + o + '".'),
  5516. (l.newOption = i),
  5517. (l.existing = t[s]),
  5518. (n[a] = null)
  5519. }
  5520. }
  5521. })
  5522. }
  5523. function sb(r, t) {
  5524. A(t, function (e, n) {
  5525. if (!(!e || e.name == null))
  5526. for (var i = 0; i < r.length; i++) {
  5527. var a = r[i].existing
  5528. if (
  5529. !r[i].newOption &&
  5530. a &&
  5531. (a.id == null || e.id == null) &&
  5532. !Qi(e) &&
  5533. !Qi(a) &&
  5534. nd('name', a, e)
  5535. ) {
  5536. ;(r[i].newOption = e), (t[n] = null)
  5537. return
  5538. }
  5539. }
  5540. })
  5541. }
  5542. function lb(r, t, e) {
  5543. A(t, function (n) {
  5544. if (!!n) {
  5545. for (
  5546. var i, a = 0;
  5547. (i = r[a]) &&
  5548. (i.newOption ||
  5549. Qi(i.existing) ||
  5550. (i.existing && n.id != null && !nd('id', n, i.existing)));
  5551. )
  5552. a++
  5553. i
  5554. ? ((i.newOption = n), (i.brandNew = e))
  5555. : r.push({ newOption: n, brandNew: e, existing: null, keyInfo: null }),
  5556. a++
  5557. }
  5558. })
  5559. }
  5560. function ub(r, t) {
  5561. A(t, function (e) {
  5562. r.push({ newOption: e, brandNew: !0, existing: null, keyInfo: null })
  5563. })
  5564. }
  5565. function fb(r) {
  5566. var t = q()
  5567. A(r, function (e) {
  5568. var n = e.existing
  5569. n && t.set(n.id, e)
  5570. }),
  5571. A(r, function (e) {
  5572. var n = e.newOption
  5573. Ve(
  5574. !n || n.id == null || !t.get(n.id) || t.get(n.id) === e,
  5575. 'id duplicates: ' + (n && n.id)
  5576. ),
  5577. n && n.id != null && t.set(n.id, e),
  5578. !e.keyInfo && (e.keyInfo = {})
  5579. }),
  5580. A(r, function (e, n) {
  5581. var i = e.existing,
  5582. a = e.newOption,
  5583. o = e.keyInfo
  5584. if (!!Y(a)) {
  5585. if (((o.name = a.name != null ? Ki(a.name) : i ? i.name : td + n), i))
  5586. o.id = Ki(i.id)
  5587. else if (a.id != null) o.id = Ki(a.id)
  5588. else {
  5589. var s = 0
  5590. do o.id = '\0' + o.name + '\0' + s++
  5591. while (t.get(o.id))
  5592. }
  5593. t.set(o.id, e)
  5594. }
  5595. })
  5596. }
  5597. function nd(r, t, e) {
  5598. var n = We(t[r], null),
  5599. i = We(e[r], null)
  5600. return n != null && i != null && n === i
  5601. }
  5602. function Ki(r) {
  5603. return We(r, '')
  5604. }
  5605. function We(r, t) {
  5606. return r == null ? t : W(r) ? r : dt(r) || Rl(r) ? r + '' : t
  5607. }
  5608. function Au(r) {
  5609. var t = r.name
  5610. return !!(t && t.indexOf(td))
  5611. }
  5612. function Qi(r) {
  5613. return r && r.id != null && Ki(r.id).indexOf(ed) === 0
  5614. }
  5615. function hb(r) {
  5616. return ed + r
  5617. }
  5618. function vb(r, t, e) {
  5619. A(r, function (n) {
  5620. var i = n.newOption
  5621. Y(i) &&
  5622. ((n.keyInfo.mainType = t), (n.keyInfo.subType = cb(t, i, n.existing, e)))
  5623. })
  5624. }
  5625. function cb(r, t, e, n) {
  5626. var i = t.type ? t.type : e ? e.subType : n.determineSubType(r, t)
  5627. return i
  5628. }
  5629. function Jr(r, t) {
  5630. if (t.dataIndexInside != null) return t.dataIndexInside
  5631. if (t.dataIndex != null)
  5632. return z(t.dataIndex)
  5633. ? G(t.dataIndex, function (e) {
  5634. return r.indexOfRawIndex(e)
  5635. })
  5636. : r.indexOfRawIndex(t.dataIndex)
  5637. if (t.name != null)
  5638. return z(t.name)
  5639. ? G(t.name, function (e) {
  5640. return r.indexOfName(e)
  5641. })
  5642. : r.indexOfName(t.name)
  5643. }
  5644. function wt() {
  5645. var r = '__ec_inner_' + db++
  5646. return function (t) {
  5647. return t[r] || (t[r] = {})
  5648. }
  5649. }
  5650. var db = Kc()
  5651. function Ji(r, t, e) {
  5652. var n = Mu(t, e),
  5653. i = n.mainTypeSpecified,
  5654. a = n.queryOptionMap,
  5655. o = n.others,
  5656. s = o,
  5657. l = e ? e.defaultMainType : null
  5658. return (
  5659. !i && l && a.set(l, {}),
  5660. a.each(function (u, f) {
  5661. var h = ji(r, f, u, {
  5662. useDefault: l === f,
  5663. enableAll: e && e.enableAll != null ? e.enableAll : !0,
  5664. enableNone: e && e.enableNone != null ? e.enableNone : !0
  5665. })
  5666. ;(s[f + 'Models'] = h.models), (s[f + 'Model'] = h.models[0])
  5667. }),
  5668. s
  5669. )
  5670. }
  5671. function Mu(r, t) {
  5672. var e
  5673. if (W(r)) {
  5674. var n = {}
  5675. ;(n[r + 'Index'] = 0), (e = n)
  5676. } else e = r
  5677. var i = q(),
  5678. a = {},
  5679. o = !1
  5680. return (
  5681. A(e, function (s, l) {
  5682. if (l === 'dataIndex' || l === 'dataIndexInside') {
  5683. a[l] = s
  5684. return
  5685. }
  5686. var u = l.match(/^(\w+)(Index|Id|Name)$/) || [],
  5687. f = u[1],
  5688. h = (u[2] || '').toLowerCase()
  5689. if (
  5690. !(
  5691. !f ||
  5692. !h ||
  5693. (t && t.includeMainTypes && ot(t.includeMainTypes, f) < 0)
  5694. )
  5695. ) {
  5696. o = o || !!f
  5697. var c = i.get(f) || i.set(f, {})
  5698. c[h] = s
  5699. }
  5700. }),
  5701. { mainTypeSpecified: o, queryOptionMap: i, others: a }
  5702. )
  5703. }
  5704. var Xt = { useDefault: !0, enableAll: !1, enableNone: !1 },
  5705. pb = { useDefault: !1, enableAll: !0, enableNone: !0 }
  5706. function ji(r, t, e, n) {
  5707. n = n || Xt
  5708. var i = e.index,
  5709. a = e.id,
  5710. o = e.name,
  5711. s = { models: null, specified: i != null || a != null || o != null }
  5712. if (!s.specified) {
  5713. var l = void 0
  5714. return (s.models = n.useDefault && (l = r.getComponent(t)) ? [l] : []), s
  5715. }
  5716. return i === 'none' || i === !1
  5717. ? (Ve(
  5718. n.enableNone,
  5719. '`"none"` or `false` is not a valid value on index option.'
  5720. ),
  5721. (s.models = []),
  5722. s)
  5723. : (i === 'all' &&
  5724. (Ve(n.enableAll, '`"all"` is not a valid value on index option.'),
  5725. (i = a = o = null)),
  5726. (s.models = r.queryComponents({ mainType: t, index: i, id: a, name: o })),
  5727. s)
  5728. }
  5729. function id(r, t, e) {
  5730. r.setAttribute ? r.setAttribute(t, e) : (r[t] = e)
  5731. }
  5732. function gb(r, t) {
  5733. return r.getAttribute ? r.getAttribute(t) : r[t]
  5734. }
  5735. function mb(r) {
  5736. return r === 'auto' ? (at.domSupported ? 'html' : 'richText') : r || 'html'
  5737. }
  5738. function ad(r, t, e, n, i) {
  5739. var a = t == null || t === 'auto'
  5740. if (n == null) return n
  5741. if (dt(n)) {
  5742. var o = jc(e || 0, n, i)
  5743. return Pt(o, a ? Math.max(or(e || 0), or(n)) : t)
  5744. } else {
  5745. if (W(n)) return i < 1 ? e : n
  5746. for (
  5747. var s = [], l = e, u = n, f = Math.max(l ? l.length : 0, u.length), h = 0;
  5748. h < f;
  5749. ++h
  5750. ) {
  5751. var c = r.getDimensionInfo(h)
  5752. if (c && c.type === 'ordinal') s[h] = (i < 1 && l ? l : u)[h]
  5753. else {
  5754. var v = l && l[h] ? l[h] : 0,
  5755. d = u[h],
  5756. o = jc(v, d, i)
  5757. s[h] = Pt(o, a ? Math.max(or(v), or(d)) : t)
  5758. }
  5759. }
  5760. return s
  5761. }
  5762. }
  5763. var yb = '.',
  5764. jr = '___EC__COMPONENT__CONTAINER___',
  5765. od = '___EC__EXTENDED_CLASS___'
  5766. function Ue(r) {
  5767. var t = { main: '', sub: '' }
  5768. if (r) {
  5769. var e = r.split(yb)
  5770. ;(t.main = e[0] || ''), (t.sub = e[1] || '')
  5771. }
  5772. return t
  5773. }
  5774. function _b(r) {
  5775. Ve(
  5776. /^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(r),
  5777. 'componentType "' + r + '" illegal'
  5778. )
  5779. }
  5780. function Sb(r) {
  5781. return !!(r && r[od])
  5782. }
  5783. function Du(r, t) {
  5784. ;(r.$constructor = r),
  5785. (r.extend = function (e) {
  5786. var n = this,
  5787. i
  5788. return (
  5789. xb(n)
  5790. ? (i = (function (a) {
  5791. B(o, a)
  5792. function o() {
  5793. return a.apply(this, arguments) || this
  5794. }
  5795. return o
  5796. })(n))
  5797. : ((i = function () {
  5798. ;(e.$constructor || n).apply(this, arguments)
  5799. }),
  5800. Tx(i, this)),
  5801. N(i.prototype, e),
  5802. (i[od] = !0),
  5803. (i.extend = this.extend),
  5804. (i.superCall = Tb),
  5805. (i.superApply = Cb),
  5806. (i.superClass = n),
  5807. i
  5808. )
  5809. })
  5810. }
  5811. function xb(r) {
  5812. return Q(r) && /^class\s/.test(Function.prototype.toString.call(r))
  5813. }
  5814. function sd(r, t) {
  5815. r.extend = t.extend
  5816. }
  5817. var wb = Math.round(Math.random() * 10)
  5818. function bb(r) {
  5819. var t = ['__\0is_clz', wb++].join('_')
  5820. ;(r.prototype[t] = !0),
  5821. (r.isInstance = function (e) {
  5822. return !!(e && e[t])
  5823. })
  5824. }
  5825. function Tb(r, t) {
  5826. for (var e = [], n = 2; n < arguments.length; n++) e[n - 2] = arguments[n]
  5827. return this.superClass.prototype[t].apply(r, e)
  5828. }
  5829. function Cb(r, t, e) {
  5830. return this.superClass.prototype[t].apply(r, e)
  5831. }
  5832. function No(r) {
  5833. var t = {}
  5834. ;(r.registerClass = function (n) {
  5835. var i = n.type || n.prototype.type
  5836. if (i) {
  5837. _b(i), (n.prototype.type = i)
  5838. var a = Ue(i)
  5839. if (!a.sub) t[a.main] = n
  5840. else if (a.sub !== jr) {
  5841. var o = e(a)
  5842. o[a.sub] = n
  5843. }
  5844. }
  5845. return n
  5846. }),
  5847. (r.getClass = function (n, i, a) {
  5848. var o = t[n]
  5849. if ((o && o[jr] && (o = i ? o[i] : null), a && !o))
  5850. throw new Error(
  5851. i
  5852. ? 'Component ' + n + '.' + (i || '') + ' is used but not imported.'
  5853. : n + '.type should be specified.'
  5854. )
  5855. return o
  5856. }),
  5857. (r.getClassesByMainType = function (n) {
  5858. var i = Ue(n),
  5859. a = [],
  5860. o = t[i.main]
  5861. return (
  5862. o && o[jr]
  5863. ? A(o, function (s, l) {
  5864. l !== jr && a.push(s)
  5865. })
  5866. : a.push(o),
  5867. a
  5868. )
  5869. }),
  5870. (r.hasClass = function (n) {
  5871. var i = Ue(n)
  5872. return !!t[i.main]
  5873. }),
  5874. (r.getAllClassMainTypes = function () {
  5875. var n = []
  5876. return (
  5877. A(t, function (i, a) {
  5878. n.push(a)
  5879. }),
  5880. n
  5881. )
  5882. }),
  5883. (r.hasSubTypes = function (n) {
  5884. var i = Ue(n),
  5885. a = t[i.main]
  5886. return a && a[jr]
  5887. })
  5888. function e(n) {
  5889. var i = t[n.main]
  5890. return (!i || !i[jr]) && ((i = t[n.main] = {}), (i[jr] = !0)), i
  5891. }
  5892. }
  5893. function ta(r, t) {
  5894. for (var e = 0; e < r.length; e++) r[e][1] || (r[e][1] = r[e][0])
  5895. return (
  5896. (t = t || !1),
  5897. function (n, i, a) {
  5898. for (var o = {}, s = 0; s < r.length; s++) {
  5899. var l = r[s][1]
  5900. if (!((i && ot(i, l) >= 0) || (a && ot(a, l) < 0))) {
  5901. var u = n.getShallow(l, t)
  5902. u != null && (o[r[s][0]] = u)
  5903. }
  5904. }
  5905. return o
  5906. }
  5907. )
  5908. }
  5909. var Ab = [
  5910. ['fill', 'color'],
  5911. ['shadowBlur'],
  5912. ['shadowOffsetX'],
  5913. ['shadowOffsetY'],
  5914. ['opacity'],
  5915. ['shadowColor']
  5916. ],
  5917. Mb = ta(Ab),
  5918. Db = (function () {
  5919. function r() {}
  5920. return (
  5921. (r.prototype.getAreaStyle = function (t, e) {
  5922. return Mb(this, t, e)
  5923. }),
  5924. r
  5925. )
  5926. })(),
  5927. Iu = new zi(50)
  5928. function Ib(r) {
  5929. if (typeof r == 'string') {
  5930. var t = Iu.get(r)
  5931. return t && t.image
  5932. } else return r
  5933. }
  5934. function ld(r, t, e, n, i) {
  5935. if (r)
  5936. if (typeof r == 'string') {
  5937. if ((t && t.__zrImageSrc === r) || !e) return t
  5938. var a = Iu.get(r),
  5939. o = { hostEl: e, cb: n, cbPayload: i }
  5940. return (
  5941. a
  5942. ? ((t = a.image), !Fo(t) && a.pending.push(o))
  5943. : ((t = kn.loadImage(r, ud, ud)),
  5944. (t.__zrImageSrc = r),
  5945. Iu.put(r, (t.__cachedImgObj = { image: t, pending: [o] }))),
  5946. t
  5947. )
  5948. } else return r
  5949. else return t
  5950. }
  5951. function ud() {
  5952. var r = this.__cachedImgObj
  5953. this.onload = this.onerror = this.__cachedImgObj = null
  5954. for (var t = 0; t < r.pending.length; t++) {
  5955. var e = r.pending[t],
  5956. n = e.cb
  5957. n && n(this, e.cbPayload), e.hostEl.dirty()
  5958. }
  5959. r.pending.length = 0
  5960. }
  5961. function Fo(r) {
  5962. return r && r.width && r.height
  5963. }
  5964. var Lu = /\{([a-zA-Z0-9_]+)\|([^}]*)\}/g
  5965. function Lb(r, t, e, n, i) {
  5966. if (!t) return ''
  5967. var a = (r + '').split(`
  5968. `)
  5969. i = fd(t, e, n, i)
  5970. for (var o = 0, s = a.length; o < s; o++) a[o] = hd(a[o], i)
  5971. return a.join(`
  5972. `)
  5973. }
  5974. function fd(r, t, e, n) {
  5975. n = n || {}
  5976. var i = N({}, n)
  5977. ;(i.font = t), (e = ht(e, '...')), (i.maxIterations = ht(n.maxIterations, 2))
  5978. var a = (i.minChar = ht(n.minChar, 0))
  5979. i.cnCharWidth = oe('\u56FD', t)
  5980. var o = (i.ascCharWidth = oe('a', t))
  5981. i.placeholder = ht(n.placeholder, '')
  5982. for (var s = (r = Math.max(0, r - 1)), l = 0; l < a && s >= o; l++) s -= o
  5983. var u = oe(e, t)
  5984. return (
  5985. u > s && ((e = ''), (u = 0)),
  5986. (s = r - u),
  5987. (i.ellipsis = e),
  5988. (i.ellipsisWidth = u),
  5989. (i.contentWidth = s),
  5990. (i.containerWidth = r),
  5991. i
  5992. )
  5993. }
  5994. function hd(r, t) {
  5995. var e = t.containerWidth,
  5996. n = t.font,
  5997. i = t.contentWidth
  5998. if (!e) return ''
  5999. var a = oe(r, n)
  6000. if (a <= e) return r
  6001. for (var o = 0; ; o++) {
  6002. if (a <= i || o >= t.maxIterations) {
  6003. r += t.ellipsis
  6004. break
  6005. }
  6006. var s =
  6007. o === 0
  6008. ? Pb(r, i, t.ascCharWidth, t.cnCharWidth)
  6009. : a > 0
  6010. ? Math.floor((r.length * i) / a)
  6011. : 0
  6012. ;(r = r.substr(0, s)), (a = oe(r, n))
  6013. }
  6014. return r === '' && (r = t.placeholder), r
  6015. }
  6016. function Pb(r, t, e, n) {
  6017. for (var i = 0, a = 0, o = r.length; a < o && i < t; a++) {
  6018. var s = r.charCodeAt(a)
  6019. i += 0 <= s && s <= 127 ? e : n
  6020. }
  6021. return a
  6022. }
  6023. function Rb(r, t) {
  6024. r != null && (r += '')
  6025. var e = t.overflow,
  6026. n = t.padding,
  6027. i = t.font,
  6028. a = e === 'truncate',
  6029. o = yu(i),
  6030. s = ht(t.lineHeight, o),
  6031. l = !!t.backgroundColor,
  6032. u = t.lineOverflow === 'truncate',
  6033. f = t.width,
  6034. h
  6035. f != null && (e === 'break' || e === 'breakAll')
  6036. ? (h = r ? cd(r, t.font, f, e === 'breakAll', 0).lines : [])
  6037. : (h = r
  6038. ? r.split(`
  6039. `)
  6040. : [])
  6041. var c = h.length * s,
  6042. v = ht(t.height, c)
  6043. if (c > v && u) {
  6044. var d = Math.floor(v / s)
  6045. h = h.slice(0, d)
  6046. }
  6047. if (r && a && f != null)
  6048. for (
  6049. var p = fd(f, i, t.ellipsis, {
  6050. minChar: t.truncateMinChar,
  6051. placeholder: t.placeholder
  6052. }),
  6053. g = 0;
  6054. g < h.length;
  6055. g++
  6056. )
  6057. h[g] = hd(h[g], p)
  6058. for (var m = v, y = 0, g = 0; g < h.length; g++) y = Math.max(oe(h[g], i), y)
  6059. f == null && (f = y)
  6060. var _ = y
  6061. return (
  6062. n && ((m += n[0] + n[2]), (_ += n[1] + n[3]), (f += n[1] + n[3])),
  6063. l && (_ = f),
  6064. {
  6065. lines: h,
  6066. height: v,
  6067. outerWidth: _,
  6068. outerHeight: m,
  6069. lineHeight: s,
  6070. calculatedLineHeight: o,
  6071. contentWidth: y,
  6072. contentHeight: c,
  6073. width: f
  6074. }
  6075. )
  6076. }
  6077. var Eb = (function () {
  6078. function r() {}
  6079. return r
  6080. })(),
  6081. vd = (function () {
  6082. function r(t) {
  6083. ;(this.tokens = []), t && (this.tokens = t)
  6084. }
  6085. return r
  6086. })(),
  6087. Ob = (function () {
  6088. function r() {
  6089. ;(this.width = 0),
  6090. (this.height = 0),
  6091. (this.contentWidth = 0),
  6092. (this.contentHeight = 0),
  6093. (this.outerWidth = 0),
  6094. (this.outerHeight = 0),
  6095. (this.lines = [])
  6096. }
  6097. return r
  6098. })()
  6099. function kb(r, t) {
  6100. var e = new Ob()
  6101. if ((r != null && (r += ''), !r)) return e
  6102. for (
  6103. var n = t.width,
  6104. i = t.height,
  6105. a = t.overflow,
  6106. o =
  6107. (a === 'break' || a === 'breakAll') && n != null
  6108. ? { width: n, accumWidth: 0, breakAll: a === 'breakAll' }
  6109. : null,
  6110. s = (Lu.lastIndex = 0),
  6111. l;
  6112. (l = Lu.exec(r)) != null;
  6113. ) {
  6114. var u = l.index
  6115. u > s && Pu(e, r.substring(s, u), t, o),
  6116. Pu(e, l[2], t, o, l[1]),
  6117. (s = Lu.lastIndex)
  6118. }
  6119. s < r.length && Pu(e, r.substring(s, r.length), t, o)
  6120. var f = [],
  6121. h = 0,
  6122. c = 0,
  6123. v = t.padding,
  6124. d = a === 'truncate',
  6125. p = t.lineOverflow === 'truncate'
  6126. function g(k, F, H) {
  6127. ;(k.width = F), (k.lineHeight = H), (h += H), (c = Math.max(c, F))
  6128. }
  6129. t: for (var m = 0; m < e.lines.length; m++) {
  6130. for (var y = e.lines[m], _ = 0, S = 0, w = 0; w < y.tokens.length; w++) {
  6131. var x = y.tokens[w],
  6132. b = (x.styleName && t.rich[x.styleName]) || {},
  6133. T = (x.textPadding = b.padding),
  6134. C = T ? T[1] + T[3] : 0,
  6135. M = (x.font = b.font || t.font)
  6136. x.contentHeight = yu(M)
  6137. var D = ht(b.height, x.contentHeight)
  6138. if (
  6139. ((x.innerHeight = D),
  6140. T && (D += T[0] + T[2]),
  6141. (x.height = D),
  6142. (x.lineHeight = Oi(b.lineHeight, t.lineHeight, D)),
  6143. (x.align = (b && b.align) || t.align),
  6144. (x.verticalAlign = (b && b.verticalAlign) || 'middle'),
  6145. p && i != null && h + x.lineHeight > i)
  6146. ) {
  6147. w > 0
  6148. ? ((y.tokens = y.tokens.slice(0, w)),
  6149. g(y, S, _),
  6150. (e.lines = e.lines.slice(0, m + 1)))
  6151. : (e.lines = e.lines.slice(0, m))
  6152. break t
  6153. }
  6154. var I = b.width,
  6155. L = I == null || I === 'auto'
  6156. if (typeof I == 'string' && I.charAt(I.length - 1) === '%')
  6157. (x.percentWidth = I), f.push(x), (x.contentWidth = oe(x.text, M))
  6158. else {
  6159. if (L) {
  6160. var P = b.backgroundColor,
  6161. R = P && P.image
  6162. R &&
  6163. ((R = Ib(R)),
  6164. Fo(R) && (x.width = Math.max(x.width, (R.width * D) / R.height)))
  6165. }
  6166. var O = d && n != null ? n - S : null
  6167. O != null && O < x.width
  6168. ? !L || O < C
  6169. ? ((x.text = ''), (x.width = x.contentWidth = 0))
  6170. : ((x.text = Lb(x.text, O - C, M, t.ellipsis, {
  6171. minChar: t.truncateMinChar
  6172. })),
  6173. (x.width = x.contentWidth = oe(x.text, M)))
  6174. : (x.contentWidth = oe(x.text, M))
  6175. }
  6176. ;(x.width += C), (S += x.width), b && (_ = Math.max(_, x.lineHeight))
  6177. }
  6178. g(y, S, _)
  6179. }
  6180. ;(e.outerWidth = e.width = ht(n, c)),
  6181. (e.outerHeight = e.height = ht(i, h)),
  6182. (e.contentHeight = h),
  6183. (e.contentWidth = c),
  6184. v && ((e.outerWidth += v[1] + v[3]), (e.outerHeight += v[0] + v[2]))
  6185. for (var m = 0; m < f.length; m++) {
  6186. var x = f[m],
  6187. U = x.percentWidth
  6188. x.width = (parseInt(U, 10) / 100) * e.width
  6189. }
  6190. return e
  6191. }
  6192. function Pu(r, t, e, n, i) {
  6193. var a = t === '',
  6194. o = (i && e.rich[i]) || {},
  6195. s = r.lines,
  6196. l = o.font || e.font,
  6197. u = !1,
  6198. f,
  6199. h
  6200. if (n) {
  6201. var c = o.padding,
  6202. v = c ? c[1] + c[3] : 0
  6203. if (o.width != null && o.width !== 'auto') {
  6204. var d = Cr(o.width, n.width) + v
  6205. s.length > 0 &&
  6206. d + n.accumWidth > n.width &&
  6207. ((f = t.split(`
  6208. `)),
  6209. (u = !0)),
  6210. (n.accumWidth = d)
  6211. } else {
  6212. var p = cd(t, l, n.width, n.breakAll, n.accumWidth)
  6213. ;(n.accumWidth = p.accumWidth + v), (h = p.linesWidths), (f = p.lines)
  6214. }
  6215. } else
  6216. f = t.split(`
  6217. `)
  6218. for (var g = 0; g < f.length; g++) {
  6219. var m = f[g],
  6220. y = new Eb()
  6221. if (
  6222. ((y.styleName = i),
  6223. (y.text = m),
  6224. (y.isLineHolder = !m && !a),
  6225. typeof o.width == 'number'
  6226. ? (y.width = o.width)
  6227. : (y.width = h ? h[g] : oe(m, l)),
  6228. !g && !u)
  6229. ) {
  6230. var _ = (s[s.length - 1] || (s[0] = new vd())).tokens,
  6231. S = _.length
  6232. S === 1 && _[0].isLineHolder ? (_[0] = y) : (m || !S || a) && _.push(y)
  6233. } else s.push(new vd([y]))
  6234. }
  6235. }
  6236. function Bb(r) {
  6237. var t = r.charCodeAt(0)
  6238. return t >= 33 && t <= 383
  6239. }
  6240. var Nb = Sr(
  6241. ',&?/;] '.split(''),
  6242. function (r, t) {
  6243. return (r[t] = !0), r
  6244. },
  6245. {}
  6246. )
  6247. function Fb(r) {
  6248. return Bb(r) ? !!Nb[r] : !0
  6249. }
  6250. function cd(r, t, e, n, i) {
  6251. for (
  6252. var a = [], o = [], s = '', l = '', u = 0, f = 0, h = 0;
  6253. h < r.length;
  6254. h++
  6255. ) {
  6256. var c = r.charAt(h)
  6257. if (
  6258. c ===
  6259. `
  6260. `
  6261. ) {
  6262. l && ((s += l), (f += u)),
  6263. a.push(s),
  6264. o.push(f),
  6265. (s = ''),
  6266. (l = ''),
  6267. (u = 0),
  6268. (f = 0)
  6269. continue
  6270. }
  6271. var v = oe(c, t),
  6272. d = n ? !1 : !Fb(c)
  6273. if (a.length ? f + v > e : i + f + v > e) {
  6274. f
  6275. ? (s || l) &&
  6276. (d
  6277. ? (s || ((s = l), (l = ''), (u = 0), (f = u)),
  6278. a.push(s),
  6279. o.push(f - u),
  6280. (l += c),
  6281. (u += v),
  6282. (s = ''),
  6283. (f = u))
  6284. : (l && ((s += l), (l = ''), (u = 0)),
  6285. a.push(s),
  6286. o.push(f),
  6287. (s = c),
  6288. (f = v)))
  6289. : d
  6290. ? (a.push(l), o.push(u), (l = c), (u = v))
  6291. : (a.push(c), o.push(v))
  6292. continue
  6293. }
  6294. ;(f += v),
  6295. d ? ((l += c), (u += v)) : (l && ((s += l), (l = ''), (u = 0)), (s += c))
  6296. }
  6297. return (
  6298. !a.length && !s && ((s = r), (l = ''), (u = 0)),
  6299. l && (s += l),
  6300. s && (a.push(s), o.push(f)),
  6301. a.length === 1 && (f += i),
  6302. { accumWidth: f, lines: a, linesWidths: o }
  6303. )
  6304. }
  6305. var Ru = '__zr_style_' + Math.round(Math.random() * 10),
  6306. tn = {
  6307. shadowBlur: 0,
  6308. shadowOffsetX: 0,
  6309. shadowOffsetY: 0,
  6310. shadowColor: '#000',
  6311. opacity: 1,
  6312. blend: 'source-over'
  6313. },
  6314. zo = {
  6315. style: {
  6316. shadowBlur: !0,
  6317. shadowOffsetX: !0,
  6318. shadowOffsetY: !0,
  6319. shadowColor: !0,
  6320. opacity: !0
  6321. }
  6322. }
  6323. tn[Ru] = !0
  6324. var dd = ['z', 'z2', 'invisible'],
  6325. zb = ['invisible'],
  6326. Vb = (function (r) {
  6327. B(t, r)
  6328. function t(e) {
  6329. return r.call(this, e) || this
  6330. }
  6331. return (
  6332. (t.prototype._init = function (e) {
  6333. for (var n = xt(e), i = 0; i < n.length; i++) {
  6334. var a = n[i]
  6335. a === 'style'
  6336. ? this.useStyle(e[a])
  6337. : r.prototype.attrKV.call(this, a, e[a])
  6338. }
  6339. this.style || this.useStyle({})
  6340. }),
  6341. (t.prototype.beforeBrush = function () {}),
  6342. (t.prototype.afterBrush = function () {}),
  6343. (t.prototype.innerBeforeBrush = function () {}),
  6344. (t.prototype.innerAfterBrush = function () {}),
  6345. (t.prototype.shouldBePainted = function (e, n, i, a) {
  6346. var o = this.transform
  6347. if (
  6348. this.ignore ||
  6349. this.invisible ||
  6350. this.style.opacity === 0 ||
  6351. (this.culling && Gb(this, e, n)) ||
  6352. (o && !o[0] && !o[3])
  6353. )
  6354. return !1
  6355. if (i && this.__clipPaths) {
  6356. for (var s = 0; s < this.__clipPaths.length; ++s)
  6357. if (this.__clipPaths[s].isZeroArea()) return !1
  6358. }
  6359. if (a && this.parent)
  6360. for (var l = this.parent; l; ) {
  6361. if (l.ignore) return !1
  6362. l = l.parent
  6363. }
  6364. return !0
  6365. }),
  6366. (t.prototype.contain = function (e, n) {
  6367. return this.rectContain(e, n)
  6368. }),
  6369. (t.prototype.traverse = function (e, n) {
  6370. e.call(n, this)
  6371. }),
  6372. (t.prototype.rectContain = function (e, n) {
  6373. var i = this.transformCoordToLocal(e, n),
  6374. a = this.getBoundingRect()
  6375. return a.contain(i[0], i[1])
  6376. }),
  6377. (t.prototype.getPaintRect = function () {
  6378. var e = this._paintRect
  6379. if (!this._paintRect || this.__dirty) {
  6380. var n = this.transform,
  6381. i = this.getBoundingRect(),
  6382. a = this.style,
  6383. o = a.shadowBlur || 0,
  6384. s = a.shadowOffsetX || 0,
  6385. l = a.shadowOffsetY || 0
  6386. ;(e = this._paintRect || (this._paintRect = new vt(0, 0, 0, 0))),
  6387. n ? vt.applyTransform(e, i, n) : e.copy(i),
  6388. (o || s || l) &&
  6389. ((e.width += o * 2 + Math.abs(s)),
  6390. (e.height += o * 2 + Math.abs(l)),
  6391. (e.x = Math.min(e.x, e.x + s - o)),
  6392. (e.y = Math.min(e.y, e.y + l - o)))
  6393. var u = this.dirtyRectTolerance
  6394. e.isZero() ||
  6395. ((e.x = Math.floor(e.x - u)),
  6396. (e.y = Math.floor(e.y - u)),
  6397. (e.width = Math.ceil(e.width + 1 + u * 2)),
  6398. (e.height = Math.ceil(e.height + 1 + u * 2)))
  6399. }
  6400. return e
  6401. }),
  6402. (t.prototype.setPrevPaintRect = function (e) {
  6403. e
  6404. ? ((this._prevPaintRect = this._prevPaintRect || new vt(0, 0, 0, 0)),
  6405. this._prevPaintRect.copy(e))
  6406. : (this._prevPaintRect = null)
  6407. }),
  6408. (t.prototype.getPrevPaintRect = function () {
  6409. return this._prevPaintRect
  6410. }),
  6411. (t.prototype.animateStyle = function (e) {
  6412. return this.animate('style', e)
  6413. }),
  6414. (t.prototype.updateDuringAnimation = function (e) {
  6415. e === 'style' ? this.dirtyStyle() : this.markRedraw()
  6416. }),
  6417. (t.prototype.attrKV = function (e, n) {
  6418. e !== 'style'
  6419. ? r.prototype.attrKV.call(this, e, n)
  6420. : this.style
  6421. ? this.setStyle(n)
  6422. : this.useStyle(n)
  6423. }),
  6424. (t.prototype.setStyle = function (e, n) {
  6425. return (
  6426. typeof e == 'string' ? (this.style[e] = n) : N(this.style, e),
  6427. this.dirtyStyle(),
  6428. this
  6429. )
  6430. }),
  6431. (t.prototype.dirtyStyle = function (e) {
  6432. e || this.markRedraw(),
  6433. (this.__dirty |= Fi),
  6434. this._rect && (this._rect = null)
  6435. }),
  6436. (t.prototype.dirty = function () {
  6437. this.dirtyStyle()
  6438. }),
  6439. (t.prototype.styleChanged = function () {
  6440. return !!(this.__dirty & Fi)
  6441. }),
  6442. (t.prototype.styleUpdated = function () {
  6443. this.__dirty &= ~Fi
  6444. }),
  6445. (t.prototype.createStyle = function (e) {
  6446. return so(tn, e)
  6447. }),
  6448. (t.prototype.useStyle = function (e) {
  6449. e[Ru] || (e = this.createStyle(e)),
  6450. this.__inHover ? (this.__hoverStyle = e) : (this.style = e),
  6451. this.dirtyStyle()
  6452. }),
  6453. (t.prototype.isStyleObject = function (e) {
  6454. return e[Ru]
  6455. }),
  6456. (t.prototype._innerSaveToNormal = function (e) {
  6457. r.prototype._innerSaveToNormal.call(this, e)
  6458. var n = this._normalState
  6459. e.style &&
  6460. !n.style &&
  6461. (n.style = this._mergeStyle(this.createStyle(), this.style)),
  6462. this._savePrimaryToNormal(e, n, dd)
  6463. }),
  6464. (t.prototype._applyStateObj = function (e, n, i, a, o, s) {
  6465. r.prototype._applyStateObj.call(this, e, n, i, a, o, s)
  6466. var l = !(n && a),
  6467. u
  6468. if (
  6469. (n && n.style
  6470. ? o
  6471. ? a
  6472. ? (u = n.style)
  6473. : ((u = this._mergeStyle(this.createStyle(), i.style)),
  6474. this._mergeStyle(u, n.style))
  6475. : ((u = this._mergeStyle(
  6476. this.createStyle(),
  6477. a ? this.style : i.style
  6478. )),
  6479. this._mergeStyle(u, n.style))
  6480. : l && (u = i.style),
  6481. u)
  6482. )
  6483. if (o) {
  6484. var f = this.style
  6485. if (((this.style = this.createStyle(l ? {} : f)), l))
  6486. for (var h = xt(f), c = 0; c < h.length; c++) {
  6487. var v = h[c]
  6488. v in u && ((u[v] = u[v]), (this.style[v] = f[v]))
  6489. }
  6490. for (var d = xt(u), c = 0; c < d.length; c++) {
  6491. var v = d[c]
  6492. this.style[v] = this.style[v]
  6493. }
  6494. this._transitionState(
  6495. e,
  6496. { style: u },
  6497. s,
  6498. this.getAnimationStyleProps()
  6499. )
  6500. } else this.useStyle(u)
  6501. for (var p = this.__inHover ? zb : dd, c = 0; c < p.length; c++) {
  6502. var v = p[c]
  6503. n && n[v] != null
  6504. ? (this[v] = n[v])
  6505. : l && i[v] != null && (this[v] = i[v])
  6506. }
  6507. }),
  6508. (t.prototype._mergeStates = function (e) {
  6509. for (
  6510. var n = r.prototype._mergeStates.call(this, e), i, a = 0;
  6511. a < e.length;
  6512. a++
  6513. ) {
  6514. var o = e[a]
  6515. o.style && ((i = i || {}), this._mergeStyle(i, o.style))
  6516. }
  6517. return i && (n.style = i), n
  6518. }),
  6519. (t.prototype._mergeStyle = function (e, n) {
  6520. return N(e, n), e
  6521. }),
  6522. (t.prototype.getAnimationStyleProps = function () {
  6523. return zo
  6524. }),
  6525. (t.initDefaultProps = (function () {
  6526. var e = t.prototype
  6527. ;(e.type = 'displayable'),
  6528. (e.invisible = !1),
  6529. (e.z = 0),
  6530. (e.z2 = 0),
  6531. (e.zlevel = 0),
  6532. (e.culling = !1),
  6533. (e.cursor = 'pointer'),
  6534. (e.rectHover = !1),
  6535. (e.incremental = !1),
  6536. (e._rect = null),
  6537. (e.dirtyRectTolerance = 0),
  6538. (e.__dirty = ae | Fi)
  6539. })()),
  6540. t
  6541. )
  6542. })(Gc),
  6543. Eu = new vt(0, 0, 0, 0),
  6544. Ou = new vt(0, 0, 0, 0)
  6545. function Gb(r, t, e) {
  6546. return (
  6547. Eu.copy(r.getBoundingRect()),
  6548. r.transform && Eu.applyTransform(r.transform),
  6549. (Ou.width = t),
  6550. (Ou.height = e),
  6551. !Eu.intersect(Ou)
  6552. )
  6553. }
  6554. var Qn = Vb,
  6555. jt = Math.min,
  6556. te = Math.max,
  6557. ku = Math.sin,
  6558. Bu = Math.cos,
  6559. en = Math.PI * 2,
  6560. Vo = Nn(),
  6561. Go = Nn(),
  6562. Ho = Nn()
  6563. function pd(r, t, e) {
  6564. if (r.length !== 0) {
  6565. for (
  6566. var n = r[0], i = n[0], a = n[0], o = n[1], s = n[1], l = 1;
  6567. l < r.length;
  6568. l++
  6569. )
  6570. (n = r[l]),
  6571. (i = jt(i, n[0])),
  6572. (a = te(a, n[0])),
  6573. (o = jt(o, n[1])),
  6574. (s = te(s, n[1]))
  6575. ;(t[0] = i), (t[1] = o), (e[0] = a), (e[1] = s)
  6576. }
  6577. }
  6578. function gd(r, t, e, n, i, a) {
  6579. ;(i[0] = jt(r, e)), (i[1] = jt(t, n)), (a[0] = te(r, e)), (a[1] = te(t, n))
  6580. }
  6581. var md = [],
  6582. yd = []
  6583. function Hb(r, t, e, n, i, a, o, s, l, u) {
  6584. var f = gc,
  6585. h = Rt,
  6586. c = f(r, e, i, o, md)
  6587. ;(l[0] = 1 / 0), (l[1] = 1 / 0), (u[0] = -1 / 0), (u[1] = -1 / 0)
  6588. for (var v = 0; v < c; v++) {
  6589. var d = h(r, e, i, o, md[v])
  6590. ;(l[0] = jt(d, l[0])), (u[0] = te(d, u[0]))
  6591. }
  6592. c = f(t, n, a, s, yd)
  6593. for (var v = 0; v < c; v++) {
  6594. var p = h(t, n, a, s, yd[v])
  6595. ;(l[1] = jt(p, l[1])), (u[1] = te(p, u[1]))
  6596. }
  6597. ;(l[0] = jt(r, l[0])),
  6598. (u[0] = te(r, u[0])),
  6599. (l[0] = jt(o, l[0])),
  6600. (u[0] = te(o, u[0])),
  6601. (l[1] = jt(t, l[1])),
  6602. (u[1] = te(t, u[1])),
  6603. (l[1] = jt(s, l[1])),
  6604. (u[1] = te(s, u[1]))
  6605. }
  6606. function Wb(r, t, e, n, i, a, o, s) {
  6607. var l = _c,
  6608. u = Gt,
  6609. f = te(jt(l(r, e, i), 1), 0),
  6610. h = te(jt(l(t, n, a), 1), 0),
  6611. c = u(r, e, i, f),
  6612. v = u(t, n, a, h)
  6613. ;(o[0] = jt(r, i, c)),
  6614. (o[1] = jt(t, a, v)),
  6615. (s[0] = te(r, i, c)),
  6616. (s[1] = te(t, a, v))
  6617. }
  6618. function Ub(r, t, e, n, i, a, o, s, l) {
  6619. var u = zn,
  6620. f = Vn,
  6621. h = Math.abs(i - a)
  6622. if (h % en < 1e-4 && h > 1e-4) {
  6623. ;(s[0] = r - e), (s[1] = t - n), (l[0] = r + e), (l[1] = t + n)
  6624. return
  6625. }
  6626. if (
  6627. ((Vo[0] = Bu(i) * e + r),
  6628. (Vo[1] = ku(i) * n + t),
  6629. (Go[0] = Bu(a) * e + r),
  6630. (Go[1] = ku(a) * n + t),
  6631. u(s, Vo, Go),
  6632. f(l, Vo, Go),
  6633. (i = i % en),
  6634. i < 0 && (i = i + en),
  6635. (a = a % en),
  6636. a < 0 && (a = a + en),
  6637. i > a && !o ? (a += en) : i < a && o && (i += en),
  6638. o)
  6639. ) {
  6640. var c = a
  6641. ;(a = i), (i = c)
  6642. }
  6643. for (var v = 0; v < a; v += Math.PI / 2)
  6644. v > i &&
  6645. ((Ho[0] = Bu(v) * e + r),
  6646. (Ho[1] = ku(v) * n + t),
  6647. u(s, Ho, s),
  6648. f(l, Ho, l))
  6649. }
  6650. var pt = { M: 1, L: 2, C: 3, Q: 4, A: 5, Z: 6, R: 7 },
  6651. rn = [],
  6652. nn = [],
  6653. Ye = [],
  6654. Mr = [],
  6655. Ze = [],
  6656. $e = [],
  6657. Nu = Math.min,
  6658. Fu = Math.max,
  6659. an = Math.cos,
  6660. on = Math.sin,
  6661. lr = Math.abs,
  6662. zu = Math.PI,
  6663. Dr = zu * 2,
  6664. Vu = typeof Float32Array != 'undefined',
  6665. ea = []
  6666. function Gu(r) {
  6667. var t = Math.round((r / zu) * 1e8) / 1e8
  6668. return (t % 2) * zu
  6669. }
  6670. function Yb(r, t) {
  6671. var e = Gu(r[0])
  6672. e < 0 && (e += Dr)
  6673. var n = e - r[0],
  6674. i = r[1]
  6675. ;(i += n),
  6676. !t && i - e >= Dr
  6677. ? (i = e + Dr)
  6678. : t && e - i >= Dr
  6679. ? (i = e - Dr)
  6680. : !t && e > i
  6681. ? (i = e + (Dr - Gu(e - i)))
  6682. : t && e < i && (i = e - (Dr - Gu(i - e))),
  6683. (r[0] = e),
  6684. (r[1] = i)
  6685. }
  6686. var Zb = (function () {
  6687. function r(t) {
  6688. ;(this.dpr = 1),
  6689. (this._xi = 0),
  6690. (this._yi = 0),
  6691. (this._x0 = 0),
  6692. (this._y0 = 0),
  6693. (this._len = 0),
  6694. t && (this._saveData = !1),
  6695. this._saveData && (this.data = [])
  6696. }
  6697. return (
  6698. (r.prototype.increaseVersion = function () {
  6699. this._version++
  6700. }),
  6701. (r.prototype.getVersion = function () {
  6702. return this._version
  6703. }),
  6704. (r.prototype.setScale = function (t, e, n) {
  6705. ;(n = n || 0),
  6706. n > 0 &&
  6707. ((this._ux = lr(n / Io / t) || 0), (this._uy = lr(n / Io / e) || 0))
  6708. }),
  6709. (r.prototype.setDPR = function (t) {
  6710. this.dpr = t
  6711. }),
  6712. (r.prototype.setContext = function (t) {
  6713. this._ctx = t
  6714. }),
  6715. (r.prototype.getContext = function () {
  6716. return this._ctx
  6717. }),
  6718. (r.prototype.beginPath = function () {
  6719. return this._ctx && this._ctx.beginPath(), this.reset(), this
  6720. }),
  6721. (r.prototype.reset = function () {
  6722. this._saveData && (this._len = 0),
  6723. this._pathSegLen && ((this._pathSegLen = null), (this._pathLen = 0)),
  6724. this._version++
  6725. }),
  6726. (r.prototype.moveTo = function (t, e) {
  6727. return (
  6728. this._drawPendingPt(),
  6729. this.addData(pt.M, t, e),
  6730. this._ctx && this._ctx.moveTo(t, e),
  6731. (this._x0 = t),
  6732. (this._y0 = e),
  6733. (this._xi = t),
  6734. (this._yi = e),
  6735. this
  6736. )
  6737. }),
  6738. (r.prototype.lineTo = function (t, e) {
  6739. var n = lr(t - this._xi),
  6740. i = lr(e - this._yi),
  6741. a = n > this._ux || i > this._uy
  6742. if (
  6743. (this.addData(pt.L, t, e),
  6744. this._ctx && a && this._ctx.lineTo(t, e),
  6745. a)
  6746. )
  6747. (this._xi = t), (this._yi = e), (this._pendingPtDist = 0)
  6748. else {
  6749. var o = n * n + i * i
  6750. o > this._pendingPtDist &&
  6751. ((this._pendingPtX = t),
  6752. (this._pendingPtY = e),
  6753. (this._pendingPtDist = o))
  6754. }
  6755. return this
  6756. }),
  6757. (r.prototype.bezierCurveTo = function (t, e, n, i, a, o) {
  6758. return (
  6759. this._drawPendingPt(),
  6760. this.addData(pt.C, t, e, n, i, a, o),
  6761. this._ctx && this._ctx.bezierCurveTo(t, e, n, i, a, o),
  6762. (this._xi = a),
  6763. (this._yi = o),
  6764. this
  6765. )
  6766. }),
  6767. (r.prototype.quadraticCurveTo = function (t, e, n, i) {
  6768. return (
  6769. this._drawPendingPt(),
  6770. this.addData(pt.Q, t, e, n, i),
  6771. this._ctx && this._ctx.quadraticCurveTo(t, e, n, i),
  6772. (this._xi = n),
  6773. (this._yi = i),
  6774. this
  6775. )
  6776. }),
  6777. (r.prototype.arc = function (t, e, n, i, a, o) {
  6778. this._drawPendingPt(),
  6779. (ea[0] = i),
  6780. (ea[1] = a),
  6781. Yb(ea, o),
  6782. (i = ea[0]),
  6783. (a = ea[1])
  6784. var s = a - i
  6785. return (
  6786. this.addData(pt.A, t, e, n, n, i, s, 0, o ? 0 : 1),
  6787. this._ctx && this._ctx.arc(t, e, n, i, a, o),
  6788. (this._xi = an(a) * n + t),
  6789. (this._yi = on(a) * n + e),
  6790. this
  6791. )
  6792. }),
  6793. (r.prototype.arcTo = function (t, e, n, i, a) {
  6794. return (
  6795. this._drawPendingPt(),
  6796. this._ctx && this._ctx.arcTo(t, e, n, i, a),
  6797. this
  6798. )
  6799. }),
  6800. (r.prototype.rect = function (t, e, n, i) {
  6801. return (
  6802. this._drawPendingPt(),
  6803. this._ctx && this._ctx.rect(t, e, n, i),
  6804. this.addData(pt.R, t, e, n, i),
  6805. this
  6806. )
  6807. }),
  6808. (r.prototype.closePath = function () {
  6809. this._drawPendingPt(), this.addData(pt.Z)
  6810. var t = this._ctx,
  6811. e = this._x0,
  6812. n = this._y0
  6813. return t && t.closePath(), (this._xi = e), (this._yi = n), this
  6814. }),
  6815. (r.prototype.fill = function (t) {
  6816. t && t.fill(), this.toStatic()
  6817. }),
  6818. (r.prototype.stroke = function (t) {
  6819. t && t.stroke(), this.toStatic()
  6820. }),
  6821. (r.prototype.len = function () {
  6822. return this._len
  6823. }),
  6824. (r.prototype.setData = function (t) {
  6825. var e = t.length
  6826. !(this.data && this.data.length === e) &&
  6827. Vu &&
  6828. (this.data = new Float32Array(e))
  6829. for (var n = 0; n < e; n++) this.data[n] = t[n]
  6830. this._len = e
  6831. }),
  6832. (r.prototype.appendPath = function (t) {
  6833. t instanceof Array || (t = [t])
  6834. for (var e = t.length, n = 0, i = this._len, a = 0; a < e; a++)
  6835. n += t[a].len()
  6836. Vu &&
  6837. this.data instanceof Float32Array &&
  6838. (this.data = new Float32Array(i + n))
  6839. for (var a = 0; a < e; a++)
  6840. for (var o = t[a].data, s = 0; s < o.length; s++)
  6841. this.data[i++] = o[s]
  6842. this._len = i
  6843. }),
  6844. (r.prototype.addData = function (t, e, n, i, a, o, s, l, u) {
  6845. if (!!this._saveData) {
  6846. var f = this.data
  6847. this._len + arguments.length > f.length &&
  6848. (this._expandData(), (f = this.data))
  6849. for (var h = 0; h < arguments.length; h++)
  6850. f[this._len++] = arguments[h]
  6851. }
  6852. }),
  6853. (r.prototype._drawPendingPt = function () {
  6854. this._pendingPtDist > 0 &&
  6855. (this._ctx && this._ctx.lineTo(this._pendingPtX, this._pendingPtY),
  6856. (this._pendingPtDist = 0))
  6857. }),
  6858. (r.prototype._expandData = function () {
  6859. if (!(this.data instanceof Array)) {
  6860. for (var t = [], e = 0; e < this._len; e++) t[e] = this.data[e]
  6861. this.data = t
  6862. }
  6863. }),
  6864. (r.prototype.toStatic = function () {
  6865. if (!!this._saveData) {
  6866. this._drawPendingPt()
  6867. var t = this.data
  6868. t instanceof Array &&
  6869. ((t.length = this._len),
  6870. Vu && this._len > 11 && (this.data = new Float32Array(t)))
  6871. }
  6872. }),
  6873. (r.prototype.getBoundingRect = function () {
  6874. ;(Ye[0] = Ye[1] = Ze[0] = Ze[1] = Number.MAX_VALUE),
  6875. (Mr[0] = Mr[1] = $e[0] = $e[1] = -Number.MAX_VALUE)
  6876. var t = this.data,
  6877. e = 0,
  6878. n = 0,
  6879. i = 0,
  6880. a = 0,
  6881. o
  6882. for (o = 0; o < this._len; ) {
  6883. var s = t[o++],
  6884. l = o === 1
  6885. switch ((l && ((e = t[o]), (n = t[o + 1]), (i = e), (a = n)), s)) {
  6886. case pt.M:
  6887. ;(e = i = t[o++]),
  6888. (n = a = t[o++]),
  6889. (Ze[0] = i),
  6890. (Ze[1] = a),
  6891. ($e[0] = i),
  6892. ($e[1] = a)
  6893. break
  6894. case pt.L:
  6895. gd(e, n, t[o], t[o + 1], Ze, $e), (e = t[o++]), (n = t[o++])
  6896. break
  6897. case pt.C:
  6898. Hb(e, n, t[o++], t[o++], t[o++], t[o++], t[o], t[o + 1], Ze, $e),
  6899. (e = t[o++]),
  6900. (n = t[o++])
  6901. break
  6902. case pt.Q:
  6903. Wb(e, n, t[o++], t[o++], t[o], t[o + 1], Ze, $e),
  6904. (e = t[o++]),
  6905. (n = t[o++])
  6906. break
  6907. case pt.A:
  6908. var u = t[o++],
  6909. f = t[o++],
  6910. h = t[o++],
  6911. c = t[o++],
  6912. v = t[o++],
  6913. d = t[o++] + v
  6914. o += 1
  6915. var p = !t[o++]
  6916. l && ((i = an(v) * h + u), (a = on(v) * c + f)),
  6917. Ub(u, f, h, c, v, d, p, Ze, $e),
  6918. (e = an(d) * h + u),
  6919. (n = on(d) * c + f)
  6920. break
  6921. case pt.R:
  6922. ;(i = e = t[o++]), (a = n = t[o++])
  6923. var g = t[o++],
  6924. m = t[o++]
  6925. gd(i, a, i + g, a + m, Ze, $e)
  6926. break
  6927. case pt.Z:
  6928. ;(e = i), (n = a)
  6929. break
  6930. }
  6931. zn(Ye, Ye, Ze), Vn(Mr, Mr, $e)
  6932. }
  6933. return (
  6934. o === 0 && (Ye[0] = Ye[1] = Mr[0] = Mr[1] = 0),
  6935. new vt(Ye[0], Ye[1], Mr[0] - Ye[0], Mr[1] - Ye[1])
  6936. )
  6937. }),
  6938. (r.prototype._calculateLength = function () {
  6939. var t = this.data,
  6940. e = this._len,
  6941. n = this._ux,
  6942. i = this._uy,
  6943. a = 0,
  6944. o = 0,
  6945. s = 0,
  6946. l = 0
  6947. this._pathSegLen || (this._pathSegLen = [])
  6948. for (var u = this._pathSegLen, f = 0, h = 0, c = 0; c < e; ) {
  6949. var v = t[c++],
  6950. d = c === 1
  6951. d && ((a = t[c]), (o = t[c + 1]), (s = a), (l = o))
  6952. var p = -1
  6953. switch (v) {
  6954. case pt.M:
  6955. ;(a = s = t[c++]), (o = l = t[c++])
  6956. break
  6957. case pt.L: {
  6958. var g = t[c++],
  6959. m = t[c++],
  6960. y = g - a,
  6961. _ = m - o
  6962. ;(lr(y) > n || lr(_) > i || c === e - 1) &&
  6963. ((p = Math.sqrt(y * y + _ * _)), (a = g), (o = m))
  6964. break
  6965. }
  6966. case pt.C: {
  6967. var S = t[c++],
  6968. w = t[c++],
  6969. g = t[c++],
  6970. m = t[c++],
  6971. x = t[c++],
  6972. b = t[c++]
  6973. ;(p = sw(a, o, S, w, g, m, x, b, 10)), (a = x), (o = b)
  6974. break
  6975. }
  6976. case pt.Q: {
  6977. var S = t[c++],
  6978. w = t[c++],
  6979. g = t[c++],
  6980. m = t[c++]
  6981. ;(p = uw(a, o, S, w, g, m, 10)), (a = g), (o = m)
  6982. break
  6983. }
  6984. case pt.A:
  6985. var T = t[c++],
  6986. C = t[c++],
  6987. M = t[c++],
  6988. D = t[c++],
  6989. I = t[c++],
  6990. L = t[c++],
  6991. P = L + I
  6992. ;(c += 1),
  6993. t[c++],
  6994. d && ((s = an(I) * M + T), (l = on(I) * D + C)),
  6995. (p = Fu(M, D) * Nu(Dr, Math.abs(L))),
  6996. (a = an(P) * M + T),
  6997. (o = on(P) * D + C)
  6998. break
  6999. case pt.R: {
  7000. ;(s = a = t[c++]), (l = o = t[c++])
  7001. var R = t[c++],
  7002. O = t[c++]
  7003. p = R * 2 + O * 2
  7004. break
  7005. }
  7006. case pt.Z: {
  7007. var y = s - a,
  7008. _ = l - o
  7009. ;(p = Math.sqrt(y * y + _ * _)), (a = s), (o = l)
  7010. break
  7011. }
  7012. }
  7013. p >= 0 && ((u[h++] = p), (f += p))
  7014. }
  7015. return (this._pathLen = f), f
  7016. }),
  7017. (r.prototype.rebuildPath = function (t, e) {
  7018. var n = this.data,
  7019. i = this._ux,
  7020. a = this._uy,
  7021. o = this._len,
  7022. s,
  7023. l,
  7024. u,
  7025. f,
  7026. h,
  7027. c,
  7028. v = e < 1,
  7029. d,
  7030. p,
  7031. g = 0,
  7032. m = 0,
  7033. y,
  7034. _ = 0,
  7035. S,
  7036. w
  7037. if (
  7038. v &&
  7039. (this._pathSegLen || this._calculateLength(),
  7040. (d = this._pathSegLen),
  7041. (p = this._pathLen),
  7042. (y = e * p),
  7043. !y)
  7044. )
  7045. return
  7046. t: for (var x = 0; x < o; ) {
  7047. var b = n[x++],
  7048. T = x === 1
  7049. switch (
  7050. (T && ((u = n[x]), (f = n[x + 1]), (s = u), (l = f)),
  7051. b !== pt.L && _ > 0 && (t.lineTo(S, w), (_ = 0)),
  7052. b)
  7053. ) {
  7054. case pt.M:
  7055. ;(s = u = n[x++]), (l = f = n[x++]), t.moveTo(u, f)
  7056. break
  7057. case pt.L: {
  7058. ;(h = n[x++]), (c = n[x++])
  7059. var C = lr(h - u),
  7060. M = lr(c - f)
  7061. if (C > i || M > a) {
  7062. if (v) {
  7063. var D = d[m++]
  7064. if (g + D > y) {
  7065. var I = (y - g) / D
  7066. t.lineTo(u * (1 - I) + h * I, f * (1 - I) + c * I)
  7067. break t
  7068. }
  7069. g += D
  7070. }
  7071. t.lineTo(h, c), (u = h), (f = c), (_ = 0)
  7072. } else {
  7073. var L = C * C + M * M
  7074. L > _ && ((S = h), (w = c), (_ = L))
  7075. }
  7076. break
  7077. }
  7078. case pt.C: {
  7079. var P = n[x++],
  7080. R = n[x++],
  7081. O = n[x++],
  7082. U = n[x++],
  7083. k = n[x++],
  7084. F = n[x++]
  7085. if (v) {
  7086. var D = d[m++]
  7087. if (g + D > y) {
  7088. var I = (y - g) / D
  7089. br(u, P, O, k, I, rn),
  7090. br(f, R, U, F, I, nn),
  7091. t.bezierCurveTo(rn[1], nn[1], rn[2], nn[2], rn[3], nn[3])
  7092. break t
  7093. }
  7094. g += D
  7095. }
  7096. t.bezierCurveTo(P, R, O, U, k, F), (u = k), (f = F)
  7097. break
  7098. }
  7099. case pt.Q: {
  7100. var P = n[x++],
  7101. R = n[x++],
  7102. O = n[x++],
  7103. U = n[x++]
  7104. if (v) {
  7105. var D = d[m++]
  7106. if (g + D > y) {
  7107. var I = (y - g) / D
  7108. go(u, P, O, I, rn),
  7109. go(f, R, U, I, nn),
  7110. t.quadraticCurveTo(rn[1], nn[1], rn[2], nn[2])
  7111. break t
  7112. }
  7113. g += D
  7114. }
  7115. t.quadraticCurveTo(P, R, O, U), (u = O), (f = U)
  7116. break
  7117. }
  7118. case pt.A:
  7119. var H = n[x++],
  7120. $ = n[x++],
  7121. J = n[x++],
  7122. et = n[x++],
  7123. ft = n[x++],
  7124. Ct = n[x++],
  7125. mt = n[x++],
  7126. zt = !n[x++],
  7127. Vt = J > et ? J : et,
  7128. It = lr(J - et) > 0.001,
  7129. bt = ft + Ct,
  7130. K = !1
  7131. if (v) {
  7132. var D = d[m++]
  7133. g + D > y && ((bt = ft + (Ct * (y - g)) / D), (K = !0)),
  7134. (g += D)
  7135. }
  7136. if (
  7137. (It && t.ellipse
  7138. ? t.ellipse(H, $, J, et, mt, ft, bt, zt)
  7139. : t.arc(H, $, Vt, ft, bt, zt),
  7140. K)
  7141. )
  7142. break t
  7143. T && ((s = an(ft) * J + H), (l = on(ft) * et + $)),
  7144. (u = an(bt) * J + H),
  7145. (f = on(bt) * et + $)
  7146. break
  7147. case pt.R:
  7148. ;(s = u = n[x]), (l = f = n[x + 1]), (h = n[x++]), (c = n[x++])
  7149. var it = n[x++],
  7150. Ne = n[x++]
  7151. if (v) {
  7152. var D = d[m++]
  7153. if (g + D > y) {
  7154. var Ot = y - g
  7155. t.moveTo(h, c),
  7156. t.lineTo(h + Nu(Ot, it), c),
  7157. (Ot -= it),
  7158. Ot > 0 && t.lineTo(h + it, c + Nu(Ot, Ne)),
  7159. (Ot -= Ne),
  7160. Ot > 0 && t.lineTo(h + Fu(it - Ot, 0), c + Ne),
  7161. (Ot -= it),
  7162. Ot > 0 && t.lineTo(h, c + Fu(Ne - Ot, 0))
  7163. break t
  7164. }
  7165. g += D
  7166. }
  7167. t.rect(h, c, it, Ne)
  7168. break
  7169. case pt.Z:
  7170. if (v) {
  7171. var D = d[m++]
  7172. if (g + D > y) {
  7173. var I = (y - g) / D
  7174. t.lineTo(u * (1 - I) + s * I, f * (1 - I) + l * I)
  7175. break t
  7176. }
  7177. g += D
  7178. }
  7179. t.closePath(), (u = s), (f = l)
  7180. }
  7181. }
  7182. }),
  7183. (r.prototype.clone = function () {
  7184. var t = new r(),
  7185. e = this.data
  7186. return (
  7187. (t.data = e.slice ? e.slice() : Array.prototype.slice.call(e)),
  7188. (t._len = this._len),
  7189. t
  7190. )
  7191. }),
  7192. (r.CMD = pt),
  7193. (r.initDefaultProps = (function () {
  7194. var t = r.prototype
  7195. ;(t._saveData = !0),
  7196. (t._ux = 0),
  7197. (t._uy = 0),
  7198. (t._pendingPtDist = 0),
  7199. (t._version = 0)
  7200. })()),
  7201. r
  7202. )
  7203. })(),
  7204. ur = Zb
  7205. function Jn(r, t, e, n, i, a, o) {
  7206. if (i === 0) return !1
  7207. var s = i,
  7208. l = 0,
  7209. u = r
  7210. if (
  7211. (o > t + s && o > n + s) ||
  7212. (o < t - s && o < n - s) ||
  7213. (a > r + s && a > e + s) ||
  7214. (a < r - s && a < e - s)
  7215. )
  7216. return !1
  7217. if (r !== e) (l = (t - n) / (r - e)), (u = (r * n - e * t) / (r - e))
  7218. else return Math.abs(a - r) <= s / 2
  7219. var f = l * a - o + u,
  7220. h = (f * f) / (l * l + 1)
  7221. return h <= ((s / 2) * s) / 2
  7222. }
  7223. function $b(r, t, e, n, i, a, o, s, l, u, f) {
  7224. if (l === 0) return !1
  7225. var h = l
  7226. if (
  7227. (f > t + h && f > n + h && f > a + h && f > s + h) ||
  7228. (f < t - h && f < n - h && f < a - h && f < s - h) ||
  7229. (u > r + h && u > e + h && u > i + h && u > o + h) ||
  7230. (u < r - h && u < e - h && u < i - h && u < o - h)
  7231. )
  7232. return !1
  7233. var c = mc(r, t, e, n, i, a, o, s, u, f, null)
  7234. return c <= h / 2
  7235. }
  7236. function Xb(r, t, e, n, i, a, o, s, l) {
  7237. if (o === 0) return !1
  7238. var u = o
  7239. if (
  7240. (l > t + u && l > n + u && l > a + u) ||
  7241. (l < t - u && l < n - u && l < a - u) ||
  7242. (s > r + u && s > e + u && s > i + u) ||
  7243. (s < r - u && s < e - u && s < i - u)
  7244. )
  7245. return !1
  7246. var f = Sc(r, t, e, n, i, a, s, l, null)
  7247. return f <= u / 2
  7248. }
  7249. var _d = Math.PI * 2
  7250. function Ir(r) {
  7251. return (r %= _d), r < 0 && (r += _d), r
  7252. }
  7253. var ra = Math.PI * 2
  7254. function qb(r, t, e, n, i, a, o, s, l) {
  7255. if (o === 0) return !1
  7256. var u = o
  7257. ;(s -= r), (l -= t)
  7258. var f = Math.sqrt(s * s + l * l)
  7259. if (f - u > e || f + u < e) return !1
  7260. if (Math.abs(n - i) % ra < 1e-4) return !0
  7261. if (a) {
  7262. var h = n
  7263. ;(n = Ir(i)), (i = Ir(h))
  7264. } else (n = Ir(n)), (i = Ir(i))
  7265. n > i && (i += ra)
  7266. var c = Math.atan2(l, s)
  7267. return c < 0 && (c += ra), (c >= n && c <= i) || (c + ra >= n && c + ra <= i)
  7268. }
  7269. function sn(r, t, e, n, i, a) {
  7270. if ((a > t && a > n) || (a < t && a < n) || n === t) return 0
  7271. var o = (a - t) / (n - t),
  7272. s = n < t ? 1 : -1
  7273. ;(o === 1 || o === 0) && (s = n < t ? 0.5 : -0.5)
  7274. var l = o * (e - r) + r
  7275. return l === i ? 1 / 0 : l > i ? s : 0
  7276. }
  7277. var Lr = ur.CMD,
  7278. ln = Math.PI * 2,
  7279. Kb = 1e-4
  7280. function Qb(r, t) {
  7281. return Math.abs(r - t) < Kb
  7282. }
  7283. var qt = [-1, -1, -1],
  7284. de = [-1, -1]
  7285. function Jb() {
  7286. var r = de[0]
  7287. ;(de[0] = de[1]), (de[1] = r)
  7288. }
  7289. function jb(r, t, e, n, i, a, o, s, l, u) {
  7290. if ((u > t && u > n && u > a && u > s) || (u < t && u < n && u < a && u < s))
  7291. return 0
  7292. var f = po(t, n, a, s, u, qt)
  7293. if (f === 0) return 0
  7294. for (var h = 0, c = -1, v = void 0, d = void 0, p = 0; p < f; p++) {
  7295. var g = qt[p],
  7296. m = g === 0 || g === 1 ? 0.5 : 1,
  7297. y = Rt(r, e, i, o, g)
  7298. y < l ||
  7299. (c < 0 &&
  7300. ((c = gc(t, n, a, s, de)),
  7301. de[1] < de[0] && c > 1 && Jb(),
  7302. (v = Rt(t, n, a, s, de[0])),
  7303. c > 1 && (d = Rt(t, n, a, s, de[1]))),
  7304. c === 2
  7305. ? g < de[0]
  7306. ? (h += v < t ? m : -m)
  7307. : g < de[1]
  7308. ? (h += d < v ? m : -m)
  7309. : (h += s < d ? m : -m)
  7310. : g < de[0]
  7311. ? (h += v < t ? m : -m)
  7312. : (h += s < v ? m : -m))
  7313. }
  7314. return h
  7315. }
  7316. function tT(r, t, e, n, i, a, o, s) {
  7317. if ((s > t && s > n && s > a) || (s < t && s < n && s < a)) return 0
  7318. var l = lw(t, n, a, s, qt)
  7319. if (l === 0) return 0
  7320. var u = _c(t, n, a)
  7321. if (u >= 0 && u <= 1) {
  7322. for (var f = 0, h = Gt(t, n, a, u), c = 0; c < l; c++) {
  7323. var v = qt[c] === 0 || qt[c] === 1 ? 0.5 : 1,
  7324. d = Gt(r, e, i, qt[c])
  7325. d < o || (qt[c] < u ? (f += h < t ? v : -v) : (f += a < h ? v : -v))
  7326. }
  7327. return f
  7328. } else {
  7329. var v = qt[0] === 0 || qt[0] === 1 ? 0.5 : 1,
  7330. d = Gt(r, e, i, qt[0])
  7331. return d < o ? 0 : a < t ? v : -v
  7332. }
  7333. }
  7334. function eT(r, t, e, n, i, a, o, s) {
  7335. if (((s -= t), s > e || s < -e)) return 0
  7336. var l = Math.sqrt(e * e - s * s)
  7337. ;(qt[0] = -l), (qt[1] = l)
  7338. var u = Math.abs(n - i)
  7339. if (u < 1e-4) return 0
  7340. if (u >= ln - 1e-4) {
  7341. ;(n = 0), (i = ln)
  7342. var f = a ? 1 : -1
  7343. return o >= qt[0] + r && o <= qt[1] + r ? f : 0
  7344. }
  7345. if (n > i) {
  7346. var h = n
  7347. ;(n = i), (i = h)
  7348. }
  7349. n < 0 && ((n += ln), (i += ln))
  7350. for (var c = 0, v = 0; v < 2; v++) {
  7351. var d = qt[v]
  7352. if (d + r > o) {
  7353. var p = Math.atan2(s, d),
  7354. f = a ? 1 : -1
  7355. p < 0 && (p = ln + p),
  7356. ((p >= n && p <= i) || (p + ln >= n && p + ln <= i)) &&
  7357. (p > Math.PI / 2 && p < Math.PI * 1.5 && (f = -f), (c += f))
  7358. }
  7359. }
  7360. return c
  7361. }
  7362. function Sd(r, t, e, n, i) {
  7363. for (
  7364. var a = r.data, o = r.len(), s = 0, l = 0, u = 0, f = 0, h = 0, c, v, d = 0;
  7365. d < o;
  7366. ) {
  7367. var p = a[d++],
  7368. g = d === 1
  7369. switch (
  7370. (p === Lr.M && d > 1 && (e || (s += sn(l, u, f, h, n, i))),
  7371. g && ((l = a[d]), (u = a[d + 1]), (f = l), (h = u)),
  7372. p)
  7373. ) {
  7374. case Lr.M:
  7375. ;(f = a[d++]), (h = a[d++]), (l = f), (u = h)
  7376. break
  7377. case Lr.L:
  7378. if (e) {
  7379. if (Jn(l, u, a[d], a[d + 1], t, n, i)) return !0
  7380. } else s += sn(l, u, a[d], a[d + 1], n, i) || 0
  7381. ;(l = a[d++]), (u = a[d++])
  7382. break
  7383. case Lr.C:
  7384. if (e) {
  7385. if ($b(l, u, a[d++], a[d++], a[d++], a[d++], a[d], a[d + 1], t, n, i))
  7386. return !0
  7387. } else
  7388. s +=
  7389. jb(l, u, a[d++], a[d++], a[d++], a[d++], a[d], a[d + 1], n, i) || 0
  7390. ;(l = a[d++]), (u = a[d++])
  7391. break
  7392. case Lr.Q:
  7393. if (e) {
  7394. if (Xb(l, u, a[d++], a[d++], a[d], a[d + 1], t, n, i)) return !0
  7395. } else s += tT(l, u, a[d++], a[d++], a[d], a[d + 1], n, i) || 0
  7396. ;(l = a[d++]), (u = a[d++])
  7397. break
  7398. case Lr.A:
  7399. var m = a[d++],
  7400. y = a[d++],
  7401. _ = a[d++],
  7402. S = a[d++],
  7403. w = a[d++],
  7404. x = a[d++]
  7405. d += 1
  7406. var b = !!(1 - a[d++])
  7407. ;(c = Math.cos(w) * _ + m),
  7408. (v = Math.sin(w) * S + y),
  7409. g ? ((f = c), (h = v)) : (s += sn(l, u, c, v, n, i))
  7410. var T = ((n - m) * S) / _ + m
  7411. if (e) {
  7412. if (qb(m, y, S, w, w + x, b, t, T, i)) return !0
  7413. } else s += eT(m, y, S, w, w + x, b, T, i)
  7414. ;(l = Math.cos(w + x) * _ + m), (u = Math.sin(w + x) * S + y)
  7415. break
  7416. case Lr.R:
  7417. ;(f = l = a[d++]), (h = u = a[d++])
  7418. var C = a[d++],
  7419. M = a[d++]
  7420. if (((c = f + C), (v = h + M), e)) {
  7421. if (
  7422. Jn(f, h, c, h, t, n, i) ||
  7423. Jn(c, h, c, v, t, n, i) ||
  7424. Jn(c, v, f, v, t, n, i) ||
  7425. Jn(f, v, f, h, t, n, i)
  7426. )
  7427. return !0
  7428. } else (s += sn(c, h, c, v, n, i)), (s += sn(f, v, f, h, n, i))
  7429. break
  7430. case Lr.Z:
  7431. if (e) {
  7432. if (Jn(l, u, f, h, t, n, i)) return !0
  7433. } else s += sn(l, u, f, h, n, i)
  7434. ;(l = f), (u = h)
  7435. break
  7436. }
  7437. }
  7438. return !e && !Qb(u, h) && (s += sn(l, u, f, h, n, i) || 0), s !== 0
  7439. }
  7440. function rT(r, t, e) {
  7441. return Sd(r, 0, !1, t, e)
  7442. }
  7443. function nT(r, t, e, n) {
  7444. return Sd(r, t, !0, e, n)
  7445. }
  7446. var xd = j(
  7447. {
  7448. fill: '#000',
  7449. stroke: null,
  7450. strokePercent: 1,
  7451. fillOpacity: 1,
  7452. strokeOpacity: 1,
  7453. lineDashOffset: 0,
  7454. lineWidth: 1,
  7455. lineCap: 'butt',
  7456. miterLimit: 10,
  7457. strokeNoScale: !1,
  7458. strokeFirst: !1
  7459. },
  7460. tn
  7461. ),
  7462. iT = {
  7463. style: j(
  7464. {
  7465. fill: !0,
  7466. stroke: !0,
  7467. strokePercent: !0,
  7468. fillOpacity: !0,
  7469. strokeOpacity: !0,
  7470. lineDashOffset: !0,
  7471. lineWidth: !0,
  7472. miterLimit: !0
  7473. },
  7474. zo.style
  7475. )
  7476. },
  7477. Hu = Ui.concat(['invisible', 'culling', 'z', 'z2', 'zlevel', 'parent']),
  7478. aT = (function (r) {
  7479. B(t, r)
  7480. function t(e) {
  7481. return r.call(this, e) || this
  7482. }
  7483. return (
  7484. (t.prototype.update = function () {
  7485. var e = this
  7486. r.prototype.update.call(this)
  7487. var n = this.style
  7488. if (n.decal) {
  7489. var i = (this._decalEl = this._decalEl || new t())
  7490. i.buildPath === t.prototype.buildPath &&
  7491. (i.buildPath = function (l) {
  7492. e.buildPath(l, e.shape)
  7493. }),
  7494. (i.silent = !0)
  7495. var a = i.style
  7496. for (var o in n) a[o] !== n[o] && (a[o] = n[o])
  7497. ;(a.fill = n.fill ? n.decal : null),
  7498. (a.decal = null),
  7499. (a.shadowColor = null),
  7500. n.strokeFirst && (a.stroke = null)
  7501. for (var s = 0; s < Hu.length; ++s) i[Hu[s]] = this[Hu[s]]
  7502. i.__dirty |= ae
  7503. } else this._decalEl && (this._decalEl = null)
  7504. }),
  7505. (t.prototype.getDecalElement = function () {
  7506. return this._decalEl
  7507. }),
  7508. (t.prototype._init = function (e) {
  7509. var n = xt(e)
  7510. this.shape = this.getDefaultShape()
  7511. var i = this.getDefaultStyle()
  7512. i && this.useStyle(i)
  7513. for (var a = 0; a < n.length; a++) {
  7514. var o = n[a],
  7515. s = e[o]
  7516. o === 'style'
  7517. ? this.style
  7518. ? N(this.style, s)
  7519. : this.useStyle(s)
  7520. : o === 'shape'
  7521. ? N(this.shape, s)
  7522. : r.prototype.attrKV.call(this, o, s)
  7523. }
  7524. this.style || this.useStyle({})
  7525. }),
  7526. (t.prototype.getDefaultStyle = function () {
  7527. return null
  7528. }),
  7529. (t.prototype.getDefaultShape = function () {
  7530. return {}
  7531. }),
  7532. (t.prototype.canBeInsideText = function () {
  7533. return this.hasFill()
  7534. }),
  7535. (t.prototype.getInsideTextFill = function () {
  7536. var e = this.style.fill
  7537. if (e !== 'none') {
  7538. if (W(e)) {
  7539. var n = xo(e, 0)
  7540. return n > 0.5 ? hu : n > 0.2 ? Ow : vu
  7541. } else if (e) return vu
  7542. }
  7543. return hu
  7544. }),
  7545. (t.prototype.getInsideTextStroke = function (e) {
  7546. var n = this.style.fill
  7547. if (W(n)) {
  7548. var i = this.__zr,
  7549. a = !!(i && i.isDarkMode()),
  7550. o = xo(e, 0) < fu
  7551. if (a === o) return n
  7552. }
  7553. }),
  7554. (t.prototype.buildPath = function (e, n, i) {}),
  7555. (t.prototype.pathUpdated = function () {
  7556. this.__dirty &= ~Wn
  7557. }),
  7558. (t.prototype.getUpdatedPathProxy = function (e) {
  7559. return (
  7560. !this.path && this.createPathProxy(),
  7561. this.path.beginPath(),
  7562. this.buildPath(this.path, this.shape, e),
  7563. this.path
  7564. )
  7565. }),
  7566. (t.prototype.createPathProxy = function () {
  7567. this.path = new ur(!1)
  7568. }),
  7569. (t.prototype.hasStroke = function () {
  7570. var e = this.style,
  7571. n = e.stroke
  7572. return !(n == null || n === 'none' || !(e.lineWidth > 0))
  7573. }),
  7574. (t.prototype.hasFill = function () {
  7575. var e = this.style,
  7576. n = e.fill
  7577. return n != null && n !== 'none'
  7578. }),
  7579. (t.prototype.getBoundingRect = function () {
  7580. var e = this._rect,
  7581. n = this.style,
  7582. i = !e
  7583. if (i) {
  7584. var a = !1
  7585. this.path || ((a = !0), this.createPathProxy())
  7586. var o = this.path
  7587. ;(a || this.__dirty & Wn) &&
  7588. (o.beginPath(),
  7589. this.buildPath(o, this.shape, !1),
  7590. this.pathUpdated()),
  7591. (e = o.getBoundingRect())
  7592. }
  7593. if (
  7594. ((this._rect = e),
  7595. this.hasStroke() && this.path && this.path.len() > 0)
  7596. ) {
  7597. var s = this._rectStroke || (this._rectStroke = e.clone())
  7598. if (this.__dirty || i) {
  7599. s.copy(e)
  7600. var l = n.strokeNoScale ? this.getLineScale() : 1,
  7601. u = n.lineWidth
  7602. if (!this.hasFill()) {
  7603. var f = this.strokeContainThreshold
  7604. u = Math.max(u, f == null ? 4 : f)
  7605. }
  7606. l > 1e-10 &&
  7607. ((s.width += u / l),
  7608. (s.height += u / l),
  7609. (s.x -= u / l / 2),
  7610. (s.y -= u / l / 2))
  7611. }
  7612. return s
  7613. }
  7614. return e
  7615. }),
  7616. (t.prototype.contain = function (e, n) {
  7617. var i = this.transformCoordToLocal(e, n),
  7618. a = this.getBoundingRect(),
  7619. o = this.style
  7620. if (((e = i[0]), (n = i[1]), a.contain(e, n))) {
  7621. var s = this.path
  7622. if (this.hasStroke()) {
  7623. var l = o.lineWidth,
  7624. u = o.strokeNoScale ? this.getLineScale() : 1
  7625. if (
  7626. u > 1e-10 &&
  7627. (this.hasFill() || (l = Math.max(l, this.strokeContainThreshold)),
  7628. nT(s, l / u, e, n))
  7629. )
  7630. return !0
  7631. }
  7632. if (this.hasFill()) return rT(s, e, n)
  7633. }
  7634. return !1
  7635. }),
  7636. (t.prototype.dirtyShape = function () {
  7637. ;(this.__dirty |= Wn),
  7638. this._rect && (this._rect = null),
  7639. this._decalEl && this._decalEl.dirtyShape(),
  7640. this.markRedraw()
  7641. }),
  7642. (t.prototype.dirty = function () {
  7643. this.dirtyStyle(), this.dirtyShape()
  7644. }),
  7645. (t.prototype.animateShape = function (e) {
  7646. return this.animate('shape', e)
  7647. }),
  7648. (t.prototype.updateDuringAnimation = function (e) {
  7649. e === 'style'
  7650. ? this.dirtyStyle()
  7651. : e === 'shape'
  7652. ? this.dirtyShape()
  7653. : this.markRedraw()
  7654. }),
  7655. (t.prototype.attrKV = function (e, n) {
  7656. e === 'shape' ? this.setShape(n) : r.prototype.attrKV.call(this, e, n)
  7657. }),
  7658. (t.prototype.setShape = function (e, n) {
  7659. var i = this.shape
  7660. return (
  7661. i || (i = this.shape = {}),
  7662. typeof e == 'string' ? (i[e] = n) : N(i, e),
  7663. this.dirtyShape(),
  7664. this
  7665. )
  7666. }),
  7667. (t.prototype.shapeChanged = function () {
  7668. return !!(this.__dirty & Wn)
  7669. }),
  7670. (t.prototype.createStyle = function (e) {
  7671. return so(xd, e)
  7672. }),
  7673. (t.prototype._innerSaveToNormal = function (e) {
  7674. r.prototype._innerSaveToNormal.call(this, e)
  7675. var n = this._normalState
  7676. e.shape && !n.shape && (n.shape = N({}, this.shape))
  7677. }),
  7678. (t.prototype._applyStateObj = function (e, n, i, a, o, s) {
  7679. r.prototype._applyStateObj.call(this, e, n, i, a, o, s)
  7680. var l = !(n && a),
  7681. u
  7682. if (
  7683. (n && n.shape
  7684. ? o
  7685. ? a
  7686. ? (u = n.shape)
  7687. : ((u = N({}, i.shape)), N(u, n.shape))
  7688. : ((u = N({}, a ? this.shape : i.shape)), N(u, n.shape))
  7689. : l && (u = i.shape),
  7690. u)
  7691. )
  7692. if (o) {
  7693. this.shape = N({}, this.shape)
  7694. for (var f = {}, h = xt(u), c = 0; c < h.length; c++) {
  7695. var v = h[c]
  7696. typeof u[v] == 'object' ? (this.shape[v] = u[v]) : (f[v] = u[v])
  7697. }
  7698. this._transitionState(e, { shape: f }, s)
  7699. } else (this.shape = u), this.dirtyShape()
  7700. }),
  7701. (t.prototype._mergeStates = function (e) {
  7702. for (
  7703. var n = r.prototype._mergeStates.call(this, e), i, a = 0;
  7704. a < e.length;
  7705. a++
  7706. ) {
  7707. var o = e[a]
  7708. o.shape && ((i = i || {}), this._mergeStyle(i, o.shape))
  7709. }
  7710. return i && (n.shape = i), n
  7711. }),
  7712. (t.prototype.getAnimationStyleProps = function () {
  7713. return iT
  7714. }),
  7715. (t.prototype.isZeroArea = function () {
  7716. return !1
  7717. }),
  7718. (t.extend = function (e) {
  7719. var n = (function (a) {
  7720. B(o, a)
  7721. function o(s) {
  7722. var l = a.call(this, s) || this
  7723. return e.init && e.init.call(l, s), l
  7724. }
  7725. return (
  7726. (o.prototype.getDefaultStyle = function () {
  7727. return tt(e.style)
  7728. }),
  7729. (o.prototype.getDefaultShape = function () {
  7730. return tt(e.shape)
  7731. }),
  7732. o
  7733. )
  7734. })(t)
  7735. for (var i in e) typeof e[i] == 'function' && (n.prototype[i] = e[i])
  7736. return n
  7737. }),
  7738. (t.initDefaultProps = (function () {
  7739. var e = t.prototype
  7740. ;(e.type = 'path'),
  7741. (e.strokeContainThreshold = 5),
  7742. (e.segmentIgnoreThreshold = 0),
  7743. (e.subPixelOptimize = !1),
  7744. (e.autoBatch = !1),
  7745. (e.__dirty = ae | Fi | Wn)
  7746. })()),
  7747. t
  7748. )
  7749. })(Qn),
  7750. st = aT,
  7751. oT = j(
  7752. {
  7753. strokeFirst: !0,
  7754. font: Yr,
  7755. x: 0,
  7756. y: 0,
  7757. textAlign: 'left',
  7758. textBaseline: 'top',
  7759. miterLimit: 2
  7760. },
  7761. xd
  7762. ),
  7763. wd = (function (r) {
  7764. B(t, r)
  7765. function t() {
  7766. return (r !== null && r.apply(this, arguments)) || this
  7767. }
  7768. return (
  7769. (t.prototype.hasStroke = function () {
  7770. var e = this.style,
  7771. n = e.stroke
  7772. return n != null && n !== 'none' && e.lineWidth > 0
  7773. }),
  7774. (t.prototype.hasFill = function () {
  7775. var e = this.style,
  7776. n = e.fill
  7777. return n != null && n !== 'none'
  7778. }),
  7779. (t.prototype.createStyle = function (e) {
  7780. return so(oT, e)
  7781. }),
  7782. (t.prototype.setBoundingRect = function (e) {
  7783. this._rect = e
  7784. }),
  7785. (t.prototype.getBoundingRect = function () {
  7786. var e = this.style
  7787. if (!this._rect) {
  7788. var n = e.text
  7789. n != null ? (n += '') : (n = '')
  7790. var i = Eo(n, e.font, e.textAlign, e.textBaseline)
  7791. if (((i.x += e.x || 0), (i.y += e.y || 0), this.hasStroke())) {
  7792. var a = e.lineWidth
  7793. ;(i.x -= a / 2), (i.y -= a / 2), (i.width += a), (i.height += a)
  7794. }
  7795. this._rect = i
  7796. }
  7797. return this._rect
  7798. }),
  7799. (t.initDefaultProps = (function () {
  7800. var e = t.prototype
  7801. e.dirtyRectTolerance = 10
  7802. })()),
  7803. t
  7804. )
  7805. })(Qn)
  7806. wd.prototype.type = 'tspan'
  7807. var Wu = wd,
  7808. sT = j({ x: 0, y: 0 }, tn),
  7809. lT = {
  7810. style: j(
  7811. {
  7812. x: !0,
  7813. y: !0,
  7814. width: !0,
  7815. height: !0,
  7816. sx: !0,
  7817. sy: !0,
  7818. sWidth: !0,
  7819. sHeight: !0
  7820. },
  7821. zo.style
  7822. )
  7823. }
  7824. function uT(r) {
  7825. return !!(r && typeof r != 'string' && r.width && r.height)
  7826. }
  7827. var bd = (function (r) {
  7828. B(t, r)
  7829. function t() {
  7830. return (r !== null && r.apply(this, arguments)) || this
  7831. }
  7832. return (
  7833. (t.prototype.createStyle = function (e) {
  7834. return so(sT, e)
  7835. }),
  7836. (t.prototype._getSize = function (e) {
  7837. var n = this.style,
  7838. i = n[e]
  7839. if (i != null) return i
  7840. var a = uT(n.image) ? n.image : this.__image
  7841. if (!a) return 0
  7842. var o = e === 'width' ? 'height' : 'width',
  7843. s = n[o]
  7844. return s == null ? a[e] : (a[e] / a[o]) * s
  7845. }),
  7846. (t.prototype.getWidth = function () {
  7847. return this._getSize('width')
  7848. }),
  7849. (t.prototype.getHeight = function () {
  7850. return this._getSize('height')
  7851. }),
  7852. (t.prototype.getAnimationStyleProps = function () {
  7853. return lT
  7854. }),
  7855. (t.prototype.getBoundingRect = function () {
  7856. var e = this.style
  7857. return (
  7858. this._rect ||
  7859. (this._rect = new vt(
  7860. e.x || 0,
  7861. e.y || 0,
  7862. this.getWidth(),
  7863. this.getHeight()
  7864. )),
  7865. this._rect
  7866. )
  7867. }),
  7868. t
  7869. )
  7870. })(Qn)
  7871. bd.prototype.type = 'image'
  7872. var un = bd
  7873. function fT(r, t) {
  7874. var e = t.x,
  7875. n = t.y,
  7876. i = t.width,
  7877. a = t.height,
  7878. o = t.r,
  7879. s,
  7880. l,
  7881. u,
  7882. f
  7883. i < 0 && ((e = e + i), (i = -i)),
  7884. a < 0 && ((n = n + a), (a = -a)),
  7885. typeof o == 'number'
  7886. ? (s = l = u = f = o)
  7887. : o instanceof Array
  7888. ? o.length === 1
  7889. ? (s = l = u = f = o[0])
  7890. : o.length === 2
  7891. ? ((s = u = o[0]), (l = f = o[1]))
  7892. : o.length === 3
  7893. ? ((s = o[0]), (l = f = o[1]), (u = o[2]))
  7894. : ((s = o[0]), (l = o[1]), (u = o[2]), (f = o[3]))
  7895. : (s = l = u = f = 0)
  7896. var h
  7897. s + l > i && ((h = s + l), (s *= i / h), (l *= i / h)),
  7898. u + f > i && ((h = u + f), (u *= i / h), (f *= i / h)),
  7899. l + u > a && ((h = l + u), (l *= a / h), (u *= a / h)),
  7900. s + f > a && ((h = s + f), (s *= a / h), (f *= a / h)),
  7901. r.moveTo(e + s, n),
  7902. r.lineTo(e + i - l, n),
  7903. l !== 0 && r.arc(e + i - l, n + l, l, -Math.PI / 2, 0),
  7904. r.lineTo(e + i, n + a - u),
  7905. u !== 0 && r.arc(e + i - u, n + a - u, u, 0, Math.PI / 2),
  7906. r.lineTo(e + f, n + a),
  7907. f !== 0 && r.arc(e + f, n + a - f, f, Math.PI / 2, Math.PI),
  7908. r.lineTo(e, n + s),
  7909. s !== 0 && r.arc(e + s, n + s, s, Math.PI, Math.PI * 1.5)
  7910. }
  7911. var jn = Math.round
  7912. function Td(r, t, e) {
  7913. if (!!t) {
  7914. var n = t.x1,
  7915. i = t.x2,
  7916. a = t.y1,
  7917. o = t.y2
  7918. ;(r.x1 = n), (r.x2 = i), (r.y1 = a), (r.y2 = o)
  7919. var s = e && e.lineWidth
  7920. return (
  7921. s &&
  7922. (jn(n * 2) === jn(i * 2) && (r.x1 = r.x2 = fn(n, s, !0)),
  7923. jn(a * 2) === jn(o * 2) && (r.y1 = r.y2 = fn(a, s, !0))),
  7924. r
  7925. )
  7926. }
  7927. }
  7928. function Cd(r, t, e) {
  7929. if (!!t) {
  7930. var n = t.x,
  7931. i = t.y,
  7932. a = t.width,
  7933. o = t.height
  7934. ;(r.x = n), (r.y = i), (r.width = a), (r.height = o)
  7935. var s = e && e.lineWidth
  7936. return (
  7937. s &&
  7938. ((r.x = fn(n, s, !0)),
  7939. (r.y = fn(i, s, !0)),
  7940. (r.width = Math.max(fn(n + a, s, !1) - r.x, a === 0 ? 0 : 1)),
  7941. (r.height = Math.max(fn(i + o, s, !1) - r.y, o === 0 ? 0 : 1))),
  7942. r
  7943. )
  7944. }
  7945. }
  7946. function fn(r, t, e) {
  7947. if (!t) return r
  7948. var n = jn(r * 2)
  7949. return (n + jn(t)) % 2 == 0 ? n / 2 : (n + (e ? 1 : -1)) / 2
  7950. }
  7951. var hT = (function () {
  7952. function r() {
  7953. ;(this.x = 0), (this.y = 0), (this.width = 0), (this.height = 0)
  7954. }
  7955. return r
  7956. })(),
  7957. vT = {},
  7958. Ad = (function (r) {
  7959. B(t, r)
  7960. function t(e) {
  7961. return r.call(this, e) || this
  7962. }
  7963. return (
  7964. (t.prototype.getDefaultShape = function () {
  7965. return new hT()
  7966. }),
  7967. (t.prototype.buildPath = function (e, n) {
  7968. var i, a, o, s
  7969. if (this.subPixelOptimize) {
  7970. var l = Cd(vT, n, this.style)
  7971. ;(i = l.x),
  7972. (a = l.y),
  7973. (o = l.width),
  7974. (s = l.height),
  7975. (l.r = n.r),
  7976. (n = l)
  7977. } else (i = n.x), (a = n.y), (o = n.width), (s = n.height)
  7978. n.r ? fT(e, n) : e.rect(i, a, o, s)
  7979. }),
  7980. (t.prototype.isZeroArea = function () {
  7981. return !this.shape.width || !this.shape.height
  7982. }),
  7983. t
  7984. )
  7985. })(st)
  7986. Ad.prototype.type = 'rect'
  7987. var St = Ad,
  7988. Md = { fill: '#000' },
  7989. Dd = 2,
  7990. cT = {
  7991. style: j(
  7992. {
  7993. fill: !0,
  7994. stroke: !0,
  7995. fillOpacity: !0,
  7996. strokeOpacity: !0,
  7997. lineWidth: !0,
  7998. fontSize: !0,
  7999. lineHeight: !0,
  8000. width: !0,
  8001. height: !0,
  8002. textShadowColor: !0,
  8003. textShadowBlur: !0,
  8004. textShadowOffsetX: !0,
  8005. textShadowOffsetY: !0,
  8006. backgroundColor: !0,
  8007. padding: !0,
  8008. borderColor: !0,
  8009. borderWidth: !0,
  8010. borderRadius: !0
  8011. },
  8012. zo.style
  8013. )
  8014. },
  8015. Id = (function (r) {
  8016. B(t, r)
  8017. function t(e) {
  8018. var n = r.call(this) || this
  8019. return (
  8020. (n.type = 'text'),
  8021. (n._children = []),
  8022. (n._defaultStyle = Md),
  8023. n.attr(e),
  8024. n
  8025. )
  8026. }
  8027. return (
  8028. (t.prototype.childrenRef = function () {
  8029. return this._children
  8030. }),
  8031. (t.prototype.update = function () {
  8032. r.prototype.update.call(this),
  8033. this.styleChanged() && this._updateSubTexts()
  8034. for (var e = 0; e < this._children.length; e++) {
  8035. var n = this._children[e]
  8036. ;(n.zlevel = this.zlevel),
  8037. (n.z = this.z),
  8038. (n.z2 = this.z2),
  8039. (n.culling = this.culling),
  8040. (n.cursor = this.cursor),
  8041. (n.invisible = this.invisible)
  8042. }
  8043. }),
  8044. (t.prototype.updateTransform = function () {
  8045. var e = this.innerTransformable
  8046. e
  8047. ? (e.updateTransform(), e.transform && (this.transform = e.transform))
  8048. : r.prototype.updateTransform.call(this)
  8049. }),
  8050. (t.prototype.getLocalTransform = function (e) {
  8051. var n = this.innerTransformable
  8052. return n
  8053. ? n.getLocalTransform(e)
  8054. : r.prototype.getLocalTransform.call(this, e)
  8055. }),
  8056. (t.prototype.getComputedTransform = function () {
  8057. return (
  8058. this.__hostTarget &&
  8059. (this.__hostTarget.getComputedTransform(),
  8060. this.__hostTarget.updateInnerText(!0)),
  8061. r.prototype.getComputedTransform.call(this)
  8062. )
  8063. }),
  8064. (t.prototype._updateSubTexts = function () {
  8065. ;(this._childCursor = 0),
  8066. yT(this.style),
  8067. this.style.rich ? this._updateRichTexts() : this._updatePlainTexts(),
  8068. (this._children.length = this._childCursor),
  8069. this.styleUpdated()
  8070. }),
  8071. (t.prototype.addSelfToZr = function (e) {
  8072. r.prototype.addSelfToZr.call(this, e)
  8073. for (var n = 0; n < this._children.length; n++)
  8074. this._children[n].__zr = e
  8075. }),
  8076. (t.prototype.removeSelfFromZr = function (e) {
  8077. r.prototype.removeSelfFromZr.call(this, e)
  8078. for (var n = 0; n < this._children.length; n++)
  8079. this._children[n].__zr = null
  8080. }),
  8081. (t.prototype.getBoundingRect = function () {
  8082. if ((this.styleChanged() && this._updateSubTexts(), !this._rect)) {
  8083. for (
  8084. var e = new vt(0, 0, 0, 0),
  8085. n = this._children,
  8086. i = [],
  8087. a = null,
  8088. o = 0;
  8089. o < n.length;
  8090. o++
  8091. ) {
  8092. var s = n[o],
  8093. l = s.getBoundingRect(),
  8094. u = s.getLocalTransform(i)
  8095. u
  8096. ? (e.copy(l),
  8097. e.applyTransform(u),
  8098. (a = a || e.clone()),
  8099. a.union(e))
  8100. : ((a = a || l.clone()), a.union(l))
  8101. }
  8102. this._rect = a || e
  8103. }
  8104. return this._rect
  8105. }),
  8106. (t.prototype.setDefaultTextStyle = function (e) {
  8107. this._defaultStyle = e || Md
  8108. }),
  8109. (t.prototype.setTextContent = function (e) {}),
  8110. (t.prototype._mergeStyle = function (e, n) {
  8111. if (!n) return e
  8112. var i = n.rich,
  8113. a = e.rich || (i && {})
  8114. return (
  8115. N(e, n),
  8116. i && a ? (this._mergeRich(a, i), (e.rich = a)) : a && (e.rich = a),
  8117. e
  8118. )
  8119. }),
  8120. (t.prototype._mergeRich = function (e, n) {
  8121. for (var i = xt(n), a = 0; a < i.length; a++) {
  8122. var o = i[a]
  8123. ;(e[o] = e[o] || {}), N(e[o], n[o])
  8124. }
  8125. }),
  8126. (t.prototype.getAnimationStyleProps = function () {
  8127. return cT
  8128. }),
  8129. (t.prototype._getOrCreateChild = function (e) {
  8130. var n = this._children[this._childCursor]
  8131. return (
  8132. (!n || !(n instanceof e)) && (n = new e()),
  8133. (this._children[this._childCursor++] = n),
  8134. (n.__zr = this.__zr),
  8135. (n.parent = this),
  8136. n
  8137. )
  8138. }),
  8139. (t.prototype._updatePlainTexts = function () {
  8140. var e = this.style,
  8141. n = e.font || Yr,
  8142. i = e.padding,
  8143. a = Bd(e),
  8144. o = Rb(a, e),
  8145. s = Uu(e),
  8146. l = !!e.backgroundColor,
  8147. u = o.outerHeight,
  8148. f = o.outerWidth,
  8149. h = o.contentWidth,
  8150. c = o.lines,
  8151. v = o.lineHeight,
  8152. d = this._defaultStyle,
  8153. p = e.x || 0,
  8154. g = e.y || 0,
  8155. m = e.align || d.align || 'left',
  8156. y = e.verticalAlign || d.verticalAlign || 'top',
  8157. _ = p,
  8158. S = qn(g, o.contentHeight, y)
  8159. if (s || i) {
  8160. var w = $i(p, f, m),
  8161. x = qn(g, u, y)
  8162. s && this._renderBackground(e, e, w, x, f, u)
  8163. }
  8164. ;(S += v / 2),
  8165. i &&
  8166. ((_ = kd(p, m, i)),
  8167. y === 'top' ? (S += i[0]) : y === 'bottom' && (S -= i[2]))
  8168. for (
  8169. var b = 0,
  8170. T = !1,
  8171. C = Od(('fill' in e) ? e.fill : ((T = !0), d.fill)),
  8172. M = Ed(
  8173. ('stroke' in e)
  8174. ? e.stroke
  8175. : !l && (!d.autoStroke || T)
  8176. ? ((b = Dd), d.stroke)
  8177. : null
  8178. ),
  8179. D = e.textShadowBlur > 0,
  8180. I =
  8181. e.width != null &&
  8182. (e.overflow === 'truncate' ||
  8183. e.overflow === 'break' ||
  8184. e.overflow === 'breakAll'),
  8185. L = o.calculatedLineHeight,
  8186. P = 0;
  8187. P < c.length;
  8188. P++
  8189. ) {
  8190. var R = this._getOrCreateChild(Wu),
  8191. O = R.createStyle()
  8192. R.useStyle(O),
  8193. (O.text = c[P]),
  8194. (O.x = _),
  8195. (O.y = S),
  8196. m && (O.textAlign = m),
  8197. (O.textBaseline = 'middle'),
  8198. (O.opacity = e.opacity),
  8199. (O.strokeFirst = !0),
  8200. D &&
  8201. ((O.shadowBlur = e.textShadowBlur || 0),
  8202. (O.shadowColor = e.textShadowColor || 'transparent'),
  8203. (O.shadowOffsetX = e.textShadowOffsetX || 0),
  8204. (O.shadowOffsetY = e.textShadowOffsetY || 0)),
  8205. (O.stroke = M),
  8206. (O.fill = C),
  8207. M &&
  8208. ((O.lineWidth = e.lineWidth || b),
  8209. (O.lineDash = e.lineDash),
  8210. (O.lineDashOffset = e.lineDashOffset || 0)),
  8211. (O.font = n),
  8212. Pd(O, e),
  8213. (S += v),
  8214. I &&
  8215. R.setBoundingRect(
  8216. new vt(
  8217. $i(O.x, e.width, O.textAlign),
  8218. qn(O.y, L, O.textBaseline),
  8219. h,
  8220. L
  8221. )
  8222. )
  8223. }
  8224. }),
  8225. (t.prototype._updateRichTexts = function () {
  8226. var e = this.style,
  8227. n = Bd(e),
  8228. i = kb(n, e),
  8229. a = i.width,
  8230. o = i.outerWidth,
  8231. s = i.outerHeight,
  8232. l = e.padding,
  8233. u = e.x || 0,
  8234. f = e.y || 0,
  8235. h = this._defaultStyle,
  8236. c = e.align || h.align,
  8237. v = e.verticalAlign || h.verticalAlign,
  8238. d = $i(u, o, c),
  8239. p = qn(f, s, v),
  8240. g = d,
  8241. m = p
  8242. l && ((g += l[3]), (m += l[0]))
  8243. var y = g + a
  8244. Uu(e) && this._renderBackground(e, e, d, p, o, s)
  8245. for (var _ = !!e.backgroundColor, S = 0; S < i.lines.length; S++) {
  8246. for (
  8247. var w = i.lines[S],
  8248. x = w.tokens,
  8249. b = x.length,
  8250. T = w.lineHeight,
  8251. C = w.width,
  8252. M = 0,
  8253. D = g,
  8254. I = y,
  8255. L = b - 1,
  8256. P = void 0;
  8257. M < b && ((P = x[M]), !P.align || P.align === 'left');
  8258. )
  8259. this._placeToken(P, e, T, m, D, 'left', _),
  8260. (C -= P.width),
  8261. (D += P.width),
  8262. M++
  8263. for (; L >= 0 && ((P = x[L]), P.align === 'right'); )
  8264. this._placeToken(P, e, T, m, I, 'right', _),
  8265. (C -= P.width),
  8266. (I -= P.width),
  8267. L--
  8268. for (D += (a - (D - g) - (y - I) - C) / 2; M <= L; )
  8269. (P = x[M]),
  8270. this._placeToken(P, e, T, m, D + P.width / 2, 'center', _),
  8271. (D += P.width),
  8272. M++
  8273. m += T
  8274. }
  8275. }),
  8276. (t.prototype._placeToken = function (e, n, i, a, o, s, l) {
  8277. var u = n.rich[e.styleName] || {}
  8278. u.text = e.text
  8279. var f = e.verticalAlign,
  8280. h = a + i / 2
  8281. f === 'top'
  8282. ? (h = a + e.height / 2)
  8283. : f === 'bottom' && (h = a + i - e.height / 2)
  8284. var c = !e.isLineHolder && Uu(u)
  8285. c &&
  8286. this._renderBackground(
  8287. u,
  8288. n,
  8289. s === 'right' ? o - e.width : s === 'center' ? o - e.width / 2 : o,
  8290. h - e.height / 2,
  8291. e.width,
  8292. e.height
  8293. )
  8294. var v = !!u.backgroundColor,
  8295. d = e.textPadding
  8296. d && ((o = kd(o, s, d)), (h -= e.height / 2 - d[0] - e.innerHeight / 2))
  8297. var p = this._getOrCreateChild(Wu),
  8298. g = p.createStyle()
  8299. p.useStyle(g)
  8300. var m = this._defaultStyle,
  8301. y = !1,
  8302. _ = 0,
  8303. S = Od(
  8304. 'fill' in u ? u.fill : 'fill' in n ? n.fill : ((y = !0), m.fill)
  8305. ),
  8306. w = Ed(
  8307. 'stroke' in u
  8308. ? u.stroke
  8309. : 'stroke' in n
  8310. ? n.stroke
  8311. : !v && !l && (!m.autoStroke || y)
  8312. ? ((_ = Dd), m.stroke)
  8313. : null
  8314. ),
  8315. x = u.textShadowBlur > 0 || n.textShadowBlur > 0
  8316. ;(g.text = e.text),
  8317. (g.x = o),
  8318. (g.y = h),
  8319. x &&
  8320. ((g.shadowBlur = u.textShadowBlur || n.textShadowBlur || 0),
  8321. (g.shadowColor =
  8322. u.textShadowColor || n.textShadowColor || 'transparent'),
  8323. (g.shadowOffsetX = u.textShadowOffsetX || n.textShadowOffsetX || 0),
  8324. (g.shadowOffsetY =
  8325. u.textShadowOffsetY || n.textShadowOffsetY || 0)),
  8326. (g.textAlign = s),
  8327. (g.textBaseline = 'middle'),
  8328. (g.font = e.font || Yr),
  8329. (g.opacity = Oi(u.opacity, n.opacity, 1)),
  8330. Pd(g, u),
  8331. w &&
  8332. ((g.lineWidth = Oi(u.lineWidth, n.lineWidth, _)),
  8333. (g.lineDash = ht(u.lineDash, n.lineDash)),
  8334. (g.lineDashOffset = n.lineDashOffset || 0),
  8335. (g.stroke = w)),
  8336. S && (g.fill = S)
  8337. var b = e.contentWidth,
  8338. T = e.contentHeight
  8339. p.setBoundingRect(
  8340. new vt($i(g.x, b, g.textAlign), qn(g.y, T, g.textBaseline), b, T)
  8341. )
  8342. }),
  8343. (t.prototype._renderBackground = function (e, n, i, a, o, s) {
  8344. var l = e.backgroundColor,
  8345. u = e.borderWidth,
  8346. f = e.borderColor,
  8347. h = l && l.image,
  8348. c = l && !h,
  8349. v = e.borderRadius,
  8350. d = this,
  8351. p,
  8352. g
  8353. if (c || e.lineHeight || (u && f)) {
  8354. ;(p = this._getOrCreateChild(St)),
  8355. p.useStyle(p.createStyle()),
  8356. (p.style.fill = null)
  8357. var m = p.shape
  8358. ;(m.x = i),
  8359. (m.y = a),
  8360. (m.width = o),
  8361. (m.height = s),
  8362. (m.r = v),
  8363. p.dirtyShape()
  8364. }
  8365. if (c) {
  8366. var y = p.style
  8367. ;(y.fill = l || null), (y.fillOpacity = ht(e.fillOpacity, 1))
  8368. } else if (h) {
  8369. ;(g = this._getOrCreateChild(un)),
  8370. (g.onload = function () {
  8371. d.dirtyStyle()
  8372. })
  8373. var _ = g.style
  8374. ;(_.image = l.image),
  8375. (_.x = i),
  8376. (_.y = a),
  8377. (_.width = o),
  8378. (_.height = s)
  8379. }
  8380. if (u && f) {
  8381. var y = p.style
  8382. ;(y.lineWidth = u),
  8383. (y.stroke = f),
  8384. (y.strokeOpacity = ht(e.strokeOpacity, 1)),
  8385. (y.lineDash = e.borderDash),
  8386. (y.lineDashOffset = e.borderDashOffset || 0),
  8387. (p.strokeContainThreshold = 0),
  8388. p.hasFill() &&
  8389. p.hasStroke() &&
  8390. ((y.strokeFirst = !0), (y.lineWidth *= 2))
  8391. }
  8392. var S = (p || g).style
  8393. ;(S.shadowBlur = e.shadowBlur || 0),
  8394. (S.shadowColor = e.shadowColor || 'transparent'),
  8395. (S.shadowOffsetX = e.shadowOffsetX || 0),
  8396. (S.shadowOffsetY = e.shadowOffsetY || 0),
  8397. (S.opacity = Oi(e.opacity, n.opacity, 1))
  8398. }),
  8399. (t.makeFont = function (e) {
  8400. var n = ''
  8401. return (
  8402. mT(e) &&
  8403. (n = [
  8404. e.fontStyle,
  8405. e.fontWeight,
  8406. gT(e.fontSize),
  8407. e.fontFamily || 'sans-serif'
  8408. ].join(' ')),
  8409. (n && Ge(n)) || e.textFont || e.font
  8410. )
  8411. }),
  8412. t
  8413. )
  8414. })(Qn),
  8415. dT = { left: !0, right: 1, center: 1 },
  8416. pT = { top: 1, bottom: 1, middle: 1 },
  8417. Ld = ['fontStyle', 'fontWeight', 'fontSize', 'fontFamily']
  8418. function gT(r) {
  8419. return typeof r == 'string' &&
  8420. (r.indexOf('px') !== -1 ||
  8421. r.indexOf('rem') !== -1 ||
  8422. r.indexOf('em') !== -1)
  8423. ? r
  8424. : isNaN(+r)
  8425. ? Dl + 'px'
  8426. : r + 'px'
  8427. }
  8428. function Pd(r, t) {
  8429. for (var e = 0; e < Ld.length; e++) {
  8430. var n = Ld[e],
  8431. i = t[n]
  8432. i != null && (r[n] = i)
  8433. }
  8434. }
  8435. function mT(r) {
  8436. return r.fontSize != null || r.fontFamily || r.fontWeight
  8437. }
  8438. function yT(r) {
  8439. return Rd(r), A(r.rich, Rd), r
  8440. }
  8441. function Rd(r) {
  8442. if (r) {
  8443. r.font = Id.makeFont(r)
  8444. var t = r.align
  8445. t === 'middle' && (t = 'center'),
  8446. (r.align = t == null || dT[t] ? t : 'left')
  8447. var e = r.verticalAlign
  8448. e === 'center' && (e = 'middle'),
  8449. (r.verticalAlign = e == null || pT[e] ? e : 'top')
  8450. var n = r.padding
  8451. n && (r.padding = Zv(r.padding))
  8452. }
  8453. }
  8454. function Ed(r, t) {
  8455. return r == null || t <= 0 || r === 'transparent' || r === 'none'
  8456. ? null
  8457. : r.image || r.colorStops
  8458. ? '#000'
  8459. : r
  8460. }
  8461. function Od(r) {
  8462. return r == null || r === 'none' ? null : r.image || r.colorStops ? '#000' : r
  8463. }
  8464. function kd(r, t, e) {
  8465. return t === 'right'
  8466. ? r - e[1]
  8467. : t === 'center'
  8468. ? r + e[3] / 2 - e[1] / 2
  8469. : r + e[3]
  8470. }
  8471. function Bd(r) {
  8472. var t = r.text
  8473. return t != null && (t += ''), t
  8474. }
  8475. function Uu(r) {
  8476. return !!(
  8477. r.backgroundColor ||
  8478. r.lineHeight ||
  8479. (r.borderWidth && r.borderColor)
  8480. )
  8481. }
  8482. var Et = Id,
  8483. ct = wt(),
  8484. _T = function (r, t, e, n) {
  8485. if (n) {
  8486. var i = ct(n)
  8487. ;(i.dataIndex = e),
  8488. (i.dataType = t),
  8489. (i.seriesIndex = r),
  8490. n.type === 'group' &&
  8491. n.traverse(function (a) {
  8492. var o = ct(a)
  8493. ;(o.seriesIndex = r), (o.dataIndex = e), (o.dataType = t)
  8494. })
  8495. }
  8496. },
  8497. Nd = 1,
  8498. Fd = {},
  8499. zd = wt(),
  8500. Yu = wt(),
  8501. Zu = 0,
  8502. Wo = 1,
  8503. Uo = 2,
  8504. pe = ['emphasis', 'blur', 'select'],
  8505. Yo = ['normal', 'emphasis', 'blur', 'select'],
  8506. ST = 10,
  8507. xT = 9,
  8508. hn = 'highlight',
  8509. Zo = 'downplay',
  8510. na = 'select',
  8511. $o = 'unselect',
  8512. ia = 'toggleSelect'
  8513. function ti(r) {
  8514. return r != null && r !== 'none'
  8515. }
  8516. var Vd = new zi(100)
  8517. function Gd(r) {
  8518. if (W(r)) {
  8519. var t = Vd.get(r)
  8520. return t || ((t = Ac(r, -0.1)), Vd.put(r, t)), t
  8521. } else if (io(r)) {
  8522. var e = N({}, r)
  8523. return (
  8524. (e.colorStops = G(r.colorStops, function (n) {
  8525. return { offset: n.offset, color: Ac(n.color, -0.1) }
  8526. })),
  8527. e
  8528. )
  8529. }
  8530. return r
  8531. }
  8532. function Xo(r, t, e) {
  8533. r.onHoverStateChange && (r.hoverState || 0) !== e && r.onHoverStateChange(t),
  8534. (r.hoverState = e)
  8535. }
  8536. function Hd(r) {
  8537. Xo(r, 'emphasis', Uo)
  8538. }
  8539. function Wd(r) {
  8540. r.hoverState === Uo && Xo(r, 'normal', Zu)
  8541. }
  8542. function $u(r) {
  8543. Xo(r, 'blur', Wo)
  8544. }
  8545. function Ud(r) {
  8546. r.hoverState === Wo && Xo(r, 'normal', Zu)
  8547. }
  8548. function wT(r) {
  8549. r.selected = !0
  8550. }
  8551. function bT(r) {
  8552. r.selected = !1
  8553. }
  8554. function Yd(r, t, e) {
  8555. t(r, e)
  8556. }
  8557. function fr(r, t, e) {
  8558. Yd(r, t, e),
  8559. r.isGroup &&
  8560. r.traverse(function (n) {
  8561. Yd(n, t, e)
  8562. })
  8563. }
  8564. function Zd(r, t) {
  8565. switch (t) {
  8566. case 'emphasis':
  8567. r.hoverState = Uo
  8568. break
  8569. case 'normal':
  8570. r.hoverState = Zu
  8571. break
  8572. case 'blur':
  8573. r.hoverState = Wo
  8574. break
  8575. case 'select':
  8576. r.selected = !0
  8577. }
  8578. }
  8579. function TT(r, t, e, n) {
  8580. for (var i = r.style, a = {}, o = 0; o < t.length; o++) {
  8581. var s = t[o],
  8582. l = i[s]
  8583. a[s] = l == null ? n && n[s] : l
  8584. }
  8585. for (var o = 0; o < r.animators.length; o++) {
  8586. var u = r.animators[o]
  8587. u.__fromStateTransition &&
  8588. u.__fromStateTransition.indexOf(e) < 0 &&
  8589. u.targetName === 'style' &&
  8590. u.saveTo(a, t)
  8591. }
  8592. return a
  8593. }
  8594. function CT(r, t, e, n) {
  8595. var i = e && ot(e, 'select') >= 0,
  8596. a = !1
  8597. if (r instanceof st) {
  8598. var o = zd(r),
  8599. s = (i && o.selectFill) || o.normalFill,
  8600. l = (i && o.selectStroke) || o.normalStroke
  8601. if (ti(s) || ti(l)) {
  8602. n = n || {}
  8603. var u = n.style || {}
  8604. u.fill === 'inherit'
  8605. ? ((a = !0), (n = N({}, n)), (u = N({}, u)), (u.fill = s))
  8606. : !ti(u.fill) && ti(s)
  8607. ? ((a = !0), (n = N({}, n)), (u = N({}, u)), (u.fill = Gd(s)))
  8608. : !ti(u.stroke) &&
  8609. ti(l) &&
  8610. (a || ((n = N({}, n)), (u = N({}, u))), (u.stroke = Gd(l))),
  8611. (n.style = u)
  8612. }
  8613. }
  8614. if (n && n.z2 == null) {
  8615. a || (n = N({}, n))
  8616. var f = r.z2EmphasisLift
  8617. n.z2 = r.z2 + (f != null ? f : ST)
  8618. }
  8619. return n
  8620. }
  8621. function AT(r, t, e) {
  8622. if (e && e.z2 == null) {
  8623. e = N({}, e)
  8624. var n = r.z2SelectLift
  8625. e.z2 = r.z2 + (n != null ? n : xT)
  8626. }
  8627. return e
  8628. }
  8629. function MT(r, t, e) {
  8630. var n = ot(r.currentStates, t) >= 0,
  8631. i = r.style.opacity,
  8632. a = n ? null : TT(r, ['opacity'], t, { opacity: 1 })
  8633. e = e || {}
  8634. var o = e.style || {}
  8635. return (
  8636. o.opacity == null &&
  8637. ((e = N({}, e)),
  8638. (o = N({ opacity: n ? i : a.opacity * 0.1 }, o)),
  8639. (e.style = o)),
  8640. e
  8641. )
  8642. }
  8643. function Xu(r, t) {
  8644. var e = this.states[r]
  8645. if (this.style) {
  8646. if (r === 'emphasis') return CT(this, r, t, e)
  8647. if (r === 'blur') return MT(this, r, e)
  8648. if (r === 'select') return AT(this, r, e)
  8649. }
  8650. return e
  8651. }
  8652. function DT(r) {
  8653. r.stateProxy = Xu
  8654. var t = r.getTextContent(),
  8655. e = r.getTextGuideLine()
  8656. t && (t.stateProxy = Xu), e && (e.stateProxy = Xu)
  8657. }
  8658. function $d(r, t) {
  8659. !Jd(r, t) && !r.__highByOuter && fr(r, Hd)
  8660. }
  8661. function Xd(r, t) {
  8662. !Jd(r, t) && !r.__highByOuter && fr(r, Wd)
  8663. }
  8664. function ei(r, t) {
  8665. ;(r.__highByOuter |= 1 << (t || 0)), fr(r, Hd)
  8666. }
  8667. function ri(r, t) {
  8668. !(r.__highByOuter &= ~(1 << (t || 0))) && fr(r, Wd)
  8669. }
  8670. function IT(r) {
  8671. fr(r, $u)
  8672. }
  8673. function qd(r) {
  8674. fr(r, Ud)
  8675. }
  8676. function Kd(r) {
  8677. fr(r, wT)
  8678. }
  8679. function Qd(r) {
  8680. fr(r, bT)
  8681. }
  8682. function Jd(r, t) {
  8683. return r.__highDownSilentOnTouch && t.zrByTouch
  8684. }
  8685. function jd(r) {
  8686. var t = r.getModel(),
  8687. e = [],
  8688. n = []
  8689. t.eachComponent(function (i, a) {
  8690. var o = Yu(a),
  8691. s = i === 'series',
  8692. l = s ? r.getViewOfSeriesModel(a) : r.getViewOfComponentModel(a)
  8693. !s && n.push(l),
  8694. o.isBlured &&
  8695. (l.group.traverse(function (u) {
  8696. Ud(u)
  8697. }),
  8698. s && e.push(a)),
  8699. (o.isBlured = !1)
  8700. }),
  8701. A(n, function (i) {
  8702. i && i.toggleBlurSeries && i.toggleBlurSeries(e, !1, t)
  8703. })
  8704. }
  8705. function qu(r, t, e, n) {
  8706. var i = n.getModel()
  8707. e = e || 'coordinateSystem'
  8708. function a(u, f) {
  8709. for (var h = 0; h < f.length; h++) {
  8710. var c = u.getItemGraphicEl(f[h])
  8711. c && qd(c)
  8712. }
  8713. }
  8714. if (r != null && !(!t || t === 'none')) {
  8715. var o = i.getSeriesByIndex(r),
  8716. s = o.coordinateSystem
  8717. s && s.master && (s = s.master)
  8718. var l = []
  8719. i.eachSeries(function (u) {
  8720. var f = o === u,
  8721. h = u.coordinateSystem
  8722. h && h.master && (h = h.master)
  8723. var c = h && s ? h === s : f
  8724. if (
  8725. !(
  8726. (e === 'series' && !f) ||
  8727. (e === 'coordinateSystem' && !c) ||
  8728. (t === 'series' && f)
  8729. )
  8730. ) {
  8731. var v = n.getViewOfSeriesModel(u)
  8732. if (
  8733. (v.group.traverse(function (g) {
  8734. $u(g)
  8735. }),
  8736. Zt(t))
  8737. )
  8738. a(u.getData(), t)
  8739. else if (Y(t))
  8740. for (var d = xt(t), p = 0; p < d.length; p++)
  8741. a(u.getData(d[p]), t[d[p]])
  8742. l.push(u), (Yu(u).isBlured = !0)
  8743. }
  8744. }),
  8745. i.eachComponent(function (u, f) {
  8746. if (u !== 'series') {
  8747. var h = n.getViewOfComponentModel(f)
  8748. h && h.toggleBlurSeries && h.toggleBlurSeries(l, !0, i)
  8749. }
  8750. })
  8751. }
  8752. }
  8753. function Ku(r, t, e) {
  8754. if (!(r == null || t == null)) {
  8755. var n = e.getModel().getComponent(r, t)
  8756. if (!!n) {
  8757. Yu(n).isBlured = !0
  8758. var i = e.getViewOfComponentModel(n)
  8759. !i ||
  8760. !i.focusBlurEnabled ||
  8761. i.group.traverse(function (a) {
  8762. $u(a)
  8763. })
  8764. }
  8765. }
  8766. }
  8767. function LT(r, t, e) {
  8768. var n = r.seriesIndex,
  8769. i = r.getData(t.dataType)
  8770. if (!!i) {
  8771. var a = Jr(i, t)
  8772. a = (z(a) ? a[0] : a) || 0
  8773. var o = i.getItemGraphicEl(a)
  8774. if (!o)
  8775. for (var s = i.count(), l = 0; !o && l < s; ) o = i.getItemGraphicEl(l++)
  8776. if (o) {
  8777. var u = ct(o)
  8778. qu(n, u.focus, u.blurScope, e)
  8779. } else {
  8780. var f = r.get(['emphasis', 'focus']),
  8781. h = r.get(['emphasis', 'blurScope'])
  8782. f != null && qu(n, f, h, e)
  8783. }
  8784. }
  8785. }
  8786. function Qu(r, t, e, n) {
  8787. var i = { focusSelf: !1, dispatchers: null }
  8788. if (r == null || r === 'series' || t == null || e == null) return i
  8789. var a = n.getModel().getComponent(r, t)
  8790. if (!a) return i
  8791. var o = n.getViewOfComponentModel(a)
  8792. if (!o || !o.findHighDownDispatchers) return i
  8793. for (var s = o.findHighDownDispatchers(e), l, u = 0; u < s.length; u++)
  8794. if (ct(s[u]).focus === 'self') {
  8795. l = !0
  8796. break
  8797. }
  8798. return { focusSelf: l, dispatchers: s }
  8799. }
  8800. function PT(r, t, e) {
  8801. var n = ct(r),
  8802. i = Qu(n.componentMainType, n.componentIndex, n.componentHighDownName, e),
  8803. a = i.dispatchers,
  8804. o = i.focusSelf
  8805. a
  8806. ? (o && Ku(n.componentMainType, n.componentIndex, e),
  8807. A(a, function (s) {
  8808. return $d(s, t)
  8809. }))
  8810. : (qu(n.seriesIndex, n.focus, n.blurScope, e),
  8811. n.focus === 'self' && Ku(n.componentMainType, n.componentIndex, e),
  8812. $d(r, t))
  8813. }
  8814. function RT(r, t, e) {
  8815. jd(e)
  8816. var n = ct(r),
  8817. i = Qu(
  8818. n.componentMainType,
  8819. n.componentIndex,
  8820. n.componentHighDownName,
  8821. e
  8822. ).dispatchers
  8823. i
  8824. ? A(i, function (a) {
  8825. return Xd(a, t)
  8826. })
  8827. : Xd(r, t)
  8828. }
  8829. function ET(r, t, e) {
  8830. if (!!ju(t)) {
  8831. var n = t.dataType,
  8832. i = r.getData(n),
  8833. a = Jr(i, t)
  8834. z(a) || (a = [a]),
  8835. r[t.type === ia ? 'toggleSelect' : t.type === na ? 'select' : 'unselect'](
  8836. a,
  8837. n
  8838. )
  8839. }
  8840. }
  8841. function tp(r) {
  8842. var t = r.getAllData()
  8843. A(t, function (e) {
  8844. var n = e.data,
  8845. i = e.type
  8846. n.eachItemGraphicEl(function (a, o) {
  8847. r.isSelected(o, i) ? Kd(a) : Qd(a)
  8848. })
  8849. })
  8850. }
  8851. function OT(r) {
  8852. var t = []
  8853. return (
  8854. r.eachSeries(function (e) {
  8855. var n = e.getAllData()
  8856. A(n, function (i) {
  8857. i.data
  8858. var a = i.type,
  8859. o = e.getSelectedDataIndices()
  8860. if (o.length > 0) {
  8861. var s = { dataIndex: o, seriesIndex: e.seriesIndex }
  8862. a != null && (s.dataType = a), t.push(s)
  8863. }
  8864. })
  8865. }),
  8866. t
  8867. )
  8868. }
  8869. function qo(r, t, e) {
  8870. rp(r, !0), fr(r, DT), BT(r, t, e)
  8871. }
  8872. function kT(r) {
  8873. rp(r, !1)
  8874. }
  8875. function aa(r, t, e, n) {
  8876. n ? kT(r) : qo(r, t, e)
  8877. }
  8878. function BT(r, t, e) {
  8879. var n = ct(r)
  8880. t != null ? ((n.focus = t), (n.blurScope = e)) : n.focus && (n.focus = null)
  8881. }
  8882. var ep = ['emphasis', 'blur', 'select'],
  8883. NT = {
  8884. itemStyle: 'getItemStyle',
  8885. lineStyle: 'getLineStyle',
  8886. areaStyle: 'getAreaStyle'
  8887. }
  8888. function Ko(r, t, e, n) {
  8889. e = e || 'itemStyle'
  8890. for (var i = 0; i < ep.length; i++) {
  8891. var a = ep[i],
  8892. o = t.getModel([a, e]),
  8893. s = r.ensureState(a)
  8894. s.style = n ? n(o) : o[NT[e]]()
  8895. }
  8896. }
  8897. function rp(r, t) {
  8898. var e = t === !1,
  8899. n = r
  8900. r.highDownSilentOnTouch &&
  8901. (n.__highDownSilentOnTouch = r.highDownSilentOnTouch),
  8902. (!e || n.__highDownDispatcher) &&
  8903. ((n.__highByOuter = n.__highByOuter || 0), (n.__highDownDispatcher = !e))
  8904. }
  8905. function Ju(r) {
  8906. return !!(r && r.__highDownDispatcher)
  8907. }
  8908. function FT(r) {
  8909. var t = Fd[r]
  8910. return t == null && Nd <= 32 && (t = Fd[r] = Nd++), t
  8911. }
  8912. function ju(r) {
  8913. var t = r.type
  8914. return t === na || t === $o || t === ia
  8915. }
  8916. function np(r) {
  8917. var t = r.type
  8918. return t === hn || t === Zo
  8919. }
  8920. function zT(r) {
  8921. var t = zd(r)
  8922. ;(t.normalFill = r.style.fill), (t.normalStroke = r.style.stroke)
  8923. var e = r.states.select || {}
  8924. ;(t.selectFill = (e.style && e.style.fill) || null),
  8925. (t.selectStroke = (e.style && e.style.stroke) || null)
  8926. }
  8927. var ni = ur.CMD,
  8928. VT = [[], [], []],
  8929. ip = Math.sqrt,
  8930. GT = Math.atan2
  8931. function ap(r, t) {
  8932. if (!!t) {
  8933. var e = r.data,
  8934. n = r.len(),
  8935. i,
  8936. a,
  8937. o,
  8938. s,
  8939. l,
  8940. u,
  8941. f = ni.M,
  8942. h = ni.C,
  8943. c = ni.L,
  8944. v = ni.R,
  8945. d = ni.A,
  8946. p = ni.Q
  8947. for (o = 0, s = 0; o < n; ) {
  8948. switch (((i = e[o++]), (s = o), (a = 0), i)) {
  8949. case f:
  8950. a = 1
  8951. break
  8952. case c:
  8953. a = 1
  8954. break
  8955. case h:
  8956. a = 3
  8957. break
  8958. case p:
  8959. a = 2
  8960. break
  8961. case d:
  8962. var g = t[4],
  8963. m = t[5],
  8964. y = ip(t[0] * t[0] + t[1] * t[1]),
  8965. _ = ip(t[2] * t[2] + t[3] * t[3]),
  8966. S = GT(-t[1] / _, t[0] / y)
  8967. ;(e[o] *= y),
  8968. (e[o++] += g),
  8969. (e[o] *= _),
  8970. (e[o++] += m),
  8971. (e[o++] *= y),
  8972. (e[o++] *= _),
  8973. (e[o++] += S),
  8974. (e[o++] += S),
  8975. (o += 2),
  8976. (s = o)
  8977. break
  8978. case v:
  8979. ;(u[0] = e[o++]),
  8980. (u[1] = e[o++]),
  8981. ue(u, u, t),
  8982. (e[s++] = u[0]),
  8983. (e[s++] = u[1]),
  8984. (u[0] += e[o++]),
  8985. (u[1] += e[o++]),
  8986. ue(u, u, t),
  8987. (e[s++] = u[0]),
  8988. (e[s++] = u[1])
  8989. }
  8990. for (l = 0; l < a; l++) {
  8991. var w = VT[l]
  8992. ;(w[0] = e[o++]),
  8993. (w[1] = e[o++]),
  8994. ue(w, w, t),
  8995. (e[s++] = w[0]),
  8996. (e[s++] = w[1])
  8997. }
  8998. }
  8999. r.increaseVersion()
  9000. }
  9001. }
  9002. var tf = Math.sqrt,
  9003. Qo = Math.sin,
  9004. Jo = Math.cos,
  9005. oa = Math.PI
  9006. function op(r) {
  9007. return Math.sqrt(r[0] * r[0] + r[1] * r[1])
  9008. }
  9009. function ef(r, t) {
  9010. return (r[0] * t[0] + r[1] * t[1]) / (op(r) * op(t))
  9011. }
  9012. function sp(r, t) {
  9013. return (r[0] * t[1] < r[1] * t[0] ? -1 : 1) * Math.acos(ef(r, t))
  9014. }
  9015. function lp(r, t, e, n, i, a, o, s, l, u, f) {
  9016. var h = l * (oa / 180),
  9017. c = (Jo(h) * (r - e)) / 2 + (Qo(h) * (t - n)) / 2,
  9018. v = (-1 * Qo(h) * (r - e)) / 2 + (Jo(h) * (t - n)) / 2,
  9019. d = (c * c) / (o * o) + (v * v) / (s * s)
  9020. d > 1 && ((o *= tf(d)), (s *= tf(d)))
  9021. var p =
  9022. (i === a ? -1 : 1) *
  9023. tf(
  9024. (o * o * (s * s) - o * o * (v * v) - s * s * (c * c)) /
  9025. (o * o * (v * v) + s * s * (c * c))
  9026. ) || 0,
  9027. g = (p * o * v) / s,
  9028. m = (p * -s * c) / o,
  9029. y = (r + e) / 2 + Jo(h) * g - Qo(h) * m,
  9030. _ = (t + n) / 2 + Qo(h) * g + Jo(h) * m,
  9031. S = sp([1, 0], [(c - g) / o, (v - m) / s]),
  9032. w = [(c - g) / o, (v - m) / s],
  9033. x = [(-1 * c - g) / o, (-1 * v - m) / s],
  9034. b = sp(w, x)
  9035. if ((ef(w, x) <= -1 && (b = oa), ef(w, x) >= 1 && (b = 0), b < 0)) {
  9036. var T = Math.round((b / oa) * 1e6) / 1e6
  9037. b = oa * 2 + (T % 2) * oa
  9038. }
  9039. f.addData(u, y, _, o, s, S, b, h, a)
  9040. }
  9041. var HT = /([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,
  9042. WT = /-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g
  9043. function UT(r) {
  9044. var t = new ur()
  9045. if (!r) return t
  9046. var e = 0,
  9047. n = 0,
  9048. i = e,
  9049. a = n,
  9050. o,
  9051. s = ur.CMD,
  9052. l = r.match(HT)
  9053. if (!l) return t
  9054. for (var u = 0; u < l.length; u++) {
  9055. for (
  9056. var f = l[u],
  9057. h = f.charAt(0),
  9058. c = void 0,
  9059. v = f.match(WT) || [],
  9060. d = v.length,
  9061. p = 0;
  9062. p < d;
  9063. p++
  9064. )
  9065. v[p] = parseFloat(v[p])
  9066. for (var g = 0; g < d; ) {
  9067. var m = void 0,
  9068. y = void 0,
  9069. _ = void 0,
  9070. S = void 0,
  9071. w = void 0,
  9072. x = void 0,
  9073. b = void 0,
  9074. T = e,
  9075. C = n,
  9076. M = void 0,
  9077. D = void 0
  9078. switch (h) {
  9079. case 'l':
  9080. ;(e += v[g++]), (n += v[g++]), (c = s.L), t.addData(c, e, n)
  9081. break
  9082. case 'L':
  9083. ;(e = v[g++]), (n = v[g++]), (c = s.L), t.addData(c, e, n)
  9084. break
  9085. case 'm':
  9086. ;(e += v[g++]),
  9087. (n += v[g++]),
  9088. (c = s.M),
  9089. t.addData(c, e, n),
  9090. (i = e),
  9091. (a = n),
  9092. (h = 'l')
  9093. break
  9094. case 'M':
  9095. ;(e = v[g++]),
  9096. (n = v[g++]),
  9097. (c = s.M),
  9098. t.addData(c, e, n),
  9099. (i = e),
  9100. (a = n),
  9101. (h = 'L')
  9102. break
  9103. case 'h':
  9104. ;(e += v[g++]), (c = s.L), t.addData(c, e, n)
  9105. break
  9106. case 'H':
  9107. ;(e = v[g++]), (c = s.L), t.addData(c, e, n)
  9108. break
  9109. case 'v':
  9110. ;(n += v[g++]), (c = s.L), t.addData(c, e, n)
  9111. break
  9112. case 'V':
  9113. ;(n = v[g++]), (c = s.L), t.addData(c, e, n)
  9114. break
  9115. case 'C':
  9116. ;(c = s.C),
  9117. t.addData(c, v[g++], v[g++], v[g++], v[g++], v[g++], v[g++]),
  9118. (e = v[g - 2]),
  9119. (n = v[g - 1])
  9120. break
  9121. case 'c':
  9122. ;(c = s.C),
  9123. t.addData(
  9124. c,
  9125. v[g++] + e,
  9126. v[g++] + n,
  9127. v[g++] + e,
  9128. v[g++] + n,
  9129. v[g++] + e,
  9130. v[g++] + n
  9131. ),
  9132. (e += v[g - 2]),
  9133. (n += v[g - 1])
  9134. break
  9135. case 'S':
  9136. ;(m = e),
  9137. (y = n),
  9138. (M = t.len()),
  9139. (D = t.data),
  9140. o === s.C && ((m += e - D[M - 4]), (y += n - D[M - 3])),
  9141. (c = s.C),
  9142. (T = v[g++]),
  9143. (C = v[g++]),
  9144. (e = v[g++]),
  9145. (n = v[g++]),
  9146. t.addData(c, m, y, T, C, e, n)
  9147. break
  9148. case 's':
  9149. ;(m = e),
  9150. (y = n),
  9151. (M = t.len()),
  9152. (D = t.data),
  9153. o === s.C && ((m += e - D[M - 4]), (y += n - D[M - 3])),
  9154. (c = s.C),
  9155. (T = e + v[g++]),
  9156. (C = n + v[g++]),
  9157. (e += v[g++]),
  9158. (n += v[g++]),
  9159. t.addData(c, m, y, T, C, e, n)
  9160. break
  9161. case 'Q':
  9162. ;(T = v[g++]),
  9163. (C = v[g++]),
  9164. (e = v[g++]),
  9165. (n = v[g++]),
  9166. (c = s.Q),
  9167. t.addData(c, T, C, e, n)
  9168. break
  9169. case 'q':
  9170. ;(T = v[g++] + e),
  9171. (C = v[g++] + n),
  9172. (e += v[g++]),
  9173. (n += v[g++]),
  9174. (c = s.Q),
  9175. t.addData(c, T, C, e, n)
  9176. break
  9177. case 'T':
  9178. ;(m = e),
  9179. (y = n),
  9180. (M = t.len()),
  9181. (D = t.data),
  9182. o === s.Q && ((m += e - D[M - 4]), (y += n - D[M - 3])),
  9183. (e = v[g++]),
  9184. (n = v[g++]),
  9185. (c = s.Q),
  9186. t.addData(c, m, y, e, n)
  9187. break
  9188. case 't':
  9189. ;(m = e),
  9190. (y = n),
  9191. (M = t.len()),
  9192. (D = t.data),
  9193. o === s.Q && ((m += e - D[M - 4]), (y += n - D[M - 3])),
  9194. (e += v[g++]),
  9195. (n += v[g++]),
  9196. (c = s.Q),
  9197. t.addData(c, m, y, e, n)
  9198. break
  9199. case 'A':
  9200. ;(_ = v[g++]),
  9201. (S = v[g++]),
  9202. (w = v[g++]),
  9203. (x = v[g++]),
  9204. (b = v[g++]),
  9205. (T = e),
  9206. (C = n),
  9207. (e = v[g++]),
  9208. (n = v[g++]),
  9209. (c = s.A),
  9210. lp(T, C, e, n, x, b, _, S, w, c, t)
  9211. break
  9212. case 'a':
  9213. ;(_ = v[g++]),
  9214. (S = v[g++]),
  9215. (w = v[g++]),
  9216. (x = v[g++]),
  9217. (b = v[g++]),
  9218. (T = e),
  9219. (C = n),
  9220. (e += v[g++]),
  9221. (n += v[g++]),
  9222. (c = s.A),
  9223. lp(T, C, e, n, x, b, _, S, w, c, t)
  9224. break
  9225. }
  9226. }
  9227. ;(h === 'z' || h === 'Z') && ((c = s.Z), t.addData(c), (e = i), (n = a)),
  9228. (o = c)
  9229. }
  9230. return t.toStatic(), t
  9231. }
  9232. var up = (function (r) {
  9233. B(t, r)
  9234. function t() {
  9235. return (r !== null && r.apply(this, arguments)) || this
  9236. }
  9237. return (t.prototype.applyTransform = function (e) {}), t
  9238. })(st)
  9239. function fp(r) {
  9240. return r.setData != null
  9241. }
  9242. function hp(r, t) {
  9243. var e = UT(r),
  9244. n = N({}, t)
  9245. return (
  9246. (n.buildPath = function (i) {
  9247. if (fp(i)) {
  9248. i.setData(e.data)
  9249. var a = i.getContext()
  9250. a && i.rebuildPath(a, 1)
  9251. } else {
  9252. var a = i
  9253. e.rebuildPath(a, 1)
  9254. }
  9255. }),
  9256. (n.applyTransform = function (i) {
  9257. ap(e, i), this.dirtyShape()
  9258. }),
  9259. n
  9260. )
  9261. }
  9262. function YT(r, t) {
  9263. return new up(hp(r, t))
  9264. }
  9265. function ZT(r, t) {
  9266. var e = hp(r, t),
  9267. n = (function (i) {
  9268. B(a, i)
  9269. function a(o) {
  9270. var s = i.call(this, o) || this
  9271. return (
  9272. (s.applyTransform = e.applyTransform), (s.buildPath = e.buildPath), s
  9273. )
  9274. }
  9275. return a
  9276. })(up)
  9277. return n
  9278. }
  9279. function $T(r, t) {
  9280. for (var e = [], n = r.length, i = 0; i < n; i++) {
  9281. var a = r[i]
  9282. e.push(a.getUpdatedPathProxy(!0))
  9283. }
  9284. var o = new st(t)
  9285. return (
  9286. o.createPathProxy(),
  9287. (o.buildPath = function (s) {
  9288. if (fp(s)) {
  9289. s.appendPath(e)
  9290. var l = s.getContext()
  9291. l && s.rebuildPath(l, 1)
  9292. }
  9293. }),
  9294. o
  9295. )
  9296. }
  9297. function rf(r, t) {
  9298. t = t || {}
  9299. var e = new st()
  9300. return (
  9301. r.shape && e.setShape(r.shape),
  9302. e.setStyle(r.style),
  9303. t.bakeTransform
  9304. ? ap(e.path, r.getComputedTransform())
  9305. : t.toLocal
  9306. ? e.setLocalTransform(r.getComputedTransform())
  9307. : e.copyTransform(r),
  9308. (e.buildPath = r.buildPath),
  9309. (e.applyTransform = e.applyTransform),
  9310. (e.z = r.z),
  9311. (e.z2 = r.z2),
  9312. (e.zlevel = r.zlevel),
  9313. e
  9314. )
  9315. }
  9316. var XT = (function () {
  9317. function r() {
  9318. ;(this.cx = 0), (this.cy = 0), (this.r = 0)
  9319. }
  9320. return r
  9321. })(),
  9322. vp = (function (r) {
  9323. B(t, r)
  9324. function t(e) {
  9325. return r.call(this, e) || this
  9326. }
  9327. return (
  9328. (t.prototype.getDefaultShape = function () {
  9329. return new XT()
  9330. }),
  9331. (t.prototype.buildPath = function (e, n) {
  9332. e.moveTo(n.cx + n.r, n.cy), e.arc(n.cx, n.cy, n.r, 0, Math.PI * 2)
  9333. }),
  9334. t
  9335. )
  9336. })(st)
  9337. vp.prototype.type = 'circle'
  9338. var nf = vp,
  9339. qT = (function () {
  9340. function r() {
  9341. ;(this.cx = 0), (this.cy = 0), (this.rx = 0), (this.ry = 0)
  9342. }
  9343. return r
  9344. })(),
  9345. cp = (function (r) {
  9346. B(t, r)
  9347. function t(e) {
  9348. return r.call(this, e) || this
  9349. }
  9350. return (
  9351. (t.prototype.getDefaultShape = function () {
  9352. return new qT()
  9353. }),
  9354. (t.prototype.buildPath = function (e, n) {
  9355. var i = 0.5522848,
  9356. a = n.cx,
  9357. o = n.cy,
  9358. s = n.rx,
  9359. l = n.ry,
  9360. u = s * i,
  9361. f = l * i
  9362. e.moveTo(a - s, o),
  9363. e.bezierCurveTo(a - s, o - f, a - u, o - l, a, o - l),
  9364. e.bezierCurveTo(a + u, o - l, a + s, o - f, a + s, o),
  9365. e.bezierCurveTo(a + s, o + f, a + u, o + l, a, o + l),
  9366. e.bezierCurveTo(a - u, o + l, a - s, o + f, a - s, o),
  9367. e.closePath()
  9368. }),
  9369. t
  9370. )
  9371. })(st)
  9372. cp.prototype.type = 'ellipse'
  9373. var dp = cp,
  9374. pp = Math.PI,
  9375. af = pp * 2,
  9376. vn = Math.sin,
  9377. ii = Math.cos,
  9378. KT = Math.acos,
  9379. Ht = Math.atan2,
  9380. gp = Math.abs,
  9381. sa = Math.sqrt,
  9382. la = Math.max,
  9383. Xe = Math.min,
  9384. De = 1e-4
  9385. function QT(r, t, e, n, i, a, o, s) {
  9386. var l = e - r,
  9387. u = n - t,
  9388. f = o - i,
  9389. h = s - a,
  9390. c = h * l - f * u
  9391. if (!(c * c < De))
  9392. return (c = (f * (t - a) - h * (r - i)) / c), [r + c * l, t + c * u]
  9393. }
  9394. function jo(r, t, e, n, i, a, o) {
  9395. var s = r - e,
  9396. l = t - n,
  9397. u = (o ? a : -a) / sa(s * s + l * l),
  9398. f = u * l,
  9399. h = -u * s,
  9400. c = r + f,
  9401. v = t + h,
  9402. d = e + f,
  9403. p = n + h,
  9404. g = (c + d) / 2,
  9405. m = (v + p) / 2,
  9406. y = d - c,
  9407. _ = p - v,
  9408. S = y * y + _ * _,
  9409. w = i - a,
  9410. x = c * p - d * v,
  9411. b = (_ < 0 ? -1 : 1) * sa(la(0, w * w * S - x * x)),
  9412. T = (x * _ - y * b) / S,
  9413. C = (-x * y - _ * b) / S,
  9414. M = (x * _ + y * b) / S,
  9415. D = (-x * y + _ * b) / S,
  9416. I = T - g,
  9417. L = C - m,
  9418. P = M - g,
  9419. R = D - m
  9420. return (
  9421. I * I + L * L > P * P + R * R && ((T = M), (C = D)),
  9422. { cx: T, cy: C, x0: -f, y0: -h, x1: T * (i / w - 1), y1: C * (i / w - 1) }
  9423. )
  9424. }
  9425. function JT(r) {
  9426. var t
  9427. if (z(r)) {
  9428. var e = r.length
  9429. if (!e) return r
  9430. e === 1
  9431. ? (t = [r[0], r[0], 0, 0])
  9432. : e === 2
  9433. ? (t = [r[0], r[0], r[1], r[1]])
  9434. : e === 3
  9435. ? (t = r.concat(r[2]))
  9436. : (t = r)
  9437. } else t = [r, r, r, r]
  9438. return t
  9439. }
  9440. function jT(r, t) {
  9441. var e,
  9442. n = la(t.r, 0),
  9443. i = la(t.r0 || 0, 0),
  9444. a = n > 0,
  9445. o = i > 0
  9446. if (!(!a && !o)) {
  9447. if ((a || ((n = i), (i = 0)), i > n)) {
  9448. var s = n
  9449. ;(n = i), (i = s)
  9450. }
  9451. var l = t.startAngle,
  9452. u = t.endAngle
  9453. if (!(isNaN(l) || isNaN(u))) {
  9454. var f = t.cx,
  9455. h = t.cy,
  9456. c = !!t.clockwise,
  9457. v = gp(u - l),
  9458. d = v > af && v % af
  9459. if ((d > De && (v = d), !(n > De))) r.moveTo(f, h)
  9460. else if (v > af - De)
  9461. r.moveTo(f + n * ii(l), h + n * vn(l)),
  9462. r.arc(f, h, n, l, u, !c),
  9463. i > De &&
  9464. (r.moveTo(f + i * ii(u), h + i * vn(u)), r.arc(f, h, i, u, l, c))
  9465. else {
  9466. var p = void 0,
  9467. g = void 0,
  9468. m = void 0,
  9469. y = void 0,
  9470. _ = void 0,
  9471. S = void 0,
  9472. w = void 0,
  9473. x = void 0,
  9474. b = void 0,
  9475. T = void 0,
  9476. C = void 0,
  9477. M = void 0,
  9478. D = void 0,
  9479. I = void 0,
  9480. L = void 0,
  9481. P = void 0,
  9482. R = n * ii(l),
  9483. O = n * vn(l),
  9484. U = i * ii(u),
  9485. k = i * vn(u),
  9486. F = v > De
  9487. if (F) {
  9488. var H = t.cornerRadius
  9489. H && ((e = JT(H)), (p = e[0]), (g = e[1]), (m = e[2]), (y = e[3]))
  9490. var $ = gp(n - i) / 2
  9491. if (
  9492. ((_ = Xe($, m)),
  9493. (S = Xe($, y)),
  9494. (w = Xe($, p)),
  9495. (x = Xe($, g)),
  9496. (C = b = la(_, S)),
  9497. (M = T = la(w, x)),
  9498. (b > De || T > De) &&
  9499. ((D = n * ii(u)),
  9500. (I = n * vn(u)),
  9501. (L = i * ii(l)),
  9502. (P = i * vn(l)),
  9503. v < pp))
  9504. ) {
  9505. var J = QT(R, O, L, P, D, I, U, k)
  9506. if (J) {
  9507. var et = R - J[0],
  9508. ft = O - J[1],
  9509. Ct = D - J[0],
  9510. mt = I - J[1],
  9511. zt =
  9512. 1 /
  9513. vn(
  9514. KT(
  9515. (et * Ct + ft * mt) /
  9516. (sa(et * et + ft * ft) * sa(Ct * Ct + mt * mt))
  9517. ) / 2
  9518. ),
  9519. Vt = sa(J[0] * J[0] + J[1] * J[1])
  9520. ;(C = Xe(b, (n - Vt) / (zt + 1))),
  9521. (M = Xe(T, (i - Vt) / (zt - 1)))
  9522. }
  9523. }
  9524. }
  9525. if (!F) r.moveTo(f + R, h + O)
  9526. else if (C > De) {
  9527. var It = Xe(m, C),
  9528. bt = Xe(y, C),
  9529. K = jo(L, P, R, O, n, It, c),
  9530. it = jo(D, I, U, k, n, bt, c)
  9531. r.moveTo(f + K.cx + K.x0, h + K.cy + K.y0),
  9532. C < b && It === bt
  9533. ? r.arc(
  9534. f + K.cx,
  9535. h + K.cy,
  9536. C,
  9537. Ht(K.y0, K.x0),
  9538. Ht(it.y0, it.x0),
  9539. !c
  9540. )
  9541. : (It > 0 &&
  9542. r.arc(
  9543. f + K.cx,
  9544. h + K.cy,
  9545. It,
  9546. Ht(K.y0, K.x0),
  9547. Ht(K.y1, K.x1),
  9548. !c
  9549. ),
  9550. r.arc(
  9551. f,
  9552. h,
  9553. n,
  9554. Ht(K.cy + K.y1, K.cx + K.x1),
  9555. Ht(it.cy + it.y1, it.cx + it.x1),
  9556. !c
  9557. ),
  9558. bt > 0 &&
  9559. r.arc(
  9560. f + it.cx,
  9561. h + it.cy,
  9562. bt,
  9563. Ht(it.y1, it.x1),
  9564. Ht(it.y0, it.x0),
  9565. !c
  9566. ))
  9567. } else r.moveTo(f + R, h + O), r.arc(f, h, n, l, u, !c)
  9568. if (!(i > De) || !F) r.lineTo(f + U, h + k)
  9569. else if (M > De) {
  9570. var It = Xe(p, M),
  9571. bt = Xe(g, M),
  9572. K = jo(U, k, D, I, i, -bt, c),
  9573. it = jo(R, O, L, P, i, -It, c)
  9574. r.lineTo(f + K.cx + K.x0, h + K.cy + K.y0),
  9575. M < T && It === bt
  9576. ? r.arc(
  9577. f + K.cx,
  9578. h + K.cy,
  9579. M,
  9580. Ht(K.y0, K.x0),
  9581. Ht(it.y0, it.x0),
  9582. !c
  9583. )
  9584. : (bt > 0 &&
  9585. r.arc(
  9586. f + K.cx,
  9587. h + K.cy,
  9588. bt,
  9589. Ht(K.y0, K.x0),
  9590. Ht(K.y1, K.x1),
  9591. !c
  9592. ),
  9593. r.arc(
  9594. f,
  9595. h,
  9596. i,
  9597. Ht(K.cy + K.y1, K.cx + K.x1),
  9598. Ht(it.cy + it.y1, it.cx + it.x1),
  9599. c
  9600. ),
  9601. It > 0 &&
  9602. r.arc(
  9603. f + it.cx,
  9604. h + it.cy,
  9605. It,
  9606. Ht(it.y1, it.x1),
  9607. Ht(it.y0, it.x0),
  9608. !c
  9609. ))
  9610. } else r.lineTo(f + U, h + k), r.arc(f, h, i, u, l, c)
  9611. }
  9612. r.closePath()
  9613. }
  9614. }
  9615. }
  9616. var tC = (function () {
  9617. function r() {
  9618. ;(this.cx = 0),
  9619. (this.cy = 0),
  9620. (this.r0 = 0),
  9621. (this.r = 0),
  9622. (this.startAngle = 0),
  9623. (this.endAngle = Math.PI * 2),
  9624. (this.clockwise = !0),
  9625. (this.cornerRadius = 0)
  9626. }
  9627. return r
  9628. })(),
  9629. mp = (function (r) {
  9630. B(t, r)
  9631. function t(e) {
  9632. return r.call(this, e) || this
  9633. }
  9634. return (
  9635. (t.prototype.getDefaultShape = function () {
  9636. return new tC()
  9637. }),
  9638. (t.prototype.buildPath = function (e, n) {
  9639. jT(e, n)
  9640. }),
  9641. (t.prototype.isZeroArea = function () {
  9642. return (
  9643. this.shape.startAngle === this.shape.endAngle ||
  9644. this.shape.r === this.shape.r0
  9645. )
  9646. }),
  9647. t
  9648. )
  9649. })(st)
  9650. mp.prototype.type = 'sector'
  9651. var hr = mp,
  9652. eC = (function () {
  9653. function r() {
  9654. ;(this.cx = 0), (this.cy = 0), (this.r = 0), (this.r0 = 0)
  9655. }
  9656. return r
  9657. })(),
  9658. yp = (function (r) {
  9659. B(t, r)
  9660. function t(e) {
  9661. return r.call(this, e) || this
  9662. }
  9663. return (
  9664. (t.prototype.getDefaultShape = function () {
  9665. return new eC()
  9666. }),
  9667. (t.prototype.buildPath = function (e, n) {
  9668. var i = n.cx,
  9669. a = n.cy,
  9670. o = Math.PI * 2
  9671. e.moveTo(i + n.r, a),
  9672. e.arc(i, a, n.r, 0, o, !1),
  9673. e.moveTo(i + n.r0, a),
  9674. e.arc(i, a, n.r0, 0, o, !0)
  9675. }),
  9676. t
  9677. )
  9678. })(st)
  9679. yp.prototype.type = 'ring'
  9680. var _p = yp
  9681. function rC(r, t, e, n) {
  9682. var i = [],
  9683. a = [],
  9684. o = [],
  9685. s = [],
  9686. l,
  9687. u,
  9688. f,
  9689. h
  9690. if (n) {
  9691. ;(f = [1 / 0, 1 / 0]), (h = [-1 / 0, -1 / 0])
  9692. for (var c = 0, v = r.length; c < v; c++) zn(f, f, r[c]), Vn(h, h, r[c])
  9693. zn(f, f, n[0]), Vn(h, h, n[1])
  9694. }
  9695. for (var c = 0, v = r.length; c < v; c++) {
  9696. var d = r[c]
  9697. if (e) (l = r[c ? c - 1 : v - 1]), (u = r[(c + 1) % v])
  9698. else if (c === 0 || c === v - 1) {
  9699. i.push(Px(r[c]))
  9700. continue
  9701. } else (l = r[c - 1]), (u = r[c + 1])
  9702. Rx(a, u, l), Ol(a, a, t)
  9703. var p = kl(d, l),
  9704. g = kl(d, u),
  9705. m = p + g
  9706. m !== 0 && ((p /= m), (g /= m)), Ol(o, a, -p), Ol(s, a, g)
  9707. var y = qv([], d, o),
  9708. _ = qv([], d, s)
  9709. n && (Vn(y, y, f), zn(y, y, h), Vn(_, _, f), zn(_, _, h)),
  9710. i.push(y),
  9711. i.push(_)
  9712. }
  9713. return e && i.push(i.shift()), i
  9714. }
  9715. function Sp(r, t, e) {
  9716. var n = t.smooth,
  9717. i = t.points
  9718. if (i && i.length >= 2) {
  9719. if (n) {
  9720. var a = rC(i, n, e, t.smoothConstraint)
  9721. r.moveTo(i[0][0], i[0][1])
  9722. for (var o = i.length, s = 0; s < (e ? o : o - 1); s++) {
  9723. var l = a[s * 2],
  9724. u = a[s * 2 + 1],
  9725. f = i[(s + 1) % o]
  9726. r.bezierCurveTo(l[0], l[1], u[0], u[1], f[0], f[1])
  9727. }
  9728. } else {
  9729. r.moveTo(i[0][0], i[0][1])
  9730. for (var s = 1, h = i.length; s < h; s++) r.lineTo(i[s][0], i[s][1])
  9731. }
  9732. e && r.closePath()
  9733. }
  9734. }
  9735. var nC = (function () {
  9736. function r() {
  9737. ;(this.points = null), (this.smooth = 0), (this.smoothConstraint = null)
  9738. }
  9739. return r
  9740. })(),
  9741. xp = (function (r) {
  9742. B(t, r)
  9743. function t(e) {
  9744. return r.call(this, e) || this
  9745. }
  9746. return (
  9747. (t.prototype.getDefaultShape = function () {
  9748. return new nC()
  9749. }),
  9750. (t.prototype.buildPath = function (e, n) {
  9751. Sp(e, n, !0)
  9752. }),
  9753. t
  9754. )
  9755. })(st)
  9756. xp.prototype.type = 'polygon'
  9757. var ua = xp,
  9758. iC = (function () {
  9759. function r() {
  9760. ;(this.points = null),
  9761. (this.percent = 1),
  9762. (this.smooth = 0),
  9763. (this.smoothConstraint = null)
  9764. }
  9765. return r
  9766. })(),
  9767. wp = (function (r) {
  9768. B(t, r)
  9769. function t(e) {
  9770. return r.call(this, e) || this
  9771. }
  9772. return (
  9773. (t.prototype.getDefaultStyle = function () {
  9774. return { stroke: '#000', fill: null }
  9775. }),
  9776. (t.prototype.getDefaultShape = function () {
  9777. return new iC()
  9778. }),
  9779. (t.prototype.buildPath = function (e, n) {
  9780. Sp(e, n, !1)
  9781. }),
  9782. t
  9783. )
  9784. })(st)
  9785. wp.prototype.type = 'polyline'
  9786. var ai = wp,
  9787. aC = {},
  9788. oC = (function () {
  9789. function r() {
  9790. ;(this.x1 = 0),
  9791. (this.y1 = 0),
  9792. (this.x2 = 0),
  9793. (this.y2 = 0),
  9794. (this.percent = 1)
  9795. }
  9796. return r
  9797. })(),
  9798. bp = (function (r) {
  9799. B(t, r)
  9800. function t(e) {
  9801. return r.call(this, e) || this
  9802. }
  9803. return (
  9804. (t.prototype.getDefaultStyle = function () {
  9805. return { stroke: '#000', fill: null }
  9806. }),
  9807. (t.prototype.getDefaultShape = function () {
  9808. return new oC()
  9809. }),
  9810. (t.prototype.buildPath = function (e, n) {
  9811. var i, a, o, s
  9812. if (this.subPixelOptimize) {
  9813. var l = Td(aC, n, this.style)
  9814. ;(i = l.x1), (a = l.y1), (o = l.x2), (s = l.y2)
  9815. } else (i = n.x1), (a = n.y1), (o = n.x2), (s = n.y2)
  9816. var u = n.percent
  9817. u !== 0 &&
  9818. (e.moveTo(i, a),
  9819. u < 1 && ((o = i * (1 - u) + o * u), (s = a * (1 - u) + s * u)),
  9820. e.lineTo(o, s))
  9821. }),
  9822. (t.prototype.pointAt = function (e) {
  9823. var n = this.shape
  9824. return [n.x1 * (1 - e) + n.x2 * e, n.y1 * (1 - e) + n.y2 * e]
  9825. }),
  9826. t
  9827. )
  9828. })(st)
  9829. bp.prototype.type = 'line'
  9830. var cn = bp,
  9831. ee = [],
  9832. sC = (function () {
  9833. function r() {
  9834. ;(this.x1 = 0),
  9835. (this.y1 = 0),
  9836. (this.x2 = 0),
  9837. (this.y2 = 0),
  9838. (this.cpx1 = 0),
  9839. (this.cpy1 = 0),
  9840. (this.percent = 1)
  9841. }
  9842. return r
  9843. })()
  9844. function Tp(r, t, e) {
  9845. var n = r.cpx2,
  9846. i = r.cpy2
  9847. return n != null || i != null
  9848. ? [
  9849. (e ? pc : Rt)(r.x1, r.cpx1, r.cpx2, r.x2, t),
  9850. (e ? pc : Rt)(r.y1, r.cpy1, r.cpy2, r.y2, t)
  9851. ]
  9852. : [
  9853. (e ? yc : Gt)(r.x1, r.cpx1, r.x2, t),
  9854. (e ? yc : Gt)(r.y1, r.cpy1, r.y2, t)
  9855. ]
  9856. }
  9857. var Cp = (function (r) {
  9858. B(t, r)
  9859. function t(e) {
  9860. return r.call(this, e) || this
  9861. }
  9862. return (
  9863. (t.prototype.getDefaultStyle = function () {
  9864. return { stroke: '#000', fill: null }
  9865. }),
  9866. (t.prototype.getDefaultShape = function () {
  9867. return new sC()
  9868. }),
  9869. (t.prototype.buildPath = function (e, n) {
  9870. var i = n.x1,
  9871. a = n.y1,
  9872. o = n.x2,
  9873. s = n.y2,
  9874. l = n.cpx1,
  9875. u = n.cpy1,
  9876. f = n.cpx2,
  9877. h = n.cpy2,
  9878. c = n.percent
  9879. c !== 0 &&
  9880. (e.moveTo(i, a),
  9881. f == null || h == null
  9882. ? (c < 1 &&
  9883. (go(i, l, o, c, ee),
  9884. (l = ee[1]),
  9885. (o = ee[2]),
  9886. go(a, u, s, c, ee),
  9887. (u = ee[1]),
  9888. (s = ee[2])),
  9889. e.quadraticCurveTo(l, u, o, s))
  9890. : (c < 1 &&
  9891. (br(i, l, f, o, c, ee),
  9892. (l = ee[1]),
  9893. (f = ee[2]),
  9894. (o = ee[3]),
  9895. br(a, u, h, s, c, ee),
  9896. (u = ee[1]),
  9897. (h = ee[2]),
  9898. (s = ee[3])),
  9899. e.bezierCurveTo(l, u, f, h, o, s)))
  9900. }),
  9901. (t.prototype.pointAt = function (e) {
  9902. return Tp(this.shape, e, !1)
  9903. }),
  9904. (t.prototype.tangentAt = function (e) {
  9905. var n = Tp(this.shape, e, !0)
  9906. return kx(n, n)
  9907. }),
  9908. t
  9909. )
  9910. })(st)
  9911. Cp.prototype.type = 'bezier-curve'
  9912. var Ap = Cp,
  9913. lC = (function () {
  9914. function r() {
  9915. ;(this.cx = 0),
  9916. (this.cy = 0),
  9917. (this.r = 0),
  9918. (this.startAngle = 0),
  9919. (this.endAngle = Math.PI * 2),
  9920. (this.clockwise = !0)
  9921. }
  9922. return r
  9923. })(),
  9924. Mp = (function (r) {
  9925. B(t, r)
  9926. function t(e) {
  9927. return r.call(this, e) || this
  9928. }
  9929. return (
  9930. (t.prototype.getDefaultStyle = function () {
  9931. return { stroke: '#000', fill: null }
  9932. }),
  9933. (t.prototype.getDefaultShape = function () {
  9934. return new lC()
  9935. }),
  9936. (t.prototype.buildPath = function (e, n) {
  9937. var i = n.cx,
  9938. a = n.cy,
  9939. o = Math.max(n.r, 0),
  9940. s = n.startAngle,
  9941. l = n.endAngle,
  9942. u = n.clockwise,
  9943. f = Math.cos(s),
  9944. h = Math.sin(s)
  9945. e.moveTo(f * o + i, h * o + a), e.arc(i, a, o, s, l, !u)
  9946. }),
  9947. t
  9948. )
  9949. })(st)
  9950. Mp.prototype.type = 'arc'
  9951. var of = Mp,
  9952. uC = (function (r) {
  9953. B(t, r)
  9954. function t() {
  9955. var e = (r !== null && r.apply(this, arguments)) || this
  9956. return (e.type = 'compound'), e
  9957. }
  9958. return (
  9959. (t.prototype._updatePathDirty = function () {
  9960. for (
  9961. var e = this.shape.paths, n = this.shapeChanged(), i = 0;
  9962. i < e.length;
  9963. i++
  9964. )
  9965. n = n || e[i].shapeChanged()
  9966. n && this.dirtyShape()
  9967. }),
  9968. (t.prototype.beforeBrush = function () {
  9969. this._updatePathDirty()
  9970. for (
  9971. var e = this.shape.paths || [], n = this.getGlobalScale(), i = 0;
  9972. i < e.length;
  9973. i++
  9974. )
  9975. e[i].path || e[i].createPathProxy(),
  9976. e[i].path.setScale(n[0], n[1], e[i].segmentIgnoreThreshold)
  9977. }),
  9978. (t.prototype.buildPath = function (e, n) {
  9979. for (var i = n.paths || [], a = 0; a < i.length; a++)
  9980. i[a].buildPath(e, i[a].shape, !0)
  9981. }),
  9982. (t.prototype.afterBrush = function () {
  9983. for (var e = this.shape.paths || [], n = 0; n < e.length; n++)
  9984. e[n].pathUpdated()
  9985. }),
  9986. (t.prototype.getBoundingRect = function () {
  9987. return (
  9988. this._updatePathDirty.call(this),
  9989. st.prototype.getBoundingRect.call(this)
  9990. )
  9991. }),
  9992. t
  9993. )
  9994. })(st),
  9995. fC = uC,
  9996. hC = (function () {
  9997. function r(t) {
  9998. this.colorStops = t || []
  9999. }
  10000. return (
  10001. (r.prototype.addColorStop = function (t, e) {
  10002. this.colorStops.push({ offset: t, color: e })
  10003. }),
  10004. r
  10005. )
  10006. })(),
  10007. Dp = hC,
  10008. vC = (function (r) {
  10009. B(t, r)
  10010. function t(e, n, i, a, o, s) {
  10011. var l = r.call(this, o) || this
  10012. return (
  10013. (l.x = e == null ? 0 : e),
  10014. (l.y = n == null ? 0 : n),
  10015. (l.x2 = i == null ? 1 : i),
  10016. (l.y2 = a == null ? 0 : a),
  10017. (l.type = 'linear'),
  10018. (l.global = s || !1),
  10019. l
  10020. )
  10021. }
  10022. return t
  10023. })(Dp),
  10024. Ip = vC,
  10025. cC = (function (r) {
  10026. B(t, r)
  10027. function t(e, n, i, a, o) {
  10028. var s = r.call(this, a) || this
  10029. return (
  10030. (s.x = e == null ? 0.5 : e),
  10031. (s.y = n == null ? 0.5 : n),
  10032. (s.r = i == null ? 0.5 : i),
  10033. (s.type = 'radial'),
  10034. (s.global = o || !1),
  10035. s
  10036. )
  10037. }
  10038. return t
  10039. })(Dp),
  10040. dC = cC,
  10041. dn = [0, 0],
  10042. pn = [0, 0],
  10043. ts = new Z(),
  10044. es = new Z(),
  10045. pC = (function () {
  10046. function r(t, e) {
  10047. ;(this._corners = []), (this._axes = []), (this._origin = [0, 0])
  10048. for (var n = 0; n < 4; n++) this._corners[n] = new Z()
  10049. for (var n = 0; n < 2; n++) this._axes[n] = new Z()
  10050. t && this.fromBoundingRect(t, e)
  10051. }
  10052. return (
  10053. (r.prototype.fromBoundingRect = function (t, e) {
  10054. var n = this._corners,
  10055. i = this._axes,
  10056. a = t.x,
  10057. o = t.y,
  10058. s = a + t.width,
  10059. l = o + t.height
  10060. if ((n[0].set(a, o), n[1].set(s, o), n[2].set(s, l), n[3].set(a, l), e))
  10061. for (var u = 0; u < 4; u++) n[u].transform(e)
  10062. Z.sub(i[0], n[1], n[0]),
  10063. Z.sub(i[1], n[3], n[0]),
  10064. i[0].normalize(),
  10065. i[1].normalize()
  10066. for (var u = 0; u < 2; u++) this._origin[u] = i[u].dot(n[0])
  10067. }),
  10068. (r.prototype.intersect = function (t, e) {
  10069. var n = !0,
  10070. i = !e
  10071. return (
  10072. ts.set(1 / 0, 1 / 0),
  10073. es.set(0, 0),
  10074. (!this._intersectCheckOneSide(this, t, ts, es, i, 1) &&
  10075. ((n = !1), i)) ||
  10076. (!this._intersectCheckOneSide(t, this, ts, es, i, -1) &&
  10077. ((n = !1), i)) ||
  10078. i ||
  10079. Z.copy(e, n ? ts : es),
  10080. n
  10081. )
  10082. }),
  10083. (r.prototype._intersectCheckOneSide = function (t, e, n, i, a, o) {
  10084. for (var s = !0, l = 0; l < 2; l++) {
  10085. var u = this._axes[l]
  10086. if (
  10087. (this._getProjMinMaxOnAxis(l, t._corners, dn),
  10088. this._getProjMinMaxOnAxis(l, e._corners, pn),
  10089. dn[1] < pn[0] || dn[0] > pn[1])
  10090. ) {
  10091. if (((s = !1), a)) return s
  10092. var f = Math.abs(pn[0] - dn[1]),
  10093. h = Math.abs(dn[0] - pn[1])
  10094. Math.min(f, h) > i.len() &&
  10095. (f < h ? Z.scale(i, u, -f * o) : Z.scale(i, u, h * o))
  10096. } else if (n) {
  10097. var f = Math.abs(pn[0] - dn[1]),
  10098. h = Math.abs(dn[0] - pn[1])
  10099. Math.min(f, h) < n.len() &&
  10100. (f < h ? Z.scale(n, u, f * o) : Z.scale(n, u, -h * o))
  10101. }
  10102. }
  10103. return s
  10104. }),
  10105. (r.prototype._getProjMinMaxOnAxis = function (t, e, n) {
  10106. for (
  10107. var i = this._axes[t],
  10108. a = this._origin,
  10109. o = e[0].dot(i) + a[t],
  10110. s = o,
  10111. l = o,
  10112. u = 1;
  10113. u < e.length;
  10114. u++
  10115. ) {
  10116. var f = e[u].dot(i) + a[t]
  10117. ;(s = Math.min(f, s)), (l = Math.max(f, l))
  10118. }
  10119. ;(n[0] = s), (n[1] = l)
  10120. }),
  10121. r
  10122. )
  10123. })(),
  10124. rs = pC,
  10125. gC = [],
  10126. mC = (function (r) {
  10127. B(t, r)
  10128. function t() {
  10129. var e = (r !== null && r.apply(this, arguments)) || this
  10130. return (
  10131. (e.notClear = !0),
  10132. (e.incremental = !0),
  10133. (e._displayables = []),
  10134. (e._temporaryDisplayables = []),
  10135. (e._cursor = 0),
  10136. e
  10137. )
  10138. }
  10139. return (
  10140. (t.prototype.traverse = function (e, n) {
  10141. e.call(n, this)
  10142. }),
  10143. (t.prototype.useStyle = function () {
  10144. this.style = {}
  10145. }),
  10146. (t.prototype.getCursor = function () {
  10147. return this._cursor
  10148. }),
  10149. (t.prototype.innerAfterBrush = function () {
  10150. this._cursor = this._displayables.length
  10151. }),
  10152. (t.prototype.clearDisplaybles = function () {
  10153. ;(this._displayables = []),
  10154. (this._temporaryDisplayables = []),
  10155. (this._cursor = 0),
  10156. this.markRedraw(),
  10157. (this.notClear = !1)
  10158. }),
  10159. (t.prototype.clearTemporalDisplayables = function () {
  10160. this._temporaryDisplayables = []
  10161. }),
  10162. (t.prototype.addDisplayable = function (e, n) {
  10163. n ? this._temporaryDisplayables.push(e) : this._displayables.push(e),
  10164. this.markRedraw()
  10165. }),
  10166. (t.prototype.addDisplayables = function (e, n) {
  10167. n = n || !1
  10168. for (var i = 0; i < e.length; i++) this.addDisplayable(e[i], n)
  10169. }),
  10170. (t.prototype.getDisplayables = function () {
  10171. return this._displayables
  10172. }),
  10173. (t.prototype.getTemporalDisplayables = function () {
  10174. return this._temporaryDisplayables
  10175. }),
  10176. (t.prototype.eachPendingDisplayable = function (e) {
  10177. for (var n = this._cursor; n < this._displayables.length; n++)
  10178. e && e(this._displayables[n])
  10179. for (var n = 0; n < this._temporaryDisplayables.length; n++)
  10180. e && e(this._temporaryDisplayables[n])
  10181. }),
  10182. (t.prototype.update = function () {
  10183. this.updateTransform()
  10184. for (var e = this._cursor; e < this._displayables.length; e++) {
  10185. var n = this._displayables[e]
  10186. ;(n.parent = this), n.update(), (n.parent = null)
  10187. }
  10188. for (var e = 0; e < this._temporaryDisplayables.length; e++) {
  10189. var n = this._temporaryDisplayables[e]
  10190. ;(n.parent = this), n.update(), (n.parent = null)
  10191. }
  10192. }),
  10193. (t.prototype.getBoundingRect = function () {
  10194. if (!this._rect) {
  10195. for (
  10196. var e = new vt(1 / 0, 1 / 0, -1 / 0, -1 / 0), n = 0;
  10197. n < this._displayables.length;
  10198. n++
  10199. ) {
  10200. var i = this._displayables[n],
  10201. a = i.getBoundingRect().clone()
  10202. i.needLocalTransform() && a.applyTransform(i.getLocalTransform(gC)),
  10203. e.union(a)
  10204. }
  10205. this._rect = e
  10206. }
  10207. return this._rect
  10208. }),
  10209. (t.prototype.contain = function (e, n) {
  10210. var i = this.transformCoordToLocal(e, n),
  10211. a = this.getBoundingRect()
  10212. if (a.contain(i[0], i[1]))
  10213. for (var o = 0; o < this._displayables.length; o++) {
  10214. var s = this._displayables[o]
  10215. if (s.contain(e, n)) return !0
  10216. }
  10217. return !1
  10218. }),
  10219. t
  10220. )
  10221. })(Qn),
  10222. yC = mC,
  10223. Lp = wt()
  10224. function ns(r, t, e, n, i) {
  10225. var a
  10226. if (t && t.ecModel) {
  10227. var o = t.ecModel.getUpdatePayload()
  10228. a = o && o.animation
  10229. }
  10230. var s = t && t.isAnimationEnabled(),
  10231. l = r === 'update'
  10232. if (s) {
  10233. var u = void 0,
  10234. f = void 0,
  10235. h = void 0
  10236. n
  10237. ? ((u = ht(n.duration, 200)), (f = ht(n.easing, 'cubicOut')), (h = 0))
  10238. : ((u = t.getShallow(
  10239. l ? 'animationDurationUpdate' : 'animationDuration'
  10240. )),
  10241. (f = t.getShallow(l ? 'animationEasingUpdate' : 'animationEasing')),
  10242. (h = t.getShallow(l ? 'animationDelayUpdate' : 'animationDelay'))),
  10243. a &&
  10244. (a.duration != null && (u = a.duration),
  10245. a.easing != null && (f = a.easing),
  10246. a.delay != null && (h = a.delay)),
  10247. Q(h) && (h = h(e, i)),
  10248. Q(u) && (u = u(e))
  10249. var c = { duration: u || 0, delay: h, easing: f }
  10250. return c
  10251. } else return null
  10252. }
  10253. function sf(r, t, e, n, i, a, o) {
  10254. var s = !1,
  10255. l
  10256. Q(i)
  10257. ? ((o = a), (a = i), (i = null))
  10258. : Y(i) &&
  10259. ((a = i.cb),
  10260. (o = i.during),
  10261. (s = i.isFrom),
  10262. (l = i.removeOpt),
  10263. (i = i.dataIndex))
  10264. var u = r === 'leave'
  10265. u || t.stopAnimation('leave')
  10266. var f = ns(
  10267. r,
  10268. n,
  10269. i,
  10270. u ? l || {} : null,
  10271. n && n.getAnimationDelayParams ? n.getAnimationDelayParams(t, i) : null
  10272. )
  10273. if (f && f.duration > 0) {
  10274. var h = f.duration,
  10275. c = f.delay,
  10276. v = f.easing,
  10277. d = {
  10278. duration: h,
  10279. delay: c || 0,
  10280. easing: v,
  10281. done: a,
  10282. force: !!a || !!o,
  10283. setToFinal: !u,
  10284. scope: r,
  10285. during: o
  10286. }
  10287. s ? t.animateFrom(e, d) : t.animateTo(e, d)
  10288. } else t.stopAnimation(), !s && t.attr(e), o && o(1), a && a()
  10289. }
  10290. function kt(r, t, e, n, i, a) {
  10291. sf('update', r, t, e, n, i, a)
  10292. }
  10293. function Wt(r, t, e, n, i, a) {
  10294. sf('enter', r, t, e, n, i, a)
  10295. }
  10296. function oi(r) {
  10297. if (!r.__zr) return !0
  10298. for (var t = 0; t < r.animators.length; t++) {
  10299. var e = r.animators[t]
  10300. if (e.scope === 'leave') return !0
  10301. }
  10302. return !1
  10303. }
  10304. function is(r, t, e, n, i, a) {
  10305. oi(r) || sf('leave', r, t, e, n, i, a)
  10306. }
  10307. function Pp(r, t, e, n) {
  10308. r.removeTextContent(),
  10309. r.removeTextGuideLine(),
  10310. is(r, { style: { opacity: 0 } }, t, e, n)
  10311. }
  10312. function as(r, t, e) {
  10313. function n() {
  10314. r.parent && r.parent.remove(r)
  10315. }
  10316. r.isGroup
  10317. ? r.traverse(function (i) {
  10318. i.isGroup || Pp(i, t, e, n)
  10319. })
  10320. : Pp(r, t, e, n)
  10321. }
  10322. function lf(r) {
  10323. Lp(r).oldStyle = r.style
  10324. }
  10325. function _C(r) {
  10326. return Lp(r).oldStyle
  10327. }
  10328. var os = Math.max,
  10329. ss = Math.min,
  10330. uf = {}
  10331. function SC(r) {
  10332. return st.extend(r)
  10333. }
  10334. var xC = ZT
  10335. function wC(r, t) {
  10336. return xC(r, t)
  10337. }
  10338. function Ie(r, t) {
  10339. uf[r] = t
  10340. }
  10341. function bC(r) {
  10342. if (uf.hasOwnProperty(r)) return uf[r]
  10343. }
  10344. function ff(r, t, e, n) {
  10345. var i = YT(r, t)
  10346. return e && (n === 'center' && (e = Ep(e, i.getBoundingRect())), Op(i, e)), i
  10347. }
  10348. function Rp(r, t, e) {
  10349. var n = new un({
  10350. style: { image: r, x: t.x, y: t.y, width: t.width, height: t.height },
  10351. onload: function (i) {
  10352. if (e === 'center') {
  10353. var a = { width: i.width, height: i.height }
  10354. n.setStyle(Ep(t, a))
  10355. }
  10356. }
  10357. })
  10358. return n
  10359. }
  10360. function Ep(r, t) {
  10361. var e = t.width / t.height,
  10362. n = r.height * e,
  10363. i
  10364. n <= r.width ? (i = r.height) : ((n = r.width), (i = n / e))
  10365. var a = r.x + r.width / 2,
  10366. o = r.y + r.height / 2
  10367. return { x: a - n / 2, y: o - i / 2, width: n, height: i }
  10368. }
  10369. var TC = $T
  10370. function Op(r, t) {
  10371. if (!!r.applyTransform) {
  10372. var e = r.getBoundingRect(),
  10373. n = e.calculateTransform(t)
  10374. r.applyTransform(n)
  10375. }
  10376. }
  10377. function CC(r) {
  10378. return Td(r.shape, r.shape, r.style), r
  10379. }
  10380. function AC(r) {
  10381. return Cd(r.shape, r.shape, r.style), r
  10382. }
  10383. var MC = fn
  10384. function ls(r, t) {
  10385. for (var e = cu([]); r && r !== t; )
  10386. $n(e, r.getLocalTransform(), e), (r = r.parent)
  10387. return e
  10388. }
  10389. function fa(r, t, e) {
  10390. return (
  10391. t && !Zt(t) && (t = Wi.getLocalTransform(t)),
  10392. e && (t = Lo([], t)),
  10393. ue([], r, t)
  10394. )
  10395. }
  10396. function hf(r, t, e) {
  10397. var n =
  10398. t[4] === 0 || t[5] === 0 || t[0] === 0 ? 1 : Math.abs((2 * t[4]) / t[0]),
  10399. i =
  10400. t[4] === 0 || t[5] === 0 || t[2] === 0 ? 1 : Math.abs((2 * t[4]) / t[2]),
  10401. a = [
  10402. r === 'left' ? -n : r === 'right' ? n : 0,
  10403. r === 'top' ? -i : r === 'bottom' ? i : 0
  10404. ]
  10405. return (
  10406. (a = fa(a, t, e)),
  10407. Math.abs(a[0]) > Math.abs(a[1])
  10408. ? a[0] > 0
  10409. ? 'right'
  10410. : 'left'
  10411. : a[1] > 0
  10412. ? 'bottom'
  10413. : 'top'
  10414. )
  10415. }
  10416. function kp(r) {
  10417. return !r.isGroup
  10418. }
  10419. function DC(r) {
  10420. return r.shape != null
  10421. }
  10422. function Bp(r, t, e) {
  10423. if (!r || !t) return
  10424. function n(o) {
  10425. var s = {}
  10426. return (
  10427. o.traverse(function (l) {
  10428. kp(l) && l.anid && (s[l.anid] = l)
  10429. }),
  10430. s
  10431. )
  10432. }
  10433. function i(o) {
  10434. var s = { x: o.x, y: o.y, rotation: o.rotation }
  10435. return DC(o) && (s.shape = N({}, o.shape)), s
  10436. }
  10437. var a = n(r)
  10438. t.traverse(function (o) {
  10439. if (kp(o) && o.anid) {
  10440. var s = a[o.anid]
  10441. if (s) {
  10442. var l = i(o)
  10443. o.attr(i(s)), kt(o, l, e, ct(o).dataIndex)
  10444. }
  10445. }
  10446. })
  10447. }
  10448. function Np(r, t) {
  10449. return G(r, function (e) {
  10450. var n = e[0]
  10451. ;(n = os(n, t.x)), (n = ss(n, t.x + t.width))
  10452. var i = e[1]
  10453. return (i = os(i, t.y)), (i = ss(i, t.y + t.height)), [n, i]
  10454. })
  10455. }
  10456. function IC(r, t) {
  10457. var e = os(r.x, t.x),
  10458. n = ss(r.x + r.width, t.x + t.width),
  10459. i = os(r.y, t.y),
  10460. a = ss(r.y + r.height, t.y + t.height)
  10461. if (n >= e && a >= i) return { x: e, y: i, width: n - e, height: a - i }
  10462. }
  10463. function us(r, t, e) {
  10464. var n = N({ rectHover: !0 }, t),
  10465. i = (n.style = { strokeNoScale: !0 })
  10466. if (((e = e || { x: -1, y: -1, width: 2, height: 2 }), r))
  10467. return r.indexOf('image://') === 0
  10468. ? ((i.image = r.slice(8)), j(i, e), new un(n))
  10469. : ff(r.replace('path://', ''), n, e, 'center')
  10470. }
  10471. function LC(r, t, e, n, i) {
  10472. for (var a = 0, o = i[i.length - 1]; a < i.length; a++) {
  10473. var s = i[a]
  10474. if (Fp(r, t, e, n, s[0], s[1], o[0], o[1])) return !0
  10475. o = s
  10476. }
  10477. }
  10478. function Fp(r, t, e, n, i, a, o, s) {
  10479. var l = e - r,
  10480. u = n - t,
  10481. f = o - i,
  10482. h = s - a,
  10483. c = vf(f, h, l, u)
  10484. if (PC(c)) return !1
  10485. var v = r - i,
  10486. d = t - a,
  10487. p = vf(v, d, l, u) / c
  10488. if (p < 0 || p > 1) return !1
  10489. var g = vf(v, d, f, h) / c
  10490. return !(g < 0 || g > 1)
  10491. }
  10492. function vf(r, t, e, n) {
  10493. return r * n - e * t
  10494. }
  10495. function PC(r) {
  10496. return r <= 1e-6 && r >= -1e-6
  10497. }
  10498. function fs(r) {
  10499. var t = r.itemTooltipOption,
  10500. e = r.componentModel,
  10501. n = r.itemName,
  10502. i = W(t) ? { formatter: t } : t,
  10503. a = e.mainType,
  10504. o = e.componentIndex,
  10505. s = { componentType: a, name: n, $vars: ['name'] }
  10506. s[a + 'Index'] = o
  10507. var l = r.formatterParamsExtra
  10508. l &&
  10509. A(xt(l), function (f) {
  10510. nr(s, f) || ((s[f] = l[f]), s.$vars.push(f))
  10511. })
  10512. var u = ct(r.el)
  10513. ;(u.componentMainType = a),
  10514. (u.componentIndex = o),
  10515. (u.tooltipConfig = {
  10516. name: n,
  10517. option: j({ content: n, formatterParams: s }, i)
  10518. })
  10519. }
  10520. function zp(r, t) {
  10521. var e
  10522. r.isGroup && (e = t(r)), e || r.traverse(t)
  10523. }
  10524. function hs(r, t) {
  10525. if (r)
  10526. if (z(r)) for (var e = 0; e < r.length; e++) zp(r[e], t)
  10527. else zp(r, t)
  10528. }
  10529. Ie('circle', nf)
  10530. Ie('ellipse', dp)
  10531. Ie('sector', hr)
  10532. Ie('ring', _p)
  10533. Ie('polygon', ua)
  10534. Ie('polyline', ai)
  10535. Ie('rect', St)
  10536. Ie('line', cn)
  10537. Ie('bezierCurve', Ap)
  10538. Ie('arc', of)
  10539. var RC = Object.freeze({
  10540. __proto__: null,
  10541. [Symbol.toStringTag]: 'Module',
  10542. updateProps: kt,
  10543. initProps: Wt,
  10544. removeElement: is,
  10545. removeElementWithFadeOut: as,
  10546. isElementRemoved: oi,
  10547. extendShape: SC,
  10548. extendPath: wC,
  10549. registerShape: Ie,
  10550. getShapeClass: bC,
  10551. makePath: ff,
  10552. makeImage: Rp,
  10553. mergePath: TC,
  10554. resizePath: Op,
  10555. subPixelOptimizeLine: CC,
  10556. subPixelOptimizeRect: AC,
  10557. subPixelOptimize: MC,
  10558. getTransform: ls,
  10559. applyTransform: fa,
  10560. transformDirection: hf,
  10561. groupTransition: Bp,
  10562. clipPointsByRect: Np,
  10563. clipRectByRect: IC,
  10564. createIcon: us,
  10565. linePolygonIntersect: LC,
  10566. lineLineIntersect: Fp,
  10567. setTooltipConfig: fs,
  10568. traverseElements: hs,
  10569. Group: At,
  10570. Image: un,
  10571. Text: Et,
  10572. Circle: nf,
  10573. Ellipse: dp,
  10574. Sector: hr,
  10575. Ring: _p,
  10576. Polygon: ua,
  10577. Polyline: ai,
  10578. Rect: St,
  10579. Line: cn,
  10580. BezierCurve: Ap,
  10581. Arc: of,
  10582. IncrementalDisplayable: yC,
  10583. CompoundPath: fC,
  10584. LinearGradient: Ip,
  10585. RadialGradient: dC,
  10586. BoundingRect: vt,
  10587. OrientedBoundingRect: rs,
  10588. Point: Z,
  10589. Path: st
  10590. }),
  10591. vs = {}
  10592. function Vp(r, t) {
  10593. for (var e = 0; e < pe.length; e++) {
  10594. var n = pe[e],
  10595. i = t[n],
  10596. a = r.ensureState(n)
  10597. ;(a.style = a.style || {}), (a.style.text = i)
  10598. }
  10599. var o = r.currentStates.slice()
  10600. r.clearStates(!0), r.setStyle({ text: t.normal }), r.useStates(o, !0)
  10601. }
  10602. function cf(r, t, e) {
  10603. var n = r.labelFetcher,
  10604. i = r.labelDataIndex,
  10605. a = r.labelDimIndex,
  10606. o = t.normal,
  10607. s
  10608. n &&
  10609. (s = n.getFormattedLabel(
  10610. i,
  10611. 'normal',
  10612. null,
  10613. a,
  10614. o && o.get('formatter'),
  10615. e != null ? { interpolatedValue: e } : null
  10616. )),
  10617. s == null && (s = Q(r.defaultText) ? r.defaultText(i, r, e) : r.defaultText)
  10618. for (var l = { normal: s }, u = 0; u < pe.length; u++) {
  10619. var f = pe[u],
  10620. h = t[f]
  10621. l[f] = ht(
  10622. n ? n.getFormattedLabel(i, f, null, a, h && h.get('formatter')) : null,
  10623. s
  10624. )
  10625. }
  10626. return l
  10627. }
  10628. function ha(r, t, e, n) {
  10629. e = e || vs
  10630. for (var i = r instanceof Et, a = !1, o = 0; o < Yo.length; o++) {
  10631. var s = t[Yo[o]]
  10632. if (s && s.getShallow('show')) {
  10633. a = !0
  10634. break
  10635. }
  10636. }
  10637. var l = i ? r : r.getTextContent()
  10638. if (a) {
  10639. i ||
  10640. (l || ((l = new Et()), r.setTextContent(l)),
  10641. r.stateProxy && (l.stateProxy = r.stateProxy))
  10642. var u = cf(e, t),
  10643. f = t.normal,
  10644. h = !!f.getShallow('show'),
  10645. c = vr(f, n && n.normal, e, !1, !i)
  10646. ;(c.text = u.normal), i || r.setTextConfig(Gp(f, e, !1))
  10647. for (var o = 0; o < pe.length; o++) {
  10648. var v = pe[o],
  10649. s = t[v]
  10650. if (s) {
  10651. var d = l.ensureState(v),
  10652. p = !!ht(s.getShallow('show'), h)
  10653. if (
  10654. (p !== h && (d.ignore = !p),
  10655. (d.style = vr(s, n && n[v], e, !0, !i)),
  10656. (d.style.text = u[v]),
  10657. !i)
  10658. ) {
  10659. var g = r.ensureState(v)
  10660. g.textConfig = Gp(s, e, !0)
  10661. }
  10662. }
  10663. }
  10664. ;(l.silent = !!f.getShallow('silent')),
  10665. l.style.x != null && (c.x = l.style.x),
  10666. l.style.y != null && (c.y = l.style.y),
  10667. (l.ignore = !h),
  10668. l.useStyle(c),
  10669. l.dirty(),
  10670. e.enableTextSetter &&
  10671. (si(l).setLabelText = function (m) {
  10672. var y = cf(e, t, m)
  10673. Vp(l, y)
  10674. })
  10675. } else l && (l.ignore = !0)
  10676. r.dirty()
  10677. }
  10678. function va(r, t) {
  10679. t = t || 'label'
  10680. for (var e = { normal: r.getModel(t) }, n = 0; n < pe.length; n++) {
  10681. var i = pe[n]
  10682. e[i] = r.getModel([i, t])
  10683. }
  10684. return e
  10685. }
  10686. function vr(r, t, e, n, i) {
  10687. var a = {}
  10688. return EC(a, r, e, n, i), t && N(a, t), a
  10689. }
  10690. function Gp(r, t, e) {
  10691. t = t || {}
  10692. var n = {},
  10693. i,
  10694. a = r.getShallow('rotate'),
  10695. o = ht(r.getShallow('distance'), e ? null : 5),
  10696. s = r.getShallow('offset')
  10697. return (
  10698. (i = r.getShallow('position') || (e ? null : 'inside')),
  10699. i === 'outside' && (i = t.defaultOutsidePosition || 'top'),
  10700. i != null && (n.position = i),
  10701. s != null && (n.offset = s),
  10702. a != null && ((a *= Math.PI / 180), (n.rotation = a)),
  10703. o != null && (n.distance = o),
  10704. (n.outsideFill =
  10705. r.get('color') === 'inherit' ? t.inheritColor || null : 'auto'),
  10706. n
  10707. )
  10708. }
  10709. function EC(r, t, e, n, i) {
  10710. e = e || vs
  10711. var a = t.ecModel,
  10712. o = a && a.option.textStyle,
  10713. s = OC(t),
  10714. l
  10715. if (s) {
  10716. l = {}
  10717. for (var u in s)
  10718. if (s.hasOwnProperty(u)) {
  10719. var f = t.getModel(['rich', u])
  10720. Yp((l[u] = {}), f, o, e, n, i, !1, !0)
  10721. }
  10722. }
  10723. l && (r.rich = l)
  10724. var h = t.get('overflow')
  10725. h && (r.overflow = h)
  10726. var c = t.get('minMargin')
  10727. c != null && (r.margin = c), Yp(r, t, o, e, n, i, !0, !1)
  10728. }
  10729. function OC(r) {
  10730. for (var t; r && r !== r.ecModel; ) {
  10731. var e = (r.option || vs).rich
  10732. if (e) {
  10733. t = t || {}
  10734. for (var n = xt(e), i = 0; i < n.length; i++) {
  10735. var a = n[i]
  10736. t[a] = 1
  10737. }
  10738. }
  10739. r = r.parentModel
  10740. }
  10741. return t
  10742. }
  10743. var Hp = [
  10744. 'fontStyle',
  10745. 'fontWeight',
  10746. 'fontSize',
  10747. 'fontFamily',
  10748. 'textShadowColor',
  10749. 'textShadowBlur',
  10750. 'textShadowOffsetX',
  10751. 'textShadowOffsetY'
  10752. ],
  10753. Wp = ['align', 'lineHeight', 'width', 'height', 'tag', 'verticalAlign'],
  10754. Up = [
  10755. 'padding',
  10756. 'borderWidth',
  10757. 'borderRadius',
  10758. 'borderDashOffset',
  10759. 'backgroundColor',
  10760. 'borderColor',
  10761. 'shadowColor',
  10762. 'shadowBlur',
  10763. 'shadowOffsetX',
  10764. 'shadowOffsetY'
  10765. ]
  10766. function Yp(r, t, e, n, i, a, o, s) {
  10767. e = (!i && e) || vs
  10768. var l = n && n.inheritColor,
  10769. u = t.getShallow('color'),
  10770. f = t.getShallow('textBorderColor'),
  10771. h = ht(t.getShallow('opacity'), e.opacity)
  10772. ;(u === 'inherit' || u === 'auto') && (l ? (u = l) : (u = null)),
  10773. (f === 'inherit' || f === 'auto') && (l ? (f = l) : (f = null)),
  10774. a || ((u = u || e.color), (f = f || e.textBorderColor)),
  10775. u != null && (r.fill = u),
  10776. f != null && (r.stroke = f)
  10777. var c = ht(t.getShallow('textBorderWidth'), e.textBorderWidth)
  10778. c != null && (r.lineWidth = c)
  10779. var v = ht(t.getShallow('textBorderType'), e.textBorderType)
  10780. v != null && (r.lineDash = v)
  10781. var d = ht(t.getShallow('textBorderDashOffset'), e.textBorderDashOffset)
  10782. d != null && (r.lineDashOffset = d),
  10783. !i && h == null && !s && (h = n && n.defaultOpacity),
  10784. h != null && (r.opacity = h),
  10785. !i && !a && r.fill == null && n.inheritColor && (r.fill = n.inheritColor)
  10786. for (var p = 0; p < Hp.length; p++) {
  10787. var g = Hp[p],
  10788. m = ht(t.getShallow(g), e[g])
  10789. m != null && (r[g] = m)
  10790. }
  10791. for (var p = 0; p < Wp.length; p++) {
  10792. var g = Wp[p],
  10793. m = t.getShallow(g)
  10794. m != null && (r[g] = m)
  10795. }
  10796. if (r.verticalAlign == null) {
  10797. var y = t.getShallow('baseline')
  10798. y != null && (r.verticalAlign = y)
  10799. }
  10800. if (!o || !n.disableBox) {
  10801. for (var p = 0; p < Up.length; p++) {
  10802. var g = Up[p],
  10803. m = t.getShallow(g)
  10804. m != null && (r[g] = m)
  10805. }
  10806. var _ = t.getShallow('borderType')
  10807. _ != null && (r.borderDash = _),
  10808. (r.backgroundColor === 'auto' || r.backgroundColor === 'inherit') &&
  10809. l &&
  10810. (r.backgroundColor = l),
  10811. (r.borderColor === 'auto' || r.borderColor === 'inherit') &&
  10812. l &&
  10813. (r.borderColor = l)
  10814. }
  10815. }
  10816. function kC(r, t) {
  10817. var e = t && t.getModel('textStyle')
  10818. return Ge(
  10819. [
  10820. r.fontStyle || (e && e.getShallow('fontStyle')) || '',
  10821. r.fontWeight || (e && e.getShallow('fontWeight')) || '',
  10822. (r.fontSize || (e && e.getShallow('fontSize')) || 12) + 'px',
  10823. r.fontFamily || (e && e.getShallow('fontFamily')) || 'sans-serif'
  10824. ].join(' ')
  10825. )
  10826. }
  10827. var si = wt()
  10828. function BC(r, t, e, n) {
  10829. if (!!r) {
  10830. var i = si(r)
  10831. ;(i.prevValue = i.value), (i.value = e)
  10832. var a = t.normal
  10833. ;(i.valueAnimation = a.get('valueAnimation')),
  10834. i.valueAnimation &&
  10835. ((i.precision = a.get('precision')),
  10836. (i.defaultInterpolatedText = n),
  10837. (i.statesModels = t))
  10838. }
  10839. }
  10840. function NC(r, t, e, n, i) {
  10841. var a = si(r)
  10842. if (!a.valueAnimation || a.prevValue === a.value) return
  10843. var o = a.defaultInterpolatedText,
  10844. s = ht(a.interpolatedValue, a.prevValue),
  10845. l = a.value
  10846. function u(f) {
  10847. var h = ad(e, a.precision, s, l, f)
  10848. a.interpolatedValue = f === 1 ? null : h
  10849. var c = cf(
  10850. { labelDataIndex: t, labelFetcher: i, defaultText: o ? o(h) : h + '' },
  10851. a.statesModels,
  10852. h
  10853. )
  10854. Vp(r, c)
  10855. }
  10856. ;(r.percent = 0),
  10857. (a.prevValue == null ? Wt : kt)(r, { percent: 1 }, n, t, null, u)
  10858. }
  10859. var FC = ['textStyle', 'color'],
  10860. df = [
  10861. 'fontStyle',
  10862. 'fontWeight',
  10863. 'fontSize',
  10864. 'fontFamily',
  10865. 'padding',
  10866. 'lineHeight',
  10867. 'rich',
  10868. 'width',
  10869. 'height',
  10870. 'overflow'
  10871. ],
  10872. pf = new Et(),
  10873. zC = (function () {
  10874. function r() {}
  10875. return (
  10876. (r.prototype.getTextColor = function (t) {
  10877. var e = this.ecModel
  10878. return this.getShallow('color') || (!t && e ? e.get(FC) : null)
  10879. }),
  10880. (r.prototype.getFont = function () {
  10881. return kC(
  10882. {
  10883. fontStyle: this.getShallow('fontStyle'),
  10884. fontWeight: this.getShallow('fontWeight'),
  10885. fontSize: this.getShallow('fontSize'),
  10886. fontFamily: this.getShallow('fontFamily')
  10887. },
  10888. this.ecModel
  10889. )
  10890. }),
  10891. (r.prototype.getTextRect = function (t) {
  10892. for (
  10893. var e = {
  10894. text: t,
  10895. verticalAlign:
  10896. this.getShallow('verticalAlign') || this.getShallow('baseline')
  10897. },
  10898. n = 0;
  10899. n < df.length;
  10900. n++
  10901. )
  10902. e[df[n]] = this.getShallow(df[n])
  10903. return pf.useStyle(e), pf.update(), pf.getBoundingRect()
  10904. }),
  10905. r
  10906. )
  10907. })(),
  10908. VC = zC,
  10909. Zp = [
  10910. ['lineWidth', 'width'],
  10911. ['stroke', 'color'],
  10912. ['opacity'],
  10913. ['shadowBlur'],
  10914. ['shadowOffsetX'],
  10915. ['shadowOffsetY'],
  10916. ['shadowColor'],
  10917. ['lineDash', 'type'],
  10918. ['lineDashOffset', 'dashOffset'],
  10919. ['lineCap', 'cap'],
  10920. ['lineJoin', 'join'],
  10921. ['miterLimit']
  10922. ],
  10923. GC = ta(Zp),
  10924. HC = (function () {
  10925. function r() {}
  10926. return (
  10927. (r.prototype.getLineStyle = function (t) {
  10928. return GC(this, t)
  10929. }),
  10930. r
  10931. )
  10932. })(),
  10933. $p = [
  10934. ['fill', 'color'],
  10935. ['stroke', 'borderColor'],
  10936. ['lineWidth', 'borderWidth'],
  10937. ['opacity'],
  10938. ['shadowBlur'],
  10939. ['shadowOffsetX'],
  10940. ['shadowOffsetY'],
  10941. ['shadowColor'],
  10942. ['lineDash', 'borderType'],
  10943. ['lineDashOffset', 'borderDashOffset'],
  10944. ['lineCap', 'borderCap'],
  10945. ['lineJoin', 'borderJoin'],
  10946. ['miterLimit', 'borderMiterLimit']
  10947. ],
  10948. WC = ta($p),
  10949. UC = (function () {
  10950. function r() {}
  10951. return (
  10952. (r.prototype.getItemStyle = function (t, e) {
  10953. return WC(this, t, e)
  10954. }),
  10955. r
  10956. )
  10957. })(),
  10958. gn = (function () {
  10959. function r(t, e, n) {
  10960. ;(this.parentModel = e), (this.ecModel = n), (this.option = t)
  10961. }
  10962. return (
  10963. (r.prototype.init = function (t, e, n) {
  10964. for (var i = [], a = 3; a < arguments.length; a++)
  10965. i[a - 3] = arguments[a]
  10966. }),
  10967. (r.prototype.mergeOption = function (t, e) {
  10968. nt(this.option, t, !0)
  10969. }),
  10970. (r.prototype.get = function (t, e) {
  10971. return t == null
  10972. ? this.option
  10973. : this._doGet(this.parsePath(t), !e && this.parentModel)
  10974. }),
  10975. (r.prototype.getShallow = function (t, e) {
  10976. var n = this.option,
  10977. i = n == null ? n : n[t]
  10978. if (i == null && !e) {
  10979. var a = this.parentModel
  10980. a && (i = a.getShallow(t))
  10981. }
  10982. return i
  10983. }),
  10984. (r.prototype.getModel = function (t, e) {
  10985. var n = t != null,
  10986. i = n ? this.parsePath(t) : null,
  10987. a = n ? this._doGet(i) : this.option
  10988. return (
  10989. (e =
  10990. e ||
  10991. (this.parentModel &&
  10992. this.parentModel.getModel(this.resolveParentPath(i)))),
  10993. new r(a, e, this.ecModel)
  10994. )
  10995. }),
  10996. (r.prototype.isEmpty = function () {
  10997. return this.option == null
  10998. }),
  10999. (r.prototype.restoreData = function () {}),
  11000. (r.prototype.clone = function () {
  11001. var t = this.constructor
  11002. return new t(tt(this.option))
  11003. }),
  11004. (r.prototype.parsePath = function (t) {
  11005. return typeof t == 'string' ? t.split('.') : t
  11006. }),
  11007. (r.prototype.resolveParentPath = function (t) {
  11008. return t
  11009. }),
  11010. (r.prototype.isAnimationEnabled = function () {
  11011. if (!at.node && this.option) {
  11012. if (this.option.animation != null) return !!this.option.animation
  11013. if (this.parentModel) return this.parentModel.isAnimationEnabled()
  11014. }
  11015. }),
  11016. (r.prototype._doGet = function (t, e) {
  11017. var n = this.option
  11018. if (!t) return n
  11019. for (
  11020. var i = 0;
  11021. i < t.length &&
  11022. !(
  11023. !!t[i] &&
  11024. ((n = n && typeof n == 'object' ? n[t[i]] : null), n == null)
  11025. );
  11026. i++
  11027. );
  11028. return (
  11029. n == null &&
  11030. e &&
  11031. (n = e._doGet(this.resolveParentPath(t), e.parentModel)),
  11032. n
  11033. )
  11034. }),
  11035. r
  11036. )
  11037. })()
  11038. Du(gn)
  11039. bb(gn)
  11040. ze(gn, HC)
  11041. ze(gn, UC)
  11042. ze(gn, Db)
  11043. ze(gn, VC)
  11044. var Nt = gn,
  11045. YC = Math.round(Math.random() * 10)
  11046. function ca(r) {
  11047. return [r || '', YC++].join('_')
  11048. }
  11049. function ZC(r) {
  11050. var t = {}
  11051. ;(r.registerSubTypeDefaulter = function (e, n) {
  11052. var i = Ue(e)
  11053. t[i.main] = n
  11054. }),
  11055. (r.determineSubType = function (e, n) {
  11056. var i = n.type
  11057. if (!i) {
  11058. var a = Ue(e).main
  11059. r.hasSubTypes(e) && t[a] && (i = t[a](n))
  11060. }
  11061. return i
  11062. })
  11063. }
  11064. function $C(r, t) {
  11065. r.topologicalTravel = function (a, o, s, l) {
  11066. if (!a.length) return
  11067. var u = e(o),
  11068. f = u.graph,
  11069. h = u.noEntryList,
  11070. c = {}
  11071. for (
  11072. A(a, function (y) {
  11073. c[y] = !0
  11074. });
  11075. h.length;
  11076. ) {
  11077. var v = h.pop(),
  11078. d = f[v],
  11079. p = !!c[v]
  11080. p && (s.call(l, v, d.originalDeps.slice()), delete c[v]),
  11081. A(d.successor, p ? m : g)
  11082. }
  11083. A(c, function () {
  11084. var y = ''
  11085. throw new Error(y)
  11086. })
  11087. function g(y) {
  11088. f[y].entryCount--, f[y].entryCount === 0 && h.push(y)
  11089. }
  11090. function m(y) {
  11091. ;(c[y] = !0), g(y)
  11092. }
  11093. }
  11094. function e(a) {
  11095. var o = {},
  11096. s = []
  11097. return (
  11098. A(a, function (l) {
  11099. var u = n(o, l),
  11100. f = (u.originalDeps = t(l)),
  11101. h = i(f, a)
  11102. ;(u.entryCount = h.length),
  11103. u.entryCount === 0 && s.push(l),
  11104. A(h, function (c) {
  11105. ot(u.predecessor, c) < 0 && u.predecessor.push(c)
  11106. var v = n(o, c)
  11107. ot(v.successor, c) < 0 && v.successor.push(l)
  11108. })
  11109. }),
  11110. { graph: o, noEntryList: s }
  11111. )
  11112. }
  11113. function n(a, o) {
  11114. return a[o] || (a[o] = { predecessor: [], successor: [] }), a[o]
  11115. }
  11116. function i(a, o) {
  11117. var s = []
  11118. return (
  11119. A(a, function (l) {
  11120. ot(o, l) >= 0 && s.push(l)
  11121. }),
  11122. s
  11123. )
  11124. }
  11125. }
  11126. function cs(r, t) {
  11127. return nt(nt({}, r, !0), t, !0)
  11128. }
  11129. var XC = {
  11130. time: {
  11131. month: [
  11132. 'January',
  11133. 'February',
  11134. 'March',
  11135. 'April',
  11136. 'May',
  11137. 'June',
  11138. 'July',
  11139. 'August',
  11140. 'September',
  11141. 'October',
  11142. 'November',
  11143. 'December'
  11144. ],
  11145. monthAbbr: [
  11146. 'Jan',
  11147. 'Feb',
  11148. 'Mar',
  11149. 'Apr',
  11150. 'May',
  11151. 'Jun',
  11152. 'Jul',
  11153. 'Aug',
  11154. 'Sep',
  11155. 'Oct',
  11156. 'Nov',
  11157. 'Dec'
  11158. ],
  11159. dayOfWeek: [
  11160. 'Sunday',
  11161. 'Monday',
  11162. 'Tuesday',
  11163. 'Wednesday',
  11164. 'Thursday',
  11165. 'Friday',
  11166. 'Saturday'
  11167. ],
  11168. dayOfWeekAbbr: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat']
  11169. },
  11170. legend: { selector: { all: 'All', inverse: 'Inv' } },
  11171. toolbox: {
  11172. brush: {
  11173. title: {
  11174. rect: 'Box Select',
  11175. polygon: 'Lasso Select',
  11176. lineX: 'Horizontally Select',
  11177. lineY: 'Vertically Select',
  11178. keep: 'Keep Selections',
  11179. clear: 'Clear Selections'
  11180. }
  11181. },
  11182. dataView: { title: 'Data View', lang: ['Data View', 'Close', 'Refresh'] },
  11183. dataZoom: { title: { zoom: 'Zoom', back: 'Zoom Reset' } },
  11184. magicType: {
  11185. title: {
  11186. line: 'Switch to Line Chart',
  11187. bar: 'Switch to Bar Chart',
  11188. stack: 'Stack',
  11189. tiled: 'Tile'
  11190. }
  11191. },
  11192. restore: { title: 'Restore' },
  11193. saveAsImage: {
  11194. title: 'Save as Image',
  11195. lang: ['Right Click to Save Image']
  11196. }
  11197. },
  11198. series: {
  11199. typeNames: {
  11200. pie: 'Pie chart',
  11201. bar: 'Bar chart',
  11202. line: 'Line chart',
  11203. scatter: 'Scatter plot',
  11204. effectScatter: 'Ripple scatter plot',
  11205. radar: 'Radar chart',
  11206. tree: 'Tree',
  11207. treemap: 'Treemap',
  11208. boxplot: 'Boxplot',
  11209. candlestick: 'Candlestick',
  11210. k: 'K line chart',
  11211. heatmap: 'Heat map',
  11212. map: 'Map',
  11213. parallel: 'Parallel coordinate map',
  11214. lines: 'Line graph',
  11215. graph: 'Relationship graph',
  11216. sankey: 'Sankey diagram',
  11217. funnel: 'Funnel chart',
  11218. gauge: 'Gauge',
  11219. pictorialBar: 'Pictorial bar',
  11220. themeRiver: 'Theme River Map',
  11221. sunburst: 'Sunburst'
  11222. }
  11223. },
  11224. aria: {
  11225. general: {
  11226. withTitle: 'This is a chart about "{title}"',
  11227. withoutTitle: 'This is a chart'
  11228. },
  11229. series: {
  11230. single: {
  11231. prefix: '',
  11232. withName: ' with type {seriesType} named {seriesName}.',
  11233. withoutName: ' with type {seriesType}.'
  11234. },
  11235. multiple: {
  11236. prefix: '. It consists of {seriesCount} series count.',
  11237. withName:
  11238. ' The {seriesId} series is a {seriesType} representing {seriesName}.',
  11239. withoutName: ' The {seriesId} series is a {seriesType}.',
  11240. separator: { middle: '', end: '' }
  11241. }
  11242. },
  11243. data: {
  11244. allData: 'The data is as follows: ',
  11245. partialData: 'The first {displayCnt} items are: ',
  11246. withName: 'the data for {name} is {value}',
  11247. withoutName: '{value}',
  11248. separator: { middle: ', ', end: '. ' }
  11249. }
  11250. }
  11251. },
  11252. qC = {
  11253. time: {
  11254. month: [
  11255. '\u4E00\u6708',
  11256. '\u4E8C\u6708',
  11257. '\u4E09\u6708',
  11258. '\u56DB\u6708',
  11259. '\u4E94\u6708',
  11260. '\u516D\u6708',
  11261. '\u4E03\u6708',
  11262. '\u516B\u6708',
  11263. '\u4E5D\u6708',
  11264. '\u5341\u6708',
  11265. '\u5341\u4E00\u6708',
  11266. '\u5341\u4E8C\u6708'
  11267. ],
  11268. monthAbbr: [
  11269. '1\u6708',
  11270. '2\u6708',
  11271. '3\u6708',
  11272. '4\u6708',
  11273. '5\u6708',
  11274. '6\u6708',
  11275. '7\u6708',
  11276. '8\u6708',
  11277. '9\u6708',
  11278. '10\u6708',
  11279. '11\u6708',
  11280. '12\u6708'
  11281. ],
  11282. dayOfWeek: [
  11283. '\u661F\u671F\u65E5',
  11284. '\u661F\u671F\u4E00',
  11285. '\u661F\u671F\u4E8C',
  11286. '\u661F\u671F\u4E09',
  11287. '\u661F\u671F\u56DB',
  11288. '\u661F\u671F\u4E94',
  11289. '\u661F\u671F\u516D'
  11290. ],
  11291. dayOfWeekAbbr: [
  11292. '\u65E5',
  11293. '\u4E00',
  11294. '\u4E8C',
  11295. '\u4E09',
  11296. '\u56DB',
  11297. '\u4E94',
  11298. '\u516D'
  11299. ]
  11300. },
  11301. legend: { selector: { all: '\u5168\u9009', inverse: '\u53CD\u9009' } },
  11302. toolbox: {
  11303. brush: {
  11304. title: {
  11305. rect: '\u77E9\u5F62\u9009\u62E9',
  11306. polygon: '\u5708\u9009',
  11307. lineX: '\u6A2A\u5411\u9009\u62E9',
  11308. lineY: '\u7EB5\u5411\u9009\u62E9',
  11309. keep: '\u4FDD\u6301\u9009\u62E9',
  11310. clear: '\u6E05\u9664\u9009\u62E9'
  11311. }
  11312. },
  11313. dataView: {
  11314. title: '\u6570\u636E\u89C6\u56FE',
  11315. lang: ['\u6570\u636E\u89C6\u56FE', '\u5173\u95ED', '\u5237\u65B0']
  11316. },
  11317. dataZoom: {
  11318. title: {
  11319. zoom: '\u533A\u57DF\u7F29\u653E',
  11320. back: '\u533A\u57DF\u7F29\u653E\u8FD8\u539F'
  11321. }
  11322. },
  11323. magicType: {
  11324. title: {
  11325. line: '\u5207\u6362\u4E3A\u6298\u7EBF\u56FE',
  11326. bar: '\u5207\u6362\u4E3A\u67F1\u72B6\u56FE',
  11327. stack: '\u5207\u6362\u4E3A\u5806\u53E0',
  11328. tiled: '\u5207\u6362\u4E3A\u5E73\u94FA'
  11329. }
  11330. },
  11331. restore: { title: '\u8FD8\u539F' },
  11332. saveAsImage: {
  11333. title: '\u4FDD\u5B58\u4E3A\u56FE\u7247',
  11334. lang: ['\u53F3\u952E\u53E6\u5B58\u4E3A\u56FE\u7247']
  11335. }
  11336. },
  11337. series: {
  11338. typeNames: {
  11339. pie: '\u997C\u56FE',
  11340. bar: '\u67F1\u72B6\u56FE',
  11341. line: '\u6298\u7EBF\u56FE',
  11342. scatter: '\u6563\u70B9\u56FE',
  11343. effectScatter: '\u6D9F\u6F2A\u6563\u70B9\u56FE',
  11344. radar: '\u96F7\u8FBE\u56FE',
  11345. tree: '\u6811\u56FE',
  11346. treemap: '\u77E9\u5F62\u6811\u56FE',
  11347. boxplot: '\u7BB1\u578B\u56FE',
  11348. candlestick: 'K\u7EBF\u56FE',
  11349. k: 'K\u7EBF\u56FE',
  11350. heatmap: '\u70ED\u529B\u56FE',
  11351. map: '\u5730\u56FE',
  11352. parallel: '\u5E73\u884C\u5750\u6807\u56FE',
  11353. lines: '\u7EBF\u56FE',
  11354. graph: '\u5173\u7CFB\u56FE',
  11355. sankey: '\u6851\u57FA\u56FE',
  11356. funnel: '\u6F0F\u6597\u56FE',
  11357. gauge: '\u4EEA\u8868\u76D8\u56FE',
  11358. pictorialBar: '\u8C61\u5F62\u67F1\u56FE',
  11359. themeRiver: '\u4E3B\u9898\u6CB3\u6D41\u56FE',
  11360. sunburst: '\u65ED\u65E5\u56FE'
  11361. }
  11362. },
  11363. aria: {
  11364. general: {
  11365. withTitle:
  11366. '\u8FD9\u662F\u4E00\u4E2A\u5173\u4E8E\u201C{title}\u201D\u7684\u56FE\u8868\u3002',
  11367. withoutTitle: '\u8FD9\u662F\u4E00\u4E2A\u56FE\u8868\uFF0C'
  11368. },
  11369. series: {
  11370. single: {
  11371. prefix: '',
  11372. withName:
  11373. '\u56FE\u8868\u7C7B\u578B\u662F{seriesType}\uFF0C\u8868\u793A{seriesName}\u3002',
  11374. withoutName: '\u56FE\u8868\u7C7B\u578B\u662F{seriesType}\u3002'
  11375. },
  11376. multiple: {
  11377. prefix:
  11378. '\u5B83\u7531{seriesCount}\u4E2A\u56FE\u8868\u7CFB\u5217\u7EC4\u6210\u3002',
  11379. withName:
  11380. '\u7B2C{seriesId}\u4E2A\u7CFB\u5217\u662F\u4E00\u4E2A\u8868\u793A{seriesName}\u7684{seriesType}\uFF0C',
  11381. withoutName:
  11382. '\u7B2C{seriesId}\u4E2A\u7CFB\u5217\u662F\u4E00\u4E2A{seriesType}\uFF0C',
  11383. separator: { middle: '\uFF1B', end: '\u3002' }
  11384. }
  11385. },
  11386. data: {
  11387. allData: '\u5176\u6570\u636E\u662F\u2014\u2014',
  11388. partialData:
  11389. '\u5176\u4E2D\uFF0C\u524D{displayCnt}\u9879\u662F\u2014\u2014',
  11390. withName: '{name}\u7684\u6570\u636E\u662F{value}',
  11391. withoutName: '{value}',
  11392. separator: { middle: '\uFF0C', end: '' }
  11393. }
  11394. }
  11395. },
  11396. ds = 'ZH',
  11397. gf = 'EN',
  11398. da = gf,
  11399. ps = {},
  11400. mf = {},
  11401. Xp = at.domSupported
  11402. ? (function () {
  11403. var r = (
  11404. document.documentElement.lang ||
  11405. navigator.language ||
  11406. navigator.browserLanguage
  11407. ).toUpperCase()
  11408. return r.indexOf(ds) > -1 ? ds : da
  11409. })()
  11410. : da
  11411. function qp(r, t) {
  11412. ;(r = r.toUpperCase()), (mf[r] = new Nt(t)), (ps[r] = t)
  11413. }
  11414. function KC(r) {
  11415. if (W(r)) {
  11416. var t = ps[r.toUpperCase()] || {}
  11417. return r === ds || r === gf ? tt(t) : nt(tt(t), tt(ps[da]), !1)
  11418. } else return nt(tt(r), tt(ps[da]), !1)
  11419. }
  11420. function QC(r) {
  11421. return mf[r]
  11422. }
  11423. function JC() {
  11424. return mf[da]
  11425. }
  11426. qp(gf, XC)
  11427. qp(ds, qC)
  11428. var yf = 1e3,
  11429. _f = yf * 60,
  11430. pa = _f * 60,
  11431. ge = pa * 24,
  11432. Kp = ge * 365,
  11433. ga = {
  11434. year: '{yyyy}',
  11435. month: '{MMM}',
  11436. day: '{d}',
  11437. hour: '{HH}:{mm}',
  11438. minute: '{HH}:{mm}',
  11439. second: '{HH}:{mm}:{ss}',
  11440. millisecond: '{HH}:{mm}:{ss} {SSS}',
  11441. none: '{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}'
  11442. },
  11443. gs = '{yyyy}-{MM}-{dd}',
  11444. Qp = {
  11445. year: '{yyyy}',
  11446. month: '{yyyy}-{MM}',
  11447. day: gs,
  11448. hour: gs + ' ' + ga.hour,
  11449. minute: gs + ' ' + ga.minute,
  11450. second: gs + ' ' + ga.second,
  11451. millisecond: ga.none
  11452. },
  11453. Sf = ['year', 'month', 'day', 'hour', 'minute', 'second', 'millisecond'],
  11454. Jp = [
  11455. 'year',
  11456. 'half-year',
  11457. 'quarter',
  11458. 'month',
  11459. 'week',
  11460. 'half-week',
  11461. 'day',
  11462. 'half-day',
  11463. 'quarter-day',
  11464. 'hour',
  11465. 'minute',
  11466. 'second',
  11467. 'millisecond'
  11468. ]
  11469. function mn(r, t) {
  11470. return (r += ''), '0000'.substr(0, t - r.length) + r
  11471. }
  11472. function li(r) {
  11473. switch (r) {
  11474. case 'half-year':
  11475. case 'quarter':
  11476. return 'month'
  11477. case 'week':
  11478. case 'half-week':
  11479. return 'day'
  11480. case 'half-day':
  11481. case 'quarter-day':
  11482. return 'hour'
  11483. default:
  11484. return r
  11485. }
  11486. }
  11487. function jC(r) {
  11488. return r === li(r)
  11489. }
  11490. function tA(r) {
  11491. switch (r) {
  11492. case 'year':
  11493. case 'month':
  11494. return 'day'
  11495. case 'millisecond':
  11496. return 'millisecond'
  11497. default:
  11498. return 'second'
  11499. }
  11500. }
  11501. function ms(r, t, e, n) {
  11502. var i = sr(r),
  11503. a = i[xf(e)](),
  11504. o = i[ui(e)]() + 1,
  11505. s = Math.floor((o - 1) / 3) + 1,
  11506. l = i[ys(e)](),
  11507. u = i['get' + (e ? 'UTC' : '') + 'Day'](),
  11508. f = i[ma(e)](),
  11509. h = ((f - 1) % 12) + 1,
  11510. c = i[_s(e)](),
  11511. v = i[Ss(e)](),
  11512. d = i[xs(e)](),
  11513. p = n instanceof Nt ? n : QC(n || Xp) || JC(),
  11514. g = p.getModel('time'),
  11515. m = g.get('month'),
  11516. y = g.get('monthAbbr'),
  11517. _ = g.get('dayOfWeek'),
  11518. S = g.get('dayOfWeekAbbr')
  11519. return (t || '')
  11520. .replace(/{yyyy}/g, a + '')
  11521. .replace(/{yy}/g, (a % 100) + '')
  11522. .replace(/{Q}/g, s + '')
  11523. .replace(/{MMMM}/g, m[o - 1])
  11524. .replace(/{MMM}/g, y[o - 1])
  11525. .replace(/{MM}/g, mn(o, 2))
  11526. .replace(/{M}/g, o + '')
  11527. .replace(/{dd}/g, mn(l, 2))
  11528. .replace(/{d}/g, l + '')
  11529. .replace(/{eeee}/g, _[u])
  11530. .replace(/{ee}/g, S[u])
  11531. .replace(/{e}/g, u + '')
  11532. .replace(/{HH}/g, mn(f, 2))
  11533. .replace(/{H}/g, f + '')
  11534. .replace(/{hh}/g, mn(h + '', 2))
  11535. .replace(/{h}/g, h + '')
  11536. .replace(/{mm}/g, mn(c, 2))
  11537. .replace(/{m}/g, c + '')
  11538. .replace(/{ss}/g, mn(v, 2))
  11539. .replace(/{s}/g, v + '')
  11540. .replace(/{SSS}/g, mn(d, 3))
  11541. .replace(/{S}/g, d + '')
  11542. }
  11543. function eA(r, t, e, n, i) {
  11544. var a = null
  11545. if (W(e)) a = e
  11546. else if (Q(e)) a = e(r.value, t, { level: r.level })
  11547. else {
  11548. var o = N({}, ga)
  11549. if (r.level > 0)
  11550. for (var s = 0; s < Sf.length; ++s)
  11551. o[Sf[s]] = '{primary|' + o[Sf[s]] + '}'
  11552. var l = e ? (e.inherit === !1 ? e : j(e, o)) : o,
  11553. u = jp(r.value, i)
  11554. if (l[u]) a = l[u]
  11555. else if (l.inherit) {
  11556. for (var f = Jp.indexOf(u), s = f - 1; s >= 0; --s)
  11557. if (l[u]) {
  11558. a = l[u]
  11559. break
  11560. }
  11561. a = a || o.none
  11562. }
  11563. if (z(a)) {
  11564. var h = r.level == null ? 0 : r.level >= 0 ? r.level : a.length + r.level
  11565. ;(h = Math.min(h, a.length - 1)), (a = a[h])
  11566. }
  11567. }
  11568. return ms(new Date(r.value), a, i, n)
  11569. }
  11570. function jp(r, t) {
  11571. var e = sr(r),
  11572. n = e[ui(t)]() + 1,
  11573. i = e[ys(t)](),
  11574. a = e[ma(t)](),
  11575. o = e[_s(t)](),
  11576. s = e[Ss(t)](),
  11577. l = e[xs(t)](),
  11578. u = l === 0,
  11579. f = u && s === 0,
  11580. h = f && o === 0,
  11581. c = h && a === 0,
  11582. v = c && i === 1,
  11583. d = v && n === 1
  11584. return d
  11585. ? 'year'
  11586. : v
  11587. ? 'month'
  11588. : c
  11589. ? 'day'
  11590. : h
  11591. ? 'hour'
  11592. : f
  11593. ? 'minute'
  11594. : u
  11595. ? 'second'
  11596. : 'millisecond'
  11597. }
  11598. function tg(r, t, e) {
  11599. var n = dt(r) ? sr(r) : r
  11600. switch (((t = t || jp(r, e)), t)) {
  11601. case 'year':
  11602. return n[xf(e)]()
  11603. case 'half-year':
  11604. return n[ui(e)]() >= 6 ? 1 : 0
  11605. case 'quarter':
  11606. return Math.floor((n[ui(e)]() + 1) / 4)
  11607. case 'month':
  11608. return n[ui(e)]()
  11609. case 'day':
  11610. return n[ys(e)]()
  11611. case 'half-day':
  11612. return n[ma(e)]() / 24
  11613. case 'hour':
  11614. return n[ma(e)]()
  11615. case 'minute':
  11616. return n[_s(e)]()
  11617. case 'second':
  11618. return n[Ss(e)]()
  11619. case 'millisecond':
  11620. return n[xs(e)]()
  11621. }
  11622. }
  11623. function xf(r) {
  11624. return r ? 'getUTCFullYear' : 'getFullYear'
  11625. }
  11626. function ui(r) {
  11627. return r ? 'getUTCMonth' : 'getMonth'
  11628. }
  11629. function ys(r) {
  11630. return r ? 'getUTCDate' : 'getDate'
  11631. }
  11632. function ma(r) {
  11633. return r ? 'getUTCHours' : 'getHours'
  11634. }
  11635. function _s(r) {
  11636. return r ? 'getUTCMinutes' : 'getMinutes'
  11637. }
  11638. function Ss(r) {
  11639. return r ? 'getUTCSeconds' : 'getSeconds'
  11640. }
  11641. function xs(r) {
  11642. return r ? 'getUTCMilliseconds' : 'getMilliseconds'
  11643. }
  11644. function rA(r) {
  11645. return r ? 'setUTCFullYear' : 'setFullYear'
  11646. }
  11647. function eg(r) {
  11648. return r ? 'setUTCMonth' : 'setMonth'
  11649. }
  11650. function rg(r) {
  11651. return r ? 'setUTCDate' : 'setDate'
  11652. }
  11653. function ng(r) {
  11654. return r ? 'setUTCHours' : 'setHours'
  11655. }
  11656. function ig(r) {
  11657. return r ? 'setUTCMinutes' : 'setMinutes'
  11658. }
  11659. function ag(r) {
  11660. return r ? 'setUTCSeconds' : 'setSeconds'
  11661. }
  11662. function og(r) {
  11663. return r ? 'setUTCMilliseconds' : 'setMilliseconds'
  11664. }
  11665. function sg(r) {
  11666. if (!rb(r)) return W(r) ? r : '-'
  11667. var t = (r + '').split('.')
  11668. return (
  11669. t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g, '$1,') +
  11670. (t.length > 1 ? '.' + t[1] : '')
  11671. )
  11672. }
  11673. function lg(r, t) {
  11674. return (
  11675. (r = (r || '').toLowerCase().replace(/-(.)/g, function (e, n) {
  11676. return n.toUpperCase()
  11677. })),
  11678. t && r && (r = r.charAt(0).toUpperCase() + r.slice(1)),
  11679. r
  11680. )
  11681. }
  11682. var ws = Zv,
  11683. nA = /([&<>"'])/g,
  11684. iA = { '&': '&amp;', '<': '&lt;', '>': '&gt;', '"': '&quot;', "'": '&#39;' }
  11685. function me(r) {
  11686. return r == null
  11687. ? ''
  11688. : (r + '').replace(nA, function (t, e) {
  11689. return iA[e]
  11690. })
  11691. }
  11692. function wf(r, t, e) {
  11693. var n = '{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}'
  11694. function i(f) {
  11695. return f && Ge(f) ? f : '-'
  11696. }
  11697. function a(f) {
  11698. return !!(f != null && !isNaN(f) && isFinite(f))
  11699. }
  11700. var o = t === 'time',
  11701. s = r instanceof Date
  11702. if (o || s) {
  11703. var l = o ? sr(r) : r
  11704. if (isNaN(+l)) {
  11705. if (s) return '-'
  11706. } else return ms(l, n, e)
  11707. }
  11708. if (t === 'ordinal') return Rl(r) ? i(r) : dt(r) && a(r) ? r + '' : '-'
  11709. var u = Ar(r)
  11710. return a(u) ? sg(u) : Rl(r) ? i(r) : typeof r == 'boolean' ? r + '' : '-'
  11711. }
  11712. var ug = ['a', 'b', 'c', 'd', 'e', 'f', 'g'],
  11713. bf = function (r, t) {
  11714. return '{' + r + (t == null ? '' : t) + '}'
  11715. }
  11716. function fg(r, t, e) {
  11717. z(t) || (t = [t])
  11718. var n = t.length
  11719. if (!n) return ''
  11720. for (var i = t[0].$vars || [], a = 0; a < i.length; a++) {
  11721. var o = ug[a]
  11722. r = r.replace(bf(o), bf(o, 0))
  11723. }
  11724. for (var s = 0; s < n; s++)
  11725. for (var l = 0; l < i.length; l++) {
  11726. var u = t[s][i[l]]
  11727. r = r.replace(bf(ug[l], s), e ? me(u) : u)
  11728. }
  11729. return r
  11730. }
  11731. function aA(r, t) {
  11732. var e = W(r) ? { color: r, extraCssText: t } : r || {},
  11733. n = e.color,
  11734. i = e.type
  11735. t = e.extraCssText
  11736. var a = e.renderMode || 'html'
  11737. if (!n) return ''
  11738. if (a === 'html')
  11739. return i === 'subItem'
  11740. ? '<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:' +
  11741. me(n) +
  11742. ';' +
  11743. (t || '') +
  11744. '"></span>'
  11745. : '<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:' +
  11746. me(n) +
  11747. ';' +
  11748. (t || '') +
  11749. '"></span>'
  11750. var o = e.markerId || 'markerX'
  11751. return {
  11752. renderMode: a,
  11753. content: '{' + o + '|} ',
  11754. style:
  11755. i === 'subItem'
  11756. ? { width: 4, height: 4, borderRadius: 2, backgroundColor: n }
  11757. : { width: 10, height: 10, borderRadius: 5, backgroundColor: n }
  11758. }
  11759. }
  11760. function yn(r, t) {
  11761. return (
  11762. (t = t || 'transparent'),
  11763. W(r) ? r : (Y(r) && r.colorStops && (r.colorStops[0] || {}).color) || t
  11764. )
  11765. }
  11766. function hg(r, t) {
  11767. if (t === '_blank' || t === 'blank') {
  11768. var e = window.open()
  11769. ;(e.opener = null), (e.location.href = r)
  11770. } else window.open(r, t)
  11771. }
  11772. var bs = A,
  11773. oA = ['left', 'right', 'top', 'bottom', 'width', 'height'],
  11774. Ts = [
  11775. ['width', 'left', 'right'],
  11776. ['height', 'top', 'bottom']
  11777. ]
  11778. function Tf(r, t, e, n, i) {
  11779. var a = 0,
  11780. o = 0
  11781. n == null && (n = 1 / 0), i == null && (i = 1 / 0)
  11782. var s = 0
  11783. t.eachChild(function (l, u) {
  11784. var f = l.getBoundingRect(),
  11785. h = t.childAt(u + 1),
  11786. c = h && h.getBoundingRect(),
  11787. v,
  11788. d
  11789. if (r === 'horizontal') {
  11790. var p = f.width + (c ? -c.x + f.x : 0)
  11791. ;(v = a + p),
  11792. v > n || l.newline
  11793. ? ((a = 0), (v = p), (o += s + e), (s = f.height))
  11794. : (s = Math.max(s, f.height))
  11795. } else {
  11796. var g = f.height + (c ? -c.y + f.y : 0)
  11797. ;(d = o + g),
  11798. d > i || l.newline
  11799. ? ((a += s + e), (o = 0), (d = g), (s = f.width))
  11800. : (s = Math.max(s, f.width))
  11801. }
  11802. l.newline ||
  11803. ((l.x = a),
  11804. (l.y = o),
  11805. l.markRedraw(),
  11806. r === 'horizontal' ? (a = v + e) : (o = d + e))
  11807. })
  11808. }
  11809. var fi = Tf
  11810. lt(Tf, 'vertical')
  11811. lt(Tf, 'horizontal')
  11812. function cr(r, t, e) {
  11813. e = ws(e || 0)
  11814. var n = t.width,
  11815. i = t.height,
  11816. a = yt(r.left, n),
  11817. o = yt(r.top, i),
  11818. s = yt(r.right, n),
  11819. l = yt(r.bottom, i),
  11820. u = yt(r.width, n),
  11821. f = yt(r.height, i),
  11822. h = e[2] + e[0],
  11823. c = e[1] + e[3],
  11824. v = r.aspect
  11825. switch (
  11826. (isNaN(u) && (u = n - s - c - a),
  11827. isNaN(f) && (f = i - l - h - o),
  11828. v != null &&
  11829. (isNaN(u) && isNaN(f) && (v > n / i ? (u = n * 0.8) : (f = i * 0.8)),
  11830. isNaN(u) && (u = v * f),
  11831. isNaN(f) && (f = u / v)),
  11832. isNaN(a) && (a = n - s - u - c),
  11833. isNaN(o) && (o = i - l - f - h),
  11834. r.left || r.right)
  11835. ) {
  11836. case 'center':
  11837. a = n / 2 - u / 2 - e[3]
  11838. break
  11839. case 'right':
  11840. a = n - u - c
  11841. break
  11842. }
  11843. switch (r.top || r.bottom) {
  11844. case 'middle':
  11845. case 'center':
  11846. o = i / 2 - f / 2 - e[0]
  11847. break
  11848. case 'bottom':
  11849. o = i - f - h
  11850. break
  11851. }
  11852. ;(a = a || 0),
  11853. (o = o || 0),
  11854. isNaN(u) && (u = n - c - a - (s || 0)),
  11855. isNaN(f) && (f = i - h - o - (l || 0))
  11856. var d = new vt(a + e[3], o + e[0], u, f)
  11857. return (d.margin = e), d
  11858. }
  11859. function sA(r, t, e, n, i, a) {
  11860. var o = !i || !i.hv || i.hv[0],
  11861. s = !i || !i.hv || i.hv[1],
  11862. l = (i && i.boundingMode) || 'all'
  11863. if (((a = a || r), (a.x = r.x), (a.y = r.y), !o && !s)) return !1
  11864. var u
  11865. if (l === 'raw')
  11866. u =
  11867. r.type === 'group'
  11868. ? new vt(0, 0, +t.width || 0, +t.height || 0)
  11869. : r.getBoundingRect()
  11870. else if (((u = r.getBoundingRect()), r.needLocalTransform())) {
  11871. var f = r.getLocalTransform()
  11872. ;(u = u.clone()), u.applyTransform(f)
  11873. }
  11874. var h = cr(j({ width: u.width, height: u.height }, t), e, n),
  11875. c = o ? h.x - u.x : 0,
  11876. v = s ? h.y - u.y : 0
  11877. return (
  11878. l === 'raw' ? ((a.x = c), (a.y = v)) : ((a.x += c), (a.y += v)),
  11879. a === r && r.markRedraw(),
  11880. !0
  11881. )
  11882. }
  11883. function ya(r) {
  11884. var t = r.layoutMode || r.constructor.layoutMode
  11885. return Y(t) ? t : t ? { type: t } : null
  11886. }
  11887. function hi(r, t, e) {
  11888. var n = e && e.ignoreSize
  11889. !z(n) && (n = [n, n])
  11890. var i = o(Ts[0], 0),
  11891. a = o(Ts[1], 1)
  11892. u(Ts[0], r, i), u(Ts[1], r, a)
  11893. function o(f, h) {
  11894. var c = {},
  11895. v = 0,
  11896. d = {},
  11897. p = 0,
  11898. g = 2
  11899. if (
  11900. (bs(f, function (_) {
  11901. d[_] = r[_]
  11902. }),
  11903. bs(f, function (_) {
  11904. s(t, _) && (c[_] = d[_] = t[_]), l(c, _) && v++, l(d, _) && p++
  11905. }),
  11906. n[h])
  11907. )
  11908. return l(t, f[1]) ? (d[f[2]] = null) : l(t, f[2]) && (d[f[1]] = null), d
  11909. if (p === g || !v) return d
  11910. if (v >= g) return c
  11911. for (var m = 0; m < f.length; m++) {
  11912. var y = f[m]
  11913. if (!s(c, y) && s(r, y)) {
  11914. c[y] = r[y]
  11915. break
  11916. }
  11917. }
  11918. return c
  11919. }
  11920. function s(f, h) {
  11921. return f.hasOwnProperty(h)
  11922. }
  11923. function l(f, h) {
  11924. return f[h] != null && f[h] !== 'auto'
  11925. }
  11926. function u(f, h, c) {
  11927. bs(f, function (v) {
  11928. h[v] = c[v]
  11929. })
  11930. }
  11931. }
  11932. function _a(r) {
  11933. return lA({}, r)
  11934. }
  11935. function lA(r, t) {
  11936. return (
  11937. t &&
  11938. r &&
  11939. bs(oA, function (e) {
  11940. t.hasOwnProperty(e) && (r[e] = t[e])
  11941. }),
  11942. r
  11943. )
  11944. }
  11945. var uA = wt(),
  11946. vi = (function (r) {
  11947. B(t, r)
  11948. function t(e, n, i) {
  11949. var a = r.call(this, e, n, i) || this
  11950. return (a.uid = ca('ec_cpt_model')), a
  11951. }
  11952. return (
  11953. (t.prototype.init = function (e, n, i) {
  11954. this.mergeDefaultAndTheme(e, i)
  11955. }),
  11956. (t.prototype.mergeDefaultAndTheme = function (e, n) {
  11957. var i = ya(this),
  11958. a = i ? _a(e) : {},
  11959. o = n.getTheme()
  11960. nt(e, o.get(this.mainType)),
  11961. nt(e, this.getDefaultOption()),
  11962. i && hi(e, a, i)
  11963. }),
  11964. (t.prototype.mergeOption = function (e, n) {
  11965. nt(this.option, e, !0)
  11966. var i = ya(this)
  11967. i && hi(this.option, e, i)
  11968. }),
  11969. (t.prototype.optionUpdated = function (e, n) {}),
  11970. (t.prototype.getDefaultOption = function () {
  11971. var e = this.constructor
  11972. if (!Sb(e)) return e.defaultOption
  11973. var n = uA(this)
  11974. if (!n.defaultOption) {
  11975. for (var i = [], a = e; a; ) {
  11976. var o = a.prototype.defaultOption
  11977. o && i.push(o), (a = a.superClass)
  11978. }
  11979. for (var s = {}, l = i.length - 1; l >= 0; l--) s = nt(s, i[l], !0)
  11980. n.defaultOption = s
  11981. }
  11982. return n.defaultOption
  11983. }),
  11984. (t.prototype.getReferringComponents = function (e, n) {
  11985. var i = e + 'Index',
  11986. a = e + 'Id'
  11987. return ji(
  11988. this.ecModel,
  11989. e,
  11990. { index: this.get(i, !0), id: this.get(a, !0) },
  11991. n
  11992. )
  11993. }),
  11994. (t.prototype.getBoxLayoutParams = function () {
  11995. var e = this
  11996. return {
  11997. left: e.get('left'),
  11998. top: e.get('top'),
  11999. right: e.get('right'),
  12000. bottom: e.get('bottom'),
  12001. width: e.get('width'),
  12002. height: e.get('height')
  12003. }
  12004. }),
  12005. (t.prototype.getZLevelKey = function () {
  12006. return ''
  12007. }),
  12008. (t.prototype.setZLevel = function (e) {
  12009. this.option.zlevel = e
  12010. }),
  12011. (t.protoInitialize = (function () {
  12012. var e = t.prototype
  12013. ;(e.type = 'component'),
  12014. (e.id = ''),
  12015. (e.name = ''),
  12016. (e.mainType = ''),
  12017. (e.subType = ''),
  12018. (e.componentIndex = 0)
  12019. })()),
  12020. t
  12021. )
  12022. })(Nt)
  12023. sd(vi, Nt)
  12024. No(vi)
  12025. ZC(vi)
  12026. $C(vi, fA)
  12027. function fA(r) {
  12028. var t = []
  12029. return (
  12030. A(vi.getClassesByMainType(r), function (e) {
  12031. t = t.concat(e.dependencies || e.prototype.dependencies || [])
  12032. }),
  12033. (t = G(t, function (e) {
  12034. return Ue(e).main
  12035. })),
  12036. r !== 'dataset' && ot(t, 'dataset') <= 0 && t.unshift('dataset'),
  12037. t
  12038. )
  12039. }
  12040. var _t = vi,
  12041. vg = ''
  12042. typeof navigator != 'undefined' && (vg = navigator.platform || '')
  12043. var ci = 'rgba(0, 0, 0, 0.2)',
  12044. hA = {
  12045. darkMode: 'auto',
  12046. colorBy: 'series',
  12047. color: [
  12048. '#5470c6',
  12049. '#91cc75',
  12050. '#fac858',
  12051. '#ee6666',
  12052. '#73c0de',
  12053. '#3ba272',
  12054. '#fc8452',
  12055. '#9a60b4',
  12056. '#ea7ccc'
  12057. ],
  12058. gradientColor: ['#f6efa6', '#d88273', '#bf444c'],
  12059. aria: {
  12060. decal: {
  12061. decals: [
  12062. {
  12063. color: ci,
  12064. dashArrayX: [1, 0],
  12065. dashArrayY: [2, 5],
  12066. symbolSize: 1,
  12067. rotation: Math.PI / 6
  12068. },
  12069. {
  12070. color: ci,
  12071. symbol: 'circle',
  12072. dashArrayX: [
  12073. [8, 8],
  12074. [0, 8, 8, 0]
  12075. ],
  12076. dashArrayY: [6, 0],
  12077. symbolSize: 0.8
  12078. },
  12079. {
  12080. color: ci,
  12081. dashArrayX: [1, 0],
  12082. dashArrayY: [4, 3],
  12083. rotation: -Math.PI / 4
  12084. },
  12085. {
  12086. color: ci,
  12087. dashArrayX: [
  12088. [6, 6],
  12089. [0, 6, 6, 0]
  12090. ],
  12091. dashArrayY: [6, 0]
  12092. },
  12093. {
  12094. color: ci,
  12095. dashArrayX: [
  12096. [1, 0],
  12097. [1, 6]
  12098. ],
  12099. dashArrayY: [1, 0, 6, 0],
  12100. rotation: Math.PI / 4
  12101. },
  12102. {
  12103. color: ci,
  12104. symbol: 'triangle',
  12105. dashArrayX: [
  12106. [9, 9],
  12107. [0, 9, 9, 0]
  12108. ],
  12109. dashArrayY: [7, 2],
  12110. symbolSize: 0.75
  12111. }
  12112. ]
  12113. }
  12114. },
  12115. textStyle: {
  12116. fontFamily: vg.match(/^Win/) ? 'Microsoft YaHei' : 'sans-serif',
  12117. fontSize: 12,
  12118. fontStyle: 'normal',
  12119. fontWeight: 'normal'
  12120. },
  12121. blendMode: null,
  12122. stateAnimation: { duration: 300, easing: 'cubicOut' },
  12123. animation: 'auto',
  12124. animationDuration: 1e3,
  12125. animationDurationUpdate: 500,
  12126. animationEasing: 'cubicInOut',
  12127. animationEasingUpdate: 'cubicInOut',
  12128. animationThreshold: 2e3,
  12129. progressiveThreshold: 3e3,
  12130. progressive: 400,
  12131. hoverLayerThreshold: 3e3,
  12132. useUTC: !1
  12133. },
  12134. cg = q([
  12135. 'tooltip',
  12136. 'label',
  12137. 'itemName',
  12138. 'itemId',
  12139. 'itemGroupId',
  12140. 'seriesName'
  12141. ]),
  12142. ye = 'original',
  12143. Kt = 'arrayRows',
  12144. _e = 'objectRows',
  12145. qe = 'keyedColumns',
  12146. Pr = 'typedArray',
  12147. dg = 'unknown',
  12148. Ke = 'column',
  12149. di = 'row',
  12150. Ft = { Must: 1, Might: 2, Not: 3 },
  12151. pg = wt()
  12152. function vA(r) {
  12153. pg(r).datasetMap = q()
  12154. }
  12155. function cA(r, t, e) {
  12156. var n = {},
  12157. i = Cf(t)
  12158. if (!i || !r) return n
  12159. var a = [],
  12160. o = [],
  12161. s = t.ecModel,
  12162. l = pg(s).datasetMap,
  12163. u = i.uid + '_' + e.seriesLayoutBy,
  12164. f,
  12165. h
  12166. ;(r = r.slice()),
  12167. A(r, function (p, g) {
  12168. var m = Y(p) ? p : (r[g] = { name: p })
  12169. m.type === 'ordinal' && f == null && ((f = g), (h = d(m))),
  12170. (n[m.name] = [])
  12171. })
  12172. var c = l.get(u) || l.set(u, { categoryWayDim: h, valueWayDim: 0 })
  12173. A(r, function (p, g) {
  12174. var m = p.name,
  12175. y = d(p)
  12176. if (f == null) {
  12177. var _ = c.valueWayDim
  12178. v(n[m], _, y), v(o, _, y), (c.valueWayDim += y)
  12179. } else if (f === g) v(n[m], 0, y), v(a, 0, y)
  12180. else {
  12181. var _ = c.categoryWayDim
  12182. v(n[m], _, y), v(o, _, y), (c.categoryWayDim += y)
  12183. }
  12184. })
  12185. function v(p, g, m) {
  12186. for (var y = 0; y < m; y++) p.push(g + y)
  12187. }
  12188. function d(p) {
  12189. var g = p.dimsDef
  12190. return g ? g.length : 1
  12191. }
  12192. return a.length && (n.itemName = a), o.length && (n.seriesName = o), n
  12193. }
  12194. function dA(r, t, e) {
  12195. var n = {},
  12196. i = Cf(r)
  12197. if (!i) return n
  12198. var a = t.sourceFormat,
  12199. o = t.dimensionsDefine,
  12200. s
  12201. ;(a === _e || a === qe) &&
  12202. A(o, function (f, h) {
  12203. ;(Y(f) ? f.name : f) === 'name' && (s = h)
  12204. })
  12205. var l = (function () {
  12206. for (var f = {}, h = {}, c = [], v = 0, d = Math.min(5, e); v < d; v++) {
  12207. var p = mg(t.data, a, t.seriesLayoutBy, o, t.startIndex, v)
  12208. c.push(p)
  12209. var g = p === Ft.Not
  12210. if (
  12211. (g && f.v == null && v !== s && (f.v = v),
  12212. (f.n == null || f.n === f.v || (!g && c[f.n] === Ft.Not)) && (f.n = v),
  12213. m(f) && c[f.n] !== Ft.Not)
  12214. )
  12215. return f
  12216. g ||
  12217. (p === Ft.Might && h.v == null && v !== s && (h.v = v),
  12218. (h.n == null || h.n === h.v) && (h.n = v))
  12219. }
  12220. function m(y) {
  12221. return y.v != null && y.n != null
  12222. }
  12223. return m(f) ? f : m(h) ? h : null
  12224. })()
  12225. if (l) {
  12226. n.value = [l.v]
  12227. var u = s != null ? s : l.n
  12228. ;(n.itemName = [u]), (n.seriesName = [u])
  12229. }
  12230. return n
  12231. }
  12232. function Cf(r) {
  12233. var t = r.get('data', !0)
  12234. if (!t)
  12235. return ji(
  12236. r.ecModel,
  12237. 'dataset',
  12238. { index: r.get('datasetIndex', !0), id: r.get('datasetId', !0) },
  12239. Xt
  12240. ).models[0]
  12241. }
  12242. function pA(r) {
  12243. return !r.get('transform', !0) && !r.get('fromTransformResult', !0)
  12244. ? []
  12245. : ji(
  12246. r.ecModel,
  12247. 'dataset',
  12248. {
  12249. index: r.get('fromDatasetIndex', !0),
  12250. id: r.get('fromDatasetId', !0)
  12251. },
  12252. Xt
  12253. ).models
  12254. }
  12255. function gg(r, t) {
  12256. return mg(
  12257. r.data,
  12258. r.sourceFormat,
  12259. r.seriesLayoutBy,
  12260. r.dimensionsDefine,
  12261. r.startIndex,
  12262. t
  12263. )
  12264. }
  12265. function mg(r, t, e, n, i, a) {
  12266. var o,
  12267. s = 5
  12268. if (ie(r)) return Ft.Not
  12269. var l, u
  12270. if (n) {
  12271. var f = n[a]
  12272. Y(f) ? ((l = f.name), (u = f.type)) : W(f) && (l = f)
  12273. }
  12274. if (u != null) return u === 'ordinal' ? Ft.Must : Ft.Not
  12275. if (t === Kt) {
  12276. var h = r
  12277. if (e === di) {
  12278. for (var c = h[a], v = 0; v < (c || []).length && v < s; v++)
  12279. if ((o = S(c[i + v])) != null) return o
  12280. } else
  12281. for (var v = 0; v < h.length && v < s; v++) {
  12282. var d = h[i + v]
  12283. if (d && (o = S(d[a])) != null) return o
  12284. }
  12285. } else if (t === _e) {
  12286. var p = r
  12287. if (!l) return Ft.Not
  12288. for (var v = 0; v < p.length && v < s; v++) {
  12289. var g = p[v]
  12290. if (g && (o = S(g[l])) != null) return o
  12291. }
  12292. } else if (t === qe) {
  12293. var m = r
  12294. if (!l) return Ft.Not
  12295. var c = m[l]
  12296. if (!c || ie(c)) return Ft.Not
  12297. for (var v = 0; v < c.length && v < s; v++)
  12298. if ((o = S(c[v])) != null) return o
  12299. } else if (t === ye)
  12300. for (var y = r, v = 0; v < y.length && v < s; v++) {
  12301. var g = y[v],
  12302. _ = qi(g)
  12303. if (!z(_)) return Ft.Not
  12304. if ((o = S(_[a])) != null) return o
  12305. }
  12306. function S(w) {
  12307. var x = W(w)
  12308. if (w != null && isFinite(w) && w !== '') return x ? Ft.Might : Ft.Not
  12309. if (x && w !== '-') return Ft.Must
  12310. }
  12311. return Ft.Not
  12312. }
  12313. var Af = q()
  12314. function gA(r, t) {
  12315. Ve(Af.get(r) == null && t), Af.set(r, t)
  12316. }
  12317. function mA(r, t, e) {
  12318. var n = Af.get(t)
  12319. if (!n) return e
  12320. var i = n(r)
  12321. return i ? e.concat(i) : e
  12322. }
  12323. var yg = wt()
  12324. wt()
  12325. var Mf = (function () {
  12326. function r() {}
  12327. return (
  12328. (r.prototype.getColorFromPalette = function (t, e, n) {
  12329. var i = Mt(this.get('color', !0)),
  12330. a = this.get('colorLayer', !0)
  12331. return _A(this, yg, i, a, t, e, n)
  12332. }),
  12333. (r.prototype.clearColorPalette = function () {
  12334. SA(this, yg)
  12335. }),
  12336. r
  12337. )
  12338. })()
  12339. function yA(r, t) {
  12340. for (var e = r.length, n = 0; n < e; n++) if (r[n].length > t) return r[n]
  12341. return r[e - 1]
  12342. }
  12343. function _A(r, t, e, n, i, a, o) {
  12344. a = a || r
  12345. var s = t(a),
  12346. l = s.paletteIdx || 0,
  12347. u = (s.paletteNameMap = s.paletteNameMap || {})
  12348. if (u.hasOwnProperty(i)) return u[i]
  12349. var f = o == null || !n ? e : yA(n, o)
  12350. if (((f = f || e), !(!f || !f.length))) {
  12351. var h = f[l]
  12352. return i && (u[i] = h), (s.paletteIdx = (l + 1) % f.length), h
  12353. }
  12354. }
  12355. function SA(r, t) {
  12356. ;(t(r).paletteIdx = 0), (t(r).paletteNameMap = {})
  12357. }
  12358. var Cs,
  12359. Sa,
  12360. _g,
  12361. Sg = '\0_ec_inner',
  12362. xA = 1,
  12363. xg = (function (r) {
  12364. B(t, r)
  12365. function t() {
  12366. return (r !== null && r.apply(this, arguments)) || this
  12367. }
  12368. return (
  12369. (t.prototype.init = function (e, n, i, a, o, s) {
  12370. ;(a = a || {}),
  12371. (this.option = null),
  12372. (this._theme = new Nt(a)),
  12373. (this._locale = new Nt(o)),
  12374. (this._optionManager = s)
  12375. }),
  12376. (t.prototype.setOption = function (e, n, i) {
  12377. var a = Tg(n)
  12378. this._optionManager.setOption(e, i, a), this._resetOption(null, a)
  12379. }),
  12380. (t.prototype.resetOption = function (e, n) {
  12381. return this._resetOption(e, Tg(n))
  12382. }),
  12383. (t.prototype._resetOption = function (e, n) {
  12384. var i = !1,
  12385. a = this._optionManager
  12386. if (!e || e === 'recreate') {
  12387. var o = a.mountOption(e === 'recreate')
  12388. !this.option || e === 'recreate'
  12389. ? _g(this, o)
  12390. : (this.restoreData(), this._mergeOption(o, n)),
  12391. (i = !0)
  12392. }
  12393. if (
  12394. ((e === 'timeline' || e === 'media') && this.restoreData(),
  12395. !e || e === 'recreate' || e === 'timeline')
  12396. ) {
  12397. var s = a.getTimelineOption(this)
  12398. s && ((i = !0), this._mergeOption(s, n))
  12399. }
  12400. if (!e || e === 'recreate' || e === 'media') {
  12401. var l = a.getMediaOption(this)
  12402. l.length &&
  12403. A(
  12404. l,
  12405. function (u) {
  12406. ;(i = !0), this._mergeOption(u, n)
  12407. },
  12408. this
  12409. )
  12410. }
  12411. return i
  12412. }),
  12413. (t.prototype.mergeOption = function (e) {
  12414. this._mergeOption(e, null)
  12415. }),
  12416. (t.prototype._mergeOption = function (e, n) {
  12417. var i = this.option,
  12418. a = this._componentsMap,
  12419. o = this._componentsCount,
  12420. s = [],
  12421. l = q(),
  12422. u = n && n.replaceMergeMainTypeMap
  12423. vA(this),
  12424. A(e, function (h, c) {
  12425. h != null &&
  12426. (_t.hasClass(c)
  12427. ? c && (s.push(c), l.set(c, !0))
  12428. : (i[c] = i[c] == null ? tt(h) : nt(i[c], h, !0)))
  12429. }),
  12430. u &&
  12431. u.each(function (h, c) {
  12432. _t.hasClass(c) && !l.get(c) && (s.push(c), l.set(c, !0))
  12433. }),
  12434. _t.topologicalTravel(s, _t.getAllClassMainTypes(), f, this)
  12435. function f(h) {
  12436. var c = mA(this, h, Mt(e[h])),
  12437. v = a.get(h),
  12438. d = v
  12439. ? u && u.get(h)
  12440. ? 'replaceMerge'
  12441. : 'normalMerge'
  12442. : 'replaceAll',
  12443. p = ib(v, c, d)
  12444. vb(p, h, _t), (i[h] = null), a.set(h, null), o.set(h, 0)
  12445. var g = [],
  12446. m = [],
  12447. y = 0,
  12448. _
  12449. A(
  12450. p,
  12451. function (S, w) {
  12452. var x = S.existing,
  12453. b = S.newOption
  12454. if (!b) x && (x.mergeOption({}, this), x.optionUpdated({}, !1))
  12455. else {
  12456. var T = h === 'series',
  12457. C = _t.getClass(h, S.keyInfo.subType, !T)
  12458. if (!C) return
  12459. if (h === 'tooltip') {
  12460. if (_) return
  12461. _ = !0
  12462. }
  12463. if (x && x.constructor === C)
  12464. (x.name = S.keyInfo.name),
  12465. x.mergeOption(b, this),
  12466. x.optionUpdated(b, !1)
  12467. else {
  12468. var M = N({ componentIndex: w }, S.keyInfo)
  12469. ;(x = new C(b, this, this, M)),
  12470. N(x, M),
  12471. S.brandNew && (x.__requireNewView = !0),
  12472. x.init(b, this, this),
  12473. x.optionUpdated(null, !0)
  12474. }
  12475. }
  12476. x
  12477. ? (g.push(x.option), m.push(x), y++)
  12478. : (g.push(void 0), m.push(void 0))
  12479. },
  12480. this
  12481. ),
  12482. (i[h] = g),
  12483. a.set(h, m),
  12484. o.set(h, y),
  12485. h === 'series' && Cs(this)
  12486. }
  12487. this._seriesIndices || Cs(this)
  12488. }),
  12489. (t.prototype.getOption = function () {
  12490. var e = tt(this.option)
  12491. return (
  12492. A(e, function (n, i) {
  12493. if (_t.hasClass(i)) {
  12494. for (var a = Mt(n), o = a.length, s = !1, l = o - 1; l >= 0; l--)
  12495. a[l] && !Qi(a[l]) ? (s = !0) : ((a[l] = null), !s && o--)
  12496. ;(a.length = o), (e[i] = a)
  12497. }
  12498. }),
  12499. delete e[Sg],
  12500. e
  12501. )
  12502. }),
  12503. (t.prototype.getTheme = function () {
  12504. return this._theme
  12505. }),
  12506. (t.prototype.getLocaleModel = function () {
  12507. return this._locale
  12508. }),
  12509. (t.prototype.setUpdatePayload = function (e) {
  12510. this._payload = e
  12511. }),
  12512. (t.prototype.getUpdatePayload = function () {
  12513. return this._payload
  12514. }),
  12515. (t.prototype.getComponent = function (e, n) {
  12516. var i = this._componentsMap.get(e)
  12517. if (i) {
  12518. var a = i[n || 0]
  12519. if (a) return a
  12520. if (n == null) {
  12521. for (var o = 0; o < i.length; o++) if (i[o]) return i[o]
  12522. }
  12523. }
  12524. }),
  12525. (t.prototype.queryComponents = function (e) {
  12526. var n = e.mainType
  12527. if (!n) return []
  12528. var i = e.index,
  12529. a = e.id,
  12530. o = e.name,
  12531. s = this._componentsMap.get(n)
  12532. if (!s || !s.length) return []
  12533. var l
  12534. return (
  12535. i != null
  12536. ? ((l = []),
  12537. A(Mt(i), function (u) {
  12538. s[u] && l.push(s[u])
  12539. }))
  12540. : a != null
  12541. ? (l = wg('id', a, s))
  12542. : o != null
  12543. ? (l = wg('name', o, s))
  12544. : (l = Lt(s, function (u) {
  12545. return !!u
  12546. })),
  12547. bg(l, e)
  12548. )
  12549. }),
  12550. (t.prototype.findComponents = function (e) {
  12551. var n = e.query,
  12552. i = e.mainType,
  12553. a = s(n),
  12554. o = a
  12555. ? this.queryComponents(a)
  12556. : Lt(this._componentsMap.get(i), function (u) {
  12557. return !!u
  12558. })
  12559. return l(bg(o, e))
  12560. function s(u) {
  12561. var f = i + 'Index',
  12562. h = i + 'Id',
  12563. c = i + 'Name'
  12564. return u && (u[f] != null || u[h] != null || u[c] != null)
  12565. ? { mainType: i, index: u[f], id: u[h], name: u[c] }
  12566. : null
  12567. }
  12568. function l(u) {
  12569. return e.filter ? Lt(u, e.filter) : u
  12570. }
  12571. }),
  12572. (t.prototype.eachComponent = function (e, n, i) {
  12573. var a = this._componentsMap
  12574. if (Q(e)) {
  12575. var o = n,
  12576. s = e
  12577. a.each(function (h, c) {
  12578. for (var v = 0; h && v < h.length; v++) {
  12579. var d = h[v]
  12580. d && s.call(o, c, d, d.componentIndex)
  12581. }
  12582. })
  12583. } else
  12584. for (
  12585. var l = W(e) ? a.get(e) : Y(e) ? this.findComponents(e) : null,
  12586. u = 0;
  12587. l && u < l.length;
  12588. u++
  12589. ) {
  12590. var f = l[u]
  12591. f && n.call(i, f, f.componentIndex)
  12592. }
  12593. }),
  12594. (t.prototype.getSeriesByName = function (e) {
  12595. var n = We(e, null)
  12596. return Lt(this._componentsMap.get('series'), function (i) {
  12597. return !!i && n != null && i.name === n
  12598. })
  12599. }),
  12600. (t.prototype.getSeriesByIndex = function (e) {
  12601. return this._componentsMap.get('series')[e]
  12602. }),
  12603. (t.prototype.getSeriesByType = function (e) {
  12604. return Lt(this._componentsMap.get('series'), function (n) {
  12605. return !!n && n.subType === e
  12606. })
  12607. }),
  12608. (t.prototype.getSeries = function () {
  12609. return Lt(this._componentsMap.get('series'), function (e) {
  12610. return !!e
  12611. })
  12612. }),
  12613. (t.prototype.getSeriesCount = function () {
  12614. return this._componentsCount.get('series')
  12615. }),
  12616. (t.prototype.eachSeries = function (e, n) {
  12617. Sa(this),
  12618. A(
  12619. this._seriesIndices,
  12620. function (i) {
  12621. var a = this._componentsMap.get('series')[i]
  12622. e.call(n, a, i)
  12623. },
  12624. this
  12625. )
  12626. }),
  12627. (t.prototype.eachRawSeries = function (e, n) {
  12628. A(this._componentsMap.get('series'), function (i) {
  12629. i && e.call(n, i, i.componentIndex)
  12630. })
  12631. }),
  12632. (t.prototype.eachSeriesByType = function (e, n, i) {
  12633. Sa(this),
  12634. A(
  12635. this._seriesIndices,
  12636. function (a) {
  12637. var o = this._componentsMap.get('series')[a]
  12638. o.subType === e && n.call(i, o, a)
  12639. },
  12640. this
  12641. )
  12642. }),
  12643. (t.prototype.eachRawSeriesByType = function (e, n, i) {
  12644. return A(this.getSeriesByType(e), n, i)
  12645. }),
  12646. (t.prototype.isSeriesFiltered = function (e) {
  12647. return Sa(this), this._seriesIndicesMap.get(e.componentIndex) == null
  12648. }),
  12649. (t.prototype.getCurrentSeriesIndices = function () {
  12650. return (this._seriesIndices || []).slice()
  12651. }),
  12652. (t.prototype.filterSeries = function (e, n) {
  12653. Sa(this)
  12654. var i = []
  12655. A(
  12656. this._seriesIndices,
  12657. function (a) {
  12658. var o = this._componentsMap.get('series')[a]
  12659. e.call(n, o, a) && i.push(a)
  12660. },
  12661. this
  12662. ),
  12663. (this._seriesIndices = i),
  12664. (this._seriesIndicesMap = q(i))
  12665. }),
  12666. (t.prototype.restoreData = function (e) {
  12667. Cs(this)
  12668. var n = this._componentsMap,
  12669. i = []
  12670. n.each(function (a, o) {
  12671. _t.hasClass(o) && i.push(o)
  12672. }),
  12673. _t.topologicalTravel(i, _t.getAllClassMainTypes(), function (a) {
  12674. A(n.get(a), function (o) {
  12675. o && (a !== 'series' || !wA(o, e)) && o.restoreData()
  12676. })
  12677. })
  12678. }),
  12679. (t.internalField = (function () {
  12680. ;(Cs = function (e) {
  12681. var n = (e._seriesIndices = [])
  12682. A(e._componentsMap.get('series'), function (i) {
  12683. i && n.push(i.componentIndex)
  12684. }),
  12685. (e._seriesIndicesMap = q(n))
  12686. }),
  12687. (Sa = function (e) {}),
  12688. (_g = function (e, n) {
  12689. ;(e.option = {}),
  12690. (e.option[Sg] = xA),
  12691. (e._componentsMap = q({ series: [] })),
  12692. (e._componentsCount = q())
  12693. var i = n.aria
  12694. Y(i) && i.enabled == null && (i.enabled = !0),
  12695. bA(n, e._theme.option),
  12696. nt(n, hA, !1),
  12697. e._mergeOption(n, null)
  12698. })
  12699. })()),
  12700. t
  12701. )
  12702. })(Nt)
  12703. function wA(r, t) {
  12704. if (t) {
  12705. var e = t.seriesIndex,
  12706. n = t.seriesId,
  12707. i = t.seriesName
  12708. return (
  12709. (e != null && r.componentIndex !== e) ||
  12710. (n != null && r.id !== n) ||
  12711. (i != null && r.name !== i)
  12712. )
  12713. }
  12714. }
  12715. function bA(r, t) {
  12716. var e = r.color && !r.colorLayer
  12717. A(t, function (n, i) {
  12718. ;(i === 'colorLayer' && e) ||
  12719. _t.hasClass(i) ||
  12720. (typeof n == 'object'
  12721. ? (r[i] = r[i] ? nt(r[i], n, !1) : tt(n))
  12722. : r[i] == null && (r[i] = n))
  12723. })
  12724. }
  12725. function wg(r, t, e) {
  12726. if (z(t)) {
  12727. var n = q()
  12728. return (
  12729. A(t, function (a) {
  12730. if (a != null) {
  12731. var o = We(a, null)
  12732. o != null && n.set(a, !0)
  12733. }
  12734. }),
  12735. Lt(e, function (a) {
  12736. return a && n.get(a[r])
  12737. })
  12738. )
  12739. } else {
  12740. var i = We(t, null)
  12741. return Lt(e, function (a) {
  12742. return a && i != null && a[r] === i
  12743. })
  12744. }
  12745. }
  12746. function bg(r, t) {
  12747. return t.hasOwnProperty('subType')
  12748. ? Lt(r, function (e) {
  12749. return e && e.subType === t.subType
  12750. })
  12751. : r
  12752. }
  12753. function Tg(r) {
  12754. var t = q()
  12755. return (
  12756. r &&
  12757. A(Mt(r.replaceMerge), function (e) {
  12758. t.set(e, !0)
  12759. }),
  12760. { replaceMergeMainTypeMap: t }
  12761. )
  12762. }
  12763. ze(xg, Mf)
  12764. var Cg = xg,
  12765. TA = [
  12766. 'getDom',
  12767. 'getZr',
  12768. 'getWidth',
  12769. 'getHeight',
  12770. 'getDevicePixelRatio',
  12771. 'dispatchAction',
  12772. 'isSSR',
  12773. 'isDisposed',
  12774. 'on',
  12775. 'off',
  12776. 'getDataURL',
  12777. 'getConnectedDataURL',
  12778. 'getOption',
  12779. 'getId',
  12780. 'updateLabelLayout'
  12781. ],
  12782. CA = (function () {
  12783. function r(t) {
  12784. A(
  12785. TA,
  12786. function (e) {
  12787. this[e] = X(t[e], t)
  12788. },
  12789. this
  12790. )
  12791. }
  12792. return r
  12793. })(),
  12794. Ag = CA,
  12795. Df = {},
  12796. AA = (function () {
  12797. function r() {
  12798. this._coordinateSystems = []
  12799. }
  12800. return (
  12801. (r.prototype.create = function (t, e) {
  12802. var n = []
  12803. A(Df, function (i, a) {
  12804. var o = i.create(t, e)
  12805. n = n.concat(o || [])
  12806. }),
  12807. (this._coordinateSystems = n)
  12808. }),
  12809. (r.prototype.update = function (t, e) {
  12810. A(this._coordinateSystems, function (n) {
  12811. n.update && n.update(t, e)
  12812. })
  12813. }),
  12814. (r.prototype.getCoordinateSystems = function () {
  12815. return this._coordinateSystems.slice()
  12816. }),
  12817. (r.register = function (t, e) {
  12818. Df[t] = e
  12819. }),
  12820. (r.get = function (t) {
  12821. return Df[t]
  12822. }),
  12823. r
  12824. )
  12825. })(),
  12826. If = AA,
  12827. MA = /^(min|max)?(.+)$/,
  12828. DA = (function () {
  12829. function r(t) {
  12830. ;(this._timelineOptions = []),
  12831. (this._mediaList = []),
  12832. (this._currentMediaIndices = []),
  12833. (this._api = t)
  12834. }
  12835. return (
  12836. (r.prototype.setOption = function (t, e, n) {
  12837. t &&
  12838. (A(Mt(t.series), function (o) {
  12839. o && o.data && ie(o.data) && oo(o.data)
  12840. }),
  12841. A(Mt(t.dataset), function (o) {
  12842. o && o.source && ie(o.source) && oo(o.source)
  12843. })),
  12844. (t = tt(t))
  12845. var i = this._optionBackup,
  12846. a = IA(t, e, !i)
  12847. ;(this._newBaseOption = a.baseOption),
  12848. i
  12849. ? (a.timelineOptions.length &&
  12850. (i.timelineOptions = a.timelineOptions),
  12851. a.mediaList.length && (i.mediaList = a.mediaList),
  12852. a.mediaDefault && (i.mediaDefault = a.mediaDefault))
  12853. : (this._optionBackup = a)
  12854. }),
  12855. (r.prototype.mountOption = function (t) {
  12856. var e = this._optionBackup
  12857. return (
  12858. (this._timelineOptions = e.timelineOptions),
  12859. (this._mediaList = e.mediaList),
  12860. (this._mediaDefault = e.mediaDefault),
  12861. (this._currentMediaIndices = []),
  12862. tt(t ? e.baseOption : this._newBaseOption)
  12863. )
  12864. }),
  12865. (r.prototype.getTimelineOption = function (t) {
  12866. var e,
  12867. n = this._timelineOptions
  12868. if (n.length) {
  12869. var i = t.getComponent('timeline')
  12870. i && (e = tt(n[i.getCurrentIndex()]))
  12871. }
  12872. return e
  12873. }),
  12874. (r.prototype.getMediaOption = function (t) {
  12875. var e = this._api.getWidth(),
  12876. n = this._api.getHeight(),
  12877. i = this._mediaList,
  12878. a = this._mediaDefault,
  12879. o = [],
  12880. s = []
  12881. if (!i.length && !a) return s
  12882. for (var l = 0, u = i.length; l < u; l++)
  12883. LA(i[l].query, e, n) && o.push(l)
  12884. return (
  12885. !o.length && a && (o = [-1]),
  12886. o.length &&
  12887. !RA(o, this._currentMediaIndices) &&
  12888. (s = G(o, function (f) {
  12889. return tt(f === -1 ? a.option : i[f].option)
  12890. })),
  12891. (this._currentMediaIndices = o),
  12892. s
  12893. )
  12894. }),
  12895. r
  12896. )
  12897. })()
  12898. function IA(r, t, e) {
  12899. var n = [],
  12900. i,
  12901. a,
  12902. o = r.baseOption,
  12903. s = r.timeline,
  12904. l = r.options,
  12905. u = r.media,
  12906. f = !!r.media,
  12907. h = !!(l || s || (o && o.timeline))
  12908. o
  12909. ? ((a = o), a.timeline || (a.timeline = s))
  12910. : ((h || f) && (r.options = r.media = null), (a = r)),
  12911. f &&
  12912. z(u) &&
  12913. A(u, function (v) {
  12914. v && v.option && (v.query ? n.push(v) : i || (i = v))
  12915. }),
  12916. c(a),
  12917. A(l, function (v) {
  12918. return c(v)
  12919. }),
  12920. A(n, function (v) {
  12921. return c(v.option)
  12922. })
  12923. function c(v) {
  12924. A(t, function (d) {
  12925. d(v, e)
  12926. })
  12927. }
  12928. return {
  12929. baseOption: a,
  12930. timelineOptions: l || [],
  12931. mediaDefault: i,
  12932. mediaList: n
  12933. }
  12934. }
  12935. function LA(r, t, e) {
  12936. var n = { width: t, height: e, aspectratio: t / e },
  12937. i = !0
  12938. return (
  12939. A(r, function (a, o) {
  12940. var s = o.match(MA)
  12941. if (!(!s || !s[1] || !s[2])) {
  12942. var l = s[1],
  12943. u = s[2].toLowerCase()
  12944. PA(n[u], a, l) || (i = !1)
  12945. }
  12946. }),
  12947. i
  12948. )
  12949. }
  12950. function PA(r, t, e) {
  12951. return e === 'min' ? r >= t : e === 'max' ? r <= t : r === t
  12952. }
  12953. function RA(r, t) {
  12954. return r.join(',') === t.join(',')
  12955. }
  12956. var EA = DA,
  12957. Le = A,
  12958. xa = Y,
  12959. Mg = [
  12960. 'areaStyle',
  12961. 'lineStyle',
  12962. 'nodeStyle',
  12963. 'linkStyle',
  12964. 'chordStyle',
  12965. 'label',
  12966. 'labelLine'
  12967. ]
  12968. function Lf(r) {
  12969. var t = r && r.itemStyle
  12970. if (!!t)
  12971. for (var e = 0, n = Mg.length; e < n; e++) {
  12972. var i = Mg[e],
  12973. a = t.normal,
  12974. o = t.emphasis
  12975. a &&
  12976. a[i] &&
  12977. ((r[i] = r[i] || {}),
  12978. r[i].normal ? nt(r[i].normal, a[i]) : (r[i].normal = a[i]),
  12979. (a[i] = null)),
  12980. o &&
  12981. o[i] &&
  12982. ((r[i] = r[i] || {}),
  12983. r[i].emphasis ? nt(r[i].emphasis, o[i]) : (r[i].emphasis = o[i]),
  12984. (o[i] = null))
  12985. }
  12986. }
  12987. function Ut(r, t, e) {
  12988. if (r && r[t] && (r[t].normal || r[t].emphasis)) {
  12989. var n = r[t].normal,
  12990. i = r[t].emphasis
  12991. n && (e ? ((r[t].normal = r[t].emphasis = null), j(r[t], n)) : (r[t] = n)),
  12992. i &&
  12993. ((r.emphasis = r.emphasis || {}),
  12994. (r.emphasis[t] = i),
  12995. i.focus && (r.emphasis.focus = i.focus),
  12996. i.blurScope && (r.emphasis.blurScope = i.blurScope))
  12997. }
  12998. }
  12999. function wa(r) {
  13000. Ut(r, 'itemStyle'),
  13001. Ut(r, 'lineStyle'),
  13002. Ut(r, 'areaStyle'),
  13003. Ut(r, 'label'),
  13004. Ut(r, 'labelLine'),
  13005. Ut(r, 'upperLabel'),
  13006. Ut(r, 'edgeLabel')
  13007. }
  13008. function Dt(r, t) {
  13009. var e = xa(r) && r[t],
  13010. n = xa(e) && e.textStyle
  13011. if (n)
  13012. for (var i = 0, a = rd.length; i < a; i++) {
  13013. var o = rd[i]
  13014. n.hasOwnProperty(o) && (e[o] = n[o])
  13015. }
  13016. }
  13017. function Se(r) {
  13018. r && (wa(r), Dt(r, 'label'), r.emphasis && Dt(r.emphasis, 'label'))
  13019. }
  13020. function OA(r) {
  13021. if (!!xa(r)) {
  13022. Lf(r),
  13023. wa(r),
  13024. Dt(r, 'label'),
  13025. Dt(r, 'upperLabel'),
  13026. Dt(r, 'edgeLabel'),
  13027. r.emphasis &&
  13028. (Dt(r.emphasis, 'label'),
  13029. Dt(r.emphasis, 'upperLabel'),
  13030. Dt(r.emphasis, 'edgeLabel'))
  13031. var t = r.markPoint
  13032. t && (Lf(t), Se(t))
  13033. var e = r.markLine
  13034. e && (Lf(e), Se(e))
  13035. var n = r.markArea
  13036. n && Se(n)
  13037. var i = r.data
  13038. if (r.type === 'graph') {
  13039. i = i || r.nodes
  13040. var a = r.links || r.edges
  13041. if (a && !ie(a)) for (var o = 0; o < a.length; o++) Se(a[o])
  13042. A(r.categories, function (u) {
  13043. wa(u)
  13044. })
  13045. }
  13046. if (i && !ie(i)) for (var o = 0; o < i.length; o++) Se(i[o])
  13047. if (((t = r.markPoint), t && t.data))
  13048. for (var s = t.data, o = 0; o < s.length; o++) Se(s[o])
  13049. if (((e = r.markLine), e && e.data))
  13050. for (var l = e.data, o = 0; o < l.length; o++)
  13051. z(l[o]) ? (Se(l[o][0]), Se(l[o][1])) : Se(l[o])
  13052. r.type === 'gauge'
  13053. ? (Dt(r, 'axisLabel'), Dt(r, 'title'), Dt(r, 'detail'))
  13054. : r.type === 'treemap'
  13055. ? (Ut(r.breadcrumb, 'itemStyle'),
  13056. A(r.levels, function (u) {
  13057. wa(u)
  13058. }))
  13059. : r.type === 'tree' && wa(r.leaves)
  13060. }
  13061. }
  13062. function dr(r) {
  13063. return z(r) ? r : r ? [r] : []
  13064. }
  13065. function Dg(r) {
  13066. return (z(r) ? r[0] : r) || {}
  13067. }
  13068. function kA(r, t) {
  13069. Le(dr(r.series), function (n) {
  13070. xa(n) && OA(n)
  13071. })
  13072. var e = [
  13073. 'xAxis',
  13074. 'yAxis',
  13075. 'radiusAxis',
  13076. 'angleAxis',
  13077. 'singleAxis',
  13078. 'parallelAxis',
  13079. 'radar'
  13080. ]
  13081. t && e.push('valueAxis', 'categoryAxis', 'logAxis', 'timeAxis'),
  13082. Le(e, function (n) {
  13083. Le(dr(r[n]), function (i) {
  13084. i && (Dt(i, 'axisLabel'), Dt(i.axisPointer, 'label'))
  13085. })
  13086. }),
  13087. Le(dr(r.parallel), function (n) {
  13088. var i = n && n.parallelAxisDefault
  13089. Dt(i, 'axisLabel'), Dt(i && i.axisPointer, 'label')
  13090. }),
  13091. Le(dr(r.calendar), function (n) {
  13092. Ut(n, 'itemStyle'),
  13093. Dt(n, 'dayLabel'),
  13094. Dt(n, 'monthLabel'),
  13095. Dt(n, 'yearLabel')
  13096. }),
  13097. Le(dr(r.radar), function (n) {
  13098. Dt(n, 'name'),
  13099. n.name && n.axisName == null && ((n.axisName = n.name), delete n.name),
  13100. n.nameGap != null &&
  13101. n.axisNameGap == null &&
  13102. ((n.axisNameGap = n.nameGap), delete n.nameGap)
  13103. }),
  13104. Le(dr(r.geo), function (n) {
  13105. xa(n) &&
  13106. (Se(n),
  13107. Le(dr(n.regions), function (i) {
  13108. Se(i)
  13109. }))
  13110. }),
  13111. Le(dr(r.timeline), function (n) {
  13112. Se(n), Ut(n, 'label'), Ut(n, 'itemStyle'), Ut(n, 'controlStyle', !0)
  13113. var i = n.data
  13114. z(i) &&
  13115. A(i, function (a) {
  13116. Y(a) && (Ut(a, 'label'), Ut(a, 'itemStyle'))
  13117. })
  13118. }),
  13119. Le(dr(r.toolbox), function (n) {
  13120. Ut(n, 'iconStyle'),
  13121. Le(n.feature, function (i) {
  13122. Ut(i, 'iconStyle')
  13123. })
  13124. }),
  13125. Dt(Dg(r.axisPointer), 'label'),
  13126. Dt(Dg(r.tooltip).axisPointer, 'label')
  13127. }
  13128. function BA(r, t) {
  13129. for (
  13130. var e = t.split(','), n = r, i = 0;
  13131. i < e.length && ((n = n && n[e[i]]), n != null);
  13132. i++
  13133. );
  13134. return n
  13135. }
  13136. function NA(r, t, e, n) {
  13137. for (var i = t.split(','), a = r, o, s = 0; s < i.length - 1; s++)
  13138. (o = i[s]), a[o] == null && (a[o] = {}), (a = a[o])
  13139. ;(n || a[i[s]] == null) && (a[i[s]] = e)
  13140. }
  13141. function Ig(r) {
  13142. r &&
  13143. A(FA, function (t) {
  13144. t[0] in r && !(t[1] in r) && (r[t[1]] = r[t[0]])
  13145. })
  13146. }
  13147. var FA = [
  13148. ['x', 'left'],
  13149. ['y', 'top'],
  13150. ['x2', 'right'],
  13151. ['y2', 'bottom']
  13152. ],
  13153. zA = [
  13154. 'grid',
  13155. 'geo',
  13156. 'parallel',
  13157. 'legend',
  13158. 'toolbox',
  13159. 'title',
  13160. 'visualMap',
  13161. 'dataZoom',
  13162. 'timeline'
  13163. ],
  13164. Pf = [
  13165. ['borderRadius', 'barBorderRadius'],
  13166. ['borderColor', 'barBorderColor'],
  13167. ['borderWidth', 'barBorderWidth']
  13168. ]
  13169. function ba(r) {
  13170. var t = r && r.itemStyle
  13171. if (t)
  13172. for (var e = 0; e < Pf.length; e++) {
  13173. var n = Pf[e][1],
  13174. i = Pf[e][0]
  13175. t[n] != null && (t[i] = t[n])
  13176. }
  13177. }
  13178. function Lg(r) {
  13179. !r ||
  13180. (r.alignTo === 'edge' &&
  13181. r.margin != null &&
  13182. r.edgeDistance == null &&
  13183. (r.edgeDistance = r.margin))
  13184. }
  13185. function Pg(r) {
  13186. !r || (r.downplay && !r.blur && (r.blur = r.downplay))
  13187. }
  13188. function VA(r) {
  13189. !r ||
  13190. (r.focusNodeAdjacency != null &&
  13191. ((r.emphasis = r.emphasis || {}),
  13192. r.emphasis.focus == null && (r.emphasis.focus = 'adjacency')))
  13193. }
  13194. function Rg(r, t) {
  13195. if (r)
  13196. for (var e = 0; e < r.length; e++) t(r[e]), r[e] && Rg(r[e].children, t)
  13197. }
  13198. function Eg(r, t) {
  13199. kA(r, t),
  13200. (r.series = Mt(r.series)),
  13201. A(r.series, function (e) {
  13202. if (!!Y(e)) {
  13203. var n = e.type
  13204. if (n === 'line') e.clipOverflow != null && (e.clip = e.clipOverflow)
  13205. else if (n === 'pie' || n === 'gauge') {
  13206. e.clockWise != null && (e.clockwise = e.clockWise), Lg(e.label)
  13207. var i = e.data
  13208. if (i && !ie(i)) for (var a = 0; a < i.length; a++) Lg(i[a])
  13209. e.hoverOffset != null &&
  13210. ((e.emphasis = e.emphasis || {}),
  13211. (e.emphasis.scaleSize = null) &&
  13212. (e.emphasis.scaleSize = e.hoverOffset))
  13213. } else if (n === 'gauge') {
  13214. var o = BA(e, 'pointer.color')
  13215. o != null && NA(e, 'itemStyle.color', o)
  13216. } else if (n === 'bar') {
  13217. ba(e), ba(e.backgroundStyle), ba(e.emphasis)
  13218. var i = e.data
  13219. if (i && !ie(i))
  13220. for (var a = 0; a < i.length; a++)
  13221. typeof i[a] == 'object' && (ba(i[a]), ba(i[a] && i[a].emphasis))
  13222. } else if (n === 'sunburst') {
  13223. var s = e.highlightPolicy
  13224. s &&
  13225. ((e.emphasis = e.emphasis || {}),
  13226. e.emphasis.focus || (e.emphasis.focus = s)),
  13227. Pg(e),
  13228. Rg(e.data, Pg)
  13229. } else
  13230. n === 'graph' || n === 'sankey'
  13231. ? VA(e)
  13232. : n === 'map' &&
  13233. (e.mapType && !e.map && (e.map = e.mapType),
  13234. e.mapLocation && j(e, e.mapLocation))
  13235. e.hoverAnimation != null &&
  13236. ((e.emphasis = e.emphasis || {}),
  13237. e.emphasis &&
  13238. e.emphasis.scale == null &&
  13239. (e.emphasis.scale = e.hoverAnimation)),
  13240. Ig(e)
  13241. }
  13242. }),
  13243. r.dataRange && (r.visualMap = r.dataRange),
  13244. A(zA, function (e) {
  13245. var n = r[e]
  13246. n &&
  13247. (z(n) || (n = [n]),
  13248. A(n, function (i) {
  13249. Ig(i)
  13250. }))
  13251. })
  13252. }
  13253. function GA(r) {
  13254. var t = q()
  13255. r.eachSeries(function (e) {
  13256. var n = e.get('stack')
  13257. if (n) {
  13258. var i = t.get(n) || t.set(n, []),
  13259. a = e.getData(),
  13260. o = {
  13261. stackResultDimension: a.getCalculationInfo('stackResultDimension'),
  13262. stackedOverDimension: a.getCalculationInfo('stackedOverDimension'),
  13263. stackedDimension: a.getCalculationInfo('stackedDimension'),
  13264. stackedByDimension: a.getCalculationInfo('stackedByDimension'),
  13265. isStackedByIndex: a.getCalculationInfo('isStackedByIndex'),
  13266. data: a,
  13267. seriesModel: e
  13268. }
  13269. if (!o.stackedDimension || !(o.isStackedByIndex || o.stackedByDimension))
  13270. return
  13271. i.length &&
  13272. a.setCalculationInfo('stackedOnSeries', i[i.length - 1].seriesModel),
  13273. i.push(o)
  13274. }
  13275. }),
  13276. t.each(HA)
  13277. }
  13278. function HA(r) {
  13279. A(r, function (t, e) {
  13280. var n = [],
  13281. i = [NaN, NaN],
  13282. a = [t.stackResultDimension, t.stackedOverDimension],
  13283. o = t.data,
  13284. s = t.isStackedByIndex,
  13285. l = t.seriesModel.get('stackStrategy') || 'samesign'
  13286. o.modify(a, function (u, f, h) {
  13287. var c = o.get(t.stackedDimension, h)
  13288. if (isNaN(c)) return i
  13289. var v, d
  13290. s ? (d = o.getRawIndex(h)) : (v = o.get(t.stackedByDimension, h))
  13291. for (var p = NaN, g = e - 1; g >= 0; g--) {
  13292. var m = r[g]
  13293. if ((s || (d = m.data.rawIndexOf(m.stackedByDimension, v)), d >= 0)) {
  13294. var y = m.data.getByRawIndex(m.stackResultDimension, d)
  13295. if (
  13296. l === 'all' ||
  13297. (l === 'positive' && y > 0) ||
  13298. (l === 'negative' && y < 0) ||
  13299. (l === 'samesign' && c >= 0 && y > 0) ||
  13300. (l === 'samesign' && c <= 0 && y < 0)
  13301. ) {
  13302. ;(c = jw(c, y)), (p = y)
  13303. break
  13304. }
  13305. }
  13306. }
  13307. return (n[0] = c), (n[1] = p), n
  13308. })
  13309. })
  13310. }
  13311. var As = (function () {
  13312. function r(t) {
  13313. ;(this.data = t.data || (t.sourceFormat === qe ? {} : [])),
  13314. (this.sourceFormat = t.sourceFormat || dg),
  13315. (this.seriesLayoutBy = t.seriesLayoutBy || Ke),
  13316. (this.startIndex = t.startIndex || 0),
  13317. (this.dimensionsDetectedCount = t.dimensionsDetectedCount),
  13318. (this.metaRawOption = t.metaRawOption)
  13319. var e = (this.dimensionsDefine = t.dimensionsDefine)
  13320. if (e)
  13321. for (var n = 0; n < e.length; n++) {
  13322. var i = e[n]
  13323. i.type == null && gg(this, n) === Ft.Must && (i.type = 'ordinal')
  13324. }
  13325. }
  13326. return r
  13327. })()
  13328. function Rf(r) {
  13329. return r instanceof As
  13330. }
  13331. function Ef(r, t, e) {
  13332. e = e || Og(r)
  13333. var n = t.seriesLayoutBy,
  13334. i = UA(r, e, n, t.sourceHeader, t.dimensions),
  13335. a = new As({
  13336. data: r,
  13337. sourceFormat: e,
  13338. seriesLayoutBy: n,
  13339. dimensionsDefine: i.dimensionsDefine,
  13340. startIndex: i.startIndex,
  13341. dimensionsDetectedCount: i.dimensionsDetectedCount,
  13342. metaRawOption: tt(t)
  13343. })
  13344. return a
  13345. }
  13346. function Of(r) {
  13347. return new As({ data: r, sourceFormat: ie(r) ? Pr : ye })
  13348. }
  13349. function WA(r) {
  13350. return new As({
  13351. data: r.data,
  13352. sourceFormat: r.sourceFormat,
  13353. seriesLayoutBy: r.seriesLayoutBy,
  13354. dimensionsDefine: tt(r.dimensionsDefine),
  13355. startIndex: r.startIndex,
  13356. dimensionsDetectedCount: r.dimensionsDetectedCount
  13357. })
  13358. }
  13359. function Og(r) {
  13360. var t = dg
  13361. if (ie(r)) t = Pr
  13362. else if (z(r)) {
  13363. r.length === 0 && (t = Kt)
  13364. for (var e = 0, n = r.length; e < n; e++) {
  13365. var i = r[e]
  13366. if (i != null) {
  13367. if (z(i)) {
  13368. t = Kt
  13369. break
  13370. } else if (Y(i)) {
  13371. t = _e
  13372. break
  13373. }
  13374. }
  13375. }
  13376. } else if (Y(r)) {
  13377. for (var a in r)
  13378. if (nr(r, a) && Zt(r[a])) {
  13379. t = qe
  13380. break
  13381. }
  13382. }
  13383. return t
  13384. }
  13385. function UA(r, t, e, n, i) {
  13386. var a, o
  13387. if (!r)
  13388. return {
  13389. dimensionsDefine: kg(i),
  13390. startIndex: o,
  13391. dimensionsDetectedCount: a
  13392. }
  13393. if (t === Kt) {
  13394. var s = r
  13395. n === 'auto' || n == null
  13396. ? Bg(
  13397. function (u) {
  13398. u != null && u !== '-' && (W(u) ? o == null && (o = 1) : (o = 0))
  13399. },
  13400. e,
  13401. s,
  13402. 10
  13403. )
  13404. : (o = dt(n) ? n : n ? 1 : 0),
  13405. !i &&
  13406. o === 1 &&
  13407. ((i = []),
  13408. Bg(
  13409. function (u, f) {
  13410. i[f] = u != null ? u + '' : ''
  13411. },
  13412. e,
  13413. s,
  13414. 1 / 0
  13415. )),
  13416. (a = i ? i.length : e === di ? s.length : s[0] ? s[0].length : null)
  13417. } else if (t === _e) i || (i = YA(r))
  13418. else if (t === qe)
  13419. i ||
  13420. ((i = []),
  13421. A(r, function (u, f) {
  13422. i.push(f)
  13423. }))
  13424. else if (t === ye) {
  13425. var l = qi(r[0])
  13426. a = (z(l) && l.length) || 1
  13427. }
  13428. return { startIndex: o, dimensionsDefine: kg(i), dimensionsDetectedCount: a }
  13429. }
  13430. function YA(r) {
  13431. for (var t = 0, e; t < r.length && !(e = r[t++]); );
  13432. if (e) {
  13433. var n = []
  13434. return (
  13435. A(e, function (i, a) {
  13436. n.push(a)
  13437. }),
  13438. n
  13439. )
  13440. }
  13441. }
  13442. function kg(r) {
  13443. if (!!r) {
  13444. var t = q()
  13445. return G(r, function (e, n) {
  13446. e = Y(e) ? e : { name: e }
  13447. var i = { name: e.name, displayName: e.displayName, type: e.type }
  13448. if (i.name == null) return i
  13449. ;(i.name += ''), i.displayName == null && (i.displayName = i.name)
  13450. var a = t.get(i.name)
  13451. return a ? (i.name += '-' + a.count++) : t.set(i.name, { count: 1 }), i
  13452. })
  13453. }
  13454. }
  13455. function Bg(r, t, e, n) {
  13456. if (t === di)
  13457. for (var i = 0; i < e.length && i < n; i++) r(e[i] ? e[i][0] : null, i)
  13458. else for (var a = e[0] || [], i = 0; i < a.length && i < n; i++) r(a[i], i)
  13459. }
  13460. function Ng(r) {
  13461. var t = r.sourceFormat
  13462. return t === _e || t === qe
  13463. }
  13464. var _n,
  13465. Sn,
  13466. xn,
  13467. Fg,
  13468. zg,
  13469. Vg = (function () {
  13470. function r(t, e) {
  13471. var n = Rf(t) ? t : Of(t)
  13472. this._source = n
  13473. var i = (this._data = n.data)
  13474. n.sourceFormat === Pr &&
  13475. ((this._offset = 0), (this._dimSize = e), (this._data = i)),
  13476. zg(this, i, n)
  13477. }
  13478. return (
  13479. (r.prototype.getSource = function () {
  13480. return this._source
  13481. }),
  13482. (r.prototype.count = function () {
  13483. return 0
  13484. }),
  13485. (r.prototype.getItem = function (t, e) {}),
  13486. (r.prototype.appendData = function (t) {}),
  13487. (r.prototype.clean = function () {}),
  13488. (r.protoInitialize = (function () {
  13489. var t = r.prototype
  13490. ;(t.pure = !1), (t.persistent = !0)
  13491. })()),
  13492. (r.internalField = (function () {
  13493. var t
  13494. zg = function (o, s, l) {
  13495. var u = l.sourceFormat,
  13496. f = l.seriesLayoutBy,
  13497. h = l.startIndex,
  13498. c = l.dimensionsDefine,
  13499. v = Fg[Bf(u, f)]
  13500. if ((N(o, v), u === Pr))
  13501. (o.getItem = e), (o.count = i), (o.fillStorage = n)
  13502. else {
  13503. var d = Hg(u, f)
  13504. o.getItem = X(d, null, s, h, c)
  13505. var p = Ug(u, f)
  13506. o.count = X(p, null, s, h, c)
  13507. }
  13508. }
  13509. var e = function (o, s) {
  13510. ;(o = o - this._offset), (s = s || [])
  13511. for (
  13512. var l = this._data, u = this._dimSize, f = u * o, h = 0;
  13513. h < u;
  13514. h++
  13515. )
  13516. s[h] = l[f + h]
  13517. return s
  13518. },
  13519. n = function (o, s, l, u) {
  13520. for (var f = this._data, h = this._dimSize, c = 0; c < h; c++) {
  13521. for (
  13522. var v = u[c],
  13523. d = v[0] == null ? 1 / 0 : v[0],
  13524. p = v[1] == null ? -1 / 0 : v[1],
  13525. g = s - o,
  13526. m = l[c],
  13527. y = 0;
  13528. y < g;
  13529. y++
  13530. ) {
  13531. var _ = f[y * h + c]
  13532. ;(m[o + y] = _), _ < d && (d = _), _ > p && (p = _)
  13533. }
  13534. ;(v[0] = d), (v[1] = p)
  13535. }
  13536. },
  13537. i = function () {
  13538. return this._data ? this._data.length / this._dimSize : 0
  13539. }
  13540. Fg =
  13541. ((t = {}),
  13542. (t[Kt + '_' + Ke] = { pure: !0, appendData: a }),
  13543. (t[Kt + '_' + di] = {
  13544. pure: !0,
  13545. appendData: function () {
  13546. throw new Error(
  13547. 'Do not support appendData when set seriesLayoutBy: "row".'
  13548. )
  13549. }
  13550. }),
  13551. (t[_e] = { pure: !0, appendData: a }),
  13552. (t[qe] = {
  13553. pure: !0,
  13554. appendData: function (o) {
  13555. var s = this._data
  13556. A(o, function (l, u) {
  13557. for (
  13558. var f = s[u] || (s[u] = []), h = 0;
  13559. h < (l || []).length;
  13560. h++
  13561. )
  13562. f.push(l[h])
  13563. })
  13564. }
  13565. }),
  13566. (t[ye] = { appendData: a }),
  13567. (t[Pr] = {
  13568. persistent: !1,
  13569. pure: !0,
  13570. appendData: function (o) {
  13571. this._data = o
  13572. },
  13573. clean: function () {
  13574. ;(this._offset += this.count()), (this._data = null)
  13575. }
  13576. }),
  13577. t)
  13578. function a(o) {
  13579. for (var s = 0; s < o.length; s++) this._data.push(o[s])
  13580. }
  13581. })()),
  13582. r
  13583. )
  13584. })(),
  13585. Gg = function (r, t, e, n) {
  13586. return r[n]
  13587. },
  13588. ZA =
  13589. ((_n = {}),
  13590. (_n[Kt + '_' + Ke] = function (r, t, e, n) {
  13591. return r[n + t]
  13592. }),
  13593. (_n[Kt + '_' + di] = function (r, t, e, n, i) {
  13594. n += t
  13595. for (var a = i || [], o = r, s = 0; s < o.length; s++) {
  13596. var l = o[s]
  13597. a[s] = l ? l[n] : null
  13598. }
  13599. return a
  13600. }),
  13601. (_n[_e] = Gg),
  13602. (_n[qe] = function (r, t, e, n, i) {
  13603. for (var a = i || [], o = 0; o < e.length; o++) {
  13604. var s = e[o].name,
  13605. l = r[s]
  13606. a[o] = l ? l[n] : null
  13607. }
  13608. return a
  13609. }),
  13610. (_n[ye] = Gg),
  13611. _n)
  13612. function Hg(r, t) {
  13613. var e = ZA[Bf(r, t)]
  13614. return e
  13615. }
  13616. var Wg = function (r, t, e) {
  13617. return r.length
  13618. },
  13619. $A =
  13620. ((Sn = {}),
  13621. (Sn[Kt + '_' + Ke] = function (r, t, e) {
  13622. return Math.max(0, r.length - t)
  13623. }),
  13624. (Sn[Kt + '_' + di] = function (r, t, e) {
  13625. var n = r[0]
  13626. return n ? Math.max(0, n.length - t) : 0
  13627. }),
  13628. (Sn[_e] = Wg),
  13629. (Sn[qe] = function (r, t, e) {
  13630. var n = e[0].name,
  13631. i = r[n]
  13632. return i ? i.length : 0
  13633. }),
  13634. (Sn[ye] = Wg),
  13635. Sn)
  13636. function Ug(r, t) {
  13637. var e = $A[Bf(r, t)]
  13638. return e
  13639. }
  13640. var kf = function (r, t, e) {
  13641. return r[t]
  13642. },
  13643. XA =
  13644. ((xn = {}),
  13645. (xn[Kt] = kf),
  13646. (xn[_e] = function (r, t, e) {
  13647. return r[e]
  13648. }),
  13649. (xn[qe] = kf),
  13650. (xn[ye] = function (r, t, e) {
  13651. var n = qi(r)
  13652. return n instanceof Array ? n[t] : n
  13653. }),
  13654. (xn[Pr] = kf),
  13655. xn)
  13656. function Yg(r) {
  13657. var t = XA[r]
  13658. return t
  13659. }
  13660. function Bf(r, t) {
  13661. return r === Kt ? r + '_' + t : r
  13662. }
  13663. function pi(r, t, e) {
  13664. if (!!r) {
  13665. var n = r.getRawDataItem(t)
  13666. if (n != null) {
  13667. var i = r.getStore(),
  13668. a = i.getSource().sourceFormat
  13669. if (e != null) {
  13670. var o = r.getDimensionIndex(e),
  13671. s = i.getDimensionProperty(o)
  13672. return Yg(a)(n, o, s)
  13673. } else {
  13674. var l = n
  13675. return a === ye && (l = qi(n)), l
  13676. }
  13677. }
  13678. }
  13679. }
  13680. var qA = /\{@(.+?)\}/g,
  13681. KA = (function () {
  13682. function r() {}
  13683. return (
  13684. (r.prototype.getDataParams = function (t, e) {
  13685. var n = this.getData(e),
  13686. i = this.getRawValue(t, e),
  13687. a = n.getRawIndex(t),
  13688. o = n.getName(t),
  13689. s = n.getRawDataItem(t),
  13690. l = n.getItemVisual(t, 'style'),
  13691. u = l && l[n.getItemVisual(t, 'drawType') || 'fill'],
  13692. f = l && l.stroke,
  13693. h = this.mainType,
  13694. c = h === 'series',
  13695. v = n.userOutput && n.userOutput.get()
  13696. return {
  13697. componentType: h,
  13698. componentSubType: this.subType,
  13699. componentIndex: this.componentIndex,
  13700. seriesType: c ? this.subType : null,
  13701. seriesIndex: this.seriesIndex,
  13702. seriesId: c ? this.id : null,
  13703. seriesName: c ? this.name : null,
  13704. name: o,
  13705. dataIndex: a,
  13706. data: s,
  13707. dataType: e,
  13708. value: i,
  13709. color: u,
  13710. borderColor: f,
  13711. dimensionNames: v ? v.fullDimensions : null,
  13712. encode: v ? v.encode : null,
  13713. $vars: ['seriesName', 'name', 'value']
  13714. }
  13715. }),
  13716. (r.prototype.getFormattedLabel = function (t, e, n, i, a, o) {
  13717. e = e || 'normal'
  13718. var s = this.getData(n),
  13719. l = this.getDataParams(t, n)
  13720. if (
  13721. (o && (l.value = o.interpolatedValue),
  13722. i != null && z(l.value) && (l.value = l.value[i]),
  13723. !a)
  13724. ) {
  13725. var u = s.getItemModel(t)
  13726. a = u.get(
  13727. e === 'normal' ? ['label', 'formatter'] : [e, 'label', 'formatter']
  13728. )
  13729. }
  13730. if (Q(a)) return (l.status = e), (l.dimensionIndex = i), a(l)
  13731. if (W(a)) {
  13732. var f = fg(a, l)
  13733. return f.replace(qA, function (h, c) {
  13734. var v = c.length,
  13735. d = c
  13736. d.charAt(0) === '[' &&
  13737. d.charAt(v - 1) === ']' &&
  13738. (d = +d.slice(1, v - 1))
  13739. var p = pi(s, t, d)
  13740. if (o && z(o.interpolatedValue)) {
  13741. var g = s.getDimensionIndex(d)
  13742. g >= 0 && (p = o.interpolatedValue[g])
  13743. }
  13744. return p != null ? p + '' : ''
  13745. })
  13746. }
  13747. }),
  13748. (r.prototype.getRawValue = function (t, e) {
  13749. return pi(this.getData(e), t)
  13750. }),
  13751. (r.prototype.formatTooltip = function (t, e, n) {}),
  13752. r
  13753. )
  13754. })()
  13755. function Zg(r) {
  13756. var t, e
  13757. return Y(r) ? r.type && (e = r) : (t = r), { text: t, frag: e }
  13758. }
  13759. function Ta(r) {
  13760. return new QA(r)
  13761. }
  13762. var QA = (function () {
  13763. function r(t) {
  13764. ;(t = t || {}),
  13765. (this._reset = t.reset),
  13766. (this._plan = t.plan),
  13767. (this._count = t.count),
  13768. (this._onDirty = t.onDirty),
  13769. (this._dirty = !0)
  13770. }
  13771. return (
  13772. (r.prototype.perform = function (t) {
  13773. var e = this._upstream,
  13774. n = t && t.skip
  13775. if (this._dirty && e) {
  13776. var i = this.context
  13777. i.data = i.outputData = e.context.outputData
  13778. }
  13779. this.__pipeline && (this.__pipeline.currentTask = this)
  13780. var a
  13781. this._plan && !n && (a = this._plan(this.context))
  13782. var o = f(this._modBy),
  13783. s = this._modDataCount || 0,
  13784. l = f(t && t.modBy),
  13785. u = (t && t.modDataCount) || 0
  13786. ;(o !== l || s !== u) && (a = 'reset')
  13787. function f(y) {
  13788. return !(y >= 1) && (y = 1), y
  13789. }
  13790. var h
  13791. ;(this._dirty || a === 'reset') &&
  13792. ((this._dirty = !1), (h = this._doReset(n))),
  13793. (this._modBy = l),
  13794. (this._modDataCount = u)
  13795. var c = t && t.step
  13796. if (
  13797. (e
  13798. ? (this._dueEnd = e._outputDueEnd)
  13799. : (this._dueEnd = this._count ? this._count(this.context) : 1 / 0),
  13800. this._progress)
  13801. ) {
  13802. var v = this._dueIndex,
  13803. d = Math.min(c != null ? this._dueIndex + c : 1 / 0, this._dueEnd)
  13804. if (!n && (h || v < d)) {
  13805. var p = this._progress
  13806. if (z(p))
  13807. for (var g = 0; g < p.length; g++)
  13808. this._doProgress(p[g], v, d, l, u)
  13809. else this._doProgress(p, v, d, l, u)
  13810. }
  13811. this._dueIndex = d
  13812. var m = this._settedOutputEnd != null ? this._settedOutputEnd : d
  13813. this._outputDueEnd = m
  13814. } else
  13815. this._dueIndex = this._outputDueEnd =
  13816. this._settedOutputEnd != null ? this._settedOutputEnd : this._dueEnd
  13817. return this.unfinished()
  13818. }),
  13819. (r.prototype.dirty = function () {
  13820. ;(this._dirty = !0), this._onDirty && this._onDirty(this.context)
  13821. }),
  13822. (r.prototype._doProgress = function (t, e, n, i, a) {
  13823. $g.reset(e, n, i, a),
  13824. (this._callingProgress = t),
  13825. this._callingProgress(
  13826. { start: e, end: n, count: n - e, next: $g.next },
  13827. this.context
  13828. )
  13829. }),
  13830. (r.prototype._doReset = function (t) {
  13831. ;(this._dueIndex = this._outputDueEnd = this._dueEnd = 0),
  13832. (this._settedOutputEnd = null)
  13833. var e, n
  13834. !t &&
  13835. this._reset &&
  13836. ((e = this._reset(this.context)),
  13837. e && e.progress && ((n = e.forceFirstProgress), (e = e.progress)),
  13838. z(e) && !e.length && (e = null)),
  13839. (this._progress = e),
  13840. (this._modBy = this._modDataCount = null)
  13841. var i = this._downstream
  13842. return i && i.dirty(), n
  13843. }),
  13844. (r.prototype.unfinished = function () {
  13845. return this._progress && this._dueIndex < this._dueEnd
  13846. }),
  13847. (r.prototype.pipe = function (t) {
  13848. ;(this._downstream !== t || this._dirty) &&
  13849. ((this._downstream = t), (t._upstream = this), t.dirty())
  13850. }),
  13851. (r.prototype.dispose = function () {
  13852. this._disposed ||
  13853. (this._upstream && (this._upstream._downstream = null),
  13854. this._downstream && (this._downstream._upstream = null),
  13855. (this._dirty = !1),
  13856. (this._disposed = !0))
  13857. }),
  13858. (r.prototype.getUpstream = function () {
  13859. return this._upstream
  13860. }),
  13861. (r.prototype.getDownstream = function () {
  13862. return this._downstream
  13863. }),
  13864. (r.prototype.setOutputEnd = function (t) {
  13865. this._outputDueEnd = this._settedOutputEnd = t
  13866. }),
  13867. r
  13868. )
  13869. })(),
  13870. $g = (function () {
  13871. var r,
  13872. t,
  13873. e,
  13874. n,
  13875. i,
  13876. a = {
  13877. reset: function (l, u, f, h) {
  13878. ;(t = l),
  13879. (r = u),
  13880. (e = f),
  13881. (n = h),
  13882. (i = Math.ceil(n / e)),
  13883. (a.next = e > 1 && n > 0 ? s : o)
  13884. }
  13885. }
  13886. return a
  13887. function o() {
  13888. return t < r ? t++ : null
  13889. }
  13890. function s() {
  13891. var l = (t % i) * e + Math.ceil(t / i),
  13892. u = t >= r ? null : l < n ? l : t
  13893. return t++, u
  13894. }
  13895. })()
  13896. function Ms(r, t) {
  13897. var e = t && t.type
  13898. return e === 'ordinal'
  13899. ? r
  13900. : (e === 'time' && !dt(r) && r != null && r !== '-' && (r = +sr(r)),
  13901. r == null || r === '' ? NaN : +r)
  13902. }
  13903. var JA = q({
  13904. number: function (r) {
  13905. return parseFloat(r)
  13906. },
  13907. time: function (r) {
  13908. return +sr(r)
  13909. },
  13910. trim: function (r) {
  13911. return W(r) ? Ge(r) : r
  13912. }
  13913. })
  13914. function Xg(r) {
  13915. return JA.get(r)
  13916. }
  13917. var qg = {
  13918. lt: function (r, t) {
  13919. return r < t
  13920. },
  13921. lte: function (r, t) {
  13922. return r <= t
  13923. },
  13924. gt: function (r, t) {
  13925. return r > t
  13926. },
  13927. gte: function (r, t) {
  13928. return r >= t
  13929. }
  13930. },
  13931. jA = (function () {
  13932. function r(t, e) {
  13933. if (!dt(e)) {
  13934. var n = ''
  13935. ut(n)
  13936. }
  13937. ;(this._opFn = qg[t]), (this._rvalFloat = Ar(e))
  13938. }
  13939. return (
  13940. (r.prototype.evaluate = function (t) {
  13941. return dt(t)
  13942. ? this._opFn(t, this._rvalFloat)
  13943. : this._opFn(Ar(t), this._rvalFloat)
  13944. }),
  13945. r
  13946. )
  13947. })(),
  13948. Kg = (function () {
  13949. function r(t, e) {
  13950. var n = t === 'desc'
  13951. ;(this._resultLT = n ? 1 : -1),
  13952. e == null && (e = n ? 'min' : 'max'),
  13953. (this._incomparable = e === 'min' ? -1 / 0 : 1 / 0)
  13954. }
  13955. return (
  13956. (r.prototype.evaluate = function (t, e) {
  13957. var n = dt(t) ? t : Ar(t),
  13958. i = dt(e) ? e : Ar(e),
  13959. a = isNaN(n),
  13960. o = isNaN(i)
  13961. if (
  13962. (a && (n = this._incomparable), o && (i = this._incomparable), a && o)
  13963. ) {
  13964. var s = W(t),
  13965. l = W(e)
  13966. s && (n = l ? t : 0), l && (i = s ? e : 0)
  13967. }
  13968. return n < i ? this._resultLT : n > i ? -this._resultLT : 0
  13969. }),
  13970. r
  13971. )
  13972. })(),
  13973. tM = (function () {
  13974. function r(t, e) {
  13975. ;(this._rval = e),
  13976. (this._isEQ = t),
  13977. (this._rvalTypeof = typeof e),
  13978. (this._rvalFloat = Ar(e))
  13979. }
  13980. return (
  13981. (r.prototype.evaluate = function (t) {
  13982. var e = t === this._rval
  13983. if (!e) {
  13984. var n = typeof t
  13985. n !== this._rvalTypeof &&
  13986. (n === 'number' || this._rvalTypeof === 'number') &&
  13987. (e = Ar(t) === this._rvalFloat)
  13988. }
  13989. return this._isEQ ? e : !e
  13990. }),
  13991. r
  13992. )
  13993. })()
  13994. function eM(r, t) {
  13995. return r === 'eq' || r === 'ne'
  13996. ? new tM(r === 'eq', t)
  13997. : nr(qg, r)
  13998. ? new jA(r, t)
  13999. : null
  14000. }
  14001. var rM = (function () {
  14002. function r() {}
  14003. return (
  14004. (r.prototype.getRawData = function () {
  14005. throw new Error('not supported')
  14006. }),
  14007. (r.prototype.getRawDataItem = function (t) {
  14008. throw new Error('not supported')
  14009. }),
  14010. (r.prototype.cloneRawData = function () {}),
  14011. (r.prototype.getDimensionInfo = function (t) {}),
  14012. (r.prototype.cloneAllDimensionInfo = function () {}),
  14013. (r.prototype.count = function () {}),
  14014. (r.prototype.retrieveValue = function (t, e) {}),
  14015. (r.prototype.retrieveValueFromItem = function (t, e) {}),
  14016. (r.prototype.convertValue = function (t, e) {
  14017. return Ms(t, e)
  14018. }),
  14019. r
  14020. )
  14021. })()
  14022. function nM(r, t) {
  14023. var e = new rM(),
  14024. n = r.data,
  14025. i = (e.sourceFormat = r.sourceFormat),
  14026. a = r.startIndex,
  14027. o = ''
  14028. r.seriesLayoutBy !== Ke && ut(o)
  14029. var s = [],
  14030. l = {},
  14031. u = r.dimensionsDefine
  14032. if (u)
  14033. A(u, function (p, g) {
  14034. var m = p.name,
  14035. y = { index: g, name: m, displayName: p.displayName }
  14036. if ((s.push(y), m != null)) {
  14037. var _ = ''
  14038. nr(l, m) && ut(_), (l[m] = y)
  14039. }
  14040. })
  14041. else for (var f = 0; f < r.dimensionsDetectedCount; f++) s.push({ index: f })
  14042. var h = Hg(i, Ke)
  14043. t.__isBuiltIn &&
  14044. ((e.getRawDataItem = function (p) {
  14045. return h(n, a, s, p)
  14046. }),
  14047. (e.getRawData = X(iM, null, r))),
  14048. (e.cloneRawData = X(aM, null, r))
  14049. var c = Ug(i, Ke)
  14050. e.count = X(c, null, n, a, s)
  14051. var v = Yg(i)
  14052. e.retrieveValue = function (p, g) {
  14053. var m = h(n, a, s, p)
  14054. return d(m, g)
  14055. }
  14056. var d = (e.retrieveValueFromItem = function (p, g) {
  14057. if (p != null) {
  14058. var m = s[g]
  14059. if (m) return v(p, g, m.name)
  14060. }
  14061. })
  14062. return (
  14063. (e.getDimensionInfo = X(oM, null, s, l)),
  14064. (e.cloneAllDimensionInfo = X(sM, null, s)),
  14065. e
  14066. )
  14067. }
  14068. function iM(r) {
  14069. var t = r.sourceFormat
  14070. if (!Nf(t)) {
  14071. var e = ''
  14072. ut(e)
  14073. }
  14074. return r.data
  14075. }
  14076. function aM(r) {
  14077. var t = r.sourceFormat,
  14078. e = r.data
  14079. if (!Nf(t)) {
  14080. var n = ''
  14081. ut(n)
  14082. }
  14083. if (t === Kt) {
  14084. for (var i = [], a = 0, o = e.length; a < o; a++) i.push(e[a].slice())
  14085. return i
  14086. } else if (t === _e) {
  14087. for (var i = [], a = 0, o = e.length; a < o; a++) i.push(N({}, e[a]))
  14088. return i
  14089. }
  14090. }
  14091. function oM(r, t, e) {
  14092. if (e != null) {
  14093. if (dt(e) || (!isNaN(e) && !nr(t, e))) return r[e]
  14094. if (nr(t, e)) return t[e]
  14095. }
  14096. }
  14097. function sM(r) {
  14098. return tt(r)
  14099. }
  14100. var Qg = q()
  14101. function lM(r) {
  14102. r = tt(r)
  14103. var t = r.type,
  14104. e = ''
  14105. t || ut(e)
  14106. var n = t.split(':')
  14107. n.length !== 2 && ut(e)
  14108. var i = !1
  14109. n[0] === 'echarts' && ((t = n[1]), (i = !0)),
  14110. (r.__isBuiltIn = i),
  14111. Qg.set(t, r)
  14112. }
  14113. function uM(r, t, e) {
  14114. var n = Mt(r),
  14115. i = n.length,
  14116. a = ''
  14117. i || ut(a)
  14118. for (var o = 0, s = i; o < s; o++) {
  14119. var l = n[o]
  14120. ;(t = fM(l, t)), o !== s - 1 && (t.length = Math.max(t.length, 1))
  14121. }
  14122. return t
  14123. }
  14124. function fM(r, t, e, n) {
  14125. var i = ''
  14126. t.length || ut(i), Y(r) || ut(i)
  14127. var a = r.type,
  14128. o = Qg.get(a)
  14129. o || ut(i)
  14130. var s = G(t, function (u) {
  14131. return nM(u, o)
  14132. }),
  14133. l = Mt(
  14134. o.transform({ upstream: s[0], upstreamList: s, config: tt(r.config) })
  14135. )
  14136. return G(l, function (u, f) {
  14137. var h = ''
  14138. Y(u) || ut(h), u.data || ut(h)
  14139. var c = Og(u.data)
  14140. Nf(c) || ut(h)
  14141. var v,
  14142. d = t[0]
  14143. if (d && f === 0 && !u.dimensions) {
  14144. var p = d.startIndex
  14145. p && (u.data = d.data.slice(0, p).concat(u.data)),
  14146. (v = {
  14147. seriesLayoutBy: Ke,
  14148. sourceHeader: p,
  14149. dimensions: d.metaRawOption.dimensions
  14150. })
  14151. } else v = { seriesLayoutBy: Ke, sourceHeader: 0, dimensions: u.dimensions }
  14152. return Ef(u.data, v, null)
  14153. })
  14154. }
  14155. function Nf(r) {
  14156. return r === Kt || r === _e
  14157. }
  14158. var Ds = 'undefined',
  14159. hM = typeof Uint32Array === Ds ? Array : Uint32Array,
  14160. vM = typeof Uint16Array === Ds ? Array : Uint16Array,
  14161. Jg = typeof Int32Array === Ds ? Array : Int32Array,
  14162. jg = typeof Float64Array === Ds ? Array : Float64Array,
  14163. tm = { float: jg, int: Jg, ordinal: Array, number: Array, time: jg },
  14164. Ff
  14165. function Ca(r) {
  14166. return r > 65535 ? hM : vM
  14167. }
  14168. function gi() {
  14169. return [1 / 0, -1 / 0]
  14170. }
  14171. function cM(r) {
  14172. var t = r.constructor
  14173. return t === Array ? r.slice() : new t(r)
  14174. }
  14175. function em(r, t, e, n, i) {
  14176. var a = tm[e || 'float']
  14177. if (i) {
  14178. var o = r[t],
  14179. s = o && o.length
  14180. if (s !== n) {
  14181. for (var l = new a(n), u = 0; u < s; u++) l[u] = o[u]
  14182. r[t] = l
  14183. }
  14184. } else r[t] = new a(n)
  14185. }
  14186. var zf = (function () {
  14187. function r() {
  14188. ;(this._chunks = []),
  14189. (this._rawExtent = []),
  14190. (this._extent = []),
  14191. (this._count = 0),
  14192. (this._rawCount = 0),
  14193. (this._calcDimNameToIdx = q())
  14194. }
  14195. return (
  14196. (r.prototype.initData = function (t, e, n) {
  14197. ;(this._provider = t),
  14198. (this._chunks = []),
  14199. (this._indices = null),
  14200. (this.getRawIndex = this._getRawIdxIdentity)
  14201. var i = t.getSource(),
  14202. a = (this.defaultDimValueGetter = Ff[i.sourceFormat])
  14203. ;(this._dimValueGetter = n || a),
  14204. (this._rawExtent = []),
  14205. Ng(i),
  14206. (this._dimensions = G(e, function (o) {
  14207. return { type: o.type, property: o.property }
  14208. })),
  14209. this._initDataFromProvider(0, t.count())
  14210. }),
  14211. (r.prototype.getProvider = function () {
  14212. return this._provider
  14213. }),
  14214. (r.prototype.getSource = function () {
  14215. return this._provider.getSource()
  14216. }),
  14217. (r.prototype.ensureCalculationDimension = function (t, e) {
  14218. var n = this._calcDimNameToIdx,
  14219. i = this._dimensions,
  14220. a = n.get(t)
  14221. if (a != null) {
  14222. if (i[a].type === e) return a
  14223. } else a = i.length
  14224. return (
  14225. (i[a] = { type: e }),
  14226. n.set(t, a),
  14227. (this._chunks[a] = new tm[e || 'float'](this._rawCount)),
  14228. (this._rawExtent[a] = gi()),
  14229. a
  14230. )
  14231. }),
  14232. (r.prototype.collectOrdinalMeta = function (t, e) {
  14233. var n = this._chunks[t],
  14234. i = this._dimensions[t],
  14235. a = this._rawExtent,
  14236. o = i.ordinalOffset || 0,
  14237. s = n.length
  14238. o === 0 && (a[t] = gi())
  14239. for (var l = a[t], u = o; u < s; u++) {
  14240. var f = (n[u] = e.parseAndCollect(n[u]))
  14241. isNaN(f) || ((l[0] = Math.min(f, l[0])), (l[1] = Math.max(f, l[1])))
  14242. }
  14243. ;(i.ordinalMeta = e), (i.ordinalOffset = s), (i.type = 'ordinal')
  14244. }),
  14245. (r.prototype.getOrdinalMeta = function (t) {
  14246. var e = this._dimensions[t],
  14247. n = e.ordinalMeta
  14248. return n
  14249. }),
  14250. (r.prototype.getDimensionProperty = function (t) {
  14251. var e = this._dimensions[t]
  14252. return e && e.property
  14253. }),
  14254. (r.prototype.appendData = function (t) {
  14255. var e = this._provider,
  14256. n = this.count()
  14257. e.appendData(t)
  14258. var i = e.count()
  14259. return (
  14260. e.persistent || (i += n),
  14261. n < i && this._initDataFromProvider(n, i, !0),
  14262. [n, i]
  14263. )
  14264. }),
  14265. (r.prototype.appendValues = function (t, e) {
  14266. for (
  14267. var n = this._chunks,
  14268. i = this._dimensions,
  14269. a = i.length,
  14270. o = this._rawExtent,
  14271. s = this.count(),
  14272. l = s + Math.max(t.length, e || 0),
  14273. u = 0;
  14274. u < a;
  14275. u++
  14276. ) {
  14277. var f = i[u]
  14278. em(n, u, f.type, l, !0)
  14279. }
  14280. for (var h = [], c = s; c < l; c++)
  14281. for (var v = c - s, d = 0; d < a; d++) {
  14282. var f = i[d],
  14283. p = Ff.arrayRows.call(this, t[v] || h, f.property, v, d)
  14284. n[d][c] = p
  14285. var g = o[d]
  14286. p < g[0] && (g[0] = p), p > g[1] && (g[1] = p)
  14287. }
  14288. return (this._rawCount = this._count = l), { start: s, end: l }
  14289. }),
  14290. (r.prototype._initDataFromProvider = function (t, e, n) {
  14291. for (
  14292. var i = this._provider,
  14293. a = this._chunks,
  14294. o = this._dimensions,
  14295. s = o.length,
  14296. l = this._rawExtent,
  14297. u = G(o, function (y) {
  14298. return y.property
  14299. }),
  14300. f = 0;
  14301. f < s;
  14302. f++
  14303. ) {
  14304. var h = o[f]
  14305. l[f] || (l[f] = gi()), em(a, f, h.type, e, n)
  14306. }
  14307. if (i.fillStorage) i.fillStorage(t, e, a, l)
  14308. else
  14309. for (var c = [], v = t; v < e; v++) {
  14310. c = i.getItem(v, c)
  14311. for (var d = 0; d < s; d++) {
  14312. var p = a[d],
  14313. g = this._dimValueGetter(c, u[d], v, d)
  14314. p[v] = g
  14315. var m = l[d]
  14316. g < m[0] && (m[0] = g), g > m[1] && (m[1] = g)
  14317. }
  14318. }
  14319. !i.persistent && i.clean && i.clean(),
  14320. (this._rawCount = this._count = e),
  14321. (this._extent = [])
  14322. }),
  14323. (r.prototype.count = function () {
  14324. return this._count
  14325. }),
  14326. (r.prototype.get = function (t, e) {
  14327. if (!(e >= 0 && e < this._count)) return NaN
  14328. var n = this._chunks[t]
  14329. return n ? n[this.getRawIndex(e)] : NaN
  14330. }),
  14331. (r.prototype.getValues = function (t, e) {
  14332. var n = [],
  14333. i = []
  14334. if (e == null) {
  14335. ;(e = t), (t = [])
  14336. for (var a = 0; a < this._dimensions.length; a++) i.push(a)
  14337. } else i = t
  14338. for (var a = 0, o = i.length; a < o; a++) n.push(this.get(i[a], e))
  14339. return n
  14340. }),
  14341. (r.prototype.getByRawIndex = function (t, e) {
  14342. if (!(e >= 0 && e < this._rawCount)) return NaN
  14343. var n = this._chunks[t]
  14344. return n ? n[e] : NaN
  14345. }),
  14346. (r.prototype.getSum = function (t) {
  14347. var e = this._chunks[t],
  14348. n = 0
  14349. if (e)
  14350. for (var i = 0, a = this.count(); i < a; i++) {
  14351. var o = this.get(t, i)
  14352. isNaN(o) || (n += o)
  14353. }
  14354. return n
  14355. }),
  14356. (r.prototype.getMedian = function (t) {
  14357. var e = []
  14358. this.each([t], function (a) {
  14359. isNaN(a) || e.push(a)
  14360. })
  14361. var n = e.sort(function (a, o) {
  14362. return a - o
  14363. }),
  14364. i = this.count()
  14365. return i === 0
  14366. ? 0
  14367. : i % 2 == 1
  14368. ? n[(i - 1) / 2]
  14369. : (n[i / 2] + n[i / 2 - 1]) / 2
  14370. }),
  14371. (r.prototype.indexOfRawIndex = function (t) {
  14372. if (t >= this._rawCount || t < 0) return -1
  14373. if (!this._indices) return t
  14374. var e = this._indices,
  14375. n = e[t]
  14376. if (n != null && n < this._count && n === t) return t
  14377. for (var i = 0, a = this._count - 1; i <= a; ) {
  14378. var o = ((i + a) / 2) | 0
  14379. if (e[o] < t) i = o + 1
  14380. else if (e[o] > t) a = o - 1
  14381. else return o
  14382. }
  14383. return -1
  14384. }),
  14385. (r.prototype.indicesOfNearest = function (t, e, n) {
  14386. var i = this._chunks,
  14387. a = i[t],
  14388. o = []
  14389. if (!a) return o
  14390. n == null && (n = 1 / 0)
  14391. for (
  14392. var s = 1 / 0, l = -1, u = 0, f = 0, h = this.count();
  14393. f < h;
  14394. f++
  14395. ) {
  14396. var c = this.getRawIndex(f),
  14397. v = e - a[c],
  14398. d = Math.abs(v)
  14399. d <= n &&
  14400. ((d < s || (d === s && v >= 0 && l < 0)) &&
  14401. ((s = d), (l = v), (u = 0)),
  14402. v === l && (o[u++] = f))
  14403. }
  14404. return (o.length = u), o
  14405. }),
  14406. (r.prototype.getIndices = function () {
  14407. var t,
  14408. e = this._indices
  14409. if (e) {
  14410. var n = e.constructor,
  14411. i = this._count
  14412. if (n === Array) {
  14413. t = new n(i)
  14414. for (var a = 0; a < i; a++) t[a] = e[a]
  14415. } else t = new n(e.buffer, 0, i)
  14416. } else {
  14417. var n = Ca(this._rawCount)
  14418. t = new n(this.count())
  14419. for (var a = 0; a < t.length; a++) t[a] = a
  14420. }
  14421. return t
  14422. }),
  14423. (r.prototype.filter = function (t, e) {
  14424. if (!this._count) return this
  14425. for (
  14426. var n = this.clone(),
  14427. i = n.count(),
  14428. a = Ca(n._rawCount),
  14429. o = new a(i),
  14430. s = [],
  14431. l = t.length,
  14432. u = 0,
  14433. f = t[0],
  14434. h = n._chunks,
  14435. c = 0;
  14436. c < i;
  14437. c++
  14438. ) {
  14439. var v = void 0,
  14440. d = n.getRawIndex(c)
  14441. if (l === 0) v = e(c)
  14442. else if (l === 1) {
  14443. var p = h[f][d]
  14444. v = e(p, c)
  14445. } else {
  14446. for (var g = 0; g < l; g++) s[g] = h[t[g]][d]
  14447. ;(s[g] = c), (v = e.apply(null, s))
  14448. }
  14449. v && (o[u++] = d)
  14450. }
  14451. return (
  14452. u < i && (n._indices = o),
  14453. (n._count = u),
  14454. (n._extent = []),
  14455. n._updateGetRawIdx(),
  14456. n
  14457. )
  14458. }),
  14459. (r.prototype.selectRange = function (t) {
  14460. var e = this.clone(),
  14461. n = e._count
  14462. if (!n) return this
  14463. var i = xt(t),
  14464. a = i.length
  14465. if (!a) return this
  14466. var o = e.count(),
  14467. s = Ca(e._rawCount),
  14468. l = new s(o),
  14469. u = 0,
  14470. f = i[0],
  14471. h = t[f][0],
  14472. c = t[f][1],
  14473. v = e._chunks,
  14474. d = !1
  14475. if (!e._indices) {
  14476. var p = 0
  14477. if (a === 1) {
  14478. for (var g = v[i[0]], m = 0; m < n; m++) {
  14479. var y = g[m]
  14480. ;((y >= h && y <= c) || isNaN(y)) && (l[u++] = p), p++
  14481. }
  14482. d = !0
  14483. } else if (a === 2) {
  14484. for (
  14485. var g = v[i[0]],
  14486. _ = v[i[1]],
  14487. S = t[i[1]][0],
  14488. w = t[i[1]][1],
  14489. m = 0;
  14490. m < n;
  14491. m++
  14492. ) {
  14493. var y = g[m],
  14494. x = _[m]
  14495. ;((y >= h && y <= c) || isNaN(y)) &&
  14496. ((x >= S && x <= w) || isNaN(x)) &&
  14497. (l[u++] = p),
  14498. p++
  14499. }
  14500. d = !0
  14501. }
  14502. }
  14503. if (!d)
  14504. if (a === 1)
  14505. for (var m = 0; m < o; m++) {
  14506. var b = e.getRawIndex(m),
  14507. y = v[i[0]][b]
  14508. ;((y >= h && y <= c) || isNaN(y)) && (l[u++] = b)
  14509. }
  14510. else
  14511. for (var m = 0; m < o; m++) {
  14512. for (var T = !0, b = e.getRawIndex(m), C = 0; C < a; C++) {
  14513. var M = i[C],
  14514. y = v[M][b]
  14515. ;(y < t[M][0] || y > t[M][1]) && (T = !1)
  14516. }
  14517. T && (l[u++] = e.getRawIndex(m))
  14518. }
  14519. return (
  14520. u < o && (e._indices = l),
  14521. (e._count = u),
  14522. (e._extent = []),
  14523. e._updateGetRawIdx(),
  14524. e
  14525. )
  14526. }),
  14527. (r.prototype.map = function (t, e) {
  14528. var n = this.clone(t)
  14529. return this._updateDims(n, t, e), n
  14530. }),
  14531. (r.prototype.modify = function (t, e) {
  14532. this._updateDims(this, t, e)
  14533. }),
  14534. (r.prototype._updateDims = function (t, e, n) {
  14535. for (
  14536. var i = t._chunks,
  14537. a = [],
  14538. o = e.length,
  14539. s = t.count(),
  14540. l = [],
  14541. u = t._rawExtent,
  14542. f = 0;
  14543. f < e.length;
  14544. f++
  14545. )
  14546. u[e[f]] = gi()
  14547. for (var h = 0; h < s; h++) {
  14548. for (var c = t.getRawIndex(h), v = 0; v < o; v++) l[v] = i[e[v]][c]
  14549. l[o] = h
  14550. var d = n && n.apply(null, l)
  14551. if (d != null) {
  14552. typeof d != 'object' && ((a[0] = d), (d = a))
  14553. for (var f = 0; f < d.length; f++) {
  14554. var p = e[f],
  14555. g = d[f],
  14556. m = u[p],
  14557. y = i[p]
  14558. y && (y[c] = g), g < m[0] && (m[0] = g), g > m[1] && (m[1] = g)
  14559. }
  14560. }
  14561. }
  14562. }),
  14563. (r.prototype.lttbDownSample = function (t, e) {
  14564. var n = this.clone([t], !0),
  14565. i = n._chunks,
  14566. a = i[t],
  14567. o = this.count(),
  14568. s = 0,
  14569. l = Math.floor(1 / e),
  14570. u = this.getRawIndex(0),
  14571. f,
  14572. h,
  14573. c,
  14574. v = new (Ca(this._rawCount))(Math.min((Math.ceil(o / l) + 2) * 2, o))
  14575. v[s++] = u
  14576. for (var d = 1; d < o - 1; d += l) {
  14577. for (
  14578. var p = Math.min(d + l, o - 1),
  14579. g = Math.min(d + l * 2, o),
  14580. m = (g + p) / 2,
  14581. y = 0,
  14582. _ = p;
  14583. _ < g;
  14584. _++
  14585. ) {
  14586. var S = this.getRawIndex(_),
  14587. w = a[S]
  14588. isNaN(w) || (y += w)
  14589. }
  14590. y /= g - p
  14591. var x = d,
  14592. b = Math.min(d + l, o),
  14593. T = d - 1,
  14594. C = a[u]
  14595. ;(f = -1), (c = x)
  14596. for (var M = -1, D = 0, _ = x; _ < b; _++) {
  14597. var S = this.getRawIndex(_),
  14598. w = a[S]
  14599. if (isNaN(w)) {
  14600. D++, M < 0 && (M = S)
  14601. continue
  14602. }
  14603. ;(h = Math.abs((T - m) * (w - C) - (T - _) * (y - C))),
  14604. h > f && ((f = h), (c = S))
  14605. }
  14606. D > 0 &&
  14607. D < b - x &&
  14608. ((v[s++] = Math.min(M, c)), (c = Math.max(M, c))),
  14609. (v[s++] = c),
  14610. (u = c)
  14611. }
  14612. return (
  14613. (v[s++] = this.getRawIndex(o - 1)),
  14614. (n._count = s),
  14615. (n._indices = v),
  14616. (n.getRawIndex = this._getRawIdx),
  14617. n
  14618. )
  14619. }),
  14620. (r.prototype.downSample = function (t, e, n, i) {
  14621. for (
  14622. var a = this.clone([t], !0),
  14623. o = a._chunks,
  14624. s = [],
  14625. l = Math.floor(1 / e),
  14626. u = o[t],
  14627. f = this.count(),
  14628. h = (a._rawExtent[t] = gi()),
  14629. c = new (Ca(this._rawCount))(Math.ceil(f / l)),
  14630. v = 0,
  14631. d = 0;
  14632. d < f;
  14633. d += l
  14634. ) {
  14635. l > f - d && ((l = f - d), (s.length = l))
  14636. for (var p = 0; p < l; p++) {
  14637. var g = this.getRawIndex(d + p)
  14638. s[p] = u[g]
  14639. }
  14640. var m = n(s),
  14641. y = this.getRawIndex(Math.min(d + i(s, m) || 0, f - 1))
  14642. ;(u[y] = m),
  14643. m < h[0] && (h[0] = m),
  14644. m > h[1] && (h[1] = m),
  14645. (c[v++] = y)
  14646. }
  14647. return (a._count = v), (a._indices = c), a._updateGetRawIdx(), a
  14648. }),
  14649. (r.prototype.each = function (t, e) {
  14650. if (!!this._count)
  14651. for (
  14652. var n = t.length, i = this._chunks, a = 0, o = this.count();
  14653. a < o;
  14654. a++
  14655. ) {
  14656. var s = this.getRawIndex(a)
  14657. switch (n) {
  14658. case 0:
  14659. e(a)
  14660. break
  14661. case 1:
  14662. e(i[t[0]][s], a)
  14663. break
  14664. case 2:
  14665. e(i[t[0]][s], i[t[1]][s], a)
  14666. break
  14667. default:
  14668. for (var l = 0, u = []; l < n; l++) u[l] = i[t[l]][s]
  14669. ;(u[l] = a), e.apply(null, u)
  14670. }
  14671. }
  14672. }),
  14673. (r.prototype.getDataExtent = function (t) {
  14674. var e = this._chunks[t],
  14675. n = gi()
  14676. if (!e) return n
  14677. var i = this.count(),
  14678. a = !this._indices,
  14679. o
  14680. if (a) return this._rawExtent[t].slice()
  14681. if (((o = this._extent[t]), o)) return o.slice()
  14682. o = n
  14683. for (var s = o[0], l = o[1], u = 0; u < i; u++) {
  14684. var f = this.getRawIndex(u),
  14685. h = e[f]
  14686. h < s && (s = h), h > l && (l = h)
  14687. }
  14688. return (o = [s, l]), (this._extent[t] = o), o
  14689. }),
  14690. (r.prototype.getRawDataItem = function (t) {
  14691. var e = this.getRawIndex(t)
  14692. if (this._provider.persistent) return this._provider.getItem(e)
  14693. for (var n = [], i = this._chunks, a = 0; a < i.length; a++)
  14694. n.push(i[a][e])
  14695. return n
  14696. }),
  14697. (r.prototype.clone = function (t, e) {
  14698. var n = new r(),
  14699. i = this._chunks,
  14700. a =
  14701. t &&
  14702. Sr(
  14703. t,
  14704. function (s, l) {
  14705. return (s[l] = !0), s
  14706. },
  14707. {}
  14708. )
  14709. if (a)
  14710. for (var o = 0; o < i.length; o++)
  14711. n._chunks[o] = a[o] ? cM(i[o]) : i[o]
  14712. else n._chunks = i
  14713. return (
  14714. this._copyCommonProps(n),
  14715. e || (n._indices = this._cloneIndices()),
  14716. n._updateGetRawIdx(),
  14717. n
  14718. )
  14719. }),
  14720. (r.prototype._copyCommonProps = function (t) {
  14721. ;(t._count = this._count),
  14722. (t._rawCount = this._rawCount),
  14723. (t._provider = this._provider),
  14724. (t._dimensions = this._dimensions),
  14725. (t._extent = tt(this._extent)),
  14726. (t._rawExtent = tt(this._rawExtent))
  14727. }),
  14728. (r.prototype._cloneIndices = function () {
  14729. if (this._indices) {
  14730. var t = this._indices.constructor,
  14731. e = void 0
  14732. if (t === Array) {
  14733. var n = this._indices.length
  14734. e = new t(n)
  14735. for (var i = 0; i < n; i++) e[i] = this._indices[i]
  14736. } else e = new t(this._indices)
  14737. return e
  14738. }
  14739. return null
  14740. }),
  14741. (r.prototype._getRawIdxIdentity = function (t) {
  14742. return t
  14743. }),
  14744. (r.prototype._getRawIdx = function (t) {
  14745. return t < this._count && t >= 0 ? this._indices[t] : -1
  14746. }),
  14747. (r.prototype._updateGetRawIdx = function () {
  14748. this.getRawIndex = this._indices
  14749. ? this._getRawIdx
  14750. : this._getRawIdxIdentity
  14751. }),
  14752. (r.internalField = (function () {
  14753. function t(e, n, i, a) {
  14754. return Ms(e[a], this._dimensions[a])
  14755. }
  14756. Ff = {
  14757. arrayRows: t,
  14758. objectRows: function (e, n, i, a) {
  14759. return Ms(e[n], this._dimensions[a])
  14760. },
  14761. keyedColumns: t,
  14762. original: function (e, n, i, a) {
  14763. var o = e && (e.value == null ? e : e.value)
  14764. return Ms(o instanceof Array ? o[a] : o, this._dimensions[a])
  14765. },
  14766. typedArray: function (e, n, i, a) {
  14767. return e[a]
  14768. }
  14769. }
  14770. })()),
  14771. r
  14772. )
  14773. })(),
  14774. rm = (function () {
  14775. function r(t) {
  14776. ;(this._sourceList = []),
  14777. (this._storeList = []),
  14778. (this._upstreamSignList = []),
  14779. (this._versionSignBase = 0),
  14780. (this._dirty = !0),
  14781. (this._sourceHost = t)
  14782. }
  14783. return (
  14784. (r.prototype.dirty = function () {
  14785. this._setLocalSource([], []), (this._storeList = []), (this._dirty = !0)
  14786. }),
  14787. (r.prototype._setLocalSource = function (t, e) {
  14788. ;(this._sourceList = t),
  14789. (this._upstreamSignList = e),
  14790. this._versionSignBase++,
  14791. this._versionSignBase > 9e10 && (this._versionSignBase = 0)
  14792. }),
  14793. (r.prototype._getVersionSign = function () {
  14794. return this._sourceHost.uid + '_' + this._versionSignBase
  14795. }),
  14796. (r.prototype.prepareSource = function () {
  14797. this._isDirty() && (this._createSource(), (this._dirty = !1))
  14798. }),
  14799. (r.prototype._createSource = function () {
  14800. this._setLocalSource([], [])
  14801. var t = this._sourceHost,
  14802. e = this._getUpstreamSourceManagers(),
  14803. n = !!e.length,
  14804. i,
  14805. a
  14806. if (Is(t)) {
  14807. var o = t,
  14808. s = void 0,
  14809. l = void 0,
  14810. u = void 0
  14811. if (n) {
  14812. var f = e[0]
  14813. f.prepareSource(),
  14814. (u = f.getSource()),
  14815. (s = u.data),
  14816. (l = u.sourceFormat),
  14817. (a = [f._getVersionSign()])
  14818. } else (s = o.get('data', !0)), (l = ie(s) ? Pr : ye), (a = [])
  14819. var h = this._getSourceMetaRawOption() || {},
  14820. c = (u && u.metaRawOption) || {},
  14821. v = ht(h.seriesLayoutBy, c.seriesLayoutBy) || null,
  14822. d = ht(h.sourceHeader, c.sourceHeader),
  14823. p = ht(h.dimensions, c.dimensions),
  14824. g = v !== c.seriesLayoutBy || !!d != !!c.sourceHeader || p
  14825. i = g
  14826. ? [Ef(s, { seriesLayoutBy: v, sourceHeader: d, dimensions: p }, l)]
  14827. : []
  14828. } else {
  14829. var m = t
  14830. if (n) {
  14831. var y = this._applyTransform(e)
  14832. ;(i = y.sourceList), (a = y.upstreamSignList)
  14833. } else {
  14834. var _ = m.get('source', !0)
  14835. ;(i = [Ef(_, this._getSourceMetaRawOption(), null)]), (a = [])
  14836. }
  14837. }
  14838. this._setLocalSource(i, a)
  14839. }),
  14840. (r.prototype._applyTransform = function (t) {
  14841. var e = this._sourceHost,
  14842. n = e.get('transform', !0),
  14843. i = e.get('fromTransformResult', !0)
  14844. if (i != null) {
  14845. var a = ''
  14846. t.length !== 1 && im(a)
  14847. }
  14848. var o,
  14849. s = [],
  14850. l = []
  14851. return (
  14852. A(t, function (u) {
  14853. u.prepareSource()
  14854. var f = u.getSource(i || 0),
  14855. h = ''
  14856. i != null && !f && im(h), s.push(f), l.push(u._getVersionSign())
  14857. }),
  14858. n
  14859. ? (o = uM(n, s, { datasetIndex: e.componentIndex }))
  14860. : i != null && (o = [WA(s[0])]),
  14861. { sourceList: o, upstreamSignList: l }
  14862. )
  14863. }),
  14864. (r.prototype._isDirty = function () {
  14865. if (this._dirty) return !0
  14866. for (
  14867. var t = this._getUpstreamSourceManagers(), e = 0;
  14868. e < t.length;
  14869. e++
  14870. ) {
  14871. var n = t[e]
  14872. if (n._isDirty() || this._upstreamSignList[e] !== n._getVersionSign())
  14873. return !0
  14874. }
  14875. }),
  14876. (r.prototype.getSource = function (t) {
  14877. t = t || 0
  14878. var e = this._sourceList[t]
  14879. if (!e) {
  14880. var n = this._getUpstreamSourceManagers()
  14881. return n[0] && n[0].getSource(t)
  14882. }
  14883. return e
  14884. }),
  14885. (r.prototype.getSharedDataStore = function (t) {
  14886. var e = t.makeStoreSchema()
  14887. return this._innerGetDataStore(e.dimensions, t.source, e.hash)
  14888. }),
  14889. (r.prototype._innerGetDataStore = function (t, e, n) {
  14890. var i = 0,
  14891. a = this._storeList,
  14892. o = a[i]
  14893. o || (o = a[i] = {})
  14894. var s = o[n]
  14895. if (!s) {
  14896. var l = this._getUpstreamSourceManagers()[0]
  14897. Is(this._sourceHost) && l
  14898. ? (s = l._innerGetDataStore(t, e, n))
  14899. : ((s = new zf()), s.initData(new Vg(e, t.length), t)),
  14900. (o[n] = s)
  14901. }
  14902. return s
  14903. }),
  14904. (r.prototype._getUpstreamSourceManagers = function () {
  14905. var t = this._sourceHost
  14906. if (Is(t)) {
  14907. var e = Cf(t)
  14908. return e ? [e.getSourceManager()] : []
  14909. } else
  14910. return G(pA(t), function (n) {
  14911. return n.getSourceManager()
  14912. })
  14913. }),
  14914. (r.prototype._getSourceMetaRawOption = function () {
  14915. var t = this._sourceHost,
  14916. e,
  14917. n,
  14918. i
  14919. if (Is(t))
  14920. (e = t.get('seriesLayoutBy', !0)),
  14921. (n = t.get('sourceHeader', !0)),
  14922. (i = t.get('dimensions', !0))
  14923. else if (!this._getUpstreamSourceManagers().length) {
  14924. var a = t
  14925. ;(e = a.get('seriesLayoutBy', !0)),
  14926. (n = a.get('sourceHeader', !0)),
  14927. (i = a.get('dimensions', !0))
  14928. }
  14929. return { seriesLayoutBy: e, sourceHeader: n, dimensions: i }
  14930. }),
  14931. r
  14932. )
  14933. })()
  14934. function nm(r) {
  14935. var t = r.option.transform
  14936. t && oo(r.option.transform)
  14937. }
  14938. function Is(r) {
  14939. return r.mainType === 'series'
  14940. }
  14941. function im(r) {
  14942. throw new Error(r)
  14943. }
  14944. var am = 'line-height:1'
  14945. function om(r, t) {
  14946. var e = r.color || '#6e7079',
  14947. n = r.fontSize || 12,
  14948. i = r.fontWeight || '400',
  14949. a = r.color || '#464646',
  14950. o = r.fontSize || 14,
  14951. s = r.fontWeight || '900'
  14952. return t === 'html'
  14953. ? {
  14954. nameStyle:
  14955. 'font-size:' +
  14956. me(n + '') +
  14957. 'px;color:' +
  14958. me(e) +
  14959. ';font-weight:' +
  14960. me(i + ''),
  14961. valueStyle:
  14962. 'font-size:' +
  14963. me(o + '') +
  14964. 'px;color:' +
  14965. me(a) +
  14966. ';font-weight:' +
  14967. me(s + '')
  14968. }
  14969. : {
  14970. nameStyle: { fontSize: n, fill: e, fontWeight: i },
  14971. valueStyle: { fontSize: o, fill: a, fontWeight: s }
  14972. }
  14973. }
  14974. var dM = [0, 10, 20, 30],
  14975. pM = [
  14976. '',
  14977. `
  14978. `,
  14979. `
  14980. `,
  14981. `
  14982. `
  14983. ]
  14984. function Aa(r, t) {
  14985. return (t.type = r), t
  14986. }
  14987. function Vf(r) {
  14988. return r.type === 'section'
  14989. }
  14990. function sm(r) {
  14991. return Vf(r) ? gM : mM
  14992. }
  14993. function lm(r) {
  14994. if (Vf(r)) {
  14995. var t = 0,
  14996. e = r.blocks.length,
  14997. n = e > 1 || (e > 0 && !r.noHeader)
  14998. return (
  14999. A(r.blocks, function (i) {
  15000. var a = lm(i)
  15001. a >= t && (t = a + +(n && (!a || (Vf(i) && !i.noHeader))))
  15002. }),
  15003. t
  15004. )
  15005. }
  15006. return 0
  15007. }
  15008. function gM(r, t, e, n) {
  15009. var i = t.noHeader,
  15010. a = yM(lm(t)),
  15011. o = [],
  15012. s = t.blocks || []
  15013. Ve(!s || z(s)), (s = s || [])
  15014. var l = r.orderMode
  15015. if (t.sortBlocks && l) {
  15016. s = s.slice()
  15017. var u = { valueAsc: 'asc', valueDesc: 'desc' }
  15018. if (nr(u, l)) {
  15019. var f = new Kg(u[l], null)
  15020. s.sort(function (d, p) {
  15021. return f.evaluate(d.sortParam, p.sortParam)
  15022. })
  15023. } else l === 'seriesDesc' && s.reverse()
  15024. }
  15025. A(s, function (d, p) {
  15026. var g = t.valueFormatter,
  15027. m = sm(d)(
  15028. g ? N(N({}, r), { valueFormatter: g }) : r,
  15029. d,
  15030. p > 0 ? a.html : 0,
  15031. n
  15032. )
  15033. m != null && o.push(m)
  15034. })
  15035. var h =
  15036. r.renderMode === 'richText'
  15037. ? o.join(a.richText)
  15038. : Gf(o.join(''), i ? e : a.html)
  15039. if (i) return h
  15040. var c = wf(t.header, 'ordinal', r.useUTC),
  15041. v = om(n, r.renderMode).nameStyle
  15042. return r.renderMode === 'richText'
  15043. ? fm(r, c, v) + a.richText + h
  15044. : Gf('<div style="' + v + ';' + am + ';">' + me(c) + '</div>' + h, e)
  15045. }
  15046. function mM(r, t, e, n) {
  15047. var i = r.renderMode,
  15048. a = t.noName,
  15049. o = t.noValue,
  15050. s = !t.markerType,
  15051. l = t.name,
  15052. u = r.useUTC,
  15053. f =
  15054. t.valueFormatter ||
  15055. r.valueFormatter ||
  15056. function (S) {
  15057. return (
  15058. (S = z(S) ? S : [S]),
  15059. G(S, function (w, x) {
  15060. return wf(w, z(v) ? v[x] : v, u)
  15061. })
  15062. )
  15063. }
  15064. if (!(a && o)) {
  15065. var h = s
  15066. ? ''
  15067. : r.markupStyleCreator.makeTooltipMarker(
  15068. t.markerType,
  15069. t.markerColor || '#333',
  15070. i
  15071. ),
  15072. c = a ? '' : wf(l, 'ordinal', u),
  15073. v = t.valueType,
  15074. d = o ? [] : f(t.value),
  15075. p = !s || !a,
  15076. g = !s && a,
  15077. m = om(n, i),
  15078. y = m.nameStyle,
  15079. _ = m.valueStyle
  15080. return i === 'richText'
  15081. ? (s ? '' : h) + (a ? '' : fm(r, c, y)) + (o ? '' : xM(r, d, p, g, _))
  15082. : Gf(
  15083. (s ? '' : h) + (a ? '' : _M(c, !s, y)) + (o ? '' : SM(d, p, g, _)),
  15084. e
  15085. )
  15086. }
  15087. }
  15088. function um(r, t, e, n, i, a) {
  15089. if (!!r) {
  15090. var o = sm(r),
  15091. s = {
  15092. useUTC: i,
  15093. renderMode: e,
  15094. orderMode: n,
  15095. markupStyleCreator: t,
  15096. valueFormatter: r.valueFormatter
  15097. }
  15098. return o(s, r, 0, a)
  15099. }
  15100. }
  15101. function yM(r) {
  15102. return { html: dM[r], richText: pM[r] }
  15103. }
  15104. function Gf(r, t) {
  15105. var e = '<div style="clear:both"></div>',
  15106. n = 'margin: ' + t + 'px 0 0'
  15107. return '<div style="' + n + ';' + am + ';">' + r + e + '</div>'
  15108. }
  15109. function _M(r, t, e) {
  15110. var n = t ? 'margin-left:2px' : ''
  15111. return '<span style="' + e + ';' + n + '">' + me(r) + '</span>'
  15112. }
  15113. function SM(r, t, e, n) {
  15114. var i = e ? '10px' : '20px',
  15115. a = t ? 'float:right;margin-left:' + i : ''
  15116. return (
  15117. (r = z(r) ? r : [r]),
  15118. '<span style="' +
  15119. a +
  15120. ';' +
  15121. n +
  15122. '">' +
  15123. G(r, function (o) {
  15124. return me(o)
  15125. }).join('&nbsp;&nbsp;') +
  15126. '</span>'
  15127. )
  15128. }
  15129. function fm(r, t, e) {
  15130. return r.markupStyleCreator.wrapRichTextStyle(t, e)
  15131. }
  15132. function xM(r, t, e, n, i) {
  15133. var a = [i],
  15134. o = n ? 10 : 20
  15135. return (
  15136. e && a.push({ padding: [0, 0, 0, o], align: 'right' }),
  15137. r.markupStyleCreator.wrapRichTextStyle(z(t) ? t.join(' ') : t, a)
  15138. )
  15139. }
  15140. function wM(r, t) {
  15141. var e = r.getData().getItemVisual(t, 'style'),
  15142. n = e[r.visualDrawType]
  15143. return yn(n)
  15144. }
  15145. function hm(r, t) {
  15146. var e = r.get('padding')
  15147. return e != null ? e : t === 'richText' ? [8, 10] : 10
  15148. }
  15149. var Hf = (function () {
  15150. function r() {
  15151. ;(this.richTextStyles = {}), (this._nextStyleNameId = Kc())
  15152. }
  15153. return (
  15154. (r.prototype._generateStyleName = function () {
  15155. return '__EC_aUTo_' + this._nextStyleNameId++
  15156. }),
  15157. (r.prototype.makeTooltipMarker = function (t, e, n) {
  15158. var i = n === 'richText' ? this._generateStyleName() : null,
  15159. a = aA({ color: e, type: t, renderMode: n, markerId: i })
  15160. return W(a) ? a : ((this.richTextStyles[i] = a.style), a.content)
  15161. }),
  15162. (r.prototype.wrapRichTextStyle = function (t, e) {
  15163. var n = {}
  15164. z(e)
  15165. ? A(e, function (a) {
  15166. return N(n, a)
  15167. })
  15168. : N(n, e)
  15169. var i = this._generateStyleName()
  15170. return (this.richTextStyles[i] = n), '{' + i + '|' + t + '}'
  15171. }),
  15172. r
  15173. )
  15174. })()
  15175. function bM(r) {
  15176. var t = r.series,
  15177. e = r.dataIndex,
  15178. n = r.multipleSeries,
  15179. i = t.getData(),
  15180. a = i.mapDimensionsAll('defaultedTooltip'),
  15181. o = a.length,
  15182. s = t.getRawValue(e),
  15183. l = z(s),
  15184. u = wM(t, e),
  15185. f,
  15186. h,
  15187. c,
  15188. v
  15189. if (o > 1 || (l && !o)) {
  15190. var d = TM(s, t, e, a, u)
  15191. ;(f = d.inlineValues),
  15192. (h = d.inlineValueTypes),
  15193. (c = d.blocks),
  15194. (v = d.inlineValues[0])
  15195. } else if (o) {
  15196. var p = i.getDimensionInfo(a[0])
  15197. ;(v = f = pi(i, e, a[0])), (h = p.type)
  15198. } else v = f = l ? s[0] : s
  15199. var g = Au(t),
  15200. m = (g && t.name) || '',
  15201. y = i.getName(e),
  15202. _ = n ? m : y
  15203. return Aa('section', {
  15204. header: m,
  15205. noHeader: n || !g,
  15206. sortParam: v,
  15207. blocks: [
  15208. Aa('nameValue', {
  15209. markerType: 'item',
  15210. markerColor: u,
  15211. name: _,
  15212. noName: !Ge(_),
  15213. value: f,
  15214. valueType: h
  15215. })
  15216. ].concat(c || [])
  15217. })
  15218. }
  15219. function TM(r, t, e, n, i) {
  15220. var a = t.getData(),
  15221. o = Sr(
  15222. r,
  15223. function (h, c, v) {
  15224. var d = a.getDimensionInfo(v)
  15225. return (h = h || (d && d.tooltip !== !1 && d.displayName != null))
  15226. },
  15227. !1
  15228. ),
  15229. s = [],
  15230. l = [],
  15231. u = []
  15232. n.length
  15233. ? A(n, function (h) {
  15234. f(pi(a, e, h), h)
  15235. })
  15236. : A(r, f)
  15237. function f(h, c) {
  15238. var v = a.getDimensionInfo(c)
  15239. !v ||
  15240. v.otherDims.tooltip === !1 ||
  15241. (o
  15242. ? u.push(
  15243. Aa('nameValue', {
  15244. markerType: 'subItem',
  15245. markerColor: i,
  15246. name: v.displayName,
  15247. value: h,
  15248. valueType: v.type
  15249. })
  15250. )
  15251. : (s.push(h), l.push(v.type)))
  15252. }
  15253. return { inlineValues: s, inlineValueTypes: l, blocks: u }
  15254. }
  15255. var Rr = wt()
  15256. function Ls(r, t) {
  15257. return r.getName(t) || r.getId(t)
  15258. }
  15259. var Ps = '__universalTransitionEnabled',
  15260. Rs = (function (r) {
  15261. B(t, r)
  15262. function t() {
  15263. var e = (r !== null && r.apply(this, arguments)) || this
  15264. return (e._selectedDataIndicesMap = {}), e
  15265. }
  15266. return (
  15267. (t.prototype.init = function (e, n, i) {
  15268. ;(this.seriesIndex = this.componentIndex),
  15269. (this.dataTask = Ta({ count: AM, reset: MM })),
  15270. (this.dataTask.context = { model: this }),
  15271. this.mergeDefaultAndTheme(e, i)
  15272. var a = (Rr(this).sourceManager = new rm(this))
  15273. a.prepareSource()
  15274. var o = this.getInitialData(e, i)
  15275. cm(o, this),
  15276. (this.dataTask.context.data = o),
  15277. (Rr(this).dataBeforeProcessed = o),
  15278. vm(this),
  15279. this._initSelectedMapFromData(o)
  15280. }),
  15281. (t.prototype.mergeDefaultAndTheme = function (e, n) {
  15282. var i = ya(this),
  15283. a = i ? _a(e) : {},
  15284. o = this.subType
  15285. _t.hasClass(o) && (o += 'Series'),
  15286. nt(e, n.getTheme().get(this.subType)),
  15287. nt(e, this.getDefaultOption()),
  15288. Cu(e, 'label', ['show']),
  15289. this.fillDataTextStyle(e.data),
  15290. i && hi(e, a, i)
  15291. }),
  15292. (t.prototype.mergeOption = function (e, n) {
  15293. ;(e = nt(this.option, e, !0)), this.fillDataTextStyle(e.data)
  15294. var i = ya(this)
  15295. i && hi(this.option, e, i)
  15296. var a = Rr(this).sourceManager
  15297. a.dirty(), a.prepareSource()
  15298. var o = this.getInitialData(e, n)
  15299. cm(o, this),
  15300. this.dataTask.dirty(),
  15301. (this.dataTask.context.data = o),
  15302. (Rr(this).dataBeforeProcessed = o),
  15303. vm(this),
  15304. this._initSelectedMapFromData(o)
  15305. }),
  15306. (t.prototype.fillDataTextStyle = function (e) {
  15307. if (e && !ie(e))
  15308. for (var n = ['show'], i = 0; i < e.length; i++)
  15309. e[i] && e[i].label && Cu(e[i], 'label', n)
  15310. }),
  15311. (t.prototype.getInitialData = function (e, n) {}),
  15312. (t.prototype.appendData = function (e) {
  15313. var n = this.getRawData()
  15314. n.appendData(e.data)
  15315. }),
  15316. (t.prototype.getData = function (e) {
  15317. var n = Wf(this)
  15318. if (n) {
  15319. var i = n.context.data
  15320. return e == null ? i : i.getLinkedData(e)
  15321. } else return Rr(this).data
  15322. }),
  15323. (t.prototype.getAllData = function () {
  15324. var e = this.getData()
  15325. return e && e.getLinkedDataAll ? e.getLinkedDataAll() : [{ data: e }]
  15326. }),
  15327. (t.prototype.setData = function (e) {
  15328. var n = Wf(this)
  15329. if (n) {
  15330. var i = n.context
  15331. ;(i.outputData = e), n !== this.dataTask && (i.data = e)
  15332. }
  15333. Rr(this).data = e
  15334. }),
  15335. (t.prototype.getEncode = function () {
  15336. var e = this.get('encode', !0)
  15337. if (e) return q(e)
  15338. }),
  15339. (t.prototype.getSourceManager = function () {
  15340. return Rr(this).sourceManager
  15341. }),
  15342. (t.prototype.getSource = function () {
  15343. return this.getSourceManager().getSource()
  15344. }),
  15345. (t.prototype.getRawData = function () {
  15346. return Rr(this).dataBeforeProcessed
  15347. }),
  15348. (t.prototype.getColorBy = function () {
  15349. var e = this.get('colorBy')
  15350. return e || 'series'
  15351. }),
  15352. (t.prototype.isColorBySeries = function () {
  15353. return this.getColorBy() === 'series'
  15354. }),
  15355. (t.prototype.getBaseAxis = function () {
  15356. var e = this.coordinateSystem
  15357. return e && e.getBaseAxis && e.getBaseAxis()
  15358. }),
  15359. (t.prototype.formatTooltip = function (e, n, i) {
  15360. return bM({ series: this, dataIndex: e, multipleSeries: n })
  15361. }),
  15362. (t.prototype.isAnimationEnabled = function () {
  15363. var e = this.ecModel
  15364. if (at.node && !(e && e.ssr)) return !1
  15365. var n = this.getShallow('animation')
  15366. return (
  15367. n &&
  15368. this.getData().count() > this.getShallow('animationThreshold') &&
  15369. (n = !1),
  15370. !!n
  15371. )
  15372. }),
  15373. (t.prototype.restoreData = function () {
  15374. this.dataTask.dirty()
  15375. }),
  15376. (t.prototype.getColorFromPalette = function (e, n, i) {
  15377. var a = this.ecModel,
  15378. o = Mf.prototype.getColorFromPalette.call(this, e, n, i)
  15379. return o || (o = a.getColorFromPalette(e, n, i)), o
  15380. }),
  15381. (t.prototype.coordDimToDataDim = function (e) {
  15382. return this.getRawData().mapDimensionsAll(e)
  15383. }),
  15384. (t.prototype.getProgressive = function () {
  15385. return this.get('progressive')
  15386. }),
  15387. (t.prototype.getProgressiveThreshold = function () {
  15388. return this.get('progressiveThreshold')
  15389. }),
  15390. (t.prototype.select = function (e, n) {
  15391. this._innerSelect(this.getData(n), e)
  15392. }),
  15393. (t.prototype.unselect = function (e, n) {
  15394. var i = this.option.selectedMap
  15395. if (!!i) {
  15396. var a = this.option.selectedMode,
  15397. o = this.getData(n)
  15398. if (a === 'series' || i === 'all') {
  15399. ;(this.option.selectedMap = {}), (this._selectedDataIndicesMap = {})
  15400. return
  15401. }
  15402. for (var s = 0; s < e.length; s++) {
  15403. var l = e[s],
  15404. u = Ls(o, l)
  15405. ;(i[u] = !1), (this._selectedDataIndicesMap[u] = -1)
  15406. }
  15407. }
  15408. }),
  15409. (t.prototype.toggleSelect = function (e, n) {
  15410. for (var i = [], a = 0; a < e.length; a++)
  15411. (i[0] = e[a]),
  15412. this.isSelected(e[a], n) ? this.unselect(i, n) : this.select(i, n)
  15413. }),
  15414. (t.prototype.getSelectedDataIndices = function () {
  15415. if (this.option.selectedMap === 'all')
  15416. return [].slice.call(this.getData().getIndices())
  15417. for (
  15418. var e = this._selectedDataIndicesMap, n = xt(e), i = [], a = 0;
  15419. a < n.length;
  15420. a++
  15421. ) {
  15422. var o = e[n[a]]
  15423. o >= 0 && i.push(o)
  15424. }
  15425. return i
  15426. }),
  15427. (t.prototype.isSelected = function (e, n) {
  15428. var i = this.option.selectedMap
  15429. if (!i) return !1
  15430. var a = this.getData(n)
  15431. return (
  15432. (i === 'all' || i[Ls(a, e)]) &&
  15433. !a.getItemModel(e).get(['select', 'disabled'])
  15434. )
  15435. }),
  15436. (t.prototype.isUniversalTransitionEnabled = function () {
  15437. if (this[Ps]) return !0
  15438. var e = this.option.universalTransition
  15439. return e ? (e === !0 ? !0 : e && e.enabled) : !1
  15440. }),
  15441. (t.prototype._innerSelect = function (e, n) {
  15442. var i,
  15443. a,
  15444. o = this.option,
  15445. s = o.selectedMode,
  15446. l = n.length
  15447. if (!(!s || !l)) {
  15448. if (s === 'series') o.selectedMap = 'all'
  15449. else if (s === 'multiple') {
  15450. Y(o.selectedMap) || (o.selectedMap = {})
  15451. for (var u = o.selectedMap, f = 0; f < l; f++) {
  15452. var h = n[f],
  15453. c = Ls(e, h)
  15454. ;(u[c] = !0), (this._selectedDataIndicesMap[c] = e.getRawIndex(h))
  15455. }
  15456. } else if (s === 'single' || s === !0) {
  15457. var v = n[l - 1],
  15458. c = Ls(e, v)
  15459. ;(o.selectedMap = ((i = {}), (i[c] = !0), i)),
  15460. (this._selectedDataIndicesMap =
  15461. ((a = {}), (a[c] = e.getRawIndex(v)), a))
  15462. }
  15463. }
  15464. }),
  15465. (t.prototype._initSelectedMapFromData = function (e) {
  15466. if (!this.option.selectedMap) {
  15467. var n = []
  15468. e.hasItemOption &&
  15469. e.each(function (i) {
  15470. var a = e.getRawDataItem(i)
  15471. a && a.selected && n.push(i)
  15472. }),
  15473. n.length > 0 && this._innerSelect(e, n)
  15474. }
  15475. }),
  15476. (t.registerClass = function (e) {
  15477. return _t.registerClass(e)
  15478. }),
  15479. (t.protoInitialize = (function () {
  15480. var e = t.prototype
  15481. ;(e.type = 'series.__base__'),
  15482. (e.seriesIndex = 0),
  15483. (e.ignoreStyleOnData = !1),
  15484. (e.hasSymbolVisual = !1),
  15485. (e.defaultSymbol = 'circle'),
  15486. (e.visualStyleAccessPath = 'itemStyle'),
  15487. (e.visualDrawType = 'fill')
  15488. })()),
  15489. t
  15490. )
  15491. })(_t)
  15492. ze(Rs, KA)
  15493. ze(Rs, Mf)
  15494. sd(Rs, _t)
  15495. function vm(r) {
  15496. var t = r.name
  15497. Au(r) || (r.name = CM(r) || t)
  15498. }
  15499. function CM(r) {
  15500. var t = r.getRawData(),
  15501. e = t.mapDimensionsAll('seriesName'),
  15502. n = []
  15503. return (
  15504. A(e, function (i) {
  15505. var a = t.getDimensionInfo(i)
  15506. a.displayName && n.push(a.displayName)
  15507. }),
  15508. n.join(' ')
  15509. )
  15510. }
  15511. function AM(r) {
  15512. return r.model.getRawData().count()
  15513. }
  15514. function MM(r) {
  15515. var t = r.model
  15516. return t.setData(t.getRawData().cloneShallow()), DM
  15517. }
  15518. function DM(r, t) {
  15519. t.outputData &&
  15520. r.end > t.outputData.count() &&
  15521. t.model.getRawData().cloneShallow(t.outputData)
  15522. }
  15523. function cm(r, t) {
  15524. A(Ix(r.CHANGABLE_METHODS, r.DOWNSAMPLE_METHODS), function (e) {
  15525. r.wrapMethod(e, lt(IM, t))
  15526. })
  15527. }
  15528. function IM(r, t) {
  15529. var e = Wf(r)
  15530. return e && e.setOutputEnd((t || this).count()), t
  15531. }
  15532. function Wf(r) {
  15533. var t = (r.ecModel || {}).scheduler,
  15534. e = t && t.getPipeline(r.uid)
  15535. if (e) {
  15536. var n = e.currentTask
  15537. if (n) {
  15538. var i = n.agentStubMap
  15539. i && (n = i.get(r.uid))
  15540. }
  15541. return n
  15542. }
  15543. }
  15544. var Er = Rs,
  15545. Uf = (function () {
  15546. function r() {
  15547. ;(this.group = new At()), (this.uid = ca('viewComponent'))
  15548. }
  15549. return (
  15550. (r.prototype.init = function (t, e) {}),
  15551. (r.prototype.render = function (t, e, n, i) {}),
  15552. (r.prototype.dispose = function (t, e) {}),
  15553. (r.prototype.updateView = function (t, e, n, i) {}),
  15554. (r.prototype.updateLayout = function (t, e, n, i) {}),
  15555. (r.prototype.updateVisual = function (t, e, n, i) {}),
  15556. (r.prototype.toggleBlurSeries = function (t, e, n) {}),
  15557. (r.prototype.eachRendered = function (t) {
  15558. var e = this.group
  15559. e && e.traverse(t)
  15560. }),
  15561. r
  15562. )
  15563. })()
  15564. Du(Uf)
  15565. No(Uf)
  15566. var xe = Uf
  15567. function Yf() {
  15568. var r = wt()
  15569. return function (t) {
  15570. var e = r(t),
  15571. n = t.pipelineContext,
  15572. i = !!e.large,
  15573. a = !!e.progressiveRender,
  15574. o = (e.large = !!(n && n.large)),
  15575. s = (e.progressiveRender = !!(n && n.progressiveRender))
  15576. return (i !== o || a !== s) && 'reset'
  15577. }
  15578. }
  15579. var dm = wt(),
  15580. LM = Yf(),
  15581. Zf = (function () {
  15582. function r() {
  15583. ;(this.group = new At()),
  15584. (this.uid = ca('viewChart')),
  15585. (this.renderTask = Ta({ plan: PM, reset: RM })),
  15586. (this.renderTask.context = { view: this })
  15587. }
  15588. return (
  15589. (r.prototype.init = function (t, e) {}),
  15590. (r.prototype.render = function (t, e, n, i) {}),
  15591. (r.prototype.highlight = function (t, e, n, i) {
  15592. var a = t.getData(i && i.dataType)
  15593. !a || gm(a, i, 'emphasis')
  15594. }),
  15595. (r.prototype.downplay = function (t, e, n, i) {
  15596. var a = t.getData(i && i.dataType)
  15597. !a || gm(a, i, 'normal')
  15598. }),
  15599. (r.prototype.remove = function (t, e) {
  15600. this.group.removeAll()
  15601. }),
  15602. (r.prototype.dispose = function (t, e) {}),
  15603. (r.prototype.updateView = function (t, e, n, i) {
  15604. this.render(t, e, n, i)
  15605. }),
  15606. (r.prototype.updateLayout = function (t, e, n, i) {
  15607. this.render(t, e, n, i)
  15608. }),
  15609. (r.prototype.updateVisual = function (t, e, n, i) {
  15610. this.render(t, e, n, i)
  15611. }),
  15612. (r.prototype.eachRendered = function (t) {
  15613. hs(this.group, t)
  15614. }),
  15615. (r.markUpdateMethod = function (t, e) {
  15616. dm(t).updateMethod = e
  15617. }),
  15618. (r.protoInitialize = (function () {
  15619. var t = r.prototype
  15620. t.type = 'chart'
  15621. })()),
  15622. r
  15623. )
  15624. })()
  15625. function pm(r, t, e) {
  15626. r && Ju(r) && (t === 'emphasis' ? ei : ri)(r, e)
  15627. }
  15628. function gm(r, t, e) {
  15629. var n = Jr(r, t),
  15630. i = t && t.highlightKey != null ? FT(t.highlightKey) : null
  15631. n != null
  15632. ? A(Mt(n), function (a) {
  15633. pm(r.getItemGraphicEl(a), e, i)
  15634. })
  15635. : r.eachItemGraphicEl(function (a) {
  15636. pm(a, e, i)
  15637. })
  15638. }
  15639. Du(Zf)
  15640. No(Zf)
  15641. function PM(r) {
  15642. return LM(r.model)
  15643. }
  15644. function RM(r) {
  15645. var t = r.model,
  15646. e = r.ecModel,
  15647. n = r.api,
  15648. i = r.payload,
  15649. a = t.pipelineContext.progressiveRender,
  15650. o = r.view,
  15651. s = i && dm(i).updateMethod,
  15652. l = a ? 'incrementalPrepareRender' : s && o[s] ? s : 'render'
  15653. return l !== 'render' && o[l](t, e, n, i), EM[l]
  15654. }
  15655. var EM = {
  15656. incrementalPrepareRender: {
  15657. progress: function (r, t) {
  15658. t.view.incrementalRender(r, t.model, t.ecModel, t.api, t.payload)
  15659. }
  15660. },
  15661. render: {
  15662. forceFirstProgress: !0,
  15663. progress: function (r, t) {
  15664. t.view.render(t.model, t.ecModel, t.api, t.payload)
  15665. }
  15666. }
  15667. },
  15668. Qe = Zf,
  15669. Es = '\0__throttleOriginMethod',
  15670. mm = '\0__throttleRate',
  15671. ym = '\0__throttleType'
  15672. function $f(r, t, e) {
  15673. var n,
  15674. i = 0,
  15675. a = 0,
  15676. o = null,
  15677. s,
  15678. l,
  15679. u,
  15680. f
  15681. t = t || 0
  15682. function h() {
  15683. ;(a = new Date().getTime()), (o = null), r.apply(l, u || [])
  15684. }
  15685. var c = function () {
  15686. for (var v = [], d = 0; d < arguments.length; d++) v[d] = arguments[d]
  15687. ;(n = new Date().getTime()), (l = this), (u = v)
  15688. var p = f || t,
  15689. g = f || e
  15690. ;(f = null),
  15691. (s = n - (g ? i : a) - p),
  15692. clearTimeout(o),
  15693. g ? (o = setTimeout(h, p)) : s >= 0 ? h() : (o = setTimeout(h, -s)),
  15694. (i = n)
  15695. }
  15696. return (
  15697. (c.clear = function () {
  15698. o && (clearTimeout(o), (o = null))
  15699. }),
  15700. (c.debounceNextCall = function (v) {
  15701. f = v
  15702. }),
  15703. c
  15704. )
  15705. }
  15706. function Os(r, t, e, n) {
  15707. var i = r[t]
  15708. if (!!i) {
  15709. var a = i[Es] || i,
  15710. o = i[ym],
  15711. s = i[mm]
  15712. if (s !== e || o !== n) {
  15713. if (e == null || !n) return (r[t] = a)
  15714. ;(i = r[t] = $f(a, e, n === 'debounce')),
  15715. (i[Es] = a),
  15716. (i[ym] = n),
  15717. (i[mm] = e)
  15718. }
  15719. return i
  15720. }
  15721. }
  15722. function ks(r, t) {
  15723. var e = r[t]
  15724. e && e[Es] && (e.clear && e.clear(), (r[t] = e[Es]))
  15725. }
  15726. var _m = wt(),
  15727. Sm = { itemStyle: ta($p, !0), lineStyle: ta(Zp, !0) },
  15728. OM = { lineStyle: 'stroke', itemStyle: 'fill' }
  15729. function xm(r, t) {
  15730. var e = r.visualStyleMapper || Sm[t]
  15731. return e || (console.warn("Unkown style type '" + t + "'."), Sm.itemStyle)
  15732. }
  15733. function wm(r, t) {
  15734. var e = r.visualDrawType || OM[t]
  15735. return e || (console.warn("Unkown style type '" + t + "'."), 'fill')
  15736. }
  15737. var kM = {
  15738. createOnAllSeries: !0,
  15739. performRawSeries: !0,
  15740. reset: function (r, t) {
  15741. var e = r.getData(),
  15742. n = r.visualStyleAccessPath || 'itemStyle',
  15743. i = r.getModel(n),
  15744. a = xm(r, n),
  15745. o = a(i),
  15746. s = i.getShallow('decal')
  15747. s && (e.setVisual('decal', s), (s.dirty = !0))
  15748. var l = wm(r, n),
  15749. u = o[l],
  15750. f = Q(u) ? u : null,
  15751. h = o.fill === 'auto' || o.stroke === 'auto'
  15752. if (!o[l] || f || h) {
  15753. var c = r.getColorFromPalette(r.name, null, t.getSeriesCount())
  15754. o[l] || ((o[l] = c), e.setVisual('colorFromPalette', !0)),
  15755. (o.fill = o.fill === 'auto' || Q(o.fill) ? c : o.fill),
  15756. (o.stroke = o.stroke === 'auto' || Q(o.stroke) ? c : o.stroke)
  15757. }
  15758. if (
  15759. (e.setVisual('style', o),
  15760. e.setVisual('drawType', l),
  15761. !t.isSeriesFiltered(r) && f)
  15762. )
  15763. return (
  15764. e.setVisual('colorFromPalette', !1),
  15765. {
  15766. dataEach: function (v, d) {
  15767. var p = r.getDataParams(d),
  15768. g = N({}, o)
  15769. ;(g[l] = f(p)), v.setItemVisual(d, 'style', g)
  15770. }
  15771. }
  15772. )
  15773. }
  15774. },
  15775. Ma = new Nt(),
  15776. BM = {
  15777. createOnAllSeries: !0,
  15778. performRawSeries: !0,
  15779. reset: function (r, t) {
  15780. if (!(r.ignoreStyleOnData || t.isSeriesFiltered(r))) {
  15781. var e = r.getData(),
  15782. n = r.visualStyleAccessPath || 'itemStyle',
  15783. i = xm(r, n),
  15784. a = e.getVisual('drawType')
  15785. return {
  15786. dataEach: e.hasItemOption
  15787. ? function (o, s) {
  15788. var l = o.getRawDataItem(s)
  15789. if (l && l[n]) {
  15790. Ma.option = l[n]
  15791. var u = i(Ma),
  15792. f = o.ensureUniqueItemVisual(s, 'style')
  15793. N(f, u),
  15794. Ma.option.decal &&
  15795. (o.setItemVisual(s, 'decal', Ma.option.decal),
  15796. (Ma.option.decal.dirty = !0)),
  15797. a in u && o.setItemVisual(s, 'colorFromPalette', !1)
  15798. }
  15799. }
  15800. : null
  15801. }
  15802. }
  15803. }
  15804. },
  15805. NM = {
  15806. performRawSeries: !0,
  15807. overallReset: function (r) {
  15808. var t = q()
  15809. r.eachSeries(function (e) {
  15810. var n = e.getColorBy()
  15811. if (!e.isColorBySeries()) {
  15812. var i = e.type + '-' + n,
  15813. a = t.get(i)
  15814. a || ((a = {}), t.set(i, a)), (_m(e).scope = a)
  15815. }
  15816. }),
  15817. r.eachSeries(function (e) {
  15818. if (!(e.isColorBySeries() || r.isSeriesFiltered(e))) {
  15819. var n = e.getRawData(),
  15820. i = {},
  15821. a = e.getData(),
  15822. o = _m(e).scope,
  15823. s = e.visualStyleAccessPath || 'itemStyle',
  15824. l = wm(e, s)
  15825. a.each(function (u) {
  15826. var f = a.getRawIndex(u)
  15827. i[f] = u
  15828. }),
  15829. n.each(function (u) {
  15830. var f = i[u],
  15831. h = a.getItemVisual(f, 'colorFromPalette')
  15832. if (h) {
  15833. var c = a.ensureUniqueItemVisual(f, 'style'),
  15834. v = n.getName(u) || u + '',
  15835. d = n.count()
  15836. c[l] = e.getColorFromPalette(v, o, d)
  15837. }
  15838. })
  15839. }
  15840. })
  15841. }
  15842. },
  15843. Bs = Math.PI
  15844. function FM(r, t) {
  15845. ;(t = t || {}),
  15846. j(t, {
  15847. text: 'loading',
  15848. textColor: '#000',
  15849. fontSize: 12,
  15850. fontWeight: 'normal',
  15851. fontStyle: 'normal',
  15852. fontFamily: 'sans-serif',
  15853. maskColor: 'rgba(255, 255, 255, 0.8)',
  15854. showSpinner: !0,
  15855. color: '#5470c6',
  15856. spinnerRadius: 10,
  15857. lineWidth: 5,
  15858. zlevel: 0
  15859. })
  15860. var e = new At(),
  15861. n = new St({ style: { fill: t.maskColor }, zlevel: t.zlevel, z: 1e4 })
  15862. e.add(n)
  15863. var i = new Et({
  15864. style: {
  15865. text: t.text,
  15866. fill: t.textColor,
  15867. fontSize: t.fontSize,
  15868. fontWeight: t.fontWeight,
  15869. fontStyle: t.fontStyle,
  15870. fontFamily: t.fontFamily
  15871. },
  15872. zlevel: t.zlevel,
  15873. z: 10001
  15874. }),
  15875. a = new St({
  15876. style: { fill: 'none' },
  15877. textContent: i,
  15878. textConfig: { position: 'right', distance: 10 },
  15879. zlevel: t.zlevel,
  15880. z: 10001
  15881. })
  15882. e.add(a)
  15883. var o
  15884. return (
  15885. t.showSpinner &&
  15886. ((o = new of({
  15887. shape: {
  15888. startAngle: -Bs / 2,
  15889. endAngle: -Bs / 2 + 0.1,
  15890. r: t.spinnerRadius
  15891. },
  15892. style: { stroke: t.color, lineCap: 'round', lineWidth: t.lineWidth },
  15893. zlevel: t.zlevel,
  15894. z: 10001
  15895. })),
  15896. o
  15897. .animateShape(!0)
  15898. .when(1e3, { endAngle: (Bs * 3) / 2 })
  15899. .start('circularInOut'),
  15900. o
  15901. .animateShape(!0)
  15902. .when(1e3, { startAngle: (Bs * 3) / 2 })
  15903. .delay(300)
  15904. .start('circularInOut'),
  15905. e.add(o)),
  15906. (e.resize = function () {
  15907. var s = i.getBoundingRect().width,
  15908. l = t.showSpinner ? t.spinnerRadius : 0,
  15909. u =
  15910. (r.getWidth() - l * 2 - (t.showSpinner && s ? 10 : 0) - s) / 2 -
  15911. (t.showSpinner && s ? 0 : 5 + s / 2) +
  15912. (t.showSpinner ? 0 : s / 2) +
  15913. (s ? 0 : l),
  15914. f = r.getHeight() / 2
  15915. t.showSpinner && o.setShape({ cx: u, cy: f }),
  15916. a.setShape({ x: u - l, y: f - l, width: l * 2, height: l * 2 }),
  15917. n.setShape({ x: 0, y: 0, width: r.getWidth(), height: r.getHeight() })
  15918. }),
  15919. e.resize(),
  15920. e
  15921. )
  15922. }
  15923. var zM = (function () {
  15924. function r(t, e, n, i) {
  15925. ;(this._stageTaskMap = q()),
  15926. (this.ecInstance = t),
  15927. (this.api = e),
  15928. (n = this._dataProcessorHandlers = n.slice()),
  15929. (i = this._visualHandlers = i.slice()),
  15930. (this._allHandlers = n.concat(i))
  15931. }
  15932. return (
  15933. (r.prototype.restoreData = function (t, e) {
  15934. t.restoreData(e),
  15935. this._stageTaskMap.each(function (n) {
  15936. var i = n.overallTask
  15937. i && i.dirty()
  15938. })
  15939. }),
  15940. (r.prototype.getPerformArgs = function (t, e) {
  15941. if (!!t.__pipeline) {
  15942. var n = this._pipelineMap.get(t.__pipeline.id),
  15943. i = n.context,
  15944. a =
  15945. !e &&
  15946. n.progressiveEnabled &&
  15947. (!i || i.progressiveRender) &&
  15948. t.__idxInPipeline > n.blockIndex,
  15949. o = a ? n.step : null,
  15950. s = i && i.modDataCount,
  15951. l = s != null ? Math.ceil(s / o) : null
  15952. return { step: o, modBy: l, modDataCount: s }
  15953. }
  15954. }),
  15955. (r.prototype.getPipeline = function (t) {
  15956. return this._pipelineMap.get(t)
  15957. }),
  15958. (r.prototype.updateStreamModes = function (t, e) {
  15959. var n = this._pipelineMap.get(t.uid),
  15960. i = t.getData(),
  15961. a = i.count(),
  15962. o =
  15963. n.progressiveEnabled &&
  15964. e.incrementalPrepareRender &&
  15965. a >= n.threshold,
  15966. s = t.get('large') && a >= t.get('largeThreshold'),
  15967. l = t.get('progressiveChunkMode') === 'mod' ? a : null
  15968. t.pipelineContext = n.context = {
  15969. progressiveRender: o,
  15970. modDataCount: l,
  15971. large: s
  15972. }
  15973. }),
  15974. (r.prototype.restorePipelines = function (t) {
  15975. var e = this,
  15976. n = (e._pipelineMap = q())
  15977. t.eachSeries(function (i) {
  15978. var a = i.getProgressive(),
  15979. o = i.uid
  15980. n.set(o, {
  15981. id: o,
  15982. head: null,
  15983. tail: null,
  15984. threshold: i.getProgressiveThreshold(),
  15985. progressiveEnabled:
  15986. a && !(i.preventIncremental && i.preventIncremental()),
  15987. blockIndex: -1,
  15988. step: Math.round(a || 700),
  15989. count: 0
  15990. }),
  15991. e._pipe(i, i.dataTask)
  15992. })
  15993. }),
  15994. (r.prototype.prepareStageTasks = function () {
  15995. var t = this._stageTaskMap,
  15996. e = this.api.getModel(),
  15997. n = this.api
  15998. A(
  15999. this._allHandlers,
  16000. function (i) {
  16001. var a = t.get(i.uid) || t.set(i.uid, {}),
  16002. o = ''
  16003. Ve(!(i.reset && i.overallReset), o),
  16004. i.reset && this._createSeriesStageTask(i, a, e, n),
  16005. i.overallReset && this._createOverallStageTask(i, a, e, n)
  16006. },
  16007. this
  16008. )
  16009. }),
  16010. (r.prototype.prepareView = function (t, e, n, i) {
  16011. var a = t.renderTask,
  16012. o = a.context
  16013. ;(o.model = e),
  16014. (o.ecModel = n),
  16015. (o.api = i),
  16016. (a.__block = !t.incrementalPrepareRender),
  16017. this._pipe(e, a)
  16018. }),
  16019. (r.prototype.performDataProcessorTasks = function (t, e) {
  16020. this._performStageTasks(this._dataProcessorHandlers, t, e, { block: !0 })
  16021. }),
  16022. (r.prototype.performVisualTasks = function (t, e, n) {
  16023. this._performStageTasks(this._visualHandlers, t, e, n)
  16024. }),
  16025. (r.prototype._performStageTasks = function (t, e, n, i) {
  16026. i = i || {}
  16027. var a = !1,
  16028. o = this
  16029. A(t, function (l, u) {
  16030. if (!(i.visualType && i.visualType !== l.visualType)) {
  16031. var f = o._stageTaskMap.get(l.uid),
  16032. h = f.seriesTaskMap,
  16033. c = f.overallTask
  16034. if (c) {
  16035. var v,
  16036. d = c.agentStubMap
  16037. d.each(function (g) {
  16038. s(i, g) && (g.dirty(), (v = !0))
  16039. }),
  16040. v && c.dirty(),
  16041. o.updatePayload(c, n)
  16042. var p = o.getPerformArgs(c, i.block)
  16043. d.each(function (g) {
  16044. g.perform(p)
  16045. }),
  16046. c.perform(p) && (a = !0)
  16047. } else
  16048. h &&
  16049. h.each(function (g, m) {
  16050. s(i, g) && g.dirty()
  16051. var y = o.getPerformArgs(g, i.block)
  16052. ;(y.skip =
  16053. !l.performRawSeries && e.isSeriesFiltered(g.context.model)),
  16054. o.updatePayload(g, n),
  16055. g.perform(y) && (a = !0)
  16056. })
  16057. }
  16058. })
  16059. function s(l, u) {
  16060. return l.setDirty && (!l.dirtyMap || l.dirtyMap.get(u.__pipeline.id))
  16061. }
  16062. this.unfinished = a || this.unfinished
  16063. }),
  16064. (r.prototype.performSeriesTasks = function (t) {
  16065. var e
  16066. t.eachSeries(function (n) {
  16067. e = n.dataTask.perform() || e
  16068. }),
  16069. (this.unfinished = e || this.unfinished)
  16070. }),
  16071. (r.prototype.plan = function () {
  16072. this._pipelineMap.each(function (t) {
  16073. var e = t.tail
  16074. do {
  16075. if (e.__block) {
  16076. t.blockIndex = e.__idxInPipeline
  16077. break
  16078. }
  16079. e = e.getUpstream()
  16080. } while (e)
  16081. })
  16082. }),
  16083. (r.prototype.updatePayload = function (t, e) {
  16084. e !== 'remain' && (t.context.payload = e)
  16085. }),
  16086. (r.prototype._createSeriesStageTask = function (t, e, n, i) {
  16087. var a = this,
  16088. o = e.seriesTaskMap,
  16089. s = (e.seriesTaskMap = q()),
  16090. l = t.seriesType,
  16091. u = t.getTargetSeries
  16092. t.createOnAllSeries
  16093. ? n.eachRawSeries(f)
  16094. : l
  16095. ? n.eachRawSeriesByType(l, f)
  16096. : u && u(n, i).each(f)
  16097. function f(h) {
  16098. var c = h.uid,
  16099. v = s.set(
  16100. c,
  16101. (o && o.get(c)) || Ta({ plan: UM, reset: YM, count: $M })
  16102. )
  16103. ;(v.context = {
  16104. model: h,
  16105. ecModel: n,
  16106. api: i,
  16107. useClearVisual: t.isVisual && !t.isLayout,
  16108. plan: t.plan,
  16109. reset: t.reset,
  16110. scheduler: a
  16111. }),
  16112. a._pipe(h, v)
  16113. }
  16114. }),
  16115. (r.prototype._createOverallStageTask = function (t, e, n, i) {
  16116. var a = this,
  16117. o = (e.overallTask = e.overallTask || Ta({ reset: VM }))
  16118. o.context = {
  16119. ecModel: n,
  16120. api: i,
  16121. overallReset: t.overallReset,
  16122. scheduler: a
  16123. }
  16124. var s = o.agentStubMap,
  16125. l = (o.agentStubMap = q()),
  16126. u = t.seriesType,
  16127. f = t.getTargetSeries,
  16128. h = !0,
  16129. c = !1,
  16130. v = ''
  16131. Ve(!t.createOnAllSeries, v),
  16132. u
  16133. ? n.eachRawSeriesByType(u, d)
  16134. : f
  16135. ? f(n, i).each(d)
  16136. : ((h = !1), A(n.getSeries(), d))
  16137. function d(p) {
  16138. var g = p.uid,
  16139. m = l.set(
  16140. g,
  16141. (s && s.get(g)) || ((c = !0), Ta({ reset: GM, onDirty: WM }))
  16142. )
  16143. ;(m.context = { model: p, overallProgress: h }),
  16144. (m.agent = o),
  16145. (m.__block = h),
  16146. a._pipe(p, m)
  16147. }
  16148. c && o.dirty()
  16149. }),
  16150. (r.prototype._pipe = function (t, e) {
  16151. var n = t.uid,
  16152. i = this._pipelineMap.get(n)
  16153. !i.head && (i.head = e),
  16154. i.tail && i.tail.pipe(e),
  16155. (i.tail = e),
  16156. (e.__idxInPipeline = i.count++),
  16157. (e.__pipeline = i)
  16158. }),
  16159. (r.wrapStageHandler = function (t, e) {
  16160. return (
  16161. Q(t) && (t = { overallReset: t, seriesType: XM(t) }),
  16162. (t.uid = ca('stageHandler')),
  16163. e && (t.visualType = e),
  16164. t
  16165. )
  16166. }),
  16167. r
  16168. )
  16169. })()
  16170. function VM(r) {
  16171. r.overallReset(r.ecModel, r.api, r.payload)
  16172. }
  16173. function GM(r) {
  16174. return r.overallProgress && HM
  16175. }
  16176. function HM() {
  16177. this.agent.dirty(), this.getDownstream().dirty()
  16178. }
  16179. function WM() {
  16180. this.agent && this.agent.dirty()
  16181. }
  16182. function UM(r) {
  16183. return r.plan ? r.plan(r.model, r.ecModel, r.api, r.payload) : null
  16184. }
  16185. function YM(r) {
  16186. r.useClearVisual && r.data.clearAllVisual()
  16187. var t = (r.resetDefines = Mt(r.reset(r.model, r.ecModel, r.api, r.payload)))
  16188. return t.length > 1
  16189. ? G(t, function (e, n) {
  16190. return bm(n)
  16191. })
  16192. : ZM
  16193. }
  16194. var ZM = bm(0)
  16195. function bm(r) {
  16196. return function (t, e) {
  16197. var n = e.data,
  16198. i = e.resetDefines[r]
  16199. if (i && i.dataEach) for (var a = t.start; a < t.end; a++) i.dataEach(n, a)
  16200. else i && i.progress && i.progress(t, n)
  16201. }
  16202. }
  16203. function $M(r) {
  16204. return r.data.count()
  16205. }
  16206. function XM(r) {
  16207. Ns = null
  16208. try {
  16209. r(Da, Tm)
  16210. } catch {}
  16211. return Ns
  16212. }
  16213. var Da = {},
  16214. Tm = {},
  16215. Ns
  16216. Cm(Da, Cg)
  16217. Cm(Tm, Ag)
  16218. Da.eachSeriesByType = Da.eachRawSeriesByType = function (r) {
  16219. Ns = r
  16220. }
  16221. Da.eachComponent = function (r) {
  16222. r.mainType === 'series' && r.subType && (Ns = r.subType)
  16223. }
  16224. function Cm(r, t) {
  16225. for (var e in t.prototype) r[e] = $t
  16226. }
  16227. var Am = zM,
  16228. Mm = [
  16229. '#37A2DA',
  16230. '#32C5E9',
  16231. '#67E0E3',
  16232. '#9FE6B8',
  16233. '#FFDB5C',
  16234. '#ff9f7f',
  16235. '#fb7293',
  16236. '#E062AE',
  16237. '#E690D1',
  16238. '#e7bcf3',
  16239. '#9d96f5',
  16240. '#8378EA',
  16241. '#96BFFF'
  16242. ],
  16243. qM = {
  16244. color: Mm,
  16245. colorLayer: [
  16246. ['#37A2DA', '#ffd85c', '#fd7b5f'],
  16247. ['#37A2DA', '#67E0E3', '#FFDB5C', '#ff9f7f', '#E062AE', '#9d96f5'],
  16248. [
  16249. '#37A2DA',
  16250. '#32C5E9',
  16251. '#9FE6B8',
  16252. '#FFDB5C',
  16253. '#ff9f7f',
  16254. '#fb7293',
  16255. '#e7bcf3',
  16256. '#8378EA',
  16257. '#96BFFF'
  16258. ],
  16259. Mm
  16260. ]
  16261. },
  16262. Qt = '#B9B8CE',
  16263. Dm = '#100C2A',
  16264. Fs = function () {
  16265. return {
  16266. axisLine: { lineStyle: { color: Qt } },
  16267. splitLine: { lineStyle: { color: '#484753' } },
  16268. splitArea: {
  16269. areaStyle: {
  16270. color: ['rgba(255,255,255,0.02)', 'rgba(255,255,255,0.05)']
  16271. }
  16272. },
  16273. minorSplitLine: { lineStyle: { color: '#20203B' } }
  16274. }
  16275. },
  16276. Im = [
  16277. '#4992ff',
  16278. '#7cffb2',
  16279. '#fddd60',
  16280. '#ff6e76',
  16281. '#58d9f9',
  16282. '#05c091',
  16283. '#ff8a45',
  16284. '#8d48e3',
  16285. '#dd79ff'
  16286. ],
  16287. Lm = {
  16288. darkMode: !0,
  16289. color: Im,
  16290. backgroundColor: Dm,
  16291. axisPointer: {
  16292. lineStyle: { color: '#817f91' },
  16293. crossStyle: { color: '#817f91' },
  16294. label: { color: '#fff' }
  16295. },
  16296. legend: { textStyle: { color: Qt } },
  16297. textStyle: { color: Qt },
  16298. title: {
  16299. textStyle: { color: '#EEF1FA' },
  16300. subtextStyle: { color: '#B9B8CE' }
  16301. },
  16302. toolbox: { iconStyle: { borderColor: Qt } },
  16303. dataZoom: {
  16304. borderColor: '#71708A',
  16305. textStyle: { color: Qt },
  16306. brushStyle: { color: 'rgba(135,163,206,0.3)' },
  16307. handleStyle: { color: '#353450', borderColor: '#C5CBE3' },
  16308. moveHandleStyle: { color: '#B0B6C3', opacity: 0.3 },
  16309. fillerColor: 'rgba(135,163,206,0.2)',
  16310. emphasis: {
  16311. handleStyle: { borderColor: '#91B7F2', color: '#4D587D' },
  16312. moveHandleStyle: { color: '#636D9A', opacity: 0.7 }
  16313. },
  16314. dataBackground: {
  16315. lineStyle: { color: '#71708A', width: 1 },
  16316. areaStyle: { color: '#71708A' }
  16317. },
  16318. selectedDataBackground: {
  16319. lineStyle: { color: '#87A3CE' },
  16320. areaStyle: { color: '#87A3CE' }
  16321. }
  16322. },
  16323. visualMap: { textStyle: { color: Qt } },
  16324. timeline: {
  16325. lineStyle: { color: Qt },
  16326. label: { color: Qt },
  16327. controlStyle: { color: Qt, borderColor: Qt }
  16328. },
  16329. calendar: {
  16330. itemStyle: { color: Dm },
  16331. dayLabel: { color: Qt },
  16332. monthLabel: { color: Qt },
  16333. yearLabel: { color: Qt }
  16334. },
  16335. timeAxis: Fs(),
  16336. logAxis: Fs(),
  16337. valueAxis: Fs(),
  16338. categoryAxis: Fs(),
  16339. line: { symbol: 'circle' },
  16340. graph: { color: Im },
  16341. gauge: {
  16342. title: { color: Qt },
  16343. axisLine: { lineStyle: { color: [[1, 'rgba(207,212,219,0.2)']] } },
  16344. axisLabel: { color: Qt },
  16345. detail: { color: '#EEF1FA' }
  16346. },
  16347. candlestick: {
  16348. itemStyle: {
  16349. color: '#f64e56',
  16350. color0: '#54ea92',
  16351. borderColor: '#f64e56',
  16352. borderColor0: '#54ea92'
  16353. }
  16354. }
  16355. }
  16356. Lm.categoryAxis.splitLine.show = !1
  16357. var KM = Lm,
  16358. QM = (function () {
  16359. function r() {}
  16360. return (
  16361. (r.prototype.normalizeQuery = function (t) {
  16362. var e = {},
  16363. n = {},
  16364. i = {}
  16365. if (W(t)) {
  16366. var a = Ue(t)
  16367. ;(e.mainType = a.main || null), (e.subType = a.sub || null)
  16368. } else {
  16369. var o = ['Index', 'Name', 'Id'],
  16370. s = { name: 1, dataIndex: 1, dataType: 1 }
  16371. A(t, function (l, u) {
  16372. for (var f = !1, h = 0; h < o.length; h++) {
  16373. var c = o[h],
  16374. v = u.lastIndexOf(c)
  16375. if (v > 0 && v === u.length - c.length) {
  16376. var d = u.slice(0, v)
  16377. d !== 'data' &&
  16378. ((e.mainType = d), (e[c.toLowerCase()] = l), (f = !0))
  16379. }
  16380. }
  16381. s.hasOwnProperty(u) && ((n[u] = l), (f = !0)), f || (i[u] = l)
  16382. })
  16383. }
  16384. return { cptQuery: e, dataQuery: n, otherQuery: i }
  16385. }),
  16386. (r.prototype.filter = function (t, e) {
  16387. var n = this.eventInfo
  16388. if (!n) return !0
  16389. var i = n.targetEl,
  16390. a = n.packedEvent,
  16391. o = n.model,
  16392. s = n.view
  16393. if (!o || !s) return !0
  16394. var l = e.cptQuery,
  16395. u = e.dataQuery
  16396. return (
  16397. f(l, o, 'mainType') &&
  16398. f(l, o, 'subType') &&
  16399. f(l, o, 'index', 'componentIndex') &&
  16400. f(l, o, 'name') &&
  16401. f(l, o, 'id') &&
  16402. f(u, a, 'name') &&
  16403. f(u, a, 'dataIndex') &&
  16404. f(u, a, 'dataType') &&
  16405. (!s.filterForExposedEvent ||
  16406. s.filterForExposedEvent(t, e.otherQuery, i, a))
  16407. )
  16408. function f(h, c, v, d) {
  16409. return h[v] == null || c[d || v] === h[v]
  16410. }
  16411. }),
  16412. (r.prototype.afterTrigger = function () {
  16413. this.eventInfo = null
  16414. }),
  16415. r
  16416. )
  16417. })(),
  16418. Xf = ['symbol', 'symbolSize', 'symbolRotate', 'symbolOffset'],
  16419. Pm = Xf.concat(['symbolKeepAspect']),
  16420. JM = {
  16421. createOnAllSeries: !0,
  16422. performRawSeries: !0,
  16423. reset: function (r, t) {
  16424. var e = r.getData()
  16425. if (
  16426. (r.legendIcon && e.setVisual('legendIcon', r.legendIcon),
  16427. !r.hasSymbolVisual)
  16428. )
  16429. return
  16430. for (var n = {}, i = {}, a = !1, o = 0; o < Xf.length; o++) {
  16431. var s = Xf[o],
  16432. l = r.get(s)
  16433. Q(l) ? ((a = !0), (i[s] = l)) : (n[s] = l)
  16434. }
  16435. if (
  16436. ((n.symbol = n.symbol || r.defaultSymbol),
  16437. e.setVisual(
  16438. N(
  16439. {
  16440. legendIcon: r.legendIcon || n.symbol,
  16441. symbolKeepAspect: r.get('symbolKeepAspect')
  16442. },
  16443. n
  16444. )
  16445. ),
  16446. t.isSeriesFiltered(r))
  16447. )
  16448. return
  16449. var u = xt(i)
  16450. function f(h, c) {
  16451. for (
  16452. var v = r.getRawValue(c), d = r.getDataParams(c), p = 0;
  16453. p < u.length;
  16454. p++
  16455. ) {
  16456. var g = u[p]
  16457. h.setItemVisual(c, g, i[g](v, d))
  16458. }
  16459. }
  16460. return { dataEach: a ? f : null }
  16461. }
  16462. },
  16463. jM = {
  16464. createOnAllSeries: !0,
  16465. performRawSeries: !0,
  16466. reset: function (r, t) {
  16467. if (!r.hasSymbolVisual || t.isSeriesFiltered(r)) return
  16468. var e = r.getData()
  16469. function n(i, a) {
  16470. for (var o = i.getItemModel(a), s = 0; s < Pm.length; s++) {
  16471. var l = Pm[s],
  16472. u = o.getShallow(l, !0)
  16473. u != null && i.setItemVisual(a, l, u)
  16474. }
  16475. }
  16476. return { dataEach: e.hasItemOption ? n : null }
  16477. }
  16478. }
  16479. function tD(r, t, e) {
  16480. switch (e) {
  16481. case 'color':
  16482. var n = r.getItemVisual(t, 'style')
  16483. return n[r.getVisual('drawType')]
  16484. case 'opacity':
  16485. return r.getItemVisual(t, 'style').opacity
  16486. case 'symbol':
  16487. case 'symbolSize':
  16488. case 'liftZ':
  16489. return r.getItemVisual(t, e)
  16490. }
  16491. }
  16492. function eD(r, t) {
  16493. switch (t) {
  16494. case 'color':
  16495. var e = r.getVisual('style')
  16496. return e[r.getVisual('drawType')]
  16497. case 'opacity':
  16498. return r.getVisual('style').opacity
  16499. case 'symbol':
  16500. case 'symbolSize':
  16501. case 'liftZ':
  16502. return r.getVisual(t)
  16503. }
  16504. }
  16505. function rD(r, t) {
  16506. function e(n, i) {
  16507. var a = []
  16508. return (
  16509. n.eachComponent(
  16510. { mainType: 'series', subType: r, query: i },
  16511. function (o) {
  16512. a.push(o.seriesIndex)
  16513. }
  16514. ),
  16515. a
  16516. )
  16517. }
  16518. A(
  16519. [
  16520. [r + 'ToggleSelect', 'toggleSelect'],
  16521. [r + 'Select', 'select'],
  16522. [r + 'UnSelect', 'unselect']
  16523. ],
  16524. function (n) {
  16525. t(n[0], function (i, a, o) {
  16526. ;(i = N({}, i)),
  16527. o.dispatchAction(N(i, { type: n[1], seriesIndex: e(a, i) }))
  16528. })
  16529. }
  16530. )
  16531. }
  16532. function mi(r, t, e, n, i) {
  16533. var a = r + t
  16534. e.isSilent(a) ||
  16535. n.eachComponent({ mainType: 'series', subType: 'pie' }, function (o) {
  16536. for (
  16537. var s = o.seriesIndex, l = o.option.selectedMap, u = i.selected, f = 0;
  16538. f < u.length;
  16539. f++
  16540. )
  16541. if (u[f].seriesIndex === s) {
  16542. var h = o.getData(),
  16543. c = Jr(h, i.fromActionPayload)
  16544. e.trigger(a, {
  16545. type: a,
  16546. seriesId: o.id,
  16547. name: z(c) ? h.getName(c[0]) : h.getName(c),
  16548. selected: W(l) ? l : N({}, l)
  16549. })
  16550. }
  16551. })
  16552. }
  16553. function nD(r, t, e) {
  16554. r.on('selectchanged', function (n) {
  16555. var i = e.getModel()
  16556. n.isFromClick
  16557. ? (mi('map', 'selectchanged', t, i, n),
  16558. mi('pie', 'selectchanged', t, i, n))
  16559. : n.fromAction === 'select'
  16560. ? (mi('map', 'selected', t, i, n), mi('pie', 'selected', t, i, n))
  16561. : n.fromAction === 'unselect' &&
  16562. (mi('map', 'unselected', t, i, n), mi('pie', 'unselected', t, i, n))
  16563. })
  16564. }
  16565. function Ia(r, t, e) {
  16566. for (var n; r && !(t(r) && ((n = r), e)); ) r = r.__hostTarget || r.parent
  16567. return n
  16568. }
  16569. var iD = Math.round(Math.random() * 9),
  16570. aD = typeof Object.defineProperty == 'function',
  16571. oD = (function () {
  16572. function r() {
  16573. this._id = '__ec_inner_' + iD++
  16574. }
  16575. return (
  16576. (r.prototype.get = function (t) {
  16577. return this._guard(t)[this._id]
  16578. }),
  16579. (r.prototype.set = function (t, e) {
  16580. var n = this._guard(t)
  16581. return (
  16582. aD
  16583. ? Object.defineProperty(n, this._id, {
  16584. value: e,
  16585. enumerable: !1,
  16586. configurable: !0
  16587. })
  16588. : (n[this._id] = e),
  16589. this
  16590. )
  16591. }),
  16592. (r.prototype.delete = function (t) {
  16593. return this.has(t) ? (delete this._guard(t)[this._id], !0) : !1
  16594. }),
  16595. (r.prototype.has = function (t) {
  16596. return !!this._guard(t)[this._id]
  16597. }),
  16598. (r.prototype._guard = function (t) {
  16599. if (t !== Object(t))
  16600. throw TypeError('Value of WeakMap is not a non-null object.')
  16601. return t
  16602. }),
  16603. r
  16604. )
  16605. })(),
  16606. sD = oD,
  16607. lD = st.extend({
  16608. type: 'triangle',
  16609. shape: { cx: 0, cy: 0, width: 0, height: 0 },
  16610. buildPath: function (r, t) {
  16611. var e = t.cx,
  16612. n = t.cy,
  16613. i = t.width / 2,
  16614. a = t.height / 2
  16615. r.moveTo(e, n - a),
  16616. r.lineTo(e + i, n + a),
  16617. r.lineTo(e - i, n + a),
  16618. r.closePath()
  16619. }
  16620. }),
  16621. uD = st.extend({
  16622. type: 'diamond',
  16623. shape: { cx: 0, cy: 0, width: 0, height: 0 },
  16624. buildPath: function (r, t) {
  16625. var e = t.cx,
  16626. n = t.cy,
  16627. i = t.width / 2,
  16628. a = t.height / 2
  16629. r.moveTo(e, n - a),
  16630. r.lineTo(e + i, n),
  16631. r.lineTo(e, n + a),
  16632. r.lineTo(e - i, n),
  16633. r.closePath()
  16634. }
  16635. }),
  16636. fD = st.extend({
  16637. type: 'pin',
  16638. shape: { x: 0, y: 0, width: 0, height: 0 },
  16639. buildPath: function (r, t) {
  16640. var e = t.x,
  16641. n = t.y,
  16642. i = (t.width / 5) * 3,
  16643. a = Math.max(i, t.height),
  16644. o = i / 2,
  16645. s = (o * o) / (a - o),
  16646. l = n - a + o + s,
  16647. u = Math.asin(s / o),
  16648. f = Math.cos(u) * o,
  16649. h = Math.sin(u),
  16650. c = Math.cos(u),
  16651. v = o * 0.6,
  16652. d = o * 0.7
  16653. r.moveTo(e - f, l + s),
  16654. r.arc(e, l, o, Math.PI - u, Math.PI * 2 + u),
  16655. r.bezierCurveTo(e + f - h * v, l + s + c * v, e, n - d, e, n),
  16656. r.bezierCurveTo(e, n - d, e - f + h * v, l + s + c * v, e - f, l + s),
  16657. r.closePath()
  16658. }
  16659. }),
  16660. hD = st.extend({
  16661. type: 'arrow',
  16662. shape: { x: 0, y: 0, width: 0, height: 0 },
  16663. buildPath: function (r, t) {
  16664. var e = t.height,
  16665. n = t.width,
  16666. i = t.x,
  16667. a = t.y,
  16668. o = (n / 3) * 2
  16669. r.moveTo(i, a),
  16670. r.lineTo(i + o, a + e),
  16671. r.lineTo(i, a + (e / 4) * 3),
  16672. r.lineTo(i - o, a + e),
  16673. r.lineTo(i, a),
  16674. r.closePath()
  16675. }
  16676. }),
  16677. vD = {
  16678. line: cn,
  16679. rect: St,
  16680. roundRect: St,
  16681. square: St,
  16682. circle: nf,
  16683. diamond: uD,
  16684. pin: fD,
  16685. arrow: hD,
  16686. triangle: lD
  16687. },
  16688. cD = {
  16689. line: function (r, t, e, n, i) {
  16690. ;(i.x1 = r), (i.y1 = t + n / 2), (i.x2 = r + e), (i.y2 = t + n / 2)
  16691. },
  16692. rect: function (r, t, e, n, i) {
  16693. ;(i.x = r), (i.y = t), (i.width = e), (i.height = n)
  16694. },
  16695. roundRect: function (r, t, e, n, i) {
  16696. ;(i.x = r),
  16697. (i.y = t),
  16698. (i.width = e),
  16699. (i.height = n),
  16700. (i.r = Math.min(e, n) / 4)
  16701. },
  16702. square: function (r, t, e, n, i) {
  16703. var a = Math.min(e, n)
  16704. ;(i.x = r), (i.y = t), (i.width = a), (i.height = a)
  16705. },
  16706. circle: function (r, t, e, n, i) {
  16707. ;(i.cx = r + e / 2), (i.cy = t + n / 2), (i.r = Math.min(e, n) / 2)
  16708. },
  16709. diamond: function (r, t, e, n, i) {
  16710. ;(i.cx = r + e / 2), (i.cy = t + n / 2), (i.width = e), (i.height = n)
  16711. },
  16712. pin: function (r, t, e, n, i) {
  16713. ;(i.x = r + e / 2), (i.y = t + n / 2), (i.width = e), (i.height = n)
  16714. },
  16715. arrow: function (r, t, e, n, i) {
  16716. ;(i.x = r + e / 2), (i.y = t + n / 2), (i.width = e), (i.height = n)
  16717. },
  16718. triangle: function (r, t, e, n, i) {
  16719. ;(i.cx = r + e / 2), (i.cy = t + n / 2), (i.width = e), (i.height = n)
  16720. }
  16721. },
  16722. zs = {}
  16723. A(vD, function (r, t) {
  16724. zs[t] = new r()
  16725. })
  16726. var dD = st.extend({
  16727. type: 'symbol',
  16728. shape: { symbolType: '', x: 0, y: 0, width: 0, height: 0 },
  16729. calculateTextPosition: function (r, t, e) {
  16730. var n = Oo(r, t, e),
  16731. i = this.shape
  16732. return (
  16733. i &&
  16734. i.symbolType === 'pin' &&
  16735. t.position === 'inside' &&
  16736. (n.y = e.y + e.height * 0.4),
  16737. n
  16738. )
  16739. },
  16740. buildPath: function (r, t, e) {
  16741. var n = t.symbolType
  16742. if (n !== 'none') {
  16743. var i = zs[n]
  16744. i || ((n = 'rect'), (i = zs[n])),
  16745. cD[n](t.x, t.y, t.width, t.height, i.shape),
  16746. i.buildPath(r, i.shape, e)
  16747. }
  16748. }
  16749. })
  16750. function pD(r, t) {
  16751. if (this.type !== 'image') {
  16752. var e = this.style
  16753. this.__isEmptyBrush
  16754. ? ((e.stroke = r), (e.fill = t || '#fff'), (e.lineWidth = 2))
  16755. : this.shape.symbolType === 'line'
  16756. ? (e.stroke = r)
  16757. : (e.fill = r),
  16758. this.markRedraw()
  16759. }
  16760. }
  16761. function Or(r, t, e, n, i, a, o) {
  16762. var s = r.indexOf('empty') === 0
  16763. s && (r = r.substr(5, 1).toLowerCase() + r.substr(6))
  16764. var l
  16765. return (
  16766. r.indexOf('image://') === 0
  16767. ? (l = Rp(r.slice(8), new vt(t, e, n, i), o ? 'center' : 'cover'))
  16768. : r.indexOf('path://') === 0
  16769. ? (l = ff(r.slice(7), {}, new vt(t, e, n, i), o ? 'center' : 'cover'))
  16770. : (l = new dD({
  16771. shape: { symbolType: r, x: t, y: e, width: n, height: i }
  16772. })),
  16773. (l.__isEmptyBrush = s),
  16774. (l.setColor = pD),
  16775. a && l.setColor(a),
  16776. l
  16777. )
  16778. }
  16779. function gD(r) {
  16780. return z(r) || (r = [+r, +r]), [r[0] || 0, r[1] || 0]
  16781. }
  16782. function Rm(r, t) {
  16783. if (r != null)
  16784. return (
  16785. z(r) || (r = [r, r]), [yt(r[0], t[0]) || 0, yt(ht(r[1], r[0]), t[1]) || 0]
  16786. )
  16787. }
  16788. function wn(r) {
  16789. return isFinite(r)
  16790. }
  16791. function mD(r, t, e) {
  16792. var n = t.x == null ? 0 : t.x,
  16793. i = t.x2 == null ? 1 : t.x2,
  16794. a = t.y == null ? 0 : t.y,
  16795. o = t.y2 == null ? 0 : t.y2
  16796. t.global ||
  16797. ((n = n * e.width + e.x),
  16798. (i = i * e.width + e.x),
  16799. (a = a * e.height + e.y),
  16800. (o = o * e.height + e.y)),
  16801. (n = wn(n) ? n : 0),
  16802. (i = wn(i) ? i : 1),
  16803. (a = wn(a) ? a : 0),
  16804. (o = wn(o) ? o : 0)
  16805. var s = r.createLinearGradient(n, a, i, o)
  16806. return s
  16807. }
  16808. function yD(r, t, e) {
  16809. var n = e.width,
  16810. i = e.height,
  16811. a = Math.min(n, i),
  16812. o = t.x == null ? 0.5 : t.x,
  16813. s = t.y == null ? 0.5 : t.y,
  16814. l = t.r == null ? 0.5 : t.r
  16815. t.global || ((o = o * n + e.x), (s = s * i + e.y), (l = l * a)),
  16816. (o = wn(o) ? o : 0.5),
  16817. (s = wn(s) ? s : 0.5),
  16818. (l = l >= 0 && wn(l) ? l : 0.5)
  16819. var u = r.createRadialGradient(o, s, 0, o, s, l)
  16820. return u
  16821. }
  16822. function qf(r, t, e) {
  16823. for (
  16824. var n = t.type === 'radial' ? yD(r, t, e) : mD(r, t, e),
  16825. i = t.colorStops,
  16826. a = 0;
  16827. a < i.length;
  16828. a++
  16829. )
  16830. n.addColorStop(i[a].offset, i[a].color)
  16831. return n
  16832. }
  16833. function _D(r, t) {
  16834. if (r === t || (!r && !t)) return !1
  16835. if (!r || !t || r.length !== t.length) return !0
  16836. for (var e = 0; e < r.length; e++) if (r[e] !== t[e]) return !0
  16837. return !1
  16838. }
  16839. function Vs(r) {
  16840. return parseInt(r, 10)
  16841. }
  16842. function Gs(r, t, e) {
  16843. var n = ['width', 'height'][t],
  16844. i = ['clientWidth', 'clientHeight'][t],
  16845. a = ['paddingLeft', 'paddingTop'][t],
  16846. o = ['paddingRight', 'paddingBottom'][t]
  16847. if (e[n] != null && e[n] !== 'auto') return parseFloat(e[n])
  16848. var s = document.defaultView.getComputedStyle(r)
  16849. return (
  16850. ((r[i] || Vs(s[n]) || Vs(r.style[n])) - (Vs(s[a]) || 0) - (Vs(s[o]) || 0)) |
  16851. 0
  16852. )
  16853. }
  16854. function SD(r, t) {
  16855. return !r || r === 'solid' || !(t > 0)
  16856. ? null
  16857. : r === 'dashed'
  16858. ? [4 * t, 2 * t]
  16859. : r === 'dotted'
  16860. ? [t]
  16861. : dt(r)
  16862. ? [r]
  16863. : z(r)
  16864. ? r
  16865. : null
  16866. }
  16867. function Em(r) {
  16868. var t = r.style,
  16869. e = t.lineDash && t.lineWidth > 0 && SD(t.lineDash, t.lineWidth),
  16870. n = t.lineDashOffset
  16871. if (e) {
  16872. var i = t.strokeNoScale && r.getLineScale ? r.getLineScale() : 1
  16873. i &&
  16874. i !== 1 &&
  16875. ((e = G(e, function (a) {
  16876. return a / i
  16877. })),
  16878. (n /= i))
  16879. }
  16880. return [e, n]
  16881. }
  16882. var xD = new ur(!0)
  16883. function Hs(r) {
  16884. var t = r.stroke
  16885. return !(t == null || t === 'none' || !(r.lineWidth > 0))
  16886. }
  16887. function Om(r) {
  16888. return typeof r == 'string' && r !== 'none'
  16889. }
  16890. function Ws(r) {
  16891. var t = r.fill
  16892. return t != null && t !== 'none'
  16893. }
  16894. function km(r, t) {
  16895. if (t.fillOpacity != null && t.fillOpacity !== 1) {
  16896. var e = r.globalAlpha
  16897. ;(r.globalAlpha = t.fillOpacity * t.opacity), r.fill(), (r.globalAlpha = e)
  16898. } else r.fill()
  16899. }
  16900. function Bm(r, t) {
  16901. if (t.strokeOpacity != null && t.strokeOpacity !== 1) {
  16902. var e = r.globalAlpha
  16903. ;(r.globalAlpha = t.strokeOpacity * t.opacity),
  16904. r.stroke(),
  16905. (r.globalAlpha = e)
  16906. } else r.stroke()
  16907. }
  16908. function Kf(r, t, e) {
  16909. var n = ld(t.image, t.__image, e)
  16910. if (Fo(n)) {
  16911. var i = r.createPattern(n, t.repeat || 'repeat')
  16912. if (typeof DOMMatrix == 'function' && i && i.setTransform) {
  16913. var a = new DOMMatrix()
  16914. a.translateSelf(t.x || 0, t.y || 0),
  16915. a.rotateSelf(0, 0, (t.rotation || 0) * Lx),
  16916. a.scaleSelf(t.scaleX || 1, t.scaleY || 1),
  16917. i.setTransform(a)
  16918. }
  16919. return i
  16920. }
  16921. }
  16922. function wD(r, t, e, n) {
  16923. var i,
  16924. a = Hs(e),
  16925. o = Ws(e),
  16926. s = e.strokePercent,
  16927. l = s < 1,
  16928. u = !t.path
  16929. ;(!t.silent || l) && u && t.createPathProxy()
  16930. var f = t.path || xD,
  16931. h = t.__dirty
  16932. if (!n) {
  16933. var c = e.fill,
  16934. v = e.stroke,
  16935. d = o && !!c.colorStops,
  16936. p = a && !!v.colorStops,
  16937. g = o && !!c.image,
  16938. m = a && !!v.image,
  16939. y = void 0,
  16940. _ = void 0,
  16941. S = void 0,
  16942. w = void 0,
  16943. x = void 0
  16944. ;(d || p) && (x = t.getBoundingRect()),
  16945. d &&
  16946. ((y = h ? qf(r, c, x) : t.__canvasFillGradient),
  16947. (t.__canvasFillGradient = y)),
  16948. p &&
  16949. ((_ = h ? qf(r, v, x) : t.__canvasStrokeGradient),
  16950. (t.__canvasStrokeGradient = _)),
  16951. g &&
  16952. ((S =
  16953. h || !t.__canvasFillPattern ? Kf(r, c, t) : t.__canvasFillPattern),
  16954. (t.__canvasFillPattern = S)),
  16955. m &&
  16956. ((w =
  16957. h || !t.__canvasStrokePattern
  16958. ? Kf(r, v, t)
  16959. : t.__canvasStrokePattern),
  16960. (t.__canvasStrokePattern = S)),
  16961. d ? (r.fillStyle = y) : g && (S ? (r.fillStyle = S) : (o = !1)),
  16962. p ? (r.strokeStyle = _) : m && (w ? (r.strokeStyle = w) : (a = !1))
  16963. }
  16964. var b = t.getGlobalScale()
  16965. f.setScale(b[0], b[1], t.segmentIgnoreThreshold)
  16966. var T, C
  16967. r.setLineDash && e.lineDash && ((i = Em(t)), (T = i[0]), (C = i[1]))
  16968. var M = !0
  16969. ;(u || h & Wn) &&
  16970. (f.setDPR(r.dpr),
  16971. l ? f.setContext(null) : (f.setContext(r), (M = !1)),
  16972. f.reset(),
  16973. t.buildPath(f, t.shape, n),
  16974. f.toStatic(),
  16975. t.pathUpdated()),
  16976. M && f.rebuildPath(r, l ? s : 1),
  16977. T && (r.setLineDash(T), (r.lineDashOffset = C)),
  16978. n ||
  16979. (e.strokeFirst
  16980. ? (a && Bm(r, e), o && km(r, e))
  16981. : (o && km(r, e), a && Bm(r, e))),
  16982. T && r.setLineDash([])
  16983. }
  16984. function bD(r, t, e) {
  16985. var n = (t.__image = ld(e.image, t.__image, t, t.onload))
  16986. if (!(!n || !Fo(n))) {
  16987. var i = e.x || 0,
  16988. a = e.y || 0,
  16989. o = t.getWidth(),
  16990. s = t.getHeight(),
  16991. l = n.width / n.height
  16992. if (
  16993. (o == null && s != null
  16994. ? (o = s * l)
  16995. : s == null && o != null
  16996. ? (s = o / l)
  16997. : o == null && s == null && ((o = n.width), (s = n.height)),
  16998. e.sWidth && e.sHeight)
  16999. ) {
  17000. var u = e.sx || 0,
  17001. f = e.sy || 0
  17002. r.drawImage(n, u, f, e.sWidth, e.sHeight, i, a, o, s)
  17003. } else if (e.sx && e.sy) {
  17004. var u = e.sx,
  17005. f = e.sy,
  17006. h = o - u,
  17007. c = s - f
  17008. r.drawImage(n, u, f, h, c, i, a, o, s)
  17009. } else r.drawImage(n, i, a, o, s)
  17010. }
  17011. }
  17012. function TD(r, t, e) {
  17013. var n,
  17014. i = e.text
  17015. if ((i != null && (i += ''), i)) {
  17016. ;(r.font = e.font || Yr),
  17017. (r.textAlign = e.textAlign),
  17018. (r.textBaseline = e.textBaseline)
  17019. var a = void 0,
  17020. o = void 0
  17021. r.setLineDash && e.lineDash && ((n = Em(t)), (a = n[0]), (o = n[1])),
  17022. a && (r.setLineDash(a), (r.lineDashOffset = o)),
  17023. e.strokeFirst
  17024. ? (Hs(e) && r.strokeText(i, e.x, e.y), Ws(e) && r.fillText(i, e.x, e.y))
  17025. : (Ws(e) && r.fillText(i, e.x, e.y),
  17026. Hs(e) && r.strokeText(i, e.x, e.y)),
  17027. a && r.setLineDash([])
  17028. }
  17029. }
  17030. var Nm = ['shadowBlur', 'shadowOffsetX', 'shadowOffsetY'],
  17031. Fm = [
  17032. ['lineCap', 'butt'],
  17033. ['lineJoin', 'miter'],
  17034. ['miterLimit', 10]
  17035. ]
  17036. function zm(r, t, e, n, i) {
  17037. var a = !1
  17038. if (!n && ((e = e || {}), t === e)) return !1
  17039. if (n || t.opacity !== e.opacity) {
  17040. re(r, i), (a = !0)
  17041. var o = Math.max(Math.min(t.opacity, 1), 0)
  17042. r.globalAlpha = isNaN(o) ? tn.opacity : o
  17043. }
  17044. ;(n || t.blend !== e.blend) &&
  17045. (a || (re(r, i), (a = !0)),
  17046. (r.globalCompositeOperation = t.blend || tn.blend))
  17047. for (var s = 0; s < Nm.length; s++) {
  17048. var l = Nm[s]
  17049. ;(n || t[l] !== e[l]) &&
  17050. (a || (re(r, i), (a = !0)), (r[l] = r.dpr * (t[l] || 0)))
  17051. }
  17052. return (
  17053. (n || t.shadowColor !== e.shadowColor) &&
  17054. (a || (re(r, i), (a = !0)),
  17055. (r.shadowColor = t.shadowColor || tn.shadowColor)),
  17056. a
  17057. )
  17058. }
  17059. function Vm(r, t, e, n, i) {
  17060. var a = La(t, i.inHover),
  17061. o = n ? null : (e && La(e, i.inHover)) || {}
  17062. if (a === o) return !1
  17063. var s = zm(r, a, o, n, i)
  17064. if (
  17065. ((n || a.fill !== o.fill) &&
  17066. (s || (re(r, i), (s = !0)), Om(a.fill) && (r.fillStyle = a.fill)),
  17067. (n || a.stroke !== o.stroke) &&
  17068. (s || (re(r, i), (s = !0)), Om(a.stroke) && (r.strokeStyle = a.stroke)),
  17069. (n || a.opacity !== o.opacity) &&
  17070. (s || (re(r, i), (s = !0)),
  17071. (r.globalAlpha = a.opacity == null ? 1 : a.opacity)),
  17072. t.hasStroke())
  17073. ) {
  17074. var l = a.lineWidth,
  17075. u = l / (a.strokeNoScale && t.getLineScale ? t.getLineScale() : 1)
  17076. r.lineWidth !== u && (s || (re(r, i), (s = !0)), (r.lineWidth = u))
  17077. }
  17078. for (var f = 0; f < Fm.length; f++) {
  17079. var h = Fm[f],
  17080. c = h[0]
  17081. ;(n || a[c] !== o[c]) && (s || (re(r, i), (s = !0)), (r[c] = a[c] || h[1]))
  17082. }
  17083. return s
  17084. }
  17085. function CD(r, t, e, n, i) {
  17086. return zm(r, La(t, i.inHover), e && La(e, i.inHover), n, i)
  17087. }
  17088. function Gm(r, t) {
  17089. var e = t.transform,
  17090. n = r.dpr || 1
  17091. e
  17092. ? r.setTransform(n * e[0], n * e[1], n * e[2], n * e[3], n * e[4], n * e[5])
  17093. : r.setTransform(n, 0, 0, n, 0, 0)
  17094. }
  17095. function AD(r, t, e) {
  17096. for (var n = !1, i = 0; i < r.length; i++) {
  17097. var a = r[i]
  17098. ;(n = n || a.isZeroArea()),
  17099. Gm(t, a),
  17100. t.beginPath(),
  17101. a.buildPath(t, a.shape),
  17102. t.clip()
  17103. }
  17104. e.allClipped = n
  17105. }
  17106. function MD(r, t) {
  17107. return r && t
  17108. ? r[0] !== t[0] ||
  17109. r[1] !== t[1] ||
  17110. r[2] !== t[2] ||
  17111. r[3] !== t[3] ||
  17112. r[4] !== t[4] ||
  17113. r[5] !== t[5]
  17114. : !(!r && !t)
  17115. }
  17116. var Hm = 1,
  17117. Wm = 2,
  17118. Um = 3,
  17119. Ym = 4
  17120. function DD(r) {
  17121. var t = Ws(r),
  17122. e = Hs(r)
  17123. return !(
  17124. r.lineDash ||
  17125. !(+t ^ +e) ||
  17126. (t && typeof r.fill != 'string') ||
  17127. (e && typeof r.stroke != 'string') ||
  17128. r.strokePercent < 1 ||
  17129. r.strokeOpacity < 1 ||
  17130. r.fillOpacity < 1
  17131. )
  17132. }
  17133. function re(r, t) {
  17134. t.batchFill && r.fill(),
  17135. t.batchStroke && r.stroke(),
  17136. (t.batchFill = ''),
  17137. (t.batchStroke = '')
  17138. }
  17139. function La(r, t) {
  17140. return (t && r.__hoverStyle) || r.style
  17141. }
  17142. function Zm(r, t) {
  17143. bn(r, t, { inHover: !1, viewWidth: 0, viewHeight: 0 }, !0)
  17144. }
  17145. function bn(r, t, e, n) {
  17146. var i = t.transform
  17147. if (!t.shouldBePainted(e.viewWidth, e.viewHeight, !1, !1)) {
  17148. ;(t.__dirty &= ~ae), (t.__isRendered = !1)
  17149. return
  17150. }
  17151. var a = t.__clipPaths,
  17152. o = e.prevElClipPaths,
  17153. s = !1,
  17154. l = !1
  17155. if (
  17156. ((!o || _D(a, o)) &&
  17157. (o &&
  17158. o.length &&
  17159. (re(r, e),
  17160. r.restore(),
  17161. (l = s = !0),
  17162. (e.prevElClipPaths = null),
  17163. (e.allClipped = !1),
  17164. (e.prevEl = null)),
  17165. a && a.length && (re(r, e), r.save(), AD(a, r, e), (s = !0)),
  17166. (e.prevElClipPaths = a)),
  17167. e.allClipped)
  17168. ) {
  17169. t.__isRendered = !1
  17170. return
  17171. }
  17172. t.beforeBrush && t.beforeBrush(), t.innerBeforeBrush()
  17173. var u = e.prevEl
  17174. u || (l = s = !0)
  17175. var f = t instanceof st && t.autoBatch && DD(t.style)
  17176. s || MD(i, u.transform) ? (re(r, e), Gm(r, t)) : f || re(r, e)
  17177. var h = La(t, e.inHover)
  17178. t instanceof st
  17179. ? (e.lastDrawType !== Hm && ((l = !0), (e.lastDrawType = Hm)),
  17180. Vm(r, t, u, l, e),
  17181. (!f || (!e.batchFill && !e.batchStroke)) && r.beginPath(),
  17182. wD(r, t, h, f),
  17183. f && ((e.batchFill = h.fill || ''), (e.batchStroke = h.stroke || '')))
  17184. : t instanceof Wu
  17185. ? (e.lastDrawType !== Um && ((l = !0), (e.lastDrawType = Um)),
  17186. Vm(r, t, u, l, e),
  17187. TD(r, t, h))
  17188. : t instanceof un
  17189. ? (e.lastDrawType !== Wm && ((l = !0), (e.lastDrawType = Wm)),
  17190. CD(r, t, u, l, e),
  17191. bD(r, t, h))
  17192. : t.getTemporalDisplayables &&
  17193. (e.lastDrawType !== Ym && ((l = !0), (e.lastDrawType = Ym)), ID(r, t, e)),
  17194. f && n && re(r, e),
  17195. t.innerAfterBrush(),
  17196. t.afterBrush && t.afterBrush(),
  17197. (e.prevEl = t),
  17198. (t.__dirty = 0),
  17199. (t.__isRendered = !0)
  17200. }
  17201. function ID(r, t, e) {
  17202. var n = t.getDisplayables(),
  17203. i = t.getTemporalDisplayables()
  17204. r.save()
  17205. var a = {
  17206. prevElClipPaths: null,
  17207. prevEl: null,
  17208. allClipped: !1,
  17209. viewWidth: e.viewWidth,
  17210. viewHeight: e.viewHeight,
  17211. inHover: e.inHover
  17212. },
  17213. o,
  17214. s
  17215. for (o = t.getCursor(), s = n.length; o < s; o++) {
  17216. var l = n[o]
  17217. l.beforeBrush && l.beforeBrush(),
  17218. l.innerBeforeBrush(),
  17219. bn(r, l, a, o === s - 1),
  17220. l.innerAfterBrush(),
  17221. l.afterBrush && l.afterBrush(),
  17222. (a.prevEl = l)
  17223. }
  17224. for (var u = 0, f = i.length; u < f; u++) {
  17225. var l = i[u]
  17226. l.beforeBrush && l.beforeBrush(),
  17227. l.innerBeforeBrush(),
  17228. bn(r, l, a, u === f - 1),
  17229. l.innerAfterBrush(),
  17230. l.afterBrush && l.afterBrush(),
  17231. (a.prevEl = l)
  17232. }
  17233. t.clearTemporalDisplayables(), (t.notClear = !0), r.restore()
  17234. }
  17235. var Qf = new sD(),
  17236. $m = new zi(100),
  17237. Xm = [
  17238. 'symbol',
  17239. 'symbolSize',
  17240. 'symbolKeepAspect',
  17241. 'color',
  17242. 'backgroundColor',
  17243. 'dashArrayX',
  17244. 'dashArrayY',
  17245. 'maxTileWidth',
  17246. 'maxTileHeight'
  17247. ]
  17248. function Jf(r, t) {
  17249. if (r === 'none') return null
  17250. var e = t.getDevicePixelRatio(),
  17251. n = t.getZr(),
  17252. i = n.painter.type === 'svg'
  17253. r.dirty && Qf.delete(r)
  17254. var a = Qf.get(r)
  17255. if (a) return a
  17256. var o = j(r, {
  17257. symbol: 'rect',
  17258. symbolSize: 1,
  17259. symbolKeepAspect: !0,
  17260. color: 'rgba(0, 0, 0, 0.2)',
  17261. backgroundColor: null,
  17262. dashArrayX: 5,
  17263. dashArrayY: 5,
  17264. rotation: 0,
  17265. maxTileWidth: 512,
  17266. maxTileHeight: 512
  17267. })
  17268. o.backgroundColor === 'none' && (o.backgroundColor = null)
  17269. var s = { repeat: 'repeat' }
  17270. return (
  17271. l(s),
  17272. (s.rotation = o.rotation),
  17273. (s.scaleX = s.scaleY = i ? 1 : 1 / e),
  17274. Qf.set(r, s),
  17275. (r.dirty = !1),
  17276. s
  17277. )
  17278. function l(u) {
  17279. for (var f = [e], h = !0, c = 0; c < Xm.length; ++c) {
  17280. var v = o[Xm[c]]
  17281. if (v != null && !z(v) && !W(v) && !dt(v) && typeof v != 'boolean') {
  17282. h = !1
  17283. break
  17284. }
  17285. f.push(v)
  17286. }
  17287. var d
  17288. if (h) {
  17289. d = f.join(',') + (i ? '-svg' : '')
  17290. var p = $m.get(d)
  17291. p && (i ? (u.svgElement = p) : (u.image = p))
  17292. }
  17293. var g = Km(o.dashArrayX),
  17294. m = LD(o.dashArrayY),
  17295. y = qm(o.symbol),
  17296. _ = PD(g),
  17297. S = Qm(m),
  17298. w = !i && kn.createCanvas(),
  17299. x = i && { tag: 'g', attrs: {}, key: 'dcl', children: [] },
  17300. b = C(),
  17301. T
  17302. w &&
  17303. ((w.width = b.width * e),
  17304. (w.height = b.height * e),
  17305. (T = w.getContext('2d'))),
  17306. M(),
  17307. h && $m.put(d, w || x),
  17308. (u.image = w),
  17309. (u.svgElement = x),
  17310. (u.svgWidth = b.width),
  17311. (u.svgHeight = b.height)
  17312. function C() {
  17313. for (var D = 1, I = 0, L = _.length; I < L; ++I) D = Jc(D, _[I])
  17314. for (var P = 1, I = 0, L = y.length; I < L; ++I) P = Jc(P, y[I].length)
  17315. D *= P
  17316. var R = S * _.length * y.length
  17317. return {
  17318. width: Math.max(1, Math.min(D, o.maxTileWidth)),
  17319. height: Math.max(1, Math.min(R, o.maxTileHeight))
  17320. }
  17321. }
  17322. function M() {
  17323. T &&
  17324. (T.clearRect(0, 0, w.width, w.height),
  17325. o.backgroundColor &&
  17326. ((T.fillStyle = o.backgroundColor),
  17327. T.fillRect(0, 0, w.width, w.height)))
  17328. for (var D = 0, I = 0; I < m.length; ++I) D += m[I]
  17329. if (D <= 0) return
  17330. for (var L = -S, P = 0, R = 0, O = 0; L < b.height; ) {
  17331. if (P % 2 == 0) {
  17332. for (
  17333. var U = (R / 2) % y.length, k = 0, F = 0, H = 0;
  17334. k < b.width * 2;
  17335. ) {
  17336. for (var $ = 0, I = 0; I < g[O].length; ++I) $ += g[O][I]
  17337. if ($ <= 0) break
  17338. if (F % 2 == 0) {
  17339. var J = (1 - o.symbolSize) * 0.5,
  17340. et = k + g[O][F] * J,
  17341. ft = L + m[P] * J,
  17342. Ct = g[O][F] * o.symbolSize,
  17343. mt = m[P] * o.symbolSize,
  17344. zt = (H / 2) % y[U].length
  17345. Vt(et, ft, Ct, mt, y[U][zt])
  17346. }
  17347. ;(k += g[O][F]), ++H, ++F, F === g[O].length && (F = 0)
  17348. }
  17349. ++O, O === g.length && (O = 0)
  17350. }
  17351. ;(L += m[P]), ++R, ++P, P === m.length && (P = 0)
  17352. }
  17353. function Vt(It, bt, K, it, Ne) {
  17354. var Ot = i ? 1 : e,
  17355. _r = Or(
  17356. Ne,
  17357. It * Ot,
  17358. bt * Ot,
  17359. K * Ot,
  17360. it * Ot,
  17361. o.color,
  17362. o.symbolKeepAspect
  17363. )
  17364. if (i) {
  17365. var rr = n.painter.renderOneToVNode(_r)
  17366. rr && x.children.push(rr)
  17367. } else Zm(T, _r)
  17368. }
  17369. }
  17370. }
  17371. }
  17372. function qm(r) {
  17373. if (!r || r.length === 0) return [['rect']]
  17374. if (W(r)) return [[r]]
  17375. for (var t = !0, e = 0; e < r.length; ++e)
  17376. if (!W(r[e])) {
  17377. t = !1
  17378. break
  17379. }
  17380. if (t) return qm([r])
  17381. for (var n = [], e = 0; e < r.length; ++e)
  17382. W(r[e]) ? n.push([r[e]]) : n.push(r[e])
  17383. return n
  17384. }
  17385. function Km(r) {
  17386. if (!r || r.length === 0) return [[0, 0]]
  17387. if (dt(r)) {
  17388. var t = Math.ceil(r)
  17389. return [[t, t]]
  17390. }
  17391. for (var e = !0, n = 0; n < r.length; ++n)
  17392. if (!dt(r[n])) {
  17393. e = !1
  17394. break
  17395. }
  17396. if (e) return Km([r])
  17397. for (var i = [], n = 0; n < r.length; ++n)
  17398. if (dt(r[n])) {
  17399. var t = Math.ceil(r[n])
  17400. i.push([t, t])
  17401. } else {
  17402. var t = G(r[n], function (s) {
  17403. return Math.ceil(s)
  17404. })
  17405. t.length % 2 == 1 ? i.push(t.concat(t)) : i.push(t)
  17406. }
  17407. return i
  17408. }
  17409. function LD(r) {
  17410. if (!r || (typeof r == 'object' && r.length === 0)) return [0, 0]
  17411. if (dt(r)) {
  17412. var t = Math.ceil(r)
  17413. return [t, t]
  17414. }
  17415. var e = G(r, function (n) {
  17416. return Math.ceil(n)
  17417. })
  17418. return r.length % 2 ? e.concat(e) : e
  17419. }
  17420. function PD(r) {
  17421. return G(r, function (t) {
  17422. return Qm(t)
  17423. })
  17424. }
  17425. function Qm(r) {
  17426. for (var t = 0, e = 0; e < r.length; ++e) t += r[e]
  17427. return r.length % 2 == 1 ? t * 2 : t
  17428. }
  17429. function RD(r, t) {
  17430. r.eachRawSeries(function (e) {
  17431. if (!r.isSeriesFiltered(e)) {
  17432. var n = e.getData()
  17433. n.hasItemVisual() &&
  17434. n.each(function (o) {
  17435. var s = n.getItemVisual(o, 'decal')
  17436. if (s) {
  17437. var l = n.ensureUniqueItemVisual(o, 'style')
  17438. l.decal = Jf(s, t)
  17439. }
  17440. })
  17441. var i = n.getVisual('decal')
  17442. if (i) {
  17443. var a = n.getVisual('style')
  17444. a.decal = Jf(i, t)
  17445. }
  17446. }
  17447. })
  17448. }
  17449. var ED = new fe(),
  17450. Pe = ED,
  17451. Jm = {}
  17452. function OD(r, t) {
  17453. Jm[r] = t
  17454. }
  17455. function kD(r) {
  17456. return Jm[r]
  17457. }
  17458. var BD = typeof window != 'undefined',
  17459. ND = 1,
  17460. FD = 800,
  17461. zD = 900,
  17462. VD = 1e3,
  17463. GD = 2e3,
  17464. HD = 5e3,
  17465. jm = 1e3,
  17466. WD = 1100,
  17467. jf = 2e3,
  17468. t0 = 3e3,
  17469. UD = 4e3,
  17470. Us = 4500,
  17471. YD = 4600,
  17472. ZD = 5e3,
  17473. $D = 6e3,
  17474. e0 = 7e3,
  17475. XD = {
  17476. PROCESSOR: { FILTER: VD, SERIES_FILTER: FD, STATISTIC: HD },
  17477. VISUAL: {
  17478. LAYOUT: jm,
  17479. PROGRESSIVE_LAYOUT: WD,
  17480. GLOBAL: jf,
  17481. CHART: t0,
  17482. POST_CHART_LAYOUT: YD,
  17483. COMPONENT: UD,
  17484. BRUSH: ZD,
  17485. CHART_ITEM: Us,
  17486. ARIA: $D,
  17487. DECAL: e0
  17488. }
  17489. },
  17490. Yt = '__flagInMainProcess',
  17491. ne = '__pendingUpdate',
  17492. th = '__needsUpdateStatus',
  17493. r0 = /^[a-zA-Z0-9_]+$/,
  17494. eh = '__connectUpdateStatus',
  17495. n0 = 0,
  17496. qD = 1,
  17497. KD = 2
  17498. function i0(r) {
  17499. return function () {
  17500. for (var t = [], e = 0; e < arguments.length; e++) t[e] = arguments[e]
  17501. if (this.isDisposed()) {
  17502. se(this.id)
  17503. return
  17504. }
  17505. return o0(this, r, t)
  17506. }
  17507. }
  17508. function a0(r) {
  17509. return function () {
  17510. for (var t = [], e = 0; e < arguments.length; e++) t[e] = arguments[e]
  17511. return o0(this, r, t)
  17512. }
  17513. }
  17514. function o0(r, t, e) {
  17515. return (e[0] = e[0] && e[0].toLowerCase()), fe.prototype[t].apply(r, e)
  17516. }
  17517. var s0 = (function (r) {
  17518. B(t, r)
  17519. function t() {
  17520. return (r !== null && r.apply(this, arguments)) || this
  17521. }
  17522. return t
  17523. })(fe),
  17524. l0 = s0.prototype
  17525. l0.on = a0('on')
  17526. l0.off = a0('off')
  17527. var yi,
  17528. rh,
  17529. Ys,
  17530. kr,
  17531. nh,
  17532. ih,
  17533. ah,
  17534. Pa,
  17535. Ra,
  17536. u0,
  17537. f0,
  17538. oh,
  17539. h0,
  17540. Zs,
  17541. v0,
  17542. c0,
  17543. we,
  17544. d0,
  17545. p0 = (function (r) {
  17546. B(t, r)
  17547. function t(e, n, i) {
  17548. var a = r.call(this, new QM()) || this
  17549. ;(a._chartsViews = []),
  17550. (a._chartsMap = {}),
  17551. (a._componentsViews = []),
  17552. (a._componentsMap = {}),
  17553. (a._pendingActions = []),
  17554. (i = i || {}),
  17555. W(n) && (n = g0[n]),
  17556. (a._dom = e)
  17557. var o = 'canvas',
  17558. s = !1,
  17559. l = (a._zr = Uc(e, {
  17560. renderer: i.renderer || o,
  17561. devicePixelRatio: i.devicePixelRatio,
  17562. width: i.width,
  17563. height: i.height,
  17564. ssr: i.ssr,
  17565. useDirtyRect: i.useDirtyRect == null ? s : i.useDirtyRect
  17566. }))
  17567. ;(a._ssr = i.ssr),
  17568. (a._throttledZrFlush = $f(X(l.flush, l), 17)),
  17569. (n = tt(n)),
  17570. n && Eg(n, !0),
  17571. (a._theme = n),
  17572. (a._locale = KC(i.locale || Xp)),
  17573. (a._coordSysMgr = new If())
  17574. var u = (a._api = v0(a))
  17575. function f(h, c) {
  17576. return h.__prio - c.__prio
  17577. }
  17578. return (
  17579. uo(Xs, f),
  17580. uo(lh, f),
  17581. (a._scheduler = new Am(a, u, lh, Xs)),
  17582. (a._messageCenter = new s0()),
  17583. a._initEvents(),
  17584. (a.resize = X(a.resize, a)),
  17585. l.animation.on('frame', a._onframe, a),
  17586. u0(l, a),
  17587. f0(l, a),
  17588. oo(a),
  17589. a
  17590. )
  17591. }
  17592. return (
  17593. (t.prototype._onframe = function () {
  17594. if (!this._disposed) {
  17595. d0(this)
  17596. var e = this._scheduler
  17597. if (this[ne]) {
  17598. var n = this[ne].silent
  17599. this[Yt] = !0
  17600. try {
  17601. yi(this), kr.update.call(this, null, this[ne].updateParams)
  17602. } catch (l) {
  17603. throw ((this[Yt] = !1), (this[ne] = null), l)
  17604. }
  17605. this._zr.flush(),
  17606. (this[Yt] = !1),
  17607. (this[ne] = null),
  17608. Pa.call(this, n),
  17609. Ra.call(this, n)
  17610. } else if (e.unfinished) {
  17611. var i = ND,
  17612. a = this._model,
  17613. o = this._api
  17614. e.unfinished = !1
  17615. do {
  17616. var s = +new Date()
  17617. e.performSeriesTasks(a),
  17618. e.performDataProcessorTasks(a),
  17619. ih(this, a),
  17620. e.performVisualTasks(a),
  17621. Zs(this, this._model, o, 'remain', {}),
  17622. (i -= +new Date() - s)
  17623. } while (i > 0 && e.unfinished)
  17624. e.unfinished || this._zr.flush()
  17625. }
  17626. }
  17627. }),
  17628. (t.prototype.getDom = function () {
  17629. return this._dom
  17630. }),
  17631. (t.prototype.getId = function () {
  17632. return this.id
  17633. }),
  17634. (t.prototype.getZr = function () {
  17635. return this._zr
  17636. }),
  17637. (t.prototype.isSSR = function () {
  17638. return this._ssr
  17639. }),
  17640. (t.prototype.setOption = function (e, n, i) {
  17641. if (!this[Yt]) {
  17642. if (this._disposed) {
  17643. se(this.id)
  17644. return
  17645. }
  17646. var a, o, s
  17647. if (
  17648. (Y(n) &&
  17649. ((i = n.lazyUpdate),
  17650. (a = n.silent),
  17651. (o = n.replaceMerge),
  17652. (s = n.transition),
  17653. (n = n.notMerge)),
  17654. (this[Yt] = !0),
  17655. !this._model || n)
  17656. ) {
  17657. var l = new EA(this._api),
  17658. u = this._theme,
  17659. f = (this._model = new Cg())
  17660. ;(f.scheduler = this._scheduler),
  17661. (f.ssr = this._ssr),
  17662. f.init(null, null, null, u, this._locale, l)
  17663. }
  17664. this._model.setOption(e, { replaceMerge: o }, uh)
  17665. var h = { seriesTransition: s, optionChanged: !0 }
  17666. if (i)
  17667. (this[ne] = { silent: a, updateParams: h }),
  17668. (this[Yt] = !1),
  17669. this.getZr().wakeUp()
  17670. else {
  17671. try {
  17672. yi(this), kr.update.call(this, null, h)
  17673. } catch (c) {
  17674. throw ((this[ne] = null), (this[Yt] = !1), c)
  17675. }
  17676. this._ssr || this._zr.flush(),
  17677. (this[ne] = null),
  17678. (this[Yt] = !1),
  17679. Pa.call(this, a),
  17680. Ra.call(this, a)
  17681. }
  17682. }
  17683. }),
  17684. (t.prototype.setTheme = function () {}),
  17685. (t.prototype.getModel = function () {
  17686. return this._model
  17687. }),
  17688. (t.prototype.getOption = function () {
  17689. return this._model && this._model.getOption()
  17690. }),
  17691. (t.prototype.getWidth = function () {
  17692. return this._zr.getWidth()
  17693. }),
  17694. (t.prototype.getHeight = function () {
  17695. return this._zr.getHeight()
  17696. }),
  17697. (t.prototype.getDevicePixelRatio = function () {
  17698. return this._zr.painter.dpr || (BD && window.devicePixelRatio) || 1
  17699. }),
  17700. (t.prototype.getRenderedCanvas = function (e) {
  17701. return this.renderToCanvas(e)
  17702. }),
  17703. (t.prototype.renderToCanvas = function (e) {
  17704. e = e || {}
  17705. var n = this._zr.painter
  17706. return n.getRenderedCanvas({
  17707. backgroundColor:
  17708. e.backgroundColor || this._model.get('backgroundColor'),
  17709. pixelRatio: e.pixelRatio || this.getDevicePixelRatio()
  17710. })
  17711. }),
  17712. (t.prototype.renderToSVGString = function (e) {
  17713. e = e || {}
  17714. var n = this._zr.painter
  17715. return n.renderToString({ useViewBox: e.useViewBox })
  17716. }),
  17717. (t.prototype.getSvgDataURL = function () {
  17718. if (!!at.svgSupported) {
  17719. var e = this._zr,
  17720. n = e.storage.getDisplayList()
  17721. return (
  17722. A(n, function (i) {
  17723. i.stopAnimation(null, !0)
  17724. }),
  17725. e.painter.toDataURL()
  17726. )
  17727. }
  17728. }),
  17729. (t.prototype.getDataURL = function (e) {
  17730. if (this._disposed) {
  17731. se(this.id)
  17732. return
  17733. }
  17734. e = e || {}
  17735. var n = e.excludeComponents,
  17736. i = this._model,
  17737. a = [],
  17738. o = this
  17739. A(n, function (l) {
  17740. i.eachComponent({ mainType: l }, function (u) {
  17741. var f = o._componentsMap[u.__viewId]
  17742. f.group.ignore || (a.push(f), (f.group.ignore = !0))
  17743. })
  17744. })
  17745. var s =
  17746. this._zr.painter.getType() === 'svg'
  17747. ? this.getSvgDataURL()
  17748. : this.renderToCanvas(e).toDataURL(
  17749. 'image/' + ((e && e.type) || 'png')
  17750. )
  17751. return (
  17752. A(a, function (l) {
  17753. l.group.ignore = !1
  17754. }),
  17755. s
  17756. )
  17757. }),
  17758. (t.prototype.getConnectedDataURL = function (e) {
  17759. if (this._disposed) {
  17760. se(this.id)
  17761. return
  17762. }
  17763. var n = e.type === 'svg',
  17764. i = this.group,
  17765. a = Math.min,
  17766. o = Math.max,
  17767. s = 1 / 0
  17768. if (m0[i]) {
  17769. var l = s,
  17770. u = s,
  17771. f = -s,
  17772. h = -s,
  17773. c = [],
  17774. v = (e && e.pixelRatio) || this.getDevicePixelRatio()
  17775. A(Oa, function (_, S) {
  17776. if (_.group === i) {
  17777. var w = n
  17778. ? _.getZr().painter.getSvgDom().innerHTML
  17779. : _.renderToCanvas(tt(e)),
  17780. x = _.getDom().getBoundingClientRect()
  17781. ;(l = a(x.left, l)),
  17782. (u = a(x.top, u)),
  17783. (f = o(x.right, f)),
  17784. (h = o(x.bottom, h)),
  17785. c.push({ dom: w, left: x.left, top: x.top })
  17786. }
  17787. }),
  17788. (l *= v),
  17789. (u *= v),
  17790. (f *= v),
  17791. (h *= v)
  17792. var d = f - l,
  17793. p = h - u,
  17794. g = kn.createCanvas(),
  17795. m = Uc(g, { renderer: n ? 'svg' : 'canvas' })
  17796. if ((m.resize({ width: d, height: p }), n)) {
  17797. var y = ''
  17798. return (
  17799. A(c, function (_) {
  17800. var S = _.left - l,
  17801. w = _.top - u
  17802. y +=
  17803. '<g transform="translate(' +
  17804. S +
  17805. ',' +
  17806. w +
  17807. ')">' +
  17808. _.dom +
  17809. '</g>'
  17810. }),
  17811. (m.painter.getSvgRoot().innerHTML = y),
  17812. e.connectedBackgroundColor &&
  17813. m.painter.setBackgroundColor(e.connectedBackgroundColor),
  17814. m.refreshImmediately(),
  17815. m.painter.toDataURL()
  17816. )
  17817. } else
  17818. return (
  17819. e.connectedBackgroundColor &&
  17820. m.add(
  17821. new St({
  17822. shape: { x: 0, y: 0, width: d, height: p },
  17823. style: { fill: e.connectedBackgroundColor }
  17824. })
  17825. ),
  17826. A(c, function (_) {
  17827. var S = new un({
  17828. style: { x: _.left * v - l, y: _.top * v - u, image: _.dom }
  17829. })
  17830. m.add(S)
  17831. }),
  17832. m.refreshImmediately(),
  17833. g.toDataURL('image/' + ((e && e.type) || 'png'))
  17834. )
  17835. } else return this.getDataURL(e)
  17836. }),
  17837. (t.prototype.convertToPixel = function (e, n) {
  17838. return nh(this, 'convertToPixel', e, n)
  17839. }),
  17840. (t.prototype.convertFromPixel = function (e, n) {
  17841. return nh(this, 'convertFromPixel', e, n)
  17842. }),
  17843. (t.prototype.containPixel = function (e, n) {
  17844. if (this._disposed) {
  17845. se(this.id)
  17846. return
  17847. }
  17848. var i = this._model,
  17849. a,
  17850. o = Ji(i, e)
  17851. return (
  17852. A(
  17853. o,
  17854. function (s, l) {
  17855. l.indexOf('Models') >= 0 &&
  17856. A(
  17857. s,
  17858. function (u) {
  17859. var f = u.coordinateSystem
  17860. if (f && f.containPoint) a = a || !!f.containPoint(n)
  17861. else if (l === 'seriesModels') {
  17862. var h = this._chartsMap[u.__viewId]
  17863. h && h.containPoint && (a = a || h.containPoint(n, u))
  17864. }
  17865. },
  17866. this
  17867. )
  17868. },
  17869. this
  17870. ),
  17871. !!a
  17872. )
  17873. }),
  17874. (t.prototype.getVisual = function (e, n) {
  17875. var i = this._model,
  17876. a = Ji(i, e, { defaultMainType: 'series' }),
  17877. o = a.seriesModel,
  17878. s = o.getData(),
  17879. l = a.hasOwnProperty('dataIndexInside')
  17880. ? a.dataIndexInside
  17881. : a.hasOwnProperty('dataIndex')
  17882. ? s.indexOfRawIndex(a.dataIndex)
  17883. : null
  17884. return l != null ? tD(s, l, n) : eD(s, n)
  17885. }),
  17886. (t.prototype.getViewOfComponentModel = function (e) {
  17887. return this._componentsMap[e.__viewId]
  17888. }),
  17889. (t.prototype.getViewOfSeriesModel = function (e) {
  17890. return this._chartsMap[e.__viewId]
  17891. }),
  17892. (t.prototype._initEvents = function () {
  17893. var e = this
  17894. A(QD, function (n) {
  17895. var i = function (a) {
  17896. var o = e.getModel(),
  17897. s = a.target,
  17898. l,
  17899. u = n === 'globalout'
  17900. if (
  17901. (u
  17902. ? (l = {})
  17903. : s &&
  17904. Ia(
  17905. s,
  17906. function (d) {
  17907. var p = ct(d)
  17908. if (p && p.dataIndex != null) {
  17909. var g = p.dataModel || o.getSeriesByIndex(p.seriesIndex)
  17910. return (
  17911. (l =
  17912. (g && g.getDataParams(p.dataIndex, p.dataType)) ||
  17913. {}),
  17914. !0
  17915. )
  17916. } else if (p.eventData)
  17917. return (l = N({}, p.eventData)), !0
  17918. },
  17919. !0
  17920. ),
  17921. l)
  17922. ) {
  17923. var f = l.componentType,
  17924. h = l.componentIndex
  17925. ;(f === 'markLine' || f === 'markPoint' || f === 'markArea') &&
  17926. ((f = 'series'), (h = l.seriesIndex))
  17927. var c = f && h != null && o.getComponent(f, h),
  17928. v =
  17929. c &&
  17930. e[c.mainType === 'series' ? '_chartsMap' : '_componentsMap'][
  17931. c.__viewId
  17932. ]
  17933. ;(l.event = a),
  17934. (l.type = n),
  17935. (e._$eventProcessor.eventInfo = {
  17936. targetEl: s,
  17937. packedEvent: l,
  17938. model: c,
  17939. view: v
  17940. }),
  17941. e.trigger(n, l)
  17942. }
  17943. }
  17944. ;(i.zrEventfulCallAtLast = !0), e._zr.on(n, i, e)
  17945. }),
  17946. A(Ea, function (n, i) {
  17947. e._messageCenter.on(
  17948. i,
  17949. function (a) {
  17950. this.trigger(i, a)
  17951. },
  17952. e
  17953. )
  17954. }),
  17955. A(['selectchanged'], function (n) {
  17956. e._messageCenter.on(
  17957. n,
  17958. function (i) {
  17959. this.trigger(n, i)
  17960. },
  17961. e
  17962. )
  17963. }),
  17964. nD(this._messageCenter, this, this._api)
  17965. }),
  17966. (t.prototype.isDisposed = function () {
  17967. return this._disposed
  17968. }),
  17969. (t.prototype.clear = function () {
  17970. if (this._disposed) {
  17971. se(this.id)
  17972. return
  17973. }
  17974. this.setOption({ series: [] }, !0)
  17975. }),
  17976. (t.prototype.dispose = function () {
  17977. if (this._disposed) {
  17978. se(this.id)
  17979. return
  17980. }
  17981. this._disposed = !0
  17982. var e = this.getDom()
  17983. e && id(this.getDom(), hh, '')
  17984. var n = this,
  17985. i = n._api,
  17986. a = n._model
  17987. A(n._componentsViews, function (o) {
  17988. o.dispose(a, i)
  17989. }),
  17990. A(n._chartsViews, function (o) {
  17991. o.dispose(a, i)
  17992. }),
  17993. n._zr.dispose(),
  17994. (n._dom =
  17995. n._model =
  17996. n._chartsMap =
  17997. n._componentsMap =
  17998. n._chartsViews =
  17999. n._componentsViews =
  18000. n._scheduler =
  18001. n._api =
  18002. n._zr =
  18003. n._throttledZrFlush =
  18004. n._theme =
  18005. n._coordSysMgr =
  18006. n._messageCenter =
  18007. null),
  18008. delete Oa[n.id]
  18009. }),
  18010. (t.prototype.resize = function (e) {
  18011. if (!this[Yt]) {
  18012. if (this._disposed) {
  18013. se(this.id)
  18014. return
  18015. }
  18016. this._zr.resize(e)
  18017. var n = this._model
  18018. if ((this._loadingFX && this._loadingFX.resize(), !!n)) {
  18019. var i = n.resetOption('media'),
  18020. a = e && e.silent
  18021. this[ne] &&
  18022. (a == null && (a = this[ne].silent), (i = !0), (this[ne] = null)),
  18023. (this[Yt] = !0)
  18024. try {
  18025. i && yi(this),
  18026. kr.update.call(this, {
  18027. type: 'resize',
  18028. animation: N({ duration: 0 }, e && e.animation)
  18029. })
  18030. } catch (o) {
  18031. throw ((this[Yt] = !1), o)
  18032. }
  18033. ;(this[Yt] = !1), Pa.call(this, a), Ra.call(this, a)
  18034. }
  18035. }
  18036. }),
  18037. (t.prototype.showLoading = function (e, n) {
  18038. if (this._disposed) {
  18039. se(this.id)
  18040. return
  18041. }
  18042. if (
  18043. (Y(e) && ((n = e), (e = '')),
  18044. (e = e || 'default'),
  18045. this.hideLoading(),
  18046. !!fh[e])
  18047. ) {
  18048. var i = fh[e](this._api, n),
  18049. a = this._zr
  18050. ;(this._loadingFX = i), a.add(i)
  18051. }
  18052. }),
  18053. (t.prototype.hideLoading = function () {
  18054. if (this._disposed) {
  18055. se(this.id)
  18056. return
  18057. }
  18058. this._loadingFX && this._zr.remove(this._loadingFX),
  18059. (this._loadingFX = null)
  18060. }),
  18061. (t.prototype.makeActionFromEvent = function (e) {
  18062. var n = N({}, e)
  18063. return (n.type = Ea[e.type]), n
  18064. }),
  18065. (t.prototype.dispatchAction = function (e, n) {
  18066. if (this._disposed) {
  18067. se(this.id)
  18068. return
  18069. }
  18070. if ((Y(n) || (n = { silent: !!n }), !!$s[e.type] && !!this._model)) {
  18071. if (this[Yt]) {
  18072. this._pendingActions.push(e)
  18073. return
  18074. }
  18075. var i = n.silent
  18076. ah.call(this, e, i)
  18077. var a = n.flush
  18078. a
  18079. ? this._zr.flush()
  18080. : a !== !1 && at.browser.weChat && this._throttledZrFlush(),
  18081. Pa.call(this, i),
  18082. Ra.call(this, i)
  18083. }
  18084. }),
  18085. (t.prototype.updateLabelLayout = function () {
  18086. Pe.trigger('series:layoutlabels', this._model, this._api, {
  18087. updatedSeries: []
  18088. })
  18089. }),
  18090. (t.prototype.appendData = function (e) {
  18091. if (this._disposed) {
  18092. se(this.id)
  18093. return
  18094. }
  18095. var n = e.seriesIndex,
  18096. i = this.getModel(),
  18097. a = i.getSeriesByIndex(n)
  18098. a.appendData(e),
  18099. (this._scheduler.unfinished = !0),
  18100. this.getZr().wakeUp()
  18101. }),
  18102. (t.internalField = (function () {
  18103. ;(yi = function (h) {
  18104. var c = h._scheduler
  18105. c.restorePipelines(h._model),
  18106. c.prepareStageTasks(),
  18107. rh(h, !0),
  18108. rh(h, !1),
  18109. c.plan()
  18110. }),
  18111. (rh = function (h, c) {
  18112. for (
  18113. var v = h._model,
  18114. d = h._scheduler,
  18115. p = c ? h._componentsViews : h._chartsViews,
  18116. g = c ? h._componentsMap : h._chartsMap,
  18117. m = h._zr,
  18118. y = h._api,
  18119. _ = 0;
  18120. _ < p.length;
  18121. _++
  18122. )
  18123. p[_].__alive = !1
  18124. c
  18125. ? v.eachComponent(function (x, b) {
  18126. x !== 'series' && S(b)
  18127. })
  18128. : v.eachSeries(S)
  18129. function S(x) {
  18130. var b = x.__requireNewView
  18131. x.__requireNewView = !1
  18132. var T = '_ec_' + x.id + '_' + x.type,
  18133. C = !b && g[T]
  18134. if (!C) {
  18135. var M = Ue(x.type),
  18136. D = c ? xe.getClass(M.main, M.sub) : Qe.getClass(M.sub)
  18137. ;(C = new D()),
  18138. C.init(v, y),
  18139. (g[T] = C),
  18140. p.push(C),
  18141. m.add(C.group)
  18142. }
  18143. ;(x.__viewId = C.__id = T),
  18144. (C.__alive = !0),
  18145. (C.__model = x),
  18146. (C.group.__ecComponentInfo = {
  18147. mainType: x.mainType,
  18148. index: x.componentIndex
  18149. }),
  18150. !c && d.prepareView(C, x, v, y)
  18151. }
  18152. for (var _ = 0; _ < p.length; ) {
  18153. var w = p[_]
  18154. w.__alive
  18155. ? _++
  18156. : (!c && w.renderTask.dispose(),
  18157. m.remove(w.group),
  18158. w.dispose(v, y),
  18159. p.splice(_, 1),
  18160. g[w.__id] === w && delete g[w.__id],
  18161. (w.__id = w.group.__ecComponentInfo = null))
  18162. }
  18163. }),
  18164. (Ys = function (h, c, v, d, p) {
  18165. var g = h._model
  18166. if ((g.setUpdatePayload(v), !d)) {
  18167. A([].concat(h._componentsViews).concat(h._chartsViews), w)
  18168. return
  18169. }
  18170. var m = {}
  18171. ;(m[d + 'Id'] = v[d + 'Id']),
  18172. (m[d + 'Index'] = v[d + 'Index']),
  18173. (m[d + 'Name'] = v[d + 'Name'])
  18174. var y = { mainType: d, query: m }
  18175. p && (y.subType = p)
  18176. var _ = v.excludeSeriesId,
  18177. S
  18178. _ != null &&
  18179. ((S = q()),
  18180. A(Mt(_), function (x) {
  18181. var b = We(x, null)
  18182. b != null && S.set(b, !0)
  18183. })),
  18184. g &&
  18185. g.eachComponent(
  18186. y,
  18187. function (x) {
  18188. var b = S && S.get(x.id) !== null
  18189. if (!b)
  18190. if (np(v))
  18191. if (x instanceof Er)
  18192. v.type === hn &&
  18193. !v.notBlur &&
  18194. !x.get(['emphasis', 'disabled']) &&
  18195. LT(x, v, h._api)
  18196. else {
  18197. var T = Qu(
  18198. x.mainType,
  18199. x.componentIndex,
  18200. v.name,
  18201. h._api
  18202. ),
  18203. C = T.focusSelf,
  18204. M = T.dispatchers
  18205. v.type === hn &&
  18206. C &&
  18207. !v.notBlur &&
  18208. Ku(x.mainType, x.componentIndex, h._api),
  18209. M &&
  18210. A(M, function (D) {
  18211. v.type === hn ? ei(D) : ri(D)
  18212. })
  18213. }
  18214. else
  18215. ju(v) &&
  18216. x instanceof Er &&
  18217. (ET(x, v, h._api), tp(x), we(h))
  18218. },
  18219. h
  18220. ),
  18221. g &&
  18222. g.eachComponent(
  18223. y,
  18224. function (x) {
  18225. var b = S && S.get(x.id) !== null
  18226. b ||
  18227. w(
  18228. h[d === 'series' ? '_chartsMap' : '_componentsMap'][
  18229. x.__viewId
  18230. ]
  18231. )
  18232. },
  18233. h
  18234. )
  18235. function w(x) {
  18236. x && x.__alive && x[c] && x[c](x.__model, g, h._api, v)
  18237. }
  18238. }),
  18239. (kr = {
  18240. prepareAndUpdate: function (h) {
  18241. yi(this),
  18242. kr.update.call(this, h, { optionChanged: h.newOption != null })
  18243. },
  18244. update: function (h, c) {
  18245. var v = this._model,
  18246. d = this._api,
  18247. p = this._zr,
  18248. g = this._coordSysMgr,
  18249. m = this._scheduler
  18250. if (!!v) {
  18251. v.setUpdatePayload(h),
  18252. m.restoreData(v, h),
  18253. m.performSeriesTasks(v),
  18254. g.create(v, d),
  18255. m.performDataProcessorTasks(v, h),
  18256. ih(this, v),
  18257. g.update(v, d),
  18258. e(v),
  18259. m.performVisualTasks(v, h),
  18260. oh(this, v, d, h, c)
  18261. var y = v.get('backgroundColor') || 'transparent',
  18262. _ = v.get('darkMode')
  18263. p.setBackgroundColor(y),
  18264. _ != null && _ !== 'auto' && p.setDarkMode(_),
  18265. Pe.trigger('afterupdate', v, d)
  18266. }
  18267. },
  18268. updateTransform: function (h) {
  18269. var c = this,
  18270. v = this._model,
  18271. d = this._api
  18272. if (!!v) {
  18273. v.setUpdatePayload(h)
  18274. var p = []
  18275. v.eachComponent(function (m, y) {
  18276. if (m !== 'series') {
  18277. var _ = c.getViewOfComponentModel(y)
  18278. if (_ && _.__alive)
  18279. if (_.updateTransform) {
  18280. var S = _.updateTransform(y, v, d, h)
  18281. S && S.update && p.push(_)
  18282. } else p.push(_)
  18283. }
  18284. })
  18285. var g = q()
  18286. v.eachSeries(function (m) {
  18287. var y = c._chartsMap[m.__viewId]
  18288. if (y.updateTransform) {
  18289. var _ = y.updateTransform(m, v, d, h)
  18290. _ && _.update && g.set(m.uid, 1)
  18291. } else g.set(m.uid, 1)
  18292. }),
  18293. e(v),
  18294. this._scheduler.performVisualTasks(v, h, {
  18295. setDirty: !0,
  18296. dirtyMap: g
  18297. }),
  18298. Zs(this, v, d, h, {}, g),
  18299. Pe.trigger('afterupdate', v, d)
  18300. }
  18301. },
  18302. updateView: function (h) {
  18303. var c = this._model
  18304. !c ||
  18305. (c.setUpdatePayload(h),
  18306. Qe.markUpdateMethod(h, 'updateView'),
  18307. e(c),
  18308. this._scheduler.performVisualTasks(c, h, { setDirty: !0 }),
  18309. oh(this, c, this._api, h, {}),
  18310. Pe.trigger('afterupdate', c, this._api))
  18311. },
  18312. updateVisual: function (h) {
  18313. var c = this,
  18314. v = this._model
  18315. !v ||
  18316. (v.setUpdatePayload(h),
  18317. v.eachSeries(function (d) {
  18318. d.getData().clearAllVisual()
  18319. }),
  18320. Qe.markUpdateMethod(h, 'updateVisual'),
  18321. e(v),
  18322. this._scheduler.performVisualTasks(v, h, {
  18323. visualType: 'visual',
  18324. setDirty: !0
  18325. }),
  18326. v.eachComponent(function (d, p) {
  18327. if (d !== 'series') {
  18328. var g = c.getViewOfComponentModel(p)
  18329. g && g.__alive && g.updateVisual(p, v, c._api, h)
  18330. }
  18331. }),
  18332. v.eachSeries(function (d) {
  18333. var p = c._chartsMap[d.__viewId]
  18334. p.updateVisual(d, v, c._api, h)
  18335. }),
  18336. Pe.trigger('afterupdate', v, this._api))
  18337. },
  18338. updateLayout: function (h) {
  18339. kr.update.call(this, h)
  18340. }
  18341. }),
  18342. (nh = function (h, c, v, d) {
  18343. if (h._disposed) {
  18344. se(h.id)
  18345. return
  18346. }
  18347. for (
  18348. var p = h._model,
  18349. g = h._coordSysMgr.getCoordinateSystems(),
  18350. m,
  18351. y = Ji(p, v),
  18352. _ = 0;
  18353. _ < g.length;
  18354. _++
  18355. ) {
  18356. var S = g[_]
  18357. if (S[c] && (m = S[c](p, y, d)) != null) return m
  18358. }
  18359. }),
  18360. (ih = function (h, c) {
  18361. var v = h._chartsMap,
  18362. d = h._scheduler
  18363. c.eachSeries(function (p) {
  18364. d.updateStreamModes(p, v[p.__viewId])
  18365. })
  18366. }),
  18367. (ah = function (h, c) {
  18368. var v = this,
  18369. d = this.getModel(),
  18370. p = h.type,
  18371. g = h.escapeConnect,
  18372. m = $s[p],
  18373. y = m.actionInfo,
  18374. _ = (y.update || 'update').split(':'),
  18375. S = _.pop(),
  18376. w = _[0] != null && Ue(_[0])
  18377. this[Yt] = !0
  18378. var x = [h],
  18379. b = !1
  18380. h.batch &&
  18381. ((b = !0),
  18382. (x = G(h.batch, function (P) {
  18383. return (P = j(N({}, P), h)), (P.batch = null), P
  18384. })))
  18385. var T = [],
  18386. C,
  18387. M = ju(h),
  18388. D = np(h)
  18389. if (
  18390. (D && jd(this._api),
  18391. A(x, function (P) {
  18392. if (
  18393. ((C = m.action(P, v._model, v._api)),
  18394. (C = C || N({}, P)),
  18395. (C.type = y.event || C.type),
  18396. T.push(C),
  18397. D)
  18398. ) {
  18399. var R = Mu(h),
  18400. O = R.queryOptionMap,
  18401. U = R.mainTypeSpecified,
  18402. k = U ? O.keys()[0] : 'series'
  18403. Ys(v, S, P, k), we(v)
  18404. } else M ? (Ys(v, S, P, 'series'), we(v)) : w && Ys(v, S, P, w.main, w.sub)
  18405. }),
  18406. S !== 'none' && !D && !M && !w)
  18407. )
  18408. try {
  18409. this[ne]
  18410. ? (yi(this), kr.update.call(this, h), (this[ne] = null))
  18411. : kr[S].call(this, h)
  18412. } catch (P) {
  18413. throw ((this[Yt] = !1), P)
  18414. }
  18415. if (
  18416. (b
  18417. ? (C = { type: y.event || p, escapeConnect: g, batch: T })
  18418. : (C = T[0]),
  18419. (this[Yt] = !1),
  18420. !c)
  18421. ) {
  18422. var I = this._messageCenter
  18423. if ((I.trigger(C.type, C), M)) {
  18424. var L = {
  18425. type: 'selectchanged',
  18426. escapeConnect: g,
  18427. selected: OT(d),
  18428. isFromClick: h.isFromClick || !1,
  18429. fromAction: h.type,
  18430. fromActionPayload: h
  18431. }
  18432. I.trigger(L.type, L)
  18433. }
  18434. }
  18435. }),
  18436. (Pa = function (h) {
  18437. for (var c = this._pendingActions; c.length; ) {
  18438. var v = c.shift()
  18439. ah.call(this, v, h)
  18440. }
  18441. }),
  18442. (Ra = function (h) {
  18443. !h && this.trigger('updated')
  18444. }),
  18445. (u0 = function (h, c) {
  18446. h.on('rendered', function (v) {
  18447. c.trigger('rendered', v),
  18448. h.animation.isFinished() &&
  18449. !c[ne] &&
  18450. !c._scheduler.unfinished &&
  18451. !c._pendingActions.length &&
  18452. c.trigger('finished')
  18453. })
  18454. }),
  18455. (f0 = function (h, c) {
  18456. h.on('mouseover', function (v) {
  18457. var d = v.target,
  18458. p = Ia(d, Ju)
  18459. p && (PT(p, v, c._api), we(c))
  18460. })
  18461. .on('mouseout', function (v) {
  18462. var d = v.target,
  18463. p = Ia(d, Ju)
  18464. p && (RT(p, v, c._api), we(c))
  18465. })
  18466. .on('click', function (v) {
  18467. var d = v.target,
  18468. p = Ia(
  18469. d,
  18470. function (y) {
  18471. return ct(y).dataIndex != null
  18472. },
  18473. !0
  18474. )
  18475. if (p) {
  18476. var g = p.selected ? 'unselect' : 'select',
  18477. m = ct(p)
  18478. c._api.dispatchAction({
  18479. type: g,
  18480. dataType: m.dataType,
  18481. dataIndexInside: m.dataIndex,
  18482. seriesIndex: m.seriesIndex,
  18483. isFromClick: !0
  18484. })
  18485. }
  18486. })
  18487. })
  18488. function e(h) {
  18489. h.clearColorPalette(),
  18490. h.eachSeries(function (c) {
  18491. c.clearColorPalette()
  18492. })
  18493. }
  18494. function n(h) {
  18495. var c = [],
  18496. v = [],
  18497. d = !1
  18498. if (
  18499. (h.eachComponent(function (y, _) {
  18500. var S = _.get('zlevel') || 0,
  18501. w = _.get('z') || 0,
  18502. x = _.getZLevelKey()
  18503. ;(d = d || !!x),
  18504. (y === 'series' ? v : c).push({
  18505. zlevel: S,
  18506. z: w,
  18507. idx: _.componentIndex,
  18508. type: y,
  18509. key: x
  18510. })
  18511. }),
  18512. d)
  18513. ) {
  18514. var p = c.concat(v),
  18515. g,
  18516. m
  18517. uo(p, function (y, _) {
  18518. return y.zlevel === _.zlevel ? y.z - _.z : y.zlevel - _.zlevel
  18519. }),
  18520. A(p, function (y) {
  18521. var _ = h.getComponent(y.type, y.idx),
  18522. S = y.zlevel,
  18523. w = y.key
  18524. g != null && (S = Math.max(g, S)),
  18525. w
  18526. ? (S === g && w !== m && S++, (m = w))
  18527. : m && (S === g && S++, (m = '')),
  18528. (g = S),
  18529. _.setZLevel(S)
  18530. })
  18531. }
  18532. }
  18533. ;(oh = function (h, c, v, d, p) {
  18534. n(c),
  18535. h0(h, c, v, d, p),
  18536. A(h._chartsViews, function (g) {
  18537. g.__alive = !1
  18538. }),
  18539. Zs(h, c, v, d, p),
  18540. A(h._chartsViews, function (g) {
  18541. g.__alive || g.remove(c, v)
  18542. })
  18543. }),
  18544. (h0 = function (h, c, v, d, p, g) {
  18545. A(g || h._componentsViews, function (m) {
  18546. var y = m.__model
  18547. u(y, m), m.render(y, c, v, d), s(y, m), f(y, m)
  18548. })
  18549. }),
  18550. (Zs = function (h, c, v, d, p, g) {
  18551. var m = h._scheduler
  18552. ;(p = N(p || {}, { updatedSeries: c.getSeries() })),
  18553. Pe.trigger('series:beforeupdate', c, v, p)
  18554. var y = !1
  18555. c.eachSeries(function (_) {
  18556. var S = h._chartsMap[_.__viewId]
  18557. S.__alive = !0
  18558. var w = S.renderTask
  18559. m.updatePayload(w, d),
  18560. u(_, S),
  18561. g && g.get(_.uid) && w.dirty(),
  18562. w.perform(m.getPerformArgs(w)) && (y = !0),
  18563. (S.group.silent = !!_.get('silent')),
  18564. o(_, S),
  18565. tp(_)
  18566. }),
  18567. (m.unfinished = y || m.unfinished),
  18568. Pe.trigger('series:layoutlabels', c, v, p),
  18569. Pe.trigger('series:transition', c, v, p),
  18570. c.eachSeries(function (_) {
  18571. var S = h._chartsMap[_.__viewId]
  18572. s(_, S), f(_, S)
  18573. }),
  18574. a(h, c),
  18575. Pe.trigger('series:afterupdate', c, v, p)
  18576. }),
  18577. (we = function (h) {
  18578. ;(h[th] = !0), h.getZr().wakeUp()
  18579. }),
  18580. (d0 = function (h) {
  18581. !h[th] ||
  18582. (h.getZr().storage.traverse(function (c) {
  18583. oi(c) || i(c)
  18584. }),
  18585. (h[th] = !1))
  18586. })
  18587. function i(h) {
  18588. for (var c = [], v = h.currentStates, d = 0; d < v.length; d++) {
  18589. var p = v[d]
  18590. p === 'emphasis' || p === 'blur' || p === 'select' || c.push(p)
  18591. }
  18592. h.selected && h.states.select && c.push('select'),
  18593. h.hoverState === Uo && h.states.emphasis
  18594. ? c.push('emphasis')
  18595. : h.hoverState === Wo && h.states.blur && c.push('blur'),
  18596. h.useStates(c)
  18597. }
  18598. function a(h, c) {
  18599. var v = h._zr,
  18600. d = v.storage,
  18601. p = 0
  18602. d.traverse(function (g) {
  18603. g.isGroup || p++
  18604. }),
  18605. p > c.get('hoverLayerThreshold') &&
  18606. !at.node &&
  18607. !at.worker &&
  18608. c.eachSeries(function (g) {
  18609. if (!g.preventUsingHoverLayer) {
  18610. var m = h._chartsMap[g.__viewId]
  18611. m.__alive &&
  18612. m.eachRendered(function (y) {
  18613. y.states.emphasis && (y.states.emphasis.hoverLayer = !0)
  18614. })
  18615. }
  18616. })
  18617. }
  18618. function o(h, c) {
  18619. var v = h.get('blendMode') || null
  18620. c.eachRendered(function (d) {
  18621. d.isGroup || (d.style.blend = v)
  18622. })
  18623. }
  18624. function s(h, c) {
  18625. if (!h.preventAutoZ) {
  18626. var v = h.get('z') || 0,
  18627. d = h.get('zlevel') || 0
  18628. c.eachRendered(function (p) {
  18629. return l(p, v, d, -1 / 0), !0
  18630. })
  18631. }
  18632. }
  18633. function l(h, c, v, d) {
  18634. var p = h.getTextContent(),
  18635. g = h.getTextGuideLine(),
  18636. m = h.isGroup
  18637. if (m)
  18638. for (var y = h.childrenRef(), _ = 0; _ < y.length; _++)
  18639. d = Math.max(l(y[_], c, v, d), d)
  18640. else (h.z = c), (h.zlevel = v), (d = Math.max(h.z2, d))
  18641. if (
  18642. (p && ((p.z = c), (p.zlevel = v), isFinite(d) && (p.z2 = d + 2)), g)
  18643. ) {
  18644. var S = h.textGuideLineConfig
  18645. ;(g.z = c),
  18646. (g.zlevel = v),
  18647. isFinite(d) && (g.z2 = d + (S && S.showAbove ? 1 : -1))
  18648. }
  18649. return d
  18650. }
  18651. function u(h, c) {
  18652. c.eachRendered(function (v) {
  18653. if (!oi(v)) {
  18654. var d = v.getTextContent(),
  18655. p = v.getTextGuideLine()
  18656. v.stateTransition && (v.stateTransition = null),
  18657. d && d.stateTransition && (d.stateTransition = null),
  18658. p && p.stateTransition && (p.stateTransition = null),
  18659. v.hasState()
  18660. ? ((v.prevStates = v.currentStates), v.clearStates())
  18661. : v.prevStates && (v.prevStates = null)
  18662. }
  18663. })
  18664. }
  18665. function f(h, c) {
  18666. var v = h.getModel('stateAnimation'),
  18667. d = h.isAnimationEnabled(),
  18668. p = v.get('duration'),
  18669. g =
  18670. p > 0
  18671. ? {
  18672. duration: p,
  18673. delay: v.get('delay'),
  18674. easing: v.get('easing')
  18675. }
  18676. : null
  18677. c.eachRendered(function (m) {
  18678. if (m.states && m.states.emphasis) {
  18679. if (oi(m)) return
  18680. if ((m instanceof st && zT(m), m.__dirty)) {
  18681. var y = m.prevStates
  18682. y && m.useStates(y)
  18683. }
  18684. if (d) {
  18685. m.stateTransition = g
  18686. var _ = m.getTextContent(),
  18687. S = m.getTextGuideLine()
  18688. _ && (_.stateTransition = g), S && (S.stateTransition = g)
  18689. }
  18690. m.__dirty && i(m)
  18691. }
  18692. })
  18693. }
  18694. ;(v0 = function (h) {
  18695. return new ((function (c) {
  18696. B(v, c)
  18697. function v() {
  18698. return (c !== null && c.apply(this, arguments)) || this
  18699. }
  18700. return (
  18701. (v.prototype.getCoordinateSystems = function () {
  18702. return h._coordSysMgr.getCoordinateSystems()
  18703. }),
  18704. (v.prototype.getComponentByElement = function (d) {
  18705. for (; d; ) {
  18706. var p = d.__ecComponentInfo
  18707. if (p != null)
  18708. return h._model.getComponent(p.mainType, p.index)
  18709. d = d.parent
  18710. }
  18711. }),
  18712. (v.prototype.enterEmphasis = function (d, p) {
  18713. ei(d, p), we(h)
  18714. }),
  18715. (v.prototype.leaveEmphasis = function (d, p) {
  18716. ri(d, p), we(h)
  18717. }),
  18718. (v.prototype.enterBlur = function (d) {
  18719. IT(d), we(h)
  18720. }),
  18721. (v.prototype.leaveBlur = function (d) {
  18722. qd(d), we(h)
  18723. }),
  18724. (v.prototype.enterSelect = function (d) {
  18725. Kd(d), we(h)
  18726. }),
  18727. (v.prototype.leaveSelect = function (d) {
  18728. Qd(d), we(h)
  18729. }),
  18730. (v.prototype.getModel = function () {
  18731. return h.getModel()
  18732. }),
  18733. (v.prototype.getViewOfComponentModel = function (d) {
  18734. return h.getViewOfComponentModel(d)
  18735. }),
  18736. (v.prototype.getViewOfSeriesModel = function (d) {
  18737. return h.getViewOfSeriesModel(d)
  18738. }),
  18739. v
  18740. )
  18741. })(Ag))(h)
  18742. }),
  18743. (c0 = function (h) {
  18744. function c(v, d) {
  18745. for (var p = 0; p < v.length; p++) {
  18746. var g = v[p]
  18747. g[eh] = d
  18748. }
  18749. }
  18750. A(Ea, function (v, d) {
  18751. h._messageCenter.on(d, function (p) {
  18752. if (m0[h.group] && h[eh] !== n0) {
  18753. if (p && p.escapeConnect) return
  18754. var g = h.makeActionFromEvent(p),
  18755. m = []
  18756. A(Oa, function (y) {
  18757. y !== h && y.group === h.group && m.push(y)
  18758. }),
  18759. c(m, n0),
  18760. A(m, function (y) {
  18761. y[eh] !== qD && y.dispatchAction(g)
  18762. }),
  18763. c(m, KD)
  18764. }
  18765. })
  18766. })
  18767. })
  18768. })()),
  18769. t
  18770. )
  18771. })(fe),
  18772. sh = p0.prototype
  18773. sh.on = i0('on')
  18774. sh.off = i0('off')
  18775. sh.one = function (r, t, e) {
  18776. var n = this
  18777. function i() {
  18778. for (var a = [], o = 0; o < arguments.length; o++) a[o] = arguments[o]
  18779. t && t.apply && t.apply(this, a), n.off(r, i)
  18780. }
  18781. this.on.call(this, r, i, e)
  18782. }
  18783. var QD = [
  18784. 'click',
  18785. 'dblclick',
  18786. 'mouseover',
  18787. 'mouseout',
  18788. 'mousemove',
  18789. 'mousedown',
  18790. 'mouseup',
  18791. 'globalout',
  18792. 'contextmenu'
  18793. ]
  18794. function se(r) {}
  18795. var $s = {},
  18796. Ea = {},
  18797. lh = [],
  18798. uh = [],
  18799. Xs = [],
  18800. g0 = {},
  18801. fh = {},
  18802. Oa = {},
  18803. m0 = {},
  18804. JD = +new Date() - 0,
  18805. hh = '_echarts_instance_'
  18806. function y0(r, t, e) {
  18807. var n = !(e && e.ssr)
  18808. if (n) {
  18809. var i = jD(r)
  18810. if (i) return i
  18811. }
  18812. var a = new p0(r, t, e)
  18813. return (
  18814. (a.id = 'ec_' + JD++),
  18815. (Oa[a.id] = a),
  18816. n && id(r, hh, a.id),
  18817. c0(a),
  18818. Pe.trigger('afterinit', a),
  18819. a
  18820. )
  18821. }
  18822. function jD(r) {
  18823. return Oa[gb(r, hh)]
  18824. }
  18825. function _0(r, t) {
  18826. g0[r] = t
  18827. }
  18828. function S0(r) {
  18829. ot(uh, r) < 0 && uh.push(r)
  18830. }
  18831. function x0(r, t) {
  18832. ch(lh, r, t, GD)
  18833. }
  18834. function t2(r) {
  18835. vh('afterinit', r)
  18836. }
  18837. function e2(r) {
  18838. vh('afterupdate', r)
  18839. }
  18840. function vh(r, t) {
  18841. Pe.on(r, t)
  18842. }
  18843. function Je(r, t, e) {
  18844. Q(t) && ((e = t), (t = ''))
  18845. var n = Y(r) ? r.type : [r, (r = { event: t })][0]
  18846. ;(r.event = (r.event || n).toLowerCase()),
  18847. (t = r.event),
  18848. !Ea[t] &&
  18849. (Ve(r0.test(n) && r0.test(t)),
  18850. $s[n] || ($s[n] = { action: e, actionInfo: r }),
  18851. (Ea[t] = n))
  18852. }
  18853. function r2(r, t) {
  18854. If.register(r, t)
  18855. }
  18856. function n2(r, t) {
  18857. ch(Xs, r, t, jm, 'layout')
  18858. }
  18859. function Tn(r, t) {
  18860. ch(Xs, r, t, t0, 'visual')
  18861. }
  18862. var w0 = []
  18863. function ch(r, t, e, n, i) {
  18864. if (((Q(t) || Y(t)) && ((e = t), (t = n)), !(ot(w0, e) >= 0))) {
  18865. w0.push(e)
  18866. var a = Am.wrapStageHandler(e, i)
  18867. ;(a.__prio = t), (a.__raw = e), r.push(a)
  18868. }
  18869. }
  18870. function b0(r, t) {
  18871. fh[r] = t
  18872. }
  18873. function i2(r, t, e) {
  18874. var n = kD('registerMap')
  18875. n && n(r, t, e)
  18876. }
  18877. var a2 = lM
  18878. Tn(jf, kM)
  18879. Tn(Us, BM)
  18880. Tn(Us, NM)
  18881. Tn(jf, JM)
  18882. Tn(Us, jM)
  18883. Tn(e0, RD)
  18884. S0(Eg)
  18885. x0(zD, GA)
  18886. b0('default', FM)
  18887. Je({ type: hn, event: hn, update: hn }, $t)
  18888. Je({ type: Zo, event: Zo, update: Zo }, $t)
  18889. Je({ type: na, event: na, update: na }, $t)
  18890. Je({ type: $o, event: $o, update: $o }, $t)
  18891. Je({ type: ia, event: ia, update: ia }, $t)
  18892. _0('light', qM)
  18893. _0('dark', KM)
  18894. function ka(r) {
  18895. return r == null ? 0 : r.length || 1
  18896. }
  18897. function T0(r) {
  18898. return r
  18899. }
  18900. var o2 = (function () {
  18901. function r(t, e, n, i, a, o) {
  18902. ;(this._old = t),
  18903. (this._new = e),
  18904. (this._oldKeyGetter = n || T0),
  18905. (this._newKeyGetter = i || T0),
  18906. (this.context = a),
  18907. (this._diffModeMultiple = o === 'multiple')
  18908. }
  18909. return (
  18910. (r.prototype.add = function (t) {
  18911. return (this._add = t), this
  18912. }),
  18913. (r.prototype.update = function (t) {
  18914. return (this._update = t), this
  18915. }),
  18916. (r.prototype.updateManyToOne = function (t) {
  18917. return (this._updateManyToOne = t), this
  18918. }),
  18919. (r.prototype.updateOneToMany = function (t) {
  18920. return (this._updateOneToMany = t), this
  18921. }),
  18922. (r.prototype.updateManyToMany = function (t) {
  18923. return (this._updateManyToMany = t), this
  18924. }),
  18925. (r.prototype.remove = function (t) {
  18926. return (this._remove = t), this
  18927. }),
  18928. (r.prototype.execute = function () {
  18929. this[this._diffModeMultiple ? '_executeMultiple' : '_executeOneToOne']()
  18930. }),
  18931. (r.prototype._executeOneToOne = function () {
  18932. var t = this._old,
  18933. e = this._new,
  18934. n = {},
  18935. i = new Array(t.length),
  18936. a = new Array(e.length)
  18937. this._initIndexMap(t, null, i, '_oldKeyGetter'),
  18938. this._initIndexMap(e, n, a, '_newKeyGetter')
  18939. for (var o = 0; o < t.length; o++) {
  18940. var s = i[o],
  18941. l = n[s],
  18942. u = ka(l)
  18943. if (u > 1) {
  18944. var f = l.shift()
  18945. l.length === 1 && (n[s] = l[0]), this._update && this._update(f, o)
  18946. } else
  18947. u === 1
  18948. ? ((n[s] = null), this._update && this._update(l, o))
  18949. : this._remove && this._remove(o)
  18950. }
  18951. this._performRestAdd(a, n)
  18952. }),
  18953. (r.prototype._executeMultiple = function () {
  18954. var t = this._old,
  18955. e = this._new,
  18956. n = {},
  18957. i = {},
  18958. a = [],
  18959. o = []
  18960. this._initIndexMap(t, n, a, '_oldKeyGetter'),
  18961. this._initIndexMap(e, i, o, '_newKeyGetter')
  18962. for (var s = 0; s < a.length; s++) {
  18963. var l = a[s],
  18964. u = n[l],
  18965. f = i[l],
  18966. h = ka(u),
  18967. c = ka(f)
  18968. if (h > 1 && c === 1)
  18969. this._updateManyToOne && this._updateManyToOne(f, u), (i[l] = null)
  18970. else if (h === 1 && c > 1)
  18971. this._updateOneToMany && this._updateOneToMany(f, u), (i[l] = null)
  18972. else if (h === 1 && c === 1)
  18973. this._update && this._update(f, u), (i[l] = null)
  18974. else if (h > 1 && c > 1)
  18975. this._updateManyToMany && this._updateManyToMany(f, u),
  18976. (i[l] = null)
  18977. else if (h > 1)
  18978. for (var v = 0; v < h; v++) this._remove && this._remove(u[v])
  18979. else this._remove && this._remove(u)
  18980. }
  18981. this._performRestAdd(o, i)
  18982. }),
  18983. (r.prototype._performRestAdd = function (t, e) {
  18984. for (var n = 0; n < t.length; n++) {
  18985. var i = t[n],
  18986. a = e[i],
  18987. o = ka(a)
  18988. if (o > 1) for (var s = 0; s < o; s++) this._add && this._add(a[s])
  18989. else o === 1 && this._add && this._add(a)
  18990. e[i] = null
  18991. }
  18992. }),
  18993. (r.prototype._initIndexMap = function (t, e, n, i) {
  18994. for (var a = this._diffModeMultiple, o = 0; o < t.length; o++) {
  18995. var s = '_ec_' + this[i](t[o], o)
  18996. if ((a || (n[o] = s), !!e)) {
  18997. var l = e[s],
  18998. u = ka(l)
  18999. u === 0
  19000. ? ((e[s] = o), a && n.push(s))
  19001. : u === 1
  19002. ? (e[s] = [l, o])
  19003. : l.push(o)
  19004. }
  19005. }
  19006. }),
  19007. r
  19008. )
  19009. })(),
  19010. Ba = o2,
  19011. s2 = (function () {
  19012. function r(t, e) {
  19013. ;(this._encode = t), (this._schema = e)
  19014. }
  19015. return (
  19016. (r.prototype.get = function () {
  19017. return {
  19018. fullDimensions: this._getFullDimensionNames(),
  19019. encode: this._encode
  19020. }
  19021. }),
  19022. (r.prototype._getFullDimensionNames = function () {
  19023. return (
  19024. this._cachedDimNames ||
  19025. (this._cachedDimNames = this._schema
  19026. ? this._schema.makeOutputDimensionNames()
  19027. : []),
  19028. this._cachedDimNames
  19029. )
  19030. }),
  19031. r
  19032. )
  19033. })()
  19034. function l2(r, t) {
  19035. var e = {},
  19036. n = (e.encode = {}),
  19037. i = q(),
  19038. a = [],
  19039. o = [],
  19040. s = {}
  19041. A(r.dimensions, function (c) {
  19042. var v = r.getDimensionInfo(c),
  19043. d = v.coordDim
  19044. if (d) {
  19045. var p = v.coordDimIndex
  19046. ;(dh(n, d)[p] = c),
  19047. v.isExtraCoord ||
  19048. (i.set(d, 1),
  19049. f2(v.type) && (a[0] = c),
  19050. (dh(s, d)[p] = r.getDimensionIndex(v.name))),
  19051. v.defaultTooltip && o.push(c)
  19052. }
  19053. cg.each(function (g, m) {
  19054. var y = dh(n, m),
  19055. _ = v.otherDims[m]
  19056. _ != null && _ !== !1 && (y[_] = v.name)
  19057. })
  19058. })
  19059. var l = [],
  19060. u = {}
  19061. i.each(function (c, v) {
  19062. var d = n[v]
  19063. ;(u[v] = d[0]), (l = l.concat(d))
  19064. }),
  19065. (e.dataDimsOnCoord = l),
  19066. (e.dataDimIndicesOnCoord = G(l, function (c) {
  19067. return r.getDimensionInfo(c).storeDimIndex
  19068. })),
  19069. (e.encodeFirstDimNotExtra = u)
  19070. var f = n.label
  19071. f && f.length && (a = f.slice())
  19072. var h = n.tooltip
  19073. return (
  19074. h && h.length ? (o = h.slice()) : o.length || (o = a.slice()),
  19075. (n.defaultedLabel = a),
  19076. (n.defaultedTooltip = o),
  19077. (e.userOutput = new s2(s, t)),
  19078. e
  19079. )
  19080. }
  19081. function dh(r, t) {
  19082. return r.hasOwnProperty(t) || (r[t] = []), r[t]
  19083. }
  19084. function u2(r) {
  19085. return r === 'category' ? 'ordinal' : r === 'time' ? 'time' : 'float'
  19086. }
  19087. function f2(r) {
  19088. return !(r === 'ordinal' || r === 'time')
  19089. }
  19090. var h2 = (function () {
  19091. function r(t) {
  19092. ;(this.otherDims = {}), t != null && N(this, t)
  19093. }
  19094. return r
  19095. })(),
  19096. qs = h2,
  19097. v2 = wt(),
  19098. c2 = { float: 'f', int: 'i', ordinal: 'o', number: 'n', time: 't' },
  19099. C0 = (function () {
  19100. function r(t) {
  19101. ;(this.dimensions = t.dimensions),
  19102. (this._dimOmitted = t.dimensionOmitted),
  19103. (this.source = t.source),
  19104. (this._fullDimCount = t.fullDimensionCount),
  19105. this._updateDimOmitted(t.dimensionOmitted)
  19106. }
  19107. return (
  19108. (r.prototype.isDimensionOmitted = function () {
  19109. return this._dimOmitted
  19110. }),
  19111. (r.prototype._updateDimOmitted = function (t) {
  19112. ;(this._dimOmitted = t),
  19113. !!t && (this._dimNameMap || (this._dimNameMap = D0(this.source)))
  19114. }),
  19115. (r.prototype.getSourceDimensionIndex = function (t) {
  19116. return ht(this._dimNameMap.get(t), -1)
  19117. }),
  19118. (r.prototype.getSourceDimension = function (t) {
  19119. var e = this.source.dimensionsDefine
  19120. if (e) return e[t]
  19121. }),
  19122. (r.prototype.makeStoreSchema = function () {
  19123. for (
  19124. var t = this._fullDimCount,
  19125. e = Ng(this.source),
  19126. n = !I0(t),
  19127. i = '',
  19128. a = [],
  19129. o = 0,
  19130. s = 0;
  19131. o < t;
  19132. o++
  19133. ) {
  19134. var l = void 0,
  19135. u = void 0,
  19136. f = void 0,
  19137. h = this.dimensions[s]
  19138. if (h && h.storeDimIndex === o)
  19139. (l = e ? h.name : null), (u = h.type), (f = h.ordinalMeta), s++
  19140. else {
  19141. var c = this.getSourceDimension(o)
  19142. c && ((l = e ? c.name : null), (u = c.type))
  19143. }
  19144. a.push({ property: l, type: u, ordinalMeta: f }),
  19145. e &&
  19146. l != null &&
  19147. (!h || !h.isCalculationCoord) &&
  19148. (i += n ? l.replace(/\`/g, '`1').replace(/\$/g, '`2') : l),
  19149. (i += '$'),
  19150. (i += c2[u] || 'f'),
  19151. f && (i += f.uid),
  19152. (i += '$')
  19153. }
  19154. var v = this.source,
  19155. d = [v.seriesLayoutBy, v.startIndex, i].join('$$')
  19156. return { dimensions: a, hash: d }
  19157. }),
  19158. (r.prototype.makeOutputDimensionNames = function () {
  19159. for (var t = [], e = 0, n = 0; e < this._fullDimCount; e++) {
  19160. var i = void 0,
  19161. a = this.dimensions[n]
  19162. if (a && a.storeDimIndex === e)
  19163. a.isCalculationCoord || (i = a.name), n++
  19164. else {
  19165. var o = this.getSourceDimension(e)
  19166. o && (i = o.name)
  19167. }
  19168. t.push(i)
  19169. }
  19170. return t
  19171. }),
  19172. (r.prototype.appendCalculationDimension = function (t) {
  19173. this.dimensions.push(t),
  19174. (t.isCalculationCoord = !0),
  19175. this._fullDimCount++,
  19176. this._updateDimOmitted(!0)
  19177. }),
  19178. r
  19179. )
  19180. })()
  19181. function A0(r) {
  19182. return r instanceof C0
  19183. }
  19184. function M0(r) {
  19185. for (var t = q(), e = 0; e < (r || []).length; e++) {
  19186. var n = r[e],
  19187. i = Y(n) ? n.name : n
  19188. i != null && t.get(i) == null && t.set(i, e)
  19189. }
  19190. return t
  19191. }
  19192. function D0(r) {
  19193. var t = v2(r)
  19194. return t.dimNameMap || (t.dimNameMap = M0(r.dimensionsDefine))
  19195. }
  19196. function I0(r) {
  19197. return r > 30
  19198. }
  19199. var Na = Y,
  19200. Br = G,
  19201. d2 = typeof Int32Array == 'undefined' ? Array : Int32Array,
  19202. p2 = 'e\0\0',
  19203. L0 = -1,
  19204. g2 = [
  19205. 'hasItemOption',
  19206. '_nameList',
  19207. '_idList',
  19208. '_invertedIndicesMap',
  19209. '_dimSummary',
  19210. 'userOutput',
  19211. '_rawData',
  19212. '_dimValueGetter',
  19213. '_nameDimIdx',
  19214. '_idDimIdx',
  19215. '_nameRepeatCount'
  19216. ],
  19217. m2 = ['_approximateExtent'],
  19218. P0,
  19219. Ks,
  19220. Fa,
  19221. za,
  19222. ph,
  19223. Qs,
  19224. gh,
  19225. y2 = (function () {
  19226. function r(t, e) {
  19227. ;(this.type = 'list'),
  19228. (this._dimOmitted = !1),
  19229. (this._nameList = []),
  19230. (this._idList = []),
  19231. (this._visual = {}),
  19232. (this._layout = {}),
  19233. (this._itemVisuals = []),
  19234. (this._itemLayouts = []),
  19235. (this._graphicEls = []),
  19236. (this._approximateExtent = {}),
  19237. (this._calculationInfo = {}),
  19238. (this.hasItemOption = !1),
  19239. (this.TRANSFERABLE_METHODS = [
  19240. 'cloneShallow',
  19241. 'downSample',
  19242. 'lttbDownSample',
  19243. 'map'
  19244. ]),
  19245. (this.CHANGABLE_METHODS = ['filterSelf', 'selectRange']),
  19246. (this.DOWNSAMPLE_METHODS = ['downSample', 'lttbDownSample'])
  19247. var n,
  19248. i = !1
  19249. A0(t)
  19250. ? ((n = t.dimensions),
  19251. (this._dimOmitted = t.isDimensionOmitted()),
  19252. (this._schema = t))
  19253. : ((i = !0), (n = t)),
  19254. (n = n || ['x', 'y'])
  19255. for (
  19256. var a = {}, o = [], s = {}, l = !1, u = {}, f = 0;
  19257. f < n.length;
  19258. f++
  19259. ) {
  19260. var h = n[f],
  19261. c = W(h) ? new qs({ name: h }) : h instanceof qs ? h : new qs(h),
  19262. v = c.name
  19263. ;(c.type = c.type || 'float'),
  19264. c.coordDim || ((c.coordDim = v), (c.coordDimIndex = 0))
  19265. var d = (c.otherDims = c.otherDims || {})
  19266. o.push(v),
  19267. (a[v] = c),
  19268. u[v] != null && (l = !0),
  19269. c.createInvertedIndices && (s[v] = []),
  19270. d.itemName === 0 && (this._nameDimIdx = f),
  19271. d.itemId === 0 && (this._idDimIdx = f),
  19272. i && (c.storeDimIndex = f)
  19273. }
  19274. if (
  19275. ((this.dimensions = o),
  19276. (this._dimInfos = a),
  19277. this._initGetDimensionInfo(l),
  19278. (this.hostModel = e),
  19279. (this._invertedIndicesMap = s),
  19280. this._dimOmitted)
  19281. ) {
  19282. var p = (this._dimIdxToName = q())
  19283. A(o, function (g) {
  19284. p.set(a[g].storeDimIndex, g)
  19285. })
  19286. }
  19287. }
  19288. return (
  19289. (r.prototype.getDimension = function (t) {
  19290. var e = this._recognizeDimIndex(t)
  19291. if (e == null) return t
  19292. if (((e = t), !this._dimOmitted)) return this.dimensions[e]
  19293. var n = this._dimIdxToName.get(e)
  19294. if (n != null) return n
  19295. var i = this._schema.getSourceDimension(e)
  19296. if (i) return i.name
  19297. }),
  19298. (r.prototype.getDimensionIndex = function (t) {
  19299. var e = this._recognizeDimIndex(t)
  19300. if (e != null) return e
  19301. if (t == null) return -1
  19302. var n = this._getDimInfo(t)
  19303. return n
  19304. ? n.storeDimIndex
  19305. : this._dimOmitted
  19306. ? this._schema.getSourceDimensionIndex(t)
  19307. : -1
  19308. }),
  19309. (r.prototype._recognizeDimIndex = function (t) {
  19310. if (
  19311. dt(t) ||
  19312. (t != null &&
  19313. !isNaN(t) &&
  19314. !this._getDimInfo(t) &&
  19315. (!this._dimOmitted || this._schema.getSourceDimensionIndex(t) < 0))
  19316. )
  19317. return +t
  19318. }),
  19319. (r.prototype._getStoreDimIndex = function (t) {
  19320. var e = this.getDimensionIndex(t)
  19321. return e
  19322. }),
  19323. (r.prototype.getDimensionInfo = function (t) {
  19324. return this._getDimInfo(this.getDimension(t))
  19325. }),
  19326. (r.prototype._initGetDimensionInfo = function (t) {
  19327. var e = this._dimInfos
  19328. this._getDimInfo = t
  19329. ? function (n) {
  19330. return e.hasOwnProperty(n) ? e[n] : void 0
  19331. }
  19332. : function (n) {
  19333. return e[n]
  19334. }
  19335. }),
  19336. (r.prototype.getDimensionsOnCoord = function () {
  19337. return this._dimSummary.dataDimsOnCoord.slice()
  19338. }),
  19339. (r.prototype.mapDimension = function (t, e) {
  19340. var n = this._dimSummary
  19341. if (e == null) return n.encodeFirstDimNotExtra[t]
  19342. var i = n.encode[t]
  19343. return i ? i[e] : null
  19344. }),
  19345. (r.prototype.mapDimensionsAll = function (t) {
  19346. var e = this._dimSummary,
  19347. n = e.encode[t]
  19348. return (n || []).slice()
  19349. }),
  19350. (r.prototype.getStore = function () {
  19351. return this._store
  19352. }),
  19353. (r.prototype.initData = function (t, e, n) {
  19354. var i = this,
  19355. a
  19356. if ((t instanceof zf && (a = t), !a)) {
  19357. var o = this.dimensions,
  19358. s = Rf(t) || Zt(t) ? new Vg(t, o.length) : t
  19359. a = new zf()
  19360. var l = Br(o, function (u) {
  19361. return { type: i._dimInfos[u].type, property: u }
  19362. })
  19363. a.initData(s, l, n)
  19364. }
  19365. ;(this._store = a),
  19366. (this._nameList = (e || []).slice()),
  19367. (this._idList = []),
  19368. (this._nameRepeatCount = {}),
  19369. this._doInit(0, a.count()),
  19370. (this._dimSummary = l2(this, this._schema)),
  19371. (this.userOutput = this._dimSummary.userOutput)
  19372. }),
  19373. (r.prototype.appendData = function (t) {
  19374. var e = this._store.appendData(t)
  19375. this._doInit(e[0], e[1])
  19376. }),
  19377. (r.prototype.appendValues = function (t, e) {
  19378. var n = this._store.appendValues(t, e.length),
  19379. i = n.start,
  19380. a = n.end,
  19381. o = this._shouldMakeIdFromName()
  19382. if ((this._updateOrdinalMeta(), e))
  19383. for (var s = i; s < a; s++) {
  19384. var l = s - i
  19385. ;(this._nameList[s] = e[l]), o && gh(this, s)
  19386. }
  19387. }),
  19388. (r.prototype._updateOrdinalMeta = function () {
  19389. for (
  19390. var t = this._store, e = this.dimensions, n = 0;
  19391. n < e.length;
  19392. n++
  19393. ) {
  19394. var i = this._dimInfos[e[n]]
  19395. i.ordinalMeta && t.collectOrdinalMeta(i.storeDimIndex, i.ordinalMeta)
  19396. }
  19397. }),
  19398. (r.prototype._shouldMakeIdFromName = function () {
  19399. var t = this._store.getProvider()
  19400. return (
  19401. this._idDimIdx == null &&
  19402. t.getSource().sourceFormat !== Pr &&
  19403. !t.fillStorage
  19404. )
  19405. }),
  19406. (r.prototype._doInit = function (t, e) {
  19407. if (!(t >= e)) {
  19408. var n = this._store,
  19409. i = n.getProvider()
  19410. this._updateOrdinalMeta()
  19411. var a = this._nameList,
  19412. o = this._idList,
  19413. s = i.getSource().sourceFormat,
  19414. l = s === ye
  19415. if (l && !i.pure)
  19416. for (var u = [], f = t; f < e; f++) {
  19417. var h = i.getItem(f, u)
  19418. if (
  19419. (!this.hasItemOption && nb(h) && (this.hasItemOption = !0), h)
  19420. ) {
  19421. var c = h.name
  19422. a[f] == null && c != null && (a[f] = We(c, null))
  19423. var v = h.id
  19424. o[f] == null && v != null && (o[f] = We(v, null))
  19425. }
  19426. }
  19427. if (this._shouldMakeIdFromName())
  19428. for (var f = t; f < e; f++) gh(this, f)
  19429. P0(this)
  19430. }
  19431. }),
  19432. (r.prototype.getApproximateExtent = function (t) {
  19433. return (
  19434. this._approximateExtent[t] ||
  19435. this._store.getDataExtent(this._getStoreDimIndex(t))
  19436. )
  19437. }),
  19438. (r.prototype.setApproximateExtent = function (t, e) {
  19439. ;(e = this.getDimension(e)), (this._approximateExtent[e] = t.slice())
  19440. }),
  19441. (r.prototype.getCalculationInfo = function (t) {
  19442. return this._calculationInfo[t]
  19443. }),
  19444. (r.prototype.setCalculationInfo = function (t, e) {
  19445. Na(t) ? N(this._calculationInfo, t) : (this._calculationInfo[t] = e)
  19446. }),
  19447. (r.prototype.getName = function (t) {
  19448. var e = this.getRawIndex(t),
  19449. n = this._nameList[e]
  19450. return (
  19451. n == null &&
  19452. this._nameDimIdx != null &&
  19453. (n = Fa(this, this._nameDimIdx, e)),
  19454. n == null && (n = ''),
  19455. n
  19456. )
  19457. }),
  19458. (r.prototype._getCategory = function (t, e) {
  19459. var n = this._store.get(t, e),
  19460. i = this._store.getOrdinalMeta(t)
  19461. return i ? i.categories[n] : n
  19462. }),
  19463. (r.prototype.getId = function (t) {
  19464. return Ks(this, this.getRawIndex(t))
  19465. }),
  19466. (r.prototype.count = function () {
  19467. return this._store.count()
  19468. }),
  19469. (r.prototype.get = function (t, e) {
  19470. var n = this._store,
  19471. i = this._dimInfos[t]
  19472. if (i) return n.get(i.storeDimIndex, e)
  19473. }),
  19474. (r.prototype.getByRawIndex = function (t, e) {
  19475. var n = this._store,
  19476. i = this._dimInfos[t]
  19477. if (i) return n.getByRawIndex(i.storeDimIndex, e)
  19478. }),
  19479. (r.prototype.getIndices = function () {
  19480. return this._store.getIndices()
  19481. }),
  19482. (r.prototype.getDataExtent = function (t) {
  19483. return this._store.getDataExtent(this._getStoreDimIndex(t))
  19484. }),
  19485. (r.prototype.getSum = function (t) {
  19486. return this._store.getSum(this._getStoreDimIndex(t))
  19487. }),
  19488. (r.prototype.getMedian = function (t) {
  19489. return this._store.getMedian(this._getStoreDimIndex(t))
  19490. }),
  19491. (r.prototype.getValues = function (t, e) {
  19492. var n = this,
  19493. i = this._store
  19494. return z(t)
  19495. ? i.getValues(
  19496. Br(t, function (a) {
  19497. return n._getStoreDimIndex(a)
  19498. }),
  19499. e
  19500. )
  19501. : i.getValues(t)
  19502. }),
  19503. (r.prototype.hasValue = function (t) {
  19504. for (
  19505. var e = this._dimSummary.dataDimIndicesOnCoord, n = 0, i = e.length;
  19506. n < i;
  19507. n++
  19508. )
  19509. if (isNaN(this._store.get(e[n], t))) return !1
  19510. return !0
  19511. }),
  19512. (r.prototype.indexOfName = function (t) {
  19513. for (var e = 0, n = this._store.count(); e < n; e++)
  19514. if (this.getName(e) === t) return e
  19515. return -1
  19516. }),
  19517. (r.prototype.getRawIndex = function (t) {
  19518. return this._store.getRawIndex(t)
  19519. }),
  19520. (r.prototype.indexOfRawIndex = function (t) {
  19521. return this._store.indexOfRawIndex(t)
  19522. }),
  19523. (r.prototype.rawIndexOf = function (t, e) {
  19524. var n = t && this._invertedIndicesMap[t],
  19525. i = n[e]
  19526. return i == null || isNaN(i) ? L0 : i
  19527. }),
  19528. (r.prototype.indicesOfNearest = function (t, e, n) {
  19529. return this._store.indicesOfNearest(this._getStoreDimIndex(t), e, n)
  19530. }),
  19531. (r.prototype.each = function (t, e, n) {
  19532. Q(t) && ((n = e), (e = t), (t = []))
  19533. var i = n || this,
  19534. a = Br(za(t), this._getStoreDimIndex, this)
  19535. this._store.each(a, i ? X(e, i) : e)
  19536. }),
  19537. (r.prototype.filterSelf = function (t, e, n) {
  19538. Q(t) && ((n = e), (e = t), (t = []))
  19539. var i = n || this,
  19540. a = Br(za(t), this._getStoreDimIndex, this)
  19541. return (this._store = this._store.filter(a, i ? X(e, i) : e)), this
  19542. }),
  19543. (r.prototype.selectRange = function (t) {
  19544. var e = this,
  19545. n = {},
  19546. i = xt(t)
  19547. return (
  19548. A(i, function (a) {
  19549. var o = e._getStoreDimIndex(a)
  19550. n[o] = t[a]
  19551. }),
  19552. (this._store = this._store.selectRange(n)),
  19553. this
  19554. )
  19555. }),
  19556. (r.prototype.mapArray = function (t, e, n) {
  19557. Q(t) && ((n = e), (e = t), (t = [])), (n = n || this)
  19558. var i = []
  19559. return (
  19560. this.each(
  19561. t,
  19562. function () {
  19563. i.push(e && e.apply(this, arguments))
  19564. },
  19565. n
  19566. ),
  19567. i
  19568. )
  19569. }),
  19570. (r.prototype.map = function (t, e, n, i) {
  19571. var a = n || i || this,
  19572. o = Br(za(t), this._getStoreDimIndex, this),
  19573. s = Qs(this)
  19574. return (s._store = this._store.map(o, a ? X(e, a) : e)), s
  19575. }),
  19576. (r.prototype.modify = function (t, e, n, i) {
  19577. var a = n || i || this,
  19578. o = Br(za(t), this._getStoreDimIndex, this)
  19579. this._store.modify(o, a ? X(e, a) : e)
  19580. }),
  19581. (r.prototype.downSample = function (t, e, n, i) {
  19582. var a = Qs(this)
  19583. return (
  19584. (a._store = this._store.downSample(
  19585. this._getStoreDimIndex(t),
  19586. e,
  19587. n,
  19588. i
  19589. )),
  19590. a
  19591. )
  19592. }),
  19593. (r.prototype.lttbDownSample = function (t, e) {
  19594. var n = Qs(this)
  19595. return (
  19596. (n._store = this._store.lttbDownSample(this._getStoreDimIndex(t), e)),
  19597. n
  19598. )
  19599. }),
  19600. (r.prototype.getRawDataItem = function (t) {
  19601. return this._store.getRawDataItem(t)
  19602. }),
  19603. (r.prototype.getItemModel = function (t) {
  19604. var e = this.hostModel,
  19605. n = this.getRawDataItem(t)
  19606. return new Nt(n, e, e && e.ecModel)
  19607. }),
  19608. (r.prototype.diff = function (t) {
  19609. var e = this
  19610. return new Ba(
  19611. t ? t.getStore().getIndices() : [],
  19612. this.getStore().getIndices(),
  19613. function (n) {
  19614. return Ks(t, n)
  19615. },
  19616. function (n) {
  19617. return Ks(e, n)
  19618. }
  19619. )
  19620. }),
  19621. (r.prototype.getVisual = function (t) {
  19622. var e = this._visual
  19623. return e && e[t]
  19624. }),
  19625. (r.prototype.setVisual = function (t, e) {
  19626. ;(this._visual = this._visual || {}),
  19627. Na(t) ? N(this._visual, t) : (this._visual[t] = e)
  19628. }),
  19629. (r.prototype.getItemVisual = function (t, e) {
  19630. var n = this._itemVisuals[t],
  19631. i = n && n[e]
  19632. return i == null ? this.getVisual(e) : i
  19633. }),
  19634. (r.prototype.hasItemVisual = function () {
  19635. return this._itemVisuals.length > 0
  19636. }),
  19637. (r.prototype.ensureUniqueItemVisual = function (t, e) {
  19638. var n = this._itemVisuals,
  19639. i = n[t]
  19640. i || (i = n[t] = {})
  19641. var a = i[e]
  19642. return (
  19643. a == null &&
  19644. ((a = this.getVisual(e)),
  19645. z(a) ? (a = a.slice()) : Na(a) && (a = N({}, a)),
  19646. (i[e] = a)),
  19647. a
  19648. )
  19649. }),
  19650. (r.prototype.setItemVisual = function (t, e, n) {
  19651. var i = this._itemVisuals[t] || {}
  19652. ;(this._itemVisuals[t] = i), Na(e) ? N(i, e) : (i[e] = n)
  19653. }),
  19654. (r.prototype.clearAllVisual = function () {
  19655. ;(this._visual = {}), (this._itemVisuals = [])
  19656. }),
  19657. (r.prototype.setLayout = function (t, e) {
  19658. Na(t) ? N(this._layout, t) : (this._layout[t] = e)
  19659. }),
  19660. (r.prototype.getLayout = function (t) {
  19661. return this._layout[t]
  19662. }),
  19663. (r.prototype.getItemLayout = function (t) {
  19664. return this._itemLayouts[t]
  19665. }),
  19666. (r.prototype.setItemLayout = function (t, e, n) {
  19667. this._itemLayouts[t] = n ? N(this._itemLayouts[t] || {}, e) : e
  19668. }),
  19669. (r.prototype.clearItemLayouts = function () {
  19670. this._itemLayouts.length = 0
  19671. }),
  19672. (r.prototype.setItemGraphicEl = function (t, e) {
  19673. var n = this.hostModel && this.hostModel.seriesIndex
  19674. _T(n, this.dataType, t, e), (this._graphicEls[t] = e)
  19675. }),
  19676. (r.prototype.getItemGraphicEl = function (t) {
  19677. return this._graphicEls[t]
  19678. }),
  19679. (r.prototype.eachItemGraphicEl = function (t, e) {
  19680. A(this._graphicEls, function (n, i) {
  19681. n && t && t.call(e, n, i)
  19682. })
  19683. }),
  19684. (r.prototype.cloneShallow = function (t) {
  19685. return (
  19686. t ||
  19687. (t = new r(
  19688. this._schema
  19689. ? this._schema
  19690. : Br(this.dimensions, this._getDimInfo, this),
  19691. this.hostModel
  19692. )),
  19693. ph(t, this),
  19694. (t._store = this._store),
  19695. t
  19696. )
  19697. }),
  19698. (r.prototype.wrapMethod = function (t, e) {
  19699. var n = this[t]
  19700. !Q(n) ||
  19701. ((this.__wrappedMethods = this.__wrappedMethods || []),
  19702. this.__wrappedMethods.push(t),
  19703. (this[t] = function () {
  19704. var i = n.apply(this, arguments)
  19705. return e.apply(this, [i].concat(El(arguments)))
  19706. }))
  19707. }),
  19708. (r.internalField = (function () {
  19709. ;(P0 = function (t) {
  19710. var e = t._invertedIndicesMap
  19711. A(e, function (n, i) {
  19712. var a = t._dimInfos[i],
  19713. o = a.ordinalMeta,
  19714. s = t._store
  19715. if (o) {
  19716. n = e[i] = new d2(o.categories.length)
  19717. for (var l = 0; l < n.length; l++) n[l] = L0
  19718. for (var l = 0; l < s.count(); l++)
  19719. n[s.get(a.storeDimIndex, l)] = l
  19720. }
  19721. })
  19722. }),
  19723. (Fa = function (t, e, n) {
  19724. return We(t._getCategory(e, n), null)
  19725. }),
  19726. (Ks = function (t, e) {
  19727. var n = t._idList[e]
  19728. return (
  19729. n == null && t._idDimIdx != null && (n = Fa(t, t._idDimIdx, e)),
  19730. n == null && (n = p2 + e),
  19731. n
  19732. )
  19733. }),
  19734. (za = function (t) {
  19735. return z(t) || (t = t != null ? [t] : []), t
  19736. }),
  19737. (Qs = function (t) {
  19738. var e = new r(
  19739. t._schema ? t._schema : Br(t.dimensions, t._getDimInfo, t),
  19740. t.hostModel
  19741. )
  19742. return ph(e, t), e
  19743. }),
  19744. (ph = function (t, e) {
  19745. A(g2.concat(e.__wrappedMethods || []), function (n) {
  19746. e.hasOwnProperty(n) && (t[n] = e[n])
  19747. }),
  19748. (t.__wrappedMethods = e.__wrappedMethods),
  19749. A(m2, function (n) {
  19750. t[n] = tt(e[n])
  19751. }),
  19752. (t._calculationInfo = N({}, e._calculationInfo))
  19753. }),
  19754. (gh = function (t, e) {
  19755. var n = t._nameList,
  19756. i = t._idList,
  19757. a = t._nameDimIdx,
  19758. o = t._idDimIdx,
  19759. s = n[e],
  19760. l = i[e]
  19761. if (
  19762. (s == null && a != null && (n[e] = s = Fa(t, a, e)),
  19763. l == null && o != null && (i[e] = l = Fa(t, o, e)),
  19764. l == null && s != null)
  19765. ) {
  19766. var u = t._nameRepeatCount,
  19767. f = (u[s] = (u[s] || 0) + 1)
  19768. ;(l = s), f > 1 && (l += '__ec__' + f), (i[e] = l)
  19769. }
  19770. })
  19771. })()),
  19772. r
  19773. )
  19774. })(),
  19775. R0 = y2
  19776. function E0(r, t) {
  19777. Rf(r) || (r = Of(r)), (t = t || {})
  19778. var e = t.coordDimensions || [],
  19779. n = t.dimensionsDefine || r.dimensionsDefine || [],
  19780. i = q(),
  19781. a = [],
  19782. o = S2(r, e, n, t.dimensionsCount),
  19783. s = t.canOmitUnusedDimensions && I0(o),
  19784. l = n === r.dimensionsDefine,
  19785. u = l ? D0(r) : M0(n),
  19786. f = t.encodeDefine
  19787. !f && t.encodeDefaulter && (f = t.encodeDefaulter(r, o))
  19788. for (var h = q(f), c = new Jg(o), v = 0; v < c.length; v++) c[v] = -1
  19789. function d(C) {
  19790. var M = c[C]
  19791. if (M < 0) {
  19792. var D = n[C],
  19793. I = Y(D) ? D : { name: D },
  19794. L = new qs(),
  19795. P = I.name
  19796. P != null && u.get(P) != null && (L.name = L.displayName = P),
  19797. I.type != null && (L.type = I.type),
  19798. I.displayName != null && (L.displayName = I.displayName)
  19799. var R = a.length
  19800. return (c[C] = R), (L.storeDimIndex = C), a.push(L), L
  19801. }
  19802. return a[M]
  19803. }
  19804. if (!s) for (var v = 0; v < o; v++) d(v)
  19805. h.each(function (C, M) {
  19806. var D = Mt(C).slice()
  19807. if (D.length === 1 && !W(D[0]) && D[0] < 0) {
  19808. h.set(M, !1)
  19809. return
  19810. }
  19811. var I = h.set(M, [])
  19812. A(D, function (L, P) {
  19813. var R = W(L) ? u.get(L) : L
  19814. R != null && R < o && ((I[P] = R), g(d(R), M, P))
  19815. })
  19816. })
  19817. var p = 0
  19818. A(e, function (C) {
  19819. var M, D, I, L
  19820. if (W(C)) (M = C), (L = {})
  19821. else {
  19822. ;(L = C), (M = L.name)
  19823. var P = L.ordinalMeta
  19824. ;(L.ordinalMeta = null),
  19825. (L = N({}, L)),
  19826. (L.ordinalMeta = P),
  19827. (D = L.dimsDef),
  19828. (I = L.otherDims),
  19829. (L.name = L.coordDim = L.coordDimIndex = L.dimsDef = L.otherDims = null)
  19830. }
  19831. var R = h.get(M)
  19832. if (R !== !1) {
  19833. if (((R = Mt(R)), !R.length))
  19834. for (var O = 0; O < ((D && D.length) || 1); O++) {
  19835. for (; p < o && d(p).coordDim != null; ) p++
  19836. p < o && R.push(p++)
  19837. }
  19838. A(R, function (U, k) {
  19839. var F = d(U)
  19840. if (
  19841. (l && L.type != null && (F.type = L.type),
  19842. g(j(F, L), M, k),
  19843. F.name == null && D)
  19844. ) {
  19845. var H = D[k]
  19846. !Y(H) && (H = { name: H }),
  19847. (F.name = F.displayName = H.name),
  19848. (F.defaultTooltip = H.defaultTooltip)
  19849. }
  19850. I && j(F.otherDims, I)
  19851. })
  19852. }
  19853. })
  19854. function g(C, M, D) {
  19855. cg.get(M) != null
  19856. ? (C.otherDims[M] = D)
  19857. : ((C.coordDim = M), (C.coordDimIndex = D), i.set(M, !0))
  19858. }
  19859. var m = t.generateCoord,
  19860. y = t.generateCoordCount,
  19861. _ = y != null
  19862. y = m ? y || 1 : 0
  19863. var S = m || 'value'
  19864. function w(C) {
  19865. C.name == null && (C.name = C.coordDim)
  19866. }
  19867. if (s)
  19868. A(a, function (C) {
  19869. w(C)
  19870. }),
  19871. a.sort(function (C, M) {
  19872. return C.storeDimIndex - M.storeDimIndex
  19873. })
  19874. else
  19875. for (var x = 0; x < o; x++) {
  19876. var b = d(x),
  19877. T = b.coordDim
  19878. T == null &&
  19879. ((b.coordDim = x2(S, i, _)),
  19880. (b.coordDimIndex = 0),
  19881. (!m || y <= 0) && (b.isExtraCoord = !0),
  19882. y--),
  19883. w(b),
  19884. b.type == null &&
  19885. (gg(r, x) === Ft.Must ||
  19886. (b.isExtraCoord &&
  19887. (b.otherDims.itemName != null ||
  19888. b.otherDims.seriesName != null))) &&
  19889. (b.type = 'ordinal')
  19890. }
  19891. return (
  19892. _2(a),
  19893. new C0({
  19894. source: r,
  19895. dimensions: a,
  19896. fullDimensionCount: o,
  19897. dimensionOmitted: s
  19898. })
  19899. )
  19900. }
  19901. function _2(r) {
  19902. for (var t = q(), e = 0; e < r.length; e++) {
  19903. var n = r[e],
  19904. i = n.name,
  19905. a = t.get(i) || 0
  19906. a > 0 && (n.name = i + (a - 1)), a++, t.set(i, a)
  19907. }
  19908. }
  19909. function S2(r, t, e, n) {
  19910. var i = Math.max(r.dimensionsDetectedCount || 1, t.length, e.length, n || 0)
  19911. return (
  19912. A(t, function (a) {
  19913. var o
  19914. Y(a) && (o = a.dimsDef) && (i = Math.max(i, o.length))
  19915. }),
  19916. i
  19917. )
  19918. }
  19919. function x2(r, t, e) {
  19920. var n = t.data
  19921. if (e || n.hasOwnProperty(r)) {
  19922. for (var i = 0; n.hasOwnProperty(r + i); ) i++
  19923. r += i
  19924. }
  19925. return t.set(r, !0), r
  19926. }
  19927. var w2 = (function () {
  19928. function r(t) {
  19929. ;(this.coordSysDims = []),
  19930. (this.axisMap = q()),
  19931. (this.categoryAxisMap = q()),
  19932. (this.coordSysName = t)
  19933. }
  19934. return r
  19935. })()
  19936. function b2(r) {
  19937. var t = r.get('coordinateSystem'),
  19938. e = new w2(t),
  19939. n = T2[t]
  19940. if (n) return n(r, e, e.axisMap, e.categoryAxisMap), e
  19941. }
  19942. var T2 = {
  19943. cartesian2d: function (r, t, e, n) {
  19944. var i = r.getReferringComponents('xAxis', Xt).models[0],
  19945. a = r.getReferringComponents('yAxis', Xt).models[0]
  19946. ;(t.coordSysDims = ['x', 'y']),
  19947. e.set('x', i),
  19948. e.set('y', a),
  19949. _i(i) && (n.set('x', i), (t.firstCategoryDimIndex = 0)),
  19950. _i(a) &&
  19951. (n.set('y', a),
  19952. t.firstCategoryDimIndex == null && (t.firstCategoryDimIndex = 1))
  19953. },
  19954. singleAxis: function (r, t, e, n) {
  19955. var i = r.getReferringComponents('singleAxis', Xt).models[0]
  19956. ;(t.coordSysDims = ['single']),
  19957. e.set('single', i),
  19958. _i(i) && (n.set('single', i), (t.firstCategoryDimIndex = 0))
  19959. },
  19960. polar: function (r, t, e, n) {
  19961. var i = r.getReferringComponents('polar', Xt).models[0],
  19962. a = i.findAxisModel('radiusAxis'),
  19963. o = i.findAxisModel('angleAxis')
  19964. ;(t.coordSysDims = ['radius', 'angle']),
  19965. e.set('radius', a),
  19966. e.set('angle', o),
  19967. _i(a) && (n.set('radius', a), (t.firstCategoryDimIndex = 0)),
  19968. _i(o) &&
  19969. (n.set('angle', o),
  19970. t.firstCategoryDimIndex == null && (t.firstCategoryDimIndex = 1))
  19971. },
  19972. geo: function (r, t, e, n) {
  19973. t.coordSysDims = ['lng', 'lat']
  19974. },
  19975. parallel: function (r, t, e, n) {
  19976. var i = r.ecModel,
  19977. a = i.getComponent('parallel', r.get('parallelIndex')),
  19978. o = (t.coordSysDims = a.dimensions.slice())
  19979. A(a.parallelAxisIndex, function (s, l) {
  19980. var u = i.getComponent('parallelAxis', s),
  19981. f = o[l]
  19982. e.set(f, u),
  19983. _i(u) &&
  19984. (n.set(f, u),
  19985. t.firstCategoryDimIndex == null && (t.firstCategoryDimIndex = l))
  19986. })
  19987. }
  19988. }
  19989. function _i(r) {
  19990. return r.get('type') === 'category'
  19991. }
  19992. function C2(r, t, e) {
  19993. e = e || {}
  19994. var n = e.byIndex,
  19995. i = e.stackedCoordDimension,
  19996. a,
  19997. o,
  19998. s
  19999. A2(t) ? (a = t) : ((o = t.schema), (a = o.dimensions), (s = t.store))
  20000. var l = !!(r && r.get('stack')),
  20001. u,
  20002. f,
  20003. h,
  20004. c
  20005. if (
  20006. (A(a, function (y, _) {
  20007. W(y) && (a[_] = y = { name: y }),
  20008. l &&
  20009. !y.isExtraCoord &&
  20010. (!n && !u && y.ordinalMeta && (u = y),
  20011. !f &&
  20012. y.type !== 'ordinal' &&
  20013. y.type !== 'time' &&
  20014. (!i || i === y.coordDim) &&
  20015. (f = y))
  20016. }),
  20017. f && !n && !u && (n = !0),
  20018. f)
  20019. ) {
  20020. ;(h = '__\0ecstackresult_' + r.id),
  20021. (c = '__\0ecstackedover_' + r.id),
  20022. u && (u.createInvertedIndices = !0)
  20023. var v = f.coordDim,
  20024. d = f.type,
  20025. p = 0
  20026. A(a, function (y) {
  20027. y.coordDim === v && p++
  20028. })
  20029. var g = {
  20030. name: h,
  20031. coordDim: v,
  20032. coordDimIndex: p,
  20033. type: d,
  20034. isExtraCoord: !0,
  20035. isCalculationCoord: !0,
  20036. storeDimIndex: a.length
  20037. },
  20038. m = {
  20039. name: c,
  20040. coordDim: c,
  20041. coordDimIndex: p + 1,
  20042. type: d,
  20043. isExtraCoord: !0,
  20044. isCalculationCoord: !0,
  20045. storeDimIndex: a.length + 1
  20046. }
  20047. o
  20048. ? (s &&
  20049. ((g.storeDimIndex = s.ensureCalculationDimension(c, d)),
  20050. (m.storeDimIndex = s.ensureCalculationDimension(h, d))),
  20051. o.appendCalculationDimension(g),
  20052. o.appendCalculationDimension(m))
  20053. : (a.push(g), a.push(m))
  20054. }
  20055. return {
  20056. stackedDimension: f && f.name,
  20057. stackedByDimension: u && u.name,
  20058. isStackedByIndex: n,
  20059. stackedOverDimension: c,
  20060. stackResultDimension: h
  20061. }
  20062. }
  20063. function A2(r) {
  20064. return !A0(r.schema)
  20065. }
  20066. function Si(r, t) {
  20067. return !!t && t === r.getCalculationInfo('stackedDimension')
  20068. }
  20069. function M2(r, t) {
  20070. return Si(r, t) ? r.getCalculationInfo('stackResultDimension') : t
  20071. }
  20072. function D2(r, t) {
  20073. var e = r.get('coordinateSystem'),
  20074. n = If.get(e),
  20075. i
  20076. return (
  20077. t &&
  20078. t.coordSysDims &&
  20079. (i = G(t.coordSysDims, function (a) {
  20080. var o = { name: a },
  20081. s = t.axisMap.get(a)
  20082. if (s) {
  20083. var l = s.get('type')
  20084. o.type = u2(l)
  20085. }
  20086. return o
  20087. })),
  20088. i ||
  20089. (i = (n &&
  20090. (n.getDimensionsInfo
  20091. ? n.getDimensionsInfo()
  20092. : n.dimensions.slice())) || ['x', 'y']),
  20093. i
  20094. )
  20095. }
  20096. function I2(r, t, e) {
  20097. var n, i
  20098. return (
  20099. e &&
  20100. A(r, function (a, o) {
  20101. var s = a.coordDim,
  20102. l = e.categoryAxisMap.get(s)
  20103. l &&
  20104. (n == null && (n = o),
  20105. (a.ordinalMeta = l.getOrdinalMeta()),
  20106. t && (a.createInvertedIndices = !0)),
  20107. a.otherDims.itemName != null && (i = !0)
  20108. }),
  20109. !i && n != null && (r[n].otherDims.itemName = 0),
  20110. n
  20111. )
  20112. }
  20113. function mh(r, t, e) {
  20114. e = e || {}
  20115. var n = t.getSourceManager(),
  20116. i,
  20117. a = !1
  20118. r
  20119. ? ((a = !0), (i = Of(r)))
  20120. : ((i = n.getSource()), (a = i.sourceFormat === ye))
  20121. var o = b2(t),
  20122. s = D2(t, o),
  20123. l = e.useEncodeDefaulter,
  20124. u = Q(l) ? l : l ? lt(cA, s, t) : null,
  20125. f = {
  20126. coordDimensions: s,
  20127. generateCoord: e.generateCoord,
  20128. encodeDefine: t.getEncode(),
  20129. encodeDefaulter: u,
  20130. canOmitUnusedDimensions: !a
  20131. },
  20132. h = E0(i, f),
  20133. c = I2(h.dimensions, e.createInvertedIndices, o),
  20134. v = a ? null : n.getSharedDataStore(h),
  20135. d = C2(t, { schema: h, store: v }),
  20136. p = new R0(h, t)
  20137. p.setCalculationInfo(d)
  20138. var g =
  20139. c != null && L2(i)
  20140. ? function (m, y, _, S) {
  20141. return S === c ? _ : this.defaultDimValueGetter(m, y, _, S)
  20142. }
  20143. : null
  20144. return (p.hasItemOption = !1), p.initData(a ? i : v, null, g), p
  20145. }
  20146. function L2(r) {
  20147. if (r.sourceFormat === ye) {
  20148. var t = P2(r.data || [])
  20149. return !z(qi(t))
  20150. }
  20151. }
  20152. function P2(r) {
  20153. for (var t = 0; t < r.length && r[t] == null; ) t++
  20154. return r[t]
  20155. }
  20156. var O0 = (function () {
  20157. function r(t) {
  20158. ;(this._setting = t || {}), (this._extent = [1 / 0, -1 / 0])
  20159. }
  20160. return (
  20161. (r.prototype.getSetting = function (t) {
  20162. return this._setting[t]
  20163. }),
  20164. (r.prototype.unionExtent = function (t) {
  20165. var e = this._extent
  20166. t[0] < e[0] && (e[0] = t[0]), t[1] > e[1] && (e[1] = t[1])
  20167. }),
  20168. (r.prototype.unionExtentFromData = function (t, e) {
  20169. this.unionExtent(t.getApproximateExtent(e))
  20170. }),
  20171. (r.prototype.getExtent = function () {
  20172. return this._extent.slice()
  20173. }),
  20174. (r.prototype.setExtent = function (t, e) {
  20175. var n = this._extent
  20176. isNaN(t) || (n[0] = t), isNaN(e) || (n[1] = e)
  20177. }),
  20178. (r.prototype.isInExtentRange = function (t) {
  20179. return this._extent[0] <= t && this._extent[1] >= t
  20180. }),
  20181. (r.prototype.isBlank = function () {
  20182. return this._isBlank
  20183. }),
  20184. (r.prototype.setBlank = function (t) {
  20185. this._isBlank = t
  20186. }),
  20187. r
  20188. )
  20189. })()
  20190. No(O0)
  20191. var pr = O0,
  20192. R2 = 0,
  20193. E2 = (function () {
  20194. function r(t) {
  20195. ;(this.categories = t.categories || []),
  20196. (this._needCollect = t.needCollect),
  20197. (this._deduplication = t.deduplication),
  20198. (this.uid = ++R2)
  20199. }
  20200. return (
  20201. (r.createByAxisModel = function (t) {
  20202. var e = t.option,
  20203. n = e.data,
  20204. i = n && G(n, O2)
  20205. return new r({
  20206. categories: i,
  20207. needCollect: !i,
  20208. deduplication: e.dedplication !== !1
  20209. })
  20210. }),
  20211. (r.prototype.getOrdinal = function (t) {
  20212. return this._getOrCreateMap().get(t)
  20213. }),
  20214. (r.prototype.parseAndCollect = function (t) {
  20215. var e,
  20216. n = this._needCollect
  20217. if (!W(t) && !n) return t
  20218. if (n && !this._deduplication)
  20219. return (e = this.categories.length), (this.categories[e] = t), e
  20220. var i = this._getOrCreateMap()
  20221. return (
  20222. (e = i.get(t)),
  20223. e == null &&
  20224. (n
  20225. ? ((e = this.categories.length),
  20226. (this.categories[e] = t),
  20227. i.set(t, e))
  20228. : (e = NaN)),
  20229. e
  20230. )
  20231. }),
  20232. (r.prototype._getOrCreateMap = function () {
  20233. return this._map || (this._map = q(this.categories))
  20234. }),
  20235. r
  20236. )
  20237. })()
  20238. function O2(r) {
  20239. return Y(r) && r.value != null ? r.value : r + ''
  20240. }
  20241. var yh = E2
  20242. function _h(r) {
  20243. return r.type === 'interval' || r.type === 'log'
  20244. }
  20245. function k2(r, t, e, n) {
  20246. var i = {},
  20247. a = r[1] - r[0],
  20248. o = (i.interval = qc(a / t, !0))
  20249. e != null && o < e && (o = i.interval = e),
  20250. n != null && o > n && (o = i.interval = n)
  20251. var s = (i.intervalPrecision = k0(o)),
  20252. l = (i.niceTickExtent = [
  20253. Pt(Math.ceil(r[0] / o) * o, s),
  20254. Pt(Math.floor(r[1] / o) * o, s)
  20255. ])
  20256. return B2(l, r), i
  20257. }
  20258. function Sh(r) {
  20259. var t = Math.pow(10, Tu(r)),
  20260. e = r / t
  20261. return (
  20262. e ? (e === 2 ? (e = 3) : e === 3 ? (e = 5) : (e *= 2)) : (e = 1), Pt(e * t)
  20263. )
  20264. }
  20265. function k0(r) {
  20266. return or(r) + 2
  20267. }
  20268. function B0(r, t, e) {
  20269. r[t] = Math.max(Math.min(r[t], e[1]), e[0])
  20270. }
  20271. function B2(r, t) {
  20272. !isFinite(r[0]) && (r[0] = t[0]),
  20273. !isFinite(r[1]) && (r[1] = t[1]),
  20274. B0(r, 0, t),
  20275. B0(r, 1, t),
  20276. r[0] > r[1] && (r[0] = r[1])
  20277. }
  20278. function Js(r, t) {
  20279. return r >= t[0] && r <= t[1]
  20280. }
  20281. function js(r, t) {
  20282. return t[1] === t[0] ? 0.5 : (r - t[0]) / (t[1] - t[0])
  20283. }
  20284. function tl(r, t) {
  20285. return r * (t[1] - t[0]) + t[0]
  20286. }
  20287. var N0 = (function (r) {
  20288. B(t, r)
  20289. function t(e) {
  20290. var n = r.call(this, e) || this
  20291. n.type = 'ordinal'
  20292. var i = n.getSetting('ordinalMeta')
  20293. return (
  20294. i || (i = new yh({})),
  20295. z(i) &&
  20296. (i = new yh({
  20297. categories: G(i, function (a) {
  20298. return Y(a) ? a.value : a
  20299. })
  20300. })),
  20301. (n._ordinalMeta = i),
  20302. (n._extent = n.getSetting('extent') || [0, i.categories.length - 1]),
  20303. n
  20304. )
  20305. }
  20306. return (
  20307. (t.prototype.parse = function (e) {
  20308. return e == null
  20309. ? NaN
  20310. : W(e)
  20311. ? this._ordinalMeta.getOrdinal(e)
  20312. : Math.round(e)
  20313. }),
  20314. (t.prototype.contain = function (e) {
  20315. return (
  20316. (e = this.parse(e)),
  20317. Js(e, this._extent) && this._ordinalMeta.categories[e] != null
  20318. )
  20319. }),
  20320. (t.prototype.normalize = function (e) {
  20321. return (e = this._getTickNumber(this.parse(e))), js(e, this._extent)
  20322. }),
  20323. (t.prototype.scale = function (e) {
  20324. return (e = Math.round(tl(e, this._extent))), this.getRawOrdinalNumber(e)
  20325. }),
  20326. (t.prototype.getTicks = function () {
  20327. for (var e = [], n = this._extent, i = n[0]; i <= n[1]; )
  20328. e.push({ value: i }), i++
  20329. return e
  20330. }),
  20331. (t.prototype.getMinorTicks = function (e) {}),
  20332. (t.prototype.setSortInfo = function (e) {
  20333. if (e == null) {
  20334. this._ordinalNumbersByTick = this._ticksByOrdinalNumber = null
  20335. return
  20336. }
  20337. for (
  20338. var n = e.ordinalNumbers,
  20339. i = (this._ordinalNumbersByTick = []),
  20340. a = (this._ticksByOrdinalNumber = []),
  20341. o = 0,
  20342. s = this._ordinalMeta.categories.length,
  20343. l = Math.min(s, n.length);
  20344. o < l;
  20345. ++o
  20346. ) {
  20347. var u = n[o]
  20348. ;(i[o] = u), (a[u] = o)
  20349. }
  20350. for (var f = 0; o < s; ++o) {
  20351. for (; a[f] != null; ) f++
  20352. i.push(f), (a[f] = o)
  20353. }
  20354. }),
  20355. (t.prototype._getTickNumber = function (e) {
  20356. var n = this._ticksByOrdinalNumber
  20357. return n && e >= 0 && e < n.length ? n[e] : e
  20358. }),
  20359. (t.prototype.getRawOrdinalNumber = function (e) {
  20360. var n = this._ordinalNumbersByTick
  20361. return n && e >= 0 && e < n.length ? n[e] : e
  20362. }),
  20363. (t.prototype.getLabel = function (e) {
  20364. if (!this.isBlank()) {
  20365. var n = this.getRawOrdinalNumber(e.value),
  20366. i = this._ordinalMeta.categories[n]
  20367. return i == null ? '' : i + ''
  20368. }
  20369. }),
  20370. (t.prototype.count = function () {
  20371. return this._extent[1] - this._extent[0] + 1
  20372. }),
  20373. (t.prototype.unionExtentFromData = function (e, n) {
  20374. this.unionExtent(e.getApproximateExtent(n))
  20375. }),
  20376. (t.prototype.isInExtentRange = function (e) {
  20377. return (
  20378. (e = this._getTickNumber(e)),
  20379. this._extent[0] <= e && this._extent[1] >= e
  20380. )
  20381. }),
  20382. (t.prototype.getOrdinalMeta = function () {
  20383. return this._ordinalMeta
  20384. }),
  20385. (t.prototype.calcNiceTicks = function () {}),
  20386. (t.prototype.calcNiceExtent = function () {}),
  20387. (t.type = 'ordinal'),
  20388. t
  20389. )
  20390. })(pr)
  20391. pr.registerClass(N0)
  20392. var F0 = N0,
  20393. Cn = Pt,
  20394. z0 = (function (r) {
  20395. B(t, r)
  20396. function t() {
  20397. var e = (r !== null && r.apply(this, arguments)) || this
  20398. return (
  20399. (e.type = 'interval'), (e._interval = 0), (e._intervalPrecision = 2), e
  20400. )
  20401. }
  20402. return (
  20403. (t.prototype.parse = function (e) {
  20404. return e
  20405. }),
  20406. (t.prototype.contain = function (e) {
  20407. return Js(e, this._extent)
  20408. }),
  20409. (t.prototype.normalize = function (e) {
  20410. return js(e, this._extent)
  20411. }),
  20412. (t.prototype.scale = function (e) {
  20413. return tl(e, this._extent)
  20414. }),
  20415. (t.prototype.setExtent = function (e, n) {
  20416. var i = this._extent
  20417. isNaN(e) || (i[0] = parseFloat(e)), isNaN(n) || (i[1] = parseFloat(n))
  20418. }),
  20419. (t.prototype.unionExtent = function (e) {
  20420. var n = this._extent
  20421. e[0] < n[0] && (n[0] = e[0]),
  20422. e[1] > n[1] && (n[1] = e[1]),
  20423. this.setExtent(n[0], n[1])
  20424. }),
  20425. (t.prototype.getInterval = function () {
  20426. return this._interval
  20427. }),
  20428. (t.prototype.setInterval = function (e) {
  20429. ;(this._interval = e),
  20430. (this._niceExtent = this._extent.slice()),
  20431. (this._intervalPrecision = k0(e))
  20432. }),
  20433. (t.prototype.getTicks = function (e) {
  20434. var n = this._interval,
  20435. i = this._extent,
  20436. a = this._niceExtent,
  20437. o = this._intervalPrecision,
  20438. s = []
  20439. if (!n) return s
  20440. var l = 1e4
  20441. i[0] < a[0] &&
  20442. (e ? s.push({ value: Cn(a[0] - n, o) }) : s.push({ value: i[0] }))
  20443. for (
  20444. var u = a[0];
  20445. u <= a[1] &&
  20446. (s.push({ value: u }),
  20447. (u = Cn(u + n, o)),
  20448. u !== s[s.length - 1].value);
  20449. )
  20450. if (s.length > l) return []
  20451. var f = s.length ? s[s.length - 1].value : a[1]
  20452. return (
  20453. i[1] > f &&
  20454. (e ? s.push({ value: Cn(f + n, o) }) : s.push({ value: i[1] })),
  20455. s
  20456. )
  20457. }),
  20458. (t.prototype.getMinorTicks = function (e) {
  20459. for (
  20460. var n = this.getTicks(!0), i = [], a = this.getExtent(), o = 1;
  20461. o < n.length;
  20462. o++
  20463. ) {
  20464. for (
  20465. var s = n[o],
  20466. l = n[o - 1],
  20467. u = 0,
  20468. f = [],
  20469. h = s.value - l.value,
  20470. c = h / e;
  20471. u < e - 1;
  20472. ) {
  20473. var v = Cn(l.value + (u + 1) * c)
  20474. v > a[0] && v < a[1] && f.push(v), u++
  20475. }
  20476. i.push(f)
  20477. }
  20478. return i
  20479. }),
  20480. (t.prototype.getLabel = function (e, n) {
  20481. if (e == null) return ''
  20482. var i = n && n.precision
  20483. i == null
  20484. ? (i = or(e.value) || 0)
  20485. : i === 'auto' && (i = this._intervalPrecision)
  20486. var a = Cn(e.value, i, !0)
  20487. return sg(a)
  20488. }),
  20489. (t.prototype.calcNiceTicks = function (e, n, i) {
  20490. e = e || 5
  20491. var a = this._extent,
  20492. o = a[1] - a[0]
  20493. if (!!isFinite(o)) {
  20494. o < 0 && ((o = -o), a.reverse())
  20495. var s = k2(a, e, n, i)
  20496. ;(this._intervalPrecision = s.intervalPrecision),
  20497. (this._interval = s.interval),
  20498. (this._niceExtent = s.niceTickExtent)
  20499. }
  20500. }),
  20501. (t.prototype.calcNiceExtent = function (e) {
  20502. var n = this._extent
  20503. if (n[0] === n[1])
  20504. if (n[0] !== 0) {
  20505. var i = n[0]
  20506. e.fixMax || (n[1] += i / 2), (n[0] -= i / 2)
  20507. } else n[1] = 1
  20508. var a = n[1] - n[0]
  20509. isFinite(a) || ((n[0] = 0), (n[1] = 1)),
  20510. this.calcNiceTicks(e.splitNumber, e.minInterval, e.maxInterval)
  20511. var o = this._interval
  20512. e.fixMin || (n[0] = Cn(Math.floor(n[0] / o) * o)),
  20513. e.fixMax || (n[1] = Cn(Math.ceil(n[1] / o) * o))
  20514. }),
  20515. (t.prototype.setNiceExtent = function (e, n) {
  20516. this._niceExtent = [e, n]
  20517. }),
  20518. (t.type = 'interval'),
  20519. t
  20520. )
  20521. })(pr)
  20522. pr.registerClass(z0)
  20523. var Va = z0,
  20524. V0 = typeof Float32Array != 'undefined',
  20525. N2 = V0 ? Float32Array : Array
  20526. function gr(r) {
  20527. return z(r) ? (V0 ? new Float32Array(r) : r) : new N2(r)
  20528. }
  20529. var F2 = '__ec_stack_'
  20530. function xh(r) {
  20531. return r.get('stack') || F2 + r.seriesIndex
  20532. }
  20533. function wh(r) {
  20534. return r.dim + r.index
  20535. }
  20536. function G0(r, t) {
  20537. var e = []
  20538. return (
  20539. t.eachSeriesByType(r, function (n) {
  20540. W0(n) && e.push(n)
  20541. }),
  20542. e
  20543. )
  20544. }
  20545. function z2(r) {
  20546. var t = {}
  20547. A(r, function (l) {
  20548. var u = l.coordinateSystem,
  20549. f = u.getBaseAxis()
  20550. if (!(f.type !== 'time' && f.type !== 'value'))
  20551. for (
  20552. var h = l.getData(),
  20553. c = f.dim + '_' + f.index,
  20554. v = h.getDimensionIndex(h.mapDimension(f.dim)),
  20555. d = h.getStore(),
  20556. p = 0,
  20557. g = d.count();
  20558. p < g;
  20559. ++p
  20560. ) {
  20561. var m = d.get(v, p)
  20562. t[c] ? t[c].push(m) : (t[c] = [m])
  20563. }
  20564. })
  20565. var e = {}
  20566. for (var n in t)
  20567. if (t.hasOwnProperty(n)) {
  20568. var i = t[n]
  20569. if (i) {
  20570. i.sort(function (l, u) {
  20571. return l - u
  20572. })
  20573. for (var a = null, o = 1; o < i.length; ++o) {
  20574. var s = i[o] - i[o - 1]
  20575. s > 0 && (a = a === null ? s : Math.min(a, s))
  20576. }
  20577. e[n] = a
  20578. }
  20579. }
  20580. return e
  20581. }
  20582. function H0(r) {
  20583. var t = z2(r),
  20584. e = []
  20585. return (
  20586. A(r, function (n) {
  20587. var i = n.coordinateSystem,
  20588. a = i.getBaseAxis(),
  20589. o = a.getExtent(),
  20590. s
  20591. if (a.type === 'category') s = a.getBandWidth()
  20592. else if (a.type === 'value' || a.type === 'time') {
  20593. var l = a.dim + '_' + a.index,
  20594. u = t[l],
  20595. f = Math.abs(o[1] - o[0]),
  20596. h = a.scale.getExtent(),
  20597. c = Math.abs(h[1] - h[0])
  20598. s = u ? (f / c) * u : f
  20599. } else {
  20600. var v = n.getData()
  20601. s = Math.abs(o[1] - o[0]) / v.count()
  20602. }
  20603. var d = yt(n.get('barWidth'), s),
  20604. p = yt(n.get('barMaxWidth'), s),
  20605. g = yt(n.get('barMinWidth') || (U0(n) ? 0.5 : 1), s),
  20606. m = n.get('barGap'),
  20607. y = n.get('barCategoryGap')
  20608. e.push({
  20609. bandWidth: s,
  20610. barWidth: d,
  20611. barMaxWidth: p,
  20612. barMinWidth: g,
  20613. barGap: m,
  20614. barCategoryGap: y,
  20615. axisKey: wh(a),
  20616. stackId: xh(n)
  20617. })
  20618. }),
  20619. V2(e)
  20620. )
  20621. }
  20622. function V2(r) {
  20623. var t = {}
  20624. A(r, function (n, i) {
  20625. var a = n.axisKey,
  20626. o = n.bandWidth,
  20627. s = t[a] || {
  20628. bandWidth: o,
  20629. remainedWidth: o,
  20630. autoWidthCount: 0,
  20631. categoryGap: null,
  20632. gap: '20%',
  20633. stacks: {}
  20634. },
  20635. l = s.stacks
  20636. t[a] = s
  20637. var u = n.stackId
  20638. l[u] || s.autoWidthCount++, (l[u] = l[u] || { width: 0, maxWidth: 0 })
  20639. var f = n.barWidth
  20640. f &&
  20641. !l[u].width &&
  20642. ((l[u].width = f),
  20643. (f = Math.min(s.remainedWidth, f)),
  20644. (s.remainedWidth -= f))
  20645. var h = n.barMaxWidth
  20646. h && (l[u].maxWidth = h)
  20647. var c = n.barMinWidth
  20648. c && (l[u].minWidth = c)
  20649. var v = n.barGap
  20650. v != null && (s.gap = v)
  20651. var d = n.barCategoryGap
  20652. d != null && (s.categoryGap = d)
  20653. })
  20654. var e = {}
  20655. return (
  20656. A(t, function (n, i) {
  20657. e[i] = {}
  20658. var a = n.stacks,
  20659. o = n.bandWidth,
  20660. s = n.categoryGap
  20661. if (s == null) {
  20662. var l = xt(a).length
  20663. s = Math.max(35 - l * 4, 15) + '%'
  20664. }
  20665. var u = yt(s, o),
  20666. f = yt(n.gap, 1),
  20667. h = n.remainedWidth,
  20668. c = n.autoWidthCount,
  20669. v = (h - u) / (c + (c - 1) * f)
  20670. ;(v = Math.max(v, 0)),
  20671. A(a, function (m) {
  20672. var y = m.maxWidth,
  20673. _ = m.minWidth
  20674. if (m.width) {
  20675. var S = m.width
  20676. y && (S = Math.min(S, y)),
  20677. _ && (S = Math.max(S, _)),
  20678. (m.width = S),
  20679. (h -= S + f * S),
  20680. c--
  20681. } else {
  20682. var S = v
  20683. y && y < S && (S = Math.min(y, h)),
  20684. _ && _ > S && (S = _),
  20685. S !== v && ((m.width = S), (h -= S + f * S), c--)
  20686. }
  20687. }),
  20688. (v = (h - u) / (c + (c - 1) * f)),
  20689. (v = Math.max(v, 0))
  20690. var d = 0,
  20691. p
  20692. A(a, function (m, y) {
  20693. m.width || (m.width = v), (p = m), (d += m.width * (1 + f))
  20694. }),
  20695. p && (d -= p.width * f)
  20696. var g = -d / 2
  20697. A(a, function (m, y) {
  20698. ;(e[i][y] = e[i][y] || { bandWidth: o, offset: g, width: m.width }),
  20699. (g += m.width * (1 + f))
  20700. })
  20701. }),
  20702. e
  20703. )
  20704. }
  20705. function G2(r, t, e) {
  20706. if (r && t) {
  20707. var n = r[wh(t)]
  20708. return n != null && e != null ? n[xh(e)] : n
  20709. }
  20710. }
  20711. function H2(r, t) {
  20712. var e = G0(r, t),
  20713. n = H0(e)
  20714. A(e, function (i) {
  20715. var a = i.getData(),
  20716. o = i.coordinateSystem,
  20717. s = o.getBaseAxis(),
  20718. l = xh(i),
  20719. u = n[wh(s)][l],
  20720. f = u.offset,
  20721. h = u.width
  20722. a.setLayout({ bandWidth: u.bandWidth, offset: f, size: h })
  20723. })
  20724. }
  20725. function W2(r) {
  20726. return {
  20727. seriesType: r,
  20728. plan: Yf(),
  20729. reset: function (t) {
  20730. if (!!W0(t)) {
  20731. var e = t.getData(),
  20732. n = t.coordinateSystem,
  20733. i = n.getBaseAxis(),
  20734. a = n.getOtherAxis(i),
  20735. o = e.getDimensionIndex(e.mapDimension(a.dim)),
  20736. s = e.getDimensionIndex(e.mapDimension(i.dim)),
  20737. l = t.get('showBackground', !0),
  20738. u = e.mapDimension(a.dim),
  20739. f = e.getCalculationInfo('stackResultDimension'),
  20740. h = Si(e, u) && !!e.getCalculationInfo('stackedOnSeries'),
  20741. c = a.isHorizontal(),
  20742. v = U2(i, a),
  20743. d = U0(t),
  20744. p = t.get('barMinHeight') || 0,
  20745. g = f && e.getDimensionIndex(f),
  20746. m = e.getLayout('size'),
  20747. y = e.getLayout('offset')
  20748. return {
  20749. progress: function (_, S) {
  20750. for (
  20751. var w = _.count,
  20752. x = d && gr(w * 3),
  20753. b = d && l && gr(w * 3),
  20754. T = d && gr(w),
  20755. C = n.master.getRect(),
  20756. M = c ? C.width : C.height,
  20757. D,
  20758. I = S.getStore(),
  20759. L = 0;
  20760. (D = _.next()) != null;
  20761. ) {
  20762. var P = I.get(h ? g : o, D),
  20763. R = I.get(s, D),
  20764. O = v,
  20765. U = void 0
  20766. h && (U = +P - I.get(o, D))
  20767. var k = void 0,
  20768. F = void 0,
  20769. H = void 0,
  20770. $ = void 0
  20771. if (c) {
  20772. var J = n.dataToPoint([P, R])
  20773. if (h) {
  20774. var et = n.dataToPoint([U, R])
  20775. O = et[0]
  20776. }
  20777. ;(k = O),
  20778. (F = J[1] + y),
  20779. (H = J[0] - O),
  20780. ($ = m),
  20781. Math.abs(H) < p && (H = (H < 0 ? -1 : 1) * p)
  20782. } else {
  20783. var J = n.dataToPoint([R, P])
  20784. if (h) {
  20785. var et = n.dataToPoint([R, U])
  20786. O = et[1]
  20787. }
  20788. ;(k = J[0] + y),
  20789. (F = O),
  20790. (H = m),
  20791. ($ = J[1] - O),
  20792. Math.abs($) < p && ($ = ($ <= 0 ? -1 : 1) * p)
  20793. }
  20794. d
  20795. ? ((x[L] = k),
  20796. (x[L + 1] = F),
  20797. (x[L + 2] = c ? H : $),
  20798. b &&
  20799. ((b[L] = c ? C.x : k),
  20800. (b[L + 1] = c ? F : C.y),
  20801. (b[L + 2] = M)),
  20802. (T[D] = D))
  20803. : S.setItemLayout(D, { x: k, y: F, width: H, height: $ }),
  20804. (L += 3)
  20805. }
  20806. d &&
  20807. S.setLayout({
  20808. largePoints: x,
  20809. largeDataIndices: T,
  20810. largeBackgroundPoints: b,
  20811. valueAxisHorizontal: c
  20812. })
  20813. }
  20814. }
  20815. }
  20816. }
  20817. }
  20818. }
  20819. function W0(r) {
  20820. return r.coordinateSystem && r.coordinateSystem.type === 'cartesian2d'
  20821. }
  20822. function U0(r) {
  20823. return r.pipelineContext && r.pipelineContext.large
  20824. }
  20825. function U2(r, t) {
  20826. return t.toGlobalCoord(t.dataToCoord(t.type === 'log' ? 1 : 0))
  20827. }
  20828. var Y2 = function (r, t, e, n) {
  20829. for (; e < n; ) {
  20830. var i = (e + n) >>> 1
  20831. r[i][1] < t ? (e = i + 1) : (n = i)
  20832. }
  20833. return e
  20834. },
  20835. Y0 = (function (r) {
  20836. B(t, r)
  20837. function t(e) {
  20838. var n = r.call(this, e) || this
  20839. return (n.type = 'time'), n
  20840. }
  20841. return (
  20842. (t.prototype.getLabel = function (e) {
  20843. var n = this.getSetting('useUTC')
  20844. return ms(
  20845. e.value,
  20846. Qp[tA(li(this._minLevelUnit))] || Qp.second,
  20847. n,
  20848. this.getSetting('locale')
  20849. )
  20850. }),
  20851. (t.prototype.getFormattedLabel = function (e, n, i) {
  20852. var a = this.getSetting('useUTC'),
  20853. o = this.getSetting('locale')
  20854. return eA(e, n, i, o, a)
  20855. }),
  20856. (t.prototype.getTicks = function () {
  20857. var e = this._interval,
  20858. n = this._extent,
  20859. i = []
  20860. if (!e) return i
  20861. i.push({ value: n[0], level: 0 })
  20862. var a = this.getSetting('useUTC'),
  20863. o = J2(this._minLevelUnit, this._approxInterval, a, n)
  20864. return (i = i.concat(o)), i.push({ value: n[1], level: 0 }), i
  20865. }),
  20866. (t.prototype.calcNiceExtent = function (e) {
  20867. var n = this._extent
  20868. if (
  20869. (n[0] === n[1] && ((n[0] -= ge), (n[1] += ge)),
  20870. n[1] === -1 / 0 && n[0] === 1 / 0)
  20871. ) {
  20872. var i = new Date()
  20873. ;(n[1] = +new Date(i.getFullYear(), i.getMonth(), i.getDate())),
  20874. (n[0] = n[1] - ge)
  20875. }
  20876. this.calcNiceTicks(e.splitNumber, e.minInterval, e.maxInterval)
  20877. }),
  20878. (t.prototype.calcNiceTicks = function (e, n, i) {
  20879. e = e || 10
  20880. var a = this._extent,
  20881. o = a[1] - a[0]
  20882. ;(this._approxInterval = o / e),
  20883. n != null && this._approxInterval < n && (this._approxInterval = n),
  20884. i != null && this._approxInterval > i && (this._approxInterval = i)
  20885. var s = el.length,
  20886. l = Math.min(Y2(el, this._approxInterval, 0, s), s - 1)
  20887. ;(this._interval = el[l][1]),
  20888. (this._minLevelUnit = el[Math.max(l - 1, 0)][0])
  20889. }),
  20890. (t.prototype.parse = function (e) {
  20891. return dt(e) ? e : +sr(e)
  20892. }),
  20893. (t.prototype.contain = function (e) {
  20894. return Js(this.parse(e), this._extent)
  20895. }),
  20896. (t.prototype.normalize = function (e) {
  20897. return js(this.parse(e), this._extent)
  20898. }),
  20899. (t.prototype.scale = function (e) {
  20900. return tl(e, this._extent)
  20901. }),
  20902. (t.type = 'time'),
  20903. t
  20904. )
  20905. })(Va),
  20906. el = [
  20907. ['second', yf],
  20908. ['minute', _f],
  20909. ['hour', pa],
  20910. ['quarter-day', pa * 6],
  20911. ['half-day', pa * 12],
  20912. ['day', ge * 1.2],
  20913. ['half-week', ge * 3.5],
  20914. ['week', ge * 7],
  20915. ['month', ge * 31],
  20916. ['quarter', ge * 95],
  20917. ['half-year', Kp / 2],
  20918. ['year', Kp]
  20919. ]
  20920. function Z2(r, t, e, n) {
  20921. var i = sr(t),
  20922. a = sr(e),
  20923. o = function (d) {
  20924. return tg(i, d, n) === tg(a, d, n)
  20925. },
  20926. s = function () {
  20927. return o('year')
  20928. },
  20929. l = function () {
  20930. return s() && o('month')
  20931. },
  20932. u = function () {
  20933. return l() && o('day')
  20934. },
  20935. f = function () {
  20936. return u() && o('hour')
  20937. },
  20938. h = function () {
  20939. return f() && o('minute')
  20940. },
  20941. c = function () {
  20942. return h() && o('second')
  20943. },
  20944. v = function () {
  20945. return c() && o('millisecond')
  20946. }
  20947. switch (r) {
  20948. case 'year':
  20949. return s()
  20950. case 'month':
  20951. return l()
  20952. case 'day':
  20953. return u()
  20954. case 'hour':
  20955. return f()
  20956. case 'minute':
  20957. return h()
  20958. case 'second':
  20959. return c()
  20960. case 'millisecond':
  20961. return v()
  20962. }
  20963. }
  20964. function $2(r, t) {
  20965. return (r /= ge), r > 16 ? 16 : r > 7.5 ? 7 : r > 3.5 ? 4 : r > 1.5 ? 2 : 1
  20966. }
  20967. function X2(r) {
  20968. var t = 30 * ge
  20969. return (r /= t), r > 6 ? 6 : r > 3 ? 3 : r > 2 ? 2 : 1
  20970. }
  20971. function q2(r) {
  20972. return (r /= pa), r > 12 ? 12 : r > 6 ? 6 : r > 3.5 ? 4 : r > 2 ? 2 : 1
  20973. }
  20974. function Z0(r, t) {
  20975. return (
  20976. (r /= t ? _f : yf),
  20977. r > 30
  20978. ? 30
  20979. : r > 20
  20980. ? 20
  20981. : r > 15
  20982. ? 15
  20983. : r > 10
  20984. ? 10
  20985. : r > 5
  20986. ? 5
  20987. : r > 2
  20988. ? 2
  20989. : 1
  20990. )
  20991. }
  20992. function K2(r) {
  20993. return qc(r, !0)
  20994. }
  20995. function Q2(r, t, e) {
  20996. var n = new Date(r)
  20997. switch (li(t)) {
  20998. case 'year':
  20999. case 'month':
  21000. n[eg(e)](0)
  21001. case 'day':
  21002. n[rg(e)](1)
  21003. case 'hour':
  21004. n[ng(e)](0)
  21005. case 'minute':
  21006. n[ig(e)](0)
  21007. case 'second':
  21008. n[ag(e)](0), n[og(e)](0)
  21009. }
  21010. return n.getTime()
  21011. }
  21012. function J2(r, t, e, n) {
  21013. var i = 1e4,
  21014. a = Jp,
  21015. o = 0
  21016. function s(M, D, I, L, P, R, O) {
  21017. for (var U = new Date(D), k = D, F = U[L](); k < I && k <= n[1]; )
  21018. O.push({ value: k }), (F += M), U[P](F), (k = U.getTime())
  21019. O.push({ value: k, notAdd: !0 })
  21020. }
  21021. function l(M, D, I) {
  21022. var L = [],
  21023. P = !D.length
  21024. if (!Z2(li(M), n[0], n[1], e)) {
  21025. P && (D = [{ value: Q2(new Date(n[0]), M, e) }, { value: n[1] }])
  21026. for (var R = 0; R < D.length - 1; R++) {
  21027. var O = D[R].value,
  21028. U = D[R + 1].value
  21029. if (O !== U) {
  21030. var k = void 0,
  21031. F = void 0,
  21032. H = void 0,
  21033. $ = !1
  21034. switch (M) {
  21035. case 'year':
  21036. ;(k = Math.max(1, Math.round(t / ge / 365))),
  21037. (F = xf(e)),
  21038. (H = rA(e))
  21039. break
  21040. case 'half-year':
  21041. case 'quarter':
  21042. case 'month':
  21043. ;(k = X2(t)), (F = ui(e)), (H = eg(e))
  21044. break
  21045. case 'week':
  21046. case 'half-week':
  21047. case 'day':
  21048. ;(k = $2(t)), (F = ys(e)), (H = rg(e)), ($ = !0)
  21049. break
  21050. case 'half-day':
  21051. case 'quarter-day':
  21052. case 'hour':
  21053. ;(k = q2(t)), (F = ma(e)), (H = ng(e))
  21054. break
  21055. case 'minute':
  21056. ;(k = Z0(t, !0)), (F = _s(e)), (H = ig(e))
  21057. break
  21058. case 'second':
  21059. ;(k = Z0(t, !1)), (F = Ss(e)), (H = ag(e))
  21060. break
  21061. case 'millisecond':
  21062. ;(k = K2(t)), (F = xs(e)), (H = og(e))
  21063. break
  21064. }
  21065. s(k, O, U, F, H, $, L),
  21066. M === 'year' &&
  21067. I.length > 1 &&
  21068. R === 0 &&
  21069. I.unshift({ value: I[0].value - k })
  21070. }
  21071. }
  21072. for (var R = 0; R < L.length; R++) I.push(L[R])
  21073. return L
  21074. }
  21075. }
  21076. for (var u = [], f = [], h = 0, c = 0, v = 0; v < a.length && o++ < i; ++v) {
  21077. var d = li(a[v])
  21078. if (!!jC(a[v])) {
  21079. l(a[v], u[u.length - 1] || [], f)
  21080. var p = a[v + 1] ? li(a[v + 1]) : null
  21081. if (d !== p) {
  21082. if (f.length) {
  21083. ;(c = h),
  21084. f.sort(function (M, D) {
  21085. return M.value - D.value
  21086. })
  21087. for (var g = [], m = 0; m < f.length; ++m) {
  21088. var y = f[m].value
  21089. ;(m === 0 || f[m - 1].value !== y) &&
  21090. (g.push(f[m]), y >= n[0] && y <= n[1] && h++)
  21091. }
  21092. var _ = (n[1] - n[0]) / t
  21093. if ((h > _ * 1.5 && c > _ / 1.5) || (u.push(g), h > _ || r === a[v]))
  21094. break
  21095. }
  21096. f = []
  21097. }
  21098. }
  21099. }
  21100. for (
  21101. var S = Lt(
  21102. G(u, function (M) {
  21103. return Lt(M, function (D) {
  21104. return D.value >= n[0] && D.value <= n[1] && !D.notAdd
  21105. })
  21106. }),
  21107. function (M) {
  21108. return M.length > 0
  21109. }
  21110. ),
  21111. w = [],
  21112. x = S.length - 1,
  21113. v = 0;
  21114. v < S.length;
  21115. ++v
  21116. )
  21117. for (var b = S[v], T = 0; T < b.length; ++T)
  21118. w.push({ value: b[T].value, level: x - v })
  21119. w.sort(function (M, D) {
  21120. return M.value - D.value
  21121. })
  21122. for (var C = [], v = 0; v < w.length; ++v)
  21123. (v === 0 || w[v].value !== w[v - 1].value) && C.push(w[v])
  21124. return C
  21125. }
  21126. pr.registerClass(Y0)
  21127. var j2 = Y0,
  21128. $0 = pr.prototype,
  21129. Ga = Va.prototype,
  21130. tI = Pt,
  21131. eI = Math.floor,
  21132. rI = Math.ceil,
  21133. rl = Math.pow,
  21134. be = Math.log,
  21135. bh = (function (r) {
  21136. B(t, r)
  21137. function t() {
  21138. var e = (r !== null && r.apply(this, arguments)) || this
  21139. return (
  21140. (e.type = 'log'),
  21141. (e.base = 10),
  21142. (e._originalScale = new Va()),
  21143. (e._interval = 0),
  21144. e
  21145. )
  21146. }
  21147. return (
  21148. (t.prototype.getTicks = function (e) {
  21149. var n = this._originalScale,
  21150. i = this._extent,
  21151. a = n.getExtent(),
  21152. o = Ga.getTicks.call(this, e)
  21153. return G(
  21154. o,
  21155. function (s) {
  21156. var l = s.value,
  21157. u = Pt(rl(this.base, l))
  21158. return (
  21159. (u = l === i[0] && this._fixMin ? nl(u, a[0]) : u),
  21160. (u = l === i[1] && this._fixMax ? nl(u, a[1]) : u),
  21161. { value: u }
  21162. )
  21163. },
  21164. this
  21165. )
  21166. }),
  21167. (t.prototype.setExtent = function (e, n) {
  21168. var i = this.base
  21169. ;(e = be(e) / be(i)), (n = be(n) / be(i)), Ga.setExtent.call(this, e, n)
  21170. }),
  21171. (t.prototype.getExtent = function () {
  21172. var e = this.base,
  21173. n = $0.getExtent.call(this)
  21174. ;(n[0] = rl(e, n[0])), (n[1] = rl(e, n[1]))
  21175. var i = this._originalScale,
  21176. a = i.getExtent()
  21177. return (
  21178. this._fixMin && (n[0] = nl(n[0], a[0])),
  21179. this._fixMax && (n[1] = nl(n[1], a[1])),
  21180. n
  21181. )
  21182. }),
  21183. (t.prototype.unionExtent = function (e) {
  21184. this._originalScale.unionExtent(e)
  21185. var n = this.base
  21186. ;(e[0] = be(e[0]) / be(n)),
  21187. (e[1] = be(e[1]) / be(n)),
  21188. $0.unionExtent.call(this, e)
  21189. }),
  21190. (t.prototype.unionExtentFromData = function (e, n) {
  21191. this.unionExtent(e.getApproximateExtent(n))
  21192. }),
  21193. (t.prototype.calcNiceTicks = function (e) {
  21194. e = e || 10
  21195. var n = this._extent,
  21196. i = n[1] - n[0]
  21197. if (!(i === 1 / 0 || i <= 0)) {
  21198. var a = eb(i),
  21199. o = (e / i) * a
  21200. for (
  21201. o <= 0.5 && (a *= 10);
  21202. !isNaN(a) && Math.abs(a) < 1 && Math.abs(a) > 0;
  21203. )
  21204. a *= 10
  21205. var s = [Pt(rI(n[0] / a) * a), Pt(eI(n[1] / a) * a)]
  21206. ;(this._interval = a), (this._niceExtent = s)
  21207. }
  21208. }),
  21209. (t.prototype.calcNiceExtent = function (e) {
  21210. Ga.calcNiceExtent.call(this, e),
  21211. (this._fixMin = e.fixMin),
  21212. (this._fixMax = e.fixMax)
  21213. }),
  21214. (t.prototype.parse = function (e) {
  21215. return e
  21216. }),
  21217. (t.prototype.contain = function (e) {
  21218. return (e = be(e) / be(this.base)), Js(e, this._extent)
  21219. }),
  21220. (t.prototype.normalize = function (e) {
  21221. return (e = be(e) / be(this.base)), js(e, this._extent)
  21222. }),
  21223. (t.prototype.scale = function (e) {
  21224. return (e = tl(e, this._extent)), rl(this.base, e)
  21225. }),
  21226. (t.type = 'log'),
  21227. t
  21228. )
  21229. })(pr),
  21230. X0 = bh.prototype
  21231. X0.getMinorTicks = Ga.getMinorTicks
  21232. X0.getLabel = Ga.getLabel
  21233. function nl(r, t) {
  21234. return tI(r, or(t))
  21235. }
  21236. pr.registerClass(bh)
  21237. var nI = bh,
  21238. iI = (function () {
  21239. function r(t, e, n) {
  21240. this._prepareParams(t, e, n)
  21241. }
  21242. return (
  21243. (r.prototype._prepareParams = function (t, e, n) {
  21244. n[1] < n[0] && (n = [NaN, NaN]),
  21245. (this._dataMin = n[0]),
  21246. (this._dataMax = n[1])
  21247. var i = (this._isOrdinal = t.type === 'ordinal')
  21248. this._needCrossZero =
  21249. t.type === 'interval' && e.getNeedCrossZero && e.getNeedCrossZero()
  21250. var a = (this._modelMinRaw = e.get('min', !0))
  21251. Q(a)
  21252. ? (this._modelMinNum = il(t, a({ min: n[0], max: n[1] })))
  21253. : a !== 'dataMin' && (this._modelMinNum = il(t, a))
  21254. var o = (this._modelMaxRaw = e.get('max', !0))
  21255. if (
  21256. (Q(o)
  21257. ? (this._modelMaxNum = il(t, o({ min: n[0], max: n[1] })))
  21258. : o !== 'dataMax' && (this._modelMaxNum = il(t, o)),
  21259. i)
  21260. )
  21261. this._axisDataLen = e.getCategories().length
  21262. else {
  21263. var s = e.get('boundaryGap'),
  21264. l = z(s) ? s : [s || 0, s || 0]
  21265. typeof l[0] == 'boolean' || typeof l[1] == 'boolean'
  21266. ? (this._boundaryGapInner = [0, 0])
  21267. : (this._boundaryGapInner = [Cr(l[0], 1), Cr(l[1], 1)])
  21268. }
  21269. }),
  21270. (r.prototype.calculate = function () {
  21271. var t = this._isOrdinal,
  21272. e = this._dataMin,
  21273. n = this._dataMax,
  21274. i = this._axisDataLen,
  21275. a = this._boundaryGapInner,
  21276. o = t ? null : n - e || Math.abs(e),
  21277. s = this._modelMinRaw === 'dataMin' ? e : this._modelMinNum,
  21278. l = this._modelMaxRaw === 'dataMax' ? n : this._modelMaxNum,
  21279. u = s != null,
  21280. f = l != null
  21281. s == null && (s = t ? (i ? 0 : NaN) : e - a[0] * o),
  21282. l == null && (l = t ? (i ? i - 1 : NaN) : n + a[1] * o),
  21283. (s == null || !isFinite(s)) && (s = NaN),
  21284. (l == null || !isFinite(l)) && (l = NaN)
  21285. var h = ao(s) || ao(l) || (t && !i)
  21286. this._needCrossZero &&
  21287. (s > 0 && l > 0 && !u && (s = 0), s < 0 && l < 0 && !f && (l = 0))
  21288. var c = this._determinedMin,
  21289. v = this._determinedMax
  21290. return (
  21291. c != null && ((s = c), (u = !0)),
  21292. v != null && ((l = v), (f = !0)),
  21293. { min: s, max: l, minFixed: u, maxFixed: f, isBlank: h }
  21294. )
  21295. }),
  21296. (r.prototype.modifyDataMinMax = function (t, e) {
  21297. this[oI[t]] = e
  21298. }),
  21299. (r.prototype.setDeterminedMinMax = function (t, e) {
  21300. var n = aI[t]
  21301. this[n] = e
  21302. }),
  21303. (r.prototype.freeze = function () {
  21304. this.frozen = !0
  21305. }),
  21306. r
  21307. )
  21308. })(),
  21309. aI = { min: '_determinedMin', max: '_determinedMax' },
  21310. oI = { min: '_dataMin', max: '_dataMax' }
  21311. function q0(r, t, e) {
  21312. var n = r.rawExtentInfo
  21313. return n || ((n = new iI(r, t, e)), (r.rawExtentInfo = n), n)
  21314. }
  21315. function il(r, t) {
  21316. return t == null ? null : ao(t) ? NaN : r.parse(t)
  21317. }
  21318. function K0(r, t) {
  21319. var e = r.type,
  21320. n = q0(r, t, r.getExtent()).calculate()
  21321. r.setBlank(n.isBlank)
  21322. var i = n.min,
  21323. a = n.max,
  21324. o = t.ecModel
  21325. if (o && e === 'time') {
  21326. var s = G0('bar', o),
  21327. l = !1
  21328. if (
  21329. (A(s, function (h) {
  21330. l = l || h.getBaseAxis() === t.axis
  21331. }),
  21332. l)
  21333. ) {
  21334. var u = H0(s),
  21335. f = sI(i, a, t, u)
  21336. ;(i = f.min), (a = f.max)
  21337. }
  21338. }
  21339. return { extent: [i, a], fixMin: n.minFixed, fixMax: n.maxFixed }
  21340. }
  21341. function sI(r, t, e, n) {
  21342. var i = e.axis.getExtent(),
  21343. a = i[1] - i[0],
  21344. o = G2(n, e.axis)
  21345. if (o === void 0) return { min: r, max: t }
  21346. var s = 1 / 0
  21347. A(o, function (v) {
  21348. s = Math.min(v.offset, s)
  21349. })
  21350. var l = -1 / 0
  21351. A(o, function (v) {
  21352. l = Math.max(v.offset + v.width, l)
  21353. }),
  21354. (s = Math.abs(s)),
  21355. (l = Math.abs(l))
  21356. var u = s + l,
  21357. f = t - r,
  21358. h = 1 - (s + l) / a,
  21359. c = f / h - f
  21360. return (t += c * (l / u)), (r -= c * (s / u)), { min: r, max: t }
  21361. }
  21362. function Q0(r, t) {
  21363. var e = t,
  21364. n = K0(r, e),
  21365. i = n.extent,
  21366. a = e.get('splitNumber')
  21367. r instanceof nI && (r.base = e.get('logBase'))
  21368. var o = r.type,
  21369. s = e.get('interval'),
  21370. l = o === 'interval' || o === 'time'
  21371. r.setExtent(i[0], i[1]),
  21372. r.calcNiceExtent({
  21373. splitNumber: a,
  21374. fixMin: n.fixMin,
  21375. fixMax: n.fixMax,
  21376. minInterval: l ? e.get('minInterval') : null,
  21377. maxInterval: l ? e.get('maxInterval') : null
  21378. }),
  21379. s != null && r.setInterval && r.setInterval(s)
  21380. }
  21381. function lI(r, t) {
  21382. if (((t = t || r.get('type')), t))
  21383. switch (t) {
  21384. case 'category':
  21385. return new F0({
  21386. ordinalMeta: r.getOrdinalMeta
  21387. ? r.getOrdinalMeta()
  21388. : r.getCategories(),
  21389. extent: [1 / 0, -1 / 0]
  21390. })
  21391. case 'time':
  21392. return new j2({
  21393. locale: r.ecModel.getLocaleModel(),
  21394. useUTC: r.ecModel.get('useUTC')
  21395. })
  21396. default:
  21397. return new (pr.getClass(t) || Va)()
  21398. }
  21399. }
  21400. function uI(r) {
  21401. var t = r.scale.getExtent(),
  21402. e = t[0],
  21403. n = t[1]
  21404. return !((e > 0 && n > 0) || (e < 0 && n < 0))
  21405. }
  21406. function Ha(r) {
  21407. var t = r.getLabelModel().get('formatter'),
  21408. e = r.type === 'category' ? r.scale.getExtent()[0] : null
  21409. return r.scale.type === 'time'
  21410. ? (function (n) {
  21411. return function (i, a) {
  21412. return r.scale.getFormattedLabel(i, a, n)
  21413. }
  21414. })(t)
  21415. : W(t)
  21416. ? (function (n) {
  21417. return function (i) {
  21418. var a = r.scale.getLabel(i),
  21419. o = n.replace('{value}', a != null ? a : '')
  21420. return o
  21421. }
  21422. })(t)
  21423. : Q(t)
  21424. ? (function (n) {
  21425. return function (i, a) {
  21426. return (
  21427. e != null && (a = i.value - e),
  21428. n(Th(r, i), a, i.level != null ? { level: i.level } : null)
  21429. )
  21430. }
  21431. })(t)
  21432. : function (n) {
  21433. return r.scale.getLabel(n)
  21434. }
  21435. }
  21436. function Th(r, t) {
  21437. return r.type === 'category' ? r.scale.getLabel(t) : t.value
  21438. }
  21439. function fI(r) {
  21440. var t = r.model,
  21441. e = r.scale
  21442. if (!(!t.get(['axisLabel', 'show']) || e.isBlank())) {
  21443. var n,
  21444. i,
  21445. a = e.getExtent()
  21446. e instanceof F0 ? (i = e.count()) : ((n = e.getTicks()), (i = n.length))
  21447. var o = r.getLabelModel(),
  21448. s = Ha(r),
  21449. l,
  21450. u = 1
  21451. i > 40 && (u = Math.ceil(i / 40))
  21452. for (var f = 0; f < i; f += u) {
  21453. var h = n ? n[f] : { value: a[0] + f },
  21454. c = s(h, f),
  21455. v = o.getTextRect(c),
  21456. d = hI(v, o.get('rotate') || 0)
  21457. l ? l.union(d) : (l = d)
  21458. }
  21459. return l
  21460. }
  21461. }
  21462. function hI(r, t) {
  21463. var e = (t * Math.PI) / 180,
  21464. n = r.width,
  21465. i = r.height,
  21466. a = n * Math.abs(Math.cos(e)) + Math.abs(i * Math.sin(e)),
  21467. o = n * Math.abs(Math.sin(e)) + Math.abs(i * Math.cos(e)),
  21468. s = new vt(r.x, r.y, a, o)
  21469. return s
  21470. }
  21471. function Ch(r) {
  21472. var t = r.get('interval')
  21473. return t == null ? 'auto' : t
  21474. }
  21475. function J0(r) {
  21476. return r.type === 'category' && Ch(r.getLabelModel()) === 0
  21477. }
  21478. function j0(r, t) {
  21479. var e = {}
  21480. return (
  21481. A(r.mapDimensionsAll(t), function (n) {
  21482. e[M2(r, n)] = !0
  21483. }),
  21484. xt(e)
  21485. )
  21486. }
  21487. function vI(r, t, e) {
  21488. t &&
  21489. A(j0(t, e), function (n) {
  21490. var i = t.getApproximateExtent(n)
  21491. i[0] < r[0] && (r[0] = i[0]), i[1] > r[1] && (r[1] = i[1])
  21492. })
  21493. }
  21494. var cI = (function () {
  21495. function r() {}
  21496. return (
  21497. (r.prototype.getNeedCrossZero = function () {
  21498. var t = this.option
  21499. return !t.scale
  21500. }),
  21501. (r.prototype.getCoordSysModel = function () {}),
  21502. r
  21503. )
  21504. })(),
  21505. ty = [],
  21506. dI = {
  21507. registerPreprocessor: S0,
  21508. registerProcessor: x0,
  21509. registerPostInit: t2,
  21510. registerPostUpdate: e2,
  21511. registerUpdateLifecycle: vh,
  21512. registerAction: Je,
  21513. registerCoordinateSystem: r2,
  21514. registerLayout: n2,
  21515. registerVisual: Tn,
  21516. registerTransform: a2,
  21517. registerLoading: b0,
  21518. registerMap: i2,
  21519. registerImpl: OD,
  21520. PRIORITY: XD,
  21521. ComponentModel: _t,
  21522. ComponentView: xe,
  21523. SeriesModel: Er,
  21524. ChartView: Qe,
  21525. registerComponentModel: function (r) {
  21526. _t.registerClass(r)
  21527. },
  21528. registerComponentView: function (r) {
  21529. xe.registerClass(r)
  21530. },
  21531. registerSeriesModel: function (r) {
  21532. Er.registerClass(r)
  21533. },
  21534. registerChartView: function (r) {
  21535. Qe.registerClass(r)
  21536. },
  21537. registerSubTypeDefaulter: function (r, t) {
  21538. _t.registerSubTypeDefaulter(r, t)
  21539. },
  21540. registerPainter: function (r, t) {
  21541. qw(r, t)
  21542. }
  21543. }
  21544. function Re(r) {
  21545. if (z(r)) {
  21546. A(r, function (t) {
  21547. Re(t)
  21548. })
  21549. return
  21550. }
  21551. ot(ty, r) >= 0 || (ty.push(r), Q(r) && (r = { install: r }), r.install(dI))
  21552. }
  21553. var Wa = wt()
  21554. function pI(r) {
  21555. return r.type === 'category' ? mI(r) : _I(r)
  21556. }
  21557. function gI(r, t) {
  21558. return r.type === 'category'
  21559. ? yI(r, t)
  21560. : {
  21561. ticks: G(r.scale.getTicks(), function (e) {
  21562. return e.value
  21563. })
  21564. }
  21565. }
  21566. function mI(r) {
  21567. var t = r.getLabelModel(),
  21568. e = ey(r, t)
  21569. return !t.get('show') || r.scale.isBlank()
  21570. ? { labels: [], labelCategoryInterval: e.labelCategoryInterval }
  21571. : e
  21572. }
  21573. function ey(r, t) {
  21574. var e = ry(r, 'labels'),
  21575. n = Ch(t),
  21576. i = ny(e, n)
  21577. if (i) return i
  21578. var a, o
  21579. return (
  21580. Q(n) ? (a = oy(r, n)) : ((o = n === 'auto' ? SI(r) : n), (a = ay(r, o))),
  21581. iy(e, n, { labels: a, labelCategoryInterval: o })
  21582. )
  21583. }
  21584. function yI(r, t) {
  21585. var e = ry(r, 'ticks'),
  21586. n = Ch(t),
  21587. i = ny(e, n)
  21588. if (i) return i
  21589. var a, o
  21590. if (((!t.get('show') || r.scale.isBlank()) && (a = []), Q(n)))
  21591. a = oy(r, n, !0)
  21592. else if (n === 'auto') {
  21593. var s = ey(r, r.getLabelModel())
  21594. ;(o = s.labelCategoryInterval),
  21595. (a = G(s.labels, function (l) {
  21596. return l.tickValue
  21597. }))
  21598. } else (o = n), (a = ay(r, o, !0))
  21599. return iy(e, n, { ticks: a, tickCategoryInterval: o })
  21600. }
  21601. function _I(r) {
  21602. var t = r.scale.getTicks(),
  21603. e = Ha(r)
  21604. return {
  21605. labels: G(t, function (n, i) {
  21606. return {
  21607. level: n.level,
  21608. formattedLabel: e(n, i),
  21609. rawLabel: r.scale.getLabel(n),
  21610. tickValue: n.value
  21611. }
  21612. })
  21613. }
  21614. }
  21615. function ry(r, t) {
  21616. return Wa(r)[t] || (Wa(r)[t] = [])
  21617. }
  21618. function ny(r, t) {
  21619. for (var e = 0; e < r.length; e++) if (r[e].key === t) return r[e].value
  21620. }
  21621. function iy(r, t, e) {
  21622. return r.push({ key: t, value: e }), e
  21623. }
  21624. function SI(r) {
  21625. var t = Wa(r).autoInterval
  21626. return t != null ? t : (Wa(r).autoInterval = r.calculateCategoryInterval())
  21627. }
  21628. function xI(r) {
  21629. var t = wI(r),
  21630. e = Ha(r),
  21631. n = ((t.axisRotate - t.labelRotate) / 180) * Math.PI,
  21632. i = r.scale,
  21633. a = i.getExtent(),
  21634. o = i.count()
  21635. if (a[1] - a[0] < 1) return 0
  21636. var s = 1
  21637. o > 40 && (s = Math.max(1, Math.floor(o / 40)))
  21638. for (
  21639. var l = a[0],
  21640. u = r.dataToCoord(l + 1) - r.dataToCoord(l),
  21641. f = Math.abs(u * Math.cos(n)),
  21642. h = Math.abs(u * Math.sin(n)),
  21643. c = 0,
  21644. v = 0;
  21645. l <= a[1];
  21646. l += s
  21647. ) {
  21648. var d = 0,
  21649. p = 0,
  21650. g = Eo(e({ value: l }), t.font, 'center', 'top')
  21651. ;(d = g.width * 1.3),
  21652. (p = g.height * 1.3),
  21653. (c = Math.max(c, d, 7)),
  21654. (v = Math.max(v, p, 7))
  21655. }
  21656. var m = c / f,
  21657. y = v / h
  21658. isNaN(m) && (m = 1 / 0), isNaN(y) && (y = 1 / 0)
  21659. var _ = Math.max(0, Math.floor(Math.min(m, y))),
  21660. S = Wa(r.model),
  21661. w = r.getExtent(),
  21662. x = S.lastAutoInterval,
  21663. b = S.lastTickCount
  21664. return (
  21665. x != null &&
  21666. b != null &&
  21667. Math.abs(x - _) <= 1 &&
  21668. Math.abs(b - o) <= 1 &&
  21669. x > _ &&
  21670. S.axisExtent0 === w[0] &&
  21671. S.axisExtent1 === w[1]
  21672. ? (_ = x)
  21673. : ((S.lastTickCount = o),
  21674. (S.lastAutoInterval = _),
  21675. (S.axisExtent0 = w[0]),
  21676. (S.axisExtent1 = w[1])),
  21677. _
  21678. )
  21679. }
  21680. function wI(r) {
  21681. var t = r.getLabelModel()
  21682. return {
  21683. axisRotate: r.getRotate
  21684. ? r.getRotate()
  21685. : r.isHorizontal && !r.isHorizontal()
  21686. ? 90
  21687. : 0,
  21688. labelRotate: t.get('rotate') || 0,
  21689. font: t.getFont()
  21690. }
  21691. }
  21692. function ay(r, t, e) {
  21693. var n = Ha(r),
  21694. i = r.scale,
  21695. a = i.getExtent(),
  21696. o = r.getLabelModel(),
  21697. s = [],
  21698. l = Math.max((t || 0) + 1, 1),
  21699. u = a[0],
  21700. f = i.count()
  21701. u !== 0 && l > 1 && f / l > 2 && (u = Math.round(Math.ceil(u / l) * l))
  21702. var h = J0(r),
  21703. c = o.get('showMinLabel') || h,
  21704. v = o.get('showMaxLabel') || h
  21705. c && u !== a[0] && p(a[0])
  21706. for (var d = u; d <= a[1]; d += l) p(d)
  21707. v && d - l !== a[1] && p(a[1])
  21708. function p(g) {
  21709. var m = { value: g }
  21710. s.push(
  21711. e ? g : { formattedLabel: n(m), rawLabel: i.getLabel(m), tickValue: g }
  21712. )
  21713. }
  21714. return s
  21715. }
  21716. function oy(r, t, e) {
  21717. var n = r.scale,
  21718. i = Ha(r),
  21719. a = []
  21720. return (
  21721. A(n.getTicks(), function (o) {
  21722. var s = n.getLabel(o),
  21723. l = o.value
  21724. t(o.value, s) &&
  21725. a.push(e ? l : { formattedLabel: i(o), rawLabel: s, tickValue: l })
  21726. }),
  21727. a
  21728. )
  21729. }
  21730. var sy = [0, 1],
  21731. bI = (function () {
  21732. function r(t, e, n) {
  21733. ;(this.onBand = !1),
  21734. (this.inverse = !1),
  21735. (this.dim = t),
  21736. (this.scale = e),
  21737. (this._extent = n || [0, 0])
  21738. }
  21739. return (
  21740. (r.prototype.contain = function (t) {
  21741. var e = this._extent,
  21742. n = Math.min(e[0], e[1]),
  21743. i = Math.max(e[0], e[1])
  21744. return t >= n && t <= i
  21745. }),
  21746. (r.prototype.containData = function (t) {
  21747. return this.scale.contain(t)
  21748. }),
  21749. (r.prototype.getExtent = function () {
  21750. return this._extent.slice()
  21751. }),
  21752. (r.prototype.getPixelPrecision = function (t) {
  21753. return $c(t || this.scale.getExtent(), this._extent)
  21754. }),
  21755. (r.prototype.setExtent = function (t, e) {
  21756. var n = this._extent
  21757. ;(n[0] = t), (n[1] = e)
  21758. }),
  21759. (r.prototype.dataToCoord = function (t, e) {
  21760. var n = this._extent,
  21761. i = this.scale
  21762. return (
  21763. (t = i.normalize(t)),
  21764. this.onBand &&
  21765. i.type === 'ordinal' &&
  21766. ((n = n.slice()), ly(n, i.count())),
  21767. Bt(t, sy, n, e)
  21768. )
  21769. }),
  21770. (r.prototype.coordToData = function (t, e) {
  21771. var n = this._extent,
  21772. i = this.scale
  21773. this.onBand &&
  21774. i.type === 'ordinal' &&
  21775. ((n = n.slice()), ly(n, i.count()))
  21776. var a = Bt(t, n, sy, e)
  21777. return this.scale.scale(a)
  21778. }),
  21779. (r.prototype.pointToData = function (t, e) {}),
  21780. (r.prototype.getTicksCoords = function (t) {
  21781. t = t || {}
  21782. var e = t.tickModel || this.getTickModel(),
  21783. n = gI(this, e),
  21784. i = n.ticks,
  21785. a = G(
  21786. i,
  21787. function (s) {
  21788. return {
  21789. coord: this.dataToCoord(
  21790. this.scale.type === 'ordinal'
  21791. ? this.scale.getRawOrdinalNumber(s)
  21792. : s
  21793. ),
  21794. tickValue: s
  21795. }
  21796. },
  21797. this
  21798. ),
  21799. o = e.get('alignWithLabel')
  21800. return TI(this, a, o, t.clamp), a
  21801. }),
  21802. (r.prototype.getMinorTicksCoords = function () {
  21803. if (this.scale.type === 'ordinal') return []
  21804. var t = this.model.getModel('minorTick'),
  21805. e = t.get('splitNumber')
  21806. ;(e > 0 && e < 100) || (e = 5)
  21807. var n = this.scale.getMinorTicks(e),
  21808. i = G(
  21809. n,
  21810. function (a) {
  21811. return G(
  21812. a,
  21813. function (o) {
  21814. return { coord: this.dataToCoord(o), tickValue: o }
  21815. },
  21816. this
  21817. )
  21818. },
  21819. this
  21820. )
  21821. return i
  21822. }),
  21823. (r.prototype.getViewLabels = function () {
  21824. return pI(this).labels
  21825. }),
  21826. (r.prototype.getLabelModel = function () {
  21827. return this.model.getModel('axisLabel')
  21828. }),
  21829. (r.prototype.getTickModel = function () {
  21830. return this.model.getModel('axisTick')
  21831. }),
  21832. (r.prototype.getBandWidth = function () {
  21833. var t = this._extent,
  21834. e = this.scale.getExtent(),
  21835. n = e[1] - e[0] + (this.onBand ? 1 : 0)
  21836. n === 0 && (n = 1)
  21837. var i = Math.abs(t[1] - t[0])
  21838. return Math.abs(i) / n
  21839. }),
  21840. (r.prototype.calculateCategoryInterval = function () {
  21841. return xI(this)
  21842. }),
  21843. r
  21844. )
  21845. })()
  21846. function ly(r, t) {
  21847. var e = r[1] - r[0],
  21848. n = t,
  21849. i = e / n / 2
  21850. ;(r[0] += i), (r[1] -= i)
  21851. }
  21852. function TI(r, t, e, n) {
  21853. var i = t.length
  21854. if (!r.onBand || e || !i) return
  21855. var a = r.getExtent(),
  21856. o,
  21857. s
  21858. if (i === 1) (t[0].coord = a[0]), (o = t[1] = { coord: a[0] })
  21859. else {
  21860. var l = t[i - 1].tickValue - t[0].tickValue,
  21861. u = (t[i - 1].coord - t[0].coord) / l
  21862. A(t, function (v) {
  21863. v.coord -= u / 2
  21864. })
  21865. var f = r.scale.getExtent()
  21866. ;(s = 1 + f[1] - t[i - 1].tickValue),
  21867. (o = { coord: t[i - 1].coord + u * s }),
  21868. t.push(o)
  21869. }
  21870. var h = a[0] > a[1]
  21871. c(t[0].coord, a[0]) && (n ? (t[0].coord = a[0]) : t.shift()),
  21872. n && c(a[0], t[0].coord) && t.unshift({ coord: a[0] }),
  21873. c(a[1], o.coord) && (n ? (o.coord = a[1]) : t.pop()),
  21874. n && c(o.coord, a[1]) && t.push({ coord: a[1] })
  21875. function c(v, d) {
  21876. return (v = Pt(v)), (d = Pt(d)), h ? v > d : v < d
  21877. }
  21878. }
  21879. var CI = bI,
  21880. Ua = Math.PI * 2,
  21881. An = ur.CMD,
  21882. AI = ['top', 'right', 'bottom', 'left']
  21883. function MI(r, t, e, n, i) {
  21884. var a = e.width,
  21885. o = e.height
  21886. switch (r) {
  21887. case 'top':
  21888. n.set(e.x + a / 2, e.y - t), i.set(0, -1)
  21889. break
  21890. case 'bottom':
  21891. n.set(e.x + a / 2, e.y + o + t), i.set(0, 1)
  21892. break
  21893. case 'left':
  21894. n.set(e.x - t, e.y + o / 2), i.set(-1, 0)
  21895. break
  21896. case 'right':
  21897. n.set(e.x + a + t, e.y + o / 2), i.set(1, 0)
  21898. break
  21899. }
  21900. }
  21901. function DI(r, t, e, n, i, a, o, s, l) {
  21902. ;(o -= r), (s -= t)
  21903. var u = Math.sqrt(o * o + s * s)
  21904. ;(o /= u), (s /= u)
  21905. var f = o * e + r,
  21906. h = s * e + t
  21907. if (Math.abs(n - i) % Ua < 1e-4) return (l[0] = f), (l[1] = h), u - e
  21908. if (a) {
  21909. var c = n
  21910. ;(n = Ir(i)), (i = Ir(c))
  21911. } else (n = Ir(n)), (i = Ir(i))
  21912. n > i && (i += Ua)
  21913. var v = Math.atan2(s, o)
  21914. if ((v < 0 && (v += Ua), (v >= n && v <= i) || (v + Ua >= n && v + Ua <= i)))
  21915. return (l[0] = f), (l[1] = h), u - e
  21916. var d = e * Math.cos(n) + r,
  21917. p = e * Math.sin(n) + t,
  21918. g = e * Math.cos(i) + r,
  21919. m = e * Math.sin(i) + t,
  21920. y = (d - o) * (d - o) + (p - s) * (p - s),
  21921. _ = (g - o) * (g - o) + (m - s) * (m - s)
  21922. return y < _
  21923. ? ((l[0] = d), (l[1] = p), Math.sqrt(y))
  21924. : ((l[0] = g), (l[1] = m), Math.sqrt(_))
  21925. }
  21926. function al(r, t, e, n, i, a, o, s) {
  21927. var l = i - r,
  21928. u = a - t,
  21929. f = e - r,
  21930. h = n - t,
  21931. c = Math.sqrt(f * f + h * h)
  21932. ;(f /= c), (h /= c)
  21933. var v = l * f + u * h,
  21934. d = v / c
  21935. s && (d = Math.min(Math.max(d, 0), 1)), (d *= c)
  21936. var p = (o[0] = r + d * f),
  21937. g = (o[1] = t + d * h)
  21938. return Math.sqrt((p - i) * (p - i) + (g - a) * (g - a))
  21939. }
  21940. function uy(r, t, e, n, i, a, o) {
  21941. e < 0 && ((r = r + e), (e = -e)), n < 0 && ((t = t + n), (n = -n))
  21942. var s = r + e,
  21943. l = t + n,
  21944. u = (o[0] = Math.min(Math.max(i, r), s)),
  21945. f = (o[1] = Math.min(Math.max(a, t), l))
  21946. return Math.sqrt((u - i) * (u - i) + (f - a) * (f - a))
  21947. }
  21948. var Ee = []
  21949. function II(r, t, e) {
  21950. var n = uy(t.x, t.y, t.width, t.height, r.x, r.y, Ee)
  21951. return e.set(Ee[0], Ee[1]), n
  21952. }
  21953. function LI(r, t, e) {
  21954. for (
  21955. var n = 0,
  21956. i = 0,
  21957. a = 0,
  21958. o = 0,
  21959. s,
  21960. l,
  21961. u = 1 / 0,
  21962. f = t.data,
  21963. h = r.x,
  21964. c = r.y,
  21965. v = 0;
  21966. v < f.length;
  21967. ) {
  21968. var d = f[v++]
  21969. v === 1 && ((n = f[v]), (i = f[v + 1]), (a = n), (o = i))
  21970. var p = u
  21971. switch (d) {
  21972. case An.M:
  21973. ;(a = f[v++]), (o = f[v++]), (n = a), (i = o)
  21974. break
  21975. case An.L:
  21976. ;(p = al(n, i, f[v], f[v + 1], h, c, Ee, !0)),
  21977. (n = f[v++]),
  21978. (i = f[v++])
  21979. break
  21980. case An.C:
  21981. ;(p = mc(
  21982. n,
  21983. i,
  21984. f[v++],
  21985. f[v++],
  21986. f[v++],
  21987. f[v++],
  21988. f[v],
  21989. f[v + 1],
  21990. h,
  21991. c,
  21992. Ee
  21993. )),
  21994. (n = f[v++]),
  21995. (i = f[v++])
  21996. break
  21997. case An.Q:
  21998. ;(p = Sc(n, i, f[v++], f[v++], f[v], f[v + 1], h, c, Ee)),
  21999. (n = f[v++]),
  22000. (i = f[v++])
  22001. break
  22002. case An.A:
  22003. var g = f[v++],
  22004. m = f[v++],
  22005. y = f[v++],
  22006. _ = f[v++],
  22007. S = f[v++],
  22008. w = f[v++]
  22009. v += 1
  22010. var x = !!(1 - f[v++])
  22011. ;(s = Math.cos(S) * y + g),
  22012. (l = Math.sin(S) * _ + m),
  22013. v <= 1 && ((a = s), (o = l))
  22014. var b = ((h - g) * _) / y + g
  22015. ;(p = DI(g, m, _, S, S + w, x, b, c, Ee)),
  22016. (n = Math.cos(S + w) * y + g),
  22017. (i = Math.sin(S + w) * _ + m)
  22018. break
  22019. case An.R:
  22020. ;(a = n = f[v++]), (o = i = f[v++])
  22021. var T = f[v++],
  22022. C = f[v++]
  22023. p = uy(a, o, T, C, h, c, Ee)
  22024. break
  22025. case An.Z:
  22026. ;(p = al(n, i, a, o, h, c, Ee, !0)), (n = a), (i = o)
  22027. break
  22028. }
  22029. p < u && ((u = p), e.set(Ee[0], Ee[1]))
  22030. }
  22031. return u
  22032. }
  22033. var Oe = new Z(),
  22034. gt = new Z(),
  22035. Tt = new Z(),
  22036. je = new Z(),
  22037. tr = new Z()
  22038. function fy(r, t) {
  22039. if (!!r) {
  22040. var e = r.getTextGuideLine(),
  22041. n = r.getTextContent()
  22042. if (!!(n && e)) {
  22043. var i = r.textGuideLineConfig || {},
  22044. a = [
  22045. [0, 0],
  22046. [0, 0],
  22047. [0, 0]
  22048. ],
  22049. o = i.candidates || AI,
  22050. s = n.getBoundingRect().clone()
  22051. s.applyTransform(n.getComputedTransform())
  22052. var l = 1 / 0,
  22053. u = i.anchor,
  22054. f = r.getComputedTransform(),
  22055. h = f && Lo([], f),
  22056. c = t.get('length2') || 0
  22057. u && Tt.copy(u)
  22058. for (var v = 0; v < o.length; v++) {
  22059. var d = o[v]
  22060. MI(d, 0, s, Oe, je), Z.scaleAndAdd(gt, Oe, je, c), gt.transform(h)
  22061. var p = r.getBoundingRect(),
  22062. g = u
  22063. ? u.distance(gt)
  22064. : r instanceof st
  22065. ? LI(gt, r.path, Tt)
  22066. : II(gt, p, Tt)
  22067. g < l &&
  22068. ((l = g),
  22069. gt.transform(f),
  22070. Tt.transform(f),
  22071. Tt.toArray(a[0]),
  22072. gt.toArray(a[1]),
  22073. Oe.toArray(a[2]))
  22074. }
  22075. hy(a, t.get('minTurnAngle')), e.setShape({ points: a })
  22076. }
  22077. }
  22078. }
  22079. var ol = [],
  22080. Jt = new Z()
  22081. function hy(r, t) {
  22082. if (t <= 180 && t > 0) {
  22083. ;(t = (t / 180) * Math.PI),
  22084. Oe.fromArray(r[0]),
  22085. gt.fromArray(r[1]),
  22086. Tt.fromArray(r[2]),
  22087. Z.sub(je, Oe, gt),
  22088. Z.sub(tr, Tt, gt)
  22089. var e = je.len(),
  22090. n = tr.len()
  22091. if (!(e < 0.001 || n < 0.001)) {
  22092. je.scale(1 / e), tr.scale(1 / n)
  22093. var i = je.dot(tr),
  22094. a = Math.cos(t)
  22095. if (a < i) {
  22096. var o = al(gt.x, gt.y, Tt.x, Tt.y, Oe.x, Oe.y, ol, !1)
  22097. Jt.fromArray(ol), Jt.scaleAndAdd(tr, o / Math.tan(Math.PI - t))
  22098. var s =
  22099. Tt.x !== gt.x
  22100. ? (Jt.x - gt.x) / (Tt.x - gt.x)
  22101. : (Jt.y - gt.y) / (Tt.y - gt.y)
  22102. if (isNaN(s)) return
  22103. s < 0 ? Z.copy(Jt, gt) : s > 1 && Z.copy(Jt, Tt), Jt.toArray(r[1])
  22104. }
  22105. }
  22106. }
  22107. }
  22108. function PI(r, t, e) {
  22109. if (e <= 180 && e > 0) {
  22110. ;(e = (e / 180) * Math.PI),
  22111. Oe.fromArray(r[0]),
  22112. gt.fromArray(r[1]),
  22113. Tt.fromArray(r[2]),
  22114. Z.sub(je, gt, Oe),
  22115. Z.sub(tr, Tt, gt)
  22116. var n = je.len(),
  22117. i = tr.len()
  22118. if (!(n < 0.001 || i < 0.001)) {
  22119. je.scale(1 / n), tr.scale(1 / i)
  22120. var a = je.dot(t),
  22121. o = Math.cos(e)
  22122. if (a < o) {
  22123. var s = al(gt.x, gt.y, Tt.x, Tt.y, Oe.x, Oe.y, ol, !1)
  22124. Jt.fromArray(ol)
  22125. var l = Math.PI / 2,
  22126. u = Math.acos(tr.dot(t)),
  22127. f = l + u - e
  22128. if (f >= l) Z.copy(Jt, Tt)
  22129. else {
  22130. Jt.scaleAndAdd(tr, s / Math.tan(Math.PI / 2 - f))
  22131. var h =
  22132. Tt.x !== gt.x
  22133. ? (Jt.x - gt.x) / (Tt.x - gt.x)
  22134. : (Jt.y - gt.y) / (Tt.y - gt.y)
  22135. if (isNaN(h)) return
  22136. h < 0 ? Z.copy(Jt, gt) : h > 1 && Z.copy(Jt, Tt)
  22137. }
  22138. Jt.toArray(r[1])
  22139. }
  22140. }
  22141. }
  22142. }
  22143. function vy(r, t, e, n) {
  22144. var i = e === 'normal',
  22145. a = i ? r : r.ensureState(e)
  22146. a.ignore = t
  22147. var o = n.get('smooth')
  22148. o && o === !0 && (o = 0.3),
  22149. (a.shape = a.shape || {}),
  22150. o > 0 && (a.shape.smooth = o)
  22151. var s = n.getModel('lineStyle').getLineStyle()
  22152. i ? r.useStyle(s) : (a.style = s)
  22153. }
  22154. function RI(r, t) {
  22155. var e = t.smooth,
  22156. n = t.points
  22157. if (!!n)
  22158. if ((r.moveTo(n[0][0], n[0][1]), e > 0 && n.length >= 3)) {
  22159. var i = Bl(n[0], n[1]),
  22160. a = Bl(n[1], n[2])
  22161. if (!i || !a) {
  22162. r.lineTo(n[1][0], n[1][1]), r.lineTo(n[2][0], n[2][1])
  22163. return
  22164. }
  22165. var o = Math.min(i, a) * e,
  22166. s = lo([], n[1], n[0], o / i),
  22167. l = lo([], n[1], n[2], o / a),
  22168. u = lo([], s, l, 0.5)
  22169. r.bezierCurveTo(s[0], s[1], s[0], s[1], u[0], u[1]),
  22170. r.bezierCurveTo(l[0], l[1], l[0], l[1], n[2][0], n[2][1])
  22171. } else for (var f = 1; f < n.length; f++) r.lineTo(n[f][0], n[f][1])
  22172. }
  22173. function cy(r, t, e) {
  22174. var n = r.getTextGuideLine(),
  22175. i = r.getTextContent()
  22176. if (!i) {
  22177. n && r.removeTextGuideLine()
  22178. return
  22179. }
  22180. for (
  22181. var a = t.normal, o = a.get('show'), s = i.ignore, l = 0;
  22182. l < Yo.length;
  22183. l++
  22184. ) {
  22185. var u = Yo[l],
  22186. f = t[u],
  22187. h = u === 'normal'
  22188. if (f) {
  22189. var c = f.get('show'),
  22190. v = h ? s : ht(i.states[u] && i.states[u].ignore, s)
  22191. if (v || !ht(c, o)) {
  22192. var d = h ? n : n && n.states[u]
  22193. d && (d.ignore = !0)
  22194. continue
  22195. }
  22196. n ||
  22197. ((n = new ai()),
  22198. r.setTextGuideLine(n),
  22199. !h && (s || !o) && vy(n, !0, 'normal', t.normal),
  22200. r.stateProxy && (n.stateProxy = r.stateProxy)),
  22201. vy(n, !1, u, f)
  22202. }
  22203. }
  22204. if (n) {
  22205. j(n.style, e), (n.style.fill = null)
  22206. var p = a.get('showAbove'),
  22207. g = (r.textGuideLineConfig = r.textGuideLineConfig || {})
  22208. ;(g.showAbove = p || !1), (n.buildPath = RI)
  22209. }
  22210. }
  22211. function dy(r, t) {
  22212. t = t || 'labelLine'
  22213. for (var e = { normal: r.getModel(t) }, n = 0; n < pe.length; n++) {
  22214. var i = pe[n]
  22215. e[i] = r.getModel([i, t])
  22216. }
  22217. return e
  22218. }
  22219. function py(r) {
  22220. for (var t = [], e = 0; e < r.length; e++) {
  22221. var n = r[e]
  22222. if (!n.defaultAttr.ignore) {
  22223. var i = n.label,
  22224. a = i.getComputedTransform(),
  22225. o = i.getBoundingRect(),
  22226. s = !a || (a[1] < 1e-5 && a[2] < 1e-5),
  22227. l = i.style.margin || 0,
  22228. u = o.clone()
  22229. u.applyTransform(a),
  22230. (u.x -= l / 2),
  22231. (u.y -= l / 2),
  22232. (u.width += l),
  22233. (u.height += l)
  22234. var f = s ? new rs(o, a) : null
  22235. t.push({
  22236. label: i,
  22237. labelLine: n.labelLine,
  22238. rect: u,
  22239. localRect: o,
  22240. obb: f,
  22241. priority: n.priority,
  22242. defaultAttr: n.defaultAttr,
  22243. layoutOption: n.computedLayoutOption,
  22244. axisAligned: s,
  22245. transform: a
  22246. })
  22247. }
  22248. }
  22249. return t
  22250. }
  22251. function gy(r, t, e, n, i, a) {
  22252. var o = r.length
  22253. if (o < 2) return
  22254. r.sort(function (T, C) {
  22255. return T.rect[t] - C.rect[t]
  22256. })
  22257. for (var s = 0, l, u = !1, f = 0, h = 0; h < o; h++) {
  22258. var c = r[h],
  22259. v = c.rect
  22260. ;(l = v[t] - s), l < 0 && ((v[t] -= l), (c.label[t] -= l), (u = !0))
  22261. var d = Math.max(-l, 0)
  22262. ;(f += d), (s = v[t] + v[e])
  22263. }
  22264. f > 0 && a && w(-f / o, 0, o)
  22265. var p = r[0],
  22266. g = r[o - 1],
  22267. m,
  22268. y
  22269. _(),
  22270. m < 0 && x(-m, 0.8),
  22271. y < 0 && x(y, 0.8),
  22272. _(),
  22273. S(m, y, 1),
  22274. S(y, m, -1),
  22275. _(),
  22276. m < 0 && b(-m),
  22277. y < 0 && b(y)
  22278. function _() {
  22279. ;(m = p.rect[t] - n), (y = i - g.rect[t] - g.rect[e])
  22280. }
  22281. function S(T, C, M) {
  22282. if (T < 0) {
  22283. var D = Math.min(C, -T)
  22284. if (D > 0) {
  22285. w(D * M, 0, o)
  22286. var I = D + T
  22287. I < 0 && x(-I * M, 1)
  22288. } else x(-T * M, 1)
  22289. }
  22290. }
  22291. function w(T, C, M) {
  22292. T !== 0 && (u = !0)
  22293. for (var D = C; D < M; D++) {
  22294. var I = r[D],
  22295. L = I.rect
  22296. ;(L[t] += T), (I.label[t] += T)
  22297. }
  22298. }
  22299. function x(T, C) {
  22300. for (var M = [], D = 0, I = 1; I < o; I++) {
  22301. var L = r[I - 1].rect,
  22302. P = Math.max(r[I].rect[t] - L[t] - L[e], 0)
  22303. M.push(P), (D += P)
  22304. }
  22305. if (!!D) {
  22306. var R = Math.min(Math.abs(T) / D, C)
  22307. if (T > 0)
  22308. for (var I = 0; I < o - 1; I++) {
  22309. var O = M[I] * R
  22310. w(O, 0, I + 1)
  22311. }
  22312. else
  22313. for (var I = o - 1; I > 0; I--) {
  22314. var O = M[I - 1] * R
  22315. w(-O, I, o)
  22316. }
  22317. }
  22318. }
  22319. function b(T) {
  22320. var C = T < 0 ? -1 : 1
  22321. T = Math.abs(T)
  22322. for (var M = Math.ceil(T / (o - 1)), D = 0; D < o - 1; D++)
  22323. if ((C > 0 ? w(M, 0, D + 1) : w(-M, o - D - 1, o), (T -= M), T <= 0))
  22324. return
  22325. }
  22326. return u
  22327. }
  22328. function EI(r, t, e, n) {
  22329. return gy(r, 'x', 'width', t, e, n)
  22330. }
  22331. function my(r, t, e, n) {
  22332. return gy(r, 'y', 'height', t, e, n)
  22333. }
  22334. function yy(r) {
  22335. var t = []
  22336. r.sort(function (p, g) {
  22337. return g.priority - p.priority
  22338. })
  22339. var e = new vt(0, 0, 0, 0)
  22340. function n(p) {
  22341. if (!p.ignore) {
  22342. var g = p.ensureState('emphasis')
  22343. g.ignore == null && (g.ignore = !1)
  22344. }
  22345. p.ignore = !0
  22346. }
  22347. for (var i = 0; i < r.length; i++) {
  22348. var a = r[i],
  22349. o = a.axisAligned,
  22350. s = a.localRect,
  22351. l = a.transform,
  22352. u = a.label,
  22353. f = a.labelLine
  22354. e.copy(a.rect),
  22355. (e.width -= 0.1),
  22356. (e.height -= 0.1),
  22357. (e.x += 0.05),
  22358. (e.y += 0.05)
  22359. for (var h = a.obb, c = !1, v = 0; v < t.length; v++) {
  22360. var d = t[v]
  22361. if (!!e.intersect(d.rect)) {
  22362. if (o && d.axisAligned) {
  22363. c = !0
  22364. break
  22365. }
  22366. if (
  22367. (d.obb || (d.obb = new rs(d.localRect, d.transform)),
  22368. h || (h = new rs(s, l)),
  22369. h.intersect(d.obb))
  22370. ) {
  22371. c = !0
  22372. break
  22373. }
  22374. }
  22375. }
  22376. c
  22377. ? (n(u), f && n(f))
  22378. : (u.attr('ignore', a.defaultAttr.ignore),
  22379. f && f.attr('ignore', a.defaultAttr.labelGuideIgnore),
  22380. t.push(a))
  22381. }
  22382. }
  22383. function OI(r) {
  22384. if (r) {
  22385. for (var t = [], e = 0; e < r.length; e++) t.push(r[e].slice())
  22386. return t
  22387. }
  22388. }
  22389. function kI(r, t) {
  22390. var e = r.label,
  22391. n = t && t.getTextGuideLine()
  22392. return {
  22393. dataIndex: r.dataIndex,
  22394. dataType: r.dataType,
  22395. seriesIndex: r.seriesModel.seriesIndex,
  22396. text: r.label.style.text,
  22397. rect: r.hostRect,
  22398. labelRect: r.rect,
  22399. align: e.style.align,
  22400. verticalAlign: e.style.verticalAlign,
  22401. labelLinePoints: OI(n && n.shape.points)
  22402. }
  22403. }
  22404. var _y = ['align', 'verticalAlign', 'width', 'height', 'fontSize'],
  22405. le = new Wi(),
  22406. Ah = wt(),
  22407. BI = wt()
  22408. function sl(r, t, e) {
  22409. for (var n = 0; n < e.length; n++) {
  22410. var i = e[n]
  22411. t[i] != null && (r[i] = t[i])
  22412. }
  22413. }
  22414. var ll = ['x', 'y', 'rotation'],
  22415. NI = (function () {
  22416. function r() {
  22417. ;(this._labelList = []), (this._chartViewList = [])
  22418. }
  22419. return (
  22420. (r.prototype.clearLabels = function () {
  22421. ;(this._labelList = []), (this._chartViewList = [])
  22422. }),
  22423. (r.prototype._addLabel = function (t, e, n, i, a) {
  22424. var o = i.style,
  22425. s = i.__hostTarget,
  22426. l = s.textConfig || {},
  22427. u = i.getComputedTransform(),
  22428. f = i.getBoundingRect().plain()
  22429. vt.applyTransform(f, f, u),
  22430. u
  22431. ? le.setLocalTransform(u)
  22432. : ((le.x = le.y = le.rotation = le.originX = le.originY = 0),
  22433. (le.scaleX = le.scaleY = 1))
  22434. var h = i.__hostTarget,
  22435. c
  22436. if (h) {
  22437. c = h.getBoundingRect().plain()
  22438. var v = h.getComputedTransform()
  22439. vt.applyTransform(c, c, v)
  22440. }
  22441. var d = c && h.getTextGuideLine()
  22442. this._labelList.push({
  22443. label: i,
  22444. labelLine: d,
  22445. seriesModel: n,
  22446. dataIndex: t,
  22447. dataType: e,
  22448. layoutOption: a,
  22449. computedLayoutOption: null,
  22450. rect: f,
  22451. hostRect: c,
  22452. priority: c ? c.width * c.height : 0,
  22453. defaultAttr: {
  22454. ignore: i.ignore,
  22455. labelGuideIgnore: d && d.ignore,
  22456. x: le.x,
  22457. y: le.y,
  22458. scaleX: le.scaleX,
  22459. scaleY: le.scaleY,
  22460. rotation: le.rotation,
  22461. style: {
  22462. x: o.x,
  22463. y: o.y,
  22464. align: o.align,
  22465. verticalAlign: o.verticalAlign,
  22466. width: o.width,
  22467. height: o.height,
  22468. fontSize: o.fontSize
  22469. },
  22470. cursor: i.cursor,
  22471. attachedPos: l.position,
  22472. attachedRot: l.rotation
  22473. }
  22474. })
  22475. }),
  22476. (r.prototype.addLabelsOfSeries = function (t) {
  22477. var e = this
  22478. this._chartViewList.push(t)
  22479. var n = t.__model,
  22480. i = n.get('labelLayout')
  22481. !(Q(i) || xt(i).length) ||
  22482. t.group.traverse(function (a) {
  22483. if (a.ignore) return !0
  22484. var o = a.getTextContent(),
  22485. s = ct(a)
  22486. o &&
  22487. !o.disableLabelLayout &&
  22488. e._addLabel(s.dataIndex, s.dataType, n, o, i)
  22489. })
  22490. }),
  22491. (r.prototype.updateLayoutConfig = function (t) {
  22492. var e = t.getWidth(),
  22493. n = t.getHeight()
  22494. function i(_, S) {
  22495. return function () {
  22496. fy(_, S)
  22497. }
  22498. }
  22499. for (var a = 0; a < this._labelList.length; a++) {
  22500. var o = this._labelList[a],
  22501. s = o.label,
  22502. l = s.__hostTarget,
  22503. u = o.defaultAttr,
  22504. f = void 0
  22505. Q(o.layoutOption)
  22506. ? (f = o.layoutOption(kI(o, l)))
  22507. : (f = o.layoutOption),
  22508. (f = f || {}),
  22509. (o.computedLayoutOption = f)
  22510. var h = Math.PI / 180
  22511. l &&
  22512. l.setTextConfig({
  22513. local: !1,
  22514. position: f.x != null || f.y != null ? null : u.attachedPos,
  22515. rotation: f.rotate != null ? f.rotate * h : u.attachedRot,
  22516. offset: [f.dx || 0, f.dy || 0]
  22517. })
  22518. var c = !1
  22519. if (
  22520. (f.x != null
  22521. ? ((s.x = yt(f.x, e)), s.setStyle('x', 0), (c = !0))
  22522. : ((s.x = u.x), s.setStyle('x', u.style.x)),
  22523. f.y != null
  22524. ? ((s.y = yt(f.y, n)), s.setStyle('y', 0), (c = !0))
  22525. : ((s.y = u.y), s.setStyle('y', u.style.y)),
  22526. f.labelLinePoints)
  22527. ) {
  22528. var v = l.getTextGuideLine()
  22529. v && (v.setShape({ points: f.labelLinePoints }), (c = !1))
  22530. }
  22531. var d = Ah(s)
  22532. ;(d.needsUpdateLabelLine = c),
  22533. (s.rotation = f.rotate != null ? f.rotate * h : u.rotation),
  22534. (s.scaleX = u.scaleX),
  22535. (s.scaleY = u.scaleY)
  22536. for (var p = 0; p < _y.length; p++) {
  22537. var g = _y[p]
  22538. s.setStyle(g, f[g] != null ? f[g] : u.style[g])
  22539. }
  22540. if (f.draggable) {
  22541. if (((s.draggable = !0), (s.cursor = 'move'), l)) {
  22542. var m = o.seriesModel
  22543. if (o.dataIndex != null) {
  22544. var y = o.seriesModel.getData(o.dataType)
  22545. m = y.getItemModel(o.dataIndex)
  22546. }
  22547. s.on('drag', i(l, m.getModel('labelLine')))
  22548. }
  22549. } else s.off('drag'), (s.cursor = u.cursor)
  22550. }
  22551. }),
  22552. (r.prototype.layout = function (t) {
  22553. var e = t.getWidth(),
  22554. n = t.getHeight(),
  22555. i = py(this._labelList),
  22556. a = Lt(i, function (l) {
  22557. return l.layoutOption.moveOverlap === 'shiftX'
  22558. }),
  22559. o = Lt(i, function (l) {
  22560. return l.layoutOption.moveOverlap === 'shiftY'
  22561. })
  22562. EI(a, 0, e), my(o, 0, n)
  22563. var s = Lt(i, function (l) {
  22564. return l.layoutOption.hideOverlap
  22565. })
  22566. yy(s)
  22567. }),
  22568. (r.prototype.processLabelsOverall = function () {
  22569. var t = this
  22570. A(this._chartViewList, function (e) {
  22571. var n = e.__model,
  22572. i = e.ignoreLabelLineUpdate,
  22573. a = n.isAnimationEnabled()
  22574. e.group.traverse(function (o) {
  22575. if (o.ignore && !o.forceLabelAnimation) return !0
  22576. var s = !i,
  22577. l = o.getTextContent()
  22578. !s && l && (s = Ah(l).needsUpdateLabelLine),
  22579. s && t._updateLabelLine(o, n),
  22580. a && t._animateLabels(o, n)
  22581. })
  22582. })
  22583. }),
  22584. (r.prototype._updateLabelLine = function (t, e) {
  22585. var n = t.getTextContent(),
  22586. i = ct(t),
  22587. a = i.dataIndex
  22588. if (n && a != null) {
  22589. var o = e.getData(i.dataType),
  22590. s = o.getItemModel(a),
  22591. l = {},
  22592. u = o.getItemVisual(a, 'style'),
  22593. f = o.getVisual('drawType')
  22594. l.stroke = u[f]
  22595. var h = s.getModel('labelLine')
  22596. cy(t, dy(s), l), fy(t, h)
  22597. }
  22598. }),
  22599. (r.prototype._animateLabels = function (t, e) {
  22600. var n = t.getTextContent(),
  22601. i = t.getTextGuideLine()
  22602. if (
  22603. n &&
  22604. (t.forceLabelAnimation ||
  22605. (!n.ignore && !n.invisible && !t.disableLabelAnimation && !oi(t)))
  22606. ) {
  22607. var a = Ah(n),
  22608. o = a.oldLayout,
  22609. s = ct(t),
  22610. l = s.dataIndex,
  22611. u = { x: n.x, y: n.y, rotation: n.rotation },
  22612. f = e.getData(s.dataType)
  22613. if (o) {
  22614. n.attr(o)
  22615. var c = t.prevStates
  22616. c &&
  22617. (ot(c, 'select') >= 0 && n.attr(a.oldLayoutSelect),
  22618. ot(c, 'emphasis') >= 0 && n.attr(a.oldLayoutEmphasis)),
  22619. kt(n, u, e, l)
  22620. } else if ((n.attr(u), !si(n).valueAnimation)) {
  22621. var h = ht(n.style.opacity, 1)
  22622. ;(n.style.opacity = 0), Wt(n, { style: { opacity: h } }, e, l)
  22623. }
  22624. if (((a.oldLayout = u), n.states.select)) {
  22625. var v = (a.oldLayoutSelect = {})
  22626. sl(v, u, ll), sl(v, n.states.select, ll)
  22627. }
  22628. if (n.states.emphasis) {
  22629. var d = (a.oldLayoutEmphasis = {})
  22630. sl(d, u, ll), sl(d, n.states.emphasis, ll)
  22631. }
  22632. NC(n, l, f, e, e)
  22633. }
  22634. if (i && !i.ignore && !i.invisible) {
  22635. var a = BI(i),
  22636. o = a.oldLayout,
  22637. p = { points: i.shape.points }
  22638. o
  22639. ? (i.attr({ shape: o }), kt(i, { shape: p }, e))
  22640. : (i.setShape(p),
  22641. (i.style.strokePercent = 0),
  22642. Wt(i, { style: { strokePercent: 1 } }, e)),
  22643. (a.oldLayout = p)
  22644. }
  22645. }),
  22646. r
  22647. )
  22648. })(),
  22649. FI = NI,
  22650. Mh = wt()
  22651. function zI(r) {
  22652. r.registerUpdateLifecycle('series:beforeupdate', function (t, e, n) {
  22653. var i = Mh(e).labelManager
  22654. i || (i = Mh(e).labelManager = new FI()), i.clearLabels()
  22655. }),
  22656. r.registerUpdateLifecycle('series:layoutlabels', function (t, e, n) {
  22657. var i = Mh(e).labelManager
  22658. n.updatedSeries.forEach(function (a) {
  22659. i.addLabelsOfSeries(e.getViewOfSeriesModel(a))
  22660. }),
  22661. i.updateLayoutConfig(e),
  22662. i.layout(e),
  22663. i.processLabelsOverall()
  22664. })
  22665. }
  22666. var VI = (function (r) {
  22667. B(t, r)
  22668. function t() {
  22669. var e = (r !== null && r.apply(this, arguments)) || this
  22670. return (e.type = t.type), (e.hasSymbolVisual = !0), e
  22671. }
  22672. return (
  22673. (t.prototype.getInitialData = function (e) {
  22674. return mh(null, this, { useEncodeDefaulter: !0 })
  22675. }),
  22676. (t.prototype.getLegendIcon = function (e) {
  22677. var n = new At(),
  22678. i = Or(
  22679. 'line',
  22680. 0,
  22681. e.itemHeight / 2,
  22682. e.itemWidth,
  22683. 0,
  22684. e.lineStyle.stroke,
  22685. !1
  22686. )
  22687. n.add(i), i.setStyle(e.lineStyle)
  22688. var a = this.getData().getVisual('symbol'),
  22689. o = this.getData().getVisual('symbolRotate'),
  22690. s = a === 'none' ? 'circle' : a,
  22691. l = e.itemHeight * 0.8,
  22692. u = Or(
  22693. s,
  22694. (e.itemWidth - l) / 2,
  22695. (e.itemHeight - l) / 2,
  22696. l,
  22697. l,
  22698. e.itemStyle.fill
  22699. )
  22700. n.add(u), u.setStyle(e.itemStyle)
  22701. var f = e.iconRotate === 'inherit' ? o : e.iconRotate || 0
  22702. return (
  22703. (u.rotation = (f * Math.PI) / 180),
  22704. u.setOrigin([e.itemWidth / 2, e.itemHeight / 2]),
  22705. s.indexOf('empty') > -1 &&
  22706. ((u.style.stroke = u.style.fill),
  22707. (u.style.fill = '#fff'),
  22708. (u.style.lineWidth = 2)),
  22709. n
  22710. )
  22711. }),
  22712. (t.type = 'series.line'),
  22713. (t.dependencies = ['grid', 'polar']),
  22714. (t.defaultOption = {
  22715. z: 3,
  22716. coordinateSystem: 'cartesian2d',
  22717. legendHoverLink: !0,
  22718. clip: !0,
  22719. label: { position: 'top' },
  22720. endLabel: { show: !1, valueAnimation: !0, distance: 8 },
  22721. lineStyle: { width: 2, type: 'solid' },
  22722. emphasis: { scale: !0 },
  22723. step: !1,
  22724. smooth: !1,
  22725. smoothMonotone: null,
  22726. symbol: 'emptyCircle',
  22727. symbolSize: 4,
  22728. symbolRotate: null,
  22729. showSymbol: !0,
  22730. showAllSymbol: 'auto',
  22731. connectNulls: !1,
  22732. sampling: 'none',
  22733. animationEasing: 'linear',
  22734. progressive: 0,
  22735. hoverLayerThreshold: 1 / 0,
  22736. universalTransition: { divideShape: 'clone' },
  22737. triggerLineEvent: !1
  22738. }),
  22739. t
  22740. )
  22741. })(Er),
  22742. GI = VI
  22743. function Dh(r, t) {
  22744. var e = r.mapDimensionsAll('defaultedLabel'),
  22745. n = e.length
  22746. if (n === 1) {
  22747. var i = pi(r, t, e[0])
  22748. return i != null ? i + '' : null
  22749. } else if (n) {
  22750. for (var a = [], o = 0; o < e.length; o++) a.push(pi(r, t, e[o]))
  22751. return a.join(' ')
  22752. }
  22753. }
  22754. function Sy(r, t) {
  22755. var e = r.mapDimensionsAll('defaultedLabel')
  22756. if (!z(t)) return t + ''
  22757. for (var n = [], i = 0; i < e.length; i++) {
  22758. var a = r.getDimensionIndex(e[i])
  22759. a >= 0 && n.push(t[a])
  22760. }
  22761. return n.join(' ')
  22762. }
  22763. var HI = (function (r) {
  22764. B(t, r)
  22765. function t(e, n, i, a) {
  22766. var o = r.call(this) || this
  22767. return o.updateData(e, n, i, a), o
  22768. }
  22769. return (
  22770. (t.prototype._createSymbol = function (e, n, i, a, o) {
  22771. this.removeAll()
  22772. var s = Or(e, -1, -1, 2, 2, null, o)
  22773. s.attr({ z2: 100, culling: !0, scaleX: a[0] / 2, scaleY: a[1] / 2 }),
  22774. (s.drift = WI),
  22775. (this._symbolType = e),
  22776. this.add(s)
  22777. }),
  22778. (t.prototype.stopSymbolAnimation = function (e) {
  22779. this.childAt(0).stopAnimation(null, e)
  22780. }),
  22781. (t.prototype.getSymbolType = function () {
  22782. return this._symbolType
  22783. }),
  22784. (t.prototype.getSymbolPath = function () {
  22785. return this.childAt(0)
  22786. }),
  22787. (t.prototype.highlight = function () {
  22788. ei(this.childAt(0))
  22789. }),
  22790. (t.prototype.downplay = function () {
  22791. ri(this.childAt(0))
  22792. }),
  22793. (t.prototype.setZ = function (e, n) {
  22794. var i = this.childAt(0)
  22795. ;(i.zlevel = e), (i.z = n)
  22796. }),
  22797. (t.prototype.setDraggable = function (e, n) {
  22798. var i = this.childAt(0)
  22799. ;(i.draggable = e), (i.cursor = !n && e ? 'move' : i.cursor)
  22800. }),
  22801. (t.prototype.updateData = function (e, n, i, a) {
  22802. this.silent = !1
  22803. var o = e.getItemVisual(n, 'symbol') || 'circle',
  22804. s = e.hostModel,
  22805. l = t.getSymbolSize(e, n),
  22806. u = o !== this._symbolType,
  22807. f = a && a.disableAnimation
  22808. if (u) {
  22809. var h = e.getItemVisual(n, 'symbolKeepAspect')
  22810. this._createSymbol(o, e, n, l, h)
  22811. } else {
  22812. var c = this.childAt(0)
  22813. c.silent = !1
  22814. var v = { scaleX: l[0] / 2, scaleY: l[1] / 2 }
  22815. f ? c.attr(v) : kt(c, v, s, n), lf(c)
  22816. }
  22817. if ((this._updateCommon(e, n, l, i, a), u)) {
  22818. var c = this.childAt(0)
  22819. if (!f) {
  22820. var v = {
  22821. scaleX: this._sizeX,
  22822. scaleY: this._sizeY,
  22823. style: { opacity: c.style.opacity }
  22824. }
  22825. ;(c.scaleX = c.scaleY = 0), (c.style.opacity = 0), Wt(c, v, s, n)
  22826. }
  22827. }
  22828. f && this.childAt(0).stopAnimation('leave')
  22829. }),
  22830. (t.prototype._updateCommon = function (e, n, i, a, o) {
  22831. var s = this.childAt(0),
  22832. l = e.hostModel,
  22833. u,
  22834. f,
  22835. h,
  22836. c,
  22837. v,
  22838. d,
  22839. p,
  22840. g,
  22841. m
  22842. if (
  22843. (a &&
  22844. ((u = a.emphasisItemStyle),
  22845. (f = a.blurItemStyle),
  22846. (h = a.selectItemStyle),
  22847. (c = a.focus),
  22848. (v = a.blurScope),
  22849. (p = a.labelStatesModels),
  22850. (g = a.hoverScale),
  22851. (m = a.cursorStyle),
  22852. (d = a.emphasisDisabled)),
  22853. !a || e.hasItemOption)
  22854. ) {
  22855. var y = a && a.itemModel ? a.itemModel : e.getItemModel(n),
  22856. _ = y.getModel('emphasis')
  22857. ;(u = _.getModel('itemStyle').getItemStyle()),
  22858. (h = y.getModel(['select', 'itemStyle']).getItemStyle()),
  22859. (f = y.getModel(['blur', 'itemStyle']).getItemStyle()),
  22860. (c = _.get('focus')),
  22861. (v = _.get('blurScope')),
  22862. (d = _.get('disabled')),
  22863. (p = va(y)),
  22864. (g = _.getShallow('scale')),
  22865. (m = y.getShallow('cursor'))
  22866. }
  22867. var S = e.getItemVisual(n, 'symbolRotate')
  22868. s.attr('rotation', ((S || 0) * Math.PI) / 180 || 0)
  22869. var w = Rm(e.getItemVisual(n, 'symbolOffset'), i)
  22870. w && ((s.x = w[0]), (s.y = w[1])), m && s.attr('cursor', m)
  22871. var x = e.getItemVisual(n, 'style'),
  22872. b = x.fill
  22873. if (s instanceof un) {
  22874. var T = s.style
  22875. s.useStyle(
  22876. N(
  22877. {
  22878. image: T.image,
  22879. x: T.x,
  22880. y: T.y,
  22881. width: T.width,
  22882. height: T.height
  22883. },
  22884. x
  22885. )
  22886. )
  22887. } else
  22888. s.__isEmptyBrush ? s.useStyle(N({}, x)) : s.useStyle(x),
  22889. (s.style.decal = null),
  22890. s.setColor(b, o && o.symbolInnerColor),
  22891. (s.style.strokeNoScale = !0)
  22892. var C = e.getItemVisual(n, 'liftZ'),
  22893. M = this._z2
  22894. C != null
  22895. ? M == null && ((this._z2 = s.z2), (s.z2 += C))
  22896. : M != null && ((s.z2 = M), (this._z2 = null))
  22897. var D = o && o.useNameLabel
  22898. ha(s, p, {
  22899. labelFetcher: l,
  22900. labelDataIndex: n,
  22901. defaultText: I,
  22902. inheritColor: b,
  22903. defaultOpacity: x.opacity
  22904. })
  22905. function I(R) {
  22906. return D ? e.getName(R) : Dh(e, R)
  22907. }
  22908. ;(this._sizeX = i[0] / 2), (this._sizeY = i[1] / 2)
  22909. var L = s.ensureState('emphasis')
  22910. if (
  22911. ((L.style = u),
  22912. (s.ensureState('select').style = h),
  22913. (s.ensureState('blur').style = f),
  22914. g)
  22915. ) {
  22916. var P = Math.max(dt(g) ? g : 1.1, 3 / this._sizeY)
  22917. ;(L.scaleX = this._sizeX * P), (L.scaleY = this._sizeY * P)
  22918. }
  22919. this.setSymbolScale(1), aa(this, c, v, d)
  22920. }),
  22921. (t.prototype.setSymbolScale = function (e) {
  22922. this.scaleX = this.scaleY = e
  22923. }),
  22924. (t.prototype.fadeOut = function (e, n, i) {
  22925. var a = this.childAt(0),
  22926. o = ct(this).dataIndex,
  22927. s = i && i.animation
  22928. if (((this.silent = a.silent = !0), i && i.fadeLabel)) {
  22929. var l = a.getTextContent()
  22930. l &&
  22931. is(l, { style: { opacity: 0 } }, n, {
  22932. dataIndex: o,
  22933. removeOpt: s,
  22934. cb: function () {
  22935. a.removeTextContent()
  22936. }
  22937. })
  22938. } else a.removeTextContent()
  22939. is(a, { style: { opacity: 0 }, scaleX: 0, scaleY: 0 }, n, {
  22940. dataIndex: o,
  22941. cb: e,
  22942. removeOpt: s
  22943. })
  22944. }),
  22945. (t.getSymbolSize = function (e, n) {
  22946. return gD(e.getItemVisual(n, 'symbolSize'))
  22947. }),
  22948. t
  22949. )
  22950. })(At)
  22951. function WI(r, t) {
  22952. this.parent.drift(r, t)
  22953. }
  22954. var Ih = HI
  22955. function Lh(r, t, e, n) {
  22956. return (
  22957. t &&
  22958. !isNaN(t[0]) &&
  22959. !isNaN(t[1]) &&
  22960. !(n.isIgnore && n.isIgnore(e)) &&
  22961. !(n.clipShape && !n.clipShape.contain(t[0], t[1])) &&
  22962. r.getItemVisual(e, 'symbol') !== 'none'
  22963. )
  22964. }
  22965. function xy(r) {
  22966. return r != null && !Y(r) && (r = { isIgnore: r }), r || {}
  22967. }
  22968. function wy(r) {
  22969. var t = r.hostModel,
  22970. e = t.getModel('emphasis')
  22971. return {
  22972. emphasisItemStyle: e.getModel('itemStyle').getItemStyle(),
  22973. blurItemStyle: t.getModel(['blur', 'itemStyle']).getItemStyle(),
  22974. selectItemStyle: t.getModel(['select', 'itemStyle']).getItemStyle(),
  22975. focus: e.get('focus'),
  22976. blurScope: e.get('blurScope'),
  22977. emphasisDisabled: e.get('disabled'),
  22978. hoverScale: e.get('scale'),
  22979. labelStatesModels: va(t),
  22980. cursorStyle: t.get('cursor')
  22981. }
  22982. }
  22983. var UI = (function () {
  22984. function r(t) {
  22985. ;(this.group = new At()), (this._SymbolCtor = t || Ih)
  22986. }
  22987. return (
  22988. (r.prototype.updateData = function (t, e) {
  22989. ;(this._progressiveEls = null), (e = xy(e))
  22990. var n = this.group,
  22991. i = t.hostModel,
  22992. a = this._data,
  22993. o = this._SymbolCtor,
  22994. s = e.disableAnimation,
  22995. l = wy(t),
  22996. u = { disableAnimation: s },
  22997. f =
  22998. e.getSymbolPoint ||
  22999. function (h) {
  23000. return t.getItemLayout(h)
  23001. }
  23002. a || n.removeAll(),
  23003. t
  23004. .diff(a)
  23005. .add(function (h) {
  23006. var c = f(h)
  23007. if (Lh(t, c, h, e)) {
  23008. var v = new o(t, h, l, u)
  23009. v.setPosition(c), t.setItemGraphicEl(h, v), n.add(v)
  23010. }
  23011. })
  23012. .update(function (h, c) {
  23013. var v = a.getItemGraphicEl(c),
  23014. d = f(h)
  23015. if (!Lh(t, d, h, e)) {
  23016. n.remove(v)
  23017. return
  23018. }
  23019. var p = t.getItemVisual(h, 'symbol') || 'circle',
  23020. g = v && v.getSymbolType && v.getSymbolType()
  23021. if (!v || (g && g !== p))
  23022. n.remove(v), (v = new o(t, h, l, u)), v.setPosition(d)
  23023. else {
  23024. v.updateData(t, h, l, u)
  23025. var m = { x: d[0], y: d[1] }
  23026. s ? v.attr(m) : kt(v, m, i)
  23027. }
  23028. n.add(v), t.setItemGraphicEl(h, v)
  23029. })
  23030. .remove(function (h) {
  23031. var c = a.getItemGraphicEl(h)
  23032. c &&
  23033. c.fadeOut(function () {
  23034. n.remove(c)
  23035. }, i)
  23036. })
  23037. .execute(),
  23038. (this._getSymbolPoint = f),
  23039. (this._data = t)
  23040. }),
  23041. (r.prototype.updateLayout = function () {
  23042. var t = this,
  23043. e = this._data
  23044. e &&
  23045. e.eachItemGraphicEl(function (n, i) {
  23046. var a = t._getSymbolPoint(i)
  23047. n.setPosition(a), n.markRedraw()
  23048. })
  23049. }),
  23050. (r.prototype.incrementalPrepareUpdate = function (t) {
  23051. ;(this._seriesScope = wy(t)),
  23052. (this._data = null),
  23053. this.group.removeAll()
  23054. }),
  23055. (r.prototype.incrementalUpdate = function (t, e, n) {
  23056. ;(this._progressiveEls = []), (n = xy(n))
  23057. function i(l) {
  23058. l.isGroup ||
  23059. ((l.incremental = !0), (l.ensureState('emphasis').hoverLayer = !0))
  23060. }
  23061. for (var a = t.start; a < t.end; a++) {
  23062. var o = e.getItemLayout(a)
  23063. if (Lh(e, o, a, n)) {
  23064. var s = new this._SymbolCtor(e, a, this._seriesScope)
  23065. s.traverse(i),
  23066. s.setPosition(o),
  23067. this.group.add(s),
  23068. e.setItemGraphicEl(a, s),
  23069. this._progressiveEls.push(s)
  23070. }
  23071. }
  23072. }),
  23073. (r.prototype.eachRendered = function (t) {
  23074. hs(this._progressiveEls || this.group, t)
  23075. }),
  23076. (r.prototype.remove = function (t) {
  23077. var e = this.group,
  23078. n = this._data
  23079. n && t
  23080. ? n.eachItemGraphicEl(function (i) {
  23081. i.fadeOut(function () {
  23082. e.remove(i)
  23083. }, n.hostModel)
  23084. })
  23085. : e.removeAll()
  23086. }),
  23087. r
  23088. )
  23089. })(),
  23090. YI = UI
  23091. function by(r, t, e) {
  23092. var n = r.getBaseAxis(),
  23093. i = r.getOtherAxis(n),
  23094. a = ZI(i, e),
  23095. o = n.dim,
  23096. s = i.dim,
  23097. l = t.mapDimension(s),
  23098. u = t.mapDimension(o),
  23099. f = s === 'x' || s === 'radius' ? 1 : 0,
  23100. h = G(r.dimensions, function (d) {
  23101. return t.mapDimension(d)
  23102. }),
  23103. c = !1,
  23104. v = t.getCalculationInfo('stackResultDimension')
  23105. return (
  23106. Si(t, h[0]) && ((c = !0), (h[0] = v)),
  23107. Si(t, h[1]) && ((c = !0), (h[1] = v)),
  23108. {
  23109. dataDimsForPoint: h,
  23110. valueStart: a,
  23111. valueAxisDim: s,
  23112. baseAxisDim: o,
  23113. stacked: !!c,
  23114. valueDim: l,
  23115. baseDim: u,
  23116. baseDataOffset: f,
  23117. stackedOverDimension: t.getCalculationInfo('stackedOverDimension')
  23118. }
  23119. )
  23120. }
  23121. function ZI(r, t) {
  23122. var e = 0,
  23123. n = r.scale.getExtent()
  23124. return (
  23125. t === 'start'
  23126. ? (e = n[0])
  23127. : t === 'end'
  23128. ? (e = n[1])
  23129. : dt(t) && !isNaN(t)
  23130. ? (e = t)
  23131. : n[0] > 0
  23132. ? (e = n[0])
  23133. : n[1] < 0 && (e = n[1]),
  23134. e
  23135. )
  23136. }
  23137. function Ty(r, t, e, n) {
  23138. var i = NaN
  23139. r.stacked && (i = e.get(e.getCalculationInfo('stackedOverDimension'), n)),
  23140. isNaN(i) && (i = r.valueStart)
  23141. var a = r.baseDataOffset,
  23142. o = []
  23143. return (o[a] = e.get(r.baseDim, n)), (o[1 - a] = i), t.dataToPoint(o)
  23144. }
  23145. function $I(r, t) {
  23146. var e = []
  23147. return (
  23148. t
  23149. .diff(r)
  23150. .add(function (n) {
  23151. e.push({ cmd: '+', idx: n })
  23152. })
  23153. .update(function (n, i) {
  23154. e.push({ cmd: '=', idx: i, idx1: n })
  23155. })
  23156. .remove(function (n) {
  23157. e.push({ cmd: '-', idx: n })
  23158. })
  23159. .execute(),
  23160. e
  23161. )
  23162. }
  23163. function XI(r, t, e, n, i, a, o, s) {
  23164. for (
  23165. var l = $I(r, t),
  23166. u = [],
  23167. f = [],
  23168. h = [],
  23169. c = [],
  23170. v = [],
  23171. d = [],
  23172. p = [],
  23173. g = by(i, t, o),
  23174. m = r.getLayout('points') || [],
  23175. y = t.getLayout('points') || [],
  23176. _ = 0;
  23177. _ < l.length;
  23178. _++
  23179. ) {
  23180. var S = l[_],
  23181. w = !0,
  23182. x = void 0,
  23183. b = void 0
  23184. switch (S.cmd) {
  23185. case '=':
  23186. ;(x = S.idx * 2), (b = S.idx1 * 2)
  23187. var T = m[x],
  23188. C = m[x + 1],
  23189. M = y[b],
  23190. D = y[b + 1]
  23191. ;(isNaN(T) || isNaN(C)) && ((T = M), (C = D)),
  23192. u.push(T, C),
  23193. f.push(M, D),
  23194. h.push(e[x], e[x + 1]),
  23195. c.push(n[b], n[b + 1]),
  23196. p.push(t.getRawIndex(S.idx1))
  23197. break
  23198. case '+':
  23199. var I = S.idx,
  23200. L = g.dataDimsForPoint,
  23201. P = i.dataToPoint([t.get(L[0], I), t.get(L[1], I)])
  23202. ;(b = I * 2), u.push(P[0], P[1]), f.push(y[b], y[b + 1])
  23203. var R = Ty(g, i, t, I)
  23204. h.push(R[0], R[1]), c.push(n[b], n[b + 1]), p.push(t.getRawIndex(I))
  23205. break
  23206. case '-':
  23207. w = !1
  23208. }
  23209. w && (v.push(S), d.push(d.length))
  23210. }
  23211. d.sort(function (Ct, mt) {
  23212. return p[Ct] - p[mt]
  23213. })
  23214. for (
  23215. var O = u.length, U = gr(O), k = gr(O), F = gr(O), H = gr(O), $ = [], _ = 0;
  23216. _ < d.length;
  23217. _++
  23218. ) {
  23219. var J = d[_],
  23220. et = _ * 2,
  23221. ft = J * 2
  23222. ;(U[et] = u[ft]),
  23223. (U[et + 1] = u[ft + 1]),
  23224. (k[et] = f[ft]),
  23225. (k[et + 1] = f[ft + 1]),
  23226. (F[et] = h[ft]),
  23227. (F[et + 1] = h[ft + 1]),
  23228. (H[et] = c[ft]),
  23229. (H[et + 1] = c[ft + 1]),
  23230. ($[_] = v[J])
  23231. }
  23232. return {
  23233. current: U,
  23234. next: k,
  23235. stackedOnCurrent: F,
  23236. stackedOnNext: H,
  23237. status: $
  23238. }
  23239. }
  23240. var Nr = Math.min,
  23241. Fr = Math.max
  23242. function Mn(r, t) {
  23243. return isNaN(r) || isNaN(t)
  23244. }
  23245. function Ph(r, t, e, n, i, a, o, s, l) {
  23246. for (var u, f, h, c, v, d, p = e, g = 0; g < n; g++) {
  23247. var m = t[p * 2],
  23248. y = t[p * 2 + 1]
  23249. if (p >= i || p < 0) break
  23250. if (Mn(m, y)) {
  23251. if (l) {
  23252. p += a
  23253. continue
  23254. }
  23255. break
  23256. }
  23257. if (p === e) r[a > 0 ? 'moveTo' : 'lineTo'](m, y), (h = m), (c = y)
  23258. else {
  23259. var _ = m - u,
  23260. S = y - f
  23261. if (_ * _ + S * S < 0.5) {
  23262. p += a
  23263. continue
  23264. }
  23265. if (o > 0) {
  23266. for (
  23267. var w = p + a, x = t[w * 2], b = t[w * 2 + 1];
  23268. x === m && b === y && g < n;
  23269. )
  23270. g++,
  23271. (w += a),
  23272. (p += a),
  23273. (x = t[w * 2]),
  23274. (b = t[w * 2 + 1]),
  23275. (m = t[p * 2]),
  23276. (y = t[p * 2 + 1]),
  23277. (_ = m - u),
  23278. (S = y - f)
  23279. var T = g + 1
  23280. if (l)
  23281. for (; Mn(x, b) && T < n; )
  23282. T++, (w += a), (x = t[w * 2]), (b = t[w * 2 + 1])
  23283. var C = 0.5,
  23284. M = 0,
  23285. D = 0,
  23286. I = void 0,
  23287. L = void 0
  23288. if (T >= n || Mn(x, b)) (v = m), (d = y)
  23289. else {
  23290. ;(M = x - u), (D = b - f)
  23291. var P = m - u,
  23292. R = x - m,
  23293. O = y - f,
  23294. U = b - y,
  23295. k = void 0,
  23296. F = void 0
  23297. if (s === 'x') {
  23298. ;(k = Math.abs(P)), (F = Math.abs(R))
  23299. var H = M > 0 ? 1 : -1
  23300. ;(v = m - H * k * o), (d = y), (I = m + H * F * o), (L = y)
  23301. } else if (s === 'y') {
  23302. ;(k = Math.abs(O)), (F = Math.abs(U))
  23303. var $ = D > 0 ? 1 : -1
  23304. ;(v = m), (d = y - $ * k * o), (I = m), (L = y + $ * F * o)
  23305. } else
  23306. (k = Math.sqrt(P * P + O * O)),
  23307. (F = Math.sqrt(R * R + U * U)),
  23308. (C = F / (F + k)),
  23309. (v = m - M * o * (1 - C)),
  23310. (d = y - D * o * (1 - C)),
  23311. (I = m + M * o * C),
  23312. (L = y + D * o * C),
  23313. (I = Nr(I, Fr(x, m))),
  23314. (L = Nr(L, Fr(b, y))),
  23315. (I = Fr(I, Nr(x, m))),
  23316. (L = Fr(L, Nr(b, y))),
  23317. (M = I - m),
  23318. (D = L - y),
  23319. (v = m - (M * k) / F),
  23320. (d = y - (D * k) / F),
  23321. (v = Nr(v, Fr(u, m))),
  23322. (d = Nr(d, Fr(f, y))),
  23323. (v = Fr(v, Nr(u, m))),
  23324. (d = Fr(d, Nr(f, y))),
  23325. (M = m - v),
  23326. (D = y - d),
  23327. (I = m + (M * F) / k),
  23328. (L = y + (D * F) / k)
  23329. }
  23330. r.bezierCurveTo(h, c, v, d, m, y), (h = I), (c = L)
  23331. } else r.lineTo(m, y)
  23332. }
  23333. ;(u = m), (f = y), (p += a)
  23334. }
  23335. return g
  23336. }
  23337. var Cy = (function () {
  23338. function r() {
  23339. ;(this.smooth = 0), (this.smoothConstraint = !0)
  23340. }
  23341. return r
  23342. })(),
  23343. qI = (function (r) {
  23344. B(t, r)
  23345. function t(e) {
  23346. var n = r.call(this, e) || this
  23347. return (n.type = 'ec-polyline'), n
  23348. }
  23349. return (
  23350. (t.prototype.getDefaultStyle = function () {
  23351. return { stroke: '#000', fill: null }
  23352. }),
  23353. (t.prototype.getDefaultShape = function () {
  23354. return new Cy()
  23355. }),
  23356. (t.prototype.buildPath = function (e, n) {
  23357. var i = n.points,
  23358. a = 0,
  23359. o = i.length / 2
  23360. if (n.connectNulls) {
  23361. for (; o > 0 && Mn(i[o * 2 - 2], i[o * 2 - 1]); o--);
  23362. for (; a < o && Mn(i[a * 2], i[a * 2 + 1]); a++);
  23363. }
  23364. for (; a < o; )
  23365. a +=
  23366. Ph(e, i, a, o, o, 1, n.smooth, n.smoothMonotone, n.connectNulls) + 1
  23367. }),
  23368. (t.prototype.getPointOn = function (e, n) {
  23369. this.path ||
  23370. (this.createPathProxy(), this.buildPath(this.path, this.shape))
  23371. for (
  23372. var i = this.path,
  23373. a = i.data,
  23374. o = ur.CMD,
  23375. s,
  23376. l,
  23377. u = n === 'x',
  23378. f = [],
  23379. h = 0;
  23380. h < a.length;
  23381. ) {
  23382. var c = a[h++],
  23383. v = void 0,
  23384. d = void 0,
  23385. p = void 0,
  23386. g = void 0,
  23387. m = void 0,
  23388. y = void 0,
  23389. _ = void 0
  23390. switch (c) {
  23391. case o.M:
  23392. ;(s = a[h++]), (l = a[h++])
  23393. break
  23394. case o.L:
  23395. if (
  23396. ((v = a[h++]),
  23397. (d = a[h++]),
  23398. (_ = u ? (e - s) / (v - s) : (e - l) / (d - l)),
  23399. _ <= 1 && _ >= 0)
  23400. ) {
  23401. var S = u ? (d - l) * _ + l : (v - s) * _ + s
  23402. return u ? [e, S] : [S, e]
  23403. }
  23404. ;(s = v), (l = d)
  23405. break
  23406. case o.C:
  23407. ;(v = a[h++]),
  23408. (d = a[h++]),
  23409. (p = a[h++]),
  23410. (g = a[h++]),
  23411. (m = a[h++]),
  23412. (y = a[h++])
  23413. var w = u ? po(s, v, p, m, e, f) : po(l, d, g, y, e, f)
  23414. if (w > 0)
  23415. for (var x = 0; x < w; x++) {
  23416. var b = f[x]
  23417. if (b <= 1 && b >= 0) {
  23418. var S = u ? Rt(l, d, g, y, b) : Rt(s, v, p, m, b)
  23419. return u ? [e, S] : [S, e]
  23420. }
  23421. }
  23422. ;(s = m), (l = y)
  23423. break
  23424. }
  23425. }
  23426. }),
  23427. t
  23428. )
  23429. })(st),
  23430. KI = (function (r) {
  23431. B(t, r)
  23432. function t() {
  23433. return (r !== null && r.apply(this, arguments)) || this
  23434. }
  23435. return t
  23436. })(Cy),
  23437. QI = (function (r) {
  23438. B(t, r)
  23439. function t(e) {
  23440. var n = r.call(this, e) || this
  23441. return (n.type = 'ec-polygon'), n
  23442. }
  23443. return (
  23444. (t.prototype.getDefaultShape = function () {
  23445. return new KI()
  23446. }),
  23447. (t.prototype.buildPath = function (e, n) {
  23448. var i = n.points,
  23449. a = n.stackedOnPoints,
  23450. o = 0,
  23451. s = i.length / 2,
  23452. l = n.smoothMonotone
  23453. if (n.connectNulls) {
  23454. for (; s > 0 && Mn(i[s * 2 - 2], i[s * 2 - 1]); s--);
  23455. for (; o < s && Mn(i[o * 2], i[o * 2 + 1]); o++);
  23456. }
  23457. for (; o < s; ) {
  23458. var u = Ph(e, i, o, s, s, 1, n.smooth, l, n.connectNulls)
  23459. Ph(e, a, o + u - 1, u, s, -1, n.stackedOnSmooth, l, n.connectNulls),
  23460. (o += u + 1),
  23461. e.closePath()
  23462. }
  23463. }),
  23464. t
  23465. )
  23466. })(st)
  23467. function Ay(r, t, e, n, i) {
  23468. var a = r.getArea(),
  23469. o = a.x,
  23470. s = a.y,
  23471. l = a.width,
  23472. u = a.height,
  23473. f = e.get(['lineStyle', 'width']) || 2
  23474. ;(o -= f / 2),
  23475. (s -= f / 2),
  23476. (l += f),
  23477. (u += f),
  23478. (o = Math.floor(o)),
  23479. (l = Math.round(l))
  23480. var h = new St({ shape: { x: o, y: s, width: l, height: u } })
  23481. if (t) {
  23482. var c = r.getBaseAxis(),
  23483. v = c.isHorizontal(),
  23484. d = c.inverse
  23485. v
  23486. ? (d && (h.shape.x += l), (h.shape.width = 0))
  23487. : (d || (h.shape.y += u), (h.shape.height = 0))
  23488. var p = Q(i)
  23489. ? function (g) {
  23490. i(g, h)
  23491. }
  23492. : null
  23493. Wt(h, { shape: { width: l, height: u, x: o, y: s } }, e, null, n, p)
  23494. }
  23495. return h
  23496. }
  23497. function My(r, t, e) {
  23498. var n = r.getArea(),
  23499. i = Pt(n.r0, 1),
  23500. a = Pt(n.r, 1),
  23501. o = new hr({
  23502. shape: {
  23503. cx: Pt(r.cx, 1),
  23504. cy: Pt(r.cy, 1),
  23505. r0: i,
  23506. r: a,
  23507. startAngle: n.startAngle,
  23508. endAngle: n.endAngle,
  23509. clockwise: n.clockwise
  23510. }
  23511. })
  23512. if (t) {
  23513. var s = r.getBaseAxis().dim === 'angle'
  23514. s ? (o.shape.endAngle = n.startAngle) : (o.shape.r = i),
  23515. Wt(o, { shape: { endAngle: n.endAngle, r: a } }, e)
  23516. }
  23517. return o
  23518. }
  23519. function JI(r, t, e, n, i) {
  23520. if (r) {
  23521. if (r.type === 'polar') return My(r, t, e)
  23522. if (r.type === 'cartesian2d') return Ay(r, t, e, n, i)
  23523. } else return null
  23524. return null
  23525. }
  23526. function Rh(r, t) {
  23527. return r.type === t
  23528. }
  23529. function Dy(r, t) {
  23530. if (r.length === t.length) {
  23531. for (var e = 0; e < r.length; e++) if (r[e] !== t[e]) return
  23532. return !0
  23533. }
  23534. }
  23535. function Iy(r) {
  23536. for (
  23537. var t = 1 / 0, e = 1 / 0, n = -1 / 0, i = -1 / 0, a = 0;
  23538. a < r.length;
  23539. ) {
  23540. var o = r[a++],
  23541. s = r[a++]
  23542. isNaN(o) || ((t = Math.min(o, t)), (n = Math.max(o, n))),
  23543. isNaN(s) || ((e = Math.min(s, e)), (i = Math.max(s, i)))
  23544. }
  23545. return [
  23546. [t, e],
  23547. [n, i]
  23548. ]
  23549. }
  23550. function Ly(r, t) {
  23551. var e = Iy(r),
  23552. n = e[0],
  23553. i = e[1],
  23554. a = Iy(t),
  23555. o = a[0],
  23556. s = a[1]
  23557. return Math.max(
  23558. Math.abs(n[0] - o[0]),
  23559. Math.abs(n[1] - o[1]),
  23560. Math.abs(i[0] - s[0]),
  23561. Math.abs(i[1] - s[1])
  23562. )
  23563. }
  23564. function Py(r) {
  23565. return dt(r) ? r : r ? 0.5 : 0
  23566. }
  23567. function jI(r, t, e) {
  23568. if (!e.valueDim) return []
  23569. for (var n = t.count(), i = gr(n * 2), a = 0; a < n; a++) {
  23570. var o = Ty(e, r, t, a)
  23571. ;(i[a * 2] = o[0]), (i[a * 2 + 1] = o[1])
  23572. }
  23573. return i
  23574. }
  23575. function zr(r, t, e, n) {
  23576. var i = t.getBaseAxis(),
  23577. a = i.dim === 'x' || i.dim === 'radius' ? 0 : 1,
  23578. o = [],
  23579. s = 0,
  23580. l = [],
  23581. u = [],
  23582. f = [],
  23583. h = []
  23584. if (n) {
  23585. for (s = 0; s < r.length; s += 2)
  23586. !isNaN(r[s]) && !isNaN(r[s + 1]) && h.push(r[s], r[s + 1])
  23587. r = h
  23588. }
  23589. for (s = 0; s < r.length - 2; s += 2)
  23590. switch (
  23591. ((f[0] = r[s + 2]),
  23592. (f[1] = r[s + 3]),
  23593. (u[0] = r[s]),
  23594. (u[1] = r[s + 1]),
  23595. o.push(u[0], u[1]),
  23596. e)
  23597. ) {
  23598. case 'end':
  23599. ;(l[a] = f[a]), (l[1 - a] = u[1 - a]), o.push(l[0], l[1])
  23600. break
  23601. case 'middle':
  23602. var c = (u[a] + f[a]) / 2,
  23603. v = []
  23604. ;(l[a] = v[a] = c),
  23605. (l[1 - a] = u[1 - a]),
  23606. (v[1 - a] = f[1 - a]),
  23607. o.push(l[0], l[1]),
  23608. o.push(v[0], v[1])
  23609. break
  23610. default:
  23611. ;(l[a] = u[a]), (l[1 - a] = f[1 - a]), o.push(l[0], l[1])
  23612. }
  23613. return o.push(r[s++], r[s++]), o
  23614. }
  23615. function tL(r, t) {
  23616. var e = [],
  23617. n = r.length,
  23618. i,
  23619. a
  23620. function o(f, h, c) {
  23621. var v = f.coord,
  23622. d = (c - v) / (h.coord - v),
  23623. p = pw(d, [f.color, h.color])
  23624. return { coord: c, color: p }
  23625. }
  23626. for (var s = 0; s < n; s++) {
  23627. var l = r[s],
  23628. u = l.coord
  23629. if (u < 0) i = l
  23630. else if (u > t) {
  23631. a ? e.push(o(a, l, t)) : i && e.push(o(i, l, 0), o(i, l, t))
  23632. break
  23633. } else i && (e.push(o(i, l, 0)), (i = null)), e.push(l), (a = l)
  23634. }
  23635. return e
  23636. }
  23637. function eL(r, t, e) {
  23638. var n = r.getVisual('visualMeta')
  23639. if (!(!n || !n.length || !r.count()) && t.type === 'cartesian2d') {
  23640. for (var i, a, o = n.length - 1; o >= 0; o--) {
  23641. var s = r.getDimensionInfo(n[o].dimension)
  23642. if (((i = s && s.coordDim), i === 'x' || i === 'y')) {
  23643. a = n[o]
  23644. break
  23645. }
  23646. }
  23647. if (!!a) {
  23648. var l = t.getAxis(i),
  23649. u = G(a.stops, function (_) {
  23650. return {
  23651. coord: l.toGlobalCoord(l.dataToCoord(_.value)),
  23652. color: _.color
  23653. }
  23654. }),
  23655. f = u.length,
  23656. h = a.outerColors.slice()
  23657. f && u[0].coord > u[f - 1].coord && (u.reverse(), h.reverse())
  23658. var c = tL(u, i === 'x' ? e.getWidth() : e.getHeight()),
  23659. v = c.length
  23660. if (!v && f)
  23661. return u[0].coord < 0
  23662. ? h[1]
  23663. ? h[1]
  23664. : u[f - 1].color
  23665. : h[0]
  23666. ? h[0]
  23667. : u[0].color
  23668. var d = 10,
  23669. p = c[0].coord - d,
  23670. g = c[v - 1].coord + d,
  23671. m = g - p
  23672. if (m < 0.001) return 'transparent'
  23673. A(c, function (_) {
  23674. _.offset = (_.coord - p) / m
  23675. }),
  23676. c.push({
  23677. offset: v ? c[v - 1].offset : 0.5,
  23678. color: h[1] || 'transparent'
  23679. }),
  23680. c.unshift({
  23681. offset: v ? c[0].offset : 0.5,
  23682. color: h[0] || 'transparent'
  23683. })
  23684. var y = new Ip(0, 0, 0, 0, c, !0)
  23685. return (y[i] = p), (y[i + '2'] = g), y
  23686. }
  23687. }
  23688. }
  23689. function rL(r, t, e) {
  23690. var n = r.get('showAllSymbol'),
  23691. i = n === 'auto'
  23692. if (!(n && !i)) {
  23693. var a = e.getAxesByScale('ordinal')[0]
  23694. if (!!a && !(i && nL(a, t))) {
  23695. var o = t.mapDimension(a.dim),
  23696. s = {}
  23697. return (
  23698. A(a.getViewLabels(), function (l) {
  23699. var u = a.scale.getRawOrdinalNumber(l.tickValue)
  23700. s[u] = 1
  23701. }),
  23702. function (l) {
  23703. return !s.hasOwnProperty(t.get(o, l))
  23704. }
  23705. )
  23706. }
  23707. }
  23708. }
  23709. function nL(r, t) {
  23710. var e = r.getExtent(),
  23711. n = Math.abs(e[1] - e[0]) / r.scale.count()
  23712. isNaN(n) && (n = 0)
  23713. for (
  23714. var i = t.count(), a = Math.max(1, Math.round(i / 5)), o = 0;
  23715. o < i;
  23716. o += a
  23717. )
  23718. if (Ih.getSymbolSize(t, o)[r.isHorizontal() ? 1 : 0] * 1.5 > n) return !1
  23719. return !0
  23720. }
  23721. function iL(r, t) {
  23722. return isNaN(r) || isNaN(t)
  23723. }
  23724. function aL(r) {
  23725. for (var t = r.length / 2; t > 0 && iL(r[t * 2 - 2], r[t * 2 - 1]); t--);
  23726. return t - 1
  23727. }
  23728. function Ry(r, t) {
  23729. return [r[t * 2], r[t * 2 + 1]]
  23730. }
  23731. function oL(r, t, e) {
  23732. for (
  23733. var n = r.length / 2, i = e === 'x' ? 0 : 1, a, o, s = 0, l = -1, u = 0;
  23734. u < n;
  23735. u++
  23736. )
  23737. if (((o = r[u * 2 + i]), !(isNaN(o) || isNaN(r[u * 2 + 1 - i])))) {
  23738. if (u === 0) {
  23739. a = o
  23740. continue
  23741. }
  23742. if ((a <= t && o >= t) || (a >= t && o <= t)) {
  23743. l = u
  23744. break
  23745. }
  23746. ;(s = u), (a = o)
  23747. }
  23748. return { range: [s, l], t: (t - a) / (o - a) }
  23749. }
  23750. function Ey(r) {
  23751. if (r.get(['endLabel', 'show'])) return !0
  23752. for (var t = 0; t < pe.length; t++)
  23753. if (r.get([pe[t], 'endLabel', 'show'])) return !0
  23754. return !1
  23755. }
  23756. function Eh(r, t, e, n) {
  23757. if (Rh(t, 'cartesian2d')) {
  23758. var i = n.getModel('endLabel'),
  23759. a = i.get('valueAnimation'),
  23760. o = n.getData(),
  23761. s = { lastFrameIndex: 0 },
  23762. l = Ey(n)
  23763. ? function (v, d) {
  23764. r._endLabelOnDuring(v, d, o, s, a, i, t)
  23765. }
  23766. : null,
  23767. u = t.getBaseAxis().isHorizontal(),
  23768. f = Ay(
  23769. t,
  23770. e,
  23771. n,
  23772. function () {
  23773. var v = r._endLabel
  23774. v &&
  23775. e &&
  23776. s.originalX != null &&
  23777. v.attr({ x: s.originalX, y: s.originalY })
  23778. },
  23779. l
  23780. )
  23781. if (!n.get('clip', !0)) {
  23782. var h = f.shape,
  23783. c = Math.max(h.width, h.height)
  23784. u ? ((h.y -= c), (h.height += c * 2)) : ((h.x -= c), (h.width += c * 2))
  23785. }
  23786. return l && l(1, f), f
  23787. } else return My(t, e, n)
  23788. }
  23789. function sL(r, t) {
  23790. var e = t.getBaseAxis(),
  23791. n = e.isHorizontal(),
  23792. i = e.inverse,
  23793. a = n ? (i ? 'right' : 'left') : 'center',
  23794. o = n ? 'middle' : i ? 'top' : 'bottom'
  23795. return {
  23796. normal: {
  23797. align: r.get('align') || a,
  23798. verticalAlign: r.get('verticalAlign') || o
  23799. }
  23800. }
  23801. }
  23802. var lL = (function (r) {
  23803. B(t, r)
  23804. function t() {
  23805. return (r !== null && r.apply(this, arguments)) || this
  23806. }
  23807. return (
  23808. (t.prototype.init = function () {
  23809. var e = new At(),
  23810. n = new YI()
  23811. this.group.add(n.group), (this._symbolDraw = n), (this._lineGroup = e)
  23812. }),
  23813. (t.prototype.render = function (e, n, i) {
  23814. var a = this,
  23815. o = e.coordinateSystem,
  23816. s = this.group,
  23817. l = e.getData(),
  23818. u = e.getModel('lineStyle'),
  23819. f = e.getModel('areaStyle'),
  23820. h = l.getLayout('points') || [],
  23821. c = o.type === 'polar',
  23822. v = this._coordSys,
  23823. d = this._symbolDraw,
  23824. p = this._polyline,
  23825. g = this._polygon,
  23826. m = this._lineGroup,
  23827. y = e.get('animation'),
  23828. _ = !f.isEmpty(),
  23829. S = f.get('origin'),
  23830. w = by(o, l, S),
  23831. x = _ && jI(o, l, w),
  23832. b = e.get('showSymbol'),
  23833. T = e.get('connectNulls'),
  23834. C = b && !c && rL(e, l, o),
  23835. M = this._data
  23836. M &&
  23837. M.eachItemGraphicEl(function (mt, zt) {
  23838. mt.__temp && (s.remove(mt), M.setItemGraphicEl(zt, null))
  23839. }),
  23840. b || d.remove(),
  23841. s.add(m)
  23842. var D = c ? !1 : e.get('step'),
  23843. I
  23844. o &&
  23845. o.getArea &&
  23846. e.get('clip', !0) &&
  23847. ((I = o.getArea()),
  23848. I.width != null
  23849. ? ((I.x -= 0.1), (I.y -= 0.1), (I.width += 0.2), (I.height += 0.2))
  23850. : I.r0 && ((I.r0 -= 0.5), (I.r += 0.5))),
  23851. (this._clipShapeForSymbol = I)
  23852. var L = eL(l, o, i) || l.getVisual('style')[l.getVisual('drawType')]
  23853. if (!(p && v.type === o.type && D === this._step))
  23854. b &&
  23855. d.updateData(l, {
  23856. isIgnore: C,
  23857. clipShape: I,
  23858. disableAnimation: !0,
  23859. getSymbolPoint: function (mt) {
  23860. return [h[mt * 2], h[mt * 2 + 1]]
  23861. }
  23862. }),
  23863. y && this._initSymbolLabelAnimation(l, o, I),
  23864. D && ((h = zr(h, o, D, T)), x && (x = zr(x, o, D, T))),
  23865. (p = this._newPolyline(h)),
  23866. _
  23867. ? (g = this._newPolygon(h, x))
  23868. : g && (m.remove(g), (g = this._polygon = null)),
  23869. c || this._initOrUpdateEndLabel(e, o, yn(L)),
  23870. m.setClipPath(Eh(this, o, !0, e))
  23871. else {
  23872. _ && !g
  23873. ? (g = this._newPolygon(h, x))
  23874. : g && !_ && (m.remove(g), (g = this._polygon = null)),
  23875. c || this._initOrUpdateEndLabel(e, o, yn(L))
  23876. var P = m.getClipPath()
  23877. if (P) {
  23878. var R = Eh(this, o, !1, e)
  23879. Wt(P, { shape: R.shape }, e)
  23880. } else m.setClipPath(Eh(this, o, !0, e))
  23881. b &&
  23882. d.updateData(l, {
  23883. isIgnore: C,
  23884. clipShape: I,
  23885. disableAnimation: !0,
  23886. getSymbolPoint: function (mt) {
  23887. return [h[mt * 2], h[mt * 2 + 1]]
  23888. }
  23889. }),
  23890. (!Dy(this._stackedOnPoints, x) || !Dy(this._points, h)) &&
  23891. (y
  23892. ? this._doUpdateAnimation(l, x, o, i, D, S, T)
  23893. : (D && ((h = zr(h, o, D, T)), x && (x = zr(x, o, D, T))),
  23894. p.setShape({ points: h }),
  23895. g && g.setShape({ points: h, stackedOnPoints: x })))
  23896. }
  23897. var O = e.getModel('emphasis'),
  23898. U = O.get('focus'),
  23899. k = O.get('blurScope'),
  23900. F = O.get('disabled')
  23901. if (
  23902. (p.useStyle(
  23903. j(u.getLineStyle(), { fill: 'none', stroke: L, lineJoin: 'bevel' })
  23904. ),
  23905. Ko(p, e, 'lineStyle'),
  23906. p.style.lineWidth > 0 &&
  23907. e.get(['emphasis', 'lineStyle', 'width']) === 'bolder')
  23908. ) {
  23909. var H = p.getState('emphasis').style
  23910. H.lineWidth = +p.style.lineWidth + 1
  23911. }
  23912. ;(ct(p).seriesIndex = e.seriesIndex), aa(p, U, k, F)
  23913. var $ = Py(e.get('smooth')),
  23914. J = e.get('smoothMonotone')
  23915. if (
  23916. (p.setShape({ smooth: $, smoothMonotone: J, connectNulls: T }), g)
  23917. ) {
  23918. var et = l.getCalculationInfo('stackedOnSeries'),
  23919. ft = 0
  23920. g.useStyle(
  23921. j(f.getAreaStyle(), {
  23922. fill: L,
  23923. opacity: 0.7,
  23924. lineJoin: 'bevel',
  23925. decal: l.getVisual('style').decal
  23926. })
  23927. ),
  23928. et && (ft = Py(et.get('smooth'))),
  23929. g.setShape({
  23930. smooth: $,
  23931. stackedOnSmooth: ft,
  23932. smoothMonotone: J,
  23933. connectNulls: T
  23934. }),
  23935. Ko(g, e, 'areaStyle'),
  23936. (ct(g).seriesIndex = e.seriesIndex),
  23937. aa(g, U, k, F)
  23938. }
  23939. var Ct = function (mt) {
  23940. a._changePolyState(mt)
  23941. }
  23942. l.eachItemGraphicEl(function (mt) {
  23943. mt && (mt.onHoverStateChange = Ct)
  23944. }),
  23945. (this._polyline.onHoverStateChange = Ct),
  23946. (this._data = l),
  23947. (this._coordSys = o),
  23948. (this._stackedOnPoints = x),
  23949. (this._points = h),
  23950. (this._step = D),
  23951. (this._valueOrigin = S),
  23952. e.get('triggerLineEvent') &&
  23953. (this.packEventData(e, p), g && this.packEventData(e, g))
  23954. }),
  23955. (t.prototype.packEventData = function (e, n) {
  23956. ct(n).eventData = {
  23957. componentType: 'series',
  23958. componentSubType: 'line',
  23959. componentIndex: e.componentIndex,
  23960. seriesIndex: e.seriesIndex,
  23961. seriesName: e.name,
  23962. seriesType: 'line'
  23963. }
  23964. }),
  23965. (t.prototype.highlight = function (e, n, i, a) {
  23966. var o = e.getData(),
  23967. s = Jr(o, a)
  23968. if (
  23969. (this._changePolyState('emphasis'),
  23970. !(s instanceof Array) && s != null && s >= 0)
  23971. ) {
  23972. var l = o.getLayout('points'),
  23973. u = o.getItemGraphicEl(s)
  23974. if (!u) {
  23975. var f = l[s * 2],
  23976. h = l[s * 2 + 1]
  23977. if (
  23978. isNaN(f) ||
  23979. isNaN(h) ||
  23980. (this._clipShapeForSymbol &&
  23981. !this._clipShapeForSymbol.contain(f, h))
  23982. )
  23983. return
  23984. var c = e.get('zlevel'),
  23985. v = e.get('z')
  23986. ;(u = new Ih(o, s)), (u.x = f), (u.y = h), u.setZ(c, v)
  23987. var d = u.getSymbolPath().getTextContent()
  23988. d && ((d.zlevel = c), (d.z = v), (d.z2 = this._polyline.z2 + 1)),
  23989. (u.__temp = !0),
  23990. o.setItemGraphicEl(s, u),
  23991. u.stopSymbolAnimation(!0),
  23992. this.group.add(u)
  23993. }
  23994. u.highlight()
  23995. } else Qe.prototype.highlight.call(this, e, n, i, a)
  23996. }),
  23997. (t.prototype.downplay = function (e, n, i, a) {
  23998. var o = e.getData(),
  23999. s = Jr(o, a)
  24000. if ((this._changePolyState('normal'), s != null && s >= 0)) {
  24001. var l = o.getItemGraphicEl(s)
  24002. l &&
  24003. (l.__temp
  24004. ? (o.setItemGraphicEl(s, null), this.group.remove(l))
  24005. : l.downplay())
  24006. } else Qe.prototype.downplay.call(this, e, n, i, a)
  24007. }),
  24008. (t.prototype._changePolyState = function (e) {
  24009. var n = this._polygon
  24010. Zd(this._polyline, e), n && Zd(n, e)
  24011. }),
  24012. (t.prototype._newPolyline = function (e) {
  24013. var n = this._polyline
  24014. return (
  24015. n && this._lineGroup.remove(n),
  24016. (n = new qI({
  24017. shape: { points: e },
  24018. segmentIgnoreThreshold: 2,
  24019. z2: 10
  24020. })),
  24021. this._lineGroup.add(n),
  24022. (this._polyline = n),
  24023. n
  24024. )
  24025. }),
  24026. (t.prototype._newPolygon = function (e, n) {
  24027. var i = this._polygon
  24028. return (
  24029. i && this._lineGroup.remove(i),
  24030. (i = new QI({
  24031. shape: { points: e, stackedOnPoints: n },
  24032. segmentIgnoreThreshold: 2
  24033. })),
  24034. this._lineGroup.add(i),
  24035. (this._polygon = i),
  24036. i
  24037. )
  24038. }),
  24039. (t.prototype._initSymbolLabelAnimation = function (e, n, i) {
  24040. var a,
  24041. o,
  24042. s = n.getBaseAxis(),
  24043. l = s.inverse
  24044. n.type === 'cartesian2d'
  24045. ? ((a = s.isHorizontal()), (o = !1))
  24046. : n.type === 'polar' && ((a = s.dim === 'angle'), (o = !0))
  24047. var u = e.hostModel,
  24048. f = u.get('animationDuration')
  24049. Q(f) && (f = f(null))
  24050. var h = u.get('animationDelay') || 0,
  24051. c = Q(h) ? h(null) : h
  24052. e.eachItemGraphicEl(function (v, d) {
  24053. var p = v
  24054. if (p) {
  24055. var g = [v.x, v.y],
  24056. m = void 0,
  24057. y = void 0,
  24058. _ = void 0
  24059. if (i)
  24060. if (o) {
  24061. var S = i,
  24062. w = n.pointToCoord(g)
  24063. a
  24064. ? ((m = S.startAngle),
  24065. (y = S.endAngle),
  24066. (_ = (-w[1] / 180) * Math.PI))
  24067. : ((m = S.r0), (y = S.r), (_ = w[0]))
  24068. } else {
  24069. var x = i
  24070. a
  24071. ? ((m = x.x), (y = x.x + x.width), (_ = v.x))
  24072. : ((m = x.y + x.height), (y = x.y), (_ = v.y))
  24073. }
  24074. var b = y === m ? 0 : (_ - m) / (y - m)
  24075. l && (b = 1 - b)
  24076. var T = Q(h) ? h(d) : f * b + c,
  24077. C = p.getSymbolPath(),
  24078. M = C.getTextContent()
  24079. p.attr({ scaleX: 0, scaleY: 0 }),
  24080. p.animateTo(
  24081. { scaleX: 1, scaleY: 1 },
  24082. { duration: 200, setToFinal: !0, delay: T }
  24083. ),
  24084. M &&
  24085. M.animateFrom(
  24086. { style: { opacity: 0 } },
  24087. { duration: 300, delay: T }
  24088. ),
  24089. (C.disableLabelAnimation = !0)
  24090. }
  24091. })
  24092. }),
  24093. (t.prototype._initOrUpdateEndLabel = function (e, n, i) {
  24094. var a = e.getModel('endLabel')
  24095. if (Ey(e)) {
  24096. var o = e.getData(),
  24097. s = this._polyline,
  24098. l = o.getLayout('points')
  24099. if (!l) {
  24100. s.removeTextContent(), (this._endLabel = null)
  24101. return
  24102. }
  24103. var u = this._endLabel
  24104. u ||
  24105. ((u = this._endLabel = new Et({ z2: 200 })),
  24106. (u.ignoreClip = !0),
  24107. s.setTextContent(this._endLabel),
  24108. (s.disableLabelAnimation = !0))
  24109. var f = aL(l)
  24110. f >= 0 &&
  24111. (ha(
  24112. s,
  24113. va(e, 'endLabel'),
  24114. {
  24115. inheritColor: i,
  24116. labelFetcher: e,
  24117. labelDataIndex: f,
  24118. defaultText: function (h, c, v) {
  24119. return v != null ? Sy(o, v) : Dh(o, h)
  24120. },
  24121. enableTextSetter: !0
  24122. },
  24123. sL(a, n)
  24124. ),
  24125. (s.textConfig.position = null))
  24126. } else
  24127. this._endLabel &&
  24128. (this._polyline.removeTextContent(), (this._endLabel = null))
  24129. }),
  24130. (t.prototype._endLabelOnDuring = function (e, n, i, a, o, s, l) {
  24131. var u = this._endLabel,
  24132. f = this._polyline
  24133. if (u) {
  24134. e < 1 &&
  24135. a.originalX == null &&
  24136. ((a.originalX = u.x), (a.originalY = u.y))
  24137. var h = i.getLayout('points'),
  24138. c = i.hostModel,
  24139. v = c.get('connectNulls'),
  24140. d = s.get('precision'),
  24141. p = s.get('distance') || 0,
  24142. g = l.getBaseAxis(),
  24143. m = g.isHorizontal(),
  24144. y = g.inverse,
  24145. _ = n.shape,
  24146. S = y ? (m ? _.x : _.y + _.height) : m ? _.x + _.width : _.y,
  24147. w = (m ? p : 0) * (y ? -1 : 1),
  24148. x = (m ? 0 : -p) * (y ? -1 : 1),
  24149. b = m ? 'x' : 'y',
  24150. T = oL(h, S, b),
  24151. C = T.range,
  24152. M = C[1] - C[0],
  24153. D = void 0
  24154. if (M >= 1) {
  24155. if (M > 1 && !v) {
  24156. var I = Ry(h, C[0])
  24157. u.attr({ x: I[0] + w, y: I[1] + x }),
  24158. o && (D = c.getRawValue(C[0]))
  24159. } else {
  24160. var I = f.getPointOn(S, b)
  24161. I && u.attr({ x: I[0] + w, y: I[1] + x })
  24162. var L = c.getRawValue(C[0]),
  24163. P = c.getRawValue(C[1])
  24164. o && (D = ad(i, d, L, P, T.t))
  24165. }
  24166. a.lastFrameIndex = C[0]
  24167. } else {
  24168. var R = e === 1 || a.lastFrameIndex > 0 ? C[0] : 0,
  24169. I = Ry(h, R)
  24170. o && (D = c.getRawValue(R)), u.attr({ x: I[0] + w, y: I[1] + x })
  24171. }
  24172. o && si(u).setLabelText(D)
  24173. }
  24174. }),
  24175. (t.prototype._doUpdateAnimation = function (e, n, i, a, o, s, l) {
  24176. var u = this._polyline,
  24177. f = this._polygon,
  24178. h = e.hostModel,
  24179. c = XI(
  24180. this._data,
  24181. e,
  24182. this._stackedOnPoints,
  24183. n,
  24184. this._coordSys,
  24185. i,
  24186. this._valueOrigin
  24187. ),
  24188. v = c.current,
  24189. d = c.stackedOnCurrent,
  24190. p = c.next,
  24191. g = c.stackedOnNext
  24192. if (
  24193. (o &&
  24194. ((v = zr(c.current, i, o, l)),
  24195. (d = zr(c.stackedOnCurrent, i, o, l)),
  24196. (p = zr(c.next, i, o, l)),
  24197. (g = zr(c.stackedOnNext, i, o, l))),
  24198. Ly(v, p) > 3e3 || (f && Ly(d, g) > 3e3))
  24199. ) {
  24200. u.stopAnimation(),
  24201. u.setShape({ points: p }),
  24202. f &&
  24203. (f.stopAnimation(), f.setShape({ points: p, stackedOnPoints: g }))
  24204. return
  24205. }
  24206. ;(u.shape.__points = c.current), (u.shape.points = v)
  24207. var m = { shape: { points: p } }
  24208. c.current !== v && (m.shape.__points = c.next),
  24209. u.stopAnimation(),
  24210. kt(u, m, h),
  24211. f &&
  24212. (f.setShape({ points: v, stackedOnPoints: d }),
  24213. f.stopAnimation(),
  24214. kt(f, { shape: { stackedOnPoints: g } }, h),
  24215. u.shape.points !== f.shape.points &&
  24216. (f.shape.points = u.shape.points))
  24217. for (var y = [], _ = c.status, S = 0; S < _.length; S++) {
  24218. var w = _[S].cmd
  24219. if (w === '=') {
  24220. var x = e.getItemGraphicEl(_[S].idx1)
  24221. x && y.push({ el: x, ptIdx: S })
  24222. }
  24223. }
  24224. u.animators &&
  24225. u.animators.length &&
  24226. u.animators[0].during(function () {
  24227. f && f.dirtyShape()
  24228. for (var b = u.shape.__points, T = 0; T < y.length; T++) {
  24229. var C = y[T].el,
  24230. M = y[T].ptIdx * 2
  24231. ;(C.x = b[M]), (C.y = b[M + 1]), C.markRedraw()
  24232. }
  24233. })
  24234. }),
  24235. (t.prototype.remove = function (e) {
  24236. var n = this.group,
  24237. i = this._data
  24238. this._lineGroup.removeAll(),
  24239. this._symbolDraw.remove(!0),
  24240. i &&
  24241. i.eachItemGraphicEl(function (a, o) {
  24242. a.__temp && (n.remove(a), i.setItemGraphicEl(o, null))
  24243. }),
  24244. (this._polyline =
  24245. this._polygon =
  24246. this._coordSys =
  24247. this._points =
  24248. this._stackedOnPoints =
  24249. this._endLabel =
  24250. this._data =
  24251. null)
  24252. }),
  24253. (t.type = 'line'),
  24254. t
  24255. )
  24256. })(Qe),
  24257. uL = lL
  24258. function fL(r, t) {
  24259. return {
  24260. seriesType: r,
  24261. plan: Yf(),
  24262. reset: function (e) {
  24263. var n = e.getData(),
  24264. i = e.coordinateSystem,
  24265. a = e.pipelineContext,
  24266. o = t || a.large
  24267. if (!!i) {
  24268. var s = G(i.dimensions, function (v) {
  24269. return n.mapDimension(v)
  24270. }).slice(0, 2),
  24271. l = s.length,
  24272. u = n.getCalculationInfo('stackResultDimension')
  24273. Si(n, s[0]) && (s[0] = u), Si(n, s[1]) && (s[1] = u)
  24274. var f = n.getStore(),
  24275. h = n.getDimensionIndex(s[0]),
  24276. c = n.getDimensionIndex(s[1])
  24277. return (
  24278. l && {
  24279. progress: function (v, d) {
  24280. for (
  24281. var p = v.end - v.start,
  24282. g = o && gr(p * l),
  24283. m = [],
  24284. y = [],
  24285. _ = v.start,
  24286. S = 0;
  24287. _ < v.end;
  24288. _++
  24289. ) {
  24290. var w = void 0
  24291. if (l === 1) {
  24292. var x = f.get(h, _)
  24293. w = i.dataToPoint(x, null, y)
  24294. } else
  24295. (m[0] = f.get(h, _)),
  24296. (m[1] = f.get(c, _)),
  24297. (w = i.dataToPoint(m, null, y))
  24298. o
  24299. ? ((g[S++] = w[0]), (g[S++] = w[1]))
  24300. : d.setItemLayout(_, w.slice())
  24301. }
  24302. o && d.setLayout('points', g)
  24303. }
  24304. }
  24305. )
  24306. }
  24307. }
  24308. }
  24309. }
  24310. var hL = {
  24311. average: function (r) {
  24312. for (var t = 0, e = 0, n = 0; n < r.length; n++)
  24313. isNaN(r[n]) || ((t += r[n]), e++)
  24314. return e === 0 ? NaN : t / e
  24315. },
  24316. sum: function (r) {
  24317. for (var t = 0, e = 0; e < r.length; e++) t += r[e] || 0
  24318. return t
  24319. },
  24320. max: function (r) {
  24321. for (var t = -1 / 0, e = 0; e < r.length; e++) r[e] > t && (t = r[e])
  24322. return isFinite(t) ? t : NaN
  24323. },
  24324. min: function (r) {
  24325. for (var t = 1 / 0, e = 0; e < r.length; e++) r[e] < t && (t = r[e])
  24326. return isFinite(t) ? t : NaN
  24327. },
  24328. nearest: function (r) {
  24329. return r[0]
  24330. }
  24331. },
  24332. vL = function (r) {
  24333. return Math.round(r.length / 2)
  24334. }
  24335. function Oy(r) {
  24336. return {
  24337. seriesType: r,
  24338. reset: function (t, e, n) {
  24339. var i = t.getData(),
  24340. a = t.get('sampling'),
  24341. o = t.coordinateSystem,
  24342. s = i.count()
  24343. if (s > 10 && o.type === 'cartesian2d' && a) {
  24344. var l = o.getBaseAxis(),
  24345. u = o.getOtherAxis(l),
  24346. f = l.getExtent(),
  24347. h = n.getDevicePixelRatio(),
  24348. c = Math.abs(f[1] - f[0]) * (h || 1),
  24349. v = Math.round(s / c)
  24350. if (isFinite(v) && v > 1) {
  24351. a === 'lttb' &&
  24352. t.setData(i.lttbDownSample(i.mapDimension(u.dim), 1 / v))
  24353. var d = void 0
  24354. W(a) ? (d = hL[a]) : Q(a) && (d = a),
  24355. d && t.setData(i.downSample(i.mapDimension(u.dim), 1 / v, d, vL))
  24356. }
  24357. }
  24358. }
  24359. }
  24360. }
  24361. function cL(r) {
  24362. r.registerChartView(uL),
  24363. r.registerSeriesModel(GI),
  24364. r.registerLayout(fL('line', !0)),
  24365. r.registerVisual({
  24366. seriesType: 'line',
  24367. reset: function (t) {
  24368. var e = t.getData(),
  24369. n = t.getModel('lineStyle').getLineStyle()
  24370. n && !n.stroke && (n.stroke = e.getVisual('style').fill),
  24371. e.setVisual('legendLineStyle', n)
  24372. }
  24373. }),
  24374. r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC, Oy('line'))
  24375. }
  24376. var ky = (function (r) {
  24377. B(t, r)
  24378. function t() {
  24379. var e = (r !== null && r.apply(this, arguments)) || this
  24380. return (e.type = t.type), e
  24381. }
  24382. return (
  24383. (t.prototype.getInitialData = function (e, n) {
  24384. return mh(null, this, { useEncodeDefaulter: !0 })
  24385. }),
  24386. (t.prototype.getMarkerPosition = function (e) {
  24387. var n = this.coordinateSystem
  24388. if (n && n.clampData) {
  24389. var i = n.dataToPoint(n.clampData(e)),
  24390. a = this.getData(),
  24391. o = a.getLayout('offset'),
  24392. s = a.getLayout('size'),
  24393. l = n.getBaseAxis().isHorizontal() ? 0 : 1
  24394. return (i[l] += o + s / 2), i
  24395. }
  24396. return [NaN, NaN]
  24397. }),
  24398. (t.type = 'series.__base_bar__'),
  24399. (t.defaultOption = {
  24400. z: 2,
  24401. coordinateSystem: 'cartesian2d',
  24402. legendHoverLink: !0,
  24403. barMinHeight: 0,
  24404. barMinAngle: 0,
  24405. large: !1,
  24406. largeThreshold: 400,
  24407. progressive: 3e3,
  24408. progressiveChunkMode: 'mod'
  24409. }),
  24410. t
  24411. )
  24412. })(Er)
  24413. Er.registerClass(ky)
  24414. var By = ky,
  24415. dL = (function (r) {
  24416. B(t, r)
  24417. function t() {
  24418. var e = (r !== null && r.apply(this, arguments)) || this
  24419. return (e.type = t.type), e
  24420. }
  24421. return (
  24422. (t.prototype.getInitialData = function () {
  24423. return mh(null, this, {
  24424. useEncodeDefaulter: !0,
  24425. createInvertedIndices: !!this.get('realtimeSort', !0) || null
  24426. })
  24427. }),
  24428. (t.prototype.getProgressive = function () {
  24429. return this.get('large') ? this.get('progressive') : !1
  24430. }),
  24431. (t.prototype.getProgressiveThreshold = function () {
  24432. var e = this.get('progressiveThreshold'),
  24433. n = this.get('largeThreshold')
  24434. return n > e && (e = n), e
  24435. }),
  24436. (t.prototype.brushSelector = function (e, n, i) {
  24437. return i.rect(n.getItemLayout(e))
  24438. }),
  24439. (t.type = 'series.bar'),
  24440. (t.dependencies = ['grid', 'polar']),
  24441. (t.defaultOption = cs(By.defaultOption, {
  24442. clip: !0,
  24443. roundCap: !1,
  24444. showBackground: !1,
  24445. backgroundStyle: {
  24446. color: 'rgba(180, 180, 180, 0.2)',
  24447. borderColor: null,
  24448. borderWidth: 0,
  24449. borderType: 'solid',
  24450. borderRadius: 0,
  24451. shadowBlur: 0,
  24452. shadowColor: null,
  24453. shadowOffsetX: 0,
  24454. shadowOffsetY: 0,
  24455. opacity: 1
  24456. },
  24457. select: { itemStyle: { borderColor: '#212121' } },
  24458. realtimeSort: !1
  24459. })),
  24460. t
  24461. )
  24462. })(By),
  24463. pL = dL,
  24464. gL = (function () {
  24465. function r() {
  24466. ;(this.cx = 0),
  24467. (this.cy = 0),
  24468. (this.r0 = 0),
  24469. (this.r = 0),
  24470. (this.startAngle = 0),
  24471. (this.endAngle = Math.PI * 2),
  24472. (this.clockwise = !0)
  24473. }
  24474. return r
  24475. })(),
  24476. mL = (function (r) {
  24477. B(t, r)
  24478. function t(e) {
  24479. var n = r.call(this, e) || this
  24480. return (n.type = 'sausage'), n
  24481. }
  24482. return (
  24483. (t.prototype.getDefaultShape = function () {
  24484. return new gL()
  24485. }),
  24486. (t.prototype.buildPath = function (e, n) {
  24487. var i = n.cx,
  24488. a = n.cy,
  24489. o = Math.max(n.r0 || 0, 0),
  24490. s = Math.max(n.r, 0),
  24491. l = (s - o) * 0.5,
  24492. u = o + l,
  24493. f = n.startAngle,
  24494. h = n.endAngle,
  24495. c = n.clockwise,
  24496. v = Math.PI * 2,
  24497. d = c ? h - f < v : f - h < v
  24498. d || (f = h - (c ? v : -v))
  24499. var p = Math.cos(f),
  24500. g = Math.sin(f),
  24501. m = Math.cos(h),
  24502. y = Math.sin(h)
  24503. d
  24504. ? (e.moveTo(p * o + i, g * o + a),
  24505. e.arc(p * u + i, g * u + a, l, -Math.PI + f, f, !c))
  24506. : e.moveTo(p * s + i, g * s + a),
  24507. e.arc(i, a, s, f, h, !c),
  24508. e.arc(m * u + i, y * u + a, l, h - Math.PI * 2, h - Math.PI, !c),
  24509. o !== 0 && e.arc(i, a, o, h, f, c)
  24510. }),
  24511. t
  24512. )
  24513. })(st),
  24514. Ny = mL
  24515. function yL(r, t) {
  24516. t = t || {}
  24517. var e = t.isRoundCap
  24518. return function (n, i, a) {
  24519. var o = i.position
  24520. if (!o || o instanceof Array) return Oo(n, i, a)
  24521. var s = r(o),
  24522. l = i.distance != null ? i.distance : 5,
  24523. u = this.shape,
  24524. f = u.cx,
  24525. h = u.cy,
  24526. c = u.r,
  24527. v = u.r0,
  24528. d = (c + v) / 2,
  24529. p = u.startAngle,
  24530. g = u.endAngle,
  24531. m = (p + g) / 2,
  24532. y = e ? Math.abs(c - v) / 2 : 0,
  24533. _ = Math.cos,
  24534. S = Math.sin,
  24535. w = f + c * _(p),
  24536. x = h + c * S(p),
  24537. b = 'left',
  24538. T = 'top'
  24539. switch (s) {
  24540. case 'startArc':
  24541. ;(w = f + (v - l) * _(m)),
  24542. (x = h + (v - l) * S(m)),
  24543. (b = 'center'),
  24544. (T = 'top')
  24545. break
  24546. case 'insideStartArc':
  24547. ;(w = f + (v + l) * _(m)),
  24548. (x = h + (v + l) * S(m)),
  24549. (b = 'center'),
  24550. (T = 'bottom')
  24551. break
  24552. case 'startAngle':
  24553. ;(w = f + d * _(p) + ul(p, l + y, !1)),
  24554. (x = h + d * S(p) + fl(p, l + y, !1)),
  24555. (b = 'right'),
  24556. (T = 'middle')
  24557. break
  24558. case 'insideStartAngle':
  24559. ;(w = f + d * _(p) + ul(p, -l + y, !1)),
  24560. (x = h + d * S(p) + fl(p, -l + y, !1)),
  24561. (b = 'left'),
  24562. (T = 'middle')
  24563. break
  24564. case 'middle':
  24565. ;(w = f + d * _(m)), (x = h + d * S(m)), (b = 'center'), (T = 'middle')
  24566. break
  24567. case 'endArc':
  24568. ;(w = f + (c + l) * _(m)),
  24569. (x = h + (c + l) * S(m)),
  24570. (b = 'center'),
  24571. (T = 'bottom')
  24572. break
  24573. case 'insideEndArc':
  24574. ;(w = f + (c - l) * _(m)),
  24575. (x = h + (c - l) * S(m)),
  24576. (b = 'center'),
  24577. (T = 'top')
  24578. break
  24579. case 'endAngle':
  24580. ;(w = f + d * _(g) + ul(g, l + y, !0)),
  24581. (x = h + d * S(g) + fl(g, l + y, !0)),
  24582. (b = 'left'),
  24583. (T = 'middle')
  24584. break
  24585. case 'insideEndAngle':
  24586. ;(w = f + d * _(g) + ul(g, -l + y, !0)),
  24587. (x = h + d * S(g) + fl(g, -l + y, !0)),
  24588. (b = 'right'),
  24589. (T = 'middle')
  24590. break
  24591. default:
  24592. return Oo(n, i, a)
  24593. }
  24594. return (
  24595. (n = n || {}),
  24596. (n.x = w),
  24597. (n.y = x),
  24598. (n.align = b),
  24599. (n.verticalAlign = T),
  24600. n
  24601. )
  24602. }
  24603. }
  24604. function _L(r, t, e, n) {
  24605. if (dt(n)) {
  24606. r.setTextConfig({ rotation: n })
  24607. return
  24608. } else if (z(t)) {
  24609. r.setTextConfig({ rotation: 0 })
  24610. return
  24611. }
  24612. var i = r.shape,
  24613. a = i.clockwise ? i.startAngle : i.endAngle,
  24614. o = i.clockwise ? i.endAngle : i.startAngle,
  24615. s = (a + o) / 2,
  24616. l,
  24617. u = e(t)
  24618. switch (u) {
  24619. case 'startArc':
  24620. case 'insideStartArc':
  24621. case 'middle':
  24622. case 'insideEndArc':
  24623. case 'endArc':
  24624. l = s
  24625. break
  24626. case 'startAngle':
  24627. case 'insideStartAngle':
  24628. l = a
  24629. break
  24630. case 'endAngle':
  24631. case 'insideEndAngle':
  24632. l = o
  24633. break
  24634. default:
  24635. r.setTextConfig({ rotation: 0 })
  24636. return
  24637. }
  24638. var f = Math.PI * 1.5 - l
  24639. u === 'middle' && f > Math.PI / 2 && f < Math.PI * 1.5 && (f -= Math.PI),
  24640. r.setTextConfig({ rotation: f })
  24641. }
  24642. function ul(r, t, e) {
  24643. return t * Math.sin(r) * (e ? -1 : 1)
  24644. }
  24645. function fl(r, t, e) {
  24646. return t * Math.cos(r) * (e ? 1 : -1)
  24647. }
  24648. var Oh = Math.max,
  24649. kh = Math.min
  24650. function SL(r, t) {
  24651. var e = r.getArea && r.getArea()
  24652. if (Rh(r, 'cartesian2d')) {
  24653. var n = r.getBaseAxis()
  24654. if (n.type !== 'category' || !n.onBand) {
  24655. var i = t.getLayout('bandWidth')
  24656. n.isHorizontal()
  24657. ? ((e.x -= i), (e.width += i * 2))
  24658. : ((e.y -= i), (e.height += i * 2))
  24659. }
  24660. }
  24661. return e
  24662. }
  24663. var xL = (function (r) {
  24664. B(t, r)
  24665. function t() {
  24666. var e = r.call(this) || this
  24667. return (e.type = t.type), (e._isFirstFrame = !0), e
  24668. }
  24669. return (
  24670. (t.prototype.render = function (e, n, i, a) {
  24671. ;(this._model = e),
  24672. this._removeOnRenderedListener(i),
  24673. this._updateDrawMode(e)
  24674. var o = e.get('coordinateSystem')
  24675. ;(o === 'cartesian2d' || o === 'polar') &&
  24676. ((this._progressiveEls = null),
  24677. this._isLargeDraw
  24678. ? this._renderLarge(e, n, i)
  24679. : this._renderNormal(e, n, i, a))
  24680. }),
  24681. (t.prototype.incrementalPrepareRender = function (e) {
  24682. this._clear(), this._updateDrawMode(e), this._updateLargeClip(e)
  24683. }),
  24684. (t.prototype.incrementalRender = function (e, n) {
  24685. ;(this._progressiveEls = []), this._incrementalRenderLarge(e, n)
  24686. }),
  24687. (t.prototype.eachRendered = function (e) {
  24688. hs(this._progressiveEls || this.group, e)
  24689. }),
  24690. (t.prototype._updateDrawMode = function (e) {
  24691. var n = e.pipelineContext.large
  24692. ;(this._isLargeDraw == null || n !== this._isLargeDraw) &&
  24693. ((this._isLargeDraw = n), this._clear())
  24694. }),
  24695. (t.prototype._renderNormal = function (e, n, i, a) {
  24696. var o = this.group,
  24697. s = e.getData(),
  24698. l = this._data,
  24699. u = e.coordinateSystem,
  24700. f = u.getBaseAxis(),
  24701. h
  24702. u.type === 'cartesian2d'
  24703. ? (h = f.isHorizontal())
  24704. : u.type === 'polar' && (h = f.dim === 'angle')
  24705. var c = e.isAnimationEnabled() ? e : null,
  24706. v = wL(e, u)
  24707. v && this._enableRealtimeSort(v, s, i)
  24708. var d = e.get('clip', !0) || v,
  24709. p = SL(u, s)
  24710. o.removeClipPath()
  24711. var g = e.get('roundCap', !0),
  24712. m = e.get('showBackground', !0),
  24713. y = e.getModel('backgroundStyle'),
  24714. _ = y.get('borderRadius') || 0,
  24715. S = [],
  24716. w = this._backgroundEls,
  24717. x = a && a.isInitSort,
  24718. b = a && a.type === 'changeAxisOrder'
  24719. function T(D) {
  24720. var I = hl[u.type](s, D),
  24721. L = IL(u, h, I)
  24722. return (
  24723. L.useStyle(y.getItemStyle()),
  24724. u.type === 'cartesian2d' && L.setShape('r', _),
  24725. (S[D] = L),
  24726. L
  24727. )
  24728. }
  24729. s.diff(l)
  24730. .add(function (D) {
  24731. var I = s.getItemModel(D),
  24732. L = hl[u.type](s, D, I)
  24733. if ((m && T(D), !(!s.hasValue(D) || !Hy[u.type](L)))) {
  24734. var P = !1
  24735. d && (P = Fy[u.type](p, L))
  24736. var R = zy[u.type](e, s, D, L, h, c, f.model, !1, g)
  24737. v && (R.forceLabelAnimation = !0),
  24738. Uy(R, s, D, I, L, e, h, u.type === 'polar'),
  24739. x
  24740. ? R.attr({ shape: L })
  24741. : v
  24742. ? Vy(v, c, R, L, D, h, !1, !1)
  24743. : Wt(R, { shape: L }, e, D),
  24744. s.setItemGraphicEl(D, R),
  24745. o.add(R),
  24746. (R.ignore = P)
  24747. }
  24748. })
  24749. .update(function (D, I) {
  24750. var L = s.getItemModel(D),
  24751. P = hl[u.type](s, D, L)
  24752. if (m) {
  24753. var R = void 0
  24754. w.length === 0
  24755. ? (R = T(I))
  24756. : ((R = w[I]),
  24757. R.useStyle(y.getItemStyle()),
  24758. u.type === 'cartesian2d' && R.setShape('r', _),
  24759. (S[D] = R))
  24760. var O = hl[u.type](s, D),
  24761. U = Xy(h, O, u)
  24762. kt(R, { shape: U }, c, D)
  24763. }
  24764. var k = l.getItemGraphicEl(I)
  24765. if (!s.hasValue(D) || !Hy[u.type](P)) {
  24766. o.remove(k)
  24767. return
  24768. }
  24769. var F = !1
  24770. if (
  24771. (d && ((F = Fy[u.type](p, P)), F && o.remove(k)),
  24772. k ? lf(k) : (k = zy[u.type](e, s, D, P, h, c, f.model, !!k, g)),
  24773. v && (k.forceLabelAnimation = !0),
  24774. b)
  24775. ) {
  24776. var H = k.getTextContent()
  24777. if (H) {
  24778. var $ = si(H)
  24779. $.prevValue != null && ($.prevValue = $.value)
  24780. }
  24781. } else Uy(k, s, D, L, P, e, h, u.type === 'polar')
  24782. x
  24783. ? k.attr({ shape: P })
  24784. : v
  24785. ? Vy(v, c, k, P, D, h, !0, b)
  24786. : kt(k, { shape: P }, e, D, null),
  24787. s.setItemGraphicEl(D, k),
  24788. (k.ignore = F),
  24789. o.add(k)
  24790. })
  24791. .remove(function (D) {
  24792. var I = l.getItemGraphicEl(D)
  24793. I && as(I, e, D)
  24794. })
  24795. .execute()
  24796. var C = this._backgroundGroup || (this._backgroundGroup = new At())
  24797. C.removeAll()
  24798. for (var M = 0; M < S.length; ++M) C.add(S[M])
  24799. o.add(C), (this._backgroundEls = S), (this._data = s)
  24800. }),
  24801. (t.prototype._renderLarge = function (e, n, i) {
  24802. this._clear(), Zy(e, this.group), this._updateLargeClip(e)
  24803. }),
  24804. (t.prototype._incrementalRenderLarge = function (e, n) {
  24805. this._removeBackground(), Zy(n, this.group, this._progressiveEls, !0)
  24806. }),
  24807. (t.prototype._updateLargeClip = function (e) {
  24808. var n = e.get('clip', !0) && JI(e.coordinateSystem, !1, e),
  24809. i = this.group
  24810. n ? i.setClipPath(n) : i.removeClipPath()
  24811. }),
  24812. (t.prototype._enableRealtimeSort = function (e, n, i) {
  24813. var a = this
  24814. if (!!n.count()) {
  24815. var o = e.baseAxis
  24816. if (this._isFirstFrame)
  24817. this._dispatchInitSort(n, e, i), (this._isFirstFrame = !1)
  24818. else {
  24819. var s = function (l) {
  24820. var u = n.getItemGraphicEl(l),
  24821. f = u && u.shape
  24822. return (f && Math.abs(o.isHorizontal() ? f.height : f.width)) || 0
  24823. }
  24824. ;(this._onRendered = function () {
  24825. a._updateSortWithinSameData(n, s, o, i)
  24826. }),
  24827. i.getZr().on('rendered', this._onRendered)
  24828. }
  24829. }
  24830. }),
  24831. (t.prototype._dataSort = function (e, n, i) {
  24832. var a = []
  24833. return (
  24834. e.each(e.mapDimension(n.dim), function (o, s) {
  24835. var l = i(s)
  24836. ;(l = l == null ? NaN : l),
  24837. a.push({ dataIndex: s, mappedValue: l, ordinalNumber: o })
  24838. }),
  24839. a.sort(function (o, s) {
  24840. return s.mappedValue - o.mappedValue
  24841. }),
  24842. {
  24843. ordinalNumbers: G(a, function (o) {
  24844. return o.ordinalNumber
  24845. })
  24846. }
  24847. )
  24848. }),
  24849. (t.prototype._isOrderChangedWithinSameData = function (e, n, i) {
  24850. for (
  24851. var a = i.scale,
  24852. o = e.mapDimension(i.dim),
  24853. s = Number.MAX_VALUE,
  24854. l = 0,
  24855. u = a.getOrdinalMeta().categories.length;
  24856. l < u;
  24857. ++l
  24858. ) {
  24859. var f = e.rawIndexOf(o, a.getRawOrdinalNumber(l)),
  24860. h = f < 0 ? Number.MIN_VALUE : n(e.indexOfRawIndex(f))
  24861. if (h > s) return !0
  24862. s = h
  24863. }
  24864. return !1
  24865. }),
  24866. (t.prototype._isOrderDifferentInView = function (e, n) {
  24867. for (
  24868. var i = n.scale,
  24869. a = i.getExtent(),
  24870. o = Math.max(0, a[0]),
  24871. s = Math.min(a[1], i.getOrdinalMeta().categories.length - 1);
  24872. o <= s;
  24873. ++o
  24874. )
  24875. if (e.ordinalNumbers[o] !== i.getRawOrdinalNumber(o)) return !0
  24876. }),
  24877. (t.prototype._updateSortWithinSameData = function (e, n, i, a) {
  24878. if (!!this._isOrderChangedWithinSameData(e, n, i)) {
  24879. var o = this._dataSort(e, i, n)
  24880. this._isOrderDifferentInView(o, i) &&
  24881. (this._removeOnRenderedListener(a),
  24882. a.dispatchAction({
  24883. type: 'changeAxisOrder',
  24884. componentType: i.dim + 'Axis',
  24885. axisId: i.index,
  24886. sortInfo: o
  24887. }))
  24888. }
  24889. }),
  24890. (t.prototype._dispatchInitSort = function (e, n, i) {
  24891. var a = n.baseAxis,
  24892. o = this._dataSort(e, a, function (s) {
  24893. return e.get(e.mapDimension(n.otherAxis.dim), s)
  24894. })
  24895. i.dispatchAction({
  24896. type: 'changeAxisOrder',
  24897. componentType: a.dim + 'Axis',
  24898. isInitSort: !0,
  24899. axisId: a.index,
  24900. sortInfo: o
  24901. })
  24902. }),
  24903. (t.prototype.remove = function (e, n) {
  24904. this._clear(this._model), this._removeOnRenderedListener(n)
  24905. }),
  24906. (t.prototype.dispose = function (e, n) {
  24907. this._removeOnRenderedListener(n)
  24908. }),
  24909. (t.prototype._removeOnRenderedListener = function (e) {
  24910. this._onRendered &&
  24911. (e.getZr().off('rendered', this._onRendered),
  24912. (this._onRendered = null))
  24913. }),
  24914. (t.prototype._clear = function (e) {
  24915. var n = this.group,
  24916. i = this._data
  24917. e && e.isAnimationEnabled() && i && !this._isLargeDraw
  24918. ? (this._removeBackground(),
  24919. (this._backgroundEls = []),
  24920. i.eachItemGraphicEl(function (a) {
  24921. as(a, e, ct(a).dataIndex)
  24922. }))
  24923. : n.removeAll(),
  24924. (this._data = null),
  24925. (this._isFirstFrame = !0)
  24926. }),
  24927. (t.prototype._removeBackground = function () {
  24928. this.group.remove(this._backgroundGroup), (this._backgroundGroup = null)
  24929. }),
  24930. (t.type = 'bar'),
  24931. t
  24932. )
  24933. })(Qe),
  24934. Fy = {
  24935. cartesian2d: function (r, t) {
  24936. var e = t.width < 0 ? -1 : 1,
  24937. n = t.height < 0 ? -1 : 1
  24938. e < 0 && ((t.x += t.width), (t.width = -t.width)),
  24939. n < 0 && ((t.y += t.height), (t.height = -t.height))
  24940. var i = r.x + r.width,
  24941. a = r.y + r.height,
  24942. o = Oh(t.x, r.x),
  24943. s = kh(t.x + t.width, i),
  24944. l = Oh(t.y, r.y),
  24945. u = kh(t.y + t.height, a),
  24946. f = s < o,
  24947. h = u < l
  24948. return (
  24949. (t.x = f && o > i ? s : o),
  24950. (t.y = h && l > a ? u : l),
  24951. (t.width = f ? 0 : s - o),
  24952. (t.height = h ? 0 : u - l),
  24953. e < 0 && ((t.x += t.width), (t.width = -t.width)),
  24954. n < 0 && ((t.y += t.height), (t.height = -t.height)),
  24955. f || h
  24956. )
  24957. },
  24958. polar: function (r, t) {
  24959. var e = t.r0 <= t.r ? 1 : -1
  24960. if (e < 0) {
  24961. var n = t.r
  24962. ;(t.r = t.r0), (t.r0 = n)
  24963. }
  24964. var i = kh(t.r, r.r),
  24965. a = Oh(t.r0, r.r0)
  24966. ;(t.r = i), (t.r0 = a)
  24967. var o = i - a < 0
  24968. if (e < 0) {
  24969. var n = t.r
  24970. ;(t.r = t.r0), (t.r0 = n)
  24971. }
  24972. return o
  24973. }
  24974. },
  24975. zy = {
  24976. cartesian2d: function (r, t, e, n, i, a, o, s, l) {
  24977. var u = new St({ shape: N({}, n), z2: 1 })
  24978. if (((u.__dataIndex = e), (u.name = 'item'), a)) {
  24979. var f = u.shape,
  24980. h = i ? 'height' : 'width'
  24981. f[h] = 0
  24982. }
  24983. return u
  24984. },
  24985. polar: function (r, t, e, n, i, a, o, s, l) {
  24986. var u = !i && l ? Ny : hr,
  24987. f = new u({ shape: n, z2: 1 })
  24988. f.name = 'item'
  24989. var h = Wy(i)
  24990. if (((f.calculateTextPosition = yL(h, { isRoundCap: u === Ny })), a)) {
  24991. var c = f.shape,
  24992. v = i ? 'r' : 'endAngle',
  24993. d = {}
  24994. ;(c[v] = i ? 0 : n.startAngle),
  24995. (d[v] = n[v]),
  24996. (s ? kt : Wt)(f, { shape: d }, a)
  24997. }
  24998. return f
  24999. }
  25000. }
  25001. function wL(r, t) {
  25002. var e = r.get('realtimeSort', !0),
  25003. n = t.getBaseAxis()
  25004. if (e && n.type === 'category' && t.type === 'cartesian2d')
  25005. return { baseAxis: n, otherAxis: t.getOtherAxis(n) }
  25006. }
  25007. function Vy(r, t, e, n, i, a, o, s) {
  25008. var l, u
  25009. a
  25010. ? ((u = { x: n.x, width: n.width }), (l = { y: n.y, height: n.height }))
  25011. : ((u = { y: n.y, height: n.height }), (l = { x: n.x, width: n.width })),
  25012. s || (o ? kt : Wt)(e, { shape: l }, t, i, null)
  25013. var f = t ? r.baseAxis.model : null
  25014. ;(o ? kt : Wt)(e, { shape: u }, f, i)
  25015. }
  25016. function Gy(r, t) {
  25017. for (var e = 0; e < t.length; e++) if (!isFinite(r[t[e]])) return !0
  25018. return !1
  25019. }
  25020. var bL = ['x', 'y', 'width', 'height'],
  25021. TL = ['cx', 'cy', 'r', 'startAngle', 'endAngle'],
  25022. Hy = {
  25023. cartesian2d: function (r) {
  25024. return !Gy(r, bL)
  25025. },
  25026. polar: function (r) {
  25027. return !Gy(r, TL)
  25028. }
  25029. },
  25030. hl = {
  25031. cartesian2d: function (r, t, e) {
  25032. var n = r.getItemLayout(t),
  25033. i = e ? AL(e, n) : 0,
  25034. a = n.width > 0 ? 1 : -1,
  25035. o = n.height > 0 ? 1 : -1
  25036. return {
  25037. x: n.x + (a * i) / 2,
  25038. y: n.y + (o * i) / 2,
  25039. width: n.width - a * i,
  25040. height: n.height - o * i
  25041. }
  25042. },
  25043. polar: function (r, t, e) {
  25044. var n = r.getItemLayout(t)
  25045. return {
  25046. cx: n.cx,
  25047. cy: n.cy,
  25048. r0: n.r0,
  25049. r: n.r,
  25050. startAngle: n.startAngle,
  25051. endAngle: n.endAngle,
  25052. clockwise: n.clockwise
  25053. }
  25054. }
  25055. }
  25056. function CL(r) {
  25057. return (
  25058. r.startAngle != null && r.endAngle != null && r.startAngle === r.endAngle
  25059. )
  25060. }
  25061. function Wy(r) {
  25062. return (function (t) {
  25063. var e = t ? 'Arc' : 'Angle'
  25064. return function (n) {
  25065. switch (n) {
  25066. case 'start':
  25067. case 'insideStart':
  25068. case 'end':
  25069. case 'insideEnd':
  25070. return n + e
  25071. default:
  25072. return n
  25073. }
  25074. }
  25075. })(r)
  25076. }
  25077. function Uy(r, t, e, n, i, a, o, s) {
  25078. var l = t.getItemVisual(e, 'style')
  25079. s || r.setShape('r', n.get(['itemStyle', 'borderRadius']) || 0), r.useStyle(l)
  25080. var u = n.getShallow('cursor')
  25081. u && r.attr('cursor', u)
  25082. var f = s
  25083. ? o
  25084. ? i.r >= i.r0
  25085. ? 'endArc'
  25086. : 'startArc'
  25087. : i.endAngle >= i.startAngle
  25088. ? 'endAngle'
  25089. : 'startAngle'
  25090. : o
  25091. ? i.height >= 0
  25092. ? 'bottom'
  25093. : 'top'
  25094. : i.width >= 0
  25095. ? 'right'
  25096. : 'left',
  25097. h = va(n)
  25098. ha(r, h, {
  25099. labelFetcher: a,
  25100. labelDataIndex: e,
  25101. defaultText: Dh(a.getData(), e),
  25102. inheritColor: l.fill,
  25103. defaultOpacity: l.opacity,
  25104. defaultOutsidePosition: f
  25105. })
  25106. var c = r.getTextContent()
  25107. if (s && c) {
  25108. var v = n.get(['label', 'position'])
  25109. ;(r.textConfig.inside = v === 'middle' ? !0 : null),
  25110. _L(r, v === 'outside' ? f : v, Wy(o), n.get(['label', 'rotate']))
  25111. }
  25112. BC(c, h, a.getRawValue(e), function (p) {
  25113. return Sy(t, p)
  25114. })
  25115. var d = n.getModel(['emphasis'])
  25116. aa(r, d.get('focus'), d.get('blurScope'), d.get('disabled')),
  25117. Ko(r, n),
  25118. CL(i) &&
  25119. ((r.style.fill = 'none'),
  25120. (r.style.stroke = 'none'),
  25121. A(r.states, function (p) {
  25122. p.style && (p.style.fill = p.style.stroke = 'none')
  25123. }))
  25124. }
  25125. function AL(r, t) {
  25126. var e = r.get(['itemStyle', 'borderColor'])
  25127. if (!e || e === 'none') return 0
  25128. var n = r.get(['itemStyle', 'borderWidth']) || 0,
  25129. i = isNaN(t.width) ? Number.MAX_VALUE : Math.abs(t.width),
  25130. a = isNaN(t.height) ? Number.MAX_VALUE : Math.abs(t.height)
  25131. return Math.min(n, i, a)
  25132. }
  25133. var ML = (function () {
  25134. function r() {}
  25135. return r
  25136. })(),
  25137. Yy = (function (r) {
  25138. B(t, r)
  25139. function t(e) {
  25140. var n = r.call(this, e) || this
  25141. return (n.type = 'largeBar'), n
  25142. }
  25143. return (
  25144. (t.prototype.getDefaultShape = function () {
  25145. return new ML()
  25146. }),
  25147. (t.prototype.buildPath = function (e, n) {
  25148. for (
  25149. var i = n.points,
  25150. a = this.baseDimIdx,
  25151. o = 1 - this.baseDimIdx,
  25152. s = [],
  25153. l = [],
  25154. u = this.barWidth,
  25155. f = 0;
  25156. f < i.length;
  25157. f += 3
  25158. )
  25159. (l[a] = u),
  25160. (l[o] = i[f + 2]),
  25161. (s[a] = i[f + a]),
  25162. (s[o] = i[f + o]),
  25163. e.rect(s[0], s[1], l[0], l[1])
  25164. }),
  25165. t
  25166. )
  25167. })(st)
  25168. function Zy(r, t, e, n) {
  25169. var i = r.getData(),
  25170. a = i.getLayout('valueAxisHorizontal') ? 1 : 0,
  25171. o = i.getLayout('largeDataIndices'),
  25172. s = i.getLayout('size'),
  25173. l = r.getModel('backgroundStyle'),
  25174. u = i.getLayout('largeBackgroundPoints')
  25175. if (u) {
  25176. var f = new Yy({
  25177. shape: { points: u },
  25178. incremental: !!n,
  25179. silent: !0,
  25180. z2: 0
  25181. })
  25182. ;(f.baseDimIdx = a),
  25183. (f.largeDataIndices = o),
  25184. (f.barWidth = s),
  25185. f.useStyle(l.getItemStyle()),
  25186. t.add(f),
  25187. e && e.push(f)
  25188. }
  25189. var h = new Yy({
  25190. shape: { points: i.getLayout('largePoints') },
  25191. incremental: !!n,
  25192. z2: 1
  25193. })
  25194. ;(h.baseDimIdx = a),
  25195. (h.largeDataIndices = o),
  25196. (h.barWidth = s),
  25197. t.add(h),
  25198. h.useStyle(i.getVisual('style')),
  25199. (ct(h).seriesIndex = r.seriesIndex),
  25200. r.get('silent') || (h.on('mousedown', $y), h.on('mousemove', $y)),
  25201. e && e.push(h)
  25202. }
  25203. var $y = $f(
  25204. function (r) {
  25205. var t = this,
  25206. e = DL(t, r.offsetX, r.offsetY)
  25207. ct(t).dataIndex = e >= 0 ? e : null
  25208. },
  25209. 30,
  25210. !1
  25211. )
  25212. function DL(r, t, e) {
  25213. for (
  25214. var n = r.baseDimIdx,
  25215. i = 1 - n,
  25216. a = r.shape.points,
  25217. o = r.largeDataIndices,
  25218. s = [],
  25219. l = [],
  25220. u = r.barWidth,
  25221. f = 0,
  25222. h = a.length / 3;
  25223. f < h;
  25224. f++
  25225. ) {
  25226. var c = f * 3
  25227. if (
  25228. ((l[n] = u),
  25229. (l[i] = a[c + 2]),
  25230. (s[n] = a[c + n]),
  25231. (s[i] = a[c + i]),
  25232. l[i] < 0 && ((s[i] += l[i]), (l[i] = -l[i])),
  25233. t >= s[0] && t <= s[0] + l[0] && e >= s[1] && e <= s[1] + l[1])
  25234. )
  25235. return o[f]
  25236. }
  25237. return -1
  25238. }
  25239. function Xy(r, t, e) {
  25240. if (Rh(e, 'cartesian2d')) {
  25241. var n = t,
  25242. i = e.getArea()
  25243. return {
  25244. x: r ? n.x : i.x,
  25245. y: r ? i.y : n.y,
  25246. width: r ? n.width : i.width,
  25247. height: r ? i.height : n.height
  25248. }
  25249. } else {
  25250. var i = e.getArea(),
  25251. a = t
  25252. return {
  25253. cx: i.cx,
  25254. cy: i.cy,
  25255. r0: r ? i.r0 : a.r0,
  25256. r: r ? i.r : a.r,
  25257. startAngle: r ? a.startAngle : 0,
  25258. endAngle: r ? a.endAngle : Math.PI * 2
  25259. }
  25260. }
  25261. }
  25262. function IL(r, t, e) {
  25263. var n = r.type === 'polar' ? hr : St
  25264. return new n({ shape: Xy(t, e, r), silent: !0, z2: 0 })
  25265. }
  25266. var LL = xL
  25267. function PL(r) {
  25268. r.registerChartView(LL),
  25269. r.registerSeriesModel(pL),
  25270. r.registerLayout(r.PRIORITY.VISUAL.LAYOUT, lt(H2, 'bar')),
  25271. r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT, W2('bar')),
  25272. r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC, Oy('bar')),
  25273. r.registerAction(
  25274. { type: 'changeAxisOrder', event: 'changeAxisOrder', update: 'update' },
  25275. function (t, e) {
  25276. var n = t.componentType || 'series'
  25277. e.eachComponent({ mainType: n, query: t }, function (i) {
  25278. t.sortInfo && i.axis.setCategorySortInfo(t.sortInfo)
  25279. })
  25280. }
  25281. )
  25282. }
  25283. var vl = Math.PI * 2,
  25284. qy = Math.PI / 180
  25285. function Ky(r, t) {
  25286. return cr(r.getBoxLayoutParams(), {
  25287. width: t.getWidth(),
  25288. height: t.getHeight()
  25289. })
  25290. }
  25291. function Qy(r, t) {
  25292. var e = Ky(r, t),
  25293. n = r.get('center'),
  25294. i = r.get('radius')
  25295. z(i) || (i = [0, i]), z(n) || (n = [n, n])
  25296. var a = yt(e.width, t.getWidth()),
  25297. o = yt(e.height, t.getHeight()),
  25298. s = Math.min(a, o),
  25299. l = yt(n[0], a) + e.x,
  25300. u = yt(n[1], o) + e.y,
  25301. f = yt(i[0], s / 2),
  25302. h = yt(i[1], s / 2)
  25303. return { cx: l, cy: u, r0: f, r: h }
  25304. }
  25305. function RL(r, t, e) {
  25306. t.eachSeriesByType(r, function (n) {
  25307. var i = n.getData(),
  25308. a = i.mapDimension('value'),
  25309. o = Ky(n, e),
  25310. s = Qy(n, e),
  25311. l = s.cx,
  25312. u = s.cy,
  25313. f = s.r,
  25314. h = s.r0,
  25315. c = -n.get('startAngle') * qy,
  25316. v = n.get('minAngle') * qy,
  25317. d = 0
  25318. i.each(a, function (M) {
  25319. !isNaN(M) && d++
  25320. })
  25321. var p = i.getSum(a),
  25322. g = (Math.PI / (p || d)) * 2,
  25323. m = n.get('clockwise'),
  25324. y = n.get('roseType'),
  25325. _ = n.get('stillShowZeroSum'),
  25326. S = i.getDataExtent(a)
  25327. S[0] = 0
  25328. var w = vl,
  25329. x = 0,
  25330. b = c,
  25331. T = m ? 1 : -1
  25332. if (
  25333. (i.setLayout({ viewRect: o, r: f }),
  25334. i.each(a, function (M, D) {
  25335. var I
  25336. if (isNaN(M)) {
  25337. i.setItemLayout(D, {
  25338. angle: NaN,
  25339. startAngle: NaN,
  25340. endAngle: NaN,
  25341. clockwise: m,
  25342. cx: l,
  25343. cy: u,
  25344. r0: h,
  25345. r: y ? NaN : f
  25346. })
  25347. return
  25348. }
  25349. y !== 'area' ? (I = p === 0 && _ ? g : M * g) : (I = vl / d),
  25350. I < v ? ((I = v), (w -= v)) : (x += M)
  25351. var L = b + T * I
  25352. i.setItemLayout(D, {
  25353. angle: I,
  25354. startAngle: b,
  25355. endAngle: L,
  25356. clockwise: m,
  25357. cx: l,
  25358. cy: u,
  25359. r0: h,
  25360. r: y ? Bt(M, S, [h, f]) : f
  25361. }),
  25362. (b = L)
  25363. }),
  25364. w < vl && d)
  25365. )
  25366. if (w <= 0.001) {
  25367. var C = vl / d
  25368. i.each(a, function (M, D) {
  25369. if (!isNaN(M)) {
  25370. var I = i.getItemLayout(D)
  25371. ;(I.angle = C),
  25372. (I.startAngle = c + T * D * C),
  25373. (I.endAngle = c + T * (D + 1) * C)
  25374. }
  25375. })
  25376. } else
  25377. (g = w / x),
  25378. (b = c),
  25379. i.each(a, function (M, D) {
  25380. if (!isNaN(M)) {
  25381. var I = i.getItemLayout(D),
  25382. L = I.angle === v ? v : M * g
  25383. ;(I.startAngle = b), (I.endAngle = b + T * L), (b += T * L)
  25384. }
  25385. })
  25386. })
  25387. }
  25388. function EL(r) {
  25389. return {
  25390. seriesType: r,
  25391. reset: function (t, e) {
  25392. var n = e.findComponents({ mainType: 'legend' })
  25393. if (!(!n || !n.length)) {
  25394. var i = t.getData()
  25395. i.filterSelf(function (a) {
  25396. for (var o = i.getName(a), s = 0; s < n.length; s++)
  25397. if (!n[s].isSelected(o)) return !1
  25398. return !0
  25399. })
  25400. }
  25401. }
  25402. }
  25403. }
  25404. var OL = Math.PI / 180
  25405. function Jy(r, t, e, n, i, a, o, s, l, u) {
  25406. if (r.length < 2) return
  25407. function f(p) {
  25408. for (var g = p.rB, m = g * g, y = 0; y < p.list.length; y++) {
  25409. var _ = p.list[y],
  25410. S = Math.abs(_.label.y - e),
  25411. w = n + _.len,
  25412. x = w * w,
  25413. b = Math.sqrt((1 - Math.abs((S * S) / m)) * x),
  25414. T = t + (b + _.len2) * i,
  25415. C = T - _.label.x,
  25416. M = _.targetTextWidth - C * i
  25417. jy(_, M, !0), (_.label.x = T)
  25418. }
  25419. }
  25420. function h(p) {
  25421. for (
  25422. var g = { list: [], maxY: 0 }, m = { list: [], maxY: 0 }, y = 0;
  25423. y < p.length;
  25424. y++
  25425. )
  25426. if (p[y].labelAlignTo === 'none') {
  25427. var _ = p[y],
  25428. S = _.label.y > e ? m : g,
  25429. w = Math.abs(_.label.y - e)
  25430. if (w >= S.maxY) {
  25431. var x = _.label.x - t - _.len2 * i,
  25432. b = n + _.len,
  25433. T = Math.abs(x) < b ? Math.sqrt((w * w) / (1 - (x * x) / b / b)) : b
  25434. ;(S.rB = T), (S.maxY = w)
  25435. }
  25436. S.list.push(_)
  25437. }
  25438. f(g), f(m)
  25439. }
  25440. for (var c = r.length, v = 0; v < c; v++)
  25441. if (r[v].position === 'outer' && r[v].labelAlignTo === 'labelLine') {
  25442. var d = r[v].label.x - u
  25443. ;(r[v].linePoints[1][0] += d), (r[v].label.x = u)
  25444. }
  25445. my(r, l, l + o) && h(r)
  25446. }
  25447. function kL(r, t, e, n, i, a, o, s) {
  25448. for (
  25449. var l = [], u = [], f = Number.MAX_VALUE, h = -Number.MAX_VALUE, c = 0;
  25450. c < r.length;
  25451. c++
  25452. ) {
  25453. var v = r[c].label
  25454. Bh(r[c]) ||
  25455. (v.x < t
  25456. ? ((f = Math.min(f, v.x)), l.push(r[c]))
  25457. : ((h = Math.max(h, v.x)), u.push(r[c])))
  25458. }
  25459. for (var c = 0; c < r.length; c++) {
  25460. var d = r[c]
  25461. if (!Bh(d) && d.linePoints) {
  25462. if (d.labelStyleWidth != null) continue
  25463. var v = d.label,
  25464. p = d.linePoints,
  25465. g = void 0
  25466. d.labelAlignTo === 'edge'
  25467. ? v.x < t
  25468. ? (g = p[2][0] - d.labelDistance - o - d.edgeDistance)
  25469. : (g = o + i - d.edgeDistance - p[2][0] - d.labelDistance)
  25470. : d.labelAlignTo === 'labelLine'
  25471. ? v.x < t
  25472. ? (g = f - o - d.bleedMargin)
  25473. : (g = o + i - h - d.bleedMargin)
  25474. : v.x < t
  25475. ? (g = v.x - o - d.bleedMargin)
  25476. : (g = o + i - v.x - d.bleedMargin),
  25477. (d.targetTextWidth = g),
  25478. jy(d, g)
  25479. }
  25480. }
  25481. Jy(u, t, e, n, 1, i, a, o, s, h), Jy(l, t, e, n, -1, i, a, o, s, f)
  25482. for (var c = 0; c < r.length; c++) {
  25483. var d = r[c]
  25484. if (!Bh(d) && d.linePoints) {
  25485. var v = d.label,
  25486. p = d.linePoints,
  25487. m = d.labelAlignTo === 'edge',
  25488. y = v.style.padding,
  25489. _ = y ? y[1] + y[3] : 0,
  25490. S = v.style.backgroundColor ? 0 : _,
  25491. w = d.rect.width + S,
  25492. x = p[1][0] - p[2][0]
  25493. m
  25494. ? v.x < t
  25495. ? (p[2][0] = o + d.edgeDistance + w + d.labelDistance)
  25496. : (p[2][0] = o + i - d.edgeDistance - w - d.labelDistance)
  25497. : (v.x < t
  25498. ? (p[2][0] = v.x + d.labelDistance)
  25499. : (p[2][0] = v.x - d.labelDistance),
  25500. (p[1][0] = p[2][0] + x)),
  25501. (p[1][1] = p[2][1] = v.y)
  25502. }
  25503. }
  25504. }
  25505. function jy(r, t, e) {
  25506. if ((e === void 0 && (e = !1), r.labelStyleWidth == null)) {
  25507. var n = r.label,
  25508. i = n.style,
  25509. a = r.rect,
  25510. o = i.backgroundColor,
  25511. s = i.padding,
  25512. l = s ? s[1] + s[3] : 0,
  25513. u = i.overflow,
  25514. f = a.width + (o ? 0 : l)
  25515. if (t < f || e) {
  25516. var h = a.height
  25517. if (u && u.match('break')) {
  25518. n.setStyle('backgroundColor', null), n.setStyle('width', t - l)
  25519. var c = n.getBoundingRect()
  25520. n.setStyle('width', Math.ceil(c.width)),
  25521. n.setStyle('backgroundColor', o)
  25522. } else {
  25523. var v = t - l,
  25524. d = t < f ? v : e ? (v > r.unconstrainedWidth ? null : v) : null
  25525. n.setStyle('width', d)
  25526. }
  25527. var p = n.getBoundingRect()
  25528. a.width = p.width
  25529. var g = (n.style.margin || 0) + 2.1
  25530. ;(a.height = p.height + g), (a.y -= (a.height - h) / 2)
  25531. }
  25532. }
  25533. }
  25534. function Bh(r) {
  25535. return r.position === 'center'
  25536. }
  25537. function BL(r) {
  25538. var t = r.getData(),
  25539. e = [],
  25540. n,
  25541. i,
  25542. a = !1,
  25543. o = (r.get('minShowLabelAngle') || 0) * OL,
  25544. s = t.getLayout('viewRect'),
  25545. l = t.getLayout('r'),
  25546. u = s.width,
  25547. f = s.x,
  25548. h = s.y,
  25549. c = s.height
  25550. function v(x) {
  25551. x.ignore = !0
  25552. }
  25553. function d(x) {
  25554. if (!x.ignore) return !0
  25555. for (var b in x.states) if (x.states[b].ignore === !1) return !0
  25556. return !1
  25557. }
  25558. t.each(function (x) {
  25559. var b = t.getItemGraphicEl(x),
  25560. T = b.shape,
  25561. C = b.getTextContent(),
  25562. M = b.getTextGuideLine(),
  25563. D = t.getItemModel(x),
  25564. I = D.getModel('label'),
  25565. L = I.get('position') || D.get(['emphasis', 'label', 'position']),
  25566. P = I.get('distanceToLabelLine'),
  25567. R = I.get('alignTo'),
  25568. O = yt(I.get('edgeDistance'), u),
  25569. U = I.get('bleedMargin'),
  25570. k = D.getModel('labelLine'),
  25571. F = k.get('length')
  25572. F = yt(F, u)
  25573. var H = k.get('length2')
  25574. if (((H = yt(H, u)), Math.abs(T.endAngle - T.startAngle) < o)) {
  25575. A(C.states, v), (C.ignore = !0)
  25576. return
  25577. }
  25578. if (!!d(C)) {
  25579. var $ = (T.startAngle + T.endAngle) / 2,
  25580. J = Math.cos($),
  25581. et = Math.sin($),
  25582. ft,
  25583. Ct,
  25584. mt,
  25585. zt
  25586. ;(n = T.cx), (i = T.cy)
  25587. var Vt = L === 'inside' || L === 'inner'
  25588. if (L === 'center') (ft = T.cx), (Ct = T.cy), (zt = 'center')
  25589. else {
  25590. var It = (Vt ? ((T.r + T.r0) / 2) * J : T.r * J) + n,
  25591. bt = (Vt ? ((T.r + T.r0) / 2) * et : T.r * et) + i
  25592. if (((ft = It + J * 3), (Ct = bt + et * 3), !Vt)) {
  25593. var K = It + J * (F + l - T.r),
  25594. it = bt + et * (F + l - T.r),
  25595. Ne = K + (J < 0 ? -1 : 1) * H,
  25596. Ot = it
  25597. R === 'edge'
  25598. ? (ft = J < 0 ? f + O : f + u - O)
  25599. : (ft = Ne + (J < 0 ? -P : P)),
  25600. (Ct = Ot),
  25601. (mt = [
  25602. [It, bt],
  25603. [K, it],
  25604. [Ne, Ot]
  25605. ])
  25606. }
  25607. zt = Vt
  25608. ? 'center'
  25609. : R === 'edge'
  25610. ? J > 0
  25611. ? 'right'
  25612. : 'left'
  25613. : J > 0
  25614. ? 'left'
  25615. : 'right'
  25616. }
  25617. var _r = Math.PI,
  25618. rr = 0,
  25619. Ii = I.get('rotate')
  25620. if (dt(Ii)) rr = Ii * (_r / 180)
  25621. else if (L === 'center') rr = 0
  25622. else if (Ii === 'radial' || Ii === !0) {
  25623. var cS = J < 0 ? -$ + _r : -$
  25624. rr = cS
  25625. } else if (Ii === 'tangential' && L !== 'outside' && L !== 'outer') {
  25626. var On = Math.atan2(J, et)
  25627. On < 0 && (On = _r * 2 + On)
  25628. var dS = et > 0
  25629. dS && (On = _r + On), (rr = On - _r)
  25630. }
  25631. if (
  25632. ((a = !!rr),
  25633. (C.x = ft),
  25634. (C.y = Ct),
  25635. (C.rotation = rr),
  25636. C.setStyle({ verticalAlign: 'middle' }),
  25637. Vt)
  25638. ) {
  25639. C.setStyle({ align: zt })
  25640. var Al = C.states.select
  25641. Al && ((Al.x += C.x), (Al.y += C.y))
  25642. } else {
  25643. var Li = C.getBoundingRect().clone()
  25644. Li.applyTransform(C.getComputedTransform())
  25645. var zv = (C.style.margin || 0) + 2.1
  25646. ;(Li.y -= zv / 2),
  25647. (Li.height += zv),
  25648. e.push({
  25649. label: C,
  25650. labelLine: M,
  25651. position: L,
  25652. len: F,
  25653. len2: H,
  25654. minTurnAngle: k.get('minTurnAngle'),
  25655. maxSurfaceAngle: k.get('maxSurfaceAngle'),
  25656. surfaceNormal: new Z(J, et),
  25657. linePoints: mt,
  25658. textAlign: zt,
  25659. labelDistance: P,
  25660. labelAlignTo: R,
  25661. edgeDistance: O,
  25662. bleedMargin: U,
  25663. rect: Li,
  25664. unconstrainedWidth: Li.width,
  25665. labelStyleWidth: C.style.width
  25666. })
  25667. }
  25668. b.setTextConfig({ inside: Vt })
  25669. }
  25670. }),
  25671. !a && r.get('avoidLabelOverlap') && kL(e, n, i, l, u, c, f, h)
  25672. for (var p = 0; p < e.length; p++) {
  25673. var g = e[p],
  25674. m = g.label,
  25675. y = g.labelLine,
  25676. _ = isNaN(m.x) || isNaN(m.y)
  25677. if (m) {
  25678. m.setStyle({ align: g.textAlign }), _ && (A(m.states, v), (m.ignore = !0))
  25679. var S = m.states.select
  25680. S && ((S.x += m.x), (S.y += m.y))
  25681. }
  25682. if (y) {
  25683. var w = g.linePoints
  25684. _ || !w
  25685. ? (A(y.states, v), (y.ignore = !0))
  25686. : (hy(w, g.minTurnAngle),
  25687. PI(w, g.surfaceNormal, g.maxSurfaceAngle),
  25688. y.setShape({ points: w }),
  25689. (m.__hostTarget.textGuideLineConfig = {
  25690. anchor: new Z(w[0][0], w[0][1])
  25691. }))
  25692. }
  25693. }
  25694. }
  25695. function cl(r, t, e) {
  25696. var n = r.get('borderRadius')
  25697. if (n == null) return e ? { cornerRadius: 0 } : null
  25698. z(n) || (n = [n, n, n, n])
  25699. var i = Math.abs(t.r || 0 - t.r0 || 0)
  25700. return {
  25701. cornerRadius: G(n, function (a) {
  25702. return Cr(a, i)
  25703. })
  25704. }
  25705. }
  25706. var NL = (function (r) {
  25707. B(t, r)
  25708. function t(e, n, i) {
  25709. var a = r.call(this) || this
  25710. a.z2 = 2
  25711. var o = new Et()
  25712. return a.setTextContent(o), a.updateData(e, n, i, !0), a
  25713. }
  25714. return (
  25715. (t.prototype.updateData = function (e, n, i, a) {
  25716. var o = this,
  25717. s = e.hostModel,
  25718. l = e.getItemModel(n),
  25719. u = l.getModel('emphasis'),
  25720. f = e.getItemLayout(n),
  25721. h = N(cl(l.getModel('itemStyle'), f, !0), f)
  25722. if (isNaN(h.startAngle)) {
  25723. o.setShape(h)
  25724. return
  25725. }
  25726. if (a) {
  25727. o.setShape(h)
  25728. var c = s.getShallow('animationType')
  25729. s.ecModel.ssr
  25730. ? (Wt(o, { scaleX: 0, scaleY: 0 }, s, { dataIndex: n, isFrom: !0 }),
  25731. (o.originX = h.cx),
  25732. (o.originY = h.cy))
  25733. : c === 'scale'
  25734. ? ((o.shape.r = f.r0), Wt(o, { shape: { r: f.r } }, s, n))
  25735. : i != null
  25736. ? (o.setShape({ startAngle: i, endAngle: i }),
  25737. Wt(
  25738. o,
  25739. { shape: { startAngle: f.startAngle, endAngle: f.endAngle } },
  25740. s,
  25741. n
  25742. ))
  25743. : ((o.shape.endAngle = f.startAngle),
  25744. kt(o, { shape: { endAngle: f.endAngle } }, s, n))
  25745. } else lf(o), kt(o, { shape: h }, s, n)
  25746. o.useStyle(e.getItemVisual(n, 'style')), Ko(o, l)
  25747. var v = (f.startAngle + f.endAngle) / 2,
  25748. d = s.get('selectedOffset'),
  25749. p = Math.cos(v) * d,
  25750. g = Math.sin(v) * d,
  25751. m = l.getShallow('cursor')
  25752. m && o.attr('cursor', m),
  25753. this._updateLabel(s, e, n),
  25754. (o.ensureState('emphasis').shape = N(
  25755. { r: f.r + ((u.get('scale') && u.get('scaleSize')) || 0) },
  25756. cl(u.getModel('itemStyle'), f)
  25757. )),
  25758. N(o.ensureState('select'), {
  25759. x: p,
  25760. y: g,
  25761. shape: cl(l.getModel(['select', 'itemStyle']), f)
  25762. }),
  25763. N(o.ensureState('blur'), {
  25764. shape: cl(l.getModel(['blur', 'itemStyle']), f)
  25765. })
  25766. var y = o.getTextGuideLine(),
  25767. _ = o.getTextContent()
  25768. y && N(y.ensureState('select'), { x: p, y: g }),
  25769. N(_.ensureState('select'), { x: p, y: g }),
  25770. aa(this, u.get('focus'), u.get('blurScope'), u.get('disabled'))
  25771. }),
  25772. (t.prototype._updateLabel = function (e, n, i) {
  25773. var a = this,
  25774. o = n.getItemModel(i),
  25775. s = o.getModel('labelLine'),
  25776. l = n.getItemVisual(i, 'style'),
  25777. u = l && l.fill,
  25778. f = l && l.opacity
  25779. ha(a, va(o), {
  25780. labelFetcher: n.hostModel,
  25781. labelDataIndex: i,
  25782. inheritColor: u,
  25783. defaultOpacity: f,
  25784. defaultText: e.getFormattedLabel(i, 'normal') || n.getName(i)
  25785. })
  25786. var h = a.getTextContent()
  25787. a.setTextConfig({ position: null, rotation: null }), h.attr({ z2: 10 })
  25788. var c = e.get(['label', 'position'])
  25789. if (c !== 'outside' && c !== 'outer') a.removeTextGuideLine()
  25790. else {
  25791. var v = this.getTextGuideLine()
  25792. v || ((v = new ai()), this.setTextGuideLine(v)),
  25793. cy(this, dy(o), {
  25794. stroke: u,
  25795. opacity: Oi(s.get(['lineStyle', 'opacity']), f, 1)
  25796. })
  25797. }
  25798. }),
  25799. t
  25800. )
  25801. })(hr),
  25802. FL = (function (r) {
  25803. B(t, r)
  25804. function t() {
  25805. var e = (r !== null && r.apply(this, arguments)) || this
  25806. return (e.ignoreLabelLineUpdate = !0), e
  25807. }
  25808. return (
  25809. (t.prototype.render = function (e, n, i, a) {
  25810. var o = e.getData(),
  25811. s = this._data,
  25812. l = this.group,
  25813. u
  25814. if (!s && o.count() > 0) {
  25815. for (
  25816. var f = o.getItemLayout(0), h = 1;
  25817. isNaN(f && f.startAngle) && h < o.count();
  25818. ++h
  25819. )
  25820. f = o.getItemLayout(h)
  25821. f && (u = f.startAngle)
  25822. }
  25823. if (
  25824. (this._emptyCircleSector && l.remove(this._emptyCircleSector),
  25825. o.count() === 0 && e.get('showEmptyCircle'))
  25826. ) {
  25827. var c = new hr({ shape: Qy(e, i) })
  25828. c.useStyle(e.getModel('emptyCircleStyle').getItemStyle()),
  25829. (this._emptyCircleSector = c),
  25830. l.add(c)
  25831. }
  25832. o
  25833. .diff(s)
  25834. .add(function (v) {
  25835. var d = new NL(o, v, u)
  25836. o.setItemGraphicEl(v, d), l.add(d)
  25837. })
  25838. .update(function (v, d) {
  25839. var p = s.getItemGraphicEl(d)
  25840. p.updateData(o, v, u),
  25841. p.off('click'),
  25842. l.add(p),
  25843. o.setItemGraphicEl(v, p)
  25844. })
  25845. .remove(function (v) {
  25846. var d = s.getItemGraphicEl(v)
  25847. as(d, e, v)
  25848. })
  25849. .execute(),
  25850. BL(e),
  25851. e.get('animationTypeUpdate') !== 'expansion' && (this._data = o)
  25852. }),
  25853. (t.prototype.dispose = function () {}),
  25854. (t.prototype.containPoint = function (e, n) {
  25855. var i = n.getData(),
  25856. a = i.getItemLayout(0)
  25857. if (a) {
  25858. var o = e[0] - a.cx,
  25859. s = e[1] - a.cy,
  25860. l = Math.sqrt(o * o + s * s)
  25861. return l <= a.r && l >= a.r0
  25862. }
  25863. }),
  25864. (t.type = 'pie'),
  25865. t
  25866. )
  25867. })(Qe),
  25868. zL = FL
  25869. function VL(r, t, e) {
  25870. t = (z(t) && { coordDimensions: t }) || N({ encodeDefine: r.getEncode() }, t)
  25871. var n = r.getSource(),
  25872. i = E0(n, t).dimensions,
  25873. a = new R0(i, r)
  25874. return a.initData(n, e), a
  25875. }
  25876. var GL = (function () {
  25877. function r(t, e) {
  25878. ;(this._getDataWithEncodedVisual = t), (this._getRawData = e)
  25879. }
  25880. return (
  25881. (r.prototype.getAllNames = function () {
  25882. var t = this._getRawData()
  25883. return t.mapArray(t.getName)
  25884. }),
  25885. (r.prototype.containName = function (t) {
  25886. var e = this._getRawData()
  25887. return e.indexOfName(t) >= 0
  25888. }),
  25889. (r.prototype.indexOfName = function (t) {
  25890. var e = this._getDataWithEncodedVisual()
  25891. return e.indexOfName(t)
  25892. }),
  25893. (r.prototype.getItemVisual = function (t, e) {
  25894. var n = this._getDataWithEncodedVisual()
  25895. return n.getItemVisual(t, e)
  25896. }),
  25897. r
  25898. )
  25899. })(),
  25900. HL = GL,
  25901. WL = (function (r) {
  25902. B(t, r)
  25903. function t() {
  25904. return (r !== null && r.apply(this, arguments)) || this
  25905. }
  25906. return (
  25907. (t.prototype.init = function (e) {
  25908. r.prototype.init.apply(this, arguments),
  25909. (this.legendVisualProvider = new HL(
  25910. X(this.getData, this),
  25911. X(this.getRawData, this)
  25912. )),
  25913. this._defaultLabelLine(e)
  25914. }),
  25915. (t.prototype.mergeOption = function () {
  25916. r.prototype.mergeOption.apply(this, arguments)
  25917. }),
  25918. (t.prototype.getInitialData = function () {
  25919. return VL(this, {
  25920. coordDimensions: ['value'],
  25921. encodeDefaulter: lt(dA, this)
  25922. })
  25923. }),
  25924. (t.prototype.getDataParams = function (e) {
  25925. var n = this.getData(),
  25926. i = r.prototype.getDataParams.call(this, e),
  25927. a = []
  25928. return (
  25929. n.each(n.mapDimension('value'), function (o) {
  25930. a.push(o)
  25931. }),
  25932. (i.percent = Jw(a, e, n.hostModel.get('percentPrecision'))),
  25933. i.$vars.push('percent'),
  25934. i
  25935. )
  25936. }),
  25937. (t.prototype._defaultLabelLine = function (e) {
  25938. Cu(e, 'labelLine', ['show'])
  25939. var n = e.labelLine,
  25940. i = e.emphasis.labelLine
  25941. ;(n.show = n.show && e.label.show),
  25942. (i.show = i.show && e.emphasis.label.show)
  25943. }),
  25944. (t.type = 'series.pie'),
  25945. (t.defaultOption = {
  25946. z: 2,
  25947. legendHoverLink: !0,
  25948. colorBy: 'data',
  25949. center: ['50%', '50%'],
  25950. radius: [0, '75%'],
  25951. clockwise: !0,
  25952. startAngle: 90,
  25953. minAngle: 0,
  25954. minShowLabelAngle: 0,
  25955. selectedOffset: 10,
  25956. percentPrecision: 2,
  25957. stillShowZeroSum: !0,
  25958. left: 0,
  25959. top: 0,
  25960. right: 0,
  25961. bottom: 0,
  25962. width: null,
  25963. height: null,
  25964. label: {
  25965. rotate: 0,
  25966. show: !0,
  25967. overflow: 'truncate',
  25968. position: 'outer',
  25969. alignTo: 'none',
  25970. edgeDistance: '25%',
  25971. bleedMargin: 10,
  25972. distanceToLabelLine: 5
  25973. },
  25974. labelLine: {
  25975. show: !0,
  25976. length: 15,
  25977. length2: 15,
  25978. smooth: !1,
  25979. minTurnAngle: 90,
  25980. maxSurfaceAngle: 90,
  25981. lineStyle: { width: 1, type: 'solid' }
  25982. },
  25983. itemStyle: { borderWidth: 1, borderJoin: 'round' },
  25984. showEmptyCircle: !0,
  25985. emptyCircleStyle: { color: 'lightgray', opacity: 1 },
  25986. labelLayout: { hideOverlap: !0 },
  25987. emphasis: { scale: !0, scaleSize: 5 },
  25988. avoidLabelOverlap: !0,
  25989. animationType: 'expansion',
  25990. animationDuration: 1e3,
  25991. animationTypeUpdate: 'transition',
  25992. animationEasingUpdate: 'cubicInOut',
  25993. animationDurationUpdate: 500,
  25994. animationEasing: 'cubicInOut'
  25995. }),
  25996. t
  25997. )
  25998. })(Er),
  25999. UL = WL
  26000. function YL(r) {
  26001. return {
  26002. seriesType: r,
  26003. reset: function (t, e) {
  26004. var n = t.getData()
  26005. n.filterSelf(function (i) {
  26006. var a = n.mapDimension('value'),
  26007. o = n.get(a, i)
  26008. return !(dt(o) && !isNaN(o) && o < 0)
  26009. })
  26010. }
  26011. }
  26012. }
  26013. function ZL(r) {
  26014. r.registerChartView(zL),
  26015. r.registerSeriesModel(UL),
  26016. rD('pie', r.registerAction),
  26017. r.registerLayout(lt(RL, 'pie')),
  26018. r.registerProcessor(EL('pie')),
  26019. r.registerProcessor(YL('pie'))
  26020. }
  26021. var $L = (function (r) {
  26022. B(t, r)
  26023. function t() {
  26024. return (r !== null && r.apply(this, arguments)) || this
  26025. }
  26026. return (
  26027. (t.type = 'grid'),
  26028. (t.dependencies = ['xAxis', 'yAxis']),
  26029. (t.layoutMode = 'box'),
  26030. (t.defaultOption = {
  26031. show: !1,
  26032. z: 0,
  26033. left: '10%',
  26034. top: 60,
  26035. right: '10%',
  26036. bottom: 70,
  26037. containLabel: !1,
  26038. backgroundColor: 'rgba(0,0,0,0)',
  26039. borderWidth: 1,
  26040. borderColor: '#ccc'
  26041. }),
  26042. t
  26043. )
  26044. })(_t),
  26045. XL = $L,
  26046. Nh = (function (r) {
  26047. B(t, r)
  26048. function t() {
  26049. return (r !== null && r.apply(this, arguments)) || this
  26050. }
  26051. return (
  26052. (t.prototype.getCoordSysModel = function () {
  26053. return this.getReferringComponents('grid', Xt).models[0]
  26054. }),
  26055. (t.type = 'cartesian2dAxis'),
  26056. t
  26057. )
  26058. })(_t)
  26059. ze(Nh, cI)
  26060. var t_ = {
  26061. show: !0,
  26062. z: 0,
  26063. inverse: !1,
  26064. name: '',
  26065. nameLocation: 'end',
  26066. nameRotate: null,
  26067. nameTruncate: { maxWidth: null, ellipsis: '...', placeholder: '.' },
  26068. nameTextStyle: {},
  26069. nameGap: 15,
  26070. silent: !1,
  26071. triggerEvent: !1,
  26072. tooltip: { show: !1 },
  26073. axisPointer: {},
  26074. axisLine: {
  26075. show: !0,
  26076. onZero: !0,
  26077. onZeroAxisIndex: null,
  26078. lineStyle: { color: '#6E7079', width: 1, type: 'solid' },
  26079. symbol: ['none', 'none'],
  26080. symbolSize: [10, 15]
  26081. },
  26082. axisTick: { show: !0, inside: !1, length: 5, lineStyle: { width: 1 } },
  26083. axisLabel: {
  26084. show: !0,
  26085. inside: !1,
  26086. rotate: 0,
  26087. showMinLabel: null,
  26088. showMaxLabel: null,
  26089. margin: 8,
  26090. fontSize: 12
  26091. },
  26092. splitLine: {
  26093. show: !0,
  26094. lineStyle: { color: ['#E0E6F1'], width: 1, type: 'solid' }
  26095. },
  26096. splitArea: {
  26097. show: !1,
  26098. areaStyle: { color: ['rgba(250,250,250,0.2)', 'rgba(210,219,238,0.2)'] }
  26099. }
  26100. },
  26101. qL = nt(
  26102. {
  26103. boundaryGap: !0,
  26104. deduplication: null,
  26105. splitLine: { show: !1 },
  26106. axisTick: { alignWithLabel: !1, interval: 'auto' },
  26107. axisLabel: { interval: 'auto' }
  26108. },
  26109. t_
  26110. ),
  26111. Fh = nt(
  26112. {
  26113. boundaryGap: [0, 0],
  26114. axisLine: { show: 'auto' },
  26115. axisTick: { show: 'auto' },
  26116. splitNumber: 5,
  26117. minorTick: { show: !1, splitNumber: 5, length: 3, lineStyle: {} },
  26118. minorSplitLine: { show: !1, lineStyle: { color: '#F4F7FD', width: 1 } }
  26119. },
  26120. t_
  26121. ),
  26122. KL = nt(
  26123. {
  26124. splitNumber: 6,
  26125. axisLabel: {
  26126. showMinLabel: !1,
  26127. showMaxLabel: !1,
  26128. rich: { primary: { fontWeight: 'bold' } }
  26129. },
  26130. splitLine: { show: !1 }
  26131. },
  26132. Fh
  26133. ),
  26134. QL = j({ logBase: 10 }, Fh),
  26135. JL = { category: qL, value: Fh, time: KL, log: QL },
  26136. jL = { value: 1, category: 1, time: 1, log: 1 }
  26137. function e_(r, t, e, n) {
  26138. A(jL, function (i, a) {
  26139. var o = nt(nt({}, JL[a], !0), n, !0),
  26140. s = (function (l) {
  26141. B(u, l)
  26142. function u() {
  26143. var f = (l !== null && l.apply(this, arguments)) || this
  26144. return (f.type = t + 'Axis.' + a), f
  26145. }
  26146. return (
  26147. (u.prototype.mergeDefaultAndTheme = function (f, h) {
  26148. var c = ya(this),
  26149. v = c ? _a(f) : {},
  26150. d = h.getTheme()
  26151. nt(f, d.get(a + 'Axis')),
  26152. nt(f, this.getDefaultOption()),
  26153. (f.type = r_(f)),
  26154. c && hi(f, v, c)
  26155. }),
  26156. (u.prototype.optionUpdated = function () {
  26157. var f = this.option
  26158. f.type === 'category' &&
  26159. (this.__ordinalMeta = yh.createByAxisModel(this))
  26160. }),
  26161. (u.prototype.getCategories = function (f) {
  26162. var h = this.option
  26163. if (h.type === 'category')
  26164. return f ? h.data : this.__ordinalMeta.categories
  26165. }),
  26166. (u.prototype.getOrdinalMeta = function () {
  26167. return this.__ordinalMeta
  26168. }),
  26169. (u.type = t + 'Axis.' + a),
  26170. (u.defaultOption = o),
  26171. u
  26172. )
  26173. })(e)
  26174. r.registerComponentModel(s)
  26175. }),
  26176. r.registerSubTypeDefaulter(t + 'Axis', r_)
  26177. }
  26178. function r_(r) {
  26179. return r.type || (r.data ? 'category' : 'value')
  26180. }
  26181. var tP = (function () {
  26182. function r(t) {
  26183. ;(this.type = 'cartesian'),
  26184. (this._dimList = []),
  26185. (this._axes = {}),
  26186. (this.name = t || '')
  26187. }
  26188. return (
  26189. (r.prototype.getAxis = function (t) {
  26190. return this._axes[t]
  26191. }),
  26192. (r.prototype.getAxes = function () {
  26193. return G(
  26194. this._dimList,
  26195. function (t) {
  26196. return this._axes[t]
  26197. },
  26198. this
  26199. )
  26200. }),
  26201. (r.prototype.getAxesByScale = function (t) {
  26202. return (
  26203. (t = t.toLowerCase()),
  26204. Lt(this.getAxes(), function (e) {
  26205. return e.scale.type === t
  26206. })
  26207. )
  26208. }),
  26209. (r.prototype.addAxis = function (t) {
  26210. var e = t.dim
  26211. ;(this._axes[e] = t), this._dimList.push(e)
  26212. }),
  26213. r
  26214. )
  26215. })(),
  26216. eP = tP,
  26217. zh = ['x', 'y']
  26218. function n_(r) {
  26219. return r.type === 'interval' || r.type === 'time'
  26220. }
  26221. var rP = (function (r) {
  26222. B(t, r)
  26223. function t() {
  26224. var e = (r !== null && r.apply(this, arguments)) || this
  26225. return (e.type = 'cartesian2d'), (e.dimensions = zh), e
  26226. }
  26227. return (
  26228. (t.prototype.calcAffineTransform = function () {
  26229. this._transform = this._invTransform = null
  26230. var e = this.getAxis('x').scale,
  26231. n = this.getAxis('y').scale
  26232. if (!(!n_(e) || !n_(n))) {
  26233. var i = e.getExtent(),
  26234. a = n.getExtent(),
  26235. o = this.dataToPoint([i[0], a[0]]),
  26236. s = this.dataToPoint([i[1], a[1]]),
  26237. l = i[1] - i[0],
  26238. u = a[1] - a[0]
  26239. if (!(!l || !u)) {
  26240. var f = (s[0] - o[0]) / l,
  26241. h = (s[1] - o[1]) / u,
  26242. c = o[0] - i[0] * f,
  26243. v = o[1] - a[0] * h,
  26244. d = (this._transform = [f, 0, 0, h, c, v])
  26245. this._invTransform = Lo([], d)
  26246. }
  26247. }
  26248. }),
  26249. (t.prototype.getBaseAxis = function () {
  26250. return (
  26251. this.getAxesByScale('ordinal')[0] ||
  26252. this.getAxesByScale('time')[0] ||
  26253. this.getAxis('x')
  26254. )
  26255. }),
  26256. (t.prototype.containPoint = function (e) {
  26257. var n = this.getAxis('x'),
  26258. i = this.getAxis('y')
  26259. return (
  26260. n.contain(n.toLocalCoord(e[0])) && i.contain(i.toLocalCoord(e[1]))
  26261. )
  26262. }),
  26263. (t.prototype.containData = function (e) {
  26264. return (
  26265. this.getAxis('x').containData(e[0]) &&
  26266. this.getAxis('y').containData(e[1])
  26267. )
  26268. }),
  26269. (t.prototype.containZone = function (e, n) {
  26270. var i = this.dataToPoint(e),
  26271. a = this.dataToPoint(n),
  26272. o = this.getArea(),
  26273. s = new vt(i[0], i[1], a[0] - i[0], a[1] - i[1])
  26274. return o.intersect(s)
  26275. }),
  26276. (t.prototype.dataToPoint = function (e, n, i) {
  26277. i = i || []
  26278. var a = e[0],
  26279. o = e[1]
  26280. if (
  26281. this._transform &&
  26282. a != null &&
  26283. isFinite(a) &&
  26284. o != null &&
  26285. isFinite(o)
  26286. )
  26287. return ue(i, e, this._transform)
  26288. var s = this.getAxis('x'),
  26289. l = this.getAxis('y')
  26290. return (
  26291. (i[0] = s.toGlobalCoord(s.dataToCoord(a, n))),
  26292. (i[1] = l.toGlobalCoord(l.dataToCoord(o, n))),
  26293. i
  26294. )
  26295. }),
  26296. (t.prototype.clampData = function (e, n) {
  26297. var i = this.getAxis('x').scale,
  26298. a = this.getAxis('y').scale,
  26299. o = i.getExtent(),
  26300. s = a.getExtent(),
  26301. l = i.parse(e[0]),
  26302. u = a.parse(e[1])
  26303. return (
  26304. (n = n || []),
  26305. (n[0] = Math.min(
  26306. Math.max(Math.min(o[0], o[1]), l),
  26307. Math.max(o[0], o[1])
  26308. )),
  26309. (n[1] = Math.min(
  26310. Math.max(Math.min(s[0], s[1]), u),
  26311. Math.max(s[0], s[1])
  26312. )),
  26313. n
  26314. )
  26315. }),
  26316. (t.prototype.pointToData = function (e, n) {
  26317. var i = []
  26318. if (this._invTransform) return ue(i, e, this._invTransform)
  26319. var a = this.getAxis('x'),
  26320. o = this.getAxis('y')
  26321. return (
  26322. (i[0] = a.coordToData(a.toLocalCoord(e[0]), n)),
  26323. (i[1] = o.coordToData(o.toLocalCoord(e[1]), n)),
  26324. i
  26325. )
  26326. }),
  26327. (t.prototype.getOtherAxis = function (e) {
  26328. return this.getAxis(e.dim === 'x' ? 'y' : 'x')
  26329. }),
  26330. (t.prototype.getArea = function () {
  26331. var e = this.getAxis('x').getGlobalExtent(),
  26332. n = this.getAxis('y').getGlobalExtent(),
  26333. i = Math.min(e[0], e[1]),
  26334. a = Math.min(n[0], n[1]),
  26335. o = Math.max(e[0], e[1]) - i,
  26336. s = Math.max(n[0], n[1]) - a
  26337. return new vt(i, a, o, s)
  26338. }),
  26339. t
  26340. )
  26341. })(eP),
  26342. nP = rP,
  26343. iP = (function (r) {
  26344. B(t, r)
  26345. function t(e, n, i, a, o) {
  26346. var s = r.call(this, e, n, i) || this
  26347. return (
  26348. (s.index = 0), (s.type = a || 'value'), (s.position = o || 'bottom'), s
  26349. )
  26350. }
  26351. return (
  26352. (t.prototype.isHorizontal = function () {
  26353. var e = this.position
  26354. return e === 'top' || e === 'bottom'
  26355. }),
  26356. (t.prototype.getGlobalExtent = function (e) {
  26357. var n = this.getExtent()
  26358. return (
  26359. (n[0] = this.toGlobalCoord(n[0])),
  26360. (n[1] = this.toGlobalCoord(n[1])),
  26361. e && n[0] > n[1] && n.reverse(),
  26362. n
  26363. )
  26364. }),
  26365. (t.prototype.pointToData = function (e, n) {
  26366. return this.coordToData(
  26367. this.toLocalCoord(e[this.dim === 'x' ? 0 : 1]),
  26368. n
  26369. )
  26370. }),
  26371. (t.prototype.setCategorySortInfo = function (e) {
  26372. if (this.type !== 'category') return !1
  26373. ;(this.model.option.categorySortInfo = e), this.scale.setSortInfo(e)
  26374. }),
  26375. t
  26376. )
  26377. })(CI),
  26378. aP = iP
  26379. function Vh(r, t, e) {
  26380. e = e || {}
  26381. var n = r.coordinateSystem,
  26382. i = t.axis,
  26383. a = {},
  26384. o = i.getAxesOnZeroOf()[0],
  26385. s = i.position,
  26386. l = o ? 'onZero' : s,
  26387. u = i.dim,
  26388. f = n.getRect(),
  26389. h = [f.x, f.x + f.width, f.y, f.y + f.height],
  26390. c = { left: 0, right: 1, top: 0, bottom: 1, onZero: 2 },
  26391. v = t.get('offset') || 0,
  26392. d = u === 'x' ? [h[2] - v, h[3] + v] : [h[0] - v, h[1] + v]
  26393. if (o) {
  26394. var p = o.toGlobalCoord(o.dataToCoord(0))
  26395. d[c.onZero] = Math.max(Math.min(p, d[1]), d[0])
  26396. }
  26397. ;(a.position = [u === 'y' ? d[c[l]] : h[0], u === 'x' ? d[c[l]] : h[3]]),
  26398. (a.rotation = (Math.PI / 2) * (u === 'x' ? 0 : 1))
  26399. var g = { top: -1, bottom: 1, left: -1, right: 1 }
  26400. ;(a.labelDirection = a.tickDirection = a.nameDirection = g[s]),
  26401. (a.labelOffset = o ? d[c[s]] - d[c.onZero] : 0),
  26402. t.get(['axisTick', 'inside']) && (a.tickDirection = -a.tickDirection),
  26403. Ei(e.labelInside, t.get(['axisLabel', 'inside'])) &&
  26404. (a.labelDirection = -a.labelDirection)
  26405. var m = t.get(['axisLabel', 'rotate'])
  26406. return (a.labelRotate = l === 'top' ? -m : m), (a.z2 = 1), a
  26407. }
  26408. function i_(r) {
  26409. return r.get('coordinateSystem') === 'cartesian2d'
  26410. }
  26411. function a_(r) {
  26412. var t = { xAxisModel: null, yAxisModel: null }
  26413. return (
  26414. A(t, function (e, n) {
  26415. var i = n.replace(/Model$/, ''),
  26416. a = r.getReferringComponents(i, Xt).models[0]
  26417. t[n] = a
  26418. }),
  26419. t
  26420. )
  26421. }
  26422. var Gh = Math.log
  26423. function oP(r, t, e) {
  26424. var n = Va.prototype,
  26425. i = n.getTicks.call(e),
  26426. a = n.getTicks.call(e, !0),
  26427. o = i.length - 1,
  26428. s = n.getInterval.call(e),
  26429. l = K0(r, t),
  26430. u = l.extent,
  26431. f = l.fixMin,
  26432. h = l.fixMax
  26433. if (r.type === 'log') {
  26434. var c = Gh(r.base)
  26435. u = [Gh(u[0]) / c, Gh(u[1]) / c]
  26436. }
  26437. r.setExtent(u[0], u[1]),
  26438. r.calcNiceExtent({ splitNumber: o, fixMin: f, fixMax: h })
  26439. var v = n.getExtent.call(r)
  26440. f && (u[0] = v[0]), h && (u[1] = v[1])
  26441. var d = n.getInterval.call(r),
  26442. p = u[0],
  26443. g = u[1]
  26444. if (f && h) d = (g - p) / o
  26445. else if (f)
  26446. for (g = u[0] + d * o; g < u[1] && isFinite(g) && isFinite(u[1]); )
  26447. (d = Sh(d)), (g = u[0] + d * o)
  26448. else if (h)
  26449. for (p = u[1] - d * o; p > u[0] && isFinite(p) && isFinite(u[0]); )
  26450. (d = Sh(d)), (p = u[1] - d * o)
  26451. else {
  26452. var m = r.getTicks().length - 1
  26453. m > o && (d = Sh(d))
  26454. var y = d * o
  26455. ;(g = Math.ceil(u[1] / d) * d),
  26456. (p = Pt(g - y)),
  26457. p < 0 && u[0] >= 0
  26458. ? ((p = 0), (g = Pt(y)))
  26459. : g > 0 && u[1] <= 0 && ((g = 0), (p = -Pt(y)))
  26460. }
  26461. var _ = (i[0].value - a[0].value) / s,
  26462. S = (i[o].value - a[o].value) / s
  26463. n.setExtent.call(r, p + d * _, g + d * S),
  26464. n.setInterval.call(r, d),
  26465. (_ || S) && n.setNiceExtent.call(r, p + d, g - d)
  26466. }
  26467. var sP = (function () {
  26468. function r(t, e, n) {
  26469. ;(this.type = 'grid'),
  26470. (this._coordsMap = {}),
  26471. (this._coordsList = []),
  26472. (this._axesMap = {}),
  26473. (this._axesList = []),
  26474. (this.axisPointerEnabled = !0),
  26475. (this.dimensions = zh),
  26476. this._initCartesian(t, e, n),
  26477. (this.model = t)
  26478. }
  26479. return (
  26480. (r.prototype.getRect = function () {
  26481. return this._rect
  26482. }),
  26483. (r.prototype.update = function (t, e) {
  26484. var n = this._axesMap
  26485. this._updateScale(t, this.model)
  26486. function i(o) {
  26487. var s,
  26488. l = xt(o),
  26489. u = l.length
  26490. if (!!u) {
  26491. for (var f = [], h = u - 1; h >= 0; h--) {
  26492. var c = +l[h],
  26493. v = o[c],
  26494. d = v.model,
  26495. p = v.scale
  26496. _h(p) && d.get('alignTicks') && d.get('interval') == null
  26497. ? f.push(v)
  26498. : (Q0(p, d), _h(p) && (s = v))
  26499. }
  26500. f.length &&
  26501. (s || ((s = f.pop()), Q0(s.scale, s.model)),
  26502. A(f, function (g) {
  26503. oP(g.scale, g.model, s.scale)
  26504. }))
  26505. }
  26506. }
  26507. i(n.x), i(n.y)
  26508. var a = {}
  26509. A(n.x, function (o) {
  26510. o_(n, 'y', o, a)
  26511. }),
  26512. A(n.y, function (o) {
  26513. o_(n, 'x', o, a)
  26514. }),
  26515. this.resize(this.model, e)
  26516. }),
  26517. (r.prototype.resize = function (t, e, n) {
  26518. var i = t.getBoxLayoutParams(),
  26519. a = !n && t.get('containLabel'),
  26520. o = cr(i, { width: e.getWidth(), height: e.getHeight() })
  26521. this._rect = o
  26522. var s = this._axesList
  26523. l(),
  26524. a &&
  26525. (A(s, function (u) {
  26526. if (!u.model.get(['axisLabel', 'inside'])) {
  26527. var f = fI(u)
  26528. if (f) {
  26529. var h = u.isHorizontal() ? 'height' : 'width',
  26530. c = u.model.get(['axisLabel', 'margin'])
  26531. ;(o[h] -= f[h] + c),
  26532. u.position === 'top'
  26533. ? (o.y += f.height + c)
  26534. : u.position === 'left' && (o.x += f.width + c)
  26535. }
  26536. }
  26537. }),
  26538. l()),
  26539. A(this._coordsList, function (u) {
  26540. u.calcAffineTransform()
  26541. })
  26542. function l() {
  26543. A(s, function (u) {
  26544. var f = u.isHorizontal(),
  26545. h = f ? [0, o.width] : [0, o.height],
  26546. c = u.inverse ? 1 : 0
  26547. u.setExtent(h[c], h[1 - c]), lP(u, f ? o.x : o.y)
  26548. })
  26549. }
  26550. }),
  26551. (r.prototype.getAxis = function (t, e) {
  26552. var n = this._axesMap[t]
  26553. if (n != null) return n[e || 0]
  26554. }),
  26555. (r.prototype.getAxes = function () {
  26556. return this._axesList.slice()
  26557. }),
  26558. (r.prototype.getCartesian = function (t, e) {
  26559. if (t != null && e != null) {
  26560. var n = 'x' + t + 'y' + e
  26561. return this._coordsMap[n]
  26562. }
  26563. Y(t) && ((e = t.yAxisIndex), (t = t.xAxisIndex))
  26564. for (var i = 0, a = this._coordsList; i < a.length; i++)
  26565. if (a[i].getAxis('x').index === t || a[i].getAxis('y').index === e)
  26566. return a[i]
  26567. }),
  26568. (r.prototype.getCartesians = function () {
  26569. return this._coordsList.slice()
  26570. }),
  26571. (r.prototype.convertToPixel = function (t, e, n) {
  26572. var i = this._findConvertTarget(e)
  26573. return i.cartesian
  26574. ? i.cartesian.dataToPoint(n)
  26575. : i.axis
  26576. ? i.axis.toGlobalCoord(i.axis.dataToCoord(n))
  26577. : null
  26578. }),
  26579. (r.prototype.convertFromPixel = function (t, e, n) {
  26580. var i = this._findConvertTarget(e)
  26581. return i.cartesian
  26582. ? i.cartesian.pointToData(n)
  26583. : i.axis
  26584. ? i.axis.coordToData(i.axis.toLocalCoord(n))
  26585. : null
  26586. }),
  26587. (r.prototype._findConvertTarget = function (t) {
  26588. var e = t.seriesModel,
  26589. n =
  26590. t.xAxisModel ||
  26591. (e && e.getReferringComponents('xAxis', Xt).models[0]),
  26592. i =
  26593. t.yAxisModel ||
  26594. (e && e.getReferringComponents('yAxis', Xt).models[0]),
  26595. a = t.gridModel,
  26596. o = this._coordsList,
  26597. s,
  26598. l
  26599. if (e) (s = e.coordinateSystem), ot(o, s) < 0 && (s = null)
  26600. else if (n && i) s = this.getCartesian(n.componentIndex, i.componentIndex)
  26601. else if (n) l = this.getAxis('x', n.componentIndex)
  26602. else if (i) l = this.getAxis('y', i.componentIndex)
  26603. else if (a) {
  26604. var u = a.coordinateSystem
  26605. u === this && (s = this._coordsList[0])
  26606. }
  26607. return { cartesian: s, axis: l }
  26608. }),
  26609. (r.prototype.containPoint = function (t) {
  26610. var e = this._coordsList[0]
  26611. if (e) return e.containPoint(t)
  26612. }),
  26613. (r.prototype._initCartesian = function (t, e, n) {
  26614. var i = this,
  26615. a = this,
  26616. o = { left: !1, right: !1, top: !1, bottom: !1 },
  26617. s = { x: {}, y: {} },
  26618. l = { x: 0, y: 0 }
  26619. if (
  26620. (e.eachComponent('xAxis', u('x'), this),
  26621. e.eachComponent('yAxis', u('y'), this),
  26622. !l.x || !l.y)
  26623. ) {
  26624. ;(this._axesMap = {}), (this._axesList = [])
  26625. return
  26626. }
  26627. ;(this._axesMap = s),
  26628. A(s.x, function (f, h) {
  26629. A(s.y, function (c, v) {
  26630. var d = 'x' + h + 'y' + v,
  26631. p = new nP(d)
  26632. ;(p.master = i),
  26633. (p.model = t),
  26634. (i._coordsMap[d] = p),
  26635. i._coordsList.push(p),
  26636. p.addAxis(f),
  26637. p.addAxis(c)
  26638. })
  26639. })
  26640. function u(f) {
  26641. return function (h, c) {
  26642. if (!!Hh(h, t)) {
  26643. var v = h.get('position')
  26644. f === 'x'
  26645. ? v !== 'top' &&
  26646. v !== 'bottom' &&
  26647. (v = o.bottom ? 'top' : 'bottom')
  26648. : v !== 'left' &&
  26649. v !== 'right' &&
  26650. (v = o.left ? 'right' : 'left'),
  26651. (o[v] = !0)
  26652. var d = new aP(f, lI(h), [0, 0], h.get('type'), v),
  26653. p = d.type === 'category'
  26654. ;(d.onBand = p && h.get('boundaryGap')),
  26655. (d.inverse = h.get('inverse')),
  26656. (h.axis = d),
  26657. (d.model = h),
  26658. (d.grid = a),
  26659. (d.index = c),
  26660. a._axesList.push(d),
  26661. (s[f][c] = d),
  26662. l[f]++
  26663. }
  26664. }
  26665. }
  26666. }),
  26667. (r.prototype._updateScale = function (t, e) {
  26668. A(this._axesList, function (i) {
  26669. if ((i.scale.setExtent(1 / 0, -1 / 0), i.type === 'category')) {
  26670. var a = i.model.get('categorySortInfo')
  26671. i.scale.setSortInfo(a)
  26672. }
  26673. }),
  26674. t.eachSeries(function (i) {
  26675. if (i_(i)) {
  26676. var a = a_(i),
  26677. o = a.xAxisModel,
  26678. s = a.yAxisModel
  26679. if (!Hh(o, e) || !Hh(s, e)) return
  26680. var l = this.getCartesian(o.componentIndex, s.componentIndex),
  26681. u = i.getData(),
  26682. f = l.getAxis('x'),
  26683. h = l.getAxis('y')
  26684. n(u, f), n(u, h)
  26685. }
  26686. }, this)
  26687. function n(i, a) {
  26688. A(j0(i, a.dim), function (o) {
  26689. a.scale.unionExtentFromData(i, o)
  26690. })
  26691. }
  26692. }),
  26693. (r.prototype.getTooltipAxes = function (t) {
  26694. var e = [],
  26695. n = []
  26696. return (
  26697. A(this.getCartesians(), function (i) {
  26698. var a = t != null && t !== 'auto' ? i.getAxis(t) : i.getBaseAxis(),
  26699. o = i.getOtherAxis(a)
  26700. ot(e, a) < 0 && e.push(a), ot(n, o) < 0 && n.push(o)
  26701. }),
  26702. { baseAxes: e, otherAxes: n }
  26703. )
  26704. }),
  26705. (r.create = function (t, e) {
  26706. var n = []
  26707. return (
  26708. t.eachComponent('grid', function (i, a) {
  26709. var o = new r(i, t, e)
  26710. ;(o.name = 'grid_' + a),
  26711. o.resize(i, e, !0),
  26712. (i.coordinateSystem = o),
  26713. n.push(o)
  26714. }),
  26715. t.eachSeries(function (i) {
  26716. if (!!i_(i)) {
  26717. var a = a_(i),
  26718. o = a.xAxisModel,
  26719. s = a.yAxisModel,
  26720. l = o.getCoordSysModel(),
  26721. u = l.coordinateSystem
  26722. i.coordinateSystem = u.getCartesian(
  26723. o.componentIndex,
  26724. s.componentIndex
  26725. )
  26726. }
  26727. }),
  26728. n
  26729. )
  26730. }),
  26731. (r.dimensions = zh),
  26732. r
  26733. )
  26734. })()
  26735. function Hh(r, t) {
  26736. return r.getCoordSysModel() === t
  26737. }
  26738. function o_(r, t, e, n) {
  26739. e.getAxesOnZeroOf = function () {
  26740. return a ? [a] : []
  26741. }
  26742. var i = r[t],
  26743. a,
  26744. o = e.model,
  26745. s = o.get(['axisLine', 'onZero']),
  26746. l = o.get(['axisLine', 'onZeroAxisIndex'])
  26747. if (!s) return
  26748. if (l != null) s_(i[l]) && (a = i[l])
  26749. else
  26750. for (var u in i)
  26751. if (i.hasOwnProperty(u) && s_(i[u]) && !n[f(i[u])]) {
  26752. a = i[u]
  26753. break
  26754. }
  26755. a && (n[f(a)] = !0)
  26756. function f(h) {
  26757. return h.dim + '_' + h.index
  26758. }
  26759. }
  26760. function s_(r) {
  26761. return r && r.type !== 'category' && r.type !== 'time' && uI(r)
  26762. }
  26763. function lP(r, t) {
  26764. var e = r.getExtent(),
  26765. n = e[0] + e[1]
  26766. ;(r.toGlobalCoord =
  26767. r.dim === 'x'
  26768. ? function (i) {
  26769. return i + t
  26770. }
  26771. : function (i) {
  26772. return n - i + t
  26773. }),
  26774. (r.toLocalCoord =
  26775. r.dim === 'x'
  26776. ? function (i) {
  26777. return i - t
  26778. }
  26779. : function (i) {
  26780. return n - i + t
  26781. })
  26782. }
  26783. var uP = sP,
  26784. Vr = Math.PI,
  26785. Dn = (function () {
  26786. function r(t, e) {
  26787. ;(this.group = new At()),
  26788. (this.opt = e),
  26789. (this.axisModel = t),
  26790. j(e, {
  26791. labelOffset: 0,
  26792. nameDirection: 1,
  26793. tickDirection: 1,
  26794. labelDirection: 1,
  26795. silent: !0,
  26796. handleAutoShown: function () {
  26797. return !0
  26798. }
  26799. })
  26800. var n = new At({
  26801. x: e.position[0],
  26802. y: e.position[1],
  26803. rotation: e.rotation
  26804. })
  26805. n.updateTransform(), (this._transformGroup = n)
  26806. }
  26807. return (
  26808. (r.prototype.hasBuilder = function (t) {
  26809. return !!l_[t]
  26810. }),
  26811. (r.prototype.add = function (t) {
  26812. l_[t](this.opt, this.axisModel, this.group, this._transformGroup)
  26813. }),
  26814. (r.prototype.getGroup = function () {
  26815. return this.group
  26816. }),
  26817. (r.innerTextLayout = function (t, e, n) {
  26818. var i = Xc(e - t),
  26819. a,
  26820. o
  26821. return (
  26822. Bo(i)
  26823. ? ((o = n > 0 ? 'top' : 'bottom'), (a = 'center'))
  26824. : Bo(i - Vr)
  26825. ? ((o = n > 0 ? 'bottom' : 'top'), (a = 'center'))
  26826. : ((o = 'middle'),
  26827. i > 0 && i < Vr
  26828. ? (a = n > 0 ? 'right' : 'left')
  26829. : (a = n > 0 ? 'left' : 'right')),
  26830. { rotation: i, textAlign: a, textVerticalAlign: o }
  26831. )
  26832. }),
  26833. (r.makeAxisEventDataBase = function (t) {
  26834. var e = { componentType: t.mainType, componentIndex: t.componentIndex }
  26835. return (e[t.mainType + 'Index'] = t.componentIndex), e
  26836. }),
  26837. (r.isLabelSilent = function (t) {
  26838. var e = t.get('tooltip')
  26839. return t.get('silent') || !(t.get('triggerEvent') || (e && e.show))
  26840. }),
  26841. r
  26842. )
  26843. })(),
  26844. l_ = {
  26845. axisLine: function (r, t, e, n) {
  26846. var i = t.get(['axisLine', 'show'])
  26847. if (
  26848. (i === 'auto' &&
  26849. r.handleAutoShown &&
  26850. (i = r.handleAutoShown('axisLine')),
  26851. !!i)
  26852. ) {
  26853. var a = t.axis.getExtent(),
  26854. o = n.transform,
  26855. s = [a[0], 0],
  26856. l = [a[1], 0]
  26857. o && (ue(s, s, o), ue(l, l, o))
  26858. var u = N(
  26859. { lineCap: 'round' },
  26860. t.getModel(['axisLine', 'lineStyle']).getLineStyle()
  26861. ),
  26862. f = new cn({
  26863. subPixelOptimize: !0,
  26864. shape: { x1: s[0], y1: s[1], x2: l[0], y2: l[1] },
  26865. style: u,
  26866. strokeContainThreshold: r.strokeContainThreshold || 5,
  26867. silent: !0,
  26868. z2: 1
  26869. })
  26870. ;(f.anid = 'line'), e.add(f)
  26871. var h = t.get(['axisLine', 'symbol'])
  26872. if (h != null) {
  26873. var c = t.get(['axisLine', 'symbolSize'])
  26874. W(h) && (h = [h, h]), (W(c) || dt(c)) && (c = [c, c])
  26875. var v = Rm(t.get(['axisLine', 'symbolOffset']) || 0, c),
  26876. d = c[0],
  26877. p = c[1]
  26878. A(
  26879. [
  26880. { rotate: r.rotation + Math.PI / 2, offset: v[0], r: 0 },
  26881. {
  26882. rotate: r.rotation - Math.PI / 2,
  26883. offset: v[1],
  26884. r: Math.sqrt(
  26885. (s[0] - l[0]) * (s[0] - l[0]) + (s[1] - l[1]) * (s[1] - l[1])
  26886. )
  26887. }
  26888. ],
  26889. function (g, m) {
  26890. if (h[m] !== 'none' && h[m] != null) {
  26891. var y = Or(h[m], -d / 2, -p / 2, d, p, u.stroke, !0),
  26892. _ = g.r + g.offset
  26893. y.attr({
  26894. rotation: g.rotate,
  26895. x: s[0] + _ * Math.cos(r.rotation),
  26896. y: s[1] - _ * Math.sin(r.rotation),
  26897. silent: !0,
  26898. z2: 11
  26899. }),
  26900. e.add(y)
  26901. }
  26902. }
  26903. )
  26904. }
  26905. }
  26906. },
  26907. axisTickLabel: function (r, t, e, n) {
  26908. var i = vP(e, n, t, r),
  26909. a = dP(e, n, t, r)
  26910. if (
  26911. (hP(t, a, i),
  26912. cP(e, n, t, r.tickDirection),
  26913. t.get(['axisLabel', 'hideOverlap']))
  26914. ) {
  26915. var o = py(
  26916. G(a, function (s) {
  26917. return {
  26918. label: s,
  26919. priority: s.z2,
  26920. defaultAttr: { ignore: s.ignore }
  26921. }
  26922. })
  26923. )
  26924. yy(o)
  26925. }
  26926. },
  26927. axisName: function (r, t, e, n) {
  26928. var i = Ei(r.axisName, t.get('name'))
  26929. if (!!i) {
  26930. var a = t.get('nameLocation'),
  26931. o = r.nameDirection,
  26932. s = t.getModel('nameTextStyle'),
  26933. l = t.get('nameGap') || 0,
  26934. u = t.axis.getExtent(),
  26935. f = u[0] > u[1] ? -1 : 1,
  26936. h = [
  26937. a === 'start'
  26938. ? u[0] - f * l
  26939. : a === 'end'
  26940. ? u[1] + f * l
  26941. : (u[0] + u[1]) / 2,
  26942. f_(a) ? r.labelOffset + o * l : 0
  26943. ],
  26944. c,
  26945. v = t.get('nameRotate')
  26946. v != null && (v = (v * Vr) / 180)
  26947. var d
  26948. f_(a)
  26949. ? (c = Dn.innerTextLayout(r.rotation, v != null ? v : r.rotation, o))
  26950. : ((c = fP(r.rotation, a, v || 0, u)),
  26951. (d = r.axisNameAvailableWidth),
  26952. d != null &&
  26953. ((d = Math.abs(d / Math.sin(c.rotation))),
  26954. !isFinite(d) && (d = null)))
  26955. var p = s.getFont(),
  26956. g = t.get('nameTruncate', !0) || {},
  26957. m = g.ellipsis,
  26958. y = Ei(r.nameTruncateMaxWidth, g.maxWidth, d),
  26959. _ = new Et({
  26960. x: h[0],
  26961. y: h[1],
  26962. rotation: c.rotation,
  26963. silent: Dn.isLabelSilent(t),
  26964. style: vr(s, {
  26965. text: i,
  26966. font: p,
  26967. overflow: 'truncate',
  26968. width: y,
  26969. ellipsis: m,
  26970. fill:
  26971. s.getTextColor() || t.get(['axisLine', 'lineStyle', 'color']),
  26972. align: s.get('align') || c.textAlign,
  26973. verticalAlign: s.get('verticalAlign') || c.textVerticalAlign
  26974. }),
  26975. z2: 1
  26976. })
  26977. if (
  26978. (fs({ el: _, componentModel: t, itemName: i }),
  26979. (_.__fullText = i),
  26980. (_.anid = 'name'),
  26981. t.get('triggerEvent'))
  26982. ) {
  26983. var S = Dn.makeAxisEventDataBase(t)
  26984. ;(S.targetType = 'axisName'), (S.name = i), (ct(_).eventData = S)
  26985. }
  26986. n.add(_), _.updateTransform(), e.add(_), _.decomposeTransform()
  26987. }
  26988. }
  26989. }
  26990. function fP(r, t, e, n) {
  26991. var i = Xc(e - r),
  26992. a,
  26993. o,
  26994. s = n[0] > n[1],
  26995. l = (t === 'start' && !s) || (t !== 'start' && s)
  26996. return (
  26997. Bo(i - Vr / 2)
  26998. ? ((o = l ? 'bottom' : 'top'), (a = 'center'))
  26999. : Bo(i - Vr * 1.5)
  27000. ? ((o = l ? 'top' : 'bottom'), (a = 'center'))
  27001. : ((o = 'middle'),
  27002. i < Vr * 1.5 && i > Vr / 2
  27003. ? (a = l ? 'left' : 'right')
  27004. : (a = l ? 'right' : 'left')),
  27005. { rotation: i, textAlign: a, textVerticalAlign: o }
  27006. )
  27007. }
  27008. function hP(r, t, e) {
  27009. if (!J0(r.axis)) {
  27010. var n = r.get(['axisLabel', 'showMinLabel']),
  27011. i = r.get(['axisLabel', 'showMaxLabel'])
  27012. ;(t = t || []), (e = e || [])
  27013. var a = t[0],
  27014. o = t[1],
  27015. s = t[t.length - 1],
  27016. l = t[t.length - 2],
  27017. u = e[0],
  27018. f = e[1],
  27019. h = e[e.length - 1],
  27020. c = e[e.length - 2]
  27021. n === !1
  27022. ? (Te(a), Te(u))
  27023. : u_(a, o) && (n ? (Te(o), Te(f)) : (Te(a), Te(u))),
  27024. i === !1
  27025. ? (Te(s), Te(h))
  27026. : u_(l, s) && (i ? (Te(l), Te(c)) : (Te(s), Te(h)))
  27027. }
  27028. }
  27029. function Te(r) {
  27030. r && (r.ignore = !0)
  27031. }
  27032. function u_(r, t) {
  27033. var e = r && r.getBoundingRect().clone(),
  27034. n = t && t.getBoundingRect().clone()
  27035. if (!(!e || !n)) {
  27036. var i = cu([])
  27037. return (
  27038. pu(i, i, -r.rotation),
  27039. e.applyTransform($n([], i, r.getLocalTransform())),
  27040. n.applyTransform($n([], i, t.getLocalTransform())),
  27041. e.intersect(n)
  27042. )
  27043. }
  27044. }
  27045. function f_(r) {
  27046. return r === 'middle' || r === 'center'
  27047. }
  27048. function h_(r, t, e, n, i) {
  27049. for (var a = [], o = [], s = [], l = 0; l < r.length; l++) {
  27050. var u = r[l].coord
  27051. ;(o[0] = u),
  27052. (o[1] = 0),
  27053. (s[0] = u),
  27054. (s[1] = e),
  27055. t && (ue(o, o, t), ue(s, s, t))
  27056. var f = new cn({
  27057. subPixelOptimize: !0,
  27058. shape: { x1: o[0], y1: o[1], x2: s[0], y2: s[1] },
  27059. style: n,
  27060. z2: 2,
  27061. autoBatch: !0,
  27062. silent: !0
  27063. })
  27064. ;(f.anid = i + '_' + r[l].tickValue), a.push(f)
  27065. }
  27066. return a
  27067. }
  27068. function vP(r, t, e, n) {
  27069. var i = e.axis,
  27070. a = e.getModel('axisTick'),
  27071. o = a.get('show')
  27072. if (
  27073. (o === 'auto' && n.handleAutoShown && (o = n.handleAutoShown('axisTick')),
  27074. !(!o || i.scale.isBlank()))
  27075. ) {
  27076. for (
  27077. var s = a.getModel('lineStyle'),
  27078. l = n.tickDirection * a.get('length'),
  27079. u = i.getTicksCoords(),
  27080. f = h_(
  27081. u,
  27082. t.transform,
  27083. l,
  27084. j(s.getLineStyle(), {
  27085. stroke: e.get(['axisLine', 'lineStyle', 'color'])
  27086. }),
  27087. 'ticks'
  27088. ),
  27089. h = 0;
  27090. h < f.length;
  27091. h++
  27092. )
  27093. r.add(f[h])
  27094. return f
  27095. }
  27096. }
  27097. function cP(r, t, e, n) {
  27098. var i = e.axis,
  27099. a = e.getModel('minorTick')
  27100. if (!(!a.get('show') || i.scale.isBlank())) {
  27101. var o = i.getMinorTicksCoords()
  27102. if (!!o.length)
  27103. for (
  27104. var s = a.getModel('lineStyle'),
  27105. l = n * a.get('length'),
  27106. u = j(
  27107. s.getLineStyle(),
  27108. j(e.getModel('axisTick').getLineStyle(), {
  27109. stroke: e.get(['axisLine', 'lineStyle', 'color'])
  27110. })
  27111. ),
  27112. f = 0;
  27113. f < o.length;
  27114. f++
  27115. )
  27116. for (
  27117. var h = h_(o[f], t.transform, l, u, 'minorticks_' + f), c = 0;
  27118. c < h.length;
  27119. c++
  27120. )
  27121. r.add(h[c])
  27122. }
  27123. }
  27124. function dP(r, t, e, n) {
  27125. var i = e.axis,
  27126. a = Ei(n.axisLabelShow, e.get(['axisLabel', 'show']))
  27127. if (!(!a || i.scale.isBlank())) {
  27128. var o = e.getModel('axisLabel'),
  27129. s = o.get('margin'),
  27130. l = i.getViewLabels(),
  27131. u = ((Ei(n.labelRotate, o.get('rotate')) || 0) * Vr) / 180,
  27132. f = Dn.innerTextLayout(n.rotation, u, n.labelDirection),
  27133. h = e.getCategories && e.getCategories(!0),
  27134. c = [],
  27135. v = Dn.isLabelSilent(e),
  27136. d = e.get('triggerEvent')
  27137. return (
  27138. A(l, function (p, g) {
  27139. var m =
  27140. i.scale.type === 'ordinal'
  27141. ? i.scale.getRawOrdinalNumber(p.tickValue)
  27142. : p.tickValue,
  27143. y = p.formattedLabel,
  27144. _ = p.rawLabel,
  27145. S = o
  27146. if (h && h[m]) {
  27147. var w = h[m]
  27148. Y(w) && w.textStyle && (S = new Nt(w.textStyle, o, e.ecModel))
  27149. }
  27150. var x = S.getTextColor() || e.get(['axisLine', 'lineStyle', 'color']),
  27151. b = i.dataToCoord(m),
  27152. T = new Et({
  27153. x: b,
  27154. y: n.labelOffset + n.labelDirection * s,
  27155. rotation: f.rotation,
  27156. silent: v,
  27157. z2: 10 + (p.level || 0),
  27158. style: vr(S, {
  27159. text: y,
  27160. align: S.getShallow('align', !0) || f.textAlign,
  27161. verticalAlign:
  27162. S.getShallow('verticalAlign', !0) ||
  27163. S.getShallow('baseline', !0) ||
  27164. f.textVerticalAlign,
  27165. fill: Q(x)
  27166. ? x(
  27167. i.type === 'category' ? _ : i.type === 'value' ? m + '' : m,
  27168. g
  27169. )
  27170. : x
  27171. })
  27172. })
  27173. if (((T.anid = 'label_' + m), d)) {
  27174. var C = Dn.makeAxisEventDataBase(e)
  27175. ;(C.targetType = 'axisLabel'),
  27176. (C.value = _),
  27177. (C.tickIndex = g),
  27178. i.type === 'category' && (C.dataIndex = m),
  27179. (ct(T).eventData = C)
  27180. }
  27181. t.add(T),
  27182. T.updateTransform(),
  27183. c.push(T),
  27184. r.add(T),
  27185. T.decomposeTransform()
  27186. }),
  27187. c
  27188. )
  27189. }
  27190. }
  27191. var v_ = Dn
  27192. function pP(r, t) {
  27193. var e = {
  27194. axesInfo: {},
  27195. seriesInvolved: !1,
  27196. coordSysAxesInfo: {},
  27197. coordSysMap: {}
  27198. }
  27199. return gP(e, r, t), e.seriesInvolved && yP(e, r), e
  27200. }
  27201. function gP(r, t, e) {
  27202. var n = t.getComponent('tooltip'),
  27203. i = t.getComponent('axisPointer'),
  27204. a = i.get('link', !0) || [],
  27205. o = []
  27206. A(e.getCoordinateSystems(), function (s) {
  27207. if (!s.axisPointerEnabled) return
  27208. var l = Ya(s.model),
  27209. u = (r.coordSysAxesInfo[l] = {})
  27210. r.coordSysMap[l] = s
  27211. var f = s.model,
  27212. h = f.getModel('tooltip', n)
  27213. if (
  27214. (A(s.getAxes(), lt(p, !1, null)), s.getTooltipAxes && n && h.get('show'))
  27215. ) {
  27216. var c = h.get('trigger') === 'axis',
  27217. v = h.get(['axisPointer', 'type']) === 'cross',
  27218. d = s.getTooltipAxes(h.get(['axisPointer', 'axis']))
  27219. ;(c || v) && A(d.baseAxes, lt(p, v ? 'cross' : !0, c)),
  27220. v && A(d.otherAxes, lt(p, 'cross', !1))
  27221. }
  27222. function p(g, m, y) {
  27223. var _ = y.model.getModel('axisPointer', i),
  27224. S = _.get('show')
  27225. if (!(!S || (S === 'auto' && !g && !Yh(_)))) {
  27226. m == null && (m = _.get('triggerTooltip')),
  27227. (_ = g ? mP(y, h, i, t, g, m) : _)
  27228. var w = _.get('snap'),
  27229. x = Ya(y.model),
  27230. b = m || w || y.type === 'category',
  27231. T = (r.axesInfo[x] = {
  27232. key: x,
  27233. axis: y,
  27234. coordSys: s,
  27235. axisPointerModel: _,
  27236. triggerTooltip: m,
  27237. involveSeries: b,
  27238. snap: w,
  27239. useHandle: Yh(_),
  27240. seriesModels: [],
  27241. linkGroup: null
  27242. })
  27243. ;(u[x] = T), (r.seriesInvolved = r.seriesInvolved || b)
  27244. var C = _P(a, y)
  27245. if (C != null) {
  27246. var M = o[C] || (o[C] = { axesInfo: {} })
  27247. ;(M.axesInfo[x] = T), (M.mapper = a[C].mapper), (T.linkGroup = M)
  27248. }
  27249. }
  27250. }
  27251. })
  27252. }
  27253. function mP(r, t, e, n, i, a) {
  27254. var o = t.getModel('axisPointer'),
  27255. s = [
  27256. 'type',
  27257. 'snap',
  27258. 'lineStyle',
  27259. 'shadowStyle',
  27260. 'label',
  27261. 'animation',
  27262. 'animationDurationUpdate',
  27263. 'animationEasingUpdate',
  27264. 'z'
  27265. ],
  27266. l = {}
  27267. A(s, function (c) {
  27268. l[c] = tt(o.get(c))
  27269. }),
  27270. (l.snap = r.type !== 'category' && !!a),
  27271. o.get('type') === 'cross' && (l.type = 'line')
  27272. var u = l.label || (l.label = {})
  27273. if ((u.show == null && (u.show = !1), i === 'cross')) {
  27274. var f = o.get(['label', 'show'])
  27275. if (((u.show = f != null ? f : !0), !a)) {
  27276. var h = (l.lineStyle = o.get('crossStyle'))
  27277. h && j(u, h.textStyle)
  27278. }
  27279. }
  27280. return r.model.getModel('axisPointer', new Nt(l, e, n))
  27281. }
  27282. function yP(r, t) {
  27283. t.eachSeries(function (e) {
  27284. var n = e.coordinateSystem,
  27285. i = e.get(['tooltip', 'trigger'], !0),
  27286. a = e.get(['tooltip', 'show'], !0)
  27287. !n ||
  27288. i === 'none' ||
  27289. i === !1 ||
  27290. i === 'item' ||
  27291. a === !1 ||
  27292. e.get(['axisPointer', 'show'], !0) === !1 ||
  27293. A(r.coordSysAxesInfo[Ya(n.model)], function (o) {
  27294. var s = o.axis
  27295. n.getAxis(s.dim) === s &&
  27296. (o.seriesModels.push(e),
  27297. o.seriesDataCount == null && (o.seriesDataCount = 0),
  27298. (o.seriesDataCount += e.getData().count()))
  27299. })
  27300. })
  27301. }
  27302. function _P(r, t) {
  27303. for (var e = t.model, n = t.dim, i = 0; i < r.length; i++) {
  27304. var a = r[i] || {}
  27305. if (
  27306. Wh(a[n + 'AxisId'], e.id) ||
  27307. Wh(a[n + 'AxisIndex'], e.componentIndex) ||
  27308. Wh(a[n + 'AxisName'], e.name)
  27309. )
  27310. return i
  27311. }
  27312. }
  27313. function Wh(r, t) {
  27314. return r === 'all' || (z(r) && ot(r, t) >= 0) || r === t
  27315. }
  27316. function SP(r) {
  27317. var t = Uh(r)
  27318. if (!!t) {
  27319. var e = t.axisPointerModel,
  27320. n = t.axis.scale,
  27321. i = e.option,
  27322. a = e.get('status'),
  27323. o = e.get('value')
  27324. o != null && (o = n.parse(o))
  27325. var s = Yh(e)
  27326. a == null && (i.status = s ? 'show' : 'hide')
  27327. var l = n.getExtent().slice()
  27328. l[0] > l[1] && l.reverse(),
  27329. (o == null || o > l[1]) && (o = l[1]),
  27330. o < l[0] && (o = l[0]),
  27331. (i.value = o),
  27332. s && (i.status = t.axis.scale.isBlank() ? 'hide' : 'show')
  27333. }
  27334. }
  27335. function Uh(r) {
  27336. var t = (r.ecModel.getComponent('axisPointer') || {}).coordSysAxesInfo
  27337. return t && t.axesInfo[Ya(r)]
  27338. }
  27339. function xP(r) {
  27340. var t = Uh(r)
  27341. return t && t.axisPointerModel
  27342. }
  27343. function Yh(r) {
  27344. return !!r.get(['handle', 'show'])
  27345. }
  27346. function Ya(r) {
  27347. return r.type + '||' + r.id
  27348. }
  27349. var c_ = {},
  27350. wP = (function (r) {
  27351. B(t, r)
  27352. function t() {
  27353. var e = (r !== null && r.apply(this, arguments)) || this
  27354. return (e.type = t.type), e
  27355. }
  27356. return (
  27357. (t.prototype.render = function (e, n, i, a) {
  27358. this.axisPointerClass && SP(e),
  27359. r.prototype.render.apply(this, arguments),
  27360. this._doUpdateAxisPointerClass(e, i, !0)
  27361. }),
  27362. (t.prototype.updateAxisPointer = function (e, n, i, a) {
  27363. this._doUpdateAxisPointerClass(e, i, !1)
  27364. }),
  27365. (t.prototype.remove = function (e, n) {
  27366. var i = this._axisPointer
  27367. i && i.remove(n)
  27368. }),
  27369. (t.prototype.dispose = function (e, n) {
  27370. this._disposeAxisPointer(n), r.prototype.dispose.apply(this, arguments)
  27371. }),
  27372. (t.prototype._doUpdateAxisPointerClass = function (e, n, i) {
  27373. var a = t.getAxisPointerClass(this.axisPointerClass)
  27374. if (!!a) {
  27375. var o = xP(e)
  27376. o
  27377. ? (this._axisPointer || (this._axisPointer = new a())).render(
  27378. e,
  27379. o,
  27380. n,
  27381. i
  27382. )
  27383. : this._disposeAxisPointer(n)
  27384. }
  27385. }),
  27386. (t.prototype._disposeAxisPointer = function (e) {
  27387. this._axisPointer && this._axisPointer.dispose(e),
  27388. (this._axisPointer = null)
  27389. }),
  27390. (t.registerAxisPointerClass = function (e, n) {
  27391. c_[e] = n
  27392. }),
  27393. (t.getAxisPointerClass = function (e) {
  27394. return e && c_[e]
  27395. }),
  27396. (t.type = 'axis'),
  27397. t
  27398. )
  27399. })(xe),
  27400. d_ = wP,
  27401. Zh = wt()
  27402. function bP(r, t, e, n) {
  27403. var i = e.axis
  27404. if (!i.scale.isBlank()) {
  27405. var a = e.getModel('splitArea'),
  27406. o = a.getModel('areaStyle'),
  27407. s = o.get('color'),
  27408. l = n.coordinateSystem.getRect(),
  27409. u = i.getTicksCoords({ tickModel: a, clamp: !0 })
  27410. if (!!u.length) {
  27411. var f = s.length,
  27412. h = Zh(r).splitAreaColors,
  27413. c = q(),
  27414. v = 0
  27415. if (h)
  27416. for (var d = 0; d < u.length; d++) {
  27417. var p = h.get(u[d].tickValue)
  27418. if (p != null) {
  27419. v = (p + (f - 1) * d) % f
  27420. break
  27421. }
  27422. }
  27423. var g = i.toGlobalCoord(u[0].coord),
  27424. m = o.getAreaStyle()
  27425. s = z(s) ? s : [s]
  27426. for (var d = 1; d < u.length; d++) {
  27427. var y = i.toGlobalCoord(u[d].coord),
  27428. _ = void 0,
  27429. S = void 0,
  27430. w = void 0,
  27431. x = void 0
  27432. i.isHorizontal()
  27433. ? ((_ = g), (S = l.y), (w = y - _), (x = l.height), (g = _ + w))
  27434. : ((_ = l.x), (S = g), (w = l.width), (x = y - S), (g = S + x))
  27435. var b = u[d - 1].tickValue
  27436. b != null && c.set(b, v),
  27437. t.add(
  27438. new St({
  27439. anid: b != null ? 'area_' + b : null,
  27440. shape: { x: _, y: S, width: w, height: x },
  27441. style: j({ fill: s[v] }, m),
  27442. autoBatch: !0,
  27443. silent: !0
  27444. })
  27445. ),
  27446. (v = (v + 1) % f)
  27447. }
  27448. Zh(r).splitAreaColors = c
  27449. }
  27450. }
  27451. }
  27452. function TP(r) {
  27453. Zh(r).splitAreaColors = null
  27454. }
  27455. var CP = ['axisLine', 'axisTickLabel', 'axisName'],
  27456. AP = ['splitArea', 'splitLine', 'minorSplitLine'],
  27457. p_ = (function (r) {
  27458. B(t, r)
  27459. function t() {
  27460. var e = (r !== null && r.apply(this, arguments)) || this
  27461. return (e.type = t.type), (e.axisPointerClass = 'CartesianAxisPointer'), e
  27462. }
  27463. return (
  27464. (t.prototype.render = function (e, n, i, a) {
  27465. this.group.removeAll()
  27466. var o = this._axisGroup
  27467. if (
  27468. ((this._axisGroup = new At()),
  27469. this.group.add(this._axisGroup),
  27470. !!e.get('show'))
  27471. ) {
  27472. var s = e.getCoordSysModel(),
  27473. l = Vh(s, e),
  27474. u = new v_(
  27475. e,
  27476. N(
  27477. {
  27478. handleAutoShown: function (h) {
  27479. for (
  27480. var c = s.coordinateSystem.getCartesians(), v = 0;
  27481. v < c.length;
  27482. v++
  27483. )
  27484. if (_h(c[v].getOtherAxis(e.axis).scale)) return !0
  27485. return !1
  27486. }
  27487. },
  27488. l
  27489. )
  27490. )
  27491. A(CP, u.add, u),
  27492. this._axisGroup.add(u.getGroup()),
  27493. A(
  27494. AP,
  27495. function (h) {
  27496. e.get([h, 'show']) && MP[h](this, this._axisGroup, e, s)
  27497. },
  27498. this
  27499. )
  27500. var f = a && a.type === 'changeAxisOrder' && a.isInitSort
  27501. f || Bp(o, this._axisGroup, e),
  27502. r.prototype.render.call(this, e, n, i, a)
  27503. }
  27504. }),
  27505. (t.prototype.remove = function () {
  27506. TP(this)
  27507. }),
  27508. (t.type = 'cartesianAxis'),
  27509. t
  27510. )
  27511. })(d_),
  27512. MP = {
  27513. splitLine: function (r, t, e, n) {
  27514. var i = e.axis
  27515. if (!i.scale.isBlank()) {
  27516. var a = e.getModel('splitLine'),
  27517. o = a.getModel('lineStyle'),
  27518. s = o.get('color')
  27519. s = z(s) ? s : [s]
  27520. for (
  27521. var l = n.coordinateSystem.getRect(),
  27522. u = i.isHorizontal(),
  27523. f = 0,
  27524. h = i.getTicksCoords({ tickModel: a }),
  27525. c = [],
  27526. v = [],
  27527. d = o.getLineStyle(),
  27528. p = 0;
  27529. p < h.length;
  27530. p++
  27531. ) {
  27532. var g = i.toGlobalCoord(h[p].coord)
  27533. u
  27534. ? ((c[0] = g), (c[1] = l.y), (v[0] = g), (v[1] = l.y + l.height))
  27535. : ((c[0] = l.x), (c[1] = g), (v[0] = l.x + l.width), (v[1] = g))
  27536. var m = f++ % s.length,
  27537. y = h[p].tickValue
  27538. t.add(
  27539. new cn({
  27540. anid: y != null ? 'line_' + h[p].tickValue : null,
  27541. subPixelOptimize: !0,
  27542. autoBatch: !0,
  27543. shape: { x1: c[0], y1: c[1], x2: v[0], y2: v[1] },
  27544. style: j({ stroke: s[m] }, d),
  27545. silent: !0
  27546. })
  27547. )
  27548. }
  27549. }
  27550. },
  27551. minorSplitLine: function (r, t, e, n) {
  27552. var i = e.axis,
  27553. a = e.getModel('minorSplitLine'),
  27554. o = a.getModel('lineStyle'),
  27555. s = n.coordinateSystem.getRect(),
  27556. l = i.isHorizontal(),
  27557. u = i.getMinorTicksCoords()
  27558. if (!!u.length)
  27559. for (var f = [], h = [], c = o.getLineStyle(), v = 0; v < u.length; v++)
  27560. for (var d = 0; d < u[v].length; d++) {
  27561. var p = i.toGlobalCoord(u[v][d].coord)
  27562. l
  27563. ? ((f[0] = p), (f[1] = s.y), (h[0] = p), (h[1] = s.y + s.height))
  27564. : ((f[0] = s.x), (f[1] = p), (h[0] = s.x + s.width), (h[1] = p)),
  27565. t.add(
  27566. new cn({
  27567. anid: 'minor_line_' + u[v][d].tickValue,
  27568. subPixelOptimize: !0,
  27569. autoBatch: !0,
  27570. shape: { x1: f[0], y1: f[1], x2: h[0], y2: h[1] },
  27571. style: c,
  27572. silent: !0
  27573. })
  27574. )
  27575. }
  27576. },
  27577. splitArea: function (r, t, e, n) {
  27578. bP(r, t, e, n)
  27579. }
  27580. },
  27581. g_ = (function (r) {
  27582. B(t, r)
  27583. function t() {
  27584. var e = (r !== null && r.apply(this, arguments)) || this
  27585. return (e.type = t.type), e
  27586. }
  27587. return (t.type = 'xAxis'), t
  27588. })(p_),
  27589. DP = (function (r) {
  27590. B(t, r)
  27591. function t() {
  27592. var e = (r !== null && r.apply(this, arguments)) || this
  27593. return (e.type = g_.type), e
  27594. }
  27595. return (t.type = 'yAxis'), t
  27596. })(p_),
  27597. IP = (function (r) {
  27598. B(t, r)
  27599. function t() {
  27600. var e = (r !== null && r.apply(this, arguments)) || this
  27601. return (e.type = 'grid'), e
  27602. }
  27603. return (
  27604. (t.prototype.render = function (e, n) {
  27605. this.group.removeAll(),
  27606. e.get('show') &&
  27607. this.group.add(
  27608. new St({
  27609. shape: e.coordinateSystem.getRect(),
  27610. style: j({ fill: e.get('backgroundColor') }, e.getItemStyle()),
  27611. silent: !0,
  27612. z2: -1
  27613. })
  27614. )
  27615. }),
  27616. (t.type = 'grid'),
  27617. t
  27618. )
  27619. })(xe),
  27620. m_ = { offset: 0 }
  27621. function LP(r) {
  27622. r.registerComponentView(IP),
  27623. r.registerComponentModel(XL),
  27624. r.registerCoordinateSystem('cartesian2d', uP),
  27625. e_(r, 'x', Nh, m_),
  27626. e_(r, 'y', Nh, m_),
  27627. r.registerComponentView(g_),
  27628. r.registerComponentView(DP),
  27629. r.registerPreprocessor(function (t) {
  27630. t.xAxis && t.yAxis && !t.grid && (t.grid = {})
  27631. })
  27632. }
  27633. var y_ = '\0_ec_interaction_mutex'
  27634. function PP(r, t, e) {
  27635. var n = $h(r)
  27636. n[t] = e
  27637. }
  27638. function RP(r, t, e) {
  27639. var n = $h(r),
  27640. i = n[t]
  27641. i === e && (n[t] = null)
  27642. }
  27643. function __(r, t) {
  27644. return !!$h(r)[t]
  27645. }
  27646. function $h(r) {
  27647. return r[y_] || (r[y_] = {})
  27648. }
  27649. Je(
  27650. { type: 'takeGlobalCursor', event: 'globalCursorTaken', update: 'update' },
  27651. $t
  27652. )
  27653. var EP = (function (r) {
  27654. B(t, r)
  27655. function t(e) {
  27656. var n = r.call(this) || this
  27657. n._zr = e
  27658. var i = X(n._mousedownHandler, n),
  27659. a = X(n._mousemoveHandler, n),
  27660. o = X(n._mouseupHandler, n),
  27661. s = X(n._mousewheelHandler, n),
  27662. l = X(n._pinchHandler, n)
  27663. return (
  27664. (n.enable = function (u, f) {
  27665. this.disable(),
  27666. (this._opt = j(tt(f) || {}, {
  27667. zoomOnMouseWheel: !0,
  27668. moveOnMouseMove: !0,
  27669. moveOnMouseWheel: !1,
  27670. preventDefaultMouseMove: !0
  27671. })),
  27672. u == null && (u = !0),
  27673. (u === !0 || u === 'move' || u === 'pan') &&
  27674. (e.on('mousedown', i), e.on('mousemove', a), e.on('mouseup', o)),
  27675. (u === !0 || u === 'scale' || u === 'zoom') &&
  27676. (e.on('mousewheel', s), e.on('pinch', l))
  27677. }),
  27678. (n.disable = function () {
  27679. e.off('mousedown', i),
  27680. e.off('mousemove', a),
  27681. e.off('mouseup', o),
  27682. e.off('mousewheel', s),
  27683. e.off('pinch', l)
  27684. }),
  27685. n
  27686. )
  27687. }
  27688. return (
  27689. (t.prototype.isDragging = function () {
  27690. return this._dragging
  27691. }),
  27692. (t.prototype.isPinching = function () {
  27693. return this._pinching
  27694. }),
  27695. (t.prototype.setPointerChecker = function (e) {
  27696. this.pointerChecker = e
  27697. }),
  27698. (t.prototype.dispose = function () {
  27699. this.disable()
  27700. }),
  27701. (t.prototype._mousedownHandler = function (e) {
  27702. if (!(tc(e) || (e.target && e.target.draggable))) {
  27703. var n = e.offsetX,
  27704. i = e.offsetY
  27705. this.pointerChecker &&
  27706. this.pointerChecker(e, n, i) &&
  27707. ((this._x = n), (this._y = i), (this._dragging = !0))
  27708. }
  27709. }),
  27710. (t.prototype._mousemoveHandler = function (e) {
  27711. if (
  27712. !(
  27713. !this._dragging ||
  27714. !dl('moveOnMouseMove', e, this._opt) ||
  27715. e.gestureEvent === 'pinch' ||
  27716. __(this._zr, 'globalPan')
  27717. )
  27718. ) {
  27719. var n = e.offsetX,
  27720. i = e.offsetY,
  27721. a = this._x,
  27722. o = this._y,
  27723. s = n - a,
  27724. l = i - o
  27725. ;(this._x = n),
  27726. (this._y = i),
  27727. this._opt.preventDefaultMouseMove && Hn(e.event),
  27728. S_(this, 'pan', 'moveOnMouseMove', e, {
  27729. dx: s,
  27730. dy: l,
  27731. oldX: a,
  27732. oldY: o,
  27733. newX: n,
  27734. newY: i,
  27735. isAvailableBehavior: null
  27736. })
  27737. }
  27738. }),
  27739. (t.prototype._mouseupHandler = function (e) {
  27740. tc(e) || (this._dragging = !1)
  27741. }),
  27742. (t.prototype._mousewheelHandler = function (e) {
  27743. var n = dl('zoomOnMouseWheel', e, this._opt),
  27744. i = dl('moveOnMouseWheel', e, this._opt),
  27745. a = e.wheelDelta,
  27746. o = Math.abs(a),
  27747. s = e.offsetX,
  27748. l = e.offsetY
  27749. if (!(a === 0 || (!n && !i))) {
  27750. if (n) {
  27751. var u = o > 3 ? 1.4 : o > 1 ? 1.2 : 1.1,
  27752. f = a > 0 ? u : 1 / u
  27753. Xh(this, 'zoom', 'zoomOnMouseWheel', e, {
  27754. scale: f,
  27755. originX: s,
  27756. originY: l,
  27757. isAvailableBehavior: null
  27758. })
  27759. }
  27760. if (i) {
  27761. var h = Math.abs(a),
  27762. c = (a > 0 ? 1 : -1) * (h > 3 ? 0.4 : h > 1 ? 0.15 : 0.05)
  27763. Xh(this, 'scrollMove', 'moveOnMouseWheel', e, {
  27764. scrollDelta: c,
  27765. originX: s,
  27766. originY: l,
  27767. isAvailableBehavior: null
  27768. })
  27769. }
  27770. }
  27771. }),
  27772. (t.prototype._pinchHandler = function (e) {
  27773. if (!__(this._zr, 'globalPan')) {
  27774. var n = e.pinchScale > 1 ? 1.1 : 1 / 1.1
  27775. Xh(this, 'zoom', null, e, {
  27776. scale: n,
  27777. originX: e.pinchX,
  27778. originY: e.pinchY,
  27779. isAvailableBehavior: null
  27780. })
  27781. }
  27782. }),
  27783. t
  27784. )
  27785. })(fe)
  27786. function Xh(r, t, e, n, i) {
  27787. r.pointerChecker &&
  27788. r.pointerChecker(n, i.originX, i.originY) &&
  27789. (Hn(n.event), S_(r, t, e, n, i))
  27790. }
  27791. function S_(r, t, e, n, i) {
  27792. ;(i.isAvailableBehavior = X(dl, null, e, n)), r.trigger(t, i)
  27793. }
  27794. function dl(r, t, e) {
  27795. var n = e[r]
  27796. return !r || (n && (!W(n) || t.event[n + 'Key']))
  27797. }
  27798. var OP = EP,
  27799. kP = { axisPointer: 1, tooltip: 1, brush: 1 }
  27800. function BP(r, t, e) {
  27801. var n = t.getComponentByElement(r.topTarget),
  27802. i = n && n.coordinateSystem
  27803. return n && n !== e && !kP.hasOwnProperty(n.mainType) && i && i.model !== e
  27804. }
  27805. function Za(r, t, e, n, i, a) {
  27806. r = r || 0
  27807. var o = e[1] - e[0]
  27808. if (
  27809. (i != null && (i = xi(i, [0, o])),
  27810. a != null && (a = Math.max(a, i != null ? i : 0)),
  27811. n === 'all')
  27812. ) {
  27813. var s = Math.abs(t[1] - t[0])
  27814. ;(s = xi(s, [0, o])), (i = a = xi(s, [i, a])), (n = 0)
  27815. }
  27816. ;(t[0] = xi(t[0], e)), (t[1] = xi(t[1], e))
  27817. var l = qh(t, n)
  27818. t[n] += r
  27819. var u = i || 0,
  27820. f = e.slice()
  27821. l.sign < 0 ? (f[0] += u) : (f[1] -= u), (t[n] = xi(t[n], f))
  27822. var h
  27823. return (
  27824. (h = qh(t, n)),
  27825. i != null &&
  27826. (h.sign !== l.sign || h.span < i) &&
  27827. (t[1 - n] = t[n] + l.sign * i),
  27828. (h = qh(t, n)),
  27829. a != null && h.span > a && (t[1 - n] = t[n] + h.sign * a),
  27830. t
  27831. )
  27832. }
  27833. function qh(r, t) {
  27834. var e = r[t] - r[1 - t]
  27835. return { span: Math.abs(e), sign: e > 0 ? -1 : e < 0 ? 1 : t ? -1 : 1 }
  27836. }
  27837. function xi(r, t) {
  27838. return Math.min(
  27839. t[1] != null ? t[1] : 1 / 0,
  27840. Math.max(t[0] != null ? t[0] : -1 / 0, r)
  27841. )
  27842. }
  27843. var In = !0,
  27844. $a = Math.min,
  27845. wi = Math.max,
  27846. NP = Math.pow,
  27847. FP = 1e4,
  27848. zP = 6,
  27849. VP = 6,
  27850. x_ = 'globalPan',
  27851. GP = { w: [0, 0], e: [0, 1], n: [1, 0], s: [1, 1] },
  27852. HP = {
  27853. w: 'ew',
  27854. e: 'ew',
  27855. n: 'ns',
  27856. s: 'ns',
  27857. ne: 'nesw',
  27858. sw: 'nesw',
  27859. nw: 'nwse',
  27860. se: 'nwse'
  27861. },
  27862. w_ = {
  27863. brushStyle: {
  27864. lineWidth: 2,
  27865. stroke: 'rgba(210,219,238,0.3)',
  27866. fill: '#D2DBEE'
  27867. },
  27868. transformable: !0,
  27869. brushMode: 'single',
  27870. removeOnClick: !1
  27871. },
  27872. WP = 0,
  27873. UP = (function (r) {
  27874. B(t, r)
  27875. function t(e) {
  27876. var n = r.call(this) || this
  27877. return (
  27878. (n._track = []),
  27879. (n._covers = []),
  27880. (n._handlers = {}),
  27881. (n._zr = e),
  27882. (n.group = new At()),
  27883. (n._uid = 'brushController_' + WP++),
  27884. A(
  27885. QP,
  27886. function (i, a) {
  27887. this._handlers[a] = X(i, this)
  27888. },
  27889. n
  27890. ),
  27891. n
  27892. )
  27893. }
  27894. return (
  27895. (t.prototype.enableBrush = function (e) {
  27896. return (
  27897. this._brushType && this._doDisableBrush(),
  27898. e.brushType && this._doEnableBrush(e),
  27899. this
  27900. )
  27901. }),
  27902. (t.prototype._doEnableBrush = function (e) {
  27903. var n = this._zr
  27904. this._enableGlobalPan || PP(n, x_, this._uid),
  27905. A(this._handlers, function (i, a) {
  27906. n.on(a, i)
  27907. }),
  27908. (this._brushType = e.brushType),
  27909. (this._brushOption = nt(tt(w_), e, !0))
  27910. }),
  27911. (t.prototype._doDisableBrush = function () {
  27912. var e = this._zr
  27913. RP(e, x_, this._uid),
  27914. A(this._handlers, function (n, i) {
  27915. e.off(i, n)
  27916. }),
  27917. (this._brushType = this._brushOption = null)
  27918. }),
  27919. (t.prototype.setPanels = function (e) {
  27920. if (e && e.length) {
  27921. var n = (this._panels = {})
  27922. A(e, function (i) {
  27923. n[i.panelId] = tt(i)
  27924. })
  27925. } else this._panels = null
  27926. return this
  27927. }),
  27928. (t.prototype.mount = function (e) {
  27929. ;(e = e || {}), (this._enableGlobalPan = e.enableGlobalPan)
  27930. var n = this.group
  27931. return (
  27932. this._zr.add(n),
  27933. n.attr({
  27934. x: e.x || 0,
  27935. y: e.y || 0,
  27936. rotation: e.rotation || 0,
  27937. scaleX: e.scaleX || 1,
  27938. scaleY: e.scaleY || 1
  27939. }),
  27940. (this._transform = n.getLocalTransform()),
  27941. this
  27942. )
  27943. }),
  27944. (t.prototype.updateCovers = function (e) {
  27945. e = G(e, function (c) {
  27946. return nt(tt(w_), c, !0)
  27947. })
  27948. var n = '\0-brush-index-',
  27949. i = this._covers,
  27950. a = (this._covers = []),
  27951. o = this,
  27952. s = this._creatingCover
  27953. return new Ba(i, e, u, l).add(f).update(f).remove(h).execute(), this
  27954. function l(c, v) {
  27955. return (c.id != null ? c.id : n + v) + '-' + c.brushType
  27956. }
  27957. function u(c, v) {
  27958. return l(c.__brushOption, v)
  27959. }
  27960. function f(c, v) {
  27961. var d = e[c]
  27962. if (v != null && i[v] === s) a[c] = i[v]
  27963. else {
  27964. var p = (a[c] =
  27965. v != null ? ((i[v].__brushOption = d), i[v]) : T_(o, b_(o, d)))
  27966. Kh(o, p)
  27967. }
  27968. }
  27969. function h(c) {
  27970. i[c] !== s && o.group.remove(i[c])
  27971. }
  27972. }),
  27973. (t.prototype.unmount = function () {
  27974. return this.enableBrush(!1), jh(this), this._zr.remove(this.group), this
  27975. }),
  27976. (t.prototype.dispose = function () {
  27977. this.unmount(), this.off()
  27978. }),
  27979. t
  27980. )
  27981. })(fe)
  27982. function b_(r, t) {
  27983. var e = pl[t.brushType].createCover(r, t)
  27984. return (e.__brushOption = t), A_(e, t), r.group.add(e), e
  27985. }
  27986. function T_(r, t) {
  27987. var e = Qh(t)
  27988. return e.endCreating && (e.endCreating(r, t), A_(t, t.__brushOption)), t
  27989. }
  27990. function C_(r, t) {
  27991. var e = t.__brushOption
  27992. Qh(t).updateCoverShape(r, t, e.range, e)
  27993. }
  27994. function A_(r, t) {
  27995. var e = t.z
  27996. e == null && (e = FP),
  27997. r.traverse(function (n) {
  27998. ;(n.z = e), (n.z2 = e)
  27999. })
  28000. }
  28001. function Kh(r, t) {
  28002. Qh(t).updateCommon(r, t), C_(r, t)
  28003. }
  28004. function Qh(r) {
  28005. return pl[r.__brushOption.brushType]
  28006. }
  28007. function Jh(r, t, e) {
  28008. var n = r._panels
  28009. if (!n) return In
  28010. var i,
  28011. a = r._transform
  28012. return (
  28013. A(n, function (o) {
  28014. o.isTargetByCursor(t, e, a) && (i = o)
  28015. }),
  28016. i
  28017. )
  28018. }
  28019. function M_(r, t) {
  28020. var e = r._panels
  28021. if (!e) return In
  28022. var n = t.__brushOption.panelId
  28023. return n != null ? e[n] : In
  28024. }
  28025. function jh(r) {
  28026. var t = r._covers,
  28027. e = t.length
  28028. return (
  28029. A(
  28030. t,
  28031. function (n) {
  28032. r.group.remove(n)
  28033. },
  28034. r
  28035. ),
  28036. (t.length = 0),
  28037. !!e
  28038. )
  28039. }
  28040. function Ln(r, t) {
  28041. var e = G(r._covers, function (n) {
  28042. var i = n.__brushOption,
  28043. a = tt(i.range)
  28044. return { brushType: i.brushType, panelId: i.panelId, range: a }
  28045. })
  28046. r.trigger('brush', {
  28047. areas: e,
  28048. isEnd: !!t.isEnd,
  28049. removeOnClick: !!t.removeOnClick
  28050. })
  28051. }
  28052. function YP(r) {
  28053. var t = r._track
  28054. if (!t.length) return !1
  28055. var e = t[t.length - 1],
  28056. n = t[0],
  28057. i = e[0] - n[0],
  28058. a = e[1] - n[1],
  28059. o = NP(i * i + a * a, 0.5)
  28060. return o > zP
  28061. }
  28062. function D_(r) {
  28063. var t = r.length - 1
  28064. return t < 0 && (t = 0), [r[0], r[t]]
  28065. }
  28066. function I_(r, t, e, n) {
  28067. var i = new At()
  28068. return (
  28069. i.add(
  28070. new St({
  28071. name: 'main',
  28072. style: ev(e),
  28073. silent: !0,
  28074. draggable: !0,
  28075. cursor: 'move',
  28076. drift: lt(R_, r, t, i, ['n', 's', 'w', 'e']),
  28077. ondragend: lt(Ln, t, { isEnd: !0 })
  28078. })
  28079. ),
  28080. A(n, function (a) {
  28081. i.add(
  28082. new St({
  28083. name: a.join(''),
  28084. style: { opacity: 0 },
  28085. draggable: !0,
  28086. silent: !0,
  28087. invisible: !0,
  28088. drift: lt(R_, r, t, i, a),
  28089. ondragend: lt(Ln, t, { isEnd: !0 })
  28090. })
  28091. )
  28092. }),
  28093. i
  28094. )
  28095. }
  28096. function L_(r, t, e, n) {
  28097. var i = n.brushStyle.lineWidth || 0,
  28098. a = wi(i, VP),
  28099. o = e[0][0],
  28100. s = e[1][0],
  28101. l = o - i / 2,
  28102. u = s - i / 2,
  28103. f = e[0][1],
  28104. h = e[1][1],
  28105. c = f - a + i / 2,
  28106. v = h - a + i / 2,
  28107. d = f - o,
  28108. p = h - s,
  28109. g = d + i,
  28110. m = p + i
  28111. mr(r, t, 'main', o, s, d, p),
  28112. n.transformable &&
  28113. (mr(r, t, 'w', l, u, a, m),
  28114. mr(r, t, 'e', c, u, a, m),
  28115. mr(r, t, 'n', l, u, g, a),
  28116. mr(r, t, 's', l, v, g, a),
  28117. mr(r, t, 'nw', l, u, a, a),
  28118. mr(r, t, 'ne', c, u, a, a),
  28119. mr(r, t, 'sw', l, v, a, a),
  28120. mr(r, t, 'se', c, v, a, a))
  28121. }
  28122. function tv(r, t) {
  28123. var e = t.__brushOption,
  28124. n = e.transformable,
  28125. i = t.childAt(0)
  28126. i.useStyle(ev(e)),
  28127. i.attr({ silent: !n, cursor: n ? 'move' : 'default' }),
  28128. A(
  28129. [
  28130. ['w'],
  28131. ['e'],
  28132. ['n'],
  28133. ['s'],
  28134. ['s', 'e'],
  28135. ['s', 'w'],
  28136. ['n', 'e'],
  28137. ['n', 'w']
  28138. ],
  28139. function (a) {
  28140. var o = t.childOfName(a.join('')),
  28141. s = a.length === 1 ? rv(r, a[0]) : $P(r, a)
  28142. o &&
  28143. o.attr({
  28144. silent: !n,
  28145. invisible: !n,
  28146. cursor: n ? HP[s] + '-resize' : null
  28147. })
  28148. }
  28149. )
  28150. }
  28151. function mr(r, t, e, n, i, a, o) {
  28152. var s = t.childOfName(e)
  28153. s &&
  28154. s.setShape(
  28155. qP(
  28156. nv(r, t, [
  28157. [n, i],
  28158. [n + a, i + o]
  28159. ])
  28160. )
  28161. )
  28162. }
  28163. function ev(r) {
  28164. return j({ strokeNoScale: !0 }, r.brushStyle)
  28165. }
  28166. function P_(r, t, e, n) {
  28167. var i = [$a(r, e), $a(t, n)],
  28168. a = [wi(r, e), wi(t, n)]
  28169. return [
  28170. [i[0], a[0]],
  28171. [i[1], a[1]]
  28172. ]
  28173. }
  28174. function ZP(r) {
  28175. return ls(r.group)
  28176. }
  28177. function rv(r, t) {
  28178. var e = { w: 'left', e: 'right', n: 'top', s: 'bottom' },
  28179. n = { left: 'w', right: 'e', top: 'n', bottom: 's' },
  28180. i = hf(e[t], ZP(r))
  28181. return n[i]
  28182. }
  28183. function $P(r, t) {
  28184. var e = [rv(r, t[0]), rv(r, t[1])]
  28185. return (e[0] === 'e' || e[0] === 'w') && e.reverse(), e.join('')
  28186. }
  28187. function R_(r, t, e, n, i, a) {
  28188. var o = e.__brushOption,
  28189. s = r.toRectRange(o.range),
  28190. l = E_(t, i, a)
  28191. A(n, function (u) {
  28192. var f = GP[u]
  28193. s[f[0]][f[1]] += l[f[0]]
  28194. }),
  28195. (o.range = r.fromRectRange(P_(s[0][0], s[1][0], s[0][1], s[1][1]))),
  28196. Kh(t, e),
  28197. Ln(t, { isEnd: !1 })
  28198. }
  28199. function XP(r, t, e, n) {
  28200. var i = t.__brushOption.range,
  28201. a = E_(r, e, n)
  28202. A(i, function (o) {
  28203. ;(o[0] += a[0]), (o[1] += a[1])
  28204. }),
  28205. Kh(r, t),
  28206. Ln(r, { isEnd: !1 })
  28207. }
  28208. function E_(r, t, e) {
  28209. var n = r.group,
  28210. i = n.transformCoordToLocal(t, e),
  28211. a = n.transformCoordToLocal(0, 0)
  28212. return [i[0] - a[0], i[1] - a[1]]
  28213. }
  28214. function nv(r, t, e) {
  28215. var n = M_(r, t)
  28216. return n && n !== In ? n.clipPath(e, r._transform) : tt(e)
  28217. }
  28218. function qP(r) {
  28219. var t = $a(r[0][0], r[1][0]),
  28220. e = $a(r[0][1], r[1][1]),
  28221. n = wi(r[0][0], r[1][0]),
  28222. i = wi(r[0][1], r[1][1])
  28223. return { x: t, y: e, width: n - t, height: i - e }
  28224. }
  28225. function KP(r, t, e) {
  28226. if (!(!r._brushType || JP(r, t.offsetX, t.offsetY))) {
  28227. var n = r._zr,
  28228. i = r._covers,
  28229. a = Jh(r, t, e)
  28230. if (!r._dragging)
  28231. for (var o = 0; o < i.length; o++) {
  28232. var s = i[o].__brushOption
  28233. if (
  28234. a &&
  28235. (a === In || s.panelId === a.panelId) &&
  28236. pl[s.brushType].contain(i[o], e[0], e[1])
  28237. )
  28238. return
  28239. }
  28240. a && n.setCursorStyle('crosshair')
  28241. }
  28242. }
  28243. function iv(r) {
  28244. var t = r.event
  28245. t.preventDefault && t.preventDefault()
  28246. }
  28247. function av(r, t, e) {
  28248. return r.childOfName('main').contain(t, e)
  28249. }
  28250. function O_(r, t, e, n) {
  28251. var i = r._creatingCover,
  28252. a = r._creatingPanel,
  28253. o = r._brushOption,
  28254. s
  28255. if ((r._track.push(e.slice()), YP(r) || i)) {
  28256. if (a && !i) {
  28257. o.brushMode === 'single' && jh(r)
  28258. var l = tt(o)
  28259. ;(l.brushType = k_(l.brushType, a)),
  28260. (l.panelId = a === In ? null : a.panelId),
  28261. (i = r._creatingCover = b_(r, l)),
  28262. r._covers.push(i)
  28263. }
  28264. if (i) {
  28265. var u = pl[k_(r._brushType, a)],
  28266. f = i.__brushOption
  28267. ;(f.range = u.getCreatingRange(nv(r, i, r._track))),
  28268. n && (T_(r, i), u.updateCommon(r, i)),
  28269. C_(r, i),
  28270. (s = { isEnd: n })
  28271. }
  28272. } else
  28273. n &&
  28274. o.brushMode === 'single' &&
  28275. o.removeOnClick &&
  28276. Jh(r, t, e) &&
  28277. jh(r) &&
  28278. (s = { isEnd: n, removeOnClick: !0 })
  28279. return s
  28280. }
  28281. function k_(r, t) {
  28282. return r === 'auto' ? t.defaultBrushType : r
  28283. }
  28284. var QP = {
  28285. mousedown: function (r) {
  28286. if (this._dragging) B_(this, r)
  28287. else if (!r.target || !r.target.draggable) {
  28288. iv(r)
  28289. var t = this.group.transformCoordToLocal(r.offsetX, r.offsetY)
  28290. this._creatingCover = null
  28291. var e = (this._creatingPanel = Jh(this, r, t))
  28292. e && ((this._dragging = !0), (this._track = [t.slice()]))
  28293. }
  28294. },
  28295. mousemove: function (r) {
  28296. var t = r.offsetX,
  28297. e = r.offsetY,
  28298. n = this.group.transformCoordToLocal(t, e)
  28299. if ((KP(this, r, n), this._dragging)) {
  28300. iv(r)
  28301. var i = O_(this, r, n, !1)
  28302. i && Ln(this, i)
  28303. }
  28304. },
  28305. mouseup: function (r) {
  28306. B_(this, r)
  28307. }
  28308. }
  28309. function B_(r, t) {
  28310. if (r._dragging) {
  28311. iv(t)
  28312. var e = t.offsetX,
  28313. n = t.offsetY,
  28314. i = r.group.transformCoordToLocal(e, n),
  28315. a = O_(r, t, i, !0)
  28316. ;(r._dragging = !1),
  28317. (r._track = []),
  28318. (r._creatingCover = null),
  28319. a && Ln(r, a)
  28320. }
  28321. }
  28322. function JP(r, t, e) {
  28323. var n = r._zr
  28324. return t < 0 || t > n.getWidth() || e < 0 || e > n.getHeight()
  28325. }
  28326. var pl = {
  28327. lineX: N_(0),
  28328. lineY: N_(1),
  28329. rect: {
  28330. createCover: function (r, t) {
  28331. function e(n) {
  28332. return n
  28333. }
  28334. return I_({ toRectRange: e, fromRectRange: e }, r, t, [
  28335. ['w'],
  28336. ['e'],
  28337. ['n'],
  28338. ['s'],
  28339. ['s', 'e'],
  28340. ['s', 'w'],
  28341. ['n', 'e'],
  28342. ['n', 'w']
  28343. ])
  28344. },
  28345. getCreatingRange: function (r) {
  28346. var t = D_(r)
  28347. return P_(t[1][0], t[1][1], t[0][0], t[0][1])
  28348. },
  28349. updateCoverShape: function (r, t, e, n) {
  28350. L_(r, t, e, n)
  28351. },
  28352. updateCommon: tv,
  28353. contain: av
  28354. },
  28355. polygon: {
  28356. createCover: function (r, t) {
  28357. var e = new At()
  28358. return e.add(new ai({ name: 'main', style: ev(t), silent: !0 })), e
  28359. },
  28360. getCreatingRange: function (r) {
  28361. return r
  28362. },
  28363. endCreating: function (r, t) {
  28364. t.remove(t.childAt(0)),
  28365. t.add(
  28366. new ua({
  28367. name: 'main',
  28368. draggable: !0,
  28369. drift: lt(XP, r, t),
  28370. ondragend: lt(Ln, r, { isEnd: !0 })
  28371. })
  28372. )
  28373. },
  28374. updateCoverShape: function (r, t, e, n) {
  28375. t.childAt(0).setShape({ points: nv(r, t, e) })
  28376. },
  28377. updateCommon: tv,
  28378. contain: av
  28379. }
  28380. }
  28381. function N_(r) {
  28382. return {
  28383. createCover: function (t, e) {
  28384. return I_(
  28385. {
  28386. toRectRange: function (n) {
  28387. var i = [n, [0, 100]]
  28388. return r && i.reverse(), i
  28389. },
  28390. fromRectRange: function (n) {
  28391. return n[r]
  28392. }
  28393. },
  28394. t,
  28395. e,
  28396. [
  28397. [['w'], ['e']],
  28398. [['n'], ['s']]
  28399. ][r]
  28400. )
  28401. },
  28402. getCreatingRange: function (t) {
  28403. var e = D_(t),
  28404. n = $a(e[0][r], e[1][r]),
  28405. i = wi(e[0][r], e[1][r])
  28406. return [n, i]
  28407. },
  28408. updateCoverShape: function (t, e, n, i) {
  28409. var a,
  28410. o = M_(t, e)
  28411. if (o !== In && o.getLinearBrushOtherExtent)
  28412. a = o.getLinearBrushOtherExtent(r)
  28413. else {
  28414. var s = t._zr
  28415. a = [0, [s.getWidth(), s.getHeight()][1 - r]]
  28416. }
  28417. var l = [n, a]
  28418. r && l.reverse(), L_(t, e, l, i)
  28419. },
  28420. updateCommon: tv,
  28421. contain: av
  28422. }
  28423. }
  28424. var jP = UP
  28425. function tR(r) {
  28426. return (
  28427. (r = ov(r)),
  28428. function (t) {
  28429. return Np(t, r)
  28430. }
  28431. )
  28432. }
  28433. function eR(r, t) {
  28434. return (
  28435. (r = ov(r)),
  28436. function (e) {
  28437. var n = t != null ? t : e,
  28438. i = n ? r.width : r.height,
  28439. a = n ? r.x : r.y
  28440. return [a, a + (i || 0)]
  28441. }
  28442. )
  28443. }
  28444. function rR(r, t, e) {
  28445. var n = ov(r)
  28446. return function (i, a) {
  28447. return n.contain(a[0], a[1]) && !BP(i, t, e)
  28448. }
  28449. }
  28450. function ov(r) {
  28451. return vt.create(r)
  28452. }
  28453. var Pn = wt(),
  28454. F_ = tt,
  28455. sv = X,
  28456. nR = (function () {
  28457. function r() {
  28458. ;(this._dragging = !1), (this.animationThreshold = 15)
  28459. }
  28460. return (
  28461. (r.prototype.render = function (t, e, n, i) {
  28462. var a = e.get('value'),
  28463. o = e.get('status')
  28464. if (
  28465. ((this._axisModel = t),
  28466. (this._axisPointerModel = e),
  28467. (this._api = n),
  28468. !(!i && this._lastValue === a && this._lastStatus === o))
  28469. ) {
  28470. ;(this._lastValue = a), (this._lastStatus = o)
  28471. var s = this._group,
  28472. l = this._handle
  28473. if (!o || o === 'hide') {
  28474. s && s.hide(), l && l.hide()
  28475. return
  28476. }
  28477. s && s.show(), l && l.show()
  28478. var u = {}
  28479. this.makeElOption(u, a, t, e, n)
  28480. var f = u.graphicKey
  28481. f !== this._lastGraphicKey && this.clear(n),
  28482. (this._lastGraphicKey = f)
  28483. var h = (this._moveAnimation = this.determineAnimation(t, e))
  28484. if (!s)
  28485. (s = this._group = new At()),
  28486. this.createPointerEl(s, u, t, e),
  28487. this.createLabelEl(s, u, t, e),
  28488. n.getZr().add(s)
  28489. else {
  28490. var c = lt(z_, e, h)
  28491. this.updatePointerEl(s, u, c), this.updateLabelEl(s, u, c, e)
  28492. }
  28493. H_(s, e, !0), this._renderHandle(a)
  28494. }
  28495. }),
  28496. (r.prototype.remove = function (t) {
  28497. this.clear(t)
  28498. }),
  28499. (r.prototype.dispose = function (t) {
  28500. this.clear(t)
  28501. }),
  28502. (r.prototype.determineAnimation = function (t, e) {
  28503. var n = e.get('animation'),
  28504. i = t.axis,
  28505. a = i.type === 'category',
  28506. o = e.get('snap')
  28507. if (!o && !a) return !1
  28508. if (n === 'auto' || n == null) {
  28509. var s = this.animationThreshold
  28510. if (a && i.getBandWidth() > s) return !0
  28511. if (o) {
  28512. var l = Uh(t).seriesDataCount,
  28513. u = i.getExtent()
  28514. return Math.abs(u[0] - u[1]) / l > s
  28515. }
  28516. return !1
  28517. }
  28518. return n === !0
  28519. }),
  28520. (r.prototype.makeElOption = function (t, e, n, i, a) {}),
  28521. (r.prototype.createPointerEl = function (t, e, n, i) {
  28522. var a = e.pointer
  28523. if (a) {
  28524. var o = (Pn(t).pointerEl = new RC[a.type](F_(e.pointer)))
  28525. t.add(o)
  28526. }
  28527. }),
  28528. (r.prototype.createLabelEl = function (t, e, n, i) {
  28529. if (e.label) {
  28530. var a = (Pn(t).labelEl = new Et(F_(e.label)))
  28531. t.add(a), G_(a, i)
  28532. }
  28533. }),
  28534. (r.prototype.updatePointerEl = function (t, e, n) {
  28535. var i = Pn(t).pointerEl
  28536. i &&
  28537. e.pointer &&
  28538. (i.setStyle(e.pointer.style), n(i, { shape: e.pointer.shape }))
  28539. }),
  28540. (r.prototype.updateLabelEl = function (t, e, n, i) {
  28541. var a = Pn(t).labelEl
  28542. a &&
  28543. (a.setStyle(e.label.style),
  28544. n(a, { x: e.label.x, y: e.label.y }),
  28545. G_(a, i))
  28546. }),
  28547. (r.prototype._renderHandle = function (t) {
  28548. if (!(this._dragging || !this.updateHandleTransform)) {
  28549. var e = this._axisPointerModel,
  28550. n = this._api.getZr(),
  28551. i = this._handle,
  28552. a = e.getModel('handle'),
  28553. o = e.get('status')
  28554. if (!a.get('show') || !o || o === 'hide') {
  28555. i && n.remove(i), (this._handle = null)
  28556. return
  28557. }
  28558. var s
  28559. this._handle ||
  28560. ((s = !0),
  28561. (i = this._handle =
  28562. us(a.get('icon'), {
  28563. cursor: 'move',
  28564. draggable: !0,
  28565. onmousemove: function (u) {
  28566. Hn(u.event)
  28567. },
  28568. onmousedown: sv(this._onHandleDragMove, this, 0, 0),
  28569. drift: sv(this._onHandleDragMove, this),
  28570. ondragend: sv(this._onHandleDragEnd, this)
  28571. })),
  28572. n.add(i)),
  28573. H_(i, e, !1),
  28574. i.setStyle(
  28575. a.getItemStyle(null, [
  28576. 'color',
  28577. 'borderColor',
  28578. 'borderWidth',
  28579. 'opacity',
  28580. 'shadowColor',
  28581. 'shadowBlur',
  28582. 'shadowOffsetX',
  28583. 'shadowOffsetY'
  28584. ])
  28585. )
  28586. var l = a.get('size')
  28587. z(l) || (l = [l, l]),
  28588. (i.scaleX = l[0] / 2),
  28589. (i.scaleY = l[1] / 2),
  28590. Os(
  28591. this,
  28592. '_doDispatchAxisPointer',
  28593. a.get('throttle') || 0,
  28594. 'fixRate'
  28595. ),
  28596. this._moveHandleToValue(t, s)
  28597. }
  28598. }),
  28599. (r.prototype._moveHandleToValue = function (t, e) {
  28600. z_(
  28601. this._axisPointerModel,
  28602. !e && this._moveAnimation,
  28603. this._handle,
  28604. lv(
  28605. this.getHandleTransform(t, this._axisModel, this._axisPointerModel)
  28606. )
  28607. )
  28608. }),
  28609. (r.prototype._onHandleDragMove = function (t, e) {
  28610. var n = this._handle
  28611. if (!!n) {
  28612. this._dragging = !0
  28613. var i = this.updateHandleTransform(
  28614. lv(n),
  28615. [t, e],
  28616. this._axisModel,
  28617. this._axisPointerModel
  28618. )
  28619. ;(this._payloadInfo = i),
  28620. n.stopAnimation(),
  28621. n.attr(lv(i)),
  28622. (Pn(n).lastProp = null),
  28623. this._doDispatchAxisPointer()
  28624. }
  28625. }),
  28626. (r.prototype._doDispatchAxisPointer = function () {
  28627. var t = this._handle
  28628. if (!!t) {
  28629. var e = this._payloadInfo,
  28630. n = this._axisModel
  28631. this._api.dispatchAction({
  28632. type: 'updateAxisPointer',
  28633. x: e.cursorPoint[0],
  28634. y: e.cursorPoint[1],
  28635. tooltipOption: e.tooltipOption,
  28636. axesInfo: [{ axisDim: n.axis.dim, axisIndex: n.componentIndex }]
  28637. })
  28638. }
  28639. }),
  28640. (r.prototype._onHandleDragEnd = function () {
  28641. this._dragging = !1
  28642. var t = this._handle
  28643. if (!!t) {
  28644. var e = this._axisPointerModel.get('value')
  28645. this._moveHandleToValue(e),
  28646. this._api.dispatchAction({ type: 'hideTip' })
  28647. }
  28648. }),
  28649. (r.prototype.clear = function (t) {
  28650. ;(this._lastValue = null), (this._lastStatus = null)
  28651. var e = t.getZr(),
  28652. n = this._group,
  28653. i = this._handle
  28654. e &&
  28655. n &&
  28656. ((this._lastGraphicKey = null),
  28657. n && e.remove(n),
  28658. i && e.remove(i),
  28659. (this._group = null),
  28660. (this._handle = null),
  28661. (this._payloadInfo = null)),
  28662. ks(this, '_doDispatchAxisPointer')
  28663. }),
  28664. (r.prototype.doClear = function () {}),
  28665. (r.prototype.buildLabel = function (t, e, n) {
  28666. return (
  28667. (n = n || 0), { x: t[n], y: t[1 - n], width: e[n], height: e[1 - n] }
  28668. )
  28669. }),
  28670. r
  28671. )
  28672. })()
  28673. function z_(r, t, e, n) {
  28674. V_(Pn(e).lastProp, n) ||
  28675. ((Pn(e).lastProp = n), t ? kt(e, n, r) : (e.stopAnimation(), e.attr(n)))
  28676. }
  28677. function V_(r, t) {
  28678. if (Y(r) && Y(t)) {
  28679. var e = !0
  28680. return (
  28681. A(t, function (n, i) {
  28682. e = e && V_(r[i], n)
  28683. }),
  28684. !!e
  28685. )
  28686. } else return r === t
  28687. }
  28688. function G_(r, t) {
  28689. r[t.get(['label', 'show']) ? 'show' : 'hide']()
  28690. }
  28691. function lv(r) {
  28692. return { x: r.x || 0, y: r.y || 0, rotation: r.rotation || 0 }
  28693. }
  28694. function H_(r, t, e) {
  28695. var n = t.get('z'),
  28696. i = t.get('zlevel')
  28697. r &&
  28698. r.traverse(function (a) {
  28699. a.type !== 'group' &&
  28700. (n != null && (a.z = n), i != null && (a.zlevel = i), (a.silent = e))
  28701. })
  28702. }
  28703. var iR = nR
  28704. function aR(r) {
  28705. var t = r.get('type'),
  28706. e = r.getModel(t + 'Style'),
  28707. n
  28708. return (
  28709. t === 'line'
  28710. ? ((n = e.getLineStyle()), (n.fill = null))
  28711. : t === 'shadow' && ((n = e.getAreaStyle()), (n.stroke = null)),
  28712. n
  28713. )
  28714. }
  28715. function oR(r, t, e, n, i) {
  28716. var a = e.get('value'),
  28717. o = W_(a, t.axis, t.ecModel, e.get('seriesDataIndices'), {
  28718. precision: e.get(['label', 'precision']),
  28719. formatter: e.get(['label', 'formatter'])
  28720. }),
  28721. s = e.getModel('label'),
  28722. l = ws(s.get('padding') || 0),
  28723. u = s.getFont(),
  28724. f = Eo(o, u),
  28725. h = i.position,
  28726. c = f.width + l[1] + l[3],
  28727. v = f.height + l[0] + l[2],
  28728. d = i.align
  28729. d === 'right' && (h[0] -= c), d === 'center' && (h[0] -= c / 2)
  28730. var p = i.verticalAlign
  28731. p === 'bottom' && (h[1] -= v),
  28732. p === 'middle' && (h[1] -= v / 2),
  28733. sR(h, c, v, n)
  28734. var g = s.get('backgroundColor')
  28735. ;(!g || g === 'auto') && (g = t.get(['axisLine', 'lineStyle', 'color'])),
  28736. (r.label = {
  28737. x: h[0],
  28738. y: h[1],
  28739. style: vr(s, {
  28740. text: o,
  28741. font: u,
  28742. fill: s.getTextColor(),
  28743. padding: l,
  28744. backgroundColor: g
  28745. }),
  28746. z2: 10
  28747. })
  28748. }
  28749. function sR(r, t, e, n) {
  28750. var i = n.getWidth(),
  28751. a = n.getHeight()
  28752. ;(r[0] = Math.min(r[0] + t, i) - t),
  28753. (r[1] = Math.min(r[1] + e, a) - e),
  28754. (r[0] = Math.max(r[0], 0)),
  28755. (r[1] = Math.max(r[1], 0))
  28756. }
  28757. function W_(r, t, e, n, i) {
  28758. r = t.scale.parse(r)
  28759. var a = t.scale.getLabel({ value: r }, { precision: i.precision }),
  28760. o = i.formatter
  28761. if (o) {
  28762. var s = {
  28763. value: Th(t, { value: r }),
  28764. axisDimension: t.dim,
  28765. axisIndex: t.index,
  28766. seriesData: []
  28767. }
  28768. A(n, function (l) {
  28769. var u = e.getSeriesByIndex(l.seriesIndex),
  28770. f = l.dataIndexInside,
  28771. h = u && u.getDataParams(f)
  28772. h && s.seriesData.push(h)
  28773. }),
  28774. W(o) ? (a = o.replace('{value}', a)) : Q(o) && (a = o(s))
  28775. }
  28776. return a
  28777. }
  28778. function U_(r, t, e) {
  28779. var n = Hi()
  28780. return (
  28781. pu(n, n, e.rotation),
  28782. du(n, n, e.position),
  28783. fa(
  28784. [
  28785. r.dataToCoord(t),
  28786. (e.labelOffset || 0) + (e.labelDirection || 1) * (e.labelMargin || 0)
  28787. ],
  28788. n
  28789. )
  28790. )
  28791. }
  28792. function lR(r, t, e, n, i, a) {
  28793. var o = v_.innerTextLayout(e.rotation, 0, e.labelDirection)
  28794. ;(e.labelMargin = i.get(['label', 'margin'])),
  28795. oR(t, n, i, a, {
  28796. position: U_(n.axis, r, e),
  28797. align: o.textAlign,
  28798. verticalAlign: o.textVerticalAlign
  28799. })
  28800. }
  28801. function uR(r, t, e) {
  28802. return (e = e || 0), { x1: r[e], y1: r[1 - e], x2: t[e], y2: t[1 - e] }
  28803. }
  28804. function fR(r, t, e) {
  28805. return (e = e || 0), { x: r[e], y: r[1 - e], width: t[e], height: t[1 - e] }
  28806. }
  28807. var hR = (function (r) {
  28808. B(t, r)
  28809. function t() {
  28810. return (r !== null && r.apply(this, arguments)) || this
  28811. }
  28812. return (
  28813. (t.prototype.makeElOption = function (e, n, i, a, o) {
  28814. var s = i.axis,
  28815. l = s.grid,
  28816. u = a.get('type'),
  28817. f = Y_(l, s).getOtherAxis(s).getGlobalExtent(),
  28818. h = s.toGlobalCoord(s.dataToCoord(n, !0))
  28819. if (u && u !== 'none') {
  28820. var c = aR(a),
  28821. v = vR[u](s, h, f)
  28822. ;(v.style = c), (e.graphicKey = v.type), (e.pointer = v)
  28823. }
  28824. var d = Vh(l.model, i)
  28825. lR(n, e, d, i, a, o)
  28826. }),
  28827. (t.prototype.getHandleTransform = function (e, n, i) {
  28828. var a = Vh(n.axis.grid.model, n, { labelInside: !1 })
  28829. a.labelMargin = i.get(['handle', 'margin'])
  28830. var o = U_(n.axis, e, a)
  28831. return {
  28832. x: o[0],
  28833. y: o[1],
  28834. rotation: a.rotation + (a.labelDirection < 0 ? Math.PI : 0)
  28835. }
  28836. }),
  28837. (t.prototype.updateHandleTransform = function (e, n, i, a) {
  28838. var o = i.axis,
  28839. s = o.grid,
  28840. l = o.getGlobalExtent(!0),
  28841. u = Y_(s, o).getOtherAxis(o).getGlobalExtent(),
  28842. f = o.dim === 'x' ? 0 : 1,
  28843. h = [e.x, e.y]
  28844. ;(h[f] += n[f]),
  28845. (h[f] = Math.min(l[1], h[f])),
  28846. (h[f] = Math.max(l[0], h[f]))
  28847. var c = (u[1] + u[0]) / 2,
  28848. v = [c, c]
  28849. v[f] = h[f]
  28850. var d = [{ verticalAlign: 'middle' }, { align: 'center' }]
  28851. return {
  28852. x: h[0],
  28853. y: h[1],
  28854. rotation: e.rotation,
  28855. cursorPoint: v,
  28856. tooltipOption: d[f]
  28857. }
  28858. }),
  28859. t
  28860. )
  28861. })(iR)
  28862. function Y_(r, t) {
  28863. var e = {}
  28864. return (e[t.dim + 'AxisIndex'] = t.index), r.getCartesian(e)
  28865. }
  28866. var vR = {
  28867. line: function (r, t, e) {
  28868. var n = uR([t, e[0]], [t, e[1]], Z_(r))
  28869. return { type: 'Line', subPixelOptimize: !0, shape: n }
  28870. },
  28871. shadow: function (r, t, e) {
  28872. var n = Math.max(1, r.getBandWidth()),
  28873. i = e[1] - e[0]
  28874. return { type: 'Rect', shape: fR([t - n / 2, e[0]], [n, i], Z_(r)) }
  28875. }
  28876. }
  28877. function Z_(r) {
  28878. return r.dim === 'x' ? 0 : 1
  28879. }
  28880. var cR = hR,
  28881. dR = (function (r) {
  28882. B(t, r)
  28883. function t() {
  28884. var e = (r !== null && r.apply(this, arguments)) || this
  28885. return (e.type = t.type), e
  28886. }
  28887. return (
  28888. (t.type = 'axisPointer'),
  28889. (t.defaultOption = {
  28890. show: 'auto',
  28891. z: 50,
  28892. type: 'line',
  28893. snap: !1,
  28894. triggerTooltip: !0,
  28895. value: null,
  28896. status: null,
  28897. link: [],
  28898. animation: null,
  28899. animationDurationUpdate: 200,
  28900. lineStyle: { color: '#B9BEC9', width: 1, type: 'dashed' },
  28901. shadowStyle: { color: 'rgba(210,219,238,0.2)' },
  28902. label: {
  28903. show: !0,
  28904. formatter: null,
  28905. precision: 'auto',
  28906. margin: 3,
  28907. color: '#fff',
  28908. padding: [5, 7, 5, 7],
  28909. backgroundColor: 'auto',
  28910. borderColor: null,
  28911. borderWidth: 0,
  28912. borderRadius: 3
  28913. },
  28914. handle: {
  28915. show: !1,
  28916. icon: 'M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z',
  28917. size: 45,
  28918. margin: 50,
  28919. color: '#333',
  28920. shadowBlur: 3,
  28921. shadowColor: '#aaa',
  28922. shadowOffsetX: 0,
  28923. shadowOffsetY: 2,
  28924. throttle: 40
  28925. }
  28926. }),
  28927. t
  28928. )
  28929. })(_t),
  28930. pR = dR,
  28931. yr = wt(),
  28932. gR = A
  28933. function $_(r, t, e) {
  28934. if (!at.node) {
  28935. var n = t.getZr()
  28936. yr(n).records || (yr(n).records = {}), mR(n, t)
  28937. var i = yr(n).records[r] || (yr(n).records[r] = {})
  28938. i.handler = e
  28939. }
  28940. }
  28941. function mR(r, t) {
  28942. if (yr(r).initialized) return
  28943. ;(yr(r).initialized = !0),
  28944. e('click', lt(X_, 'click')),
  28945. e('mousemove', lt(X_, 'mousemove')),
  28946. e('globalout', _R)
  28947. function e(n, i) {
  28948. r.on(n, function (a) {
  28949. var o = SR(t)
  28950. gR(yr(r).records, function (s) {
  28951. s && i(s, a, o.dispatchAction)
  28952. }),
  28953. yR(o.pendings, t)
  28954. })
  28955. }
  28956. }
  28957. function yR(r, t) {
  28958. var e = r.showTip.length,
  28959. n = r.hideTip.length,
  28960. i
  28961. e ? (i = r.showTip[e - 1]) : n && (i = r.hideTip[n - 1]),
  28962. i && ((i.dispatchAction = null), t.dispatchAction(i))
  28963. }
  28964. function _R(r, t, e) {
  28965. r.handler('leave', null, e)
  28966. }
  28967. function X_(r, t, e, n) {
  28968. t.handler(r, e, n)
  28969. }
  28970. function SR(r) {
  28971. var t = { showTip: [], hideTip: [] },
  28972. e = function (n) {
  28973. var i = t[n.type]
  28974. i ? i.push(n) : ((n.dispatchAction = e), r.dispatchAction(n))
  28975. }
  28976. return { dispatchAction: e, pendings: t }
  28977. }
  28978. function uv(r, t) {
  28979. if (!at.node) {
  28980. var e = t.getZr(),
  28981. n = (yr(e).records || {})[r]
  28982. n && (yr(e).records[r] = null)
  28983. }
  28984. }
  28985. var xR = (function (r) {
  28986. B(t, r)
  28987. function t() {
  28988. var e = (r !== null && r.apply(this, arguments)) || this
  28989. return (e.type = t.type), e
  28990. }
  28991. return (
  28992. (t.prototype.render = function (e, n, i) {
  28993. var a = n.getComponent('tooltip'),
  28994. o =
  28995. e.get('triggerOn') || (a && a.get('triggerOn')) || 'mousemove|click'
  28996. $_('axisPointer', i, function (s, l, u) {
  28997. o !== 'none' &&
  28998. (s === 'leave' || o.indexOf(s) >= 0) &&
  28999. u({
  29000. type: 'updateAxisPointer',
  29001. currTrigger: s,
  29002. x: l && l.offsetX,
  29003. y: l && l.offsetY
  29004. })
  29005. })
  29006. }),
  29007. (t.prototype.remove = function (e, n) {
  29008. uv('axisPointer', n)
  29009. }),
  29010. (t.prototype.dispose = function (e, n) {
  29011. uv('axisPointer', n)
  29012. }),
  29013. (t.type = 'axisPointer'),
  29014. t
  29015. )
  29016. })(xe),
  29017. wR = xR
  29018. function q_(r, t) {
  29019. var e = [],
  29020. n = r.seriesIndex,
  29021. i
  29022. if (n == null || !(i = t.getSeriesByIndex(n))) return { point: [] }
  29023. var a = i.getData(),
  29024. o = Jr(a, r)
  29025. if (o == null || o < 0 || z(o)) return { point: [] }
  29026. var s = a.getItemGraphicEl(o),
  29027. l = i.coordinateSystem
  29028. if (i.getTooltipPosition) e = i.getTooltipPosition(o) || []
  29029. else if (l && l.dataToPoint)
  29030. if (r.isStacked) {
  29031. var u = l.getBaseAxis(),
  29032. f = l.getOtherAxis(u),
  29033. h = f.dim,
  29034. c = u.dim,
  29035. v = h === 'x' || h === 'radius' ? 1 : 0,
  29036. d = a.mapDimension(c),
  29037. p = []
  29038. ;(p[v] = a.get(d, o)),
  29039. (p[1 - v] = a.get(a.getCalculationInfo('stackResultDimension'), o)),
  29040. (e = l.dataToPoint(p) || [])
  29041. } else
  29042. e =
  29043. l.dataToPoint(
  29044. a.getValues(
  29045. G(l.dimensions, function (m) {
  29046. return a.mapDimension(m)
  29047. }),
  29048. o
  29049. )
  29050. ) || []
  29051. else if (s) {
  29052. var g = s.getBoundingRect().clone()
  29053. g.applyTransform(s.transform), (e = [g.x + g.width / 2, g.y + g.height / 2])
  29054. }
  29055. return { point: e, el: s }
  29056. }
  29057. var K_ = wt()
  29058. function bR(r, t, e) {
  29059. var n = r.currTrigger,
  29060. i = [r.x, r.y],
  29061. a = r,
  29062. o = r.dispatchAction || X(e.dispatchAction, e),
  29063. s = t.getComponent('axisPointer').coordSysAxesInfo
  29064. if (!!s) {
  29065. gl(i) &&
  29066. (i = q_({ seriesIndex: a.seriesIndex, dataIndex: a.dataIndex }, t).point)
  29067. var l = gl(i),
  29068. u = a.axesInfo,
  29069. f = s.axesInfo,
  29070. h = n === 'leave' || gl(i),
  29071. c = {},
  29072. v = {},
  29073. d = { list: [], map: {} },
  29074. p = { showPointer: lt(CR, v), showTooltip: lt(AR, d) }
  29075. A(s.coordSysMap, function (m, y) {
  29076. var _ = l || m.containPoint(i)
  29077. A(s.coordSysAxesInfo[y], function (S, w) {
  29078. var x = S.axis,
  29079. b = LR(u, S)
  29080. if (!h && _ && (!u || b)) {
  29081. var T = b && b.value
  29082. T == null && !l && (T = x.pointToData(i)),
  29083. T != null && Q_(S, T, p, !1, c)
  29084. }
  29085. })
  29086. })
  29087. var g = {}
  29088. return (
  29089. A(f, function (m, y) {
  29090. var _ = m.linkGroup
  29091. _ &&
  29092. !v[y] &&
  29093. A(_.axesInfo, function (S, w) {
  29094. var x = v[w]
  29095. if (S !== m && x) {
  29096. var b = x.value
  29097. _.mapper && (b = m.axis.scale.parse(_.mapper(b, J_(S), J_(m)))),
  29098. (g[m.key] = b)
  29099. }
  29100. })
  29101. }),
  29102. A(g, function (m, y) {
  29103. Q_(f[y], m, p, !0, c)
  29104. }),
  29105. MR(v, f, c),
  29106. DR(d, i, r, o),
  29107. IR(f, o, e),
  29108. c
  29109. )
  29110. }
  29111. }
  29112. function Q_(r, t, e, n, i) {
  29113. var a = r.axis
  29114. if (!(a.scale.isBlank() || !a.containData(t))) {
  29115. if (!r.involveSeries) {
  29116. e.showPointer(r, t)
  29117. return
  29118. }
  29119. var o = TR(t, r),
  29120. s = o.payloadBatch,
  29121. l = o.snapToValue
  29122. s[0] && i.seriesIndex == null && N(i, s[0]),
  29123. !n && r.snap && a.containData(l) && l != null && (t = l),
  29124. e.showPointer(r, t, s),
  29125. e.showTooltip(r, o, l)
  29126. }
  29127. }
  29128. function TR(r, t) {
  29129. var e = t.axis,
  29130. n = e.dim,
  29131. i = r,
  29132. a = [],
  29133. o = Number.MAX_VALUE,
  29134. s = -1
  29135. return (
  29136. A(t.seriesModels, function (l, u) {
  29137. var f = l.getData().mapDimensionsAll(n),
  29138. h,
  29139. c
  29140. if (l.getAxisTooltipData) {
  29141. var v = l.getAxisTooltipData(f, r, e)
  29142. ;(c = v.dataIndices), (h = v.nestestValue)
  29143. } else {
  29144. if (
  29145. ((c = l
  29146. .getData()
  29147. .indicesOfNearest(f[0], r, e.type === 'category' ? 0.5 : null)),
  29148. !c.length)
  29149. )
  29150. return
  29151. h = l.getData().get(f[0], c[0])
  29152. }
  29153. if (!(h == null || !isFinite(h))) {
  29154. var d = r - h,
  29155. p = Math.abs(d)
  29156. p <= o &&
  29157. ((p < o || (d >= 0 && s < 0)) &&
  29158. ((o = p), (s = d), (i = h), (a.length = 0)),
  29159. A(c, function (g) {
  29160. a.push({
  29161. seriesIndex: l.seriesIndex,
  29162. dataIndexInside: g,
  29163. dataIndex: l.getData().getRawIndex(g)
  29164. })
  29165. }))
  29166. }
  29167. }),
  29168. { payloadBatch: a, snapToValue: i }
  29169. )
  29170. }
  29171. function CR(r, t, e, n) {
  29172. r[t.key] = { value: e, payloadBatch: n }
  29173. }
  29174. function AR(r, t, e, n) {
  29175. var i = e.payloadBatch,
  29176. a = t.axis,
  29177. o = a.model,
  29178. s = t.axisPointerModel
  29179. if (!(!t.triggerTooltip || !i.length)) {
  29180. var l = t.coordSys.model,
  29181. u = Ya(l),
  29182. f = r.map[u]
  29183. f ||
  29184. ((f = r.map[u] =
  29185. {
  29186. coordSysId: l.id,
  29187. coordSysIndex: l.componentIndex,
  29188. coordSysType: l.type,
  29189. coordSysMainType: l.mainType,
  29190. dataByAxis: []
  29191. }),
  29192. r.list.push(f)),
  29193. f.dataByAxis.push({
  29194. axisDim: a.dim,
  29195. axisIndex: o.componentIndex,
  29196. axisType: o.type,
  29197. axisId: o.id,
  29198. value: n,
  29199. valueLabelOpt: {
  29200. precision: s.get(['label', 'precision']),
  29201. formatter: s.get(['label', 'formatter'])
  29202. },
  29203. seriesDataIndices: i.slice()
  29204. })
  29205. }
  29206. }
  29207. function MR(r, t, e) {
  29208. var n = (e.axesInfo = [])
  29209. A(t, function (i, a) {
  29210. var o = i.axisPointerModel.option,
  29211. s = r[a]
  29212. s
  29213. ? (!i.useHandle && (o.status = 'show'),
  29214. (o.value = s.value),
  29215. (o.seriesDataIndices = (s.payloadBatch || []).slice()))
  29216. : !i.useHandle && (o.status = 'hide'),
  29217. o.status === 'show' &&
  29218. n.push({
  29219. axisDim: i.axis.dim,
  29220. axisIndex: i.axis.model.componentIndex,
  29221. value: o.value
  29222. })
  29223. })
  29224. }
  29225. function DR(r, t, e, n) {
  29226. if (gl(t) || !r.list.length) {
  29227. n({ type: 'hideTip' })
  29228. return
  29229. }
  29230. var i = ((r.list[0].dataByAxis[0] || {}).seriesDataIndices || [])[0] || {}
  29231. n({
  29232. type: 'showTip',
  29233. escapeConnect: !0,
  29234. x: t[0],
  29235. y: t[1],
  29236. tooltipOption: e.tooltipOption,
  29237. position: e.position,
  29238. dataIndexInside: i.dataIndexInside,
  29239. dataIndex: i.dataIndex,
  29240. seriesIndex: i.seriesIndex,
  29241. dataByCoordSys: r.list
  29242. })
  29243. }
  29244. function IR(r, t, e) {
  29245. var n = e.getZr(),
  29246. i = 'axisPointerLastHighlights',
  29247. a = K_(n)[i] || {},
  29248. o = (K_(n)[i] = {})
  29249. A(r, function (u, f) {
  29250. var h = u.axisPointerModel.option
  29251. h.status === 'show' &&
  29252. A(h.seriesDataIndices, function (c) {
  29253. var v = c.seriesIndex + ' | ' + c.dataIndex
  29254. o[v] = c
  29255. })
  29256. })
  29257. var s = [],
  29258. l = []
  29259. A(a, function (u, f) {
  29260. !o[f] && l.push(u)
  29261. }),
  29262. A(o, function (u, f) {
  29263. !a[f] && s.push(u)
  29264. }),
  29265. l.length &&
  29266. e.dispatchAction({
  29267. type: 'downplay',
  29268. escapeConnect: !0,
  29269. notBlur: !0,
  29270. batch: l
  29271. }),
  29272. s.length &&
  29273. e.dispatchAction({
  29274. type: 'highlight',
  29275. escapeConnect: !0,
  29276. notBlur: !0,
  29277. batch: s
  29278. })
  29279. }
  29280. function LR(r, t) {
  29281. for (var e = 0; e < (r || []).length; e++) {
  29282. var n = r[e]
  29283. if (t.axis.dim === n.axisDim && t.axis.model.componentIndex === n.axisIndex)
  29284. return n
  29285. }
  29286. }
  29287. function J_(r) {
  29288. var t = r.axis.model,
  29289. e = {},
  29290. n = (e.axisDim = r.axis.dim)
  29291. return (
  29292. (e.axisIndex = e[n + 'AxisIndex'] = t.componentIndex),
  29293. (e.axisName = e[n + 'AxisName'] = t.name),
  29294. (e.axisId = e[n + 'AxisId'] = t.id),
  29295. e
  29296. )
  29297. }
  29298. function gl(r) {
  29299. return !r || r[0] == null || isNaN(r[0]) || r[1] == null || isNaN(r[1])
  29300. }
  29301. function j_(r) {
  29302. d_.registerAxisPointerClass('CartesianAxisPointer', cR),
  29303. r.registerComponentModel(pR),
  29304. r.registerComponentView(wR),
  29305. r.registerPreprocessor(function (t) {
  29306. if (t) {
  29307. ;(!t.axisPointer || t.axisPointer.length === 0) && (t.axisPointer = {})
  29308. var e = t.axisPointer.link
  29309. e && !z(e) && (t.axisPointer.link = [e])
  29310. }
  29311. }),
  29312. r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC, function (t, e) {
  29313. t.getComponent('axisPointer').coordSysAxesInfo = pP(t, e)
  29314. }),
  29315. r.registerAction(
  29316. {
  29317. type: 'updateAxisPointer',
  29318. event: 'updateAxisPointer',
  29319. update: ':updateAxisPointer'
  29320. },
  29321. bR
  29322. )
  29323. }
  29324. function PR(r) {
  29325. Re(LP), Re(j_)
  29326. }
  29327. var t1 = ['x', 'y', 'radius', 'angle', 'single'],
  29328. RR = ['cartesian2d', 'polar', 'singleAxis']
  29329. function ER(r) {
  29330. var t = r.get('coordinateSystem')
  29331. return ot(RR, t) >= 0
  29332. }
  29333. function Gr(r) {
  29334. return r + 'Axis'
  29335. }
  29336. function OR(r, t) {
  29337. var e = q(),
  29338. n = [],
  29339. i = q()
  29340. r.eachComponent({ mainType: 'dataZoom', query: t }, function (f) {
  29341. i.get(f.uid) || s(f)
  29342. })
  29343. var a
  29344. do (a = !1), r.eachComponent('dataZoom', o)
  29345. while (a)
  29346. function o(f) {
  29347. !i.get(f.uid) && l(f) && (s(f), (a = !0))
  29348. }
  29349. function s(f) {
  29350. i.set(f.uid, !0), n.push(f), u(f)
  29351. }
  29352. function l(f) {
  29353. var h = !1
  29354. return (
  29355. f.eachTargetAxis(function (c, v) {
  29356. var d = e.get(c)
  29357. d && d[v] && (h = !0)
  29358. }),
  29359. h
  29360. )
  29361. }
  29362. function u(f) {
  29363. f.eachTargetAxis(function (h, c) {
  29364. ;(e.get(h) || e.set(h, []))[c] = !0
  29365. })
  29366. }
  29367. return n
  29368. }
  29369. function e1(r) {
  29370. var t = r.ecModel,
  29371. e = { infoList: [], infoMap: q() }
  29372. return (
  29373. r.eachTargetAxis(function (n, i) {
  29374. var a = t.getComponent(Gr(n), i)
  29375. if (!!a) {
  29376. var o = a.getCoordSysModel()
  29377. if (!!o) {
  29378. var s = o.uid,
  29379. l = e.infoMap.get(s)
  29380. l ||
  29381. ((l = { model: o, axisModels: [] }),
  29382. e.infoList.push(l),
  29383. e.infoMap.set(s, l)),
  29384. l.axisModels.push(a)
  29385. }
  29386. }
  29387. }),
  29388. e
  29389. )
  29390. }
  29391. var fv = (function () {
  29392. function r() {
  29393. ;(this.indexList = []), (this.indexMap = [])
  29394. }
  29395. return (
  29396. (r.prototype.add = function (t) {
  29397. this.indexMap[t] || (this.indexList.push(t), (this.indexMap[t] = !0))
  29398. }),
  29399. r
  29400. )
  29401. })(),
  29402. kR = (function (r) {
  29403. B(t, r)
  29404. function t() {
  29405. var e = (r !== null && r.apply(this, arguments)) || this
  29406. return (
  29407. (e.type = t.type),
  29408. (e._autoThrottle = !0),
  29409. (e._noTarget = !0),
  29410. (e._rangePropMode = ['percent', 'percent']),
  29411. e
  29412. )
  29413. }
  29414. return (
  29415. (t.prototype.init = function (e, n, i) {
  29416. var a = r1(e)
  29417. ;(this.settledOption = a),
  29418. this.mergeDefaultAndTheme(e, i),
  29419. this._doInit(a)
  29420. }),
  29421. (t.prototype.mergeOption = function (e) {
  29422. var n = r1(e)
  29423. nt(this.option, e, !0), nt(this.settledOption, n, !0), this._doInit(n)
  29424. }),
  29425. (t.prototype._doInit = function (e) {
  29426. var n = this.option
  29427. this._setDefaultThrottle(e), this._updateRangeUse(e)
  29428. var i = this.settledOption
  29429. A(
  29430. [
  29431. ['start', 'startValue'],
  29432. ['end', 'endValue']
  29433. ],
  29434. function (a, o) {
  29435. this._rangePropMode[o] === 'value' && (n[a[0]] = i[a[0]] = null)
  29436. },
  29437. this
  29438. ),
  29439. this._resetTarget()
  29440. }),
  29441. (t.prototype._resetTarget = function () {
  29442. var e = this.get('orient', !0),
  29443. n = (this._targetAxisInfoMap = q()),
  29444. i = this._fillSpecifiedTargetAxis(n)
  29445. i
  29446. ? (this._orient = e || this._makeAutoOrientByTargetAxis())
  29447. : ((this._orient = e || 'horizontal'),
  29448. this._fillAutoTargetAxisByOrient(n, this._orient)),
  29449. (this._noTarget = !0),
  29450. n.each(function (a) {
  29451. a.indexList.length && (this._noTarget = !1)
  29452. }, this)
  29453. }),
  29454. (t.prototype._fillSpecifiedTargetAxis = function (e) {
  29455. var n = !1
  29456. return (
  29457. A(
  29458. t1,
  29459. function (i) {
  29460. var a = this.getReferringComponents(Gr(i), pb)
  29461. if (!!a.specified) {
  29462. n = !0
  29463. var o = new fv()
  29464. A(a.models, function (s) {
  29465. o.add(s.componentIndex)
  29466. }),
  29467. e.set(i, o)
  29468. }
  29469. },
  29470. this
  29471. ),
  29472. n
  29473. )
  29474. }),
  29475. (t.prototype._fillAutoTargetAxisByOrient = function (e, n) {
  29476. var i = this.ecModel,
  29477. a = !0
  29478. if (a) {
  29479. var o = n === 'vertical' ? 'y' : 'x',
  29480. s = i.findComponents({ mainType: o + 'Axis' })
  29481. l(s, o)
  29482. }
  29483. if (a) {
  29484. var s = i.findComponents({
  29485. mainType: 'singleAxis',
  29486. filter: function (f) {
  29487. return f.get('orient', !0) === n
  29488. }
  29489. })
  29490. l(s, 'single')
  29491. }
  29492. function l(u, f) {
  29493. var h = u[0]
  29494. if (!!h) {
  29495. var c = new fv()
  29496. if (
  29497. (c.add(h.componentIndex),
  29498. e.set(f, c),
  29499. (a = !1),
  29500. f === 'x' || f === 'y')
  29501. ) {
  29502. var v = h.getReferringComponents('grid', Xt).models[0]
  29503. v &&
  29504. A(u, function (d) {
  29505. h.componentIndex !== d.componentIndex &&
  29506. v === d.getReferringComponents('grid', Xt).models[0] &&
  29507. c.add(d.componentIndex)
  29508. })
  29509. }
  29510. }
  29511. }
  29512. a &&
  29513. A(
  29514. t1,
  29515. function (u) {
  29516. if (!!a) {
  29517. var f = i.findComponents({
  29518. mainType: Gr(u),
  29519. filter: function (c) {
  29520. return c.get('type', !0) === 'category'
  29521. }
  29522. })
  29523. if (f[0]) {
  29524. var h = new fv()
  29525. h.add(f[0].componentIndex), e.set(u, h), (a = !1)
  29526. }
  29527. }
  29528. },
  29529. this
  29530. )
  29531. }),
  29532. (t.prototype._makeAutoOrientByTargetAxis = function () {
  29533. var e
  29534. return (
  29535. this.eachTargetAxis(function (n) {
  29536. !e && (e = n)
  29537. }, this),
  29538. e === 'y' ? 'vertical' : 'horizontal'
  29539. )
  29540. }),
  29541. (t.prototype._setDefaultThrottle = function (e) {
  29542. if (
  29543. (e.hasOwnProperty('throttle') && (this._autoThrottle = !1),
  29544. this._autoThrottle)
  29545. ) {
  29546. var n = this.ecModel.option
  29547. this.option.throttle =
  29548. n.animation && n.animationDurationUpdate > 0 ? 100 : 20
  29549. }
  29550. }),
  29551. (t.prototype._updateRangeUse = function (e) {
  29552. var n = this._rangePropMode,
  29553. i = this.get('rangeMode')
  29554. A(
  29555. [
  29556. ['start', 'startValue'],
  29557. ['end', 'endValue']
  29558. ],
  29559. function (a, o) {
  29560. var s = e[a[0]] != null,
  29561. l = e[a[1]] != null
  29562. s && !l
  29563. ? (n[o] = 'percent')
  29564. : !s && l
  29565. ? (n[o] = 'value')
  29566. : i
  29567. ? (n[o] = i[o])
  29568. : s && (n[o] = 'percent')
  29569. }
  29570. )
  29571. }),
  29572. (t.prototype.noTarget = function () {
  29573. return this._noTarget
  29574. }),
  29575. (t.prototype.getFirstTargetAxisModel = function () {
  29576. var e
  29577. return (
  29578. this.eachTargetAxis(function (n, i) {
  29579. e == null && (e = this.ecModel.getComponent(Gr(n), i))
  29580. }, this),
  29581. e
  29582. )
  29583. }),
  29584. (t.prototype.eachTargetAxis = function (e, n) {
  29585. this._targetAxisInfoMap.each(function (i, a) {
  29586. A(i.indexList, function (o) {
  29587. e.call(n, a, o)
  29588. })
  29589. })
  29590. }),
  29591. (t.prototype.getAxisProxy = function (e, n) {
  29592. var i = this.getAxisModel(e, n)
  29593. if (i) return i.__dzAxisProxy
  29594. }),
  29595. (t.prototype.getAxisModel = function (e, n) {
  29596. var i = this._targetAxisInfoMap.get(e)
  29597. if (i && i.indexMap[n]) return this.ecModel.getComponent(Gr(e), n)
  29598. }),
  29599. (t.prototype.setRawRange = function (e) {
  29600. var n = this.option,
  29601. i = this.settledOption
  29602. A(
  29603. [
  29604. ['start', 'startValue'],
  29605. ['end', 'endValue']
  29606. ],
  29607. function (a) {
  29608. ;(e[a[0]] != null || e[a[1]] != null) &&
  29609. ((n[a[0]] = i[a[0]] = e[a[0]]), (n[a[1]] = i[a[1]] = e[a[1]]))
  29610. },
  29611. this
  29612. ),
  29613. this._updateRangeUse(e)
  29614. }),
  29615. (t.prototype.setCalculatedRange = function (e) {
  29616. var n = this.option
  29617. A(['start', 'startValue', 'end', 'endValue'], function (i) {
  29618. n[i] = e[i]
  29619. })
  29620. }),
  29621. (t.prototype.getPercentRange = function () {
  29622. var e = this.findRepresentativeAxisProxy()
  29623. if (e) return e.getDataPercentWindow()
  29624. }),
  29625. (t.prototype.getValueRange = function (e, n) {
  29626. if (e == null && n == null) {
  29627. var i = this.findRepresentativeAxisProxy()
  29628. if (i) return i.getDataValueWindow()
  29629. } else return this.getAxisProxy(e, n).getDataValueWindow()
  29630. }),
  29631. (t.prototype.findRepresentativeAxisProxy = function (e) {
  29632. if (e) return e.__dzAxisProxy
  29633. for (
  29634. var n, i = this._targetAxisInfoMap.keys(), a = 0;
  29635. a < i.length;
  29636. a++
  29637. )
  29638. for (
  29639. var o = i[a], s = this._targetAxisInfoMap.get(o), l = 0;
  29640. l < s.indexList.length;
  29641. l++
  29642. ) {
  29643. var u = this.getAxisProxy(o, s.indexList[l])
  29644. if (u.hostedBy(this)) return u
  29645. n || (n = u)
  29646. }
  29647. return n
  29648. }),
  29649. (t.prototype.getRangePropMode = function () {
  29650. return this._rangePropMode.slice()
  29651. }),
  29652. (t.prototype.getOrient = function () {
  29653. return this._orient
  29654. }),
  29655. (t.type = 'dataZoom'),
  29656. (t.dependencies = [
  29657. 'xAxis',
  29658. 'yAxis',
  29659. 'radiusAxis',
  29660. 'angleAxis',
  29661. 'singleAxis',
  29662. 'series',
  29663. 'toolbox'
  29664. ]),
  29665. (t.defaultOption = { z: 4, filterMode: 'filter', start: 0, end: 100 }),
  29666. t
  29667. )
  29668. })(_t)
  29669. function r1(r) {
  29670. var t = {}
  29671. return (
  29672. A(['start', 'end', 'startValue', 'endValue', 'throttle'], function (e) {
  29673. r.hasOwnProperty(e) && (t[e] = r[e])
  29674. }),
  29675. t
  29676. )
  29677. }
  29678. var Xa = kR,
  29679. BR = (function (r) {
  29680. B(t, r)
  29681. function t() {
  29682. var e = (r !== null && r.apply(this, arguments)) || this
  29683. return (e.type = t.type), e
  29684. }
  29685. return (t.type = 'dataZoom.select'), t
  29686. })(Xa),
  29687. NR = BR,
  29688. FR = (function (r) {
  29689. B(t, r)
  29690. function t() {
  29691. var e = (r !== null && r.apply(this, arguments)) || this
  29692. return (e.type = t.type), e
  29693. }
  29694. return (
  29695. (t.prototype.render = function (e, n, i, a) {
  29696. ;(this.dataZoomModel = e), (this.ecModel = n), (this.api = i)
  29697. }),
  29698. (t.type = 'dataZoom'),
  29699. t
  29700. )
  29701. })(xe),
  29702. hv = FR,
  29703. zR = (function (r) {
  29704. B(t, r)
  29705. function t() {
  29706. var e = (r !== null && r.apply(this, arguments)) || this
  29707. return (e.type = t.type), e
  29708. }
  29709. return (t.type = 'dataZoom.select'), t
  29710. })(hv),
  29711. VR = zR,
  29712. bi = A,
  29713. n1 = Xi,
  29714. GR = (function () {
  29715. function r(t, e, n, i) {
  29716. ;(this._dimName = t),
  29717. (this._axisIndex = e),
  29718. (this.ecModel = i),
  29719. (this._dataZoomModel = n)
  29720. }
  29721. return (
  29722. (r.prototype.hostedBy = function (t) {
  29723. return this._dataZoomModel === t
  29724. }),
  29725. (r.prototype.getDataValueWindow = function () {
  29726. return this._valueWindow.slice()
  29727. }),
  29728. (r.prototype.getDataPercentWindow = function () {
  29729. return this._percentWindow.slice()
  29730. }),
  29731. (r.prototype.getTargetSeriesModels = function () {
  29732. var t = []
  29733. return (
  29734. this.ecModel.eachSeries(function (e) {
  29735. if (ER(e)) {
  29736. var n = Gr(this._dimName),
  29737. i = e.getReferringComponents(n, Xt).models[0]
  29738. i && this._axisIndex === i.componentIndex && t.push(e)
  29739. }
  29740. }, this),
  29741. t
  29742. )
  29743. }),
  29744. (r.prototype.getAxisModel = function () {
  29745. return this.ecModel.getComponent(
  29746. this._dimName + 'Axis',
  29747. this._axisIndex
  29748. )
  29749. }),
  29750. (r.prototype.getMinMaxSpan = function () {
  29751. return tt(this._minMaxSpan)
  29752. }),
  29753. (r.prototype.calculateDataWindow = function (t) {
  29754. var e = this._dataExtent,
  29755. n = this.getAxisModel(),
  29756. i = n.axis.scale,
  29757. a = this._dataZoomModel.getRangePropMode(),
  29758. o = [0, 100],
  29759. s = [],
  29760. l = [],
  29761. u
  29762. bi(['start', 'end'], function (c, v) {
  29763. var d = t[c],
  29764. p = t[c + 'Value']
  29765. a[v] === 'percent'
  29766. ? (d == null && (d = o[v]), (p = i.parse(Bt(d, o, e))))
  29767. : ((u = !0),
  29768. (p = p == null ? e[v] : i.parse(p)),
  29769. (d = Bt(p, e, o))),
  29770. (l[v] = p),
  29771. (s[v] = d)
  29772. }),
  29773. n1(l),
  29774. n1(s)
  29775. var f = this._minMaxSpan
  29776. u ? h(l, s, e, o, !1) : h(s, l, o, e, !0)
  29777. function h(c, v, d, p, g) {
  29778. var m = g ? 'Span' : 'ValueSpan'
  29779. Za(0, c, d, 'all', f['min' + m], f['max' + m])
  29780. for (var y = 0; y < 2; y++)
  29781. (v[y] = Bt(c[y], d, p, !0)), g && (v[y] = i.parse(v[y]))
  29782. }
  29783. return { valueWindow: l, percentWindow: s }
  29784. }),
  29785. (r.prototype.reset = function (t) {
  29786. if (t === this._dataZoomModel) {
  29787. var e = this.getTargetSeriesModels()
  29788. ;(this._dataExtent = HR(this, this._dimName, e)),
  29789. this._updateMinMaxSpan()
  29790. var n = this.calculateDataWindow(t.settledOption)
  29791. ;(this._valueWindow = n.valueWindow),
  29792. (this._percentWindow = n.percentWindow),
  29793. this._setAxisModel()
  29794. }
  29795. }),
  29796. (r.prototype.filterData = function (t, e) {
  29797. if (t !== this._dataZoomModel) return
  29798. var n = this._dimName,
  29799. i = this.getTargetSeriesModels(),
  29800. a = t.get('filterMode'),
  29801. o = this._valueWindow
  29802. if (a === 'none') return
  29803. bi(i, function (l) {
  29804. var u = l.getData(),
  29805. f = u.mapDimensionsAll(n)
  29806. if (!!f.length) {
  29807. if (a === 'weakFilter') {
  29808. var h = u.getStore(),
  29809. c = G(
  29810. f,
  29811. function (v) {
  29812. return u.getDimensionIndex(v)
  29813. },
  29814. u
  29815. )
  29816. u.filterSelf(function (v) {
  29817. for (var d, p, g, m = 0; m < f.length; m++) {
  29818. var y = h.get(c[m], v),
  29819. _ = !isNaN(y),
  29820. S = y < o[0],
  29821. w = y > o[1]
  29822. if (_ && !S && !w) return !0
  29823. _ && (g = !0), S && (d = !0), w && (p = !0)
  29824. }
  29825. return g && d && p
  29826. })
  29827. } else
  29828. bi(f, function (v) {
  29829. if (a === 'empty')
  29830. l.setData(
  29831. (u = u.map(v, function (p) {
  29832. return s(p) ? p : NaN
  29833. }))
  29834. )
  29835. else {
  29836. var d = {}
  29837. ;(d[v] = o), u.selectRange(d)
  29838. }
  29839. })
  29840. bi(f, function (v) {
  29841. u.setApproximateExtent(o, v)
  29842. })
  29843. }
  29844. })
  29845. function s(l) {
  29846. return l >= o[0] && l <= o[1]
  29847. }
  29848. }),
  29849. (r.prototype._updateMinMaxSpan = function () {
  29850. var t = (this._minMaxSpan = {}),
  29851. e = this._dataZoomModel,
  29852. n = this._dataExtent
  29853. bi(
  29854. ['min', 'max'],
  29855. function (i) {
  29856. var a = e.get(i + 'Span'),
  29857. o = e.get(i + 'ValueSpan')
  29858. o != null && (o = this.getAxisModel().axis.scale.parse(o)),
  29859. o != null
  29860. ? (a = Bt(n[0] + o, n, [0, 100], !0))
  29861. : a != null && (o = Bt(a, [0, 100], n, !0) - n[0]),
  29862. (t[i + 'Span'] = a),
  29863. (t[i + 'ValueSpan'] = o)
  29864. },
  29865. this
  29866. )
  29867. }),
  29868. (r.prototype._setAxisModel = function () {
  29869. var t = this.getAxisModel(),
  29870. e = this._percentWindow,
  29871. n = this._valueWindow
  29872. if (!!e) {
  29873. var i = $c(n, [0, 500])
  29874. i = Math.min(i, 20)
  29875. var a = t.axis.scale.rawExtentInfo
  29876. e[0] !== 0 && a.setDeterminedMinMax('min', +n[0].toFixed(i)),
  29877. e[1] !== 100 && a.setDeterminedMinMax('max', +n[1].toFixed(i)),
  29878. a.freeze()
  29879. }
  29880. }),
  29881. r
  29882. )
  29883. })()
  29884. function HR(r, t, e) {
  29885. var n = [1 / 0, -1 / 0]
  29886. bi(e, function (o) {
  29887. vI(n, o.getData(), t)
  29888. })
  29889. var i = r.getAxisModel(),
  29890. a = q0(i.axis.scale, i, n).calculate()
  29891. return [a.min, a.max]
  29892. }
  29893. var WR = GR,
  29894. UR = {
  29895. getTargetSeries: function (r) {
  29896. function t(i) {
  29897. r.eachComponent('dataZoom', function (a) {
  29898. a.eachTargetAxis(function (o, s) {
  29899. var l = r.getComponent(Gr(o), s)
  29900. i(o, s, l, a)
  29901. })
  29902. })
  29903. }
  29904. t(function (i, a, o, s) {
  29905. o.__dzAxisProxy = null
  29906. })
  29907. var e = []
  29908. t(function (i, a, o, s) {
  29909. o.__dzAxisProxy ||
  29910. ((o.__dzAxisProxy = new WR(i, a, s, r)), e.push(o.__dzAxisProxy))
  29911. })
  29912. var n = q()
  29913. return (
  29914. A(e, function (i) {
  29915. A(i.getTargetSeriesModels(), function (a) {
  29916. n.set(a.uid, a)
  29917. })
  29918. }),
  29919. n
  29920. )
  29921. },
  29922. overallReset: function (r, t) {
  29923. r.eachComponent('dataZoom', function (e) {
  29924. e.eachTargetAxis(function (n, i) {
  29925. e.getAxisProxy(n, i).reset(e)
  29926. }),
  29927. e.eachTargetAxis(function (n, i) {
  29928. e.getAxisProxy(n, i).filterData(e, t)
  29929. })
  29930. }),
  29931. r.eachComponent('dataZoom', function (e) {
  29932. var n = e.findRepresentativeAxisProxy()
  29933. if (n) {
  29934. var i = n.getDataPercentWindow(),
  29935. a = n.getDataValueWindow()
  29936. e.setCalculatedRange({
  29937. start: i[0],
  29938. end: i[1],
  29939. startValue: a[0],
  29940. endValue: a[1]
  29941. })
  29942. }
  29943. })
  29944. }
  29945. },
  29946. YR = UR
  29947. function ZR(r) {
  29948. r.registerAction('dataZoom', function (t, e) {
  29949. var n = OR(e, t)
  29950. A(n, function (i) {
  29951. i.setRawRange({
  29952. start: t.start,
  29953. end: t.end,
  29954. startValue: t.startValue,
  29955. endValue: t.endValue
  29956. })
  29957. })
  29958. })
  29959. }
  29960. var i1 = !1
  29961. function vv(r) {
  29962. i1 ||
  29963. ((i1 = !0),
  29964. r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER, YR),
  29965. ZR(r),
  29966. r.registerSubTypeDefaulter('dataZoom', function () {
  29967. return 'slider'
  29968. }))
  29969. }
  29970. function $R(r) {
  29971. r.registerComponentModel(NR), r.registerComponentView(VR), vv(r)
  29972. }
  29973. var ke = (function () {
  29974. function r() {}
  29975. return r
  29976. })(),
  29977. a1 = {}
  29978. function qa(r, t) {
  29979. a1[r] = t
  29980. }
  29981. function o1(r) {
  29982. return a1[r]
  29983. }
  29984. var XR = (function (r) {
  29985. B(t, r)
  29986. function t() {
  29987. var e = (r !== null && r.apply(this, arguments)) || this
  29988. return (e.type = t.type), e
  29989. }
  29990. return (
  29991. (t.prototype.optionUpdated = function () {
  29992. r.prototype.optionUpdated.apply(this, arguments)
  29993. var e = this.ecModel
  29994. A(this.option.feature, function (n, i) {
  29995. var a = o1(i)
  29996. a &&
  29997. (a.getDefaultOption && (a.defaultOption = a.getDefaultOption(e)),
  29998. nt(n, a.defaultOption))
  29999. })
  30000. }),
  30001. (t.type = 'toolbox'),
  30002. (t.layoutMode = { type: 'box', ignoreSize: !0 }),
  30003. (t.defaultOption = {
  30004. show: !0,
  30005. z: 6,
  30006. orient: 'horizontal',
  30007. left: 'right',
  30008. top: 'top',
  30009. backgroundColor: 'transparent',
  30010. borderColor: '#ccc',
  30011. borderRadius: 0,
  30012. borderWidth: 0,
  30013. padding: 5,
  30014. itemSize: 15,
  30015. itemGap: 8,
  30016. showTitle: !0,
  30017. iconStyle: { borderColor: '#666', color: 'none' },
  30018. emphasis: { iconStyle: { borderColor: '#3E98C5' } },
  30019. tooltip: { show: !1, position: 'bottom' }
  30020. }),
  30021. t
  30022. )
  30023. })(_t),
  30024. qR = XR
  30025. function KR(r, t, e) {
  30026. var n = t.getBoxLayoutParams(),
  30027. i = t.get('padding'),
  30028. a = { width: e.getWidth(), height: e.getHeight() },
  30029. o = cr(n, a, i)
  30030. fi(t.get('orient'), r, t.get('itemGap'), o.width, o.height), sA(r, n, a, i)
  30031. }
  30032. function s1(r, t) {
  30033. var e = ws(t.get('padding')),
  30034. n = t.getItemStyle(['color', 'opacity'])
  30035. return (
  30036. (n.fill = t.get('backgroundColor')),
  30037. (r = new St({
  30038. shape: {
  30039. x: r.x - e[3],
  30040. y: r.y - e[0],
  30041. width: r.width + e[1] + e[3],
  30042. height: r.height + e[0] + e[2],
  30043. r: t.get('borderRadius')
  30044. },
  30045. style: n,
  30046. silent: !0,
  30047. z2: -1
  30048. })),
  30049. r
  30050. )
  30051. }
  30052. var QR = (function (r) {
  30053. B(t, r)
  30054. function t() {
  30055. return (r !== null && r.apply(this, arguments)) || this
  30056. }
  30057. return (
  30058. (t.prototype.render = function (e, n, i, a) {
  30059. var o = this.group
  30060. if ((o.removeAll(), !e.get('show'))) return
  30061. var s = +e.get('itemSize'),
  30062. l = e.get('orient') === 'vertical',
  30063. u = e.get('feature') || {},
  30064. f = this._features || (this._features = {}),
  30065. h = []
  30066. A(u, function (d, p) {
  30067. h.push(p)
  30068. }),
  30069. new Ba(this._featureNames || [], h)
  30070. .add(c)
  30071. .update(c)
  30072. .remove(lt(c, null))
  30073. .execute(),
  30074. (this._featureNames = h)
  30075. function c(d, p) {
  30076. var g = h[d],
  30077. m = h[p],
  30078. y = u[g],
  30079. _ = new Nt(y, e, e.ecModel),
  30080. S
  30081. if (
  30082. (a &&
  30083. a.newTitle != null &&
  30084. a.featureName === g &&
  30085. (y.title = a.newTitle),
  30086. g && !m)
  30087. ) {
  30088. if (JR(g)) S = { onclick: _.option.onclick, featureName: g }
  30089. else {
  30090. var w = o1(g)
  30091. if (!w) return
  30092. S = new w()
  30093. }
  30094. f[g] = S
  30095. } else if (((S = f[m]), !S)) return
  30096. ;(S.uid = ca('toolbox-feature')),
  30097. (S.model = _),
  30098. (S.ecModel = n),
  30099. (S.api = i)
  30100. var x = S instanceof ke
  30101. if (!g && m) {
  30102. x && S.dispose && S.dispose(n, i)
  30103. return
  30104. }
  30105. if (!_.get('show') || (x && S.unusable)) {
  30106. x && S.remove && S.remove(n, i)
  30107. return
  30108. }
  30109. v(_, S, g),
  30110. (_.setIconStatus = function (b, T) {
  30111. var C = this.option,
  30112. M = this.iconPaths
  30113. ;(C.iconStatus = C.iconStatus || {}),
  30114. (C.iconStatus[b] = T),
  30115. M[b] && (T === 'emphasis' ? ei : ri)(M[b])
  30116. }),
  30117. S instanceof ke && S.render && S.render(_, n, i, a)
  30118. }
  30119. function v(d, p, g) {
  30120. var m = d.getModel('iconStyle'),
  30121. y = d.getModel(['emphasis', 'iconStyle']),
  30122. _ = p instanceof ke && p.getIcons ? p.getIcons() : d.get('icon'),
  30123. S = d.get('title') || {},
  30124. w,
  30125. x
  30126. W(_) ? ((w = {}), (w[g] = _)) : (w = _),
  30127. W(S) ? ((x = {}), (x[g] = S)) : (x = S)
  30128. var b = (d.iconPaths = {})
  30129. A(w, function (T, C) {
  30130. var M = us(T, {}, { x: -s / 2, y: -s / 2, width: s, height: s })
  30131. M.setStyle(m.getItemStyle())
  30132. var D = M.ensureState('emphasis')
  30133. D.style = y.getItemStyle()
  30134. var I = new Et({
  30135. style: {
  30136. text: x[C],
  30137. align: y.get('textAlign'),
  30138. borderRadius: y.get('textBorderRadius'),
  30139. padding: y.get('textPadding'),
  30140. fill: null
  30141. },
  30142. ignore: !0
  30143. })
  30144. M.setTextContent(I),
  30145. fs({
  30146. el: M,
  30147. componentModel: e,
  30148. itemName: C,
  30149. formatterParamsExtra: { title: x[C] }
  30150. }),
  30151. (M.__title = x[C]),
  30152. M.on('mouseover', function () {
  30153. var L = y.getItemStyle(),
  30154. P = l
  30155. ? e.get('right') == null && e.get('left') !== 'right'
  30156. ? 'right'
  30157. : 'left'
  30158. : e.get('bottom') == null && e.get('top') !== 'bottom'
  30159. ? 'bottom'
  30160. : 'top'
  30161. I.setStyle({
  30162. fill: y.get('textFill') || L.fill || L.stroke || '#000',
  30163. backgroundColor: y.get('textBackgroundColor')
  30164. }),
  30165. M.setTextConfig({ position: y.get('textPosition') || P }),
  30166. (I.ignore = !e.get('showTitle')),
  30167. i.enterEmphasis(this)
  30168. }).on('mouseout', function () {
  30169. d.get(['iconStatus', C]) !== 'emphasis' && i.leaveEmphasis(this),
  30170. I.hide()
  30171. }),
  30172. (d.get(['iconStatus', C]) === 'emphasis' ? ei : ri)(M),
  30173. o.add(M),
  30174. M.on('click', X(p.onclick, p, n, i, C)),
  30175. (b[C] = M)
  30176. })
  30177. }
  30178. KR(o, e, i),
  30179. o.add(s1(o.getBoundingRect(), e)),
  30180. l ||
  30181. o.eachChild(function (d) {
  30182. var p = d.__title,
  30183. g = d.ensureState('emphasis'),
  30184. m = g.textConfig || (g.textConfig = {}),
  30185. y = d.getTextContent(),
  30186. _ = y && y.ensureState('emphasis')
  30187. if (_ && !Q(_) && p) {
  30188. var S = _.style || (_.style = {}),
  30189. w = Eo(p, Et.makeFont(S)),
  30190. x = d.x + o.x,
  30191. b = d.y + o.y + s,
  30192. T = !1
  30193. b + w.height > i.getHeight() && ((m.position = 'top'), (T = !0))
  30194. var C = T ? -5 - w.height : s + 10
  30195. x + w.width / 2 > i.getWidth()
  30196. ? ((m.position = ['100%', C]), (S.align = 'right'))
  30197. : x - w.width / 2 < 0 &&
  30198. ((m.position = [0, C]), (S.align = 'left'))
  30199. }
  30200. })
  30201. }),
  30202. (t.prototype.updateView = function (e, n, i, a) {
  30203. A(this._features, function (o) {
  30204. o instanceof ke && o.updateView && o.updateView(o.model, n, i, a)
  30205. })
  30206. }),
  30207. (t.prototype.remove = function (e, n) {
  30208. A(this._features, function (i) {
  30209. i instanceof ke && i.remove && i.remove(e, n)
  30210. }),
  30211. this.group.removeAll()
  30212. }),
  30213. (t.prototype.dispose = function (e, n) {
  30214. A(this._features, function (i) {
  30215. i instanceof ke && i.dispose && i.dispose(e, n)
  30216. })
  30217. }),
  30218. (t.type = 'toolbox'),
  30219. t
  30220. )
  30221. })(xe)
  30222. function JR(r) {
  30223. return r.indexOf('my') === 0
  30224. }
  30225. var jR = QR,
  30226. tE = (function (r) {
  30227. B(t, r)
  30228. function t() {
  30229. return (r !== null && r.apply(this, arguments)) || this
  30230. }
  30231. return (
  30232. (t.prototype.onclick = function (e, n) {
  30233. var i = this.model,
  30234. a = i.get('name') || e.get('title.0.text') || 'echarts',
  30235. o = n.getZr().painter.getType() === 'svg',
  30236. s = o ? 'svg' : i.get('type', !0) || 'png',
  30237. l = n.getConnectedDataURL({
  30238. type: s,
  30239. backgroundColor:
  30240. i.get('backgroundColor', !0) ||
  30241. e.get('backgroundColor') ||
  30242. '#fff',
  30243. connectedBackgroundColor: i.get('connectedBackgroundColor'),
  30244. excludeComponents: i.get('excludeComponents'),
  30245. pixelRatio: i.get('pixelRatio')
  30246. }),
  30247. u = at.browser
  30248. if (Q(MouseEvent) && (u.newEdge || (!u.ie && !u.edge))) {
  30249. var f = document.createElement('a')
  30250. ;(f.download = a + '.' + s), (f.target = '_blank'), (f.href = l)
  30251. var h = new MouseEvent('click', {
  30252. view: document.defaultView,
  30253. bubbles: !0,
  30254. cancelable: !1
  30255. })
  30256. f.dispatchEvent(h)
  30257. } else if (window.navigator.msSaveOrOpenBlob || o) {
  30258. var c = l.split(','),
  30259. v = c[0].indexOf('base64') > -1,
  30260. d = o ? decodeURIComponent(c[1]) : c[1]
  30261. v && (d = window.atob(d))
  30262. var p = a + '.' + s
  30263. if (window.navigator.msSaveOrOpenBlob) {
  30264. for (var g = d.length, m = new Uint8Array(g); g--; )
  30265. m[g] = d.charCodeAt(g)
  30266. var y = new Blob([m])
  30267. window.navigator.msSaveOrOpenBlob(y, p)
  30268. } else {
  30269. var _ = document.createElement('iframe')
  30270. document.body.appendChild(_)
  30271. var S = _.contentWindow,
  30272. w = S.document
  30273. w.open('image/svg+xml', 'replace'),
  30274. w.write(d),
  30275. w.close(),
  30276. S.focus(),
  30277. w.execCommand('SaveAs', !0, p),
  30278. document.body.removeChild(_)
  30279. }
  30280. } else {
  30281. var x = i.get('lang'),
  30282. b =
  30283. '<body style="margin:0;"><img src="' +
  30284. l +
  30285. '" style="max-width:100%;" title="' +
  30286. ((x && x[0]) || '') +
  30287. '" /></body>',
  30288. T = window.open()
  30289. T.document.write(b), (T.document.title = a)
  30290. }
  30291. }),
  30292. (t.getDefaultOption = function (e) {
  30293. var n = {
  30294. show: !0,
  30295. 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',
  30296. title: e.getLocaleModel().get(['toolbox', 'saveAsImage', 'title']),
  30297. type: 'png',
  30298. connectedBackgroundColor: '#fff',
  30299. name: '',
  30300. excludeComponents: ['toolbox'],
  30301. lang: e.getLocaleModel().get(['toolbox', 'saveAsImage', 'lang'])
  30302. }
  30303. return n
  30304. }),
  30305. t
  30306. )
  30307. })(ke),
  30308. eE = tE,
  30309. l1 = '__ec_magicType_stack__',
  30310. rE = [['line', 'bar'], ['stack']],
  30311. nE = (function (r) {
  30312. B(t, r)
  30313. function t() {
  30314. return (r !== null && r.apply(this, arguments)) || this
  30315. }
  30316. return (
  30317. (t.prototype.getIcons = function () {
  30318. var e = this.model,
  30319. n = e.get('icon'),
  30320. i = {}
  30321. return (
  30322. A(e.get('type'), function (a) {
  30323. n[a] && (i[a] = n[a])
  30324. }),
  30325. i
  30326. )
  30327. }),
  30328. (t.getDefaultOption = function (e) {
  30329. var n = {
  30330. show: !0,
  30331. type: [],
  30332. icon: {
  30333. line: 'M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4',
  30334. bar: 'M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7',
  30335. stack:
  30336. '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'
  30337. },
  30338. title: e.getLocaleModel().get(['toolbox', 'magicType', 'title']),
  30339. option: {},
  30340. seriesIndex: {}
  30341. }
  30342. return n
  30343. }),
  30344. (t.prototype.onclick = function (e, n, i) {
  30345. var a = this.model,
  30346. o = a.get(['seriesIndex', i])
  30347. if (!!u1[i]) {
  30348. var s = { series: [] },
  30349. l = function (h) {
  30350. var c = h.subType,
  30351. v = h.id,
  30352. d = u1[i](c, v, h, a)
  30353. d && (j(d, h.option), s.series.push(d))
  30354. var p = h.coordinateSystem
  30355. if (
  30356. p &&
  30357. p.type === 'cartesian2d' &&
  30358. (i === 'line' || i === 'bar')
  30359. ) {
  30360. var g = p.getAxesByScale('ordinal')[0]
  30361. if (g) {
  30362. var m = g.dim,
  30363. y = m + 'Axis',
  30364. _ = h.getReferringComponents(y, Xt).models[0],
  30365. S = _.componentIndex
  30366. s[y] = s[y] || []
  30367. for (var w = 0; w <= S; w++) s[y][S] = s[y][S] || {}
  30368. s[y][S].boundaryGap = i === 'bar'
  30369. }
  30370. }
  30371. }
  30372. A(rE, function (h) {
  30373. ot(h, i) >= 0 &&
  30374. A(h, function (c) {
  30375. a.setIconStatus(c, 'normal')
  30376. })
  30377. }),
  30378. a.setIconStatus(i, 'emphasis'),
  30379. e.eachComponent(
  30380. {
  30381. mainType: 'series',
  30382. query: o == null ? null : { seriesIndex: o }
  30383. },
  30384. l
  30385. )
  30386. var u,
  30387. f = i
  30388. i === 'stack' &&
  30389. ((u = nt(
  30390. { stack: a.option.title.tiled, tiled: a.option.title.stack },
  30391. a.option.title
  30392. )),
  30393. a.get(['iconStatus', i]) !== 'emphasis' && (f = 'tiled')),
  30394. n.dispatchAction({
  30395. type: 'changeMagicType',
  30396. currentType: f,
  30397. newOption: s,
  30398. newTitle: u,
  30399. featureName: 'magicType'
  30400. })
  30401. }
  30402. }),
  30403. t
  30404. )
  30405. })(ke),
  30406. u1 = {
  30407. line: function (r, t, e, n) {
  30408. if (r === 'bar')
  30409. return nt(
  30410. {
  30411. id: t,
  30412. type: 'line',
  30413. data: e.get('data'),
  30414. stack: e.get('stack'),
  30415. markPoint: e.get('markPoint'),
  30416. markLine: e.get('markLine')
  30417. },
  30418. n.get(['option', 'line']) || {},
  30419. !0
  30420. )
  30421. },
  30422. bar: function (r, t, e, n) {
  30423. if (r === 'line')
  30424. return nt(
  30425. {
  30426. id: t,
  30427. type: 'bar',
  30428. data: e.get('data'),
  30429. stack: e.get('stack'),
  30430. markPoint: e.get('markPoint'),
  30431. markLine: e.get('markLine')
  30432. },
  30433. n.get(['option', 'bar']) || {},
  30434. !0
  30435. )
  30436. },
  30437. stack: function (r, t, e, n) {
  30438. var i = e.get('stack') === l1
  30439. if (r === 'line' || r === 'bar')
  30440. return (
  30441. n.setIconStatus('stack', i ? 'normal' : 'emphasis'),
  30442. nt(
  30443. { id: t, stack: i ? '' : l1 },
  30444. n.get(['option', 'stack']) || {},
  30445. !0
  30446. )
  30447. )
  30448. }
  30449. }
  30450. Je(
  30451. {
  30452. type: 'changeMagicType',
  30453. event: 'magicTypeChanged',
  30454. update: 'prepareAndUpdate'
  30455. },
  30456. function (r, t) {
  30457. t.mergeOption(r.newOption)
  30458. }
  30459. )
  30460. var iE = nE,
  30461. ml = new Array(60).join('-'),
  30462. Ti = ' '
  30463. function aE(r) {
  30464. var t = {},
  30465. e = [],
  30466. n = []
  30467. return (
  30468. r.eachRawSeries(function (i) {
  30469. var a = i.coordinateSystem
  30470. if (a && (a.type === 'cartesian2d' || a.type === 'polar')) {
  30471. var o = a.getBaseAxis()
  30472. if (o.type === 'category') {
  30473. var s = o.dim + '_' + o.index
  30474. t[s] ||
  30475. ((t[s] = {
  30476. categoryAxis: o,
  30477. valueAxis: a.getOtherAxis(o),
  30478. series: []
  30479. }),
  30480. n.push({ axisDim: o.dim, axisIndex: o.index })),
  30481. t[s].series.push(i)
  30482. } else e.push(i)
  30483. } else e.push(i)
  30484. }),
  30485. { seriesGroupByCategoryAxis: t, other: e, meta: n }
  30486. )
  30487. }
  30488. function oE(r) {
  30489. var t = []
  30490. return (
  30491. A(r, function (e, n) {
  30492. var i = e.categoryAxis,
  30493. a = e.valueAxis,
  30494. o = a.dim,
  30495. s = [' '].concat(
  30496. G(e.series, function (v) {
  30497. return v.name
  30498. })
  30499. ),
  30500. l = [i.model.getCategories()]
  30501. A(e.series, function (v) {
  30502. var d = v.getRawData()
  30503. l.push(
  30504. v.getRawData().mapArray(d.mapDimension(o), function (p) {
  30505. return p
  30506. })
  30507. )
  30508. })
  30509. for (var u = [s.join(Ti)], f = 0; f < l[0].length; f++) {
  30510. for (var h = [], c = 0; c < l.length; c++) h.push(l[c][f])
  30511. u.push(h.join(Ti))
  30512. }
  30513. t.push(
  30514. u.join(`
  30515. `)
  30516. )
  30517. }),
  30518. t.join(
  30519. `
  30520. ` +
  30521. ml +
  30522. `
  30523. `
  30524. )
  30525. )
  30526. }
  30527. function sE(r) {
  30528. return G(r, function (t) {
  30529. var e = t.getRawData(),
  30530. n = [t.name],
  30531. i = []
  30532. return (
  30533. e.each(e.dimensions, function () {
  30534. for (
  30535. var a = arguments.length,
  30536. o = arguments[a - 1],
  30537. s = e.getName(o),
  30538. l = 0;
  30539. l < a - 1;
  30540. l++
  30541. )
  30542. i[l] = arguments[l]
  30543. n.push((s ? s + Ti : '') + i.join(Ti))
  30544. }),
  30545. n.join(`
  30546. `)
  30547. )
  30548. }).join(
  30549. `
  30550. ` +
  30551. ml +
  30552. `
  30553. `
  30554. )
  30555. }
  30556. function lE(r) {
  30557. var t = aE(r)
  30558. return {
  30559. value: Lt([oE(t.seriesGroupByCategoryAxis), sE(t.other)], function (e) {
  30560. return !!e.replace(/[\n\t\s]/g, '')
  30561. }).join(
  30562. `
  30563. ` +
  30564. ml +
  30565. `
  30566. `
  30567. ),
  30568. meta: t.meta
  30569. }
  30570. }
  30571. function yl(r) {
  30572. return r.replace(/^\s\s*/, '').replace(/\s\s*$/, '')
  30573. }
  30574. function uE(r) {
  30575. var t = r.slice(
  30576. 0,
  30577. r.indexOf(`
  30578. `)
  30579. )
  30580. if (t.indexOf(Ti) >= 0) return !0
  30581. }
  30582. var cv = new RegExp('[' + Ti + ']+', 'g')
  30583. function fE(r) {
  30584. for (
  30585. var t = r.split(/\n+/g),
  30586. e = yl(t.shift()).split(cv),
  30587. n = [],
  30588. i = G(e, function (l) {
  30589. return { name: l, data: [] }
  30590. }),
  30591. a = 0;
  30592. a < t.length;
  30593. a++
  30594. ) {
  30595. var o = yl(t[a]).split(cv)
  30596. n.push(o.shift())
  30597. for (var s = 0; s < o.length; s++) i[s] && (i[s].data[a] = o[s])
  30598. }
  30599. return { series: i, categories: n }
  30600. }
  30601. function hE(r) {
  30602. for (
  30603. var t = r.split(/\n+/g), e = yl(t.shift()), n = [], i = 0;
  30604. i < t.length;
  30605. i++
  30606. ) {
  30607. var a = yl(t[i])
  30608. if (!!a) {
  30609. var o = a.split(cv),
  30610. s = '',
  30611. l = void 0,
  30612. u = !1
  30613. isNaN(o[0])
  30614. ? ((u = !0),
  30615. (s = o[0]),
  30616. (o = o.slice(1)),
  30617. (n[i] = { name: s, value: [] }),
  30618. (l = n[i].value))
  30619. : (l = n[i] = [])
  30620. for (var f = 0; f < o.length; f++) l.push(+o[f])
  30621. l.length === 1 && (u ? (n[i].value = l[0]) : (n[i] = l[0]))
  30622. }
  30623. }
  30624. return { name: e, data: n }
  30625. }
  30626. function vE(r, t) {
  30627. var e = r.split(
  30628. new RegExp(
  30629. `
  30630. *` +
  30631. ml +
  30632. `
  30633. *`,
  30634. 'g'
  30635. )
  30636. ),
  30637. n = { series: [] }
  30638. return (
  30639. A(e, function (i, a) {
  30640. if (uE(i)) {
  30641. var o = fE(i),
  30642. s = t[a],
  30643. l = s.axisDim + 'Axis'
  30644. s &&
  30645. ((n[l] = n[l] || []),
  30646. (n[l][s.axisIndex] = { data: o.categories }),
  30647. (n.series = n.series.concat(o.series)))
  30648. } else {
  30649. var o = hE(i)
  30650. n.series.push(o)
  30651. }
  30652. }),
  30653. n
  30654. )
  30655. }
  30656. var cE = (function (r) {
  30657. B(t, r)
  30658. function t() {
  30659. return (r !== null && r.apply(this, arguments)) || this
  30660. }
  30661. return (
  30662. (t.prototype.onclick = function (e, n) {
  30663. setTimeout(function () {
  30664. n.dispatchAction({ type: 'hideTip' })
  30665. })
  30666. var i = n.getDom(),
  30667. a = this.model
  30668. this._dom && i.removeChild(this._dom)
  30669. var o = document.createElement('div')
  30670. ;(o.style.cssText =
  30671. 'position:absolute;top:0;bottom:0;left:0;right:0;padding:5px'),
  30672. (o.style.backgroundColor = a.get('backgroundColor') || '#fff')
  30673. var s = document.createElement('h4'),
  30674. l = a.get('lang') || []
  30675. ;(s.innerHTML = l[0] || a.get('title')),
  30676. (s.style.cssText = 'margin:10px 20px'),
  30677. (s.style.color = a.get('textColor'))
  30678. var u = document.createElement('div'),
  30679. f = document.createElement('textarea')
  30680. u.style.cssText = 'overflow:auto'
  30681. var h = a.get('optionToContent'),
  30682. c = a.get('contentToOption'),
  30683. v = lE(e)
  30684. if (Q(h)) {
  30685. var d = h(n.getOption())
  30686. W(d) ? (u.innerHTML = d) : Ri(d) && u.appendChild(d)
  30687. } else {
  30688. f.readOnly = a.get('readOnly')
  30689. var p = f.style
  30690. ;(p.cssText =
  30691. 'display:block;width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;resize:none;box-sizing:border-box;outline:none'),
  30692. (p.color = a.get('textColor')),
  30693. (p.borderColor = a.get('textareaBorderColor')),
  30694. (p.backgroundColor = a.get('textareaColor')),
  30695. (f.value = v.value),
  30696. u.appendChild(f)
  30697. }
  30698. var g = v.meta,
  30699. m = document.createElement('div')
  30700. m.style.cssText = 'position:absolute;bottom:5px;left:0;right:0'
  30701. var y =
  30702. 'float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px',
  30703. _ = document.createElement('div'),
  30704. S = document.createElement('div')
  30705. ;(y += ';background-color:' + a.get('buttonColor')),
  30706. (y += ';color:' + a.get('buttonTextColor'))
  30707. var w = this
  30708. function x() {
  30709. i.removeChild(o), (w._dom = null)
  30710. }
  30711. Wl(_, 'click', x),
  30712. Wl(S, 'click', function () {
  30713. if ((c == null && h != null) || (c != null && h == null)) {
  30714. x()
  30715. return
  30716. }
  30717. var b
  30718. try {
  30719. Q(c) ? (b = c(u, n.getOption())) : (b = vE(f.value, g))
  30720. } catch (T) {
  30721. throw (x(), new Error('Data view format error ' + T))
  30722. }
  30723. b && n.dispatchAction({ type: 'changeDataView', newOption: b }), x()
  30724. }),
  30725. (_.innerHTML = l[1]),
  30726. (S.innerHTML = l[2]),
  30727. (S.style.cssText = _.style.cssText = y),
  30728. !a.get('readOnly') && m.appendChild(S),
  30729. m.appendChild(_),
  30730. o.appendChild(s),
  30731. o.appendChild(u),
  30732. o.appendChild(m),
  30733. (u.style.height = i.clientHeight - 80 + 'px'),
  30734. i.appendChild(o),
  30735. (this._dom = o)
  30736. }),
  30737. (t.prototype.remove = function (e, n) {
  30738. this._dom && n.getDom().removeChild(this._dom)
  30739. }),
  30740. (t.prototype.dispose = function (e, n) {
  30741. this.remove(e, n)
  30742. }),
  30743. (t.getDefaultOption = function (e) {
  30744. var n = {
  30745. show: !0,
  30746. readOnly: !1,
  30747. optionToContent: null,
  30748. contentToOption: null,
  30749. 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',
  30750. title: e.getLocaleModel().get(['toolbox', 'dataView', 'title']),
  30751. lang: e.getLocaleModel().get(['toolbox', 'dataView', 'lang']),
  30752. backgroundColor: '#fff',
  30753. textColor: '#000',
  30754. textareaColor: '#fff',
  30755. textareaBorderColor: '#333',
  30756. buttonColor: '#c23531',
  30757. buttonTextColor: '#fff'
  30758. }
  30759. return n
  30760. }),
  30761. t
  30762. )
  30763. })(ke)
  30764. function dE(r, t) {
  30765. return G(r, function (e, n) {
  30766. var i = t && t[n]
  30767. if (Y(i) && !z(i)) {
  30768. var a = Y(e) && !z(e)
  30769. a || (e = { value: e })
  30770. var o = i.name != null && e.name == null
  30771. return (e = j(e, i)), o && delete e.name, e
  30772. } else return e
  30773. })
  30774. }
  30775. Je(
  30776. {
  30777. type: 'changeDataView',
  30778. event: 'dataViewChanged',
  30779. update: 'prepareAndUpdate'
  30780. },
  30781. function (r, t) {
  30782. var e = []
  30783. A(r.newOption.series, function (n) {
  30784. var i = t.getSeriesByName(n.name)[0]
  30785. if (!i) e.push(N({ type: 'scatter' }, n))
  30786. else {
  30787. var a = i.get('data')
  30788. e.push({ name: n.name, data: dE(n.data, a) })
  30789. }
  30790. }),
  30791. t.mergeOption(j({ series: e }, r.newOption))
  30792. }
  30793. )
  30794. var pE = cE,
  30795. f1 = A,
  30796. h1 = wt()
  30797. function gE(r, t) {
  30798. var e = dv(r)
  30799. f1(t, function (n, i) {
  30800. for (var a = e.length - 1; a >= 0; a--) {
  30801. var o = e[a]
  30802. if (o[i]) break
  30803. }
  30804. if (a < 0) {
  30805. var s = r.queryComponents({
  30806. mainType: 'dataZoom',
  30807. subType: 'select',
  30808. id: i
  30809. })[0]
  30810. if (s) {
  30811. var l = s.getPercentRange()
  30812. e[0][i] = { dataZoomId: i, start: l[0], end: l[1] }
  30813. }
  30814. }
  30815. }),
  30816. e.push(t)
  30817. }
  30818. function mE(r) {
  30819. var t = dv(r),
  30820. e = t[t.length - 1]
  30821. t.length > 1 && t.pop()
  30822. var n = {}
  30823. return (
  30824. f1(e, function (i, a) {
  30825. for (var o = t.length - 1; o >= 0; o--)
  30826. if (((i = t[o][a]), i)) {
  30827. n[a] = i
  30828. break
  30829. }
  30830. }),
  30831. n
  30832. )
  30833. }
  30834. function yE(r) {
  30835. h1(r).snapshots = null
  30836. }
  30837. function _E(r) {
  30838. return dv(r).length
  30839. }
  30840. function dv(r) {
  30841. var t = h1(r)
  30842. return t.snapshots || (t.snapshots = [{}]), t.snapshots
  30843. }
  30844. var SE = (function (r) {
  30845. B(t, r)
  30846. function t() {
  30847. return (r !== null && r.apply(this, arguments)) || this
  30848. }
  30849. return (
  30850. (t.prototype.onclick = function (e, n) {
  30851. yE(e), n.dispatchAction({ type: 'restore', from: this.uid })
  30852. }),
  30853. (t.getDefaultOption = function (e) {
  30854. var n = {
  30855. show: !0,
  30856. 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',
  30857. title: e.getLocaleModel().get(['toolbox', 'restore', 'title'])
  30858. }
  30859. return n
  30860. }),
  30861. t
  30862. )
  30863. })(ke)
  30864. Je(
  30865. { type: 'restore', event: 'restore', update: 'prepareAndUpdate' },
  30866. function (r, t) {
  30867. t.resetOption('recreate')
  30868. }
  30869. )
  30870. var xE = SE,
  30871. wE = [
  30872. 'grid',
  30873. 'xAxis',
  30874. 'yAxis',
  30875. 'geo',
  30876. 'graph',
  30877. 'polar',
  30878. 'radiusAxis',
  30879. 'angleAxis',
  30880. 'bmap'
  30881. ],
  30882. bE = (function () {
  30883. function r(t, e, n) {
  30884. var i = this
  30885. this._targetInfoList = []
  30886. var a = v1(e, t)
  30887. A(TE, function (o, s) {
  30888. ;(!n || !n.include || ot(n.include, s) >= 0) && o(a, i._targetInfoList)
  30889. })
  30890. }
  30891. return (
  30892. (r.prototype.setOutputRanges = function (t, e) {
  30893. return (
  30894. this.matchOutputRanges(t, e, function (n, i, a) {
  30895. if (
  30896. ((n.coordRanges || (n.coordRanges = [])).push(i), !n.coordRange)
  30897. ) {
  30898. n.coordRange = i
  30899. var o = gv[n.brushType](0, a, i)
  30900. n.__rangeOffset = {
  30901. offset: g1[n.brushType](o.values, n.range, [1, 1]),
  30902. xyMinMax: o.xyMinMax
  30903. }
  30904. }
  30905. }),
  30906. t
  30907. )
  30908. }),
  30909. (r.prototype.matchOutputRanges = function (t, e, n) {
  30910. A(
  30911. t,
  30912. function (i) {
  30913. var a = this.findTargetInfo(i, e)
  30914. a &&
  30915. a !== !0 &&
  30916. A(a.coordSyses, function (o) {
  30917. var s = gv[i.brushType](1, o, i.range, !0)
  30918. n(i, s.values, o, e)
  30919. })
  30920. },
  30921. this
  30922. )
  30923. }),
  30924. (r.prototype.setInputRanges = function (t, e) {
  30925. A(
  30926. t,
  30927. function (n) {
  30928. var i = this.findTargetInfo(n, e)
  30929. if (((n.range = n.range || []), i && i !== !0)) {
  30930. n.panelId = i.panelId
  30931. var a = gv[n.brushType](0, i.coordSys, n.coordRange),
  30932. o = n.__rangeOffset
  30933. n.range = o
  30934. ? g1[n.brushType](
  30935. a.values,
  30936. o.offset,
  30937. CE(a.xyMinMax, o.xyMinMax)
  30938. )
  30939. : a.values
  30940. }
  30941. },
  30942. this
  30943. )
  30944. }),
  30945. (r.prototype.makePanelOpts = function (t, e) {
  30946. return G(this._targetInfoList, function (n) {
  30947. var i = n.getPanelRect()
  30948. return {
  30949. panelId: n.panelId,
  30950. defaultBrushType: e ? e(n) : null,
  30951. clipPath: tR(i),
  30952. isTargetByCursor: rR(i, t, n.coordSysModel),
  30953. getLinearBrushOtherExtent: eR(i)
  30954. }
  30955. })
  30956. }),
  30957. (r.prototype.controlSeries = function (t, e, n) {
  30958. var i = this.findTargetInfo(t, n)
  30959. return i === !0 || (i && ot(i.coordSyses, e.coordinateSystem) >= 0)
  30960. }),
  30961. (r.prototype.findTargetInfo = function (t, e) {
  30962. for (
  30963. var n = this._targetInfoList, i = v1(e, t), a = 0;
  30964. a < n.length;
  30965. a++
  30966. ) {
  30967. var o = n[a],
  30968. s = t.panelId
  30969. if (s) {
  30970. if (o.panelId === s) return o
  30971. } else for (var l = 0; l < c1.length; l++) if (c1[l](i, o)) return o
  30972. }
  30973. return !0
  30974. }),
  30975. r
  30976. )
  30977. })()
  30978. function pv(r) {
  30979. return r[0] > r[1] && r.reverse(), r
  30980. }
  30981. function v1(r, t) {
  30982. return Ji(r, t, { includeMainTypes: wE })
  30983. }
  30984. var TE = {
  30985. grid: function (r, t) {
  30986. var e = r.xAxisModels,
  30987. n = r.yAxisModels,
  30988. i = r.gridModels,
  30989. a = q(),
  30990. o = {},
  30991. s = {}
  30992. ;(!e && !n && !i) ||
  30993. (A(e, function (l) {
  30994. var u = l.axis.grid.model
  30995. a.set(u.id, u), (o[u.id] = !0)
  30996. }),
  30997. A(n, function (l) {
  30998. var u = l.axis.grid.model
  30999. a.set(u.id, u), (s[u.id] = !0)
  31000. }),
  31001. A(i, function (l) {
  31002. a.set(l.id, l), (o[l.id] = !0), (s[l.id] = !0)
  31003. }),
  31004. a.each(function (l) {
  31005. var u = l.coordinateSystem,
  31006. f = []
  31007. A(u.getCartesians(), function (h, c) {
  31008. ;(ot(e, h.getAxis('x').model) >= 0 ||
  31009. ot(n, h.getAxis('y').model) >= 0) &&
  31010. f.push(h)
  31011. }),
  31012. t.push({
  31013. panelId: 'grid--' + l.id,
  31014. gridModel: l,
  31015. coordSysModel: l,
  31016. coordSys: f[0],
  31017. coordSyses: f,
  31018. getPanelRect: d1.grid,
  31019. xAxisDeclared: o[l.id],
  31020. yAxisDeclared: s[l.id]
  31021. })
  31022. }))
  31023. },
  31024. geo: function (r, t) {
  31025. A(r.geoModels, function (e) {
  31026. var n = e.coordinateSystem
  31027. t.push({
  31028. panelId: 'geo--' + e.id,
  31029. geoModel: e,
  31030. coordSysModel: e,
  31031. coordSys: n,
  31032. coordSyses: [n],
  31033. getPanelRect: d1.geo
  31034. })
  31035. })
  31036. }
  31037. },
  31038. c1 = [
  31039. function (r, t) {
  31040. var e = r.xAxisModel,
  31041. n = r.yAxisModel,
  31042. i = r.gridModel
  31043. return (
  31044. !i && e && (i = e.axis.grid.model),
  31045. !i && n && (i = n.axis.grid.model),
  31046. i && i === t.gridModel
  31047. )
  31048. },
  31049. function (r, t) {
  31050. var e = r.geoModel
  31051. return e && e === t.geoModel
  31052. }
  31053. ],
  31054. d1 = {
  31055. grid: function () {
  31056. return this.coordSys.master.getRect().clone()
  31057. },
  31058. geo: function () {
  31059. var r = this.coordSys,
  31060. t = r.getBoundingRect().clone()
  31061. return t.applyTransform(ls(r)), t
  31062. }
  31063. },
  31064. gv = {
  31065. lineX: lt(p1, 0),
  31066. lineY: lt(p1, 1),
  31067. rect: function (r, t, e, n) {
  31068. var i = r
  31069. ? t.pointToData([e[0][0], e[1][0]], n)
  31070. : t.dataToPoint([e[0][0], e[1][0]], n),
  31071. a = r
  31072. ? t.pointToData([e[0][1], e[1][1]], n)
  31073. : t.dataToPoint([e[0][1], e[1][1]], n),
  31074. o = [pv([i[0], a[0]]), pv([i[1], a[1]])]
  31075. return { values: o, xyMinMax: o }
  31076. },
  31077. polygon: function (r, t, e, n) {
  31078. var i = [
  31079. [1 / 0, -1 / 0],
  31080. [1 / 0, -1 / 0]
  31081. ],
  31082. a = G(e, function (o) {
  31083. var s = r ? t.pointToData(o, n) : t.dataToPoint(o, n)
  31084. return (
  31085. (i[0][0] = Math.min(i[0][0], s[0])),
  31086. (i[1][0] = Math.min(i[1][0], s[1])),
  31087. (i[0][1] = Math.max(i[0][1], s[0])),
  31088. (i[1][1] = Math.max(i[1][1], s[1])),
  31089. s
  31090. )
  31091. })
  31092. return { values: a, xyMinMax: i }
  31093. }
  31094. }
  31095. function p1(r, t, e, n) {
  31096. var i = e.getAxis(['x', 'y'][r]),
  31097. a = pv(
  31098. G([0, 1], function (s) {
  31099. return t
  31100. ? i.coordToData(i.toLocalCoord(n[s]), !0)
  31101. : i.toGlobalCoord(i.dataToCoord(n[s]))
  31102. })
  31103. ),
  31104. o = []
  31105. return (o[r] = a), (o[1 - r] = [NaN, NaN]), { values: a, xyMinMax: o }
  31106. }
  31107. var g1 = {
  31108. lineX: lt(m1, 0),
  31109. lineY: lt(m1, 1),
  31110. rect: function (r, t, e) {
  31111. return [
  31112. [r[0][0] - e[0] * t[0][0], r[0][1] - e[0] * t[0][1]],
  31113. [r[1][0] - e[1] * t[1][0], r[1][1] - e[1] * t[1][1]]
  31114. ]
  31115. },
  31116. polygon: function (r, t, e) {
  31117. return G(r, function (n, i) {
  31118. return [n[0] - e[0] * t[i][0], n[1] - e[1] * t[i][1]]
  31119. })
  31120. }
  31121. }
  31122. function m1(r, t, e, n) {
  31123. return [t[0] - n[r] * e[0], t[1] - n[r] * e[1]]
  31124. }
  31125. function CE(r, t) {
  31126. var e = y1(r),
  31127. n = y1(t),
  31128. i = [e[0] / n[0], e[1] / n[1]]
  31129. return isNaN(i[0]) && (i[0] = 1), isNaN(i[1]) && (i[1] = 1), i
  31130. }
  31131. function y1(r) {
  31132. return r ? [r[0][1] - r[0][0], r[1][1] - r[1][0]] : [NaN, NaN]
  31133. }
  31134. var _1 = bE,
  31135. mv = A,
  31136. AE = hb('toolbox-dataZoom_'),
  31137. ME = (function (r) {
  31138. B(t, r)
  31139. function t() {
  31140. return (r !== null && r.apply(this, arguments)) || this
  31141. }
  31142. return (
  31143. (t.prototype.render = function (e, n, i, a) {
  31144. this._brushController ||
  31145. ((this._brushController = new jP(i.getZr())),
  31146. this._brushController.on('brush', X(this._onBrush, this)).mount()),
  31147. LE(e, n, this, a, i),
  31148. IE(e, n)
  31149. }),
  31150. (t.prototype.onclick = function (e, n, i) {
  31151. DE[i].call(this)
  31152. }),
  31153. (t.prototype.remove = function (e, n) {
  31154. this._brushController && this._brushController.unmount()
  31155. }),
  31156. (t.prototype.dispose = function (e, n) {
  31157. this._brushController && this._brushController.dispose()
  31158. }),
  31159. (t.prototype._onBrush = function (e) {
  31160. var n = e.areas
  31161. if (!e.isEnd || !n.length) return
  31162. var i = {},
  31163. a = this.ecModel
  31164. this._brushController.updateCovers([])
  31165. var o = new _1(yv(this.model), a, { include: ['grid'] })
  31166. o.matchOutputRanges(n, a, function (u, f, h) {
  31167. if (h.type === 'cartesian2d') {
  31168. var c = u.brushType
  31169. c === 'rect'
  31170. ? (s('x', h, f[0]), s('y', h, f[1]))
  31171. : s({ lineX: 'x', lineY: 'y' }[c], h, f)
  31172. }
  31173. }),
  31174. gE(a, i),
  31175. this._dispatchZoomAction(i)
  31176. function s(u, f, h) {
  31177. var c = f.getAxis(u),
  31178. v = c.model,
  31179. d = l(u, v, a),
  31180. p = d.findRepresentativeAxisProxy(v).getMinMaxSpan()
  31181. ;(p.minValueSpan != null || p.maxValueSpan != null) &&
  31182. (h = Za(
  31183. 0,
  31184. h.slice(),
  31185. c.scale.getExtent(),
  31186. 0,
  31187. p.minValueSpan,
  31188. p.maxValueSpan
  31189. )),
  31190. d &&
  31191. (i[d.id] = { dataZoomId: d.id, startValue: h[0], endValue: h[1] })
  31192. }
  31193. function l(u, f, h) {
  31194. var c
  31195. return (
  31196. h.eachComponent(
  31197. { mainType: 'dataZoom', subType: 'select' },
  31198. function (v) {
  31199. var d = v.getAxisModel(u, f.componentIndex)
  31200. d && (c = v)
  31201. }
  31202. ),
  31203. c
  31204. )
  31205. }
  31206. }),
  31207. (t.prototype._dispatchZoomAction = function (e) {
  31208. var n = []
  31209. mv(e, function (i, a) {
  31210. n.push(tt(i))
  31211. }),
  31212. n.length &&
  31213. this.api.dispatchAction({
  31214. type: 'dataZoom',
  31215. from: this.uid,
  31216. batch: n
  31217. })
  31218. }),
  31219. (t.getDefaultOption = function (e) {
  31220. var n = {
  31221. show: !0,
  31222. filterMode: 'filter',
  31223. icon: {
  31224. zoom: 'M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1',
  31225. back: 'M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26'
  31226. },
  31227. title: e.getLocaleModel().get(['toolbox', 'dataZoom', 'title']),
  31228. brushStyle: { borderWidth: 0, color: 'rgba(210,219,238,0.2)' }
  31229. }
  31230. return n
  31231. }),
  31232. t
  31233. )
  31234. })(ke),
  31235. DE = {
  31236. zoom: function () {
  31237. var r = !this._isZoomActive
  31238. this.api.dispatchAction({
  31239. type: 'takeGlobalCursor',
  31240. key: 'dataZoomSelect',
  31241. dataZoomSelectActive: r
  31242. })
  31243. },
  31244. back: function () {
  31245. this._dispatchZoomAction(mE(this.ecModel))
  31246. }
  31247. }
  31248. function yv(r) {
  31249. var t = {
  31250. xAxisIndex: r.get('xAxisIndex', !0),
  31251. yAxisIndex: r.get('yAxisIndex', !0),
  31252. xAxisId: r.get('xAxisId', !0),
  31253. yAxisId: r.get('yAxisId', !0)
  31254. }
  31255. return (
  31256. t.xAxisIndex == null && t.xAxisId == null && (t.xAxisIndex = 'all'),
  31257. t.yAxisIndex == null && t.yAxisId == null && (t.yAxisIndex = 'all'),
  31258. t
  31259. )
  31260. }
  31261. function IE(r, t) {
  31262. r.setIconStatus('back', _E(t) > 1 ? 'emphasis' : 'normal')
  31263. }
  31264. function LE(r, t, e, n, i) {
  31265. var a = e._isZoomActive
  31266. n &&
  31267. n.type === 'takeGlobalCursor' &&
  31268. (a = n.key === 'dataZoomSelect' ? n.dataZoomSelectActive : !1),
  31269. (e._isZoomActive = a),
  31270. r.setIconStatus('zoom', a ? 'emphasis' : 'normal')
  31271. var o = new _1(yv(r), t, { include: ['grid'] }),
  31272. s = o.makePanelOpts(i, function (l) {
  31273. return l.xAxisDeclared && !l.yAxisDeclared
  31274. ? 'lineX'
  31275. : !l.xAxisDeclared && l.yAxisDeclared
  31276. ? 'lineY'
  31277. : 'rect'
  31278. })
  31279. e._brushController
  31280. .setPanels(s)
  31281. .enableBrush(
  31282. a && s.length
  31283. ? {
  31284. brushType: 'auto',
  31285. brushStyle: r.getModel('brushStyle').getItemStyle()
  31286. }
  31287. : !1
  31288. )
  31289. }
  31290. gA('dataZoom', function (r) {
  31291. var t = r.getComponent('toolbox', 0),
  31292. e = ['feature', 'dataZoom']
  31293. if (!t || t.get(e) == null) return
  31294. var n = t.getModel(e),
  31295. i = [],
  31296. a = yv(n),
  31297. o = Ji(r, a)
  31298. mv(o.xAxisModels, function (l) {
  31299. return s(l, 'xAxis', 'xAxisIndex')
  31300. }),
  31301. mv(o.yAxisModels, function (l) {
  31302. return s(l, 'yAxis', 'yAxisIndex')
  31303. })
  31304. function s(l, u, f) {
  31305. var h = l.componentIndex,
  31306. c = {
  31307. type: 'select',
  31308. $fromToolbox: !0,
  31309. filterMode: n.get('filterMode', !0) || 'filter',
  31310. id: AE + u + h
  31311. }
  31312. ;(c[f] = h), i.push(c)
  31313. }
  31314. return i
  31315. })
  31316. var PE = ME
  31317. function RE(r) {
  31318. r.registerComponentModel(qR),
  31319. r.registerComponentView(jR),
  31320. qa('saveAsImage', eE),
  31321. qa('magicType', iE),
  31322. qa('dataView', pE),
  31323. qa('dataZoom', PE),
  31324. qa('restore', xE),
  31325. Re($R)
  31326. }
  31327. var EE = (function (r) {
  31328. B(t, r)
  31329. function t() {
  31330. var e = (r !== null && r.apply(this, arguments)) || this
  31331. return (e.type = t.type), e
  31332. }
  31333. return (
  31334. (t.type = 'tooltip'),
  31335. (t.dependencies = ['axisPointer']),
  31336. (t.defaultOption = {
  31337. z: 60,
  31338. show: !0,
  31339. showContent: !0,
  31340. trigger: 'item',
  31341. triggerOn: 'mousemove|click',
  31342. alwaysShowContent: !1,
  31343. displayMode: 'single',
  31344. renderMode: 'auto',
  31345. confine: null,
  31346. showDelay: 0,
  31347. hideDelay: 100,
  31348. transitionDuration: 0.4,
  31349. enterable: !1,
  31350. backgroundColor: '#fff',
  31351. shadowBlur: 10,
  31352. shadowColor: 'rgba(0, 0, 0, .2)',
  31353. shadowOffsetX: 1,
  31354. shadowOffsetY: 2,
  31355. borderRadius: 4,
  31356. borderWidth: 1,
  31357. padding: null,
  31358. extraCssText: '',
  31359. axisPointer: {
  31360. type: 'line',
  31361. axis: 'auto',
  31362. animation: 'auto',
  31363. animationDurationUpdate: 200,
  31364. animationEasingUpdate: 'exponentialOut',
  31365. crossStyle: { color: '#999', width: 1, type: 'dashed', textStyle: {} }
  31366. },
  31367. textStyle: { color: '#666', fontSize: 14 }
  31368. }),
  31369. t
  31370. )
  31371. })(_t),
  31372. OE = EE
  31373. function S1(r) {
  31374. var t = r.get('confine')
  31375. return t != null ? !!t : r.get('renderMode') === 'richText'
  31376. }
  31377. function x1(r) {
  31378. if (!!at.domSupported) {
  31379. for (
  31380. var t = document.documentElement.style, e = 0, n = r.length;
  31381. e < n;
  31382. e++
  31383. )
  31384. if (r[e] in t) return r[e]
  31385. }
  31386. }
  31387. var w1 = x1([
  31388. 'transform',
  31389. 'webkitTransform',
  31390. 'OTransform',
  31391. 'MozTransform',
  31392. 'msTransform'
  31393. ]),
  31394. kE = x1([
  31395. 'webkitTransition',
  31396. 'transition',
  31397. 'OTransition',
  31398. 'MozTransition',
  31399. 'msTransition'
  31400. ])
  31401. function b1(r, t) {
  31402. if (!r) return t
  31403. t = lg(t, !0)
  31404. var e = r.indexOf(t)
  31405. return (r = e === -1 ? t : '-' + r.slice(0, e) + '-' + t), r.toLowerCase()
  31406. }
  31407. function BE(r, t) {
  31408. var e =
  31409. r.currentStyle ||
  31410. (document.defaultView && document.defaultView.getComputedStyle(r))
  31411. return e ? (t ? e[t] : e) : null
  31412. }
  31413. var NE = b1(kE, 'transition'),
  31414. _v = b1(w1, 'transform'),
  31415. FE =
  31416. 'position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;' +
  31417. (at.transform3dSupported ? 'will-change:transform;' : '')
  31418. function zE(r) {
  31419. return (
  31420. (r =
  31421. r === 'left'
  31422. ? 'right'
  31423. : r === 'right'
  31424. ? 'left'
  31425. : r === 'top'
  31426. ? 'bottom'
  31427. : 'top'),
  31428. r
  31429. )
  31430. }
  31431. function VE(r, t, e) {
  31432. if (!W(e) || e === 'inside') return ''
  31433. var n = r.get('backgroundColor'),
  31434. i = r.get('borderWidth')
  31435. t = yn(t)
  31436. var a = zE(e),
  31437. o = Math.max(Math.round(i) * 1.5, 6),
  31438. s = '',
  31439. l = _v + ':',
  31440. u
  31441. ot(['left', 'right'], a) > -1
  31442. ? ((s += 'top:50%'),
  31443. (l +=
  31444. 'translateY(-50%) rotate(' + (u = a === 'left' ? -225 : -45) + 'deg)'))
  31445. : ((s += 'left:50%'),
  31446. (l += 'translateX(-50%) rotate(' + (u = a === 'top' ? 225 : 45) + 'deg)'))
  31447. var f = (u * Math.PI) / 180,
  31448. h = o + i,
  31449. c = h * Math.abs(Math.cos(f)) + h * Math.abs(Math.sin(f)),
  31450. v =
  31451. Math.round(
  31452. ((c - Math.SQRT2 * i) / 2 + Math.SQRT2 * i - (c - h) / 2) * 100
  31453. ) / 100
  31454. s += ';' + a + ':-' + v + 'px'
  31455. var d = t + ' solid ' + i + 'px;',
  31456. p = [
  31457. 'position:absolute;width:' + o + 'px;height:' + o + 'px;',
  31458. s + ';' + l + ';',
  31459. 'border-bottom:' + d,
  31460. 'border-right:' + d,
  31461. 'background-color:' + n + ';'
  31462. ]
  31463. return '<div style="' + p.join('') + '"></div>'
  31464. }
  31465. function GE(r, t) {
  31466. var e = 'cubic-bezier(0.23,1,0.32,1)',
  31467. n = ' ' + r / 2 + 's ' + e,
  31468. i = 'opacity' + n + ',visibility' + n
  31469. return (
  31470. t ||
  31471. ((n = ' ' + r + 's ' + e),
  31472. (i += at.transformSupported ? ',' + _v + n : ',left' + n + ',top' + n)),
  31473. NE + ':' + i
  31474. )
  31475. }
  31476. function T1(r, t, e) {
  31477. var n = r.toFixed(0) + 'px',
  31478. i = t.toFixed(0) + 'px'
  31479. if (!at.transformSupported)
  31480. return e
  31481. ? 'top:' + i + ';left:' + n + ';'
  31482. : [
  31483. ['top', i],
  31484. ['left', n]
  31485. ]
  31486. var a = at.transform3dSupported,
  31487. o =
  31488. 'translate' + (a ? '3d' : '') + '(' + n + ',' + i + (a ? ',0' : '') + ')'
  31489. return e
  31490. ? 'top:0;left:0;' + _v + ':' + o + ';'
  31491. : [
  31492. ['top', 0],
  31493. ['left', 0],
  31494. [w1, o]
  31495. ]
  31496. }
  31497. function HE(r) {
  31498. var t = [],
  31499. e = r.get('fontSize'),
  31500. n = r.getTextColor()
  31501. n && t.push('color:' + n),
  31502. t.push('font:' + r.getFont()),
  31503. e && t.push('line-height:' + Math.round((e * 3) / 2) + 'px')
  31504. var i = r.get('textShadowColor'),
  31505. a = r.get('textShadowBlur') || 0,
  31506. o = r.get('textShadowOffsetX') || 0,
  31507. s = r.get('textShadowOffsetY') || 0
  31508. return (
  31509. i && a && t.push('text-shadow:' + o + 'px ' + s + 'px ' + a + 'px ' + i),
  31510. A(['decoration', 'align'], function (l) {
  31511. var u = r.get(l)
  31512. u && t.push('text-' + l + ':' + u)
  31513. }),
  31514. t.join(';')
  31515. )
  31516. }
  31517. function WE(r, t, e) {
  31518. var n = [],
  31519. i = r.get('transitionDuration'),
  31520. a = r.get('backgroundColor'),
  31521. o = r.get('shadowBlur'),
  31522. s = r.get('shadowColor'),
  31523. l = r.get('shadowOffsetX'),
  31524. u = r.get('shadowOffsetY'),
  31525. f = r.getModel('textStyle'),
  31526. h = hm(r, 'html'),
  31527. c = l + 'px ' + u + 'px ' + o + 'px ' + s
  31528. return (
  31529. n.push('box-shadow:' + c),
  31530. t && i && n.push(GE(i, e)),
  31531. a && n.push('background-color:' + a),
  31532. A(['width', 'color', 'radius'], function (v) {
  31533. var d = 'border-' + v,
  31534. p = lg(d),
  31535. g = r.get(p)
  31536. g != null && n.push(d + ':' + g + (v === 'color' ? '' : 'px'))
  31537. }),
  31538. n.push(HE(f)),
  31539. h != null && n.push('padding:' + ws(h).join('px ') + 'px'),
  31540. n.join(';') + ';'
  31541. )
  31542. }
  31543. function C1(r, t, e, n, i) {
  31544. var a = t && t.painter
  31545. if (e) {
  31546. var o = a && a.getViewportRoot()
  31547. o && Gx(r, o, document.body, n, i)
  31548. } else {
  31549. ;(r[0] = n), (r[1] = i)
  31550. var s = a && a.getViewportRootOffset()
  31551. s && ((r[0] += s.offsetLeft), (r[1] += s.offsetTop))
  31552. }
  31553. ;(r[2] = r[0] / t.getWidth()), (r[3] = r[1] / t.getHeight())
  31554. }
  31555. var UE = (function () {
  31556. function r(t, e, n) {
  31557. if (
  31558. ((this._show = !1),
  31559. (this._styleCoord = [0, 0, 0, 0]),
  31560. (this._enterable = !0),
  31561. (this._firstShow = !0),
  31562. (this._longHide = !0),
  31563. at.wxa)
  31564. )
  31565. return null
  31566. var i = document.createElement('div')
  31567. ;(i.domBelongToZr = !0), (this.el = i)
  31568. var a = (this._zr = e.getZr()),
  31569. o = (this._appendToBody = n && n.appendToBody)
  31570. C1(this._styleCoord, a, o, e.getWidth() / 2, e.getHeight() / 2),
  31571. o ? document.body.appendChild(i) : t.appendChild(i),
  31572. (this._container = t)
  31573. var s = this
  31574. ;(i.onmouseenter = function () {
  31575. s._enterable && (clearTimeout(s._hideTimeout), (s._show = !0)),
  31576. (s._inContent = !0)
  31577. }),
  31578. (i.onmousemove = function (l) {
  31579. if (((l = l || window.event), !s._enterable)) {
  31580. var u = a.handler,
  31581. f = a.painter.getViewportRoot()
  31582. he(f, l, !0), u.dispatch('mousemove', l)
  31583. }
  31584. }),
  31585. (i.onmouseleave = function () {
  31586. ;(s._inContent = !1),
  31587. s._enterable && s._show && s.hideLater(s._hideDelay)
  31588. })
  31589. }
  31590. return (
  31591. (r.prototype.update = function (t) {
  31592. var e = this._container,
  31593. n = BE(e, 'position'),
  31594. i = e.style
  31595. i.position !== 'absolute' &&
  31596. n !== 'absolute' &&
  31597. (i.position = 'relative')
  31598. var a = t.get('alwaysShowContent')
  31599. a && this._moveIfResized(),
  31600. (this.el.className = t.get('className') || '')
  31601. }),
  31602. (r.prototype.show = function (t, e) {
  31603. clearTimeout(this._hideTimeout), clearTimeout(this._longHideTimeout)
  31604. var n = this.el,
  31605. i = n.style,
  31606. a = this._styleCoord
  31607. n.innerHTML
  31608. ? (i.cssText =
  31609. FE +
  31610. WE(t, !this._firstShow, this._longHide) +
  31611. T1(a[0], a[1], !0) +
  31612. ('border-color:' + yn(e) + ';') +
  31613. (t.get('extraCssText') || '') +
  31614. (';pointer-events:' + (this._enterable ? 'auto' : 'none')))
  31615. : (i.display = 'none'),
  31616. (this._show = !0),
  31617. (this._firstShow = !1),
  31618. (this._longHide = !1)
  31619. }),
  31620. (r.prototype.setContent = function (t, e, n, i, a) {
  31621. var o = this.el
  31622. if (t == null) {
  31623. o.innerHTML = ''
  31624. return
  31625. }
  31626. var s = ''
  31627. if (
  31628. (W(a) && n.get('trigger') === 'item' && !S1(n) && (s = VE(n, i, a)),
  31629. W(t))
  31630. )
  31631. o.innerHTML = t + s
  31632. else if (t) {
  31633. ;(o.innerHTML = ''), z(t) || (t = [t])
  31634. for (var l = 0; l < t.length; l++)
  31635. Ri(t[l]) && t[l].parentNode !== o && o.appendChild(t[l])
  31636. if (s && o.childNodes.length) {
  31637. var u = document.createElement('div')
  31638. ;(u.innerHTML = s), o.appendChild(u)
  31639. }
  31640. }
  31641. }),
  31642. (r.prototype.setEnterable = function (t) {
  31643. this._enterable = t
  31644. }),
  31645. (r.prototype.getSize = function () {
  31646. var t = this.el
  31647. return [t.offsetWidth, t.offsetHeight]
  31648. }),
  31649. (r.prototype.moveTo = function (t, e) {
  31650. var n = this._styleCoord
  31651. if (
  31652. (C1(n, this._zr, this._appendToBody, t, e),
  31653. n[0] != null && n[1] != null)
  31654. ) {
  31655. var i = this.el.style,
  31656. a = T1(n[0], n[1])
  31657. A(a, function (o) {
  31658. i[o[0]] = o[1]
  31659. })
  31660. }
  31661. }),
  31662. (r.prototype._moveIfResized = function () {
  31663. var t = this._styleCoord[2],
  31664. e = this._styleCoord[3]
  31665. this.moveTo(t * this._zr.getWidth(), e * this._zr.getHeight())
  31666. }),
  31667. (r.prototype.hide = function () {
  31668. var t = this,
  31669. e = this.el.style
  31670. ;(e.visibility = 'hidden'),
  31671. (e.opacity = '0'),
  31672. at.transform3dSupported && (e.willChange = ''),
  31673. (this._show = !1),
  31674. (this._longHideTimeout = setTimeout(function () {
  31675. return (t._longHide = !0)
  31676. }, 500))
  31677. }),
  31678. (r.prototype.hideLater = function (t) {
  31679. this._show &&
  31680. !(this._inContent && this._enterable) &&
  31681. (t
  31682. ? ((this._hideDelay = t),
  31683. (this._show = !1),
  31684. (this._hideTimeout = setTimeout(X(this.hide, this), t)))
  31685. : this.hide())
  31686. }),
  31687. (r.prototype.isShow = function () {
  31688. return this._show
  31689. }),
  31690. (r.prototype.dispose = function () {
  31691. this.el.parentNode.removeChild(this.el)
  31692. }),
  31693. r
  31694. )
  31695. })(),
  31696. YE = UE,
  31697. ZE = (function () {
  31698. function r(t) {
  31699. ;(this._show = !1),
  31700. (this._styleCoord = [0, 0, 0, 0]),
  31701. (this._enterable = !0),
  31702. (this._zr = t.getZr()),
  31703. M1(this._styleCoord, this._zr, t.getWidth() / 2, t.getHeight() / 2)
  31704. }
  31705. return (
  31706. (r.prototype.update = function (t) {
  31707. var e = t.get('alwaysShowContent')
  31708. e && this._moveIfResized()
  31709. }),
  31710. (r.prototype.show = function () {
  31711. this._hideTimeout && clearTimeout(this._hideTimeout),
  31712. this.el.show(),
  31713. (this._show = !0)
  31714. }),
  31715. (r.prototype.setContent = function (t, e, n, i, a) {
  31716. var o = this
  31717. Y(t) && ut(''), this.el && this._zr.remove(this.el)
  31718. var s = n.getModel('textStyle')
  31719. ;(this.el = new Et({
  31720. style: {
  31721. rich: e.richTextStyles,
  31722. text: t,
  31723. lineHeight: 22,
  31724. borderWidth: 1,
  31725. borderColor: i,
  31726. textShadowColor: s.get('textShadowColor'),
  31727. fill: n.get(['textStyle', 'color']),
  31728. padding: hm(n, 'richText'),
  31729. verticalAlign: 'top',
  31730. align: 'left'
  31731. },
  31732. z: n.get('z')
  31733. })),
  31734. A(
  31735. [
  31736. 'backgroundColor',
  31737. 'borderRadius',
  31738. 'shadowColor',
  31739. 'shadowBlur',
  31740. 'shadowOffsetX',
  31741. 'shadowOffsetY'
  31742. ],
  31743. function (u) {
  31744. o.el.style[u] = n.get(u)
  31745. }
  31746. ),
  31747. A(
  31748. ['textShadowBlur', 'textShadowOffsetX', 'textShadowOffsetY'],
  31749. function (u) {
  31750. o.el.style[u] = s.get(u) || 0
  31751. }
  31752. ),
  31753. this._zr.add(this.el)
  31754. var l = this
  31755. this.el.on('mouseover', function () {
  31756. l._enterable && (clearTimeout(l._hideTimeout), (l._show = !0)),
  31757. (l._inContent = !0)
  31758. }),
  31759. this.el.on('mouseout', function () {
  31760. l._enterable && l._show && l.hideLater(l._hideDelay),
  31761. (l._inContent = !1)
  31762. })
  31763. }),
  31764. (r.prototype.setEnterable = function (t) {
  31765. this._enterable = t
  31766. }),
  31767. (r.prototype.getSize = function () {
  31768. var t = this.el,
  31769. e = this.el.getBoundingRect(),
  31770. n = A1(t.style)
  31771. return [e.width + n.left + n.right, e.height + n.top + n.bottom]
  31772. }),
  31773. (r.prototype.moveTo = function (t, e) {
  31774. var n = this.el
  31775. if (n) {
  31776. var i = this._styleCoord
  31777. M1(i, this._zr, t, e), (t = i[0]), (e = i[1])
  31778. var a = n.style,
  31779. o = Hr(a.borderWidth || 0),
  31780. s = A1(a)
  31781. ;(n.x = t + o + s.left), (n.y = e + o + s.top), n.markRedraw()
  31782. }
  31783. }),
  31784. (r.prototype._moveIfResized = function () {
  31785. var t = this._styleCoord[2],
  31786. e = this._styleCoord[3]
  31787. this.moveTo(t * this._zr.getWidth(), e * this._zr.getHeight())
  31788. }),
  31789. (r.prototype.hide = function () {
  31790. this.el && this.el.hide(), (this._show = !1)
  31791. }),
  31792. (r.prototype.hideLater = function (t) {
  31793. this._show &&
  31794. !(this._inContent && this._enterable) &&
  31795. (t
  31796. ? ((this._hideDelay = t),
  31797. (this._show = !1),
  31798. (this._hideTimeout = setTimeout(X(this.hide, this), t)))
  31799. : this.hide())
  31800. }),
  31801. (r.prototype.isShow = function () {
  31802. return this._show
  31803. }),
  31804. (r.prototype.dispose = function () {
  31805. this._zr.remove(this.el)
  31806. }),
  31807. r
  31808. )
  31809. })()
  31810. function Hr(r) {
  31811. return Math.max(0, r)
  31812. }
  31813. function A1(r) {
  31814. var t = Hr(r.shadowBlur || 0),
  31815. e = Hr(r.shadowOffsetX || 0),
  31816. n = Hr(r.shadowOffsetY || 0)
  31817. return {
  31818. left: Hr(t - e),
  31819. right: Hr(t + e),
  31820. top: Hr(t - n),
  31821. bottom: Hr(t + n)
  31822. }
  31823. }
  31824. function M1(r, t, e, n) {
  31825. ;(r[0] = e),
  31826. (r[1] = n),
  31827. (r[2] = r[0] / t.getWidth()),
  31828. (r[3] = r[1] / t.getHeight())
  31829. }
  31830. var $E = ZE,
  31831. XE = new St({ shape: { x: -1, y: -1, width: 2, height: 2 } }),
  31832. qE = (function (r) {
  31833. B(t, r)
  31834. function t() {
  31835. var e = (r !== null && r.apply(this, arguments)) || this
  31836. return (e.type = t.type), e
  31837. }
  31838. return (
  31839. (t.prototype.init = function (e, n) {
  31840. if (!(at.node || !n.getDom())) {
  31841. var i = e.getComponent('tooltip'),
  31842. a = (this._renderMode = mb(i.get('renderMode')))
  31843. this._tooltipContent =
  31844. a === 'richText'
  31845. ? new $E(n)
  31846. : new YE(n.getDom(), n, {
  31847. appendToBody: i.get('appendToBody', !0)
  31848. })
  31849. }
  31850. }),
  31851. (t.prototype.render = function (e, n, i) {
  31852. if (!(at.node || !i.getDom())) {
  31853. this.group.removeAll(),
  31854. (this._tooltipModel = e),
  31855. (this._ecModel = n),
  31856. (this._api = i),
  31857. (this._alwaysShowContent = e.get('alwaysShowContent'))
  31858. var a = this._tooltipContent
  31859. a.update(e),
  31860. a.setEnterable(e.get('enterable')),
  31861. this._initGlobalListener(),
  31862. this._keepShow(),
  31863. this._renderMode !== 'richText' && e.get('transitionDuration')
  31864. ? Os(this, '_updatePosition', 50, 'fixRate')
  31865. : ks(this, '_updatePosition')
  31866. }
  31867. }),
  31868. (t.prototype._initGlobalListener = function () {
  31869. var e = this._tooltipModel,
  31870. n = e.get('triggerOn')
  31871. $_(
  31872. 'itemTooltip',
  31873. this._api,
  31874. X(function (i, a, o) {
  31875. n !== 'none' &&
  31876. (n.indexOf(i) >= 0
  31877. ? this._tryShow(a, o)
  31878. : i === 'leave' && this._hide(o))
  31879. }, this)
  31880. )
  31881. }),
  31882. (t.prototype._keepShow = function () {
  31883. var e = this._tooltipModel,
  31884. n = this._ecModel,
  31885. i = this._api,
  31886. a = e.get('triggerOn')
  31887. if (
  31888. this._lastX != null &&
  31889. this._lastY != null &&
  31890. a !== 'none' &&
  31891. a !== 'click'
  31892. ) {
  31893. var o = this
  31894. clearTimeout(this._refreshUpdateTimeout),
  31895. (this._refreshUpdateTimeout = setTimeout(function () {
  31896. !i.isDisposed() &&
  31897. o.manuallyShowTip(e, n, i, {
  31898. x: o._lastX,
  31899. y: o._lastY,
  31900. dataByCoordSys: o._lastDataByCoordSys
  31901. })
  31902. }))
  31903. }
  31904. }),
  31905. (t.prototype.manuallyShowTip = function (e, n, i, a) {
  31906. if (!(a.from === this.uid || at.node || !i.getDom())) {
  31907. var o = D1(a, i)
  31908. this._ticket = ''
  31909. var s = a.dataByCoordSys,
  31910. l = jE(a, n, i)
  31911. if (l) {
  31912. var u = l.el.getBoundingRect().clone()
  31913. u.applyTransform(l.el.transform),
  31914. this._tryShow(
  31915. {
  31916. offsetX: u.x + u.width / 2,
  31917. offsetY: u.y + u.height / 2,
  31918. target: l.el,
  31919. position: a.position,
  31920. positionDefault: 'bottom'
  31921. },
  31922. o
  31923. )
  31924. } else if (a.tooltip && a.x != null && a.y != null) {
  31925. var f = XE
  31926. ;(f.x = a.x),
  31927. (f.y = a.y),
  31928. f.update(),
  31929. (ct(f).tooltipConfig = { name: null, option: a.tooltip }),
  31930. this._tryShow({ offsetX: a.x, offsetY: a.y, target: f }, o)
  31931. } else if (s)
  31932. this._tryShow(
  31933. {
  31934. offsetX: a.x,
  31935. offsetY: a.y,
  31936. position: a.position,
  31937. dataByCoordSys: s,
  31938. tooltipOption: a.tooltipOption
  31939. },
  31940. o
  31941. )
  31942. else if (a.seriesIndex != null) {
  31943. if (this._manuallyAxisShowTip(e, n, i, a)) return
  31944. var h = q_(a, n),
  31945. c = h.point[0],
  31946. v = h.point[1]
  31947. c != null &&
  31948. v != null &&
  31949. this._tryShow(
  31950. {
  31951. offsetX: c,
  31952. offsetY: v,
  31953. target: h.el,
  31954. position: a.position,
  31955. positionDefault: 'bottom'
  31956. },
  31957. o
  31958. )
  31959. } else
  31960. a.x != null &&
  31961. a.y != null &&
  31962. (i.dispatchAction({ type: 'updateAxisPointer', x: a.x, y: a.y }),
  31963. this._tryShow(
  31964. {
  31965. offsetX: a.x,
  31966. offsetY: a.y,
  31967. position: a.position,
  31968. target: i.getZr().findHover(a.x, a.y).target
  31969. },
  31970. o
  31971. ))
  31972. }
  31973. }),
  31974. (t.prototype.manuallyHideTip = function (e, n, i, a) {
  31975. var o = this._tooltipContent
  31976. !this._alwaysShowContent &&
  31977. this._tooltipModel &&
  31978. o.hideLater(this._tooltipModel.get('hideDelay')),
  31979. (this._lastX = this._lastY = this._lastDataByCoordSys = null),
  31980. a.from !== this.uid && this._hide(D1(a, i))
  31981. }),
  31982. (t.prototype._manuallyAxisShowTip = function (e, n, i, a) {
  31983. var o = a.seriesIndex,
  31984. s = a.dataIndex,
  31985. l = n.getComponent('axisPointer').coordSysAxesInfo
  31986. if (!(o == null || s == null || l == null)) {
  31987. var u = n.getSeriesByIndex(o)
  31988. if (!!u) {
  31989. var f = u.getData(),
  31990. h = Ka(
  31991. [f.getItemModel(s), u, (u.coordinateSystem || {}).model],
  31992. this._tooltipModel
  31993. )
  31994. if (h.get('trigger') === 'axis')
  31995. return (
  31996. i.dispatchAction({
  31997. type: 'updateAxisPointer',
  31998. seriesIndex: o,
  31999. dataIndex: s,
  32000. position: a.position
  32001. }),
  32002. !0
  32003. )
  32004. }
  32005. }
  32006. }),
  32007. (t.prototype._tryShow = function (e, n) {
  32008. var i = e.target,
  32009. a = this._tooltipModel
  32010. if (!!a) {
  32011. ;(this._lastX = e.offsetX), (this._lastY = e.offsetY)
  32012. var o = e.dataByCoordSys
  32013. if (o && o.length) this._showAxisTooltip(o, e)
  32014. else if (i) {
  32015. this._lastDataByCoordSys = null
  32016. var s, l
  32017. Ia(
  32018. i,
  32019. function (u) {
  32020. if (ct(u).dataIndex != null) return (s = u), !0
  32021. if (ct(u).tooltipConfig != null) return (l = u), !0
  32022. },
  32023. !0
  32024. ),
  32025. s
  32026. ? this._showSeriesItemTooltip(e, s, n)
  32027. : l
  32028. ? this._showComponentItemTooltip(e, l, n)
  32029. : this._hide(n)
  32030. } else (this._lastDataByCoordSys = null), this._hide(n)
  32031. }
  32032. }),
  32033. (t.prototype._showOrMove = function (e, n) {
  32034. var i = e.get('showDelay')
  32035. ;(n = X(n, this)),
  32036. clearTimeout(this._showTimout),
  32037. i > 0 ? (this._showTimout = setTimeout(n, i)) : n()
  32038. }),
  32039. (t.prototype._showAxisTooltip = function (e, n) {
  32040. var i = this._ecModel,
  32041. a = this._tooltipModel,
  32042. o = [n.offsetX, n.offsetY],
  32043. s = Ka([n.tooltipOption], a),
  32044. l = this._renderMode,
  32045. u = [],
  32046. f = Aa('section', { blocks: [], noHeader: !0 }),
  32047. h = [],
  32048. c = new Hf()
  32049. A(e, function (y) {
  32050. A(y.dataByAxis, function (_) {
  32051. var S = i.getComponent(_.axisDim + 'Axis', _.axisIndex),
  32052. w = _.value
  32053. if (!(!S || w == null)) {
  32054. var x = W_(w, S.axis, i, _.seriesDataIndices, _.valueLabelOpt),
  32055. b = Aa('section', {
  32056. header: x,
  32057. noHeader: !Ge(x),
  32058. sortBlocks: !0,
  32059. blocks: []
  32060. })
  32061. f.blocks.push(b),
  32062. A(_.seriesDataIndices, function (T) {
  32063. var C = i.getSeriesByIndex(T.seriesIndex),
  32064. M = T.dataIndexInside,
  32065. D = C.getDataParams(M)
  32066. if (!(D.dataIndex < 0)) {
  32067. ;(D.axisDim = _.axisDim),
  32068. (D.axisIndex = _.axisIndex),
  32069. (D.axisType = _.axisType),
  32070. (D.axisId = _.axisId),
  32071. (D.axisValue = Th(S.axis, { value: w })),
  32072. (D.axisValueLabel = x),
  32073. (D.marker = c.makeTooltipMarker('item', yn(D.color), l))
  32074. var I = Zg(C.formatTooltip(M, !0, null)),
  32075. L = I.frag
  32076. if (L) {
  32077. var P = Ka([C], a).get('valueFormatter')
  32078. b.blocks.push(P ? N({ valueFormatter: P }, L) : L)
  32079. }
  32080. I.text && h.push(I.text), u.push(D)
  32081. }
  32082. })
  32083. }
  32084. })
  32085. }),
  32086. f.blocks.reverse(),
  32087. h.reverse()
  32088. var v = n.position,
  32089. d = s.get('order'),
  32090. p = um(f, c, l, d, i.get('useUTC'), s.get('textStyle'))
  32091. p && h.unshift(p)
  32092. var g =
  32093. l === 'richText'
  32094. ? `
  32095. `
  32096. : '<br/>',
  32097. m = h.join(g)
  32098. this._showOrMove(s, function () {
  32099. this._updateContentNotChangedOnAxis(e, u)
  32100. ? this._updatePosition(s, v, o[0], o[1], this._tooltipContent, u)
  32101. : this._showTooltipContent(
  32102. s,
  32103. m,
  32104. u,
  32105. Math.random() + '',
  32106. o[0],
  32107. o[1],
  32108. v,
  32109. null,
  32110. c
  32111. )
  32112. })
  32113. }),
  32114. (t.prototype._showSeriesItemTooltip = function (e, n, i) {
  32115. var a = this._ecModel,
  32116. o = ct(n),
  32117. s = o.seriesIndex,
  32118. l = a.getSeriesByIndex(s),
  32119. u = o.dataModel || l,
  32120. f = o.dataIndex,
  32121. h = o.dataType,
  32122. c = u.getData(h),
  32123. v = this._renderMode,
  32124. d = e.positionDefault,
  32125. p = Ka(
  32126. [c.getItemModel(f), u, l && (l.coordinateSystem || {}).model],
  32127. this._tooltipModel,
  32128. d ? { position: d } : null
  32129. ),
  32130. g = p.get('trigger')
  32131. if (!(g != null && g !== 'item')) {
  32132. var m = u.getDataParams(f, h),
  32133. y = new Hf()
  32134. m.marker = y.makeTooltipMarker('item', yn(m.color), v)
  32135. var _ = Zg(u.formatTooltip(f, !1, h)),
  32136. S = p.get('order'),
  32137. w = p.get('valueFormatter'),
  32138. x = _.frag,
  32139. b = x
  32140. ? um(
  32141. w ? N({ valueFormatter: w }, x) : x,
  32142. y,
  32143. v,
  32144. S,
  32145. a.get('useUTC'),
  32146. p.get('textStyle')
  32147. )
  32148. : _.text,
  32149. T = 'item_' + u.name + '_' + f
  32150. this._showOrMove(p, function () {
  32151. this._showTooltipContent(
  32152. p,
  32153. b,
  32154. m,
  32155. T,
  32156. e.offsetX,
  32157. e.offsetY,
  32158. e.position,
  32159. e.target,
  32160. y
  32161. )
  32162. }),
  32163. i({
  32164. type: 'showTip',
  32165. dataIndexInside: f,
  32166. dataIndex: c.getRawIndex(f),
  32167. seriesIndex: s,
  32168. from: this.uid
  32169. })
  32170. }
  32171. }),
  32172. (t.prototype._showComponentItemTooltip = function (e, n, i) {
  32173. var a = ct(n),
  32174. o = a.tooltipConfig,
  32175. s = o.option || {}
  32176. if (W(s)) {
  32177. var l = s
  32178. s = { content: l, formatter: l }
  32179. }
  32180. var u = [s],
  32181. f = this._ecModel.getComponent(a.componentMainType, a.componentIndex)
  32182. f && u.push(f), u.push({ formatter: s.content })
  32183. var h = e.positionDefault,
  32184. c = Ka(u, this._tooltipModel, h ? { position: h } : null),
  32185. v = c.get('content'),
  32186. d = Math.random() + '',
  32187. p = new Hf()
  32188. this._showOrMove(c, function () {
  32189. var g = tt(c.get('formatterParams') || {})
  32190. this._showTooltipContent(
  32191. c,
  32192. v,
  32193. g,
  32194. d,
  32195. e.offsetX,
  32196. e.offsetY,
  32197. e.position,
  32198. n,
  32199. p
  32200. )
  32201. }),
  32202. i({ type: 'showTip', from: this.uid })
  32203. }),
  32204. (t.prototype._showTooltipContent = function (e, n, i, a, o, s, l, u, f) {
  32205. if (((this._ticket = ''), !(!e.get('showContent') || !e.get('show')))) {
  32206. var h = this._tooltipContent
  32207. h.setEnterable(e.get('enterable'))
  32208. var c = e.get('formatter')
  32209. l = l || e.get('position')
  32210. var v = n,
  32211. d = this._getNearestPoint(
  32212. [o, s],
  32213. i,
  32214. e.get('trigger'),
  32215. e.get('borderColor')
  32216. ),
  32217. p = d.color
  32218. if (c)
  32219. if (W(c)) {
  32220. var g = e.ecModel.get('useUTC'),
  32221. m = z(i) ? i[0] : i,
  32222. y = m && m.axisType && m.axisType.indexOf('time') >= 0
  32223. ;(v = c), y && (v = ms(m.axisValue, v, g)), (v = fg(v, i, !0))
  32224. } else if (Q(c)) {
  32225. var _ = X(function (S, w) {
  32226. S === this._ticket &&
  32227. (h.setContent(w, f, e, p, l),
  32228. this._updatePosition(e, l, o, s, h, i, u))
  32229. }, this)
  32230. ;(this._ticket = a), (v = c(i, a, _))
  32231. } else v = c
  32232. h.setContent(v, f, e, p, l),
  32233. h.show(e, p),
  32234. this._updatePosition(e, l, o, s, h, i, u)
  32235. }
  32236. }),
  32237. (t.prototype._getNearestPoint = function (e, n, i, a) {
  32238. if (i === 'axis' || z(n))
  32239. return { color: a || (this._renderMode === 'html' ? '#fff' : 'none') }
  32240. if (!z(n)) return { color: a || n.color || n.borderColor }
  32241. }),
  32242. (t.prototype._updatePosition = function (e, n, i, a, o, s, l) {
  32243. var u = this._api.getWidth(),
  32244. f = this._api.getHeight()
  32245. n = n || e.get('position')
  32246. var h = o.getSize(),
  32247. c = e.get('align'),
  32248. v = e.get('verticalAlign'),
  32249. d = l && l.getBoundingRect().clone()
  32250. if (
  32251. (l && d.applyTransform(l.transform),
  32252. Q(n) &&
  32253. (n = n([i, a], s, o.el, d, {
  32254. viewSize: [u, f],
  32255. contentSize: h.slice()
  32256. })),
  32257. z(n))
  32258. )
  32259. (i = yt(n[0], u)), (a = yt(n[1], f))
  32260. else if (Y(n)) {
  32261. var p = n
  32262. ;(p.width = h[0]), (p.height = h[1])
  32263. var g = cr(p, { width: u, height: f })
  32264. ;(i = g.x), (a = g.y), (c = null), (v = null)
  32265. } else if (W(n) && l) {
  32266. var m = JE(n, d, h, e.get('borderWidth'))
  32267. ;(i = m[0]), (a = m[1])
  32268. } else {
  32269. var m = KE(i, a, o, u, f, c ? null : 20, v ? null : 20)
  32270. ;(i = m[0]), (a = m[1])
  32271. }
  32272. if (
  32273. (c && (i -= I1(c) ? h[0] / 2 : c === 'right' ? h[0] : 0),
  32274. v && (a -= I1(v) ? h[1] / 2 : v === 'bottom' ? h[1] : 0),
  32275. S1(e))
  32276. ) {
  32277. var m = QE(i, a, o, u, f)
  32278. ;(i = m[0]), (a = m[1])
  32279. }
  32280. o.moveTo(i, a)
  32281. }),
  32282. (t.prototype._updateContentNotChangedOnAxis = function (e, n) {
  32283. var i = this._lastDataByCoordSys,
  32284. a = this._cbParamsList,
  32285. o = !!i && i.length === e.length
  32286. return (
  32287. o &&
  32288. A(i, function (s, l) {
  32289. var u = s.dataByAxis || [],
  32290. f = e[l] || {},
  32291. h = f.dataByAxis || []
  32292. ;(o = o && u.length === h.length),
  32293. o &&
  32294. A(u, function (c, v) {
  32295. var d = h[v] || {},
  32296. p = c.seriesDataIndices || [],
  32297. g = d.seriesDataIndices || []
  32298. ;(o =
  32299. o &&
  32300. c.value === d.value &&
  32301. c.axisType === d.axisType &&
  32302. c.axisId === d.axisId &&
  32303. p.length === g.length),
  32304. o &&
  32305. A(p, function (m, y) {
  32306. var _ = g[y]
  32307. o =
  32308. o &&
  32309. m.seriesIndex === _.seriesIndex &&
  32310. m.dataIndex === _.dataIndex
  32311. }),
  32312. a &&
  32313. A(c.seriesDataIndices, function (m) {
  32314. var y = m.seriesIndex,
  32315. _ = n[y],
  32316. S = a[y]
  32317. _ && S && S.data !== _.data && (o = !1)
  32318. })
  32319. })
  32320. }),
  32321. (this._lastDataByCoordSys = e),
  32322. (this._cbParamsList = n),
  32323. !!o
  32324. )
  32325. }),
  32326. (t.prototype._hide = function (e) {
  32327. ;(this._lastDataByCoordSys = null),
  32328. e({ type: 'hideTip', from: this.uid })
  32329. }),
  32330. (t.prototype.dispose = function (e, n) {
  32331. at.node ||
  32332. !n.getDom() ||
  32333. (ks(this, '_updatePosition'),
  32334. this._tooltipContent.dispose(),
  32335. uv('itemTooltip', n))
  32336. }),
  32337. (t.type = 'tooltip'),
  32338. t
  32339. )
  32340. })(xe)
  32341. function Ka(r, t, e) {
  32342. var n = t.ecModel,
  32343. i
  32344. e ? ((i = new Nt(e, n, n)), (i = new Nt(t.option, i, n))) : (i = t)
  32345. for (var a = r.length - 1; a >= 0; a--) {
  32346. var o = r[a]
  32347. o &&
  32348. (o instanceof Nt && (o = o.get('tooltip', !0)),
  32349. W(o) && (o = { formatter: o }),
  32350. o && (i = new Nt(o, i, n)))
  32351. }
  32352. return i
  32353. }
  32354. function D1(r, t) {
  32355. return r.dispatchAction || X(t.dispatchAction, t)
  32356. }
  32357. function KE(r, t, e, n, i, a, o) {
  32358. var s = e.getSize(),
  32359. l = s[0],
  32360. u = s[1]
  32361. return (
  32362. a != null && (r + l + a + 2 > n ? (r -= l + a) : (r += a)),
  32363. o != null && (t + u + o > i ? (t -= u + o) : (t += o)),
  32364. [r, t]
  32365. )
  32366. }
  32367. function QE(r, t, e, n, i) {
  32368. var a = e.getSize(),
  32369. o = a[0],
  32370. s = a[1]
  32371. return (
  32372. (r = Math.min(r + o, n) - o),
  32373. (t = Math.min(t + s, i) - s),
  32374. (r = Math.max(r, 0)),
  32375. (t = Math.max(t, 0)),
  32376. [r, t]
  32377. )
  32378. }
  32379. function JE(r, t, e, n) {
  32380. var i = e[0],
  32381. a = e[1],
  32382. o = Math.ceil(Math.SQRT2 * n) + 8,
  32383. s = 0,
  32384. l = 0,
  32385. u = t.width,
  32386. f = t.height
  32387. switch (r) {
  32388. case 'inside':
  32389. ;(s = t.x + u / 2 - i / 2), (l = t.y + f / 2 - a / 2)
  32390. break
  32391. case 'top':
  32392. ;(s = t.x + u / 2 - i / 2), (l = t.y - a - o)
  32393. break
  32394. case 'bottom':
  32395. ;(s = t.x + u / 2 - i / 2), (l = t.y + f + o)
  32396. break
  32397. case 'left':
  32398. ;(s = t.x - i - o), (l = t.y + f / 2 - a / 2)
  32399. break
  32400. case 'right':
  32401. ;(s = t.x + u + o), (l = t.y + f / 2 - a / 2)
  32402. }
  32403. return [s, l]
  32404. }
  32405. function I1(r) {
  32406. return r === 'center' || r === 'middle'
  32407. }
  32408. function jE(r, t, e) {
  32409. var n = Mu(r).queryOptionMap,
  32410. i = n.keys()[0]
  32411. if (!(!i || i === 'series')) {
  32412. var a = ji(t, i, n.get(i), {
  32413. useDefault: !1,
  32414. enableAll: !1,
  32415. enableNone: !1
  32416. }),
  32417. o = a.models[0]
  32418. if (!!o) {
  32419. var s = e.getViewOfComponentModel(o),
  32420. l
  32421. if (
  32422. (s.group.traverse(function (u) {
  32423. var f = ct(u).tooltipConfig
  32424. if (f && f.name === r.name) return (l = u), !0
  32425. }),
  32426. l)
  32427. )
  32428. return { componentMainType: i, componentIndex: o.componentIndex, el: l }
  32429. }
  32430. }
  32431. }
  32432. var tO = qE
  32433. function eO(r) {
  32434. Re(j_),
  32435. r.registerComponentModel(OE),
  32436. r.registerComponentView(tO),
  32437. r.registerAction(
  32438. { type: 'showTip', event: 'showTip', update: 'tooltip:manuallyShowTip' },
  32439. $t
  32440. ),
  32441. r.registerAction(
  32442. { type: 'hideTip', event: 'hideTip', update: 'tooltip:manuallyHideTip' },
  32443. $t
  32444. )
  32445. }
  32446. var rO = (function (r) {
  32447. B(t, r)
  32448. function t() {
  32449. var e = (r !== null && r.apply(this, arguments)) || this
  32450. return (
  32451. (e.type = t.type), (e.layoutMode = { type: 'box', ignoreSize: !0 }), e
  32452. )
  32453. }
  32454. return (
  32455. (t.type = 'title'),
  32456. (t.defaultOption = {
  32457. z: 6,
  32458. show: !0,
  32459. text: '',
  32460. target: 'blank',
  32461. subtext: '',
  32462. subtarget: 'blank',
  32463. left: 0,
  32464. top: 0,
  32465. backgroundColor: 'rgba(0,0,0,0)',
  32466. borderColor: '#ccc',
  32467. borderWidth: 0,
  32468. padding: 5,
  32469. itemGap: 10,
  32470. textStyle: { fontSize: 18, fontWeight: 'bold', color: '#464646' },
  32471. subtextStyle: { fontSize: 12, color: '#6E7079' }
  32472. }),
  32473. t
  32474. )
  32475. })(_t),
  32476. nO = (function (r) {
  32477. B(t, r)
  32478. function t() {
  32479. var e = (r !== null && r.apply(this, arguments)) || this
  32480. return (e.type = t.type), e
  32481. }
  32482. return (
  32483. (t.prototype.render = function (e, n, i) {
  32484. if ((this.group.removeAll(), !!e.get('show'))) {
  32485. var a = this.group,
  32486. o = e.getModel('textStyle'),
  32487. s = e.getModel('subtextStyle'),
  32488. l = e.get('textAlign'),
  32489. u = ht(e.get('textBaseline'), e.get('textVerticalAlign')),
  32490. f = new Et({
  32491. style: vr(
  32492. o,
  32493. { text: e.get('text'), fill: o.getTextColor() },
  32494. { disableBox: !0 }
  32495. ),
  32496. z2: 10
  32497. }),
  32498. h = f.getBoundingRect(),
  32499. c = e.get('subtext'),
  32500. v = new Et({
  32501. style: vr(
  32502. s,
  32503. {
  32504. text: c,
  32505. fill: s.getTextColor(),
  32506. y: h.height + e.get('itemGap'),
  32507. verticalAlign: 'top'
  32508. },
  32509. { disableBox: !0 }
  32510. ),
  32511. z2: 10
  32512. }),
  32513. d = e.get('link'),
  32514. p = e.get('sublink'),
  32515. g = e.get('triggerEvent', !0)
  32516. ;(f.silent = !d && !g),
  32517. (v.silent = !p && !g),
  32518. d &&
  32519. f.on('click', function () {
  32520. hg(d, '_' + e.get('target'))
  32521. }),
  32522. p &&
  32523. v.on('click', function () {
  32524. hg(p, '_' + e.get('subtarget'))
  32525. }),
  32526. (ct(f).eventData = ct(v).eventData =
  32527. g
  32528. ? { componentType: 'title', componentIndex: e.componentIndex }
  32529. : null),
  32530. a.add(f),
  32531. c && a.add(v)
  32532. var m = a.getBoundingRect(),
  32533. y = e.getBoxLayoutParams()
  32534. ;(y.width = m.width), (y.height = m.height)
  32535. var _ = cr(
  32536. y,
  32537. { width: i.getWidth(), height: i.getHeight() },
  32538. e.get('padding')
  32539. )
  32540. l ||
  32541. ((l = e.get('left') || e.get('right')),
  32542. l === 'middle' && (l = 'center'),
  32543. l === 'right'
  32544. ? (_.x += _.width)
  32545. : l === 'center' && (_.x += _.width / 2)),
  32546. u ||
  32547. ((u = e.get('top') || e.get('bottom')),
  32548. u === 'center' && (u = 'middle'),
  32549. u === 'bottom'
  32550. ? (_.y += _.height)
  32551. : u === 'middle' && (_.y += _.height / 2),
  32552. (u = u || 'top')),
  32553. (a.x = _.x),
  32554. (a.y = _.y),
  32555. a.markRedraw()
  32556. var S = { align: l, verticalAlign: u }
  32557. f.setStyle(S), v.setStyle(S), (m = a.getBoundingRect())
  32558. var w = _.margin,
  32559. x = e.getItemStyle(['color', 'opacity'])
  32560. x.fill = e.get('backgroundColor')
  32561. var b = new St({
  32562. shape: {
  32563. x: m.x - w[3],
  32564. y: m.y - w[0],
  32565. width: m.width + w[1] + w[3],
  32566. height: m.height + w[0] + w[2],
  32567. r: e.get('borderRadius')
  32568. },
  32569. style: x,
  32570. subPixelOptimize: !0,
  32571. silent: !0
  32572. })
  32573. a.add(b)
  32574. }
  32575. }),
  32576. (t.type = 'title'),
  32577. t
  32578. )
  32579. })(xe)
  32580. function iO(r) {
  32581. r.registerComponentModel(rO), r.registerComponentView(nO)
  32582. }
  32583. var aO = function (r, t) {
  32584. if (t === 'all')
  32585. return {
  32586. type: 'all',
  32587. title: r.getLocaleModel().get(['legend', 'selector', 'all'])
  32588. }
  32589. if (t === 'inverse')
  32590. return {
  32591. type: 'inverse',
  32592. title: r.getLocaleModel().get(['legend', 'selector', 'inverse'])
  32593. }
  32594. },
  32595. oO = (function (r) {
  32596. B(t, r)
  32597. function t() {
  32598. var e = (r !== null && r.apply(this, arguments)) || this
  32599. return (
  32600. (e.type = t.type), (e.layoutMode = { type: 'box', ignoreSize: !0 }), e
  32601. )
  32602. }
  32603. return (
  32604. (t.prototype.init = function (e, n, i) {
  32605. this.mergeDefaultAndTheme(e, i),
  32606. (e.selected = e.selected || {}),
  32607. this._updateSelector(e)
  32608. }),
  32609. (t.prototype.mergeOption = function (e, n) {
  32610. r.prototype.mergeOption.call(this, e, n), this._updateSelector(e)
  32611. }),
  32612. (t.prototype._updateSelector = function (e) {
  32613. var n = e.selector,
  32614. i = this.ecModel
  32615. n === !0 && (n = e.selector = ['all', 'inverse']),
  32616. z(n) &&
  32617. A(n, function (a, o) {
  32618. W(a) && (a = { type: a }), (n[o] = nt(a, aO(i, a.type)))
  32619. })
  32620. }),
  32621. (t.prototype.optionUpdated = function () {
  32622. this._updateData(this.ecModel)
  32623. var e = this._data
  32624. if (e[0] && this.get('selectedMode') === 'single') {
  32625. for (var n = !1, i = 0; i < e.length; i++) {
  32626. var a = e[i].get('name')
  32627. if (this.isSelected(a)) {
  32628. this.select(a), (n = !0)
  32629. break
  32630. }
  32631. }
  32632. !n && this.select(e[0].get('name'))
  32633. }
  32634. }),
  32635. (t.prototype._updateData = function (e) {
  32636. var n = [],
  32637. i = []
  32638. e.eachRawSeries(function (s) {
  32639. var l = s.name
  32640. i.push(l)
  32641. var u
  32642. if (s.legendVisualProvider) {
  32643. var f = s.legendVisualProvider,
  32644. h = f.getAllNames()
  32645. e.isSeriesFiltered(s) || (i = i.concat(h)),
  32646. h.length ? (n = n.concat(h)) : (u = !0)
  32647. } else u = !0
  32648. u && Au(s) && n.push(s.name)
  32649. }),
  32650. (this._availableNames = i)
  32651. var a = this.get('data') || n,
  32652. o = G(
  32653. a,
  32654. function (s) {
  32655. return (
  32656. (W(s) || dt(s)) && (s = { name: s }),
  32657. new Nt(s, this, this.ecModel)
  32658. )
  32659. },
  32660. this
  32661. )
  32662. this._data = o
  32663. }),
  32664. (t.prototype.getData = function () {
  32665. return this._data
  32666. }),
  32667. (t.prototype.select = function (e) {
  32668. var n = this.option.selected,
  32669. i = this.get('selectedMode')
  32670. if (i === 'single') {
  32671. var a = this._data
  32672. A(a, function (o) {
  32673. n[o.get('name')] = !1
  32674. })
  32675. }
  32676. n[e] = !0
  32677. }),
  32678. (t.prototype.unSelect = function (e) {
  32679. this.get('selectedMode') !== 'single' && (this.option.selected[e] = !1)
  32680. }),
  32681. (t.prototype.toggleSelected = function (e) {
  32682. var n = this.option.selected
  32683. n.hasOwnProperty(e) || (n[e] = !0),
  32684. this[n[e] ? 'unSelect' : 'select'](e)
  32685. }),
  32686. (t.prototype.allSelect = function () {
  32687. var e = this._data,
  32688. n = this.option.selected
  32689. A(e, function (i) {
  32690. n[i.get('name', !0)] = !0
  32691. })
  32692. }),
  32693. (t.prototype.inverseSelect = function () {
  32694. var e = this._data,
  32695. n = this.option.selected
  32696. A(e, function (i) {
  32697. var a = i.get('name', !0)
  32698. n.hasOwnProperty(a) || (n[a] = !0), (n[a] = !n[a])
  32699. })
  32700. }),
  32701. (t.prototype.isSelected = function (e) {
  32702. var n = this.option.selected
  32703. return (
  32704. !(n.hasOwnProperty(e) && !n[e]) && ot(this._availableNames, e) >= 0
  32705. )
  32706. }),
  32707. (t.prototype.getOrient = function () {
  32708. return this.get('orient') === 'vertical'
  32709. ? { index: 1, name: 'vertical' }
  32710. : { index: 0, name: 'horizontal' }
  32711. }),
  32712. (t.type = 'legend.plain'),
  32713. (t.dependencies = ['series']),
  32714. (t.defaultOption = {
  32715. z: 4,
  32716. show: !0,
  32717. orient: 'horizontal',
  32718. left: 'center',
  32719. top: 0,
  32720. align: 'auto',
  32721. backgroundColor: 'rgba(0,0,0,0)',
  32722. borderColor: '#ccc',
  32723. borderRadius: 0,
  32724. borderWidth: 0,
  32725. padding: 5,
  32726. itemGap: 10,
  32727. itemWidth: 25,
  32728. itemHeight: 14,
  32729. symbolRotate: 'inherit',
  32730. symbolKeepAspect: !0,
  32731. inactiveColor: '#ccc',
  32732. inactiveBorderColor: '#ccc',
  32733. inactiveBorderWidth: 'auto',
  32734. itemStyle: {
  32735. color: 'inherit',
  32736. opacity: 'inherit',
  32737. borderColor: 'inherit',
  32738. borderWidth: 'auto',
  32739. borderCap: 'inherit',
  32740. borderJoin: 'inherit',
  32741. borderDashOffset: 'inherit',
  32742. borderMiterLimit: 'inherit'
  32743. },
  32744. lineStyle: {
  32745. width: 'auto',
  32746. color: 'inherit',
  32747. inactiveColor: '#ccc',
  32748. inactiveWidth: 2,
  32749. opacity: 'inherit',
  32750. type: 'inherit',
  32751. cap: 'inherit',
  32752. join: 'inherit',
  32753. dashOffset: 'inherit',
  32754. miterLimit: 'inherit'
  32755. },
  32756. textStyle: { color: '#333' },
  32757. selectedMode: !0,
  32758. selector: !1,
  32759. selectorLabel: {
  32760. show: !0,
  32761. borderRadius: 10,
  32762. padding: [3, 5, 3, 5],
  32763. fontSize: 12,
  32764. fontFamily: 'sans-serif',
  32765. color: '#666',
  32766. borderWidth: 1,
  32767. borderColor: '#666'
  32768. },
  32769. emphasis: {
  32770. selectorLabel: { show: !0, color: '#eee', backgroundColor: '#666' }
  32771. },
  32772. selectorPosition: 'auto',
  32773. selectorItemGap: 7,
  32774. selectorButtonGap: 10,
  32775. tooltip: { show: !1 }
  32776. }),
  32777. t
  32778. )
  32779. })(_t),
  32780. Sv = oO,
  32781. Ci = lt,
  32782. xv = A,
  32783. _l = At,
  32784. sO = (function (r) {
  32785. B(t, r)
  32786. function t() {
  32787. var e = (r !== null && r.apply(this, arguments)) || this
  32788. return (e.type = t.type), (e.newlineDisabled = !1), e
  32789. }
  32790. return (
  32791. (t.prototype.init = function () {
  32792. this.group.add((this._contentGroup = new _l())),
  32793. this.group.add((this._selectorGroup = new _l())),
  32794. (this._isFirstRender = !0)
  32795. }),
  32796. (t.prototype.getContentGroup = function () {
  32797. return this._contentGroup
  32798. }),
  32799. (t.prototype.getSelectorGroup = function () {
  32800. return this._selectorGroup
  32801. }),
  32802. (t.prototype.render = function (e, n, i) {
  32803. var a = this._isFirstRender
  32804. if (
  32805. ((this._isFirstRender = !1), this.resetInner(), !!e.get('show', !0))
  32806. ) {
  32807. var o = e.get('align'),
  32808. s = e.get('orient')
  32809. ;(!o || o === 'auto') &&
  32810. (o =
  32811. e.get('left') === 'right' && s === 'vertical' ? 'right' : 'left')
  32812. var l = e.get('selector', !0),
  32813. u = e.get('selectorPosition', !0)
  32814. l &&
  32815. (!u || u === 'auto') &&
  32816. (u = s === 'horizontal' ? 'end' : 'start'),
  32817. this.renderInner(o, e, n, i, l, s, u)
  32818. var f = e.getBoxLayoutParams(),
  32819. h = { width: i.getWidth(), height: i.getHeight() },
  32820. c = e.get('padding'),
  32821. v = cr(f, h, c),
  32822. d = this.layoutInner(e, o, v, a, l, u),
  32823. p = cr(j({ width: d.width, height: d.height }, f), h, c)
  32824. ;(this.group.x = p.x - d.x),
  32825. (this.group.y = p.y - d.y),
  32826. this.group.markRedraw(),
  32827. this.group.add((this._backgroundEl = s1(d, e)))
  32828. }
  32829. }),
  32830. (t.prototype.resetInner = function () {
  32831. this.getContentGroup().removeAll(),
  32832. this._backgroundEl && this.group.remove(this._backgroundEl),
  32833. this.getSelectorGroup().removeAll()
  32834. }),
  32835. (t.prototype.renderInner = function (e, n, i, a, o, s, l) {
  32836. var u = this.getContentGroup(),
  32837. f = q(),
  32838. h = n.get('selectedMode'),
  32839. c = []
  32840. i.eachRawSeries(function (v) {
  32841. !v.get('legendHoverLink') && c.push(v.id)
  32842. }),
  32843. xv(
  32844. n.getData(),
  32845. function (v, d) {
  32846. var p = v.get('name')
  32847. if (
  32848. !this.newlineDisabled &&
  32849. (p === '' ||
  32850. p ===
  32851. `
  32852. `)
  32853. ) {
  32854. var g = new _l()
  32855. ;(g.newline = !0), u.add(g)
  32856. return
  32857. }
  32858. var m = i.getSeriesByName(p)[0]
  32859. if (!f.get(p))
  32860. if (m) {
  32861. var y = m.getData(),
  32862. _ = y.getVisual('legendLineStyle') || {},
  32863. S = y.getVisual('legendIcon'),
  32864. w = y.getVisual('style'),
  32865. x = this._createItem(m, p, d, v, n, e, _, w, S, h, a)
  32866. x
  32867. .on('click', Ci(L1, p, null, a, c))
  32868. .on('mouseover', Ci(wv, m.name, null, a, c))
  32869. .on('mouseout', Ci(bv, m.name, null, a, c)),
  32870. f.set(p, !0)
  32871. } else
  32872. i.eachRawSeries(function (b) {
  32873. if (!f.get(p) && b.legendVisualProvider) {
  32874. var T = b.legendVisualProvider
  32875. if (!T.containName(p)) return
  32876. var C = T.indexOfName(p),
  32877. M = T.getItemVisual(C, 'style'),
  32878. D = T.getItemVisual(C, 'legendIcon'),
  32879. I = ir(M.fill)
  32880. I &&
  32881. I[3] === 0 &&
  32882. ((I[3] = 0.2),
  32883. (M = N(N({}, M), { fill: So(I, 'rgba') })))
  32884. var L = this._createItem(b, p, d, v, n, e, {}, M, D, h, a)
  32885. L.on('click', Ci(L1, null, p, a, c))
  32886. .on('mouseover', Ci(wv, null, p, a, c))
  32887. .on('mouseout', Ci(bv, null, p, a, c)),
  32888. f.set(p, !0)
  32889. }
  32890. }, this)
  32891. },
  32892. this
  32893. ),
  32894. o && this._createSelector(o, n, a, s, l)
  32895. }),
  32896. (t.prototype._createSelector = function (e, n, i, a, o) {
  32897. var s = this.getSelectorGroup()
  32898. xv(e, function (u) {
  32899. var f = u.type,
  32900. h = new Et({
  32901. style: { x: 0, y: 0, align: 'center', verticalAlign: 'middle' },
  32902. onclick: function () {
  32903. i.dispatchAction({
  32904. type: f === 'all' ? 'legendAllSelect' : 'legendInverseSelect'
  32905. })
  32906. }
  32907. })
  32908. s.add(h)
  32909. var c = n.getModel('selectorLabel'),
  32910. v = n.getModel(['emphasis', 'selectorLabel'])
  32911. ha(h, { normal: c, emphasis: v }, { defaultText: u.title }), qo(h)
  32912. })
  32913. }),
  32914. (t.prototype._createItem = function (e, n, i, a, o, s, l, u, f, h, c) {
  32915. var v = e.visualDrawType,
  32916. d = o.get('itemWidth'),
  32917. p = o.get('itemHeight'),
  32918. g = o.isSelected(n),
  32919. m = a.get('symbolRotate'),
  32920. y = a.get('symbolKeepAspect'),
  32921. _ = a.get('icon')
  32922. f = _ || f || 'roundRect'
  32923. var S = lO(f, a, l, u, v, g, c),
  32924. w = new _l(),
  32925. x = a.getModel('textStyle')
  32926. if (Q(e.getLegendIcon) && (!_ || _ === 'inherit'))
  32927. w.add(
  32928. e.getLegendIcon({
  32929. itemWidth: d,
  32930. itemHeight: p,
  32931. icon: f,
  32932. iconRotate: m,
  32933. itemStyle: S.itemStyle,
  32934. lineStyle: S.lineStyle,
  32935. symbolKeepAspect: y
  32936. })
  32937. )
  32938. else {
  32939. var b =
  32940. _ === 'inherit' && e.getData().getVisual('symbol')
  32941. ? m === 'inherit'
  32942. ? e.getData().getVisual('symbolRotate')
  32943. : m
  32944. : 0
  32945. w.add(
  32946. uO({
  32947. itemWidth: d,
  32948. itemHeight: p,
  32949. icon: f,
  32950. iconRotate: b,
  32951. itemStyle: S.itemStyle,
  32952. lineStyle: S.lineStyle,
  32953. symbolKeepAspect: y
  32954. })
  32955. )
  32956. }
  32957. var T = s === 'left' ? d + 5 : -5,
  32958. C = s,
  32959. M = o.get('formatter'),
  32960. D = n
  32961. W(M) && M
  32962. ? (D = M.replace('{name}', n != null ? n : ''))
  32963. : Q(M) && (D = M(n))
  32964. var I = a.get('inactiveColor')
  32965. w.add(
  32966. new Et({
  32967. style: vr(x, {
  32968. text: D,
  32969. x: T,
  32970. y: p / 2,
  32971. fill: g ? x.getTextColor() : I,
  32972. align: C,
  32973. verticalAlign: 'middle'
  32974. })
  32975. })
  32976. )
  32977. var L = new St({ shape: w.getBoundingRect(), invisible: !0 }),
  32978. P = a.getModel('tooltip')
  32979. return (
  32980. P.get('show') &&
  32981. fs({
  32982. el: L,
  32983. componentModel: o,
  32984. itemName: n,
  32985. itemTooltipOption: P.option
  32986. }),
  32987. w.add(L),
  32988. w.eachChild(function (R) {
  32989. R.silent = !0
  32990. }),
  32991. (L.silent = !h),
  32992. this.getContentGroup().add(w),
  32993. qo(w),
  32994. (w.__legendDataIndex = i),
  32995. w
  32996. )
  32997. }),
  32998. (t.prototype.layoutInner = function (e, n, i, a, o, s) {
  32999. var l = this.getContentGroup(),
  33000. u = this.getSelectorGroup()
  33001. fi(e.get('orient'), l, e.get('itemGap'), i.width, i.height)
  33002. var f = l.getBoundingRect(),
  33003. h = [-f.x, -f.y]
  33004. if ((u.markRedraw(), l.markRedraw(), o)) {
  33005. fi('horizontal', u, e.get('selectorItemGap', !0))
  33006. var c = u.getBoundingRect(),
  33007. v = [-c.x, -c.y],
  33008. d = e.get('selectorButtonGap', !0),
  33009. p = e.getOrient().index,
  33010. g = p === 0 ? 'width' : 'height',
  33011. m = p === 0 ? 'height' : 'width',
  33012. y = p === 0 ? 'y' : 'x'
  33013. s === 'end' ? (v[p] += f[g] + d) : (h[p] += c[g] + d),
  33014. (v[1 - p] += f[m] / 2 - c[m] / 2),
  33015. (u.x = v[0]),
  33016. (u.y = v[1]),
  33017. (l.x = h[0]),
  33018. (l.y = h[1])
  33019. var _ = { x: 0, y: 0 }
  33020. return (
  33021. (_[g] = f[g] + d + c[g]),
  33022. (_[m] = Math.max(f[m], c[m])),
  33023. (_[y] = Math.min(0, c[y] + v[1 - p])),
  33024. _
  33025. )
  33026. } else return (l.x = h[0]), (l.y = h[1]), this.group.getBoundingRect()
  33027. }),
  33028. (t.prototype.remove = function () {
  33029. this.getContentGroup().removeAll(), (this._isFirstRender = !0)
  33030. }),
  33031. (t.type = 'legend.plain'),
  33032. t
  33033. )
  33034. })(xe)
  33035. function lO(r, t, e, n, i, a, o) {
  33036. function s(g, m) {
  33037. g.lineWidth === 'auto' && (g.lineWidth = m.lineWidth > 0 ? 2 : 0),
  33038. xv(g, function (y, _) {
  33039. g[_] === 'inherit' && (g[_] = m[_])
  33040. })
  33041. }
  33042. var l = t.getModel('itemStyle'),
  33043. u = l.getItemStyle(),
  33044. f = r.lastIndexOf('empty', 0) === 0 ? 'fill' : 'stroke',
  33045. h = l.getShallow('decal')
  33046. ;(u.decal = !h || h === 'inherit' ? n.decal : Jf(h, o)),
  33047. u.fill === 'inherit' && (u.fill = n[i]),
  33048. u.stroke === 'inherit' && (u.stroke = n[f]),
  33049. u.opacity === 'inherit' && (u.opacity = (i === 'fill' ? n : e).opacity),
  33050. s(u, n)
  33051. var c = t.getModel('lineStyle'),
  33052. v = c.getLineStyle()
  33053. if (
  33054. (s(v, e),
  33055. u.fill === 'auto' && (u.fill = n.fill),
  33056. u.stroke === 'auto' && (u.stroke = n.fill),
  33057. v.stroke === 'auto' && (v.stroke = n.fill),
  33058. !a)
  33059. ) {
  33060. var d = t.get('inactiveBorderWidth'),
  33061. p = u[f]
  33062. ;(u.lineWidth =
  33063. d === 'auto' ? (n.lineWidth > 0 && p ? 2 : 0) : u.lineWidth),
  33064. (u.fill = t.get('inactiveColor')),
  33065. (u.stroke = t.get('inactiveBorderColor')),
  33066. (v.stroke = c.get('inactiveColor')),
  33067. (v.lineWidth = c.get('inactiveWidth'))
  33068. }
  33069. return { itemStyle: u, lineStyle: v }
  33070. }
  33071. function uO(r) {
  33072. var t = r.icon || 'roundRect',
  33073. e = Or(
  33074. t,
  33075. 0,
  33076. 0,
  33077. r.itemWidth,
  33078. r.itemHeight,
  33079. r.itemStyle.fill,
  33080. r.symbolKeepAspect
  33081. )
  33082. return (
  33083. e.setStyle(r.itemStyle),
  33084. (e.rotation = ((r.iconRotate || 0) * Math.PI) / 180),
  33085. e.setOrigin([r.itemWidth / 2, r.itemHeight / 2]),
  33086. t.indexOf('empty') > -1 &&
  33087. ((e.style.stroke = e.style.fill),
  33088. (e.style.fill = '#fff'),
  33089. (e.style.lineWidth = 2)),
  33090. e
  33091. )
  33092. }
  33093. function L1(r, t, e, n) {
  33094. bv(r, t, e, n),
  33095. e.dispatchAction({ type: 'legendToggleSelect', name: r != null ? r : t }),
  33096. wv(r, t, e, n)
  33097. }
  33098. function P1(r) {
  33099. for (
  33100. var t = r.getZr().storage.getDisplayList(), e, n = 0, i = t.length;
  33101. n < i && !(e = t[n].states.emphasis);
  33102. )
  33103. n++
  33104. return e && e.hoverLayer
  33105. }
  33106. function wv(r, t, e, n) {
  33107. P1(e) ||
  33108. e.dispatchAction({
  33109. type: 'highlight',
  33110. seriesName: r,
  33111. name: t,
  33112. excludeSeriesId: n
  33113. })
  33114. }
  33115. function bv(r, t, e, n) {
  33116. P1(e) ||
  33117. e.dispatchAction({
  33118. type: 'downplay',
  33119. seriesName: r,
  33120. name: t,
  33121. excludeSeriesId: n
  33122. })
  33123. }
  33124. var R1 = sO
  33125. function fO(r) {
  33126. var t = r.findComponents({ mainType: 'legend' })
  33127. t &&
  33128. t.length &&
  33129. r.filterSeries(function (e) {
  33130. for (var n = 0; n < t.length; n++) if (!t[n].isSelected(e.name)) return !1
  33131. return !0
  33132. })
  33133. }
  33134. function Qa(r, t, e) {
  33135. var n = {},
  33136. i = r === 'toggleSelected',
  33137. a
  33138. return (
  33139. e.eachComponent('legend', function (o) {
  33140. i && a != null
  33141. ? o[a ? 'select' : 'unSelect'](t.name)
  33142. : r === 'allSelect' || r === 'inverseSelect'
  33143. ? o[r]()
  33144. : (o[r](t.name), (a = o.isSelected(t.name)))
  33145. var s = o.getData()
  33146. A(s, function (l) {
  33147. var u = l.get('name')
  33148. if (
  33149. !(
  33150. u ===
  33151. `
  33152. ` || u === ''
  33153. )
  33154. ) {
  33155. var f = o.isSelected(u)
  33156. n.hasOwnProperty(u) ? (n[u] = n[u] && f) : (n[u] = f)
  33157. }
  33158. })
  33159. }),
  33160. r === 'allSelect' || r === 'inverseSelect'
  33161. ? { selected: n }
  33162. : { name: t.name, selected: n }
  33163. )
  33164. }
  33165. function hO(r) {
  33166. r.registerAction(
  33167. 'legendToggleSelect',
  33168. 'legendselectchanged',
  33169. lt(Qa, 'toggleSelected')
  33170. ),
  33171. r.registerAction('legendAllSelect', 'legendselectall', lt(Qa, 'allSelect')),
  33172. r.registerAction(
  33173. 'legendInverseSelect',
  33174. 'legendinverseselect',
  33175. lt(Qa, 'inverseSelect')
  33176. ),
  33177. r.registerAction('legendSelect', 'legendselected', lt(Qa, 'select')),
  33178. r.registerAction('legendUnSelect', 'legendunselected', lt(Qa, 'unSelect'))
  33179. }
  33180. function E1(r) {
  33181. r.registerComponentModel(Sv),
  33182. r.registerComponentView(R1),
  33183. r.registerProcessor(r.PRIORITY.PROCESSOR.SERIES_FILTER, fO),
  33184. r.registerSubTypeDefaulter('legend', function () {
  33185. return 'plain'
  33186. }),
  33187. hO(r)
  33188. }
  33189. var vO = (function (r) {
  33190. B(t, r)
  33191. function t() {
  33192. var e = (r !== null && r.apply(this, arguments)) || this
  33193. return (e.type = t.type), e
  33194. }
  33195. return (
  33196. (t.prototype.setScrollDataIndex = function (e) {
  33197. this.option.scrollDataIndex = e
  33198. }),
  33199. (t.prototype.init = function (e, n, i) {
  33200. var a = _a(e)
  33201. r.prototype.init.call(this, e, n, i), O1(this, e, a)
  33202. }),
  33203. (t.prototype.mergeOption = function (e, n) {
  33204. r.prototype.mergeOption.call(this, e, n), O1(this, this.option, e)
  33205. }),
  33206. (t.type = 'legend.scroll'),
  33207. (t.defaultOption = cs(Sv.defaultOption, {
  33208. scrollDataIndex: 0,
  33209. pageButtonItemGap: 5,
  33210. pageButtonGap: null,
  33211. pageButtonPosition: 'end',
  33212. pageFormatter: '{current}/{total}',
  33213. pageIcons: {
  33214. horizontal: ['M0,0L12,-10L12,10z', 'M0,0L-12,-10L-12,10z'],
  33215. vertical: ['M0,0L20,0L10,-20z', 'M0,0L20,0L10,20z']
  33216. },
  33217. pageIconColor: '#2f4554',
  33218. pageIconInactiveColor: '#aaa',
  33219. pageIconSize: 15,
  33220. pageTextStyle: { color: '#333' },
  33221. animationDurationUpdate: 800
  33222. })),
  33223. t
  33224. )
  33225. })(Sv)
  33226. function O1(r, t, e) {
  33227. var n = r.getOrient(),
  33228. i = [1, 1]
  33229. ;(i[n.index] = 0), hi(t, e, { type: 'box', ignoreSize: !!i })
  33230. }
  33231. var cO = vO,
  33232. k1 = At,
  33233. Tv = ['width', 'height'],
  33234. Cv = ['x', 'y'],
  33235. dO = (function (r) {
  33236. B(t, r)
  33237. function t() {
  33238. var e = (r !== null && r.apply(this, arguments)) || this
  33239. return (
  33240. (e.type = t.type), (e.newlineDisabled = !0), (e._currentIndex = 0), e
  33241. )
  33242. }
  33243. return (
  33244. (t.prototype.init = function () {
  33245. r.prototype.init.call(this),
  33246. this.group.add((this._containerGroup = new k1())),
  33247. this._containerGroup.add(this.getContentGroup()),
  33248. this.group.add((this._controllerGroup = new k1()))
  33249. }),
  33250. (t.prototype.resetInner = function () {
  33251. r.prototype.resetInner.call(this),
  33252. this._controllerGroup.removeAll(),
  33253. this._containerGroup.removeClipPath(),
  33254. (this._containerGroup.__rectSize = null)
  33255. }),
  33256. (t.prototype.renderInner = function (e, n, i, a, o, s, l) {
  33257. var u = this
  33258. r.prototype.renderInner.call(this, e, n, i, a, o, s, l)
  33259. var f = this._controllerGroup,
  33260. h = n.get('pageIconSize', !0),
  33261. c = z(h) ? h : [h, h]
  33262. d('pagePrev', 0)
  33263. var v = n.getModel('pageTextStyle')
  33264. f.add(
  33265. new Et({
  33266. name: 'pageText',
  33267. style: {
  33268. text: 'xx/xx',
  33269. fill: v.getTextColor(),
  33270. font: v.getFont(),
  33271. verticalAlign: 'middle',
  33272. align: 'center'
  33273. },
  33274. silent: !0
  33275. })
  33276. ),
  33277. d('pageNext', 1)
  33278. function d(p, g) {
  33279. var m = p + 'DataIndex',
  33280. y = us(
  33281. n.get('pageIcons', !0)[n.getOrient().name][g],
  33282. { onclick: X(u._pageGo, u, m, n, a) },
  33283. { x: -c[0] / 2, y: -c[1] / 2, width: c[0], height: c[1] }
  33284. )
  33285. ;(y.name = p), f.add(y)
  33286. }
  33287. }),
  33288. (t.prototype.layoutInner = function (e, n, i, a, o, s) {
  33289. var l = this.getSelectorGroup(),
  33290. u = e.getOrient().index,
  33291. f = Tv[u],
  33292. h = Cv[u],
  33293. c = Tv[1 - u],
  33294. v = Cv[1 - u]
  33295. o && fi('horizontal', l, e.get('selectorItemGap', !0))
  33296. var d = e.get('selectorButtonGap', !0),
  33297. p = l.getBoundingRect(),
  33298. g = [-p.x, -p.y],
  33299. m = tt(i)
  33300. o && (m[f] = i[f] - p[f] - d)
  33301. var y = this._layoutContentAndController(e, a, m, u, f, c, v, h)
  33302. if (o) {
  33303. if (s === 'end') g[u] += y[f] + d
  33304. else {
  33305. var _ = p[f] + d
  33306. ;(g[u] -= _), (y[h] -= _)
  33307. }
  33308. ;(y[f] += p[f] + d),
  33309. (g[1 - u] += y[v] + y[c] / 2 - p[c] / 2),
  33310. (y[c] = Math.max(y[c], p[c])),
  33311. (y[v] = Math.min(y[v], p[v] + g[1 - u])),
  33312. (l.x = g[0]),
  33313. (l.y = g[1]),
  33314. l.markRedraw()
  33315. }
  33316. return y
  33317. }),
  33318. (t.prototype._layoutContentAndController = function (
  33319. e,
  33320. n,
  33321. i,
  33322. a,
  33323. o,
  33324. s,
  33325. l,
  33326. u
  33327. ) {
  33328. var f = this.getContentGroup(),
  33329. h = this._containerGroup,
  33330. c = this._controllerGroup
  33331. fi(
  33332. e.get('orient'),
  33333. f,
  33334. e.get('itemGap'),
  33335. a ? i.width : null,
  33336. a ? null : i.height
  33337. ),
  33338. fi('horizontal', c, e.get('pageButtonItemGap', !0))
  33339. var v = f.getBoundingRect(),
  33340. d = c.getBoundingRect(),
  33341. p = (this._showController = v[o] > i[o]),
  33342. g = [-v.x, -v.y]
  33343. n || (g[a] = f[u])
  33344. var m = [0, 0],
  33345. y = [-d.x, -d.y],
  33346. _ = ht(e.get('pageButtonGap', !0), e.get('itemGap', !0))
  33347. if (p) {
  33348. var S = e.get('pageButtonPosition', !0)
  33349. S === 'end' ? (y[a] += i[o] - d[o]) : (m[a] += d[o] + _)
  33350. }
  33351. ;(y[1 - a] += v[s] / 2 - d[s] / 2),
  33352. f.setPosition(g),
  33353. h.setPosition(m),
  33354. c.setPosition(y)
  33355. var w = { x: 0, y: 0 }
  33356. if (
  33357. ((w[o] = p ? i[o] : v[o]),
  33358. (w[s] = Math.max(v[s], d[s])),
  33359. (w[l] = Math.min(0, d[l] + y[1 - a])),
  33360. (h.__rectSize = i[o]),
  33361. p)
  33362. ) {
  33363. var x = { x: 0, y: 0 }
  33364. ;(x[o] = Math.max(i[o] - d[o] - _, 0)),
  33365. (x[s] = w[s]),
  33366. h.setClipPath(new St({ shape: x })),
  33367. (h.__rectSize = x[o])
  33368. } else
  33369. c.eachChild(function (T) {
  33370. T.attr({ invisible: !0, silent: !0 })
  33371. })
  33372. var b = this._getPageInfo(e)
  33373. return (
  33374. b.pageIndex != null &&
  33375. kt(
  33376. f,
  33377. { x: b.contentPosition[0], y: b.contentPosition[1] },
  33378. p ? e : null
  33379. ),
  33380. this._updatePageInfoView(e, b),
  33381. w
  33382. )
  33383. }),
  33384. (t.prototype._pageGo = function (e, n, i) {
  33385. var a = this._getPageInfo(n)[e]
  33386. a != null &&
  33387. i.dispatchAction({
  33388. type: 'legendScroll',
  33389. scrollDataIndex: a,
  33390. legendId: n.id
  33391. })
  33392. }),
  33393. (t.prototype._updatePageInfoView = function (e, n) {
  33394. var i = this._controllerGroup
  33395. A(['pagePrev', 'pageNext'], function (f) {
  33396. var h = f + 'DataIndex',
  33397. c = n[h] != null,
  33398. v = i.childOfName(f)
  33399. v &&
  33400. (v.setStyle(
  33401. 'fill',
  33402. c
  33403. ? e.get('pageIconColor', !0)
  33404. : e.get('pageIconInactiveColor', !0)
  33405. ),
  33406. (v.cursor = c ? 'pointer' : 'default'))
  33407. })
  33408. var a = i.childOfName('pageText'),
  33409. o = e.get('pageFormatter'),
  33410. s = n.pageIndex,
  33411. l = s != null ? s + 1 : 0,
  33412. u = n.pageCount
  33413. a &&
  33414. o &&
  33415. a.setStyle(
  33416. 'text',
  33417. W(o)
  33418. ? o
  33419. .replace('{current}', l == null ? '' : l + '')
  33420. .replace('{total}', u == null ? '' : u + '')
  33421. : o({ current: l, total: u })
  33422. )
  33423. }),
  33424. (t.prototype._getPageInfo = function (e) {
  33425. var n = e.get('scrollDataIndex', !0),
  33426. i = this.getContentGroup(),
  33427. a = this._containerGroup.__rectSize,
  33428. o = e.getOrient().index,
  33429. s = Tv[o],
  33430. l = Cv[o],
  33431. u = this._findTargetItemIndex(n),
  33432. f = i.children(),
  33433. h = f[u],
  33434. c = f.length,
  33435. v = c ? 1 : 0,
  33436. d = {
  33437. contentPosition: [i.x, i.y],
  33438. pageCount: v,
  33439. pageIndex: v - 1,
  33440. pagePrevDataIndex: null,
  33441. pageNextDataIndex: null
  33442. }
  33443. if (!h) return d
  33444. var p = S(h)
  33445. d.contentPosition[o] = -p.s
  33446. for (var g = u + 1, m = p, y = p, _ = null; g <= c; ++g)
  33447. (_ = S(f[g])),
  33448. ((!_ && y.e > m.s + a) || (_ && !w(_, m.s))) &&
  33449. (y.i > m.i ? (m = y) : (m = _),
  33450. m &&
  33451. (d.pageNextDataIndex == null && (d.pageNextDataIndex = m.i),
  33452. ++d.pageCount)),
  33453. (y = _)
  33454. for (var g = u - 1, m = p, y = p, _ = null; g >= -1; --g)
  33455. (_ = S(f[g])),
  33456. (!_ || !w(y, _.s)) &&
  33457. m.i < y.i &&
  33458. ((y = m),
  33459. d.pagePrevDataIndex == null && (d.pagePrevDataIndex = m.i),
  33460. ++d.pageCount,
  33461. ++d.pageIndex),
  33462. (m = _)
  33463. return d
  33464. function S(x) {
  33465. if (x) {
  33466. var b = x.getBoundingRect(),
  33467. T = b[l] + x[l]
  33468. return { s: T, e: T + b[s], i: x.__legendDataIndex }
  33469. }
  33470. }
  33471. function w(x, b) {
  33472. return x.e >= b && x.s <= b + a
  33473. }
  33474. }),
  33475. (t.prototype._findTargetItemIndex = function (e) {
  33476. if (!this._showController) return 0
  33477. var n,
  33478. i = this.getContentGroup(),
  33479. a
  33480. return (
  33481. i.eachChild(function (o, s) {
  33482. var l = o.__legendDataIndex
  33483. a == null && l != null && (a = s), l === e && (n = s)
  33484. }),
  33485. n != null ? n : a
  33486. )
  33487. }),
  33488. (t.type = 'legend.scroll'),
  33489. t
  33490. )
  33491. })(R1),
  33492. pO = dO
  33493. function gO(r) {
  33494. r.registerAction('legendScroll', 'legendscroll', function (t, e) {
  33495. var n = t.scrollDataIndex
  33496. n != null &&
  33497. e.eachComponent(
  33498. { mainType: 'legend', subType: 'scroll', query: t },
  33499. function (i) {
  33500. i.setScrollDataIndex(n)
  33501. }
  33502. )
  33503. })
  33504. }
  33505. function mO(r) {
  33506. Re(E1), r.registerComponentModel(cO), r.registerComponentView(pO), gO(r)
  33507. }
  33508. function yO(r) {
  33509. Re(E1), Re(mO)
  33510. }
  33511. var _O = (function (r) {
  33512. B(t, r)
  33513. function t() {
  33514. var e = (r !== null && r.apply(this, arguments)) || this
  33515. return (e.type = t.type), e
  33516. }
  33517. return (
  33518. (t.type = 'dataZoom.inside'),
  33519. (t.defaultOption = cs(Xa.defaultOption, {
  33520. disabled: !1,
  33521. zoomLock: !1,
  33522. zoomOnMouseWheel: !0,
  33523. moveOnMouseMove: !0,
  33524. moveOnMouseWheel: !1,
  33525. preventDefaultMouseMove: !0
  33526. })),
  33527. t
  33528. )
  33529. })(Xa),
  33530. SO = _O,
  33531. Av = wt()
  33532. function xO(r, t, e) {
  33533. Av(r).coordSysRecordMap.each(function (n) {
  33534. var i = n.dataZoomInfoMap.get(t.uid)
  33535. i && (i.getRange = e)
  33536. })
  33537. }
  33538. function wO(r, t) {
  33539. for (
  33540. var e = Av(r).coordSysRecordMap, n = e.keys(), i = 0;
  33541. i < n.length;
  33542. i++
  33543. ) {
  33544. var a = n[i],
  33545. o = e.get(a),
  33546. s = o.dataZoomInfoMap
  33547. if (s) {
  33548. var l = t.uid,
  33549. u = s.get(l)
  33550. u && (s.removeKey(l), s.keys().length || B1(e, o))
  33551. }
  33552. }
  33553. }
  33554. function B1(r, t) {
  33555. if (t) {
  33556. r.removeKey(t.model.uid)
  33557. var e = t.controller
  33558. e && e.dispose()
  33559. }
  33560. }
  33561. function bO(r, t) {
  33562. var e = {
  33563. model: t,
  33564. containsPoint: lt(CO, t),
  33565. dispatchAction: lt(TO, r),
  33566. dataZoomInfoMap: null,
  33567. controller: null
  33568. },
  33569. n = (e.controller = new OP(r.getZr()))
  33570. return (
  33571. A(['pan', 'zoom', 'scrollMove'], function (i) {
  33572. n.on(i, function (a) {
  33573. var o = []
  33574. e.dataZoomInfoMap.each(function (s) {
  33575. if (!!a.isAvailableBehavior(s.model.option)) {
  33576. var l = (s.getRange || {})[i],
  33577. u =
  33578. l && l(s.dzReferCoordSysInfo, e.model.mainType, e.controller, a)
  33579. !s.model.get('disabled', !0) &&
  33580. u &&
  33581. o.push({ dataZoomId: s.model.id, start: u[0], end: u[1] })
  33582. }
  33583. }),
  33584. o.length && e.dispatchAction(o)
  33585. })
  33586. }),
  33587. e
  33588. )
  33589. }
  33590. function TO(r, t) {
  33591. r.isDisposed() ||
  33592. r.dispatchAction({
  33593. type: 'dataZoom',
  33594. animation: { easing: 'cubicOut', duration: 100 },
  33595. batch: t
  33596. })
  33597. }
  33598. function CO(r, t, e, n) {
  33599. return r.coordinateSystem.containPoint([e, n])
  33600. }
  33601. function AO(r) {
  33602. var t,
  33603. e = 'type_',
  33604. n = { type_true: 2, type_move: 1, type_false: 0, type_undefined: -1 },
  33605. i = !0
  33606. return (
  33607. r.each(function (a) {
  33608. var o = a.model,
  33609. s = o.get('disabled', !0) ? !1 : o.get('zoomLock', !0) ? 'move' : !0
  33610. n[e + s] > n[e + t] && (t = s),
  33611. (i = i && o.get('preventDefaultMouseMove', !0))
  33612. }),
  33613. {
  33614. controlType: t,
  33615. opt: {
  33616. zoomOnMouseWheel: !0,
  33617. moveOnMouseMove: !0,
  33618. moveOnMouseWheel: !0,
  33619. preventDefaultMouseMove: !!i
  33620. }
  33621. }
  33622. )
  33623. }
  33624. function MO(r) {
  33625. r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER, function (t, e) {
  33626. var n = Av(e),
  33627. i = n.coordSysRecordMap || (n.coordSysRecordMap = q())
  33628. i.each(function (a) {
  33629. a.dataZoomInfoMap = null
  33630. }),
  33631. t.eachComponent(
  33632. { mainType: 'dataZoom', subType: 'inside' },
  33633. function (a) {
  33634. var o = e1(a)
  33635. A(o.infoList, function (s) {
  33636. var l = s.model.uid,
  33637. u = i.get(l) || i.set(l, bO(e, s.model)),
  33638. f = u.dataZoomInfoMap || (u.dataZoomInfoMap = q())
  33639. f.set(a.uid, { dzReferCoordSysInfo: s, model: a, getRange: null })
  33640. })
  33641. }
  33642. ),
  33643. i.each(function (a) {
  33644. var o = a.controller,
  33645. s,
  33646. l = a.dataZoomInfoMap
  33647. if (l) {
  33648. var u = l.keys()[0]
  33649. u != null && (s = l.get(u))
  33650. }
  33651. if (!s) {
  33652. B1(i, a)
  33653. return
  33654. }
  33655. var f = AO(l)
  33656. o.enable(f.controlType, f.opt),
  33657. o.setPointerChecker(a.containsPoint),
  33658. Os(a, 'dispatchAction', s.model.get('throttle', !0), 'fixRate')
  33659. })
  33660. })
  33661. }
  33662. var DO = (function (r) {
  33663. B(t, r)
  33664. function t() {
  33665. var e = (r !== null && r.apply(this, arguments)) || this
  33666. return (e.type = 'dataZoom.inside'), e
  33667. }
  33668. return (
  33669. (t.prototype.render = function (e, n, i) {
  33670. if ((r.prototype.render.apply(this, arguments), e.noTarget())) {
  33671. this._clear()
  33672. return
  33673. }
  33674. ;(this.range = e.getPercentRange()),
  33675. xO(i, e, {
  33676. pan: X(Mv.pan, this),
  33677. zoom: X(Mv.zoom, this),
  33678. scrollMove: X(Mv.scrollMove, this)
  33679. })
  33680. }),
  33681. (t.prototype.dispose = function () {
  33682. this._clear(), r.prototype.dispose.apply(this, arguments)
  33683. }),
  33684. (t.prototype._clear = function () {
  33685. wO(this.api, this.dataZoomModel), (this.range = null)
  33686. }),
  33687. (t.type = 'dataZoom.inside'),
  33688. t
  33689. )
  33690. })(hv),
  33691. Mv = {
  33692. zoom: function (r, t, e, n) {
  33693. var i = this.range,
  33694. a = i.slice(),
  33695. o = r.axisModels[0]
  33696. if (!!o) {
  33697. var s = Dv[t](null, [n.originX, n.originY], o, e, r),
  33698. l =
  33699. ((s.signal > 0
  33700. ? s.pixelStart + s.pixelLength - s.pixel
  33701. : s.pixel - s.pixelStart) /
  33702. s.pixelLength) *
  33703. (a[1] - a[0]) +
  33704. a[0],
  33705. u = Math.max(1 / n.scale, 0)
  33706. ;(a[0] = (a[0] - l) * u + l), (a[1] = (a[1] - l) * u + l)
  33707. var f = this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan()
  33708. if (
  33709. (Za(0, a, [0, 100], 0, f.minSpan, f.maxSpan),
  33710. (this.range = a),
  33711. i[0] !== a[0] || i[1] !== a[1])
  33712. )
  33713. return a
  33714. }
  33715. },
  33716. pan: N1(function (r, t, e, n, i, a) {
  33717. var o = Dv[n]([a.oldX, a.oldY], [a.newX, a.newY], t, i, e)
  33718. return (o.signal * (r[1] - r[0]) * o.pixel) / o.pixelLength
  33719. }),
  33720. scrollMove: N1(function (r, t, e, n, i, a) {
  33721. var o = Dv[n]([0, 0], [a.scrollDelta, a.scrollDelta], t, i, e)
  33722. return o.signal * (r[1] - r[0]) * a.scrollDelta
  33723. })
  33724. }
  33725. function N1(r) {
  33726. return function (t, e, n, i) {
  33727. var a = this.range,
  33728. o = a.slice(),
  33729. s = t.axisModels[0]
  33730. if (!!s) {
  33731. var l = r(o, s, t, e, n, i)
  33732. if (
  33733. (Za(l, o, [0, 100], 'all'),
  33734. (this.range = o),
  33735. a[0] !== o[0] || a[1] !== o[1])
  33736. )
  33737. return o
  33738. }
  33739. }
  33740. }
  33741. var Dv = {
  33742. grid: function (r, t, e, n, i) {
  33743. var a = e.axis,
  33744. o = {},
  33745. s = i.model.coordinateSystem.getRect()
  33746. return (
  33747. (r = r || [0, 0]),
  33748. a.dim === 'x'
  33749. ? ((o.pixel = t[0] - r[0]),
  33750. (o.pixelLength = s.width),
  33751. (o.pixelStart = s.x),
  33752. (o.signal = a.inverse ? 1 : -1))
  33753. : ((o.pixel = t[1] - r[1]),
  33754. (o.pixelLength = s.height),
  33755. (o.pixelStart = s.y),
  33756. (o.signal = a.inverse ? -1 : 1)),
  33757. o
  33758. )
  33759. },
  33760. polar: function (r, t, e, n, i) {
  33761. var a = e.axis,
  33762. o = {},
  33763. s = i.model.coordinateSystem,
  33764. l = s.getRadiusAxis().getExtent(),
  33765. u = s.getAngleAxis().getExtent()
  33766. return (
  33767. (r = r ? s.pointToCoord(r) : [0, 0]),
  33768. (t = s.pointToCoord(t)),
  33769. e.mainType === 'radiusAxis'
  33770. ? ((o.pixel = t[0] - r[0]),
  33771. (o.pixelLength = l[1] - l[0]),
  33772. (o.pixelStart = l[0]),
  33773. (o.signal = a.inverse ? 1 : -1))
  33774. : ((o.pixel = t[1] - r[1]),
  33775. (o.pixelLength = u[1] - u[0]),
  33776. (o.pixelStart = u[0]),
  33777. (o.signal = a.inverse ? -1 : 1)),
  33778. o
  33779. )
  33780. },
  33781. singleAxis: function (r, t, e, n, i) {
  33782. var a = e.axis,
  33783. o = i.model.coordinateSystem.getRect(),
  33784. s = {}
  33785. return (
  33786. (r = r || [0, 0]),
  33787. a.orient === 'horizontal'
  33788. ? ((s.pixel = t[0] - r[0]),
  33789. (s.pixelLength = o.width),
  33790. (s.pixelStart = o.x),
  33791. (s.signal = a.inverse ? 1 : -1))
  33792. : ((s.pixel = t[1] - r[1]),
  33793. (s.pixelLength = o.height),
  33794. (s.pixelStart = o.y),
  33795. (s.signal = a.inverse ? -1 : 1)),
  33796. s
  33797. )
  33798. }
  33799. },
  33800. IO = DO
  33801. function LO(r) {
  33802. vv(r), r.registerComponentModel(SO), r.registerComponentView(IO), MO(r)
  33803. }
  33804. var PO = (function (r) {
  33805. B(t, r)
  33806. function t() {
  33807. var e = (r !== null && r.apply(this, arguments)) || this
  33808. return (e.type = t.type), e
  33809. }
  33810. return (
  33811. (t.type = 'dataZoom.slider'),
  33812. (t.layoutMode = 'box'),
  33813. (t.defaultOption = cs(Xa.defaultOption, {
  33814. show: !0,
  33815. right: 'ph',
  33816. top: 'ph',
  33817. width: 'ph',
  33818. height: 'ph',
  33819. left: null,
  33820. bottom: null,
  33821. borderColor: '#d2dbee',
  33822. borderRadius: 3,
  33823. backgroundColor: 'rgba(47,69,84,0)',
  33824. dataBackground: {
  33825. lineStyle: { color: '#d2dbee', width: 0.5 },
  33826. areaStyle: { color: '#d2dbee', opacity: 0.2 }
  33827. },
  33828. selectedDataBackground: {
  33829. lineStyle: { color: '#8fb0f7', width: 0.5 },
  33830. areaStyle: { color: '#8fb0f7', opacity: 0.2 }
  33831. },
  33832. fillerColor: 'rgba(135,175,274,0.2)',
  33833. handleIcon:
  33834. 'path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z',
  33835. handleSize: '100%',
  33836. handleStyle: { color: '#fff', borderColor: '#ACB8D1' },
  33837. moveHandleSize: 7,
  33838. moveHandleIcon:
  33839. 'path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z',
  33840. moveHandleStyle: { color: '#D2DBEE', opacity: 0.7 },
  33841. showDetail: !0,
  33842. showDataShadow: 'auto',
  33843. realtime: !0,
  33844. zoomLock: !1,
  33845. textStyle: { color: '#6E7079' },
  33846. brushSelect: !0,
  33847. brushStyle: { color: 'rgba(135,175,274,0.15)' },
  33848. emphasis: {
  33849. handleStyle: { borderColor: '#8FB0F7' },
  33850. moveHandleStyle: { color: '#8FB0F7' }
  33851. }
  33852. })),
  33853. t
  33854. )
  33855. })(Xa),
  33856. RO = PO,
  33857. Ja = St,
  33858. F1 = 7,
  33859. EO = 1,
  33860. Iv = 30,
  33861. OO = 7,
  33862. ja = 'horizontal',
  33863. z1 = 'vertical',
  33864. kO = 5,
  33865. BO = ['line', 'bar', 'candlestick', 'scatter'],
  33866. NO = { easing: 'cubicOut', duration: 100, delay: 0 },
  33867. FO = (function (r) {
  33868. B(t, r)
  33869. function t() {
  33870. var e = (r !== null && r.apply(this, arguments)) || this
  33871. return (e.type = t.type), (e._displayables = {}), e
  33872. }
  33873. return (
  33874. (t.prototype.init = function (e, n) {
  33875. ;(this.api = n),
  33876. (this._onBrush = X(this._onBrush, this)),
  33877. (this._onBrushEnd = X(this._onBrushEnd, this))
  33878. }),
  33879. (t.prototype.render = function (e, n, i, a) {
  33880. if (
  33881. (r.prototype.render.apply(this, arguments),
  33882. Os(this, '_dispatchZoomAction', e.get('throttle'), 'fixRate'),
  33883. (this._orient = e.getOrient()),
  33884. e.get('show') === !1)
  33885. ) {
  33886. this.group.removeAll()
  33887. return
  33888. }
  33889. if (e.noTarget()) {
  33890. this._clear(), this.group.removeAll()
  33891. return
  33892. }
  33893. ;(!a || a.type !== 'dataZoom' || a.from !== this.uid) &&
  33894. this._buildView(),
  33895. this._updateView()
  33896. }),
  33897. (t.prototype.dispose = function () {
  33898. this._clear(), r.prototype.dispose.apply(this, arguments)
  33899. }),
  33900. (t.prototype._clear = function () {
  33901. ks(this, '_dispatchZoomAction')
  33902. var e = this.api.getZr()
  33903. e.off('mousemove', this._onBrush), e.off('mouseup', this._onBrushEnd)
  33904. }),
  33905. (t.prototype._buildView = function () {
  33906. var e = this.group
  33907. e.removeAll(),
  33908. (this._brushing = !1),
  33909. (this._displayables.brushRect = null),
  33910. this._resetLocation(),
  33911. this._resetInterval()
  33912. var n = (this._displayables.sliderGroup = new At())
  33913. this._renderBackground(),
  33914. this._renderHandle(),
  33915. this._renderDataShadow(),
  33916. e.add(n),
  33917. this._positionGroup()
  33918. }),
  33919. (t.prototype._resetLocation = function () {
  33920. var e = this.dataZoomModel,
  33921. n = this.api,
  33922. i = e.get('brushSelect'),
  33923. a = i ? OO : 0,
  33924. o = this._findCoordRect(),
  33925. s = { width: n.getWidth(), height: n.getHeight() },
  33926. l =
  33927. this._orient === ja
  33928. ? {
  33929. right: s.width - o.x - o.width,
  33930. top: s.height - Iv - F1 - a,
  33931. width: o.width,
  33932. height: Iv
  33933. }
  33934. : { right: F1, top: o.y, width: Iv, height: o.height },
  33935. u = _a(e.option)
  33936. A(['right', 'top', 'width', 'height'], function (h) {
  33937. u[h] === 'ph' && (u[h] = l[h])
  33938. })
  33939. var f = cr(u, s)
  33940. ;(this._location = { x: f.x, y: f.y }),
  33941. (this._size = [f.width, f.height]),
  33942. this._orient === z1 && this._size.reverse()
  33943. }),
  33944. (t.prototype._positionGroup = function () {
  33945. var e = this.group,
  33946. n = this._location,
  33947. i = this._orient,
  33948. a = this.dataZoomModel.getFirstTargetAxisModel(),
  33949. o = a && a.get('inverse'),
  33950. s = this._displayables.sliderGroup,
  33951. l = (this._dataShadowInfo || {}).otherAxisInverse
  33952. s.attr(
  33953. i === ja && !o
  33954. ? { scaleY: l ? 1 : -1, scaleX: 1 }
  33955. : i === ja && o
  33956. ? { scaleY: l ? 1 : -1, scaleX: -1 }
  33957. : i === z1 && !o
  33958. ? { scaleY: l ? -1 : 1, scaleX: 1, rotation: Math.PI / 2 }
  33959. : { scaleY: l ? -1 : 1, scaleX: -1, rotation: Math.PI / 2 }
  33960. )
  33961. var u = e.getBoundingRect([s])
  33962. ;(e.x = n.x - u.x), (e.y = n.y - u.y), e.markRedraw()
  33963. }),
  33964. (t.prototype._getViewExtent = function () {
  33965. return [0, this._size[0]]
  33966. }),
  33967. (t.prototype._renderBackground = function () {
  33968. var e = this.dataZoomModel,
  33969. n = this._size,
  33970. i = this._displayables.sliderGroup,
  33971. a = e.get('brushSelect')
  33972. i.add(
  33973. new Ja({
  33974. silent: !0,
  33975. shape: { x: 0, y: 0, width: n[0], height: n[1] },
  33976. style: { fill: e.get('backgroundColor') },
  33977. z2: -40
  33978. })
  33979. )
  33980. var o = new Ja({
  33981. shape: { x: 0, y: 0, width: n[0], height: n[1] },
  33982. style: { fill: 'transparent' },
  33983. z2: 0,
  33984. onclick: X(this._onClickPanel, this)
  33985. }),
  33986. s = this.api.getZr()
  33987. a
  33988. ? (o.on('mousedown', this._onBrushStart, this),
  33989. (o.cursor = 'crosshair'),
  33990. s.on('mousemove', this._onBrush),
  33991. s.on('mouseup', this._onBrushEnd))
  33992. : (s.off('mousemove', this._onBrush),
  33993. s.off('mouseup', this._onBrushEnd)),
  33994. i.add(o)
  33995. }),
  33996. (t.prototype._renderDataShadow = function () {
  33997. var e = (this._dataShadowInfo = this._prepareDataShadowInfo())
  33998. if (((this._displayables.dataShadowSegs = []), !e)) return
  33999. var n = this._size,
  34000. i = this._shadowSize || [],
  34001. a = e.series,
  34002. o = a.getRawData(),
  34003. s = a.getShadowDim ? a.getShadowDim() : e.otherDim
  34004. if (s == null) return
  34005. var l = this._shadowPolygonPts,
  34006. u = this._shadowPolylinePts
  34007. if (
  34008. o !== this._shadowData ||
  34009. s !== this._shadowDim ||
  34010. n[0] !== i[0] ||
  34011. n[1] !== i[1]
  34012. ) {
  34013. var f = o.getDataExtent(s),
  34014. h = (f[1] - f[0]) * 0.3
  34015. f = [f[0] - h, f[1] + h]
  34016. var c = [0, n[1]],
  34017. v = [0, n[0]],
  34018. d = [
  34019. [n[0], 0],
  34020. [0, 0]
  34021. ],
  34022. p = [],
  34023. g = v[1] / (o.count() - 1),
  34024. m = 0,
  34025. y = Math.round(o.count() / n[0]),
  34026. _
  34027. o.each([s], function (T, C) {
  34028. if (y > 0 && C % y) {
  34029. m += g
  34030. return
  34031. }
  34032. var M = T == null || isNaN(T) || T === '',
  34033. D = M ? 0 : Bt(T, f, c, !0)
  34034. M && !_ && C
  34035. ? (d.push([d[d.length - 1][0], 0]),
  34036. p.push([p[p.length - 1][0], 0]))
  34037. : !M && _ && (d.push([m, 0]), p.push([m, 0])),
  34038. d.push([m, D]),
  34039. p.push([m, D]),
  34040. (m += g),
  34041. (_ = M)
  34042. }),
  34043. (l = this._shadowPolygonPts = d),
  34044. (u = this._shadowPolylinePts = p)
  34045. }
  34046. ;(this._shadowData = o),
  34047. (this._shadowDim = s),
  34048. (this._shadowSize = [n[0], n[1]])
  34049. var S = this.dataZoomModel
  34050. function w(T) {
  34051. var C = S.getModel(T ? 'selectedDataBackground' : 'dataBackground'),
  34052. M = new At(),
  34053. D = new ua({
  34054. shape: { points: l },
  34055. segmentIgnoreThreshold: 1,
  34056. style: C.getModel('areaStyle').getAreaStyle(),
  34057. silent: !0,
  34058. z2: -20
  34059. }),
  34060. I = new ai({
  34061. shape: { points: u },
  34062. segmentIgnoreThreshold: 1,
  34063. style: C.getModel('lineStyle').getLineStyle(),
  34064. silent: !0,
  34065. z2: -19
  34066. })
  34067. return M.add(D), M.add(I), M
  34068. }
  34069. for (var x = 0; x < 3; x++) {
  34070. var b = w(x === 1)
  34071. this._displayables.sliderGroup.add(b),
  34072. this._displayables.dataShadowSegs.push(b)
  34073. }
  34074. }),
  34075. (t.prototype._prepareDataShadowInfo = function () {
  34076. var e = this.dataZoomModel,
  34077. n = e.get('showDataShadow')
  34078. if (n !== !1) {
  34079. var i,
  34080. a = this.ecModel
  34081. return (
  34082. e.eachTargetAxis(function (o, s) {
  34083. var l = e.getAxisProxy(o, s).getTargetSeriesModels()
  34084. A(
  34085. l,
  34086. function (u) {
  34087. if (!i && !(n !== !0 && ot(BO, u.get('type')) < 0)) {
  34088. var f = a.getComponent(Gr(o), s).axis,
  34089. h = zO(o),
  34090. c,
  34091. v = u.coordinateSystem
  34092. h != null &&
  34093. v.getOtherAxis &&
  34094. (c = v.getOtherAxis(f).inverse),
  34095. (h = u.getData().mapDimension(h)),
  34096. (i = {
  34097. thisAxis: f,
  34098. series: u,
  34099. thisDim: o,
  34100. otherDim: h,
  34101. otherAxisInverse: c
  34102. })
  34103. }
  34104. },
  34105. this
  34106. )
  34107. }, this),
  34108. i
  34109. )
  34110. }
  34111. }),
  34112. (t.prototype._renderHandle = function () {
  34113. var e = this.group,
  34114. n = this._displayables,
  34115. i = (n.handles = [null, null]),
  34116. a = (n.handleLabels = [null, null]),
  34117. o = this._displayables.sliderGroup,
  34118. s = this._size,
  34119. l = this.dataZoomModel,
  34120. u = this.api,
  34121. f = l.get('borderRadius') || 0,
  34122. h = l.get('brushSelect'),
  34123. c = (n.filler = new Ja({
  34124. silent: h,
  34125. style: { fill: l.get('fillerColor') },
  34126. textConfig: { position: 'inside' }
  34127. }))
  34128. o.add(c),
  34129. o.add(
  34130. new Ja({
  34131. silent: !0,
  34132. subPixelOptimize: !0,
  34133. shape: { x: 0, y: 0, width: s[0], height: s[1], r: f },
  34134. style: {
  34135. stroke: l.get('dataBackgroundColor') || l.get('borderColor'),
  34136. lineWidth: EO,
  34137. fill: 'rgba(0,0,0,0)'
  34138. }
  34139. })
  34140. ),
  34141. A(
  34142. [0, 1],
  34143. function (_) {
  34144. var S = l.get('handleIcon')
  34145. !zs[S] &&
  34146. S.indexOf('path://') < 0 &&
  34147. S.indexOf('image://') < 0 &&
  34148. (S = 'path://' + S)
  34149. var w = Or(S, -1, 0, 2, 2, null, !0)
  34150. w.attr({
  34151. cursor: V1(this._orient),
  34152. draggable: !0,
  34153. drift: X(this._onDragMove, this, _),
  34154. ondragend: X(this._onDragEnd, this),
  34155. onmouseover: X(this._showDataInfo, this, !0),
  34156. onmouseout: X(this._showDataInfo, this, !1),
  34157. z2: 5
  34158. })
  34159. var x = w.getBoundingRect(),
  34160. b = l.get('handleSize')
  34161. ;(this._handleHeight = yt(b, this._size[1])),
  34162. (this._handleWidth = (x.width / x.height) * this._handleHeight),
  34163. w.setStyle(l.getModel('handleStyle').getItemStyle()),
  34164. (w.style.strokeNoScale = !0),
  34165. (w.rectHover = !0),
  34166. (w.ensureState('emphasis').style = l
  34167. .getModel(['emphasis', 'handleStyle'])
  34168. .getItemStyle()),
  34169. qo(w)
  34170. var T = l.get('handleColor')
  34171. T != null && (w.style.fill = T), o.add((i[_] = w))
  34172. var C = l.getModel('textStyle')
  34173. e.add(
  34174. (a[_] = new Et({
  34175. silent: !0,
  34176. invisible: !0,
  34177. style: vr(C, {
  34178. x: 0,
  34179. y: 0,
  34180. text: '',
  34181. verticalAlign: 'middle',
  34182. align: 'center',
  34183. fill: C.getTextColor(),
  34184. font: C.getFont()
  34185. }),
  34186. z2: 10
  34187. }))
  34188. )
  34189. },
  34190. this
  34191. )
  34192. var v = c
  34193. if (h) {
  34194. var d = yt(l.get('moveHandleSize'), s[1]),
  34195. p = (n.moveHandle = new St({
  34196. style: l.getModel('moveHandleStyle').getItemStyle(),
  34197. silent: !0,
  34198. shape: { r: [0, 0, 2, 2], y: s[1] - 0.5, height: d }
  34199. })),
  34200. g = d * 0.8,
  34201. m = (n.moveHandleIcon = Or(
  34202. l.get('moveHandleIcon'),
  34203. -g / 2,
  34204. -g / 2,
  34205. g,
  34206. g,
  34207. '#fff',
  34208. !0
  34209. ))
  34210. ;(m.silent = !0),
  34211. (m.y = s[1] + d / 2 - 0.5),
  34212. (p.ensureState('emphasis').style = l
  34213. .getModel(['emphasis', 'moveHandleStyle'])
  34214. .getItemStyle())
  34215. var y = Math.min(s[1] / 2, Math.max(d, 10))
  34216. ;(v = n.moveZone =
  34217. new St({ invisible: !0, shape: { y: s[1] - y, height: d + y } })),
  34218. v
  34219. .on('mouseover', function () {
  34220. u.enterEmphasis(p)
  34221. })
  34222. .on('mouseout', function () {
  34223. u.leaveEmphasis(p)
  34224. }),
  34225. o.add(p),
  34226. o.add(m),
  34227. o.add(v)
  34228. }
  34229. v.attr({
  34230. draggable: !0,
  34231. cursor: V1(this._orient),
  34232. drift: X(this._onDragMove, this, 'all'),
  34233. ondragstart: X(this._showDataInfo, this, !0),
  34234. ondragend: X(this._onDragEnd, this),
  34235. onmouseover: X(this._showDataInfo, this, !0),
  34236. onmouseout: X(this._showDataInfo, this, !1)
  34237. })
  34238. }),
  34239. (t.prototype._resetInterval = function () {
  34240. var e = (this._range = this.dataZoomModel.getPercentRange()),
  34241. n = this._getViewExtent()
  34242. this._handleEnds = [
  34243. Bt(e[0], [0, 100], n, !0),
  34244. Bt(e[1], [0, 100], n, !0)
  34245. ]
  34246. }),
  34247. (t.prototype._updateInterval = function (e, n) {
  34248. var i = this.dataZoomModel,
  34249. a = this._handleEnds,
  34250. o = this._getViewExtent(),
  34251. s = i.findRepresentativeAxisProxy().getMinMaxSpan(),
  34252. l = [0, 100]
  34253. Za(
  34254. n,
  34255. a,
  34256. o,
  34257. i.get('zoomLock') ? 'all' : e,
  34258. s.minSpan != null ? Bt(s.minSpan, l, o, !0) : null,
  34259. s.maxSpan != null ? Bt(s.maxSpan, l, o, !0) : null
  34260. )
  34261. var u = this._range,
  34262. f = (this._range = Xi([Bt(a[0], o, l, !0), Bt(a[1], o, l, !0)]))
  34263. return !u || u[0] !== f[0] || u[1] !== f[1]
  34264. }),
  34265. (t.prototype._updateView = function (e) {
  34266. var n = this._displayables,
  34267. i = this._handleEnds,
  34268. a = Xi(i.slice()),
  34269. o = this._size
  34270. A(
  34271. [0, 1],
  34272. function (v) {
  34273. var d = n.handles[v],
  34274. p = this._handleHeight
  34275. d.attr({
  34276. scaleX: p / 2,
  34277. scaleY: p / 2,
  34278. x: i[v] + (v ? -1 : 1),
  34279. y: o[1] / 2 - p / 2
  34280. })
  34281. },
  34282. this
  34283. ),
  34284. n.filler.setShape({ x: a[0], y: 0, width: a[1] - a[0], height: o[1] })
  34285. var s = { x: a[0], width: a[1] - a[0] }
  34286. n.moveHandle &&
  34287. (n.moveHandle.setShape(s),
  34288. n.moveZone.setShape(s),
  34289. n.moveZone.getBoundingRect(),
  34290. n.moveHandleIcon && n.moveHandleIcon.attr('x', s.x + s.width / 2))
  34291. for (
  34292. var l = n.dataShadowSegs, u = [0, a[0], a[1], o[0]], f = 0;
  34293. f < l.length;
  34294. f++
  34295. ) {
  34296. var h = l[f],
  34297. c = h.getClipPath()
  34298. c || ((c = new St()), h.setClipPath(c)),
  34299. c.setShape({ x: u[f], y: 0, width: u[f + 1] - u[f], height: o[1] })
  34300. }
  34301. this._updateDataInfo(e)
  34302. }),
  34303. (t.prototype._updateDataInfo = function (e) {
  34304. var n = this.dataZoomModel,
  34305. i = this._displayables,
  34306. a = i.handleLabels,
  34307. o = this._orient,
  34308. s = ['', '']
  34309. if (n.get('showDetail')) {
  34310. var l = n.findRepresentativeAxisProxy()
  34311. if (l) {
  34312. var u = l.getAxisModel().axis,
  34313. f = this._range,
  34314. h = e
  34315. ? l.calculateDataWindow({ start: f[0], end: f[1] }).valueWindow
  34316. : l.getDataValueWindow()
  34317. s = [this._formatLabel(h[0], u), this._formatLabel(h[1], u)]
  34318. }
  34319. }
  34320. var c = Xi(this._handleEnds.slice())
  34321. v.call(this, 0), v.call(this, 1)
  34322. function v(d) {
  34323. var p = ls(i.handles[d].parent, this.group),
  34324. g = hf(d === 0 ? 'right' : 'left', p),
  34325. m = this._handleWidth / 2 + kO,
  34326. y = fa([c[d] + (d === 0 ? -m : m), this._size[1] / 2], p)
  34327. a[d].setStyle({
  34328. x: y[0],
  34329. y: y[1],
  34330. verticalAlign: o === ja ? 'middle' : g,
  34331. align: o === ja ? g : 'center',
  34332. text: s[d]
  34333. })
  34334. }
  34335. }),
  34336. (t.prototype._formatLabel = function (e, n) {
  34337. var i = this.dataZoomModel,
  34338. a = i.get('labelFormatter'),
  34339. o = i.get('labelPrecision')
  34340. ;(o == null || o === 'auto') && (o = n.getPixelPrecision())
  34341. var s =
  34342. e == null || isNaN(e)
  34343. ? ''
  34344. : n.type === 'category' || n.type === 'time'
  34345. ? n.scale.getLabel({ value: Math.round(e) })
  34346. : e.toFixed(Math.min(o, 20))
  34347. return Q(a) ? a(e, s) : W(a) ? a.replace('{value}', s) : s
  34348. }),
  34349. (t.prototype._showDataInfo = function (e) {
  34350. e = this._dragging || e
  34351. var n = this._displayables,
  34352. i = n.handleLabels
  34353. i[0].attr('invisible', !e),
  34354. i[1].attr('invisible', !e),
  34355. n.moveHandle &&
  34356. this.api[e ? 'enterEmphasis' : 'leaveEmphasis'](n.moveHandle, 1)
  34357. }),
  34358. (t.prototype._onDragMove = function (e, n, i, a) {
  34359. ;(this._dragging = !0), Hn(a.event)
  34360. var o = this._displayables.sliderGroup.getLocalTransform(),
  34361. s = fa([n, i], o, !0),
  34362. l = this._updateInterval(e, s[0]),
  34363. u = this.dataZoomModel.get('realtime')
  34364. this._updateView(!u), l && u && this._dispatchZoomAction(!0)
  34365. }),
  34366. (t.prototype._onDragEnd = function () {
  34367. ;(this._dragging = !1), this._showDataInfo(!1)
  34368. var e = this.dataZoomModel.get('realtime')
  34369. !e && this._dispatchZoomAction(!1)
  34370. }),
  34371. (t.prototype._onClickPanel = function (e) {
  34372. var n = this._size,
  34373. i = this._displayables.sliderGroup.transformCoordToLocal(
  34374. e.offsetX,
  34375. e.offsetY
  34376. )
  34377. if (!(i[0] < 0 || i[0] > n[0] || i[1] < 0 || i[1] > n[1])) {
  34378. var a = this._handleEnds,
  34379. o = (a[0] + a[1]) / 2,
  34380. s = this._updateInterval('all', i[0] - o)
  34381. this._updateView(), s && this._dispatchZoomAction(!1)
  34382. }
  34383. }),
  34384. (t.prototype._onBrushStart = function (e) {
  34385. var n = e.offsetX,
  34386. i = e.offsetY
  34387. ;(this._brushStart = new Z(n, i)),
  34388. (this._brushing = !0),
  34389. (this._brushStartTime = +new Date())
  34390. }),
  34391. (t.prototype._onBrushEnd = function (e) {
  34392. if (!!this._brushing) {
  34393. var n = this._displayables.brushRect
  34394. if (((this._brushing = !1), !!n)) {
  34395. n.attr('ignore', !0)
  34396. var i = n.shape,
  34397. a = +new Date()
  34398. if (!(a - this._brushStartTime < 200 && Math.abs(i.width) < 5)) {
  34399. var o = this._getViewExtent(),
  34400. s = [0, 100]
  34401. ;(this._range = Xi([
  34402. Bt(i.x, o, s, !0),
  34403. Bt(i.x + i.width, o, s, !0)
  34404. ])),
  34405. (this._handleEnds = [i.x, i.x + i.width]),
  34406. this._updateView(),
  34407. this._dispatchZoomAction(!1)
  34408. }
  34409. }
  34410. }
  34411. }),
  34412. (t.prototype._onBrush = function (e) {
  34413. this._brushing &&
  34414. (Hn(e.event), this._updateBrushRect(e.offsetX, e.offsetY))
  34415. }),
  34416. (t.prototype._updateBrushRect = function (e, n) {
  34417. var i = this._displayables,
  34418. a = this.dataZoomModel,
  34419. o = i.brushRect
  34420. o ||
  34421. ((o = i.brushRect =
  34422. new Ja({
  34423. silent: !0,
  34424. style: a.getModel('brushStyle').getItemStyle()
  34425. })),
  34426. i.sliderGroup.add(o)),
  34427. o.attr('ignore', !1)
  34428. var s = this._brushStart,
  34429. l = this._displayables.sliderGroup,
  34430. u = l.transformCoordToLocal(e, n),
  34431. f = l.transformCoordToLocal(s.x, s.y),
  34432. h = this._size
  34433. ;(u[0] = Math.max(Math.min(h[0], u[0]), 0)),
  34434. o.setShape({ x: f[0], y: 0, width: u[0] - f[0], height: h[1] })
  34435. }),
  34436. (t.prototype._dispatchZoomAction = function (e) {
  34437. var n = this._range
  34438. this.api.dispatchAction({
  34439. type: 'dataZoom',
  34440. from: this.uid,
  34441. dataZoomId: this.dataZoomModel.id,
  34442. animation: e ? NO : null,
  34443. start: n[0],
  34444. end: n[1]
  34445. })
  34446. }),
  34447. (t.prototype._findCoordRect = function () {
  34448. var e,
  34449. n = e1(this.dataZoomModel).infoList
  34450. if (!e && n.length) {
  34451. var i = n[0].model.coordinateSystem
  34452. e = i.getRect && i.getRect()
  34453. }
  34454. if (!e) {
  34455. var a = this.api.getWidth(),
  34456. o = this.api.getHeight()
  34457. e = { x: a * 0.2, y: o * 0.2, width: a * 0.6, height: o * 0.6 }
  34458. }
  34459. return e
  34460. }),
  34461. (t.type = 'dataZoom.slider'),
  34462. t
  34463. )
  34464. })(hv)
  34465. function zO(r) {
  34466. var t = { x: 'y', y: 'x', radius: 'angle', angle: 'radius' }
  34467. return t[r]
  34468. }
  34469. function V1(r) {
  34470. return r === 'vertical' ? 'ns-resize' : 'ew-resize'
  34471. }
  34472. var VO = FO
  34473. function GO(r) {
  34474. r.registerComponentModel(RO), r.registerComponentView(VO), vv(r)
  34475. }
  34476. function HO(r) {
  34477. Re(LO), Re(GO)
  34478. }
  34479. var G1 = {
  34480. value: 'eq',
  34481. '<': 'lt',
  34482. '<=': 'lte',
  34483. '>': 'gt',
  34484. '>=': 'gte',
  34485. '=': 'eq',
  34486. '!=': 'ne',
  34487. '<>': 'ne'
  34488. },
  34489. WO = (function () {
  34490. function r(t) {
  34491. var e = (this._condVal = W(t) ? new RegExp(t) : Mx(t) ? t : null)
  34492. if (e == null) {
  34493. var n = ''
  34494. ut(n)
  34495. }
  34496. }
  34497. return (
  34498. (r.prototype.evaluate = function (t) {
  34499. var e = typeof t
  34500. return W(e)
  34501. ? this._condVal.test(t)
  34502. : dt(e)
  34503. ? this._condVal.test(t + '')
  34504. : !1
  34505. }),
  34506. r
  34507. )
  34508. })(),
  34509. UO = (function () {
  34510. function r() {}
  34511. return (
  34512. (r.prototype.evaluate = function () {
  34513. return this.value
  34514. }),
  34515. r
  34516. )
  34517. })(),
  34518. YO = (function () {
  34519. function r() {}
  34520. return (
  34521. (r.prototype.evaluate = function () {
  34522. for (var t = this.children, e = 0; e < t.length; e++)
  34523. if (!t[e].evaluate()) return !1
  34524. return !0
  34525. }),
  34526. r
  34527. )
  34528. })(),
  34529. ZO = (function () {
  34530. function r() {}
  34531. return (
  34532. (r.prototype.evaluate = function () {
  34533. for (var t = this.children, e = 0; e < t.length; e++)
  34534. if (t[e].evaluate()) return !0
  34535. return !1
  34536. }),
  34537. r
  34538. )
  34539. })(),
  34540. $O = (function () {
  34541. function r() {}
  34542. return (
  34543. (r.prototype.evaluate = function () {
  34544. return !this.child.evaluate()
  34545. }),
  34546. r
  34547. )
  34548. })(),
  34549. XO = (function () {
  34550. function r() {}
  34551. return (
  34552. (r.prototype.evaluate = function () {
  34553. for (
  34554. var t = !!this.valueParser,
  34555. e = this.getValue,
  34556. n = e(this.valueGetterParam),
  34557. i = t ? this.valueParser(n) : null,
  34558. a = 0;
  34559. a < this.subCondList.length;
  34560. a++
  34561. )
  34562. if (!this.subCondList[a].evaluate(t ? i : n)) return !1
  34563. return !0
  34564. }),
  34565. r
  34566. )
  34567. })()
  34568. function Lv(r, t) {
  34569. if (r === !0 || r === !1) {
  34570. var e = new UO()
  34571. return (e.value = r), e
  34572. }
  34573. var n = ''
  34574. return (
  34575. W1(r) || ut(n),
  34576. r.and
  34577. ? H1('and', r, t)
  34578. : r.or
  34579. ? H1('or', r, t)
  34580. : r.not
  34581. ? qO(r, t)
  34582. : KO(r, t)
  34583. )
  34584. }
  34585. function H1(r, t, e) {
  34586. var n = t[r],
  34587. i = ''
  34588. z(n) || ut(i), n.length || ut(i)
  34589. var a = r === 'and' ? new YO() : new ZO()
  34590. return (
  34591. (a.children = G(n, function (o) {
  34592. return Lv(o, e)
  34593. })),
  34594. a.children.length || ut(i),
  34595. a
  34596. )
  34597. }
  34598. function qO(r, t) {
  34599. var e = r.not,
  34600. n = ''
  34601. W1(e) || ut(n)
  34602. var i = new $O()
  34603. return (i.child = Lv(e, t)), i.child || ut(n), i
  34604. }
  34605. function KO(r, t) {
  34606. for (
  34607. var e = '',
  34608. n = t.prepareGetValue(r),
  34609. i = [],
  34610. a = xt(r),
  34611. o = r.parser,
  34612. s = o ? Xg(o) : null,
  34613. l = 0;
  34614. l < a.length;
  34615. l++
  34616. ) {
  34617. var u = a[l]
  34618. if (!(u === 'parser' || t.valueGetterAttrMap.get(u))) {
  34619. var f = nr(G1, u) ? G1[u] : u,
  34620. h = r[u],
  34621. c = s ? s(h) : h,
  34622. v = eM(f, c) || (f === 'reg' && new WO(c))
  34623. v || ut(e), i.push(v)
  34624. }
  34625. }
  34626. i.length || ut(e)
  34627. var d = new XO()
  34628. return (
  34629. (d.valueGetterParam = n),
  34630. (d.valueParser = s),
  34631. (d.getValue = t.getValue),
  34632. (d.subCondList = i),
  34633. d
  34634. )
  34635. }
  34636. function W1(r) {
  34637. return Y(r) && !Zt(r)
  34638. }
  34639. var QO = (function () {
  34640. function r(t, e) {
  34641. this._cond = Lv(t, e)
  34642. }
  34643. return (
  34644. (r.prototype.evaluate = function () {
  34645. return this._cond.evaluate()
  34646. }),
  34647. r
  34648. )
  34649. })()
  34650. function JO(r, t) {
  34651. return new QO(r, t)
  34652. }
  34653. var jO = {
  34654. type: 'echarts:filter',
  34655. transform: function (r) {
  34656. for (
  34657. var t = r.upstream,
  34658. e,
  34659. n = JO(r.config, {
  34660. valueGetterAttrMap: q({ dimension: !0 }),
  34661. prepareGetValue: function (s) {
  34662. var l = '',
  34663. u = s.dimension
  34664. nr(s, 'dimension') || ut(l)
  34665. var f = t.getDimensionInfo(u)
  34666. return f || ut(l), { dimIdx: f.index }
  34667. },
  34668. getValue: function (s) {
  34669. return t.retrieveValueFromItem(e, s.dimIdx)
  34670. }
  34671. }),
  34672. i = [],
  34673. a = 0,
  34674. o = t.count();
  34675. a < o;
  34676. a++
  34677. )
  34678. (e = t.getRawDataItem(a)), n.evaluate() && i.push(e)
  34679. return { data: i }
  34680. }
  34681. },
  34682. tk = {
  34683. type: 'echarts:sort',
  34684. transform: function (r) {
  34685. var t = r.upstream,
  34686. e = r.config,
  34687. n = '',
  34688. i = Mt(e)
  34689. i.length || ut(n)
  34690. var a = []
  34691. A(i, function (f) {
  34692. var h = f.dimension,
  34693. c = f.order,
  34694. v = f.parser,
  34695. d = f.incomparable
  34696. if (
  34697. (h == null && ut(n),
  34698. c !== 'asc' && c !== 'desc' && ut(n),
  34699. d && d !== 'min' && d !== 'max')
  34700. ) {
  34701. var p = ''
  34702. ut(p)
  34703. }
  34704. if (c !== 'asc' && c !== 'desc') {
  34705. var g = ''
  34706. ut(g)
  34707. }
  34708. var m = t.getDimensionInfo(h)
  34709. m || ut(n)
  34710. var y = v ? Xg(v) : null
  34711. v && !y && ut(n),
  34712. a.push({ dimIdx: m.index, parser: y, comparator: new Kg(c, d) })
  34713. })
  34714. var o = t.sourceFormat
  34715. o !== Kt && o !== _e && ut(n)
  34716. for (var s = [], l = 0, u = t.count(); l < u; l++)
  34717. s.push(t.getRawDataItem(l))
  34718. return (
  34719. s.sort(function (f, h) {
  34720. for (var c = 0; c < a.length; c++) {
  34721. var v = a[c],
  34722. d = t.retrieveValueFromItem(f, v.dimIdx),
  34723. p = t.retrieveValueFromItem(h, v.dimIdx)
  34724. v.parser && ((d = v.parser(d)), (p = v.parser(p)))
  34725. var g = v.comparator.evaluate(d, p)
  34726. if (g !== 0) return g
  34727. }
  34728. return 0
  34729. }),
  34730. { data: s }
  34731. )
  34732. }
  34733. }
  34734. function ek(r) {
  34735. r.registerTransform(jO), r.registerTransform(tk)
  34736. }
  34737. var rk = (function (r) {
  34738. B(t, r)
  34739. function t() {
  34740. var e = (r !== null && r.apply(this, arguments)) || this
  34741. return (e.type = 'dataset'), e
  34742. }
  34743. return (
  34744. (t.prototype.init = function (e, n, i) {
  34745. r.prototype.init.call(this, e, n, i),
  34746. (this._sourceManager = new rm(this)),
  34747. nm(this)
  34748. }),
  34749. (t.prototype.mergeOption = function (e, n) {
  34750. r.prototype.mergeOption.call(this, e, n), nm(this)
  34751. }),
  34752. (t.prototype.optionUpdated = function () {
  34753. this._sourceManager.dirty()
  34754. }),
  34755. (t.prototype.getSourceManager = function () {
  34756. return this._sourceManager
  34757. }),
  34758. (t.type = 'dataset'),
  34759. (t.defaultOption = { seriesLayoutBy: Ke }),
  34760. t
  34761. )
  34762. })(_t),
  34763. nk = (function (r) {
  34764. B(t, r)
  34765. function t() {
  34766. var e = (r !== null && r.apply(this, arguments)) || this
  34767. return (e.type = 'dataset'), e
  34768. }
  34769. return (t.type = 'dataset'), t
  34770. })(xe)
  34771. function ik(r) {
  34772. r.registerComponentModel(rk), r.registerComponentView(nk)
  34773. }
  34774. var er = ur.CMD
  34775. function Ai(r, t) {
  34776. return Math.abs(r - t) < 1e-5
  34777. }
  34778. function Pv(r) {
  34779. var t = r.data,
  34780. e = r.len(),
  34781. n = [],
  34782. i,
  34783. a = 0,
  34784. o = 0,
  34785. s = 0,
  34786. l = 0
  34787. function u(L, P) {
  34788. i && i.length > 2 && n.push(i), (i = [L, P])
  34789. }
  34790. function f(L, P, R, O) {
  34791. ;(Ai(L, R) && Ai(P, O)) || i.push(L, P, R, O, R, O)
  34792. }
  34793. function h(L, P, R, O, U, k) {
  34794. var F = Math.abs(P - L),
  34795. H = (Math.tan(F / 4) * 4) / 3,
  34796. $ = P < L ? -1 : 1,
  34797. J = Math.cos(L),
  34798. et = Math.sin(L),
  34799. ft = Math.cos(P),
  34800. Ct = Math.sin(P),
  34801. mt = J * U + R,
  34802. zt = et * k + O,
  34803. Vt = ft * U + R,
  34804. It = Ct * k + O,
  34805. bt = U * H * $,
  34806. K = k * H * $
  34807. i.push(mt - bt * et, zt + K * J, Vt + bt * Ct, It - K * ft, Vt, It)
  34808. }
  34809. for (var c, v, d, p, g = 0; g < e; ) {
  34810. var m = t[g++],
  34811. y = g === 1
  34812. switch (
  34813. (y &&
  34814. ((a = t[g]),
  34815. (o = t[g + 1]),
  34816. (s = a),
  34817. (l = o),
  34818. (m === er.L || m === er.C || m === er.Q) && (i = [s, l])),
  34819. m)
  34820. ) {
  34821. case er.M:
  34822. ;(a = s = t[g++]), (o = l = t[g++]), u(s, l)
  34823. break
  34824. case er.L:
  34825. ;(c = t[g++]), (v = t[g++]), f(a, o, c, v), (a = c), (o = v)
  34826. break
  34827. case er.C:
  34828. i.push(t[g++], t[g++], t[g++], t[g++], (a = t[g++]), (o = t[g++]))
  34829. break
  34830. case er.Q:
  34831. ;(c = t[g++]),
  34832. (v = t[g++]),
  34833. (d = t[g++]),
  34834. (p = t[g++]),
  34835. i.push(
  34836. a + (2 / 3) * (c - a),
  34837. o + (2 / 3) * (v - o),
  34838. d + (2 / 3) * (c - d),
  34839. p + (2 / 3) * (v - p),
  34840. d,
  34841. p
  34842. ),
  34843. (a = d),
  34844. (o = p)
  34845. break
  34846. case er.A:
  34847. var _ = t[g++],
  34848. S = t[g++],
  34849. w = t[g++],
  34850. x = t[g++],
  34851. b = t[g++],
  34852. T = t[g++] + b
  34853. g += 1
  34854. var C = !t[g++]
  34855. ;(c = Math.cos(b) * w + _),
  34856. (v = Math.sin(b) * x + S),
  34857. y ? ((s = c), (l = v), u(s, l)) : f(a, o, c, v),
  34858. (a = Math.cos(T) * w + _),
  34859. (o = Math.sin(T) * x + S)
  34860. for (
  34861. var M = ((C ? -1 : 1) * Math.PI) / 2, D = b;
  34862. C ? D > T : D < T;
  34863. D += M
  34864. ) {
  34865. var I = C ? Math.max(D + M, T) : Math.min(D + M, T)
  34866. h(D, I, _, S, w, x)
  34867. }
  34868. break
  34869. case er.R:
  34870. ;(s = a = t[g++]),
  34871. (l = o = t[g++]),
  34872. (c = s + t[g++]),
  34873. (v = l + t[g++]),
  34874. u(c, l),
  34875. f(c, l, c, v),
  34876. f(c, v, s, v),
  34877. f(s, v, s, l),
  34878. f(s, l, c, l)
  34879. break
  34880. case er.Z:
  34881. i && f(a, o, s, l), (a = s), (o = l)
  34882. break
  34883. }
  34884. }
  34885. return i && i.length > 2 && n.push(i), n
  34886. }
  34887. function Rv(r, t, e, n, i, a, o, s, l, u) {
  34888. if (Ai(r, e) && Ai(t, n) && Ai(i, o) && Ai(a, s)) {
  34889. l.push(o, s)
  34890. return
  34891. }
  34892. var f = 2 / u,
  34893. h = f * f,
  34894. c = o - r,
  34895. v = s - t,
  34896. d = Math.sqrt(c * c + v * v)
  34897. ;(c /= d), (v /= d)
  34898. var p = e - r,
  34899. g = n - t,
  34900. m = i - o,
  34901. y = a - s,
  34902. _ = p * p + g * g,
  34903. S = m * m + y * y
  34904. if (_ < h && S < h) {
  34905. l.push(o, s)
  34906. return
  34907. }
  34908. var w = c * p + v * g,
  34909. x = -c * m - v * y,
  34910. b = _ - w * w,
  34911. T = S - x * x
  34912. if (b < h && w >= 0 && T < h && x >= 0) {
  34913. l.push(o, s)
  34914. return
  34915. }
  34916. var C = [],
  34917. M = []
  34918. br(r, e, i, o, 0.5, C),
  34919. br(t, n, a, s, 0.5, M),
  34920. Rv(C[0], M[0], C[1], M[1], C[2], M[2], C[3], M[3], l, u),
  34921. Rv(C[4], M[4], C[5], M[5], C[6], M[6], C[7], M[7], l, u)
  34922. }
  34923. function ak(r, t) {
  34924. var e = Pv(r),
  34925. n = []
  34926. t = t || 1
  34927. for (var i = 0; i < e.length; i++) {
  34928. var a = e[i],
  34929. o = [],
  34930. s = a[0],
  34931. l = a[1]
  34932. o.push(s, l)
  34933. for (var u = 2; u < a.length; ) {
  34934. var f = a[u++],
  34935. h = a[u++],
  34936. c = a[u++],
  34937. v = a[u++],
  34938. d = a[u++],
  34939. p = a[u++]
  34940. Rv(s, l, f, h, c, v, d, p, o, t), (s = d), (l = p)
  34941. }
  34942. n.push(o)
  34943. }
  34944. return n
  34945. }
  34946. function U1(r, t, e) {
  34947. var n = r[t],
  34948. i = r[1 - t],
  34949. a = Math.abs(n / i),
  34950. o = Math.ceil(Math.sqrt(a * e)),
  34951. s = Math.floor(e / o)
  34952. s === 0 && ((s = 1), (o = e))
  34953. for (var l = [], u = 0; u < o; u++) l.push(s)
  34954. var f = o * s,
  34955. h = e - f
  34956. if (h > 0) for (var u = 0; u < h; u++) l[u % o] += 1
  34957. return l
  34958. }
  34959. function Y1(r, t, e) {
  34960. for (
  34961. var n = r.r0,
  34962. i = r.r,
  34963. a = r.startAngle,
  34964. o = r.endAngle,
  34965. s = Math.abs(o - a),
  34966. l = s * i,
  34967. u = i - n,
  34968. f = l > Math.abs(u),
  34969. h = U1([l, u], f ? 0 : 1, t),
  34970. c = (f ? s : u) / h.length,
  34971. v = 0;
  34972. v < h.length;
  34973. v++
  34974. )
  34975. for (var d = (f ? u : s) / h[v], p = 0; p < h[v]; p++) {
  34976. var g = {}
  34977. f
  34978. ? ((g.startAngle = a + c * v),
  34979. (g.endAngle = a + c * (v + 1)),
  34980. (g.r0 = n + d * p),
  34981. (g.r = n + d * (p + 1)))
  34982. : ((g.startAngle = a + d * p),
  34983. (g.endAngle = a + d * (p + 1)),
  34984. (g.r0 = n + c * v),
  34985. (g.r = n + c * (v + 1))),
  34986. (g.clockwise = r.clockwise),
  34987. (g.cx = r.cx),
  34988. (g.cy = r.cy),
  34989. e.push(g)
  34990. }
  34991. }
  34992. function ok(r, t, e) {
  34993. for (
  34994. var n = r.width,
  34995. i = r.height,
  34996. a = n > i,
  34997. o = U1([n, i], a ? 0 : 1, t),
  34998. s = a ? 'width' : 'height',
  34999. l = a ? 'height' : 'width',
  35000. u = a ? 'x' : 'y',
  35001. f = a ? 'y' : 'x',
  35002. h = r[s] / o.length,
  35003. c = 0;
  35004. c < o.length;
  35005. c++
  35006. )
  35007. for (var v = r[l] / o[c], d = 0; d < o[c]; d++) {
  35008. var p = {}
  35009. ;(p[u] = c * h),
  35010. (p[f] = d * v),
  35011. (p[s] = h),
  35012. (p[l] = v),
  35013. (p.x += r.x),
  35014. (p.y += r.y),
  35015. e.push(p)
  35016. }
  35017. }
  35018. function Z1(r, t, e, n) {
  35019. return r * n - e * t
  35020. }
  35021. function sk(r, t, e, n, i, a, o, s) {
  35022. var l = e - r,
  35023. u = n - t,
  35024. f = o - i,
  35025. h = s - a,
  35026. c = Z1(f, h, l, u)
  35027. if (Math.abs(c) < 1e-6) return null
  35028. var v = r - i,
  35029. d = t - a,
  35030. p = Z1(v, d, f, h) / c
  35031. return p < 0 || p > 1 ? null : new Z(p * l + r, p * u + t)
  35032. }
  35033. function lk(r, t, e) {
  35034. var n = new Z()
  35035. Z.sub(n, e, t), n.normalize()
  35036. var i = new Z()
  35037. Z.sub(i, r, t)
  35038. var a = i.dot(n)
  35039. return a
  35040. }
  35041. function Mi(r, t) {
  35042. var e = r[r.length - 1]
  35043. ;(e && e[0] === t[0] && e[1] === t[1]) || r.push(t)
  35044. }
  35045. function uk(r, t, e) {
  35046. for (var n = r.length, i = [], a = 0; a < n; a++) {
  35047. var o = r[a],
  35048. s = r[(a + 1) % n],
  35049. l = sk(o[0], o[1], s[0], s[1], t.x, t.y, e.x, e.y)
  35050. l && i.push({ projPt: lk(l, t, e), pt: l, idx: a })
  35051. }
  35052. if (i.length < 2) return [{ points: r }, { points: r }]
  35053. i.sort(function (g, m) {
  35054. return g.projPt - m.projPt
  35055. })
  35056. var u = i[0],
  35057. f = i[i.length - 1]
  35058. if (f.idx < u.idx) {
  35059. var h = u
  35060. ;(u = f), (f = h)
  35061. }
  35062. for (
  35063. var c = [u.pt.x, u.pt.y],
  35064. v = [f.pt.x, f.pt.y],
  35065. d = [c],
  35066. p = [v],
  35067. a = u.idx + 1;
  35068. a <= f.idx;
  35069. a++
  35070. )
  35071. Mi(d, r[a].slice())
  35072. Mi(d, v), Mi(d, c)
  35073. for (var a = f.idx + 1; a <= u.idx + n; a++) Mi(p, r[a % n].slice())
  35074. return Mi(p, c), Mi(p, v), [{ points: d }, { points: p }]
  35075. }
  35076. function $1(r) {
  35077. var t = r.points,
  35078. e = [],
  35079. n = []
  35080. pd(t, e, n)
  35081. var i = new vt(e[0], e[1], n[0] - e[0], n[1] - e[1]),
  35082. a = i.width,
  35083. o = i.height,
  35084. s = i.x,
  35085. l = i.y,
  35086. u = new Z(),
  35087. f = new Z()
  35088. return (
  35089. a > o
  35090. ? ((u.x = f.x = s + a / 2), (u.y = l), (f.y = l + o))
  35091. : ((u.y = f.y = l + o / 2), (u.x = s), (f.x = s + a)),
  35092. uk(t, u, f)
  35093. )
  35094. }
  35095. function Sl(r, t, e, n) {
  35096. if (e === 1) n.push(t)
  35097. else {
  35098. var i = Math.floor(e / 2),
  35099. a = r(t)
  35100. Sl(r, a[0], i, n), Sl(r, a[1], e - i, n)
  35101. }
  35102. return n
  35103. }
  35104. function fk(r, t) {
  35105. for (var e = [], n = 0; n < t; n++) e.push(rf(r))
  35106. return e
  35107. }
  35108. function hk(r, t) {
  35109. t.setStyle(r.style), (t.z = r.z), (t.z2 = r.z2), (t.zlevel = r.zlevel)
  35110. }
  35111. function vk(r) {
  35112. for (var t = [], e = 0; e < r.length; ) t.push([r[e++], r[e++]])
  35113. return t
  35114. }
  35115. function ck(r, t) {
  35116. var e = [],
  35117. n = r.shape,
  35118. i
  35119. switch (r.type) {
  35120. case 'rect':
  35121. ok(n, t, e), (i = St)
  35122. break
  35123. case 'sector':
  35124. Y1(n, t, e), (i = hr)
  35125. break
  35126. case 'circle':
  35127. Y1(
  35128. {
  35129. r0: 0,
  35130. r: n.r,
  35131. startAngle: 0,
  35132. endAngle: Math.PI * 2,
  35133. cx: n.cx,
  35134. cy: n.cy
  35135. },
  35136. t,
  35137. e
  35138. ),
  35139. (i = hr)
  35140. break
  35141. default:
  35142. var a = r.getComputedTransform(),
  35143. o = a
  35144. ? Math.sqrt(
  35145. Math.max(a[0] * a[0] + a[1] * a[1], a[2] * a[2] + a[3] * a[3])
  35146. )
  35147. : 1,
  35148. s = G(ak(r.getUpdatedPathProxy(), o), function (m) {
  35149. return vk(m)
  35150. }),
  35151. l = s.length
  35152. if (l === 0) Sl($1, { points: s[0] }, t, e)
  35153. else if (l === t) for (var u = 0; u < l; u++) e.push({ points: s[u] })
  35154. else {
  35155. var f = 0,
  35156. h = G(s, function (m) {
  35157. var y = [],
  35158. _ = []
  35159. pd(m, y, _)
  35160. var S = (_[1] - y[1]) * (_[0] - y[0])
  35161. return (f += S), { poly: m, area: S }
  35162. })
  35163. h.sort(function (m, y) {
  35164. return y.area - m.area
  35165. })
  35166. for (var c = t, u = 0; u < l; u++) {
  35167. var v = h[u]
  35168. if (c <= 0) break
  35169. var d = u === l - 1 ? c : Math.ceil((v.area / f) * t)
  35170. d < 0 || (Sl($1, { points: v.poly }, d, e), (c -= d))
  35171. }
  35172. }
  35173. i = ua
  35174. break
  35175. }
  35176. if (!i) return fk(r, t)
  35177. for (var p = [], u = 0; u < e.length; u++) {
  35178. var g = new i()
  35179. g.setShape(e[u]), hk(r, g), p.push(g)
  35180. }
  35181. return p
  35182. }
  35183. function dk(r, t) {
  35184. var e = r.length,
  35185. n = t.length
  35186. if (e === n) return [r, t]
  35187. for (
  35188. var i = [],
  35189. a = [],
  35190. o = e < n ? r : t,
  35191. s = Math.min(e, n),
  35192. l = Math.abs(n - e) / 6,
  35193. u = (s - 2) / 6,
  35194. f = Math.ceil(l / u) + 1,
  35195. h = [o[0], o[1]],
  35196. c = l,
  35197. v = 2;
  35198. v < s;
  35199. ) {
  35200. var d = o[v - 2],
  35201. p = o[v - 1],
  35202. g = o[v++],
  35203. m = o[v++],
  35204. y = o[v++],
  35205. _ = o[v++],
  35206. S = o[v++],
  35207. w = o[v++]
  35208. if (c <= 0) {
  35209. h.push(g, m, y, _, S, w)
  35210. continue
  35211. }
  35212. for (var x = Math.min(c, f - 1) + 1, b = 1; b <= x; b++) {
  35213. var T = b / x
  35214. br(d, g, y, S, T, i),
  35215. br(p, m, _, w, T, a),
  35216. (d = i[3]),
  35217. (p = a[3]),
  35218. h.push(i[1], a[1], i[2], a[2], d, p),
  35219. (g = i[5]),
  35220. (m = a[5]),
  35221. (y = i[6]),
  35222. (_ = a[6])
  35223. }
  35224. c -= x - 1
  35225. }
  35226. return o === r ? [h, t] : [r, h]
  35227. }
  35228. function X1(r, t) {
  35229. for (
  35230. var e = r.length, n = r[e - 2], i = r[e - 1], a = [], o = 0;
  35231. o < t.length;
  35232. )
  35233. (a[o++] = n), (a[o++] = i)
  35234. return a
  35235. }
  35236. function pk(r, t) {
  35237. for (
  35238. var e, n, i, a = [], o = [], s = 0;
  35239. s < Math.max(r.length, t.length);
  35240. s++
  35241. ) {
  35242. var l = r[s],
  35243. u = t[s],
  35244. f = void 0,
  35245. h = void 0
  35246. l
  35247. ? u
  35248. ? ((e = dk(l, u)), (f = e[0]), (h = e[1]), (n = f), (i = h))
  35249. : ((h = X1(i || l, l)), (f = l))
  35250. : ((f = X1(n || u, u)), (h = u)),
  35251. a.push(f),
  35252. o.push(h)
  35253. }
  35254. return [a, o]
  35255. }
  35256. function q1(r) {
  35257. for (
  35258. var t = 0, e = 0, n = 0, i = r.length, a = 0, o = i - 2;
  35259. a < i;
  35260. o = a, a += 2
  35261. ) {
  35262. var s = r[o],
  35263. l = r[o + 1],
  35264. u = r[a],
  35265. f = r[a + 1],
  35266. h = s * f - u * l
  35267. ;(t += h), (e += (s + u) * h), (n += (l + f) * h)
  35268. }
  35269. return t === 0 ? [r[0] || 0, r[1] || 0] : [e / t / 3, n / t / 3, t]
  35270. }
  35271. function gk(r, t, e, n) {
  35272. for (
  35273. var i = (r.length - 2) / 6,
  35274. a = 1 / 0,
  35275. o = 0,
  35276. s = r.length,
  35277. l = s - 2,
  35278. u = 0;
  35279. u < i;
  35280. u++
  35281. ) {
  35282. for (var f = u * 6, h = 0, c = 0; c < s; c += 2) {
  35283. var v = c === 0 ? f : ((f + c - 2) % l) + 2,
  35284. d = r[v] - e[0],
  35285. p = r[v + 1] - e[1],
  35286. g = t[c] - n[0],
  35287. m = t[c + 1] - n[1],
  35288. y = g - d,
  35289. _ = m - p
  35290. h += y * y + _ * _
  35291. }
  35292. h < a && ((a = h), (o = u))
  35293. }
  35294. return o
  35295. }
  35296. function mk(r) {
  35297. for (var t = [], e = r.length, n = 0; n < e; n += 2)
  35298. (t[n] = r[e - n - 2]), (t[n + 1] = r[e - n - 1])
  35299. return t
  35300. }
  35301. function yk(r, t, e, n) {
  35302. for (var i = [], a, o = 0; o < r.length; o++) {
  35303. var s = r[o],
  35304. l = t[o],
  35305. u = q1(s),
  35306. f = q1(l)
  35307. a == null && (a = u[2] < 0 != f[2] < 0)
  35308. var h = [],
  35309. c = [],
  35310. v = 0,
  35311. d = 1 / 0,
  35312. p = [],
  35313. g = s.length
  35314. a && (s = mk(s))
  35315. for (var m = gk(s, l, u, f) * 6, y = g - 2, _ = 0; _ < y; _ += 2) {
  35316. var S = ((m + _) % y) + 2
  35317. ;(h[_ + 2] = s[S] - u[0]), (h[_ + 3] = s[S + 1] - u[1])
  35318. }
  35319. if (((h[0] = s[m] - u[0]), (h[1] = s[m + 1] - u[1]), e > 0))
  35320. for (var w = n / e, x = -n / 2; x <= n / 2; x += w) {
  35321. for (
  35322. var b = Math.sin(x), T = Math.cos(x), C = 0, _ = 0;
  35323. _ < s.length;
  35324. _ += 2
  35325. ) {
  35326. var M = h[_],
  35327. D = h[_ + 1],
  35328. I = l[_] - f[0],
  35329. L = l[_ + 1] - f[1],
  35330. P = I * T - L * b,
  35331. R = I * b + L * T
  35332. ;(p[_] = P), (p[_ + 1] = R)
  35333. var O = P - M,
  35334. U = R - D
  35335. C += O * O + U * U
  35336. }
  35337. if (C < d) {
  35338. ;(d = C), (v = x)
  35339. for (var k = 0; k < p.length; k++) c[k] = p[k]
  35340. }
  35341. }
  35342. else
  35343. for (var F = 0; F < g; F += 2)
  35344. (c[F] = l[F] - f[0]), (c[F + 1] = l[F + 1] - f[1])
  35345. i.push({ from: h, to: c, fromCp: u, toCp: f, rotation: -v })
  35346. }
  35347. return i
  35348. }
  35349. function xl(r) {
  35350. return r.__isCombineMorphing
  35351. }
  35352. var K1 = '__mOriginal_'
  35353. function wl(r, t, e) {
  35354. var n = K1 + t,
  35355. i = r[n] || r[t]
  35356. r[n] || (r[n] = r[t])
  35357. var a = e.replace,
  35358. o = e.after,
  35359. s = e.before
  35360. r[t] = function () {
  35361. var l = arguments,
  35362. u
  35363. return (
  35364. s && s.apply(this, l),
  35365. a ? (u = a.apply(this, l)) : (u = i.apply(this, l)),
  35366. o && o.apply(this, l),
  35367. u
  35368. )
  35369. }
  35370. }
  35371. function to(r, t) {
  35372. var e = K1 + t
  35373. r[e] && ((r[t] = r[e]), (r[e] = null))
  35374. }
  35375. function Q1(r, t) {
  35376. for (var e = 0; e < r.length; e++)
  35377. for (var n = r[e], i = 0; i < n.length; ) {
  35378. var a = n[i],
  35379. o = n[i + 1]
  35380. ;(n[i++] = t[0] * a + t[2] * o + t[4]),
  35381. (n[i++] = t[1] * a + t[3] * o + t[5])
  35382. }
  35383. }
  35384. function J1(r, t) {
  35385. var e = r.getUpdatedPathProxy(),
  35386. n = t.getUpdatedPathProxy(),
  35387. i = pk(Pv(e), Pv(n)),
  35388. a = i[0],
  35389. o = i[1],
  35390. s = r.getComputedTransform(),
  35391. l = t.getComputedTransform()
  35392. function u() {
  35393. this.transform = null
  35394. }
  35395. s && Q1(a, s),
  35396. l && Q1(o, l),
  35397. wl(t, 'updateTransform', { replace: u }),
  35398. (t.transform = null)
  35399. var f = yk(a, o, 10, Math.PI),
  35400. h = []
  35401. wl(t, 'buildPath', {
  35402. replace: function (c) {
  35403. for (var v = t.__morphT, d = 1 - v, p = [], g = 0; g < f.length; g++) {
  35404. var m = f[g],
  35405. y = m.from,
  35406. _ = m.to,
  35407. S = m.rotation * v,
  35408. w = m.fromCp,
  35409. x = m.toCp,
  35410. b = Math.sin(S),
  35411. T = Math.cos(S)
  35412. lo(p, w, x, v)
  35413. for (var C = 0; C < y.length; C += 2) {
  35414. var M = y[C],
  35415. D = y[C + 1],
  35416. I = _[C],
  35417. L = _[C + 1],
  35418. P = M * d + I * v,
  35419. R = D * d + L * v
  35420. ;(h[C] = P * T - R * b + p[0]), (h[C + 1] = P * b + R * T + p[1])
  35421. }
  35422. var O = h[0],
  35423. U = h[1]
  35424. c.moveTo(O, U)
  35425. for (var C = 2; C < y.length; ) {
  35426. var I = h[C++],
  35427. L = h[C++],
  35428. k = h[C++],
  35429. F = h[C++],
  35430. H = h[C++],
  35431. $ = h[C++]
  35432. O === I && U === L && k === H && F === $
  35433. ? c.lineTo(H, $)
  35434. : c.bezierCurveTo(I, L, k, F, H, $),
  35435. (O = H),
  35436. (U = $)
  35437. }
  35438. }
  35439. }
  35440. })
  35441. }
  35442. function Ev(r, t, e) {
  35443. if (!r || !t) return t
  35444. var n = e.done,
  35445. i = e.during
  35446. J1(r, t), (t.__morphT = 0)
  35447. function a() {
  35448. to(t, 'buildPath'),
  35449. to(t, 'updateTransform'),
  35450. (t.__morphT = -1),
  35451. t.createPathProxy(),
  35452. t.dirtyShape()
  35453. }
  35454. return (
  35455. t.animateTo(
  35456. { __morphT: 1 },
  35457. j(
  35458. {
  35459. during: function (o) {
  35460. t.dirtyShape(), i && i(o)
  35461. },
  35462. done: function () {
  35463. a(), n && n()
  35464. }
  35465. },
  35466. e
  35467. )
  35468. ),
  35469. t
  35470. )
  35471. }
  35472. function _k(r, t, e, n, i, a) {
  35473. var o = 16
  35474. ;(r = i === e ? 0 : Math.round((32767 * (r - e)) / (i - e))),
  35475. (t = a === n ? 0 : Math.round((32767 * (t - n)) / (a - n)))
  35476. for (var s = 0, l, u = (1 << o) / 2; u > 0; u /= 2) {
  35477. var f = 0,
  35478. h = 0
  35479. ;(r & u) > 0 && (f = 1),
  35480. (t & u) > 0 && (h = 1),
  35481. (s += u * u * ((3 * f) ^ h)),
  35482. h === 0 &&
  35483. (f === 1 && ((r = u - 1 - r), (t = u - 1 - t)),
  35484. (l = r),
  35485. (r = t),
  35486. (t = l))
  35487. }
  35488. return s
  35489. }
  35490. function bl(r) {
  35491. var t = 1 / 0,
  35492. e = 1 / 0,
  35493. n = -1 / 0,
  35494. i = -1 / 0,
  35495. a = G(r, function (s) {
  35496. var l = s.getBoundingRect(),
  35497. u = s.getComputedTransform(),
  35498. f = l.x + l.width / 2 + (u ? u[4] : 0),
  35499. h = l.y + l.height / 2 + (u ? u[5] : 0)
  35500. return (
  35501. (t = Math.min(f, t)),
  35502. (e = Math.min(h, e)),
  35503. (n = Math.max(f, n)),
  35504. (i = Math.max(h, i)),
  35505. [f, h]
  35506. )
  35507. }),
  35508. o = G(a, function (s, l) {
  35509. return { cp: s, z: _k(s[0], s[1], t, e, n, i), path: r[l] }
  35510. })
  35511. return o
  35512. .sort(function (s, l) {
  35513. return s.z - l.z
  35514. })
  35515. .map(function (s) {
  35516. return s.path
  35517. })
  35518. }
  35519. function j1(r) {
  35520. return ck(r.path, r.count)
  35521. }
  35522. function Ov() {
  35523. return { fromIndividuals: [], toIndividuals: [], count: 0 }
  35524. }
  35525. function Sk(r, t, e) {
  35526. var n = []
  35527. function i(w) {
  35528. for (var x = 0; x < w.length; x++) {
  35529. var b = w[x]
  35530. xl(b) ? i(b.childrenRef()) : b instanceof st && n.push(b)
  35531. }
  35532. }
  35533. i(r)
  35534. var a = n.length
  35535. if (!a) return Ov()
  35536. var o = e.dividePath || j1,
  35537. s = o({ path: t, count: a })
  35538. if (s.length !== a)
  35539. return console.error('Invalid morphing: unmatched splitted path'), Ov()
  35540. ;(n = bl(n)), (s = bl(s))
  35541. for (
  35542. var l = e.done, u = e.during, f = e.individualDelay, h = new Wi(), c = 0;
  35543. c < a;
  35544. c++
  35545. ) {
  35546. var v = n[c],
  35547. d = s[c]
  35548. ;(d.parent = t), d.copyTransform(h), f || J1(v, d)
  35549. }
  35550. ;(t.__isCombineMorphing = !0),
  35551. (t.childrenRef = function () {
  35552. return s
  35553. })
  35554. function p(w) {
  35555. for (var x = 0; x < s.length; x++) s[x].addSelfToZr(w)
  35556. }
  35557. wl(t, 'addSelfToZr', {
  35558. after: function (w) {
  35559. p(w)
  35560. }
  35561. }),
  35562. wl(t, 'removeSelfFromZr', {
  35563. after: function (w) {
  35564. for (var x = 0; x < s.length; x++) s[x].removeSelfFromZr(w)
  35565. }
  35566. })
  35567. function g() {
  35568. ;(t.__isCombineMorphing = !1),
  35569. (t.__morphT = -1),
  35570. (t.childrenRef = null),
  35571. to(t, 'addSelfToZr'),
  35572. to(t, 'removeSelfFromZr')
  35573. }
  35574. var m = s.length
  35575. if (f)
  35576. for (
  35577. var y = m,
  35578. _ = function () {
  35579. y--, y === 0 && (g(), l && l())
  35580. },
  35581. c = 0;
  35582. c < m;
  35583. c++
  35584. ) {
  35585. var S = f
  35586. ? j({ delay: (e.delay || 0) + f(c, m, n[c], s[c]), done: _ }, e)
  35587. : e
  35588. Ev(n[c], s[c], S)
  35589. }
  35590. else
  35591. (t.__morphT = 0),
  35592. t.animateTo(
  35593. { __morphT: 1 },
  35594. j(
  35595. {
  35596. during: function (w) {
  35597. for (var x = 0; x < m; x++) {
  35598. var b = s[x]
  35599. ;(b.__morphT = t.__morphT), b.dirtyShape()
  35600. }
  35601. u && u(w)
  35602. },
  35603. done: function () {
  35604. g()
  35605. for (var w = 0; w < r.length; w++) to(r[w], 'updateTransform')
  35606. l && l()
  35607. }
  35608. },
  35609. e
  35610. )
  35611. )
  35612. return t.__zr && p(t.__zr), { fromIndividuals: n, toIndividuals: s, count: m }
  35613. }
  35614. function xk(r, t, e) {
  35615. var n = t.length,
  35616. i = [],
  35617. a = e.dividePath || j1
  35618. function o(v) {
  35619. for (var d = 0; d < v.length; d++) {
  35620. var p = v[d]
  35621. xl(p) ? o(p.childrenRef()) : p instanceof st && i.push(p)
  35622. }
  35623. }
  35624. if (xl(r)) {
  35625. o(r.childrenRef())
  35626. var s = i.length
  35627. if (s < n) for (var l = 0, u = s; u < n; u++) i.push(rf(i[l++ % s]))
  35628. i.length = n
  35629. } else {
  35630. i = a({ path: r, count: n })
  35631. for (var f = r.getComputedTransform(), u = 0; u < i.length; u++)
  35632. i[u].setLocalTransform(f)
  35633. if (i.length !== n)
  35634. return console.error('Invalid morphing: unmatched splitted path'), Ov()
  35635. }
  35636. ;(i = bl(i)), (t = bl(t))
  35637. for (var h = e.individualDelay, u = 0; u < n; u++) {
  35638. var c = h ? j({ delay: (e.delay || 0) + h(u, n, i[u], t[u]) }, e) : e
  35639. Ev(i[u], t[u], c)
  35640. }
  35641. return { fromIndividuals: i, toIndividuals: t, count: t.length }
  35642. }
  35643. function tS(r) {
  35644. return z(r[0])
  35645. }
  35646. function eS(r, t) {
  35647. for (var e = [], n = r.length, i = 0; i < n; i++)
  35648. e.push({ one: r[i], many: [] })
  35649. for (var i = 0; i < t.length; i++) {
  35650. var a = t[i].length,
  35651. o = void 0
  35652. for (o = 0; o < a; o++) e[o % n].many.push(t[i][o])
  35653. }
  35654. for (var s = 0, i = n - 1; i >= 0; i--)
  35655. if (!e[i].many.length) {
  35656. var l = e[s].many
  35657. if (l.length <= 1)
  35658. if (s) s = 0
  35659. else return e
  35660. var a = l.length,
  35661. u = Math.ceil(a / 2)
  35662. ;(e[i].many = l.slice(u, a)), (e[s].many = l.slice(0, u)), s++
  35663. }
  35664. return e
  35665. }
  35666. var wk = {
  35667. clone: function (r) {
  35668. for (
  35669. var t = [],
  35670. e = 1 - Math.pow(1 - r.path.style.opacity, 1 / r.count),
  35671. n = 0;
  35672. n < r.count;
  35673. n++
  35674. ) {
  35675. var i = rf(r.path)
  35676. i.setStyle('opacity', e), t.push(i)
  35677. }
  35678. return t
  35679. },
  35680. split: null
  35681. }
  35682. function kv(r, t, e, n, i, a) {
  35683. if (!r.length || !t.length) return
  35684. var o = ns('update', n, i)
  35685. if (!(o && o.duration > 0)) return
  35686. var s = n.getModel('universalTransition').get('delay'),
  35687. l = Object.assign({ setToFinal: !0 }, o),
  35688. u,
  35689. f
  35690. tS(r) && ((u = r), (f = t)), tS(t) && ((u = t), (f = r))
  35691. function h(m, y, _, S, w) {
  35692. var x = m.many,
  35693. b = m.one
  35694. if (x.length === 1 && !w) {
  35695. var T = y ? x[0] : b,
  35696. C = y ? b : x[0]
  35697. if (xl(T)) h({ many: [T], one: C }, !0, _, S, !0)
  35698. else {
  35699. var M = s ? j({ delay: s(_, S) }, l) : l
  35700. Ev(T, C, M), a(T, C, T, C, M)
  35701. }
  35702. } else
  35703. for (
  35704. var D = j(
  35705. {
  35706. dividePath: wk[e],
  35707. individualDelay:
  35708. s &&
  35709. function (U, k, F, H) {
  35710. return s(U + _, S)
  35711. }
  35712. },
  35713. l
  35714. ),
  35715. I = y ? Sk(x, b, D) : xk(b, x, D),
  35716. L = I.fromIndividuals,
  35717. P = I.toIndividuals,
  35718. R = L.length,
  35719. O = 0;
  35720. O < R;
  35721. O++
  35722. ) {
  35723. var M = s ? j({ delay: s(O, R) }, l) : l
  35724. a(L[O], P[O], y ? x[O] : m.one, y ? m.one : x[O], M)
  35725. }
  35726. }
  35727. for (
  35728. var c = u ? u === r : r.length > t.length,
  35729. v = u ? eS(f, u) : eS(c ? t : r, [c ? r : t]),
  35730. d = 0,
  35731. p = 0;
  35732. p < v.length;
  35733. p++
  35734. )
  35735. d += v[p].many.length
  35736. for (var g = 0, p = 0; p < v.length; p++)
  35737. h(v[p], c, g, d), (g += v[p].many.length)
  35738. }
  35739. function Rn(r) {
  35740. if (!r) return []
  35741. if (z(r)) {
  35742. for (var t = [], e = 0; e < r.length; e++) t.push(Rn(r[e]))
  35743. return t
  35744. }
  35745. var n = []
  35746. return (
  35747. r.traverse(function (i) {
  35748. i instanceof st &&
  35749. !i.disableMorphing &&
  35750. !i.invisible &&
  35751. !i.ignore &&
  35752. n.push(i)
  35753. }),
  35754. n
  35755. )
  35756. }
  35757. var rS = 1e4,
  35758. bk = wt()
  35759. function Tk(r) {
  35760. for (var t = r.dimensions, e = 0; e < t.length; e++) {
  35761. var n = r.getDimensionInfo(t[e])
  35762. if (n && n.otherDims.itemGroupId === 0) return t[e]
  35763. }
  35764. }
  35765. function nS(r) {
  35766. var t = []
  35767. return (
  35768. A(r, function (e) {
  35769. var n = e.data
  35770. if (!(n.count() > rS))
  35771. for (var i = n.getIndices(), a = Tk(n), o = 0; o < i.length; o++)
  35772. t.push({ data: n, dim: e.dim || a, divide: e.divide, dataIndex: o })
  35773. }),
  35774. t
  35775. )
  35776. }
  35777. function Bv(r, t, e) {
  35778. r.traverse(function (n) {
  35779. n instanceof st &&
  35780. Wt(n, { style: { opacity: 0 } }, t, { dataIndex: e, isFrom: !0 })
  35781. })
  35782. }
  35783. function Nv(r) {
  35784. if (r.parent) {
  35785. var t = r.getComputedTransform()
  35786. r.setLocalTransform(t), r.parent.remove(r)
  35787. }
  35788. }
  35789. function Di(r) {
  35790. r.stopAnimation(),
  35791. r.isGroup &&
  35792. r.traverse(function (t) {
  35793. t.stopAnimation()
  35794. })
  35795. }
  35796. function Ck(r, t, e) {
  35797. var n = ns('update', e, t)
  35798. n &&
  35799. r.traverse(function (i) {
  35800. if (i instanceof Qn) {
  35801. var a = _C(i)
  35802. a && i.animateFrom({ style: a }, n)
  35803. }
  35804. })
  35805. }
  35806. function Ak(r, t) {
  35807. var e = r.length
  35808. if (e !== t.length) return !1
  35809. for (var n = 0; n < e; n++) {
  35810. var i = r[n],
  35811. a = t[n]
  35812. if (i.data.getId(i.dataIndex) !== a.data.getId(a.dataIndex)) return !1
  35813. }
  35814. return !0
  35815. }
  35816. function iS(r, t, e) {
  35817. var n = nS(r),
  35818. i = nS(t)
  35819. function a(m, y, _, S, w) {
  35820. ;(_ || m) &&
  35821. y.animateFrom(
  35822. { style: _ && _ !== m ? N(N({}, _.style), m.style) : m.style },
  35823. w
  35824. )
  35825. }
  35826. function o(m) {
  35827. for (var y = 0; y < m.length; y++) if (m[y].dim) return m[y].dim
  35828. }
  35829. var s = o(n),
  35830. l = o(i),
  35831. u = !1
  35832. function f(m, y) {
  35833. return function (_) {
  35834. var S = _.data,
  35835. w = _.dataIndex
  35836. if (y) return S.getId(w)
  35837. var x = S.hostModel && S.hostModel.get('dataGroupId'),
  35838. b = m ? s || l : l || s,
  35839. T = b && S.getDimensionInfo(b),
  35840. C = T && T.ordinalMeta
  35841. if (T) {
  35842. var M = S.get(T.name, w)
  35843. return (C && C.categories[M]) || M + ''
  35844. }
  35845. var D = S.getRawDataItem(w)
  35846. return D && D.groupId ? D.groupId + '' : x || S.getId(w)
  35847. }
  35848. }
  35849. var h = Ak(n, i),
  35850. c = {}
  35851. if (!h)
  35852. for (var v = 0; v < i.length; v++) {
  35853. var d = i[v],
  35854. p = d.data.getItemGraphicEl(d.dataIndex)
  35855. p && (c[p.id] = !0)
  35856. }
  35857. function g(m, y) {
  35858. var _ = n[y],
  35859. S = i[m],
  35860. w = S.data.hostModel,
  35861. x = _.data.getItemGraphicEl(_.dataIndex),
  35862. b = S.data.getItemGraphicEl(S.dataIndex)
  35863. if (x === b) {
  35864. b && Ck(b, S.dataIndex, w)
  35865. return
  35866. }
  35867. ;(x && c[x.id]) ||
  35868. (b &&
  35869. (Di(b),
  35870. x
  35871. ? (Di(x), Nv(x), (u = !0), kv(Rn(x), Rn(b), S.divide, w, m, a))
  35872. : Bv(b, w, m)))
  35873. }
  35874. new Ba(n, i, f(!0, h), f(!1, h), null, 'multiple')
  35875. .update(g)
  35876. .updateManyToOne(function (m, y) {
  35877. var _ = i[m],
  35878. S = _.data,
  35879. w = S.hostModel,
  35880. x = S.getItemGraphicEl(_.dataIndex),
  35881. b = Lt(
  35882. G(y, function (T) {
  35883. return n[T].data.getItemGraphicEl(n[T].dataIndex)
  35884. }),
  35885. function (T) {
  35886. return T && T !== x && !c[T.id]
  35887. }
  35888. )
  35889. x &&
  35890. (Di(x),
  35891. b.length
  35892. ? (A(b, function (T) {
  35893. Di(T), Nv(T)
  35894. }),
  35895. (u = !0),
  35896. kv(Rn(b), Rn(x), _.divide, w, m, a))
  35897. : Bv(x, w, _.dataIndex))
  35898. })
  35899. .updateOneToMany(function (m, y) {
  35900. var _ = n[y],
  35901. S = _.data.getItemGraphicEl(_.dataIndex)
  35902. if (!(S && c[S.id])) {
  35903. var w = Lt(
  35904. G(m, function (b) {
  35905. return i[b].data.getItemGraphicEl(i[b].dataIndex)
  35906. }),
  35907. function (b) {
  35908. return b && b !== S
  35909. }
  35910. ),
  35911. x = i[m[0]].data.hostModel
  35912. w.length &&
  35913. (A(w, function (b) {
  35914. return Di(b)
  35915. }),
  35916. S
  35917. ? (Di(S), Nv(S), (u = !0), kv(Rn(S), Rn(w), _.divide, x, m[0], a))
  35918. : A(w, function (b) {
  35919. return Bv(b, x, m[0])
  35920. }))
  35921. }
  35922. })
  35923. .updateManyToMany(function (m, y) {
  35924. new Ba(
  35925. y,
  35926. m,
  35927. function (_) {
  35928. return n[_].data.getId(n[_].dataIndex)
  35929. },
  35930. function (_) {
  35931. return i[_].data.getId(i[_].dataIndex)
  35932. }
  35933. )
  35934. .update(function (_, S) {
  35935. g(m[_], y[S])
  35936. })
  35937. .execute()
  35938. })
  35939. .execute(),
  35940. u &&
  35941. A(t, function (m) {
  35942. var y = m.data,
  35943. _ = y.hostModel,
  35944. S = _ && e.getViewOfSeriesModel(_),
  35945. w = ns('update', _, 0)
  35946. S &&
  35947. _.isAnimationEnabled() &&
  35948. w &&
  35949. w.duration > 0 &&
  35950. S.group.traverse(function (x) {
  35951. x instanceof st &&
  35952. !x.animators.length &&
  35953. x.animateFrom({ style: { opacity: 0 } }, w)
  35954. })
  35955. })
  35956. }
  35957. function aS(r) {
  35958. var t = r.getModel('universalTransition').get('seriesKey')
  35959. return t || r.id
  35960. }
  35961. function oS(r) {
  35962. return z(r) ? r.sort().join(',') : r
  35963. }
  35964. function Wr(r) {
  35965. if (r.hostModel)
  35966. return r.hostModel.getModel('universalTransition').get('divideShape')
  35967. }
  35968. function Mk(r, t) {
  35969. var e = q(),
  35970. n = q(),
  35971. i = q()
  35972. return (
  35973. A(r.oldSeries, function (a, o) {
  35974. var s = r.oldData[o],
  35975. l = aS(a),
  35976. u = oS(l)
  35977. n.set(u, s),
  35978. z(l) &&
  35979. A(l, function (f) {
  35980. i.set(f, { data: s, key: u })
  35981. })
  35982. }),
  35983. A(t.updatedSeries, function (a) {
  35984. if (a.isUniversalTransitionEnabled() && a.isAnimationEnabled()) {
  35985. var o = a.getData(),
  35986. s = aS(a),
  35987. l = oS(s),
  35988. u = n.get(l)
  35989. if (u)
  35990. e.set(l, {
  35991. oldSeries: [{ divide: Wr(u), data: u }],
  35992. newSeries: [{ divide: Wr(o), data: o }]
  35993. })
  35994. else if (z(s)) {
  35995. var f = []
  35996. A(s, function (v) {
  35997. var d = n.get(v)
  35998. d && f.push({ divide: Wr(d), data: d })
  35999. }),
  36000. f.length &&
  36001. e.set(l, {
  36002. oldSeries: f,
  36003. newSeries: [{ data: o, divide: Wr(o) }]
  36004. })
  36005. } else {
  36006. var h = i.get(s)
  36007. if (h) {
  36008. var c = e.get(h.key)
  36009. c ||
  36010. ((c = {
  36011. oldSeries: [{ data: h.data, divide: Wr(h.data) }],
  36012. newSeries: []
  36013. }),
  36014. e.set(h.key, c)),
  36015. c.newSeries.push({ data: o, divide: Wr(o) })
  36016. }
  36017. }
  36018. }
  36019. }),
  36020. e
  36021. )
  36022. }
  36023. function sS(r, t) {
  36024. for (var e = 0; e < r.length; e++) {
  36025. var n =
  36026. (t.seriesIndex != null && t.seriesIndex === r[e].seriesIndex) ||
  36027. (t.seriesId != null && t.seriesId === r[e].id)
  36028. if (n) return e
  36029. }
  36030. }
  36031. function Dk(r, t, e, n) {
  36032. var i = [],
  36033. a = []
  36034. A(Mt(r.from), function (o) {
  36035. var s = sS(t.oldSeries, o)
  36036. s >= 0 &&
  36037. i.push({ data: t.oldData[s], divide: Wr(t.oldData[s]), dim: o.dimension })
  36038. }),
  36039. A(Mt(r.to), function (o) {
  36040. var s = sS(e.updatedSeries, o)
  36041. if (s >= 0) {
  36042. var l = e.updatedSeries[s].getData()
  36043. a.push({ data: l, divide: Wr(l), dim: o.dimension })
  36044. }
  36045. }),
  36046. i.length > 0 && a.length > 0 && iS(i, a, n)
  36047. }
  36048. function Ik(r) {
  36049. r.registerUpdateLifecycle('series:beforeupdate', function (t, e, n) {
  36050. A(Mt(n.seriesTransition), function (i) {
  36051. A(Mt(i.to), function (a) {
  36052. for (var o = n.updatedSeries, s = 0; s < o.length; s++)
  36053. ((a.seriesIndex != null && a.seriesIndex === o[s].seriesIndex) ||
  36054. (a.seriesId != null && a.seriesId === o[s].id)) &&
  36055. (o[s][Ps] = !0)
  36056. })
  36057. })
  36058. }),
  36059. r.registerUpdateLifecycle('series:transition', function (t, e, n) {
  36060. var i = bk(e)
  36061. if (i.oldSeries && n.updatedSeries && n.optionChanged) {
  36062. var a = n.seriesTransition
  36063. if (a)
  36064. A(Mt(a), function (c) {
  36065. Dk(c, i, n, e)
  36066. })
  36067. else {
  36068. var o = Mk(i, n)
  36069. A(o.keys(), function (c) {
  36070. var v = o.get(c)
  36071. iS(v.oldSeries, v.newSeries, e)
  36072. })
  36073. }
  36074. A(n.updatedSeries, function (c) {
  36075. c[Ps] && (c[Ps] = !1)
  36076. })
  36077. }
  36078. for (
  36079. var s = t.getSeries(),
  36080. l = (i.oldSeries = []),
  36081. u = (i.oldData = []),
  36082. f = 0;
  36083. f < s.length;
  36084. f++
  36085. ) {
  36086. var h = s[f].getData()
  36087. h.count() < rS && (l.push(s[f]), u.push(h))
  36088. }
  36089. })
  36090. }
  36091. function lS(r, t, e) {
  36092. var n = kn.createCanvas(),
  36093. i = t.getWidth(),
  36094. a = t.getHeight(),
  36095. o = n.style
  36096. return (
  36097. o &&
  36098. ((o.position = 'absolute'),
  36099. (o.left = '0'),
  36100. (o.top = '0'),
  36101. (o.width = i + 'px'),
  36102. (o.height = a + 'px'),
  36103. n.setAttribute('data-zr-dom-id', r)),
  36104. (n.width = i * e),
  36105. (n.height = a * e),
  36106. n
  36107. )
  36108. }
  36109. var Lk = (function (r) {
  36110. B(t, r)
  36111. function t(e, n, i) {
  36112. var a = r.call(this) || this
  36113. ;(a.motionBlur = !1),
  36114. (a.lastFrameAlpha = 0.7),
  36115. (a.dpr = 1),
  36116. (a.virtual = !1),
  36117. (a.config = {}),
  36118. (a.incremental = !1),
  36119. (a.zlevel = 0),
  36120. (a.maxRepaintRectCount = 5),
  36121. (a.__dirty = !0),
  36122. (a.__firstTimePaint = !0),
  36123. (a.__used = !1),
  36124. (a.__drawIndex = 0),
  36125. (a.__startIndex = 0),
  36126. (a.__endIndex = 0),
  36127. (a.__prevStartIndex = null),
  36128. (a.__prevEndIndex = null)
  36129. var o
  36130. ;(i = i || Io),
  36131. typeof e == 'string'
  36132. ? (o = lS(e, n, i))
  36133. : Y(e) && ((o = e), (e = o.id)),
  36134. (a.id = e),
  36135. (a.dom = o)
  36136. var s = o.style
  36137. return (
  36138. s &&
  36139. (Xv(o),
  36140. (o.onselectstart = function () {
  36141. return !1
  36142. }),
  36143. (s.padding = '0'),
  36144. (s.margin = '0'),
  36145. (s.borderWidth = '0')),
  36146. (a.painter = n),
  36147. (a.dpr = i),
  36148. a
  36149. )
  36150. }
  36151. return (
  36152. (t.prototype.getElementCount = function () {
  36153. return this.__endIndex - this.__startIndex
  36154. }),
  36155. (t.prototype.afterBrush = function () {
  36156. ;(this.__prevStartIndex = this.__startIndex),
  36157. (this.__prevEndIndex = this.__endIndex)
  36158. }),
  36159. (t.prototype.initContext = function () {
  36160. ;(this.ctx = this.dom.getContext('2d')), (this.ctx.dpr = this.dpr)
  36161. }),
  36162. (t.prototype.setUnpainted = function () {
  36163. this.__firstTimePaint = !0
  36164. }),
  36165. (t.prototype.createBackBuffer = function () {
  36166. var e = this.dpr
  36167. ;(this.domBack = lS('back-' + this.id, this.painter, e)),
  36168. (this.ctxBack = this.domBack.getContext('2d')),
  36169. e !== 1 && this.ctxBack.scale(e, e)
  36170. }),
  36171. (t.prototype.createRepaintRects = function (e, n, i, a) {
  36172. if (this.__firstTimePaint) return (this.__firstTimePaint = !1), null
  36173. var o = [],
  36174. s = this.maxRepaintRectCount,
  36175. l = !1,
  36176. u = new vt(0, 0, 0, 0)
  36177. function f(y) {
  36178. if (!(!y.isFinite() || y.isZero()))
  36179. if (o.length === 0) {
  36180. var _ = new vt(0, 0, 0, 0)
  36181. _.copy(y), o.push(_)
  36182. } else {
  36183. for (var S = !1, w = 1 / 0, x = 0, b = 0; b < o.length; ++b) {
  36184. var T = o[b]
  36185. if (T.intersect(y)) {
  36186. var C = new vt(0, 0, 0, 0)
  36187. C.copy(T), C.union(y), (o[b] = C), (S = !0)
  36188. break
  36189. } else if (l) {
  36190. u.copy(y), u.union(T)
  36191. var M = y.width * y.height,
  36192. D = T.width * T.height,
  36193. I = u.width * u.height,
  36194. L = I - M - D
  36195. L < w && ((w = L), (x = b))
  36196. }
  36197. }
  36198. if ((l && (o[x].union(y), (S = !0)), !S)) {
  36199. var _ = new vt(0, 0, 0, 0)
  36200. _.copy(y), o.push(_)
  36201. }
  36202. l || (l = o.length >= s)
  36203. }
  36204. }
  36205. for (var h = this.__startIndex; h < this.__endIndex; ++h) {
  36206. var c = e[h]
  36207. if (c) {
  36208. var v = c.shouldBePainted(i, a, !0, !0),
  36209. d =
  36210. c.__isRendered && (c.__dirty & ae || !v)
  36211. ? c.getPrevPaintRect()
  36212. : null
  36213. d && f(d)
  36214. var p =
  36215. v && (c.__dirty & ae || !c.__isRendered) ? c.getPaintRect() : null
  36216. p && f(p)
  36217. }
  36218. }
  36219. for (var h = this.__prevStartIndex; h < this.__prevEndIndex; ++h) {
  36220. var c = n[h],
  36221. v = c.shouldBePainted(i, a, !0, !0)
  36222. if (c && (!v || !c.__zr) && c.__isRendered) {
  36223. var d = c.getPrevPaintRect()
  36224. d && f(d)
  36225. }
  36226. }
  36227. var g
  36228. do {
  36229. g = !1
  36230. for (var h = 0; h < o.length; ) {
  36231. if (o[h].isZero()) {
  36232. o.splice(h, 1)
  36233. continue
  36234. }
  36235. for (var m = h + 1; m < o.length; )
  36236. o[h].intersect(o[m])
  36237. ? ((g = !0), o[h].union(o[m]), o.splice(m, 1))
  36238. : m++
  36239. h++
  36240. }
  36241. } while (g)
  36242. return (this._paintRects = o), o
  36243. }),
  36244. (t.prototype.debugGetPaintRects = function () {
  36245. return (this._paintRects || []).slice()
  36246. }),
  36247. (t.prototype.resize = function (e, n) {
  36248. var i = this.dpr,
  36249. a = this.dom,
  36250. o = a.style,
  36251. s = this.domBack
  36252. o && ((o.width = e + 'px'), (o.height = n + 'px')),
  36253. (a.width = e * i),
  36254. (a.height = n * i),
  36255. s &&
  36256. ((s.width = e * i),
  36257. (s.height = n * i),
  36258. i !== 1 && this.ctxBack.scale(i, i))
  36259. }),
  36260. (t.prototype.clear = function (e, n, i) {
  36261. var a = this.dom,
  36262. o = this.ctx,
  36263. s = a.width,
  36264. l = a.height
  36265. n = n || this.clearColor
  36266. var u = this.motionBlur && !e,
  36267. f = this.lastFrameAlpha,
  36268. h = this.dpr,
  36269. c = this
  36270. u &&
  36271. (this.domBack || this.createBackBuffer(),
  36272. (this.ctxBack.globalCompositeOperation = 'copy'),
  36273. this.ctxBack.drawImage(a, 0, 0, s / h, l / h))
  36274. var v = this.domBack
  36275. function d(p, g, m, y) {
  36276. if ((o.clearRect(p, g, m, y), n && n !== 'transparent')) {
  36277. var _ = void 0
  36278. io(n)
  36279. ? ((_ =
  36280. n.__canvasGradient ||
  36281. qf(o, n, { x: 0, y: 0, width: m, height: y })),
  36282. (n.__canvasGradient = _))
  36283. : Ax(n) &&
  36284. (_ = Kf(o, n, {
  36285. dirty: function () {
  36286. c.setUnpainted(), c.__painter.refresh()
  36287. }
  36288. })),
  36289. o.save(),
  36290. (o.fillStyle = _ || n),
  36291. o.fillRect(p, g, m, y),
  36292. o.restore()
  36293. }
  36294. u &&
  36295. (o.save(),
  36296. (o.globalAlpha = f),
  36297. o.drawImage(v, p, g, m, y),
  36298. o.restore())
  36299. }
  36300. !i || u
  36301. ? d(0, 0, s, l)
  36302. : i.length &&
  36303. A(i, function (p) {
  36304. d(p.x * h, p.y * h, p.width * h, p.height * h)
  36305. })
  36306. }),
  36307. t
  36308. )
  36309. })(fe),
  36310. Fv = Lk,
  36311. uS = 1e5,
  36312. En = 314159,
  36313. Tl = 0.01,
  36314. Pk = 0.001
  36315. function Rk(r) {
  36316. return r
  36317. ? r.__builtin__
  36318. ? !0
  36319. : !(typeof r.resize != 'function' || typeof r.refresh != 'function')
  36320. : !1
  36321. }
  36322. function Ek(r, t) {
  36323. var e = document.createElement('div')
  36324. return (
  36325. (e.style.cssText =
  36326. [
  36327. 'position:relative',
  36328. 'width:' + r + 'px',
  36329. 'height:' + t + 'px',
  36330. 'padding:0',
  36331. 'margin:0',
  36332. 'border-width:0'
  36333. ].join(';') + ';'),
  36334. e
  36335. )
  36336. }
  36337. var Ok = (function () {
  36338. function r(t, e, n, i) {
  36339. ;(this.type = 'canvas'),
  36340. (this._zlevelList = []),
  36341. (this._prevDisplayList = []),
  36342. (this._layers = {}),
  36343. (this._layerConfig = {}),
  36344. (this._needsManuallyCompositing = !1),
  36345. (this.type = 'canvas')
  36346. var a = !t.nodeName || t.nodeName.toUpperCase() === 'CANVAS'
  36347. ;(this._opts = n = N({}, n || {})),
  36348. (this.dpr = n.devicePixelRatio || Io),
  36349. (this._singleCanvas = a),
  36350. (this.root = t)
  36351. var o = t.style
  36352. o && (Xv(t), (t.innerHTML = '')), (this.storage = e)
  36353. var s = this._zlevelList
  36354. this._prevDisplayList = []
  36355. var l = this._layers
  36356. if (a) {
  36357. var f = t,
  36358. h = f.width,
  36359. c = f.height
  36360. n.width != null && (h = n.width),
  36361. n.height != null && (c = n.height),
  36362. (this.dpr = n.devicePixelRatio || 1),
  36363. (f.width = h * this.dpr),
  36364. (f.height = c * this.dpr),
  36365. (this._width = h),
  36366. (this._height = c)
  36367. var v = new Fv(f, this, this.dpr)
  36368. ;(v.__builtin__ = !0),
  36369. v.initContext(),
  36370. (l[En] = v),
  36371. (v.zlevel = En),
  36372. s.push(En),
  36373. (this._domRoot = t)
  36374. } else {
  36375. ;(this._width = Gs(t, 0, n)), (this._height = Gs(t, 1, n))
  36376. var u = (this._domRoot = Ek(this._width, this._height))
  36377. t.appendChild(u)
  36378. }
  36379. }
  36380. return (
  36381. (r.prototype.getType = function () {
  36382. return 'canvas'
  36383. }),
  36384. (r.prototype.isSingleCanvas = function () {
  36385. return this._singleCanvas
  36386. }),
  36387. (r.prototype.getViewportRoot = function () {
  36388. return this._domRoot
  36389. }),
  36390. (r.prototype.getViewportRootOffset = function () {
  36391. var t = this.getViewportRoot()
  36392. if (t)
  36393. return { offsetLeft: t.offsetLeft || 0, offsetTop: t.offsetTop || 0 }
  36394. }),
  36395. (r.prototype.refresh = function (t) {
  36396. var e = this.storage.getDisplayList(!0),
  36397. n = this._prevDisplayList,
  36398. i = this._zlevelList
  36399. ;(this._redrawId = Math.random()),
  36400. this._paintList(e, n, t, this._redrawId)
  36401. for (var a = 0; a < i.length; a++) {
  36402. var o = i[a],
  36403. s = this._layers[o]
  36404. if (!s.__builtin__ && s.refresh) {
  36405. var l = a === 0 ? this._backgroundColor : null
  36406. s.refresh(l)
  36407. }
  36408. }
  36409. return (
  36410. this._opts.useDirtyRect && (this._prevDisplayList = e.slice()), this
  36411. )
  36412. }),
  36413. (r.prototype.refreshHover = function () {
  36414. this._paintHoverList(this.storage.getDisplayList(!1))
  36415. }),
  36416. (r.prototype._paintHoverList = function (t) {
  36417. var e = t.length,
  36418. n = this._hoverlayer
  36419. if ((n && n.clear(), !!e)) {
  36420. for (
  36421. var i = {
  36422. inHover: !0,
  36423. viewWidth: this._width,
  36424. viewHeight: this._height
  36425. },
  36426. a,
  36427. o = 0;
  36428. o < e;
  36429. o++
  36430. ) {
  36431. var s = t[o]
  36432. s.__inHover &&
  36433. (n || (n = this._hoverlayer = this.getLayer(uS)),
  36434. a || ((a = n.ctx), a.save()),
  36435. bn(a, s, i, o === e - 1))
  36436. }
  36437. a && a.restore()
  36438. }
  36439. }),
  36440. (r.prototype.getHoverLayer = function () {
  36441. return this.getLayer(uS)
  36442. }),
  36443. (r.prototype.paintOne = function (t, e) {
  36444. Zm(t, e)
  36445. }),
  36446. (r.prototype._paintList = function (t, e, n, i) {
  36447. if (this._redrawId === i) {
  36448. ;(n = n || !1), this._updateLayerStatus(t)
  36449. var a = this._doPaintList(t, e, n),
  36450. o = a.finished,
  36451. s = a.needsRefreshHover
  36452. if (
  36453. (this._needsManuallyCompositing && this._compositeManually(),
  36454. s && this._paintHoverList(t),
  36455. o)
  36456. )
  36457. this.eachLayer(function (u) {
  36458. u.afterBrush && u.afterBrush()
  36459. })
  36460. else {
  36461. var l = this
  36462. Xl(function () {
  36463. l._paintList(t, e, n, i)
  36464. })
  36465. }
  36466. }
  36467. }),
  36468. (r.prototype._compositeManually = function () {
  36469. var t = this.getLayer(En).ctx,
  36470. e = this._domRoot.width,
  36471. n = this._domRoot.height
  36472. t.clearRect(0, 0, e, n),
  36473. this.eachBuiltinLayer(function (i) {
  36474. i.virtual && t.drawImage(i.dom, 0, 0, e, n)
  36475. })
  36476. }),
  36477. (r.prototype._doPaintList = function (t, e, n) {
  36478. for (
  36479. var i = this, a = [], o = this._opts.useDirtyRect, s = 0;
  36480. s < this._zlevelList.length;
  36481. s++
  36482. ) {
  36483. var l = this._zlevelList[s],
  36484. u = this._layers[l]
  36485. u.__builtin__ &&
  36486. u !== this._hoverlayer &&
  36487. (u.__dirty || n) &&
  36488. a.push(u)
  36489. }
  36490. for (
  36491. var f = !0,
  36492. h = !1,
  36493. c = function (p) {
  36494. var g = a[p],
  36495. m = g.ctx,
  36496. y = o && g.createRepaintRects(t, e, v._width, v._height),
  36497. _ = n ? g.__startIndex : g.__drawIndex,
  36498. S = !n && g.incremental && Date.now,
  36499. w = S && Date.now(),
  36500. x = g.zlevel === v._zlevelList[0] ? v._backgroundColor : null
  36501. if (g.__startIndex === g.__endIndex) g.clear(!1, x, y)
  36502. else if (_ === g.__startIndex) {
  36503. var b = t[_]
  36504. ;(!b.incremental || !b.notClear || n) && g.clear(!1, x, y)
  36505. }
  36506. _ === -1 &&
  36507. (console.error('For some unknown reason. drawIndex is -1'),
  36508. (_ = g.__startIndex))
  36509. var T,
  36510. C = function (L) {
  36511. var P = {
  36512. inHover: !1,
  36513. allClipped: !1,
  36514. prevEl: null,
  36515. viewWidth: i._width,
  36516. viewHeight: i._height
  36517. }
  36518. for (T = _; T < g.__endIndex; T++) {
  36519. var R = t[T]
  36520. if (
  36521. (R.__inHover && (h = !0),
  36522. i._doPaintEl(R, g, o, L, P, T === g.__endIndex - 1),
  36523. S)
  36524. ) {
  36525. var O = Date.now() - w
  36526. if (O > 15) break
  36527. }
  36528. }
  36529. P.prevElClipPaths && m.restore()
  36530. }
  36531. if (y)
  36532. if (y.length === 0) T = g.__endIndex
  36533. else
  36534. for (var M = v.dpr, D = 0; D < y.length; ++D) {
  36535. var I = y[D]
  36536. m.save(),
  36537. m.beginPath(),
  36538. m.rect(I.x * M, I.y * M, I.width * M, I.height * M),
  36539. m.clip(),
  36540. C(I),
  36541. m.restore()
  36542. }
  36543. else m.save(), C(), m.restore()
  36544. ;(g.__drawIndex = T), g.__drawIndex < g.__endIndex && (f = !1)
  36545. },
  36546. v = this,
  36547. d = 0;
  36548. d < a.length;
  36549. d++
  36550. )
  36551. c(d)
  36552. return (
  36553. at.wxa &&
  36554. A(this._layers, function (p) {
  36555. p && p.ctx && p.ctx.draw && p.ctx.draw()
  36556. }),
  36557. { finished: f, needsRefreshHover: h }
  36558. )
  36559. }),
  36560. (r.prototype._doPaintEl = function (t, e, n, i, a, o) {
  36561. var s = e.ctx
  36562. if (n) {
  36563. var l = t.getPaintRect()
  36564. ;(!i || (l && l.intersect(i))) &&
  36565. (bn(s, t, a, o), t.setPrevPaintRect(l))
  36566. } else bn(s, t, a, o)
  36567. }),
  36568. (r.prototype.getLayer = function (t, e) {
  36569. this._singleCanvas && !this._needsManuallyCompositing && (t = En)
  36570. var n = this._layers[t]
  36571. return (
  36572. n ||
  36573. ((n = new Fv('zr_' + t, this, this.dpr)),
  36574. (n.zlevel = t),
  36575. (n.__builtin__ = !0),
  36576. this._layerConfig[t]
  36577. ? nt(n, this._layerConfig[t], !0)
  36578. : this._layerConfig[t - Tl] &&
  36579. nt(n, this._layerConfig[t - Tl], !0),
  36580. e && (n.virtual = e),
  36581. this.insertLayer(t, n),
  36582. n.initContext()),
  36583. n
  36584. )
  36585. }),
  36586. (r.prototype.insertLayer = function (t, e) {
  36587. var n = this._layers,
  36588. i = this._zlevelList,
  36589. a = i.length,
  36590. o = this._domRoot,
  36591. s = null,
  36592. l = -1
  36593. if (!n[t] && !!Rk(e)) {
  36594. if (a > 0 && t > i[0]) {
  36595. for (l = 0; l < a - 1 && !(i[l] < t && i[l + 1] > t); l++);
  36596. s = n[i[l]]
  36597. }
  36598. if ((i.splice(l + 1, 0, t), (n[t] = e), !e.virtual))
  36599. if (s) {
  36600. var u = s.dom
  36601. u.nextSibling
  36602. ? o.insertBefore(e.dom, u.nextSibling)
  36603. : o.appendChild(e.dom)
  36604. } else
  36605. o.firstChild
  36606. ? o.insertBefore(e.dom, o.firstChild)
  36607. : o.appendChild(e.dom)
  36608. e.__painter = this
  36609. }
  36610. }),
  36611. (r.prototype.eachLayer = function (t, e) {
  36612. for (var n = this._zlevelList, i = 0; i < n.length; i++) {
  36613. var a = n[i]
  36614. t.call(e, this._layers[a], a)
  36615. }
  36616. }),
  36617. (r.prototype.eachBuiltinLayer = function (t, e) {
  36618. for (var n = this._zlevelList, i = 0; i < n.length; i++) {
  36619. var a = n[i],
  36620. o = this._layers[a]
  36621. o.__builtin__ && t.call(e, o, a)
  36622. }
  36623. }),
  36624. (r.prototype.eachOtherLayer = function (t, e) {
  36625. for (var n = this._zlevelList, i = 0; i < n.length; i++) {
  36626. var a = n[i],
  36627. o = this._layers[a]
  36628. o.__builtin__ || t.call(e, o, a)
  36629. }
  36630. }),
  36631. (r.prototype.getLayers = function () {
  36632. return this._layers
  36633. }),
  36634. (r.prototype._updateLayerStatus = function (t) {
  36635. this.eachBuiltinLayer(function (h, c) {
  36636. h.__dirty = h.__used = !1
  36637. })
  36638. function e(h) {
  36639. a && (a.__endIndex !== h && (a.__dirty = !0), (a.__endIndex = h))
  36640. }
  36641. if (this._singleCanvas)
  36642. for (var n = 1; n < t.length; n++) {
  36643. var i = t[n]
  36644. if (i.zlevel !== t[n - 1].zlevel || i.incremental) {
  36645. this._needsManuallyCompositing = !0
  36646. break
  36647. }
  36648. }
  36649. var a = null,
  36650. o = 0,
  36651. s,
  36652. l
  36653. for (l = 0; l < t.length; l++) {
  36654. var i = t[l],
  36655. u = i.zlevel,
  36656. f = void 0
  36657. s !== u && ((s = u), (o = 0)),
  36658. i.incremental
  36659. ? ((f = this.getLayer(u + Pk, this._needsManuallyCompositing)),
  36660. (f.incremental = !0),
  36661. (o = 1))
  36662. : (f = this.getLayer(
  36663. u + (o > 0 ? Tl : 0),
  36664. this._needsManuallyCompositing
  36665. )),
  36666. f.__builtin__ ||
  36667. Pl('ZLevel ' + u + ' has been used by unkown layer ' + f.id),
  36668. f !== a &&
  36669. ((f.__used = !0),
  36670. f.__startIndex !== l && (f.__dirty = !0),
  36671. (f.__startIndex = l),
  36672. f.incremental ? (f.__drawIndex = -1) : (f.__drawIndex = l),
  36673. e(l),
  36674. (a = f)),
  36675. i.__dirty & ae &&
  36676. !i.__inHover &&
  36677. ((f.__dirty = !0),
  36678. f.incremental && f.__drawIndex < 0 && (f.__drawIndex = l))
  36679. }
  36680. e(l),
  36681. this.eachBuiltinLayer(function (h, c) {
  36682. !h.__used &&
  36683. h.getElementCount() > 0 &&
  36684. ((h.__dirty = !0),
  36685. (h.__startIndex = h.__endIndex = h.__drawIndex = 0)),
  36686. h.__dirty && h.__drawIndex < 0 && (h.__drawIndex = h.__startIndex)
  36687. })
  36688. }),
  36689. (r.prototype.clear = function () {
  36690. return this.eachBuiltinLayer(this._clearLayer), this
  36691. }),
  36692. (r.prototype._clearLayer = function (t) {
  36693. t.clear()
  36694. }),
  36695. (r.prototype.setBackgroundColor = function (t) {
  36696. ;(this._backgroundColor = t),
  36697. A(this._layers, function (e) {
  36698. e.setUnpainted()
  36699. })
  36700. }),
  36701. (r.prototype.configLayer = function (t, e) {
  36702. if (e) {
  36703. var n = this._layerConfig
  36704. n[t] ? nt(n[t], e, !0) : (n[t] = e)
  36705. for (var i = 0; i < this._zlevelList.length; i++) {
  36706. var a = this._zlevelList[i]
  36707. if (a === t || a === t + Tl) {
  36708. var o = this._layers[a]
  36709. nt(o, n[t], !0)
  36710. }
  36711. }
  36712. }
  36713. }),
  36714. (r.prototype.delLayer = function (t) {
  36715. var e = this._layers,
  36716. n = this._zlevelList,
  36717. i = e[t]
  36718. !i ||
  36719. (i.dom.parentNode.removeChild(i.dom),
  36720. delete e[t],
  36721. n.splice(ot(n, t), 1))
  36722. }),
  36723. (r.prototype.resize = function (t, e) {
  36724. if (this._domRoot.style) {
  36725. var n = this._domRoot
  36726. n.style.display = 'none'
  36727. var i = this._opts,
  36728. a = this.root
  36729. if (
  36730. (t != null && (i.width = t),
  36731. e != null && (i.height = e),
  36732. (t = Gs(a, 0, i)),
  36733. (e = Gs(a, 1, i)),
  36734. (n.style.display = ''),
  36735. this._width !== t || e !== this._height)
  36736. ) {
  36737. ;(n.style.width = t + 'px'), (n.style.height = e + 'px')
  36738. for (var o in this._layers)
  36739. this._layers.hasOwnProperty(o) && this._layers[o].resize(t, e)
  36740. this.refresh(!0)
  36741. }
  36742. ;(this._width = t), (this._height = e)
  36743. } else {
  36744. if (t == null || e == null) return
  36745. ;(this._width = t), (this._height = e), this.getLayer(En).resize(t, e)
  36746. }
  36747. return this
  36748. }),
  36749. (r.prototype.clearLayer = function (t) {
  36750. var e = this._layers[t]
  36751. e && e.clear()
  36752. }),
  36753. (r.prototype.dispose = function () {
  36754. ;(this.root.innerHTML = ''),
  36755. (this.root = this.storage = this._domRoot = this._layers = null)
  36756. }),
  36757. (r.prototype.getRenderedCanvas = function (t) {
  36758. if (((t = t || {}), this._singleCanvas && !this._compositeManually))
  36759. return this._layers[En].dom
  36760. var e = new Fv('image', this, t.pixelRatio || this.dpr)
  36761. e.initContext(), e.clear(!1, t.backgroundColor || this._backgroundColor)
  36762. var n = e.ctx
  36763. if (t.pixelRatio <= this.dpr) {
  36764. this.refresh()
  36765. var i = e.dom.width,
  36766. a = e.dom.height
  36767. this.eachLayer(function (h) {
  36768. h.__builtin__
  36769. ? n.drawImage(h.dom, 0, 0, i, a)
  36770. : h.renderToCanvas && (n.save(), h.renderToCanvas(n), n.restore())
  36771. })
  36772. } else
  36773. for (
  36774. var o = {
  36775. inHover: !1,
  36776. viewWidth: this._width,
  36777. viewHeight: this._height
  36778. },
  36779. s = this.storage.getDisplayList(!0),
  36780. l = 0,
  36781. u = s.length;
  36782. l < u;
  36783. l++
  36784. ) {
  36785. var f = s[l]
  36786. bn(n, f, o, l === u - 1)
  36787. }
  36788. return e.dom
  36789. }),
  36790. (r.prototype.getWidth = function () {
  36791. return this._width
  36792. }),
  36793. (r.prototype.getHeight = function () {
  36794. return this._height
  36795. }),
  36796. r
  36797. )
  36798. })(),
  36799. kk = Ok
  36800. function Bk(r) {
  36801. r.registerPainter('canvas', kk)
  36802. }
  36803. const Ce = {
  36804. legend: { show: !1 },
  36805. emphasis: { lineStyle: { width: 2 } },
  36806. xAxis: {
  36807. boundaryGap: !1,
  36808. data: [
  36809. '01\u6708',
  36810. '02\u6708',
  36811. '03\u6708',
  36812. '04\u6708',
  36813. '05\u6708',
  36814. '06\u6708',
  36815. '07\u6708',
  36816. '08\u6708',
  36817. '09\u6708',
  36818. '10\u6708',
  36819. '11\u6708',
  36820. '12\u6708'
  36821. ],
  36822. type: 'category',
  36823. axisLine: { lineStyle: { color: '#8C8C8C' } }
  36824. },
  36825. color: [
  36826. '#5B8FF9',
  36827. '#01C1B5',
  36828. '#91DD1C',
  36829. '#FFA92C',
  36830. '#BE7E2E',
  36831. '#1C96DD',
  36832. '#D22CFF',
  36833. '#FF3C3C',
  36834. '#1AEE3E',
  36835. '#7c47ff'
  36836. ],
  36837. series: [
  36838. {
  36839. lineStyle: { width: 1 },
  36840. data: [
  36841. '0.00',
  36842. '0.00',
  36843. '0.00',
  36844. '0.00',
  36845. '0.00',
  36846. '0.00',
  36847. '0.00',
  36848. '0.00',
  36849. '0.00',
  36850. '0.00',
  36851. '0.00',
  36852. '0.00'
  36853. ],
  36854. symbol: 'circle',
  36855. name: '\u966A\u7EC3\u8BFE',
  36856. type: 'line',
  36857. emphasis: { lineStyle: { width: 1 } }
  36858. },
  36859. {
  36860. lineStyle: { width: 1 },
  36861. data: [
  36862. '0.00',
  36863. '0.00',
  36864. '0.00',
  36865. '0.00',
  36866. '0.00',
  36867. '0.00',
  36868. '0.00',
  36869. '0.00',
  36870. '0.00',
  36871. '0.00',
  36872. '0.00',
  36873. '0.00'
  36874. ],
  36875. symbol: 'circle',
  36876. name: '\u76F4\u64AD\u8BFE',
  36877. type: 'line',
  36878. emphasis: { lineStyle: { width: 1 } }
  36879. },
  36880. {
  36881. lineStyle: { width: 1 },
  36882. data: [
  36883. '0.00',
  36884. '0.00',
  36885. '0.00',
  36886. '0.00',
  36887. '0.00',
  36888. '0.00',
  36889. '0.00',
  36890. '0.00',
  36891. '0.00',
  36892. '0.00',
  36893. '0.00',
  36894. '0.00'
  36895. ],
  36896. symbol: 'circle',
  36897. name: '\u89C6\u9891\u8BFE',
  36898. type: 'line',
  36899. emphasis: { lineStyle: { width: 1 } }
  36900. },
  36901. {
  36902. lineStyle: { width: 1 },
  36903. data: [
  36904. '0.00',
  36905. '0.00',
  36906. '0.00',
  36907. '0.00',
  36908. '0.00',
  36909. '0.00',
  36910. '0.00',
  36911. '0.00',
  36912. '0.00',
  36913. '0.00',
  36914. '0.00',
  36915. '0.00'
  36916. ],
  36917. symbol: 'circle',
  36918. name: '\u4E50\u8C31',
  36919. type: 'line',
  36920. emphasis: { lineStyle: { width: 1 } }
  36921. },
  36922. {
  36923. lineStyle: { width: 1 },
  36924. data: [
  36925. '0.00',
  36926. '0.00',
  36927. '0.00',
  36928. '0.00',
  36929. '0.00',
  36930. '0.00',
  36931. '0.00',
  36932. '0.00',
  36933. '0.00',
  36934. '0.00',
  36935. '0.00',
  36936. '0.00'
  36937. ],
  36938. symbol: 'circle',
  36939. name: '\u5C0F\u9177Ai\u63A8\u5E7F',
  36940. type: 'line',
  36941. emphasis: { lineStyle: { width: 1 } }
  36942. },
  36943. {
  36944. lineStyle: { width: 1 },
  36945. data: [
  36946. '0.00',
  36947. '0.00',
  36948. '0.00',
  36949. '0.00',
  36950. '0.00',
  36951. '0.00',
  36952. '0.00',
  36953. '0.00',
  36954. '0.00',
  36955. '0.00',
  36956. '0.00',
  36957. '0.00'
  36958. ],
  36959. symbol: 'circle',
  36960. name: '\u76F4\u64AD\u8BFE\u63A8\u8350',
  36961. type: 'line',
  36962. emphasis: { lineStyle: { width: 1 } }
  36963. },
  36964. {
  36965. lineStyle: { width: 1 },
  36966. data: [
  36967. '0.00',
  36968. '0.00',
  36969. '0.00',
  36970. '0.00',
  36971. '0.00',
  36972. '0.00',
  36973. '0.00',
  36974. '0.00',
  36975. '0.00',
  36976. '0.00',
  36977. '0.00',
  36978. '0.00'
  36979. ],
  36980. symbol: 'circle',
  36981. name: '\u89C6\u9891\u8BFE\u63A8\u8350',
  36982. type: 'line',
  36983. emphasis: { lineStyle: { width: 1 } }
  36984. },
  36985. {
  36986. lineStyle: { width: 1 },
  36987. data: [
  36988. '0.00',
  36989. '0.00',
  36990. '0.00',
  36991. '0.00',
  36992. '0.00',
  36993. '0.00',
  36994. '0.00',
  36995. '0.00',
  36996. '0.00',
  36997. '0.00',
  36998. '0.00',
  36999. '0.00'
  37000. ],
  37001. symbol: 'circle',
  37002. name: '\u5546\u54C1\u63A8\u8350',
  37003. type: 'line',
  37004. emphasis: { lineStyle: { width: 1 } }
  37005. },
  37006. {
  37007. lineStyle: { width: 1 },
  37008. data: [
  37009. '0.00',
  37010. '0.00',
  37011. '0.00',
  37012. '0.00',
  37013. '0.00',
  37014. '0.00',
  37015. '0.00',
  37016. '0.00',
  37017. '0.00',
  37018. '0.00',
  37019. '0.00',
  37020. '0.00'
  37021. ],
  37022. symbol: 'circle',
  37023. name: '\u4E50\u8C31\u63A8\u8350',
  37024. type: 'line',
  37025. emphasis: { lineStyle: { width: 1 } }
  37026. },
  37027. {
  37028. lineStyle: { width: 1 },
  37029. data: [
  37030. '0.00',
  37031. '0.00',
  37032. '0.00',
  37033. '0.00',
  37034. '0.00',
  37035. '0.00',
  37036. '0.00',
  37037. '0.00',
  37038. '0.00',
  37039. '0.00',
  37040. '0.00',
  37041. '0.00'
  37042. ],
  37043. symbol: 'circle',
  37044. name: '\u6D3B\u52A8\u62A5\u540D',
  37045. type: 'line',
  37046. emphasis: { lineStyle: { width: 1 } }
  37047. }
  37048. ],
  37049. title: { show: !1 },
  37050. grid: {
  37051. bottom: '3%',
  37052. containLabel: !0,
  37053. left: '3%',
  37054. right: '5%',
  37055. top: '7%'
  37056. },
  37057. tooltip: { trigger: 'axis', confine: !0 },
  37058. yAxis: {
  37059. type: 'value',
  37060. splitLine: {
  37061. axisLine: { lineStyle: { color: '#8C8C8C' } },
  37062. lineStyle: { color: ['#E2E2E2'] }
  37063. }
  37064. },
  37065. dataZoom: [{ type: 'inside', throttle: 100 }],
  37066. toolbox: { feature: { saveAsImage: { show: !1 } } }
  37067. },
  37068. Be = {
  37069. tooltip: {
  37070. position: ['30%', '30%'],
  37071. trigger: 'item',
  37072. padding: 3,
  37073. textStyle: { fontSize: 12 },
  37074. borderWidth: 0,
  37075. formatter: '{b} : {c} ({d}%)'
  37076. },
  37077. series: [
  37078. {
  37079. avoidLabelOverlap: !1,
  37080. label: { show: !1 },
  37081. data: [
  37082. { name: '\u966A\u7EC3\u8BFE', value: '0.00' },
  37083. { name: '\u76F4\u64AD\u8BFE', value: '0.00' },
  37084. { name: '\u89C6\u9891\u8BFE', value: '0.00' },
  37085. { name: '\u4E50\u8C31', value: '0.00' },
  37086. { name: '\u5C0F\u9177Ai\u63A8\u5E7F', value: '0.00' },
  37087. { name: '\u76F4\u64AD\u8BFE\u63A8\u8350', value: '0.00' },
  37088. { name: '\u89C6\u9891\u8BFE\u63A8\u8350', value: '0.00' },
  37089. { name: '\u5546\u54C1\u63A8\u8350', value: '0.00' },
  37090. { name: '\u4E50\u8C31\u63A8\u8350', value: '0.00' },
  37091. { name: '\u6D3B\u52A8\u62A5\u540D', value: '0.00' }
  37092. ],
  37093. type: 'pie',
  37094. radius: ['50%', '80%']
  37095. }
  37096. ],
  37097. grid: {
  37098. bottom: '0%',
  37099. containLabel: !0,
  37100. left: '0%',
  37101. right: '0%',
  37102. top: '0%'
  37103. },
  37104. toolbox: { feature: { saveAsImage: { show: !1 } } },
  37105. color: [
  37106. '#5B8FF9',
  37107. '#01C1B5',
  37108. '#91DD1C',
  37109. '#FFA92C',
  37110. '#BE7E2E',
  37111. '#1C96DD',
  37112. '#D22CFF',
  37113. '#FF3C3C',
  37114. '#1AEE3E',
  37115. '#7c47ff'
  37116. ]
  37117. }
  37118. Re([iO, eO, PR, ik, ek, PL, zI, Ik, Bk, ZL, RE, yO, HO, cL])
  37119. const fS = r => {
  37120. const t = `./images/${r}`
  37121. return { './images/icon_fly.png': TS, './images/icon_user.png': AS }[t]
  37122. .default
  37123. },
  37124. hS = [],
  37125. Cl = Pi().year()
  37126. let vS = 10
  37127. for (let r = Cl - 10; r <= Cl + 10; r++)
  37128. hS.push({ text: `${r}\u5E74`, value: r })
  37129. var Hk = pS({
  37130. name: 'IncomeConsus',
  37131. data() {
  37132. return {
  37133. moneyInfo: {
  37134. totalSingleRate: 0,
  37135. totalShareRate: 0,
  37136. totalInAmount: 0,
  37137. practiceAmount: 0,
  37138. practiceRate: 0,
  37139. liveAmount: 0,
  37140. liveRate: 0,
  37141. videoAmount: 0,
  37142. videoRate: 0,
  37143. musicAmount: 0,
  37144. musicRate: 0,
  37145. vipShareAmount: 0,
  37146. vipShareRate: 0,
  37147. liveShareAmount: 0,
  37148. liveShareRate: 0,
  37149. videoShareAmount: 0,
  37150. videoShareRate: 0,
  37151. mallShareAmount: 0,
  37152. mallShareRate: 0,
  37153. musicShareAmount: 0,
  37154. musicShareRate: 0,
  37155. actiRegistShareAmount: 0,
  37156. actiRegistShareRate: 0
  37157. },
  37158. params: { timeType: 'YEAR', dateTime: `${Cl}` },
  37159. dateTimeStr: `${Cl}\u5E74`,
  37160. myChart: null,
  37161. myChart2: null,
  37162. timerStatus: !1,
  37163. currentDate: new Date()
  37164. }
  37165. },
  37166. async mounted() {
  37167. ;(this.myChart = Vv(y0(document.getElementById('incomeClass')))),
  37168. (this.myChart2 = Vv(y0(document.getElementById('structrueClass')))),
  37169. this.getList()
  37170. },
  37171. methods: {
  37172. async getList() {
  37173. try {
  37174. const r = this.params,
  37175. e =
  37176. (
  37177. await xS.post('/api-teacher/userAccount/accountTotal', {
  37178. data: r
  37179. })
  37180. ).data || {}
  37181. this.moneyInfo = {
  37182. totalSingleRate:
  37183. e.practiceRate + e.liveRate + e.videoRate + e.musicRate,
  37184. totalShareRate:
  37185. e.vipShareRate +
  37186. e.liveShareRate +
  37187. e.videoShareRate +
  37188. e.musicShareRate +
  37189. e.mallShareRate +
  37190. e.actiRegistShareRate,
  37191. totalInAmount: e.totalInAmount || 0,
  37192. practiceAmount: e.practiceAmount || 0,
  37193. practiceRate: e.practiceRate || 0,
  37194. liveAmount: e.liveAmount || 0,
  37195. liveRate: e.liveRate || 0,
  37196. videoAmount: e.videoAmount || 0,
  37197. videoRate: e.videoRate || 0,
  37198. musicAmount: e.musicAmount || 0,
  37199. musicRate: e.musicRate || 0,
  37200. vipShareAmount: e.vipShareAmount || 0,
  37201. vipShareRate: e.vipShareRate || 0,
  37202. liveShareAmount: e.liveShareAmount || 0,
  37203. liveShareRate: e.liveShareRate || 0,
  37204. videoShareAmount: e.videoShareAmount || 0,
  37205. videoShareRate: e.videoShareRate || 0,
  37206. mallShareAmount: e.mallShareAmount || 0,
  37207. mallShareRate: e.mallShareRate || 0,
  37208. musicShareAmount: e.musicShareAmount || 0,
  37209. musicShareRate: e.musicShareRate || 0,
  37210. actiRegistShareAmount: e.actiRegistShareAmount || 0,
  37211. actiRegistShareRate: e.actiRegistShareRate || 0
  37212. }
  37213. const n = {
  37214. xAxis: [],
  37215. practiceAmount: [],
  37216. liveAmount: [],
  37217. videoAmount: [],
  37218. musicAmount: [],
  37219. vipShareAmount: [],
  37220. liveShareAmount: [],
  37221. videoShareAmount: [],
  37222. mallShareAmount: [],
  37223. musicShareAmount: [],
  37224. actiRegistShareAmount: []
  37225. }
  37226. ;(e.infoList || []).forEach(i => {
  37227. r.timeType === 'YEAR'
  37228. ? n.xAxis.push(Pi(i.timeStr).format('MM\u6708'))
  37229. : r.timeType === 'MONTH' &&
  37230. n.xAxis.push(Pi(i.timeStr).format('DD\u65E5')),
  37231. n.practiceAmount.push(i.practiceAmount),
  37232. n.liveAmount.push(i.liveAmount),
  37233. n.videoAmount.push(i.videoAmount),
  37234. n.musicAmount.push(i.musicAmount),
  37235. n.vipShareAmount.push(i.vipShareAmount),
  37236. n.liveShareAmount.push(i.liveShareAmount),
  37237. n.videoShareAmount.push(i.videoShareAmount),
  37238. n.mallShareAmount.push(i.mallShareAmount),
  37239. n.musicShareAmount.push(i.musicShareAmount),
  37240. n.actiRegistShareAmount.push(i.actiRegistShareAmount)
  37241. }),
  37242. (Ce.xAxis.data = n.xAxis),
  37243. (Ce.series[0].data = n.practiceAmount),
  37244. (Ce.series[1].data = n.liveAmount),
  37245. (Ce.series[2].data = n.videoAmount),
  37246. (Ce.series[3].data = n.musicAmount),
  37247. (Ce.series[4].data = n.vipShareAmount),
  37248. (Ce.series[5].data = n.liveShareAmount),
  37249. (Ce.series[6].data = n.videoShareAmount),
  37250. (Ce.series[7].data = n.mallShareAmount),
  37251. (Ce.series[8].data = n.musicShareAmount),
  37252. (Ce.series[9].data = n.actiRegistShareAmount),
  37253. this.myChart.clear(),
  37254. this.myChart.setOption(Ce),
  37255. (Be.series[0].data[0].value = e.practiceAmount),
  37256. (Be.series[0].data[1].value = e.liveAmount),
  37257. (Be.series[0].data[2].value = e.videoAmount),
  37258. (Be.series[0].data[3].value = e.musicAmount),
  37259. (Be.series[0].data[4].value = e.vipShareAmount),
  37260. (Be.series[0].data[5].value = e.liveShareAmount),
  37261. (Be.series[0].data[6].value = e.videoShareAmount),
  37262. (Be.series[0].data[7].value = e.mallShareAmount),
  37263. (Be.series[0].data[8].value = e.musicShareAmount),
  37264. (Be.series[0].data[9].value = e.actiRegistShareAmount),
  37265. this.myChart2.clear(),
  37266. this.myChart2.setOption(Be)
  37267. } catch {}
  37268. }
  37269. },
  37270. render() {
  37271. return E('div', { style: { overflow: 'hidden' } }, [
  37272. E('div', { class: V.incomeConsus }, [
  37273. E(
  37274. gS,
  37275. { class: V.income, title: '\u603B\u6536\u5165(\u5143)' },
  37276. {
  37277. label: () =>
  37278. E('span', { class: V.countPrice }, [
  37279. Ae(this.moneyInfo.totalInAmount)
  37280. ]),
  37281. value: () =>
  37282. E(
  37283. 'span',
  37284. { class: V.searchTime, onClick: () => (this.timerStatus = !0) },
  37285. [this.dateTimeStr]
  37286. )
  37287. }
  37288. ),
  37289. E('div', { class: V.section }, [
  37290. E(
  37291. mS,
  37292. { class: V.numberCount },
  37293. {
  37294. default: () => [
  37295. E(
  37296. Fe,
  37297. { span: 6 },
  37298. {
  37299. default: () => [
  37300. E('i', null, null),
  37301. E('div', { class: V.type }, [
  37302. E('span', null, [rt('\u966A\u7EC3\u8BFE')]),
  37303. E('span', { class: V.price }, [
  37304. Ae(this.moneyInfo.practiceAmount)
  37305. ])
  37306. ])
  37307. ]
  37308. }
  37309. ),
  37310. E(
  37311. Fe,
  37312. { span: 6 },
  37313. {
  37314. default: () => [
  37315. E('i', { class: V.color1 }, null),
  37316. E('div', { class: V.type }, [
  37317. E('span', null, [rt('\u76F4\u64AD\u8BFE')]),
  37318. E('span', { class: V.price }, [
  37319. Ae(this.moneyInfo.liveAmount)
  37320. ])
  37321. ])
  37322. ]
  37323. }
  37324. ),
  37325. E(
  37326. Fe,
  37327. { span: 6 },
  37328. {
  37329. default: () => [
  37330. E('i', { class: V.color2 }, null),
  37331. E('div', { class: V.type }, [
  37332. E('span', null, [rt('\u89C6\u9891\u8BFE')]),
  37333. E('span', { class: V.price }, [
  37334. Ae(this.moneyInfo.videoAmount)
  37335. ])
  37336. ])
  37337. ]
  37338. }
  37339. ),
  37340. E(
  37341. Fe,
  37342. { span: 6 },
  37343. {
  37344. default: () => [
  37345. E('i', { class: V.color3 }, null),
  37346. E('div', { class: V.type }, [
  37347. E('span', null, [rt('\u4E50\u8C31')]),
  37348. E('span', { class: V.price }, [
  37349. Ae(this.moneyInfo.musicAmount)
  37350. ])
  37351. ])
  37352. ]
  37353. }
  37354. ),
  37355. E(
  37356. Fe,
  37357. { span: 6 },
  37358. {
  37359. default: () => [
  37360. E('i', { class: V.color4 }, null),
  37361. E('div', { class: V.type }, [
  37362. E('span', null, [rt('\u5C0F\u9177Ai\u63A8\u5E7F')]),
  37363. E('span', { class: V.price }, [
  37364. Ae(this.moneyInfo.vipShareAmount)
  37365. ])
  37366. ])
  37367. ]
  37368. }
  37369. ),
  37370. E(
  37371. Fe,
  37372. { span: 6 },
  37373. {
  37374. default: () => [
  37375. E('i', { class: V.color5 }, null),
  37376. E('div', { class: V.type }, [
  37377. E('span', null, [rt('\u76F4\u64AD\u8BFE\u63A8\u8350')]),
  37378. E('span', { class: V.price }, [
  37379. Ae(this.moneyInfo.liveShareAmount)
  37380. ])
  37381. ])
  37382. ]
  37383. }
  37384. ),
  37385. E(
  37386. Fe,
  37387. { span: 6 },
  37388. {
  37389. default: () => [
  37390. E('i', { class: V.color6 }, null),
  37391. E('div', { class: V.type }, [
  37392. E('span', null, [rt('\u89C6\u9891\u8BFE\u63A8\u8350')]),
  37393. E('span', { class: V.price }, [
  37394. Ae(this.moneyInfo.videoShareAmount)
  37395. ])
  37396. ])
  37397. ]
  37398. }
  37399. ),
  37400. E(
  37401. Fe,
  37402. { span: 6 },
  37403. {
  37404. default: () => [
  37405. E('i', { class: V.color7 }, null),
  37406. E('div', { class: V.type }, [
  37407. E('span', null, [rt('\u5546\u54C1\u63A8\u8350')]),
  37408. E('span', { class: V.price }, [
  37409. Ae(this.moneyInfo.mallShareAmount)
  37410. ])
  37411. ])
  37412. ]
  37413. }
  37414. ),
  37415. E(
  37416. Fe,
  37417. { span: 6 },
  37418. {
  37419. default: () => [
  37420. E('i', { class: V.color8 }, null),
  37421. E('div', { class: V.type }, [
  37422. E('span', null, [rt('\u4E50\u8C31\u63A8\u8350')]),
  37423. E('span', { class: V.price }, [
  37424. Ae(this.moneyInfo.musicShareAmount)
  37425. ])
  37426. ])
  37427. ]
  37428. }
  37429. ),
  37430. E(
  37431. Fe,
  37432. { span: 6 },
  37433. {
  37434. default: () => [
  37435. E('i', { class: V.color9 }, null),
  37436. E('div', { class: V.type }, [
  37437. E('span', null, [rt('\u6D3B\u52A8\u62A5\u540D')]),
  37438. E('span', { class: V.price }, [
  37439. Ae(this.moneyInfo.actiRegistShareAmount)
  37440. ])
  37441. ])
  37442. ]
  37443. }
  37444. )
  37445. ]
  37446. }
  37447. )
  37448. ]),
  37449. E('div', { id: 'incomeClass', class: V.incomeLine }, null),
  37450. E('div', { class: V.incomeTitle }, [
  37451. E('i', null, null),
  37452. rt('\u6536\u5165\u7ED3\u6784')
  37453. ]),
  37454. E('div', { class: [V.pieSection, 'van-hairline--bottom'] }, [
  37455. E('div', { id: 'structrueClass', class: V.pieIncome }, null),
  37456. E('div', { class: V.rateAll }, [
  37457. E('div', null, [
  37458. E('img', { src: fS('icon_user.png') }, null),
  37459. E('span', null, [
  37460. rt('\u4E2A\u4EBA\u6536\u5165\u603B\u5360\u6BD4')
  37461. ]),
  37462. E('span', { class: V.rate }, [
  37463. this.moneyInfo.totalSingleRate,
  37464. rt('%')
  37465. ])
  37466. ]),
  37467. E('div', null, [
  37468. E('img', { src: fS('icon_fly.png') }, null),
  37469. E('span', null, [
  37470. rt('\u63A8\u5E7F\u6536\u76CA\u603B\u5360\u6BD4')
  37471. ]),
  37472. E('span', { class: V.rate }, [
  37473. this.moneyInfo.totalShareRate,
  37474. rt('%')
  37475. ])
  37476. ])
  37477. ])
  37478. ]),
  37479. E('div', { class: V.pieData }, [
  37480. E('div', null, [
  37481. E('i', { class: V.piePractice }, null),
  37482. E('span', { class: V.pieTitle }, [rt('\u966A\u7EC3\u8BFE')]),
  37483. E('span', null, [this.moneyInfo.practiceRate, rt('%')])
  37484. ]),
  37485. E('div', null, [
  37486. E('i', { class: V.pie1 }, null),
  37487. E('span', { class: V.pieTitle }, [
  37488. rt('\u5C0F\u9177Ai\u63A8\u5E7F')
  37489. ]),
  37490. E('span', null, [this.moneyInfo.vipShareRate, rt('%')])
  37491. ]),
  37492. E('div', null, [
  37493. E('i', { class: V.pieLive }, null),
  37494. E('span', { class: V.pieTitle }, [rt('\u76F4\u64AD\u8BFE')]),
  37495. E('span', null, [this.moneyInfo.liveRate, rt('%')])
  37496. ]),
  37497. E('div', null, [
  37498. E('i', { class: V.pie2 }, null),
  37499. E('span', { class: V.pieTitle }, [
  37500. rt('\u76F4\u64AD\u8BFE\u63A8\u8350')
  37501. ]),
  37502. E('span', null, [this.moneyInfo.liveShareRate, rt('%')])
  37503. ]),
  37504. E('div', null, [
  37505. E('i', { class: V.pieVideo }, null),
  37506. E('span', { class: V.pieTitle }, [rt('\u89C6\u9891\u8BFE')]),
  37507. E('span', null, [this.moneyInfo.videoRate, rt('%')])
  37508. ]),
  37509. E('div', null, [
  37510. E('i', { class: V.pie3 }, null),
  37511. E('span', { class: V.pieTitle }, [
  37512. rt('\u89C6\u9891\u8BFE\u63A8\u8350')
  37513. ]),
  37514. E('span', null, [this.moneyInfo.videoShareRate, rt('%')])
  37515. ]),
  37516. E('div', null, [
  37517. E('i', { class: V.pieMusic }, null),
  37518. E('span', { class: V.pieTitle }, [rt('\u4E50\u8C31')]),
  37519. E('span', null, [this.moneyInfo.musicRate, rt('%')])
  37520. ]),
  37521. E('div', null, [
  37522. E('i', { class: V.pie5 }, null),
  37523. E('span', { class: V.pieTitle }, [rt('\u4E50\u8C31\u63A8\u8350')]),
  37524. E('span', null, [this.moneyInfo.musicShareRate, rt('%')])
  37525. ]),
  37526. E('div', null, [
  37527. E('i', { class: V.pie6 }, null),
  37528. E('span', { class: V.pieTitle }, [rt('\u6D3B\u52A8\u62A5\u540D')]),
  37529. E('span', null, [this.moneyInfo.actiRegistShareRate, rt('%')])
  37530. ]),
  37531. E('div', null, [
  37532. E('i', { class: V.pie4 }, null),
  37533. E('span', { class: V.pieTitle }, [rt('\u5546\u54C1\u63A8\u8350')]),
  37534. E('span', null, [this.moneyInfo.mallShareRate, rt('%')])
  37535. ])
  37536. ])
  37537. ]),
  37538. E(
  37539. yS,
  37540. {
  37541. show: this.timerStatus,
  37542. 'onUpdate:show': r => (this.timerStatus = r),
  37543. position: 'bottom',
  37544. round: !0,
  37545. zIndex: 99999999
  37546. },
  37547. {
  37548. default: () => [
  37549. this.params.timeType === 'MONTH' &&
  37550. E(
  37551. _S,
  37552. {
  37553. modelValue: this.currentDate,
  37554. 'onUpdate:modelValue': r => (this.currentDate = r),
  37555. type: 'year-month',
  37556. title: '\u9009\u62E9\u65F6\u95F4',
  37557. formatter: wS,
  37558. onCancle: () => (this.timerStatus = !1),
  37559. onConfirm: r => {
  37560. ;(this.params.dateTime = Pi(r).format('YYYY-MM')),
  37561. (this.dateTimeStr = Pi(r).format('YYYY\u5E74MM\u6708')),
  37562. (this.timerStatus = !1),
  37563. this.getList()
  37564. }
  37565. },
  37566. {
  37567. 'columns-top': () =>
  37568. E('div', { class: V.timePopup }, [
  37569. E(
  37570. eo,
  37571. {
  37572. type: 'primary',
  37573. plain: this.params.timeType !== 'MONTH',
  37574. size: 'mini',
  37575. class: V.timeMonth,
  37576. onClick: () => (this.params.timeType = 'MONTH')
  37577. },
  37578. { default: () => [rt('\u6309\u6708')] }
  37579. ),
  37580. E(
  37581. eo,
  37582. {
  37583. type: 'primary',
  37584. plain: this.params.timeType !== 'YEAR',
  37585. size: 'mini',
  37586. class: V.timeYear,
  37587. onClick: () => (this.params.timeType = 'YEAR')
  37588. },
  37589. { default: () => [rt('\u6309\u5E74')] }
  37590. )
  37591. ])
  37592. }
  37593. ),
  37594. this.params.timeType === 'YEAR' &&
  37595. E(
  37596. SS,
  37597. {
  37598. modelValue: this.currentDate,
  37599. 'onUpdate:modelValue': r => (this.currentDate = r),
  37600. title: '\u9009\u62E9\u65F6\u95F4',
  37601. columns: hS,
  37602. defaultIndex: vS,
  37603. onCancel: () => (this.timerStatus = !1),
  37604. onConfirm: (r, t) => {
  37605. ;(this.params.dateTime = r.value),
  37606. (vS = t),
  37607. (this.dateTimeStr = r.text),
  37608. (this.timerStatus = !1),
  37609. this.getList()
  37610. }
  37611. },
  37612. {
  37613. 'columns-top': () =>
  37614. E('div', { class: V.timePopup }, [
  37615. E(
  37616. eo,
  37617. {
  37618. type: 'primary',
  37619. plain: this.params.timeType !== 'MONTH',
  37620. size: 'mini',
  37621. class: V.timeMonth,
  37622. onClick: () => (this.params.timeType = 'MONTH')
  37623. },
  37624. { default: () => [rt('\u6309\u6708')] }
  37625. ),
  37626. E(
  37627. eo,
  37628. {
  37629. type: 'primary',
  37630. plain: this.params.timeType !== 'YEAR',
  37631. onClick: () => (this.params.timeType = 'YEAR'),
  37632. size: 'mini',
  37633. class: V.timeYear
  37634. },
  37635. { default: () => [rt('\u6309\u5E74')] }
  37636. )
  37637. ])
  37638. }
  37639. )
  37640. ]
  37641. }
  37642. )
  37643. ])
  37644. }
  37645. })
  37646. export { Hk as default, fS as getAssetsHomeFile }